@itguy614/clean-ui 1.2.2 → 1.3.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 (245) hide show
  1. package/README.md +12 -0
  2. package/dist/clean-ui.css +1 -1
  3. package/dist/components/CuiAccordion.vue.js +2 -2
  4. package/dist/components/CuiAlert.vue.d.ts +3 -5
  5. package/dist/components/CuiAlert.vue.d.ts.map +1 -1
  6. package/dist/components/CuiAlert.vue.js +1 -1
  7. package/dist/components/CuiAlert.vue2.js +54 -50
  8. package/dist/components/CuiBadge.vue.js +3 -3
  9. package/dist/components/CuiBadge.vue2.js +23 -23
  10. package/dist/components/CuiBanner.vue.d.ts +15 -10
  11. package/dist/components/CuiBanner.vue.d.ts.map +1 -1
  12. package/dist/components/CuiBanner.vue.js +5 -80
  13. package/dist/components/CuiBanner.vue2.js +90 -2
  14. package/dist/components/CuiButton.vue.d.ts +9 -0
  15. package/dist/components/CuiButton.vue.d.ts.map +1 -1
  16. package/dist/components/CuiButton.vue.js +1 -1
  17. package/dist/components/CuiButton.vue2.js +77 -83
  18. package/dist/components/CuiButtonGroup.vue.d.ts +4 -2
  19. package/dist/components/CuiButtonGroup.vue.d.ts.map +1 -1
  20. package/dist/components/CuiButtonGroup.vue.js +1 -1
  21. package/dist/components/CuiButtonGroup.vue2.js +18 -9
  22. package/dist/components/CuiCard.vue.d.ts.map +1 -1
  23. package/dist/components/CuiCard.vue.js +5 -33
  24. package/dist/components/CuiCard.vue2.js +32 -2
  25. package/dist/components/CuiCardBody.vue.d.ts.map +1 -1
  26. package/dist/components/CuiCardBody.vue.js +5 -18
  27. package/dist/components/CuiCardBody.vue2.js +18 -2
  28. package/dist/components/CuiCardFooter.vue.d.ts.map +1 -1
  29. package/dist/components/CuiCardFooter.vue.js +5 -30
  30. package/dist/components/CuiCardFooter.vue2.js +25 -2
  31. package/dist/components/CuiCardHeader.vue.d.ts +5 -4
  32. package/dist/components/CuiCardHeader.vue.d.ts.map +1 -1
  33. package/dist/components/CuiCardHeader.vue.js +5 -49
  34. package/dist/components/CuiCardHeader.vue2.js +40 -2
  35. package/dist/components/CuiCardMedia.vue.d.ts.map +1 -1
  36. package/dist/components/CuiCardMedia.vue.js +3 -3
  37. package/dist/components/CuiCardMedia.vue2.js +6 -6
  38. package/dist/components/CuiCheckbox.vue.d.ts +2 -2
  39. package/dist/components/CuiCheckbox.vue.d.ts.map +1 -1
  40. package/dist/components/CuiCheckbox.vue.js +1 -1
  41. package/dist/components/CuiCheckbox.vue2.js +46 -34
  42. package/dist/components/CuiCheckboxGroup.vue.d.ts +2 -2
  43. package/dist/components/CuiCheckboxGroup.vue.d.ts.map +1 -1
  44. package/dist/components/CuiCheckboxGroup.vue.js +2 -2
  45. package/dist/components/CuiCheckboxGroup.vue2.js +45 -35
  46. package/dist/components/CuiCodeBlock.vue.d.ts.map +1 -1
  47. package/dist/components/CuiCodeBlock.vue.js +14 -11
  48. package/dist/components/CuiColorPicker.vue.d.ts +2 -2
  49. package/dist/components/CuiColorPicker.vue.d.ts.map +1 -1
  50. package/dist/components/CuiColorPicker.vue.js +117 -104
  51. package/dist/components/CuiCombobox.vue.d.ts +2 -2
  52. package/dist/components/CuiCombobox.vue.d.ts.map +1 -1
  53. package/dist/components/CuiCombobox.vue.js +5 -330
  54. package/dist/components/CuiCombobox.vue2.js +330 -2
  55. package/dist/components/CuiConfirmDialog.vue.d.ts +5 -4
  56. package/dist/components/CuiConfirmDialog.vue.d.ts.map +1 -1
  57. package/dist/components/CuiConfirmDialog.vue.js +84 -73
  58. package/dist/components/CuiContextMenu.vue.d.ts +40 -1
  59. package/dist/components/CuiContextMenu.vue.d.ts.map +1 -1
  60. package/dist/components/CuiContextMenu.vue.js +1 -1
  61. package/dist/components/CuiContextMenu.vue2.js +149 -91
  62. package/dist/components/CuiCopyButton.vue.d.ts.map +1 -1
  63. package/dist/components/CuiCopyButton.vue.js +5 -61
  64. package/dist/components/CuiCopyButton.vue2.js +68 -2
  65. package/dist/components/CuiDataGridCardView.vue.d.ts.map +1 -1
  66. package/dist/components/CuiDataGridCardView.vue.js +10 -9
  67. package/dist/components/CuiDataGridColumnManager.vue.d.ts.map +1 -1
  68. package/dist/components/CuiDataGridColumnManager.vue.js +12 -11
  69. package/dist/components/CuiDataGridPagination.vue.d.ts.map +1 -1
  70. package/dist/components/CuiDataGridPagination.vue.js +9 -8
  71. package/dist/components/CuiDataGridSearch.vue.d.ts.map +1 -1
  72. package/dist/components/CuiDataGridSearch.vue.js +12 -9
  73. package/dist/components/CuiDataGridTable.vue.d.ts.map +1 -1
  74. package/dist/components/CuiDataGridTable.vue.js +213 -190
  75. package/dist/components/CuiDataGridViewManager.vue.d.ts.map +1 -1
  76. package/dist/components/CuiDataGridViewManager.vue.js +21 -20
  77. package/dist/components/CuiDatePicker.vue.d.ts +2 -2
  78. package/dist/components/CuiDatePicker.vue.d.ts.map +1 -1
  79. package/dist/components/CuiDatePicker.vue.js +257 -173
  80. package/dist/components/CuiDateRangePicker.vue.d.ts +2 -2
  81. package/dist/components/CuiDateRangePicker.vue.d.ts.map +1 -1
  82. package/dist/components/CuiDateRangePicker.vue.js +262 -179
  83. package/dist/components/CuiDivider.vue.d.ts +1 -3
  84. package/dist/components/CuiDivider.vue.d.ts.map +1 -1
  85. package/dist/components/CuiDivider.vue.js +47 -59
  86. package/dist/components/CuiDropdownMenu.vue.js +2 -2
  87. package/dist/components/CuiDropdownRadioGroup.vue.d.ts +4 -1
  88. package/dist/components/CuiDropdownRadioGroup.vue.d.ts.map +1 -1
  89. package/dist/components/CuiDropdownRadioGroup.vue.js +27 -14
  90. package/dist/components/CuiDropdownSub.vue.js +2 -2
  91. package/dist/components/CuiEmptyState.vue.d.ts +5 -4
  92. package/dist/components/CuiEmptyState.vue.d.ts.map +1 -1
  93. package/dist/components/CuiEmptyState.vue.js +1 -1
  94. package/dist/components/CuiEmptyState.vue2.js +30 -24
  95. package/dist/components/CuiFieldset.vue.d.ts.map +1 -1
  96. package/dist/components/CuiFieldset.vue.js +1 -1
  97. package/dist/components/CuiFieldset.vue2.js +21 -21
  98. package/dist/components/CuiFileUpload.vue.d.ts +2 -2
  99. package/dist/components/CuiFileUpload.vue.d.ts.map +1 -1
  100. package/dist/components/CuiFileUpload.vue.js +70 -57
  101. package/dist/components/CuiFormField.vue.d.ts.map +1 -1
  102. package/dist/components/CuiFormField.vue.js +2 -2
  103. package/dist/components/CuiFormField.vue2.js +48 -42
  104. package/dist/components/CuiInput.vue.d.ts +2 -2
  105. package/dist/components/CuiInput.vue.d.ts.map +1 -1
  106. package/dist/components/CuiInput.vue.js +1 -1
  107. package/dist/components/CuiInput.vue2.js +97 -85
  108. package/dist/components/CuiInputStepper.vue.d.ts +2 -2
  109. package/dist/components/CuiInputStepper.vue.d.ts.map +1 -1
  110. package/dist/components/CuiInputStepper.vue.js +5 -187
  111. package/dist/components/CuiInputStepper.vue2.js +237 -2
  112. package/dist/components/CuiKbd.vue.d.ts.map +1 -1
  113. package/dist/components/CuiKbd.vue.js +6 -5
  114. package/dist/components/CuiMaskedInput.vue.d.ts +9 -3
  115. package/dist/components/CuiMaskedInput.vue.d.ts.map +1 -1
  116. package/dist/components/CuiMaskedInput.vue.js +132 -117
  117. package/dist/components/CuiModal.vue.d.ts +10 -2
  118. package/dist/components/CuiModal.vue.d.ts.map +1 -1
  119. package/dist/components/CuiModal.vue.js +2 -2
  120. package/dist/components/CuiModal.vue2.js +48 -44
  121. package/dist/components/CuiModalBody.vue.d.ts.map +1 -1
  122. package/dist/components/CuiModalBody.vue.js +16 -13
  123. package/dist/components/CuiModalFooter.vue.d.ts.map +1 -1
  124. package/dist/components/CuiModalFooter.vue.js +3 -2
  125. package/dist/components/CuiModalHeader.vue.d.ts +13 -4
  126. package/dist/components/CuiModalHeader.vue.d.ts.map +1 -1
  127. package/dist/components/CuiModalHeader.vue.js +54 -42
  128. package/dist/components/CuiPagination.vue.d.ts.map +1 -1
  129. package/dist/components/CuiPagination.vue.js +1 -1
  130. package/dist/components/CuiPagination.vue2.js +28 -25
  131. package/dist/components/CuiPopover.vue.d.ts.map +1 -1
  132. package/dist/components/CuiPopover.vue.js +80 -72
  133. package/dist/components/CuiRadio.vue.d.ts +2 -4
  134. package/dist/components/CuiRadio.vue.d.ts.map +1 -1
  135. package/dist/components/CuiRadio.vue.js +2 -2
  136. package/dist/components/CuiRadio.vue2.js +88 -74
  137. package/dist/components/CuiRadioGroup.vue.d.ts +2 -2
  138. package/dist/components/CuiRadioGroup.vue.d.ts.map +1 -1
  139. package/dist/components/CuiRadioGroup.vue.js +3 -3
  140. package/dist/components/CuiRadioGroup.vue2.js +47 -37
  141. package/dist/components/CuiRating.vue.d.ts.map +1 -1
  142. package/dist/components/CuiRating.vue.js +15 -14
  143. package/dist/components/CuiResizablePanels.vue.d.ts.map +1 -1
  144. package/dist/components/CuiResizablePanels.vue.js +10 -9
  145. package/dist/components/CuiSelect.vue.d.ts +2 -2
  146. package/dist/components/CuiSelect.vue.d.ts.map +1 -1
  147. package/dist/components/CuiSelect.vue.js +2 -2
  148. package/dist/components/CuiSelect.vue2.js +161 -151
  149. package/dist/components/CuiSkeleton.vue.js +2 -2
  150. package/dist/components/CuiSkeleton.vue2.js +10 -10
  151. package/dist/components/CuiSlideover.vue.d.ts +2 -2
  152. package/dist/components/CuiSlideover.vue.d.ts.map +1 -1
  153. package/dist/components/CuiSlideover.vue.js +34 -30
  154. package/dist/components/CuiSlider.vue.d.ts +2 -2
  155. package/dist/components/CuiSlider.vue.d.ts.map +1 -1
  156. package/dist/components/CuiSlider.vue.js +5 -154
  157. package/dist/components/CuiSlider.vue2.js +171 -2
  158. package/dist/components/CuiSpinner.vue.d.ts.map +1 -1
  159. package/dist/components/CuiSpinner.vue.js +5 -4
  160. package/dist/components/CuiTable.vue.d.ts.map +1 -1
  161. package/dist/components/CuiTable.vue.js +4 -1
  162. package/dist/components/CuiTableBody.vue.d.ts.map +1 -1
  163. package/dist/components/CuiTableBody.vue.js +6 -6
  164. package/dist/components/CuiTableCell.vue.d.ts.map +1 -1
  165. package/dist/components/CuiTableCell.vue.js +11 -10
  166. package/dist/components/CuiTableFoot.vue.d.ts.map +1 -1
  167. package/dist/components/CuiTableFoot.vue.js +7 -7
  168. package/dist/components/CuiTableHead.vue.d.ts.map +1 -1
  169. package/dist/components/CuiTableHead.vue.js +7 -7
  170. package/dist/components/CuiTabs.vue.d.ts.map +1 -1
  171. package/dist/components/CuiTabs.vue.js +2 -2
  172. package/dist/components/CuiTabs.vue2.js +81 -76
  173. package/dist/components/CuiTagInput.vue.d.ts +2 -2
  174. package/dist/components/CuiTagInput.vue.d.ts.map +1 -1
  175. package/dist/components/CuiTagInput.vue.js +5 -294
  176. package/dist/components/CuiTagInput.vue2.js +276 -2
  177. package/dist/components/CuiTextarea.vue.d.ts +2 -2
  178. package/dist/components/CuiTextarea.vue.d.ts.map +1 -1
  179. package/dist/components/CuiTextarea.vue.js +4 -4
  180. package/dist/components/CuiTextarea.vue2.js +73 -59
  181. package/dist/components/CuiTimePicker.vue.d.ts +2 -2
  182. package/dist/components/CuiTimePicker.vue.d.ts.map +1 -1
  183. package/dist/components/CuiTimePicker.vue.js +172 -97
  184. package/dist/components/CuiTimeline.vue.d.ts.map +1 -1
  185. package/dist/components/CuiTimeline.vue.js +6 -5
  186. package/dist/components/CuiTimelineItem.vue.d.ts.map +1 -1
  187. package/dist/components/CuiTimelineItem.vue.js +11 -10
  188. package/dist/components/CuiToast.vue.d.ts +8 -10
  189. package/dist/components/CuiToast.vue.d.ts.map +1 -1
  190. package/dist/components/CuiToast.vue.js +2 -2
  191. package/dist/components/CuiToast.vue2.js +69 -67
  192. package/dist/components/CuiToggle.vue.d.ts +2 -2
  193. package/dist/components/CuiToggle.vue.d.ts.map +1 -1
  194. package/dist/components/CuiToggle.vue.js +2 -2
  195. package/dist/components/CuiToggle.vue2.js +71 -59
  196. package/dist/components/CuiToggleGroup.vue.d.ts +2 -2
  197. package/dist/components/CuiToggleGroup.vue.d.ts.map +1 -1
  198. package/dist/components/CuiToggleGroup.vue.js +2 -2
  199. package/dist/components/CuiToggleGroup.vue2.js +45 -35
  200. package/dist/components/CuiTooltip.vue.d.ts.map +1 -1
  201. package/dist/components/CuiTooltip.vue.js +2 -2
  202. package/dist/components/CuiTooltip.vue2.js +49 -45
  203. package/dist/components/CuiTransferList.vue.d.ts.map +1 -1
  204. package/dist/components/CuiTransferList.vue.js +31 -30
  205. package/dist/components/CuiTreeNode.vue.d.ts +9 -2
  206. package/dist/components/CuiTreeNode.vue.d.ts.map +1 -1
  207. package/dist/components/CuiTreeNode.vue.js +5 -179
  208. package/dist/components/CuiTreeNode.vue2.js +198 -2
  209. package/dist/components/CuiTreeView.vue.d.ts +33 -5
  210. package/dist/components/CuiTreeView.vue.d.ts.map +1 -1
  211. package/dist/components/CuiTreeView.vue.js +187 -44
  212. package/dist/composables/useCalendarKeyboard.d.ts +48 -0
  213. package/dist/composables/useCalendarKeyboard.d.ts.map +1 -0
  214. package/dist/composables/useCalendarKeyboard.js +91 -0
  215. package/dist/composables/useFieldDescribedBy.d.ts +30 -0
  216. package/dist/composables/useFieldDescribedBy.d.ts.map +1 -0
  217. package/dist/composables/useFieldDescribedBy.js +11 -0
  218. package/dist/composables/useMessages.d.ts.map +1 -1
  219. package/dist/composables/useMessages.js +6 -6
  220. package/dist/composables/usePopover.d.ts.map +1 -1
  221. package/dist/composables/usePopover.js +10 -0
  222. package/dist/composables/useScrollShadows.d.ts +3 -0
  223. package/dist/composables/useScrollShadows.d.ts.map +1 -1
  224. package/dist/composables/useScrollShadows.js +15 -12
  225. package/dist/icons/builtin.d.ts.map +1 -1
  226. package/dist/icons/builtin.js +38 -37
  227. package/dist/index.d.ts +3 -2
  228. package/dist/index.d.ts.map +1 -1
  229. package/dist/index.js +185 -182
  230. package/dist/messages.d.ts +39 -4
  231. package/dist/messages.d.ts.map +1 -1
  232. package/dist/messages.js +8 -7
  233. package/dist/types/common.d.ts +90 -0
  234. package/dist/types/common.d.ts.map +1 -1
  235. package/dist/utils/colorIconMap.d.ts +47 -3
  236. package/dist/utils/colorIconMap.d.ts.map +1 -1
  237. package/dist/utils/colorIconMap.js +20 -5
  238. package/dist/utils/date.d.ts +13 -0
  239. package/dist/utils/date.d.ts.map +1 -1
  240. package/dist/utils/date.js +46 -40
  241. package/dist/utils/sizing.d.ts +26 -1
  242. package/dist/utils/sizing.d.ts.map +1 -1
  243. package/dist/utils/sizing.js +22 -21
  244. package/dist/version.js +1 -1
  245. package/package.json +1 -1
@@ -1,9 +1,9 @@
1
- import { defineComponent as z, useTemplateRef as S, computed as i, openBlock as a, createBlock as N, Teleport as I, unref as o, withDirectives as O, createElementBlock as u, createVNode as n, createElementVNode as $, normalizeStyle as D, Fragment as E, withCtx as V, renderSlot as p, vShow as M, createCommentVNode as R } from "vue";
2
- import { useOverlay as G } from "../composables/useOverlay.js";
3
- import H from "./CuiBackdrop.vue.js";
4
- import K from "./CuiModalHeader.vue.js";
5
- import T from "./CuiModalBody.vue.js";
6
- const X = ["aria-labelledby"], j = /* @__PURE__ */ z({
1
+ import { defineComponent as z, useTemplateRef as S, computed as i, openBlock as a, createBlock as N, Teleport as I, unref as o, withDirectives as O, createElementBlock as p, createVNode as n, createElementVNode as $, normalizeStyle as D, Fragment as E, withCtx as V, renderSlot as v, vShow as A, createCommentVNode as M } from "vue";
2
+ import { useOverlay as R } from "../composables/useOverlay.js";
3
+ import G from "./CuiBackdrop.vue.js";
4
+ import H from "./CuiModalHeader.vue.js";
5
+ import K from "./CuiModalBody.vue.js";
6
+ const T = ["aria-labelledby"], j = /* @__PURE__ */ z({
7
7
  __name: "CuiSlideover",
8
8
  props: {
9
9
  visible: { type: Boolean, default: !1 },
@@ -18,19 +18,20 @@ const X = ["aria-labelledby"], j = /* @__PURE__ */ z({
18
18
  backdropColor: { default: "black" },
19
19
  backdropImage: {},
20
20
  backdropGradient: {},
21
- hidden: { type: Boolean, default: !1 }
21
+ hidden: { type: Boolean, default: !1 },
22
+ titleAs: {}
22
23
  },
23
24
  emits: ["update:visible", "close"],
24
25
  setup(l, { emit: b }) {
25
- const t = l, s = b, v = S("panelEl"), { isVisible: h, isAnimating: r, closeOverlay: y, onBackdropClick: g, onKeydown: d } = G({
26
+ const t = l, s = b, h = S("panelEl"), { isVisible: y, isAnimating: r, closeOverlay: g, onBackdropClick: k, onKeydown: d } = R({
26
27
  open: () => t.visible,
27
- dialogRef: v,
28
+ dialogRef: h,
28
29
  persistent: () => t.persistent,
29
30
  allowNested: () => t.allowNested,
30
31
  animationDuration: 250,
31
32
  onUpdateOpen: (e) => s("update:visible", e),
32
33
  onClose: () => s("close")
33
- }), c = i(() => t.side === "left" || t.side === "right"), k = {
34
+ }), c = i(() => t.side === "left" || t.side === "right"), w = {
34
35
  sm: "20rem",
35
36
  // 320px
36
37
  md: "28rem",
@@ -40,13 +41,13 @@ const X = ["aria-labelledby"], j = /* @__PURE__ */ z({
40
41
  xl: "48rem",
41
42
  // 768px
42
43
  full: "100vw"
43
- }, w = {
44
+ }, C = {
44
45
  sm: "25vh",
45
46
  md: "40vh",
46
47
  lg: "60vh",
47
48
  xl: "80vh",
48
49
  full: "100vh"
49
- }, f = i(() => (c.value ? k : w)[t.size] ?? t.size), C = i(() => {
50
+ }, f = i(() => (c.value ? w : C)[t.size] ?? t.size), x = i(() => {
50
51
  const e = {
51
52
  position: "absolute",
52
53
  zIndex: "2",
@@ -59,48 +60,51 @@ const X = ["aria-labelledby"], j = /* @__PURE__ */ z({
59
60
  transition: "transform 0.25s ease"
60
61
  };
61
62
  return c.value ? (e.width = f.value, e.maxWidth = t.size === "full" ? "100vw" : "calc(100vw - 2rem)", e.top = "0", e.height = "100%") : (e.height = f.value, e.maxHeight = t.size === "full" ? "100vh" : "calc(100vh - 2rem)", e.left = "0", e.width = "100%"), t.side === "right" ? e.right = "0" : t.side === "left" ? e.left = "0" : t.side === "top" ? e.top = "0" : t.side === "bottom" && (e.bottom = "0"), r.value ? e.transform = "translate(0)" : t.side === "right" ? e.transform = "translateX(100%)" : t.side === "left" ? e.transform = "translateX(-100%)" : t.side === "top" ? e.transform = "translateY(-100%)" : t.side === "bottom" && (e.transform = "translateY(100%)"), e;
62
- }), x = `cui-slideover-title-${Math.random().toString(36).slice(2, 8)}`;
63
- return (e, m) => (a(), N(I, { to: "body" }, [
64
- o(h) ? O((a(), u("div", {
63
+ }), m = `cui-slideover-title-${Math.random().toString(36).slice(2, 8)}`;
64
+ return (e, u) => (a(), N(I, { to: "body" }, [
65
+ o(y) ? O((a(), p("div", {
65
66
  key: 0,
67
+ class: "cui-slideover-overlay",
66
68
  style: { position: "fixed", inset: "0", zIndex: "9990" },
67
- onKeydown: m[0] || (m[0] = //@ts-ignore
69
+ onKeydown: u[0] || (u[0] = //@ts-ignore
68
70
  (...B) => o(d) && o(d)(...B))
69
71
  }, [
70
- n(H, {
72
+ n(G, {
71
73
  visible: o(r),
72
74
  opacity: l.backdropOpacity,
73
75
  blur: l.backdropBlur,
74
76
  color: l.backdropColor,
75
77
  image: l.backdropImage,
76
78
  gradient: l.backdropGradient,
77
- onClick: o(g)
79
+ onClick: o(k)
78
80
  }, null, 8, ["visible", "opacity", "blur", "color", "image", "gradient", "onClick"]),
79
81
  $("div", {
80
82
  ref: "panelEl",
81
- style: D(C.value),
83
+ style: D(x.value),
82
84
  role: "dialog",
83
85
  "aria-modal": "true",
84
- "aria-labelledby": l.title ? x : void 0,
86
+ "aria-labelledby": l.title ? m : void 0,
85
87
  tabindex: "-1"
86
88
  }, [
87
- l.title ? (a(), u(E, { key: 0 }, [
88
- n(K, {
89
+ l.title ? (a(), p(E, { key: 0 }, [
90
+ n(H, {
89
91
  title: l.title,
92
+ "title-as": l.titleAs,
93
+ "title-id": m,
90
94
  "no-close-button": l.noCloseButton,
91
- onClose: o(y)
92
- }, null, 8, ["title", "no-close-button", "onClose"]),
93
- n(T, null, {
95
+ onClose: o(g)
96
+ }, null, 8, ["title", "title-as", "no-close-button", "onClose"]),
97
+ n(K, null, {
94
98
  default: V(() => [
95
- p(e.$slots, "default")
99
+ v(e.$slots, "default")
96
100
  ]),
97
101
  _: 3
98
102
  })
99
- ], 64)) : p(e.$slots, "default", {}, void 0, void 0, 1)
100
- ], 12, X)
103
+ ], 64)) : v(e.$slots, "default", {}, void 0, void 0, 1)
104
+ ], 12, T)
101
105
  ], 544)), [
102
- [M, !l.hidden]
103
- ]) : R("", !0)
106
+ [A, !l.hidden]
107
+ ]) : M("", !0)
104
108
  ]));
105
109
  }
106
110
  });
@@ -1,5 +1,5 @@
1
- import type { CuiColor, CuiSize, HideableProps, ColorableProps, SizeableProps, DisableableProps } from "../types/common";
2
- export interface CuiSliderProps extends HideableProps, ColorableProps, SizeableProps, DisableableProps {
1
+ import type { CuiColor, CuiSize, HideableProps, ColorableProps, SizeableProps, DisableableProps, NativeControlProps } from "../types/common";
2
+ export interface CuiSliderProps extends NativeControlProps, HideableProps, ColorableProps, SizeableProps, DisableableProps {
3
3
  /** Current value */
4
4
  modelValue?: number;
5
5
  /** Minimum value */
@@ -1 +1 @@
1
- {"version":3,"file":"CuiSlider.vue.d.ts","sourceRoot":"","sources":["../../src/components/CuiSlider.vue"],"names":[],"mappings":"AAgMA,OAAO,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAIzH,MAAM,WAAW,cAAe,SAAQ,aAAa,EAAE,cAAc,EAAE,aAAa,EAAE,gBAAgB;IACpG,oBAAoB;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oBAAoB;IACpB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,oBAAoB;IACpB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,qBAAqB;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iBAAiB;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,6BAA6B;IAC7B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,0CAA0C;IAC1C,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACxC,0CAA0C;IAC1C,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,4DAA4D;IAC5D,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAkDD,iBAAS,KAAK,CAAC,IAAI,CAAC,EAAE,YAAY,QAEjC;AAED,iBAAS,IAAI,SAEZ;AAuJD,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AA8B7C,QAAA,MAAM,eAAe;;;;;;;;;;;;;gBAhQN,MAAM;SAIb,MAAM;UAEL,MAAM;SAJP,MAAM;eAQA,OAAO;eAIP,OAAO;6EA2PnB,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":"CuiSlider.vue.d.ts","sourceRoot":"","sources":["../../src/components/CuiSlider.vue"],"names":[],"mappings":"AA0NA,OAAO,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,aAAa,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAI7I,MAAM,WAAW,cAAe,SAAQ,kBAAkB,EAAE,aAAa,EAAE,cAAc,EAAE,aAAa,EAAE,gBAAgB;IACxH,oBAAoB;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oBAAoB;IACpB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,oBAAoB;IACpB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,qBAAqB;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iBAAiB;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,6BAA6B;IAC7B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,0CAA0C;IAC1C,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACxC,0CAA0C;IAC1C,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,4DAA4D;IAC5D,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAuDD,iBAAS,KAAK,CAAC,IAAI,CAAC,EAAE,YAAY,QAEjC;AAED,iBAAS,IAAI,SAEZ;AA0KD,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AA+B7C,QAAA,MAAM,eAAe;;;;;;;;;;;;;gBAzRN,MAAM;SAIb,MAAM;UAEL,MAAM;SAJP,MAAM;eAQA,OAAO;eAIP,OAAO;6EAoRnB,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,156 +1,7 @@
1
- import { defineComponent as F, computed as s, ref as $, useTemplateRef as C, withDirectives as R, openBlock as r, createElementBlock as m, normalizeStyle as n, toDisplayString as c, createCommentVNode as d, createElementVNode as u, renderSlot as B, createBlock as E, vShow as H } from "vue";
2
- import { clampSize as T } from "../utils/sizing.js";
3
- import j from "./CuiIcon.vue.js";
4
- const D = {
5
- key: 0,
6
- style: { display: "flex", "justify-content": "space-between", "align-items": "baseline", "margin-bottom": "calc(0.375rem * var(--cui-density-scale, 1))" }
7
- }, N = ["value", "min", "max", "step", "disabled"], M = {
8
- key: 1,
9
- style: { display: "flex", "justify-content": "space-between", "margin-top": "calc(0.25rem * var(--cui-density-scale, 1))" }
10
- }, U = /* @__PURE__ */ F({
11
- __name: "CuiSlider",
12
- props: {
13
- modelValue: { default: 0 },
14
- min: { default: 0 },
15
- max: { default: 100 },
16
- step: { default: 1 },
17
- label: {},
18
- showValue: { type: Boolean, default: !1 },
19
- formatValue: {},
20
- showRange: { type: Boolean, default: !1 },
21
- thumbIcon: {},
22
- hidden: { type: Boolean, default: !1 },
23
- color: { default: "primary" },
24
- size: { default: "md" },
25
- disabled: { type: Boolean, default: !1 }
26
- },
27
- emits: ["update:modelValue"],
28
- setup(e, { expose: h, emit: y }) {
29
- const t = e, g = y, b = s(
30
- () => (t.modelValue - t.min) / (t.max - t.min) * 100
31
- ), x = s(
32
- () => t.formatValue ? t.formatValue(t.modelValue) : String(t.modelValue)
33
- ), i = $(!1);
34
- function p(o) {
35
- const a = parseFloat(o.target.value);
36
- g("update:modelValue", a);
37
- }
38
- const S = ["sm", "md", "lg"], V = {
39
- sm: { trackHeight: "4px", thumbSize: "16px", thumbIcon: "0.5rem", labelFont: "0.8125rem", valueFont: "0.75rem" },
40
- md: { trackHeight: "6px", thumbSize: "20px", thumbIcon: "0.625rem", labelFont: "0.875rem", valueFont: "0.8125rem" },
41
- lg: { trackHeight: "8px", thumbSize: "26px", thumbIcon: "0.75rem", labelFont: "1rem", valueFont: "0.875rem" }
42
- }, l = s(() => V[T(t.size, S)]), z = s(() => t.disabled ? "var(--cui-text-tertiary)" : `var(--cui-${t.color})`), w = s(() => t.disabled ? "var(--cui-text-tertiary)" : `var(--cui-${t.color})`), f = C("inputEl");
43
- function k(o) {
44
- var a;
45
- (a = f.value) == null || a.focus(o);
46
- }
47
- function I() {
48
- var o;
49
- (o = f.value) == null || o.blur();
50
- }
51
- return h({ el: f, focus: k, blur: I }), (o, a) => R((r(), m("div", {
52
- style: n({ opacity: e.disabled ? 0.5 : 1 })
53
- }, [
54
- e.label || e.showValue ? (r(), m("div", D, [
55
- e.label ? (r(), m("label", {
56
- key: 0,
57
- style: n({ fontSize: l.value.labelFont, fontWeight: "500", color: "var(--cui-text-secondary)" })
58
- }, c(e.label), 5)) : d("", !0),
59
- e.showValue ? (r(), m("span", {
60
- key: 1,
61
- style: n({ fontSize: l.value.valueFont, fontWeight: "600", color: "var(--cui-text-body)", fontVariantNumeric: "tabular-nums" })
62
- }, c(x.value), 5)) : d("", !0)
63
- ])) : d("", !0),
64
- u("div", {
65
- style: n({ position: "relative", height: l.value.thumbSize, display: "flex", alignItems: "center" })
66
- }, [
67
- u("div", {
68
- style: n({
69
- position: "absolute",
70
- left: "0",
71
- right: "0",
72
- height: l.value.trackHeight,
73
- borderRadius: "9999px",
74
- background: "var(--cui-border)"
75
- })
76
- }, null, 4),
77
- u("div", {
78
- style: n({
79
- position: "absolute",
80
- left: "0",
81
- height: l.value.trackHeight,
82
- width: `${b.value}%`,
83
- borderRadius: "9999px",
84
- background: w.value,
85
- transition: i.value ? "none" : "width 0.1s ease"
86
- })
87
- }, null, 4),
88
- u("div", {
89
- style: n({
90
- position: "absolute",
91
- left: `${b.value}%`,
92
- transform: "translateX(-50%)",
93
- width: l.value.thumbSize,
94
- height: l.value.thumbSize,
95
- borderRadius: "50%",
96
- background: z.value,
97
- border: "2px solid var(--cui-surface-base, white)",
98
- boxShadow: i.value ? "0 2px 8px rgba(0,0,0,0.25)" : "0 1px 3px rgba(0,0,0,0.15)",
99
- display: "flex",
100
- alignItems: "center",
101
- justifyContent: "center",
102
- color: "var(--cui-surface-base, white)",
103
- transition: i.value ? "none" : "left 0.1s ease, box-shadow 0.15s ease, transform 0.15s ease",
104
- pointerEvents: "none",
105
- zIndex: 2
106
- })
107
- }, [
108
- B(o.$slots, "thumb", {}, () => [
109
- e.thumbIcon ? (r(), E(j, {
110
- key: 0,
111
- name: e.thumbIcon,
112
- size: l.value.thumbIcon
113
- }, null, 8, ["name", "size"])) : d("", !0)
114
- ])
115
- ], 4),
116
- u("input", {
117
- ref: "inputEl",
118
- type: "range",
119
- value: e.modelValue,
120
- min: e.min,
121
- max: e.max,
122
- step: e.step,
123
- disabled: e.disabled,
124
- style: n({
125
- position: "absolute",
126
- left: "0",
127
- width: "100%",
128
- height: "100%",
129
- margin: "0",
130
- opacity: "0",
131
- cursor: e.disabled ? "default" : "pointer",
132
- zIndex: 3
133
- }),
134
- onInput: p,
135
- onMousedown: a[0] || (a[0] = (v) => i.value = !0),
136
- onMouseup: a[1] || (a[1] = (v) => i.value = !1),
137
- onTouchstart: a[2] || (a[2] = (v) => i.value = !0),
138
- onTouchend: a[3] || (a[3] = (v) => i.value = !1)
139
- }, null, 44, N)
140
- ], 4),
141
- e.showRange ? (r(), m("div", M, [
142
- u("span", {
143
- style: n({ fontSize: l.value.valueFont, color: "var(--cui-text-tertiary)" })
144
- }, c(e.formatValue ? e.formatValue(e.min) : e.min), 5),
145
- u("span", {
146
- style: n({ fontSize: l.value.valueFont, color: "var(--cui-text-tertiary)" })
147
- }, c(e.formatValue ? e.formatValue(e.max) : e.max), 5)
148
- ])) : d("", !0)
149
- ], 4)), [
150
- [H, !e.hidden]
151
- ]);
152
- }
153
- });
1
+ import o from "./CuiSlider.vue2.js";
2
+ /* empty css */
3
+ import r from "../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-c846e888"]]);
154
5
  export {
155
- U as default
6
+ m as default
156
7
  };
@@ -1,4 +1,173 @@
1
- import f from "./CuiSlider.vue.js";
1
+ import { defineComponent as R, computed as r, ref as B, useId as C, useTemplateRef as E, withDirectives as D, openBlock as s, createElementBlock as d, normalizeStyle as i, toDisplayString as c, createCommentVNode as m, createElementVNode as n, renderSlot as H, createBlock as q, vShow as T } from "vue";
2
+ import { clampSize as j } from "../utils/sizing.js";
3
+ import N from "./CuiIcon.vue.js";
4
+ const L = {
5
+ key: 0,
6
+ style: { display: "flex", "justify-content": "space-between", "align-items": "baseline", "margin-bottom": "calc(0.375rem * var(--cui-density-scale, 1))" }
7
+ }, M = ["for"], P = ["id", "name", "autocomplete", "aria-describedby", "aria-required", "aria-labelledby", "aria-valuetext", "value", "min", "max", "step", "disabled"], W = {
8
+ key: 1,
9
+ style: { display: "flex", "justify-content": "space-between", "margin-top": "calc(0.25rem * var(--cui-density-scale, 1))" }
10
+ }, Z = /* @__PURE__ */ R({
11
+ __name: "CuiSlider",
12
+ props: {
13
+ modelValue: { default: 0 },
14
+ min: { default: 0 },
15
+ max: { default: 100 },
16
+ step: { default: 1 },
17
+ label: {},
18
+ showValue: { type: Boolean, default: !1 },
19
+ formatValue: {},
20
+ showRange: { type: Boolean, default: !1 },
21
+ thumbIcon: {},
22
+ name: {},
23
+ autocomplete: {},
24
+ id: {},
25
+ ariaDescribedby: {},
26
+ ariaLabelledby: {},
27
+ ariaRequired: { type: Boolean },
28
+ hidden: { type: Boolean, default: !1 },
29
+ color: { default: "primary" },
30
+ size: { default: "md" },
31
+ disabled: { type: Boolean, default: !1 }
32
+ },
33
+ emits: ["update:modelValue"],
34
+ setup(e, { expose: g, emit: x }) {
35
+ const t = e, V = x, v = r(
36
+ () => (t.modelValue - t.min) / (t.max - t.min) * 100
37
+ ), y = r(
38
+ () => t.formatValue ? t.formatValue(t.modelValue) : String(t.modelValue)
39
+ ), o = B(!1), S = `cui-slider-${C()}`, h = r(() => t.id || S);
40
+ function z(u) {
41
+ const a = parseFloat(u.target.value);
42
+ V("update:modelValue", a);
43
+ }
44
+ const w = ["sm", "md", "lg"], I = {
45
+ sm: { trackHeight: "4px", thumbSize: "16px", thumbIcon: "0.5rem", labelFont: "0.8125rem", valueFont: "0.75rem" },
46
+ md: { trackHeight: "6px", thumbSize: "20px", thumbIcon: "0.625rem", labelFont: "0.875rem", valueFont: "0.8125rem" },
47
+ lg: { trackHeight: "8px", thumbSize: "26px", thumbIcon: "0.75rem", labelFont: "1rem", valueFont: "0.875rem" }
48
+ }, l = r(() => I[j(t.size, w)]), k = r(() => t.disabled ? "var(--cui-text-tertiary)" : `var(--cui-${t.color})`), p = r(() => t.disabled ? "var(--cui-text-tertiary)" : `var(--cui-${t.color})`), b = E("inputEl");
49
+ function F(u) {
50
+ var a;
51
+ (a = b.value) == null || a.focus(u);
52
+ }
53
+ function $() {
54
+ var u;
55
+ (u = b.value) == null || u.blur();
56
+ }
57
+ return g({ el: b, focus: F, blur: $ }), (u, a) => D((s(), d("div", {
58
+ class: "cui-slider",
59
+ style: i({ opacity: e.disabled ? 0.5 : 1, "--_slider-focus-ring": `var(--cui-${e.color}-focus-ring)` })
60
+ }, [
61
+ e.label || e.showValue ? (s(), d("div", L, [
62
+ e.label ? (s(), d("label", {
63
+ key: 0,
64
+ for: h.value,
65
+ style: i({ fontSize: l.value.labelFont, fontWeight: "500", color: "var(--cui-text-secondary)" })
66
+ }, c(e.label), 13, M)) : m("", !0),
67
+ e.showValue ? (s(), d("span", {
68
+ key: 1,
69
+ style: i({ fontSize: l.value.valueFont, fontWeight: "600", color: "var(--cui-text-body)", fontVariantNumeric: "tabular-nums" })
70
+ }, c(y.value), 5)) : m("", !0)
71
+ ])) : m("", !0),
72
+ n("div", {
73
+ style: i({ position: "relative", height: l.value.thumbSize, display: "flex", alignItems: "center" })
74
+ }, [
75
+ n("div", {
76
+ style: i({
77
+ position: "absolute",
78
+ left: "0",
79
+ right: "0",
80
+ height: l.value.trackHeight,
81
+ borderRadius: "9999px",
82
+ background: "var(--cui-border)"
83
+ })
84
+ }, null, 4),
85
+ n("div", {
86
+ style: i({
87
+ position: "absolute",
88
+ left: "0",
89
+ height: l.value.trackHeight,
90
+ width: `${v.value}%`,
91
+ borderRadius: "9999px",
92
+ background: p.value,
93
+ transition: o.value ? "none" : "width 0.1s ease"
94
+ })
95
+ }, null, 4),
96
+ n("input", {
97
+ ref: "inputEl",
98
+ id: h.value,
99
+ name: e.name,
100
+ autocomplete: e.autocomplete,
101
+ "aria-describedby": e.ariaDescribedby,
102
+ "aria-required": e.ariaRequired || void 0,
103
+ "aria-labelledby": e.ariaLabelledby,
104
+ "aria-valuetext": e.formatValue ? y.value : void 0,
105
+ class: "cui-slider__input",
106
+ type: "range",
107
+ value: e.modelValue,
108
+ min: e.min,
109
+ max: e.max,
110
+ step: e.step,
111
+ disabled: e.disabled,
112
+ style: i({
113
+ position: "absolute",
114
+ left: "0",
115
+ width: "100%",
116
+ height: "100%",
117
+ margin: "0",
118
+ opacity: "0",
119
+ cursor: e.disabled ? "default" : "pointer",
120
+ zIndex: 3
121
+ }),
122
+ onInput: z,
123
+ onMousedown: a[0] || (a[0] = (f) => o.value = !0),
124
+ onMouseup: a[1] || (a[1] = (f) => o.value = !1),
125
+ onTouchstart: a[2] || (a[2] = (f) => o.value = !0),
126
+ onTouchend: a[3] || (a[3] = (f) => o.value = !1)
127
+ }, null, 44, P),
128
+ n("div", {
129
+ class: "cui-slider__thumb",
130
+ style: i({
131
+ position: "absolute",
132
+ left: `${v.value}%`,
133
+ transform: "translateX(-50%)",
134
+ width: l.value.thumbSize,
135
+ height: l.value.thumbSize,
136
+ borderRadius: "50%",
137
+ background: k.value,
138
+ border: "2px solid var(--cui-surface-base, white)",
139
+ boxShadow: o.value ? "0 2px 8px rgba(0,0,0,0.25)" : "0 1px 3px rgba(0,0,0,0.15)",
140
+ display: "flex",
141
+ alignItems: "center",
142
+ justifyContent: "center",
143
+ color: "var(--cui-surface-base, white)",
144
+ transition: o.value ? "none" : "left 0.1s ease, box-shadow 0.15s ease, transform 0.15s ease",
145
+ pointerEvents: "none",
146
+ zIndex: 2
147
+ })
148
+ }, [
149
+ H(u.$slots, "thumb", {}, () => [
150
+ e.thumbIcon ? (s(), q(N, {
151
+ key: 0,
152
+ name: e.thumbIcon,
153
+ size: l.value.thumbIcon
154
+ }, null, 8, ["name", "size"])) : m("", !0)
155
+ ], !0)
156
+ ], 4)
157
+ ], 4),
158
+ e.showRange ? (s(), d("div", W, [
159
+ n("span", {
160
+ style: i({ fontSize: l.value.valueFont, color: "var(--cui-text-tertiary)" })
161
+ }, c(e.formatValue ? e.formatValue(e.min) : e.min), 5),
162
+ n("span", {
163
+ style: i({ fontSize: l.value.valueFont, color: "var(--cui-text-tertiary)" })
164
+ }, c(e.formatValue ? e.formatValue(e.max) : e.max), 5)
165
+ ])) : m("", !0)
166
+ ], 4)), [
167
+ [T, !e.hidden]
168
+ ]);
169
+ }
170
+ });
2
171
  export {
3
- f as default
172
+ Z as default
4
173
  };
@@ -1 +1 @@
1
- {"version":3,"file":"CuiSpinner.vue.d.ts","sourceRoot":"","sources":["../../src/components/CuiSpinner.vue"],"names":[],"mappings":"AA6IA,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAG7F,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;AAEtD,MAAM,WAAW,eAAgB,SAAQ,aAAa,EAAE,cAAc,EAAE,aAAa;IACnF,qBAAqB;IACrB,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,uBAAuB;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wCAAwC;IACxC,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;;WAHS,MAAM;;;;aAFJ,cAAc;eAIZ,OAAO;;AAmJrB,wBAOG"}
1
+ {"version":3,"file":"CuiSpinner.vue.d.ts","sourceRoot":"","sources":["../../src/components/CuiSpinner.vue"],"names":[],"mappings":"AA8IA,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAG7F,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;AAEtD,MAAM,WAAW,eAAgB,SAAQ,aAAa,EAAE,cAAc,EAAE,aAAa;IACnF,qBAAqB;IACrB,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,uBAAuB;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wCAAwC;IACxC,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;;WAHS,MAAM;;;;aAFJ,cAAc;eAIZ,OAAO;;AAqJrB,wBAOG"}
@@ -1,4 +1,4 @@
1
- import { defineComponent as v, computed as m, withDirectives as p, openBlock as a, createElementBlock as i, normalizeStyle as r, Fragment as u, renderList as b, createElementVNode as c, createCommentVNode as s, toDisplayString as h, vShow as x } from "vue";
1
+ import { defineComponent as v, computed as u, withDirectives as p, openBlock as a, createElementBlock as i, normalizeStyle as r, Fragment as m, renderList as b, createElementVNode as c, createCommentVNode as s, toDisplayString as h, vShow as x } from "vue";
2
2
  import { scaleDensity as o } from "../utils/sizing.js";
3
3
  const f = ["aria-label"], y = {
4
4
  key: 4,
@@ -20,8 +20,9 @@ const f = ["aria-label"], y = {
20
20
  md: { box: "1.75rem", stroke: "3px", dotSize: "0.375rem", barWidth: "0.25rem", barHeight: "0.875rem", labelFont: "0.8125rem", gap: o("0.5rem") },
21
21
  lg: { box: "2.5rem", stroke: "3px", dotSize: "0.5rem", barWidth: "0.25rem", barHeight: "1.125rem", labelFont: "0.875rem", gap: o("0.5rem") },
22
22
  xl: { box: "3.5rem", stroke: "4px", dotSize: "0.625rem", barWidth: "0.3125rem", barHeight: "1.5rem", labelFont: "1rem", gap: o("0.625rem") }
23
- }, e = m(() => g[d.size]), n = m(() => `var(--cui-${d.color})`);
23
+ }, e = u(() => g[d.size]), n = u(() => `var(--cui-${d.color})`);
24
24
  return (k, z) => p((a(), i("div", {
25
+ class: "cui-spinner",
25
26
  role: "status",
26
27
  "aria-label": t.label,
27
28
  style: r({
@@ -50,7 +51,7 @@ const f = ["aria-label"], y = {
50
51
  height: e.value.box
51
52
  })
52
53
  }, [
53
- (a(), i(u, null, b(3, (l) => c("div", {
54
+ (a(), i(m, null, b(3, (l) => c("div", {
54
55
  key: l,
55
56
  style: r({
56
57
  width: e.value.dotSize,
@@ -69,7 +70,7 @@ const f = ["aria-label"], y = {
69
70
  height: e.value.box
70
71
  })
71
72
  }, [
72
- (a(), i(u, null, b(4, (l) => c("div", {
73
+ (a(), i(m, null, b(4, (l) => c("div", {
73
74
  key: l,
74
75
  style: r({
75
76
  width: e.value.barWidth,
@@ -1 +1 @@
1
- {"version":3,"file":"CuiTable.vue.d.ts","sourceRoot":"","sources":["../../src/components/CuiTable.vue"],"names":[],"mappings":"AAmTA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAMpE,MAAM,WAAW,aAAc,SAAQ,aAAa,EAAE,aAAa;IACjE,kCAAkC;IAClC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,0BAA0B;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,gCAAgC;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,mBAAmB;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,uDAAuD;IACvD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,8DAA8D;IAC9D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sFAAsF;IACtF,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAiED,iBAAS,OAAO,SAiBf;AAiFD,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAiC/C,QAAA,MAAM,eAAe;;;;;;aAzNT,OAAO;eAEL,OAAO;cAER,OAAO;kBAEH,OAAO;iBAER,OAAO;6EAyNrB,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":"CuiTable.vue.d.ts","sourceRoot":"","sources":["../../src/components/CuiTable.vue"],"names":[],"mappings":"AAmTA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAMpE,MAAM,WAAW,aAAc,SAAQ,aAAa,EAAE,aAAa;IACjE,kCAAkC;IAClC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,0BAA0B;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,gCAAgC;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,mBAAmB;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,uDAAuD;IACvD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,8DAA8D;IAC9D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sFAAsF;IACtF,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAiED,iBAAS,OAAO,SAiBf;AAmFD,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAiC/C,QAAA,MAAM,eAAe;;;;;;aA3NT,OAAO;eAEL,OAAO;cAER,OAAO;kBAEH,OAAO;iBAER,OAAO;6EA2NrB,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"}
@@ -4,7 +4,10 @@ import { clampSize as U } from "../utils/sizing.js";
4
4
  import { useScrollShadows as V, scrollShadowRightStyle as X, scrollShadowBottomStyle as $ } from "../composables/useScrollShadows.js";
5
5
  import { useMessages as A } from "../composables/useMessages.js";
6
6
  import { warnOnce as F } from "../utils/devWarn.js";
7
- const I = { style: { position: "relative" } }, K = ["role", "tabindex", "aria-label"], Z = ["aria-rowcount"], te = /* @__PURE__ */ _({
7
+ const I = {
8
+ class: "cui-table-container",
9
+ style: { position: "relative" }
10
+ }, K = ["role", "tabindex", "aria-label"], Z = ["aria-rowcount"], te = /* @__PURE__ */ _({
8
11
  __name: "CuiTable",
9
12
  props: {
10
13
  striped: { type: Boolean, default: !1 },
@@ -1 +1 @@
1
- {"version":3,"file":"CuiTableBody.vue.d.ts","sourceRoot":"","sources":["../../src/components/CuiTableBody.vue"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,WAAW,iBAAkB,SAAQ,aAAa;CAAG;AA0B3D,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAoB/C,QAAA,MAAM,eAAe;;6EAOnB,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":"CuiTableBody.vue.d.ts","sourceRoot":"","sources":["../../src/components/CuiTableBody.vue"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,WAAW,iBAAkB,SAAQ,aAAa;CAAG;AA4B3D,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAoB/C,QAAA,MAAM,eAAe;;6EAOnB,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,18 +1,18 @@
1
- import { defineComponent as t, provide as n, withDirectives as l, openBlock as r, createElementBlock as a, renderSlot as d, vShow as i } from "vue";
1
+ import { defineComponent as t, provide as n, withDirectives as a, openBlock as d, createElementBlock as i, renderSlot as l, vShow as r } from "vue";
2
2
  import { TableSectionContextKey as s } from "./table-context.js";
3
- const m = /* @__PURE__ */ t({
3
+ const c = { class: "cui-table-body" }, u = /* @__PURE__ */ t({
4
4
  __name: "CuiTableBody",
5
5
  props: {
6
6
  hidden: { type: Boolean, default: !1 }
7
7
  },
8
8
  setup(e) {
9
- return n(s, { isHead: !1 }), (o, p) => l((r(), a("tbody", null, [
10
- d(o.$slots, "default")
9
+ return n(s, { isHead: !1 }), (o, p) => a((d(), i("tbody", c, [
10
+ l(o.$slots, "default")
11
11
  ], 512)), [
12
- [i, !e.hidden]
12
+ [r, !e.hidden]
13
13
  ]);
14
14
  }
15
15
  });
16
16
  export {
17
- m as default
17
+ u as default
18
18
  };
@@ -1 +1 @@
1
- {"version":3,"file":"CuiTableCell.vue.d.ts","sourceRoot":"","sources":["../../src/components/CuiTableCell.vue"],"names":[],"mappings":"AAkEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEzD,MAAM,WAAW,iBAAkB,SAAQ,aAAa;IACtD,4CAA4C;IAC5C,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,qBAAqB;IACrB,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,gBAAgB;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,mBAAmB;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,mBAAmB;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,4BAA4B;IAC5B,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAoED,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAuB/C,QAAA,MAAM,eAAe;YAxGV,OAAO;;YAUP,OAAO;WARR,cAAc;6EA6GtB,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":"CuiTableCell.vue.d.ts","sourceRoot":"","sources":["../../src/components/CuiTableCell.vue"],"names":[],"mappings":"AAmEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEzD,MAAM,WAAW,iBAAkB,SAAQ,aAAa;IACtD,4CAA4C;IAC5C,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,qBAAqB;IACrB,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,gBAAgB;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,mBAAmB;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,mBAAmB;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,4BAA4B;IAC5B,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAuED,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAuB/C,QAAA,MAAM,eAAe;YA3GV,OAAO;;YAUP,OAAO;WARR,cAAc;6EAgHtB,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,6 +1,6 @@
1
- import { defineComponent as s, inject as d, computed as n, withDirectives as c, openBlock as p, createBlock as f, resolveDynamicComponent as u, normalizeStyle as h, withCtx as w, renderSlot as m, vShow as v } from "vue";
1
+ import { defineComponent as r, inject as c, computed as l, withDirectives as d, openBlock as p, createBlock as f, resolveDynamicComponent as u, normalizeStyle as h, withCtx as w, renderSlot as m, vShow as v } from "vue";
2
2
  import { TableSectionContextKey as y } from "./table-context.js";
3
- const B = /* @__PURE__ */ s({
3
+ const B = /* @__PURE__ */ r({
4
4
  __name: "CuiTableCell",
5
5
  props: {
6
6
  header: { type: Boolean, default: void 0 },
@@ -11,23 +11,24 @@ const B = /* @__PURE__ */ s({
11
11
  nowrap: { type: Boolean, default: !1 },
12
12
  hidden: { type: Boolean, default: !1 }
13
13
  },
14
- setup(o) {
15
- const e = o, a = d(y, void 0), l = n(() => e.header !== void 0 ? e.header : (a == null ? void 0 : a.isHead) ?? !1), i = n(() => l.value ? "th" : "td"), r = n(() => {
14
+ setup(a) {
15
+ const e = a, o = c(y, void 0), n = l(() => e.header !== void 0 ? e.header : (o == null ? void 0 : o.isHead) ?? !1), i = l(() => n.value ? "th" : "td"), s = l(() => {
16
16
  const t = {};
17
17
  return e.align !== "left" && (t.textAlign = e.align), e.width && (t.width = e.width), e.nowrap && (t.whiteSpace = "nowrap"), t;
18
18
  });
19
- return (t, C) => c((p(), f(u(i.value), {
20
- style: h(r.value),
21
- colspan: o.colspan,
22
- rowspan: o.rowspan,
23
- scope: l.value ? "col" : void 0
19
+ return (t, C) => d((p(), f(u(i.value), {
20
+ class: "cui-table-cell",
21
+ style: h(s.value),
22
+ colspan: a.colspan,
23
+ rowspan: a.rowspan,
24
+ scope: n.value ? "col" : void 0
24
25
  }, {
25
26
  default: w(() => [
26
27
  m(t.$slots, "default")
27
28
  ]),
28
29
  _: 3
29
30
  }, 8, ["style", "colspan", "rowspan", "scope"])), [
30
- [v, !o.hidden]
31
+ [v, !a.hidden]
31
32
  ]);
32
33
  }
33
34
  });
@@ -1 +1 @@
1
- {"version":3,"file":"CuiTableFoot.vue.d.ts","sourceRoot":"","sources":["../../src/components/CuiTableFoot.vue"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,WAAW,iBAAkB,SAAQ,aAAa;CACvD;AA0BD,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAoB/C,QAAA,MAAM,eAAe;;6EAOnB,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":"CuiTableFoot.vue.d.ts","sourceRoot":"","sources":["../../src/components/CuiTableFoot.vue"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,WAAW,iBAAkB,SAAQ,aAAa;CACvD;AA4BD,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAoB/C,QAAA,MAAM,eAAe;;6EAOnB,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"}