@itguy614/clean-ui 0.9.0 → 1.0.1

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 (268) hide show
  1. package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
  2. package/dist/clean-ui.css +1 -1
  3. package/dist/components/CuiAccordion.vue.js +7 -0
  4. package/dist/components/CuiAccordion.vue2.js +55 -0
  5. package/dist/components/CuiAccordionItem.vue.js +7 -0
  6. package/dist/components/CuiAccordionItem.vue2.js +91 -0
  7. package/dist/components/CuiAlert.vue.d.ts.map +1 -1
  8. package/dist/components/CuiAlert.vue.js +7 -0
  9. package/dist/components/CuiAlert.vue2.js +113 -0
  10. package/dist/components/CuiAvatar.vue.js +99 -0
  11. package/dist/components/CuiAvatar.vue3.js +5 -0
  12. package/dist/components/CuiAvatarGroup.vue.js +22 -0
  13. package/dist/components/CuiAvatarGroup.vue3.js +5 -0
  14. package/dist/components/CuiBackdrop.vue.js +7 -0
  15. package/dist/components/CuiBackdrop.vue2.js +49 -0
  16. package/dist/components/CuiBadge.vue.d.ts.map +1 -1
  17. package/dist/components/CuiBadge.vue.js +7 -0
  18. package/dist/components/CuiBadge.vue2.js +82 -0
  19. package/dist/components/CuiBanner.vue.js +81 -0
  20. package/dist/components/CuiBanner.vue2.js +4 -0
  21. package/dist/components/CuiBreadcrumb.vue.js +7 -0
  22. package/dist/components/CuiBreadcrumb.vue2.js +29 -0
  23. package/dist/components/CuiBreadcrumbItem.vue.js +7 -0
  24. package/dist/components/CuiBreadcrumbItem.vue2.js +46 -0
  25. package/dist/components/CuiButton.vue.d.ts.map +1 -1
  26. package/dist/components/CuiButton.vue.js +7 -0
  27. package/dist/components/CuiButton.vue2.js +136 -0
  28. package/dist/components/CuiButtonGroup.vue.js +7 -0
  29. package/dist/components/CuiButtonGroup.vue2.js +21 -0
  30. package/dist/components/CuiCard.vue.js +35 -0
  31. package/dist/components/CuiCard.vue2.js +4 -0
  32. package/dist/components/CuiCardBody.vue.js +20 -0
  33. package/dist/components/CuiCardBody.vue2.js +4 -0
  34. package/dist/components/CuiCardFooter.vue.js +32 -0
  35. package/dist/components/CuiCardFooter.vue2.js +4 -0
  36. package/dist/components/CuiCardHeader.vue.js +51 -0
  37. package/dist/components/CuiCardHeader.vue2.js +4 -0
  38. package/dist/components/CuiCardMedia.vue.js +7 -0
  39. package/dist/components/CuiCardMedia.vue2.js +38 -0
  40. package/dist/components/CuiCheckbox.vue.js +7 -0
  41. package/dist/components/CuiCheckbox.vue2.js +105 -0
  42. package/dist/components/CuiCheckboxGroup.vue.js +7 -0
  43. package/dist/components/CuiCheckboxGroup.vue2.js +59 -0
  44. package/dist/components/CuiCodeBlock.vue.js +129 -0
  45. package/dist/components/CuiCodeBlock.vue2.js +4 -0
  46. package/dist/components/CuiColorPicker.vue.js +348 -0
  47. package/dist/components/CuiColorPicker.vue2.js +4 -0
  48. package/dist/components/CuiCombobox.vue.js +332 -0
  49. package/dist/components/CuiCombobox.vue2.js +4 -0
  50. package/dist/components/CuiConfigProvider.vue.js +18 -0
  51. package/dist/components/CuiConfigProvider.vue2.js +4 -0
  52. package/dist/components/CuiConfirmDialog.vue.js +208 -0
  53. package/dist/components/CuiConfirmDialog.vue2.js +4 -0
  54. package/dist/components/CuiContainer.vue.js +35 -0
  55. package/dist/components/CuiContainer.vue2.js +4 -0
  56. package/dist/components/CuiContextMenu.vue.js +7 -0
  57. package/dist/components/CuiContextMenu.vue2.js +136 -0
  58. package/dist/components/CuiCopyButton.vue.js +63 -0
  59. package/dist/components/CuiCopyButton.vue2.js +4 -0
  60. package/dist/components/CuiDataGrid.vue.d.ts +53 -79
  61. package/dist/components/CuiDataGrid.vue.d.ts.map +1 -1
  62. package/dist/components/CuiDataGrid.vue.js +178 -0
  63. package/dist/components/CuiDataGrid.vue3.js +5 -0
  64. package/dist/components/CuiDataGridActiveFilters.vue.js +47 -0
  65. package/dist/components/CuiDataGridActiveFilters.vue3.js +5 -0
  66. package/dist/components/CuiDataGridBulkBar.vue.d.ts.map +1 -1
  67. package/dist/components/CuiDataGridBulkBar.vue.js +70 -0
  68. package/dist/components/CuiDataGridBulkBar.vue3.js +5 -0
  69. package/dist/components/CuiDataGridCardView.vue.js +31 -0
  70. package/dist/components/CuiDataGridCardView.vue2.js +4 -0
  71. package/dist/components/CuiDataGridColumnManager.vue.js +86 -0
  72. package/dist/components/CuiDataGridColumnManager.vue2.js +4 -0
  73. package/dist/components/CuiDataGridFilterPanel.vue.js +181 -0
  74. package/dist/components/CuiDataGridFilterPanel.vue3.js +5 -0
  75. package/dist/components/CuiDataGridPagination.vue.js +28 -0
  76. package/dist/components/CuiDataGridPagination.vue2.js +4 -0
  77. package/dist/components/CuiDataGridSearch.vue.js +69 -0
  78. package/dist/components/CuiDataGridSearch.vue2.js +4 -0
  79. package/dist/components/CuiDataGridTable.vue.js +336 -0
  80. package/dist/components/CuiDataGridTable.vue2.js +4 -0
  81. package/dist/components/CuiDataGridToolbar.vue.js +73 -0
  82. package/dist/components/CuiDataGridToolbar.vue3.js +5 -0
  83. package/dist/components/CuiDataGridViewManager.vue.js +209 -0
  84. package/dist/components/CuiDataGridViewManager.vue2.js +4 -0
  85. package/dist/components/CuiDataGridViewToggle.vue.js +43 -0
  86. package/dist/components/CuiDataGridViewToggle.vue3.js +5 -0
  87. package/dist/components/CuiDatePicker.vue.js +382 -0
  88. package/dist/components/CuiDatePicker.vue2.js +4 -0
  89. package/dist/components/CuiDateRangePicker.vue.js +376 -0
  90. package/dist/components/CuiDateRangePicker.vue2.js +4 -0
  91. package/dist/components/CuiDivider.vue.js +124 -0
  92. package/dist/components/CuiDivider.vue2.js +4 -0
  93. package/dist/components/CuiDropdown.vue.js +7 -0
  94. package/dist/components/CuiDropdown.vue2.js +110 -0
  95. package/dist/components/CuiDropdownCheckItem.vue.js +7 -0
  96. package/dist/components/CuiDropdownCheckItem.vue2.js +45 -0
  97. package/dist/components/CuiDropdownDivider.vue.js +14 -0
  98. package/dist/components/CuiDropdownHeader.vue.js +16 -0
  99. package/dist/components/CuiDropdownItem.vue.js +7 -0
  100. package/dist/components/CuiDropdownItem.vue2.js +55 -0
  101. package/dist/components/CuiDropdownMenu.vue.js +7 -0
  102. package/dist/components/CuiDropdownMenu.vue2.js +79 -0
  103. package/dist/components/CuiDropdownRadioGroup.vue.js +23 -0
  104. package/dist/components/CuiDropdownRadioGroup.vue2.js +4 -0
  105. package/dist/components/CuiDropdownRadioItem.vue.js +7 -0
  106. package/dist/components/CuiDropdownRadioItem.vue2.js +43 -0
  107. package/dist/components/CuiDropdownSub.vue.js +7 -0
  108. package/dist/components/CuiDropdownSub.vue2.js +91 -0
  109. package/dist/components/CuiDropdownTrigger.vue.js +7 -0
  110. package/dist/components/CuiDropdownTrigger.vue2.js +25 -0
  111. package/dist/components/CuiEmptyState.vue.js +7 -0
  112. package/dist/components/CuiEmptyState.vue2.js +70 -0
  113. package/dist/components/CuiFieldset.vue.js +7 -0
  114. package/dist/components/CuiFieldset.vue2.js +79 -0
  115. package/dist/components/CuiFileUpload.vue.js +254 -0
  116. package/dist/components/CuiFileUpload.vue2.js +4 -0
  117. package/dist/components/CuiFlex.vue.js +7 -0
  118. package/dist/components/CuiFlex.vue2.js +72 -0
  119. package/dist/components/CuiFlexItem.vue.js +35 -0
  120. package/dist/components/CuiFlexItem.vue2.js +4 -0
  121. package/dist/components/CuiForm.vue.js +116 -0
  122. package/dist/components/CuiForm.vue2.js +4 -0
  123. package/dist/components/CuiFormField.vue.js +7 -0
  124. package/dist/components/CuiFormField.vue2.js +73 -0
  125. package/dist/components/CuiGrid.vue.js +7 -0
  126. package/dist/components/CuiGrid.vue2.js +51 -0
  127. package/dist/components/CuiGridItem.vue.js +30 -0
  128. package/dist/components/CuiGridItem.vue2.js +4 -0
  129. package/dist/components/CuiIcon.vue.js +7 -0
  130. package/dist/components/CuiIcon.vue2.js +72 -0
  131. package/dist/components/CuiInput.vue.d.ts +6 -6
  132. package/dist/components/CuiInput.vue.d.ts.map +1 -1
  133. package/dist/components/CuiInput.vue.js +7 -0
  134. package/dist/components/CuiInput.vue2.js +150 -0
  135. package/dist/components/CuiInputStepper.vue.js +189 -0
  136. package/dist/components/CuiInputStepper.vue2.js +4 -0
  137. package/dist/components/CuiKbd.vue.js +44 -0
  138. package/dist/components/CuiKbd.vue2.js +4 -0
  139. package/dist/components/CuiMaskedInput.vue.d.ts +8 -8
  140. package/dist/components/CuiMaskedInput.vue.js +256 -0
  141. package/dist/components/CuiMaskedInput.vue2.js +4 -0
  142. package/dist/components/CuiModal.vue.js +7 -0
  143. package/dist/components/CuiModal.vue2.js +98 -0
  144. package/dist/components/CuiModalBody.vue.js +50 -0
  145. package/dist/components/CuiModalBody.vue2.js +4 -0
  146. package/dist/components/CuiModalFooter.vue.js +36 -0
  147. package/dist/components/CuiModalFooter.vue2.js +4 -0
  148. package/dist/components/CuiModalHeader.vue.js +85 -0
  149. package/dist/components/CuiModalHeader.vue2.js +4 -0
  150. package/dist/components/CuiPagination.vue.js +7 -0
  151. package/dist/components/CuiPagination.vue2.js +136 -0
  152. package/dist/components/CuiPopover.vue.js +227 -0
  153. package/dist/components/CuiPopover.vue2.js +4 -0
  154. package/dist/components/CuiProgress.vue.js +7 -0
  155. package/dist/components/CuiProgress.vue2.js +132 -0
  156. package/dist/components/CuiRadio.vue.d.ts.map +1 -1
  157. package/dist/components/CuiRadio.vue.js +7 -0
  158. package/dist/components/CuiRadio.vue2.js +139 -0
  159. package/dist/components/CuiRadioGroup.vue.js +7 -0
  160. package/dist/components/CuiRadioGroup.vue2.js +78 -0
  161. package/dist/components/CuiRating.vue.js +129 -0
  162. package/dist/components/CuiRating.vue2.js +4 -0
  163. package/dist/components/CuiResizablePanels.vue.js +147 -0
  164. package/dist/components/CuiResizablePanels.vue2.js +4 -0
  165. package/dist/components/CuiSelect.vue.d.ts.map +1 -1
  166. package/dist/components/CuiSelect.vue.js +7 -0
  167. package/dist/components/CuiSelect.vue2.js +359 -0
  168. package/dist/components/CuiSkeleton.vue.js +7 -0
  169. package/dist/components/CuiSkeleton.vue2.js +80 -0
  170. package/dist/components/CuiSlideover.vue.js +109 -0
  171. package/dist/components/CuiSlideover.vue2.js +4 -0
  172. package/dist/components/CuiSlider.vue.js +156 -0
  173. package/dist/components/CuiSlider.vue2.js +4 -0
  174. package/dist/components/CuiSpacer.vue.js +32 -0
  175. package/dist/components/CuiSpacer.vue2.js +4 -0
  176. package/dist/components/CuiSpinner.vue.js +99 -0
  177. package/dist/components/CuiSpinner.vue3.js +5 -0
  178. package/dist/components/CuiStack.vue.js +30 -0
  179. package/dist/components/CuiStack.vue2.js +4 -0
  180. package/dist/components/CuiStepper.vue.js +153 -0
  181. package/dist/components/CuiStepper.vue2.js +4 -0
  182. package/dist/components/CuiTab.vue.js +7 -0
  183. package/dist/components/CuiTab.vue2.js +73 -0
  184. package/dist/components/CuiTable.vue.d.ts.map +1 -1
  185. package/dist/components/CuiTable.vue.js +90 -0
  186. package/dist/components/CuiTable.vue3.js +5 -0
  187. package/dist/components/CuiTableBody.vue.js +18 -0
  188. package/dist/components/CuiTableBody.vue2.js +4 -0
  189. package/dist/components/CuiTableCell.vue.js +36 -0
  190. package/dist/components/CuiTableCell.vue2.js +4 -0
  191. package/dist/components/CuiTableFoot.vue.js +18 -0
  192. package/dist/components/CuiTableFoot.vue2.js +4 -0
  193. package/dist/components/CuiTableHead.vue.js +18 -0
  194. package/dist/components/CuiTableHead.vue2.js +4 -0
  195. package/dist/components/CuiTableRow.vue.js +23 -0
  196. package/dist/components/CuiTableRow.vue2.js +4 -0
  197. package/dist/components/CuiTabs.vue.js +7 -0
  198. package/dist/components/CuiTabs.vue2.js +124 -0
  199. package/dist/components/CuiTagInput.vue.js +296 -0
  200. package/dist/components/CuiTagInput.vue2.js +4 -0
  201. package/dist/components/CuiTextarea.vue.js +7 -0
  202. package/dist/components/CuiTextarea.vue2.js +112 -0
  203. package/dist/components/CuiTimePicker.vue.js +193 -0
  204. package/dist/components/CuiTimePicker.vue2.js +4 -0
  205. package/dist/components/CuiTimeline.vue.js +25 -0
  206. package/dist/components/CuiTimeline.vue2.js +4 -0
  207. package/dist/components/CuiTimelineItem.vue.js +113 -0
  208. package/dist/components/CuiTimelineItem.vue2.js +4 -0
  209. package/dist/components/CuiToast.vue.js +7 -0
  210. package/dist/components/CuiToast.vue2.js +129 -0
  211. package/dist/components/CuiToastProvider.vue.js +7 -0
  212. package/dist/components/CuiToastProvider.vue2.js +87 -0
  213. package/dist/components/CuiToggle.vue.d.ts.map +1 -1
  214. package/dist/components/CuiToggle.vue.js +7 -0
  215. package/dist/components/CuiToggle.vue2.js +116 -0
  216. package/dist/components/CuiToggleGroup.vue.js +7 -0
  217. package/dist/components/CuiToggleGroup.vue2.js +59 -0
  218. package/dist/components/CuiTooltip.vue.js +7 -0
  219. package/dist/components/CuiTooltip.vue2.js +128 -0
  220. package/dist/components/CuiTransferList.vue.js +442 -0
  221. package/dist/components/CuiTransferList.vue2.js +4 -0
  222. package/dist/components/CuiTreeNode.vue.js +180 -0
  223. package/dist/components/CuiTreeNode.vue2.js +4 -0
  224. package/dist/components/CuiTreeView.vue.js +73 -0
  225. package/dist/components/CuiTreeView.vue2.js +4 -0
  226. package/dist/components/accordion-context.js +4 -0
  227. package/dist/components/breadcrumb-context.js +4 -0
  228. package/dist/components/config-context.js +4 -0
  229. package/dist/components/data-grid-context.js +4 -0
  230. package/dist/components/dropdown-context.js +30 -0
  231. package/dist/components/form-context.js +4 -0
  232. package/dist/components/multi-select-group-context.js +5 -0
  233. package/dist/components/radio-context.js +4 -0
  234. package/dist/components/table-context.js +5 -0
  235. package/dist/components/tabs-context.js +4 -0
  236. package/dist/components/toast-context.js +45 -0
  237. package/dist/composables/useBreakpoint.js +34 -0
  238. package/dist/composables/useClickOutside.js +14 -0
  239. package/dist/composables/useCopyToClipboard.js +25 -0
  240. package/dist/composables/useDataGrid.js +269 -0
  241. package/dist/composables/useDataGridInertia.js +35 -0
  242. package/dist/composables/useDataGridViews.js +67 -0
  243. package/dist/composables/useDensity.js +42 -0
  244. package/dist/composables/useLayoutContext.js +21 -0
  245. package/dist/composables/useMessages.js +10 -0
  246. package/dist/composables/useOverlay.d.ts.map +1 -1
  247. package/dist/composables/useOverlay.js +59 -0
  248. package/dist/composables/usePopover.js +53 -0
  249. package/dist/composables/useScrollShadows.js +56 -0
  250. package/dist/composables/useTheme.js +57 -0
  251. package/dist/composables/useToast.js +23 -0
  252. package/dist/composables/useVirtualScroll.js +69 -0
  253. package/dist/index.js +290 -0
  254. package/dist/messages.js +57 -0
  255. package/dist/ssr-theme-init.js +13 -0
  256. package/dist/utils/color.js +195 -0
  257. package/dist/utils/colorIconMap.js +11 -0
  258. package/dist/utils/date.js +114 -0
  259. package/dist/utils/devWarn.d.ts +15 -0
  260. package/dist/utils/devWarn.d.ts.map +1 -0
  261. package/dist/utils/devWarn.js +20 -0
  262. package/dist/utils/liveRegion.js +12 -0
  263. package/dist/utils/resolvers.js +28 -0
  264. package/dist/utils/responsive.js +68 -0
  265. package/dist/utils/sizing.js +39 -0
  266. package/package.json +8 -7
  267. package/dist/clean-ui.js +0 -11937
  268. package/dist/clean-ui.umd.cjs +0 -11
@@ -0,0 +1,7 @@
1
+ import o from "./CuiIcon.vue2.js";
2
+ /* empty css */
3
+ import t from "../_virtual/_plugin-vue_export-helper.js";
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-9be9ff93"]]);
5
+ export {
6
+ p as default
7
+ };
@@ -0,0 +1,72 @@
1
+ import { defineComponent as w, computed as d, ref as C, onMounted as y, watch as g, withDirectives as z, openBlock as r, createElementBlock as m, normalizeStyle as h, normalizeClass as k, createBlock as I, resolveDynamicComponent as S, unref as x, vShow as B } from "vue";
2
+ import { resolveColor as M } from "../utils/color.js";
3
+ const D = /* @__PURE__ */ w({
4
+ __name: "CuiIcon",
5
+ props: {
6
+ name: {},
7
+ weight: { default: "regular" },
8
+ size: { default: "md" },
9
+ color: { default: "currentColor" },
10
+ duotoneColor: {},
11
+ duotoneOpacity: { default: 0.2 },
12
+ hidden: { type: Boolean, default: !1 }
13
+ },
14
+ setup(n) {
15
+ const o = n, p = {
16
+ xs: "0.875rem",
17
+ // 14px
18
+ sm: "1rem",
19
+ // 16px
20
+ md: "1.25rem",
21
+ // 20px
22
+ lg: "1.5rem",
23
+ // 24px
24
+ xl: "2rem"
25
+ // 32px
26
+ }, a = d(() => p[o.size] ?? o.size);
27
+ function f(e) {
28
+ return "Ph" + e.split("-").map((t) => t.charAt(0).toUpperCase() + t.slice(1)).join("");
29
+ }
30
+ const i = /* @__PURE__ */ new Map(), l = C(null);
31
+ async function s(e) {
32
+ const t = f(e);
33
+ if (i.has(t)) {
34
+ l.value = i.get(t);
35
+ return;
36
+ }
37
+ try {
38
+ const u = await import("@phosphor-icons/vue");
39
+ let c = u[t];
40
+ c || (console.warn(`[CuiIcon] Icon "${e}" (${t}) not found in @phosphor-icons/vue`), c = u.PhQuestion), i.set(t, c), o.name === e && (l.value = c);
41
+ } catch {
42
+ console.warn(`[CuiIcon] Failed to load icon "${e}"`);
43
+ }
44
+ }
45
+ y(() => s(o.name)), g(() => o.name, (e) => s(e));
46
+ const v = d(() => {
47
+ const e = {};
48
+ return o.weight === "duotone" && (o.duotoneColor && (e["--_duotone-color"] = o.duotoneColor), e["--_duotone-opacity"] = String(o.duotoneOpacity)), e;
49
+ });
50
+ return (e, t) => z((r(), m("span", {
51
+ class: k(["cui-icon", { "cui-icon--duotone": n.weight === "duotone" }]),
52
+ style: h(v.value)
53
+ }, [
54
+ l.value ? (r(), I(S(l.value), {
55
+ key: 0,
56
+ weight: n.weight,
57
+ size: a.value,
58
+ color: x(M)(n.color)
59
+ }, null, 8, ["weight", "size", "color"])) : (r(), m("span", {
60
+ key: 1,
61
+ class: "cui-icon__placeholder",
62
+ style: h({ width: a.value, height: a.value }),
63
+ "aria-hidden": "true"
64
+ }, null, 4))
65
+ ], 6)), [
66
+ [B, !n.hidden]
67
+ ]);
68
+ }
69
+ });
70
+ export {
71
+ D as default
72
+ };
@@ -1,8 +1,8 @@
1
1
  import type { HideableProps, ColorableProps, SizeableProps, DisableableProps, CuiRounded } from "../types/common";
2
- export type InputType = "text" | "password" | "email" | "url" | "tel" | "search";
2
+ export type InputType = "text" | "password" | "email" | "url" | "tel" | "search" | "number" | "range";
3
3
  export interface CuiInputProps extends HideableProps, ColorableProps, SizeableProps, DisableableProps {
4
- /** v-model binding */
5
- modelValue?: string;
4
+ /** v-model binding. `string | number` so `type="number"` / `v-model.number` bind without a cast. */
5
+ modelValue?: string | number;
6
6
  /** Input type */
7
7
  type?: InputType;
8
8
  /** Placeholder text */
@@ -36,10 +36,10 @@ declare const __VLS_component: import("vue").DefineComponent<CuiInputProps, {
36
36
  blur: typeof blur;
37
37
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
38
38
  clear: () => any;
39
- "update:modelValue": (value: string) => any;
39
+ "update:modelValue": (value: string | number) => any;
40
40
  }, string, import("vue").PublicProps, Readonly<CuiInputProps> & Readonly<{
41
41
  onClear?: (() => any) | undefined;
42
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
42
+ "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
43
43
  }>, {
44
44
  error: boolean;
45
45
  readonly: boolean;
@@ -49,7 +49,7 @@ declare const __VLS_component: import("vue").DefineComponent<CuiInputProps, {
49
49
  type: InputType;
50
50
  rounded: CuiRounded;
51
51
  disabled: boolean;
52
- modelValue: string;
52
+ modelValue: string | number;
53
53
  clearable: boolean;
54
54
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
55
55
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
@@ -1 +1 @@
1
- {"version":3,"file":"CuiInput.vue.d.ts","sourceRoot":"","sources":["../../src/components/CuiInput.vue"],"names":[],"mappings":"AAmXA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,aAAa,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAalH,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,UAAU,GAAG,OAAO,GAAG,KAAK,GAAG,KAAK,GAAG,QAAQ,CAAC;AAEjF,MAAM,WAAW,aAAc,SAAQ,aAAa,EAAE,cAAc,EAAE,aAAa,EAAE,gBAAgB;IACnG,sBAAsB;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iBAAiB;IACjB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,uBAAuB;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,6CAA6C;IAC7C,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,8CAA8C;IAC9C,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,8CAA8C;IAC9C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,oBAAoB;IACpB,OAAO,CAAC,EAAE,UAAU,CAAC;CACtB;AA8CD,iBAAS,KAAK,CAAC,IAAI,CAAC,EAAE,YAAY,QAEjC;AAED,iBAAS,IAAI,SAEZ;AAoND,QAAA,IAAI,OAAO,IAAU,EAAE,OAAO,IAAU,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AACrF,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GACpD;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC3C;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAgCxD,QAAA,MAAM,eAAe;;;;;;;;;;;WApTX,OAAO;cAIJ,OAAO;;;;UAVX,SAAS;aAYN,UAAU;;gBAdP,MAAM;eAMP,OAAO;6EA+TnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"CuiInput.vue.d.ts","sourceRoot":"","sources":["../../src/components/CuiInput.vue"],"names":[],"mappings":"AAmYA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,aAAa,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAalH,MAAM,MAAM,SAAS,GACjB,MAAM,GACN,UAAU,GACV,OAAO,GACP,KAAK,GACL,KAAK,GACL,QAAQ,GACR,QAAQ,GACR,OAAO,CAAC;AAEZ,MAAM,WAAW,aAAc,SAAQ,aAAa,EAAE,cAAc,EAAE,aAAa,EAAE,gBAAgB;IACnG,oGAAoG;IACpG,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,iBAAiB;IACjB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,uBAAuB;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,6CAA6C;IAC7C,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,8CAA8C;IAC9C,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,8CAA8C;IAC9C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,oBAAoB;IACpB,OAAO,CAAC,EAAE,UAAU,CAAC;CACtB;AAsDD,iBAAS,KAAK,CAAC,IAAI,CAAC,EAAE,YAAY,QAEjC;AAED,iBAAS,IAAI,SAEZ;AAoND,QAAA,IAAI,OAAO,IAAU,EAAE,OAAO,IAAU,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AACrF,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GACpD;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC3C;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAgCxD,QAAA,MAAM,eAAe;;;;;;;;;;;WA5TX,OAAO;cAIJ,OAAO;;;;UAVX,SAAS;aAYN,UAAU;;gBAdP,MAAM,GAAG,MAAM;eAMhB,OAAO;6EAuUnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,7 @@
1
+ import o from "./CuiInput.vue2.js";
2
+ /* empty css */
3
+ import t from "../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-29588c2a"]]);
5
+ export {
6
+ m as default
7
+ };
@@ -0,0 +1,150 @@
1
+ import { defineComponent as S, ref as _, computed as n, useTemplateRef as E, withDirectives as I, openBlock as u, createElementBlock as o, createElementVNode as m, normalizeStyle as M, normalizeClass as N, renderSlot as d, createCommentVNode as a, unref as v, createVNode as P, createBlock as h, toDisplayString as R, vShow as T } from "vue";
2
+ import b from "./CuiIcon.vue.js";
3
+ import { INPUT_SIZE_SCALE as D } from "../utils/sizing.js";
4
+ import { useMessages as A } from "../composables/useMessages.js";
5
+ const L = { class: "cui-input-wrapper" }, U = {
6
+ key: 0,
7
+ class: "cui-input__prefix-button"
8
+ }, Z = { class: "cui-input__inner" }, j = {
9
+ key: 0,
10
+ class: "cui-input__prefix"
11
+ }, q = ["type", "value", "placeholder", "disabled", "readonly", "aria-invalid"], F = ["aria-label"], G = ["aria-label"], H = {
12
+ key: 3,
13
+ class: "cui-input__suffix"
14
+ }, J = {
15
+ key: 1,
16
+ class: "cui-input__suffix-button"
17
+ }, K = {
18
+ key: 0,
19
+ class: "cui-input__error"
20
+ }, ee = /* @__PURE__ */ S({
21
+ __name: "CuiInput",
22
+ props: {
23
+ modelValue: { default: "" },
24
+ type: { default: "text" },
25
+ placeholder: {},
26
+ clearable: { type: Boolean, default: !1 },
27
+ error: { type: Boolean, default: !1 },
28
+ errorMessage: {},
29
+ readonly: { type: Boolean, default: !1 },
30
+ rounded: { default: "md" },
31
+ hidden: { type: Boolean, default: !1 },
32
+ color: { default: "primary" },
33
+ size: { default: "md" },
34
+ disabled: { type: Boolean, default: !1 }
35
+ },
36
+ emits: ["update:modelValue", "clear"],
37
+ setup(t, { expose: x, emit: g }) {
38
+ const k = {
39
+ none: "0",
40
+ sm: "0.25rem",
41
+ md: "var(--cui-button-radius, 0.375rem)",
42
+ lg: "0.5rem",
43
+ full: "9999px"
44
+ }, i = t, c = g, l = _(!1), y = n(() => i.type === "password"), $ = n(() => y.value && l.value ? "text" : i.type), w = n(
45
+ () => i.clearable && i.modelValue !== "" && i.modelValue != null && !i.disabled && !i.readonly
46
+ );
47
+ function V() {
48
+ var e;
49
+ c("update:modelValue", ""), c("clear"), (e = r.value) == null || e.focus();
50
+ }
51
+ function z(e) {
52
+ c("update:modelValue", e.target.value);
53
+ }
54
+ const r = E("inputEl");
55
+ function C(e) {
56
+ var s;
57
+ (s = r.value) == null || s.focus(e);
58
+ }
59
+ function B() {
60
+ var e;
61
+ (e = r.value) == null || e.blur();
62
+ }
63
+ x({ el: r, focus: C, blur: B });
64
+ const f = n(() => D[i.size]), p = A();
65
+ return (e, s) => I((u(), o("div", L, [
66
+ m("div", {
67
+ class: N(["cui-input", {
68
+ "cui-input--error": t.error,
69
+ "cui-input--disabled": t.disabled,
70
+ "cui-input--focused": !1,
71
+ "cui-input--has-prefix-button": e.$slots["prefix-button"],
72
+ "cui-input--has-suffix-button": e.$slots["suffix-button"]
73
+ }]),
74
+ style: M({
75
+ borderRadius: k[t.rounded],
76
+ "--_input-height": f.value.height,
77
+ "--_input-font-size": f.value.fontSize,
78
+ "--_input-px": f.value.px,
79
+ "--_input-color": `var(--cui-${t.color})`,
80
+ "--_input-focus-ring": `var(--cui-${t.color}-focus-ring)`,
81
+ "--_input-border": t.error ? "var(--cui-error)" : "var(--cui-border-strong)",
82
+ "--_input-focus-border": t.error ? "var(--cui-error)" : `var(--cui-${t.color})`
83
+ })
84
+ }, [
85
+ e.$slots["prefix-button"] ? (u(), o("div", U, [
86
+ d(e.$slots, "prefix-button", {}, void 0, !0)
87
+ ])) : a("", !0),
88
+ m("div", Z, [
89
+ e.$slots.prefix ? (u(), o("span", j, [
90
+ d(e.$slots, "prefix", {}, void 0, !0)
91
+ ])) : a("", !0),
92
+ m("input", {
93
+ ref: "inputEl",
94
+ type: $.value,
95
+ value: t.modelValue,
96
+ placeholder: t.placeholder,
97
+ disabled: t.disabled,
98
+ readonly: t.readonly,
99
+ "aria-invalid": t.error || void 0,
100
+ class: "cui-input__native",
101
+ onInput: z
102
+ }, null, 40, q),
103
+ w.value ? (u(), o("button", {
104
+ key: 1,
105
+ type: "button",
106
+ class: "cui-input__clear",
107
+ tabindex: "-1",
108
+ "aria-label": v(p).input.clear,
109
+ onClick: V
110
+ }, [
111
+ P(b, {
112
+ name: "x",
113
+ size: "0.75rem"
114
+ })
115
+ ], 8, F)) : a("", !0),
116
+ y.value ? (u(), o("button", {
117
+ key: 2,
118
+ type: "button",
119
+ class: "cui-input__password-toggle",
120
+ tabindex: "-1",
121
+ "aria-label": l.value ? v(p).input.hidePassword : v(p).input.showPassword,
122
+ onClick: s[0] || (s[0] = (O) => l.value = !l.value)
123
+ }, [
124
+ l.value ? (u(), h(b, {
125
+ key: 1,
126
+ name: "eye-slash",
127
+ size: "1rem"
128
+ })) : (u(), h(b, {
129
+ key: 0,
130
+ name: "eye",
131
+ size: "1rem"
132
+ }))
133
+ ], 8, G)) : a("", !0),
134
+ e.$slots.suffix ? (u(), o("span", H, [
135
+ d(e.$slots, "suffix", {}, void 0, !0)
136
+ ])) : a("", !0)
137
+ ]),
138
+ e.$slots["suffix-button"] ? (u(), o("div", J, [
139
+ d(e.$slots, "suffix-button", {}, void 0, !0)
140
+ ])) : a("", !0)
141
+ ], 6),
142
+ t.error && t.errorMessage ? (u(), o("div", K, R(t.errorMessage), 1)) : a("", !0)
143
+ ], 512)), [
144
+ [T, !t.hidden]
145
+ ]);
146
+ }
147
+ });
148
+ export {
149
+ ee as default
150
+ };
@@ -0,0 +1,189 @@
1
+ import { defineComponent as N, computed as u, useTemplateRef as y, withDirectives as A, openBlock as s, createElementBlock as c, normalizeStyle as r, toDisplayString as F, createCommentVNode as H, createVNode as a, withCtx as m, createElementVNode as W, vShow as T } from "vue";
2
+ import { clampSize as P } from "../utils/sizing.js";
3
+ import v from "./CuiButton.vue.js";
4
+ import b from "./CuiIcon.vue.js";
5
+ const L = ["value", "disabled"], O = ["value", "disabled"], G = /* @__PURE__ */ N({
6
+ __name: "CuiInputStepper",
7
+ props: {
8
+ modelValue: { default: 0 },
9
+ min: {},
10
+ max: {},
11
+ step: { default: 1 },
12
+ orientation: { default: "horizontal" },
13
+ label: {},
14
+ pad: {},
15
+ wrap: { type: Boolean, default: !1 },
16
+ hidden: { type: Boolean, default: !1 },
17
+ color: { default: "primary" },
18
+ size: { default: "md" },
19
+ disabled: { type: Boolean, default: !1 }
20
+ },
21
+ emits: ["update:modelValue"],
22
+ setup(t, { expose: R, emit: B }) {
23
+ const e = t, f = B, h = u(() => e.wrap || e.min === void 0 || e.modelValue - e.step >= e.min), p = u(() => e.wrap || e.max === void 0 || e.modelValue + e.step <= e.max);
24
+ function S() {
25
+ if (e.disabled || !h.value) return;
26
+ let i = Math.round((e.modelValue - e.step) * 1e10) / 1e10;
27
+ if (e.wrap && e.min !== void 0 && e.max !== void 0 && i < e.min) {
28
+ const n = e.max - e.min + 1;
29
+ i = e.min + Math.floor((n - 1) / e.step) * e.step;
30
+ } else e.min !== void 0 && (i = Math.max(i, e.min));
31
+ f("update:modelValue", i);
32
+ }
33
+ function V() {
34
+ if (e.disabled || !p.value) return;
35
+ let i = Math.round((e.modelValue + e.step) * 1e10) / 1e10;
36
+ e.wrap && e.min !== void 0 && e.max !== void 0 && i > e.max ? i = e.min : e.max !== void 0 && (i = Math.min(i, e.max)), f("update:modelValue", i);
37
+ }
38
+ const w = u(() => e.pad && e.pad > 0 ? String(e.modelValue).padStart(e.pad, "0") : String(e.modelValue)), k = u(() => e.orientation === "vertical");
39
+ function C(i) {
40
+ const n = i.target.value, l = parseFloat(n);
41
+ if (isNaN(l)) return;
42
+ let d = l;
43
+ e.min !== void 0 && (d = Math.max(d, e.min)), e.max !== void 0 && (d = Math.min(d, e.max)), f("update:modelValue", d);
44
+ }
45
+ const E = ["sm", "md", "lg"], I = {
46
+ sm: { height: "1.75rem", inputWidth: "2.5rem", font: "0.8125rem", buttonSize: "xs", iconSize: "0.75rem" },
47
+ md: { height: "2.25rem", inputWidth: "3rem", font: "0.875rem", buttonSize: "sm", iconSize: "0.875rem" },
48
+ lg: { height: "2.75rem", inputWidth: "3.5rem", font: "1rem", buttonSize: "md", iconSize: "1rem" }
49
+ }, o = u(() => I[P(e.size, E)]), g = y("rootEl"), z = y("inputH"), x = y("inputV");
50
+ function M(i) {
51
+ var l;
52
+ const n = z.value ?? x.value;
53
+ n ? n.focus(i) : (l = g.value) == null || l.focus(i);
54
+ }
55
+ function D() {
56
+ var i;
57
+ (i = z.value ?? x.value) == null || i.blur();
58
+ }
59
+ return R({ el: g, focus: M, blur: D }), (i, n) => A((s(), c("div", {
60
+ ref_key: "rootEl",
61
+ ref: g
62
+ }, [
63
+ t.label ? (s(), c("label", {
64
+ key: 0,
65
+ style: r({
66
+ display: "block",
67
+ marginBottom: "calc(0.25rem * var(--cui-density-scale, 1))",
68
+ fontWeight: "500",
69
+ color: "var(--cui-text-secondary)",
70
+ fontSize: o.value.font,
71
+ textAlign: k.value ? "center" : void 0
72
+ })
73
+ }, F(t.label), 5)) : H("", !0),
74
+ k.value ? (s(), c("div", {
75
+ key: 2,
76
+ style: r({
77
+ display: "inline-flex",
78
+ flexDirection: "column",
79
+ alignItems: "center",
80
+ borderRadius: "var(--cui-button-radius, 0.375rem)",
81
+ border: "1px solid var(--cui-border-strong, var(--cui-border))",
82
+ opacity: t.disabled ? "0.5" : "1",
83
+ overflow: "hidden"
84
+ })
85
+ }, [
86
+ a(v, {
87
+ variant: "ghost",
88
+ size: o.value.buttonSize,
89
+ disabled: t.disabled || !p.value,
90
+ color: t.color,
91
+ style: r({ border: "none", borderRadius: "0", width: "100%", minWidth: o.value.inputWidth }),
92
+ onClick: V
93
+ }, {
94
+ default: m(() => [
95
+ a(b, {
96
+ name: "caret-up",
97
+ size: o.value.iconSize
98
+ }, null, 8, ["size"])
99
+ ]),
100
+ _: 1
101
+ }, 8, ["size", "disabled", "color", "style"]),
102
+ W("input", {
103
+ ref_key: "inputV",
104
+ ref: x,
105
+ type: "text",
106
+ inputmode: "numeric",
107
+ value: w.value,
108
+ disabled: t.disabled,
109
+ style: r({ width: o.value.inputWidth, textAlign: "center", border: "none", borderTop: "1px solid var(--cui-border-strong, var(--cui-border))", borderBottom: "1px solid var(--cui-border-strong, var(--cui-border))", background: "var(--cui-surface-base, white)", color: "var(--cui-text-body)", fontSize: o.value.font, fontWeight: "600", outline: "none", padding: "calc(0.25rem * var(--cui-density-scale, 1)) 0", fontFamily: "inherit" }),
110
+ onInput: C
111
+ }, null, 44, O),
112
+ a(v, {
113
+ variant: "ghost",
114
+ size: o.value.buttonSize,
115
+ disabled: t.disabled || !h.value,
116
+ color: t.color,
117
+ style: { border: "none", borderRadius: "0", width: "100%" },
118
+ onClick: S
119
+ }, {
120
+ default: m(() => [
121
+ a(b, {
122
+ name: "caret-down",
123
+ size: o.value.iconSize
124
+ }, null, 8, ["size"])
125
+ ]),
126
+ _: 1
127
+ }, 8, ["size", "disabled", "color"])
128
+ ], 4)) : (s(), c("div", {
129
+ key: 1,
130
+ style: r({
131
+ display: "inline-flex",
132
+ alignItems: "center",
133
+ borderRadius: "var(--cui-button-radius, 0.375rem)",
134
+ border: "1px solid var(--cui-border-strong, var(--cui-border))",
135
+ opacity: t.disabled ? "0.5" : "1",
136
+ height: o.value.height
137
+ })
138
+ }, [
139
+ a(v, {
140
+ variant: "ghost",
141
+ size: o.value.buttonSize,
142
+ disabled: t.disabled || !h.value,
143
+ color: t.color,
144
+ style: { borderRadius: "var(--cui-button-radius, 0.375rem) 0 0 var(--cui-button-radius, 0.375rem)", border: "none", height: "100%" },
145
+ onClick: S
146
+ }, {
147
+ default: m(() => [
148
+ a(b, {
149
+ name: "minus",
150
+ size: o.value.iconSize
151
+ }, null, 8, ["size"])
152
+ ]),
153
+ _: 1
154
+ }, 8, ["size", "disabled", "color"]),
155
+ W("input", {
156
+ ref_key: "inputH",
157
+ ref: z,
158
+ type: "text",
159
+ inputmode: "numeric",
160
+ value: w.value,
161
+ disabled: t.disabled,
162
+ style: r({ width: o.value.inputWidth, height: "100%", textAlign: "center", border: "none", borderLeft: "1px solid var(--cui-border-strong, var(--cui-border))", borderRight: "1px solid var(--cui-border-strong, var(--cui-border))", background: "var(--cui-surface-base, white)", color: "var(--cui-text-body)", fontSize: o.value.font, fontWeight: "600", outline: "none", padding: "0", fontFamily: "inherit" }),
163
+ onInput: C
164
+ }, null, 44, L),
165
+ a(v, {
166
+ variant: "ghost",
167
+ size: o.value.buttonSize,
168
+ disabled: t.disabled || !p.value,
169
+ color: t.color,
170
+ style: { borderRadius: "0 var(--cui-button-radius, 0.375rem) var(--cui-button-radius, 0.375rem) 0", border: "none", height: "100%" },
171
+ onClick: V
172
+ }, {
173
+ default: m(() => [
174
+ a(b, {
175
+ name: "plus",
176
+ size: o.value.iconSize
177
+ }, null, 8, ["size"])
178
+ ]),
179
+ _: 1
180
+ }, 8, ["size", "disabled", "color"])
181
+ ], 4))
182
+ ], 512)), [
183
+ [T, !t.hidden]
184
+ ]);
185
+ }
186
+ });
187
+ export {
188
+ G as default
189
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./CuiInputStepper.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,44 @@
1
+ import { defineComponent as a, computed as m, withDirectives as s, openBlock as l, createElementBlock as c, normalizeStyle as p, renderSlot as u, vShow as f } from "vue";
2
+ import { clampSize as h, scaleDensity as e } from "../utils/sizing.js";
3
+ const b = /* @__PURE__ */ a({
4
+ __name: "CuiKbd",
5
+ props: {
6
+ hidden: { type: Boolean, default: !1 },
7
+ size: { default: "md" }
8
+ },
9
+ setup(r) {
10
+ const n = r, o = ["sm", "md", "lg"], i = {
11
+ sm: { fontSize: "0.6875rem", padding: `${e("0.0625rem")} ${e("0.3125rem")}`, minWidth: "1.125rem" },
12
+ md: { fontSize: "0.75rem", padding: `${e("0.125rem")} ${e("0.375rem")}`, minWidth: "1.375rem" },
13
+ lg: { fontSize: "0.8125rem", padding: `${e("0.1875rem")} ${e("0.4375rem")}`, minWidth: "1.5rem" }
14
+ }, t = m(() => h(n.size, o));
15
+ return (d, S) => s((l(), c("kbd", {
16
+ style: p({
17
+ display: "inline-flex",
18
+ alignItems: "center",
19
+ justifyContent: "center",
20
+ fontSize: i[t.value].fontSize,
21
+ padding: i[t.value].padding,
22
+ minWidth: i[t.value].minWidth,
23
+ fontFamily: "var(--cui-font-sans, system-ui, sans-serif)",
24
+ fontWeight: "500",
25
+ lineHeight: "1.4",
26
+ color: "var(--cui-text-secondary)",
27
+ background: "var(--cui-surface-base, white)",
28
+ border: "1px solid var(--cui-border)",
29
+ borderBottom: "2px solid var(--cui-border)",
30
+ borderRadius: "0.25rem",
31
+ boxShadow: "0 1px 0 var(--cui-border)",
32
+ whiteSpace: "nowrap",
33
+ verticalAlign: "middle"
34
+ })
35
+ }, [
36
+ u(d.$slots, "default")
37
+ ], 4)), [
38
+ [f, !r.hidden]
39
+ ]);
40
+ }
41
+ });
42
+ export {
43
+ b as default
44
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./CuiKbd.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -38,7 +38,7 @@ declare const __VLS_component: import("vue").DefineComponent<CuiMaskedInputProps
38
38
  $: import("vue").ComponentInternalInstance;
39
39
  $data: {};
40
40
  $props: {
41
- readonly modelValue?: string | undefined;
41
+ readonly modelValue?: string | number | undefined;
42
42
  readonly type?: import("./CuiInput.vue").InputType | undefined;
43
43
  readonly placeholder?: string | undefined;
44
44
  readonly clearable?: boolean | undefined;
@@ -51,7 +51,7 @@ declare const __VLS_component: import("vue").DefineComponent<CuiMaskedInputProps
51
51
  readonly size?: CuiSize | undefined;
52
52
  readonly disabled?: boolean | undefined;
53
53
  readonly onClear?: (() => any) | undefined;
54
- readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
54
+ readonly "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
55
55
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
56
56
  $attrs: import("vue").Attrs;
57
57
  $refs: {
@@ -63,18 +63,18 @@ declare const __VLS_component: import("vue").DefineComponent<CuiMaskedInputProps
63
63
  $root: import("vue").ComponentPublicInstance | null;
64
64
  $parent: import("vue").ComponentPublicInstance | null;
65
65
  $host: Element | null;
66
- $emit: ((event: "clear") => void) & ((event: "update:modelValue", value: string) => void);
66
+ $emit: ((event: "clear") => void) & ((event: "update:modelValue", value: string | number) => void);
67
67
  $el: any;
68
68
  $options: import("vue").ComponentOptionsBase<Readonly<import("./CuiInput.vue").CuiInputProps> & Readonly<{
69
69
  onClear?: (() => any) | undefined;
70
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
70
+ "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
71
71
  }>, {
72
72
  el: Readonly<import("vue").ShallowRef<HTMLInputElement | null>>;
73
73
  focus: (opts?: FocusOptions) => void;
74
74
  blur: () => void;
75
75
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
76
76
  clear: () => any;
77
- "update:modelValue": (value: string) => any;
77
+ "update:modelValue": (value: string | number) => any;
78
78
  }, string, {
79
79
  error: boolean;
80
80
  readonly: boolean;
@@ -84,7 +84,7 @@ declare const __VLS_component: import("vue").DefineComponent<CuiMaskedInputProps
84
84
  type: import("./CuiInput.vue").InputType;
85
85
  rounded: import("../index.js").CuiRounded;
86
86
  disabled: boolean;
87
- modelValue: string;
87
+ modelValue: string | number;
88
88
  clearable: boolean;
89
89
  }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
90
90
  beforeCreate?: (() => void) | (() => void)[];
@@ -115,11 +115,11 @@ declare const __VLS_component: import("vue").DefineComponent<CuiMaskedInputProps
115
115
  type: import("./CuiInput.vue").InputType;
116
116
  rounded: import("../index.js").CuiRounded;
117
117
  disabled: boolean;
118
- modelValue: string;
118
+ modelValue: string | number;
119
119
  clearable: boolean;
120
120
  }> & Omit<Readonly<import("./CuiInput.vue").CuiInputProps> & Readonly<{
121
121
  onClear?: (() => any) | undefined;
122
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
122
+ "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
123
123
  }>, "el" | "focus" | "blur" | ("error" | "readonly" | "hidden" | "size" | "color" | "type" | "rounded" | "disabled" | "modelValue" | "clearable")> & {
124
124
  el: HTMLInputElement | null;
125
125
  focus: (opts?: FocusOptions) => void;