@itguy614/clean-ui 1.2.2 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (241) 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 +331 -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 +1 -0
  75. package/dist/components/CuiDataGridViewManager.vue.d.ts.map +1 -1
  76. package/dist/components/CuiDataGridViewManager.vue.js +17 -17
  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.map +1 -1
  84. package/dist/components/CuiDivider.vue.js +17 -13
  85. package/dist/components/CuiDropdownMenu.vue.js +2 -2
  86. package/dist/components/CuiDropdownRadioGroup.vue.d.ts +4 -1
  87. package/dist/components/CuiDropdownRadioGroup.vue.d.ts.map +1 -1
  88. package/dist/components/CuiDropdownRadioGroup.vue.js +27 -14
  89. package/dist/components/CuiDropdownSub.vue.js +2 -2
  90. package/dist/components/CuiEmptyState.vue.d.ts +5 -4
  91. package/dist/components/CuiEmptyState.vue.d.ts.map +1 -1
  92. package/dist/components/CuiEmptyState.vue.js +1 -1
  93. package/dist/components/CuiEmptyState.vue2.js +30 -24
  94. package/dist/components/CuiFieldset.vue.d.ts.map +1 -1
  95. package/dist/components/CuiFieldset.vue.js +1 -1
  96. package/dist/components/CuiFieldset.vue2.js +21 -21
  97. package/dist/components/CuiFileUpload.vue.d.ts +2 -2
  98. package/dist/components/CuiFileUpload.vue.d.ts.map +1 -1
  99. package/dist/components/CuiFileUpload.vue.js +70 -57
  100. package/dist/components/CuiFormField.vue.d.ts.map +1 -1
  101. package/dist/components/CuiFormField.vue.js +2 -2
  102. package/dist/components/CuiFormField.vue2.js +48 -42
  103. package/dist/components/CuiInput.vue.d.ts +2 -2
  104. package/dist/components/CuiInput.vue.d.ts.map +1 -1
  105. package/dist/components/CuiInput.vue.js +1 -1
  106. package/dist/components/CuiInput.vue2.js +97 -85
  107. package/dist/components/CuiInputStepper.vue.d.ts +2 -2
  108. package/dist/components/CuiInputStepper.vue.d.ts.map +1 -1
  109. package/dist/components/CuiInputStepper.vue.js +5 -187
  110. package/dist/components/CuiInputStepper.vue2.js +237 -2
  111. package/dist/components/CuiKbd.vue.d.ts.map +1 -1
  112. package/dist/components/CuiKbd.vue.js +6 -5
  113. package/dist/components/CuiMaskedInput.vue.d.ts +9 -3
  114. package/dist/components/CuiMaskedInput.vue.d.ts.map +1 -1
  115. package/dist/components/CuiMaskedInput.vue.js +132 -117
  116. package/dist/components/CuiModal.vue.d.ts +10 -2
  117. package/dist/components/CuiModal.vue.d.ts.map +1 -1
  118. package/dist/components/CuiModal.vue.js +2 -2
  119. package/dist/components/CuiModal.vue2.js +48 -44
  120. package/dist/components/CuiModalBody.vue.d.ts.map +1 -1
  121. package/dist/components/CuiModalBody.vue.js +16 -13
  122. package/dist/components/CuiModalFooter.vue.d.ts.map +1 -1
  123. package/dist/components/CuiModalFooter.vue.js +3 -2
  124. package/dist/components/CuiModalHeader.vue.d.ts +13 -4
  125. package/dist/components/CuiModalHeader.vue.d.ts.map +1 -1
  126. package/dist/components/CuiModalHeader.vue.js +54 -42
  127. package/dist/components/CuiPagination.vue.js +2 -2
  128. package/dist/components/CuiPopover.vue.d.ts.map +1 -1
  129. package/dist/components/CuiPopover.vue.js +70 -65
  130. package/dist/components/CuiRadio.vue.d.ts +2 -4
  131. package/dist/components/CuiRadio.vue.d.ts.map +1 -1
  132. package/dist/components/CuiRadio.vue.js +2 -2
  133. package/dist/components/CuiRadio.vue2.js +88 -74
  134. package/dist/components/CuiRadioGroup.vue.d.ts +2 -2
  135. package/dist/components/CuiRadioGroup.vue.d.ts.map +1 -1
  136. package/dist/components/CuiRadioGroup.vue.js +3 -3
  137. package/dist/components/CuiRadioGroup.vue2.js +47 -37
  138. package/dist/components/CuiRating.vue.d.ts.map +1 -1
  139. package/dist/components/CuiRating.vue.js +15 -14
  140. package/dist/components/CuiResizablePanels.vue.d.ts.map +1 -1
  141. package/dist/components/CuiResizablePanels.vue.js +10 -9
  142. package/dist/components/CuiSelect.vue.d.ts +2 -2
  143. package/dist/components/CuiSelect.vue.d.ts.map +1 -1
  144. package/dist/components/CuiSelect.vue.js +2 -2
  145. package/dist/components/CuiSelect.vue2.js +161 -151
  146. package/dist/components/CuiSkeleton.vue.js +2 -2
  147. package/dist/components/CuiSkeleton.vue2.js +10 -10
  148. package/dist/components/CuiSlideover.vue.d.ts +2 -2
  149. package/dist/components/CuiSlideover.vue.d.ts.map +1 -1
  150. package/dist/components/CuiSlideover.vue.js +34 -30
  151. package/dist/components/CuiSlider.vue.d.ts +2 -2
  152. package/dist/components/CuiSlider.vue.d.ts.map +1 -1
  153. package/dist/components/CuiSlider.vue.js +67 -54
  154. package/dist/components/CuiSpinner.vue.d.ts.map +1 -1
  155. package/dist/components/CuiSpinner.vue.js +5 -4
  156. package/dist/components/CuiTable.vue.d.ts.map +1 -1
  157. package/dist/components/CuiTable.vue.js +4 -1
  158. package/dist/components/CuiTableBody.vue.d.ts.map +1 -1
  159. package/dist/components/CuiTableBody.vue.js +6 -6
  160. package/dist/components/CuiTableCell.vue.d.ts.map +1 -1
  161. package/dist/components/CuiTableCell.vue.js +11 -10
  162. package/dist/components/CuiTableFoot.vue.d.ts.map +1 -1
  163. package/dist/components/CuiTableFoot.vue.js +7 -7
  164. package/dist/components/CuiTableHead.vue.d.ts.map +1 -1
  165. package/dist/components/CuiTableHead.vue.js +7 -7
  166. package/dist/components/CuiTabs.vue.d.ts.map +1 -1
  167. package/dist/components/CuiTabs.vue.js +1 -1
  168. package/dist/components/CuiTabs.vue2.js +1 -0
  169. package/dist/components/CuiTagInput.vue.d.ts +2 -2
  170. package/dist/components/CuiTagInput.vue.d.ts.map +1 -1
  171. package/dist/components/CuiTagInput.vue.js +5 -294
  172. package/dist/components/CuiTagInput.vue2.js +277 -2
  173. package/dist/components/CuiTextarea.vue.d.ts +2 -2
  174. package/dist/components/CuiTextarea.vue.d.ts.map +1 -1
  175. package/dist/components/CuiTextarea.vue.js +4 -4
  176. package/dist/components/CuiTextarea.vue2.js +73 -59
  177. package/dist/components/CuiTimePicker.vue.d.ts +2 -2
  178. package/dist/components/CuiTimePicker.vue.d.ts.map +1 -1
  179. package/dist/components/CuiTimePicker.vue.js +172 -97
  180. package/dist/components/CuiTimeline.vue.d.ts.map +1 -1
  181. package/dist/components/CuiTimeline.vue.js +6 -5
  182. package/dist/components/CuiTimelineItem.vue.d.ts.map +1 -1
  183. package/dist/components/CuiTimelineItem.vue.js +11 -10
  184. package/dist/components/CuiToast.vue.d.ts +8 -10
  185. package/dist/components/CuiToast.vue.d.ts.map +1 -1
  186. package/dist/components/CuiToast.vue.js +2 -2
  187. package/dist/components/CuiToast.vue2.js +69 -67
  188. package/dist/components/CuiToggle.vue.d.ts +2 -2
  189. package/dist/components/CuiToggle.vue.d.ts.map +1 -1
  190. package/dist/components/CuiToggle.vue.js +2 -2
  191. package/dist/components/CuiToggle.vue2.js +71 -59
  192. package/dist/components/CuiToggleGroup.vue.d.ts +2 -2
  193. package/dist/components/CuiToggleGroup.vue.d.ts.map +1 -1
  194. package/dist/components/CuiToggleGroup.vue.js +2 -2
  195. package/dist/components/CuiToggleGroup.vue2.js +45 -35
  196. package/dist/components/CuiTooltip.vue.d.ts.map +1 -1
  197. package/dist/components/CuiTooltip.vue.js +2 -2
  198. package/dist/components/CuiTooltip.vue2.js +47 -44
  199. package/dist/components/CuiTransferList.vue.d.ts.map +1 -1
  200. package/dist/components/CuiTransferList.vue.js +31 -30
  201. package/dist/components/CuiTreeNode.vue.d.ts +9 -2
  202. package/dist/components/CuiTreeNode.vue.d.ts.map +1 -1
  203. package/dist/components/CuiTreeNode.vue.js +5 -179
  204. package/dist/components/CuiTreeNode.vue2.js +198 -2
  205. package/dist/components/CuiTreeView.vue.d.ts +33 -5
  206. package/dist/components/CuiTreeView.vue.d.ts.map +1 -1
  207. package/dist/components/CuiTreeView.vue.js +187 -44
  208. package/dist/composables/useCalendarKeyboard.d.ts +48 -0
  209. package/dist/composables/useCalendarKeyboard.d.ts.map +1 -0
  210. package/dist/composables/useCalendarKeyboard.js +91 -0
  211. package/dist/composables/useFieldDescribedBy.d.ts +30 -0
  212. package/dist/composables/useFieldDescribedBy.d.ts.map +1 -0
  213. package/dist/composables/useFieldDescribedBy.js +11 -0
  214. package/dist/composables/useMessages.d.ts.map +1 -1
  215. package/dist/composables/useMessages.js +6 -6
  216. package/dist/composables/usePopover.d.ts.map +1 -1
  217. package/dist/composables/usePopover.js +10 -0
  218. package/dist/composables/useScrollShadows.d.ts +3 -0
  219. package/dist/composables/useScrollShadows.d.ts.map +1 -1
  220. package/dist/composables/useScrollShadows.js +15 -12
  221. package/dist/icons/builtin.d.ts.map +1 -1
  222. package/dist/icons/builtin.js +38 -37
  223. package/dist/index.d.ts +3 -2
  224. package/dist/index.d.ts.map +1 -1
  225. package/dist/index.js +185 -182
  226. package/dist/messages.d.ts +39 -4
  227. package/dist/messages.d.ts.map +1 -1
  228. package/dist/messages.js +8 -7
  229. package/dist/types/common.d.ts +90 -0
  230. package/dist/types/common.d.ts.map +1 -1
  231. package/dist/utils/colorIconMap.d.ts +47 -3
  232. package/dist/utils/colorIconMap.d.ts.map +1 -1
  233. package/dist/utils/colorIconMap.js +20 -5
  234. package/dist/utils/date.d.ts +13 -0
  235. package/dist/utils/date.d.ts.map +1 -1
  236. package/dist/utils/date.js +46 -40
  237. package/dist/utils/sizing.d.ts +26 -1
  238. package/dist/utils/sizing.d.ts.map +1 -1
  239. package/dist/utils/sizing.js +22 -21
  240. package/dist/version.js +1 -1
  241. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import o from "./CuiAlert.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-568c7fd8"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-38857f01"]]);
5
5
  export {
6
6
  p as default
7
7
  };
@@ -1,27 +1,26 @@
1
- import { defineComponent as x, ref as f, onMounted as D, onUnmounted as A, computed as c, withDirectives as B, openBlock as r, createElementBlock as s, mergeProps as I, renderSlot as d, createVNode as b, createCommentVNode as a, createElementVNode as N, toDisplayString as w, unref as M, vShow as S } from "vue";
2
- import $ from "./CuiIcon.vue.js";
3
- import { COLOR_ICON_MAP as V } from "../utils/colorIconMap.js";
4
- import { resolveLiveRegion as O } from "../utils/liveRegion.js";
5
- import { warnVariantColor as R } from "../utils/devWarn.js";
6
- import { useMessages as T } from "../composables/useMessages.js";
7
- const z = {
1
+ import { defineComponent as C, ref as b, onMounted as B, onUnmounted as D, computed as d, withDirectives as I, openBlock as r, createElementBlock as a, mergeProps as V, renderSlot as m, Fragment as w, createTextVNode as A, toDisplayString as $, createBlock as N, createCommentVNode as s, createElementVNode as S, unref as T, createVNode as M, vShow as R } from "vue";
2
+ import y from "./CuiIcon.vue.js";
3
+ import { resolveRoleIcon as z } from "../utils/colorIconMap.js";
4
+ import { resolveLiveRegion as E } from "../utils/liveRegion.js";
5
+ import { warnVariantColor as F } from "../utils/devWarn.js";
6
+ import { useMessages as q } from "../composables/useMessages.js";
7
+ const L = {
8
8
  key: 0,
9
9
  class: "cui-alert__icon"
10
- }, E = { class: "cui-alert__body" }, L = {
10
+ }, P = { class: "cui-alert__body" }, U = {
11
11
  key: 0,
12
12
  class: "cui-alert__title"
13
- }, P = {
13
+ }, j = {
14
14
  key: 1,
15
15
  class: "cui-alert__description"
16
- }, q = {
16
+ }, G = {
17
17
  key: 2,
18
18
  class: "cui-alert__actions"
19
- }, F = ["aria-label"], Q = /* @__PURE__ */ x({
19
+ }, H = ["aria-label"], Y = /* @__PURE__ */ C({
20
20
  __name: "CuiAlert",
21
21
  props: {
22
22
  variant: { default: "subtle" },
23
23
  title: {},
24
- noIcon: { type: Boolean, default: !1 },
25
24
  dismissible: { type: Boolean, default: !1 },
26
25
  autoDismiss: {},
27
26
  entrance: { default: "fade" },
@@ -29,85 +28,90 @@ const z = {
29
28
  rounded: { default: "md" },
30
29
  hidden: { type: Boolean, default: !1 },
31
30
  color: { default: "info" },
32
- live: {}
31
+ live: {},
32
+ icon: {},
33
+ noIcon: { type: Boolean, default: !1 }
33
34
  },
34
35
  emits: ["dismiss"],
35
36
  setup(i, { emit: _ }) {
36
- const y = {
37
+ const k = {
37
38
  none: "0",
38
- sm: "0.25rem",
39
- md: "var(--cui-button-radius, 0.375rem)",
40
- lg: "0.5rem",
39
+ sm: "var(--cui-radius-sm, 0.25rem)",
40
+ md: "var(--cui-button-radius, var(--cui-radius-md, 0.375rem))",
41
+ lg: "var(--cui-radius-lg, 0.5rem)",
41
42
  full: "9999px"
42
43
  }, o = i;
43
- R("CuiAlert", { value: o.variant, allowed: ["solid", "subtle", "outline"] }, o.color);
44
- const p = _, m = f(!0), l = f(!1);
44
+ F("CuiAlert", { value: o.variant, allowed: ["solid", "subtle", "outline"] }, o.color);
45
+ const g = _, v = b(!0), l = b(!1);
45
46
  let n = null;
46
- D(() => {
47
+ B(() => {
47
48
  requestAnimationFrame(() => {
48
49
  l.value = !0;
49
50
  }), o.autoDismiss && o.autoDismiss > 0 && (n = setTimeout(() => {
50
- v();
51
+ f();
51
52
  }, o.autoDismiss));
52
- }), A(() => {
53
+ }), D(() => {
53
54
  n && clearTimeout(n);
54
55
  });
55
- function v() {
56
+ function f() {
56
57
  l.value = !1, setTimeout(() => {
57
- m.value = !1, p("dismiss");
58
+ v.value = !1, g("dismiss");
58
59
  }, 300);
59
60
  }
60
- const g = c(() => {
61
+ const p = d(() => {
61
62
  const e = o.color, u = o.variant, t = {
62
- borderRadius: y[o.rounded],
63
+ borderRadius: k[o.rounded],
63
64
  "--_alert-color": `var(--cui-${e})`,
64
65
  "--_alert-focus-ring": `var(--cui-${e}-focus-ring)`
65
66
  };
66
67
  return u === "solid" ? (t.background = `var(--cui-${e}-solid, var(--cui-${e}))`, t.color = `var(--cui-${e}-text)`, t.border = "1px solid transparent", t["--_alert-icon-color"] = `var(--cui-${e}-text)`, t["--_alert-dismiss-color"] = `var(--cui-${e}-text)`) : u === "outline" ? (t.background = "transparent", t.color = `var(--cui-${e})`, t.border = `1px solid var(--cui-${e}-border)`, t["--_alert-icon-color"] = `var(--cui-${e})`, t["--_alert-dismiss-color"] = `var(--cui-${e})`) : (t.background = `var(--cui-${e}-bg)`, t.color = "var(--cui-text-body)", t.border = `1px solid var(--cui-${e}-border)`, t["--_alert-icon-color"] = `var(--cui-${e})`, t["--_alert-dismiss-color"] = "var(--cui-text-secondary)"), t;
67
- }), k = c(() => V[o.color] ?? "info"), h = c(() => O(o.color, o.live)), C = T();
68
- return (e, u) => m.value ? B((r(), s("div", I({
68
+ }), c = d(() => z(o.icon, o.color)), h = d(() => E(o.color, o.live)), x = q();
69
+ return (e, u) => v.value ? I((r(), a("div", V({
69
70
  key: 0,
70
71
  class: ["cui-alert", [
71
72
  `cui-alert--entrance-${i.entrance}`,
72
73
  { "cui-alert--mounted": l.value },
73
74
  i.animation !== "none" ? `cui-alert--${i.animation}` : ""
74
75
  ]],
75
- style: g.value
76
+ style: p.value
76
77
  }, h.value), [
77
- i.noIcon ? a("", !0) : (r(), s("div", z, [
78
- d(e.$slots, "icon", {}, () => [
79
- b($, {
80
- name: k.value,
78
+ i.noIcon ? s("", !0) : (r(), a("div", L, [
79
+ m(e.$slots, "icon", {}, () => [
80
+ c.value.text ? (r(), a(w, { key: 0 }, [
81
+ A($(c.value.text), 1)
82
+ ], 64)) : (r(), N(y, {
83
+ key: 1,
84
+ name: c.value.name,
81
85
  size: "1.25rem"
82
- }, null, 8, ["name"])
86
+ }, null, 8, ["name"]))
83
87
  ], !0)
84
88
  ])),
85
- N("div", E, [
86
- i.title ? (r(), s("div", L, w(i.title), 1)) : a("", !0),
87
- e.$slots.default ? (r(), s("div", P, [
88
- d(e.$slots, "default", {}, void 0, !0)
89
- ])) : a("", !0),
90
- e.$slots.actions ? (r(), s("div", q, [
91
- d(e.$slots, "actions", {}, void 0, !0)
92
- ])) : a("", !0)
89
+ S("div", P, [
90
+ i.title ? (r(), a("div", U, $(i.title), 1)) : s("", !0),
91
+ e.$slots.default ? (r(), a("div", j, [
92
+ m(e.$slots, "default", {}, void 0, !0)
93
+ ])) : s("", !0),
94
+ e.$slots.actions ? (r(), a("div", G, [
95
+ m(e.$slots, "actions", {}, void 0, !0)
96
+ ])) : s("", !0)
93
97
  ]),
94
- i.dismissible ? (r(), s("button", {
98
+ i.dismissible ? (r(), a("button", {
95
99
  key: 1,
96
100
  type: "button",
97
101
  class: "cui-alert__dismiss",
98
- "aria-label": M(C).dismiss,
99
- onClick: v
102
+ "aria-label": T(x).dismiss,
103
+ onClick: f
100
104
  }, [
101
- b($, {
105
+ M(y, {
102
106
  name: "x",
103
107
  size: "0.875rem"
104
108
  })
105
- ], 8, F)) : a("", !0)
109
+ ], 8, H)) : s("", !0)
106
110
  ], 16)), [
107
- [S, !i.hidden]
108
- ]) : a("", !0);
111
+ [R, !i.hidden]
112
+ ]) : s("", !0);
109
113
  }
110
114
  });
111
115
  export {
112
- Q as default
116
+ Y as default
113
117
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./CuiBadge.vue2.js";
2
2
  /* empty css */
3
- import t from "../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b21f1636"]]);
3
+ import a from "../_virtual/_plugin-vue_export-helper.js";
4
+ const p = /* @__PURE__ */ a(o, [["__scopeId", "data-v-0a96d4a3"]]);
5
5
  export {
6
- m as default
6
+ p as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as z, computed as s, withDirectives as c, openBlock as i, createElementBlock as l, normalizeClass as m, createElementVNode as b, normalizeStyle as d, createCommentVNode as v, vShow as f, renderSlot as C, withModifiers as h, unref as x, createVNode as B } from "vue";
1
+ import { defineComponent as z, computed as s, withDirectives as c, openBlock as n, createElementBlock as r, normalizeClass as m, createElementVNode as v, normalizeStyle as u, createCommentVNode as b, vShow as f, renderSlot as C, withModifiers as h, unref as x, createVNode as B } from "vue";
2
2
  import { clampSize as w } from "../utils/sizing.js";
3
3
  import { warnVariantColor as E } from "../utils/devWarn.js";
4
4
  import V from "./CuiIcon.vue.js";
@@ -21,57 +21,57 @@ const N = { class: "cui-badge__content" }, D = ["aria-label"], U = /* @__PURE__
21
21
  E("CuiBadge", { value: t.variant, allowed: ["solid", "subtle", "outline"] }, t.color);
22
22
  const y = {
23
23
  none: "0",
24
- sm: "0.25rem",
25
- md: "var(--cui-button-radius, 0.375rem)",
26
- lg: "0.5rem",
24
+ sm: "var(--cui-radius-sm, 0.25rem)",
25
+ md: "var(--cui-button-radius, var(--cui-radius-md, 0.375rem))",
26
+ lg: "var(--cui-radius-lg, 0.5rem)",
27
27
  full: "9999px"
28
28
  }, $ = g, k = s(() => {
29
- const o = t.color, n = t.variant, e = {};
30
- return n === "solid" ? (e.background = `var(--cui-${o}-solid, var(--cui-${o}))`, e.color = `var(--cui-${o}-text)`, e.border = "1px solid transparent") : n === "outline" ? (e.background = "transparent", e.color = `var(--cui-${o})`, e.border = `1px solid var(--cui-${o}-border)`) : (e.background = `var(--cui-${o}-bg)`, e.color = `var(--cui-${o})`, e.border = "1px solid transparent"), e.borderRadius = y[t.rounded], e;
31
- }), u = s(() => ({
29
+ const o = t.color, i = t.variant, e = {};
30
+ return i === "solid" ? (e.background = `var(--cui-${o}-solid, var(--cui-${o}))`, e.color = `var(--cui-${o}-text)`, e.border = "1px solid transparent") : i === "outline" ? (e.background = "transparent", e.color = `var(--cui-${o})`, e.border = `1px solid var(--cui-${o}-border)`) : (e.background = `var(--cui-${o}-bg)`, e.color = `var(--cui-${o})`, e.border = "1px solid transparent"), e.borderRadius = y[t.rounded], e;
31
+ }), d = s(() => ({
32
32
  background: `var(--cui-${t.color})`
33
- })), r = s(() => w(t.size, p)), S = M();
34
- return (o, n) => a.dot ? c((i(), l("span", {
33
+ })), l = s(() => w(t.size, p)), S = M();
34
+ return (o, i) => a.dot ? c((n(), r("span", {
35
35
  key: 0,
36
36
  class: m(["cui-badge cui-badge--dot", [
37
- `cui-badge--${r.value}`,
37
+ `cui-badge--${l.value}`,
38
38
  a.animation !== "none" ? `cui-badge--${a.animation}` : ""
39
39
  ]])
40
40
  }, [
41
- b("span", {
41
+ v("span", {
42
42
  class: "cui-badge__dot",
43
- style: d(u.value)
43
+ style: u(d.value)
44
44
  }, null, 4),
45
- a.animation === "ping" ? (i(), l("span", {
45
+ a.animation === "ping" ? (n(), r("span", {
46
46
  key: 0,
47
47
  class: "cui-badge__ping",
48
- style: d(u.value)
49
- }, null, 4)) : v("", !0)
48
+ style: u(d.value)
49
+ }, null, 4)) : b("", !0)
50
50
  ], 2)), [
51
51
  [f, !a.hidden]
52
- ]) : c((i(), l("span", {
52
+ ]) : c((n(), r("span", {
53
53
  key: 1,
54
54
  class: m(["cui-badge", [
55
- `cui-badge--${r.value}`,
55
+ `cui-badge--${l.value}`,
56
56
  a.animation !== "none" ? `cui-badge--${a.animation}` : ""
57
57
  ]]),
58
- style: d(k.value)
58
+ style: u(k.value)
59
59
  }, [
60
- b("span", N, [
60
+ v("span", N, [
61
61
  C(o.$slots, "default", {}, void 0, !0)
62
62
  ]),
63
- a.removable ? (i(), l("button", {
63
+ a.removable ? (n(), r("button", {
64
64
  key: 0,
65
65
  type: "button",
66
66
  class: "cui-badge__remove",
67
67
  "aria-label": x(S).remove,
68
- onClick: n[0] || (n[0] = h((e) => $("remove"), ["stop"]))
68
+ onClick: i[0] || (i[0] = h((e) => $("remove"), ["stop"]))
69
69
  }, [
70
70
  B(V, {
71
71
  name: "x",
72
- size: r.value === "sm" ? "0.625rem" : "0.75rem"
72
+ size: l.value === "sm" ? "0.625rem" : "0.75rem"
73
73
  }, null, 8, ["size"])
74
- ], 8, D)) : v("", !0)
74
+ ], 8, D)) : b("", !0)
75
75
  ], 6)), [
76
76
  [f, !a.hidden]
77
77
  ]);
@@ -1,23 +1,28 @@
1
- import type { HideableProps, ColorableProps, LiveRegionProps } from "../types/common";
2
- export type BannerPosition = "top" | "bottom";
1
+ import type { HideableProps, ColorableProps, LiveRegionProps, RoleIconProps } from "../types/common";
2
+ export type BannerPosition = "top" | "bottom" | "inline";
3
3
  export type BannerVariant = "solid" | "subtle";
4
- export interface CuiBannerProps extends HideableProps, ColorableProps, LiveRegionProps {
4
+ export interface CuiBannerProps extends HideableProps, ColorableProps, LiveRegionProps, RoleIconProps {
5
5
  /** Visual variant */
6
6
  variant?: BannerVariant;
7
- /** Sticky position */
7
+ /**
8
+ * Where the banner sits. `top` and `bottom` pin it to that page edge, sticky, with a
9
+ * rule against the edge. `inline` puts it in the flow instead — no edge rule, a closed
10
+ * box with a radius — for a notice inside a card or panel, where the rule has nothing
11
+ * to sit against (#120).
12
+ */
8
13
  position?: BannerPosition;
9
14
  /** Show dismiss button */
10
15
  dismissible?: boolean;
11
- /** Hide the default role icon */
12
- noIcon?: boolean;
13
16
  /** Persist dismissal to localStorage under this key */
14
17
  storageKey?: string;
15
18
  }
16
- declare var __VLS_4: {}, __VLS_6: {};
19
+ declare var __VLS_1: {}, __VLS_6: {}, __VLS_8: {};
17
20
  type __VLS_Slots = {} & {
18
- default?: (props: typeof __VLS_4) => any;
21
+ icon?: (props: typeof __VLS_1) => any;
19
22
  } & {
20
- actions?: (props: typeof __VLS_6) => any;
23
+ default?: (props: typeof __VLS_6) => any;
24
+ } & {
25
+ actions?: (props: typeof __VLS_8) => any;
21
26
  };
22
27
  declare const __VLS_component: import("vue").DefineComponent<CuiBannerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
23
28
  dismiss: () => any;
@@ -28,8 +33,8 @@ declare const __VLS_component: import("vue").DefineComponent<CuiBannerProps, {},
28
33
  color: import("..").CuiColor;
29
34
  variant: BannerVariant;
30
35
  position: BannerPosition;
31
- noIcon: boolean;
32
36
  dismissible: boolean;
37
+ noIcon: boolean;
33
38
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
34
39
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
35
40
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"CuiBanner.vue.d.ts","sourceRoot":"","sources":["../../src/components/CuiBanner.vue"],"names":[],"mappings":"AAkHA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAOtF,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,QAAQ,CAAC;AAC9C,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,QAAQ,CAAC;AAE/C,MAAM,WAAW,cAAe,SAAQ,aAAa,EAAE,cAAc,EAAE,eAAe;IACpF,qBAAqB;IACrB,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,sBAAsB;IACtB,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,0BAA0B;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,iCAAiC;IACjC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,uDAAuD;IACvD,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAiJD,QAAA,IAAI,OAAO,IAAU,EAAE,OAAO,IAAW,CAAE;AAC3C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AA4B/C,QAAA,MAAM,eAAe;;;;;;;aAzLT,aAAa;cAEZ,cAAc;YAIhB,OAAO;iBAFF,OAAO;6EA6LrB,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":"CuiBanner.vue.d.ts","sourceRoot":"","sources":["../../src/components/CuiBanner.vue"],"names":[],"mappings":"AA4NA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAQrG,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,QAAQ,GAAG,QAAQ,CAAC;AACzD,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,QAAQ,CAAC;AAE/C,MAAM,WAAW,cAAe,SAAQ,aAAa,EAAE,cAAc,EAAE,eAAe,EAAE,aAAa;IACnG,qBAAqB;IACrB,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,0BAA0B;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,uDAAuD;IACvD,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAoLD,QAAA,IAAI,OAAO,IAAU,EAAE,OAAO,IAAU,EAAE,OAAO,IAAW,CAAE;AAC9D,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GACzC;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AA6B/C,QAAA,MAAM,eAAe;;;;;;;aAjOT,aAAa;cAOZ,cAAc;iBAEX,OAAO;;6EAgOrB,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,82 +1,7 @@
1
- import { defineComponent as g, ref as h, computed as s, withDirectives as k, openBlock as i, createElementBlock as l, mergeProps as b, createBlock as a, createCommentVNode as r, createElementVNode as x, renderSlot as c, withCtx as $, createVNode as C, vShow as B } from "vue";
2
- import d from "./CuiIcon.vue.js";
3
- import I from "./CuiButton.vue.js";
4
- import { COLOR_ICON_MAP as w } from "../utils/colorIconMap.js";
5
- import { resolveLiveRegion as z } from "../utils/liveRegion.js";
6
- import { safeGetItem as K, safeSetItem as N } from "../utils/storage.js";
7
- const S = { style: { flex: "1", "font-size": "0.875rem", "font-weight": "500", "text-align": "center" } }, _ = {
8
- key: 1,
9
- style: { "flex-shrink": "0", display: "flex", "align-items": "center", gap: "calc(0.5rem * var(--cui-density-scale, 1))" }
10
- }, j = /* @__PURE__ */ g({
11
- __name: "CuiBanner",
12
- props: {
13
- variant: { default: "subtle" },
14
- position: { default: "top" },
15
- dismissible: { type: Boolean, default: !0 },
16
- noIcon: { type: Boolean, default: !1 },
17
- storageKey: {},
18
- hidden: { type: Boolean, default: !1 },
19
- color: { default: "primary" },
20
- live: {}
21
- },
22
- emits: ["dismiss"],
23
- setup(t, { emit: u }) {
24
- const e = t, m = u, n = h(
25
- e.storageKey ? K(`cui-banner-${e.storageKey}`) === "1" : !1
26
- );
27
- function f() {
28
- n.value = !0, e.storageKey && N(`cui-banner-${e.storageKey}`, "1"), m("dismiss");
29
- }
30
- const p = s(() => w[e.color] ?? "info"), v = s(() => z(e.color, e.live)), y = s(() => {
31
- const o = {
32
- position: "sticky",
33
- left: "0",
34
- right: "0",
35
- zIndex: "50",
36
- display: "flex",
37
- alignItems: "center",
38
- justifyContent: "center",
39
- gap: "calc(0.75rem * var(--cui-density-scale, 1))",
40
- padding: "calc(0.625rem * var(--cui-density-scale, 1)) calc(1rem * var(--cui-density-scale, 1))"
41
- };
42
- return o[e.position] = "0", e.variant === "solid" ? (o.background = `var(--cui-${e.color}-solid, var(--cui-${e.color}))`, o.color = `var(--cui-${e.color}-text, white)`) : (o.background = `var(--cui-${e.color}-bg)`, o.color = `var(--cui-${e.color})`, o.borderBottom = e.position === "top" ? `1px solid var(--cui-${e.color}-border)` : "none", o.borderTop = e.position === "bottom" ? `1px solid var(--cui-${e.color}-border)` : "none"), o;
43
- });
44
- return (o, O) => n.value ? r("", !0) : k((i(), l("div", b({
45
- key: 0,
46
- style: y.value
47
- }, v.value), [
48
- t.noIcon ? r("", !0) : (i(), a(d, {
49
- key: 0,
50
- name: p.value,
51
- size: "1.125rem",
52
- style: { "flex-shrink": "0" }
53
- }, null, 8, ["name"])),
54
- x("div", S, [
55
- c(o.$slots, "default")
56
- ]),
57
- o.$slots.actions ? (i(), l("div", _, [
58
- c(o.$slots, "actions")
59
- ])) : r("", !0),
60
- t.dismissible ? (i(), a(I, {
61
- key: 2,
62
- variant: "ghost",
63
- size: "xs",
64
- style: { "flex-shrink": "0", color: "currentColor", opacity: "0.7" },
65
- onClick: f
66
- }, {
67
- default: $(() => [
68
- C(d, {
69
- name: "x",
70
- size: "0.875rem"
71
- })
72
- ]),
73
- _: 1
74
- })) : r("", !0)
75
- ], 16)), [
76
- [B, !t.hidden]
77
- ]);
78
- }
79
- });
1
+ import o from "./CuiBanner.vue2.js";
2
+ /* empty css */
3
+ import r from "../_virtual/_plugin-vue_export-helper.js";
4
+ const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-10c192b3"]]);
80
5
  export {
81
- j as default
6
+ p as default
82
7
  };
@@ -1,4 +1,92 @@
1
- import f from "./CuiBanner.vue.js";
1
+ import { defineComponent as $, ref as _, computed as a, withDirectives as h, openBlock as n, createElementBlock as r, mergeProps as k, renderSlot as c, Fragment as B, createTextVNode as C, toDisplayString as I, createBlock as u, createCommentVNode as s, createElementVNode as x, unref as K, withCtx as S, createVNode as w, vShow as N } from "vue";
2
+ import m from "./CuiIcon.vue.js";
3
+ import V from "./CuiButton.vue.js";
4
+ import { resolveRoleIcon as z } from "../utils/colorIconMap.js";
5
+ import { resolveLiveRegion as D } from "../utils/liveRegion.js";
6
+ import { safeGetItem as E, safeSetItem as R } from "../utils/storage.js";
7
+ import { useMessages as A } from "../composables/useMessages.js";
8
+ const F = {
9
+ key: 0,
10
+ class: "cui-banner__icon"
11
+ }, G = { class: "cui-banner__content" }, L = {
12
+ key: 1,
13
+ class: "cui-banner__actions"
14
+ }, O = /* @__PURE__ */ $({
15
+ __name: "CuiBanner",
16
+ props: {
17
+ variant: { default: "subtle" },
18
+ position: { default: "top" },
19
+ dismissible: { type: Boolean, default: !0 },
20
+ storageKey: {},
21
+ hidden: { type: Boolean, default: !1 },
22
+ color: { default: "primary" },
23
+ live: {},
24
+ icon: {},
25
+ noIcon: { type: Boolean, default: !1 }
26
+ },
27
+ emits: ["dismiss"],
28
+ setup(o, { emit: d }) {
29
+ const t = o, v = d, l = _(
30
+ t.storageKey ? E(`cui-banner-${t.storageKey}`) === "1" : !1
31
+ );
32
+ function f() {
33
+ l.value = !0, t.storageKey && R(`cui-banner-${t.storageKey}`, "1"), v("dismiss");
34
+ }
35
+ const i = a(() => z(t.icon, t.color)), b = A(), y = a(() => D(t.color, t.live)), p = a(() => {
36
+ const e = t.color;
37
+ return t.variant === "solid" ? {
38
+ "--_banner-bg": `var(--cui-${e}-solid, var(--cui-${e}))`,
39
+ "--_banner-color": `var(--cui-${e}-text, white)`,
40
+ "--_banner-border-color": "transparent"
41
+ } : {
42
+ "--_banner-bg": `var(--cui-${e}-bg)`,
43
+ "--_banner-color": `var(--cui-${e})`,
44
+ "--_banner-border-color": `var(--cui-${e}-border)`
45
+ };
46
+ });
47
+ return (e, g) => l.value ? s("", !0) : h((n(), r("div", k({
48
+ key: 0,
49
+ class: ["cui-banner", [`cui-banner--${o.variant}`, `cui-banner--${o.position}`]],
50
+ style: p.value
51
+ }, y.value), [
52
+ o.noIcon ? s("", !0) : (n(), r("span", F, [
53
+ c(e.$slots, "icon", {}, () => [
54
+ i.value.text ? (n(), r(B, { key: 0 }, [
55
+ C(I(i.value.text), 1)
56
+ ], 64)) : (n(), u(m, {
57
+ key: 1,
58
+ name: i.value.name,
59
+ size: "1.125rem"
60
+ }, null, 8, ["name"]))
61
+ ], !0)
62
+ ])),
63
+ x("div", G, [
64
+ c(e.$slots, "default", {}, void 0, !0)
65
+ ]),
66
+ e.$slots.actions ? (n(), r("div", L, [
67
+ c(e.$slots, "actions", {}, void 0, !0)
68
+ ])) : s("", !0),
69
+ o.dismissible ? (n(), u(V, {
70
+ key: 2,
71
+ variant: "ghost",
72
+ size: "xs",
73
+ class: "cui-banner__dismiss",
74
+ "aria-label": K(b).dismiss,
75
+ onClick: f
76
+ }, {
77
+ default: S(() => [
78
+ w(m, {
79
+ name: "x",
80
+ size: "0.875rem"
81
+ })
82
+ ]),
83
+ _: 1
84
+ }, 8, ["aria-label"])) : s("", !0)
85
+ ], 16)), [
86
+ [N, !o.hidden]
87
+ ]);
88
+ }
89
+ });
2
90
  export {
3
- f as default
91
+ O as default
4
92
  };
@@ -13,6 +13,14 @@ export interface CuiButtonProps extends HideableProps, ColorableProps, SizeableP
13
13
  to?: string | object;
14
14
  /** Loading state — shows spinner and disables interaction */
15
15
  loading?: boolean;
16
+ /**
17
+ * Icon-only button: square, with no horizontal padding.
18
+ *
19
+ * Also opts out of the `--cui-control-min-target` floor, so an `xs` button at compact
20
+ * density can go below the 24px WCAG 2.5.8 minimum. That is the only size/density
21
+ * combination where the floor currently binds.
22
+ */
23
+ icon?: boolean;
16
24
  }
17
25
  declare function focus(opts?: FocusOptions): void;
18
26
  declare function blur(): void;
@@ -33,6 +41,7 @@ declare const __VLS_component: import("vue").DefineComponent<CuiButtonProps, {
33
41
  size: import("../index.js").CuiSize;
34
42
  color: CuiColor;
35
43
  type: "button" | "submit" | "reset";
44
+ icon: boolean;
36
45
  variant: ButtonVariant;
37
46
  rounded: CuiRounded;
38
47
  loading: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"CuiButton.vue.d.ts","sourceRoot":"","sources":["../../src/components/CuiButton.vue"],"names":[],"mappings":"AAsRA,OAAO,KAAK,EACV,QAAQ,EACR,UAAU,EACV,aAAa,EACb,cAAc,EACd,aAAa,EACb,gBAAgB,EACjB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC;AAEnE,MAAM,WAAW,cACf,SAAQ,aAAa,EACnB,cAAc,EACd,aAAa,EACb,gBAAgB;IAClB,qBAAqB;IACrB,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,oBAAoB;IACpB,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,uBAAuB;IACvB,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;IACrC,4CAA4C;IAC5C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,gDAAgD;IAChD,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACrB,6DAA6D;IAC7D,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AA+CD,iBAAS,KAAK,CAAC,IAAI,CAAC,EAAE,YAAY,QAEjC;AAED,iBAAS,IAAI,SAEZ;AAsLD,QAAA,IAAuB,OAAO,IAAU,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AACrF,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC3C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC7C;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AA0B/C,QAAA,MAAM,eAAe;;;;;;;;UAhRZ,QAAQ,GAAG,QAAQ,GAAG,OAAO;aAJ1B,aAAa;aAEb,UAAU;aAQV,OAAO;;6EAkRjB,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":"CuiButton.vue.d.ts","sourceRoot":"","sources":["../../src/components/CuiButton.vue"],"names":[],"mappings":"AAmUA,OAAO,KAAK,EACV,QAAQ,EACR,UAAU,EACV,aAAa,EACb,cAAc,EACd,aAAa,EACb,gBAAgB,EACjB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC;AAEnE,MAAM,WAAW,cACf,SAAQ,aAAa,EACnB,cAAc,EACd,aAAa,EACb,gBAAgB;IAClB,qBAAqB;IACrB,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,oBAAoB;IACpB,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,uBAAuB;IACvB,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;IACrC,4CAA4C;IAC5C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,gDAAgD;IAChD,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACrB,6DAA6D;IAC7D,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAgDD,iBAAS,KAAK,CAAC,IAAI,CAAC,EAAE,YAAY,QAEjC;AAED,iBAAS,IAAI,SAEZ;AAwLD,QAAA,IAAuB,OAAO,IAAU,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AACrF,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC3C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC7C;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AA0B/C,QAAA,MAAM,eAAe;;;;;;;;UA3RZ,QAAQ,GAAG,QAAQ,GAAG,OAAO;UAc7B,OAAO;aAlBJ,aAAa;aAEb,UAAU;aAQV,OAAO;;6EA6RjB,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,7 +1,7 @@
1
1
  import o from "./CuiButton.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-0eda1997"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-871f993d"]]);
5
5
  export {
6
6
  p as default
7
7
  };