ui-thing 0.1.14 → 0.1.15
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 +14 -0
- package/dist/index.js +130 -107
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/comps.ts +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## v0.1.15
|
|
4
|
+
|
|
5
|
+
[compare changes](https://github.com/BayBreezy/ui-thing-cli/compare/v0.1.14...v0.1.15)
|
|
6
|
+
|
|
7
|
+
### 🏡 Chore
|
|
8
|
+
|
|
9
|
+
- **release:** V0.1.14 ([16a8485](https://github.com/BayBreezy/ui-thing-cli/commit/16a8485))
|
|
10
|
+
- Update autocomplete component ([27f35dc](https://github.com/BayBreezy/ui-thing-cli/commit/27f35dc))
|
|
11
|
+
- Install packages ([17e6d8a](https://github.com/BayBreezy/ui-thing-cli/commit/17e6d8a))
|
|
12
|
+
|
|
13
|
+
### ❤️ Contributors
|
|
14
|
+
|
|
15
|
+
- Behon Baker <behon.baker@yahoo.com>
|
|
16
|
+
|
|
3
17
|
## v0.1.14
|
|
4
18
|
|
|
5
19
|
[compare changes](https://github.com/BayBreezy/ui-thing-cli/compare/v0.1.13...v0.1.14)
|
package/dist/index.js
CHANGED
|
@@ -628,18 +628,26 @@ export const buttonStyles = tv({
|
|
|
628
628
|
|
|
629
629
|
const props = defineProps<AspectRatioProps>();
|
|
630
630
|
</script>
|
|
631
|
-
`}],utils:[],composables:[],plugins:[]},{name:"Autocomplete",value:"autocomplete",devDeps:["@vueuse/core"],files:[{fileName:"Autocomplete/Anchor.vue",dirPath:"components/UI",fileContent:`<template
|
|
632
|
-
<ComboboxAnchor v-bind="props"
|
|
633
|
-
<slot
|
|
634
|
-
</ComboboxAnchor
|
|
635
|
-
</template
|
|
636
|
-
|
|
637
|
-
<script lang="ts" setup
|
|
638
|
-
import { ComboboxAnchor } from "radix-vue"
|
|
639
|
-
import type { ComboboxAnchorProps } from "radix-vue"
|
|
640
|
-
|
|
641
|
-
const props = defineProps
|
|
642
|
-
|
|
631
|
+
`}],utils:[],composables:[],plugins:[]},{name:"Autocomplete",value:"autocomplete",devDeps:["@vueuse/core"],files:[{fileName:"Autocomplete/Anchor.vue",dirPath:"components/UI",fileContent:`<template>\r
|
|
632
|
+
<ComboboxAnchor v-bind="props" :class="styles({ class: props.class })">\r
|
|
633
|
+
<slot />\r
|
|
634
|
+
</ComboboxAnchor>\r
|
|
635
|
+
</template>\r
|
|
636
|
+
\r
|
|
637
|
+
<script lang="ts" setup>\r
|
|
638
|
+
import { ComboboxAnchor } from "radix-vue";\r
|
|
639
|
+
import type { ComboboxAnchorProps } from "radix-vue";\r
|
|
640
|
+
\r
|
|
641
|
+
const props = defineProps<\r
|
|
642
|
+
ComboboxAnchorProps & {\r
|
|
643
|
+
class?: any;\r
|
|
644
|
+
}\r
|
|
645
|
+
>();\r
|
|
646
|
+
\r
|
|
647
|
+
const styles = tv({\r
|
|
648
|
+
base: "flex h-10 w-full items-center rounded-md border border-input bg-background px-3 py-2 ring-offset-background focus-within:outline-none focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2",\r
|
|
649
|
+
});\r
|
|
650
|
+
</script>\r
|
|
643
651
|
`},{fileName:"Autocomplete/Arrow.vue",dirPath:"components/UI",fileContent:`<template>
|
|
644
652
|
<ComboboxArrow v-bind="props" :class="styles({ class: props.class })" />
|
|
645
653
|
</template>
|
|
@@ -658,21 +666,28 @@ export const buttonStyles = tv({
|
|
|
658
666
|
base: "rotate-45 border bg-muted",
|
|
659
667
|
});
|
|
660
668
|
</script>
|
|
661
|
-
`},{fileName:"Autocomplete/Autocomplete.vue",dirPath:"components/UI",fileContent:`<template
|
|
662
|
-
<ComboboxRoot v-bind="forwarded"
|
|
663
|
-
<slot
|
|
664
|
-
</ComboboxRoot
|
|
665
|
-
</template
|
|
666
|
-
|
|
667
|
-
<script lang="ts" setup
|
|
668
|
-
import { ComboboxRoot, useForwardPropsEmits } from "radix-vue"
|
|
669
|
-
import type { ComboboxRootEmits, ComboboxRootProps } from "radix-vue"
|
|
670
|
-
|
|
671
|
-
const props = defineProps
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
669
|
+
`},{fileName:"Autocomplete/Autocomplete.vue",dirPath:"components/UI",fileContent:`<template>\r
|
|
670
|
+
<ComboboxRoot v-bind="forwarded" :class="styles({ class: props.class })">\r
|
|
671
|
+
<slot />\r
|
|
672
|
+
</ComboboxRoot>\r
|
|
673
|
+
</template>\r
|
|
674
|
+
\r
|
|
675
|
+
<script lang="ts" setup>\r
|
|
676
|
+
import { ComboboxRoot, useForwardPropsEmits } from "radix-vue";\r
|
|
677
|
+
import type { ComboboxRootEmits, ComboboxRootProps } from "radix-vue";\r
|
|
678
|
+
\r
|
|
679
|
+
const props = defineProps<\r
|
|
680
|
+
ComboboxRootProps & {\r
|
|
681
|
+
class?: any;\r
|
|
682
|
+
}\r
|
|
683
|
+
>();\r
|
|
684
|
+
\r
|
|
685
|
+
const emits = defineEmits<ComboboxRootEmits>();\r
|
|
686
|
+
const forwarded = useForwardPropsEmits(reactiveOmit(props, "class"), emits);\r
|
|
687
|
+
const styles = tv({\r
|
|
688
|
+
base: "relative",\r
|
|
689
|
+
});\r
|
|
690
|
+
</script>\r
|
|
676
691
|
`},{fileName:"Autocomplete/Cancel.vue",dirPath:"components/UI",fileContent:`<template>
|
|
677
692
|
<ComboboxCancel v-bind="props">
|
|
678
693
|
<slot />
|
|
@@ -685,41 +700,43 @@ export const buttonStyles = tv({
|
|
|
685
700
|
|
|
686
701
|
const props = defineProps<ComboboxCancelProps>();
|
|
687
702
|
</script>
|
|
688
|
-
`},{fileName:"Autocomplete/Content.vue",dirPath:"components/UI",fileContent:`<template
|
|
689
|
-
<
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
</
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
const
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
703
|
+
`},{fileName:"Autocomplete/Content.vue",dirPath:"components/UI",fileContent:`<template>\r
|
|
704
|
+
<!-- <UiAutocompletePortal> -->\r
|
|
705
|
+
<ComboboxContent v-bind="forwarded" :class="styles({ class: props.class })">\r
|
|
706
|
+
<UiAutocompleteViewport>\r
|
|
707
|
+
<slot />\r
|
|
708
|
+
</UiAutocompleteViewport>\r
|
|
709
|
+
</ComboboxContent>\r
|
|
710
|
+
<!-- </UiAutocompletePortal> -->\r
|
|
711
|
+
</template>\r
|
|
712
|
+
\r
|
|
713
|
+
<script lang="ts" setup>\r
|
|
714
|
+
import { ComboboxContent, useForwardPropsEmits } from "radix-vue";\r
|
|
715
|
+
import type { ComboboxContentEmits, ComboboxContentProps } from "radix-vue";\r
|
|
716
|
+
\r
|
|
717
|
+
defineOptions({ inheritAttrs: false });\r
|
|
718
|
+
const props = withDefaults(\r
|
|
719
|
+
defineProps<\r
|
|
720
|
+
ComboboxContentProps & {\r
|
|
721
|
+
class?: any;\r
|
|
722
|
+
}\r
|
|
723
|
+
>(),\r
|
|
724
|
+
{\r
|
|
725
|
+
position: "popper",\r
|
|
726
|
+
bodyLock: true,\r
|
|
727
|
+
side: "bottom",\r
|
|
728
|
+
sideOffset: 8,\r
|
|
729
|
+
class: undefined,\r
|
|
730
|
+
}\r
|
|
731
|
+
);\r
|
|
732
|
+
\r
|
|
733
|
+
const emits = defineEmits<ComboboxContentEmits>();\r
|
|
734
|
+
const forwarded = useForwardPropsEmits(props, emits);\r
|
|
735
|
+
\r
|
|
736
|
+
const styles = tv({\r
|
|
737
|
+
base: "z-50 max-h-[300px] w-[var(--radix-popper-anchor-width)] min-w-[8rem] overflow-hidden overflow-y-auto rounded-md border bg-popover p-1 text-accent-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",\r
|
|
738
|
+
});\r
|
|
739
|
+
</script>\r
|
|
723
740
|
`},{fileName:"Autocomplete/Empty.vue",dirPath:"components/UI",fileContent:`<template>
|
|
724
741
|
<ComboboxEmpty v-bind="props">
|
|
725
742
|
<slot />
|
|
@@ -744,27 +761,25 @@ export const buttonStyles = tv({
|
|
|
744
761
|
|
|
745
762
|
const props = defineProps<ComboboxGroupProps>();
|
|
746
763
|
</script>
|
|
747
|
-
`},{fileName:"Autocomplete/Input.vue",dirPath:"components/UI",fileContent:`<template
|
|
748
|
-
<ComboboxInput v-bind="props" :class="styles({ class: props.class })"
|
|
749
|
-
</template
|
|
750
|
-
|
|
751
|
-
<script lang="ts" setup
|
|
752
|
-
import { ComboboxInput } from "radix-vue"
|
|
753
|
-
import type { ComboboxInputProps } from "radix-vue"
|
|
754
|
-
|
|
755
|
-
const props = defineProps
|
|
756
|
-
ComboboxInputProps & {
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
});
|
|
767
|
-
</script>
|
|
764
|
+
`},{fileName:"Autocomplete/Input.vue",dirPath:"components/UI",fileContent:`<template>\r
|
|
765
|
+
<ComboboxInput v-bind="props" :class="styles({ class: props.class })" />\r
|
|
766
|
+
</template>\r
|
|
767
|
+
\r
|
|
768
|
+
<script lang="ts" setup>\r
|
|
769
|
+
import { ComboboxInput } from "radix-vue";\r
|
|
770
|
+
import type { ComboboxInputProps } from "radix-vue";\r
|
|
771
|
+
\r
|
|
772
|
+
const props = defineProps<\r
|
|
773
|
+
ComboboxInputProps & {\r
|
|
774
|
+
placeholder?: string;\r
|
|
775
|
+
class?: any;\r
|
|
776
|
+
}\r
|
|
777
|
+
>();\r
|
|
778
|
+
\r
|
|
779
|
+
const styles = tv({\r
|
|
780
|
+
base: "size-full grow rounded-md bg-background placeholder:text-muted-foreground focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 sm:text-sm",\r
|
|
781
|
+
});\r
|
|
782
|
+
</script>\r
|
|
768
783
|
`},{fileName:"Autocomplete/Item.vue",dirPath:"components/UI",fileContent:`<template>
|
|
769
784
|
<ComboboxItem v-bind="forwarded" :class="styles({ class: props.class })">
|
|
770
785
|
<slot name="icon">
|
|
@@ -832,18 +847,18 @@ export const buttonStyles = tv({
|
|
|
832
847
|
base: "px-2 py-1.5 pl-9 text-sm font-medium text-muted-foreground",
|
|
833
848
|
});
|
|
834
849
|
</script>
|
|
835
|
-
`},{fileName:"Autocomplete/Portal.vue",dirPath:"components/UI",fileContent:`<template
|
|
836
|
-
<ComboboxPortal v-bind="props"
|
|
837
|
-
<slot
|
|
838
|
-
</ComboboxPortal
|
|
839
|
-
</template
|
|
840
|
-
|
|
841
|
-
<script lang="ts" setup
|
|
842
|
-
import { ComboboxPortal } from "radix-vue"
|
|
843
|
-
import type { ComboboxPortalProps } from "radix-vue"
|
|
844
|
-
|
|
845
|
-
const props = defineProps<ComboboxPortalProps>()
|
|
846
|
-
</script
|
|
850
|
+
`},{fileName:"Autocomplete/Portal.vue",dirPath:"components/UI",fileContent:`<template>\r
|
|
851
|
+
<ComboboxPortal position="popper" v-bind="props">\r
|
|
852
|
+
<slot />\r
|
|
853
|
+
</ComboboxPortal>\r
|
|
854
|
+
</template>\r
|
|
855
|
+
\r
|
|
856
|
+
<script lang="ts" setup>\r
|
|
857
|
+
import { ComboboxPortal } from "radix-vue";\r
|
|
858
|
+
import type { ComboboxPortalProps } from "radix-vue";\r
|
|
859
|
+
\r
|
|
860
|
+
const props = defineProps<ComboboxPortalProps>();\r
|
|
861
|
+
</script>\r
|
|
847
862
|
`},{fileName:"Autocomplete/Separator.vue",dirPath:"components/UI",fileContent:`<template>
|
|
848
863
|
<ComboboxSeparator v-bind="props">
|
|
849
864
|
<slot />
|
|
@@ -856,18 +871,26 @@ export const buttonStyles = tv({
|
|
|
856
871
|
|
|
857
872
|
const props = defineProps<ComboboxSeparatorProps>();
|
|
858
873
|
</script>
|
|
859
|
-
`},{fileName:"Autocomplete/Trigger.vue",dirPath:"components/UI",fileContent:`<template
|
|
860
|
-
<ComboboxTrigger v-bind="props"
|
|
861
|
-
<slot
|
|
862
|
-
</ComboboxTrigger
|
|
863
|
-
</template
|
|
864
|
-
|
|
865
|
-
<script lang="ts" setup
|
|
866
|
-
import { ComboboxTrigger } from "radix-vue"
|
|
867
|
-
import type { ComboboxTriggerProps } from "radix-vue"
|
|
868
|
-
|
|
869
|
-
const props = defineProps
|
|
870
|
-
|
|
874
|
+
`},{fileName:"Autocomplete/Trigger.vue",dirPath:"components/UI",fileContent:`<template>\r
|
|
875
|
+
<ComboboxTrigger v-bind="props">\r
|
|
876
|
+
<slot />\r
|
|
877
|
+
</ComboboxTrigger>\r
|
|
878
|
+
</template>\r
|
|
879
|
+
\r
|
|
880
|
+
<script lang="ts" setup>\r
|
|
881
|
+
import { ComboboxTrigger } from "radix-vue";\r
|
|
882
|
+
import type { ComboboxTriggerProps } from "radix-vue";\r
|
|
883
|
+
\r
|
|
884
|
+
const props = defineProps<\r
|
|
885
|
+
ComboboxTriggerProps & {\r
|
|
886
|
+
class?: any;\r
|
|
887
|
+
}\r
|
|
888
|
+
>();\r
|
|
889
|
+
\r
|
|
890
|
+
const styles = tv({\r
|
|
891
|
+
base: "inline-flex shrink-0 cursor-pointer items-center justify-center",\r
|
|
892
|
+
});\r
|
|
893
|
+
</script>\r
|
|
871
894
|
`},{fileName:"Autocomplete/Viewport.vue",dirPath:"components/UI",fileContent:`<template>
|
|
872
895
|
<ComboboxViewport v-bind="props">
|
|
873
896
|
<slot />
|