@auronui/vue 1.0.17 → 1.0.18

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.
Files changed (51) hide show
  1. package/dist/cjs/index.cjs +769 -482
  2. package/dist/cjs/index.cjs.map +1 -1
  3. package/dist/components/accordion/Accordion.js.map +1 -1
  4. package/dist/components/accordion/Accordion.vue_vue_type_script_setup_true_lang.js +26 -3
  5. package/dist/components/accordion/Accordion.vue_vue_type_script_setup_true_lang.js.map +1 -1
  6. package/dist/components/avatar/AvatarGroup.js.map +1 -1
  7. package/dist/components/avatar/AvatarGroup.vue_vue_type_script_setup_true_lang.js +23 -4
  8. package/dist/components/avatar/AvatarGroup.vue_vue_type_script_setup_true_lang.js.map +1 -1
  9. package/dist/components/breadcrumbs/Breadcrumbs.js.map +1 -1
  10. package/dist/components/breadcrumbs/Breadcrumbs.vue_vue_type_script_setup_true_lang.js +26 -4
  11. package/dist/components/breadcrumbs/Breadcrumbs.vue_vue_type_script_setup_true_lang.js.map +1 -1
  12. package/dist/components/button/Button.js.map +1 -1
  13. package/dist/components/button/Button.vue_vue_type_script_setup_true_lang.js +53 -2
  14. package/dist/components/button/Button.vue_vue_type_script_setup_true_lang.js.map +1 -1
  15. package/dist/components/button/ButtonGroup.js.map +1 -1
  16. package/dist/components/button/ButtonGroup.vue_vue_type_script_setup_true_lang.js +28 -4
  17. package/dist/components/button/ButtonGroup.vue_vue_type_script_setup_true_lang.js.map +1 -1
  18. package/dist/components/button/ToggleButtonGroup.js.map +1 -1
  19. package/dist/components/button/ToggleButtonGroup.vue_vue_type_script_setup_true_lang.js +21 -3
  20. package/dist/components/button/ToggleButtonGroup.vue_vue_type_script_setup_true_lang.js.map +1 -1
  21. package/dist/components/button/button-group.context.js.map +1 -1
  22. package/dist/components/checkbox/CheckboxGroup.js.map +1 -1
  23. package/dist/components/checkbox/CheckboxGroup.vue_vue_type_script_setup_true_lang.js +14 -3
  24. package/dist/components/checkbox/CheckboxGroup.vue_vue_type_script_setup_true_lang.js.map +1 -1
  25. package/dist/components/collapsible/CollapsibleGroup.js.map +1 -1
  26. package/dist/components/collapsible/CollapsibleGroup.vue_vue_type_script_setup_true_lang.js +22 -3
  27. package/dist/components/collapsible/CollapsibleGroup.vue_vue_type_script_setup_true_lang.js.map +1 -1
  28. package/dist/components/list-box/ListBox.js.map +1 -1
  29. package/dist/components/list-box/ListBox.vue_vue_type_script_setup_true_lang.js +19 -3
  30. package/dist/components/list-box/ListBox.vue_vue_type_script_setup_true_lang.js.map +1 -1
  31. package/dist/components/modal/ModalContent.js.map +1 -1
  32. package/dist/components/modal/ModalContent.vue_vue_type_script_setup_true_lang.js +4 -3
  33. package/dist/components/modal/ModalContent.vue_vue_type_script_setup_true_lang.js.map +1 -1
  34. package/dist/components/radio/RadioGroup.js.map +1 -1
  35. package/dist/components/radio/RadioGroup.vue_vue_type_script_setup_true_lang.js +14 -3
  36. package/dist/components/radio/RadioGroup.vue_vue_type_script_setup_true_lang.js.map +1 -1
  37. package/dist/components/stepper/Stepper.js.map +1 -1
  38. package/dist/components/stepper/Stepper.vue_vue_type_script_setup_true_lang.js +37 -5
  39. package/dist/components/stepper/Stepper.vue_vue_type_script_setup_true_lang.js.map +1 -1
  40. package/dist/components/switch/SwitchGroup.js.map +1 -1
  41. package/dist/components/switch/SwitchGroup.vue_vue_type_script_setup_true_lang.js +14 -3
  42. package/dist/components/switch/SwitchGroup.vue_vue_type_script_setup_true_lang.js.map +1 -1
  43. package/dist/components/tabs/Tabs.js.map +1 -1
  44. package/dist/components/tabs/Tabs.vue_vue_type_script_setup_true_lang.js +30 -3
  45. package/dist/components/tabs/Tabs.vue_vue_type_script_setup_true_lang.js.map +1 -1
  46. package/dist/components/toolbar/ToolbarToggleGroup.js.map +1 -1
  47. package/dist/components/toolbar/ToolbarToggleGroup.vue_vue_type_script_setup_true_lang.js +25 -3
  48. package/dist/components/toolbar/ToolbarToggleGroup.vue_vue_type_script_setup_true_lang.js.map +1 -1
  49. package/dist/index.d.ts +128 -2
  50. package/dist/index.js +7 -7
  51. package/package.json +4 -4
@@ -1 +1 @@
1
- {"version":3,"file":"SwitchGroup.js","names":[],"sources":["../../../src/components/switch/SwitchGroup.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, ref, toRef } from 'vue'\nimport { switchGroupVariants, type SwitchGroupVariants, type SwitchVariants } from '@auronui/styles'\nimport { composeClassName } from '../../utils/composeClassName'\nimport { useSwitchGroupProvide } from './switch-group.context'\n\nconst props = withDefaults(defineProps<{\n size?: SwitchVariants['size']\n disabled?: boolean\n modelValue?: string[]\n defaultValue?: string[]\n name?: string\n orientation?: SwitchGroupVariants['orientation']\n label?: string\n description?: string\n class?: string\n}>(), {\n size: 'md',\n disabled: false,\n modelValue: undefined,\n defaultValue: undefined,\n name: undefined,\n orientation: 'vertical',\n label: undefined,\n description: undefined,\n})\n\nconst emit = defineEmits<{\n 'update:modelValue': [value: string[]]\n}>()\n\n// Internal state for uncontrolled mode\nconst internalValues = ref<string[]>(props.defaultValue ?? [])\n\n// Current values: controlled (modelValue) or uncontrolled (internalValues)\nconst currentValues = computed(() => props.modelValue ?? internalValues.value)\n\n// Toggle value in the selection list\nfunction toggleValue(value: string) {\n const next = currentValues.value.includes(value)\n ? currentValues.value.filter(v => v !== value)\n : [...currentValues.value, value]\n internalValues.value = next\n emit('update:modelValue', next)\n}\n\n// Provide context to child Switches\nuseSwitchGroupProvide({\n size: toRef(props, 'size'),\n disabled: toRef(props, 'disabled'),\n selectedValues: currentValues,\n toggleValue,\n name: toRef(props, 'name'),\n})\n\nconst labelId = `switch-group-label-${Math.random().toString(36).slice(2, 8)}`\n\nconst groupSlots = computed(() =>\n switchGroupVariants({ orientation: props.orientation })\n)\n</script>\n\n<template>\n <div\n role=\"group\"\n :aria-labelledby=\"props.label ? labelId : undefined\"\n :data-orientation=\"props.orientation\"\n :class=\"composeClassName(groupSlots.base(), props.class)\"\n >\n <span\n v-if=\"props.label\"\n :id=\"labelId\"\n class=\"switch-group__label\"\n >{{ props.label }}</span>\n <div :class=\"groupSlots.items()\">\n <slot />\n </div>\n <span\n v-if=\"props.description\"\n class=\"switch-group__description\"\n >{{ props.description }}</span>\n </div>\n</template>\n"],"mappings":""}
1
+ {"version":3,"file":"SwitchGroup.js","names":[],"sources":["../../../src/components/switch/SwitchGroup.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, ref, toRef } from 'vue'\nimport { switchGroupVariants, type SwitchGroupVariants, type SwitchVariants } from '@auronui/styles'\nimport { composeClassName } from '../../utils/composeClassName'\nimport { useSwitchGroupProvide } from './switch-group.context'\nimport SwitchInput from './Switch.vue'\n\ntype SwitchShorthandItem = { value: string; label?: string; disabled?: boolean }\n\nconst props = withDefaults(defineProps<{\n size?: SwitchVariants['size']\n disabled?: boolean\n modelValue?: string[]\n defaultValue?: string[]\n name?: string\n orientation?: SwitchGroupVariants['orientation']\n label?: string\n description?: string\n class?: string\n /** Shorthand API: render switches from an array instead of the compound slot API */\n items?: SwitchShorthandItem[]\n}>(), {\n size: 'md',\n disabled: false,\n modelValue: undefined,\n defaultValue: undefined,\n name: undefined,\n orientation: 'vertical',\n label: undefined,\n description: undefined,\n})\n\nconst emit = defineEmits<{\n 'update:modelValue': [value: string[]]\n}>()\n\n// Internal state for uncontrolled mode\nconst internalValues = ref<string[]>(props.defaultValue ?? [])\n\n// Current values: controlled (modelValue) or uncontrolled (internalValues)\nconst currentValues = computed(() => props.modelValue ?? internalValues.value)\n\n// Toggle value in the selection list\nfunction toggleValue(value: string) {\n const next = currentValues.value.includes(value)\n ? currentValues.value.filter(v => v !== value)\n : [...currentValues.value, value]\n internalValues.value = next\n emit('update:modelValue', next)\n}\n\n// Provide context to child Switches\nuseSwitchGroupProvide({\n size: toRef(props, 'size'),\n disabled: toRef(props, 'disabled'),\n selectedValues: currentValues,\n toggleValue,\n name: toRef(props, 'name'),\n})\n\nconst labelId = `switch-group-label-${Math.random().toString(36).slice(2, 8)}`\n\nconst groupSlots = computed(() =>\n switchGroupVariants({ orientation: props.orientation })\n)\n</script>\n\n<template>\n <div\n role=\"group\"\n :aria-labelledby=\"props.label ? labelId : undefined\"\n :data-orientation=\"props.orientation\"\n :class=\"composeClassName(groupSlots.base(), props.class)\"\n >\n <span\n v-if=\"props.label\"\n :id=\"labelId\"\n class=\"switch-group__label\"\n >{{ props.label }}</span>\n <div :class=\"groupSlots.items()\">\n <template v-if=\"props.items\">\n <SwitchInput\n v-for=\"item in props.items\"\n :key=\"item.value\"\n :value=\"item.value\"\n :disabled=\"item.disabled\"\n >{{ item.label ?? item.value }}</SwitchInput>\n </template>\n <slot v-else />\n </div>\n <span\n v-if=\"props.description\"\n class=\"switch-group__description\"\n >{{ props.description }}</span>\n </div>\n</template>\n"],"mappings":""}
@@ -1,6 +1,7 @@
1
1
  import { composeClassName } from "../../utils/composeClassName.js";
2
2
  import { useSwitchGroupProvide } from "./switch-group.context.js";
3
- import { computed, createCommentVNode, createElementBlock, createElementVNode, defineComponent, normalizeClass, openBlock, ref, renderSlot, toDisplayString, toRef, unref } from "vue";
3
+ import Switch_default from "./Switch.js";
4
+ import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, normalizeClass, openBlock, ref, renderList, renderSlot, toDisplayString, toRef, unref, withCtx } from "vue";
4
5
  import { switchGroupVariants } from "@auronui/styles";
5
6
  //#region src/components/switch/SwitchGroup.vue?vue&type=script&setup=true&lang.ts
6
7
  var _hoisted_1 = ["aria-labelledby", "data-orientation"];
@@ -22,7 +23,8 @@ var SwitchGroup_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ de
22
23
  orientation: { default: "vertical" },
23
24
  label: { default: void 0 },
24
25
  description: { default: void 0 },
25
- class: {}
26
+ class: {},
27
+ items: {}
26
28
  },
27
29
  emits: ["update:modelValue"],
28
30
  setup(__props, { emit: __emit }) {
@@ -56,7 +58,16 @@ var SwitchGroup_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ de
56
58
  id: labelId,
57
59
  class: "switch-group__label"
58
60
  }, toDisplayString(props.label), 1)) : createCommentVNode("", true),
59
- createElementVNode("div", { class: normalizeClass(groupSlots.value.items()) }, [renderSlot(_ctx.$slots, "default")], 2),
61
+ createElementVNode("div", { class: normalizeClass(groupSlots.value.items()) }, [props.items ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(props.items, (item) => {
62
+ return openBlock(), createBlock(Switch_default, {
63
+ key: item.value,
64
+ value: item.value,
65
+ disabled: item.disabled
66
+ }, {
67
+ default: withCtx(() => [createTextVNode(toDisplayString(item.label ?? item.value), 1)]),
68
+ _: 2
69
+ }, 1032, ["value", "disabled"]);
70
+ }), 128)) : renderSlot(_ctx.$slots, "default", { key: 1 })], 2),
60
71
  props.description ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(props.description), 1)) : createCommentVNode("", true)
61
72
  ], 10, _hoisted_1);
62
73
  };
@@ -1 +1 @@
1
- {"version":3,"file":"SwitchGroup.vue_vue_type_script_setup_true_lang.js","names":[],"sources":["../../../src/components/switch/SwitchGroup.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, ref, toRef } from 'vue'\nimport { switchGroupVariants, type SwitchGroupVariants, type SwitchVariants } from '@auronui/styles'\nimport { composeClassName } from '../../utils/composeClassName'\nimport { useSwitchGroupProvide } from './switch-group.context'\n\nconst props = withDefaults(defineProps<{\n size?: SwitchVariants['size']\n disabled?: boolean\n modelValue?: string[]\n defaultValue?: string[]\n name?: string\n orientation?: SwitchGroupVariants['orientation']\n label?: string\n description?: string\n class?: string\n}>(), {\n size: 'md',\n disabled: false,\n modelValue: undefined,\n defaultValue: undefined,\n name: undefined,\n orientation: 'vertical',\n label: undefined,\n description: undefined,\n})\n\nconst emit = defineEmits<{\n 'update:modelValue': [value: string[]]\n}>()\n\n// Internal state for uncontrolled mode\nconst internalValues = ref<string[]>(props.defaultValue ?? [])\n\n// Current values: controlled (modelValue) or uncontrolled (internalValues)\nconst currentValues = computed(() => props.modelValue ?? internalValues.value)\n\n// Toggle value in the selection list\nfunction toggleValue(value: string) {\n const next = currentValues.value.includes(value)\n ? currentValues.value.filter(v => v !== value)\n : [...currentValues.value, value]\n internalValues.value = next\n emit('update:modelValue', next)\n}\n\n// Provide context to child Switches\nuseSwitchGroupProvide({\n size: toRef(props, 'size'),\n disabled: toRef(props, 'disabled'),\n selectedValues: currentValues,\n toggleValue,\n name: toRef(props, 'name'),\n})\n\nconst labelId = `switch-group-label-${Math.random().toString(36).slice(2, 8)}`\n\nconst groupSlots = computed(() =>\n switchGroupVariants({ orientation: props.orientation })\n)\n</script>\n\n<template>\n <div\n role=\"group\"\n :aria-labelledby=\"props.label ? labelId : undefined\"\n :data-orientation=\"props.orientation\"\n :class=\"composeClassName(groupSlots.base(), props.class)\"\n >\n <span\n v-if=\"props.label\"\n :id=\"labelId\"\n class=\"switch-group__label\"\n >{{ props.label }}</span>\n <div :class=\"groupSlots.items()\">\n <slot />\n </div>\n <span\n v-if=\"props.description\"\n class=\"switch-group__description\"\n >{{ props.description }}</span>\n </div>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMA,MAAM,QAAQ;EAqBd,MAAM,OAAO;EAKb,MAAM,iBAAiB,IAAc,MAAM,gBAAgB,EAAE,CAAA;EAG7D,MAAM,gBAAgB,eAAe,MAAM,cAAc,eAAe,MAAK;EAG7E,SAAS,YAAY,OAAe;GAClC,MAAM,OAAO,cAAc,MAAM,SAAS,MAAK,GAC3C,cAAc,MAAM,QAAO,MAAK,MAAM,MAAK,GAC3C,CAAC,GAAG,cAAc,OAAO,MAAK;AAClC,kBAAe,QAAQ;AACvB,QAAK,qBAAqB,KAAI;;AAIhC,wBAAsB;GACpB,MAAM,MAAM,OAAO,OAAO;GAC1B,UAAU,MAAM,OAAO,WAAW;GAClC,gBAAgB;GAChB;GACA,MAAM,MAAM,OAAO,OAAO;GAC3B,CAAA;EAED,MAAM,UAAU,sBAAsB,KAAK,QAAQ,CAAC,SAAS,GAAG,CAAC,MAAM,GAAG,EAAE;EAE5E,MAAM,aAAa,eACjB,oBAAoB,EAAE,aAAa,MAAM,aAAa,CAAA,CACxD;;uBAIE,mBAkBM,OAAA;IAjBJ,MAAK;IACJ,mBAAiB,MAAM,QAAQ,UAAU,KAAA;IACzC,oBAAkB,MAAM;IACxB,OAAK,eAAE,MAAA,iBAAgB,CAAC,WAAA,MAAW,MAAI,EAAI,MAAM,MAAK,CAAA;;IAG/C,MAAM,SAAA,WAAA,EADd,mBAIyB,QAAA;;KAFtB,IAAI;KACL,OAAM;uBACJ,MAAM,MAAK,EAAA,EAAA,IAAA,mBAAA,IAAA,KAAA;IACf,mBAEM,OAAA,EAFA,OAAK,eAAE,WAAA,MAAW,OAAK,CAAA,EAAA,EAAA,CAC3B,WAAQ,KAAA,QAAA,UAAA,CAAA,EAAA,EAAA;IAGF,MAAM,eAAA,WAAA,EADd,mBAG+B,QAH/B,YAG+B,gBAA3B,MAAM,YAAW,EAAA,EAAA,IAAA,mBAAA,IAAA,KAAA"}
1
+ {"version":3,"file":"SwitchGroup.vue_vue_type_script_setup_true_lang.js","names":[],"sources":["../../../src/components/switch/SwitchGroup.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, ref, toRef } from 'vue'\nimport { switchGroupVariants, type SwitchGroupVariants, type SwitchVariants } from '@auronui/styles'\nimport { composeClassName } from '../../utils/composeClassName'\nimport { useSwitchGroupProvide } from './switch-group.context'\nimport SwitchInput from './Switch.vue'\n\ntype SwitchShorthandItem = { value: string; label?: string; disabled?: boolean }\n\nconst props = withDefaults(defineProps<{\n size?: SwitchVariants['size']\n disabled?: boolean\n modelValue?: string[]\n defaultValue?: string[]\n name?: string\n orientation?: SwitchGroupVariants['orientation']\n label?: string\n description?: string\n class?: string\n /** Shorthand API: render switches from an array instead of the compound slot API */\n items?: SwitchShorthandItem[]\n}>(), {\n size: 'md',\n disabled: false,\n modelValue: undefined,\n defaultValue: undefined,\n name: undefined,\n orientation: 'vertical',\n label: undefined,\n description: undefined,\n})\n\nconst emit = defineEmits<{\n 'update:modelValue': [value: string[]]\n}>()\n\n// Internal state for uncontrolled mode\nconst internalValues = ref<string[]>(props.defaultValue ?? [])\n\n// Current values: controlled (modelValue) or uncontrolled (internalValues)\nconst currentValues = computed(() => props.modelValue ?? internalValues.value)\n\n// Toggle value in the selection list\nfunction toggleValue(value: string) {\n const next = currentValues.value.includes(value)\n ? currentValues.value.filter(v => v !== value)\n : [...currentValues.value, value]\n internalValues.value = next\n emit('update:modelValue', next)\n}\n\n// Provide context to child Switches\nuseSwitchGroupProvide({\n size: toRef(props, 'size'),\n disabled: toRef(props, 'disabled'),\n selectedValues: currentValues,\n toggleValue,\n name: toRef(props, 'name'),\n})\n\nconst labelId = `switch-group-label-${Math.random().toString(36).slice(2, 8)}`\n\nconst groupSlots = computed(() =>\n switchGroupVariants({ orientation: props.orientation })\n)\n</script>\n\n<template>\n <div\n role=\"group\"\n :aria-labelledby=\"props.label ? labelId : undefined\"\n :data-orientation=\"props.orientation\"\n :class=\"composeClassName(groupSlots.base(), props.class)\"\n >\n <span\n v-if=\"props.label\"\n :id=\"labelId\"\n class=\"switch-group__label\"\n >{{ props.label }}</span>\n <div :class=\"groupSlots.items()\">\n <template v-if=\"props.items\">\n <SwitchInput\n v-for=\"item in props.items\"\n :key=\"item.value\"\n :value=\"item.value\"\n :disabled=\"item.disabled\"\n >{{ item.label ?? item.value }}</SwitchInput>\n </template>\n <slot v-else />\n </div>\n <span\n v-if=\"props.description\"\n class=\"switch-group__description\"\n >{{ props.description }}</span>\n </div>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EASA,MAAM,QAAQ;EAuBd,MAAM,OAAO;EAKb,MAAM,iBAAiB,IAAc,MAAM,gBAAgB,EAAE,CAAA;EAG7D,MAAM,gBAAgB,eAAe,MAAM,cAAc,eAAe,MAAK;EAG7E,SAAS,YAAY,OAAe;GAClC,MAAM,OAAO,cAAc,MAAM,SAAS,MAAK,GAC3C,cAAc,MAAM,QAAO,MAAK,MAAM,MAAK,GAC3C,CAAC,GAAG,cAAc,OAAO,MAAK;AAClC,kBAAe,QAAQ;AACvB,QAAK,qBAAqB,KAAI;;AAIhC,wBAAsB;GACpB,MAAM,MAAM,OAAO,OAAO;GAC1B,UAAU,MAAM,OAAO,WAAW;GAClC,gBAAgB;GAChB;GACA,MAAM,MAAM,OAAO,OAAO;GAC3B,CAAA;EAED,MAAM,UAAU,sBAAsB,KAAK,QAAQ,CAAC,SAAS,GAAG,CAAC,MAAM,GAAG,EAAE;EAE5E,MAAM,aAAa,eACjB,oBAAoB,EAAE,aAAa,MAAM,aAAa,CAAA,CACxD;;uBAIE,mBA0BM,OAAA;IAzBJ,MAAK;IACJ,mBAAiB,MAAM,QAAQ,UAAU,KAAA;IACzC,oBAAkB,MAAM;IACxB,OAAK,eAAE,MAAA,iBAAgB,CAAC,WAAA,MAAW,MAAI,EAAI,MAAM,MAAK,CAAA;;IAG/C,MAAM,SAAA,WAAA,EADd,mBAIyB,QAAA;;KAFtB,IAAI;KACL,OAAM;uBACJ,MAAM,MAAK,EAAA,EAAA,IAAA,mBAAA,IAAA,KAAA;IACf,mBAUM,OAAA,EAVA,OAAK,eAAE,WAAA,MAAW,OAAK,CAAA,EAAA,EAAA,CACX,MAAM,SAAA,UAAA,KAAA,EACpB,mBAK6C,UAAA,EAAA,KAAA,GAAA,EAAA,WAJ5B,MAAM,QAAd,SAAI;yBADb,YAK6C,gBAAA;MAH1C,KAAK,KAAK;MACV,OAAO,KAAK;MACZ,UAAU,KAAK;;6BACa,CAAA,gBAAA,gBAA3B,KAAK,SAAS,KAAK,MAAK,EAAA,EAAA,CAAA,CAAA;;;gBAE9B,WAAe,KAAA,QAAA,WAAA,EAAA,KAAA,GAAA,CAAA,CAAA,EAAA,EAAA;IAGT,MAAM,eAAA,WAAA,EADd,mBAG+B,QAH/B,YAG+B,gBAA3B,MAAM,YAAW,EAAA,EAAA,IAAA,mBAAA,IAAA,KAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"Tabs.js","names":[],"sources":["../../../src/components/tabs/Tabs.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, ref, toRef, watch } from 'vue'\nimport { TabsRoot } from 'reka-ui'\nimport { tabsVariants, type TabsVariants } from '@auronui/styles'\nimport { composeClassName , type ClassValue} from '../../utils/composeClassName'\nimport { useTabsProvide } from './tabs.context'\n\nconst props = withDefaults(defineProps<{\n modelValue?: string\n defaultValue?: string\n orientation?: 'horizontal' | 'vertical'\n variant?: TabsVariants['variant']\n activationMode?: 'automatic' | 'manual'\n class?: ClassValue\n /** Override classes for individual slots */\n classNames?: Partial<{\n base: ClassValue\n }>\n}>(), {\n orientation: 'horizontal',\n variant: 'primary',\n activationMode: 'automatic',\n})\n\nconst emit = defineEmits<{\n 'update:modelValue': [value: string]\n}>()\n\nconst internalValue = ref<string | undefined>(props.modelValue ?? props.defaultValue)\n\nwatch(() => props.modelValue, (v) => {\n if (v !== undefined) internalValue.value = v\n})\n\nfunction changeTab(value: string) {\n internalValue.value = value\n emit('update:modelValue', value)\n}\n\nconst slotFns = computed(() => tabsVariants({ variant: props.variant }))\n\nuseTabsProvide({\n slotFns,\n orientation: toRef(props, 'orientation'),\n currentValue: internalValue,\n changeTab,\n})\n</script>\n\n<template>\n <TabsRoot\n :model-value=\"internalValue\"\n :orientation=\"props.orientation\"\n :activation-mode=\"props.activationMode\"\n :class=\"composeClassName(slotFns.base(), props.class, props.classNames?.base)\"\n :data-orientation=\"props.orientation\"\n @update:model-value=\"changeTab\"\n >\n <slot />\n </TabsRoot>\n</template>\n"],"mappings":""}
1
+ {"version":3,"file":"Tabs.js","names":[],"sources":["../../../src/components/tabs/Tabs.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, ref, toRef, watch } from 'vue'\nimport { TabsRoot } from 'reka-ui'\nimport { tabsVariants, type TabsVariants } from '@auronui/styles'\nimport { composeClassName , type ClassValue} from '../../utils/composeClassName'\nimport { useTabsProvide } from './tabs.context'\nimport TabList from './TabList.vue'\nimport Tab from './Tab.vue'\nimport TabPanel from './TabPanel.vue'\n\ntype TabShorthandItem = { value: string; label: string; content?: string; disabled?: boolean }\n\nconst props = withDefaults(defineProps<{\n modelValue?: string\n defaultValue?: string\n orientation?: 'horizontal' | 'vertical'\n variant?: TabsVariants['variant']\n activationMode?: 'automatic' | 'manual'\n class?: ClassValue\n /** Override classes for individual slots */\n classNames?: Partial<{\n base: ClassValue\n }>\n /** Shorthand API: render tabs from an array instead of the compound slot API */\n items?: TabShorthandItem[]\n}>(), {\n orientation: 'horizontal',\n variant: 'primary',\n activationMode: 'automatic',\n})\n\nconst emit = defineEmits<{\n 'update:modelValue': [value: string]\n}>()\n\nconst internalValue = ref<string | undefined>(props.modelValue ?? props.defaultValue)\n\nwatch(() => props.modelValue, (v) => {\n if (v !== undefined) internalValue.value = v\n})\n\nwatch(\n () => props.items,\n (items) => {\n if (items && items.length > 0 && !props.modelValue && !props.defaultValue && internalValue.value === undefined) {\n internalValue.value = items[0].value\n }\n },\n { immediate: true },\n)\n\nfunction changeTab(value: string) {\n internalValue.value = value\n emit('update:modelValue', value)\n}\n\nconst slotFns = computed(() => tabsVariants({ variant: props.variant }))\n\nuseTabsProvide({\n slotFns,\n orientation: toRef(props, 'orientation'),\n currentValue: internalValue,\n changeTab,\n})\n</script>\n\n<template>\n <TabsRoot\n :model-value=\"internalValue\"\n :orientation=\"props.orientation\"\n :activation-mode=\"props.activationMode\"\n :class=\"composeClassName(slotFns.base(), props.class, props.classNames?.base)\"\n :data-orientation=\"props.orientation\"\n @update:model-value=\"changeTab\"\n >\n <template v-if=\"props.items\">\n <TabList>\n <Tab\n v-for=\"item in props.items\"\n :key=\"item.value\"\n :value=\"item.value\"\n :disabled=\"item.disabled\"\n >{{ item.label }}</Tab>\n </TabList>\n <TabPanel\n v-for=\"item in props.items\"\n :key=\"item.value\"\n :value=\"item.value\"\n >{{ item.content }}</TabPanel>\n </template>\n <slot v-else />\n </TabsRoot>\n</template>\n"],"mappings":""}
@@ -1,6 +1,9 @@
1
1
  import { composeClassName } from "../../utils/composeClassName.js";
2
2
  import { useTabsProvide } from "./tabs.context.js";
3
- import { computed, createBlock, defineComponent, normalizeClass, openBlock, ref, renderSlot, toRef, unref, watch, withCtx } from "vue";
3
+ import TabList_default from "./TabList.js";
4
+ import Tab_default from "./Tab.js";
5
+ import TabPanel_default from "./TabPanel.js";
6
+ import { Fragment, computed, createBlock, createElementBlock, createTextVNode, createVNode, defineComponent, normalizeClass, openBlock, ref, renderList, renderSlot, toDisplayString, toRef, unref, watch, withCtx } from "vue";
4
7
  import { tabsVariants } from "@auronui/styles";
5
8
  import { TabsRoot } from "reka-ui";
6
9
  //#region src/components/tabs/Tabs.vue?vue&type=script&setup=true&lang.ts
@@ -19,7 +22,8 @@ var Tabs_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCom
19
22
  Object,
20
23
  Array
21
24
  ] },
22
- classNames: {}
25
+ classNames: {},
26
+ items: {}
23
27
  },
24
28
  emits: ["update:modelValue"],
25
29
  setup(__props, { emit: __emit }) {
@@ -29,6 +33,9 @@ var Tabs_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCom
29
33
  watch(() => props.modelValue, (v) => {
30
34
  if (v !== void 0) internalValue.value = v;
31
35
  });
36
+ watch(() => props.items, (items) => {
37
+ if (items && items.length > 0 && !props.modelValue && !props.defaultValue && internalValue.value === void 0) internalValue.value = items[0].value;
38
+ }, { immediate: true });
32
39
  function changeTab(value) {
33
40
  internalValue.value = value;
34
41
  emit("update:modelValue", value);
@@ -49,7 +56,27 @@ var Tabs_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCom
49
56
  "data-orientation": props.orientation,
50
57
  "onUpdate:modelValue": changeTab
51
58
  }, {
52
- default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
59
+ default: withCtx(() => [props.items ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createVNode(TabList_default, null, {
60
+ default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(props.items, (item) => {
61
+ return openBlock(), createBlock(Tab_default, {
62
+ key: item.value,
63
+ value: item.value,
64
+ disabled: item.disabled
65
+ }, {
66
+ default: withCtx(() => [createTextVNode(toDisplayString(item.label), 1)]),
67
+ _: 2
68
+ }, 1032, ["value", "disabled"]);
69
+ }), 128))]),
70
+ _: 1
71
+ }), (openBlock(true), createElementBlock(Fragment, null, renderList(props.items, (item) => {
72
+ return openBlock(), createBlock(TabPanel_default, {
73
+ key: item.value,
74
+ value: item.value
75
+ }, {
76
+ default: withCtx(() => [createTextVNode(toDisplayString(item.content), 1)]),
77
+ _: 2
78
+ }, 1032, ["value"]);
79
+ }), 128))], 64)) : renderSlot(_ctx.$slots, "default", { key: 1 })]),
53
80
  _: 3
54
81
  }, 8, [
55
82
  "model-value",
@@ -1 +1 @@
1
- {"version":3,"file":"Tabs.vue_vue_type_script_setup_true_lang.js","names":[],"sources":["../../../src/components/tabs/Tabs.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, ref, toRef, watch } from 'vue'\nimport { TabsRoot } from 'reka-ui'\nimport { tabsVariants, type TabsVariants } from '@auronui/styles'\nimport { composeClassName , type ClassValue} from '../../utils/composeClassName'\nimport { useTabsProvide } from './tabs.context'\n\nconst props = withDefaults(defineProps<{\n modelValue?: string\n defaultValue?: string\n orientation?: 'horizontal' | 'vertical'\n variant?: TabsVariants['variant']\n activationMode?: 'automatic' | 'manual'\n class?: ClassValue\n /** Override classes for individual slots */\n classNames?: Partial<{\n base: ClassValue\n }>\n}>(), {\n orientation: 'horizontal',\n variant: 'primary',\n activationMode: 'automatic',\n})\n\nconst emit = defineEmits<{\n 'update:modelValue': [value: string]\n}>()\n\nconst internalValue = ref<string | undefined>(props.modelValue ?? props.defaultValue)\n\nwatch(() => props.modelValue, (v) => {\n if (v !== undefined) internalValue.value = v\n})\n\nfunction changeTab(value: string) {\n internalValue.value = value\n emit('update:modelValue', value)\n}\n\nconst slotFns = computed(() => tabsVariants({ variant: props.variant }))\n\nuseTabsProvide({\n slotFns,\n orientation: toRef(props, 'orientation'),\n currentValue: internalValue,\n changeTab,\n})\n</script>\n\n<template>\n <TabsRoot\n :model-value=\"internalValue\"\n :orientation=\"props.orientation\"\n :activation-mode=\"props.activationMode\"\n :class=\"composeClassName(slotFns.base(), props.class, props.classNames?.base)\"\n :data-orientation=\"props.orientation\"\n @update:model-value=\"changeTab\"\n >\n <slot />\n </TabsRoot>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;EAOA,MAAM,QAAQ;EAiBd,MAAM,OAAO;EAIb,MAAM,gBAAgB,IAAwB,MAAM,cAAc,MAAM,aAAY;AAEpF,cAAY,MAAM,aAAa,MAAM;AACnC,OAAI,MAAM,KAAA,EAAW,eAAc,QAAQ;IAC5C;EAED,SAAS,UAAU,OAAe;AAChC,iBAAc,QAAQ;AACtB,QAAK,qBAAqB,MAAK;;EAGjC,MAAM,UAAU,eAAe,aAAa,EAAE,SAAS,MAAM,SAAS,CAAC,CAAA;AAEvE,iBAAe;GACb;GACA,aAAa,MAAM,OAAO,cAAc;GACxC,cAAc;GACd;GACD,CAAA;;uBAIC,YASW,MAAA,SAAA,EAAA;IARR,eAAa,cAAA;IACb,aAAa,MAAM;IACnB,mBAAiB,MAAM;IACvB,OAAK,eAAE,MAAA,iBAAgB,CAAC,QAAA,MAAQ,MAAI,EAAI,MAAM,OAAO,MAAM,YAAY,KAAI,CAAA;IAC3E,oBAAkB,MAAM;IACxB,uBAAoB;;2BAEb,CAAR,WAAQ,KAAA,QAAA,UAAA,CAAA,CAAA"}
1
+ {"version":3,"file":"Tabs.vue_vue_type_script_setup_true_lang.js","names":[],"sources":["../../../src/components/tabs/Tabs.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, ref, toRef, watch } from 'vue'\nimport { TabsRoot } from 'reka-ui'\nimport { tabsVariants, type TabsVariants } from '@auronui/styles'\nimport { composeClassName , type ClassValue} from '../../utils/composeClassName'\nimport { useTabsProvide } from './tabs.context'\nimport TabList from './TabList.vue'\nimport Tab from './Tab.vue'\nimport TabPanel from './TabPanel.vue'\n\ntype TabShorthandItem = { value: string; label: string; content?: string; disabled?: boolean }\n\nconst props = withDefaults(defineProps<{\n modelValue?: string\n defaultValue?: string\n orientation?: 'horizontal' | 'vertical'\n variant?: TabsVariants['variant']\n activationMode?: 'automatic' | 'manual'\n class?: ClassValue\n /** Override classes for individual slots */\n classNames?: Partial<{\n base: ClassValue\n }>\n /** Shorthand API: render tabs from an array instead of the compound slot API */\n items?: TabShorthandItem[]\n}>(), {\n orientation: 'horizontal',\n variant: 'primary',\n activationMode: 'automatic',\n})\n\nconst emit = defineEmits<{\n 'update:modelValue': [value: string]\n}>()\n\nconst internalValue = ref<string | undefined>(props.modelValue ?? props.defaultValue)\n\nwatch(() => props.modelValue, (v) => {\n if (v !== undefined) internalValue.value = v\n})\n\nwatch(\n () => props.items,\n (items) => {\n if (items && items.length > 0 && !props.modelValue && !props.defaultValue && internalValue.value === undefined) {\n internalValue.value = items[0].value\n }\n },\n { immediate: true },\n)\n\nfunction changeTab(value: string) {\n internalValue.value = value\n emit('update:modelValue', value)\n}\n\nconst slotFns = computed(() => tabsVariants({ variant: props.variant }))\n\nuseTabsProvide({\n slotFns,\n orientation: toRef(props, 'orientation'),\n currentValue: internalValue,\n changeTab,\n})\n</script>\n\n<template>\n <TabsRoot\n :model-value=\"internalValue\"\n :orientation=\"props.orientation\"\n :activation-mode=\"props.activationMode\"\n :class=\"composeClassName(slotFns.base(), props.class, props.classNames?.base)\"\n :data-orientation=\"props.orientation\"\n @update:model-value=\"changeTab\"\n >\n <template v-if=\"props.items\">\n <TabList>\n <Tab\n v-for=\"item in props.items\"\n :key=\"item.value\"\n :value=\"item.value\"\n :disabled=\"item.disabled\"\n >{{ item.label }}</Tab>\n </TabList>\n <TabPanel\n v-for=\"item in props.items\"\n :key=\"item.value\"\n :value=\"item.value\"\n >{{ item.content }}</TabPanel>\n </template>\n <slot v-else />\n </TabsRoot>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYA,MAAM,QAAQ;EAmBd,MAAM,OAAO;EAIb,MAAM,gBAAgB,IAAwB,MAAM,cAAc,MAAM,aAAY;AAEpF,cAAY,MAAM,aAAa,MAAM;AACnC,OAAI,MAAM,KAAA,EAAW,eAAc,QAAQ;IAC5C;AAED,cACQ,MAAM,QACX,UAAU;AACT,OAAI,SAAS,MAAM,SAAS,KAAK,CAAC,MAAM,cAAc,CAAC,MAAM,gBAAgB,cAAc,UAAU,KAAA,EACnG,eAAc,QAAQ,MAAM,GAAG;KAGnC,EAAE,WAAW,MAAM,CACrB;EAEA,SAAS,UAAU,OAAe;AAChC,iBAAc,QAAQ;AACtB,QAAK,qBAAqB,MAAK;;EAGjC,MAAM,UAAU,eAAe,aAAa,EAAE,SAAS,MAAM,SAAS,CAAC,CAAA;AAEvE,iBAAe;GACb;GACA,aAAa,MAAM,OAAO,cAAc;GACxC,cAAc;GACd;GACD,CAAA;;uBAIC,YAwBW,MAAA,SAAA,EAAA;IAvBR,eAAa,cAAA;IACb,aAAa,MAAM;IACnB,mBAAiB,MAAM;IACvB,OAAK,eAAE,MAAA,iBAAgB,CAAC,QAAA,MAAQ,MAAI,EAAI,MAAM,OAAO,MAAM,YAAY,KAAI,CAAA;IAC3E,oBAAkB,MAAM;IACxB,uBAAoB;;2BAgBV,CAdK,MAAM,SAAA,WAAA,EAAtB,mBAcW,UAAA,EAAA,KAAA,GAAA,EAAA,CAbT,YAOU,iBAAA,MAAA;4BALqB,EAAA,UAAA,KAAA,EAD7B,mBAKuB,UAAA,MAAA,WAJN,MAAM,QAAd,SAAI;0BADb,YAKuB,aAAA;OAHpB,KAAK,KAAK;OACV,OAAO,KAAK;OACZ,UAAU,KAAK;;8BACD,CAAA,gBAAA,gBAAb,KAAK,MAAK,EAAA,EAAA,CAAA,CAAA;;;;;0BAEhB,mBAI8B,UAAA,MAAA,WAHb,MAAM,QAAd,SAAI;yBADb,YAI8B,kBAAA;MAF3B,KAAK,KAAK;MACV,OAAO,KAAK;;6BACI,CAAA,gBAAA,gBAAf,KAAK,QAAO,EAAA,EAAA,CAAA,CAAA;;;uBAElB,WAAe,KAAA,QAAA,WAAA,EAAA,KAAA,GAAA,CAAA,CAAA,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"ToolbarToggleGroup.js","names":[],"sources":["../../../src/components/toolbar/ToolbarToggleGroup.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed } from 'vue'\nimport { ToolbarToggleGroup as RekaToolbarToggleGroup } from 'reka-ui'\nimport { toggleButtonGroupVariants } from '@auronui/styles'\nimport { composeClassName } from '../../utils/composeClassName'\nimport { useToolbarInject } from './toolbar.context'\n\ntype Single = string\ntype Multi = string[]\n\nconst props = defineProps<{\n type: 'single' | 'multiple'\n modelValue?: Single | Multi\n defaultValue?: Single | Multi\n disabled?: boolean\n orientation?: 'horizontal' | 'vertical'\n isDetached?: boolean\n class?: string\n}>()\n\nconst emit = defineEmits<{\n 'update:modelValue': [value: Single | Multi]\n}>()\n\nconst ctx = useToolbarInject({ orientation: computed(() => 'horizontal' as const) })\nconst orientation = computed(() => props.orientation ?? ctx.orientation.value)\n\nconst classes = computed(() =>\n toggleButtonGroupVariants({ orientation: orientation.value, isDetached: props.isDetached ?? false }).base()\n)\n</script>\n\n<template>\n <RekaToolbarToggleGroup\n :type=\"props.type\"\n :model-value=\"props.modelValue\"\n :default-value=\"props.defaultValue\"\n :disabled=\"props.disabled\"\n :class=\"composeClassName(classes, props.class)\"\n @update:model-value=\"(v) => emit('update:modelValue', v as Single | Multi)\"\n >\n <slot />\n </RekaToolbarToggleGroup>\n</template>\n"],"mappings":""}
1
+ {"version":3,"file":"ToolbarToggleGroup.js","names":[],"sources":["../../../src/components/toolbar/ToolbarToggleGroup.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed } from 'vue'\nimport { ToolbarToggleGroup as RekaToolbarToggleGroup } from 'reka-ui'\nimport { toggleButtonGroupVariants } from '@auronui/styles'\nimport { composeClassName } from '../../utils/composeClassName'\nimport { useToolbarInject } from './toolbar.context'\nimport ToolbarToggleItem from './ToolbarToggleItem.vue'\n\ntype Single = string\ntype Multi = string[]\ntype ToolbarToggleShorthandItem = { value: string; label?: string; variant?: string; size?: string; isIconOnly?: boolean; disabled?: boolean; class?: string }\n\nconst props = defineProps<{\n type: 'single' | 'multiple'\n modelValue?: Single | Multi\n defaultValue?: Single | Multi\n disabled?: boolean\n orientation?: 'horizontal' | 'vertical'\n isDetached?: boolean\n class?: string\n /** Shorthand API: render toggle items from an array instead of the compound slot API */\n items?: ToolbarToggleShorthandItem[]\n}>()\n\nconst emit = defineEmits<{\n 'update:modelValue': [value: Single | Multi]\n}>()\n\nconst ctx = useToolbarInject({ orientation: computed(() => 'horizontal' as const) })\nconst orientation = computed(() => props.orientation ?? ctx.orientation.value)\n\nconst classes = computed(() =>\n toggleButtonGroupVariants({ orientation: orientation.value, isDetached: props.isDetached ?? false }).base()\n)\n</script>\n\n<template>\n <RekaToolbarToggleGroup\n :type=\"props.type\"\n :model-value=\"props.modelValue\"\n :default-value=\"props.defaultValue\"\n :disabled=\"props.disabled\"\n :class=\"composeClassName(classes, props.class)\"\n @update:model-value=\"(v) => emit('update:modelValue', v as Single | Multi)\"\n >\n <template v-if=\"props.items\">\n <ToolbarToggleItem\n v-for=\"item in props.items\"\n :key=\"item.value\"\n :value=\"item.value\"\n :variant=\"item.variant\"\n :size=\"item.size\"\n :is-icon-only=\"item.isIconOnly\"\n :disabled=\"item.disabled\"\n :class=\"item.class\"\n >{{ item.label }}</ToolbarToggleItem>\n </template>\n <slot v-else />\n </RekaToolbarToggleGroup>\n</template>\n"],"mappings":""}
@@ -1,6 +1,7 @@
1
1
  import { composeClassName } from "../../utils/composeClassName.js";
2
2
  import { useToolbarInject } from "./toolbar.context.js";
3
- import { computed, createBlock, defineComponent, normalizeClass, openBlock, renderSlot, unref, withCtx } from "vue";
3
+ import ToolbarToggleItem_default from "./ToolbarToggleItem.js";
4
+ import { Fragment, computed, createBlock, createElementBlock, createTextVNode, defineComponent, normalizeClass, openBlock, renderList, renderSlot, toDisplayString, unref, withCtx } from "vue";
4
5
  import { toggleButtonGroupVariants } from "@auronui/styles";
5
6
  import { ToolbarToggleGroup } from "reka-ui";
6
7
  //#region src/components/toolbar/ToolbarToggleGroup.vue?vue&type=script&setup=true&lang.ts
@@ -13,7 +14,8 @@ var ToolbarToggleGroup_vue_vue_type_script_setup_true_lang_default = /* @__PURE_
13
14
  disabled: { type: Boolean },
14
15
  orientation: {},
15
16
  isDetached: { type: Boolean },
16
- class: {}
17
+ class: {},
18
+ items: {}
17
19
  },
18
20
  emits: ["update:modelValue"],
19
21
  setup(__props, { emit: __emit }) {
@@ -34,7 +36,27 @@ var ToolbarToggleGroup_vue_vue_type_script_setup_true_lang_default = /* @__PURE_
34
36
  class: normalizeClass(unref(composeClassName)(classes.value, props.class)),
35
37
  "onUpdate:modelValue": _cache[0] || (_cache[0] = (v) => emit("update:modelValue", v))
36
38
  }, {
37
- default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
39
+ default: withCtx(() => [props.items ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(props.items, (item) => {
40
+ return openBlock(), createBlock(ToolbarToggleItem_default, {
41
+ key: item.value,
42
+ value: item.value,
43
+ variant: item.variant,
44
+ size: item.size,
45
+ "is-icon-only": item.isIconOnly,
46
+ disabled: item.disabled,
47
+ class: normalizeClass(item.class)
48
+ }, {
49
+ default: withCtx(() => [createTextVNode(toDisplayString(item.label), 1)]),
50
+ _: 2
51
+ }, 1032, [
52
+ "value",
53
+ "variant",
54
+ "size",
55
+ "is-icon-only",
56
+ "disabled",
57
+ "class"
58
+ ]);
59
+ }), 128)) : renderSlot(_ctx.$slots, "default", { key: 1 })]),
38
60
  _: 3
39
61
  }, 8, [
40
62
  "type",
@@ -1 +1 @@
1
- {"version":3,"file":"ToolbarToggleGroup.vue_vue_type_script_setup_true_lang.js","names":[],"sources":["../../../src/components/toolbar/ToolbarToggleGroup.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed } from 'vue'\nimport { ToolbarToggleGroup as RekaToolbarToggleGroup } from 'reka-ui'\nimport { toggleButtonGroupVariants } from '@auronui/styles'\nimport { composeClassName } from '../../utils/composeClassName'\nimport { useToolbarInject } from './toolbar.context'\n\ntype Single = string\ntype Multi = string[]\n\nconst props = defineProps<{\n type: 'single' | 'multiple'\n modelValue?: Single | Multi\n defaultValue?: Single | Multi\n disabled?: boolean\n orientation?: 'horizontal' | 'vertical'\n isDetached?: boolean\n class?: string\n}>()\n\nconst emit = defineEmits<{\n 'update:modelValue': [value: Single | Multi]\n}>()\n\nconst ctx = useToolbarInject({ orientation: computed(() => 'horizontal' as const) })\nconst orientation = computed(() => props.orientation ?? ctx.orientation.value)\n\nconst classes = computed(() =>\n toggleButtonGroupVariants({ orientation: orientation.value, isDetached: props.isDetached ?? false }).base()\n)\n</script>\n\n<template>\n <RekaToolbarToggleGroup\n :type=\"props.type\"\n :model-value=\"props.modelValue\"\n :default-value=\"props.defaultValue\"\n :disabled=\"props.disabled\"\n :class=\"composeClassName(classes, props.class)\"\n @update:model-value=\"(v) => emit('update:modelValue', v as Single | Multi)\"\n >\n <slot />\n </RekaToolbarToggleGroup>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;EAUA,MAAM,QAAQ;EAUd,MAAM,OAAO;EAIb,MAAM,MAAM,iBAAiB,EAAE,aAAa,eAAe,aAAsB,EAAE,CAAA;EACnF,MAAM,cAAc,eAAe,MAAM,eAAe,IAAI,YAAY,MAAK;EAE7E,MAAM,UAAU,eACd,0BAA0B;GAAE,aAAa,YAAY;GAAO,YAAY,MAAM,cAAc;GAAO,CAAC,CAAC,MAAK,CAC5G;;uBAIE,YASyB,MAAA,mBAAA,EAAA;IARtB,MAAM,MAAM;IACZ,eAAa,MAAM;IACnB,iBAAe,MAAM;IACrB,UAAU,MAAM;IAChB,OAAK,eAAE,MAAA,iBAAgB,CAAC,QAAA,OAAS,MAAM,MAAK,CAAA;IAC5C,uBAAkB,OAAA,OAAA,OAAA,MAAG,MAAM,KAAI,qBAAsB,EAAC;;2BAE/C,CAAR,WAAQ,KAAA,QAAA,UAAA,CAAA,CAAA"}
1
+ {"version":3,"file":"ToolbarToggleGroup.vue_vue_type_script_setup_true_lang.js","names":[],"sources":["../../../src/components/toolbar/ToolbarToggleGroup.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed } from 'vue'\nimport { ToolbarToggleGroup as RekaToolbarToggleGroup } from 'reka-ui'\nimport { toggleButtonGroupVariants } from '@auronui/styles'\nimport { composeClassName } from '../../utils/composeClassName'\nimport { useToolbarInject } from './toolbar.context'\nimport ToolbarToggleItem from './ToolbarToggleItem.vue'\n\ntype Single = string\ntype Multi = string[]\ntype ToolbarToggleShorthandItem = { value: string; label?: string; variant?: string; size?: string; isIconOnly?: boolean; disabled?: boolean; class?: string }\n\nconst props = defineProps<{\n type: 'single' | 'multiple'\n modelValue?: Single | Multi\n defaultValue?: Single | Multi\n disabled?: boolean\n orientation?: 'horizontal' | 'vertical'\n isDetached?: boolean\n class?: string\n /** Shorthand API: render toggle items from an array instead of the compound slot API */\n items?: ToolbarToggleShorthandItem[]\n}>()\n\nconst emit = defineEmits<{\n 'update:modelValue': [value: Single | Multi]\n}>()\n\nconst ctx = useToolbarInject({ orientation: computed(() => 'horizontal' as const) })\nconst orientation = computed(() => props.orientation ?? ctx.orientation.value)\n\nconst classes = computed(() =>\n toggleButtonGroupVariants({ orientation: orientation.value, isDetached: props.isDetached ?? false }).base()\n)\n</script>\n\n<template>\n <RekaToolbarToggleGroup\n :type=\"props.type\"\n :model-value=\"props.modelValue\"\n :default-value=\"props.defaultValue\"\n :disabled=\"props.disabled\"\n :class=\"composeClassName(classes, props.class)\"\n @update:model-value=\"(v) => emit('update:modelValue', v as Single | Multi)\"\n >\n <template v-if=\"props.items\">\n <ToolbarToggleItem\n v-for=\"item in props.items\"\n :key=\"item.value\"\n :value=\"item.value\"\n :variant=\"item.variant\"\n :size=\"item.size\"\n :is-icon-only=\"item.isIconOnly\"\n :disabled=\"item.disabled\"\n :class=\"item.class\"\n >{{ item.label }}</ToolbarToggleItem>\n </template>\n <slot v-else />\n </RekaToolbarToggleGroup>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;EAYA,MAAM,QAAQ;EAYd,MAAM,OAAO;EAIb,MAAM,MAAM,iBAAiB,EAAE,aAAa,eAAe,aAAsB,EAAE,CAAA;EACnF,MAAM,cAAc,eAAe,MAAM,eAAe,IAAI,YAAY,MAAK;EAE7E,MAAM,UAAU,eACd,0BAA0B;GAAE,aAAa,YAAY;GAAO,YAAY,MAAM,cAAc;GAAO,CAAC,CAAC,MAAK,CAC5G;;uBAIE,YAqByB,MAAA,mBAAA,EAAA;IApBtB,MAAM,MAAM;IACZ,eAAa,MAAM;IACnB,iBAAe,MAAM;IACrB,UAAU,MAAM;IAChB,OAAK,eAAE,MAAA,iBAAgB,CAAC,QAAA,OAAS,MAAM,MAAK,CAAA;IAC5C,uBAAkB,OAAA,OAAA,OAAA,MAAG,MAAM,KAAI,qBAAsB,EAAC;;2BAa5C,CAXK,MAAM,SAAA,UAAA,KAAA,EACpB,mBASqC,UAAA,EAAA,KAAA,GAAA,EAAA,WARpB,MAAM,QAAd,SAAI;yBADb,YASqC,2BAAA;MAPlC,KAAK,KAAK;MACV,OAAO,KAAK;MACZ,SAAS,KAAK;MACd,MAAM,KAAK;MACX,gBAAc,KAAK;MACnB,UAAU,KAAK;MACf,OAAK,eAAE,KAAK,MAAK;;6BACH,CAAA,gBAAA,gBAAb,KAAK,MAAK,EAAA,EAAA,CAAA,CAAA;;;;;;;;;;gBAEhB,WAAe,KAAA,QAAA,WAAA,EAAA,KAAA,GAAA,CAAA,CAAA,CAAA"}
package/dist/index.d.ts CHANGED
@@ -1141,7 +1141,8 @@ format: ColorFormat;
1141
1141
 
1142
1142
  declare const __VLS_component_17: DefineComponent<__VLS_Props_18, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_18> & Readonly<{}>, {
1143
1143
  size: "md" | "sm" | "lg" | "xs" | "xl";
1144
- variant: "danger" | "success" | "warning" | "primary" | "secondary" | "danger-soft" | "ghost" | "outline" | "success-soft" | "tertiary" | "warning-soft";
1144
+ variant: "default" | "danger" | "success" | "warning" | "primary" | "secondary" | "soft" | "solid" | "outline" | "ghost" | "tertiary" | "danger-soft" | "success-soft" | "warning-soft";
1145
+ color: "default" | "danger" | "success" | "warning" | "primary";
1145
1146
  fullWidth: boolean;
1146
1147
  isIconOnly: boolean;
1147
1148
  isLoading: boolean;
@@ -1157,7 +1158,8 @@ declare const __VLS_component_18: DefineComponent<__VLS_Props_19, {}, {}, {}, {}
1157
1158
  "onUpdate:modelValue"?: ((value: ButtonGroupValue) => any) | undefined;
1158
1159
  }>, {
1159
1160
  size: "md" | "sm" | "lg" | "xs" | "xl";
1160
- variant: "danger" | "success" | "warning" | "primary" | "secondary" | "danger-soft" | "ghost" | "outline" | "success-soft" | "tertiary" | "warning-soft";
1161
+ variant: "default" | "danger" | "success" | "warning" | "primary" | "secondary" | "soft" | "solid" | "outline" | "ghost" | "tertiary" | "danger-soft" | "success-soft" | "warning-soft";
1162
+ color: "default" | "danger" | "success" | "warning" | "primary";
1161
1163
  fullWidth: boolean;
1162
1164
  orientation: "horizontal" | "vertical";
1163
1165
  disabled: boolean;
@@ -1903,6 +1905,8 @@ declare type __VLS_Props_106 = {
1903
1905
  classNames?: Partial<{
1904
1906
  base: ClassValue;
1905
1907
  }>;
1908
+ /** Shorthand API: render list items from an array instead of the compound slot API */
1909
+ items?: ListBoxShorthandItem[];
1906
1910
  };
1907
1911
 
1908
1912
  declare type __VLS_Props_107 = {
@@ -2259,6 +2263,8 @@ declare type __VLS_Props_142 = {
2259
2263
  total?: number;
2260
2264
  renderCount?: (count: number) => string;
2261
2265
  class?: string;
2266
+ /** Shorthand API: render avatars from an array instead of the compound slot API */
2267
+ avatars?: AvatarShorthandItem[];
2262
2268
  };
2263
2269
 
2264
2270
  declare type __VLS_Props_143 = {
@@ -2319,6 +2325,8 @@ declare type __VLS_Props_147 = {
2319
2325
  classNames?: Partial<{
2320
2326
  base: ClassValue;
2321
2327
  }>;
2328
+ /** Shorthand API: render steps from an array instead of the compound slot API */
2329
+ items?: StepperShorthandItem[];
2322
2330
  };
2323
2331
 
2324
2332
  declare type __VLS_Props_148 = {
@@ -2849,6 +2857,7 @@ declare type __VLS_Props_176 = {
2849
2857
 
2850
2858
  declare type __VLS_Props_18 = {
2851
2859
  variant?: ButtonVariants['variant'];
2860
+ color?: ButtonVariants['color'];
2852
2861
  size?: ButtonVariants['size'];
2853
2862
  radius?: ButtonVariants['radius'];
2854
2863
  isIconOnly?: boolean;
@@ -2870,6 +2879,7 @@ declare type __VLS_Props_18 = {
2870
2879
 
2871
2880
  declare type __VLS_Props_19 = {
2872
2881
  variant?: ButtonVariants['variant'];
2882
+ color?: ButtonVariants['color'];
2873
2883
  size?: ButtonVariants['size'];
2874
2884
  disabled?: boolean;
2875
2885
  fullWidth?: boolean;
@@ -2881,6 +2891,8 @@ declare type __VLS_Props_19 = {
2881
2891
  }>;
2882
2892
  selectionMode?: ButtonGroupSelectionMode;
2883
2893
  modelValue?: ButtonGroupValue;
2894
+ /** Shorthand API: render buttons from an array instead of the compound slot API */
2895
+ buttons?: ButtonShorthandItem[];
2884
2896
  };
2885
2897
 
2886
2898
  declare type __VLS_Props_2 = {
@@ -2923,6 +2935,8 @@ declare type __VLS_Props_22 = {
2923
2935
  classNames?: Partial<{
2924
2936
  base: ClassValue;
2925
2937
  }>;
2938
+ /** Shorthand API: render toggle buttons from an array instead of the compound slot API */
2939
+ buttons?: ToggleButtonShorthandItem[];
2926
2940
  };
2927
2941
 
2928
2942
  declare type __VLS_Props_23 = {
@@ -3054,6 +3068,8 @@ declare type __VLS_Props_31 = {
3054
3068
  label?: string;
3055
3069
  description?: string;
3056
3070
  class?: string;
3071
+ /** Shorthand API: render checkboxes from an array instead of the compound slot API */
3072
+ items?: CheckboxShorthandItem[];
3057
3073
  };
3058
3074
 
3059
3075
  declare type __VLS_Props_32 = {
@@ -3080,6 +3096,8 @@ declare type __VLS_Props_33 = {
3080
3096
  label?: string;
3081
3097
  description?: string;
3082
3098
  class?: string;
3099
+ /** Shorthand API: render radio options from an array instead of the compound slot API */
3100
+ items?: RadioShorthandItem[];
3083
3101
  };
3084
3102
 
3085
3103
  declare type __VLS_Props_34 = {
@@ -3109,6 +3127,8 @@ declare type __VLS_Props_35 = {
3109
3127
  label?: string;
3110
3128
  description?: string;
3111
3129
  class?: string;
3130
+ /** Shorthand API: render switches from an array instead of the compound slot API */
3131
+ items?: SwitchShorthandItem[];
3112
3132
  };
3113
3133
 
3114
3134
  declare type __VLS_Props_36 = {
@@ -3372,6 +3392,8 @@ declare type __VLS_Props_73 = {
3372
3392
  classNames?: Partial<{
3373
3393
  base: ClassValue;
3374
3394
  }>;
3395
+ /** Shorthand API: render tabs from an array instead of the compound slot API */
3396
+ items?: TabShorthandItem[];
3375
3397
  };
3376
3398
 
3377
3399
  declare type __VLS_Props_74 = {
@@ -3425,6 +3447,8 @@ declare type __VLS_Props_78 = {
3425
3447
  classNames?: Partial<{
3426
3448
  base: ClassValue;
3427
3449
  }>;
3450
+ /** Shorthand API: render items from an array instead of the compound slot API */
3451
+ items?: AccordionShorthandItem[];
3428
3452
  };
3429
3453
 
3430
3454
  declare type __VLS_Props_79 = {
@@ -3511,6 +3535,8 @@ declare type __VLS_Props_86 = {
3511
3535
  classNames?: Partial<{
3512
3536
  base: ClassValue;
3513
3537
  }>;
3538
+ /** Shorthand API: render collapsibles from an array instead of the compound slot API */
3539
+ items?: CollapsibleShorthandItem[];
3514
3540
  };
3515
3541
 
3516
3542
  declare type __VLS_Props_87 = {
@@ -3521,6 +3547,8 @@ declare type __VLS_Props_87 = {
3521
3547
  base: ClassValue;
3522
3548
  item: ClassValue;
3523
3549
  }>;
3550
+ /** Shorthand API: render breadcrumb items from an array instead of the compound slot API */
3551
+ items?: BreadcrumbShorthandItem[];
3524
3552
  };
3525
3553
 
3526
3554
  declare type __VLS_Props_88 = {
@@ -3584,6 +3612,8 @@ declare type __VLS_Props_93 = {
3584
3612
  orientation?: 'horizontal' | 'vertical';
3585
3613
  isDetached?: boolean;
3586
3614
  class?: string;
3615
+ /** Shorthand API: render toggle items from an array instead of the compound slot API */
3616
+ items?: ToolbarToggleShorthandItem[];
3587
3617
  };
3588
3618
 
3589
3619
  declare type __VLS_Props_94 = {
@@ -7059,6 +7089,13 @@ export declare const AccordionHeader: __VLS_WithTemplateSlots_71<typeof __VLS_co
7059
7089
 
7060
7090
  export declare const AccordionItem: __VLS_WithTemplateSlots_70<typeof __VLS_component_70, __VLS_TemplateResult_70["slots"]>;
7061
7091
 
7092
+ declare type AccordionShorthandItem = {
7093
+ value: string;
7094
+ title: string;
7095
+ content?: string;
7096
+ disabled?: boolean;
7097
+ };
7098
+
7062
7099
  export declare const AccordionTrigger: __VLS_WithTemplateSlots_72<typeof __VLS_component_72, __VLS_TemplateResult_72["slots"]>;
7063
7100
 
7064
7101
  export declare const Alert: __VLS_WithTemplateSlots_85<typeof __VLS_component_85, __VLS_TemplateResult_85["slots"]>;
@@ -7249,6 +7286,17 @@ export declare interface AvatarGroupContext {
7249
7286
  isInGroup: Ref<boolean>;
7250
7287
  }
7251
7288
 
7289
+ declare type AvatarShorthandItem = {
7290
+ src?: string;
7291
+ alt?: string;
7292
+ name?: string;
7293
+ color?: string;
7294
+ variant?: string;
7295
+ isBordered?: boolean;
7296
+ isDisabled?: boolean;
7297
+ showFallback?: boolean;
7298
+ };
7299
+
7252
7300
  export declare const Badge: __VLS_WithTemplateSlots_8<typeof __VLS_component_8, __VLS_TemplateResult_8["slots"]>;
7253
7301
 
7254
7302
  export { BadgeVariants }
@@ -7257,12 +7305,18 @@ export declare const BreadcrumbItem: __VLS_WithTemplateSlots_79<typeof __VLS_com
7257
7305
 
7258
7306
  export declare const Breadcrumbs: __VLS_WithTemplateSlots_78<typeof __VLS_component_78, __VLS_TemplateResult_78["slots"]>;
7259
7307
 
7308
+ declare type BreadcrumbShorthandItem = {
7309
+ label: string;
7310
+ href?: string;
7311
+ };
7312
+
7260
7313
  export declare const Button: __VLS_WithTemplateSlots_17<typeof __VLS_component_17, __VLS_TemplateResult_17["slots"]>;
7261
7314
 
7262
7315
  export declare const ButtonGroup: __VLS_WithTemplateSlots_18<typeof __VLS_component_18, __VLS_TemplateResult_18["slots"]>;
7263
7316
 
7264
7317
  export declare interface ButtonGroupContext {
7265
7318
  variant: Ref<ButtonVariants['variant']>;
7319
+ color: Ref<ButtonVariants['color']>;
7266
7320
  size: Ref<ButtonVariants['size']>;
7267
7321
  disabled: Ref<boolean>;
7268
7322
  fullWidth: Ref<boolean>;
@@ -7277,6 +7331,16 @@ declare type ButtonGroupSelectionMode = 'single' | 'multiple';
7277
7331
 
7278
7332
  declare type ButtonGroupValue = string | number | null | Array<string | number>;
7279
7333
 
7334
+ declare type ButtonShorthandItem = {
7335
+ label: string;
7336
+ value?: string | number;
7337
+ disabled?: boolean;
7338
+ isLoading?: boolean;
7339
+ variant?: ButtonVariants['variant'];
7340
+ color?: ButtonVariants['color'];
7341
+ class?: string;
7342
+ };
7343
+
7280
7344
  export { ButtonVariants }
7281
7345
 
7282
7346
  export declare const Calendar: DefineComponent<__VLS_PublicProps_7, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
@@ -7331,6 +7395,12 @@ export declare interface CheckboxGroupContext {
7331
7395
 
7332
7396
  export declare const checkboxGroupContextKey: InjectionKey<CheckboxGroupContext>;
7333
7397
 
7398
+ declare type CheckboxShorthandItem = {
7399
+ value: string;
7400
+ label?: string;
7401
+ disabled?: boolean;
7402
+ };
7403
+
7334
7404
  export { ChipVariants }
7335
7405
  export { ChipVariants as TagVariants }
7336
7406
 
@@ -7356,6 +7426,13 @@ export declare const CollapsibleContent: __VLS_WithTemplateSlots_76<typeof __VLS
7356
7426
 
7357
7427
  export declare const CollapsibleGroup: __VLS_WithTemplateSlots_77<typeof __VLS_component_77, __VLS_TemplateResult_77["slots"]>;
7358
7428
 
7429
+ declare type CollapsibleShorthandItem = {
7430
+ title: string;
7431
+ content?: string;
7432
+ defaultOpen?: boolean;
7433
+ disabled?: boolean;
7434
+ };
7435
+
7359
7436
  export declare const CollapsibleTrigger: __VLS_WithTemplateSlots_75<typeof __VLS_component_75, __VLS_TemplateResult_75["slots"]>;
7360
7437
 
7361
7438
  export declare const ColorArea: DefineComponent<__VLS_Props_170, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
@@ -7806,6 +7883,13 @@ export declare function composeSlotClassName<V extends Record<string, unknown>>(
7806
7883
 
7807
7884
  export { ListBoxSectionVariants }
7808
7885
 
7886
+ declare type ListBoxShorthandItem = {
7887
+ value: string;
7888
+ label?: string;
7889
+ disabled?: boolean;
7890
+ textValue?: string;
7891
+ };
7892
+
7809
7893
  export { ListBoxVariants }
7810
7894
 
7811
7895
  export declare interface ListData<T> {
@@ -8602,6 +8686,12 @@ export declare function composeSlotClassName<V extends Record<string, unknown>>(
8602
8686
 
8603
8687
  export declare const radioGroupContextKey: InjectionKey<RadioGroupContext>;
8604
8688
 
8689
+ declare type RadioShorthandItem = {
8690
+ value: string;
8691
+ label?: string;
8692
+ disabled?: boolean;
8693
+ };
8694
+
8605
8695
  export declare const RangeCalendar: DefineComponent<__VLS_PublicProps_8, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
8606
8696
  "update:modelValue": (value: DateRange | null) => any;
8607
8697
  }, string, PublicProps, Readonly<__VLS_PublicProps_8> & Readonly<{
@@ -8759,6 +8849,11 @@ export declare function composeSlotClassName<V extends Record<string, unknown>>(
8759
8849
  }>;
8760
8850
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
8761
8851
 
8852
+ declare type StepperShorthandItem = {
8853
+ title?: string;
8854
+ description?: string;
8855
+ };
8856
+
8762
8857
  export declare const StepperTitle: __VLS_WithTemplateSlots_146<typeof __VLS_component_146, __VLS_TemplateResult_146["slots"]>;
8763
8858
 
8764
8859
  export { StepperVariants }
@@ -8802,6 +8897,12 @@ export declare function composeSlotClassName<V extends Record<string, unknown>>(
8802
8897
 
8803
8898
  export declare const switchGroupContextKey: InjectionKey<SwitchGroupContext>;
8804
8899
 
8900
+ declare type SwitchShorthandItem = {
8901
+ value: string;
8902
+ label?: string;
8903
+ disabled?: boolean;
8904
+ };
8905
+
8805
8906
  export declare const Tab: __VLS_WithTemplateSlots_67<typeof __VLS_component_67, __VLS_TemplateResult_67["slots"]>;
8806
8907
 
8807
8908
  export declare const TabIndicator: DefineComponent<__VLS_Props_77, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_77> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
@@ -8879,6 +8980,13 @@ export declare function composeSlotClassName<V extends Record<string, unknown>>(
8879
8980
 
8880
8981
  export declare const Tabs: __VLS_WithTemplateSlots_65<typeof __VLS_component_65, __VLS_TemplateResult_65["slots"]>;
8881
8982
 
8983
+ declare type TabShorthandItem = {
8984
+ value: string;
8985
+ label: string;
8986
+ content?: string;
8987
+ disabled?: boolean;
8988
+ };
8989
+
8882
8990
  declare const Text_2: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
8883
8991
  export { Text_2 as Text }
8884
8992
 
@@ -8965,6 +9073,14 @@ export declare function composeSlotClassName<V extends Record<string, unknown>>(
8965
9073
  toggleValue: (value: string) => void;
8966
9074
  }
8967
9075
 
9076
+ declare type ToggleButtonShorthandItem = {
9077
+ value: string;
9078
+ label?: string;
9079
+ isIconOnly?: boolean;
9080
+ disabled?: boolean;
9081
+ class?: string;
9082
+ };
9083
+
8968
9084
  export declare const Toolbar: __VLS_WithTemplateSlots_80<typeof __VLS_component_80, __VLS_TemplateResult_80["slots"]>;
8969
9085
 
8970
9086
  export declare const ToolbarButton: __VLS_WithTemplateSlots_81<typeof __VLS_component_81, __VLS_TemplateResult_81["slots"]>;
@@ -8977,6 +9093,16 @@ export declare function composeSlotClassName<V extends Record<string, unknown>>(
8977
9093
 
8978
9094
  export declare const ToolbarToggleItem: __VLS_WithTemplateSlots_84<typeof __VLS_component_84, __VLS_TemplateResult_84["slots"]>;
8979
9095
 
9096
+ declare type ToolbarToggleShorthandItem = {
9097
+ value: string;
9098
+ label?: string;
9099
+ variant?: string;
9100
+ size?: string;
9101
+ isIconOnly?: boolean;
9102
+ disabled?: boolean;
9103
+ class?: string;
9104
+ };
9105
+
8980
9106
  /**
8981
9107
  * Tooltip root component. Wraps Reka UI's TooltipRoot.
8982
9108
  *