ui-thing 0.0.5 → 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.
@@ -1,19 +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
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/.prettierrc CHANGED
@@ -1,12 +1,12 @@
1
- {
2
- "arrowParens": "always",
3
- "endOfLine": "lf",
4
- "plugins": ["@ianvs/prettier-plugin-sort-imports"],
5
- "printWidth": 100,
6
- "semi": true,
7
- "singleQuote": false,
8
- "tabWidth": 2,
9
- "trailingComma": "es5",
10
- "useTabs": false,
11
- "importOrder": ["<BUILTIN_MODULES>", "<THIRD_PARTY_MODULES>", "<TYPES>", "", "^[.]"]
12
- }
1
+ {
2
+ "arrowParens": "always",
3
+ "endOfLine": "lf",
4
+ "plugins": ["@ianvs/prettier-plugin-sort-imports"],
5
+ "printWidth": 100,
6
+ "semi": true,
7
+ "singleQuote": false,
8
+ "tabWidth": 2,
9
+ "trailingComma": "es5",
10
+ "useTabs": false,
11
+ "importOrder": ["<BUILTIN_MODULES>", "<THIRD_PARTY_MODULES>", "<TYPES>", "", "^[.]"]
12
+ }
package/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
- # Changelog
2
-
1
+ # Changelog
2
+
3
+ ## v0.0.6
4
+
5
+ [compare changes](https://github.com/BayBreezy/ui-thing-cli/compare/v0.0.5...v0.0.6)
6
+
7
+ ### 🚀 Enhancements
8
+
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
+
3
23
  ## v0.0.5
4
24
 
5
25
  [compare changes](https://github.com/BayBreezy/ui-thing-cli/compare/v0.0.3...v0.0.5)
@@ -15,27 +35,27 @@
15
35
 
16
36
  - Behon Baker <behon.baker@yahoo.com>
17
37
 
18
- ## v0.0.3
19
-
20
- [compare changes](https://github.com/BayBreezy/ui-thing-cli/compare/v0.0.2...v0.0.3)
21
-
22
- ### 🏡 Chore
23
-
24
- - Update readme ([88be325](https://github.com/BayBreezy/ui-thing-cli/commit/88be325))
25
- - Change package name ([bd17f8d](https://github.com/BayBreezy/ui-thing-cli/commit/bd17f8d))
26
- - Set version back to 0.0.2 ([1c7b6b2](https://github.com/BayBreezy/ui-thing-cli/commit/1c7b6b2))
27
-
28
- ### ❤️ Contributors
29
-
30
- - Behon Baker <behon.baker@yahoo.com>
31
-
32
- ## v0.0.2
33
-
34
- ### 🏡 Chore
35
-
36
- - Add 1st changeset ([ec0083c](https://github.com/BayBreezy/ui-thing-cli/commit/ec0083c))
37
- - Add release script ([ea11cae](https://github.com/BayBreezy/ui-thing-cli/commit/ea11cae))
38
-
39
- ### ❤️ Contributors
40
-
41
- - Behon Baker <behon.baker@yahoo.com>
38
+ ## v0.0.3
39
+
40
+ [compare changes](https://github.com/BayBreezy/ui-thing-cli/compare/v0.0.2...v0.0.3)
41
+
42
+ ### 🏡 Chore
43
+
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))
47
+
48
+ ### ❤️ Contributors
49
+
50
+ - Behon Baker <behon.baker@yahoo.com>
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/README.md CHANGED
@@ -1,69 +1,69 @@
1
- # UI Thing CLI
2
-
3
- ![Cover Image](https://ui-thing.behonbaker.com/cover.png)
4
-
5
- ## Credits
6
-
7
- - shadcn/ui
8
- - Radiv-Vue
9
- - TailwindCSS
10
- - Nuxt
11
- - Nuxt UI
12
-
13
- Thanks to the maintainers of the other third party libraries used in this project.
14
-
15
- ## Getting Started
16
-
17
- - Create a Nuxt 3 project
18
- - Install the dependencies
19
- - Run the init command
20
-
21
- ```bash
22
- npx ui-thing@latest init
23
- ```
24
-
25
- - Start the dev server
26
-
27
- ```bash
28
- npm run dev
29
- ```
30
-
31
- - Add components to your project with the `add` command
32
-
33
- ```bash
34
- npx ui-thing@latest add
35
- ```
36
-
37
- ## Commands
38
-
39
- ### `init`
40
-
41
- ```bash
42
- npx ui-thing@latest init
43
- ```
44
-
45
- This command will install the dependencies and add the required configuration to your project.
46
-
47
- ### `add`
48
-
49
- ```bash
50
- npx ui-thing@latest add
51
- ```
52
-
53
- This command will add the components to your project.
54
-
55
- ### `theme`
56
-
57
- ```bash
58
- npx ui-thing@latest theme
59
- ```
60
-
61
- This command will add the theme to your project.
62
-
63
- ### `prettier`
64
-
65
- ```bash
66
- npx ui-thing@latest prettier
67
- ```
68
-
69
- This command will add the prettier configuration to your project.
1
+ # UI Thing CLI
2
+
3
+ ![Cover Image](https://ui-thing.behonbaker.com/cover.png)
4
+
5
+ ## Credits
6
+
7
+ - shadcn/ui
8
+ - Radiv-Vue
9
+ - TailwindCSS
10
+ - Nuxt
11
+ - Nuxt UI
12
+
13
+ Thanks to the maintainers of the other third party libraries used in this project.
14
+
15
+ ## Getting Started
16
+
17
+ - Create a Nuxt 3 project
18
+ - Install the dependencies
19
+ - Run the init command
20
+
21
+ ```bash
22
+ npx ui-thing@latest init
23
+ ```
24
+
25
+ - Start the dev server
26
+
27
+ ```bash
28
+ npm run dev
29
+ ```
30
+
31
+ - Add components to your project with the `add` command
32
+
33
+ ```bash
34
+ npx ui-thing@latest add
35
+ ```
36
+
37
+ ## Commands
38
+
39
+ ### `init`
40
+
41
+ ```bash
42
+ npx ui-thing@latest init
43
+ ```
44
+
45
+ This command will install the dependencies and add the required configuration to your project.
46
+
47
+ ### `add`
48
+
49
+ ```bash
50
+ npx ui-thing@latest add
51
+ ```
52
+
53
+ This command will add the components to your project.
54
+
55
+ ### `theme`
56
+
57
+ ```bash
58
+ npx ui-thing@latest theme
59
+ ```
60
+
61
+ This command will add the theme to your project.
62
+
63
+ ### `prettier`
64
+
65
+ ```bash
66
+ npx ui-thing@latest prettier
67
+ ```
68
+
69
+ This command will add the prettier configuration to your project.
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-4 w-4 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",\r
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-sm font-medium leading-none hover:cursor-pointer peer-disabled:cursor-not-allowed peer-disabled:opacity-70",\r
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 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",
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