ui-thing 0.0.19 → 0.0.20

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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.0.20
4
+
5
+ [compare changes](https://github.com/BayBreezy/ui-thing-cli/compare/v0.0.19...v0.0.20)
6
+
7
+ ### 🏡 Chore
8
+
9
+ - **components:** Add new components - navbar, container & divider ([fb970d5](https://github.com/BayBreezy/ui-thing-cli/commit/fb970d5))
10
+
11
+ ### ❤️ Contributors
12
+
13
+ - Behon Baker <behon.baker@yahoo.com>
14
+
3
15
  ## v0.0.19
4
16
 
5
17
  [compare changes](https://github.com/BayBreezy/ui-thing-cli/compare/v0.0.18...v0.0.19)
package/dist/index.js CHANGED
@@ -1871,6 +1871,30 @@ 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 type { PrimitiveProps } from "radix-vue";\r
1882
+ \r
1883
+ const props = withDefaults(\r
1884
+ defineProps<\r
1885
+ PrimitiveProps & {\r
1886
+ class?: any;\r
1887
+ }\r
1888
+ >(),\r
1889
+ {\r
1890
+ as: "div",\r
1891
+ }\r
1892
+ );\r
1893
+ \r
1894
+ const styles = tv({\r
1895
+ base: "container mx-auto",\r
1896
+ });\r
1897
+ </script>\r
1874
1898
  `}],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
1899
  <ContextMenuArrow v-bind="reactiveOmit(props, 'class')" :class="styles({ class: props.class })" />
1876
1900
  </template>
@@ -3653,6 +3677,83 @@ export default defineNuxtPlugin((nuxtApp) => {\r
3653
3677
 
3654
3678
  const props = defineProps<DialogTriggerProps>();
3655
3679
  </script>
3680
+ `}],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
3681
+ <Primitive as="div" :class="base({ orientation, type, class: props.class })">\r
3682
+ <Separator :orientation="orientation" :class="border({ orientation, type })" />\r
3683
+ <template v-if="label || icon || avatar || $slots.default">\r
3684
+ <div :class="container({ orientation, type })">\r
3685
+ <slot>\r
3686
+ <slot name="label">\r
3687
+ <span v-if="label" :class="labelClass({ orientation, type })">\r
3688
+ {{ label }}\r
3689
+ </span>\r
3690
+ </slot>\r
3691
+ <slot name="icon">\r
3692
+ <Icon v-if="icon" :name="icon" :class="iconClass({ orientation, type })" />\r
3693
+ </slot>\r
3694
+ <slot name="avatar">\r
3695
+ <UiAvatar v-if="avatar" :src="avatar" />\r
3696
+ </slot>\r
3697
+ </slot>\r
3698
+ </div>\r
3699
+ </template>\r
3700
+ <Separator :orientation="orientation" :class="border({ orientation, type })" />\r
3701
+ </Primitive>\r
3702
+ </template>\r
3703
+ \r
3704
+ <script lang="ts" setup>\r
3705
+ import { Primitive, Separator } from "radix-vue";\r
3706
+ \r
3707
+ const props = defineProps<{\r
3708
+ class?: any;\r
3709
+ type?: VariantProps<typeof style>["type"];\r
3710
+ orientation?: VariantProps<typeof style>["orientation"];\r
3711
+ icon?: string;\r
3712
+ label?: string;\r
3713
+ avatar?: string;\r
3714
+ }>();\r
3715
+ \r
3716
+ const style = tv({\r
3717
+ slots: {\r
3718
+ base: "flex w-full items-center text-center align-middle",\r
3719
+ container: "flex font-medium",\r
3720
+ border: "flex border-border",\r
3721
+ icon: "h-5 w-5 shrink-0",\r
3722
+ label: "text-sm",\r
3723
+ },\r
3724
+ variants: {\r
3725
+ orientation: {\r
3726
+ horizontal: {\r
3727
+ base: "flex-row",\r
3728
+ container: "mx-3 whitespace-nowrap",\r
3729
+ border: "w-full border-t",\r
3730
+ },\r
3731
+ vertical: {\r
3732
+ base: "h-full flex-col",\r
3733
+ container: "my-3",\r
3734
+ border: "h-full border-s",\r
3735
+ },\r
3736
+ },\r
3737
+ type: {\r
3738
+ solid: {\r
3739
+ border: "border-solid",\r
3740
+ },\r
3741
+ dashed: {\r
3742
+ border: "border-dashed",\r
3743
+ },\r
3744
+ dotted: {\r
3745
+ border: "border-dotted",\r
3746
+ },\r
3747
+ },\r
3748
+ },\r
3749
+ defaultVariants: {\r
3750
+ orientation: "horizontal",\r
3751
+ type: "solid",\r
3752
+ },\r
3753
+ });\r
3754
+ \r
3755
+ const { base, border, container, icon: iconClass, label: labelClass } = style();\r
3756
+ </script>\r
3656
3757
  `}],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
3758
  <DropdownMenuArrow\r
3658
3759
  v-bind="reactiveOmit(props, 'class')"\r
@@ -5209,6 +5310,36 @@ export function useFormField() {\r
5209
5310
  }
5210
5311
  });
5211
5312
  </script>
5313
+ `}],utils:[],composables:[],plugins:[]},{name:"Navbar",value:"navbar",deps:["radix-vue","tailwind-variants"],devDeps:[],nuxtModules:[],files:[{fileName:"Navbar.vue",dirPath:"components/UI",fileContent:`<template>\r
5314
+ <Primitive :class="styles({ sticky, class: props.class })" v-bind="reactiveOmit(props, 'class')">\r
5315
+ <slot> </slot>\r
5316
+ </Primitive>\r
5317
+ </template>\r
5318
+ \r
5319
+ <script lang="ts" setup>\r
5320
+ import { type PrimitiveProps } from "radix-vue";\r
5321
+ \r
5322
+ const props = withDefaults(\r
5323
+ defineProps<\r
5324
+ PrimitiveProps & {\r
5325
+ class?: any;\r
5326
+ sticky?: boolean;\r
5327
+ }\r
5328
+ >(),\r
5329
+ {\r
5330
+ as: "header",\r
5331
+ }\r
5332
+ );\r
5333
+ \r
5334
+ const styles = tv({\r
5335
+ base: "z-20 border-b bg-background/90 backdrop-blur",\r
5336
+ variants: {\r
5337
+ sticky: {\r
5338
+ true: "sticky top-0",\r
5339
+ },\r
5340
+ },\r
5341
+ });\r
5342
+ </script>\r
5212
5343
  `}],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
5344
  <NavigationMenuContent v-bind="forwarded" :class="styles({ class: props.class })">
5214
5345
  <slot></slot>