@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,90 @@
1
+ import { defineComponent as z, computed as l, provide as C, ref as E, withDirectives as f, openBlock as r, createElementBlock as i, createElementVNode as p, unref as a, normalizeStyle as s, normalizeClass as y, renderSlot as h, createCommentVNode as b, vShow as v } from "vue";
2
+ import { TableContextKey as D } from "./table-context.js";
3
+ import { clampSize as T } from "../utils/sizing.js";
4
+ import { useScrollShadows as $, scrollShadowRightStyle as L, scrollShadowBottomStyle as N } from "../composables/useScrollShadows.js";
5
+ const P = {
6
+ key: 0,
7
+ style: { position: "relative" }
8
+ }, V = ["aria-rowcount"], I = ["aria-rowcount"], Z = /* @__PURE__ */ z({
9
+ __name: "CuiTable",
10
+ props: {
11
+ striped: { type: Boolean, default: !1 },
12
+ hoverable: { type: Boolean, default: !1 },
13
+ bordered: { type: Boolean, default: !1 },
14
+ stickyHeader: { type: Boolean, default: !1 },
15
+ fixedLayout: { type: Boolean, default: !1 },
16
+ maxHeight: {},
17
+ minWidth: {},
18
+ ariaRowcount: {},
19
+ hidden: { type: Boolean, default: !1 },
20
+ size: { default: "md" }
21
+ },
22
+ setup(o, { expose: S }) {
23
+ const e = o, w = ["sm", "md", "lg"], n = l(() => T(e.size, w));
24
+ C(D, {
25
+ size: n,
26
+ stickyHeader: l(() => e.stickyHeader)
27
+ });
28
+ const d = l(() => [
29
+ "cui-table",
30
+ `cui-table--${n.value}`,
31
+ {
32
+ "cui-table--striped": e.striped,
33
+ "cui-table--hoverable": e.hoverable,
34
+ "cui-table--bordered": e.bordered,
35
+ "cui-table--sticky-header": e.stickyHeader,
36
+ "cui-table--fixed": e.fixedLayout
37
+ }
38
+ ]), g = l(() => {
39
+ if (!e.maxHeight && !e.minWidth) return;
40
+ const t = { overflow: "auto", position: "relative" };
41
+ return e.maxHeight && (t.maxHeight = e.maxHeight), t;
42
+ }), k = l(() => ({
43
+ borderCollapse: "separate",
44
+ borderSpacing: "0",
45
+ minWidth: e.minWidth || void 0
46
+ })), { canScrollRight: x, canScrollDown: H, onScroll: c, onMount: B } = $(), u = E(null);
47
+ function R(t) {
48
+ u.value = t, B(t);
49
+ }
50
+ return S({ scrollWrapper: u }), (t, m) => o.maxHeight || o.minWidth ? f((r(), i("div", P, [
51
+ p("div", {
52
+ ref: R,
53
+ class: "cui-table-wrapper",
54
+ style: s(g.value),
55
+ onScroll: m[0] || (m[0] = //@ts-ignore
56
+ (...W) => a(c) && a(c)(...W))
57
+ }, [
58
+ p("table", {
59
+ class: y(d.value),
60
+ style: s(k.value),
61
+ "aria-rowcount": o.ariaRowcount
62
+ }, [
63
+ h(t.$slots, "default")
64
+ ], 14, V)
65
+ ], 36),
66
+ a(x) ? (r(), i("div", {
67
+ key: 0,
68
+ style: s(a(L))
69
+ }, null, 4)) : b("", !0),
70
+ a(H) ? (r(), i("div", {
71
+ key: 1,
72
+ style: s(a(N))
73
+ }, null, 4)) : b("", !0)
74
+ ], 512)), [
75
+ [v, !o.hidden]
76
+ ]) : f((r(), i("table", {
77
+ key: 1,
78
+ class: y(d.value),
79
+ style: { "border-collapse": "separate", "border-spacing": "0" },
80
+ "aria-rowcount": o.ariaRowcount
81
+ }, [
82
+ h(t.$slots, "default")
83
+ ], 10, I)), [
84
+ [v, !o.hidden]
85
+ ]);
86
+ }
87
+ });
88
+ export {
89
+ Z as default
90
+ };
@@ -0,0 +1,5 @@
1
+ import o from "./CuiTable.vue.js";
2
+ /* empty css */
3
+ export {
4
+ o as default
5
+ };
@@ -0,0 +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";
2
+ import { TableSectionContextKey as s } from "./table-context.js";
3
+ const m = /* @__PURE__ */ t({
4
+ __name: "CuiTableBody",
5
+ props: {
6
+ hidden: { type: Boolean, default: !1 }
7
+ },
8
+ setup(e) {
9
+ return n(s, { isHead: !1 }), (o, p) => l((r(), a("tbody", null, [
10
+ d(o.$slots, "default")
11
+ ], 512)), [
12
+ [i, !e.hidden]
13
+ ]);
14
+ }
15
+ });
16
+ export {
17
+ m as default
18
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./CuiTableBody.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,36 @@
1
+ import { defineComponent as s, inject as c, computed as n, 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
+ import { TableSectionContextKey as y } from "./table-context.js";
3
+ const B = /* @__PURE__ */ s({
4
+ __name: "CuiTableCell",
5
+ props: {
6
+ header: { type: Boolean },
7
+ align: { default: "left" },
8
+ width: {},
9
+ colspan: {},
10
+ rowspan: {},
11
+ nowrap: { type: Boolean, default: !1 },
12
+ hidden: { type: Boolean, default: !1 }
13
+ },
14
+ setup(o) {
15
+ const e = o, a = c(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(() => {
16
+ const t = {};
17
+ return e.align !== "left" && (t.textAlign = e.align), e.width && (t.width = e.width), e.nowrap && (t.whiteSpace = "nowrap"), t;
18
+ });
19
+ return (t, C) => d((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
24
+ }, {
25
+ default: w(() => [
26
+ m(t.$slots, "default")
27
+ ]),
28
+ _: 3
29
+ }, 8, ["style", "colspan", "rowspan", "scope"])), [
30
+ [v, !o.hidden]
31
+ ]);
32
+ }
33
+ });
34
+ export {
35
+ B as default
36
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./CuiTableCell.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,18 @@
1
+ import { defineComponent as t, provide as n, withDirectives as l, openBlock as r, createElementBlock as a, renderSlot as i, vShow as d } from "vue";
2
+ import { TableSectionContextKey as s } from "./table-context.js";
3
+ const m = /* @__PURE__ */ t({
4
+ __name: "CuiTableFoot",
5
+ props: {
6
+ hidden: { type: Boolean, default: !1 }
7
+ },
8
+ setup(e) {
9
+ return n(s, { isHead: !1 }), (o, f) => l((r(), a("tfoot", null, [
10
+ i(o.$slots, "default")
11
+ ], 512)), [
12
+ [d, !e.hidden]
13
+ ]);
14
+ }
15
+ });
16
+ export {
17
+ m as default
18
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./CuiTableFoot.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,18 @@
1
+ import { defineComponent as o, provide as n, withDirectives as r, openBlock as a, createElementBlock as l, renderSlot as d, vShow as i } from "vue";
2
+ import { TableSectionContextKey as p } from "./table-context.js";
3
+ const f = /* @__PURE__ */ o({
4
+ __name: "CuiTableHead",
5
+ props: {
6
+ hidden: { type: Boolean, default: !1 }
7
+ },
8
+ setup(e) {
9
+ return n(p, { isHead: !0 }), (t, s) => r((a(), l("thead", null, [
10
+ d(t.$slots, "default")
11
+ ], 512)), [
12
+ [i, !e.hidden]
13
+ ]);
14
+ }
15
+ });
16
+ export {
17
+ f as default
18
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./CuiTableHead.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,23 @@
1
+ import { defineComponent as r, ref as a, withDirectives as n, openBlock as s, createElementBlock as c, normalizeClass as d, renderSlot as f, vShow as i } from "vue";
2
+ const m = /* @__PURE__ */ r({
3
+ __name: "CuiTableRow",
4
+ props: {
5
+ selected: { type: Boolean, default: !1 },
6
+ hidden: { type: Boolean, default: !1 }
7
+ },
8
+ setup(e, { expose: t }) {
9
+ const l = a(null);
10
+ return t({ rowEl: l }), (o, u) => n((s(), c("tr", {
11
+ ref_key: "rowEl",
12
+ ref: l,
13
+ class: d({ "cui-table-row--selected": e.selected })
14
+ }, [
15
+ f(o.$slots, "default")
16
+ ], 2)), [
17
+ [i, !e.hidden]
18
+ ]);
19
+ }
20
+ });
21
+ export {
22
+ m as default
23
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./CuiTableRow.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,7 @@
1
+ import o from "./CuiTabs.vue2.js";
2
+ /* empty css */
3
+ import t from "../_virtual/_plugin-vue_export-helper.js";
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-2356dd2a"]]);
5
+ export {
6
+ p as default
7
+ };
@@ -0,0 +1,124 @@
1
+ import { defineComponent as $, ref as p, watch as A, provide as D, toRef as s, computed as T, withDirectives as z, openBlock as v, createElementBlock as f, normalizeClass as _, createElementVNode as h, Fragment as S, renderList as B, normalizeStyle as K, toDisplayString as N, withModifiers as E, unref as H, createVNode as L, createCommentVNode as M, renderSlot as R, vShow as q, nextTick as F } from "vue";
2
+ import U from "./CuiIcon.vue.js";
3
+ import { TabsContextKey as j } from "./tabs-context.js";
4
+ import { useMessages as G } from "../composables/useMessages.js";
5
+ const J = ["aria-orientation"], O = ["data-cui-tab-value", "aria-selected", "aria-disabled", "tabindex", "onClick"], P = { class: "cui-tabs__tab-content" }, Q = ["aria-label", "onClick"], W = { class: "cui-tabs__panels" }, te = /* @__PURE__ */ $({
6
+ __name: "CuiTabs",
7
+ props: {
8
+ modelValue: {},
9
+ variant: { default: "underline" },
10
+ orientation: { default: "horizontal" },
11
+ keepAlive: { type: Boolean, default: !0 },
12
+ transition: { default: "fade" },
13
+ hidden: { type: Boolean, default: !1 },
14
+ color: { default: "primary" }
15
+ },
16
+ emits: ["update:modelValue", "close"],
17
+ setup(o, { emit: x }) {
18
+ const n = o, b = x, l = p(n.modelValue ?? ""), c = p(""), i = p([]);
19
+ A(
20
+ () => n.modelValue,
21
+ (e) => {
22
+ e !== void 0 && e !== l.value && (c.value = l.value, l.value = e);
23
+ }
24
+ );
25
+ function k(e) {
26
+ i.value.find((a) => a.value === e.value) || i.value.push(e), !l.value && !e.disabled && (l.value = e.value, b("update:modelValue", e.value));
27
+ }
28
+ function g(e) {
29
+ i.value = i.value.filter((a) => a.value !== e);
30
+ }
31
+ function m(e) {
32
+ const a = i.value.find((t) => t.value === e);
33
+ a != null && a.disabled || (c.value = l.value, l.value = e, b("update:modelValue", e));
34
+ }
35
+ function y(e) {
36
+ b("close", e);
37
+ }
38
+ D(j, {
39
+ activeTab: l,
40
+ variant: s(n, "variant"),
41
+ orientation: s(n, "orientation"),
42
+ color: s(n, "color"),
43
+ keepAlive: s(n, "keepAlive"),
44
+ transition: s(n, "transition"),
45
+ previousTab: c,
46
+ register: k,
47
+ unregister: g,
48
+ activate: m,
49
+ close: y
50
+ });
51
+ function w(e) {
52
+ const a = i.value.filter((r) => !r.disabled), t = a.findIndex((r) => r.value === l.value);
53
+ if (t < 0) return;
54
+ const d = n.orientation === "horizontal", I = d ? "ArrowRight" : "ArrowDown", V = d ? "ArrowLeft" : "ArrowUp";
55
+ let u = -1;
56
+ e.key === I ? (e.preventDefault(), u = t < a.length - 1 ? t + 1 : 0) : e.key === V ? (e.preventDefault(), u = t > 0 ? t - 1 : a.length - 1) : e.key === "Home" ? (e.preventDefault(), u = 0) : e.key === "End" && (e.preventDefault(), u = a.length - 1), u >= 0 && (m(a[u].value), F(() => {
57
+ const r = document.querySelector(
58
+ `[data-cui-tab-value="${a[u].value}"]`
59
+ );
60
+ r == null || r.focus();
61
+ }));
62
+ }
63
+ T(() => {
64
+ const e = i.value.findIndex((t) => t.value === c.value);
65
+ return i.value.findIndex((t) => t.value === l.value) >= e ? "left" : "right";
66
+ });
67
+ const C = G();
68
+ return (e, a) => z((v(), f("div", {
69
+ class: _(["cui-tabs", [
70
+ `cui-tabs--${o.variant}`,
71
+ `cui-tabs--${o.orientation}`
72
+ ]])
73
+ }, [
74
+ h("div", {
75
+ class: "cui-tabs__bar",
76
+ role: "tablist",
77
+ "aria-orientation": o.orientation,
78
+ onKeydown: w
79
+ }, [
80
+ (v(!0), f(S, null, B(i.value, (t) => (v(), f("button", {
81
+ key: t.value,
82
+ "data-cui-tab-value": t.value,
83
+ class: _(["cui-tabs__tab", {
84
+ "cui-tabs__tab--active": l.value === t.value,
85
+ "cui-tabs__tab--disabled": t.disabled
86
+ }]),
87
+ style: K({
88
+ "--_tab-color": `var(--cui-${o.color})`,
89
+ "--_tab-hover": `var(--cui-${o.color}-hover)`,
90
+ "--_tab-bg": `var(--cui-${o.color}-bg)`
91
+ }),
92
+ role: "tab",
93
+ "aria-selected": l.value === t.value,
94
+ "aria-disabled": t.disabled || void 0,
95
+ tabindex: l.value === t.value ? 0 : -1,
96
+ onClick: (d) => m(t.value)
97
+ }, [
98
+ h("span", P, N(t.label), 1),
99
+ t.closeable ? (v(), f("button", {
100
+ key: 0,
101
+ type: "button",
102
+ class: "cui-tabs__tab-close",
103
+ "aria-label": H(C).tabs.closeTab,
104
+ tabindex: "-1",
105
+ onClick: E((d) => y(t.value), ["stop"])
106
+ }, [
107
+ L(U, {
108
+ name: "x",
109
+ size: "0.75rem"
110
+ })
111
+ ], 8, Q)) : M("", !0)
112
+ ], 14, O))), 128))
113
+ ], 40, J),
114
+ h("div", W, [
115
+ R(e.$slots, "default", {}, void 0, !0)
116
+ ])
117
+ ], 2)), [
118
+ [q, !o.hidden]
119
+ ]);
120
+ }
121
+ });
122
+ export {
123
+ te as default
124
+ };
@@ -0,0 +1,296 @@
1
+ import { defineComponent as le, ref as v, computed as h, onMounted as ne, onUnmounted as re, watch as oe, nextTick as L, withDirectives as ue, openBlock as s, createElementBlock as d, toDisplayString as x, createCommentVNode as w, createElementVNode as $, normalizeStyle as k, Fragment as q, renderList as F, createBlock as O, withCtx as ie, createTextVNode as se, Teleport as ce, createVNode as P, withModifiers as U, renderSlot as de, vShow as ve } from "vue";
2
+ import { clampSize as fe } from "../utils/sizing.js";
3
+ import me from "./CuiIcon.vue.js";
4
+ import ge from "./CuiBadge.vue.js";
5
+ import pe from "./CuiSpinner.vue.js";
6
+ /* empty css */
7
+ const ye = {
8
+ key: 0,
9
+ style: { display: "block", marginBottom: "calc(0.25rem * var(--cui-density-scale, 1))", fontSize: "0.875rem", fontWeight: "500", color: "var(--cui-text-secondary)" }
10
+ }, be = ["value", "placeholder", "disabled"], he = {
11
+ key: 1,
12
+ style: { fontSize: "0.75rem", color: "var(--cui-error)", marginTop: "calc(0.25rem * var(--cui-density-scale, 1))" }
13
+ }, xe = {
14
+ key: 0,
15
+ style: { padding: "calc(0.75rem * var(--cui-density-scale, 1))", textAlign: "center" }
16
+ }, we = ["data-index", "onClick", "onMouseenter"], Me = /* @__PURE__ */ le({
17
+ __name: "CuiTagInput",
18
+ props: {
19
+ modelValue: { default: () => [] },
20
+ suggestions: { default: () => [] },
21
+ fetchSuggestions: {},
22
+ allowCreate: { type: Boolean, default: !0 },
23
+ debounce: { default: 300 },
24
+ minChars: { default: 0 },
25
+ maxTags: { default: 0 },
26
+ placeholder: { default: "Add tag..." },
27
+ label: {},
28
+ error: { type: Boolean, default: !1 },
29
+ errorMessage: {},
30
+ noSuggestionsText: { default: "No suggestions" },
31
+ createText: { default: "Create" },
32
+ hidden: { type: Boolean, default: !1 },
33
+ rounded: { default: "md" },
34
+ color: { default: "primary" },
35
+ size: { default: "md" },
36
+ disabled: { type: Boolean, default: !1 }
37
+ },
38
+ emits: ["update:modelValue"],
39
+ setup(r, { expose: K, emit: Y }) {
40
+ const l = r, Z = {
41
+ none: "0",
42
+ sm: "0.25rem",
43
+ md: "var(--cui-button-radius, 0.375rem)",
44
+ lg: "0.5rem",
45
+ full: "9999px"
46
+ }, B = Y, o = v(""), c = v(!1), u = v(-1), V = v(!1), m = v([]), f = v(null), E = v(null), g = v(null), I = v({});
47
+ let S = null;
48
+ const z = h(() => new Set(l.modelValue)), C = h(() => l.maxTags > 0 && l.modelValue.length >= l.maxTags);
49
+ function j(e) {
50
+ const a = [...l.suggestions, ...m.value].find((t) => t.value === e);
51
+ return (a == null ? void 0 : a.label) ?? e;
52
+ }
53
+ function G(e) {
54
+ const a = [...l.suggestions, ...m.value].find((t) => t.value === e);
55
+ return (a == null ? void 0 : a.color) ?? l.color;
56
+ }
57
+ const i = h(() => {
58
+ const a = (l.fetchSuggestions ? m.value : l.suggestions).filter((n) => !z.value.has(n.value));
59
+ if (!o.value || l.fetchSuggestions) return a;
60
+ const t = o.value.toLowerCase();
61
+ return a.filter(
62
+ (n) => n.value.toLowerCase().includes(t) || n.label && n.label.toLowerCase().includes(t)
63
+ );
64
+ }), p = h(() => {
65
+ if (!l.allowCreate || !o.value.trim() || C.value) return !1;
66
+ const e = o.value.trim().toLowerCase();
67
+ return z.value.has(e) || z.value.has(o.value.trim()) ? !1 : ![...l.suggestions, ...m.value].map((t) => t.value.toLowerCase()).includes(e);
68
+ }), D = h(() => V.value), J = ["sm", "md", "lg"], Q = {
69
+ sm: { fontSize: "0.8125rem", padding: "calc(0.25rem * var(--cui-density-scale, 1)) calc(0.5rem * var(--cui-density-scale, 1))", tagSize: "sm", inputHeight: "2rem" },
70
+ md: { fontSize: "0.875rem", padding: "calc(0.3125rem * var(--cui-density-scale, 1)) calc(0.625rem * var(--cui-density-scale, 1))", tagSize: "sm", inputHeight: "2.375rem" },
71
+ lg: { fontSize: "0.9375rem", padding: "calc(0.4375rem * var(--cui-density-scale, 1)) calc(0.75rem * var(--cui-density-scale, 1))", tagSize: "md", inputHeight: "2.75rem" }
72
+ }, y = h(() => Q[fe(l.size, J)]);
73
+ function b() {
74
+ if (!g.value) return;
75
+ const e = g.value.getBoundingClientRect(), a = window.innerHeight, t = a - e.bottom, n = t < 200 && e.top > t, M = Math.min(240, Math.max(t, e.top) - 16), R = {
76
+ position: "fixed",
77
+ zIndex: "9990",
78
+ left: `${e.left}px`,
79
+ width: `${e.width}px`,
80
+ maxHeight: `${M}px`,
81
+ overflowY: "auto",
82
+ background: "var(--cui-surface-base)",
83
+ border: "1px solid var(--cui-border)",
84
+ borderRadius: "0.5rem",
85
+ boxShadow: "0 8px 24px -4px rgba(0,0,0,0.12), 0 2px 8px -2px rgba(0,0,0,0.08)",
86
+ padding: "calc(0.25rem * var(--cui-density-scale, 1))"
87
+ };
88
+ n ? R.bottom = `${a - e.top + 4}px` : R.top = `${e.bottom + 4}px`, I.value = R;
89
+ }
90
+ function X(e) {
91
+ if (o.value = e.target.value, u.value = -1, c.value || (c.value = !0, b()), l.fetchSuggestions) {
92
+ if (o.value.length < l.minChars) {
93
+ m.value = [];
94
+ return;
95
+ }
96
+ S && clearTimeout(S), S = setTimeout(async () => {
97
+ V.value = !0;
98
+ try {
99
+ m.value = await l.fetchSuggestions(o.value);
100
+ } finally {
101
+ V.value = !1;
102
+ }
103
+ }, l.debounce);
104
+ }
105
+ }
106
+ function H(e) {
107
+ if (l.disabled || C.value) return;
108
+ const a = e.trim();
109
+ !a || z.value.has(a) || (B("update:modelValue", [...l.modelValue, a]), o.value = "", u.value = -1, L(() => {
110
+ var t;
111
+ return (t = f.value) == null ? void 0 : t.focus();
112
+ }));
113
+ }
114
+ function A(e) {
115
+ H(e.value);
116
+ }
117
+ function T() {
118
+ p.value && H(o.value.trim());
119
+ }
120
+ function N(e) {
121
+ l.disabled || (B("update:modelValue", l.modelValue.filter((a) => a !== e)), L(() => {
122
+ var a;
123
+ return (a = f.value) == null ? void 0 : a.focus();
124
+ }));
125
+ }
126
+ function _(e) {
127
+ const a = i.value.length + (p.value ? 1 : 0);
128
+ if (e.key === "ArrowDown") {
129
+ if (e.preventDefault(), !c.value) {
130
+ c.value = !0, b();
131
+ return;
132
+ }
133
+ u.value = Math.min(u.value + 1, a - 1);
134
+ } else e.key === "ArrowUp" ? (e.preventDefault(), u.value = Math.max(u.value - 1, 0)) : e.key === "Enter" ? (e.preventDefault(), u.value >= 0 && u.value < i.value.length ? A(i.value[u.value]) : (p.value && (u.value === i.value.length || u.value === -1) || p.value && o.value.trim()) && T()) : e.key === "," || e.key === "Tab" ? o.value.trim() && l.allowCreate && (e.preventDefault(), T()) : e.key === "Escape" ? c.value = !1 : e.key === "Backspace" && !o.value && l.modelValue.length > 0 && N(l.modelValue[l.modelValue.length - 1]);
135
+ }
136
+ function W(e) {
137
+ var t, n;
138
+ const a = e.target;
139
+ (t = g.value) != null && t.contains(a) || (n = E.value) != null && n.contains(a) || (c.value = !1);
140
+ }
141
+ function ee() {
142
+ !l.disabled && !C.value && (c.value = !0, b());
143
+ }
144
+ ne(() => {
145
+ document.addEventListener("mousedown", W), window.addEventListener("scroll", () => {
146
+ c.value && b();
147
+ }, !0), window.addEventListener("resize", () => {
148
+ c.value && b();
149
+ });
150
+ }), re(() => {
151
+ document.removeEventListener("mousedown", W), S && clearTimeout(S);
152
+ }), oe(c, (e) => {
153
+ e || (o.value = ""), e && L(b);
154
+ });
155
+ function ae(e) {
156
+ var a;
157
+ f.value ? f.value.focus(e) : (a = g.value) == null || a.focus(e);
158
+ }
159
+ function te() {
160
+ var e;
161
+ (e = f.value) == null || e.blur();
162
+ }
163
+ return K({ el: g, focus: ae, blur: te }), (e, a) => ue((s(), d("div", {
164
+ ref_key: "wrapperRef",
165
+ ref: g,
166
+ style: { position: "relative" }
167
+ }, [
168
+ r.label ? (s(), d("label", ye, x(r.label), 1)) : w("", !0),
169
+ $("div", {
170
+ style: k({
171
+ display: "flex",
172
+ flexWrap: "wrap",
173
+ alignItems: "center",
174
+ gap: "calc(0.25rem * var(--cui-density-scale, 1))",
175
+ padding: y.value.padding,
176
+ border: `1px solid ${r.error ? "var(--cui-error)" : "var(--cui-border-strong, var(--cui-border))"}`,
177
+ borderRadius: Z[r.rounded],
178
+ background: "var(--cui-surface-base, white)",
179
+ cursor: r.disabled ? "default" : "text",
180
+ opacity: r.disabled ? "0.5" : "1",
181
+ minHeight: y.value.inputHeight
182
+ }),
183
+ onClick: a[0] || (a[0] = (t) => {
184
+ var n;
185
+ return (n = f.value) == null ? void 0 : n.focus();
186
+ })
187
+ }, [
188
+ (s(!0), d(q, null, F(r.modelValue, (t) => (s(), O(ge, {
189
+ key: t,
190
+ color: G(t),
191
+ size: y.value.tagSize,
192
+ removable: "",
193
+ onRemove: (n) => N(t)
194
+ }, {
195
+ default: ie(() => [
196
+ se(x(j(t)), 1)
197
+ ]),
198
+ _: 2
199
+ }, 1032, ["color", "size", "onRemove"]))), 128)),
200
+ C.value ? w("", !0) : (s(), d("input", {
201
+ key: 0,
202
+ ref_key: "inputRef",
203
+ ref: f,
204
+ value: o.value,
205
+ placeholder: r.modelValue.length > 0 ? "" : r.placeholder,
206
+ disabled: r.disabled,
207
+ style: k({
208
+ flex: "1",
209
+ minWidth: "4rem",
210
+ border: "none",
211
+ outline: "none",
212
+ background: "transparent",
213
+ fontSize: y.value.fontSize,
214
+ color: "var(--cui-text-body)",
215
+ padding: "calc(0.125rem * var(--cui-density-scale, 1)) 0",
216
+ fontFamily: "inherit"
217
+ }),
218
+ onInput: X,
219
+ onFocus: ee,
220
+ onKeydown: _
221
+ }, null, 44, be))
222
+ ], 4),
223
+ r.error && r.errorMessage ? (s(), d("div", he, x(r.errorMessage), 1)) : w("", !0),
224
+ (s(), O(ce, { to: "body" }, [
225
+ c.value && (i.value.length > 0 || p.value || D.value) ? (s(), d("div", {
226
+ key: 0,
227
+ ref_key: "dropdownRef",
228
+ ref: E,
229
+ style: k(I.value)
230
+ }, [
231
+ D.value && i.value.length === 0 ? (s(), d("div", xe, [
232
+ P(pe, {
233
+ size: "xs",
234
+ "show-label": "",
235
+ label: "Searching..."
236
+ })
237
+ ])) : w("", !0),
238
+ (s(!0), d(q, null, F(i.value, (t, n) => (s(), d("div", {
239
+ key: t.value,
240
+ "data-index": n,
241
+ style: k({
242
+ display: "flex",
243
+ alignItems: "center",
244
+ gap: "calc(0.5rem * var(--cui-density-scale, 1))",
245
+ padding: "calc(0.4375rem * var(--cui-density-scale, 1)) calc(0.625rem * var(--cui-density-scale, 1))",
246
+ cursor: "pointer",
247
+ fontSize: y.value.fontSize,
248
+ borderRadius: "0.25rem",
249
+ background: u.value === n ? "var(--cui-primary-bg)" : "transparent",
250
+ color: "var(--cui-text-body)",
251
+ transition: "background 0.1s ease"
252
+ }),
253
+ onClick: U((M) => A(t), ["stop"]),
254
+ onMouseenter: (M) => u.value = n
255
+ }, [
256
+ de(e.$slots, "suggestion", { suggestion: t }, () => [
257
+ $("span", null, x(t.label || t.value), 1)
258
+ ])
259
+ ], 44, we))), 128)),
260
+ p.value ? (s(), d("div", {
261
+ key: 1,
262
+ style: k({
263
+ display: "flex",
264
+ alignItems: "center",
265
+ gap: "calc(0.375rem * var(--cui-density-scale, 1))",
266
+ padding: "calc(0.4375rem * var(--cui-density-scale, 1)) calc(0.625rem * var(--cui-density-scale, 1))",
267
+ cursor: "pointer",
268
+ fontSize: y.value.fontSize,
269
+ borderRadius: "0.25rem",
270
+ background: u.value === i.value.length ? "var(--cui-primary-bg)" : "transparent",
271
+ color: "var(--cui-primary)",
272
+ fontWeight: "500",
273
+ transition: "background 0.1s ease",
274
+ borderTop: i.value.length > 0 ? "1px solid color-mix(in srgb, var(--cui-border) 50%, transparent)" : "none",
275
+ marginTop: i.value.length > 0 ? "calc(0.125rem * var(--cui-density-scale, 1))" : "0",
276
+ paddingTop: i.value.length > 0 ? "calc(0.5rem * var(--cui-density-scale, 1))" : void 0
277
+ }),
278
+ onClick: U(T, ["stop"]),
279
+ onMouseenter: a[1] || (a[1] = (t) => u.value = i.value.length)
280
+ }, [
281
+ P(me, {
282
+ name: "plus",
283
+ size: "0.75rem"
284
+ }),
285
+ $("span", null, x(r.createText) + " “" + x(o.value.trim()) + "”", 1)
286
+ ], 36)) : w("", !0)
287
+ ], 4)) : w("", !0)
288
+ ]))
289
+ ], 512)), [
290
+ [ve, !r.hidden]
291
+ ]);
292
+ }
293
+ });
294
+ export {
295
+ Me as default
296
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./CuiTagInput.vue.js";
2
+ export {
3
+ f as default
4
+ };