@helpwave/hightide 0.1.45 → 0.1.47

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 (784) hide show
  1. package/README.md +1 -1
  2. package/dist/index.d.mts +1990 -0
  3. package/dist/index.d.ts +1990 -113
  4. package/dist/index.js +1514 -1353
  5. package/dist/index.js.map +1 -1
  6. package/dist/{components/index.js → index.mjs} +728 -18
  7. package/dist/index.mjs.map +1 -0
  8. package/package.json +5 -12
  9. package/dist/coloring/index.cjs +0 -85
  10. package/dist/coloring/index.cjs.map +0 -1
  11. package/dist/coloring/index.d.cts +0 -2
  12. package/dist/coloring/index.d.ts +0 -2
  13. package/dist/coloring/index.js +0 -48
  14. package/dist/coloring/index.js.map +0 -1
  15. package/dist/coloring/shading.cjs +0 -81
  16. package/dist/coloring/shading.cjs.map +0 -1
  17. package/dist/coloring/shading.d.cts +0 -5
  18. package/dist/coloring/shading.d.ts +0 -5
  19. package/dist/coloring/shading.js +0 -47
  20. package/dist/coloring/shading.js.map +0 -1
  21. package/dist/coloring/types.cjs +0 -30
  22. package/dist/coloring/types.cjs.map +0 -1
  23. package/dist/coloring/types.d.cts +0 -13
  24. package/dist/coloring/types.d.ts +0 -13
  25. package/dist/coloring/types.js +0 -6
  26. package/dist/coloring/types.js.map +0 -1
  27. package/dist/components/branding/HelpwaveBadge.cjs +0 -140
  28. package/dist/components/branding/HelpwaveBadge.cjs.map +0 -1
  29. package/dist/components/branding/HelpwaveBadge.d.cts +0 -13
  30. package/dist/components/branding/HelpwaveBadge.d.ts +0 -13
  31. package/dist/components/branding/HelpwaveBadge.js +0 -104
  32. package/dist/components/branding/HelpwaveBadge.js.map +0 -1
  33. package/dist/components/branding/index.cjs +0 -140
  34. package/dist/components/branding/index.cjs.map +0 -1
  35. package/dist/components/branding/index.d.cts +0 -3
  36. package/dist/components/branding/index.d.ts +0 -3
  37. package/dist/components/branding/index.js +0 -104
  38. package/dist/components/branding/index.js.map +0 -1
  39. package/dist/components/date/DatePicker.cjs +0 -1318
  40. package/dist/components/date/DatePicker.cjs.map +0 -1
  41. package/dist/components/date/DatePicker.d.cts +0 -26
  42. package/dist/components/date/DatePicker.d.ts +0 -26
  43. package/dist/components/date/DatePicker.js +0 -1283
  44. package/dist/components/date/DatePicker.js.map +0 -1
  45. package/dist/components/date/DayPicker.cjs +0 -261
  46. package/dist/components/date/DayPicker.cjs.map +0 -1
  47. package/dist/components/date/DayPicker.d.cts +0 -20
  48. package/dist/components/date/DayPicker.d.ts +0 -20
  49. package/dist/components/date/DayPicker.js +0 -224
  50. package/dist/components/date/DayPicker.js.map +0 -1
  51. package/dist/components/date/TimeDisplay.cjs +0 -638
  52. package/dist/components/date/TimeDisplay.cjs.map +0 -1
  53. package/dist/components/date/TimeDisplay.d.cts +0 -13
  54. package/dist/components/date/TimeDisplay.d.ts +0 -13
  55. package/dist/components/date/TimeDisplay.js +0 -612
  56. package/dist/components/date/TimeDisplay.js.map +0 -1
  57. package/dist/components/date/TimePicker.cjs +0 -237
  58. package/dist/components/date/TimePicker.cjs.map +0 -1
  59. package/dist/components/date/TimePicker.d.cts +0 -15
  60. package/dist/components/date/TimePicker.d.ts +0 -15
  61. package/dist/components/date/TimePicker.js +0 -202
  62. package/dist/components/date/TimePicker.js.map +0 -1
  63. package/dist/components/date/YearMonthPicker.cjs +0 -536
  64. package/dist/components/date/YearMonthPicker.cjs.map +0 -1
  65. package/dist/components/date/YearMonthPicker.d.cts +0 -15
  66. package/dist/components/date/YearMonthPicker.d.ts +0 -15
  67. package/dist/components/date/YearMonthPicker.js +0 -501
  68. package/dist/components/date/YearMonthPicker.js.map +0 -1
  69. package/dist/components/date/index.cjs +0 -1556
  70. package/dist/components/date/index.cjs.map +0 -1
  71. package/dist/components/date/index.d.cts +0 -7
  72. package/dist/components/date/index.d.ts +0 -7
  73. package/dist/components/date/index.js +0 -1512
  74. package/dist/components/date/index.js.map +0 -1
  75. package/dist/components/dialog/ConfirmDialog.cjs +0 -1165
  76. package/dist/components/dialog/ConfirmDialog.cjs.map +0 -1
  77. package/dist/components/dialog/ConfirmDialog.d.cts +0 -29
  78. package/dist/components/dialog/ConfirmDialog.d.ts +0 -29
  79. package/dist/components/dialog/ConfirmDialog.js +0 -1129
  80. package/dist/components/dialog/ConfirmDialog.js.map +0 -1
  81. package/dist/components/dialog/Dialog.cjs +0 -1108
  82. package/dist/components/dialog/Dialog.cjs.map +0 -1
  83. package/dist/components/dialog/Dialog.d.cts +0 -27
  84. package/dist/components/dialog/Dialog.d.ts +0 -27
  85. package/dist/components/dialog/Dialog.js +0 -1075
  86. package/dist/components/dialog/Dialog.js.map +0 -1
  87. package/dist/components/dialog/DiscardChangesDialog.cjs +0 -1192
  88. package/dist/components/dialog/DiscardChangesDialog.cjs.map +0 -1
  89. package/dist/components/dialog/DiscardChangesDialog.d.cts +0 -18
  90. package/dist/components/dialog/DiscardChangesDialog.d.ts +0 -18
  91. package/dist/components/dialog/DiscardChangesDialog.js +0 -1156
  92. package/dist/components/dialog/DiscardChangesDialog.js.map +0 -1
  93. package/dist/components/dialog/InputDialog.cjs +0 -1369
  94. package/dist/components/dialog/InputDialog.cjs.map +0 -1
  95. package/dist/components/dialog/InputDialog.d.cts +0 -17
  96. package/dist/components/dialog/InputDialog.d.ts +0 -17
  97. package/dist/components/dialog/InputDialog.js +0 -1333
  98. package/dist/components/dialog/InputDialog.js.map +0 -1
  99. package/dist/components/dialog/LanguageDialog.cjs +0 -2149
  100. package/dist/components/dialog/LanguageDialog.cjs.map +0 -1
  101. package/dist/components/dialog/LanguageDialog.d.cts +0 -16
  102. package/dist/components/dialog/LanguageDialog.d.ts +0 -16
  103. package/dist/components/dialog/LanguageDialog.js +0 -2124
  104. package/dist/components/dialog/LanguageDialog.js.map +0 -1
  105. package/dist/components/dialog/ThemeDialog.cjs +0 -2188
  106. package/dist/components/dialog/ThemeDialog.cjs.map +0 -1
  107. package/dist/components/dialog/ThemeDialog.d.cts +0 -16
  108. package/dist/components/dialog/ThemeDialog.d.ts +0 -16
  109. package/dist/components/dialog/ThemeDialog.js +0 -2163
  110. package/dist/components/dialog/ThemeDialog.js.map +0 -1
  111. package/dist/components/dialog/index.cjs +0 -2516
  112. package/dist/components/dialog/index.cjs.map +0 -1
  113. package/dist/components/dialog/index.d.cts +0 -11
  114. package/dist/components/dialog/index.d.ts +0 -11
  115. package/dist/components/dialog/index.js +0 -2486
  116. package/dist/components/dialog/index.js.map +0 -1
  117. package/dist/components/form/FormElementWrapper.cjs +0 -167
  118. package/dist/components/form/FormElementWrapper.cjs.map +0 -1
  119. package/dist/components/form/FormElementWrapper.d.cts +0 -35
  120. package/dist/components/form/FormElementWrapper.d.ts +0 -35
  121. package/dist/components/form/FormElementWrapper.js +0 -133
  122. package/dist/components/form/FormElementWrapper.js.map +0 -1
  123. package/dist/components/form/index.cjs +0 -169
  124. package/dist/components/form/index.cjs.map +0 -1
  125. package/dist/components/form/index.d.cts +0 -5
  126. package/dist/components/form/index.d.ts +0 -5
  127. package/dist/components/form/index.js +0 -133
  128. package/dist/components/form/index.js.map +0 -1
  129. package/dist/components/icons-and-geometry/Avatar.cjs +0 -670
  130. package/dist/components/icons-and-geometry/Avatar.cjs.map +0 -1
  131. package/dist/components/icons-and-geometry/Avatar.d.cts +0 -36
  132. package/dist/components/icons-and-geometry/Avatar.d.ts +0 -36
  133. package/dist/components/icons-and-geometry/Avatar.js +0 -663
  134. package/dist/components/icons-and-geometry/Avatar.js.map +0 -1
  135. package/dist/components/icons-and-geometry/Circle.cjs +0 -61
  136. package/dist/components/icons-and-geometry/Circle.cjs.map +0 -1
  137. package/dist/components/icons-and-geometry/Circle.d.cts +0 -10
  138. package/dist/components/icons-and-geometry/Circle.d.ts +0 -10
  139. package/dist/components/icons-and-geometry/Circle.js +0 -27
  140. package/dist/components/icons-and-geometry/Circle.js.map +0 -1
  141. package/dist/components/icons-and-geometry/HelpwaveLogo.cjs +0 -98
  142. package/dist/components/icons-and-geometry/HelpwaveLogo.cjs.map +0 -1
  143. package/dist/components/icons-and-geometry/HelpwaveLogo.d.cts +0 -14
  144. package/dist/components/icons-and-geometry/HelpwaveLogo.d.ts +0 -14
  145. package/dist/components/icons-and-geometry/HelpwaveLogo.js +0 -74
  146. package/dist/components/icons-and-geometry/HelpwaveLogo.js.map +0 -1
  147. package/dist/components/icons-and-geometry/Ring.cjs +0 -333
  148. package/dist/components/icons-and-geometry/Ring.cjs.map +0 -1
  149. package/dist/components/icons-and-geometry/Ring.d.cts +0 -35
  150. package/dist/components/icons-and-geometry/Ring.d.ts +0 -35
  151. package/dist/components/icons-and-geometry/Ring.js +0 -296
  152. package/dist/components/icons-and-geometry/Ring.js.map +0 -1
  153. package/dist/components/icons-and-geometry/Tag.cjs +0 -2945
  154. package/dist/components/icons-and-geometry/Tag.cjs.map +0 -1
  155. package/dist/components/icons-and-geometry/Tag.d.cts +0 -16
  156. package/dist/components/icons-and-geometry/Tag.d.ts +0 -16
  157. package/dist/components/icons-and-geometry/Tag.js +0 -2940
  158. package/dist/components/icons-and-geometry/Tag.js.map +0 -1
  159. package/dist/components/icons-and-geometry/index.cjs +0 -3950
  160. package/dist/components/icons-and-geometry/index.cjs.map +0 -1
  161. package/dist/components/icons-and-geometry/index.d.cts +0 -7
  162. package/dist/components/icons-and-geometry/index.d.ts +0 -7
  163. package/dist/components/icons-and-geometry/index.js +0 -3934
  164. package/dist/components/icons-and-geometry/index.js.map +0 -1
  165. package/dist/components/index.cjs +0 -15692
  166. package/dist/components/index.cjs.map +0 -1
  167. package/dist/components/index.d.cts +0 -78
  168. package/dist/components/index.d.ts +0 -78
  169. package/dist/components/index.js.map +0 -1
  170. package/dist/components/layout/Carousel.cjs +0 -1128
  171. package/dist/components/layout/Carousel.cjs.map +0 -1
  172. package/dist/components/layout/Carousel.d.cts +0 -35
  173. package/dist/components/layout/Carousel.d.ts +0 -35
  174. package/dist/components/layout/Carousel.js +0 -1103
  175. package/dist/components/layout/Carousel.js.map +0 -1
  176. package/dist/components/layout/Chip.cjs +0 -123
  177. package/dist/components/layout/Chip.cjs.map +0 -1
  178. package/dist/components/layout/Chip.d.cts +0 -31
  179. package/dist/components/layout/Chip.d.ts +0 -31
  180. package/dist/components/layout/Chip.js +0 -87
  181. package/dist/components/layout/Chip.js.map +0 -1
  182. package/dist/components/layout/DividerInserter.cjs +0 -59
  183. package/dist/components/layout/DividerInserter.cjs.map +0 -1
  184. package/dist/components/layout/DividerInserter.d.cts +0 -15
  185. package/dist/components/layout/DividerInserter.d.ts +0 -15
  186. package/dist/components/layout/DividerInserter.js +0 -25
  187. package/dist/components/layout/DividerInserter.js.map +0 -1
  188. package/dist/components/layout/Expandable.cjs +0 -171
  189. package/dist/components/layout/Expandable.cjs.map +0 -1
  190. package/dist/components/layout/Expandable.d.cts +0 -67
  191. package/dist/components/layout/Expandable.d.ts +0 -67
  192. package/dist/components/layout/Expandable.js +0 -135
  193. package/dist/components/layout/Expandable.js.map +0 -1
  194. package/dist/components/layout/FAQSection.cjs +0 -421
  195. package/dist/components/layout/FAQSection.cjs.map +0 -1
  196. package/dist/components/layout/FAQSection.d.cts +0 -26
  197. package/dist/components/layout/FAQSection.d.ts +0 -26
  198. package/dist/components/layout/FAQSection.js +0 -387
  199. package/dist/components/layout/FAQSection.js.map +0 -1
  200. package/dist/components/layout/FloatingContainer.cjs +0 -220
  201. package/dist/components/layout/FloatingContainer.cjs.map +0 -1
  202. package/dist/components/layout/FloatingContainer.d.cts +0 -38
  203. package/dist/components/layout/FloatingContainer.d.ts +0 -38
  204. package/dist/components/layout/FloatingContainer.js +0 -196
  205. package/dist/components/layout/FloatingContainer.js.map +0 -1
  206. package/dist/components/layout/ListBox.cjs +0 -339
  207. package/dist/components/layout/ListBox.cjs.map +0 -1
  208. package/dist/components/layout/ListBox.d.cts +0 -44
  209. package/dist/components/layout/ListBox.d.ts +0 -44
  210. package/dist/components/layout/ListBox.js +0 -300
  211. package/dist/components/layout/ListBox.js.map +0 -1
  212. package/dist/components/layout/MarkdownInterpreter.cjs +0 -260
  213. package/dist/components/layout/MarkdownInterpreter.cjs.map +0 -1
  214. package/dist/components/layout/MarkdownInterpreter.d.cts +0 -28
  215. package/dist/components/layout/MarkdownInterpreter.d.ts +0 -28
  216. package/dist/components/layout/MarkdownInterpreter.js +0 -235
  217. package/dist/components/layout/MarkdownInterpreter.js.map +0 -1
  218. package/dist/components/layout/ScrollArea.cjs +0 -1252
  219. package/dist/components/layout/ScrollArea.cjs.map +0 -1
  220. package/dist/components/layout/ScrollArea.d.cts +0 -15
  221. package/dist/components/layout/ScrollArea.d.ts +0 -15
  222. package/dist/components/layout/ScrollArea.js +0 -1216
  223. package/dist/components/layout/ScrollArea.js.map +0 -1
  224. package/dist/components/layout/TextImage.cjs +0 -657
  225. package/dist/components/layout/TextImage.cjs.map +0 -1
  226. package/dist/components/layout/TextImage.d.cts +0 -19
  227. package/dist/components/layout/TextImage.d.ts +0 -19
  228. package/dist/components/layout/TextImage.js +0 -623
  229. package/dist/components/layout/TextImage.js.map +0 -1
  230. package/dist/components/layout/VerticalDivider.cjs +0 -80
  231. package/dist/components/layout/VerticalDivider.cjs.map +0 -1
  232. package/dist/components/layout/VerticalDivider.d.cts +0 -15
  233. package/dist/components/layout/VerticalDivider.d.ts +0 -15
  234. package/dist/components/layout/VerticalDivider.js +0 -56
  235. package/dist/components/layout/VerticalDivider.js.map +0 -1
  236. package/dist/components/layout/index.cjs +0 -3434
  237. package/dist/components/layout/index.cjs.map +0 -1
  238. package/dist/components/layout/index.d.cts +0 -15
  239. package/dist/components/layout/index.d.ts +0 -15
  240. package/dist/components/layout/index.js +0 -3387
  241. package/dist/components/layout/index.js.map +0 -1
  242. package/dist/components/loading-states/ErrorComponent.cjs +0 -622
  243. package/dist/components/loading-states/ErrorComponent.cjs.map +0 -1
  244. package/dist/components/loading-states/ErrorComponent.d.cts +0 -12
  245. package/dist/components/loading-states/ErrorComponent.d.ts +0 -12
  246. package/dist/components/loading-states/ErrorComponent.js +0 -588
  247. package/dist/components/loading-states/ErrorComponent.js.map +0 -1
  248. package/dist/components/loading-states/LoadingAndErrorComponent.cjs +0 -67
  249. package/dist/components/loading-states/LoadingAndErrorComponent.cjs.map +0 -1
  250. package/dist/components/loading-states/LoadingAndErrorComponent.d.cts +0 -20
  251. package/dist/components/loading-states/LoadingAndErrorComponent.d.ts +0 -20
  252. package/dist/components/loading-states/LoadingAndErrorComponent.js +0 -43
  253. package/dist/components/loading-states/LoadingAndErrorComponent.js.map +0 -1
  254. package/dist/components/loading-states/LoadingAnimation.cjs +0 -694
  255. package/dist/components/loading-states/LoadingAnimation.cjs.map +0 -1
  256. package/dist/components/loading-states/LoadingAnimation.d.cts +0 -12
  257. package/dist/components/loading-states/LoadingAnimation.d.ts +0 -12
  258. package/dist/components/loading-states/LoadingAnimation.js +0 -658
  259. package/dist/components/loading-states/LoadingAnimation.js.map +0 -1
  260. package/dist/components/loading-states/LoadingButton.cjs +0 -257
  261. package/dist/components/loading-states/LoadingButton.cjs.map +0 -1
  262. package/dist/components/loading-states/LoadingButton.d.cts +0 -10
  263. package/dist/components/loading-states/LoadingButton.d.ts +0 -10
  264. package/dist/components/loading-states/LoadingButton.js +0 -223
  265. package/dist/components/loading-states/LoadingButton.js.map +0 -1
  266. package/dist/components/loading-states/LoadingContainer.cjs +0 -34
  267. package/dist/components/loading-states/LoadingContainer.cjs.map +0 -1
  268. package/dist/components/loading-states/LoadingContainer.d.cts +0 -8
  269. package/dist/components/loading-states/LoadingContainer.d.ts +0 -8
  270. package/dist/components/loading-states/LoadingContainer.js +0 -10
  271. package/dist/components/loading-states/LoadingContainer.js.map +0 -1
  272. package/dist/components/loading-states/ProgressIndicator.cjs +0 -83
  273. package/dist/components/loading-states/ProgressIndicator.cjs.map +0 -1
  274. package/dist/components/loading-states/ProgressIndicator.d.cts +0 -24
  275. package/dist/components/loading-states/ProgressIndicator.d.ts +0 -24
  276. package/dist/components/loading-states/ProgressIndicator.js +0 -59
  277. package/dist/components/loading-states/ProgressIndicator.js.map +0 -1
  278. package/dist/components/loading-states/index.cjs +0 -966
  279. package/dist/components/loading-states/index.cjs.map +0 -1
  280. package/dist/components/loading-states/index.d.cts +0 -9
  281. package/dist/components/loading-states/index.d.ts +0 -9
  282. package/dist/components/loading-states/index.js +0 -925
  283. package/dist/components/loading-states/index.js.map +0 -1
  284. package/dist/components/navigation/BreadCrumb.cjs +0 -3516
  285. package/dist/components/navigation/BreadCrumb.cjs.map +0 -1
  286. package/dist/components/navigation/BreadCrumb.d.cts +0 -20
  287. package/dist/components/navigation/BreadCrumb.d.ts +0 -20
  288. package/dist/components/navigation/BreadCrumb.js +0 -3511
  289. package/dist/components/navigation/BreadCrumb.js.map +0 -1
  290. package/dist/components/navigation/Navigation.cjs +0 -4041
  291. package/dist/components/navigation/Navigation.cjs.map +0 -1
  292. package/dist/components/navigation/Navigation.d.cts +0 -21
  293. package/dist/components/navigation/Navigation.d.ts +0 -21
  294. package/dist/components/navigation/Navigation.js +0 -4035
  295. package/dist/components/navigation/Navigation.js.map +0 -1
  296. package/dist/components/navigation/Pagination.cjs +0 -1007
  297. package/dist/components/navigation/Pagination.cjs.map +0 -1
  298. package/dist/components/navigation/Pagination.d.cts +0 -16
  299. package/dist/components/navigation/Pagination.d.ts +0 -16
  300. package/dist/components/navigation/Pagination.js +0 -973
  301. package/dist/components/navigation/Pagination.js.map +0 -1
  302. package/dist/components/navigation/StepperBar.cjs +0 -903
  303. package/dist/components/navigation/StepperBar.cjs.map +0 -1
  304. package/dist/components/navigation/StepperBar.d.cts +0 -23
  305. package/dist/components/navigation/StepperBar.d.ts +0 -23
  306. package/dist/components/navigation/StepperBar.js +0 -868
  307. package/dist/components/navigation/StepperBar.js.map +0 -1
  308. package/dist/components/navigation/index.cjs +0 -5035
  309. package/dist/components/navigation/index.cjs.map +0 -1
  310. package/dist/components/navigation/index.d.cts +0 -6
  311. package/dist/components/navigation/index.d.ts +0 -6
  312. package/dist/components/navigation/index.js +0 -5023
  313. package/dist/components/navigation/index.js.map +0 -1
  314. package/dist/components/properties/CheckboxProperty.cjs +0 -1736
  315. package/dist/components/properties/CheckboxProperty.cjs.map +0 -1
  316. package/dist/components/properties/CheckboxProperty.d.cts +0 -14
  317. package/dist/components/properties/CheckboxProperty.d.ts +0 -14
  318. package/dist/components/properties/CheckboxProperty.js +0 -1702
  319. package/dist/components/properties/CheckboxProperty.js.map +0 -1
  320. package/dist/components/properties/DateProperty.cjs +0 -1119
  321. package/dist/components/properties/DateProperty.cjs.map +0 -1
  322. package/dist/components/properties/DateProperty.d.cts +0 -16
  323. package/dist/components/properties/DateProperty.d.ts +0 -16
  324. package/dist/components/properties/DateProperty.js +0 -1085
  325. package/dist/components/properties/DateProperty.js.map +0 -1
  326. package/dist/components/properties/MultiSelectProperty.cjs +0 -2058
  327. package/dist/components/properties/MultiSelectProperty.cjs.map +0 -1
  328. package/dist/components/properties/MultiSelectProperty.d.cts +0 -14
  329. package/dist/components/properties/MultiSelectProperty.d.ts +0 -14
  330. package/dist/components/properties/MultiSelectProperty.js +0 -2035
  331. package/dist/components/properties/MultiSelectProperty.js.map +0 -1
  332. package/dist/components/properties/NumberProperty.cjs +0 -1125
  333. package/dist/components/properties/NumberProperty.cjs.map +0 -1
  334. package/dist/components/properties/NumberProperty.d.cts +0 -16
  335. package/dist/components/properties/NumberProperty.d.ts +0 -16
  336. package/dist/components/properties/NumberProperty.js +0 -1091
  337. package/dist/components/properties/NumberProperty.js.map +0 -1
  338. package/dist/components/properties/PropertyBase.cjs +0 -875
  339. package/dist/components/properties/PropertyBase.cjs.map +0 -1
  340. package/dist/components/properties/PropertyBase.d.cts +0 -22
  341. package/dist/components/properties/PropertyBase.d.ts +0 -22
  342. package/dist/components/properties/PropertyBase.js +0 -841
  343. package/dist/components/properties/PropertyBase.js.map +0 -1
  344. package/dist/components/properties/SelectProperty.cjs +0 -2058
  345. package/dist/components/properties/SelectProperty.cjs.map +0 -1
  346. package/dist/components/properties/SelectProperty.d.cts +0 -16
  347. package/dist/components/properties/SelectProperty.d.ts +0 -16
  348. package/dist/components/properties/SelectProperty.js +0 -2035
  349. package/dist/components/properties/SelectProperty.js.map +0 -1
  350. package/dist/components/properties/TextProperty.cjs +0 -1033
  351. package/dist/components/properties/TextProperty.cjs.map +0 -1
  352. package/dist/components/properties/TextProperty.d.cts +0 -15
  353. package/dist/components/properties/TextProperty.d.ts +0 -15
  354. package/dist/components/properties/TextProperty.js +0 -999
  355. package/dist/components/properties/TextProperty.js.map +0 -1
  356. package/dist/components/properties/index.cjs +0 -3383
  357. package/dist/components/properties/index.cjs.map +0 -1
  358. package/dist/components/properties/index.d.cts +0 -9
  359. package/dist/components/properties/index.d.ts +0 -9
  360. package/dist/components/properties/index.js +0 -3352
  361. package/dist/components/properties/index.js.map +0 -1
  362. package/dist/components/table/FillerRowElement.cjs +0 -36
  363. package/dist/components/table/FillerRowElement.cjs.map +0 -1
  364. package/dist/components/table/FillerRowElement.d.cts +0 -8
  365. package/dist/components/table/FillerRowElement.d.ts +0 -8
  366. package/dist/components/table/FillerRowElement.js +0 -12
  367. package/dist/components/table/FillerRowElement.js.map +0 -1
  368. package/dist/components/table/Filter.cjs +0 -41
  369. package/dist/components/table/Filter.cjs.map +0 -1
  370. package/dist/components/table/Filter.d.cts +0 -5
  371. package/dist/components/table/Filter.d.ts +0 -5
  372. package/dist/components/table/Filter.js +0 -17
  373. package/dist/components/table/Filter.js.map +0 -1
  374. package/dist/components/table/Table.cjs +0 -2678
  375. package/dist/components/table/Table.cjs.map +0 -1
  376. package/dist/components/table/Table.d.cts +0 -42
  377. package/dist/components/table/Table.d.ts +0 -42
  378. package/dist/components/table/Table.js +0 -2649
  379. package/dist/components/table/Table.js.map +0 -1
  380. package/dist/components/table/TableCell.cjs +0 -37
  381. package/dist/components/table/TableCell.cjs.map +0 -1
  382. package/dist/components/table/TableCell.d.cts +0 -9
  383. package/dist/components/table/TableCell.d.ts +0 -9
  384. package/dist/components/table/TableCell.js +0 -13
  385. package/dist/components/table/TableCell.js.map +0 -1
  386. package/dist/components/table/TableFilterButton.cjs +0 -1269
  387. package/dist/components/table/TableFilterButton.cjs.map +0 -1
  388. package/dist/components/table/TableFilterButton.d.cts +0 -11
  389. package/dist/components/table/TableFilterButton.d.ts +0 -11
  390. package/dist/components/table/TableFilterButton.js +0 -1233
  391. package/dist/components/table/TableFilterButton.js.map +0 -1
  392. package/dist/components/table/TableSortButton.cjs +0 -206
  393. package/dist/components/table/TableSortButton.cjs.map +0 -1
  394. package/dist/components/table/TableSortButton.d.cts +0 -15
  395. package/dist/components/table/TableSortButton.d.ts +0 -15
  396. package/dist/components/table/TableSortButton.js +0 -172
  397. package/dist/components/table/TableSortButton.js.map +0 -1
  398. package/dist/components/table/index.cjs +0 -2690
  399. package/dist/components/table/index.cjs.map +0 -1
  400. package/dist/components/table/index.d.cts +0 -10
  401. package/dist/components/table/index.d.ts +0 -10
  402. package/dist/components/table/index.js +0 -2654
  403. package/dist/components/table/index.js.map +0 -1
  404. package/dist/components/user-action/Button.cjs +0 -308
  405. package/dist/components/user-action/Button.cjs.map +0 -1
  406. package/dist/components/user-action/Button.d.cts +0 -104
  407. package/dist/components/user-action/Button.d.ts +0 -104
  408. package/dist/components/user-action/Button.js +0 -268
  409. package/dist/components/user-action/Button.js.map +0 -1
  410. package/dist/components/user-action/Checkbox.cjs +0 -878
  411. package/dist/components/user-action/Checkbox.cjs.map +0 -1
  412. package/dist/components/user-action/Checkbox.d.cts +0 -25
  413. package/dist/components/user-action/Checkbox.d.ts +0 -25
  414. package/dist/components/user-action/Checkbox.js +0 -843
  415. package/dist/components/user-action/Checkbox.js.map +0 -1
  416. package/dist/components/user-action/CopyToClipboardWrapper.cjs +0 -695
  417. package/dist/components/user-action/CopyToClipboardWrapper.cjs.map +0 -1
  418. package/dist/components/user-action/CopyToClipboardWrapper.d.cts +0 -30
  419. package/dist/components/user-action/CopyToClipboardWrapper.d.ts +0 -30
  420. package/dist/components/user-action/CopyToClipboardWrapper.js +0 -671
  421. package/dist/components/user-action/CopyToClipboardWrapper.js.map +0 -1
  422. package/dist/components/user-action/DateAndTimePicker.cjs +0 -1492
  423. package/dist/components/user-action/DateAndTimePicker.cjs.map +0 -1
  424. package/dist/components/user-action/DateAndTimePicker.d.cts +0 -25
  425. package/dist/components/user-action/DateAndTimePicker.d.ts +0 -25
  426. package/dist/components/user-action/DateAndTimePicker.js +0 -1458
  427. package/dist/components/user-action/DateAndTimePicker.js.map +0 -1
  428. package/dist/components/user-action/Label.cjs +0 -53
  429. package/dist/components/user-action/Label.cjs.map +0 -1
  430. package/dist/components/user-action/Label.d.cts +0 -14
  431. package/dist/components/user-action/Label.d.ts +0 -14
  432. package/dist/components/user-action/Label.js +0 -19
  433. package/dist/components/user-action/Label.js.map +0 -1
  434. package/dist/components/user-action/Menu.cjs +0 -282
  435. package/dist/components/user-action/Menu.cjs.map +0 -1
  436. package/dist/components/user-action/Menu.d.cts +0 -35
  437. package/dist/components/user-action/Menu.d.ts +0 -35
  438. package/dist/components/user-action/Menu.js +0 -247
  439. package/dist/components/user-action/Menu.js.map +0 -1
  440. package/dist/components/user-action/ScrollPicker.cjs +0 -301
  441. package/dist/components/user-action/ScrollPicker.cjs.map +0 -1
  442. package/dist/components/user-action/ScrollPicker.d.cts +0 -15
  443. package/dist/components/user-action/ScrollPicker.d.ts +0 -15
  444. package/dist/components/user-action/ScrollPicker.js +0 -267
  445. package/dist/components/user-action/ScrollPicker.js.map +0 -1
  446. package/dist/components/user-action/SearchBar.cjs +0 -956
  447. package/dist/components/user-action/SearchBar.cjs.map +0 -1
  448. package/dist/components/user-action/SearchBar.d.cts +0 -13
  449. package/dist/components/user-action/SearchBar.d.ts +0 -13
  450. package/dist/components/user-action/SearchBar.js +0 -920
  451. package/dist/components/user-action/SearchBar.js.map +0 -1
  452. package/dist/components/user-action/Textarea.cjs +0 -231
  453. package/dist/components/user-action/Textarea.cjs.map +0 -1
  454. package/dist/components/user-action/Textarea.d.cts +0 -41
  455. package/dist/components/user-action/Textarea.d.ts +0 -41
  456. package/dist/components/user-action/Textarea.js +0 -195
  457. package/dist/components/user-action/Textarea.js.map +0 -1
  458. package/dist/components/user-action/Tooltip.cjs +0 -139
  459. package/dist/components/user-action/Tooltip.cjs.map +0 -1
  460. package/dist/components/user-action/Tooltip.d.cts +0 -37
  461. package/dist/components/user-action/Tooltip.d.ts +0 -37
  462. package/dist/components/user-action/Tooltip.js +0 -113
  463. package/dist/components/user-action/Tooltip.js.map +0 -1
  464. package/dist/components/user-action/index.cjs +0 -4564
  465. package/dist/components/user-action/index.cjs.map +0 -1
  466. package/dist/components/user-action/index.d.cts +0 -26
  467. package/dist/components/user-action/index.d.ts +0 -26
  468. package/dist/components/user-action/index.js +0 -4503
  469. package/dist/components/user-action/index.js.map +0 -1
  470. package/dist/components/user-action/input/Input.cjs +0 -260
  471. package/dist/components/user-action/input/Input.cjs.map +0 -1
  472. package/dist/components/user-action/input/Input.d.cts +0 -37
  473. package/dist/components/user-action/input/Input.d.ts +0 -37
  474. package/dist/components/user-action/input/Input.js +0 -225
  475. package/dist/components/user-action/input/Input.js.map +0 -1
  476. package/dist/components/user-action/input/InsideLabelInput.cjs +0 -312
  477. package/dist/components/user-action/input/InsideLabelInput.cjs.map +0 -1
  478. package/dist/components/user-action/input/InsideLabelInput.d.cts +0 -20
  479. package/dist/components/user-action/input/InsideLabelInput.d.ts +0 -20
  480. package/dist/components/user-action/input/InsideLabelInput.js +0 -277
  481. package/dist/components/user-action/input/InsideLabelInput.js.map +0 -1
  482. package/dist/components/user-action/input/ToggleableInput.cjs +0 -315
  483. package/dist/components/user-action/input/ToggleableInput.cjs.map +0 -1
  484. package/dist/components/user-action/input/ToggleableInput.d.cts +0 -22
  485. package/dist/components/user-action/input/ToggleableInput.d.ts +0 -22
  486. package/dist/components/user-action/input/ToggleableInput.js +0 -280
  487. package/dist/components/user-action/input/ToggleableInput.js.map +0 -1
  488. package/dist/components/user-action/input/index.cjs +0 -403
  489. package/dist/components/user-action/input/index.cjs.map +0 -1
  490. package/dist/components/user-action/input/index.d.cts +0 -6
  491. package/dist/components/user-action/input/index.d.ts +0 -6
  492. package/dist/components/user-action/input/index.js +0 -362
  493. package/dist/components/user-action/input/index.js.map +0 -1
  494. package/dist/components/user-action/select/Select.cjs +0 -1970
  495. package/dist/components/user-action/select/Select.cjs.map +0 -1
  496. package/dist/components/user-action/select/Select.d.cts +0 -104
  497. package/dist/components/user-action/select/Select.d.ts +0 -104
  498. package/dist/components/user-action/select/Select.js +0 -1937
  499. package/dist/components/user-action/select/Select.js.map +0 -1
  500. package/dist/components/user-action/select/index.cjs +0 -1972
  501. package/dist/components/user-action/select/index.cjs.map +0 -1
  502. package/dist/components/user-action/select/index.d.cts +0 -4
  503. package/dist/components/user-action/select/index.d.ts +0 -4
  504. package/dist/components/user-action/select/index.js +0 -1937
  505. package/dist/components/user-action/select/index.js.map +0 -1
  506. package/dist/components/utils/FocusTrap.cjs +0 -252
  507. package/dist/components/utils/FocusTrap.cjs.map +0 -1
  508. package/dist/components/utils/FocusTrap.d.cts +0 -28
  509. package/dist/components/utils/FocusTrap.d.ts +0 -28
  510. package/dist/components/utils/FocusTrap.js +0 -229
  511. package/dist/components/utils/FocusTrap.js.map +0 -1
  512. package/dist/components/utils/Transition.cjs +0 -74
  513. package/dist/components/utils/Transition.cjs.map +0 -1
  514. package/dist/components/utils/Transition.d.cts +0 -26
  515. package/dist/components/utils/Transition.d.ts +0 -26
  516. package/dist/components/utils/Transition.js +0 -50
  517. package/dist/components/utils/Transition.js.map +0 -1
  518. package/dist/components/utils/index.cjs +0 -302
  519. package/dist/components/utils/index.cjs.map +0 -1
  520. package/dist/components/utils/index.d.cts +0 -4
  521. package/dist/components/utils/index.d.ts +0 -4
  522. package/dist/components/utils/index.js +0 -275
  523. package/dist/components/utils/index.js.map +0 -1
  524. package/dist/hooks/focus/index.cjs +0 -379
  525. package/dist/hooks/focus/index.cjs.map +0 -1
  526. package/dist/hooks/focus/index.d.cts +0 -6
  527. package/dist/hooks/focus/index.d.ts +0 -6
  528. package/dist/hooks/focus/index.js +0 -339
  529. package/dist/hooks/focus/index.js.map +0 -1
  530. package/dist/hooks/focus/useFocusGuards.cjs +0 -74
  531. package/dist/hooks/focus/useFocusGuards.cjs.map +0 -1
  532. package/dist/hooks/focus/useFocusGuards.d.cts +0 -3
  533. package/dist/hooks/focus/useFocusGuards.d.ts +0 -3
  534. package/dist/hooks/focus/useFocusGuards.js +0 -50
  535. package/dist/hooks/focus/useFocusGuards.js.map +0 -1
  536. package/dist/hooks/focus/useFocusManagement.cjs +0 -84
  537. package/dist/hooks/focus/useFocusManagement.cjs.map +0 -1
  538. package/dist/hooks/focus/useFocusManagement.d.cts +0 -9
  539. package/dist/hooks/focus/useFocusManagement.d.ts +0 -9
  540. package/dist/hooks/focus/useFocusManagement.js +0 -60
  541. package/dist/hooks/focus/useFocusManagement.js.map +0 -1
  542. package/dist/hooks/focus/useFocusOnceVisible.cjs +0 -60
  543. package/dist/hooks/focus/useFocusOnceVisible.cjs.map +0 -1
  544. package/dist/hooks/focus/useFocusOnceVisible.d.cts +0 -5
  545. package/dist/hooks/focus/useFocusOnceVisible.d.ts +0 -5
  546. package/dist/hooks/focus/useFocusOnceVisible.js +0 -26
  547. package/dist/hooks/focus/useFocusOnceVisible.js.map +0 -1
  548. package/dist/hooks/focus/useFocusTrap.cjs +0 -233
  549. package/dist/hooks/focus/useFocusTrap.cjs.map +0 -1
  550. package/dist/hooks/focus/useFocusTrap.d.cts +0 -16
  551. package/dist/hooks/focus/useFocusTrap.d.ts +0 -16
  552. package/dist/hooks/focus/useFocusTrap.js +0 -210
  553. package/dist/hooks/focus/useFocusTrap.js.map +0 -1
  554. package/dist/hooks/focus/useIsMounted.cjs +0 -43
  555. package/dist/hooks/focus/useIsMounted.cjs.map +0 -1
  556. package/dist/hooks/focus/useIsMounted.d.cts +0 -3
  557. package/dist/hooks/focus/useIsMounted.d.ts +0 -3
  558. package/dist/hooks/focus/useIsMounted.js +0 -20
  559. package/dist/hooks/focus/useIsMounted.js.map +0 -1
  560. package/dist/hooks/index.cjs +0 -1530
  561. package/dist/hooks/index.cjs.map +0 -1
  562. package/dist/hooks/index.d.cts +0 -18
  563. package/dist/hooks/index.d.ts +0 -18
  564. package/dist/hooks/index.js +0 -1477
  565. package/dist/hooks/index.js.map +0 -1
  566. package/dist/hooks/useDelay.cjs +0 -67
  567. package/dist/hooks/useDelay.cjs.map +0 -1
  568. package/dist/hooks/useDelay.d.cts +0 -12
  569. package/dist/hooks/useDelay.d.ts +0 -12
  570. package/dist/hooks/useDelay.js +0 -43
  571. package/dist/hooks/useDelay.js.map +0 -1
  572. package/dist/hooks/useFloatingElement.cjs +0 -162
  573. package/dist/hooks/useFloatingElement.cjs.map +0 -1
  574. package/dist/hooks/useFloatingElement.d.cts +0 -22
  575. package/dist/hooks/useFloatingElement.d.ts +0 -22
  576. package/dist/hooks/useFloatingElement.js +0 -139
  577. package/dist/hooks/useFloatingElement.js.map +0 -1
  578. package/dist/hooks/useHoverState.cjs +0 -71
  579. package/dist/hooks/useHoverState.cjs.map +0 -1
  580. package/dist/hooks/useHoverState.d.cts +0 -42
  581. package/dist/hooks/useHoverState.d.ts +0 -42
  582. package/dist/hooks/useHoverState.js +0 -47
  583. package/dist/hooks/useHoverState.js.map +0 -1
  584. package/dist/hooks/useLocalStorage.cjs +0 -97
  585. package/dist/hooks/useLocalStorage.cjs.map +0 -1
  586. package/dist/hooks/useLocalStorage.d.cts +0 -17
  587. package/dist/hooks/useLocalStorage.d.ts +0 -17
  588. package/dist/hooks/useLocalStorage.js +0 -74
  589. package/dist/hooks/useLocalStorage.js.map +0 -1
  590. package/dist/hooks/useLogOnce.cjs +0 -53
  591. package/dist/hooks/useLogOnce.cjs.map +0 -1
  592. package/dist/hooks/useLogOnce.d.cts +0 -7
  593. package/dist/hooks/useLogOnce.d.ts +0 -7
  594. package/dist/hooks/useLogOnce.js +0 -29
  595. package/dist/hooks/useLogOnce.js.map +0 -1
  596. package/dist/hooks/useOutsideClick.cjs +0 -47
  597. package/dist/hooks/useOutsideClick.cjs.map +0 -1
  598. package/dist/hooks/useOutsideClick.d.cts +0 -5
  599. package/dist/hooks/useOutsideClick.d.ts +0 -5
  600. package/dist/hooks/useOutsideClick.js +0 -23
  601. package/dist/hooks/useOutsideClick.js.map +0 -1
  602. package/dist/hooks/useOverwritableState.cjs +0 -49
  603. package/dist/hooks/useOverwritableState.cjs.map +0 -1
  604. package/dist/hooks/useOverwritableState.d.cts +0 -5
  605. package/dist/hooks/useOverwritableState.d.ts +0 -5
  606. package/dist/hooks/useOverwritableState.js +0 -25
  607. package/dist/hooks/useOverwritableState.js.map +0 -1
  608. package/dist/hooks/usePopoverPosition.cjs +0 -81
  609. package/dist/hooks/usePopoverPosition.cjs.map +0 -1
  610. package/dist/hooks/usePopoverPosition.d.cts +0 -15
  611. package/dist/hooks/usePopoverPosition.d.ts +0 -15
  612. package/dist/hooks/usePopoverPosition.js +0 -57
  613. package/dist/hooks/usePopoverPosition.js.map +0 -1
  614. package/dist/hooks/useRerender.cjs +0 -33
  615. package/dist/hooks/useRerender.cjs.map +0 -1
  616. package/dist/hooks/useRerender.d.cts +0 -5
  617. package/dist/hooks/useRerender.d.ts +0 -5
  618. package/dist/hooks/useRerender.js +0 -9
  619. package/dist/hooks/useRerender.js.map +0 -1
  620. package/dist/hooks/useResizeCallbackWrapper.cjs +0 -38
  621. package/dist/hooks/useResizeCallbackWrapper.cjs.map +0 -1
  622. package/dist/hooks/useResizeCallbackWrapper.d.cts +0 -11
  623. package/dist/hooks/useResizeCallbackWrapper.d.ts +0 -11
  624. package/dist/hooks/useResizeCallbackWrapper.js +0 -14
  625. package/dist/hooks/useResizeCallbackWrapper.js.map +0 -1
  626. package/dist/hooks/useSearch.cjs +0 -95
  627. package/dist/hooks/useSearch.cjs.map +0 -1
  628. package/dist/hooks/useSearch.d.cts +0 -22
  629. package/dist/hooks/useSearch.d.ts +0 -22
  630. package/dist/hooks/useSearch.js +0 -71
  631. package/dist/hooks/useSearch.js.map +0 -1
  632. package/dist/hooks/useValidators.cjs +0 -687
  633. package/dist/hooks/useValidators.cjs.map +0 -1
  634. package/dist/hooks/useValidators.d.cts +0 -16
  635. package/dist/hooks/useValidators.d.ts +0 -16
  636. package/dist/hooks/useValidators.js +0 -660
  637. package/dist/hooks/useValidators.js.map +0 -1
  638. package/dist/i18n/LocaleProvider.cjs +0 -202
  639. package/dist/i18n/LocaleProvider.cjs.map +0 -1
  640. package/dist/i18n/LocaleProvider.d.cts +0 -23
  641. package/dist/i18n/LocaleProvider.d.ts +0 -23
  642. package/dist/i18n/LocaleProvider.js +0 -175
  643. package/dist/i18n/LocaleProvider.js.map +0 -1
  644. package/dist/i18n/index.cjs +0 -761
  645. package/dist/i18n/index.cjs.map +0 -1
  646. package/dist/i18n/index.d.cts +0 -8
  647. package/dist/i18n/index.d.ts +0 -8
  648. package/dist/i18n/index.js +0 -727
  649. package/dist/i18n/index.js.map +0 -1
  650. package/dist/i18n/translations.cjs +0 -507
  651. package/dist/i18n/translations.cjs.map +0 -1
  652. package/dist/i18n/translations.d.cts +0 -189
  653. package/dist/i18n/translations.d.ts +0 -189
  654. package/dist/i18n/translations.js +0 -482
  655. package/dist/i18n/translations.js.map +0 -1
  656. package/dist/i18n/useHightideTranslation.cjs +0 -618
  657. package/dist/i18n/useHightideTranslation.cjs.map +0 -1
  658. package/dist/i18n/useHightideTranslation.d.cts +0 -21
  659. package/dist/i18n/useHightideTranslation.d.ts +0 -21
  660. package/dist/i18n/useHightideTranslation.js +0 -591
  661. package/dist/i18n/useHightideTranslation.js.map +0 -1
  662. package/dist/i18n/util.cjs +0 -49
  663. package/dist/i18n/util.cjs.map +0 -1
  664. package/dist/i18n/util.d.cts +0 -15
  665. package/dist/i18n/util.d.ts +0 -15
  666. package/dist/i18n/util.js +0 -23
  667. package/dist/i18n/util.js.map +0 -1
  668. package/dist/index.cjs +0 -16470
  669. package/dist/index.cjs.map +0 -1
  670. package/dist/index.d.cts +0 -113
  671. package/dist/storybook/helper.cjs +0 -61
  672. package/dist/storybook/helper.cjs.map +0 -1
  673. package/dist/storybook/helper.d.cts +0 -17
  674. package/dist/storybook/helper.d.ts +0 -17
  675. package/dist/storybook/helper.js +0 -37
  676. package/dist/storybook/helper.js.map +0 -1
  677. package/dist/theming/index.cjs +0 -190
  678. package/dist/theming/index.cjs.map +0 -1
  679. package/dist/theming/index.d.cts +0 -3
  680. package/dist/theming/index.d.ts +0 -3
  681. package/dist/theming/index.js +0 -161
  682. package/dist/theming/index.js.map +0 -1
  683. package/dist/theming/useTheme.cjs +0 -188
  684. package/dist/theming/useTheme.cjs.map +0 -1
  685. package/dist/theming/useTheme.d.cts +0 -26
  686. package/dist/theming/useTheme.d.ts +0 -26
  687. package/dist/theming/useTheme.js +0 -161
  688. package/dist/theming/useTheme.js.map +0 -1
  689. package/dist/utils/array.cjs +0 -172
  690. package/dist/utils/array.cjs.map +0 -1
  691. package/dist/utils/array.d.cts +0 -34
  692. package/dist/utils/array.d.ts +0 -34
  693. package/dist/utils/array.js +0 -142
  694. package/dist/utils/array.js.map +0 -1
  695. package/dist/utils/bagFunctions.cjs +0 -38
  696. package/dist/utils/bagFunctions.cjs.map +0 -1
  697. package/dist/utils/bagFunctions.d.cts +0 -15
  698. package/dist/utils/bagFunctions.d.ts +0 -15
  699. package/dist/utils/bagFunctions.js +0 -14
  700. package/dist/utils/bagFunctions.js.map +0 -1
  701. package/dist/utils/builder.cjs +0 -33
  702. package/dist/utils/builder.cjs.map +0 -1
  703. package/dist/utils/builder.d.cts +0 -8
  704. package/dist/utils/builder.d.ts +0 -8
  705. package/dist/utils/builder.js +0 -9
  706. package/dist/utils/builder.js.map +0 -1
  707. package/dist/utils/date.cjs +0 -193
  708. package/dist/utils/date.cjs.map +0 -1
  709. package/dist/utils/date.d.cts +0 -30
  710. package/dist/utils/date.d.ts +0 -30
  711. package/dist/utils/date.js +0 -156
  712. package/dist/utils/date.js.map +0 -1
  713. package/dist/utils/easeFunctions.cjs +0 -63
  714. package/dist/utils/easeFunctions.cjs.map +0 -1
  715. package/dist/utils/easeFunctions.d.cts +0 -11
  716. package/dist/utils/easeFunctions.d.ts +0 -11
  717. package/dist/utils/easeFunctions.js +0 -37
  718. package/dist/utils/easeFunctions.js.map +0 -1
  719. package/dist/utils/emailValidation.cjs +0 -32
  720. package/dist/utils/emailValidation.cjs.map +0 -1
  721. package/dist/utils/emailValidation.d.cts +0 -3
  722. package/dist/utils/emailValidation.d.ts +0 -3
  723. package/dist/utils/emailValidation.js +0 -8
  724. package/dist/utils/emailValidation.js.map +0 -1
  725. package/dist/utils/index.cjs +0 -562
  726. package/dist/utils/index.cjs.map +0 -1
  727. package/dist/utils/index.d.cts +0 -16
  728. package/dist/utils/index.d.ts +0 -16
  729. package/dist/utils/index.js +0 -502
  730. package/dist/utils/index.js.map +0 -1
  731. package/dist/utils/loopingArray.cjs +0 -96
  732. package/dist/utils/loopingArray.cjs.map +0 -1
  733. package/dist/utils/loopingArray.d.cts +0 -25
  734. package/dist/utils/loopingArray.d.ts +0 -25
  735. package/dist/utils/loopingArray.js +0 -72
  736. package/dist/utils/loopingArray.js.map +0 -1
  737. package/dist/utils/match.cjs +0 -32
  738. package/dist/utils/match.cjs.map +0 -1
  739. package/dist/utils/match.d.cts +0 -3
  740. package/dist/utils/match.d.ts +0 -3
  741. package/dist/utils/match.js +0 -8
  742. package/dist/utils/match.js.map +0 -1
  743. package/dist/utils/math.cjs +0 -33
  744. package/dist/utils/math.cjs.map +0 -1
  745. package/dist/utils/math.d.cts +0 -3
  746. package/dist/utils/math.d.ts +0 -3
  747. package/dist/utils/math.js +0 -9
  748. package/dist/utils/math.js.map +0 -1
  749. package/dist/utils/noop.cjs +0 -30
  750. package/dist/utils/noop.cjs.map +0 -1
  751. package/dist/utils/noop.d.cts +0 -3
  752. package/dist/utils/noop.d.ts +0 -3
  753. package/dist/utils/noop.js +0 -6
  754. package/dist/utils/noop.js.map +0 -1
  755. package/dist/utils/resolveSetState.cjs +0 -32
  756. package/dist/utils/resolveSetState.cjs.map +0 -1
  757. package/dist/utils/resolveSetState.d.cts +0 -5
  758. package/dist/utils/resolveSetState.d.ts +0 -5
  759. package/dist/utils/resolveSetState.js +0 -8
  760. package/dist/utils/resolveSetState.js.map +0 -1
  761. package/dist/utils/simpleSearch.cjs +0 -59
  762. package/dist/utils/simpleSearch.cjs.map +0 -1
  763. package/dist/utils/simpleSearch.d.cts +0 -50
  764. package/dist/utils/simpleSearch.d.ts +0 -50
  765. package/dist/utils/simpleSearch.js +0 -32
  766. package/dist/utils/simpleSearch.js.map +0 -1
  767. package/dist/utils/storage.cjs +0 -63
  768. package/dist/utils/storage.cjs.map +0 -1
  769. package/dist/utils/storage.d.cts +0 -16
  770. package/dist/utils/storage.d.ts +0 -16
  771. package/dist/utils/storage.js +0 -38
  772. package/dist/utils/storage.js.map +0 -1
  773. package/dist/utils/typing.cjs +0 -18
  774. package/dist/utils/typing.cjs.map +0 -1
  775. package/dist/utils/typing.d.cts +0 -8
  776. package/dist/utils/typing.d.ts +0 -8
  777. package/dist/utils/typing.js +0 -1
  778. package/dist/utils/typing.js.map +0 -1
  779. package/dist/utils/writeToClipboard.cjs +0 -33
  780. package/dist/utils/writeToClipboard.cjs.map +0 -1
  781. package/dist/utils/writeToClipboard.d.cts +0 -3
  782. package/dist/utils/writeToClipboard.d.ts +0 -3
  783. package/dist/utils/writeToClipboard.js +0 -10
  784. package/dist/utils/writeToClipboard.js.map +0 -1
@@ -1,1492 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
- // If the importer is in node compatibility mode or this is not an ESM
21
- // file that has been converted to a CommonJS file using a Babel-
22
- // compatible transform (i.e. "__esModule" has not been set), then set
23
- // "default" to the CommonJS "module.exports" for node compatibility.
24
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
- mod
26
- ));
27
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
-
29
- // src/components/user-action/DateAndTimePicker.tsx
30
- var DateAndTimePicker_exports = {};
31
- __export(DateAndTimePicker_exports, {
32
- DateTimePicker: () => DateTimePicker
33
- });
34
- module.exports = __toCommonJS(DateAndTimePicker_exports);
35
- var import_clsx7 = __toESM(require("clsx"), 1);
36
-
37
- // src/utils/array.ts
38
- var equalSizeGroups = (array, groupSize) => {
39
- if (groupSize <= 0) {
40
- console.warn(`group size should be greater than 0: groupSize = ${groupSize}`);
41
- return [[...array]];
42
- }
43
- const groups = [];
44
- for (let i = 0; i < array.length; i += groupSize) {
45
- groups.push(array.slice(i, Math.min(i + groupSize, array.length)));
46
- }
47
- return groups;
48
- };
49
- var defaultRangeOptions = {
50
- allowEmptyRange: false,
51
- stepSize: 1,
52
- exclusiveStart: false,
53
- exclusiveEnd: true
54
- };
55
- var range = (endOrRange, options) => {
56
- const { allowEmptyRange, stepSize, exclusiveStart, exclusiveEnd } = { ...defaultRangeOptions, ...options };
57
- let start = 0;
58
- let end;
59
- if (typeof endOrRange === "number") {
60
- end = endOrRange;
61
- } else {
62
- start = endOrRange[0];
63
- end = endOrRange[1];
64
- }
65
- if (!exclusiveEnd) {
66
- end -= 1;
67
- }
68
- if (exclusiveStart) {
69
- start += 1;
70
- }
71
- if (end - 1 < start) {
72
- if (!allowEmptyRange) {
73
- console.warn(`range: end (${end}) < start (${start}) should be allowed explicitly, set options.allowEmptyRange to true`);
74
- }
75
- return [];
76
- }
77
- return Array.from({ length: end - start }, (_, index) => index * stepSize + start);
78
- };
79
- var closestMatch = (list, firstCloser) => {
80
- return list.reduce((item1, item2) => {
81
- return firstCloser(item1, item2) ? item1 : item2;
82
- });
83
- };
84
- var moveItems = (list, move = 0) => {
85
- const result = [];
86
- let start = move;
87
- if (start < 0) {
88
- start = list.length - move;
89
- }
90
- start = start % list.length;
91
- for (let i = 0; i < list.length; i++) {
92
- result[i] = list[(i + start) % list.length];
93
- }
94
- return result;
95
- };
96
- function resolveSingleOrArray(value) {
97
- if (Array.isArray(value)) {
98
- return value;
99
- } else if (value) {
100
- return [value];
101
- }
102
- return [];
103
- }
104
- var ArrayUtil = {
105
- unique: (list) => {
106
- const seen = /* @__PURE__ */ new Set();
107
- return list.filter((item) => {
108
- if (seen.has(item)) {
109
- return false;
110
- }
111
- seen.add(item);
112
- return true;
113
- });
114
- },
115
- difference: (list, removeList) => {
116
- const remove = new Set(removeList);
117
- return list.filter((item) => !remove.has(item));
118
- },
119
- moveItems,
120
- resolveSingleOrArray
121
- };
122
-
123
- // src/utils/date.ts
124
- var monthsList = ["january", "february", "march", "april", "may", "june", "july", "august", "september", "october", "november", "december"];
125
- var weekDayList = ["sunday", "monday", "tuesday", "wednesday", "thursday", "friday", "saturday"];
126
- var changeDuration = (date, duration, isAdding) => {
127
- const {
128
- years = 0,
129
- months = 0,
130
- days = 0,
131
- hours = 0,
132
- minutes = 0,
133
- seconds = 0,
134
- milliseconds = 0
135
- } = duration;
136
- if (years < 0) {
137
- console.error(`Range error years must be greater than 0: received ${years}`);
138
- return new Date(date);
139
- }
140
- if (months < 0 || months > 11) {
141
- console.error(`Range error month must be 0 <= month <= 11: received ${months}`);
142
- return new Date(date);
143
- }
144
- if (days < 0) {
145
- console.error(`Range error days must be greater than 0: received ${days}`);
146
- return new Date(date);
147
- }
148
- if (hours < 0 || hours > 23) {
149
- console.error(`Range error hours must be 0 <= hours <= 23: received ${hours}`);
150
- return new Date(date);
151
- }
152
- if (minutes < 0 || minutes > 59) {
153
- console.error(`Range error minutes must be 0 <= minutes <= 59: received ${minutes}`);
154
- return new Date(date);
155
- }
156
- if (seconds < 0 || seconds > 59) {
157
- console.error(`Range error seconds must be 0 <= seconds <= 59: received ${seconds}`);
158
- return new Date(date);
159
- }
160
- if (milliseconds < 0) {
161
- console.error(`Range error seconds must be greater than 0: received ${milliseconds}`);
162
- return new Date(date);
163
- }
164
- const multiplier = isAdding ? 1 : -1;
165
- const newDate = new Date(date);
166
- newDate.setFullYear(newDate.getFullYear() + multiplier * years);
167
- newDate.setMonth(newDate.getMonth() + multiplier * months);
168
- newDate.setDate(newDate.getDate() + multiplier * days);
169
- newDate.setHours(newDate.getHours() + multiplier * hours);
170
- newDate.setMinutes(newDate.getMinutes() + multiplier * minutes);
171
- newDate.setSeconds(newDate.getSeconds() + multiplier * seconds);
172
- newDate.setMilliseconds(newDate.getMilliseconds() + multiplier * milliseconds);
173
- return newDate;
174
- };
175
- var addDuration = (date, duration) => {
176
- return changeDuration(date, duration, true);
177
- };
178
- var subtractDuration = (date, duration) => {
179
- return changeDuration(date, duration, false);
180
- };
181
- var isInTimeSpan = (value, startDate, endDate) => {
182
- if (startDate && endDate) {
183
- console.assert(startDate <= endDate);
184
- return startDate <= value && value <= endDate;
185
- } else if (startDate) {
186
- return startDate <= value;
187
- } else if (endDate) {
188
- return endDate >= value;
189
- } else {
190
- return true;
191
- }
192
- };
193
- var equalDate = (date1, date2) => {
194
- return date1.getFullYear() === date2.getFullYear() && date1.getMonth() === date2.getMonth() && date1.getDate() === date2.getDate();
195
- };
196
- var getWeeksForCalenderMonth = (date, weekStart, weeks = 6) => {
197
- const month = date.getMonth();
198
- const year = date.getFullYear();
199
- const dayList = [];
200
- let currentDate = new Date(year, month, 1);
201
- const weekStartIndex = weekDayList.indexOf(weekStart);
202
- while (currentDate.getDay() !== weekStartIndex) {
203
- currentDate = subtractDuration(currentDate, { days: 1 });
204
- }
205
- while (dayList.length < 7 * weeks) {
206
- const date2 = new Date(currentDate);
207
- date2.setHours(date2.getHours(), date2.getMinutes());
208
- dayList.push(date2);
209
- currentDate = addDuration(currentDate, { days: 1 });
210
- }
211
- return equalSizeGroups(dayList, 7);
212
- };
213
-
214
- // src/components/user-action/Button.tsx
215
- var import_react = require("react");
216
- var import_clsx = __toESM(require("clsx"), 1);
217
- var import_jsx_runtime = require("react/jsx-runtime");
218
- var ButtonColorUtil = {
219
- solid: ["primary", "secondary", "tertiary", "positive", "warning", "negative", "neutral"],
220
- text: ["primary", "negative", "neutral"],
221
- outline: ["primary"]
222
- };
223
- var IconButtonUtil = {
224
- icon: [...ButtonColorUtil.solid, "transparent"]
225
- };
226
- var paddingMapping = {
227
- none: "",
228
- small: "btn-sm",
229
- medium: "btn-md",
230
- large: "btn-lg"
231
- };
232
- var iconPaddingMapping = {
233
- none: "",
234
- tiny: "icon-btn-xs",
235
- small: "icon-btn-sm",
236
- medium: "icon-btn-md",
237
- large: "icon-btn-lg"
238
- };
239
- var ButtonUtil = {
240
- paddingMapping,
241
- iconPaddingMapping
242
- };
243
- var SolidButton = (0, import_react.forwardRef)(function SolidButton2({
244
- children,
245
- color = "primary",
246
- size = "medium",
247
- startIcon,
248
- endIcon,
249
- onClick,
250
- className,
251
- ...restProps
252
- }, ref) {
253
- const colorClasses = {
254
- primary: "not-disabled:bg-button-solid-primary-background not-disabled:text-button-solid-primary-text",
255
- secondary: "not-disabled:bg-button-solid-secondary-background not-disabled:text-button-solid-secondary-text",
256
- tertiary: "not-disabled:bg-button-solid-tertiary-background not-disabled:text-button-solid-tertiary-text",
257
- positive: "not-disabled:bg-button-solid-positive-background not-disabled:text-button-solid-positive-text",
258
- warning: "not-disabled:bg-button-solid-warning-background not-disabled:text-button-solid-warning-text",
259
- negative: "not-disabled:bg-button-solid-negative-background not-disabled:text-button-solid-negative-text",
260
- neutral: "not-disabled:bg-button-solid-neutral-background not-disabled:text-button-solid-neutral-text"
261
- }[color];
262
- const iconColorClasses = {
263
- primary: "not-group-disabled:text-button-solid-primary-icon",
264
- secondary: "not-group-disabled:text-button-solid-secondary-icon",
265
- tertiary: "not-group-disabled:text-button-solid-tertiary-icon",
266
- positive: "not-group-disabled:text-button-solid-positive-icon",
267
- warning: "not-group-disabled:text-button-solid-warning-icon",
268
- negative: "not-group-disabled:text-button-solid-negative-icon",
269
- neutral: "not-group-disabled:text-button-solid-neutral-icon"
270
- }[color];
271
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
272
- "button",
273
- {
274
- ref,
275
- onClick,
276
- className: (0, import_clsx.default)(
277
- "group font-semibold",
278
- colorClasses,
279
- "not-disabled:hover:brightness-90",
280
- "disabled:text-disabled disabled:bg-disabled-background",
281
- ButtonUtil.paddingMapping[size],
282
- className
283
- ),
284
- ...restProps,
285
- children: [
286
- startIcon && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
287
- "span",
288
- {
289
- className: (0, import_clsx.default)(
290
- iconColorClasses,
291
- "group-disabled:text-disabled-icon"
292
- ),
293
- children: startIcon
294
- }
295
- ),
296
- children,
297
- endIcon && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
298
- "span",
299
- {
300
- className: (0, import_clsx.default)(
301
- iconColorClasses,
302
- "group-disabled:text-disabled-icon"
303
- ),
304
- children: endIcon
305
- }
306
- )
307
- ]
308
- }
309
- );
310
- });
311
- var TextButton = ({
312
- children,
313
- color = "neutral",
314
- size = "medium",
315
- startIcon,
316
- endIcon,
317
- onClick,
318
- coloredHoverBackground = true,
319
- className,
320
- ...restProps
321
- }) => {
322
- const colorClasses = {
323
- primary: "not-disabled:bg-transparent not-disabled:text-button-text-primary-text not-disabled:focus-visible:outline-button-text-primary-text",
324
- negative: "not-disabled:bg-transparent not-disabled:text-button-text-negative-text not-disabled:focus-visible:outline-button-text-negative-text",
325
- neutral: "not-disabled:bg-transparent not-disabled:text-button-text-neutral-text not-disabled:focus-visible:outline-button-text-neutral-text"
326
- }[color];
327
- const backgroundColor = {
328
- primary: "not-disabled:hover:bg-button-text-primary-text/20 not-disabled:focus-visible:bg-button-text-primary-text/20",
329
- negative: "not-disabled:hover:bg-button-text-negative-text/20 not-disabled:focus-visible:bg-button-text-negative-text/20",
330
- neutral: "not-disabled:hover:bg-button-text-neutral-text/20 not-disabled:focus-visible:bg-button-text-neutral-text/20"
331
- }[color];
332
- const iconColorClasses = {
333
- primary: "not-group-disabled:text-button-text-primary-icon",
334
- negative: "not-group-disabled:text-button-text-negative-icon",
335
- neutral: "not-group-disabled:text-button-text-neutral-icon"
336
- }[color];
337
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
338
- "button",
339
- {
340
- onClick,
341
- className: (0, import_clsx.default)(
342
- "group font-semibold",
343
- "disabled:text-disabled",
344
- colorClasses,
345
- {
346
- [backgroundColor]: coloredHoverBackground,
347
- "not-disabled:hover:bg-button-text-hover-background": !coloredHoverBackground
348
- },
349
- ButtonUtil.paddingMapping[size],
350
- className
351
- ),
352
- ...restProps,
353
- children: [
354
- startIcon && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
355
- "span",
356
- {
357
- className: (0, import_clsx.default)(
358
- iconColorClasses,
359
- "group-disabled:text-disabled-icon"
360
- ),
361
- children: startIcon
362
- }
363
- ),
364
- children,
365
- endIcon && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
366
- "span",
367
- {
368
- className: (0, import_clsx.default)(
369
- iconColorClasses,
370
- "group-disabled:text-disabled-icon"
371
- ),
372
- children: endIcon
373
- }
374
- )
375
- ]
376
- }
377
- );
378
- };
379
- var IconButton = (0, import_react.forwardRef)(function IconButton2({
380
- children,
381
- color = "primary",
382
- size = "medium",
383
- className,
384
- ...restProps
385
- }, ref) {
386
- const colorClasses = {
387
- primary: "not-disabled:bg-button-solid-primary-background not-disabled:text-button-solid-primary-text",
388
- secondary: "not-disabled:bg-button-solid-secondary-background not-disabled:text-button-solid-secondary-text",
389
- tertiary: "not-disabled:bg-button-solid-tertiary-background not-disabled:text-button-solid-tertiary-text",
390
- positive: "not-disabled:bg-button-solid-positive-background not-disabled:text-button-solid-positive-text",
391
- warning: "not-disabled:bg-button-solid-warning-background not-disabled:text-button-solid-warning-text",
392
- negative: "not-disabled:bg-button-solid-negative-background not-disabled:text-button-solid-negative-text",
393
- neutral: "not-disabled:bg-button-solid-neutral-background not-disabled:text-button-solid-neutral-text",
394
- transparent: "not-disabled:bg-transparent"
395
- }[color];
396
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
397
- "button",
398
- {
399
- ref,
400
- className: (0, import_clsx.default)(
401
- colorClasses,
402
- "not-disabled:hover:brightness-90",
403
- "disabled:text-disabled",
404
- {
405
- "disabled:bg-disabled-background": color !== "transparent",
406
- "disabled:opacity-70": color === "transparent",
407
- "not-disabled:hover:bg-button-text-hover-background": color === "transparent"
408
- },
409
- ButtonUtil.iconPaddingMapping[size],
410
- className
411
- ),
412
- ...restProps,
413
- children
414
- }
415
- );
416
- });
417
-
418
- // src/components/date/TimePicker.tsx
419
- var import_react3 = require("react");
420
- var import_react_custom_scrollbars_2 = require("react-custom-scrollbars-2");
421
- var import_clsx2 = __toESM(require("clsx"), 1);
422
-
423
- // src/hooks/useOverwritableState.ts
424
- var import_react2 = require("react");
425
-
426
- // src/utils/resolveSetState.ts
427
- function resolveSetState(action, prev) {
428
- return typeof action === "function" ? action(prev) : action;
429
- }
430
-
431
- // src/hooks/useOverwritableState.ts
432
- var useOverwritableState = (initialValue, onChange) => {
433
- const [state, setState] = (0, import_react2.useState)(initialValue);
434
- (0, import_react2.useEffect)(() => {
435
- setState(initialValue);
436
- }, [initialValue]);
437
- const onChangeWrapper = (action) => {
438
- const resolved = resolveSetState(action, state);
439
- setState(resolved);
440
- onChange?.(state);
441
- };
442
- return [state, onChangeWrapper];
443
- };
444
-
445
- // src/components/date/TimePicker.tsx
446
- var import_jsx_runtime2 = require("react/jsx-runtime");
447
- var TimePicker = ({
448
- time = /* @__PURE__ */ new Date(),
449
- onChange,
450
- is24HourFormat = true,
451
- minuteIncrement = "5min",
452
- maxHeight = 300,
453
- className = ""
454
- }) => {
455
- const minuteRef = (0, import_react3.useRef)(null);
456
- const hourRef = (0, import_react3.useRef)(null);
457
- const isPM = time.getHours() >= 11;
458
- const hours = is24HourFormat ? range(24) : range([1, 12], { exclusiveEnd: false });
459
- let minutes = range(60);
460
- (0, import_react3.useEffect)(() => {
461
- const scrollToItem = () => {
462
- if (minuteRef.current) {
463
- const container = minuteRef.current.parentElement;
464
- const hasOverflow = container.scrollHeight > maxHeight;
465
- if (hasOverflow) {
466
- minuteRef.current.scrollIntoView({
467
- behavior: "instant",
468
- block: "nearest"
469
- });
470
- }
471
- }
472
- };
473
- scrollToItem();
474
- }, [minuteRef, minuteRef.current]);
475
- (0, import_react3.useEffect)(() => {
476
- const scrollToItem = () => {
477
- if (hourRef.current) {
478
- const container = hourRef.current.parentElement;
479
- const hasOverflow = container.scrollHeight > maxHeight;
480
- if (hasOverflow) {
481
- hourRef.current.scrollIntoView({
482
- behavior: "instant",
483
- block: "nearest"
484
- });
485
- }
486
- }
487
- };
488
- scrollToItem();
489
- }, [hourRef, hourRef.current]);
490
- switch (minuteIncrement) {
491
- case "5min":
492
- minutes = minutes.filter((value) => value % 5 === 0);
493
- break;
494
- case "10min":
495
- minutes = minutes.filter((value) => value % 10 === 0);
496
- break;
497
- case "15min":
498
- minutes = minutes.filter((value) => value % 15 === 0);
499
- break;
500
- case "30min":
501
- minutes = minutes.filter((value) => value % 30 === 0);
502
- break;
503
- }
504
- const closestMinute = closestMatch(minutes, (item1, item2) => Math.abs(item1 - time.getMinutes()) < Math.abs(item2 - time.getMinutes()));
505
- const style = (selected) => (0, import_clsx2.default)(
506
- "chip-full hover:brightness-90 hover:bg-primary hover:text-on-primary rounded-md mr-3",
507
- { "bg-primary text-on-primary": selected, "bg-white text-black": !selected }
508
- );
509
- const onChangeWrapper = (transformer) => {
510
- const newDate = new Date(time);
511
- transformer(newDate);
512
- onChange?.(newDate);
513
- };
514
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: (0, import_clsx2.default)("flex-row-2 w-fit min-w-[150px] select-none", className), children: [
515
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react_custom_scrollbars_2.Scrollbars, { autoHeight: true, autoHeightMax: maxHeight, style: { height: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "flex-col-1 h-full", children: hours.map((hour) => {
516
- const currentHour = hour === time.getHours() - (!is24HourFormat && isPM ? 12 : 0);
517
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
518
- "button",
519
- {
520
- ref: currentHour ? hourRef : void 0,
521
- className: style(currentHour),
522
- onClick: () => onChangeWrapper((newDate) => newDate.setHours(hour + (!is24HourFormat && isPM ? 12 : 0))),
523
- children: hour.toString().padStart(2, "0")
524
- },
525
- hour
526
- );
527
- }) }) }),
528
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react_custom_scrollbars_2.Scrollbars, { autoHeight: true, autoHeightMax: maxHeight, style: { height: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "flex-col-1 h-full", children: minutes.map((minute) => {
529
- const currentMinute = minute === closestMinute;
530
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
531
- "button",
532
- {
533
- ref: currentMinute ? minuteRef : void 0,
534
- className: style(currentMinute),
535
- onClick: () => onChangeWrapper((newDate) => newDate.setMinutes(minute)),
536
- children: minute.toString().padStart(2, "0")
537
- },
538
- minute + minuteIncrement
539
- );
540
- }) }) }),
541
- !is24HourFormat && /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "flex-col-1", children: [
542
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
543
- "button",
544
- {
545
- className: style(!isPM),
546
- onClick: () => onChangeWrapper((newDate) => isPM && newDate.setHours(newDate.getHours() - 12)),
547
- children: "AM"
548
- }
549
- ),
550
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
551
- "button",
552
- {
553
- className: style(isPM),
554
- onClick: () => onChangeWrapper((newDate) => !isPM && newDate.setHours(newDate.getHours() + 12)),
555
- children: "PM"
556
- }
557
- )
558
- ] })
559
- ] });
560
- };
561
-
562
- // src/components/date/DatePicker.tsx
563
- var import_react9 = require("react");
564
- var import_lucide_react2 = require("lucide-react");
565
- var import_clsx6 = __toESM(require("clsx"), 1);
566
-
567
- // src/components/date/DayPicker.tsx
568
- var import_clsx3 = __toESM(require("clsx"), 1);
569
-
570
- // src/i18n/LocaleProvider.tsx
571
- var import_react5 = require("react");
572
-
573
- // src/hooks/useLocalStorage.ts
574
- var import_react4 = require("react");
575
-
576
- // src/i18n/translations.ts
577
- var import_internationalization = require("@helpwave/internationalization");
578
- var hightideTranslationLocales = ["de-DE", "en-US"];
579
- var hightideTranslation = {
580
- "de-DE": {
581
- "add": `Hinzuf\xFCgen`,
582
- "age": `Alter`,
583
- "all": `Alle`,
584
- "apply": `Anwenden`,
585
- "back": `Zur\xFCck`,
586
- "cancel": `Abbrechen`,
587
- "carousel": `Karussell`,
588
- "change": `\xC4ndern`,
589
- "chooseLanguage": `W\xE4hle deine bevorzugte Sprache`,
590
- "chooseSlide": `W\xE4hle die angezeigte Slide aus`,
591
- "chooseTheme": `W\xE4hle dein bevorzugtes Farbschema.`,
592
- "clear": `L\xF6schen`,
593
- "click": `Klicken`,
594
- "clickToCopy": `Zum kopieren klicken`,
595
- "clickToSelect": `Zum Ausw\xE4hlen dr\xFCcken`,
596
- "close": `Schlie\xDFen`,
597
- "confirm": `Best\xE4tigen`,
598
- "copied": `Kopiert`,
599
- "copy": `Kopieren`,
600
- "create": `Erstellen`,
601
- "decline": `Ablehnen`,
602
- "delete": `L\xF6schen`,
603
- "discard": `Verwerfen`,
604
- "discardChanges": `\xC4nderungen Verwerfen`,
605
- "done": `Fertig`,
606
- "edit": `Bearbeiten`,
607
- "endDate": `Ende`,
608
- "enterText": `Text hier eingeben`,
609
- "entryDate": `Eintragsdatum`,
610
- "error": `Fehler`,
611
- "errorOccurred": `Ein Fehler ist aufgetreten`,
612
- "exit": `Beenden`,
613
- "fieldRequiredError": `Dieses Feld ist erforderlich.`,
614
- "filter": `Filter`,
615
- "gender": ({ gender }) => {
616
- return import_internationalization.TranslationGen.resolveSelect(gender, {
617
- "male": `M\xE4nnlich`,
618
- "female": `Weiblich`,
619
- "other": `Divers`
620
- });
621
- },
622
- "goodToSeeYou": `Sch\xF6n dich zu sehen`,
623
- "identifier": `Identifikator`,
624
- "invalidEmail": `Die E-Mail ist ung\xFCltig.`,
625
- "invalidEmailError": `Bitte geben Sie eine g\xFCltige E-Mail-Adresse ein.`,
626
- "language": `Sprache`,
627
- "less": `Weniger`,
628
- "loading": `L\xE4dt`,
629
- "locale": `Locale`,
630
- "max": `Max`,
631
- "maxLengthError": `Maximale L\xE4nge \xFCberschritten.`,
632
- "min": `Min`,
633
- "minLengthError": `Mindestl\xE4nge nicht erreicht.`,
634
- "more": `Mehr`,
635
- "name": `Name`,
636
- "next": `Weiter`,
637
- "no": `Nein`,
638
- "none": `Nichts`,
639
- "notEmpty": `Das Feld darf nicht leer sein.`,
640
- "nothingFound": `Nichts gefunden`,
641
- "of": `von`,
642
- "optional": `Optional`,
643
- "outOfRangeNumber": ({ min, max }) => {
644
- return `Der Wert muss zwischen ${min} und ${max} liegen.`;
645
- },
646
- "outOfRangeSelectionItems": ({ min, max }) => {
647
- return `Es m\xFCssen zwischen ${min} und ${max} Elemente ausgew\xE4hlt werden.`;
648
- },
649
- "outOfRangeString": ({ min, max }) => {
650
- return `Der Wert muss zwischen ${min} und ${max} Zeichen lang sein.`;
651
- },
652
- "pleaseWait": `Bitte warten...`,
653
- "previous": `Vorherige`,
654
- "remove": `Entfernen`,
655
- "required": `Erforderlich`,
656
- "reset": `Zur\xFCcksetzen`,
657
- "save": `Speichern`,
658
- "saved": `Gespeichert`,
659
- "search": `Suche`,
660
- "select": `Select`,
661
- "selectOption": `Option ausw\xE4hlen`,
662
- "show": `Anzeigen`,
663
- "showLess": `Weniger anzeigen`,
664
- "showMore": `Mehr anzeigen`,
665
- "showSlide": ({ index }) => {
666
- return `Zeige Slide ${index}`;
667
- },
668
- "slide": `Slide`,
669
- "slideNavigation": `Slide Navigation`,
670
- "slideOf": ({ index, length }) => {
671
- return `Slide ${index} von ${length} slides`;
672
- },
673
- "startDate": `Start`,
674
- "street": `Stra\xDFe`,
675
- "submit": `Abschicken`,
676
- "success": `Erfolg`,
677
- "text": `Text`,
678
- "themeMode": ({ theme }) => {
679
- return import_internationalization.TranslationGen.resolveSelect(theme, {
680
- "dark": `Dunkel`,
681
- "light": `Hell`,
682
- "system": `System`
683
- });
684
- },
685
- "themes": ({ count }) => {
686
- return import_internationalization.TranslationGen.resolveSelect(count, {
687
- "=1": `Farbschema`,
688
- "other": `Farbschemas`
689
- });
690
- },
691
- "time.ago": `vor`,
692
- "time.agoDays": ({ days }) => {
693
- return `var ${days} Tagen`;
694
- },
695
- "time.april": `April`,
696
- "time.august": `August`,
697
- "time.century": ({ count }) => {
698
- return import_internationalization.TranslationGen.resolveSelect(count, {
699
- "=1": `Jahrhundert`,
700
- "other": `Jahrhunderte`
701
- });
702
- },
703
- "time.day": ({ count }) => {
704
- return import_internationalization.TranslationGen.resolveSelect(count, {
705
- "=1": `Tag`,
706
- "other": `Tage`
707
- });
708
- },
709
- "time.decade": ({ count }) => {
710
- return import_internationalization.TranslationGen.resolveSelect(count, {
711
- "=1": `Jahrzehnt`,
712
- "other": `Jahrzehnte`
713
- });
714
- },
715
- "time.december": `December`,
716
- "time.february": `Febuar`,
717
- "time.hour": ({ count }) => {
718
- return import_internationalization.TranslationGen.resolveSelect(count, {
719
- "=1": `Stunde`,
720
- "other": `Stunden`
721
- });
722
- },
723
- "time.in": `in`,
724
- "time.inDays": ({ days }) => {
725
- return `in ${days} Tagen`;
726
- },
727
- "time.january": `Januar`,
728
- "time.july": `Juli`,
729
- "time.june": `Juni`,
730
- "time.march": `M\xE4rz`,
731
- "time.may": `Mai`,
732
- "time.microsecond": ({ count }) => {
733
- return import_internationalization.TranslationGen.resolveSelect(count, {
734
- "=1": `Mikrosekunde`,
735
- "other": `Mikrosekunden`
736
- });
737
- },
738
- "time.millisecond": ({ count }) => {
739
- return import_internationalization.TranslationGen.resolveSelect(count, {
740
- "=1": `Millisekunde`,
741
- "other": `Millisekunden`
742
- });
743
- },
744
- "time.minute": ({ count }) => {
745
- return import_internationalization.TranslationGen.resolveSelect(count, {
746
- "=1": `Minute`,
747
- "other": `Minuten`
748
- });
749
- },
750
- "time.month": ({ count }) => {
751
- return import_internationalization.TranslationGen.resolveSelect(count, {
752
- "=1": `Monat`,
753
- "other": `Monate`
754
- });
755
- },
756
- "time.monthName": ({ month }) => {
757
- return import_internationalization.TranslationGen.resolveSelect(month, {
758
- "january": `Januar`,
759
- "february": `Februar`,
760
- "march": `M\xE4rz`,
761
- "april": `April`,
762
- "may": `Mai`,
763
- "june": `Juni`,
764
- "july": `Juli`,
765
- "august": `August`,
766
- "september": `September`,
767
- "october": `Oktober`,
768
- "november": `November`,
769
- "december": `Dezember`,
770
- "other": `Unbekannter Monat`
771
- });
772
- },
773
- "time.nanosecond": ({ count }) => {
774
- return import_internationalization.TranslationGen.resolveSelect(count, {
775
- "=1": `Nanosekunde`,
776
- "other": `Nanosekunden`
777
- });
778
- },
779
- "time.november": `November`,
780
- "time.october": `October`,
781
- "time.second": ({ count }) => {
782
- return import_internationalization.TranslationGen.resolveSelect(count, {
783
- "=1": `Sekunde`,
784
- "other": `Sekunden`
785
- });
786
- },
787
- "time.september": `September`,
788
- "time.today": `Heute`,
789
- "time.tomorrow": `Morgen`,
790
- "time.year": ({ count }) => {
791
- return import_internationalization.TranslationGen.resolveSelect(count, {
792
- "=1": `Jahr`,
793
- "other": `Jahre`
794
- });
795
- },
796
- "time.yesterday": `Gestern`,
797
- "tooFewSelectionItems": ({ min }) => {
798
- return `Es m\xFCssen mindestens ${min} Elemente ausgew\xE4hlt werden.`;
799
- },
800
- "tooLong": ({ max }) => {
801
- return `Der Wert darf h\xF6chstens ${max} Zeichen enthalten.`;
802
- },
803
- "tooManySelectionItems": ({ max }) => {
804
- return `Es m\xFCssen maximal ${max} Elemente ausgew\xE4hlt werden.`;
805
- },
806
- "tooShort": ({ min }) => {
807
- return `Der Wert muss mindestens ${min} Zeichen enthalten.`;
808
- },
809
- "unsavedChanges": `Ungespeicherte \xC4nderungen`,
810
- "unsavedChangesSaveQuestion": `M\xF6chtest du die \xC4nderungen speichern?`,
811
- "update": `Update`,
812
- "value": `Wert`,
813
- "welcome": `Willkommen`,
814
- "yes": `Ja`
815
- },
816
- "en-US": {
817
- "add": `Add`,
818
- "age": `Age`,
819
- "all": `All`,
820
- "apply": `Apply`,
821
- "back": `Back`,
822
- "cancel": `Cancel`,
823
- "carousel": `Carousel`,
824
- "change": `Change`,
825
- "chooseLanguage": `Choose your language`,
826
- "chooseSlide": `Choose slide to display`,
827
- "chooseTheme": `Choose your preferred color theme.`,
828
- "clear": `Clear`,
829
- "click": `Click`,
830
- "clickToCopy": `Click to Copy`,
831
- "clickToSelect": `Click to select`,
832
- "close": `Close`,
833
- "confirm": `Confirm`,
834
- "copied": `Copied`,
835
- "copy": `Copy`,
836
- "create": `Create`,
837
- "decline": `Decline`,
838
- "delete": `Delete`,
839
- "discard": `Discard`,
840
- "discardChanges": `Discard Changes`,
841
- "done": `Done`,
842
- "edit": `Edit`,
843
- "endDate": `End`,
844
- "enterText": `Enter text here`,
845
- "entryDate": `Entry Date`,
846
- "error": `Error`,
847
- "errorOccurred": `An error occurred`,
848
- "exit": `Exit`,
849
- "fieldRequiredError": `This field is required.`,
850
- "filter": `Filter`,
851
- "gender": ({ gender }) => {
852
- return import_internationalization.TranslationGen.resolveSelect(gender, {
853
- "male": `Male`,
854
- "female": `Female`,
855
- "other": `Other`
856
- });
857
- },
858
- "goodToSeeYou": `Good to see you`,
859
- "identifier": `Identifier`,
860
- "invalidEmail": `The email is not valid.`,
861
- "invalidEmailError": `Please enter a valid email address.`,
862
- "language": `Language`,
863
- "less": `Less`,
864
- "loading": `Loading`,
865
- "locale": `Locale`,
866
- "max": `Max`,
867
- "maxLengthError": `Maximum length exceeded.`,
868
- "min": `Min`,
869
- "minLengthError": `Minimum length not met.`,
870
- "more": `More`,
871
- "name": `Name`,
872
- "next": `Next`,
873
- "no": `No`,
874
- "none": `None`,
875
- "notEmpty": `The field cannot be empty.`,
876
- "nothingFound": `Nothing found`,
877
- "of": `of`,
878
- "optional": `Optional`,
879
- "outOfRangeNumber": ({ min, max }) => {
880
- return `The value must be between ${min} and ${max}.`;
881
- },
882
- "outOfRangeSelectionItems": ({ min, max }) => {
883
- return `Between ${min} and ${max} items must be selected.`;
884
- },
885
- "outOfRangeString": ({ min, max }) => {
886
- return `The value needs to have between ${min} and ${max} characters.`;
887
- },
888
- "pleaseWait": `Please wait...`,
889
- "previous": `Previous`,
890
- "remove": `Remove`,
891
- "required": `Required`,
892
- "reset": `Reset`,
893
- "save": `Save`,
894
- "saved": `Saved`,
895
- "search": `Search`,
896
- "select": `Select`,
897
- "selectOption": `Select an option`,
898
- "show": `Show`,
899
- "showLess": `Show less`,
900
- "showMore": `Show more`,
901
- "showSlide": ({ index }) => {
902
- return `Show Slide ${index}`;
903
- },
904
- "slide": `Slide`,
905
- "slideNavigation": `Slide navigation`,
906
- "slideOf": ({ index, length }) => {
907
- return `Slide ${index} of ${length} slides`;
908
- },
909
- "startDate": `Start`,
910
- "street": `Street`,
911
- "submit": `Submit`,
912
- "success": `Success`,
913
- "text": `Text`,
914
- "themeMode": ({ theme }) => {
915
- return import_internationalization.TranslationGen.resolveSelect(theme, {
916
- "dark": `Dark`,
917
- "light": `Light`,
918
- "system": `System`
919
- });
920
- },
921
- "themes": ({ count }) => {
922
- return import_internationalization.TranslationGen.resolveSelect(count, {
923
- "=1": `Theme`,
924
- "other": `Themes`
925
- });
926
- },
927
- "time.ago": `ago`,
928
- "time.agoDays": ({ days }) => {
929
- return `days ${days} ago`;
930
- },
931
- "time.april": `April`,
932
- "time.august": `August`,
933
- "time.century": ({ count }) => {
934
- return import_internationalization.TranslationGen.resolveSelect(count, {
935
- "=1": `Century`,
936
- "other": `Centuries`
937
- });
938
- },
939
- "time.day": ({ count }) => {
940
- return import_internationalization.TranslationGen.resolveSelect(count, {
941
- "=1": `Day`,
942
- "other": `Days`
943
- });
944
- },
945
- "time.decade": ({ count }) => {
946
- return import_internationalization.TranslationGen.resolveSelect(count, {
947
- "=1": `Decade`,
948
- "other": `Decades`
949
- });
950
- },
951
- "time.december": `December`,
952
- "time.february": `Febuary`,
953
- "time.hour": ({ count }) => {
954
- return import_internationalization.TranslationGen.resolveSelect(count, {
955
- "=1": `Hour`,
956
- "other": `Hours`
957
- });
958
- },
959
- "time.in": `in`,
960
- "time.inDays": ({ days }) => {
961
- return `in ${days} days`;
962
- },
963
- "time.january": `January`,
964
- "time.july": `July`,
965
- "time.june": `June`,
966
- "time.march": `March`,
967
- "time.may": `May`,
968
- "time.microsecond": ({ count }) => {
969
- return import_internationalization.TranslationGen.resolveSelect(count, {
970
- "=1": `Microsecond`,
971
- "other": `Microseconds`
972
- });
973
- },
974
- "time.millisecond": ({ count }) => {
975
- return import_internationalization.TranslationGen.resolveSelect(count, {
976
- "=1": `Millisecond`,
977
- "other": `Milliseconds`
978
- });
979
- },
980
- "time.minute": ({ count }) => {
981
- return import_internationalization.TranslationGen.resolveSelect(count, {
982
- "=1": `Minute`,
983
- "other": `Minutes`
984
- });
985
- },
986
- "time.month": ({ count }) => {
987
- return import_internationalization.TranslationGen.resolveSelect(count, {
988
- "=1": `Month`,
989
- "other": `Months`
990
- });
991
- },
992
- "time.monthName": ({ month }) => {
993
- return import_internationalization.TranslationGen.resolveSelect(month, {
994
- "january": `January`,
995
- "february": `February`,
996
- "march": `March`,
997
- "april": `April`,
998
- "may": `May`,
999
- "june": `June`,
1000
- "july": `July`,
1001
- "august": `August`,
1002
- "september": `September`,
1003
- "october": `October`,
1004
- "november": `November`,
1005
- "december": `December`,
1006
- "other": `Unknown Month`
1007
- });
1008
- },
1009
- "time.nanosecond": ({ count }) => {
1010
- return import_internationalization.TranslationGen.resolveSelect(count, {
1011
- "=1": `Nanosecond`,
1012
- "other": `Nanoseconds`
1013
- });
1014
- },
1015
- "time.november": `November`,
1016
- "time.october": `October`,
1017
- "time.second": ({ count }) => {
1018
- return import_internationalization.TranslationGen.resolveSelect(count, {
1019
- "=1": `Second`,
1020
- "other": `Seconds`
1021
- });
1022
- },
1023
- "time.september": `September`,
1024
- "time.today": `Today`,
1025
- "time.tomorrow": `Tomorrow`,
1026
- "time.year": ({ count }) => {
1027
- return import_internationalization.TranslationGen.resolveSelect(count, {
1028
- "=1": `Year`,
1029
- "other": `Years`
1030
- });
1031
- },
1032
- "time.yesterday": `Yesterday`,
1033
- "tooFewSelectionItems": ({ min }) => {
1034
- return `Select at least ${min} items.`;
1035
- },
1036
- "tooLong": ({ max }) => {
1037
- return `The value requires less than ${max} characters.`;
1038
- },
1039
- "tooManySelectionItems": ({ max }) => {
1040
- return `Select at most ${max} items.`;
1041
- },
1042
- "tooShort": ({ min }) => {
1043
- return `The value requires at least ${min} characters.`;
1044
- },
1045
- "unsavedChanges": `Unsaved Changes`,
1046
- "unsavedChangesSaveQuestion": `Do you want to save your changes?`,
1047
- "update": `Update`,
1048
- "value": `Value`,
1049
- "welcome": `Welcome`,
1050
- "yes": `Yes`
1051
- }
1052
- };
1053
-
1054
- // src/i18n/util.ts
1055
- var localsNames = {
1056
- "en-US": "English (US)",
1057
- "de-DE": "Deutsch"
1058
- };
1059
- var DEFAULT_LOCALE = "en-US";
1060
- function localeToLanguage(locale) {
1061
- return locale.split("-")[0];
1062
- }
1063
- var LocalizationUtil = {
1064
- locals: hightideTranslationLocales,
1065
- localToLanguage: localeToLanguage,
1066
- DEFAULT_LOCALE,
1067
- languagesLocalNames: localsNames
1068
- };
1069
-
1070
- // src/i18n/LocaleProvider.tsx
1071
- var import_jsx_runtime3 = require("react/jsx-runtime");
1072
- var LocaleContext = (0, import_react5.createContext)({
1073
- locale: LocalizationUtil.DEFAULT_LOCALE,
1074
- setLocale: (v) => v
1075
- });
1076
- var useLocale = () => {
1077
- const context = (0, import_react5.useContext)(LocaleContext);
1078
- if (!context) {
1079
- throw new Error("useLocale must be used within LocaleContext. Try adding a LocaleProvider around your app.");
1080
- }
1081
- return context;
1082
- };
1083
-
1084
- // src/components/date/DayPicker.tsx
1085
- var import_react6 = require("react");
1086
- var import_jsx_runtime4 = require("react/jsx-runtime");
1087
- var DayPicker = ({
1088
- displayedMonth,
1089
- selected,
1090
- start,
1091
- end,
1092
- onChange,
1093
- weekStart = "monday",
1094
- markToday = true,
1095
- className = ""
1096
- }) => {
1097
- const { locale } = useLocale();
1098
- const month = displayedMonth.getMonth();
1099
- const weeks = getWeeksForCalenderMonth(displayedMonth, weekStart);
1100
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: (0, import_clsx3.default)("flex-col-1 min-w-[220px] select-none", className), children: [
1101
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "flex-row-2 text-center", children: weeks[0].map((weekDay, index) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "flex-1 font-semibold", children: new Intl.DateTimeFormat(locale, { weekday: "long" }).format(weekDay).substring(0, 2) }, index)) }),
1102
- weeks.map((week, index) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "flex-row-2 text-center", children: week.map((date) => {
1103
- const isSelected = !!selected && equalDate(selected, date);
1104
- const isToday = equalDate(/* @__PURE__ */ new Date(), date);
1105
- const isSameMonth = date.getMonth() === month;
1106
- const isDayValid = isInTimeSpan(date, start, end);
1107
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
1108
- "button",
1109
- {
1110
- disabled: !isDayValid,
1111
- className: (0, import_clsx3.default)(
1112
- "flex-1 rounded-full border-2",
1113
- {
1114
- "text-description": !isSameMonth && !isSelected && isDayValid,
1115
- "text-button-solid-neutral-text bg-button-solid-neutral-background": !isSelected && isSameMonth && isDayValid,
1116
- "text-button-solid-primary-text bg-button-solid-primary-background": isSelected && isDayValid,
1117
- "hover:brightness-90 hover:bg-button-solid-primary-background hover:text-button-solid-primary-text": isDayValid,
1118
- "text-disabled bg-disabled-background cursor-not-allowed": !isDayValid,
1119
- "border-secondary": isToday && markToday,
1120
- "border-transparent": !isToday || !markToday
1121
- }
1122
- ),
1123
- onClick: () => onChange?.(date),
1124
- children: date.getDate()
1125
- },
1126
- date.getDate()
1127
- );
1128
- }) }, index))
1129
- ] });
1130
- };
1131
-
1132
- // src/components/date/YearMonthPicker.tsx
1133
- var import_react8 = require("react");
1134
- var import_react_custom_scrollbars_22 = require("react-custom-scrollbars-2");
1135
- var import_clsx5 = __toESM(require("clsx"), 1);
1136
-
1137
- // src/components/layout/Expandable.tsx
1138
- var import_react7 = require("react");
1139
- var import_lucide_react = require("lucide-react");
1140
- var import_clsx4 = __toESM(require("clsx"), 1);
1141
- var import_jsx_runtime5 = require("react/jsx-runtime");
1142
- var ExpansionIcon = ({ isExpanded, className }) => {
1143
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1144
- import_lucide_react.ChevronDown,
1145
- {
1146
- "aria-hidden": true,
1147
- className: (0, import_clsx4.default)(
1148
- "min-w-6 w-6 min-h-6 h-6 transition-transform motion-safe:duration-200 motion-reduce:duration-0 ease-in-out",
1149
- { "rotate-180": isExpanded },
1150
- className
1151
- )
1152
- }
1153
- );
1154
- };
1155
- var Expandable = (0, import_react7.forwardRef)(function Expandable2({
1156
- children,
1157
- id: providedId,
1158
- label,
1159
- icon,
1160
- isExpanded = false,
1161
- onChange,
1162
- clickOnlyOnHeader = true,
1163
- disabled = false,
1164
- className,
1165
- headerClassName,
1166
- contentClassName,
1167
- contentExpandedClassName
1168
- }, ref) {
1169
- const defaultIcon = (0, import_react7.useCallback)((expanded) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(ExpansionIcon, { isExpanded: expanded }), []);
1170
- icon ??= defaultIcon;
1171
- const generatedId = (0, import_react7.useId)();
1172
- const id = providedId ?? generatedId;
1173
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
1174
- "div",
1175
- {
1176
- ref,
1177
- onClick: () => !clickOnlyOnHeader && !disabled && onChange?.(!isExpanded),
1178
- className: (0, import_clsx4.default)(
1179
- "flex-col-0 bg-surface text-on-surface group rounded-lg shadow-sm",
1180
- { "cursor-pointer": !clickOnlyOnHeader && !disabled },
1181
- className
1182
- ),
1183
- children: [
1184
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
1185
- "button",
1186
- {
1187
- onClick: () => clickOnlyOnHeader && !disabled && onChange?.(!isExpanded),
1188
- className: (0, import_clsx4.default)(
1189
- "flex-row-2 py-2 px-4 rounded-lg justify-between items-center bg-surface text-on-surface select-none",
1190
- {
1191
- "group-hover:brightness-97": !isExpanded,
1192
- "hover:brightness-97": isExpanded && !disabled,
1193
- "cursor-pointer": clickOnlyOnHeader && !disabled
1194
- },
1195
- headerClassName
1196
- ),
1197
- "aria-expanded": isExpanded,
1198
- "aria-controls": `${id}-content`,
1199
- "aria-disabled": disabled ?? void 0,
1200
- children: [
1201
- label,
1202
- icon(isExpanded)
1203
- ]
1204
- }
1205
- ),
1206
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1207
- "div",
1208
- {
1209
- id: `${id}-content`,
1210
- className: (0, import_clsx4.default)(
1211
- "flex-col-2 px-4 transition-all duration-300 ease-in-out",
1212
- {
1213
- [(0, import_clsx4.default)("max-h-96 opacity-100 pb-2 overflow-y-auto", contentExpandedClassName)]: isExpanded,
1214
- "max-h-0 opacity-0 overflow-hidden": !isExpanded
1215
- },
1216
- contentClassName
1217
- ),
1218
- role: "region",
1219
- children
1220
- }
1221
- )
1222
- ]
1223
- }
1224
- );
1225
- });
1226
- var ExpandableUncontrolled = (0, import_react7.forwardRef)(function ExpandableUncontrolled2({
1227
- isExpanded,
1228
- onChange,
1229
- ...props
1230
- }, ref) {
1231
- const [usedIsExpanded, setUsedIsExpanded] = useOverwritableState(isExpanded, onChange);
1232
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1233
- Expandable,
1234
- {
1235
- ...props,
1236
- ref,
1237
- isExpanded: usedIsExpanded,
1238
- onChange: setUsedIsExpanded
1239
- }
1240
- );
1241
- });
1242
-
1243
- // src/components/date/YearMonthPicker.tsx
1244
- var import_jsx_runtime6 = require("react/jsx-runtime");
1245
- var YearMonthPicker = ({
1246
- displayedYearMonth = /* @__PURE__ */ new Date(),
1247
- start = subtractDuration(/* @__PURE__ */ new Date(), { years: 50 }),
1248
- end = addDuration(/* @__PURE__ */ new Date(), { years: 50 }),
1249
- onChange,
1250
- className = "",
1251
- maxHeight = 300,
1252
- showValueOpen = true
1253
- }) => {
1254
- const { locale } = useLocale();
1255
- const ref = (0, import_react8.useRef)(null);
1256
- (0, import_react8.useEffect)(() => {
1257
- const scrollToItem = () => {
1258
- if (ref.current) {
1259
- ref.current.scrollIntoView({
1260
- behavior: "instant",
1261
- block: "center"
1262
- });
1263
- }
1264
- };
1265
- scrollToItem();
1266
- }, [ref]);
1267
- if (end < start) {
1268
- console.error(`startYear: (${start}) less than endYear: (${end})`);
1269
- return null;
1270
- }
1271
- const years = range([start.getFullYear(), end.getFullYear()], { exclusiveEnd: false });
1272
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: (0, import_clsx5.default)("flex-col-0 select-none", className), children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_react_custom_scrollbars_22.Scrollbars, { autoHeight: true, autoHeightMax: maxHeight, style: { height: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "flex-col-1 mr-3", children: years.map((year) => {
1273
- const selectedYear = displayedYearMonth.getFullYear() === year;
1274
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1275
- ExpandableUncontrolled,
1276
- {
1277
- ref: (displayedYearMonth.getFullYear() ?? (/* @__PURE__ */ new Date()).getFullYear()) === year ? ref : void 0,
1278
- label: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: (0, import_clsx5.default)({ "text-primary font-bold": selectedYear }), children: year }),
1279
- isExpanded: showValueOpen && selectedYear,
1280
- contentClassName: "gap-y-1",
1281
- children: equalSizeGroups([...monthsList], 3).map((monthList, index) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "flex-row-1", children: monthList.map((month) => {
1282
- const monthIndex = monthsList.indexOf(month);
1283
- const newDate = new Date(year, monthIndex);
1284
- const selectedMonth = selectedYear && monthIndex === displayedYearMonth.getMonth();
1285
- const firstOfMonth = new Date(year, monthIndex, 1);
1286
- const lastOfMonth = new Date(year, monthIndex, 1);
1287
- const isAfterStart = start === void 0 || start <= addDuration(subtractDuration(lastOfMonth, { days: 1 }), { months: 1 });
1288
- const isBeforeEnd = end === void 0 || firstOfMonth <= end;
1289
- const isValid = isAfterStart && isBeforeEnd;
1290
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1291
- SolidButton,
1292
- {
1293
- disabled: !isValid,
1294
- color: selectedMonth && isValid ? "primary" : "neutral",
1295
- className: "flex-1",
1296
- size: "small",
1297
- onClick: () => {
1298
- onChange?.(newDate);
1299
- },
1300
- children: new Intl.DateTimeFormat(locale, { month: "short" }).format(newDate)
1301
- },
1302
- month
1303
- );
1304
- }) }, index))
1305
- },
1306
- year
1307
- );
1308
- }) }) }) });
1309
- };
1310
-
1311
- // src/i18n/useHightideTranslation.ts
1312
- var import_internationalization2 = require("@helpwave/internationalization");
1313
- function useHightideTranslation(extensions, overwrites) {
1314
- const { locale: inferredLocale } = useLocale();
1315
- const locale = overwrites?.locale ?? inferredLocale;
1316
- const translationExtensions = ArrayUtil.resolveSingleOrArray(extensions);
1317
- return (0, import_internationalization2.combineTranslation)([
1318
- ...translationExtensions,
1319
- hightideTranslation
1320
- ], locale);
1321
- }
1322
-
1323
- // src/components/date/DatePicker.tsx
1324
- var import_jsx_runtime7 = require("react/jsx-runtime");
1325
- var DatePicker = ({
1326
- value = /* @__PURE__ */ new Date(),
1327
- start = subtractDuration(/* @__PURE__ */ new Date(), { years: 50 }),
1328
- end = addDuration(/* @__PURE__ */ new Date(), { years: 50 }),
1329
- initialDisplay = "day",
1330
- onChange,
1331
- yearMonthPickerProps,
1332
- dayPickerProps,
1333
- className = ""
1334
- }) => {
1335
- const { locale } = useLocale();
1336
- const translation = useHightideTranslation();
1337
- const [displayedMonth, setDisplayedMonth] = (0, import_react9.useState)(value);
1338
- const [displayMode, setDisplayMode] = (0, import_react9.useState)(initialDisplay);
1339
- (0, import_react9.useEffect)(() => {
1340
- setDisplayedMonth(value);
1341
- }, [value]);
1342
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: (0, import_clsx6.default)("flex-col-4", className), children: [
1343
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex-row-2 items-center justify-between h-7", children: [
1344
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
1345
- TextButton,
1346
- {
1347
- className: (0, import_clsx6.default)("flex-row-1 items-center cursor-pointer select-none", {
1348
- "text-disabled": displayMode !== "day"
1349
- }),
1350
- onClick: () => setDisplayMode(displayMode === "day" ? "yearMonth" : "day"),
1351
- children: [
1352
- `${new Intl.DateTimeFormat(LocalizationUtil.localToLanguage(locale), { month: "long" }).format(displayedMonth)} ${displayedMonth.getFullYear()}`,
1353
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_lucide_react2.ChevronDown, { size: 16 })
1354
- ]
1355
- }
1356
- ),
1357
- displayMode === "day" && /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex-row-2 justify-end", children: [
1358
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1359
- SolidButton,
1360
- {
1361
- size: "small",
1362
- color: "primary",
1363
- disabled: !isInTimeSpan(subtractDuration(displayedMonth, { months: 1 }), start, end),
1364
- onClick: () => {
1365
- setDisplayedMonth(subtractDuration(displayedMonth, { months: 1 }));
1366
- },
1367
- children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_lucide_react2.ArrowUp, { size: 20 })
1368
- }
1369
- ),
1370
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1371
- SolidButton,
1372
- {
1373
- size: "small",
1374
- color: "primary",
1375
- disabled: !isInTimeSpan(addDuration(displayedMonth, { months: 1 }), start, end),
1376
- onClick: () => {
1377
- setDisplayedMonth(addDuration(displayedMonth, { months: 1 }));
1378
- },
1379
- children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_lucide_react2.ArrowDown, { size: 20 })
1380
- }
1381
- )
1382
- ] })
1383
- ] }),
1384
- displayMode === "yearMonth" ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1385
- YearMonthPicker,
1386
- {
1387
- ...yearMonthPickerProps,
1388
- displayedYearMonth: value,
1389
- start,
1390
- end,
1391
- onChange: (newDate) => {
1392
- setDisplayedMonth(newDate);
1393
- setDisplayMode("day");
1394
- }
1395
- }
1396
- ) : /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { children: [
1397
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1398
- DayPicker,
1399
- {
1400
- ...dayPickerProps,
1401
- displayedMonth,
1402
- start,
1403
- end,
1404
- selected: value,
1405
- onChange: (date) => {
1406
- onChange?.(date);
1407
- }
1408
- }
1409
- ),
1410
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "mt-2", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1411
- TextButton,
1412
- {
1413
- color: "primary",
1414
- onClick: () => {
1415
- const newDate = /* @__PURE__ */ new Date();
1416
- newDate.setHours(value.getHours(), value.getMinutes());
1417
- onChange(newDate);
1418
- },
1419
- children: translation("time.today")
1420
- }
1421
- ) })
1422
- ] })
1423
- ] });
1424
- };
1425
-
1426
- // src/components/user-action/DateAndTimePicker.tsx
1427
- var import_jsx_runtime8 = require("react/jsx-runtime");
1428
- var DateTimePicker = ({
1429
- value = /* @__PURE__ */ new Date(),
1430
- start = subtractDuration(/* @__PURE__ */ new Date(), { years: 50 }),
1431
- end = addDuration(/* @__PURE__ */ new Date(), { years: 50 }),
1432
- mode = "dateTime",
1433
- onFinish,
1434
- onChange,
1435
- onRemove,
1436
- timePickerProps,
1437
- datePickerProps
1438
- }) => {
1439
- const translation = useHightideTranslation();
1440
- const useDate = mode === "dateTime" || mode === "date";
1441
- const useTime = mode === "dateTime" || mode === "time";
1442
- let dateDisplay;
1443
- let timeDisplay;
1444
- if (useDate) {
1445
- dateDisplay = /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1446
- DatePicker,
1447
- {
1448
- ...datePickerProps,
1449
- className: "min-w-[320px] min-h-[250px]",
1450
- yearMonthPickerProps: { maxHeight: 218 },
1451
- value,
1452
- start,
1453
- end,
1454
- onChange
1455
- }
1456
- );
1457
- }
1458
- if (useTime) {
1459
- timeDisplay = /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1460
- TimePicker,
1461
- {
1462
- ...timePickerProps,
1463
- className: (0, import_clsx7.default)("h-full", { "justify-between w-full": mode === "time" }),
1464
- maxHeight: 250,
1465
- time: value,
1466
- onChange
1467
- }
1468
- );
1469
- }
1470
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex-col-2 w-fit", children: [
1471
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex-row-4", children: [
1472
- dateDisplay,
1473
- timeDisplay
1474
- ] }),
1475
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "flex-row-2 justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex-row-2 mt-1", children: [
1476
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(SolidButton, { size: "medium", color: "negative", onClick: onRemove, children: translation("clear") }),
1477
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1478
- SolidButton,
1479
- {
1480
- size: "medium",
1481
- onClick: () => onFinish?.(value),
1482
- children: translation("change")
1483
- }
1484
- )
1485
- ] }) })
1486
- ] });
1487
- };
1488
- // Annotate the CommonJS export names for ESM import in node:
1489
- 0 && (module.exports = {
1490
- DateTimePicker
1491
- });
1492
- //# sourceMappingURL=DateAndTimePicker.cjs.map