From 15db7bb0128536f42c991f900f7f00c16c727fc6 Mon Sep 17 00:00:00 2001
From: moshiur01
Date: Wed, 18 Dec 2024 13:14:59 +0600
Subject: [PATCH 01/28] Updated: Nuxt instalation process.
---
.../introduction/IntroductionForNuxt.vue | 33 +++++++++++++++++--
.../introduction/introductionCode.ts | 21 ++++++++++--
2 files changed, 49 insertions(+), 5 deletions(-)
diff --git a/components/content/docs/getting-started/introduction/IntroductionForNuxt.vue b/components/content/docs/getting-started/introduction/IntroductionForNuxt.vue
index 5c00ebf7..a2cd1747 100644
--- a/components/content/docs/getting-started/introduction/IntroductionForNuxt.vue
+++ b/components/content/docs/getting-started/introduction/IntroductionForNuxt.vue
@@ -4,6 +4,8 @@ import {
addTwCssForNuxt,
ImportKeepNuxt,
installKeepVueForNuxt,
+ installNuxtColorMode,
+ nuxtColorModeModuleAdd,
NuxtInstall,
phIconNuxt,
twConfigForNuxt,
@@ -57,8 +59,10 @@ import {
The Phosphor icon library is optional. If you prefer not to use
- Phosphor icons, feel free to install any other icon library of your
- choice.
+ Phosphor icons, you can install any other icon library of your choice.
+ For example, we have used the @phosphor-icons/vue package. If you
+ decide to use this library, you must follow the Nuxt convention for
+ Phosphor icons.
@@ -66,6 +70,31 @@ import {
+
+
+
+
+ Step 4
+
+
+ Install Nuxt color mode to switch dark and light mode.
+
+
+
+
+
+
+
+ Then, add @nuxtjs/color-mode to the modules section of your
+ nuxt.config.ts
+
+
+
+
+
+
diff --git a/components/content/docs/getting-started/introduction/introductionCode.ts b/components/content/docs/getting-started/introduction/introductionCode.ts
index ff74864f..f9d9246a 100644
--- a/components/content/docs/getting-started/introduction/introductionCode.ts
+++ b/components/content/docs/getting-started/introduction/introductionCode.ts
@@ -78,6 +78,19 @@ const installKeepVueForNuxt = {
pnpm: "pnpm add keep-vue\npnpm add -D nuxt-phosphor-icons",
};
+const installNuxtColorMode = {
+ npx: `npx nuxi module add color-mode`,
+};
+
+const nuxtColorModeModuleAdd = {
+ " nuxt.config.ts": ` export default defineNuxtConfig({
+ //rest modules
+ modules: [
+ '@nuxtjs/color-mode'
+ ]
+})`,
+};
+
const phIconNuxt = {
"nuxt.config.ts": `export default defineNuxtConfig({ modules: [
//rest module...
@@ -140,13 +153,15 @@ const ImportKeepNuxt = {
`,
};
export {
- ImportKeepNuxt,
- ImportKeepVue,
- NuxtInstall,
addTwCssForNuxt,
addTwCssForVue,
+ ImportKeepNuxt,
+ ImportKeepVue,
installKeepVue,
installKeepVueForNuxt,
+ installNuxtColorMode,
+ nuxtColorModeModuleAdd,
+ NuxtInstall,
phIconNuxt,
twConfigForNuxt,
twConfigForVue,
From c11aff91c9487131a63faef96602bb1f7ce63763 Mon Sep 17 00:00:00 2001
From: moshiur01
Date: Wed, 18 Dec 2024 13:23:34 +0600
Subject: [PATCH 02/28] Remvoed: Chart js and vue-chartjs package removed form
the package dev dependency.
---
package.json | 2 --
yarn.lock | 17 -----------------
2 files changed, 19 deletions(-)
diff --git a/package.json b/package.json
index 5c8cef57..032a5d9c 100644
--- a/package.json
+++ b/package.json
@@ -16,7 +16,6 @@
"dependencies": {
"@vueuse/core": "^11.0.1",
"@vueuse/motion": "^2.2.6",
- "chart.js": "^4.4.3",
"clsx": "^2.1.1",
"deepmerge": "^4.3.1",
"embla-carousel-vue": "^8.2.1",
@@ -25,7 +24,6 @@
"tailwindcss-animate": "^1.0.7",
"vaul-vue": "^0.2.0",
"vue": "^3.4.21",
- "vue-chartjs": "^5.3.1",
"vue-sonner": "^1.1.5",
"vue3-dropzone": "^2.2.1"
},
diff --git a/yarn.lock b/yarn.lock
index 62cfd236..9283881f 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -827,11 +827,6 @@
resolved "https://registry.npmjs.org/@jsdevtools/ono/-/ono-7.1.3.tgz"
integrity sha512-4JQNk+3mVzK3xh2rqd6RB4J46qUR19azEHBneZyTZM+c456qOrbbM/5xcR8huNCCcbVt7+UmizG6GuUvPvKUYg==
-"@kurkle/color@^0.3.0":
- version "0.3.2"
- resolved "https://registry.npmjs.org/@kurkle/color/-/color-0.3.2.tgz"
- integrity sha512-fuscdXJ9G1qb7W8VdHi+IwRqij3lBkosAm4ydQtEmbY58OzHXqQhvlxqEkoz0yssNVn38bcpRWgA9PP+OGoisw==
-
"@kwsites/file-exists@^1.1.1":
version "1.1.1"
resolved "https://registry.npmjs.org/@kwsites/file-exists/-/file-exists-1.1.1.tgz"
@@ -3242,13 +3237,6 @@ character-reference-invalid@^2.0.0:
resolved "https://registry.npmjs.org/character-reference-invalid/-/character-reference-invalid-2.0.1.tgz"
integrity sha512-iBZ4F4wRbyORVsu0jPV7gXkOsGYjGHPmAyv+HiHG8gi5PtC9KI2j1+v8/tlibRvjoWX027ypmG/n0HtO5t7unw==
-chart.js@^4.4.3:
- version "4.4.3"
- resolved "https://registry.npmjs.org/chart.js/-/chart.js-4.4.3.tgz"
- integrity sha512-qK1gkGSRYcJzqrrzdR6a+I0vQ4/R+SoODXyAjscQ/4mzuNzySaMCd+hyVxitSY1+L2fjPD1Gbn+ibNqRmwQeLw==
- dependencies:
- "@kurkle/color" "^0.3.0"
-
chokidar@^3.5.1, chokidar@^3.5.3, chokidar@^3.6.0:
version "3.6.0"
resolved "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz"
@@ -9417,11 +9405,6 @@ vue-bundle-renderer@^2.1.0:
dependencies:
ufo "^1.5.3"
-vue-chartjs@^5.3.1:
- version "5.3.1"
- resolved "https://registry.npmjs.org/vue-chartjs/-/vue-chartjs-5.3.1.tgz"
- integrity sha512-rZjqcHBxKiHrBl0CIvcOlVEBwRhpWAVf6rDU3vUfa7HuSRmGtCslc0Oc8m16oAVuk0erzc1FCtH1VCriHsrz+A==
-
vue-demi@>=0.13.0, vue-demi@>=0.14.10, vue-demi@>=0.14.8:
version "0.14.10"
resolved "https://registry.npmjs.org/vue-demi/-/vue-demi-0.14.10.tgz"
From 75abce2b6563c90b55fca44da7d433187061aa8f Mon Sep 17 00:00:00 2001
From: moshiur01
Date: Wed, 18 Dec 2024 13:29:12 +0600
Subject: [PATCH 03/28] Updated: Tooltip Api documentation.
---
.../content/docs/components/tooltip/TooltipApi.vue | 2 +-
.../docs/components/tooltip/TooltipContentApi.vue | 8 ++++++++
.../content/docs/components/tooltip/tooltipApiData.ts | 7 -------
.../content/docs/components/tooltip/tooltipContentApi.ts | 9 +++++++++
content/docs/components/tooltip.md | 7 ++++++-
5 files changed, 24 insertions(+), 9 deletions(-)
create mode 100644 components/content/docs/components/tooltip/TooltipContentApi.vue
create mode 100644 components/content/docs/components/tooltip/tooltipContentApi.ts
diff --git a/components/content/docs/components/tooltip/TooltipApi.vue b/components/content/docs/components/tooltip/TooltipApi.vue
index f1e0967d..4f3c51a3 100644
--- a/components/content/docs/components/tooltip/TooltipApi.vue
+++ b/components/content/docs/components/tooltip/TooltipApi.vue
@@ -4,5 +4,5 @@ import { tooltipApiData } from "./tooltipApiData";
-
+
diff --git a/components/content/docs/components/tooltip/TooltipContentApi.vue b/components/content/docs/components/tooltip/TooltipContentApi.vue
new file mode 100644
index 00000000..4ab7f588
--- /dev/null
+++ b/components/content/docs/components/tooltip/TooltipContentApi.vue
@@ -0,0 +1,8 @@
+
+
+
+
+
diff --git a/components/content/docs/components/tooltip/tooltipApiData.ts b/components/content/docs/components/tooltip/tooltipApiData.ts
index f88d841f..fd9e97f7 100644
--- a/components/content/docs/components/tooltip/tooltipApiData.ts
+++ b/components/content/docs/components/tooltip/tooltipApiData.ts
@@ -1,11 +1,4 @@
export const tooltipApiData = [
- {
- id: 1,
- propsName: "side",
- propsType: ["top", "bottom", "right", "left"],
- propsDescription: "Placement of the tooltip.",
- default: "top",
- },
{
id: 2,
propsName: "color",
diff --git a/components/content/docs/components/tooltip/tooltipContentApi.ts b/components/content/docs/components/tooltip/tooltipContentApi.ts
new file mode 100644
index 00000000..aba9ef39
--- /dev/null
+++ b/components/content/docs/components/tooltip/tooltipContentApi.ts
@@ -0,0 +1,9 @@
+export const tooltipContentApi = [
+ {
+ id: 1,
+ propsName: "side",
+ propsType: ["top", "bottom", "right", "left"],
+ propsDescription: "Placement of the tooltip.",
+ default: "top",
+ },
+];
diff --git a/content/docs/components/tooltip.md b/content/docs/components/tooltip.md
index e1ad7024..e82d3e60 100644
--- a/content/docs/components/tooltip.md
+++ b/content/docs/components/tooltip.md
@@ -31,13 +31,18 @@ You can define the tooltip color by using the color prop such as `color="primary
::ToolTipColorVariant
::
-## API Reference
+## Tooltip API
Explore the available props for the tooltip component
::TooltipApi
::
+## Tooltip Content API
+
+::TooltipContentApi
+::
+
## Reference
To learn more about the Tooltip, please see the documentation of [Redix Vue Tooltip](https://www.radix-vue.com/components/tooltip)
From 388d1a34a33dd769ab98bab94204ca6a5f6e670d Mon Sep 17 00:00:00 2001
From: moshiur01
Date: Wed, 18 Dec 2024 15:15:40 +0600
Subject: [PATCH 04/28] Updated: TooltipContent Api dir.
---
.../docs/components/tooltip/TooltipContentApi.vue | 10 +++++++++-
.../docs/components/tooltip/tooltipContentApi.ts | 9 ---------
2 files changed, 9 insertions(+), 10 deletions(-)
delete mode 100644 components/content/docs/components/tooltip/tooltipContentApi.ts
diff --git a/components/content/docs/components/tooltip/TooltipContentApi.vue b/components/content/docs/components/tooltip/TooltipContentApi.vue
index 4ab7f588..a22276d5 100644
--- a/components/content/docs/components/tooltip/TooltipContentApi.vue
+++ b/components/content/docs/components/tooltip/TooltipContentApi.vue
@@ -1,6 +1,14 @@
diff --git a/components/content/docs/components/tooltip/tooltipContentApi.ts b/components/content/docs/components/tooltip/tooltipContentApi.ts
deleted file mode 100644
index aba9ef39..00000000
--- a/components/content/docs/components/tooltip/tooltipContentApi.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-export const tooltipContentApi = [
- {
- id: 1,
- propsName: "side",
- propsType: ["top", "bottom", "right", "left"],
- propsDescription: "Placement of the tooltip.",
- default: "top",
- },
-];
From 329ce4390172eb3bba0e0e3ca57b10c97c12b43f Mon Sep 17 00:00:00 2001
From: moshiur01
Date: Wed, 18 Dec 2024 15:24:09 +0600
Subject: [PATCH 05/28] Updated: Textarea component example code.
---
components/content/docs/components/textarea/textareaCode.ts | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/components/content/docs/components/textarea/textareaCode.ts b/components/content/docs/components/textarea/textareaCode.ts
index 056ef2d1..f28acb37 100644
--- a/components/content/docs/components/textarea/textareaCode.ts
+++ b/components/content/docs/components/textarea/textareaCode.ts
@@ -57,7 +57,7 @@ const handleSubmit = (event) => {
placeholder="Enter email"
class="ps-11" />
-
+
@@ -104,8 +104,8 @@ console.log(picked.value);
};
export {
- TextAreaWithFormCode,
- TextAreaWithHelperTextCode,
defaultTextAreaCode,
disabledTextareaCode,
+ TextAreaWithFormCode,
+ TextAreaWithHelperTextCode,
};
From 056ec8697a32d44a6da6ec033b9164d94f90dc8c Mon Sep 17 00:00:00 2001
From: moshiur01
Date: Wed, 18 Dec 2024 17:20:46 +0600
Subject: [PATCH 06/28] Updated: Table component code.
---
.../docs/components/table/tableCode.ts | 43 +++++++++++--------
1 file changed, 25 insertions(+), 18 deletions(-)
diff --git a/components/content/docs/components/table/tableCode.ts b/components/content/docs/components/table/tableCode.ts
index 811809fa..db3a4199 100644
--- a/components/content/docs/components/table/tableCode.ts
+++ b/components/content/docs/components/table/tableCode.ts
@@ -101,6 +101,8 @@ import { data1 } from "./TableData";
const OrdersTableCode = {
"TableComponent.vue": `
@@ -134,11 +137,11 @@ import { data2 } from "./TableData";
-
+
Add Order
-
+
Filter Order
@@ -151,48 +154,48 @@ import { data2 } from "./TableData";
-
Type
-
Date
-
+
Country
-
Status
-
Quant.
-
Total Price
-
Location
@@ -216,7 +219,7 @@ import { data2 } from "./TableData";
-
+
-
@@ -329,6 +332,7 @@ import { data2 } from "./TableData";
const ProductTableCode = {
"TableComponent.vue": `
@@ -528,11 +535,11 @@ import { data4 } from "./TableData";
-
+
New Member
-
+
Search
@@ -588,14 +595,14 @@ import { data4 } from "./TableData";
-
+
-
From 0271f2b6a88964cfef641c10ce9a8e5cb0db9a7f Mon Sep 17 00:00:00 2001
From: moshiur01
Date: Wed, 18 Dec 2024 17:24:06 +0600
Subject: [PATCH 07/28] Updated: Step component example code.
---
components/content/docs/components/steps/stepCode.ts | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/components/content/docs/components/steps/stepCode.ts b/components/content/docs/components/steps/stepCode.ts
index 9085effd..07be3f67 100644
--- a/components/content/docs/components/steps/stepCode.ts
+++ b/components/content/docs/components/steps/stepCode.ts
@@ -1,6 +1,8 @@
const DefaultStepCode = {
"StepsComponent.vue": `
-
+
-
+
-
+
-
+
-
+
From 14f04efbfdd3737bc64a0478758940a6eef2b0dc Mon Sep 17 00:00:00 2001
From: moshiur01
Date: Wed, 18 Dec 2024 17:27:48 +0600
Subject: [PATCH 09/28] Updated: Timeline component example code.
---
components/content/docs/components/timeLine/timelineCode.ts | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/components/content/docs/components/timeLine/timelineCode.ts b/components/content/docs/components/timeLine/timelineCode.ts
index f335cdde..7d3d72b0 100644
--- a/components/content/docs/components/timeLine/timelineCode.ts
+++ b/components/content/docs/components/timeLine/timelineCode.ts
@@ -205,7 +205,7 @@ import { Timeline, TimelineContent, TimelineItem, TimelinePoint } from "keep-vue
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Minima,
incidunt.
-
@@ -226,7 +226,7 @@ import { Timeline, TimelineContent, TimelineItem, TimelinePoint } from "keep-vue
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Minima,
incidunt.
-
@@ -247,7 +247,7 @@ import { Timeline, TimelineContent, TimelineItem, TimelinePoint } from "keep-vue
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Minima,
incidunt.
-
From 2837d56438492e0059897bde39c70df42bc70967 Mon Sep 17 00:00:00 2001
From: moshiur01
Date: Wed, 18 Dec 2024 17:51:18 +0600
Subject: [PATCH 10/28] Updated: Upload component example code.
---
.../docs/components/upload/uploadCode.ts | 24 +++++++++----------
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/components/content/docs/components/upload/uploadCode.ts b/components/content/docs/components/upload/uploadCode.ts
index cc28f9a2..43e204c0 100644
--- a/components/content/docs/components/upload/uploadCode.ts
+++ b/components/content/docs/components/upload/uploadCode.ts
@@ -32,7 +32,7 @@ watch(dragState, (newValue) => {
- {
-
+
Uploaded Files
@@ -69,7 +69,7 @@ watch(dragState, (newValue) => {
:key="file?.name"
class="flex items-center justify-between border-l-4 border-l-metal-100 bg-metal-25 px-4 py-2.5 text-left text-body-4 font-normal capitalize text-metal-600 dark:border-l-metal-600 dark:bg-metal-800 dark:text-metal-300">
{{ file?.name }}
-
+
@@ -115,7 +115,7 @@ watch(dragState, (newValue) => {
class="flex items-center justify-between">
- {
-
+
Uploaded Files
@@ -152,7 +152,7 @@ watch(dragState, (newValue) => {
:key="file?.name"
class="flex items-center justify-between border-l-4 border-l-metal-100 bg-metal-25 px-4 py-2.5 text-left text-body-4 font-normal capitalize text-metal-600 dark:border-l-metal-600 dark:bg-metal-800 dark:text-metal-300">
{{ file?.name }}
-
+
@@ -195,7 +195,7 @@ watch(dragState, (newValue) => {
- {
-
+
Uploaded Files
@@ -231,7 +231,7 @@ watch(dragState, (newValue) => {
:key="file?.name"
class="flex items-center justify-between border-l-4 border-l-metal-100 bg-metal-25 px-4 py-2.5 text-left text-body-4 font-normal capitalize text-metal-600 dark:border-l-metal-600 dark:bg-metal-800 dark:text-metal-300">
{{ file?.name }}
-
+
@@ -274,7 +274,7 @@ watch(dragState, (newValue) => {
v-model:isDragActive="dragState"
class="cursor-not-allowed space-y-4">
- {
-
+
Uploaded Files
@@ -310,7 +310,7 @@ watch(dragState, (newValue) => {
:key="file?.name"
class="flex items-center justify-between border-l-4 border-l-metal-100 bg-metal-25 px-4 py-2.5 text-left text-body-4 font-normal capitalize text-metal-600 dark:border-l-metal-600 dark:bg-metal-800 dark:text-metal-300">
{{ file?.name }}
-
+
From 9e13e7af21590e97f35d285d63ffaa3b0be651a3 Mon Sep 17 00:00:00 2001
From: moshiur01
Date: Wed, 18 Dec 2024 17:54:57 +0600
Subject: [PATCH 11/28] Updated: Radio component example code.
---
.../docs/components/radio/DefaultRadio.vue | 8 ++++++--
.../docs/components/radio/RadioVariant.vue | 7 +++----
.../docs/components/radio/radioCode.ts | 19 +++++++++++--------
3 files changed, 20 insertions(+), 14 deletions(-)
diff --git a/components/content/docs/components/radio/DefaultRadio.vue b/components/content/docs/components/radio/DefaultRadio.vue
index 008e3889..4b1c9863 100644
--- a/components/content/docs/components/radio/DefaultRadio.vue
+++ b/components/content/docs/components/radio/DefaultRadio.vue
@@ -21,8 +21,12 @@ const picked = ref("bangladesh");
Bangladesh
-
- India
+
+ Palestine
diff --git a/components/content/docs/components/radio/RadioVariant.vue b/components/content/docs/components/radio/RadioVariant.vue
index 4cd47f33..112e4cd6 100644
--- a/components/content/docs/components/radio/RadioVariant.vue
+++ b/components/content/docs/components/radio/RadioVariant.vue
@@ -32,12 +32,11 @@ const selected = ref("bangladesh");
- India
+ value="palestine" />
+ Palestine
diff --git a/components/content/docs/components/radio/radioCode.ts b/components/content/docs/components/radio/radioCode.ts
index 68c56adc..e2d53e77 100644
--- a/components/content/docs/components/radio/radioCode.ts
+++ b/components/content/docs/components/radio/radioCode.ts
@@ -20,8 +20,12 @@ console.log(picked);
Bangladesh
-
- India
+
+ Palestine
@@ -59,12 +63,11 @@ console.log(selected)
Bangladesh
-
+
India
From 8331c6c24456872e0f569eb406339aea2e99be5e Mon Sep 17 00:00:00 2001
From: moshiur01
Date: Wed, 18 Dec 2024 18:09:15 +0600
Subject: [PATCH 12/28] Updated: Progress component and example code.
---
...ogress.vue => CustomizeCircleProgress.vue} | 4 +--
.../progress/CustomizeLineProgress.vue | 16 ++++++++++
.../docs/components/progress/progressCode.ts | 30 +++++++++++--------
content/docs/components/progress.md | 9 ++++--
.../Progress/CircleProgressText.vue | 2 +-
5 files changed, 43 insertions(+), 18 deletions(-)
rename components/content/docs/components/progress/{CustomizeProgress.vue => CustomizeCircleProgress.vue} (79%)
create mode 100644 components/content/docs/components/progress/CustomizeLineProgress.vue
diff --git a/components/content/docs/components/progress/CustomizeProgress.vue b/components/content/docs/components/progress/CustomizeCircleProgress.vue
similarity index 79%
rename from components/content/docs/components/progress/CustomizeProgress.vue
rename to components/content/docs/components/progress/CustomizeCircleProgress.vue
index 70ea966a..bc474dae 100644
--- a/components/content/docs/components/progress/CustomizeProgress.vue
+++ b/components/content/docs/components/progress/CustomizeCircleProgress.vue
@@ -1,9 +1,9 @@
-
+
+import CodeHighlightWithPreview from "~/components/content/CodeHighlightWithPreview.vue";
+import { LineProgress, LineProgressBar, LineProgressText } from "~/src";
+import { customizeLineProgress } from "./progressCode";
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/components/content/docs/components/progress/progressCode.ts b/components/content/docs/components/progress/progressCode.ts
index 725f8c9d..b0132758 100644
--- a/components/content/docs/components/progress/progressCode.ts
+++ b/components/content/docs/components/progress/progressCode.ts
@@ -1,12 +1,9 @@
-const CustomizeProgressCode = {
+const CustomizeCircleProgressCode = {
"ProgressComponent.vue": `
@@ -17,12 +14,25 @@ import {
stroke-color="stroke-error-500" />
+`,
+};
+
+const customizeLineProgress = {
+ "ProgressComponent.vue": `
+
- `,
+
+`,
};
const DefaultLineProgressCode = {
@@ -58,9 +68,6 @@ import {
CircleProgress,
CircleProgressLine,
CircleProgressText,
- LineProgress,
- LineProgressBar,
- LineProgressText,
} from "keep-vue";
@@ -70,16 +77,13 @@ import {
-
-
-
-
`,
};
export {
- CustomizeProgressCode,
+ CustomizeCircleProgressCode,
+ customizeLineProgress,
DefaultLineProgressCode,
DefaultProgressCode,
VariantOfProgressCode,
diff --git a/content/docs/components/progress.md b/content/docs/components/progress.md
index e8515b42..c7d5b1fb 100644
--- a/content/docs/components/progress.md
+++ b/content/docs/components/progress.md
@@ -19,9 +19,14 @@ Default Progress allows you to visually represent the progress or completion of
::DefaultLineProgress
::
-## Customize Progress
+## Customize Circle Progress
-::CustomizeProgress
+::CustomizeCircleProgress
+::
+
+## Customize Line Progress
+
+::CustomizeLineProgress
::
## Circle Progress API
diff --git a/src/components/Progress/CircleProgressText.vue b/src/components/Progress/CircleProgressText.vue
index 90b1482f..ab511ce4 100644
--- a/src/components/Progress/CircleProgressText.vue
+++ b/src/components/Progress/CircleProgressText.vue
@@ -22,7 +22,7 @@ const { progressBar } = useProgressStore()!;
v-bind="restProps"
:class="
cn(
- 'absolute start-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 transform text-body-3 font-medium text-primary-500',
+ 'absolute start-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 transform text-body-4 font-medium text-primary-500',
props.class,
)
">
From 799892b3cdac0191ecbf8d8b85ee11ff4f0b7190 Mon Sep 17 00:00:00 2001
From: moshiur01
Date: Wed, 18 Dec 2024 18:10:56 +0600
Subject: [PATCH 13/28] Updated: Progress component example code.
---
.../components/progress/VariantOfProgress.vue | 16 ----------------
.../docs/components/progress/progressCode.ts | 19 -------------------
content/docs/components/progress.md | 5 -----
3 files changed, 40 deletions(-)
delete mode 100644 components/content/docs/components/progress/VariantOfProgress.vue
diff --git a/components/content/docs/components/progress/VariantOfProgress.vue b/components/content/docs/components/progress/VariantOfProgress.vue
deleted file mode 100644
index 03532cb9..00000000
--- a/components/content/docs/components/progress/VariantOfProgress.vue
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
diff --git a/components/content/docs/components/progress/progressCode.ts b/components/content/docs/components/progress/progressCode.ts
index b0132758..ee999bb7 100644
--- a/components/content/docs/components/progress/progressCode.ts
+++ b/components/content/docs/components/progress/progressCode.ts
@@ -62,29 +62,10 @@ import { CircleProgress, CircleProgressLine, CircleProgressText } from "keep-vue
`,
};
-const VariantOfProgressCode = {
- "ProgressComponent.vue": `
-
-
-
-
-
-
-
-
- `,
-};
export {
CustomizeCircleProgressCode,
customizeLineProgress,
DefaultLineProgressCode,
DefaultProgressCode,
- VariantOfProgressCode,
};
diff --git a/content/docs/components/progress.md b/content/docs/components/progress.md
index c7d5b1fb..44a53688 100644
--- a/content/docs/components/progress.md
+++ b/content/docs/components/progress.md
@@ -9,11 +9,6 @@ Default Progress allows you to visually represent the progress or completion of
::DefaultProgress
::
-## Circle Progress
-
-::VariantOfProgress
-::
-
## Line Progress
::DefaultLineProgress
From 2e68a8349bf8b9cda535618c11ffc2b2875d3ca0 Mon Sep 17 00:00:00 2001
From: moshiur01
Date: Wed, 18 Dec 2024 18:15:27 +0600
Subject: [PATCH 14/28] Updated: Popover component example code.
---
.../content/docs/components/popover/DefaultPopover.vue | 2 ++
components/content/docs/components/popover/popoverCode.ts | 6 ++++--
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/components/content/docs/components/popover/DefaultPopover.vue b/components/content/docs/components/popover/DefaultPopover.vue
index 21761441..18b2f2ee 100644
--- a/components/content/docs/components/popover/DefaultPopover.vue
+++ b/components/content/docs/components/popover/DefaultPopover.vue
@@ -2,6 +2,7 @@
import CodeHighlightWithPreview from "~/components/content/CodeHighlightWithPreview.vue";
import {
Avatar,
+ AvatarFallback,
AvatarImage,
Button,
Popover,
@@ -28,6 +29,7 @@ import { DefaultPopoverCode } from "./popoverCode";
diff --git a/components/content/docs/components/popover/popoverCode.ts b/components/content/docs/components/popover/popoverCode.ts
index d9b7322a..000b110c 100644
--- a/components/content/docs/components/popover/popoverCode.ts
+++ b/components/content/docs/components/popover/popoverCode.ts
@@ -21,7 +21,7 @@ import {
class="z-20 max-w-[300px] rounded-xl bg-white p-0 dark:bg-metal-900"
>
-
@@ -100,6 +100,7 @@ const DefaultPopoverCode = {
"PopoverComponent.vue": `
@@ -32,7 +32,7 @@ const handlePageClick = (pageNumber: number) => {
4
-
+
(1);
-const handlePageClick = (pageNumber: number) => {
+const activePage = ref(1);
+const handlePageClick = (pageNumber) => {
activePage.value = pageNumber;
};
@@ -70,7 +70,6 @@ const prevPage = () => {
activePage.value -= 1;
}
};
-
@@ -79,7 +78,7 @@ const prevPage = () => {
shape="circle"
:disabled="activePage === 1"
@click="prevPage">
-
+
{
4
-
+
{
shape="circle"
:disabled="activePage === 10"
@click="nextPage">
-
+
`,
@@ -154,7 +153,7 @@ const prevPage = () => {
:disabled="activePage === 1"
class="gap-1"
@click="prevPage">
-
+
Previous
@@ -179,7 +178,7 @@ const prevPage = () => {
4
-
+
{
class="gap-1"
@click="nextPage">
Next
-
+
`,
@@ -202,9 +201,9 @@ const PaginationShapeCode = {
"PaginationComponent.vue": `
+
+
+
+
diff --git a/content/docs/components/modal.md b/content/docs/components/modal.md
index d82c020e..fecfa832 100644
--- a/content/docs/components/modal.md
+++ b/content/docs/components/modal.md
@@ -15,6 +15,12 @@ You can customize our modal as your desire except the modal functionality.
::CustomizeModal
::
+## Api Reference
+
+A list of common ` `component APIs is provided below. For additional details, please refer to the reference link.
+::ModalApi
+::
+
## Reference
To learn more about the modal, please see the documentation of [Redix Vue Dialog](https://www.radix-vue.com/components/dialog.html#dialog).
From ce2f18ad4dfb045ae6185a3ca42c4b01422b7e59 Mon Sep 17 00:00:00 2001
From: moshiur01
Date: Wed, 18 Dec 2024 19:11:52 +0600
Subject: [PATCH 23/28] Updated: Input Component example code.
---
components/content/docs/components/input/InputUseCases.vue | 2 +-
components/content/docs/components/input/inputCode.ts | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/components/content/docs/components/input/InputUseCases.vue b/components/content/docs/components/input/InputUseCases.vue
index 5a979a78..e633576a 100644
--- a/components/content/docs/components/input/InputUseCases.vue
+++ b/components/content/docs/components/input/InputUseCases.vue
@@ -14,7 +14,7 @@ const handleSubmit = () => {};
diff --git a/components/content/docs/components/checkbox/DefaultCheckbox.vue b/components/content/docs/components/checkbox/DefaultCheckbox.vue
index 7192cb7c..ea6ecae4 100644
--- a/components/content/docs/components/checkbox/DefaultCheckbox.vue
+++ b/components/content/docs/components/checkbox/DefaultCheckbox.vue
@@ -4,7 +4,7 @@ import CodeHighlightWithPreview from "~/components/content/CodeHighlightWithPrev
import { Checkbox, Label } from "~/src";
import { defaultCheckboxCode } from "./checkboxCode";
-const statusOne = ref(false);
+const statusOne = ref(true);
const statusTwo = ref(false);
@@ -14,14 +14,18 @@ const statusTwo = ref(false);
Keep Design System License
-
-
+ (statusOne = value)" />
Single License
-
-
+ (statusTwo = value)" />
Team License
diff --git a/components/content/docs/components/checkbox/checkboxCode.ts b/components/content/docs/components/checkbox/checkboxCode.ts
index 2ef24023..8fa02906 100644
--- a/components/content/docs/components/checkbox/checkboxCode.ts
+++ b/components/content/docs/components/checkbox/checkboxCode.ts
@@ -3,31 +3,40 @@ const defaultCheckboxCode = {
import { Checkbox, Label } from 'keep-vue'
import { ref } from 'vue'
-const statusOne = ref(false)
-const statusTwo = ref(false)
+const statusOne = ref(true);
+const statusTwo = ref(false);
console.log(statusOne.value, statusTwo.value)
-
Keep Design System License
-
-
- Single License
-
-
-
- Team License
-
-
+
+ Keep Design System License
+
+
+ (statusOne = value)" />
+ Single License
+
+
+ (statusTwo = value)" />
+ Team License
+
+
`,
};
const CheckboxVariantCode = {
"CheckboxComponent.vue": `
-
-
Checkbox Variant
-
-
- Default
-
-
-
- Rounded
-
-
-
- Circle
-
-
+
+
+ Checkbox Variant
+
+
+ (statusOne = value)" />
+ Default
+
+
+ (statusTwo = value)" />
+ Rounded
+
+
+ (statusThree = value)" />
+ Circle
+
+
`,
};
diff --git a/src/components/Checkbox/Checkbox.vue b/src/components/Checkbox/Checkbox.vue
index 8cf4743a..b0a8f87e 100644
--- a/src/components/Checkbox/Checkbox.vue
+++ b/src/components/Checkbox/Checkbox.vue
@@ -1,5 +1,9 @@
@@ -25,6 +38,7 @@ const restProps = computed(() => {
+ "
+ @update:checked="(value) => emit('update:checked', value)">
+