@caspeco/casper-ui-library 11.4.0 → 12.0.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 (280) hide show
  1. package/dist/components/accordion/accordion-item.js +10 -10
  2. package/dist/components/accordion/accordion-panel.js +4 -4
  3. package/dist/components/accordion/accordion.js +4 -4
  4. package/dist/components/alert/alert.js +10 -10
  5. package/dist/components/badge/badge.js +18 -18
  6. package/dist/components/box/box.js +3 -3
  7. package/dist/components/breadcrumbs/breadcrumb-item.js +4 -4
  8. package/dist/components/breadcrumbs/breadcrumb-link.js +3 -3
  9. package/dist/components/breadcrumbs/breadcrumbs.js +22 -22
  10. package/dist/components/button/button.d.ts +1 -1
  11. package/dist/components/button/button.js +5 -5
  12. package/dist/components/checkbox/checkbox-icon.js +3 -3
  13. package/dist/components/checkbox/checkbox.js +7 -7
  14. package/dist/components/checkbox-group/checkbox-group.js +3 -3
  15. package/dist/components/collapsible/collapsible.d.ts +1 -1
  16. package/dist/components/collapsible/collapsible.d.ts.map +1 -1
  17. package/dist/components/collapsible/collapsible.js +30 -29
  18. package/dist/components/collapsible/collapsible.translations.d.ts +6 -0
  19. package/dist/components/collapsible/collapsible.translations.d.ts.map +1 -0
  20. package/dist/components/collapsible/collapsible.translations.js +54 -0
  21. package/dist/components/collapsible/types.d.ts +0 -6
  22. package/dist/components/collapsible/types.d.ts.map +1 -1
  23. package/dist/components/combobox/combobox-button.d.ts +1 -1
  24. package/dist/components/combobox/combobox-button.d.ts.map +1 -1
  25. package/dist/components/combobox/combobox-button.js +66 -64
  26. package/dist/components/combobox/combobox-item.js +8 -8
  27. package/dist/components/combobox/combobox-menu.d.ts.map +1 -1
  28. package/dist/components/combobox/combobox-menu.js +95 -94
  29. package/dist/components/combobox/combobox.d.ts +1 -1
  30. package/dist/components/combobox/combobox.d.ts.map +1 -1
  31. package/dist/components/combobox/combobox.js +91 -91
  32. package/dist/components/combobox/combobox.translations.d.ts +10 -0
  33. package/dist/components/combobox/combobox.translations.d.ts.map +1 -0
  34. package/dist/components/combobox/combobox.translations.js +102 -0
  35. package/dist/components/combobox/index.d.ts +1 -1
  36. package/dist/components/combobox/index.d.ts.map +1 -1
  37. package/dist/components/combobox/types.d.ts +0 -15
  38. package/dist/components/combobox/types.d.ts.map +1 -1
  39. package/dist/components/date-picker/base-date-picker.d.ts +1 -1
  40. package/dist/components/date-picker/base-date-picker.d.ts.map +1 -1
  41. package/dist/components/date-picker/base-date-picker.js +163 -162
  42. package/dist/components/date-picker/date-multi-picker.d.ts +1 -1
  43. package/dist/components/date-picker/date-multi-picker.d.ts.map +1 -1
  44. package/dist/components/date-picker/date-multi-picker.js +20 -21
  45. package/dist/components/date-picker/date-picker-date-cell.js +27 -27
  46. package/dist/components/date-picker/date-picker-header.d.ts.map +1 -1
  47. package/dist/components/date-picker/date-picker-header.js +84 -116
  48. package/dist/components/date-picker/date-picker-week-cell.js +4 -4
  49. package/dist/components/date-picker/date-picker.composition.d.ts.map +1 -1
  50. package/dist/components/date-picker/date-picker.d.ts +1 -1
  51. package/dist/components/date-picker/date-picker.d.ts.map +1 -1
  52. package/dist/components/date-picker/date-picker.js +20 -21
  53. package/dist/components/date-picker/date-picker.translations.d.ts +6 -0
  54. package/dist/components/date-picker/date-picker.translations.d.ts.map +1 -0
  55. package/dist/components/date-picker/date-picker.translations.js +54 -0
  56. package/dist/components/date-picker/date-range-picker.d.ts +1 -1
  57. package/dist/components/date-picker/date-range-picker.d.ts.map +1 -1
  58. package/dist/components/date-picker/date-range-picker.js +15 -16
  59. package/dist/components/date-picker/date-week-picker.d.ts +1 -1
  60. package/dist/components/date-picker/date-week-picker.d.ts.map +1 -1
  61. package/dist/components/date-picker/date-week-picker.js +13 -14
  62. package/dist/components/date-picker/types.d.ts +4 -10
  63. package/dist/components/date-picker/types.d.ts.map +1 -1
  64. package/dist/components/divider/divider.js +3 -3
  65. package/dist/components/drawer/drawer.js +6 -6
  66. package/dist/components/drawer/inline-drawer.js +4 -4
  67. package/dist/components/fieldset/fieldset-error-text.js +3 -3
  68. package/dist/components/fieldset/fieldset-helper-text.js +3 -3
  69. package/dist/components/fieldset/fieldset-legend.js +3 -3
  70. package/dist/components/fieldset/fieldset.js +3 -3
  71. package/dist/components/flex/flex.js +3 -3
  72. package/dist/components/form-control/form-control.js +3 -3
  73. package/dist/components/form-control/form-error-message.js +3 -3
  74. package/dist/components/form-control/form-helper-text.js +3 -3
  75. package/dist/components/form-control/form-label.js +5 -5
  76. package/dist/components/grid/grid-item.js +3 -3
  77. package/dist/components/grid/grid.js +3 -3
  78. package/dist/components/heading/heading.js +3 -3
  79. package/dist/components/highlight/highlight.js +3 -3
  80. package/dist/components/icon/create-icon.js +7 -7
  81. package/dist/components/icon-button/icon-button.js +4 -4
  82. package/dist/components/image/image.js +3 -3
  83. package/dist/components/image-upload/image-upload-dropzone.d.ts +1 -3
  84. package/dist/components/image-upload/image-upload-dropzone.d.ts.map +1 -1
  85. package/dist/components/image-upload/image-upload-dropzone.js +75 -74
  86. package/dist/components/image-upload/image-upload-icons.js +11 -11
  87. package/dist/components/image-upload/image-upload-modal.d.ts +2 -3
  88. package/dist/components/image-upload/image-upload-modal.d.ts.map +1 -1
  89. package/dist/components/image-upload/image-upload-modal.js +69 -69
  90. package/dist/components/image-upload/image-upload.d.ts +1 -1
  91. package/dist/components/image-upload/image-upload.d.ts.map +1 -1
  92. package/dist/components/image-upload/image-upload.js +43 -44
  93. package/dist/components/image-upload/image-upload.translations.d.ts +12 -0
  94. package/dist/components/image-upload/image-upload.translations.d.ts.map +1 -0
  95. package/dist/components/image-upload/image-upload.translations.js +126 -0
  96. package/dist/components/image-upload/types.d.ts +0 -3
  97. package/dist/components/image-upload/types.d.ts.map +1 -1
  98. package/dist/components/input/input.d.ts +1 -1
  99. package/dist/components/input/input.js +5 -5
  100. package/dist/components/link/link.js +3 -3
  101. package/dist/components/list/list-item.js +3 -3
  102. package/dist/components/list/list.js +3 -3
  103. package/dist/components/menu/menu-box-button.js +4 -4
  104. package/dist/components/menu/menu-button.js +4 -4
  105. package/dist/components/menu/menu-group.js +11 -11
  106. package/dist/components/menu/menu-icon-button.js +4 -4
  107. package/dist/components/menu/menu-item.js +7 -7
  108. package/dist/components/menu/menu-list.js +3 -3
  109. package/dist/components/menu/menu.js +4 -4
  110. package/dist/components/message/message.js +8 -8
  111. package/dist/components/modal/modal-body.js +3 -3
  112. package/dist/components/modal/modal-close-button.js +5 -5
  113. package/dist/components/modal/modal-footer.js +3 -3
  114. package/dist/components/modal/modal-header.js +3 -3
  115. package/dist/components/modal/modal.js +8 -8
  116. package/dist/components/navigation-list/navigation-list-item.js +10 -10
  117. package/dist/components/navigation-list/navigation-list.js +4 -4
  118. package/dist/components/paginator/paginator.composition.d.ts.map +1 -1
  119. package/dist/components/paginator/paginator.d.ts +1 -4
  120. package/dist/components/paginator/paginator.d.ts.map +1 -1
  121. package/dist/components/paginator/paginator.js +31 -30
  122. package/dist/components/paginator/paginator.translations.d.ts +7 -0
  123. package/dist/components/paginator/paginator.translations.d.ts.map +1 -0
  124. package/dist/components/paginator/paginator.translations.js +66 -0
  125. package/dist/components/phone-input/country-data.d.ts +2 -2
  126. package/dist/components/phone-input/country-data.d.ts.map +1 -1
  127. package/dist/components/phone-input/country-list.js +6 -6
  128. package/dist/components/phone-input/country-selector.d.ts +1 -4
  129. package/dist/components/phone-input/country-selector.d.ts.map +1 -1
  130. package/dist/components/phone-input/country-selector.js +86 -84
  131. package/dist/components/phone-input/phone-input-helpers.d.ts +4 -5
  132. package/dist/components/phone-input/phone-input-helpers.d.ts.map +1 -1
  133. package/dist/components/phone-input/phone-input-helpers.js +33 -34
  134. package/dist/components/phone-input/phone-input.d.ts +1 -1
  135. package/dist/components/phone-input/phone-input.d.ts.map +1 -1
  136. package/dist/components/phone-input/phone-input.js +38 -38
  137. package/dist/components/phone-input/phone-input.translations.d.ts +10 -0
  138. package/dist/components/phone-input/phone-input.translations.d.ts.map +1 -0
  139. package/dist/components/phone-input/phone-input.translations.js +102 -0
  140. package/dist/components/phone-input/types.d.ts +0 -3
  141. package/dist/components/phone-input/types.d.ts.map +1 -1
  142. package/dist/components/phone-input/use-phone-input.d.ts +0 -3
  143. package/dist/components/phone-input/use-phone-input.d.ts.map +1 -1
  144. package/dist/components/phone-input/use-phone-input.js +82 -81
  145. package/dist/components/quantity-button/quantity-button.js +12 -12
  146. package/dist/components/radio/radio-group.js +4 -4
  147. package/dist/components/radio/radio.d.ts +1 -1
  148. package/dist/components/radio/radio.js +14 -14
  149. package/dist/components/radio-card/radio-card-group.js +3 -3
  150. package/dist/components/radio-card/radio-card.d.ts +1 -1
  151. package/dist/components/radio-card/radio-card.js +7 -7
  152. package/dist/components/rich-text-editor/index.d.ts +1 -1
  153. package/dist/components/rich-text-editor/index.d.ts.map +1 -1
  154. package/dist/components/rich-text-editor/rich-text-editor-context.d.ts +0 -2
  155. package/dist/components/rich-text-editor/rich-text-editor-context.d.ts.map +1 -1
  156. package/dist/components/rich-text-editor/rich-text-editor-control.d.ts.map +1 -1
  157. package/dist/components/rich-text-editor/rich-text-editor-control.js +129 -128
  158. package/dist/components/rich-text-editor/rich-text-editor.d.ts +1 -1
  159. package/dist/components/rich-text-editor/rich-text-editor.d.ts.map +1 -1
  160. package/dist/components/rich-text-editor/rich-text-editor.js +22 -25
  161. package/dist/components/rich-text-editor/{translations.d.ts → rich-text-editor.translations.d.ts} +3 -5
  162. package/dist/components/rich-text-editor/rich-text-editor.translations.d.ts.map +1 -0
  163. package/dist/components/rich-text-editor/rich-text-editor.translations.js +234 -0
  164. package/dist/components/rich-text-editor/rich-text-renderer.js +4 -4
  165. package/dist/components/rich-text-editor/types.d.ts +0 -2
  166. package/dist/components/rich-text-editor/types.d.ts.map +1 -1
  167. package/dist/components/segmented-control/segmented-control.js +5 -5
  168. package/dist/components/select/select.js +5 -5
  169. package/dist/components/skeleton/skeleton-text.js +3 -3
  170. package/dist/components/skeleton/skeleton.js +3 -3
  171. package/dist/components/spinner/spinner.js +5 -5
  172. package/dist/components/stack/stack.d.ts +1 -1
  173. package/dist/components/stack/stack.js +3 -3
  174. package/dist/components/stepper/step.js +25 -25
  175. package/dist/components/stepper/stepper.js +8 -8
  176. package/dist/components/switch/switch.js +6 -6
  177. package/dist/components/table/table-cell.d.ts +1 -3
  178. package/dist/components/table/table-cell.d.ts.map +1 -1
  179. package/dist/components/table/table-cell.js +43 -46
  180. package/dist/components/table/table-column-resize-handle.d.ts.map +1 -1
  181. package/dist/components/table/table-column-resize-handle.js +22 -21
  182. package/dist/components/table/table-content.d.ts.map +1 -1
  183. package/dist/components/table/table-content.js +81 -79
  184. package/dist/components/table/table-context-provider.d.ts +1 -4
  185. package/dist/components/table/table-context-provider.d.ts.map +1 -1
  186. package/dist/components/table/table-context-provider.js +137 -140
  187. package/dist/components/table/table-drag-accessibility.d.ts +3 -3
  188. package/dist/components/table/table-drag-accessibility.d.ts.map +1 -1
  189. package/dist/components/table/table-drag-accessibility.js +10 -14
  190. package/dist/components/table/table-filter.d.ts.map +1 -1
  191. package/dist/components/table/table-filter.js +59 -59
  192. package/dist/components/table/table-header-dropdown.d.ts +0 -2
  193. package/dist/components/table/table-header-dropdown.d.ts.map +1 -1
  194. package/dist/components/table/table-header-dropdown.js +28 -27
  195. package/dist/components/table/table-header-row.d.ts.map +1 -1
  196. package/dist/components/table/table-header-row.js +53 -56
  197. package/dist/components/table/table-row-drag-handle.d.ts +1 -3
  198. package/dist/components/table/table-row-drag-handle.d.ts.map +1 -1
  199. package/dist/components/table/table-row-drag-handle.js +10 -9
  200. package/dist/components/table/table-row-expand-toggle-button.d.ts +1 -3
  201. package/dist/components/table/table-row-expand-toggle-button.d.ts.map +1 -1
  202. package/dist/components/table/table-row-expand-toggle-button.js +9 -8
  203. package/dist/components/table/table-row.d.ts.map +1 -1
  204. package/dist/components/table/table-row.js +5 -6
  205. package/dist/components/table/table-sorted-reorder-prompt.d.ts +1 -3
  206. package/dist/components/table/table-sorted-reorder-prompt.d.ts.map +1 -1
  207. package/dist/components/table/table-sorted-reorder-prompt.js +26 -25
  208. package/dist/components/table/table-toolbar-actions.d.ts.map +1 -1
  209. package/dist/components/table/table-toolbar-actions.js +4 -4
  210. package/dist/components/table/table-toolbar-add-button.d.ts.map +1 -1
  211. package/dist/components/table/table-toolbar-add-button.js +4 -4
  212. package/dist/components/table/table-toolbar-settings.d.ts.map +1 -1
  213. package/dist/components/table/table-toolbar-settings.js +110 -108
  214. package/dist/components/table/table-toolbar.js +11 -11
  215. package/dist/components/table/table.composition.d.ts.map +1 -1
  216. package/dist/components/table/table.d.ts +1 -1
  217. package/dist/components/table/table.d.ts.map +1 -1
  218. package/dist/components/table/table.js +31 -32
  219. package/dist/components/table/table.translations.d.ts +45 -0
  220. package/dist/components/table/table.translations.d.ts.map +1 -0
  221. package/dist/components/table/table.translations.js +522 -0
  222. package/dist/components/table/types.d.ts +0 -5
  223. package/dist/components/table/types.d.ts.map +1 -1
  224. package/dist/components/tabs/tab-list.js +3 -3
  225. package/dist/components/tabs/tab-panel.js +3 -3
  226. package/dist/components/tabs/tab-panels.js +3 -3
  227. package/dist/components/tabs/tab-with-image.js +10 -10
  228. package/dist/components/tabs/tab.js +4 -4
  229. package/dist/components/tabs/tabs.js +3 -3
  230. package/dist/components/tag/tag.js +28 -28
  231. package/dist/components/text/text.js +3 -3
  232. package/dist/components/textarea/textarea.js +3 -3
  233. package/dist/components/toaster/toaster.js +9 -9
  234. package/dist/components/toggle-button/toggle-button.js +3 -3
  235. package/dist/components/toggle-button/use-button-children.js +10 -10
  236. package/dist/components/tooltip/tooltip.d.ts +1 -1
  237. package/dist/components/tooltip/tooltip.js +8 -8
  238. package/dist/index.js +404 -402
  239. package/dist/node_modules/libphonenumber-js/metadata.mobile.json.js +13 -19
  240. package/dist/test-utils/render-with-theme.d.ts +5 -1
  241. package/dist/test-utils/render-with-theme.d.ts.map +1 -1
  242. package/dist/theme/index.d.ts +4 -0
  243. package/dist/theme/index.d.ts.map +1 -1
  244. package/dist/theme/locale-provider.d.ts +9 -0
  245. package/dist/theme/locale-provider.d.ts.map +1 -0
  246. package/dist/theme/locale-provider.js +14 -0
  247. package/dist/theme/locale-provider.spec.d.ts +2 -0
  248. package/dist/theme/locale-provider.spec.d.ts.map +1 -0
  249. package/dist/theme/theme-locale.d.ts +7 -0
  250. package/dist/theme/theme-locale.d.ts.map +1 -0
  251. package/dist/theme/theme-locale.js +8 -0
  252. package/dist/theme/theme-provider.d.ts +4 -1
  253. package/dist/theme/theme-provider.d.ts.map +1 -1
  254. package/dist/theme/theme-provider.js +30 -25
  255. package/dist/theme/translations.d.ts +14 -0
  256. package/dist/theme/translations.d.ts.map +1 -0
  257. package/dist/theme/translations.js +10 -0
  258. package/dist/theme/translations.spec.d.ts +2 -0
  259. package/dist/theme/translations.spec.d.ts.map +1 -0
  260. package/package.json +5 -5
  261. package/dist/components/collapsible/translations.d.ts +0 -32
  262. package/dist/components/collapsible/translations.d.ts.map +0 -1
  263. package/dist/components/collapsible/translations.js +0 -30
  264. package/dist/components/combobox/translations.d.ts +0 -9
  265. package/dist/components/combobox/translations.d.ts.map +0 -1
  266. package/dist/components/combobox/translations.js +0 -57
  267. package/dist/components/image-upload/translations.d.ts +0 -73
  268. package/dist/components/image-upload/translations.d.ts.map +0 -1
  269. package/dist/components/image-upload/translations.js +0 -66
  270. package/dist/components/paginator/translations.d.ts +0 -9
  271. package/dist/components/paginator/translations.d.ts.map +0 -1
  272. package/dist/components/paginator/translations.js +0 -36
  273. package/dist/components/phone-input/translations.d.ts +0 -60
  274. package/dist/components/phone-input/translations.d.ts.map +0 -1
  275. package/dist/components/phone-input/translations.js +0 -54
  276. package/dist/components/rich-text-editor/translations.d.ts.map +0 -1
  277. package/dist/components/rich-text-editor/translations.js +0 -120
  278. package/dist/components/table/translations.d.ts +0 -308
  279. package/dist/components/table/translations.d.ts.map +0 -1
  280. package/dist/components/table/translations.js +0 -267
@@ -2,48 +2,49 @@ import { require_compiler_runtime as e } from "../../node_modules/react/compiler
2
2
  import { ThemeColorVariable as t, ThemeSpaceVariable as n } from "../../theme/theme-types.js";
3
3
  import { ExpandIcon as r } from "../icon/icons/expand-icon.js";
4
4
  import { useRemoveAttributes as i } from "../../hooks/use-remove-attributes.js";
5
- import { translations as a } from "./translations.js";
6
- import { useLayoutEffect as o, useRef as s, useState as c } from "react";
7
- import { Box as l, Collapsible as u, Flex as d } from "@chakra-ui/react";
8
- import { jsx as f, jsxs as p } from "react/jsx-runtime";
5
+ import { useComponentTranslations as a } from "../../theme/translations.js";
6
+ import { collapsibleTranslations as o } from "./collapsible.translations.js";
7
+ import { useLayoutEffect as s, useRef as c, useState as l } from "react";
8
+ import { jsx as u, jsxs as d } from "react/jsx-runtime";
9
+ import { Box as f, Collapsible as p, Flex as m } from "@chakra-ui/react";
9
10
  //#region lib/components/collapsible/collapsible.tsx
10
- var m = e(), h = "200ms", g = (e) => {
11
- let t = (0, m.c)(23), { children: g, collapsedHeight: v, defaultExpanded: y, locale: b } = e, x = y === void 0 || y, S = b === void 0 ? "en-US" : b, [C, w] = c(x), [T, E] = c(!0), D = s(null), O = !T || C, k;
11
+ var h = e(), g = "200ms", _ = (e) => {
12
+ let t = (0, h.c)(23), { children: _, collapsedHeight: y, defaultExpanded: b } = e, x = b === void 0 || b, S = a(o), [C, w] = l(x), [T, E] = l(!0), D = c(null), O = !T || C, k;
12
13
  t[0] === Symbol.for("react.memo_cache_sentinel") ? (k = ["inert"], t[0] = k) : k = t[0], i(D, k, !O);
13
14
  let A, j;
14
- t[1] === v ? (A = t[2], j = t[3]) : (A = () => {
15
+ t[1] === y ? (A = t[2], j = t[3]) : (A = () => {
15
16
  let e = D.current;
16
17
  if (!e) return;
17
18
  let t = () => {
18
19
  let t = e.getBoundingClientRect().height;
19
- E(t > v);
20
+ E(t > y);
20
21
  };
21
22
  t();
22
23
  let n = new ResizeObserver(t);
23
24
  return n.observe(e), () => {
24
25
  n.disconnect();
25
26
  };
26
- }, j = [v], t[1] = v, t[2] = A, t[3] = j), o(A, j);
27
+ }, j = [y], t[1] = y, t[2] = A, t[3] = j), s(A, j);
27
28
  let M;
28
29
  t[4] === Symbol.for("react.memo_cache_sentinel") ? (M = (e) => {
29
30
  let { open: t } = e;
30
31
  w(t);
31
32
  }, t[4] = M) : M = t[4];
32
33
  let N, P;
33
- t[5] === Symbol.for("react.memo_cache_sentinel") ? (N = { animationDuration: h }, P = { animationDuration: h }, t[5] = N, t[6] = P) : (N = t[5], P = t[6]);
34
+ t[5] === Symbol.for("react.memo_cache_sentinel") ? (N = { animationDuration: g }, P = { animationDuration: g }, t[5] = N, t[6] = P) : (N = t[5], P = t[6]);
34
35
  let F;
35
- t[7] === g ? F = t[8] : (F = /* @__PURE__ */ f(u.Content, {
36
+ t[7] === _ ? F = t[8] : (F = /* @__PURE__ */ u(p.Content, {
36
37
  _open: N,
37
38
  _closed: P,
38
- children: /* @__PURE__ */ f(l, {
39
+ children: /* @__PURE__ */ u(f, {
39
40
  ref: D,
40
- children: g
41
+ children: _
41
42
  })
42
- }), t[7] = g, t[8] = F);
43
+ }), t[7] = _, t[8] = F);
43
44
  let I;
44
- t[9] === O ? I = t[10] : (I = !O && /* @__PURE__ */ f(_, {}), t[9] = O, t[10] = I);
45
+ t[9] === O ? I = t[10] : (I = !O && /* @__PURE__ */ u(v, {}), t[9] = O, t[10] = I);
45
46
  let L;
46
- t[11] !== T || t[12] !== O || t[13] !== S ? (L = T && /* @__PURE__ */ f(d, {
47
+ t[11] !== T || t[12] !== O || t[13] !== S ? (L = T && /* @__PURE__ */ u(m, {
47
48
  css: O ? { position: "relative" } : {
48
49
  position: "absolute",
49
50
  bottom: 0,
@@ -54,37 +55,37 @@ var m = e(), h = "200ms", g = (e) => {
54
55
  alignItems: "center",
55
56
  justifyContent: "center",
56
57
  width: "100%",
57
- children: /* @__PURE__ */ f(u.Trigger, { children: /* @__PURE__ */ f(u.Indicator, {
58
+ children: /* @__PURE__ */ u(p.Trigger, { children: /* @__PURE__ */ u(p.Indicator, {
58
59
  width: 40,
59
60
  height: 40,
60
61
  display: "flex",
61
62
  alignItems: "center",
62
63
  justifyContent: "center",
63
- transition: `transform ${h} ease`,
64
- "aria-label": O ? a[S].collapseContent : a[S].expandContent,
64
+ transition: `transform ${g} ease`,
65
+ "aria-label": O ? S.collapseContent : S.expandContent,
65
66
  _open: { transform: "rotate(180deg)" },
66
- children: /* @__PURE__ */ f(r, {})
67
+ children: /* @__PURE__ */ u(r, {})
67
68
  }) })
68
69
  }), t[11] = T, t[12] = O, t[13] = S, t[14] = L) : L = t[14];
69
70
  let R;
70
- t[15] !== I || t[16] !== L || t[17] !== F ? (R = /* @__PURE__ */ p(l, {
71
+ t[15] !== L || t[16] !== F || t[17] !== I ? (R = /* @__PURE__ */ d(f, {
71
72
  position: "relative",
72
73
  children: [
73
74
  F,
74
75
  I,
75
76
  L
76
77
  ]
77
- }), t[15] = I, t[16] = L, t[17] = F, t[18] = R) : R = t[18];
78
+ }), t[15] = L, t[16] = F, t[17] = I, t[18] = R) : R = t[18];
78
79
  let z;
79
- return t[19] !== v || t[20] !== O || t[21] !== R ? (z = /* @__PURE__ */ f(u.Root, {
80
- collapsedHeight: v,
80
+ return t[19] !== y || t[20] !== O || t[21] !== R ? (z = /* @__PURE__ */ u(p.Root, {
81
+ collapsedHeight: y,
81
82
  open: O,
82
83
  onOpenChange: M,
83
84
  children: R
84
- }), t[19] = v, t[20] = O, t[21] = R, t[22] = z) : z = t[22], z;
85
- }, _ = () => {
86
- let e = (0, m.c)(1), n;
87
- return e[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ f(l, {
85
+ }), t[19] = y, t[20] = O, t[21] = R, t[22] = z) : z = t[22], z;
86
+ }, v = () => {
87
+ let e = (0, h.c)(1), n;
88
+ return e[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ u(f, {
88
89
  "data-testid": "blur-overlay",
89
90
  css: {
90
91
  position: "absolute",
@@ -115,4 +116,4 @@ var m = e(), h = "200ms", g = (e) => {
115
116
  }), e[0] = n) : n = e[0], n;
116
117
  };
117
118
  //#endregion
118
- export { g as Collapsible };
119
+ export { _ as Collapsible };
@@ -0,0 +1,6 @@
1
+ export type CollapsibleTranslation = {
2
+ collapseContent: string;
3
+ expandContent: string;
4
+ };
5
+ export declare const collapsibleTranslations: import('../../theme/translations.js').ComponentTranslations<CollapsibleTranslation>;
6
+ //# sourceMappingURL=collapsible.translations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collapsible.translations.d.ts","sourceRoot":"","sources":["../../../lib/components/collapsible/collapsible.translations.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,sBAAsB,GAAG;IACpC,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,uBAAuB,8EAiDlC,CAAC"}
@@ -0,0 +1,54 @@
1
+ import { defineTranslations as e } from "../../theme/translations.js";
2
+ //#region lib/components/collapsible/collapsible.translations.ts
3
+ var t = e({
4
+ en: {
5
+ collapseContent: "Collapse content",
6
+ expandContent: "Expand content"
7
+ },
8
+ sv: {
9
+ collapseContent: "Kollapsa innehåll",
10
+ expandContent: "Expandera innehåll"
11
+ },
12
+ nb: {
13
+ collapseContent: "Skjul innhold",
14
+ expandContent: "Vis innhold"
15
+ },
16
+ da: {
17
+ collapseContent: "Skjul indhold",
18
+ expandContent: "Vis indhold"
19
+ },
20
+ fr: {
21
+ collapseContent: "Réduire le contenu",
22
+ expandContent: "Afficher le contenu"
23
+ },
24
+ nl: {
25
+ collapseContent: "Inhoud samenvouwen",
26
+ expandContent: "Inhoud uitvouwen"
27
+ },
28
+ de: {
29
+ collapseContent: "Inhalt einklappen",
30
+ expandContent: "Inhalt ausklappen"
31
+ },
32
+ fi: {
33
+ collapseContent: "Tiivistä sisältö",
34
+ expandContent: "Laajenna sisältö"
35
+ },
36
+ es: {
37
+ collapseContent: "Contraer contenido",
38
+ expandContent: "Expandir contenido"
39
+ },
40
+ et: {
41
+ collapseContent: "Ahenda sisu",
42
+ expandContent: "Laienda sisu"
43
+ },
44
+ lt: {
45
+ collapseContent: "Suskleisti turinį",
46
+ expandContent: "Išskleisti turinį"
47
+ },
48
+ lv: {
49
+ collapseContent: "Sakļaut saturu",
50
+ expandContent: "Izvērst saturu"
51
+ }
52
+ });
53
+ //#endregion
54
+ export { t as collapsibleTranslations };
@@ -1,14 +1,8 @@
1
1
  import { PropsWithChildren } from 'react';
2
- import { Locales } from './translations.js';
3
2
  export type CollapsibleProps = PropsWithChildren<{
4
3
  /** The height (in pixels) at which the content should be collapsed. If the content's height is less than or equal to this value, it will not be collapsible. */
5
4
  collapsedHeight: number;
6
5
  /** Whether the content should be expanded by default. */
7
6
  defaultExpanded?: boolean;
8
- /**
9
- * Locale used for translation of text contents native to the collapsible, such as aria-labels for the trigger button.
10
- * Defaults to 'en-US'.
11
- */
12
- locale?: Locales;
13
7
  }>;
14
8
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../lib/components/collapsible/types.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAE9C,MAAM,MAAM,gBAAgB,GAAG,iBAAiB,CAAC;IAChD,gKAAgK;IAChK,eAAe,EAAE,MAAM,CAAC;IACxB,yDAAyD;IACzD,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../lib/components/collapsible/types.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE/C,MAAM,MAAM,gBAAgB,GAAG,iBAAiB,CAAC;IAChD,gKAAgK;IAChK,eAAe,EAAE,MAAM,CAAC;IACxB,yDAAyD;IACzD,eAAe,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import { ComboboxInnerProps } from './types.js';
2
- export declare function ComboboxButton({ id, asPlainText, inputValue, selectedItems, displayItems, toggleItem, clearSelection, highlightState, openState, parentStrings, size, variant, label, placeHolderText, isDisabled, isReadOnly, isInvalid, isRequired, collapsed, hasPendingDelete, setHasPendingDelete, setInputValue, onSearch, isSingleSelect, translation, }: ComboboxInnerProps): import('react').JSX.Element;
2
+ export declare function ComboboxButton({ id, asPlainText, inputValue, selectedItems, displayItems, toggleItem, clearSelection, highlightState, openState, parentStrings, size, variant, label, placeHolderText, isDisabled, isReadOnly, isInvalid, isRequired, collapsed, hasPendingDelete, setHasPendingDelete, setInputValue, onSearch, isSingleSelect, }: ComboboxInnerProps): import('react').JSX.Element;
3
3
  //# sourceMappingURL=combobox-button.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"combobox-button.d.ts","sourceRoot":"","sources":["../../../lib/components/combobox/combobox-button.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAsBlD,wBAAgB,cAAc,CAAC,EAC9B,EAAE,EACF,WAAW,EACX,UAAU,EACV,aAAa,EACb,YAAY,EACZ,UAAU,EACV,cAAc,EACd,cAAc,EACd,SAAS,EACT,aAAa,EACb,IAAI,EACJ,OAAO,EACP,KAAK,EACL,eAAe,EACf,UAAU,EACV,UAAU,EACV,SAAS,EACT,UAAU,EACV,SAAS,EACT,gBAAgB,EAChB,mBAAmB,EACnB,aAAa,EACb,QAAQ,EACR,cAAc,EACd,WAAW,GACX,EAAE,kBAAkB,+BAiOpB"}
1
+ {"version":3,"file":"combobox-button.d.ts","sourceRoot":"","sources":["../../../lib/components/combobox/combobox-button.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAwBlD,wBAAgB,cAAc,CAAC,EAC9B,EAAE,EACF,WAAW,EACX,UAAU,EACV,aAAa,EACb,YAAY,EACZ,UAAU,EACV,cAAc,EACd,cAAc,EACd,SAAS,EACT,aAAa,EACb,IAAI,EACJ,OAAO,EACP,KAAK,EACL,eAAe,EACf,UAAU,EACV,UAAU,EACV,SAAS,EACT,UAAU,EACV,SAAS,EACT,gBAAgB,EAChB,mBAAmB,EACnB,aAAa,EACb,QAAQ,EACR,cAAc,GACd,EAAE,kBAAkB,+BAkOpB"}
@@ -3,16 +3,18 @@ import { ThemeColorVariable as t, ThemeIconSizeVariable as n, ThemeRadiusVariabl
3
3
  import { ClearIcon as te } from "../icon/icons/clear-icon.js";
4
4
  import { TreeViewCollapseIcon as ne } from "../icon/icons/tree-view-collapse-icon.js";
5
5
  import { IconButton as re } from "../icon-button/icon-button.js";
6
- import { Tag as ie } from "../tag/tag.js";
7
- import { ComboboxItem as ae } from "./combobox-item.js";
6
+ import { useComponentTranslations as ie } from "../../theme/translations.js";
7
+ import { Tag as ae } from "../tag/tag.js";
8
+ import { ComboboxItem as oe } from "./combobox-item.js";
9
+ import { comboboxTranslations as se } from "./combobox.translations.js";
8
10
  import { Fragment as i } from "react";
9
- import { Box as a, Flex as o, Input as oe, useRecipe as se } from "@chakra-ui/react";
10
- import { jsx as s, jsxs as c } from "react/jsx-runtime";
11
+ import { jsx as a, jsxs as o } from "react/jsx-runtime";
12
+ import { Box as s, Flex as c, Input as ce, useRecipe as le } from "@chakra-ui/react";
11
13
  //#region lib/components/combobox/combobox-button.tsx
12
- var ce = e();
13
- function le() {
14
- let e = (0, ce.c)(1), n;
15
- return e[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ s(a, {
14
+ var ue = e();
15
+ function de() {
16
+ let e = (0, ue.c)(1), n;
17
+ return e[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ a(s, {
16
18
  backgroundColor: t.NeutralContainer,
17
19
  width: "8px",
18
20
  borderRadius: "4px",
@@ -29,28 +31,28 @@ function le() {
29
31
  }), e[0] = n) : n = e[0], n;
30
32
  }
31
33
  function l(e) {
32
- let i = (0, ce.c)(78), { id: l, asPlainText: u, inputValue: d, selectedItems: f, displayItems: de, toggleItem: p, clearSelection: m, highlightState: h, openState: g, parentStrings: _, size: fe, variant: v, label: y, placeHolderText: b, isDisabled: x, isReadOnly: S, isInvalid: pe, isRequired: C, collapsed: w, hasPendingDelete: T, setHasPendingDelete: E, setInputValue: D, onSearch: O, isSingleSelect: k, translation: A } = e, j;
34
+ let i = (0, ue.c)(78), { id: l, asPlainText: u, inputValue: d, selectedItems: f, displayItems: pe, toggleItem: p, clearSelection: m, highlightState: h, openState: g, parentStrings: _, size: me, variant: he, label: v, placeHolderText: y, isDisabled: b, isReadOnly: x, isInvalid: S, isRequired: C, collapsed: w, hasPendingDelete: T, setHasPendingDelete: E, setInputValue: D, onSearch: O, isSingleSelect: k } = e, A = ie(se), j;
33
35
  i[0] === Symbol.for("react.memo_cache_sentinel") ? (j = { key: "combobox" }, i[0] = j) : j = i[0];
34
- let me = se(j), M;
35
- i[1] !== me || i[2] !== fe || i[3] !== v ? (M = me({
36
- variant: v,
37
- size: fe
38
- }), i[1] = me, i[2] = fe, i[3] = v, i[4] = M) : M = i[4];
39
- let he = M, N;
40
- i[5] !== u || i[6] !== m || i[7] !== de || i[8] !== T || i[9] !== h || i[10] !== d || i[11] !== k || i[12] !== O || i[13] !== g || i[14] !== f || i[15] !== E || i[16] !== D || i[17] !== p ? (N = (e) => {
41
- if (e.key === "Enter" && (e.preventDefault(), e.stopPropagation(), g.isOpen ? p(de[h.index]) : g.open()), e.key === "Escape") {
36
+ let ge = le(j), M;
37
+ i[1] !== ge || i[2] !== me || i[3] !== he ? (M = ge({
38
+ variant: he,
39
+ size: me
40
+ }), i[1] = ge, i[2] = me, i[3] = he, i[4] = M) : M = i[4];
41
+ let _e = M, N;
42
+ i[5] !== u || i[6] !== m || i[7] !== pe || i[8] !== T || i[9] !== h || i[10] !== d || i[11] !== k || i[12] !== O || i[13] !== g || i[14] !== f || i[15] !== E || i[16] !== D || i[17] !== p ? (N = (e) => {
43
+ if (e.key === "Enter" && (e.preventDefault(), e.stopPropagation(), g.isOpen ? p(pe[h.index]) : g.open()), e.key === "Escape") {
42
44
  if (!g.isOpen) return;
43
45
  e.preventDefault(), e.stopPropagation(), g.close(), u || (D(""), O?.(""));
44
46
  }
45
47
  e.key === "Backspace" ? d.length === 0 && f.length > 0 && !u && (T ? (k ? m() : p(f[f.length - 1]), E(!1)) : E(!0)) : E(!1), e.key === "ArrowDown" && (g.isOpen ? h.next() : g.open()), e.key === "ArrowUp" && (g.isOpen ? h.previous() : g.open());
46
- }, i[5] = u, i[6] = m, i[7] = de, i[8] = T, i[9] = h, i[10] = d, i[11] = k, i[12] = O, i[13] = g, i[14] = f, i[15] = E, i[16] = D, i[17] = p, i[18] = N) : N = i[18];
47
- let ge = N, P;
48
+ }, i[5] = u, i[6] = m, i[7] = pe, i[8] = T, i[9] = h, i[10] = d, i[11] = k, i[12] = O, i[13] = g, i[14] = f, i[15] = E, i[16] = D, i[17] = p, i[18] = N) : N = i[18];
49
+ let ve = N, P;
48
50
  i[19] !== h || i[20] !== O || i[21] !== g || i[22] !== D ? (P = (e) => {
49
51
  e.preventDefault(), e.stopPropagation();
50
52
  let t = e.target.value;
51
53
  D(t), O?.(t), h.set(0), g.open();
52
54
  }, i[19] = h, i[20] = O, i[21] = g, i[22] = D, i[23] = P) : P = i[23];
53
- let F = P, I = f[0], L = f[f.length - 1], R = g.isOpen || u || b, z;
55
+ let F = P, I = f[0], L = f[f.length - 1], R = g.isOpen || u || y, z;
54
56
  i[24] === R ? z = i[25] : (z = R ? { width: "100%" } : {
55
57
  position: "absolute",
56
58
  width: "1px",
@@ -62,62 +64,62 @@ function l(e) {
62
64
  whiteSpace: "nowrap",
63
65
  border: 0
64
66
  }, i[24] = R, i[25] = z);
65
- let B = z, _e = k ? r.Small : void 0, V, H;
66
- i[26] === Symbol.for("react.memo_cache_sentinel") ? (V = {
67
+ let B = z, V = k ? r.Small : void 0, H, U;
68
+ i[26] === Symbol.for("react.memo_cache_sentinel") ? (H = {
67
69
  borderColor: t.Error,
68
70
  boxShadow: `0 0 0 4px ${t.ErrorContainer}`,
69
71
  backgroundColor: t.Surface
70
- }, H = {
72
+ }, U = {
71
73
  borderColor: t.Info,
72
74
  boxShadow: `0 0 0 4px ${t.InfoContainer}`,
73
75
  backgroundColor: t.Surface
74
- }, i[26] = V, i[27] = H) : (V = i[26], H = i[27]);
75
- let U = w || k ? "nowrap" : "wrap", W;
76
- i[28] === y ? W = i[29] : (W = y && /* @__PURE__ */ s(a, {
76
+ }, i[26] = H, i[27] = U) : (H = i[26], U = i[27]);
77
+ let ye = w || k ? "nowrap" : "wrap", W;
78
+ i[28] === v ? W = i[29] : (W = v && /* @__PURE__ */ a(s, {
77
79
  whiteSpace: "nowrap",
78
- children: y
79
- }), i[28] = y, i[29] = W);
80
+ children: v
81
+ }), i[28] = v, i[29] = W);
80
82
  let G;
81
- i[30] !== u || i[31] !== w || i[32] !== T || i[33] !== L || i[34] !== f ? (G = !u && (w ? f.length > 0 && L && /* @__PURE__ */ c(o, {
83
+ i[30] !== u || i[31] !== w || i[32] !== T || i[33] !== L || i[34] !== f ? (G = !u && (w ? f.length > 0 && L && /* @__PURE__ */ o(c, {
82
84
  gap: r.XSmall,
83
85
  flexShrink: "1",
84
86
  overflow: "hidden",
85
87
  whiteSpace: "nowrap",
86
88
  textOverflow: "ellipsis",
87
89
  children: [
88
- f.length > 3 && /* @__PURE__ */ s(le, {}),
89
- f.length > 2 && /* @__PURE__ */ s(le, {}),
90
- f.length > 1 && /* @__PURE__ */ s(ie, { children: f.length - 1 }),
91
- /* @__PURE__ */ s(ae, {
90
+ f.length > 3 && /* @__PURE__ */ a(de, {}),
91
+ f.length > 2 && /* @__PURE__ */ a(de, {}),
92
+ f.length > 1 && /* @__PURE__ */ a(ae, { children: f.length - 1 }),
93
+ /* @__PURE__ */ a(oe, {
92
94
  isDeleting: T,
93
95
  item: L,
94
96
  asPlainText: u
95
97
  })
96
98
  ]
97
- }) : f.map((e, t) => /* @__PURE__ */ s(ae, {
99
+ }) : f.map((e, t) => /* @__PURE__ */ a(oe, {
98
100
  item: e,
99
101
  asPlainText: u,
100
102
  isDeleting: t === f.length - 1 && T
101
103
  }, e.id))), i[30] = u, i[31] = w, i[32] = T, i[33] = L, i[34] = f, i[35] = G) : G = i[35];
102
104
  let K;
103
- i[36] !== u || i[37] !== I || i[38] !== d || i[39] !== _ || i[40] !== f.length ? (K = u && f.length > 0 && I && d === I.label && _[I.id]?.map(ue), i[36] = u, i[37] = I, i[38] = d, i[39] = _, i[40] = f.length, i[41] = K) : K = i[41];
105
+ i[36] !== u || i[37] !== I || i[38] !== d || i[39] !== _ || i[40] !== f.length ? (K = u && f.length > 0 && I && d === I.label && _[I.id]?.map(fe), i[36] = u, i[37] = I, i[38] = d, i[39] = _, i[40] = f.length, i[41] = K) : K = i[41];
104
106
  let q, J;
105
107
  i[42] === Symbol.for("react.memo_cache_sentinel") ? (q = { color: t.OnSurfaceSubdued }, J = {
106
108
  cursor: "not-allowed",
107
109
  color: t.OnSurfaceSubdued
108
110
  }, i[42] = q, i[43] = J) : (q = i[42], J = i[43]);
109
111
  let Y;
110
- i[44] !== l || i[45] !== B || i[46] !== d || i[47] !== x || i[48] !== S || i[49] !== F || i[50] !== ge || i[51] !== b ? (Y = /* @__PURE__ */ s(oe, {
112
+ i[44] !== l || i[45] !== B || i[46] !== d || i[47] !== b || i[48] !== x || i[49] !== F || i[50] !== ve || i[51] !== y ? (Y = /* @__PURE__ */ a(ce, {
111
113
  id: l,
112
- disabled: x,
113
- readOnly: S,
114
- onKeyDown: ge,
114
+ disabled: b,
115
+ readOnly: x,
116
+ onKeyDown: ve,
115
117
  unstyled: !0,
116
118
  value: d,
117
119
  autoComplete: "off",
118
120
  minWidth: r.XLarge,
119
121
  onChange: F,
120
- placeholder: b,
122
+ placeholder: y,
121
123
  border: "none",
122
124
  flex: 1,
123
125
  color: t.OnSurface,
@@ -125,12 +127,12 @@ function l(e) {
125
127
  _placeholder: q,
126
128
  _disabled: J,
127
129
  css: B
128
- }), i[44] = l, i[45] = B, i[46] = d, i[47] = x, i[48] = S, i[49] = F, i[50] = ge, i[51] = b, i[52] = Y) : Y = i[52];
130
+ }), i[44] = l, i[45] = B, i[46] = d, i[47] = b, i[48] = x, i[49] = F, i[50] = ve, i[51] = y, i[52] = Y) : Y = i[52];
129
131
  let X;
130
- i[53] !== W || i[54] !== G || i[55] !== K || i[56] !== Y || i[57] !== U ? (X = /* @__PURE__ */ c(o, {
132
+ i[53] !== W || i[54] !== G || i[55] !== K || i[56] !== Y || i[57] !== ye ? (X = /* @__PURE__ */ o(c, {
131
133
  flex: 1,
132
134
  minWidth: 0,
133
- flexWrap: U,
135
+ flexWrap: ye,
134
136
  gap: r.Small,
135
137
  overflow: "hidden",
136
138
  children: [
@@ -139,16 +141,16 @@ function l(e) {
139
141
  K,
140
142
  Y
141
143
  ]
142
- }), i[53] = W, i[54] = G, i[55] = K, i[56] = Y, i[57] = U, i[58] = X) : X = i[58];
144
+ }), i[53] = W, i[54] = G, i[55] = K, i[56] = Y, i[57] = ye, i[58] = X) : X = i[58];
143
145
  let Z;
144
- i[59] !== m || i[60] !== x || i[61] !== S || i[62] !== C || i[63] !== k || i[64] !== f.length || i[65] !== A ? (Z = k && /* @__PURE__ */ s(a, {
146
+ i[59] !== m || i[60] !== b || i[61] !== x || i[62] !== C || i[63] !== k || i[64] !== f.length || i[65] !== A ? (Z = k && /* @__PURE__ */ a(s, {
145
147
  height: n.Medium,
146
148
  width: n.Medium,
147
149
  flexShrink: 0,
148
150
  display: "flex",
149
151
  justifyContent: "center",
150
152
  alignItems: "center",
151
- children: f.length > 0 && !x && !S && !C && /* @__PURE__ */ s(re, {
153
+ children: f.length > 0 && !b && !x && !C && /* @__PURE__ */ a(re, {
152
154
  icon: te,
153
155
  type: "button",
154
156
  "aria-label": A.clearSelection,
@@ -164,44 +166,44 @@ function l(e) {
164
166
  variant: "ghost",
165
167
  size: "sm"
166
168
  })
167
- }), i[59] = m, i[60] = x, i[61] = S, i[62] = C, i[63] = k, i[64] = f.length, i[65] = A, i[66] = Z) : Z = i[66];
168
- let ve = x ? t.OnSurfaceSubdued : t.OnSurface, Q;
169
- i[67] === ve ? Q = i[68] : (Q = /* @__PURE__ */ s(o, {
169
+ }), i[59] = m, i[60] = b, i[61] = x, i[62] = C, i[63] = k, i[64] = f.length, i[65] = A, i[66] = Z) : Z = i[66];
170
+ let be = b ? t.OnSurfaceSubdued : t.OnSurface, Q;
171
+ i[67] === be ? Q = i[68] : (Q = /* @__PURE__ */ a(c, {
170
172
  className: "combobox-dropdown-icon",
171
173
  justifyContent: "center",
172
174
  alignItems: "center",
173
175
  cursor: "pointer",
174
- children: /* @__PURE__ */ s(ne, {
176
+ children: /* @__PURE__ */ a(ne, {
175
177
  size: n.Small,
176
- color: ve
178
+ color: be
177
179
  })
178
- }), i[67] = ve, i[68] = Q);
180
+ }), i[67] = be, i[68] = Q);
179
181
  let $;
180
- return i[69] !== x || i[70] !== pe || i[71] !== S || i[72] !== he || i[73] !== X || i[74] !== Z || i[75] !== Q || i[76] !== _e ? ($ = /* @__PURE__ */ c(o, {
181
- css: he,
182
- "aria-disabled": x,
183
- "aria-readonly": S,
184
- "aria-invalid": pe,
182
+ return i[69] !== b || i[70] !== S || i[71] !== x || i[72] !== _e || i[73] !== X || i[74] !== Z || i[75] !== Q || i[76] !== V ? ($ = /* @__PURE__ */ o(c, {
183
+ css: _e,
184
+ "aria-disabled": b,
185
+ "aria-readonly": x,
186
+ "aria-invalid": S,
185
187
  borderRadius: ee.Small,
186
188
  padding: r.Small,
187
- gap: _e,
188
- _invalid: V,
189
- _focusWithin: H,
189
+ gap: V,
190
+ _invalid: H,
191
+ _focusWithin: U,
190
192
  children: [
191
193
  X,
192
194
  Z,
193
195
  Q
194
196
  ]
195
- }), i[69] = x, i[70] = pe, i[71] = S, i[72] = he, i[73] = X, i[74] = Z, i[75] = Q, i[76] = _e, i[77] = $) : $ = i[77], $;
197
+ }), i[69] = b, i[70] = S, i[71] = x, i[72] = _e, i[73] = X, i[74] = Z, i[75] = Q, i[76] = V, i[77] = $) : $ = i[77], $;
196
198
  }
197
- function ue(e) {
198
- return /* @__PURE__ */ c(i, { children: [/* @__PURE__ */ s(a, {
199
+ function fe(e) {
200
+ return /* @__PURE__ */ o(i, { children: [/* @__PURE__ */ a(s, {
199
201
  color: t.OnSurfaceSubdued,
200
202
  textOverflow: "ellipsis",
201
203
  overflow: "hidden",
202
204
  whiteSpace: "nowrap",
203
205
  children: e
204
- }), /* @__PURE__ */ s(a, {
206
+ }), /* @__PURE__ */ a(s, {
205
207
  color: t.OnSurfaceSubdued,
206
208
  children: "/"
207
209
  })] }, e);
@@ -3,38 +3,38 @@ import { ThemeSpaceVariable as t } from "../../theme/theme-types.js";
3
3
  import { Box as n } from "../box/box.js";
4
4
  import { Tag as r } from "../tag/tag.js";
5
5
  import { Highlight as i } from "../highlight/highlight.js";
6
- import { Flex as a } from "@chakra-ui/react";
7
- import { jsx as o, jsxs as s } from "react/jsx-runtime";
6
+ import { jsx as a, jsxs as o } from "react/jsx-runtime";
7
+ import { Flex as s } from "@chakra-ui/react";
8
8
  //#region lib/components/combobox/combobox-item.tsx
9
9
  var c = e();
10
10
  function l(e) {
11
11
  let l = (0, c.c)(8), { item: u, asPlainText: d, isDeleting: f, highlightQuery: p } = e, m = f ? "primary" : u.variant ?? "neutral", h = f || (u.solid ?? !1), g;
12
- return l[0] !== d || l[1] !== p || l[2] !== u.append || l[3] !== u.label || l[4] !== u.prepend || l[5] !== h || l[6] !== m ? (g = d ? /* @__PURE__ */ s(a, {
12
+ return l[0] !== d || l[1] !== p || l[2] !== u.append || l[3] !== u.label || l[4] !== u.prepend || l[5] !== h || l[6] !== m ? (g = d ? /* @__PURE__ */ o(s, {
13
13
  gap: t.XSmall,
14
14
  overflow: "hidden",
15
15
  whiteSpace: "nowrap",
16
16
  textOverflow: "ellipsis",
17
17
  children: [
18
18
  u.prepend,
19
- /* @__PURE__ */ o(n, { children: /* @__PURE__ */ o(i, {
19
+ /* @__PURE__ */ a(n, { children: /* @__PURE__ */ a(i, {
20
20
  query: p ?? "",
21
21
  children: u.label
22
22
  }) }),
23
23
  u.append
24
24
  ]
25
- }) : /* @__PURE__ */ o(n, {
25
+ }) : /* @__PURE__ */ a(n, {
26
26
  overflow: "hidden",
27
- children: /* @__PURE__ */ o(r, {
27
+ children: /* @__PURE__ */ a(r, {
28
28
  variant: m,
29
29
  solid: h,
30
30
  prepend: u.prepend,
31
31
  append: u.append,
32
- children: /* @__PURE__ */ o(n, {
32
+ children: /* @__PURE__ */ a(n, {
33
33
  display: "block",
34
34
  overflow: "hidden",
35
35
  whiteSpace: "nowrap",
36
36
  textOverflow: "ellipsis",
37
- children: /* @__PURE__ */ o(i, {
37
+ children: /* @__PURE__ */ a(i, {
38
38
  query: p ?? "",
39
39
  children: u.label
40
40
  })
@@ -1 +1 @@
1
- {"version":3,"file":"combobox-menu.d.ts","sourceRoot":"","sources":["../../../lib/components/combobox/combobox-menu.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EACX,kBAAkB,EAIlB,MAAM,SAAS,CAAC;AAqDjB,wBAAgB,YAAY,CAAC,KAAK,EAAE,kBAAkB,+BAoGrD"}
1
+ {"version":3,"file":"combobox-menu.d.ts","sourceRoot":"","sources":["../../../lib/components/combobox/combobox-menu.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EACX,kBAAkB,EAIlB,MAAM,SAAS,CAAC;AAuDjB,wBAAgB,YAAY,CAAC,KAAK,EAAE,kBAAkB,+BAiGrD"}