ui-thing 0.1.15 → 0.1.16
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 +12 -0
- package/dist/index.js +168 -21
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/comps.ts +58 -1
package/package.json
CHANGED
package/src/comps.ts
CHANGED
|
@@ -252,7 +252,7 @@ export default [
|
|
|
252
252
|
fileName: "Autocomplete/Trigger.vue",
|
|
253
253
|
dirPath: "components/UI",
|
|
254
254
|
fileContent:
|
|
255
|
-
'<template>\r\n <ComboboxTrigger v-bind="props">\r\n <slot />\r\n </ComboboxTrigger>\r\n</template>\r\n\r\n<script lang="ts" setup>\r\n import { ComboboxTrigger } from "radix-vue";\r\n import type { ComboboxTriggerProps } from "radix-vue";\r\n\r\n const props = defineProps<\r\n ComboboxTriggerProps & {\r\n class?: any;\r\n }\r\n >();\r\n\r\n const styles = tv({\r\n base: "inline-flex shrink-0 cursor-pointer items-center justify-center",\r\n });\r\n</script>\r\n',
|
|
255
|
+
'<template>\r\n <ComboboxTrigger v-bind="reactiveOmit(props, \'class\')" :class="styles({ class: props.class })">\r\n <slot />\r\n </ComboboxTrigger>\r\n</template>\r\n\r\n<script lang="ts" setup>\r\n import { ComboboxTrigger } from "radix-vue";\r\n import type { ComboboxTriggerProps } from "radix-vue";\r\n\r\n const props = defineProps<\r\n ComboboxTriggerProps & {\r\n class?: any;\r\n }\r\n >();\r\n\r\n const styles = tv({\r\n base: "inline-flex shrink-0 cursor-pointer items-center justify-center",\r\n });\r\n</script>\r\n',
|
|
256
256
|
},
|
|
257
257
|
{
|
|
258
258
|
fileName: "Autocomplete/Viewport.vue",
|
|
@@ -1209,6 +1209,63 @@ export default [
|
|
|
1209
1209
|
composables: [],
|
|
1210
1210
|
plugins: [],
|
|
1211
1211
|
},
|
|
1212
|
+
{
|
|
1213
|
+
name: "Listbox",
|
|
1214
|
+
value: "listbox",
|
|
1215
|
+
files: [
|
|
1216
|
+
{
|
|
1217
|
+
fileName: "Listbox/Content.vue",
|
|
1218
|
+
dirPath: "components/UI",
|
|
1219
|
+
fileContent:
|
|
1220
|
+
'<template>\n <ListboxContent v-bind="forwarded" :class="styles({ class: props.class })">\n <slot />\n </ListboxContent>\n</template>\n\n<script lang="ts" setup>\n import { ListboxContent, useForwardProps } from "radix-vue";\n import type { ListboxContentProps } from "radix-vue";\n\n const props = defineProps<ListboxContentProps & { class?: any }>();\n const forwarded = useForwardProps(reactiveOmit(props));\n\n const styles = tv({\n base: "max-h-[300px] w-full overflow-y-auto rounded-md border bg-popover px-4 py-2",\n });\n</script>\n',
|
|
1221
|
+
},
|
|
1222
|
+
{
|
|
1223
|
+
fileName: "Listbox/Filter.vue",
|
|
1224
|
+
dirPath: "components/UI",
|
|
1225
|
+
fileContent:
|
|
1226
|
+
'<template>\n <ListboxFilter v-bind="forwarded" :class="styles({ class: props.class })" />\n</template>\n\n<script lang="ts" setup>\n import { ListboxFilter, useForwardPropsEmits } from "radix-vue";\n import type { ListboxFilterEmits, ListboxFilterProps } from "radix-vue";\n\n const props = defineProps<ListboxFilterProps & { class?: any; placeholder?: string }>();\n const emits = defineEmits<ListboxFilterEmits>();\n const forwarded = useForwardPropsEmits(reactiveOmit(props, "class"), emits);\n\n const styles = tv({\n base: "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",\n });\n</script>\n',
|
|
1227
|
+
},
|
|
1228
|
+
{
|
|
1229
|
+
fileName: "Listbox/Group.vue",
|
|
1230
|
+
dirPath: "components/UI",
|
|
1231
|
+
fileContent:
|
|
1232
|
+
'<template>\n <ListboxGroup v-bind="forwarded">\n <slot />\n </ListboxGroup>\n</template>\n\n<script lang="ts" setup>\n import { ListboxGroup, useForwardPropsEmits } from "radix-vue";\n import type { ListboxGroupProps } from "radix-vue";\n\n const props = defineProps<ListboxGroupProps>();\n const forwarded = useForwardPropsEmits(props);\n</script>\n',
|
|
1233
|
+
},
|
|
1234
|
+
{
|
|
1235
|
+
fileName: "Listbox/GroupLabel.vue",
|
|
1236
|
+
dirPath: "components/UI",
|
|
1237
|
+
fileContent:
|
|
1238
|
+
'<template>\n <ListboxGroupLabel v-bind="forwarded" :class="styles({ class: props.class })">\n <slot />\n </ListboxGroupLabel>\n</template>\n\n<script lang="ts" setup>\n import { ListboxGroupLabel, useForwardProps } from "radix-vue";\n import type { ListboxGroupLabelProps } from "radix-vue";\n\n const props = defineProps<ListboxGroupLabelProps & { class?: any }>();\n const forwarded = useForwardProps(reactiveOmit(props, "class"));\n\n const styles = tv({\n base: "py-1.5 pl-1 pr-8 text-sm font-semibold",\n });\n</script>\n',
|
|
1239
|
+
},
|
|
1240
|
+
{
|
|
1241
|
+
fileName: "Listbox/Item.vue",
|
|
1242
|
+
dirPath: "components/UI",
|
|
1243
|
+
fileContent:
|
|
1244
|
+
'<template>\n <ListboxItem v-bind="forwarded" :class="styles({ class: props.class })">\n <slot />\n <span class="absolute right-2 flex h-3.5 w-3.5 items-center justify-center">\n <UiListboxItemIndicator :icon="icon" />\n </span>\n </ListboxItem>\n</template>\n\n<script lang="ts" setup>\n import { ListboxItem, useForwardPropsEmits } from "radix-vue";\n import type { ListboxItemEmits, ListboxItemProps } from "radix-vue";\n\n const props = defineProps<\n ListboxItemProps & {\n class?: any;\n icon?: string;\n }\n >();\n const emits = defineEmits<ListboxItemEmits>();\n const forwarded = useForwardPropsEmits(reactiveOmit(props, "class", "icon"), emits);\n\n const styles = tv({\n base: "relative flex w-full cursor-pointer select-none items-center rounded-sm py-2 pl-3 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[highlighted]:ring-1 data-[highlighted]:ring-border",\n });\n</script>\n',
|
|
1245
|
+
},
|
|
1246
|
+
{
|
|
1247
|
+
fileName: "Listbox/ItemIndicator.vue",
|
|
1248
|
+
dirPath: "components/UI",
|
|
1249
|
+
fileContent:
|
|
1250
|
+
'<template>\n <ListboxItemIndicator v-bind="forwarded">\n <slot>\n <Icon :class="styles({ class: props.class })" :name="icon || \'lucide:circle-check\'" />\n </slot>\n </ListboxItemIndicator>\n</template>\n\n<script lang="ts" setup>\n import { ListboxItemIndicator, useForwardPropsEmits } from "radix-vue";\n import type { ListboxItemIndicatorProps } from "radix-vue";\n\n const props = defineProps<ListboxItemIndicatorProps & { class?: any; icon?: string }>();\n const forwarded = useForwardPropsEmits(reactiveOmit(props, "class"));\n\n const styles = tv({\n base: "size-5 shrink-0",\n });\n</script>\n',
|
|
1251
|
+
},
|
|
1252
|
+
{
|
|
1253
|
+
fileName: "Listbox/Listbox.vue",
|
|
1254
|
+
dirPath: "components/UI",
|
|
1255
|
+
fileContent:
|
|
1256
|
+
'<template>\n <ListboxRoot v-slot="{ modelValue }" v-bind="forwarded" :class="styles({ class: props.class })">\n <slot :model-value="modelValue" />\n </ListboxRoot>\n</template>\n\n<script lang="ts" setup>\n import { ListboxRoot, useForwardPropsEmits } from "radix-vue";\n import type { ListboxRootEmits, ListboxRootProps } from "radix-vue";\n\n const props = defineProps<ListboxRootProps & { class?: any }>();\n const emits = defineEmits<ListboxRootEmits>();\n const forwarded = useForwardPropsEmits(reactiveOmit(props, "class"), emits);\n\n const styles = tv({\n base: "relative flex flex-col gap-4",\n });\n</script>\n',
|
|
1257
|
+
},
|
|
1258
|
+
{
|
|
1259
|
+
fileName: "Listbox/Virtualizer.vue",
|
|
1260
|
+
dirPath: "components/UI",
|
|
1261
|
+
fileContent:
|
|
1262
|
+
'<template>\n <ListboxVirtualizer\n v-slot="{ option }"\n v-bind="forwarded"\n :class="styles({ class: props.class })"\n >\n <slot :option="option" />\n </ListboxVirtualizer>\n</template>\n\n<script lang="ts" setup>\n import { ListboxVirtualizer, useForwardProps } from "radix-vue";\n import type { ListboxVirtualizerProps } from "radix-vue";\n\n const props = defineProps<ListboxVirtualizerProps & { class?: any }>();\n const forwarded = useForwardProps(reactiveOmit(props, "class"));\n\n const styles = tv({\n base: "",\n });\n</script>\n',
|
|
1263
|
+
},
|
|
1264
|
+
],
|
|
1265
|
+
utils: [],
|
|
1266
|
+
composables: [],
|
|
1267
|
+
plugins: [],
|
|
1268
|
+
},
|
|
1212
1269
|
{
|
|
1213
1270
|
name: "Menubar",
|
|
1214
1271
|
value: "menubar",
|