iryx-ui 0.11.0 → 0.13.0

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 (258) hide show
  1. package/README.md +35 -1235
  2. package/dist/component-names.d.ts +1 -1
  3. package/dist/component-names.js +1 -1
  4. package/dist/components/Accordion.js +5 -0
  5. package/dist/components/Accordion.vue.d.ts +80 -0
  6. package/dist/components/Accordion.vue_vue_type_script_setup_true_lang.js +87 -0
  7. package/dist/components/Alert.vue.d.ts +1 -1
  8. package/dist/components/Alert.vue_vue_type_script_setup_true_lang.js +43 -43
  9. package/dist/components/App.vue.d.ts +1 -1
  10. package/dist/components/AppShell.js +5 -0
  11. package/dist/components/AppShell.vue.d.ts +46 -0
  12. package/dist/components/AppShell.vue_vue_type_script_setup_true_lang.js +59 -0
  13. package/dist/components/AspectRatio.js +5 -0
  14. package/dist/components/AspectRatio.vue.d.ts +26 -0
  15. package/dist/components/AspectRatio.vue_vue_type_script_setup_true_lang.js +27 -0
  16. package/dist/components/Avatar.js +5 -0
  17. package/dist/components/Avatar.vue.d.ts +52 -0
  18. package/dist/components/Avatar.vue_vue_type_script_setup_true_lang.js +67 -0
  19. package/dist/components/AvatarGroup.js +5 -0
  20. package/dist/components/AvatarGroup.vue.d.ts +39 -0
  21. package/dist/components/AvatarGroup.vue_vue_type_script_setup_true_lang.js +45 -0
  22. package/dist/components/Badge.vue.d.ts +1 -1
  23. package/dist/components/Banner.vue.d.ts +2 -2
  24. package/dist/components/Banner.vue_vue_type_script_setup_true_lang.js +40 -40
  25. package/dist/components/BarChart.vue.d.ts +1 -1
  26. package/dist/components/BarChart.vue_vue_type_script_setup_true_lang.js +14 -14
  27. package/dist/components/Breadcrumb.vue_vue_type_script_setup_true_lang.js +28 -28
  28. package/dist/components/Button.vue.d.ts +2 -2
  29. package/dist/components/Button.vue_vue_type_script_setup_true_lang.js +14 -14
  30. package/dist/components/ButtonGroup.vue.d.ts +1 -1
  31. package/dist/components/Card.vue.d.ts +1 -1
  32. package/dist/components/Checkbox.vue_vue_type_script_setup_true_lang.js +37 -30
  33. package/dist/components/Collapsible.js +5 -0
  34. package/dist/components/Collapsible.vue.d.ts +58 -0
  35. package/dist/components/Collapsible.vue_vue_type_script_setup_true_lang.js +67 -0
  36. package/dist/components/ColorPicker.js +5 -0
  37. package/dist/components/ColorPicker.vue.d.ts +49 -0
  38. package/dist/components/ColorPicker.vue_vue_type_script_setup_true_lang.js +172 -0
  39. package/dist/components/Combobox.vue.d.ts +6 -6
  40. package/dist/components/Combobox.vue_vue_type_script_setup_true_lang.js +62 -60
  41. package/dist/components/CommandPalette.js +5 -0
  42. package/dist/components/CommandPalette.vue.d.ts +63 -0
  43. package/dist/components/CommandPalette.vue_vue_type_script_setup_true_lang.js +185 -0
  44. package/dist/components/Container.js +5 -0
  45. package/dist/components/Container.vue.d.ts +33 -0
  46. package/dist/components/Container.vue_vue_type_script_setup_true_lang.js +40 -0
  47. package/dist/components/ContextMenu.js +5 -0
  48. package/dist/components/ContextMenu.vue.d.ts +42 -0
  49. package/dist/components/ContextMenu.vue_vue_type_script_setup_true_lang.js +49 -0
  50. package/dist/components/DatePicker.vue_vue_type_script_setup_true_lang.js +65 -65
  51. package/dist/components/DateRangePicker.vue.d.ts +1 -1
  52. package/dist/components/DateRangePicker.vue_vue_type_script_setup_true_lang.js +74 -74
  53. package/dist/components/Dialog.vue.d.ts +1 -1
  54. package/dist/components/Dialog.vue_vue_type_script_setup_true_lang.js +34 -34
  55. package/dist/components/Drawer.js +5 -0
  56. package/dist/components/Drawer.vue.d.ts +94 -0
  57. package/dist/components/Drawer.vue_vue_type_script_setup_true_lang.js +144 -0
  58. package/dist/components/DropdownMenuItems.vue_vue_type_script_setup_true_lang.js +42 -42
  59. package/dist/components/EmptyState.vue.d.ts +1 -1
  60. package/dist/components/FileUpload.vue_vue_type_script_setup_true_lang.js +77 -77
  61. package/dist/components/Icon.vue_vue_type_script_setup_true_lang.js +11 -11
  62. package/dist/components/Input.vue.d.ts +1 -1
  63. package/dist/components/Input.vue_vue_type_script_setup_true_lang.js +33 -33
  64. package/dist/components/Kbd.js +5 -0
  65. package/dist/components/Kbd.vue.d.ts +46 -0
  66. package/dist/components/Kbd.vue_vue_type_script_setup_true_lang.js +41 -0
  67. package/dist/components/LineChart.vue_vue_type_script_setup_true_lang.js +19 -19
  68. package/dist/components/Menubar.js +5 -0
  69. package/dist/components/Menubar.vue.d.ts +62 -0
  70. package/dist/components/Menubar.vue_vue_type_script_setup_true_lang.js +79 -0
  71. package/dist/components/NavigationMenu.js +5 -0
  72. package/dist/components/NavigationMenu.vue.d.ts +75 -0
  73. package/dist/components/NavigationMenu.vue_vue_type_script_setup_true_lang.js +167 -0
  74. package/dist/components/NumberInput.vue_vue_type_script_setup_true_lang.js +68 -66
  75. package/dist/components/PageHeader.js +5 -0
  76. package/dist/components/PageHeader.vue.d.ts +52 -0
  77. package/dist/components/PageHeader.vue_vue_type_script_setup_true_lang.js +59 -0
  78. package/dist/components/Pagination.vue_vue_type_script_setup_true_lang.js +37 -37
  79. package/dist/components/PasswordInput.vue_vue_type_script_setup_true_lang.js +37 -37
  80. package/dist/components/PinInput.js +5 -0
  81. package/dist/components/PinInput.vue.d.ts +65 -0
  82. package/dist/components/PinInput.vue_vue_type_script_setup_true_lang.js +76 -0
  83. package/dist/components/Popover.js +5 -0
  84. package/dist/components/Popover.vue.d.ts +75 -0
  85. package/dist/components/Popover.vue_vue_type_script_setup_true_lang.js +99 -0
  86. package/dist/components/Progress.vue.d.ts +20 -1
  87. package/dist/components/Progress.vue_vue_type_script_setup_true_lang.js +85 -42
  88. package/dist/components/RadioGroup.vue_vue_type_script_setup_true_lang.js +4 -1
  89. package/dist/components/ScrollArea.js +5 -0
  90. package/dist/components/ScrollArea.vue.d.ts +41 -0
  91. package/dist/components/ScrollArea.vue_vue_type_script_setup_true_lang.js +68 -0
  92. package/dist/components/ScrollFade.js +5 -0
  93. package/dist/components/ScrollFade.vue.d.ts +36 -0
  94. package/dist/components/ScrollFade.vue_vue_type_script_setup_true_lang.js +59 -0
  95. package/dist/components/Select.vue.d.ts +2 -2
  96. package/dist/components/Select.vue_vue_type_script_setup_true_lang.js +47 -45
  97. package/dist/components/Sidebar.js +5 -0
  98. package/dist/components/Sidebar.vue.d.ts +72 -0
  99. package/dist/components/Sidebar.vue_vue_type_script_setup_true_lang.js +183 -0
  100. package/dist/components/SignaturePad.js +5 -0
  101. package/dist/components/SignaturePad.vue.d.ts +60 -0
  102. package/dist/components/SignaturePad.vue_vue_type_script_setup_true_lang.js +158 -0
  103. package/dist/components/Skeleton.vue.d.ts +1 -1
  104. package/dist/components/Skeleton.vue_vue_type_script_setup_true_lang.js +8 -8
  105. package/dist/components/Slider.js +5 -0
  106. package/dist/components/Slider.vue.d.ts +80 -0
  107. package/dist/components/Slider.vue_vue_type_script_setup_true_lang.js +115 -0
  108. package/dist/components/Splitter.js +5 -0
  109. package/dist/components/Splitter.vue.d.ts +59 -0
  110. package/dist/components/Splitter.vue_vue_type_script_setup_true_lang.js +69 -0
  111. package/dist/components/Stat.vue.d.ts +1 -1
  112. package/dist/components/Stat.vue_vue_type_script_setup_true_lang.js +27 -27
  113. package/dist/components/Stepper.vue_vue_type_script_setup_true_lang.js +38 -38
  114. package/dist/components/Switch.vue.d.ts +1 -0
  115. package/dist/components/Switch.vue_vue_type_script_setup_true_lang.js +16 -5
  116. package/dist/components/Table.vue.d.ts +7 -1
  117. package/dist/components/Table.vue_vue_type_script_setup_true_lang.js +120 -105
  118. package/dist/components/TagsInput.js +5 -0
  119. package/dist/components/TagsInput.vue.d.ts +71 -0
  120. package/dist/components/TagsInput.vue_vue_type_script_setup_true_lang.js +119 -0
  121. package/dist/components/Textarea.vue_vue_type_script_setup_true_lang.js +3 -3
  122. package/dist/components/TimeField.js +5 -0
  123. package/dist/components/TimeField.vue.d.ts +50 -0
  124. package/dist/components/TimeField.vue_vue_type_script_setup_true_lang.js +85 -0
  125. package/dist/components/Timeline.js +5 -0
  126. package/dist/components/Timeline.vue.d.ts +61 -0
  127. package/dist/components/Timeline.vue_vue_type_script_setup_true_lang.js +60 -0
  128. package/dist/components/Toaster.vue.d.ts +1 -1
  129. package/dist/components/Toaster.vue_vue_type_script_setup_true_lang.js +41 -41
  130. package/dist/components/Toggle.js +5 -0
  131. package/dist/components/Toggle.vue.d.ts +42 -0
  132. package/dist/components/Toggle.vue_vue_type_script_setup_true_lang.js +52 -0
  133. package/dist/components/ToggleGroup.js +5 -0
  134. package/dist/components/ToggleGroup.vue.d.ts +64 -0
  135. package/dist/components/ToggleGroup.vue_vue_type_script_setup_true_lang.js +78 -0
  136. package/dist/components/Toolbar.js +5 -0
  137. package/dist/components/Toolbar.vue.d.ts +52 -0
  138. package/dist/components/Toolbar.vue_vue_type_script_setup_true_lang.js +94 -0
  139. package/dist/components/Tree.js +5 -0
  140. package/dist/components/Tree.vue.d.ts +70 -0
  141. package/dist/components/Tree.vue_vue_type_script_setup_true_lang.js +112 -0
  142. package/dist/components/index.d.ts +30 -0
  143. package/dist/components/index.js +144 -84
  144. package/dist/composables/appearance.js +5 -1
  145. package/dist/composables/cartesian.d.ts +11 -0
  146. package/dist/composables/cartesian.js +18 -19
  147. package/dist/composables/command-palette.d.ts +42 -0
  148. package/dist/composables/command-palette.js +32 -0
  149. package/dist/composables/date.d.ts +18 -2
  150. package/dist/composables/date.js +23 -15
  151. package/dist/composables/kbd.d.ts +26 -0
  152. package/dist/composables/kbd.js +161 -0
  153. package/dist/composables/navigation-menu.d.ts +29 -0
  154. package/dist/composables/navigation-menu.js +6 -0
  155. package/dist/composables/scroll-fade.d.ts +35 -0
  156. package/dist/composables/scroll-fade.js +36 -0
  157. package/dist/composables/sidebar.d.ts +35 -0
  158. package/dist/composables/sidebar.js +23 -0
  159. package/dist/composables/signature.d.ts +22 -0
  160. package/dist/composables/signature.js +13 -0
  161. package/dist/index.d.ts +36 -0
  162. package/dist/index.js +153 -92
  163. package/dist/theme/accordion.d.ts +68 -0
  164. package/dist/theme/accordion.js +24 -0
  165. package/dist/theme/alert.d.ts +0 -3
  166. package/dist/theme/app-shell.d.ts +77 -0
  167. package/dist/theme/app-shell.js +35 -0
  168. package/dist/theme/avatar.d.ts +253 -0
  169. package/dist/theme/avatar.js +84 -0
  170. package/dist/theme/banner.d.ts +0 -9
  171. package/dist/theme/bar-chart.d.ts +0 -16
  172. package/dist/theme/breadcrumb.d.ts +3 -3
  173. package/dist/theme/button-group.d.ts +0 -3
  174. package/dist/theme/button.d.ts +0 -3
  175. package/dist/theme/card.js +2 -2
  176. package/dist/theme/chart-legend.d.ts +3 -11
  177. package/dist/theme/collapsible.d.ts +44 -0
  178. package/dist/theme/collapsible.js +17 -0
  179. package/dist/theme/color-picker.d.ts +98 -0
  180. package/dist/theme/color-picker.js +19 -0
  181. package/dist/theme/command-palette.d.ts +122 -0
  182. package/dist/theme/command-palette.js +22 -0
  183. package/dist/theme/container.d.ts +101 -0
  184. package/dist/theme/container.js +26 -0
  185. package/dist/theme/date-picker.d.ts +12 -0
  186. package/dist/theme/date-picker.js +1 -1
  187. package/dist/theme/drawer.d.ts +110 -0
  188. package/dist/theme/drawer.js +100 -0
  189. package/dist/theme/dropdown-menu.d.ts +0 -9
  190. package/dist/theme/file-upload.d.ts +0 -3
  191. package/dist/theme/form.d.ts +12 -12
  192. package/dist/theme/index.d.ts +26 -0
  193. package/dist/theme/kbd.d.ts +71 -0
  194. package/dist/theme/kbd.js +29 -0
  195. package/dist/theme/line-chart.d.ts +0 -9
  196. package/dist/theme/menubar.d.ts +29 -0
  197. package/dist/theme/menubar.js +11 -0
  198. package/dist/theme/navigation-menu.d.ts +161 -0
  199. package/dist/theme/navigation-menu.js +43 -0
  200. package/dist/theme/number-input.d.ts +0 -3
  201. package/dist/theme/page-header.d.ts +47 -0
  202. package/dist/theme/page-header.js +17 -0
  203. package/dist/theme/pagination.d.ts +0 -3
  204. package/dist/theme/pin-input.d.ts +86 -0
  205. package/dist/theme/pin-input.js +32 -0
  206. package/dist/theme/popover.d.ts +119 -0
  207. package/dist/theme/popover.js +31 -0
  208. package/dist/theme/presets.d.ts +0 -2
  209. package/dist/theme/progress.d.ts +93 -0
  210. package/dist/theme/progress.js +37 -7
  211. package/dist/theme/radio-group.d.ts +24 -0
  212. package/dist/theme/radio-group.js +23 -14
  213. package/dist/theme/scroll-area.d.ts +65 -0
  214. package/dist/theme/scroll-area.js +57 -0
  215. package/dist/theme/scroll-fade.d.ts +35 -0
  216. package/dist/theme/scroll-fade.js +12 -0
  217. package/dist/theme/sidebar.d.ts +167 -0
  218. package/dist/theme/sidebar.js +43 -0
  219. package/dist/theme/signature-pad.d.ts +50 -0
  220. package/dist/theme/signature-pad.js +17 -0
  221. package/dist/theme/slider.d.ts +128 -0
  222. package/dist/theme/slider.js +49 -0
  223. package/dist/theme/sparkline.d.ts +0 -6
  224. package/dist/theme/splitter.d.ts +59 -0
  225. package/dist/theme/splitter.js +25 -0
  226. package/dist/theme/stat.d.ts +0 -3
  227. package/dist/theme/stepper.js +2 -2
  228. package/dist/theme/switch.d.ts +53 -29
  229. package/dist/theme/switch.js +33 -8
  230. package/dist/theme/table.d.ts +51 -3
  231. package/dist/theme/table.js +8 -3
  232. package/dist/theme/tabs.d.ts +0 -3
  233. package/dist/theme/tags-input.d.ts +110 -0
  234. package/dist/theme/tags-input.js +42 -0
  235. package/dist/theme/time-field.d.ts +68 -0
  236. package/dist/theme/time-field.js +21 -0
  237. package/dist/theme/timeline.d.ts +182 -0
  238. package/dist/theme/timeline.js +83 -0
  239. package/dist/theme/toggle.d.ts +145 -0
  240. package/dist/theme/toggle.js +84 -0
  241. package/dist/theme/toolbar.d.ts +56 -0
  242. package/dist/theme/toolbar.js +21 -0
  243. package/dist/theme/tree.d.ts +68 -0
  244. package/dist/theme/tree.js +28 -0
  245. package/package.json +4 -3
  246. package/theme.css +335 -0
  247. package/dist/node_modules/.pnpm/@hugeicons_core-free-icons@4.2.3/node_modules/@hugeicons/core-free-icons/dist/esm/index.js +0 -377
  248. package/dist/node_modules/.pnpm/@hugeicons_vue@1.0.7_vue@3.5.35_typescript@6.0.3_/node_modules/@hugeicons/vue/dist/esm/_virtual/_plugin-vue_export-helper.js +0 -8
  249. package/dist/node_modules/.pnpm/@hugeicons_vue@1.0.7_vue@3.5.35_typescript@6.0.3_/node_modules/@hugeicons/vue/dist/esm/components/HugeiconsIcon.vue.js +0 -25
  250. package/dist/node_modules/.pnpm/@hugeicons_vue@1.0.7_vue@3.5.35_typescript@6.0.3_/node_modules/@hugeicons/vue/dist/esm/components/HugeiconsIcon.vue2.js +0 -63
  251. package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/CalendarDate.js +0 -122
  252. package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/DateFormatter.js +0 -84
  253. package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/calendars/GregorianCalendar.js +0 -91
  254. package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/conversion.js +0 -107
  255. package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/manipulation.js +0 -159
  256. package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/queries.js +0 -29
  257. package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/string.js +0 -37
  258. package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/utils.js +0 -6
@@ -0,0 +1,39 @@
1
+ import type { AvatarProps } from './Avatar.vue';
2
+ /** One member of the stack — an `IAvatar`'s own props, minus the shared ones. */
3
+ export type AvatarGroupItem = Omit<AvatarProps, 'size' | 'shape' | 'unstyled' | 'class' | 'ui'>;
4
+ export interface AvatarGroupProps {
5
+ items?: AvatarGroupItem[];
6
+ /**
7
+ * Show at most this many, closing the stack with a "+n" chip. Without it
8
+ * every avatar is rendered, which stops being readable somewhere past six.
9
+ */
10
+ max?: number;
11
+ size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
12
+ shape?: 'circle' | 'square';
13
+ /** Skip built-in classes; you take over styling entirely. */
14
+ unstyled?: boolean;
15
+ class?: string;
16
+ /** Override classes per slot, e.g. `{ overflow: 'bg-primary' }`. */
17
+ ui?: {
18
+ root?: string;
19
+ item?: string;
20
+ overflow?: string;
21
+ };
22
+ }
23
+ declare var __VLS_1: {
24
+ count: number;
25
+ };
26
+ type __VLS_Slots = {} & {
27
+ overflow?: (props: typeof __VLS_1) => any;
28
+ };
29
+ declare const __VLS_base: import("vue").DefineComponent<AvatarGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AvatarGroupProps> & Readonly<{}>, {
30
+ unstyled: boolean;
31
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
32
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
33
+ declare const _default: typeof __VLS_export;
34
+ export default _default;
35
+ type __VLS_WithSlots<T, S> = T & {
36
+ new (): {
37
+ $slots: S;
38
+ };
39
+ };
@@ -0,0 +1,45 @@
1
+ import { useIryxUiConfig as e } from "../config.js";
2
+ import { avatarGroupTheme as t } from "../theme/avatar.js";
3
+ import n from "./Avatar.js";
4
+ import { Fragment as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createTextVNode as c, defineComponent as l, mergeProps as u, normalizeClass as d, openBlock as f, renderList as p, renderSlot as m, toDisplayString as h } from "vue";
5
+ //#region src/components/AvatarGroup.vue?vue&type=script&setup=true&lang.ts
6
+ var g = /*@__PURE__*/ l({
7
+ __name: "AvatarGroup",
8
+ props: {
9
+ items: {},
10
+ max: {},
11
+ size: {},
12
+ shape: {},
13
+ unstyled: {
14
+ type: Boolean,
15
+ default: void 0
16
+ },
17
+ class: {},
18
+ ui: {}
19
+ },
20
+ setup(l) {
21
+ let g = l, _ = i(() => g.items ?? []), v = i(() => {
22
+ let e = g.max;
23
+ return [...e !== void 0 && _.value.length > e ? _.value.slice(0, e) : _.value].reverse();
24
+ }), y = i(() => {
25
+ let e = g.max;
26
+ return e === void 0 || _.value.length <= e ? 0 : _.value.length - e;
27
+ }), b = e(), x = i(() => g.unstyled ?? b.unstyled), S = i(() => t({ size: g.size })), C = i(() => x.value ? [g.ui?.root, g.class] : S.value.root({ class: [g.ui?.root, g.class] })), w = i(() => x.value ? g.ui?.item : S.value.item({ class: g.ui?.item })), T = i(() => x.value ? g.ui?.overflow : S.value.overflow({ class: g.ui?.overflow }));
28
+ return (e, t) => (f(), s("div", { class: d(C.value) }, [y.value ? (f(), s("span", {
29
+ key: 0,
30
+ class: d(T.value)
31
+ }, [m(e.$slots, "overflow", { count: y.value }, () => [c("+" + h(y.value), 1)])], 2)) : o("", !0), (f(!0), s(r, null, p(v.value, (e, t) => (f(), a(n, u({ key: t }, { ref_for: !0 }, e, {
32
+ size: g.size,
33
+ shape: g.shape,
34
+ unstyled: x.value,
35
+ class: w.value
36
+ }), null, 16, [
37
+ "size",
38
+ "shape",
39
+ "unstyled",
40
+ "class"
41
+ ]))), 128))], 2));
42
+ }
43
+ });
44
+ //#endregion
45
+ export { g as default };
@@ -26,8 +26,8 @@ type __VLS_Slots = {} & {
26
26
  default?: (props: typeof __VLS_8) => any;
27
27
  };
28
28
  declare const __VLS_base: import("vue").DefineComponent<BadgeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BadgeProps> & Readonly<{}>, {
29
- as: string;
30
29
  unstyled: boolean;
30
+ as: string;
31
31
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
32
32
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
33
33
  declare const _default: typeof __VLS_export;
@@ -65,10 +65,10 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
65
65
  onClose?: (() => any) | undefined;
66
66
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
67
67
  }>, {
68
- as: string;
69
- closeLabel: string;
70
68
  unstyled: boolean;
69
+ as: string;
71
70
  label: string;
71
+ closeLabel: string;
72
72
  contained: boolean;
73
73
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
74
74
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -1,13 +1,13 @@
1
- import { Cancel01Icon as e } from "../node_modules/.pnpm/@hugeicons_core-free-icons@4.2.3/node_modules/@hugeicons/core-free-icons/dist/esm/index.js";
2
- import { useIryxUiConfig as t } from "../config.js";
3
- import n from "./Icon.js";
4
- import { bannerTheme as r } from "../theme/banner.js";
5
- import { computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, defineComponent as d, mergeModels as f, normalizeClass as p, openBlock as m, renderSlot as h, toDisplayString as g, unref as _, useModel as v, withCtx as y } from "vue";
1
+ import { useIryxUiConfig as e } from "../config.js";
2
+ import t from "./Icon.js";
3
+ import { bannerTheme as n } from "../theme/banner.js";
4
+ import { computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, defineComponent as u, mergeModels as d, normalizeClass as f, openBlock as p, renderSlot as m, toDisplayString as h, unref as g, useModel as _, withCtx as v } from "vue";
5
+ import { Cancel01Icon as y } from "@hugeicons/core-free-icons";
6
6
  import { Primitive as b } from "reka-ui";
7
7
  //#region src/components/Banner.vue?vue&type=script&setup=true&lang.ts
8
- var x = ["aria-label"], S = /*@__PURE__*/ d({
8
+ var x = ["aria-label"], S = /*@__PURE__*/ u({
9
9
  __name: "Banner",
10
- props: /*@__PURE__*/ f({
10
+ props: /*@__PURE__*/ d({
11
11
  as: { default: "div" },
12
12
  variant: {},
13
13
  position: {},
@@ -35,58 +35,58 @@ var x = ["aria-label"], S = /*@__PURE__*/ d({
35
35
  },
36
36
  openModifiers: {}
37
37
  }),
38
- emits: /*@__PURE__*/ f(["close"], ["update:open"]),
39
- setup(d) {
40
- let f = d, S = v(d, "open"), C = t(), w = i(() => f.unstyled ?? C.unstyled), T = i(() => r({
41
- variant: f.variant,
42
- position: f.position,
43
- contained: f.contained ?? !1,
44
- align: f.align
45
- })), E = i(() => w.value ? [f.ui?.root, f.class] : T.value.root({ class: [f.ui?.root, f.class] }));
38
+ emits: /*@__PURE__*/ d(["close"], ["update:open"]),
39
+ setup(u) {
40
+ let d = u, S = _(u, "open"), C = e(), w = r(() => d.unstyled ?? C.unstyled), T = r(() => n({
41
+ variant: d.variant,
42
+ position: d.position,
43
+ contained: d.contained ?? !1,
44
+ align: d.align
45
+ })), E = r(() => w.value ? [d.ui?.root, d.class] : T.value.root({ class: [d.ui?.root, d.class] }));
46
46
  function D(e) {
47
- let t = f.ui?.[e];
47
+ let t = d.ui?.[e];
48
48
  return w.value ? t : T.value[e]({ class: t });
49
49
  }
50
- return (t, r) => S.value ? (m(), a(_(b), {
50
+ return (e, n) => S.value ? (p(), i(g(b), {
51
51
  key: 0,
52
- as: f.as,
52
+ as: d.as,
53
53
  role: "region",
54
- "aria-label": f.label,
55
- class: p(E.value)
54
+ "aria-label": d.label,
55
+ class: f(E.value)
56
56
  }, {
57
- default: y(() => [c("div", { class: p(D("container")) }, [
58
- f.icon || t.$slots.icon ? (m(), s("span", {
57
+ default: v(() => [s("div", { class: f(D("container")) }, [
58
+ d.icon || e.$slots.icon ? (p(), o("span", {
59
59
  key: 0,
60
- class: p(D("icon"))
61
- }, [h(t.$slots, "icon", {}, () => [u(n, { icon: f.icon }, null, 8, ["icon"])])], 2)) : o("", !0),
62
- c("p", { class: p(D("content")) }, [
63
- f.title || t.$slots.title ? (m(), s("strong", {
60
+ class: f(D("icon"))
61
+ }, [m(e.$slots, "icon", {}, () => [l(t, { icon: d.icon }, null, 8, ["icon"])])], 2)) : a("", !0),
62
+ s("p", { class: f(D("content")) }, [
63
+ d.title || e.$slots.title ? (p(), o("strong", {
64
64
  key: 0,
65
- class: p(D("title"))
66
- }, [h(t.$slots, "title", {}, () => [l(g(f.title), 1)])], 2)) : o("", !0),
67
- r[1] ||= l(" " + g(" ") + " ", -1),
68
- h(t.$slots, "default", {}, () => [l(g(f.description), 1)])
65
+ class: f(D("title"))
66
+ }, [m(e.$slots, "title", {}, () => [c(h(d.title), 1)])], 2)) : a("", !0),
67
+ n[1] ||= c(" " + h(" ") + " ", -1),
68
+ m(e.$slots, "default", {}, () => [c(h(d.description), 1)])
69
69
  ], 2),
70
- t.$slots.actions ? (m(), s("span", {
70
+ e.$slots.actions ? (p(), o("span", {
71
71
  key: 1,
72
- class: p(D("actions"))
73
- }, [h(t.$slots, "actions")], 2)) : o("", !0),
74
- f.closable ? (m(), s("button", {
72
+ class: f(D("actions"))
73
+ }, [m(e.$slots, "actions")], 2)) : a("", !0),
74
+ d.closable ? (p(), o("button", {
75
75
  key: 2,
76
76
  type: "button",
77
- "aria-label": f.closeLabel,
78
- class: p(D("close")),
79
- onClick: r[0] ||= (e) => {
80
- S.value = !1, t.$emit("close");
77
+ "aria-label": d.closeLabel,
78
+ class: f(D("close")),
79
+ onClick: n[0] ||= (t) => {
80
+ S.value = !1, e.$emit("close");
81
81
  }
82
- }, [h(t.$slots, "close", {}, () => [u(n, { icon: _(e) }, null, 8, ["icon"])])], 10, x)) : o("", !0)
82
+ }, [m(e.$slots, "close", {}, () => [l(t, { icon: g(y) }, null, 8, ["icon"])])], 10, x)) : a("", !0)
83
83
  ], 2)]),
84
84
  _: 3
85
85
  }, 8, [
86
86
  "as",
87
87
  "aria-label",
88
88
  "class"
89
- ])) : o("", !0);
89
+ ])) : a("", !0);
90
90
  }
91
91
  });
92
92
  //#endregion
@@ -90,9 +90,9 @@ type __VLS_Slots = {} & {
90
90
  };
91
91
  declare const __VLS_base: import("vue").DefineComponent<BarChartProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BarChartProps> & Readonly<{}>, {
92
92
  unstyled: boolean;
93
+ orientation: "vertical" | "horizontal";
93
94
  data: readonly BarChartDatum[];
94
95
  legend: boolean;
95
- orientation: "vertical" | "horizontal";
96
96
  height: number;
97
97
  ticks: number;
98
98
  axis: boolean;
@@ -1,6 +1,6 @@
1
1
  import { useIryxUiConfig as e } from "../config.js";
2
- import { cartesianLayout as t, clampTooltip as n, seriesColor as r, slotOf as i, tooltipHalfWidth as a, warnOnSlotOverflow as o } from "../composables/cartesian.js";
3
- import { useElementSize as s } from "../composables/element-size.js";
2
+ import { useElementSize as t } from "../composables/element-size.js";
3
+ import { cartesianLayout as n, clampTooltip as r, seriesColor as i, slotOf as a, tooltipHalfWidth as o, warnOnSlotOverflow as s } from "../composables/cartesian.js";
4
4
  import { barChartTheme as c } from "../theme/bar-chart.js";
5
5
  import l from "./ChartLegend.js";
6
6
  import { Fragment as u, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, defineComponent as g, guardReactiveProps as _, normalizeClass as v, normalizeProps as y, normalizeStyle as b, openBlock as x, ref as S, renderList as C, renderSlot as w, toDisplayString as T, unref as E } from "vue";
@@ -62,13 +62,13 @@ var ee = ["role", "aria-label"], D = [
62
62
  ui: {}
63
63
  },
64
64
  setup(g) {
65
- let j = g, M = e(), N = d(() => j.unstyled ?? M.unstyled), P = S(), { width: F } = s(P), I = d(() => new Intl.NumberFormat(j.locale, j.format));
65
+ let j = g, M = e(), N = d(() => j.unstyled ?? M.unstyled), P = S(), { width: F } = t(P), I = d(() => new Intl.NumberFormat(j.locale, j.format));
66
66
  function L(e) {
67
67
  return I.value.format(e);
68
68
  }
69
69
  let R = d(() => {
70
70
  let e = j.series?.length ? [...j.series] : [{ key: "value" }];
71
- return o(e.length), e;
71
+ return s(e.length), e;
72
72
  }), z = d(() => R.value.length > 1), oe = d(() => z.value || j.legend && R.value[0].name != null);
73
73
  function B(e, t) {
74
74
  let n = e[t];
@@ -83,7 +83,7 @@ var ee = ["role", "aria-label"], D = [
83
83
  }
84
84
  return [t, n];
85
85
  }
86
- let W = d(() => t({
86
+ let W = d(() => n({
87
87
  orientation: j.orientation,
88
88
  values: H.value ? j.data.flatMap(U) : j.data.flatMap((e) => R.value.map((t) => B(e, t.key))),
89
89
  categories: j.data.length,
@@ -153,25 +153,25 @@ var ee = ["role", "aria-label"], D = [
153
153
  if (!e) return;
154
154
  let t = R.value.map((t, n) => ({
155
155
  name: t.name ?? t.key,
156
- color: r(i(t, n)),
156
+ color: i(a(t, n)),
157
157
  value: B(e, t.key)
158
158
  })).filter((e) => e.value != null).map((e) => ({
159
159
  ...e,
160
160
  value: L(e.value)
161
161
  }));
162
162
  if (!t.length) return;
163
- let o = H.value ? L(U(e).reduce((e, t) => e + t, 0)) : void 0, s = z.value ? Math.max(e.label.length, o ? o.length + 6 : 0, ...t.map((e) => e.name.length + e.value.length + 3)) : e.label.length + t[0].value.length + 2, c = W.value.bandCentre(X.value);
163
+ let n = H.value ? L(U(e).reduce((e, t) => e + t, 0)) : void 0, s = z.value ? Math.max(e.label.length, n ? n.length + 6 : 0, ...t.map((e) => e.name.length + e.value.length + 3)) : e.label.length + t[0].value.length + 2, c = W.value.bandCentre(X.value);
164
164
  if (V.value) {
165
- let r = H.value ? W.value.value(U(e)[0]) : Math.max(...R.value.map((t) => {
165
+ let i = H.value ? W.value.value(U(e)[0]) : Math.max(...R.value.map((t) => {
166
166
  let n = B(e, t.key);
167
167
  return n == null ? -Infinity : W.value.value(n);
168
- })), i = "x".repeat(s), l = a(i), u = r + l + 8, d = u + l <= F.value;
168
+ })), a = "x".repeat(s), l = o(a), u = i + l + 8, d = u + l <= F.value;
169
169
  return {
170
170
  label: e.label,
171
171
  rows: t,
172
- total: o,
172
+ total: n,
173
173
  multi: z.value,
174
- x: n(d ? u : r - l - 8, i, F.value),
174
+ x: r(d ? u : i - l - 8, a, F.value),
175
175
  y: c
176
176
  };
177
177
  }
@@ -182,9 +182,9 @@ var ee = ["role", "aria-label"], D = [
182
182
  return {
183
183
  label: e.label,
184
184
  rows: t,
185
- total: o,
185
+ total: n,
186
186
  multi: z.value,
187
- x: n(c, "x".repeat(s), F.value),
187
+ x: r(c, "x".repeat(s), F.value),
188
188
  y: l
189
189
  };
190
190
  }), Q = d(() => c());
@@ -233,7 +233,7 @@ var ee = ["role", "aria-label"], D = [
233
233
  (x(!0), m(u, null, C(se.value, (e, t) => (x(), m("path", {
234
234
  key: `bar-${e.categoryIndex}-${e.seriesIndex}-${t}`,
235
235
  d: ce(e),
236
- style: b({ fill: E(r)(E(i)(R.value[e.seriesIndex], e.seriesIndex)) }),
236
+ style: b({ fill: E(i)(E(a)(R.value[e.seriesIndex], e.seriesIndex)) }),
237
237
  class: v(ue(e))
238
238
  }, null, 14, k))), 128)),
239
239
  (x(!0), m(u, null, C(j.data, (e, t) => (x(), m(u, { key: `label-${e.label}-${t}` }, [t % le.value === 0 ? (x(), m("text", {
@@ -1,11 +1,11 @@
1
- import { ArrowRight01Icon as e } from "../node_modules/.pnpm/@hugeicons_core-free-icons@4.2.3/node_modules/@hugeicons/core-free-icons/dist/esm/index.js";
2
- import { useIryxUiConfig as t } from "../config.js";
3
- import n from "./Icon.js";
4
- import { breadcrumbTheme as r } from "../theme/breadcrumb.js";
5
- import { Fragment as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineComponent as f, normalizeClass as p, openBlock as m, renderList as h, renderSlot as g, resolveDynamicComponent as _, toDisplayString as v, unref as y, withCtx as b } from "vue";
1
+ import { useIryxUiConfig as e } from "../config.js";
2
+ import t from "./Icon.js";
3
+ import { breadcrumbTheme as n } from "../theme/breadcrumb.js";
4
+ import { Fragment as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, defineComponent as d, normalizeClass as f, openBlock as p, renderList as m, renderSlot as h, resolveDynamicComponent as g, toDisplayString as _, unref as v, withCtx as y } from "vue";
5
+ import { ArrowRight01Icon as b } from "@hugeicons/core-free-icons";
6
6
  import { Primitive as x } from "reka-ui";
7
7
  //#region src/components/Breadcrumb.vue?vue&type=script&setup=true&lang.ts
8
- var S = /*@__PURE__*/ f({
8
+ var S = /*@__PURE__*/ d({
9
9
  __name: "Breadcrumb",
10
10
  props: {
11
11
  items: {},
@@ -17,49 +17,49 @@ var S = /*@__PURE__*/ f({
17
17
  class: {},
18
18
  ui: {}
19
19
  },
20
- setup(f) {
21
- let S = f, C = t(), w = a(() => S.unstyled ?? C.unstyled), T = a(() => S.items ?? []), E = a(() => T.value.length - 1), D = a(() => r());
20
+ setup(d) {
21
+ let S = d, C = e(), w = i(() => S.unstyled ?? C.unstyled), T = i(() => S.items ?? []), E = i(() => T.value.length - 1), D = i(() => n());
22
22
  function O(e) {
23
23
  let t = S.ui?.[e];
24
24
  return w.value ? t : D.value[e]({ class: t });
25
25
  }
26
- return (t, r) => (m(), o(y(x), {
26
+ return (e, n) => (p(), a(v(x), {
27
27
  as: "nav",
28
28
  "aria-label": S.label,
29
- class: p(w.value ? [S.ui?.root, S.class] : D.value.root({ class: [S.ui?.root, S.class] }))
29
+ class: f(w.value ? [S.ui?.root, S.class] : D.value.root({ class: [S.ui?.root, S.class] }))
30
30
  }, {
31
- default: b(() => [l("ol", { class: p(O("list")) }, [(m(!0), c(i, null, h(T.value, (r, i) => (m(), c("li", {
32
- key: i,
33
- class: p(O("item"))
34
- }, [i === E.value ? (m(), c("span", {
31
+ default: y(() => [c("ol", { class: f(O("list")) }, [(p(!0), s(r, null, m(T.value, (n, r) => (p(), s("li", {
32
+ key: r,
33
+ class: f(O("item"))
34
+ }, [r === E.value ? (p(), s("span", {
35
35
  key: 0,
36
36
  "aria-current": "page",
37
- class: p(O("current"))
38
- }, [r.icon ? (m(), o(n, {
37
+ class: f(O("current"))
38
+ }, [n.icon ? (p(), a(t, {
39
39
  key: 0,
40
- icon: r.icon
41
- }, null, 8, ["icon"])) : s("", !0), u(" " + v(r.label), 1)], 2)) : (m(), o(_(r.href ? "a" : "button"), {
40
+ icon: n.icon
41
+ }, null, 8, ["icon"])) : o("", !0), l(" " + _(n.label), 1)], 2)) : (p(), a(g(n.href ? "a" : "button"), {
42
42
  key: 1,
43
- href: r.href,
44
- type: r.href ? void 0 : "button",
45
- class: p(O("link")),
46
- onClick: (e) => r.onSelect?.()
43
+ href: n.href,
44
+ type: n.href ? void 0 : "button",
45
+ class: f(O("link")),
46
+ onClick: (e) => n.onSelect?.()
47
47
  }, {
48
- default: b(() => [r.icon ? (m(), o(n, {
48
+ default: y(() => [n.icon ? (p(), a(t, {
49
49
  key: 0,
50
- icon: r.icon
51
- }, null, 8, ["icon"])) : s("", !0), u(" " + v(r.label), 1)]),
50
+ icon: n.icon
51
+ }, null, 8, ["icon"])) : o("", !0), l(" " + _(n.label), 1)]),
52
52
  _: 2
53
53
  }, 1032, [
54
54
  "href",
55
55
  "type",
56
56
  "class",
57
57
  "onClick"
58
- ])), i === E.value ? s("", !0) : (m(), c("span", {
58
+ ])), r === E.value ? o("", !0) : (p(), s("span", {
59
59
  key: 2,
60
60
  "aria-hidden": "true",
61
- class: p(O("separator"))
62
- }, [g(t.$slots, "separator", {}, () => [d(n, { icon: y(e) }, null, 8, ["icon"])])], 2))], 2))), 128))], 2)]),
61
+ class: f(O("separator"))
62
+ }, [h(e.$slots, "separator", {}, () => [u(t, { icon: v(b) }, null, 8, ["icon"])])], 2))], 2))), 128))], 2)]),
63
63
  _: 3
64
64
  }, 8, ["aria-label", "class"]));
65
65
  }
@@ -28,9 +28,9 @@ type __VLS_Slots = {} & {
28
28
  default?: (props: typeof __VLS_13) => any;
29
29
  };
30
30
  declare const __VLS_base: import("vue").DefineComponent<ButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ButtonProps> & Readonly<{}>, {
31
- as: string;
32
- unstyled: boolean;
33
31
  type: "button" | "submit" | "reset";
32
+ unstyled: boolean;
33
+ as: string;
34
34
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
35
35
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
36
36
  declare const _default: typeof __VLS_export;
@@ -1,12 +1,12 @@
1
- import { Loading03Icon as e } from "../node_modules/.pnpm/@hugeicons_core-free-icons@4.2.3/node_modules/@hugeicons/core-free-icons/dist/esm/index.js";
2
- import { useIryxUiConfig as t } from "../config.js";
3
- import n from "./Icon.js";
4
- import { useButtonGroup as r } from "../composables/button-group.js";
5
- import { buttonTheme as i } from "../theme/button.js";
6
- import { computed as a, createBlock as o, createCommentVNode as s, defineComponent as c, normalizeClass as l, openBlock as u, renderSlot as d, unref as f, withCtx as p } from "vue";
1
+ import { useIryxUiConfig as e } from "../config.js";
2
+ import t from "./Icon.js";
3
+ import { useButtonGroup as n } from "../composables/button-group.js";
4
+ import { buttonTheme as r } from "../theme/button.js";
5
+ import { computed as i, createBlock as a, createCommentVNode as o, defineComponent as s, normalizeClass as c, openBlock as l, renderSlot as u, unref as d, withCtx as f } from "vue";
6
+ import { Loading03Icon as p } from "@hugeicons/core-free-icons";
7
7
  import { Primitive as m } from "reka-ui";
8
8
  //#region src/components/Button.vue?vue&type=script&setup=true&lang.ts
9
- var h = /*@__PURE__*/ c({
9
+ var h = /*@__PURE__*/ s({
10
10
  __name: "Button",
11
11
  props: {
12
12
  as: { default: "button" },
@@ -24,27 +24,27 @@ var h = /*@__PURE__*/ c({
24
24
  type: { default: "button" },
25
25
  class: {}
26
26
  },
27
- setup(c) {
28
- let h = c, g = t(), _ = a(() => h.unstyled ?? g.unstyled), v = r(), y = a(() => h.size ?? v?.size.value), b = a(() => _.value ? h.class : i({
27
+ setup(s) {
28
+ let h = s, g = e(), _ = i(() => h.unstyled ?? g.unstyled), v = n(), y = i(() => h.size ?? v?.size.value), b = i(() => _.value ? h.class : r({
29
29
  variant: h.variant,
30
30
  size: y.value,
31
31
  block: h.block,
32
32
  square: h.square,
33
33
  class: h.class
34
34
  }));
35
- return (t, r) => (u(), o(f(m), {
35
+ return (e, n) => (l(), a(d(m), {
36
36
  as: h.as,
37
37
  "as-child": h.asChild,
38
38
  type: h.as === "button" ? h.type : void 0,
39
39
  disabled: h.disabled || h.loading || void 0,
40
- class: l(b.value)
40
+ class: c(b.value)
41
41
  }, {
42
- default: p(() => [h.loading ? (u(), o(n, {
42
+ default: f(() => [h.loading ? (l(), a(t, {
43
43
  key: 0,
44
- icon: f(e),
44
+ icon: d(p),
45
45
  "data-icon": "inline-start",
46
46
  class: "animate-spin"
47
- }, null, 8, ["icon"])) : s("", !0), d(t.$slots, "default")]),
47
+ }, null, 8, ["icon"])) : o("", !0), u(e.$slots, "default")]),
48
48
  _: 3
49
49
  }, 8, [
50
50
  "as",
@@ -19,8 +19,8 @@ type __VLS_Slots = {} & {
19
19
  default?: (props: typeof __VLS_8) => any;
20
20
  };
21
21
  declare const __VLS_base: import("vue").DefineComponent<ButtonGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ButtonGroupProps> & Readonly<{}>, {
22
- as: string;
23
22
  unstyled: boolean;
23
+ as: string;
24
24
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
25
25
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
26
26
  declare const _default: typeof __VLS_export;
@@ -36,8 +36,8 @@ type __VLS_Slots = {} & {
36
36
  footer?: (props: typeof __VLS_16) => any;
37
37
  };
38
38
  declare const __VLS_base: import("vue").DefineComponent<CardProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CardProps> & Readonly<{}>, {
39
- as: string;
40
39
  unstyled: boolean;
40
+ as: string;
41
41
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
42
42
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
43
43
  declare const _default: typeof __VLS_export;
@@ -1,11 +1,12 @@
1
- import { MinusSignIcon as e, Tick02Icon as t } from "../node_modules/.pnpm/@hugeicons_core-free-icons@4.2.3/node_modules/@hugeicons/core-free-icons/dist/esm/index.js";
2
- import { useIryxUiConfig as n } from "../config.js";
3
- import r from "./Icon.js";
4
- import { checkboxTheme as i } from "../theme/checkbox.js";
5
- import { computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineComponent as f, mergeProps as p, normalizeClass as m, openBlock as h, renderSlot as g, toDisplayString as _, unref as v, withCtx as y } from "vue";
1
+ import { useIryxUiConfig as e } from "../config.js";
2
+ import t from "./Icon.js";
3
+ import { checkboxTheme as n } from "../theme/checkbox.js";
4
+ import { computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, defineComponent as u, mergeProps as d, normalizeClass as f, openBlock as p, renderSlot as m, toDisplayString as h, unref as g, withCtx as _ } from "vue";
5
+ import { MinusSignIcon as v, Tick02Icon as y } from "@hugeicons/core-free-icons";
6
6
  import { CheckboxIndicator as b, CheckboxRoot as x, Label as S, useForwardPropsEmits as C, useId as w } from "reka-ui";
7
7
  //#region src/components/Checkbox.vue?vue&type=script&setup=true&lang.ts
8
- var T = ["id"], E = /*@__PURE__*/ f({
8
+ var T = ["id"], E = /*@__PURE__*/ u({
9
+ inheritAttrs: !1,
9
10
  __name: "Checkbox",
10
11
  props: {
11
12
  label: {},
@@ -30,28 +31,31 @@ var T = ["id"], E = /*@__PURE__*/ f({
30
31
  required: { type: Boolean }
31
32
  },
32
33
  emits: ["update:modelValue"],
33
- setup(f, { emit: E }) {
34
- let D = f, O = E, k = C(a(() => {
34
+ setup(u, { emit: E }) {
35
+ let D = u, O = E, k = C(r(() => {
35
36
  let { label: e, description: t, size: n, id: r, unstyled: i, class: a, ui: o, ...s } = D;
36
37
  return s;
37
- }), O), A = w(), j = a(() => D.id ?? A), M = a(() => !!(D.label || D.description)), N = n(), P = a(() => D.unstyled ?? N.unstyled), F = a(() => i({
38
+ }), O), A = w(), j = r(() => D.id ?? A), M = r(() => !!(D.label || D.description)), N = e(), P = r(() => D.unstyled ?? N.unstyled), F = r(() => n({
38
39
  size: D.size,
39
40
  withText: M.value
40
- })), I = a(() => P.value ? D.ui?.wrapper : F.value.wrapper({ class: D.ui?.wrapper })), L = a(() => P.value ? [D.ui?.root, D.class] : F.value.root({ class: [D.ui?.root, D.class] })), R = a(() => P.value ? D.ui?.indicator : F.value.indicator({ class: D.ui?.indicator })), z = a(() => P.value ? D.ui?.content : F.value.content({ class: D.ui?.content })), B = a(() => P.value ? D.ui?.label : F.value.label({ class: D.ui?.label })), V = a(() => P.value ? D.ui?.description : F.value.description({ class: D.ui?.description }));
41
- return (n, i) => M.value ? (h(), c("div", {
41
+ })), I = r(() => P.value ? D.ui?.wrapper : F.value.wrapper({ class: D.ui?.wrapper })), L = r(() => P.value ? [D.ui?.root, D.class] : F.value.root({ class: [D.ui?.root, D.class] })), R = r(() => P.value ? D.ui?.indicator : F.value.indicator({ class: D.ui?.indicator })), z = r(() => P.value ? D.ui?.content : F.value.content({ class: D.ui?.content })), B = r(() => P.value ? D.ui?.label : F.value.label({ class: D.ui?.label })), V = r(() => P.value ? D.ui?.description : F.value.description({ class: D.ui?.description }));
42
+ return (e, n) => M.value ? (p(), o("div", {
42
43
  key: 0,
43
- class: m(I.value)
44
- }, [d(v(x), p({ id: j.value }, v(k), {
44
+ class: f(I.value)
45
+ }, [l(g(x), d({ id: j.value }, {
46
+ ...g(k),
47
+ ...e.$attrs
48
+ }, {
45
49
  "aria-describedby": D.description ? `${j.value}-description` : void 0,
46
50
  class: L.value
47
51
  }), {
48
- default: y(() => [d(v(b), { class: m(R.value) }, {
49
- default: y(() => [g(n.$slots, "default", {}, () => [D.modelValue === "indeterminate" ? (h(), o(r, {
52
+ default: _(() => [l(g(b), { class: f(R.value) }, {
53
+ default: _(() => [m(e.$slots, "default", {}, () => [D.modelValue === "indeterminate" ? (p(), i(t, {
50
54
  key: 0,
51
- icon: v(e)
52
- }, null, 8, ["icon"])) : (h(), o(r, {
55
+ icon: g(v)
56
+ }, null, 8, ["icon"])) : (p(), i(t, {
53
57
  key: 1,
54
- icon: v(t)
58
+ icon: g(y)
55
59
  }, null, 8, ["icon"]))])]),
56
60
  _: 3
57
61
  }, 8, ["class"])]),
@@ -60,27 +64,30 @@ var T = ["id"], E = /*@__PURE__*/ f({
60
64
  "id",
61
65
  "aria-describedby",
62
66
  "class"
63
- ]), l("div", { class: m(z.value) }, [d(v(S), {
67
+ ]), s("div", { class: f(z.value) }, [l(g(S), {
64
68
  for: j.value,
65
- class: m(B.value)
69
+ class: f(B.value)
66
70
  }, {
67
- default: y(() => [g(n.$slots, "label", {}, () => [u(_(D.label), 1)])]),
71
+ default: _(() => [m(e.$slots, "label", {}, () => [c(h(D.label), 1)])]),
68
72
  _: 3
69
- }, 8, ["for", "class"]), D.description || n.$slots.description ? (h(), c("p", {
73
+ }, 8, ["for", "class"]), D.description || e.$slots.description ? (p(), o("p", {
70
74
  key: 0,
71
75
  id: `${j.value}-description`,
72
- class: m(V.value)
73
- }, [g(n.$slots, "description", {}, () => [u(_(D.description), 1)])], 10, T)) : s("", !0)], 2)], 2)) : (h(), o(v(x), p({
76
+ class: f(V.value)
77
+ }, [m(e.$slots, "description", {}, () => [c(h(D.description), 1)])], 10, T)) : a("", !0)], 2)], 2)) : (p(), i(g(x), d({
74
78
  key: 1,
75
79
  id: D.id
76
- }, v(k), { class: L.value }), {
77
- default: y(() => [d(v(b), { class: m(R.value) }, {
78
- default: y(() => [g(n.$slots, "default", {}, () => [D.modelValue === "indeterminate" ? (h(), o(r, {
80
+ }, {
81
+ ...g(k),
82
+ ...e.$attrs
83
+ }, { class: L.value }), {
84
+ default: _(() => [l(g(b), { class: f(R.value) }, {
85
+ default: _(() => [m(e.$slots, "default", {}, () => [D.modelValue === "indeterminate" ? (p(), i(t, {
79
86
  key: 0,
80
- icon: v(e)
81
- }, null, 8, ["icon"])) : (h(), o(r, {
87
+ icon: g(v)
88
+ }, null, 8, ["icon"])) : (p(), i(t, {
82
89
  key: 1,
83
- icon: v(t)
90
+ icon: g(y)
84
91
  }, null, 8, ["icon"]))])]),
85
92
  _: 3
86
93
  }, 8, ["class"])]),
@@ -0,0 +1,5 @@
1
+ import e from "./Collapsible.vue_vue_type_script_setup_true_lang.js";
2
+ //#region src/components/Collapsible.vue
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };