ui-thing 0.0.4 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/main.yml +19 -0
- package/.github/workflows/test.yml +19 -0
- package/CHANGELOG.md +47 -124
- package/dist/index.d.ts +0 -0
- package/dist/index.js +51 -51
- package/dist/index.js.map +1 -1
- package/package.json +17 -8
- package/src/comp.ts +22 -22
- package/src/types.ts +20 -0
- package/tests/utils/addPrettierConfig.test.ts +78 -0
- package/tests/utils/fileExists.test.ts +38 -0
- package/vite.config.ts +9 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
build:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
steps:
|
|
12
|
+
- uses: actions/checkout@v3
|
|
13
|
+
- name: Install dependencies
|
|
14
|
+
run: npm install
|
|
15
|
+
- uses: actions/setup-node@v4
|
|
16
|
+
with:
|
|
17
|
+
node-version: "18.x"
|
|
18
|
+
- name: Build
|
|
19
|
+
run: npm run format && npm run build
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
name: Test
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- "**"
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
build:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
steps:
|
|
12
|
+
- uses: actions/checkout@v3
|
|
13
|
+
- name: Install dependencies
|
|
14
|
+
run: npm install
|
|
15
|
+
- uses: actions/setup-node@v4
|
|
16
|
+
with:
|
|
17
|
+
node-version: "18.x"
|
|
18
|
+
- name: Test
|
|
19
|
+
run: npm run test
|
package/CHANGELOG.md
CHANGED
|
@@ -1,138 +1,61 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## v0.0.6
|
|
3
4
|
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
[compare changes](https://github.com/BayBreezy/ui-thing-cli/compare/v0.0.5...v0.0.6)
|
|
6
6
|
|
|
7
7
|
### 🚀 Enhancements
|
|
8
8
|
|
|
9
|
-
-
|
|
10
|
-
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
-
|
|
15
|
-
-
|
|
16
|
-
-
|
|
17
|
-
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
-
|
|
30
|
-
-
|
|
31
|
-
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
-
|
|
37
|
-
|
|
38
|
-
|
|
9
|
+
- Add test workflow ([c00e2f4](https://github.com/BayBreezy/ui-thing-cli/commit/c00e2f4))
|
|
10
|
+
- Update test workflow ([c0f0662](https://github.com/BayBreezy/ui-thing-cli/commit/c0f0662))
|
|
11
|
+
|
|
12
|
+
### 🏡 Chore
|
|
13
|
+
|
|
14
|
+
- Update prompts deps ([8fdf5ce](https://github.com/BayBreezy/ui-thing-cli/commit/8fdf5ce))
|
|
15
|
+
- Update comps ([f232b69](https://github.com/BayBreezy/ui-thing-cli/commit/f232b69))
|
|
16
|
+
- Update types ([6f6b347](https://github.com/BayBreezy/ui-thing-cli/commit/6f6b347))
|
|
17
|
+
- Update deps ([7624ff0](https://github.com/BayBreezy/ui-thing-cli/commit/7624ff0))
|
|
18
|
+
|
|
19
|
+
### ❤️ Contributors
|
|
20
|
+
|
|
21
|
+
- Behon Baker <behon.baker@yahoo.com>
|
|
22
|
+
|
|
23
|
+
## v0.0.5
|
|
24
|
+
|
|
25
|
+
[compare changes](https://github.com/BayBreezy/ui-thing-cli/compare/v0.0.3...v0.0.5)
|
|
26
|
+
|
|
27
|
+
### 🏡 Chore
|
|
28
|
+
|
|
29
|
+
- Update release script ([c53b0d4](https://github.com/BayBreezy/ui-thing-cli/commit/c53b0d4))
|
|
30
|
+
- Update readme ([1d95ccb](https://github.com/BayBreezy/ui-thing-cli/commit/1d95ccb))
|
|
31
|
+
- Split cli from website repo ([66f2b3c](https://github.com/BayBreezy/ui-thing-cli/commit/66f2b3c))
|
|
32
|
+
- Update deps ([3d90848](https://github.com/BayBreezy/ui-thing-cli/commit/3d90848))
|
|
33
|
+
|
|
34
|
+
### ❤️ Contributors
|
|
35
|
+
|
|
36
|
+
- Behon Baker <behon.baker@yahoo.com>
|
|
37
|
+
|
|
38
|
+
## v0.0.3
|
|
39
|
+
|
|
40
|
+
[compare changes](https://github.com/BayBreezy/ui-thing-cli/compare/v0.0.2...v0.0.3)
|
|
39
41
|
|
|
40
42
|
### 🏡 Chore
|
|
41
43
|
|
|
42
|
-
- Update
|
|
43
|
-
-
|
|
44
|
-
-
|
|
45
|
-
- Add theme switcher in nav ([15b29c4](https://github.com/BayBreezy/ui-thing/commit/15b29c4))
|
|
46
|
-
- Update tailwind ring color ([3fb1af8](https://github.com/BayBreezy/ui-thing/commit/3fb1af8))
|
|
47
|
-
- Start datatable ([47b3905](https://github.com/BayBreezy/ui-thing/commit/47b3905))
|
|
48
|
-
- Update datatable ([f798a8d](https://github.com/BayBreezy/ui-thing/commit/f798a8d))
|
|
49
|
-
- Update table and add breadcrumbs ([411eb63](https://github.com/BayBreezy/ui-thing/commit/411eb63))
|
|
50
|
-
- Update deps ([5408756](https://github.com/BayBreezy/ui-thing/commit/5408756))
|
|
51
|
-
- Add dropfile ([ee206e6](https://github.com/BayBreezy/ui-thing/commit/ee206e6))
|
|
52
|
-
- Add native select ([5d7da05](https://github.com/BayBreezy/ui-thing/commit/5d7da05))
|
|
53
|
-
- Enable takeover mode ([34a2333](https://github.com/BayBreezy/ui-thing/commit/34a2333))
|
|
54
|
-
- Update deps ([18943e1](https://github.com/BayBreezy/ui-thing/commit/18943e1))
|
|
55
|
-
- Update deps & select components ([733f9ac](https://github.com/BayBreezy/ui-thing/commit/733f9ac))
|
|
56
|
-
- Update deps ([fccda4d](https://github.com/BayBreezy/ui-thing/commit/fccda4d))
|
|
57
|
-
- Update dropdownmenu ([9684eda](https://github.com/BayBreezy/ui-thing/commit/9684eda))
|
|
58
|
-
- Update deps ([8fdde56](https://github.com/BayBreezy/ui-thing/commit/8fdde56))
|
|
59
|
-
- Update deps ([95994f5](https://github.com/BayBreezy/ui-thing/commit/95994f5))
|
|
60
|
-
- Update deps and format code ([ea614f3](https://github.com/BayBreezy/ui-thing/commit/ea614f3))
|
|
61
|
-
- Update accordion ([9a0c93a](https://github.com/BayBreezy/ui-thing/commit/9a0c93a))
|
|
62
|
-
- Update popover ([d5e9636](https://github.com/BayBreezy/ui-thing/commit/d5e9636))
|
|
63
|
-
- Remove hydration warning ([44909fe](https://github.com/BayBreezy/ui-thing/commit/44909fe))
|
|
64
|
-
- Update alert ([91ac054](https://github.com/BayBreezy/ui-thing/commit/91ac054))
|
|
65
|
-
- Change to new doc layout ([c802292](https://github.com/BayBreezy/ui-thing/commit/c802292))
|
|
66
|
-
- Update up to button ([513bd33](https://github.com/BayBreezy/ui-thing/commit/513bd33))
|
|
67
|
-
- Update calendar ([e25caa4](https://github.com/BayBreezy/ui-thing/commit/e25caa4))
|
|
68
|
-
- **calendar:** Update docs for calendar ([dd33f32](https://github.com/BayBreezy/ui-thing/commit/dd33f32))
|
|
69
|
-
- Update checkbox ([8b50395](https://github.com/BayBreezy/ui-thing/commit/8b50395))
|
|
70
|
-
- Update collapsible ([fae10e1](https://github.com/BayBreezy/ui-thing/commit/fae10e1))
|
|
71
|
-
- **command:** Update command ([8b33da8](https://github.com/BayBreezy/ui-thing/commit/8b33da8))
|
|
72
|
-
- Update context menu ([1703206](https://github.com/BayBreezy/ui-thing/commit/1703206))
|
|
73
|
-
- Update breadcrumbs ([5fe90c9](https://github.com/BayBreezy/ui-thing/commit/5fe90c9))
|
|
74
|
-
- Update tanstack table ([1013200](https://github.com/BayBreezy/ui-thing/commit/1013200))
|
|
75
|
-
- Update datepicker ([efbdc61](https://github.com/BayBreezy/ui-thing/commit/efbdc61))
|
|
76
|
-
- Update dialog ([1a4b8be](https://github.com/BayBreezy/ui-thing/commit/1a4b8be))
|
|
77
|
-
- Update dialog ([0281b55](https://github.com/BayBreezy/ui-thing/commit/0281b55))
|
|
78
|
-
- Update dropdown menu ([b1a4545](https://github.com/BayBreezy/ui-thing/commit/b1a4545))
|
|
79
|
-
- Update dropdown menu ([49bf39d](https://github.com/BayBreezy/ui-thing/commit/49bf39d))
|
|
80
|
-
- Add form example and zod ([4cb4443](https://github.com/BayBreezy/ui-thing/commit/4cb4443))
|
|
81
|
-
- Update hover card ([6f15bf8](https://github.com/BayBreezy/ui-thing/commit/6f15bf8))
|
|
82
|
-
- Update input & label ([9278c7c](https://github.com/BayBreezy/ui-thing/commit/9278c7c))
|
|
83
|
-
- Update menubar ([1b08f04](https://github.com/BayBreezy/ui-thing/commit/1b08f04))
|
|
84
|
-
- Update navigation menu comp ([de3413b](https://github.com/BayBreezy/ui-thing/commit/de3413b))
|
|
85
|
-
- Update pagination ([86260d9](https://github.com/BayBreezy/ui-thing/commit/86260d9))
|
|
86
|
-
- Update popover ([57e5609](https://github.com/BayBreezy/ui-thing/commit/57e5609))
|
|
87
|
-
- Update progress ([f12dca9](https://github.com/BayBreezy/ui-thing/commit/f12dca9))
|
|
88
|
-
- Update radio group and form ([55da5a5](https://github.com/BayBreezy/ui-thing/commit/55da5a5))
|
|
89
|
-
- Update scroll area comp ([0dfb189](https://github.com/BayBreezy/ui-thing/commit/0dfb189))
|
|
90
|
-
- Update select ([394f6f7](https://github.com/BayBreezy/ui-thing/commit/394f6f7))
|
|
91
|
-
- Update separator ([28a16ae](https://github.com/BayBreezy/ui-thing/commit/28a16ae))
|
|
92
|
-
- Sheet update ([8f3f54e](https://github.com/BayBreezy/ui-thing/commit/8f3f54e))
|
|
93
|
-
- Update skeleton ([a6ffde6](https://github.com/BayBreezy/ui-thing/commit/a6ffde6))
|
|
94
|
-
- Update slider ([8194b3c](https://github.com/BayBreezy/ui-thing/commit/8194b3c))
|
|
95
|
-
- Switch updated ([d1e6421](https://github.com/BayBreezy/ui-thing/commit/d1e6421))
|
|
96
|
-
- Update table comps ([261bb8e](https://github.com/BayBreezy/ui-thing/commit/261bb8e))
|
|
97
|
-
- Update tabs ([b834087](https://github.com/BayBreezy/ui-thing/commit/b834087))
|
|
98
|
-
- Update textarea ([b1f10ac](https://github.com/BayBreezy/ui-thing/commit/b1f10ac))
|
|
99
|
-
- Udpate toggle ([d06f147](https://github.com/BayBreezy/ui-thing/commit/d06f147))
|
|
100
|
-
- Update tooltip ([33cbf3a](https://github.com/BayBreezy/ui-thing/commit/33cbf3a))
|
|
101
|
-
- Update kbd ([0bce1c6](https://github.com/BayBreezy/ui-thing/commit/0bce1c6))
|
|
102
|
-
- Update otp ([e01e2b4](https://github.com/BayBreezy/ui-thing/commit/e01e2b4))
|
|
103
|
-
- Update dropfile ([287ce01](https://github.com/BayBreezy/ui-thing/commit/287ce01))
|
|
104
|
-
- Update toast ([0967ba3](https://github.com/BayBreezy/ui-thing/commit/0967ba3))
|
|
105
|
-
- Add form example for switch ([a905a5f](https://github.com/BayBreezy/ui-thing/commit/a905a5f))
|
|
106
|
-
- Add example route ([e05aa5a](https://github.com/BayBreezy/ui-thing/commit/e05aa5a))
|
|
107
|
-
- Update examples ([7d0ad3b](https://github.com/BayBreezy/ui-thing/commit/7d0ad3b))
|
|
108
|
-
- Change combobox to autocomplete ([2d9eb46](https://github.com/BayBreezy/ui-thing/commit/2d9eb46))
|
|
109
|
-
- Add combobox ([fa101cf](https://github.com/BayBreezy/ui-thing/commit/fa101cf))
|
|
110
|
-
- Add component search ([4616ce6](https://github.com/BayBreezy/ui-thing/commit/4616ce6))
|
|
111
|
-
- Close modal after selecting theme ([3de019c](https://github.com/BayBreezy/ui-thing/commit/3de019c))
|
|
112
|
-
- Add vee select ([a21ca6e](https://github.com/BayBreezy/ui-thing/commit/a21ca6e))
|
|
113
|
-
- Update checkbox ([7a72412](https://github.com/BayBreezy/ui-thing/commit/7a72412))
|
|
114
|
-
- Refactor pagination UI in TanStackTable.vue ([39e4380](https://github.com/BayBreezy/ui-thing/commit/39e4380))
|
|
115
|
-
- Update card page ([17dce70](https://github.com/BayBreezy/ui-thing/commit/17dce70))
|
|
116
|
-
- Update new versions of dependencies ([a76d496](https://github.com/BayBreezy/ui-thing/commit/a76d496))
|
|
117
|
-
- Update deps ([3a34b9b](https://github.com/BayBreezy/ui-thing/commit/3a34b9b))
|
|
118
|
-
- Update deps ([e0218a8](https://github.com/BayBreezy/ui-thing/commit/e0218a8))
|
|
119
|
-
- Remove auto animate from nuxt config ([c4b96f9](https://github.com/BayBreezy/ui-thing/commit/c4b96f9))
|
|
120
|
-
- Update add command to respect ui-thing config ([7703966](https://github.com/BayBreezy/ui-thing/commit/7703966))
|
|
121
|
-
- Update deps & commands & utils ([19dbcb8](https://github.com/BayBreezy/ui-thing/commit/19dbcb8))
|
|
122
|
-
- Update deps ([ef6465d](https://github.com/BayBreezy/ui-thing/commit/ef6465d))
|
|
123
|
-
- Remove unused imports & format ([c255c1d](https://github.com/BayBreezy/ui-thing/commit/c255c1d))
|
|
124
|
-
- Fix import paths in add.ts and config.ts ([c1dc73e](https://github.com/BayBreezy/ui-thing/commit/c1dc73e))
|
|
125
|
-
- Update toast comps and deps ([d5a5305](https://github.com/BayBreezy/ui-thing/commit/d5a5305))
|
|
126
|
-
- Update comps & docs ([f05373c](https://github.com/BayBreezy/ui-thing/commit/f05373c))
|
|
127
|
-
- Add cli page ([9dea6ce](https://github.com/BayBreezy/ui-thing/commit/9dea6ce))
|
|
128
|
-
- Update width of search in nav & add cli page ([1c3ebcd](https://github.com/BayBreezy/ui-thing/commit/1c3ebcd))
|
|
129
|
-
- Add seo stuff ([d2d44bc](https://github.com/BayBreezy/ui-thing/commit/d2d44bc))
|
|
130
|
-
- Update cli ([432607d](https://github.com/BayBreezy/ui-thing/commit/432607d))
|
|
131
|
-
- Update cover image in readme ([3eb2816](https://github.com/BayBreezy/ui-thing/commit/3eb2816))
|
|
132
|
-
- Change wording of force option question ([fe5fe6c](https://github.com/BayBreezy/ui-thing/commit/fe5fe6c))
|
|
44
|
+
- Update readme ([88be325](https://github.com/BayBreezy/ui-thing-cli/commit/88be325))
|
|
45
|
+
- Change package name ([bd17f8d](https://github.com/BayBreezy/ui-thing-cli/commit/bd17f8d))
|
|
46
|
+
- Set version back to 0.0.2 ([1c7b6b2](https://github.com/BayBreezy/ui-thing-cli/commit/1c7b6b2))
|
|
133
47
|
|
|
134
48
|
### ❤️ Contributors
|
|
135
49
|
|
|
136
|
-
- BayBreezy <behon.baker@yahoo.com>
|
|
137
50
|
- Behon Baker <behon.baker@yahoo.com>
|
|
138
51
|
|
|
52
|
+
## v0.0.2
|
|
53
|
+
|
|
54
|
+
### 🏡 Chore
|
|
55
|
+
|
|
56
|
+
- Add 1st changeset ([ec0083c](https://github.com/BayBreezy/ui-thing-cli/commit/ec0083c))
|
|
57
|
+
- Add release script ([ea11cae](https://github.com/BayBreezy/ui-thing-cli/commit/ea11cae))
|
|
58
|
+
|
|
59
|
+
### ❤️ Contributors
|
|
60
|
+
|
|
61
|
+
- Behon Baker <behon.baker@yahoo.com>
|
package/dist/index.d.ts
CHANGED
|
File without changes
|
package/dist/index.js
CHANGED
|
@@ -1444,7 +1444,7 @@ export const buttonStyles = tv({\r
|
|
|
1444
1444
|
const forwarded = useForwardPropsEmits(props, emit);\r
|
|
1445
1445
|
\r
|
|
1446
1446
|
const styles = tv({\r
|
|
1447
|
-
base: "peer h-
|
|
1447
|
+
base: "peer h-[18px] w-[18px] shrink-0 rounded-sm border border-primary ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground md:h-4 md:w-4",\r
|
|
1448
1448
|
});\r
|
|
1449
1449
|
</script>\r
|
|
1450
1450
|
`},{fileName:"Checkbox/Indicator.vue",dirPath:"components/UI",fileContent:`<template>\r
|
|
@@ -3339,7 +3339,7 @@ export function useFormField() {\r
|
|
|
3339
3339
|
const localModel = useVModel(props, "modelValue", emits);\r
|
|
3340
3340
|
\r
|
|
3341
3341
|
const styles = tv({\r
|
|
3342
|
-
base: "flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground file:hover:cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 sm:text-sm",\r
|
|
3342
|
+
base: "flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-[16px] ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground file:hover:cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 sm:text-sm",\r
|
|
3343
3343
|
});\r
|
|
3344
3344
|
</script>\r
|
|
3345
3345
|
`}],utils:[],composables:[]},{name:"Keyboard Key",value:"kbd",deps:["radix-vue","tailwind-variants"],devDeps:[],nuxtModules:[],files:[{fileName:"Kbd.vue",dirPath:"components/UI",fileContent:`<template>
|
|
@@ -3396,7 +3396,7 @@ export function useFormField() {\r
|
|
|
3396
3396
|
const forwarded = useForwardProps(useOmit(props, ["class"]));\r
|
|
3397
3397
|
\r
|
|
3398
3398
|
const styles = tv({\r
|
|
3399
|
-
base: "inline-block text-
|
|
3399
|
+
base: "inline-block text-base font-medium leading-none hover:cursor-pointer peer-disabled:cursor-not-allowed peer-disabled:opacity-70 sm:text-sm",\r
|
|
3400
3400
|
});\r
|
|
3401
3401
|
</script>\r
|
|
3402
3402
|
`}],utils:[],composables:[]},{name:"Menubar",value:"menubar",deps:["radix-vue","tailwind-variants"],devDeps:["tailwindcss-animate","nuxt-lodash","nuxt-icon"],nuxtModules:["nuxt-lodash","nuxt-icon"],files:[{fileName:"Menubar/Arrow.vue",dirPath:"components/UI",fileContent:`<template>
|
|
@@ -4118,7 +4118,7 @@ export function useFormField() {\r
|
|
|
4118
4118
|
const localModel = useVModel(props, "modelValue", emits);
|
|
4119
4119
|
|
|
4120
4120
|
const styles = tv({
|
|
4121
|
-
base: "mr-3 h-10 w-10 rounded-md border border-input bg-background p-1 text-center font-medium [-moz-appearance:_textfield] selection:bg-primary
|
|
4121
|
+
base: "mr-3 h-10 w-10 rounded-md border border-input bg-background p-1 text-center text-base font-medium [-moz-appearance:_textfield] selection:bg-primary selection:text-primary-foreground placeholder:text-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 sm:text-sm [&::-webkit-inner-spin-button]:m-0 [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",
|
|
4122
4122
|
variants: {
|
|
4123
4123
|
separator: {
|
|
4124
4124
|
true: "mx-2",
|
|
@@ -6618,53 +6618,6 @@ export { toast, useToast };
|
|
|
6618
6618
|
|
|
6619
6619
|
const props = defineProps<TooltipTriggerProps>();
|
|
6620
6620
|
</script>
|
|
6621
|
-
`}],utils:[],composables:[]},{name:"Vue Sonner",value:"vue-sonner",deps:["vue-sonner"],devDeps:[],nuxtModules:[],instructions:["Remember to add the <UIVueSonner /> tag to your app.vue/layout file."],files:[{fileName:"VueSonner.client.vue",dirPath:"components/UI",fileContent:`<template>\r
|
|
6622
|
-
<Toaster\r
|
|
6623
|
-
position="top-right"\r
|
|
6624
|
-
:visible-toasts="5"\r
|
|
6625
|
-
rich-colors\r
|
|
6626
|
-
:duration="7000"\r
|
|
6627
|
-
close-button\r
|
|
6628
|
-
:theme="$colorMode.value == 'dark' ? 'dark' : 'light'"\r
|
|
6629
|
-
/>\r
|
|
6630
|
-
</template>\r
|
|
6631
|
-
\r
|
|
6632
|
-
<script lang="ts" setup>\r
|
|
6633
|
-
import { Toaster } from "vue-sonner";\r
|
|
6634
|
-
</script>\r
|
|
6635
|
-
<style scoped>\r
|
|
6636
|
-
:deep([data-sonner-toaster][data-theme="dark"]),\r
|
|
6637
|
-
:deep([data-sonner-toaster][data-theme="light"]) {\r
|
|
6638
|
-
--normal-bg: theme("colors.popover.DEFAULT");\r
|
|
6639
|
-
--normal-border: theme("colors.border");\r
|
|
6640
|
-
--normal-text: theme("colors.popover.foreground");\r
|
|
6641
|
-
--border-radius: theme("borderRadius.md");\r
|
|
6642
|
-
}\r
|
|
6643
|
-
:deep([data-sonner-toaster]) {\r
|
|
6644
|
-
@apply font-sans;\r
|
|
6645
|
-
}\r
|
|
6646
|
-
:deep([data-sonner-toast][data-styled="true"]) {\r
|
|
6647
|
-
@apply items-start;\r
|
|
6648
|
-
}\r
|
|
6649
|
-
:deep([data-sonner-toast] [data-icon]) {\r
|
|
6650
|
-
@apply mt-0.5;\r
|
|
6651
|
-
}\r
|
|
6652
|
-
:deep([data-sonner-toast] [data-title]) {\r
|
|
6653
|
-
@apply text-sm font-semibold;\r
|
|
6654
|
-
}\r
|
|
6655
|
-
:deep([data-sonner-toast] [data-description]) {\r
|
|
6656
|
-
@apply text-sm;\r
|
|
6657
|
-
}\r
|
|
6658
|
-
:deep([data-sonner-toast] [data-close-button]) {\r
|
|
6659
|
-
@apply border border-border bg-background text-foreground hover:border-inherit hover:bg-inherit hover:text-accent-foreground;\r
|
|
6660
|
-
}\r
|
|
6661
|
-
:deep([data-sonner-toast] [data-button]) {\r
|
|
6662
|
-
@apply bg-primary text-primary-foreground transition hover:opacity-90 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background;\r
|
|
6663
|
-
}\r
|
|
6664
|
-
:deep(.sonner-loading-bar) {\r
|
|
6665
|
-
@apply bg-muted-foreground;\r
|
|
6666
|
-
}\r
|
|
6667
|
-
</style>\r
|
|
6668
6621
|
`}],utils:[],composables:[]},{name:"VeeCheckbox",value:"vue-checkbox",deps:["@vee-validate/nuxt","radix-vue","@morev/vue-transitions","tailwind-variants"],askValidator:!0,devDeps:["nuxt-icon"],nuxtModules:["@vee-validate/nuxt","@morev/vue-transitions/nuxt","nuxt-icon"],components:["checkbox","label"],files:[{fileName:"Vee/Checkbox.vue",dirPath:"components/UI",fileContent:`<template>
|
|
6669
6622
|
<div :class="styles({ class: props.class })">
|
|
6670
6623
|
<UICheckbox
|
|
@@ -7018,6 +6971,53 @@ export { toast, useToast };
|
|
|
7018
6971
|
syncVModel: true,\r
|
|
7019
6972
|
});\r
|
|
7020
6973
|
</script>\r
|
|
6974
|
+
`}],utils:[],composables:[]},{name:"Vue Sonner",value:"vue-sonner",deps:["vue-sonner"],devDeps:[],nuxtModules:[],instructions:["Remember to add the <UIVueSonner /> tag to your app.vue/layout file."],files:[{fileName:"VueSonner.client.vue",dirPath:"components/UI",fileContent:`<template>\r
|
|
6975
|
+
<Toaster\r
|
|
6976
|
+
position="top-right"\r
|
|
6977
|
+
:visible-toasts="5"\r
|
|
6978
|
+
rich-colors\r
|
|
6979
|
+
:duration="7000"\r
|
|
6980
|
+
close-button\r
|
|
6981
|
+
:theme="$colorMode.value == 'dark' ? 'dark' : 'light'"\r
|
|
6982
|
+
/>\r
|
|
6983
|
+
</template>\r
|
|
6984
|
+
\r
|
|
6985
|
+
<script lang="ts" setup>\r
|
|
6986
|
+
import { Toaster } from "vue-sonner";\r
|
|
6987
|
+
</script>\r
|
|
6988
|
+
<style scoped>\r
|
|
6989
|
+
:deep([data-sonner-toaster][data-theme="dark"]),\r
|
|
6990
|
+
:deep([data-sonner-toaster][data-theme="light"]) {\r
|
|
6991
|
+
--normal-bg: theme("colors.popover.DEFAULT");\r
|
|
6992
|
+
--normal-border: theme("colors.border");\r
|
|
6993
|
+
--normal-text: theme("colors.popover.foreground");\r
|
|
6994
|
+
--border-radius: theme("borderRadius.md");\r
|
|
6995
|
+
}\r
|
|
6996
|
+
:deep([data-sonner-toaster]) {\r
|
|
6997
|
+
@apply font-sans;\r
|
|
6998
|
+
}\r
|
|
6999
|
+
:deep([data-sonner-toast][data-styled="true"]) {\r
|
|
7000
|
+
@apply items-start;\r
|
|
7001
|
+
}\r
|
|
7002
|
+
:deep([data-sonner-toast] [data-icon]) {\r
|
|
7003
|
+
@apply mt-0.5;\r
|
|
7004
|
+
}\r
|
|
7005
|
+
:deep([data-sonner-toast] [data-title]) {\r
|
|
7006
|
+
@apply text-sm font-semibold;\r
|
|
7007
|
+
}\r
|
|
7008
|
+
:deep([data-sonner-toast] [data-description]) {\r
|
|
7009
|
+
@apply text-sm;\r
|
|
7010
|
+
}\r
|
|
7011
|
+
:deep([data-sonner-toast] [data-close-button]) {\r
|
|
7012
|
+
@apply border border-border bg-background text-foreground hover:border-inherit hover:bg-inherit hover:text-accent-foreground;\r
|
|
7013
|
+
}\r
|
|
7014
|
+
:deep([data-sonner-toast] [data-button]) {\r
|
|
7015
|
+
@apply bg-primary text-primary-foreground transition hover:opacity-90 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background;\r
|
|
7016
|
+
}\r
|
|
7017
|
+
:deep(.sonner-loading-bar) {\r
|
|
7018
|
+
@apply bg-muted-foreground;\r
|
|
7019
|
+
}\r
|
|
7020
|
+
</style>\r
|
|
7021
7021
|
`}],utils:[],composables:[]},{name:"VeeTextarea",value:"vue-textarea",deps:["@vee-validate/nuxt","radix-vue","@morev/vue-transitions","tailwind-variants"],askValidator:!0,devDeps:["nuxt-icon"],nuxtModules:["@vee-validate/nuxt","@morev/vue-transitions/nuxt","nuxt-icon"],components:["textarea","label"],files:[{fileName:"Vee/Textarea.vue",dirPath:"components/UI",fileContent:`<template>\r
|
|
7022
7022
|
<div class="w-full">\r
|
|
7023
7023
|
<UILabel :for="inputId" v-if="label" :class="[errorMessage && 'text-destructive', 'mb-2']">{{\r
|