From 6bd44814b52b6061ac9d660da48d3c63392f689f Mon Sep 17 00:00:00 2001 From: HoshinoSuzumi Date: Mon, 18 Nov 2024 02:04:11 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Feat(button):=20Framework=20and=20a?= =?UTF-8?q?dd=20button=20component?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .playground/components/DocContentBlock.vue | 29 +++ .playground/components/DocExampleBlock.vue | 81 +++++++++ .playground/components/TitleBar.vue | 12 +- .../components/icon/TablerTerminal.vue | 10 ++ .playground/layouts/default.vue | 12 +- .playground/nuxt.config.ts | 12 +- .playground/pages/index.vue | 149 +++++++++++----- .playground/pages/installation.vue | 59 +++++++ app.config.ts | 30 ++-- components/elements/Button.vue | 63 ++++++- components/overlays/Message.vue | 2 +- components/overlays/MessageProvider.vue | 2 +- composables/useMessage.ts | 2 +- composables/useUI.ts | 29 +++ nuxt.config.ts | 50 ++++++ package.json | 6 +- plugins/colors.ts | 87 +++++++++ pnpm-lock.yaml | 12 ++ tailwind.config.ts | 11 ++ types/button.d.ts | 23 +++ types/utils.d.ts | 50 ++++++ ui.config/elements/button.ts | 47 +++++ ui.config/index.ts | 2 + utils/colors.ts | 167 ++++++++++++++++++ utils/index.ts | 28 +++ utils/objectUtils.ts | 37 ++++ 26 files changed, 941 insertions(+), 71 deletions(-) create mode 100644 .playground/components/DocContentBlock.vue create mode 100644 .playground/components/DocExampleBlock.vue create mode 100644 .playground/components/icon/TablerTerminal.vue create mode 100644 .playground/pages/installation.vue create mode 100644 composables/useUI.ts create mode 100644 plugins/colors.ts create mode 100644 tailwind.config.ts create mode 100644 types/button.d.ts create mode 100644 types/utils.d.ts create mode 100644 ui.config/elements/button.ts create mode 100644 ui.config/index.ts create mode 100644 utils/colors.ts create mode 100644 utils/index.ts create mode 100644 utils/objectUtils.ts diff --git a/.playground/components/DocContentBlock.vue b/.playground/components/DocContentBlock.vue new file mode 100644 index 0000000..994db60 --- /dev/null +++ b/.playground/components/DocContentBlock.vue @@ -0,0 +1,29 @@ + + + + + diff --git a/.playground/components/DocExampleBlock.vue b/.playground/components/DocExampleBlock.vue new file mode 100644 index 0000000..302286e --- /dev/null +++ b/.playground/components/DocExampleBlock.vue @@ -0,0 +1,81 @@ + + + + + diff --git a/.playground/components/TitleBar.vue b/.playground/components/TitleBar.vue index 5bd2b6a..3888515 100644 --- a/.playground/components/TitleBar.vue +++ b/.playground/components/TitleBar.vue @@ -1,5 +1,6 @@ - + diff --git a/.playground/components/icon/TablerTerminal.vue b/.playground/components/icon/TablerTerminal.vue new file mode 100644 index 0000000..45d449d --- /dev/null +++ b/.playground/components/icon/TablerTerminal.vue @@ -0,0 +1,10 @@ + + + + \ No newline at end of file diff --git a/.playground/layouts/default.vue b/.playground/layouts/default.vue index 388dfe4..32e801f 100644 --- a/.playground/layouts/default.vue +++ b/.playground/layouts/default.vue @@ -1,5 +1,7 @@