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
@@ -1,12 +1,12 @@
1
- import { ArrowDown01Icon as e, ArrowUp01Icon 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 { useFormField as i } from "../composables/form.js";
5
- import { addDecimals as a, clampDecimal as o, compareDecimals as s, formatForLocale as c, isDecimal as l, parseFromLocale as u, roundDecimal as d, toEditable as f } from "../composables/decimal.js";
6
- import { numberInputTheme as p } from "../theme/number-input.js";
7
- import { computed as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createVNode as v, defineComponent as y, mergeModels as b, normalizeClass as x, openBlock as S, ref as C, unref as w, useModel as T, vModelText as E, watch as D, withDirectives as O, withKeys as k, withModifiers as A } from "vue";
1
+ import { useIryxUiConfig as e } from "../config.js";
2
+ import t from "./Icon.js";
3
+ import { useFormField as n } from "../composables/form.js";
4
+ import { addDecimals as r, clampDecimal as i, compareDecimals as a, formatForLocale as o, isDecimal as s, parseFromLocale as c, roundDecimal as l, toEditable as u } from "../composables/decimal.js";
5
+ import { numberInputTheme as d } from "../theme/number-input.js";
6
+ import { computed as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createVNode as g, defineComponent as _, mergeModels as v, mergeProps as y, normalizeClass as b, openBlock as x, ref as S, unref as C, useModel as w, vModelText as T, watch as E, withDirectives as D, withKeys as O, withModifiers as k } from "vue";
7
+ import { ArrowDown01Icon as A, ArrowUp01Icon as j } from "@hugeicons/core-free-icons";
8
8
  //#region src/components/NumberInput.vue?vue&type=script&setup=true&lang.ts
9
- var j = [
9
+ var M = [
10
10
  "id",
11
11
  "aria-valuenow",
12
12
  "aria-valuemin",
@@ -16,9 +16,10 @@ var j = [
16
16
  "required",
17
17
  "aria-invalid",
18
18
  "aria-describedby"
19
- ], M = ["aria-label", "disabled"], N = ["aria-label", "disabled"], P = /*@__PURE__*/ y({
19
+ ], N = ["aria-label", "disabled"], P = ["aria-label", "disabled"], F = /*@__PURE__*/ _({
20
+ inheritAttrs: !1,
20
21
  __name: "NumberInput",
21
- props: /*@__PURE__*/ b({
22
+ props: /*@__PURE__*/ v({
22
23
  min: {},
23
24
  max: {},
24
25
  step: { default: "1" },
@@ -50,87 +51,88 @@ var j = [
50
51
  modelModifiers: {}
51
52
  }),
52
53
  emits: ["update:modelValue"],
53
- setup(y) {
54
- let b = y, P = T(y, "modelValue"), F = i(), I = m(() => b.id ?? F?.id.value), L = m(() => b.invalid ?? F?.invalid.value ?? !1), R = n(), z = m(() => b.unstyled ?? R.unstyled), B = C(""), V = C(!1);
55
- function H(e) {
56
- return e ? b.locale ? c(e, b.locale, b.precision) : b.precision == null ? e : d(e, b.precision) ?? e : "";
54
+ setup(_) {
55
+ let v = _, F = w(_, "modelValue"), I = n(), L = f(() => v.id ?? I?.id.value), R = f(() => v.invalid ?? I?.invalid.value ?? !1), z = e(), B = f(() => v.unstyled ?? z.unstyled), V = S(""), H = S(!1);
56
+ function U(e) {
57
+ return e ? v.locale ? o(e, v.locale, v.precision) : v.precision == null ? e : l(e, v.precision) ?? e : "";
57
58
  }
58
- D(() => P.value, (e) => {
59
- V.value || (B.value = H(e));
59
+ E(() => F.value, (e) => {
60
+ H.value || (V.value = U(e));
60
61
  }, { immediate: !0 });
61
- function U(e) {
62
+ function W(e) {
62
63
  let t = e.trim();
63
64
  if (!t) {
64
- P.value = "", B.value = "";
65
+ F.value = "", V.value = "";
65
66
  return;
66
67
  }
67
- let n = b.locale ? u(t, b.locale) : l(t) ? t : void 0;
68
+ let n = v.locale ? c(t, v.locale) : s(t) ? t : void 0;
68
69
  if (n == null) {
69
- B.value = H(P.value);
70
+ V.value = U(F.value);
70
71
  return;
71
72
  }
72
- let r = o(n, b.min, b.max), i = b.precision == null ? r : d(r, b.precision) ?? r;
73
- P.value = i, B.value = H(i);
74
- }
75
- function W() {
76
- V.value = !0, B.value = f(P.value, b.locale);
73
+ let r = i(n, v.min, v.max), a = v.precision == null ? r : l(r, v.precision) ?? r;
74
+ F.value = a, V.value = U(a);
77
75
  }
78
76
  function G() {
79
- V.value = !1, U(B.value);
77
+ H.value = !0, V.value = u(F.value, v.locale);
78
+ }
79
+ function K() {
80
+ H.value = !1, W(V.value);
80
81
  }
81
- function K(e) {
82
- let t = a(P.value || "0", e === 1 ? b.step : `-${b.step}`);
82
+ function q(e) {
83
+ let t = r(F.value || "0", e === 1 ? v.step : `-${v.step}`);
83
84
  if (t == null) return;
84
- let n = o(t, b.min, b.max), r = b.precision == null ? n : d(n, b.precision) ?? n;
85
- P.value = r, B.value = V.value ? f(r, b.locale) : H(r);
85
+ let n = i(t, v.min, v.max), a = v.precision == null ? n : l(n, v.precision) ?? n;
86
+ F.value = a, V.value = H.value ? u(a, v.locale) : U(a);
86
87
  }
87
- let q = m(() => b.min != null && P.value !== "" && s(P.value, b.min) <= 0), J = m(() => b.max != null && P.value !== "" && s(P.value, b.max) >= 0), Y = m(() => p({
88
- size: b.size,
89
- invalid: L.value,
90
- withStepper: b.stepper
88
+ let J = f(() => v.min != null && F.value !== "" && a(F.value, v.min) <= 0), Y = f(() => v.max != null && F.value !== "" && a(F.value, v.max) >= 0), X = f(() => d({
89
+ size: v.size,
90
+ invalid: R.value,
91
+ withStepper: v.stepper
91
92
  }));
92
- function X(e, t) {
93
- let n = b.ui?.[e];
94
- return z.value ? [n, t] : Y.value[e]({ class: [n, t] });
93
+ function Z(e, t) {
94
+ let n = v.ui?.[e];
95
+ return B.value ? [n, t] : X.value[e]({ class: [n, t] });
95
96
  }
96
- return (n, i) => (S(), g("div", { class: x(X("root")) }, [O(_("input", {
97
- id: I.value,
98
- "onUpdate:modelValue": i[0] ||= (e) => B.value = e,
97
+ return (e, n) => (x(), m("div", { class: b(B.value ? [v.ui?.root, v.class] : X.value.root({ class: [v.ui?.root, v.class] })) }, [D(h("input", y({
98
+ id: L.value,
99
+ "onUpdate:modelValue": n[0] ||= (e) => V.value = e
100
+ }, e.$attrs, {
99
101
  type: "text",
100
102
  inputmode: "decimal",
101
103
  autocomplete: "off",
102
104
  role: "spinbutton",
103
- "aria-valuenow": P.value || void 0,
104
- "aria-valuemin": b.min,
105
- "aria-valuemax": b.max,
106
- placeholder: b.placeholder,
107
- disabled: b.disabled,
108
- required: b.required,
109
- "aria-invalid": L.value || void 0,
110
- "aria-describedby": w(F)?.describedBy.value,
111
- class: x(z.value ? [b.ui?.input, b.class] : Y.value.input({ class: [b.ui?.input, b.class] })),
112
- onFocus: W,
113
- onBlur: G,
114
- onKeydown: [i[1] ||= k(A((e) => K(1), ["prevent"]), ["up"]), i[2] ||= k(A((e) => K(-1), ["prevent"]), ["down"])]
115
- }, null, 42, j), [[E, B.value]]), b.stepper ? (S(), g("div", {
105
+ "aria-valuenow": F.value || void 0,
106
+ "aria-valuemin": v.min,
107
+ "aria-valuemax": v.max,
108
+ placeholder: v.placeholder,
109
+ disabled: v.disabled,
110
+ required: v.required,
111
+ "aria-invalid": R.value || void 0,
112
+ "aria-describedby": C(I)?.describedBy.value,
113
+ class: Z("input"),
114
+ onFocus: G,
115
+ onBlur: K,
116
+ onKeydown: [n[1] ||= O(k((e) => q(1), ["prevent"]), ["up"]), n[2] ||= O(k((e) => q(-1), ["prevent"]), ["down"])]
117
+ }), null, 16, M), [[T, V.value]]), v.stepper ? (x(), m("div", {
116
118
  key: 0,
117
- class: x(X("stepper"))
118
- }, [_("button", {
119
+ class: b(Z("stepper"))
120
+ }, [h("button", {
119
121
  type: "button",
120
122
  tabindex: "-1",
121
- "aria-label": b.incrementLabel,
122
- disabled: b.disabled || J.value,
123
- class: x(X("step")),
124
- onClick: i[3] ||= (e) => K(1)
125
- }, [v(r, { icon: w(t) }, null, 8, ["icon"])], 10, M), _("button", {
123
+ "aria-label": v.incrementLabel,
124
+ disabled: v.disabled || Y.value,
125
+ class: b(Z("step")),
126
+ onClick: n[3] ||= (e) => q(1)
127
+ }, [g(t, { icon: C(j) }, null, 8, ["icon"])], 10, N), h("button", {
126
128
  type: "button",
127
129
  tabindex: "-1",
128
- "aria-label": b.decrementLabel,
129
- disabled: b.disabled || q.value,
130
- class: x(X("step")),
131
- onClick: i[4] ||= (e) => K(-1)
132
- }, [v(r, { icon: w(e) }, null, 8, ["icon"])], 10, N)], 2)) : h("", !0)], 2));
130
+ "aria-label": v.decrementLabel,
131
+ disabled: v.disabled || J.value,
132
+ class: b(Z("step")),
133
+ onClick: n[4] ||= (e) => q(-1)
134
+ }, [g(t, { icon: C(A) }, null, 8, ["icon"])], 10, P)], 2)) : p("", !0)], 2));
133
135
  }
134
136
  });
135
137
  //#endregion
136
- export { P as default };
138
+ export { F as default };
@@ -0,0 +1,5 @@
1
+ import e from "./PageHeader.vue_vue_type_script_setup_true_lang.js";
2
+ //#region src/components/PageHeader.vue
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };
@@ -0,0 +1,52 @@
1
+ export interface PageHeaderProps {
2
+ /** Render as a different element or component. */
3
+ as?: string;
4
+ title?: string;
5
+ description?: string;
6
+ /**
7
+ * Heading level for the title. A page header is usually the `h1`, but a
8
+ * panel or a nested view may need to sit lower in the outline.
9
+ */
10
+ level?: 1 | 2 | 3;
11
+ /** Draw a rule underneath, for pages that run straight into content. */
12
+ bordered?: boolean;
13
+ /** Skip built-in classes; you take over styling entirely. */
14
+ unstyled?: boolean;
15
+ class?: string;
16
+ /** Override classes per slot, e.g. `{ title: 'text-3xl' }`. */
17
+ ui?: {
18
+ root?: string;
19
+ top?: string;
20
+ row?: string;
21
+ heading?: string;
22
+ title?: string;
23
+ description?: string;
24
+ actions?: string;
25
+ };
26
+ }
27
+ declare var __VLS_8: {}, __VLS_16: {}, __VLS_18: {}, __VLS_20: {}, __VLS_22: {};
28
+ type __VLS_Slots = {} & {
29
+ breadcrumb?: (props: typeof __VLS_8) => any;
30
+ } & {
31
+ title?: (props: typeof __VLS_16) => any;
32
+ } & {
33
+ description?: (props: typeof __VLS_18) => any;
34
+ } & {
35
+ actions?: (props: typeof __VLS_20) => any;
36
+ } & {
37
+ default?: (props: typeof __VLS_22) => any;
38
+ };
39
+ declare const __VLS_base: import("vue").DefineComponent<PageHeaderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PageHeaderProps> & Readonly<{}>, {
40
+ unstyled: boolean;
41
+ as: string;
42
+ bordered: boolean;
43
+ level: 1 | 2 | 3;
44
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
45
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
46
+ declare const _default: typeof __VLS_export;
47
+ export default _default;
48
+ type __VLS_WithSlots<T, S> = T & {
49
+ new (): {
50
+ $slots: S;
51
+ };
52
+ };
@@ -0,0 +1,59 @@
1
+ import { useIryxUiConfig as e } from "../config.js";
2
+ import { pageHeaderTheme as t } from "../theme/page-header.js";
3
+ import { computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, defineComponent as c, normalizeClass as l, openBlock as u, renderSlot as d, resolveDynamicComponent as f, toDisplayString as p, unref as m, withCtx as h } from "vue";
4
+ import { Primitive as g } from "reka-ui";
5
+ //#region src/components/PageHeader.vue?vue&type=script&setup=true&lang.ts
6
+ var _ = /*@__PURE__*/ c({
7
+ __name: "PageHeader",
8
+ props: {
9
+ as: { default: "header" },
10
+ title: {},
11
+ description: {},
12
+ level: { default: 1 },
13
+ bordered: {
14
+ type: Boolean,
15
+ default: void 0
16
+ },
17
+ unstyled: {
18
+ type: Boolean,
19
+ default: void 0
20
+ },
21
+ class: {},
22
+ ui: {}
23
+ },
24
+ setup(c) {
25
+ let _ = c, v = e(), y = n(() => _.unstyled ?? v.unstyled), b = n(() => `h${_.level}`), x = n(() => t({ bordered: _.bordered }));
26
+ function S(e) {
27
+ let t = _.ui?.[e];
28
+ return y.value ? t : x.value[e]({ class: t });
29
+ }
30
+ return (e, t) => (u(), r(m(g), {
31
+ as: _.as,
32
+ class: l(y.value ? [_.ui?.root, _.class] : x.value.root({ class: [_.ui?.root, _.class] }))
33
+ }, {
34
+ default: h(() => [
35
+ e.$slots.breadcrumb ? (u(), a("div", {
36
+ key: 0,
37
+ class: l(S("top"))
38
+ }, [d(e.$slots, "breadcrumb")], 2)) : i("", !0),
39
+ o("div", { class: l(S("row")) }, [o("div", { class: l(S("heading")) }, [_.title || e.$slots.title ? (u(), r(f(b.value), {
40
+ key: 0,
41
+ class: l(S("title"))
42
+ }, {
43
+ default: h(() => [d(e.$slots, "title", {}, () => [s(p(_.title), 1)])]),
44
+ _: 3
45
+ }, 8, ["class"])) : i("", !0), _.description || e.$slots.description ? (u(), a("p", {
46
+ key: 1,
47
+ class: l(S("description"))
48
+ }, [d(e.$slots, "description", {}, () => [s(p(_.description), 1)])], 2)) : i("", !0)], 2), e.$slots.actions ? (u(), a("div", {
49
+ key: 0,
50
+ class: l(S("actions"))
51
+ }, [d(e.$slots, "actions")], 2)) : i("", !0)], 2),
52
+ d(e.$slots, "default")
53
+ ]),
54
+ _: 3
55
+ }, 8, ["as", "class"]));
56
+ }
57
+ });
58
+ //#endregion
59
+ export { _ as default };
@@ -1,13 +1,13 @@
1
- import { ArrowLeft01Icon as e, ArrowRight01Icon 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 { paginationTheme as i } from "../theme/pagination.js";
5
- import { Fragment as a, computed as o, createBlock as s, createElementBlock as c, createTextVNode as l, createVNode as u, defineComponent as d, mergeModels as f, normalizeClass as p, openBlock as m, renderList as h, renderSlot as g, toDisplayString as _, unref as v, useModel as y, withCtx as b } from "vue";
1
+ import { useIryxUiConfig as e } from "../config.js";
2
+ import t from "./Icon.js";
3
+ import { paginationTheme as n } from "../theme/pagination.js";
4
+ import { Fragment as r, computed as i, createBlock as a, createElementBlock as o, createTextVNode as s, createVNode as c, defineComponent as l, mergeModels as u, normalizeClass as d, openBlock as f, renderList as p, renderSlot as m, toDisplayString as h, unref as g, useModel as _, withCtx as v } from "vue";
5
+ import { ArrowLeft01Icon as y, ArrowRight01Icon as b } from "@hugeicons/core-free-icons";
6
6
  import { PaginationEllipsis as x, PaginationList as S, PaginationListItem as C, PaginationNext as w, PaginationPrev as T, PaginationRoot as E } from "reka-ui";
7
7
  //#region src/components/Pagination.vue?vue&type=script&setup=true&lang.ts
8
- var D = /*@__PURE__*/ d({
8
+ var D = /*@__PURE__*/ l({
9
9
  __name: "Pagination",
10
- props: /*@__PURE__*/ f({
10
+ props: /*@__PURE__*/ u({
11
11
  total: { default: 0 },
12
12
  itemsPerPage: { default: 10 },
13
13
  siblingCount: { default: 1 },
@@ -31,52 +31,52 @@ var D = /*@__PURE__*/ d({
31
31
  pageModifiers: {}
32
32
  }),
33
33
  emits: ["update:page"],
34
- setup(d) {
35
- let f = d, D = y(d, "page"), O = n(), k = o(() => f.unstyled ?? O.unstyled), A = o(() => i({
36
- size: f.size,
37
- align: f.align
38
- })), j = o(() => k.value ? [f.ui?.root, f.class] : A.value.root({ class: [f.ui?.root, f.class] })), M = o(() => k.value ? f.ui?.list : A.value.list({ class: f.ui?.list })), N = o(() => k.value ? f.ui?.ellipsis : A.value.ellipsis({ class: f.ui?.ellipsis }));
34
+ setup(l) {
35
+ let u = l, D = _(l, "page"), O = e(), k = i(() => u.unstyled ?? O.unstyled), A = i(() => n({
36
+ size: u.size,
37
+ align: u.align
38
+ })), j = i(() => k.value ? [u.ui?.root, u.class] : A.value.root({ class: [u.ui?.root, u.class] })), M = i(() => k.value ? u.ui?.list : A.value.list({ class: u.ui?.list })), N = i(() => k.value ? u.ui?.ellipsis : A.value.ellipsis({ class: u.ui?.ellipsis }));
39
39
  function P(e) {
40
- return k.value ? f.ui?.item : [A.value.item({ class: f.ui?.item }), e ? A.value.active() : A.value.inactive()];
40
+ return k.value ? u.ui?.item : [A.value.item({ class: u.ui?.item }), e ? A.value.active() : A.value.inactive()];
41
41
  }
42
- return (n, i) => (m(), s(v(E), {
42
+ return (e, n) => (f(), a(g(E), {
43
43
  page: D.value,
44
- "onUpdate:page": i[0] ||= (e) => D.value = e,
45
- total: f.total,
46
- "items-per-page": f.itemsPerPage,
47
- "sibling-count": f.siblingCount,
48
- "show-edges": f.showEdges,
49
- "aria-label": f.label,
50
- class: p(j.value)
44
+ "onUpdate:page": n[0] ||= (e) => D.value = e,
45
+ total: u.total,
46
+ "items-per-page": u.itemsPerPage,
47
+ "sibling-count": u.siblingCount,
48
+ "show-edges": u.showEdges,
49
+ "aria-label": u.label,
50
+ class: d(j.value)
51
51
  }, {
52
- default: b(() => [u(v(S), { class: p(M.value) }, {
53
- default: b(({ items: o }) => [
54
- u(v(T), {
55
- "aria-label": f.prevLabel,
56
- class: p(P(!1))
52
+ default: v(() => [c(g(S), { class: d(M.value) }, {
53
+ default: v(({ items: i }) => [
54
+ c(g(T), {
55
+ "aria-label": u.prevLabel,
56
+ class: d(P(!1))
57
57
  }, {
58
- default: b(() => [g(n.$slots, "prev", {}, () => [u(r, { icon: v(e) }, null, 8, ["icon"])])]),
58
+ default: v(() => [m(e.$slots, "prev", {}, () => [c(t, { icon: g(y) }, null, 8, ["icon"])])]),
59
59
  _: 3
60
60
  }, 8, ["aria-label", "class"]),
61
- (m(!0), c(a, null, h(o, (e, t) => (m(), c(a, { key: t }, [e.type === "page" ? (m(), s(v(C), {
61
+ (f(!0), o(r, null, p(i, (e, t) => (f(), o(r, { key: t }, [e.type === "page" ? (f(), a(g(C), {
62
62
  key: 0,
63
63
  value: e.value,
64
- class: p(P(e.value === D.value))
64
+ class: d(P(e.value === D.value))
65
65
  }, {
66
- default: b(() => [l(_(e.value), 1)]),
66
+ default: v(() => [s(h(e.value), 1)]),
67
67
  _: 2
68
- }, 1032, ["value", "class"])) : (m(), s(v(x), {
68
+ }, 1032, ["value", "class"])) : (f(), a(g(x), {
69
69
  key: 1,
70
- class: p(N.value)
70
+ class: d(N.value)
71
71
  }, {
72
- default: b(() => [...i[1] ||= [l(" … ", -1)]]),
72
+ default: v(() => [...n[1] ||= [s(" … ", -1)]]),
73
73
  _: 1
74
74
  }, 8, ["class"]))], 64))), 128)),
75
- u(v(w), {
76
- "aria-label": f.nextLabel,
77
- class: p(P(!1))
75
+ c(g(w), {
76
+ "aria-label": u.nextLabel,
77
+ class: d(P(!1))
78
78
  }, {
79
- default: b(() => [g(n.$slots, "next", {}, () => [u(r, { icon: v(t) }, null, 8, ["icon"])])]),
79
+ default: v(() => [m(e.$slots, "next", {}, () => [c(t, { icon: g(b) }, null, 8, ["icon"])])]),
80
80
  _: 3
81
81
  }, 8, ["aria-label", "class"])
82
82
  ]),
@@ -1,18 +1,18 @@
1
- import { ViewIcon as e, ViewOffIcon 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 i from "./Input.js";
5
- import { passwordInputTheme as a } from "../theme/password-input.js";
6
- import { Fragment as o, computed as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createSlots as d, createVNode as f, defineComponent as p, mergeModels as m, mergeProps as h, normalizeClass as g, openBlock as _, ref as v, renderList as y, toDisplayString as b, unref as x, useModel as S, withCtx as C } from "vue";
1
+ import { useIryxUiConfig as e } from "../config.js";
2
+ import t from "./Icon.js";
3
+ import n from "./Input.js";
4
+ import { passwordInputTheme as r } from "../theme/password-input.js";
5
+ import { Fragment as i, computed as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createSlots as l, createVNode as u, defineComponent as d, mergeModels as f, mergeProps as p, normalizeClass as m, openBlock as h, ref as g, renderList as _, toDisplayString as v, unref as y, useModel as b, withCtx as x } from "vue";
6
+ import { ViewIcon as S, ViewOffIcon as C } from "@hugeicons/core-free-icons";
7
7
  //#region src/components/PasswordInput.vue?vue&type=script&setup=true&lang.ts
8
8
  var w = [
9
9
  "aria-label",
10
10
  "aria-pressed",
11
11
  "disabled"
12
- ], T = ["data-filled"], E = /*@__PURE__*/ p({
12
+ ], T = ["data-filled"], E = /*@__PURE__*/ d({
13
13
  inheritAttrs: !1,
14
14
  __name: "PasswordInput",
15
- props: /*@__PURE__*/ m({
15
+ props: /*@__PURE__*/ f({
16
16
  size: {},
17
17
  placeholder: {},
18
18
  disabled: { type: Boolean },
@@ -46,41 +46,41 @@ var w = [
46
46
  modelModifiers: {}
47
47
  }),
48
48
  emits: ["update:modelValue"],
49
- setup(p) {
50
- let m = p, E = S(p, "modelValue"), D = n(), O = s(() => m.unstyled ?? D.unstyled), k = v(!1), A = s(() => {
49
+ setup(d) {
50
+ let f = d, E = b(d, "modelValue"), D = e(), O = a(() => f.unstyled ?? D.unstyled), k = g(!1), A = a(() => {
51
51
  let e = E.value;
52
52
  if (!e) return 0;
53
53
  let t = 0;
54
54
  return e.length >= 8 && t++, e.length >= 12 && t++, /[a-z]/.test(e) && /[A-Z]/.test(e) && t++, /\d/.test(e) && t++, /[^\w\s]/.test(e) && t++, Math.max(1, Math.min(t, 4));
55
- }), j = s(() => m.strength && E.value.length > 0), M = s(() => a({ score: A.value })), N = s(() => O.value ? m.ui?.input : M.value.input({ class: m.ui?.input }));
55
+ }), j = a(() => f.strength && E.value.length > 0), M = a(() => r({ score: A.value })), N = a(() => O.value ? f.ui?.input : M.value.input({ class: f.ui?.input }));
56
56
  function P(e, t) {
57
- let n = m.ui?.[e];
57
+ let n = f.ui?.[e];
58
58
  return O.value ? [n, t] : M.value[e]({ class: [n, t] });
59
59
  }
60
- return (n, a) => (_(), l("div", { class: g(P("root", m.class)) }, [f(i, h({
61
- id: m.id,
60
+ return (e, r) => (h(), s("div", { class: m(P("root", f.class)) }, [u(n, p({
61
+ id: f.id,
62
62
  modelValue: E.value,
63
- "onUpdate:modelValue": a[1] ||= (e) => E.value = e,
63
+ "onUpdate:modelValue": r[1] ||= (e) => E.value = e,
64
64
  type: k.value ? "text" : "password",
65
- size: m.size,
66
- placeholder: m.placeholder,
67
- disabled: m.disabled,
68
- required: m.required,
69
- invalid: m.invalid,
70
- unstyled: m.unstyled,
65
+ size: f.size,
66
+ placeholder: f.placeholder,
67
+ disabled: f.disabled,
68
+ required: f.required,
69
+ invalid: f.invalid,
70
+ unstyled: f.unstyled,
71
71
  ui: { input: N.value },
72
72
  autocomplete: "current-password"
73
- }, n.$attrs), d({ _: 2 }, [m.toggle ? {
73
+ }, e.$attrs), l({ _: 2 }, [f.toggle ? {
74
74
  name: "trailing",
75
- fn: C(() => [u("button", {
75
+ fn: x(() => [c("button", {
76
76
  type: "button",
77
77
  tabindex: "-1",
78
- "aria-label": k.value ? m.hideLabel : m.showLabel,
78
+ "aria-label": k.value ? f.hideLabel : f.showLabel,
79
79
  "aria-pressed": k.value,
80
- disabled: m.disabled,
81
- class: g(P("toggle")),
82
- onClick: a[0] ||= (e) => k.value = !k.value
83
- }, [f(r, { icon: k.value ? x(t) : x(e) }, null, 8, ["icon"])], 10, w)]),
80
+ disabled: f.disabled,
81
+ class: m(P("toggle")),
82
+ onClick: r[0] ||= (e) => k.value = !k.value
83
+ }, [u(t, { icon: k.value ? y(C) : y(S) }, null, 8, ["icon"])], 10, w)]),
84
84
  key: "0"
85
85
  } : void 0]), 1040, [
86
86
  "id",
@@ -93,20 +93,20 @@ var w = [
93
93
  "invalid",
94
94
  "unstyled",
95
95
  "ui"
96
- ]), j.value ? (_(), l("div", {
96
+ ]), j.value ? (h(), s("div", {
97
97
  key: 0,
98
- class: g(P("meter"))
99
- }, [u("div", {
100
- class: g(P("track")),
98
+ class: m(P("meter"))
99
+ }, [c("div", {
100
+ class: m(P("track")),
101
101
  "aria-hidden": "true"
102
- }, [(_(), l(o, null, y(4, (e) => u("span", {
102
+ }, [(h(), s(i, null, _(4, (e) => c("span", {
103
103
  key: e,
104
104
  "data-filled": e <= A.value ? "" : void 0,
105
- class: g(P("segment"))
106
- }, null, 10, T)), 64))], 2), u("span", {
107
- class: g(P("label")),
105
+ class: m(P("segment"))
106
+ }, null, 10, T)), 64))], 2), c("span", {
107
+ class: m(P("label")),
108
108
  role: "status"
109
- }, b(m.strengthLabels[A.value - 1]), 3)], 2)) : c("", !0)], 2));
109
+ }, v(f.strengthLabels[A.value - 1]), 3)], 2)) : o("", !0)], 2));
110
110
  }
111
111
  });
112
112
  //#endregion
@@ -0,0 +1,5 @@
1
+ import e from "./PinInput.vue_vue_type_script_setup_true_lang.js";
2
+ //#region src/components/PinInput.vue
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };
@@ -0,0 +1,65 @@
1
+ export interface PinInputProps {
2
+ /**
3
+ * The code, as a plain string. Reka works in arrays of single characters;
4
+ * a PIN is a string everywhere else in an app — in the request body, in the
5
+ * validator, in the email it arrived in — so the array stays an internal
6
+ * detail and never reaches your model.
7
+ */
8
+ modelValue?: string;
9
+ /** How many cells to render. */
10
+ length?: number;
11
+ /** `number` gets the numeric keypad on mobile and rejects non-digits. */
12
+ type?: 'text' | 'number';
13
+ /** Render the entered characters as dots, like a password field. */
14
+ mask?: boolean;
15
+ /**
16
+ * Let phones offer the code from an SMS. Sets the one-time-code autofill
17
+ * hint, which is the whole reason a reader does not have to retype it.
18
+ */
19
+ otp?: boolean;
20
+ /** Character shown in an empty cell. */
21
+ placeholder?: string;
22
+ /**
23
+ * Insert a separator after every N cells — `3` gives 123–456. Long codes
24
+ * are read in chunks, and an unbroken row of eight is hard to check.
25
+ */
26
+ groupSize?: number;
27
+ /** What that separator shows. */
28
+ separator?: string;
29
+ disabled?: boolean;
30
+ invalid?: boolean;
31
+ size?: 'sm' | 'md' | 'lg';
32
+ id?: string;
33
+ /** Skip built-in classes; you take over styling entirely. */
34
+ unstyled?: boolean;
35
+ class?: string;
36
+ /** Override classes per slot, e.g. `{ input: 'size-14' }`. */
37
+ ui?: {
38
+ root?: string;
39
+ input?: string;
40
+ separator?: string;
41
+ };
42
+ }
43
+ declare var __VLS_15: {};
44
+ type __VLS_Slots = {} & {
45
+ separator?: (props: typeof __VLS_15) => any;
46
+ };
47
+ declare const __VLS_base: import("vue").DefineComponent<PinInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
48
+ "update:modelValue": (value: string) => any;
49
+ complete: (value: string) => any;
50
+ }, string, import("vue").PublicProps, Readonly<PinInputProps> & Readonly<{
51
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
52
+ onComplete?: ((value: string) => any) | undefined;
53
+ }>, {
54
+ length: number;
55
+ unstyled: boolean;
56
+ separator: string;
57
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
58
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
59
+ declare const _default: typeof __VLS_export;
60
+ export default _default;
61
+ type __VLS_WithSlots<T, S> = T & {
62
+ new (): {
63
+ $slots: S;
64
+ };
65
+ };