@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
@@ -0,0 +1,10 @@
1
+ export type ComboboxTranslation = {
2
+ search: string;
3
+ noMatchFor: (search: string) => string;
4
+ remove: string;
5
+ clearSelection: string;
6
+ showMaxItems: (count: number) => string;
7
+ back: string;
8
+ };
9
+ export declare const comboboxTranslations: import('../../theme/translations.js').ComponentTranslations<ComboboxTranslation>;
10
+ //# sourceMappingURL=combobox.translations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"combobox.translations.d.ts","sourceRoot":"","sources":["../../../lib/components/combobox/combobox.translations.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,mBAAmB,GAAG;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,CAAC;IACvC,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACxC,IAAI,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,eAAO,MAAM,oBAAoB,2EAkG/B,CAAC"}
@@ -0,0 +1,102 @@
1
+ import { defineTranslations as e } from "../../theme/translations.js";
2
+ //#region lib/components/combobox/combobox.translations.ts
3
+ var t = e({
4
+ en: {
5
+ search: "Search for an option",
6
+ noMatchFor: (e) => `No match found for "${e}"`,
7
+ remove: "Remove",
8
+ clearSelection: "Clear selection",
9
+ showMaxItems: (e) => `Showing the first ${e} options. Search to narrow down the list.`,
10
+ back: "Back"
11
+ },
12
+ sv: {
13
+ search: "Sök efter ett alternativ",
14
+ noMatchFor: (e) => `Hittar inget som matchar "${e}"`,
15
+ remove: "Ta bort",
16
+ clearSelection: "Rensa urval",
17
+ showMaxItems: (e) => `Visar första ${e} valen. Sök för att begränsa listan`,
18
+ back: "Tillbaka"
19
+ },
20
+ nb: {
21
+ search: "Søk etter et alternativ",
22
+ noMatchFor: (e) => `Ingen treff for "${e}"`,
23
+ remove: "Fjern",
24
+ clearSelection: "Fjern valg",
25
+ showMaxItems: (e) => `Viser de første ${e} valgene. Søk for å begrense listen.`,
26
+ back: "Tilbake"
27
+ },
28
+ da: {
29
+ search: "Søg efter en mulighed",
30
+ noMatchFor: (e) => `Ingen match for "${e}"`,
31
+ remove: "Fjern",
32
+ clearSelection: "Ryd valg",
33
+ showMaxItems: (e) => `Viser de første ${e} valgmuligheder. Søg for at indsnævre listen.`,
34
+ back: "Tilbage"
35
+ },
36
+ fr: {
37
+ search: "Rechercher une option",
38
+ noMatchFor: (e) => `Aucune correspondance pour "${e}"`,
39
+ remove: "Supprimer",
40
+ clearSelection: "Effacer la sélection",
41
+ showMaxItems: (e) => `Affichage des ${e} premiers choix. Recherchez pour affiner la liste.`,
42
+ back: "Retour"
43
+ },
44
+ nl: {
45
+ search: "Zoek naar een optie",
46
+ noMatchFor: (e) => `Geen overeenkomst voor "${e}"`,
47
+ remove: "Verwijderen",
48
+ clearSelection: "Selectie wissen",
49
+ showMaxItems: (e) => `Toont de eerste ${e} keuzes. Zoek om de lijst te beperken.`,
50
+ back: "Terug"
51
+ },
52
+ de: {
53
+ search: "Nach einer Option suchen",
54
+ noMatchFor: (e) => `Keine Treffer für "${e}"`,
55
+ remove: "Entfernen",
56
+ clearSelection: "Auswahl löschen",
57
+ showMaxItems: (e) => `Die ersten ${e} Optionen werden angezeigt. Suchen Sie, um die Liste einzugrenzen.`,
58
+ back: "Zurück"
59
+ },
60
+ fi: {
61
+ search: "Hae vaihtoehtoa",
62
+ noMatchFor: (e) => `Ei tuloksia haulle "${e}"`,
63
+ remove: "Poista",
64
+ clearSelection: "Tyhjennä valinta",
65
+ showMaxItems: (e) => `Näytetään ensimmäiset ${e} vaihtoehtoa. Rajaa luetteloa hakemalla.`,
66
+ back: "Takaisin"
67
+ },
68
+ es: {
69
+ search: "Buscar una opción",
70
+ noMatchFor: (e) => `No hay coincidencias para "${e}"`,
71
+ remove: "Eliminar",
72
+ clearSelection: "Borrar selección",
73
+ showMaxItems: (e) => `Mostrando las primeras ${e} opciones. Busca para acotar la lista.`,
74
+ back: "Atrás"
75
+ },
76
+ et: {
77
+ search: "Otsi valikut",
78
+ noMatchFor: (e) => `Vasteid ei leitud päringule "${e}"`,
79
+ remove: "Eemalda",
80
+ clearSelection: "Tühjenda valik",
81
+ showMaxItems: (e) => `Kuvatakse esimesed ${e} valikut. Loendi kitsendamiseks otsi.`,
82
+ back: "Tagasi"
83
+ },
84
+ lt: {
85
+ search: "Ieškoti parinkties",
86
+ noMatchFor: (e) => `Nerasta atitikmenų užklausai "${e}"`,
87
+ remove: "Pašalinti",
88
+ clearSelection: "Išvalyti pasirinkimą",
89
+ showMaxItems: (e) => `Rodomos pirmosios ${e} parinktys. Ieškokite, kad susiaurintumėte sąrašą.`,
90
+ back: "Atgal"
91
+ },
92
+ lv: {
93
+ search: "Meklēt opciju",
94
+ noMatchFor: (e) => `Nav atbilstību vaicājumam "${e}"`,
95
+ remove: "Noņemt",
96
+ clearSelection: "Notīrīt atlasi",
97
+ showMaxItems: (e) => `Tiek rādītas pirmās ${e} opcijas. Meklējiet, lai sašaurinātu sarakstu.`,
98
+ back: "Atpakaļ"
99
+ }
100
+ });
101
+ //#endregion
102
+ export { t as comboboxTranslations };
@@ -1,3 +1,3 @@
1
1
  export { Combobox } from './combobox.js';
2
- export type { ComboboxItem, ComboboxProps, ComboboxTagVariant, Locales, Placement } from './types.js';
2
+ export type { ComboboxItem, ComboboxProps, ComboboxTagVariant, Placement } from './types.js';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/components/combobox/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,kBAAkB,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/components/combobox/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC"}
@@ -5,7 +5,6 @@ import { Placement } from '@floating-ui/dom';
5
5
  import { ReactNode, RefObject } from 'react';
6
6
  export type { Placement };
7
7
  export type ComboboxTagVariant = TagVariant;
8
- export type Locales = "en-US" | "nb-NO" | "da-DK" | "sv-SE" | "en-GB" | "fr-FR" | "nl-BE";
9
8
  export type ComboboxItem = {
10
9
  /**
11
10
  * Unique id of the item. Required for search to work as expected.
@@ -66,14 +65,6 @@ export type HighlightState = {
66
65
  next: () => void;
67
66
  previous: () => void;
68
67
  };
69
- export type Translation = {
70
- search: string;
71
- noMatchFor: string;
72
- remove: string;
73
- clearSelection: string;
74
- showMaxItems: string;
75
- back: string;
76
- };
77
68
  export type ComboboxInnerProps = {
78
69
  id: string;
79
70
  asPlainText: boolean;
@@ -108,7 +99,6 @@ export type ComboboxInnerProps = {
108
99
  popupRef: RefObject<HTMLDivElement | null>;
109
100
  footerContent?: ReactNode;
110
101
  subMenuState: SubMenuState;
111
- translation: Translation;
112
102
  folderStyle?: "grouped" | "stacked";
113
103
  parentSelectsChildren?: boolean;
114
104
  };
@@ -147,11 +137,6 @@ export type ComboboxProps = MarginProps & LayoutProps & {
147
137
  * Items to display in the combobox.
148
138
  */
149
139
  items: ComboboxItem[];
150
- /**
151
- * Locale used for translation of text contents native to the combobox, such as text for no search results.
152
- * Defaults to 'en-US'.
153
- */
154
- locale?: Locales;
155
140
  /**
156
141
  * Maximum number of items to render initially before requiring a search.
157
142
  * If the number of items exceeds this value, users must search to narrow down the list.
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../lib/components/combobox/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,SAAS,CAA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ACA,WAAW,CAAC,EAAE,KAAK,CAAC;IACpB,cAAc,CAAC,EAAE,SAAS,GAAG,KAAK,CAAC;IACnC;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;CAC/B,CACH,GACD,CACG;IACA;;;;OAIG;IACH,WAAW,EAAE,SAAS,CAAC;IACvB;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;CAC/B,GACD;IAAE,WAAW,CAAC,EAAE,SAAS,CAAC;IAAC,qBAAqB,CAAC,EAAE,KAAK,CAAA;CAAE,CAC5D,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import { default as React } from 'react';
2
2
  import { DatePickerPropsBase } from './types.js';
3
- export declare function BaseDatePicker({ selectedDate, onDateChange, selectedDates, onDatesChange, isMultiSelect, onMonthChange, markSundayRed, strikeThroughDates, showDaysOutsideMonth, localeString, canSelectPastDates, isExpanded, dots, weekNumbers, selectWeek, shouldDisableDate, selectedMonth: initialMonth, dateRange, isRangeDate, onRangeChange, isDisabled, redDays, disablePastMonths, disableBackwardNavigation, disableForwardNavigation, }: DatePickerPropsBase): React.JSX.Element;
3
+ export declare function BaseDatePicker({ selectedDate, onDateChange, selectedDates, onDatesChange, isMultiSelect, onMonthChange, markSundayRed, strikeThroughDates, showDaysOutsideMonth, canSelectPastDates, isExpanded, dots, weekNumbers, selectWeek, shouldDisableDate, selectedMonth: initialMonth, dateRange, isRangeDate, onRangeChange, isDisabled, redDays, disablePastMonths, disableBackwardNavigation, disableForwardNavigation, }: DatePickerPropsBase): React.JSX.Element;
4
4
  //# sourceMappingURL=base-date-picker.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"base-date-picker.d.ts","sourceRoot":"","sources":["../../../lib/components/date-picker/base-date-picker.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAaxC,OAAO,KAAK,EAAE,mBAAmB,EAAa,MAAM,SAAS,CAAC;AAoB9D,wBAAgB,cAAc,CAAC,EAC9B,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,aAAa,EACb,aAAqB,EACrB,aAAa,EACb,aAAa,EACb,kBAAkB,EAClB,oBAA4B,EAC5B,YAAY,EACZ,kBAAkB,EAClB,UAAiB,EACjB,IAAI,EACJ,WAAmB,EACnB,UAAkB,EAClB,iBAAiB,EACjB,aAAa,EAAE,YAAY,EAC3B,SAAS,EACT,WAAmB,EACnB,aAAa,EACb,UAAkB,EAClB,OAAY,EACZ,iBAAyB,EACzB,yBAAiC,EACjC,wBAAgC,GAChC,EAAE,mBAAmB,qBA+SrB"}
1
+ {"version":3,"file":"base-date-picker.d.ts","sourceRoot":"","sources":["../../../lib/components/date-picker/base-date-picker.tsx"],"names":[],"mappings":"AAqBA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAaxC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAoBnD,wBAAgB,cAAc,CAAC,EAC9B,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,aAAa,EACb,aAAqB,EACrB,aAAa,EACb,aAAa,EACb,kBAAkB,EAClB,oBAA4B,EAC5B,kBAAkB,EAClB,UAAiB,EACjB,IAAI,EACJ,WAAmB,EACnB,UAAkB,EAClB,iBAAiB,EACjB,aAAa,EAAE,YAAY,EAC3B,SAAS,EACT,WAAmB,EACnB,aAAa,EACb,UAAkB,EAClB,OAAY,EACZ,iBAAyB,EACzB,yBAAiC,EACjC,wBAAgC,GAChC,EAAE,mBAAmB,qBAgTrB"}
@@ -1,14 +1,15 @@
1
1
  import { require_compiler_runtime as e } from "../../node_modules/react/compiler-runtime.js";
2
- import { ThemeColorVariable as t, ThemeFontSizeVariable as n, ThemeFontVariable as r, ThemeSpaceVariable as ee } from "../../theme/theme-types.js";
2
+ import { useLocale as t } from "../../theme/theme-locale.js";
3
+ import { ThemeColorVariable as ee, ThemeFontSizeVariable as n, ThemeFontVariable as te, ThemeSpaceVariable as r } from "../../theme/theme-types.js";
3
4
  import { addDays as i } from "../../node_modules/date-fns/addDays.js";
4
5
  import a from "../../node_modules/date-fns/startOfWeek.js";
5
6
  import o from "../../node_modules/date-fns/isSameDay.js";
6
7
  import s from "../../node_modules/date-fns/endOfMonth.js";
7
- import te from "../../node_modules/date-fns/startOfMonth.js";
8
+ import ne from "../../node_modules/date-fns/startOfMonth.js";
8
9
  import c from "../../node_modules/date-fns/locale/en-US.js";
9
- import ne from "../../node_modules/date-fns/getISOWeek.js";
10
+ import re from "../../node_modules/date-fns/getISOWeek.js";
10
11
  import l from "../../node_modules/date-fns/format.js";
11
- import re from "../../node_modules/date-fns/isSameMonth.js";
12
+ import ie from "../../node_modules/date-fns/isSameMonth.js";
12
13
  import { da as u } from "../../node_modules/date-fns/locale/da.js";
13
14
  import { de as d } from "../../node_modules/date-fns/locale/de.js";
14
15
  import f from "../../node_modules/date-fns/locale/en-GB.js";
@@ -22,15 +23,15 @@ import y from "../../node_modules/date-fns/locale/nb.js";
22
23
  import b from "../../node_modules/date-fns/locale/nl.js";
23
24
  import x from "../../node_modules/date-fns/locale/nl-BE.js";
24
25
  import S from "../../node_modules/date-fns/locale/sv.js";
25
- import { DatePickerDateCell as ie } from "./date-picker-date-cell.js";
26
- import { firstLetterUpperCase as C, getDateCellVariant as ae, getWeekCellVariant as oe, hasDatePassed as w, hasDotOnDate as T, isDateStrikeThrough as se } from "./helper.js";
27
- import { DatePickerHeader as ce } from "./date-picker-header.js";
28
- import { DatePickerWeekCell as le } from "./date-picker-week-cell.js";
29
- import ue, { useState as E } from "react";
30
- import { Box as de, Grid as D, GridItem as fe } from "@chakra-ui/react";
31
- import { Fragment as pe, jsx as O, jsxs as me } from "react/jsx-runtime";
26
+ import { DatePickerDateCell as ae } from "./date-picker-date-cell.js";
27
+ import { firstLetterUpperCase as C, getDateCellVariant as oe, getWeekCellVariant as se, hasDatePassed as ce, hasDotOnDate as w, isDateStrikeThrough as le } from "./helper.js";
28
+ import { DatePickerHeader as ue } from "./date-picker-header.js";
29
+ import { DatePickerWeekCell as de } from "./date-picker-week-cell.js";
30
+ import fe, { useState as T } from "react";
31
+ import { Fragment as pe, jsx as E, jsxs as me } from "react/jsx-runtime";
32
+ import { Box as he, Grid as ge, GridItem as _e } from "@chakra-ui/react";
32
33
  //#region lib/components/date-picker/base-date-picker.tsx
33
- var k = e(), A = {
34
+ var D = e(), O = {
34
35
  "en-US": { locale: c },
35
36
  "en-GB": { locale: f },
36
37
  "nb-NO": { locale: y },
@@ -47,196 +48,196 @@ var k = e(), A = {
47
48
  "nl-BE": { locale: x },
48
49
  "de-DE": { locale: d }
49
50
  };
50
- function j(e) {
51
- let c = (0, k.c)(128), { selectedDate: u, onDateChange: d, selectedDates: f, onDatesChange: p, isMultiSelect: m, onMonthChange: h, markSundayRed: g, strikeThroughDates: _, showDaysOutsideMonth: v, localeString: y, canSelectPastDates: b, isExpanded: x, dots: S, weekNumbers: j, selectWeek: M, shouldDisableDate: N, selectedMonth: P, dateRange: F, isRangeDate: he, onRangeChange: I, isDisabled: ge, redDays: L, disablePastMonths: _e, disableBackwardNavigation: ve, disableForwardNavigation: ye } = e, R = m !== void 0 && m, z = v !== void 0 && v, B = x === void 0 || x, V = j !== void 0 && j, H = M !== void 0 && M, be = he !== void 0 && he, U = ge !== void 0 && ge, xe;
52
- c[0] === L ? xe = c[1] : (xe = L === void 0 ? [] : L, c[0] = L, c[1] = xe);
53
- let W = xe, G = _e !== void 0 && _e, K = ve !== void 0 && ve, q = ye !== void 0 && ye, Se;
54
- c[2] !== P || c[3] !== u ? (Se = P || u || /* @__PURE__ */ new Date(), c[2] = P, c[3] = u, c[4] = Se) : Se = c[4];
55
- let [J, Ce] = E(Se), we;
56
- c[5] !== P || c[6] !== B || c[7] !== u ? (we = {
57
- initialMonth: P,
58
- isExpanded: B,
51
+ function k(e) {
52
+ let c = (0, D.c)(128), { selectedDate: u, onDateChange: d, selectedDates: f, onDatesChange: p, isMultiSelect: m, onMonthChange: h, markSundayRed: g, strikeThroughDates: _, showDaysOutsideMonth: v, canSelectPastDates: y, isExpanded: b, dots: x, weekNumbers: S, selectWeek: k, shouldDisableDate: A, selectedMonth: j, dateRange: M, isRangeDate: ve, onRangeChange: N, isDisabled: ye, redDays: be, disablePastMonths: xe, disableBackwardNavigation: Se, disableForwardNavigation: Ce } = e, P = m !== void 0 && m, F = v !== void 0 && v, I = b === void 0 || b, L = S !== void 0 && S, R = k !== void 0 && k, we = ve !== void 0 && ve, z = ye !== void 0 && ye, Te;
53
+ c[0] === be ? Te = c[1] : (Te = be === void 0 ? [] : be, c[0] = be, c[1] = Te);
54
+ let B = Te, V = xe !== void 0 && xe, H = Se !== void 0 && Se, U = Ce !== void 0 && Ce, W;
55
+ c[2] !== j || c[3] !== u ? (W = j || u || /* @__PURE__ */ new Date(), c[2] = j, c[3] = u, c[4] = W) : W = c[4];
56
+ let [G, Ee] = T(W), K;
57
+ c[5] !== j || c[6] !== I || c[7] !== u ? (K = {
58
+ initialMonth: j,
59
+ isExpanded: I,
59
60
  selectedDate: u
60
- }, c[5] = P, c[6] = B, c[7] = u, c[8] = we) : we = c[8];
61
- let [Te, Ee] = E(we);
62
- u && (Te.initialMonth !== P || Te.isExpanded !== B || Te.selectedDate !== u) && (Ee({
63
- initialMonth: P,
64
- isExpanded: B,
61
+ }, c[5] = j, c[6] = I, c[7] = u, c[8] = K) : K = c[8];
62
+ let [De, Oe] = T(K);
63
+ u && (De.initialMonth !== j || De.isExpanded !== I || De.selectedDate !== u) && (Oe({
64
+ initialMonth: j,
65
+ isExpanded: I,
65
66
  selectedDate: u
66
- }), Ce(P || u));
67
- let [De, Oe] = E(!0), { locale: Y } = A[y], ke;
68
- c[9] === h ? ke = c[10] : (ke = (e) => {
69
- Ce(e), h && h(e);
70
- }, c[9] = h, c[10] = ke);
71
- let X = ke, Ae;
72
- c[11] !== F || c[12] !== De || c[13] !== R || c[14] !== be || c[15] !== d || c[16] !== p || c[17] !== I || c[18] !== f ? (Ae = (e) => {
67
+ }), Ee(j || u));
68
+ let [ke, Ae] = T(!0), { locale: q } = O[t()] ?? O["en-US"], J;
69
+ c[9] === h ? J = c[10] : (J = (e) => {
70
+ Ee(e), h && h(e);
71
+ }, c[9] = h, c[10] = J);
72
+ let Y = J, je;
73
+ c[11] !== M || c[12] !== ke || c[13] !== P || c[14] !== we || c[15] !== d || c[16] !== p || c[17] !== N || c[18] !== f ? (je = (e) => {
73
74
  let t = (e) => {
74
- if (De) I && I({
75
+ if (ke) N && N({
75
76
  startDate: e,
76
77
  endDate: null
77
- }), Oe(!1);
78
- else if (F?.startDate && F.startDate > e) I && I({
78
+ }), Ae(!1);
79
+ else if (M?.startDate && M.startDate > e) N && N({
79
80
  startDate: e,
80
81
  endDate: null
81
- }), Oe(!1);
82
+ }), Ae(!1);
82
83
  else {
83
- if (F?.startDate && o(e, F.startDate)) return;
84
- if (F?.startDate && I) {
84
+ if (M?.startDate && o(e, M.startDate)) return;
85
+ if (M?.startDate && N) {
85
86
  let t = {
86
- startDate: F.startDate,
87
+ startDate: M.startDate,
87
88
  endDate: e
88
89
  };
89
- I(t);
90
+ N(t);
90
91
  }
91
- Oe(!0);
92
+ Ae(!0);
92
93
  }
93
94
  };
94
- if (be) t(e);
95
- else if (R) {
95
+ if (we) t(e);
96
+ else if (P) {
96
97
  if (p) {
97
98
  let t = f?.some((t) => o(t, e)) ? (f ?? []).filter((t) => !o(t, e)) : [...f ?? [], e];
98
99
  p(t);
99
100
  }
100
101
  } else d && d(e);
101
- }, c[11] = F, c[12] = De, c[13] = R, c[14] = be, c[15] = d, c[16] = p, c[17] = I, c[18] = f, c[19] = Ae) : Ae = c[19];
102
- let Z = Ae, je;
103
- c[20] === Y ? je = c[21] : (je = function() {
104
- let e = a(/* @__PURE__ */ new Date(), { locale: Y });
105
- return Array.from({ length: 7 }, (t, n) => l(i(e, n), "eee", { locale: Y }));
106
- }, c[20] = Y, c[21] = je);
107
- let Me = je, Ne;
108
- c[22] !== Y || c[23] !== J ? (Ne = l(te(J), "MMMM yyyy", { locale: Y }), c[22] = Y, c[23] = J, c[24] = Ne) : Ne = c[24];
109
- let Q = Ne, Pe;
110
- c[25] === J ? Pe = c[26] : (Pe = s(J).getDate(), c[25] = J, c[26] = Pe);
111
- let $ = Pe, Fe = V ? "v." : void 0, Ie;
112
- if (c[27] !== b || c[28] !== F || c[29] !== K || c[30] !== q || c[31] !== G || c[32] !== S?.blueDotDates || c[33] !== S?.greenDotDates || c[34] !== S?.greyDotDates || c[35] !== S?.redDotDates || c[36] !== S?.yellowDotDates || c[37] !== Me || c[38] !== Z || c[39] !== X || c[40] !== U || c[41] !== B || c[42] !== R || c[43] !== Y || c[44] !== g || c[45] !== Q || c[46] !== $ || c[47] !== I || c[48] !== W || c[49] !== H || c[50] !== u || c[51] !== f || c[52] !== J || c[53] !== N || c[54] !== z || c[55] !== _ || c[56] !== Fe || c[57] !== V) {
113
- let e = [Fe, ...Me()], a = Y.options?.weekStartsOn || 0, l;
114
- c[59] === J ? l = c[60] : (l = te(J).getDay(), c[59] = J, c[60] = l);
115
- let d = (l - a + 7) % 7, p;
116
- c[61] === J ? p = c[62] : (p = s(J).getDay(), c[61] = J, c[62] = p);
117
- let m = (7 - p) % 7, h;
118
- c[63] === Symbol.for("react.memo_cache_sentinel") ? (h = [
102
+ }, c[11] = M, c[12] = ke, c[13] = P, c[14] = we, c[15] = d, c[16] = p, c[17] = N, c[18] = f, c[19] = je) : je = c[19];
103
+ let X = je, Me;
104
+ c[20] === q ? Me = c[21] : (Me = function() {
105
+ let e = a(/* @__PURE__ */ new Date(), { locale: q });
106
+ return Array.from({ length: 7 }, (t, ee) => l(i(e, ee), "eee", { locale: q }));
107
+ }, c[20] = q, c[21] = Me);
108
+ let Ne = Me, Z;
109
+ c[22] !== q || c[23] !== G ? (Z = l(ne(G), "MMMM yyyy", { locale: q }), c[22] = q, c[23] = G, c[24] = Z) : Z = c[24];
110
+ let Q = Z, Pe;
111
+ c[25] === G ? Pe = c[26] : (Pe = s(G).getDate(), c[25] = G, c[26] = Pe);
112
+ let $ = Pe, Fe = L ? "v." : void 0, Ie;
113
+ if (c[27] !== y || c[28] !== M || c[29] !== H || c[30] !== U || c[31] !== V || c[32] !== x?.blueDotDates || c[33] !== x?.greenDotDates || c[34] !== x?.greyDotDates || c[35] !== x?.redDotDates || c[36] !== x?.yellowDotDates || c[37] !== Ne || c[38] !== X || c[39] !== Y || c[40] !== z || c[41] !== I || c[42] !== P || c[43] !== q || c[44] !== g || c[45] !== Q || c[46] !== $ || c[47] !== N || c[48] !== B || c[49] !== R || c[50] !== u || c[51] !== f || c[52] !== G || c[53] !== A || c[54] !== F || c[55] !== _ || c[56] !== Fe || c[57] !== L) {
114
+ let e = [Fe, ...Ne()], t = q.options?.weekStartsOn || 0, a;
115
+ c[59] === G ? a = c[60] : (a = ne(G).getDay(), c[59] = G, c[60] = a);
116
+ let l = (a - t + 7) % 7, d;
117
+ c[61] === G ? d = c[62] : (d = s(G).getDay(), c[61] = G, c[62] = d);
118
+ let p = (7 - d) % 7, m;
119
+ c[63] === Symbol.for("react.memo_cache_sentinel") ? (m = [
119
120
  "auto",
120
121
  "auto",
121
122
  "100%"
122
- ], c[63] = h) : h = c[63];
123
- let v = h, y;
124
- c[64] === Symbol.for("react.memo_cache_sentinel") ? (y = [
123
+ ], c[63] = m) : m = c[63];
124
+ let h = m, v;
125
+ c[64] === Symbol.for("react.memo_cache_sentinel") ? (v = [
125
126
  "auto",
126
127
  "auto",
127
128
  "100%"
128
- ], c[64] = y) : y = c[64];
129
- let x = y, E;
130
- c[65] !== b || c[66] !== N ? (E = (e) => !b && w(e) ? !0 : N ? N(e) : !1, c[65] = b, c[66] = N, c[67] = E) : E = c[67];
131
- let k = E, A;
132
- if (c[68] !== k || c[69] !== F || c[70] !== m || c[71] !== S?.blueDotDates || c[72] !== S?.greenDotDates || c[73] !== S?.greyDotDates || c[74] !== S?.redDotDates || c[75] !== S?.yellowDotDates || c[76] !== d || c[77] !== Z || c[78] !== U || c[79] !== R || c[80] !== g || c[81] !== $ || c[82] !== W || c[83] !== H || c[84] !== u || c[85] !== f || c[86] !== J || c[87] !== z || c[88] !== _ || c[89] !== V) {
129
+ ], c[64] = v) : v = c[64];
130
+ let b = v, S;
131
+ c[65] !== y || c[66] !== A ? (S = (e) => !y && ce(e) ? !0 : A ? A(e) : !1, c[65] = y, c[66] = A, c[67] = S) : S = c[67];
132
+ let T = S, D;
133
+ if (c[68] !== T || c[69] !== M || c[70] !== p || c[71] !== x?.blueDotDates || c[72] !== x?.greenDotDates || c[73] !== x?.greyDotDates || c[74] !== x?.redDotDates || c[75] !== x?.yellowDotDates || c[76] !== l || c[77] !== X || c[78] !== z || c[79] !== P || c[80] !== g || c[81] !== $ || c[82] !== B || c[83] !== R || c[84] !== u || c[85] !== f || c[86] !== G || c[87] !== F || c[88] !== _ || c[89] !== L) {
133
134
  let e;
134
- c[91] !== k || c[92] !== F || c[93] !== S?.blueDotDates || c[94] !== S?.greenDotDates || c[95] !== S?.greyDotDates || c[96] !== S?.redDotDates || c[97] !== S?.yellowDotDates || c[98] !== d || c[99] !== Z || c[100] !== U || c[101] !== R || c[102] !== g || c[103] !== W || c[104] !== H || c[105] !== u || c[106] !== f || c[107] !== J || c[108] !== z || c[109] !== _ || c[110] !== V ? (e = (e, n) => {
135
- let r = i(te(J), n - d), ee = re(r, J), a = o(r, /* @__PURE__ */ new Date()), s = k(r) || U, c = T(r, S?.yellowDotDates), l = T(r, S?.greenDotDates), p = T(r, S?.blueDotDates), m = T(r, S?.redDotDates), h = T(r, S?.greyDotDates), v = se(r, _) && !s, y = !1;
136
- u && (y = o(r, u)), R && f && (y = f.some((e) => o(e, r)));
137
- let b = r.getDay() === 0, x = W.some((e) => o(e, r)) || (g ?? !1) && b, C = ne(r), w = !1;
138
- H && u && (w = ne(u) === C);
139
- let ce = !re(r, J), E = !!(F?.startDate && F?.endDate && r > F.startDate && r < F.endDate), de = !1;
140
- F?.startDate && (de = o(r, F?.startDate));
141
- let D = !1, pe = !1;
142
- F?.endDate && (D = o(r, F?.endDate), pe = !0);
143
- let A = ae(y || w, a, ce, E, de, D, pe), j = oe(w, a), M = ae(y || w, a, ce, E, de, D), N = Math.floor(n / 7) + 1, P = n % 7 + 1;
144
- return V ? /* @__PURE__ */ me(ue.Fragment, { children: [
145
- V && n % 7 == 0 && /* @__PURE__ */ O(fe, {
135
+ c[91] !== T || c[92] !== M || c[93] !== x?.blueDotDates || c[94] !== x?.greenDotDates || c[95] !== x?.greyDotDates || c[96] !== x?.redDotDates || c[97] !== x?.yellowDotDates || c[98] !== l || c[99] !== X || c[100] !== z || c[101] !== P || c[102] !== g || c[103] !== B || c[104] !== R || c[105] !== u || c[106] !== f || c[107] !== G || c[108] !== F || c[109] !== _ || c[110] !== L ? (e = (e, t) => {
136
+ let n = i(ne(G), t - l), te = ie(n, G), r = o(n, /* @__PURE__ */ new Date()), a = T(n) || z, s = w(n, x?.yellowDotDates), c = w(n, x?.greenDotDates), d = w(n, x?.blueDotDates), p = w(n, x?.redDotDates), m = w(n, x?.greyDotDates), h = le(n, _) && !a, v = !1;
137
+ u && (v = o(n, u)), P && f && (v = f.some((e) => o(e, n)));
138
+ let y = n.getDay() === 0, b = B.some((e) => o(e, n)) || (g ?? !1) && y, S = re(n), C = !1;
139
+ R && u && (C = re(u) === S);
140
+ let ce = !ie(n, G), ue = !!(M?.startDate && M?.endDate && n > M.startDate && n < M.endDate), pe = !1;
141
+ M?.startDate && (pe = o(n, M?.startDate));
142
+ let he = !1, ge = !1;
143
+ M?.endDate && (he = o(n, M?.endDate), ge = !0);
144
+ let D = oe(v || C, r, ce, ue, pe, he, ge), O = se(C, r), k = oe(v || C, r, ce, ue, pe, he), A = Math.floor(t / 7) + 1, j = t % 7 + 1;
145
+ return L ? /* @__PURE__ */ me(fe.Fragment, { children: [
146
+ L && t % 7 == 0 && /* @__PURE__ */ E(_e, {
146
147
  gridColumn: 1,
147
148
  gridRow: "1 / span 7",
148
149
  opacity: "0.24",
149
150
  borderRight: "1px solid",
150
- borderColor: t.OnSurfaceBorder
151
- }, `grid-${n}-${r.toUTCString()}`),
152
- V && n % 7 == 0 && /* @__PURE__ */ O(le, {
153
- handleWeekChange: Z,
154
- date: r,
155
- gridIndex: n,
156
- variant: j,
157
- selectWeek: H,
158
- isDisabled: s
159
- }, `week-${n}-${C}`),
160
- /* @__PURE__ */ O(ie, {
161
- hasBlueDot: p,
162
- hasGreenDot: l,
163
- hasYellowDot: c,
164
- hasRedDot: m,
165
- hasGreyDot: h,
166
- gridIndex: n,
167
- gridColumn: V ? P + 2 : P,
168
- gridRow: N,
169
- day: r,
170
- handleDateChange: Z,
171
- variant: M,
172
- isDisabled: s,
173
- isStrikeThrough: v,
174
- selectWeek: H,
175
- isHoliday: x
176
- }, r.toString() + n)
177
- ] }, `fragment-${n}-${C}`) : ee || z ? /* @__PURE__ */ O(ie, {
178
- hasBlueDot: p,
179
- hasGreenDot: l,
180
- hasYellowDot: c,
181
- hasRedDot: m,
182
- hasGreyDot: h,
183
- gridIndex: n,
184
- gridColumn: V ? P + 1 : P,
185
- gridRow: N,
186
- day: r,
187
- handleDateChange: Z,
188
- variant: A,
189
- isDisabled: s,
190
- isStrikeThrough: v,
191
- selectWeek: H,
192
- isHoliday: x
193
- }, `${r.toString()}-${n}`) : null;
194
- }, c[91] = k, c[92] = F, c[93] = S?.blueDotDates, c[94] = S?.greenDotDates, c[95] = S?.greyDotDates, c[96] = S?.redDotDates, c[97] = S?.yellowDotDates, c[98] = d, c[99] = Z, c[100] = U, c[101] = R, c[102] = g, c[103] = W, c[104] = H, c[105] = u, c[106] = f, c[107] = J, c[108] = z, c[109] = _, c[110] = V, c[111] = e) : e = c[111], A = Array.from({ length: $ + d + m }, e), c[68] = k, c[69] = F, c[70] = m, c[71] = S?.blueDotDates, c[72] = S?.greenDotDates, c[73] = S?.greyDotDates, c[74] = S?.redDotDates, c[75] = S?.yellowDotDates, c[76] = d, c[77] = Z, c[78] = U, c[79] = R, c[80] = g, c[81] = $, c[82] = W, c[83] = H, c[84] = u, c[85] = f, c[86] = J, c[87] = z, c[88] = _, c[89] = V, c[90] = A;
195
- } else A = c[90];
196
- let j = A, M;
197
- c[112] === u ? M = c[113] : (M = u || /* @__PURE__ */ new Date(), c[112] = u, c[113] = M);
198
- let P;
199
- c[114] !== F || c[115] !== K || c[116] !== q || c[117] !== G || c[118] !== Z || c[119] !== X || c[120] !== B || c[121] !== Y || c[122] !== Q || c[123] !== I || c[124] !== H || c[125] !== J || c[126] !== M ? (P = /* @__PURE__ */ O(ce, {
200
- selectedDate: M,
201
- onDateChange: Z,
202
- isExpanded: B,
203
- onMonthChange: X,
204
- selectedMonth: J,
151
+ borderColor: ee.OnSurfaceBorder
152
+ }, `grid-${t}-${n.toUTCString()}`),
153
+ L && t % 7 == 0 && /* @__PURE__ */ E(de, {
154
+ handleWeekChange: X,
155
+ date: n,
156
+ gridIndex: t,
157
+ variant: O,
158
+ selectWeek: R,
159
+ isDisabled: a
160
+ }, `week-${t}-${S}`),
161
+ /* @__PURE__ */ E(ae, {
162
+ hasBlueDot: d,
163
+ hasGreenDot: c,
164
+ hasYellowDot: s,
165
+ hasRedDot: p,
166
+ hasGreyDot: m,
167
+ gridIndex: t,
168
+ gridColumn: L ? j + 2 : j,
169
+ gridRow: A,
170
+ day: n,
171
+ handleDateChange: X,
172
+ variant: k,
173
+ isDisabled: a,
174
+ isStrikeThrough: h,
175
+ selectWeek: R,
176
+ isHoliday: b
177
+ }, n.toString() + t)
178
+ ] }, `fragment-${t}-${S}`) : te || F ? /* @__PURE__ */ E(ae, {
179
+ hasBlueDot: d,
180
+ hasGreenDot: c,
181
+ hasYellowDot: s,
182
+ hasRedDot: p,
183
+ hasGreyDot: m,
184
+ gridIndex: t,
185
+ gridColumn: L ? j + 1 : j,
186
+ gridRow: A,
187
+ day: n,
188
+ handleDateChange: X,
189
+ variant: D,
190
+ isDisabled: a,
191
+ isStrikeThrough: h,
192
+ selectWeek: R,
193
+ isHoliday: b
194
+ }, `${n.toString()}-${t}`) : null;
195
+ }, c[91] = T, c[92] = M, c[93] = x?.blueDotDates, c[94] = x?.greenDotDates, c[95] = x?.greyDotDates, c[96] = x?.redDotDates, c[97] = x?.yellowDotDates, c[98] = l, c[99] = X, c[100] = z, c[101] = P, c[102] = g, c[103] = B, c[104] = R, c[105] = u, c[106] = f, c[107] = G, c[108] = F, c[109] = _, c[110] = L, c[111] = e) : e = c[111], D = Array.from({ length: $ + l + p }, e), c[68] = T, c[69] = M, c[70] = p, c[71] = x?.blueDotDates, c[72] = x?.greenDotDates, c[73] = x?.greyDotDates, c[74] = x?.redDotDates, c[75] = x?.yellowDotDates, c[76] = l, c[77] = X, c[78] = z, c[79] = P, c[80] = g, c[81] = $, c[82] = B, c[83] = R, c[84] = u, c[85] = f, c[86] = G, c[87] = F, c[88] = _, c[89] = L, c[90] = D;
196
+ } else D = c[90];
197
+ let O = D, k;
198
+ c[112] === u ? k = c[113] : (k = u || /* @__PURE__ */ new Date(), c[112] = u, c[113] = k);
199
+ let j;
200
+ c[114] !== M || c[115] !== H || c[116] !== U || c[117] !== V || c[118] !== X || c[119] !== Y || c[120] !== I || c[121] !== q || c[122] !== Q || c[123] !== N || c[124] !== R || c[125] !== G || c[126] !== k ? (j = /* @__PURE__ */ E(ue, {
201
+ selectedDate: k,
202
+ onDateChange: X,
203
+ isExpanded: I,
204
+ onMonthChange: Y,
205
+ selectedMonth: G,
205
206
  month: Q,
206
- locale: Y,
207
- selectWeek: H,
208
- disablePastMonths: G,
209
- disableBackwardNavigation: K,
210
- disableForwardNavigation: q,
211
- dateRange: F,
212
- onRangeChange: I
213
- }), c[114] = F, c[115] = K, c[116] = q, c[117] = G, c[118] = Z, c[119] = X, c[120] = B, c[121] = Y, c[122] = Q, c[123] = I, c[124] = H, c[125] = J, c[126] = M, c[127] = P) : P = c[127], Ie = /* @__PURE__ */ me(de, {
214
- w: x,
215
- h: v,
216
- children: [P, B && /* @__PURE__ */ me(pe, { children: [/* @__PURE__ */ O(D, {
217
- templateColumns: V ? "48px 1px 1fr 1fr 1fr 1fr 1fr 1fr 1fr" : "repeat(7, 1fr)",
218
- children: e.map((e, i) => {
219
- let a;
220
- return a = V && i === 0 ? 1 : V ? i + 2 : i, e ? /* @__PURE__ */ O(fe, {
207
+ locale: q,
208
+ selectWeek: R,
209
+ disablePastMonths: V,
210
+ disableBackwardNavigation: H,
211
+ disableForwardNavigation: U,
212
+ dateRange: M,
213
+ onRangeChange: N
214
+ }), c[114] = M, c[115] = H, c[116] = U, c[117] = V, c[118] = X, c[119] = Y, c[120] = I, c[121] = q, c[122] = Q, c[123] = N, c[124] = R, c[125] = G, c[126] = k, c[127] = j) : j = c[127], Ie = /* @__PURE__ */ me(he, {
215
+ w: b,
216
+ h,
217
+ children: [j, I && /* @__PURE__ */ me(pe, { children: [/* @__PURE__ */ E(ge, {
218
+ templateColumns: L ? "48px 1px 1fr 1fr 1fr 1fr 1fr 1fr 1fr" : "repeat(7, 1fr)",
219
+ children: e.map((e, t) => {
220
+ let i;
221
+ return i = L && t === 0 ? 1 : L ? t + 2 : t, e ? /* @__PURE__ */ E(_e, {
221
222
  textAlign: "center",
222
223
  fontWeight: "500",
223
- fontFamily: r.Body,
224
+ fontFamily: te.Body,
224
225
  fontSize: n.Small,
225
- gridColumn: a,
226
- borderRight: V && i === 0 ? `1px solid ${t.OnSurfaceBorder}` : "",
227
- pb: ee.Small,
226
+ gridColumn: i,
227
+ borderRight: L && t === 0 ? `1px solid ${ee.OnSurfaceBorder}` : "",
228
+ pb: r.Small,
228
229
  children: C(e).slice(0, 2)
229
230
  }, e) : null;
230
231
  })
231
- }), /* @__PURE__ */ O(D, {
232
- templateColumns: V ? "48px 1px 1fr 1fr 1fr 1fr 1fr 1fr 1fr" : "repeat(7, 1fr)",
233
- rowGap: ee.Small,
232
+ }), /* @__PURE__ */ E(ge, {
233
+ templateColumns: L ? "48px 1px 1fr 1fr 1fr 1fr 1fr 1fr 1fr" : "repeat(7, 1fr)",
234
+ rowGap: r.Small,
234
235
  flexShrink: 1,
235
- children: j
236
+ children: O
236
237
  })] })]
237
- }), c[27] = b, c[28] = F, c[29] = K, c[30] = q, c[31] = G, c[32] = S?.blueDotDates, c[33] = S?.greenDotDates, c[34] = S?.greyDotDates, c[35] = S?.redDotDates, c[36] = S?.yellowDotDates, c[37] = Me, c[38] = Z, c[39] = X, c[40] = U, c[41] = B, c[42] = R, c[43] = Y, c[44] = g, c[45] = Q, c[46] = $, c[47] = I, c[48] = W, c[49] = H, c[50] = u, c[51] = f, c[52] = J, c[53] = N, c[54] = z, c[55] = _, c[56] = Fe, c[57] = V, c[58] = Ie;
238
+ }), c[27] = y, c[28] = M, c[29] = H, c[30] = U, c[31] = V, c[32] = x?.blueDotDates, c[33] = x?.greenDotDates, c[34] = x?.greyDotDates, c[35] = x?.redDotDates, c[36] = x?.yellowDotDates, c[37] = Ne, c[38] = X, c[39] = Y, c[40] = z, c[41] = I, c[42] = P, c[43] = q, c[44] = g, c[45] = Q, c[46] = $, c[47] = N, c[48] = B, c[49] = R, c[50] = u, c[51] = f, c[52] = G, c[53] = A, c[54] = F, c[55] = _, c[56] = Fe, c[57] = L, c[58] = Ie;
238
239
  } else Ie = c[58];
239
240
  return Ie;
240
241
  }
241
242
  //#endregion
242
- export { j as BaseDatePicker };
243
+ export { k as BaseDatePicker };