ui-thing 0.0.19 → 0.0.21
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/CHANGELOG.md +24 -0
- package/dist/index.js +134 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/comps.ts +56 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## v0.0.21
|
|
4
|
+
|
|
5
|
+
[compare changes](https://github.com/BayBreezy/ui-thing-cli/compare/v0.0.20...v0.0.21)
|
|
6
|
+
|
|
7
|
+
### 🏡 Chore
|
|
8
|
+
|
|
9
|
+
- Update deps & components ([ce7977d](https://github.com/BayBreezy/ui-thing-cli/commit/ce7977d))
|
|
10
|
+
|
|
11
|
+
### ❤️ Contributors
|
|
12
|
+
|
|
13
|
+
- Behon Baker <behon.baker@yahoo.com>
|
|
14
|
+
|
|
15
|
+
## v0.0.20
|
|
16
|
+
|
|
17
|
+
[compare changes](https://github.com/BayBreezy/ui-thing-cli/compare/v0.0.19...v0.0.20)
|
|
18
|
+
|
|
19
|
+
### 🏡 Chore
|
|
20
|
+
|
|
21
|
+
- **components:** Add new components - navbar, container & divider ([fb970d5](https://github.com/BayBreezy/ui-thing-cli/commit/fb970d5))
|
|
22
|
+
|
|
23
|
+
### ❤️ Contributors
|
|
24
|
+
|
|
25
|
+
- Behon Baker <behon.baker@yahoo.com>
|
|
26
|
+
|
|
3
27
|
## v0.0.19
|
|
4
28
|
|
|
5
29
|
[compare changes](https://github.com/BayBreezy/ui-thing-cli/compare/v0.0.18...v0.0.19)
|
package/dist/index.js
CHANGED
|
@@ -1871,6 +1871,31 @@ export const buttonStyles = tv({\r
|
|
|
1871
1871
|
base: "ml-auto text-xs tracking-widest text-muted-foreground",
|
|
1872
1872
|
});
|
|
1873
1873
|
</script>
|
|
1874
|
+
`}],utils:[],composables:[],plugins:[]},{name:"Container",value:"container",deps:["radix-vue","tailwind-variants"],devDeps:[],nuxtModules:[],files:[{fileName:"Container.vue",dirPath:"components/UI",fileContent:`<template>\r
|
|
1875
|
+
<Primitive :class="styles({ class: props.class })" v-bind="reactiveOmit(props, 'class')">\r
|
|
1876
|
+
<slot></slot>\r
|
|
1877
|
+
</Primitive>\r
|
|
1878
|
+
</template>\r
|
|
1879
|
+
\r
|
|
1880
|
+
<script lang="ts" setup>\r
|
|
1881
|
+
import { Primitive } from "radix-vue";\r
|
|
1882
|
+
import type { PrimitiveProps } from "radix-vue";\r
|
|
1883
|
+
\r
|
|
1884
|
+
const props = withDefaults(\r
|
|
1885
|
+
defineProps<\r
|
|
1886
|
+
PrimitiveProps & {\r
|
|
1887
|
+
class?: any;\r
|
|
1888
|
+
}\r
|
|
1889
|
+
>(),\r
|
|
1890
|
+
{\r
|
|
1891
|
+
as: "div",\r
|
|
1892
|
+
}\r
|
|
1893
|
+
);\r
|
|
1894
|
+
\r
|
|
1895
|
+
const styles = tv({\r
|
|
1896
|
+
base: "container mx-auto",\r
|
|
1897
|
+
});\r
|
|
1898
|
+
</script>\r
|
|
1874
1899
|
`}],utils:[],composables:[],plugins:[]},{name:"Context Menu",value:"context-menu",deps:["radix-vue","tailwind-variants"],devDeps:["tailwindcss-animate","nuxt-icon"],nuxtModules:["nuxt-icon"],files:[{fileName:"ContextMenu/Arrow.vue",dirPath:"components/UI",fileContent:`<template>
|
|
1875
1900
|
<ContextMenuArrow v-bind="reactiveOmit(props, 'class')" :class="styles({ class: props.class })" />
|
|
1876
1901
|
</template>
|
|
@@ -3653,6 +3678,83 @@ export default defineNuxtPlugin((nuxtApp) => {\r
|
|
|
3653
3678
|
|
|
3654
3679
|
const props = defineProps<DialogTriggerProps>();
|
|
3655
3680
|
</script>
|
|
3681
|
+
`}],utils:[],composables:[],plugins:[]},{name:"Divider",value:"divider",deps:["radix-vue","tailwind-variants"],devDeps:["nuxt-icon"],nuxtModules:["nuxt-icon"],components:["avatar"],files:[{fileName:"Divider.vue",dirPath:"components/UI",fileContent:`<template>\r
|
|
3682
|
+
<Primitive as="div" :class="base({ orientation, type, class: props.class })">\r
|
|
3683
|
+
<Separator :orientation="orientation" :class="border({ orientation, type })" />\r
|
|
3684
|
+
<template v-if="label || icon || avatar || $slots.default">\r
|
|
3685
|
+
<div :class="container({ orientation, type })">\r
|
|
3686
|
+
<slot>\r
|
|
3687
|
+
<slot name="label">\r
|
|
3688
|
+
<span v-if="label" :class="labelClass({ orientation, type })">\r
|
|
3689
|
+
{{ label }}\r
|
|
3690
|
+
</span>\r
|
|
3691
|
+
</slot>\r
|
|
3692
|
+
<slot name="icon">\r
|
|
3693
|
+
<Icon v-if="icon" :name="icon" :class="iconClass({ orientation, type })" />\r
|
|
3694
|
+
</slot>\r
|
|
3695
|
+
<slot name="avatar">\r
|
|
3696
|
+
<UiAvatar v-if="avatar" :src="avatar" />\r
|
|
3697
|
+
</slot>\r
|
|
3698
|
+
</slot>\r
|
|
3699
|
+
</div>\r
|
|
3700
|
+
</template>\r
|
|
3701
|
+
<Separator :orientation="orientation" :class="border({ orientation, type })" />\r
|
|
3702
|
+
</Primitive>\r
|
|
3703
|
+
</template>\r
|
|
3704
|
+
\r
|
|
3705
|
+
<script lang="ts" setup>\r
|
|
3706
|
+
import { Primitive, Separator } from "radix-vue";\r
|
|
3707
|
+
\r
|
|
3708
|
+
const props = defineProps<{\r
|
|
3709
|
+
class?: any;\r
|
|
3710
|
+
type?: VariantProps<typeof style>["type"];\r
|
|
3711
|
+
orientation?: VariantProps<typeof style>["orientation"];\r
|
|
3712
|
+
icon?: string;\r
|
|
3713
|
+
label?: string;\r
|
|
3714
|
+
avatar?: string;\r
|
|
3715
|
+
}>();\r
|
|
3716
|
+
\r
|
|
3717
|
+
const style = tv({\r
|
|
3718
|
+
slots: {\r
|
|
3719
|
+
base: "flex w-full items-center text-center align-middle",\r
|
|
3720
|
+
container: "flex font-medium",\r
|
|
3721
|
+
border: "flex border-border",\r
|
|
3722
|
+
icon: "h-5 w-5 shrink-0",\r
|
|
3723
|
+
label: "text-sm",\r
|
|
3724
|
+
},\r
|
|
3725
|
+
variants: {\r
|
|
3726
|
+
orientation: {\r
|
|
3727
|
+
horizontal: {\r
|
|
3728
|
+
base: "flex-row",\r
|
|
3729
|
+
container: "mx-3 whitespace-nowrap",\r
|
|
3730
|
+
border: "w-full border-t",\r
|
|
3731
|
+
},\r
|
|
3732
|
+
vertical: {\r
|
|
3733
|
+
base: "h-full flex-col",\r
|
|
3734
|
+
container: "my-3",\r
|
|
3735
|
+
border: "h-full border-s",\r
|
|
3736
|
+
},\r
|
|
3737
|
+
},\r
|
|
3738
|
+
type: {\r
|
|
3739
|
+
solid: {\r
|
|
3740
|
+
border: "border-solid",\r
|
|
3741
|
+
},\r
|
|
3742
|
+
dashed: {\r
|
|
3743
|
+
border: "border-dashed",\r
|
|
3744
|
+
},\r
|
|
3745
|
+
dotted: {\r
|
|
3746
|
+
border: "border-dotted",\r
|
|
3747
|
+
},\r
|
|
3748
|
+
},\r
|
|
3749
|
+
},\r
|
|
3750
|
+
defaultVariants: {\r
|
|
3751
|
+
orientation: "horizontal",\r
|
|
3752
|
+
type: "solid",\r
|
|
3753
|
+
},\r
|
|
3754
|
+
});\r
|
|
3755
|
+
\r
|
|
3756
|
+
const { base, border, container, icon: iconClass, label: labelClass } = style();\r
|
|
3757
|
+
</script>\r
|
|
3656
3758
|
`}],utils:[],composables:[],plugins:[]},{name:"Dropdown Menu",value:"dropdown-menu",deps:["radix-vue","tailwind-variants"],devDeps:["tailwindcss-animate","nuxt-icon"],nuxtModules:["nuxt-icon"],files:[{fileName:"DropdownMenu/Arrow.vue",dirPath:"components/UI",fileContent:`<template>\r
|
|
3657
3759
|
<DropdownMenuArrow\r
|
|
3658
3760
|
v-bind="reactiveOmit(props, 'class')"\r
|
|
@@ -5209,6 +5311,37 @@ export function useFormField() {\r
|
|
|
5209
5311
|
}
|
|
5210
5312
|
});
|
|
5211
5313
|
</script>
|
|
5314
|
+
`}],utils:[],composables:[],plugins:[]},{name:"Navbar",value:"navbar",deps:["radix-vue","tailwind-variants"],devDeps:[],nuxtModules:[],files:[{fileName:"Navbar.vue",dirPath:"components/UI",fileContent:`<template>\r
|
|
5315
|
+
<Primitive :class="styles({ sticky, class: props.class })" v-bind="reactiveOmit(props, 'class')">\r
|
|
5316
|
+
<slot> </slot>\r
|
|
5317
|
+
</Primitive>\r
|
|
5318
|
+
</template>\r
|
|
5319
|
+
\r
|
|
5320
|
+
<script lang="ts" setup>\r
|
|
5321
|
+
import { Primitive } from "radix-vue";\r
|
|
5322
|
+
import type { PrimitiveProps } from "radix-vue";\r
|
|
5323
|
+
\r
|
|
5324
|
+
const props = withDefaults(\r
|
|
5325
|
+
defineProps<\r
|
|
5326
|
+
PrimitiveProps & {\r
|
|
5327
|
+
class?: any;\r
|
|
5328
|
+
sticky?: boolean;\r
|
|
5329
|
+
}\r
|
|
5330
|
+
>(),\r
|
|
5331
|
+
{\r
|
|
5332
|
+
as: "header",\r
|
|
5333
|
+
}\r
|
|
5334
|
+
);\r
|
|
5335
|
+
\r
|
|
5336
|
+
const styles = tv({\r
|
|
5337
|
+
base: "z-20 border-b bg-background/90 backdrop-blur",\r
|
|
5338
|
+
variants: {\r
|
|
5339
|
+
sticky: {\r
|
|
5340
|
+
true: "sticky top-0",\r
|
|
5341
|
+
},\r
|
|
5342
|
+
},\r
|
|
5343
|
+
});\r
|
|
5344
|
+
</script>\r
|
|
5212
5345
|
`}],utils:[],composables:[],plugins:[]},{name:"Navigation Menu",value:"navigation-menu",deps:["radix-vue","tailwind-variants"],devDeps:["tailwindcss-animate","nuxt-icon"],nuxtModules:["nuxt-icon"],files:[{fileName:"NavigationMenu/Content.vue",dirPath:"components/UI",fileContent:`<template>
|
|
5213
5346
|
<NavigationMenuContent v-bind="forwarded" :class="styles({ class: props.class })">
|
|
5214
5347
|
<slot></slot>
|
|
@@ -7993,7 +8126,7 @@ export { toast, useToast };
|
|
|
7993
8126
|
const forwarded = useForwardPropsEmits(reactiveOmit(props, "class"), emits);\r
|
|
7994
8127
|
\r
|
|
7995
8128
|
const styles = tv({\r
|
|
7996
|
-
base: "group pointer-events-auto relative flex w-full items-center justify-between gap-4 overflow-hidden rounded-md border p-4 pr-9 shadow-sm transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",\r
|
|
8129
|
+
base: "group pointer-events-auto relative flex w-full items-center justify-between gap-4 overflow-hidden rounded-md border p-4 pr-9 shadow-sm transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:duration-300 data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=open]:fade-in-0 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",\r
|
|
7997
8130
|
variants: {\r
|
|
7998
8131
|
variant: {\r
|
|
7999
8132
|
default: "border bg-background text-foreground",\r
|