@hortiview/shared-components 2.17.0 → 2.18.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (220) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/{AlertBanner-aW6joVUm.js → AlertBanner-BFzaGOer.js} +3 -3
  3. package/dist/{GenericCard-IWX-Bmb_.js → GenericCard-grpa3KJR.js} +3 -3
  4. package/dist/{ListAreaService-Fsm3-gDM.js → ListAreaService-DfxJ7jFs.js} +5 -5
  5. package/dist/{_Map-D8db_GOu.js → _Map-BYxTn6ob.js} +1 -1
  6. package/dist/{_commonjsHelpers-B4e78b8K.js → _commonjsHelpers-ByX85dGu.js} +18 -13
  7. package/dist/animationframe-CqXArbwZ.js +32 -0
  8. package/dist/component-By6nyiBU.js +70 -0
  9. package/dist/{component-DEJuY56h.js → component-DYpB_4EP.js} +1 -111
  10. package/dist/components/AlertBanner/AlertBanner.js +4 -4
  11. package/dist/components/AlertBanner/LinkBanner.js +3 -3
  12. package/dist/components/AllowedButton/AllowedButton.js +1 -1
  13. package/dist/components/AllowedIconButton/AllowedIconButton.js +1 -1
  14. package/dist/components/BaseView/BaseView.js +14 -14
  15. package/dist/components/BasicHeading/BasicHeading.js +5 -5
  16. package/dist/components/BlockView/BlockView.js +2 -2
  17. package/dist/components/ButtonCard/ButtonCard.js +6 -6
  18. package/dist/components/ChipCard/ChipCard.js +13 -255
  19. package/dist/components/ConfirmationModal/ConfirmationModal.js +8 -8
  20. package/dist/components/ContextMenu/ContextMenu.js +12 -12
  21. package/dist/components/DeleteModal/DeleteModal.js +25 -25
  22. package/dist/components/DetailContentWrapper/DetailContentWrapper.js +1 -1
  23. package/dist/components/Disclaimer/Disclaimer.js +3 -3
  24. package/dist/components/EmptyView/EmptyView.js +3 -3
  25. package/dist/components/Filter/Filter.js +15 -15
  26. package/dist/components/FormComponents/FormCheckBox/FormCheckBox.js +1 -1
  27. package/dist/components/FormComponents/FormDatePicker/FormDatePicker.js +7 -22
  28. package/dist/components/FormComponents/FormNumber/CustomTextField.js +3 -3
  29. package/dist/components/FormComponents/FormNumber/FormNumber.js +1 -1
  30. package/dist/components/FormComponents/FormRadio/FormRadio.js +1 -1
  31. package/dist/components/FormComponents/FormSelect/FormSelect.d.ts +2 -2
  32. package/dist/components/FormComponents/FormSelect/FormSelect.js +73 -72
  33. package/dist/components/FormComponents/FormSelect/SelectTooltipText.js +2 -2
  34. package/dist/components/FormComponents/FormSlider/FormSlider.js +10 -98
  35. package/dist/components/FormComponents/FormText/FormText.js +2 -2
  36. package/dist/components/FormComponents/FormToggle/FormToggle.js +4 -4
  37. package/dist/components/FormattedNumberDisplay/FormattedNumberDisplay.js +1 -1
  38. package/dist/components/GenericTable/GenericTable.js +36 -172
  39. package/dist/components/GenericTable/Mobile/GenericCard.js +4 -4
  40. package/dist/components/GenericTable/Mobile/GenericCardList.js +4 -4
  41. package/dist/components/HashTabView/HashTabView.js +10 -428
  42. package/dist/components/HeaderFilter/HeaderFilter.js +1 -1
  43. package/dist/components/Iconify/Iconify.js +2 -2
  44. package/dist/components/InfoCard/InfoCard.js +4 -4
  45. package/dist/components/InfoGroup/InfoGroup.js +4 -4
  46. package/dist/components/ListArea/ListArea.js +6 -6
  47. package/dist/components/ListArea/ListAreaService.js +6 -6
  48. package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.js +13 -5
  49. package/dist/components/LoadingSpinner/Default/LoadingSpinner.js +8 -74
  50. package/dist/components/Modal/Modal.js +12 -122
  51. package/dist/components/ModulePadding/ModulePadding.js +11 -11
  52. package/dist/components/OfflineView/OfflineView.js +45 -7
  53. package/dist/components/OnboardingBanner/OnboardingBanner.js +8 -8
  54. package/dist/components/OverflowTooltip/OverflowTooltip.js +2 -2
  55. package/dist/components/SearchBar/SearchBar.js +2 -2
  56. package/dist/components/Select/Select.js +2 -2
  57. package/dist/components/Stepper/Stepper.js +1 -1
  58. package/dist/components/Stepper/components/StepperButton.js +1 -1
  59. package/dist/components/Stepper/components/StepperHeader.js +3 -3
  60. package/dist/components/Stepper/components/StepperItem.js +2 -2
  61. package/dist/{correct-is-regexp-logic-Y0ToWEjF.js → correct-is-regexp-logic-BJ-OWRrn.js} +1 -1
  62. package/dist/{defineProperty-BTsGZ3c1.js → defineProperty-B7N9EBBI.js} +3 -3
  63. package/dist/{es.string.iterator-UszlTFwY.js → es.string.iterator-DBx2A42F.js} +2 -2
  64. package/dist/{find-CHg-_ooq.js → find-eU9ab_u7.js} +4 -4
  65. package/dist/{get-DxjPG00Z.js → get-BLvvbtML.js} +3 -3
  66. package/dist/get-CBFiuc3f.js +7 -0
  67. package/dist/hooks/useBreakpoints.js +37 -3
  68. package/dist/hooks/useHelperText.js +1 -1
  69. package/dist/{identity-BVIVr9qu.js → identity-B0bbReND.js} +4 -4
  70. package/dist/{index-BcGujPyk.js → index-Df2FYN-K.js} +5 -26
  71. package/dist/{index.es-B8p8KCdj.js → index.es-B19PQgzU.js} +4 -4
  72. package/dist/{index.es-BYcQTTL8.js → index.es-B9BUXRQn.js} +9 -339
  73. package/dist/{index.es-BPv5dCFQ.js → index.es-BOG3_7IM.js} +12 -12
  74. package/dist/{index.es-DGoBge9W.js → index.es-BOvO8moE.js} +4 -4
  75. package/dist/{index.es-BoUnovl_.js → index.es-BcnmoCEg.js} +8 -74
  76. package/dist/{index.es-C32E1Lcb.js → index.es-BwafUoK3.js} +82 -147
  77. package/dist/{index.es-B1h6DPYp.js → index.es-C27R5Xae.js} +2 -2
  78. package/dist/{index.es-nwjKmW7-.js → index.es-C2IOpX7R.js} +34 -111
  79. package/dist/{index.es-Da7ok-B-.js → index.es-C6I3L4U4.js} +2 -2
  80. package/dist/{index.es-BHvm4m-B.js → index.es-Cg57snrN.js} +19 -261
  81. package/dist/{index.es-DUTChZks.js → index.es-Ci3O23C_.js} +6 -72
  82. package/dist/{index.es-t87yNd9Y.js → index.es-CkB4776y.js} +6 -72
  83. package/dist/{index.es-CeQB6igi.js → index.es-Cr1PSTyq.js} +3 -3
  84. package/dist/{index.es--C-VLspF.js → index.es-D1iB_QlE.js} +8 -140
  85. package/dist/{index.es-Dgxrk6xW.js → index.es-DEBGoIKX.js} +2 -2
  86. package/dist/{index.es-CWyjqoEE.js → index.es-DHnCVuQ8.js} +7 -73
  87. package/dist/{index.es-Bo-d_yTV.js → index.es-DHoIQ8lu.js} +2 -2
  88. package/dist/{index.es-SjZ_-d7U.js → index.es-DUrjyxNI.js} +5 -5
  89. package/dist/{index.es-Cfv794DG.js → index.es-DdeCB7LW.js} +1 -1
  90. package/dist/{index.es-BanVdXEd.js → index.es-DgncYOqO.js} +2 -2
  91. package/dist/{index.es-DOnQ26kT.js → index.es-DhlgTSuU.js} +3 -3
  92. package/dist/{index.es-oxil0uFe.js → index.es-Z0aF-7Cn.js} +3 -6
  93. package/dist/{index.es-DmRhbgqK.js → index.es-l_3PNohs.js} +2 -68
  94. package/dist/{isArray-B457bpaW.js → isArray-Ce1Q96lU.js} +1 -1
  95. package/dist/isArray-olhCpv2e.js +7 -0
  96. package/dist/{isEmpty-BnfHn4bl.js → isEmpty-l2xQKl4x.js} +3 -3
  97. package/dist/{isString-DVA49FEo.js → isString-BNdV0Jpg.js} +3 -3
  98. package/dist/{isTypedArray-DziahYkI.js → isTypedArray-D39qzPYE.js} +2 -2
  99. package/dist/{keyboard-DiKJoabs.js → keyboard-DbG3oyPU.js} +3 -25
  100. package/dist/main.js +15 -15
  101. package/dist/{map-BprzXv4m.js → map-ZSVweMI1.js} +5 -5
  102. package/dist/{omit-CYY_mIYv.js → omit-BWQrFyQ-.js} +7 -7
  103. package/dist/{orderBy-DLBJlgdL.js → orderBy-Ce85KqD6.js} +7 -7
  104. package/dist/{parse-int-D-3oah_F.js → parse-int-CGpIXMGa.js} +2 -2
  105. package/dist/{react-number-format.es-DzkMiF8j.js → react-number-format.es-pczkQ4lQ.js} +0 -1
  106. package/dist/{react-tooltip.min-CVsI--2Y.js → react-tooltip.min-Dkz5ltCC.js} +1 -12
  107. package/dist/{react.esm-Bm0cAgpZ.js → react.esm-DF7i80eN.js} +2471 -2582
  108. package/dist/services/UtilService.js +9 -9
  109. package/dist/{slicedToArray-ByMQIs5x.js → slicedToArray-DC6VAZtW.js} +4 -4
  110. package/dist/test-utils.js +1 -1
  111. package/dist/{toString-B7FIT8FE.js → toString-D5bEU-DN.js} +1 -1
  112. package/dist/{uniqueId-BNVTeImh.js → uniqueId-CJo-XRQb.js} +2 -2
  113. package/dist/{util-DA21pZXj.js → util-CBo-ipCE.js} +0 -22
  114. package/package.json +2 -2
  115. package/dist/BigLoadingSpinner-DGj9_Z5J.js +0 -16
  116. package/dist/OfflineView-CIwV08EQ.js +0 -48
  117. package/dist/animationframe-BVKDmEXe.js +0 -54
  118. package/dist/component-Bz_dtX1r.js +0 -114
  119. package/dist/components/AlertBanner/AlertBanner.test.d.ts +0 -1
  120. package/dist/components/AlertBanner/AlertBanner.test.js +0 -34
  121. package/dist/components/AlertBanner/LinkBanner.test.d.ts +0 -1
  122. package/dist/components/AlertBanner/LinkBanner.test.js +0 -17
  123. package/dist/components/Allowed/Allowed.test.d.ts +0 -1
  124. package/dist/components/Allowed/Allowed.test.js +0 -49
  125. package/dist/components/AllowedButton/AllowedButton.test.d.ts +0 -1
  126. package/dist/components/AllowedButton/AllowedButton.test.js +0 -126
  127. package/dist/components/AllowedIconButton/AllowedIconButton.test.d.ts +0 -1
  128. package/dist/components/AllowedIconButton/AllowedIconButton.test.js +0 -121
  129. package/dist/components/BaseView/BaseView.test.d.ts +0 -1
  130. package/dist/components/BaseView/BaseView.test.js +0 -180
  131. package/dist/components/BasicHeading/BasicHeading.test.d.ts +0 -1
  132. package/dist/components/BasicHeading/BasicHeading.test.js +0 -36
  133. package/dist/components/BlockView/BlockView.test.d.ts +0 -1
  134. package/dist/components/BlockView/BlockView.test.js +0 -47
  135. package/dist/components/ButtonCard/ButtonCard.test.d.ts +0 -1
  136. package/dist/components/ButtonCard/ButtonCard.test.js +0 -92
  137. package/dist/components/ChipCard/ChipCard.test.d.ts +0 -1
  138. package/dist/components/ChipCard/ChipCard.test.js +0 -25
  139. package/dist/components/ConfirmationModal/ConfirmationModal.test.d.ts +0 -1
  140. package/dist/components/ConfirmationModal/ConfirmationModal.test.js +0 -221
  141. package/dist/components/ContextMenu/ContextMenu.test.d.ts +0 -1
  142. package/dist/components/ContextMenu/ContextMenu.test.js +0 -96
  143. package/dist/components/DeleteModal/DeleteModal.test.d.ts +0 -1
  144. package/dist/components/DeleteModal/DeleteModal.test.js +0 -132
  145. package/dist/components/Disclaimer/Disclaimer.test.d.ts +0 -1
  146. package/dist/components/Disclaimer/Disclaimer.test.js +0 -13
  147. package/dist/components/EmptyView/EmptyView.test.d.ts +0 -1
  148. package/dist/components/EmptyView/EmptyView.test.js +0 -50
  149. package/dist/components/Filter/Filter.test.d.ts +0 -1
  150. package/dist/components/Filter/Filter.test.js +0 -166
  151. package/dist/components/FormComponents/FormCheckBox/FormCheckBox.test.d.ts +0 -1
  152. package/dist/components/FormComponents/FormCheckBox/FormCheckBox.test.js +0 -56
  153. package/dist/components/FormComponents/FormDatePicker/FormDatePicker.test.d.ts +0 -1
  154. package/dist/components/FormComponents/FormDatePicker/FormDatePicker.test.js +0 -56
  155. package/dist/components/FormComponents/FormNumber/FormNumber.test.d.ts +0 -1
  156. package/dist/components/FormComponents/FormNumber/FormNumber.test.js +0 -51
  157. package/dist/components/FormComponents/FormRadio/FormRadio.test.d.ts +0 -1
  158. package/dist/components/FormComponents/FormRadio/FormRadio.test.js +0 -73
  159. package/dist/components/FormComponents/FormSelect/FormSelect.test.d.ts +0 -1
  160. package/dist/components/FormComponents/FormSelect/FormSelect.test.js +0 -154
  161. package/dist/components/FormComponents/FormSlider/FormSlider.test.d.ts +0 -1
  162. package/dist/components/FormComponents/FormSlider/FormSlider.test.js +0 -49
  163. package/dist/components/FormComponents/FormText/FormText.test.d.ts +0 -1
  164. package/dist/components/FormComponents/FormText/FormText.test.js +0 -113
  165. package/dist/components/FormComponents/FormToggle/FormToggle.test.d.ts +0 -1
  166. package/dist/components/FormComponents/FormToggle/FormToggle.test.js +0 -54
  167. package/dist/components/GenericTable/GenericTable.test.d.ts +0 -1
  168. package/dist/components/GenericTable/GenericTable.test.js +0 -115
  169. package/dist/components/GenericTable/Mobile/GenericCard.test.d.ts +0 -1
  170. package/dist/components/GenericTable/Mobile/GenericCard.test.js +0 -76
  171. package/dist/components/GenericTable/Mobile/GenericCardList.test.d.ts +0 -1
  172. package/dist/components/GenericTable/Mobile/GenericCardList.test.js +0 -75
  173. package/dist/components/HashTabView/HashTabView.test.d.ts +0 -1
  174. package/dist/components/HashTabView/HashTabView.test.js +0 -31
  175. package/dist/components/HeaderFilter/HeaderFilter.test.d.ts +0 -1
  176. package/dist/components/HeaderFilter/HeaderFilter.test.js +0 -46
  177. package/dist/components/Iconify/Iconify.test.d.ts +0 -1
  178. package/dist/components/Iconify/Iconify.test.js +0 -28
  179. package/dist/components/InfoCard/InfoCard.test.d.ts +0 -1
  180. package/dist/components/InfoCard/InfoCard.test.js +0 -48
  181. package/dist/components/InfoGroup/InfoGroup.test.d.ts +0 -1
  182. package/dist/components/InfoGroup/InfoGroup.test.js +0 -40
  183. package/dist/components/ListArea/ListArea.test.d.ts +0 -1
  184. package/dist/components/ListArea/ListArea.test.js +0 -110
  185. package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.test.d.ts +0 -1
  186. package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.test.js +0 -15
  187. package/dist/components/LoadingSpinner/Default/LoadingSpinner.test.d.ts +0 -1
  188. package/dist/components/LoadingSpinner/Default/LoadingSpinner.test.js +0 -20
  189. package/dist/components/ModulePadding/ModulePadding.test.d.ts +0 -1
  190. package/dist/components/ModulePadding/ModulePadding.test.js +0 -22
  191. package/dist/components/OfflineView/OfflineView.test.d.ts +0 -1
  192. package/dist/components/OfflineView/OfflineView.test.js +0 -24
  193. package/dist/components/OnboardingBanner/OnboardingBanner.test.d.ts +0 -1
  194. package/dist/components/OnboardingBanner/OnboardingBanner.test.js +0 -72
  195. package/dist/components/OverflowTooltip/OverflowTooltip.test.d.ts +0 -1
  196. package/dist/components/OverflowTooltip/OverflowTooltip.test.js +0 -37
  197. package/dist/components/PermissionChecks/PermissionService.test.d.ts +0 -1
  198. package/dist/components/PermissionChecks/PermissionService.test.js +0 -91
  199. package/dist/components/SafeForm/SafeForm.test.d.ts +0 -1
  200. package/dist/components/SafeForm/SafeForm.test.js +0 -91
  201. package/dist/components/Scrollbar/scrollbar.test.d.ts +0 -1
  202. package/dist/components/Scrollbar/scrollbar.test.js +0 -15
  203. package/dist/components/SearchBar/SearchBar.test.d.ts +0 -1
  204. package/dist/components/SearchBar/SearchBar.test.js +0 -23
  205. package/dist/components/Select/Select.test.d.ts +0 -1
  206. package/dist/components/Select/Select.test.js +0 -28
  207. package/dist/components/Stepper/Stepper.test.d.ts +0 -1
  208. package/dist/components/Stepper/Stepper.test.js +0 -342
  209. package/dist/components/VerticalDivider/VerticalDivider.test.d.ts +0 -1
  210. package/dist/components/VerticalDivider/VerticalDivider.test.js +0 -15
  211. package/dist/get-D8IXqiys.js +0 -7
  212. package/dist/hooks/useBreakpoints.test.d.ts +0 -1
  213. package/dist/hooks/useBreakpoints.test.js +0 -11
  214. package/dist/index-BLPBqbdx.js +0 -11025
  215. package/dist/isArray-BjSPDQ4v.js +0 -7
  216. package/dist/magic-string.es-uPKorP4O.js +0 -663
  217. package/dist/services/services.test.d.ts +0 -1
  218. package/dist/services/services.test.js +0 -106
  219. package/dist/useBreakpoints-MzTZ0tCT.js +0 -45
  220. package/dist/vi.bdSIJ99Y-B308Q-4w.js +0 -11963
@@ -1,8 +1,8 @@
1
1
  import { jsx as C, jsxs as pa } from "react/jsx-runtime";
2
- import { B as ba } from "../../../index.es-B8p8KCdj.js";
3
- import { b as u, a as o, c as d, d as s, r as wa, s as be, t as M, m as j, l as D, f as z, e as N, g as ya, D as Pa } from "../../../index.es-C32E1Lcb.js";
4
- import { D as ka } from "../../../index.es-B1h6DPYp.js";
5
- import { P as Ma } from "../../../index.es-BanVdXEd.js";
2
+ import { B as ba } from "../../../index.es-B19PQgzU.js";
3
+ import { b as u, a as o, c as d, d as s, r as wa, s as be, t as M, m as j, l as D, f as z, e as N, g as ya, D as Pa } from "../../../index.es-BwafUoK3.js";
4
+ import { D as ka } from "../../../index.es-C27R5Xae.js";
5
+ import { P as Ma } from "../../../index.es-DgncYOqO.js";
6
6
  import { useMemo as V, useState as $a } from "react";
7
7
  import { useFormContext as Wa, Controller as ja } from "react-hook-form";
8
8
  import { useHelperText as Da } from "../../../hooks/useHelperText.js";
@@ -6846,12 +6846,7 @@ var mu = {
6846
6846
  })
6847
6847
  }, lh = {
6848
6848
  lastWeek: function(e) {
6849
- switch (e.getUTCDay()) {
6850
- case 6:
6851
- return "'το προηγούμενο' eeee 'στις' p";
6852
- default:
6853
- return "'την προηγούμενη' eeee 'στις' p";
6854
- }
6849
+ return e.getUTCDay() === 6 ? "'το προηγούμενο' eeee 'στις' p" : "'την προηγούμενη' eeee 'στις' p";
6855
6850
  },
6856
6851
  yesterday: "'χθες στις' p",
6857
6852
  today: "'σήμερα στις' p",
@@ -13536,23 +13531,13 @@ var QP = {
13536
13531
  })
13537
13532
  }, se = ["domenica", "lunedì", "martedì", "mercoledì", "giovedì", "venerdì", "sabato"];
13538
13533
  function iM(r) {
13539
- switch (r) {
13540
- case 0:
13541
- return "'domenica scorsa alle' p";
13542
- default:
13543
- return "'" + se[r] + " scorso alle' p";
13544
- }
13534
+ return r === 0 ? "'domenica scorsa alle' p" : "'" + se[r] + " scorso alle' p";
13545
13535
  }
13546
13536
  function xe(r) {
13547
13537
  return "'" + se[r] + " alle' p";
13548
13538
  }
13549
13539
  function oM(r) {
13550
- switch (r) {
13551
- case 0:
13552
- return "'domenica prossima alle' p";
13553
- default:
13554
- return "'" + se[r] + " prossimo alle' p";
13555
- }
13540
+ return r === 0 ? "'domenica prossima alle' p" : "'" + se[r] + " prossimo alle' p";
13556
13541
  }
13557
13542
  var dM = {
13558
13543
  lastWeek: function(e, n, a) {
@@ -1,7 +1,7 @@
1
1
  import { jsx as m } from "react/jsx-runtime";
2
- import { T as u } from "../../../index.es-BYcQTTL8.js";
3
- import { g } from "../../../get-D8IXqiys.js";
4
- import { o as f } from "../../../omit-CYY_mIYv.js";
2
+ import { T as u } from "../../../index.es-B9BUXRQn.js";
3
+ import { g } from "../../../get-CBFiuc3f.js";
4
+ import { o as f } from "../../../omit-BWQrFyQ-.js";
5
5
  import { useMemo as v } from "react";
6
6
  import { useFormContext as s } from "react-hook-form";
7
7
  import '../../../assets/CustomTextField.css';const c = "_invalid_142hx_1", h = "_borderRadius_142hx_5", o = {
@@ -1,6 +1,6 @@
1
1
  import { jsx as m } from "react/jsx-runtime";
2
2
  import { useFormContext as d, Controller as N } from "react-hook-form";
3
- import { N as T } from "../../../react-number-format.es-DzkMiF8j.js";
3
+ import { N as T } from "../../../react-number-format.es-pczkQ4lQ.js";
4
4
  import { useHelperText as C } from "../../../hooks/useHelperText.js";
5
5
  import { useDecimalSeparator as S, useThousandSeparator as y } from "../../../services/NumberService.js";
6
6
  import { CustomTextField as F } from "./CustomTextField.js";
@@ -1,5 +1,5 @@
1
1
  import { jsx as r, Fragment as m } from "react/jsx-runtime";
2
- import { R as d } from "../../../index.es-CWyjqoEE.js";
2
+ import { R as d } from "../../../index.es-DHnCVuQ8.js";
3
3
  import { useFormContext as s, Controller as c } from "react-hook-form";
4
4
  const g = ({ propertyName: l, options: t }) => {
5
5
  const { control: n, setValue: o } = s(), u = (a) => {
@@ -26,7 +26,7 @@ export type FormSelectProps<T extends FieldValues> = Omit<SelectProps, 'classNam
26
26
  multi?: boolean;
27
27
  /** if true, the select allows the user to clear the selection */
28
28
  clearable?: boolean;
29
- /** if true, the select allows the user to search for options */
29
+ /** if true, the select allows the user to search for options defaults to enabled on desktop and disabled on mobile unless explicitly overridden */
30
30
  searchable?: boolean;
31
31
  /**
32
32
  * the rules for the picker
@@ -47,7 +47,7 @@ export type FormSelectOption = {
47
47
  * creates a Select which should be part of a form component.
48
48
  * the Select is wrapped by the react hook forms {@link Controller} component.
49
49
  * @param clearable if the select allows the user to clear the selection
50
- * @param searchable if the select allows the user to search for options
50
+ * @param searchable whether the select allows the user to search for options. If not provided, search is enabled on desktop and disabled on mobile by default.
51
51
  * @param disabled if the select is disabled
52
52
  * @param hidden if the select should be hidden
53
53
  * @param hoisted if the select should be rendered outside of the parent
@@ -1,25 +1,26 @@
1
- import { jsx as o, Fragment as g, jsxs as k } from "react/jsx-runtime";
2
- import { g as u } from "../../../get-D8IXqiys.js";
3
- import { i as G } from "../../../isArray-BjSPDQ4v.js";
1
+ import { jsx as l, Fragment as g, jsxs as J } from "react/jsx-runtime";
2
+ import { g as u } from "../../../get-CBFiuc3f.js";
3
+ import { i as L } from "../../../isArray-olhCpv2e.js";
4
4
  import { useMemo as z } from "react";
5
- import { useFormContext as J, Controller as C } from "react-hook-form";
6
- import { M as L } from "../../../react-tooltip.min-CVsI--2Y.js";
7
- import { useHelperText as O } from "../../../hooks/useHelperText.js";
8
- import { Select as Q } from "../../Select/Select.js";
9
- import { SelectTooltipText as R } from "./SelectTooltipText.js";
10
- import '../../../assets/FormSelect.css';const U = "_invalidHelperText_zh2wu_1", W = "_invalidBorder_zh2wu_5", X = "_invalidPlaceholder_zh2wu_9", Y = "_invalidDropdownIcon_zh2wu_13", Z = "_formSelectContainer_zh2wu_18", N = "_formSelect_zh2wu_18", y = "_multiText_zh2wu_53", K = "_tooltip_zh2wu_62", ee = "_disabled_zh2wu_67", t = {
11
- invalidHelperText: U,
12
- invalidBorder: W,
13
- invalidPlaceholder: X,
14
- invalidDropdownIcon: Y,
15
- formSelectContainer: Z,
16
- formSelect: N,
17
- multiText: y,
18
- tooltip: K,
19
- disabled: ee
20
- }, fe = ({
5
+ import { useFormContext as O, Controller as C } from "react-hook-form";
6
+ import { M as Q } from "../../../react-tooltip.min-Dkz5ltCC.js";
7
+ import { useHelperText as R } from "../../../hooks/useHelperText.js";
8
+ import { Select as U } from "../../Select/Select.js";
9
+ import { SelectTooltipText as W } from "./SelectTooltipText.js";
10
+ import { useBreakpoints as X } from "../../../hooks/useBreakpoints.js";
11
+ import '../../../assets/FormSelect.css';const Y = "_invalidHelperText_zh2wu_1", Z = "_invalidBorder_zh2wu_5", N = "_invalidPlaceholder_zh2wu_9", y = "_invalidDropdownIcon_zh2wu_13", K = "_formSelectContainer_zh2wu_18", ee = "_formSelect_zh2wu_18", te = "_multiText_zh2wu_53", ie = "_tooltip_zh2wu_62", oe = "_disabled_zh2wu_67", t = {
12
+ invalidHelperText: Y,
13
+ invalidBorder: Z,
14
+ invalidPlaceholder: N,
15
+ invalidDropdownIcon: y,
16
+ formSelectContainer: K,
17
+ formSelect: ee,
18
+ multiText: te,
19
+ tooltip: ie,
20
+ disabled: oe
21
+ }, _e = ({
21
22
  propertyName: i,
22
- label: s,
23
+ label: c,
23
24
  options: r,
24
25
  multi: a = !1,
25
26
  disabled: _ = !1,
@@ -28,100 +29,100 @@ import '../../../assets/FormSelect.css';const U = "_invalidHelperText_zh2wu_1",
28
29
  valueKey: n = "value",
29
30
  textKey: x = "text",
30
31
  clearable: I = !1,
31
- searchable: D = !0,
32
- noOptionsMessage: T = "",
33
- rules: f,
34
- menuPosition: P = "auto",
35
- ...l
32
+ searchable: D,
33
+ noOptionsMessage: S = "",
34
+ rules: m,
35
+ menuPosition: b = "auto",
36
+ ...o
36
37
  }) => {
37
- const {
38
- control: v,
39
- getFieldState: B,
40
- formState: { errors: S, isValidating: w }
41
- } = J(), F = z(
42
- () => !w && u(S, i) !== void 0,
43
- [S, i, w]
44
- ), b = z(
45
- () => f?.required?.message,
46
- [f]
47
- ), { helperText: M, helperTextPersistent: j } = O({
38
+ const { isDesktop: B } = X(), {
39
+ control: T,
40
+ getFieldState: P,
41
+ formState: { errors: v, isValidating: w }
42
+ } = O(), F = z(
43
+ () => !w && u(v, i) !== void 0,
44
+ [v, i, w]
45
+ ), M = z(
46
+ () => m?.required?.message,
47
+ [m]
48
+ ), { helperText: j, helperTextPersistent: k } = R({
48
49
  propertyName: i,
49
- helperText: l.helperText,
50
- requiredText: b,
50
+ helperText: o.helperText,
51
+ requiredText: M,
51
52
  hasCharacterCount: !1
52
53
  });
53
- return H ? /* @__PURE__ */ o(C, { name: i, control: v, render: () => /* @__PURE__ */ o(g, {}) }) : /* @__PURE__ */ o(
54
+ return H ? /* @__PURE__ */ l(C, { name: i, control: T, render: () => /* @__PURE__ */ l(g, {}) }) : /* @__PURE__ */ l(
54
55
  "div",
55
56
  {
56
57
  "data-testid": "form-select-container",
57
58
  className: t.formSelectContainer,
58
- "data-tooltip-id": s,
59
- children: /* @__PURE__ */ o(
59
+ "data-tooltip-id": c,
60
+ children: /* @__PURE__ */ l(
60
61
  C,
61
62
  {
62
63
  name: i,
63
- rules: f,
64
- control: v,
65
- render: ({ field: { ref: te, onChange: m, value: p, ...q } }) => {
64
+ rules: m,
65
+ control: T,
66
+ render: ({ field: { ref: le, onChange: f, value: p, ...q } }) => {
66
67
  let h = r;
67
- G(r) && u(r[0], "options") !== void 0 && (h = r.flatMap((e) => u(e, "options") ?? []));
68
+ L(r) && u(r[0], "options") !== void 0 && (h = r.flatMap((e) => u(e, "options") ?? []));
68
69
  const d = a ? h?.filter(
69
70
  (e) => p?.includes(e[n])
70
- ) : h?.find((e) => e[n] === p), A = a && l.multiDisplayType === "text" && l.fixedHeightInput, c = B(i).invalid, E = `
71
+ ) : h?.find((e) => e[n] === p), A = a && o.multiDisplayType === "text" && o.fixedHeightInput, s = P(i).invalid, E = D ?? B, V = `
71
72
  ${t.formSelect}
72
- ${c ? t.invalidHelperText : ""}
73
- ${c ? t.invalidDropdownIcon : ""}
74
- ${c ? t.invalidBorder : ""}
75
- ${c ? t.invalidPlaceholder : ""}
73
+ ${s ? t.invalidHelperText : ""}
74
+ ${s ? t.invalidDropdownIcon : ""}
75
+ ${s ? t.invalidBorder : ""}
76
+ ${s ? t.invalidPlaceholder : ""}
76
77
  ${A ? t.multiText : ""}
77
78
  ${_ ? t.disabled : ""}`;
78
- return /* @__PURE__ */ k(g, { children: [
79
- /* @__PURE__ */ o(
80
- Q,
79
+ return /* @__PURE__ */ J(g, { children: [
80
+ /* @__PURE__ */ l(
81
+ U,
81
82
  {
82
83
  ...q,
83
- ...l,
84
+ ...o,
84
85
  value: d ?? [],
85
- label: s,
86
+ label: c,
86
87
  variant: "outlined",
87
- helperText: M,
88
- helperTextPersistent: j,
88
+ helperText: j,
89
+ helperTextPersistent: k,
89
90
  options: r,
90
91
  valid: !F,
91
- "data-testid": l["data-testid"] ?? `select-${i}`,
92
- multiSelect: !r?.length && T ? !1 : a,
93
- className: E,
92
+ "data-testid": o["data-testid"] ?? `select-${i}`,
93
+ multiSelect: !r?.length && S ? !1 : a,
94
+ className: V,
94
95
  disabled: _,
95
96
  valueKey: n,
96
97
  textKey: x,
97
98
  onChange: (e) => {
98
99
  if (e == null) {
99
- m(e);
100
+ f(e);
100
101
  return;
101
102
  }
102
103
  if (a) {
103
- m(e.map((V) => V[n]));
104
+ f(e.map((G) => G[n]));
104
105
  return;
105
106
  }
106
- m(e[n]), l?.onChange?.(e);
107
+ f(e[n]), o?.onChange?.(e);
107
108
  },
108
109
  hoisted: $,
109
- noOptionsMessage: T,
110
- searchable: D,
110
+ noOptionsMessage: S,
111
+ searchable: E,
111
112
  clearable: I,
112
- menuPosition: P
113
+ menuPosition: b
113
114
  }
114
115
  ),
115
- /* @__PURE__ */ o(
116
- L,
116
+ /* @__PURE__ */ l(
117
+ Q,
117
118
  {
118
- id: s,
119
+ id: c,
119
120
  noArrow: !0,
120
121
  place: "bottom",
121
122
  delayShow: 420,
122
123
  className: t.tooltip,
123
- hidden: !d || d.length === 0 || !l.fixedHeightInput,
124
- children: /* @__PURE__ */ o(R, { value: d, textKey: x, valueKey: n })
124
+ hidden: !d || d.length === 0 || !o.fixedHeightInput,
125
+ children: /* @__PURE__ */ l(W, { value: d, textKey: x, valueKey: n })
125
126
  }
126
127
  )
127
128
  ] });
@@ -132,5 +133,5 @@ import '../../../assets/FormSelect.css';const U = "_invalidHelperText_zh2wu_1",
132
133
  );
133
134
  };
134
135
  export {
135
- fe as FormSelect
136
+ _e as FormSelect
136
137
  };
@@ -1,6 +1,6 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
- import { G as p } from "../../../index.es-oxil0uFe.js";
3
- import { T as d } from "../../../index.es-SjZ_-d7U.js";
2
+ import { G as p } from "../../../index.es-Z0aF-7Cn.js";
3
+ import { T as d } from "../../../index.es-DUrjyxNI.js";
4
4
  const m = ({ value: r, textKey: t, valueKey: e }) => {
5
5
  if (!(!r || r.length === 0))
6
6
  return Array.isArray(r) ? /* @__PURE__ */ i(p, { "data-testid": "select-tooltip", direction: "vertical", gap: "dense", children: r?.map((o) => /* @__PURE__ */ i(d, { level: 2, children: o[t] }, o[e])) }) : r?.[t];
@@ -1,39 +1,17 @@
1
1
  import { jsx as ye } from "react/jsx-runtime";
2
- import { _ as Ze, a as W, c as X, b as Ae, d as Je, P as d } from "../../../index-BcGujPyk.js";
3
- import { _ as Qe, a as Ce, b as Ye, c as et, d as Oe, e as _e, f as tt } from "../../../defineProperty-BTsGZ3c1.js";
4
- import { _ as Re } from "../../../parse-int-D-3oah_F.js";
2
+ import { _ as Ze, a as W, c as X, b as Ae, d as Je, P as d } from "../../../index-Df2FYN-K.js";
3
+ import { _ as Qe, a as Ce, b as Ye, c as et, d as Oe, e as _e, f as tt } from "../../../defineProperty-B7N9EBBI.js";
4
+ import { _ as Re } from "../../../parse-int-CGpIXMGa.js";
5
5
  import p, { forwardRef as rt, useRef as De, useImperativeHandle as Ne, useCallback as x, useEffect as V, useMemo as ke } from "react";
6
- import { I as Be } from "../../../index.es-Dgxrk6xW.js";
7
- import { T as Pe } from "../../../index.es-BYcQTTL8.js";
8
- import { c as Me } from "../../../index.es-Da7ok-B-.js";
6
+ import { I as Be } from "../../../index.es-DEBGoIKX.js";
7
+ import { T as Pe } from "../../../index.es-B9BUXRQn.js";
8
+ import { c as Me } from "../../../index.es-C6I3L4U4.js";
9
9
  import { b as Fe, c as j } from "../../../tslib.es6-BDCynO9F.js";
10
- import { M as nt, a as it } from "../../../component-Bz_dtX1r.js";
11
- import { M as Le, a as at, m as st, b as ut } from "../../../component-DEJuY56h.js";
12
- import { A as ot } from "../../../animationframe-BVKDmEXe.js";
13
- import { a as Ve } from "../../../util-DA21pZXj.js";
10
+ import { M as nt, a as it } from "../../../component-By6nyiBU.js";
11
+ import { M as Le, a as at, m as st, b as ut } from "../../../component-DYpB_4EP.js";
12
+ import { A as ot } from "../../../animationframe-CqXArbwZ.js";
13
+ import { a as Ve } from "../../../util-CBo-ipCE.js";
14
14
  import { useFormContext as lt, Controller as dt } from "react-hook-form";
15
- /**
16
- * @license
17
- * Copyright 2020 Google Inc.
18
- *
19
- * Permission is hereby granted, free of charge, to any person obtaining a copy
20
- * of this software and associated documentation files (the "Software"), to deal
21
- * in the Software without restriction, including without limitation the rights
22
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
23
- * copies of the Software, and to permit persons to whom the Software is
24
- * furnished to do so, subject to the following conditions:
25
- *
26
- * The above copyright notice and this permission notice shall be included in
27
- * all copies or substantial portions of the Software.
28
- *
29
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
30
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
31
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
32
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
33
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
34
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
35
- * THE SOFTWARE.
36
- */
37
15
  var l = {
38
16
  DISABLED: "mdc-slider--disabled",
39
17
  DISCRETE: "mdc-slider--discrete",
@@ -73,28 +51,6 @@ var l = {
73
51
  CHANGE: "MDCSlider:change",
74
52
  INPUT: "MDCSlider:input"
75
53
  };
76
- /**
77
- * @license
78
- * Copyright 2020 Google Inc.
79
- *
80
- * Permission is hereby granted, free of charge, to any person obtaining a copy
81
- * of this software and associated documentation files (the "Software"), to deal
82
- * in the Software without restriction, including without limitation the rights
83
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
84
- * copies of the Software, and to permit persons to whom the Software is
85
- * furnished to do so, subject to the following conditions:
86
- *
87
- * The above copyright notice and this permission notice shall be included in
88
- * all copies or substantial portions of the Software.
89
- *
90
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
91
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
92
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
93
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
94
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
95
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
96
- * THE SOFTWARE.
97
- */
98
54
  var w;
99
55
  (function(s) {
100
56
  s[s.ACTIVE = 0] = "ACTIVE", s[s.INACTIVE = 1] = "INACTIVE";
@@ -103,28 +59,6 @@ var i;
103
59
  (function(s) {
104
60
  s[s.START = 1] = "START", s[s.END = 2] = "END";
105
61
  })(i || (i = {}));
106
- /**
107
- * @license
108
- * Copyright 2020 Google Inc.
109
- *
110
- * Permission is hereby granted, free of charge, to any person obtaining a copy
111
- * of this software and associated documentation files (the "Software"), to deal
112
- * in the Software without restriction, including without limitation the rights
113
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
114
- * copies of the Software, and to permit persons to whom the Software is
115
- * furnished to do so, subject to the following conditions:
116
- *
117
- * The above copyright notice and this permission notice shall be included in
118
- * all copies or substantial portions of the Software.
119
- *
120
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
121
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
122
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
123
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
124
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
125
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
126
- * THE SOFTWARE.
127
- */
128
62
  var q;
129
63
  (function(s) {
130
64
  s.SLIDER_UPDATE = "slider_update";
@@ -501,28 +435,6 @@ function pt(s) {
501
435
  (e === "0" ? 0 : e.length) - Number(r)
502
436
  );
503
437
  }
504
- /**
505
- * @license
506
- * Copyright 2020 Google Inc.
507
- *
508
- * Permission is hereby granted, free of charge, to any person obtaining a copy
509
- * of this software and associated documentation files (the "Software"), to deal
510
- * in the Software without restriction, including without limitation the rights
511
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
512
- * copies of the Software, and to permit persons to whom the Software is
513
- * furnished to do so, subject to the following conditions:
514
- *
515
- * The above copyright notice and this permission notice shall be included in
516
- * all copies or substantial portions of the Software.
517
- *
518
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
519
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
520
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
521
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
522
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
523
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
524
- * THE SOFTWARE.
525
- */
526
438
  var mt = (
527
439
  /** @class */
528
440
  (function(s) {
@@ -1,6 +1,6 @@
1
1
  import { jsx as t, Fragment as _, jsxs as z } from "react/jsx-runtime";
2
- import { T as M } from "../../../index.es-BYcQTTL8.js";
3
- import { a as P } from "../../../index.es-SjZ_-d7U.js";
2
+ import { T as M } from "../../../index.es-B9BUXRQn.js";
3
+ import { a as P } from "../../../index.es-DUrjyxNI.js";
4
4
  import { useState as V, useCallback as W, useMemo as d } from "react";
5
5
  import { useFormContext as D, Controller as v } from "react-hook-form";
6
6
  import { useHelperText as E } from "../../../hooks/useHelperText.js";
@@ -1,8 +1,8 @@
1
1
  import { jsx as t, jsxs as p } from "react/jsx-runtime";
2
- import { G as d } from "../../../index.es-oxil0uFe.js";
3
- import { S as f } from "../../../index.es-DUTChZks.js";
4
- import { a as h } from "../../../index.es-SjZ_-d7U.js";
5
- import { u as C } from "../../../uniqueId-BNVTeImh.js";
2
+ import { G as d } from "../../../index.es-Z0aF-7Cn.js";
3
+ import { S as f } from "../../../index.es-Ci3O23C_.js";
4
+ import { a as h } from "../../../index.es-DUrjyxNI.js";
5
+ import { u as C } from "../../../uniqueId-CJo-XRQb.js";
6
6
  import { useEffect as x } from "react";
7
7
  import { useFormContext as T, Controller as y } from "react-hook-form";
8
8
  const F = ({
@@ -1,5 +1,5 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import { N as i } from "../../react-number-format.es-DzkMiF8j.js";
2
+ import { N as i } from "../../react-number-format.es-pczkQ4lQ.js";
3
3
  import { useDecimalSeparator as d, useThousandSeparator as n } from "../../services/NumberService.js";
4
4
  const y = ({
5
5
  typographyComponent: a,