@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
package/dist/index.d.cts DELETED
@@ -1,113 +0,0 @@
1
- export { generateShadingColors } from './coloring/shading.cjs';
2
- export { ColorMode, ColorShadingValue, Coloring, ColoringStyle, ShadedColors, shadingColorValues } from './coloring/types.cjs';
3
- export { HelpwaveBadge, HelpwaveBadgeProps } from './components/branding/HelpwaveBadge.cjs';
4
- export { DatePicker, DatePickerProps, DatePickerUncontrolled } from './components/date/DatePicker.cjs';
5
- export { DayPicker, DayPickerProps, DayPickerUncontrolled } from './components/date/DayPicker.cjs';
6
- export { TimeDisplay } from './components/date/TimeDisplay.cjs';
7
- export { TimePicker, TimePickerProps, TimePickerUncontrolled } from './components/date/TimePicker.cjs';
8
- export { YearMonthPicker, YearMonthPickerProps, YearMonthPickerUncontrolled } from './components/date/YearMonthPicker.cjs';
9
- export { ConfirmDialog, ConfirmDialogProps, ConfirmDialogType } from './components/dialog/ConfirmDialog.cjs';
10
- export { Dialog, DialogPosition, DialogProps } from './components/dialog/Dialog.cjs';
11
- export { DiscardChangesDialog } from './components/dialog/DiscardChangesDialog.cjs';
12
- export { InputDialog, InputModalProps } from './components/dialog/InputDialog.cjs';
13
- export { LanguageDialog } from './components/dialog/LanguageDialog.cjs';
14
- export { ThemeDialog } from './components/dialog/ThemeDialog.cjs';
15
- export { FormElementStateProperties, FormElementWrapper, FormElementWrapperProps } from './components/form/FormElementWrapper.cjs';
16
- export { Avatar, AvatarGroup, AvatarGroupProps, AvatarProps, AvatarSize, AvatarUtil } from './components/icons-and-geometry/Avatar.cjs';
17
- export { Circle, CircleProps } from './components/icons-and-geometry/Circle.cjs';
18
- export { HelpwaveLogo, HelpwaveProps } from './components/icons-and-geometry/HelpwaveLogo.cjs';
19
- export { AnimatedRing, AnimatedRingProps, RadialRings, RadialRingsProps, Ring, RingProps, RingWave, RingWaveProps } from './components/icons-and-geometry/Ring.cjs';
20
- export { TagIcon, TagProps } from './components/icons-and-geometry/Tag.cjs';
21
- export { Carousel, CarouselProps, CarouselSlide, CarouselSlideProps } from './components/layout/Carousel.cjs';
22
- export { Chip, ChipColor, ChipList, ChipListProps, ChipProps, ChipUtil } from './components/layout/Chip.cjs';
23
- export { DividerInserter, DividerInserterProps } from './components/layout/DividerInserter.cjs';
24
- export { Expandable, ExpandableProps, ExpandableUncontrolled, ExpansionIcon, ExpansionIconProps } from './components/layout/Expandable.cjs';
25
- export { FAQItem, FAQSection, FAQSectionProps } from './components/layout/FAQSection.cjs';
26
- export { FloatingContainer, FloatingContainerProps } from './components/layout/FloatingContainer.cjs';
27
- export { ListBox, ListBoxItem, ListBoxItemProps, ListBoxMultiple, ListBoxMultipleProps, ListBoxMultipleUncontrolled, ListBoxMultipleUncontrolledProps, ListBoxPrimitive, ListBoxPrimitiveProps, ListBoxProps, ListBoxUncontrolled, ListBoxUncontrolledProps } from './components/layout/ListBox.cjs';
28
- export { ASTNodeInterpreter, ASTNodeInterpreterProps, MarkdownInterpreter, MarkdownInterpreterProps } from './components/layout/MarkdownInterpreter.cjs';
29
- export { ScrollArea, ScrollAreaProps, ScrollBarAxis, ScrollBarSize, ScrollBarType } from './components/layout/ScrollArea.cjs';
30
- export { TextImage, TextImageProps } from './components/layout/TextImage.cjs';
31
- export { VerticalDivider, VerticalDividerProps } from './components/layout/VerticalDivider.cjs';
32
- export { ErrorComponent, ErrorComponentProps } from './components/loading-states/ErrorComponent.cjs';
33
- export { LoadingAndErrorComponent, LoadingAndErrorComponentProps } from './components/loading-states/LoadingAndErrorComponent.cjs';
34
- export { LoadingAnimation, LoadingAnimationProps } from './components/loading-states/LoadingAnimation.cjs';
35
- export { LoadingButton } from './components/loading-states/LoadingButton.cjs';
36
- export { LoadingComponentProps, LoadingContainer } from './components/loading-states/LoadingContainer.cjs';
37
- export { ProgressIndicator, ProgressIndicatorProps } from './components/loading-states/ProgressIndicator.cjs';
38
- export { BreadCrumb, Crumb } from './components/navigation/BreadCrumb.cjs';
39
- export { Navigation, NavigationItemList, NavigationItemListProps, NavigationItemType, NavigationProps } from './components/navigation/Navigation.cjs';
40
- export { Pagination, PaginationProps } from './components/navigation/Pagination.cjs';
41
- export { StepperBar, StepperBarProps, StepperBarUncontrolled, StepperState } from './components/navigation/StepperBar.cjs';
42
- export { CheckboxProperty, CheckboxPropertyProps } from './components/properties/CheckboxProperty.cjs';
43
- export { DateProperty, DatePropertyProps } from './components/properties/DateProperty.cjs';
44
- export { MultiSelectProperty, MultiSelectPropertyProps } from './components/properties/MultiSelectProperty.cjs';
45
- export { NumberProperty, NumberPropertyProps } from './components/properties/NumberProperty.cjs';
46
- export { PropertyBase, PropertyBaseProps } from './components/properties/PropertyBase.cjs';
47
- export { SingleSelectProperty, SingleSelectPropertyProps } from './components/properties/SelectProperty.cjs';
48
- export { TextProperty, TextPropertyProps } from './components/properties/TextProperty.cjs';
49
- export { FillerRowElement, FillerRowElementProps } from './components/table/FillerRowElement.cjs';
50
- export { TableFilters } from './components/table/Filter.cjs';
51
- export { Table, TableProps, TableUncontrolled, TableUncontrolledProps, TableWithSelection, TableWithSelectionProps } from './components/table/Table.cjs';
52
- export { TableCell, TableCellProps } from './components/table/TableCell.cjs';
53
- export { TableFilterButton, TableFilterButtonProps, TableFilterType } from './components/table/TableFilterButton.cjs';
54
- export { TableSortButton, TableSortButtonProps } from './components/table/TableSortButton.cjs';
55
- export { ButtonColorUtil, ButtonProps, ButtonUtil, IconButton, IconButtonColor, IconButtonProps, IconButtonUtil, OutlineButton, OutlineButtonColor, OutlineButtonProps, SolidButton, SolidButtonColor, SolidButtonProps, TextButton, TextButtonColor, TextButtonProps } from './components/user-action/Button.cjs';
56
- export { Checkbox, CheckboxProps, CheckboxUncontrolled, CheckboxUncontrolledProps } from './components/user-action/Checkbox.cjs';
57
- export { CopyToClipboardWrapper, CopyToClipboardWrapperProps } from './components/user-action/CopyToClipboardWrapper.cjs';
58
- export { DateTimePicker, DateTimePickerMode, DateTimePickerProps } from './components/user-action/DateAndTimePicker.cjs';
59
- export { Label, LabelProps, LabelType } from './components/user-action/Label.cjs';
60
- export { Menu, MenuBag, MenuItem, MenuItemProps, MenuProps } from './components/user-action/Menu.cjs';
61
- export { ScrollPicker, ScrollPickerProps } from './components/user-action/ScrollPicker.cjs';
62
- export { SearchBar, SearchBarProps } from './components/user-action/SearchBar.cjs';
63
- export { Textarea, TextareaProps, TextareaUncontrolled, TextareaWithHeadline, TextareaWithHeadlineProps } from './components/user-action/Textarea.cjs';
64
- export { Tooltip, TooltipProps } from './components/user-action/Tooltip.cjs';
65
- export { EditCompleteOptions, EditCompleteOptionsResolved, Input, InputProps, InputUncontrolled } from './components/user-action/input/Input.cjs';
66
- export { InsideLabelInput, InsideLabelInputUncontrolled } from './components/user-action/input/InsideLabelInput.cjs';
67
- export { ToggleableInput, ToggleableInputUncontrolled } from './components/user-action/input/ToggleableInput.cjs';
68
- export { MultiSelect, MultiSelectChipDisplay, MultiSelectChipDisplayProps, MultiSelectChipDisplayUncontrolled, MultiSelectChipDisplayUncontrolledProps, MultiSelectProps, MultiSelectUncontrolled, MultiSelectUncontrolledProps, Select, SelectButton, SelectChipDisplay, SelectContent, SelectContentProps, SelectOption, SelectOptionProps, SelectProps, SelectRoot, SelectRootProps, SelectUncontrolled, SelectUncontrolledProps } from './components/user-action/select/Select.cjs';
69
- export { FocusTrap, FocusTrapProps } from './components/utils/FocusTrap.cjs';
70
- export { Transition, TransitionWrapperProps } from './components/utils/Transition.cjs';
71
- export { useFocusGuards } from './hooks/focus/useFocusGuards.cjs';
72
- export { useFocusManagement } from './hooks/focus/useFocusManagement.cjs';
73
- export { useFocusOnceVisible } from './hooks/focus/useFocusOnceVisible.cjs';
74
- export { UseFocusTrapProps, useFocusTrap } from './hooks/focus/useFocusTrap.cjs';
75
- export { useIsMounted } from './hooks/focus/useIsMounted.cjs';
76
- export { UseDelayOptions, UseDelayOptionsResolved, useDelay } from './hooks/useDelay.cjs';
77
- export { FloatingElementAlignment, UseFloatingElementOptions, UseFloatingElementProps, useFloatingElement } from './hooks/useFloatingElement.cjs';
78
- export { useHoverState } from './hooks/useHoverState.cjs';
79
- export { useLocalStorage } from './hooks/useLocalStorage.cjs';
80
- export { useLogOnce } from './hooks/useLogOnce.cjs';
81
- export { useOutsideClick } from './hooks/useOutsideClick.cjs';
82
- export { useOverwritableState } from './hooks/useOverwritableState.cjs';
83
- export { PopoverHorizontalAlignment, PopoverVerticalAlignment, usePopoverPosition } from './hooks/usePopoverPosition.cjs';
84
- export { useRerender } from './hooks/useRerender.cjs';
85
- export { useResizeCallbackWrapper } from './hooks/useResizeCallbackWrapper.cjs';
86
- export { UseSearchProps, useSearch } from './hooks/useSearch.cjs';
87
- export { UseValidators, ValidatorError, ValidatorResult, useTranslatedValidators } from './hooks/useValidators.cjs';
88
- export { LocaleContext, LocaleContextValue, LocaleProvider, useLanguage, useLocale } from './i18n/LocaleProvider.cjs';
89
- export { HightideTranslationEntries, HightideTranslationLocales, hightideTranslation, hightideTranslationLocales } from './i18n/translations.cjs';
90
- export { useHightideTranslation, useICUTranslation } from './i18n/useHightideTranslation.cjs';
91
- export { LocalizationUtil } from './i18n/util.cjs';
92
- export { ResolvedTheme, ThemeContext, ThemeProvider, ThemeType, ThemeUtil, useTheme } from './theming/useTheme.cjs';
93
- export { ArrayUtil, RangeOptions, closestMatch, createLoopingList, createLoopingListWithIndex, equalSizeGroups, getNeighbours, range } from './utils/array.cjs';
94
- export { BagFunction, BagFunctionOrNode, BagFunctionUtil, PropsWithBagFunction, PropsWithBagFunctionOrChildren } from './utils/bagFunctions.cjs';
95
- export { builder } from './utils/builder.cjs';
96
- export { Duration, Month, WeekDay, addDuration, changeDuration, equalDate, formatDate, formatDateTime, getBetweenDuration, getDaysInMonth, getWeeksForCalenderMonth, isInTimeSpan, monthsList, subtractDuration, weekDayList } from './utils/date.cjs';
97
- export { EaseFunction, EaseFunctions } from './utils/easeFunctions.cjs';
98
- export { validateEmail } from './utils/emailValidation.cjs';
99
- export { Direction, LoopingArrayCalculator } from './utils/loopingArray.cjs';
100
- export { match } from './utils/match.cjs';
101
- export { clamp } from './utils/math.cjs';
102
- export { noop } from './utils/noop.cjs';
103
- export { resolveSetState } from './utils/resolveSetState.cjs';
104
- export { MultiSearchWithMapping, MultiSubjectSearchWithMapping, SimpleSearch, SimpleSearchWithMapping } from './utils/simpleSearch.cjs';
105
- export { LocalStorageService, SessionStorageService } from './utils/storage.cjs';
106
- export { DeepPartial, Exact, SingleOrArray, SuperSet } from './utils/typing.cjs';
107
- export { writeToClipboard } from './utils/writeToClipboard.cjs';
108
- import 'react/jsx-runtime';
109
- import 'react';
110
- import '@radix-ui/react-scroll-area';
111
- import '@tanstack/react-table';
112
- import '@radix-ui/react-checkbox';
113
- import '@helpwave/internationalization';
@@ -1,61 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // src/storybook/helper.tsx
20
- var helper_exports = {};
21
- __export(helper_exports, {
22
- StorybookHelper: () => StorybookHelper
23
- });
24
- module.exports = __toCommonJS(helper_exports);
25
- var import_lucide_react = require("lucide-react");
26
- var import_jsx_runtime = require("react/jsx-runtime");
27
- var iconSelect = {
28
- control: "select",
29
- options: ["none", "icon"],
30
- mapping: {
31
- none: void 0,
32
- icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.PlusIcon, { size: 18 })
33
- }
34
- };
35
- var exampleSelectValues = [
36
- "Strawberry",
37
- "Apple",
38
- "Banana",
39
- "Blueberry",
40
- "Mango",
41
- "Pineapple",
42
- "Grapes",
43
- "Orange",
44
- "Peach",
45
- "Watermelon",
46
- "Kiwi",
47
- "Cherry",
48
- "Lemon",
49
- "Papaya",
50
- "Raspberry",
51
- "Blackberry"
52
- ];
53
- var StorybookHelper = {
54
- iconSelect,
55
- selectValues: exampleSelectValues
56
- };
57
- // Annotate the CommonJS export names for ESM import in node:
58
- 0 && (module.exports = {
59
- StorybookHelper
60
- });
61
- //# sourceMappingURL=helper.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/storybook/helper.tsx"],"sourcesContent":["import { PlusIcon } from 'lucide-react'\n\nconst iconSelect = {\n control: 'select',\n options: ['none', 'icon'],\n mapping: {\n none: undefined,\n icon: <PlusIcon size={18}/>,\n }\n} as const\n\nconst exampleSelectValues = [\n 'Strawberry',\n 'Apple',\n 'Banana',\n 'Blueberry',\n 'Mango',\n 'Pineapple',\n 'Grapes',\n 'Orange',\n 'Peach',\n 'Watermelon',\n 'Kiwi',\n 'Cherry',\n 'Lemon',\n 'Papaya',\n 'Raspberry',\n 'Blackberry'\n] as const\nexport type StorybookHelperSelectType = typeof exampleSelectValues[number]\n\nexport const StorybookHelper = {\n iconSelect,\n selectValues: exampleSelectValues,\n}"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAAyB;AAOf;AALV,IAAM,aAAa;AAAA,EACjB,SAAS;AAAA,EACT,SAAS,CAAC,QAAQ,MAAM;AAAA,EACxB,SAAS;AAAA,IACP,MAAM;AAAA,IACN,MAAM,4CAAC,gCAAS,MAAM,IAAG;AAAA,EAC3B;AACF;AAEA,IAAM,sBAAsB;AAAA,EAC1B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAGO,IAAM,kBAAkB;AAAA,EAC7B;AAAA,EACA,cAAc;AAChB;","names":[]}
@@ -1,17 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
-
3
- declare const exampleSelectValues: readonly ["Strawberry", "Apple", "Banana", "Blueberry", "Mango", "Pineapple", "Grapes", "Orange", "Peach", "Watermelon", "Kiwi", "Cherry", "Lemon", "Papaya", "Raspberry", "Blackberry"];
4
- type StorybookHelperSelectType = typeof exampleSelectValues[number];
5
- declare const StorybookHelper: {
6
- iconSelect: {
7
- readonly control: "select";
8
- readonly options: readonly ["none", "icon"];
9
- readonly mapping: {
10
- readonly none: any;
11
- readonly icon: react_jsx_runtime.JSX.Element;
12
- };
13
- };
14
- selectValues: readonly ["Strawberry", "Apple", "Banana", "Blueberry", "Mango", "Pineapple", "Grapes", "Orange", "Peach", "Watermelon", "Kiwi", "Cherry", "Lemon", "Papaya", "Raspberry", "Blackberry"];
15
- };
16
-
17
- export { StorybookHelper, type StorybookHelperSelectType };
@@ -1,17 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
-
3
- declare const exampleSelectValues: readonly ["Strawberry", "Apple", "Banana", "Blueberry", "Mango", "Pineapple", "Grapes", "Orange", "Peach", "Watermelon", "Kiwi", "Cherry", "Lemon", "Papaya", "Raspberry", "Blackberry"];
4
- type StorybookHelperSelectType = typeof exampleSelectValues[number];
5
- declare const StorybookHelper: {
6
- iconSelect: {
7
- readonly control: "select";
8
- readonly options: readonly ["none", "icon"];
9
- readonly mapping: {
10
- readonly none: any;
11
- readonly icon: react_jsx_runtime.JSX.Element;
12
- };
13
- };
14
- selectValues: readonly ["Strawberry", "Apple", "Banana", "Blueberry", "Mango", "Pineapple", "Grapes", "Orange", "Peach", "Watermelon", "Kiwi", "Cherry", "Lemon", "Papaya", "Raspberry", "Blackberry"];
15
- };
16
-
17
- export { StorybookHelper, type StorybookHelperSelectType };
@@ -1,37 +0,0 @@
1
- // src/storybook/helper.tsx
2
- import { PlusIcon } from "lucide-react";
3
- import { jsx } from "react/jsx-runtime";
4
- var iconSelect = {
5
- control: "select",
6
- options: ["none", "icon"],
7
- mapping: {
8
- none: void 0,
9
- icon: /* @__PURE__ */ jsx(PlusIcon, { size: 18 })
10
- }
11
- };
12
- var exampleSelectValues = [
13
- "Strawberry",
14
- "Apple",
15
- "Banana",
16
- "Blueberry",
17
- "Mango",
18
- "Pineapple",
19
- "Grapes",
20
- "Orange",
21
- "Peach",
22
- "Watermelon",
23
- "Kiwi",
24
- "Cherry",
25
- "Lemon",
26
- "Papaya",
27
- "Raspberry",
28
- "Blackberry"
29
- ];
30
- var StorybookHelper = {
31
- iconSelect,
32
- selectValues: exampleSelectValues
33
- };
34
- export {
35
- StorybookHelper
36
- };
37
- //# sourceMappingURL=helper.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/storybook/helper.tsx"],"sourcesContent":["import { PlusIcon } from 'lucide-react'\n\nconst iconSelect = {\n control: 'select',\n options: ['none', 'icon'],\n mapping: {\n none: undefined,\n icon: <PlusIcon size={18}/>,\n }\n} as const\n\nconst exampleSelectValues = [\n 'Strawberry',\n 'Apple',\n 'Banana',\n 'Blueberry',\n 'Mango',\n 'Pineapple',\n 'Grapes',\n 'Orange',\n 'Peach',\n 'Watermelon',\n 'Kiwi',\n 'Cherry',\n 'Lemon',\n 'Papaya',\n 'Raspberry',\n 'Blackberry'\n] as const\nexport type StorybookHelperSelectType = typeof exampleSelectValues[number]\n\nexport const StorybookHelper = {\n iconSelect,\n selectValues: exampleSelectValues,\n}"],"mappings":";AAAA,SAAS,gBAAgB;AAOf;AALV,IAAM,aAAa;AAAA,EACjB,SAAS;AAAA,EACT,SAAS,CAAC,QAAQ,MAAM;AAAA,EACxB,SAAS;AAAA,IACP,MAAM;AAAA,IACN,MAAM,oBAAC,YAAS,MAAM,IAAG;AAAA,EAC3B;AACF;AAEA,IAAM,sBAAsB;AAAA,EAC1B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAGO,IAAM,kBAAkB;AAAA,EAC7B;AAAA,EACA,cAAc;AAChB;","names":[]}
@@ -1,190 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // src/theming/index.ts
20
- var theming_exports = {};
21
- __export(theming_exports, {
22
- ThemeContext: () => ThemeContext,
23
- ThemeProvider: () => ThemeProvider,
24
- ThemeUtil: () => ThemeUtil,
25
- useTheme: () => useTheme
26
- });
27
- module.exports = __toCommonJS(theming_exports);
28
-
29
- // src/theming/useTheme.tsx
30
- var import_react2 = require("react");
31
-
32
- // src/hooks/useLocalStorage.ts
33
- var import_react = require("react");
34
-
35
- // src/utils/storage.ts
36
- var StorageService = class {
37
- // this seems to be a bug in eslint as 'paramter-properties' is a special syntax of typescript
38
- constructor(storage) {
39
- this.storage = storage;
40
- }
41
- get(key) {
42
- const value = this.storage.getItem(key);
43
- if (value === null) {
44
- return null;
45
- }
46
- return JSON.parse(value);
47
- }
48
- set(key, value) {
49
- this.storage.setItem(key, JSON.stringify(value));
50
- }
51
- delete(key) {
52
- this.storage.removeItem(key);
53
- }
54
- deleteAll() {
55
- this.storage.clear();
56
- }
57
- };
58
- var LocalStorageService = class extends StorageService {
59
- constructor() {
60
- super(window.localStorage);
61
- }
62
- };
63
-
64
- // src/utils/resolveSetState.ts
65
- function resolveSetState(action, prev) {
66
- return typeof action === "function" ? action(prev) : action;
67
- }
68
-
69
- // src/hooks/useLocalStorage.ts
70
- var useLocalStorage = (key, backupValue) => {
71
- const get = (0, import_react.useCallback)(() => {
72
- if (typeof window === "undefined") {
73
- return backupValue;
74
- }
75
- const storageService = new LocalStorageService();
76
- try {
77
- const value = storageService.get(key);
78
- return value || backupValue;
79
- } catch (_) {
80
- console.warn("useLocalStorage: Error while reading the stored value. Make sure your typing is correct.");
81
- storageService.delete(key);
82
- console.info(`useLocalStorage: deleted erroneous value for key: ${key}`);
83
- return backupValue;
84
- }
85
- }, [backupValue, key]);
86
- const [storedValue, setStoredValue] = (0, import_react.useState)(get);
87
- const setValue = (0, import_react.useCallback)((action) => {
88
- const newValue = resolveSetState(action, storedValue);
89
- const storageService = new LocalStorageService();
90
- storageService.set(key, newValue);
91
- setStoredValue(newValue);
92
- }, [storedValue, setStoredValue, key]);
93
- const deleteValue = () => {
94
- const storageService = new LocalStorageService();
95
- storageService.delete(key);
96
- setStoredValue(backupValue);
97
- };
98
- return { value: storedValue, setValue, deleteValue };
99
- };
100
-
101
- // src/theming/useTheme.tsx
102
- var import_jsx_runtime = require("react/jsx-runtime");
103
- var themes = ["light", "dark", "system"];
104
- var ThemeUtil = {
105
- themes
106
- };
107
- var ThemeContext = (0, import_react2.createContext)(null);
108
- var ThemeProvider = ({ children, theme }) => {
109
- const {
110
- value: storedTheme,
111
- setValue: setStoredTheme,
112
- deleteValue: deleteStoredTheme
113
- } = useLocalStorage("theme", "system");
114
- const [themePreference, setThemePreference] = (0, import_react2.useState)("system");
115
- const resolvedTheme = (0, import_react2.useMemo)(() => {
116
- if (theme && theme !== "system") {
117
- return theme;
118
- }
119
- if (storedTheme && storedTheme !== "system") {
120
- return storedTheme;
121
- }
122
- if (themePreference !== "system") {
123
- return themePreference;
124
- }
125
- return "light";
126
- }, [storedTheme, theme, themePreference]);
127
- (0, import_react2.useEffect)(() => {
128
- if (!theme) return;
129
- if (theme === "system") {
130
- deleteStoredTheme();
131
- } else {
132
- setStoredTheme(theme);
133
- }
134
- }, [theme]);
135
- (0, import_react2.useEffect)(() => {
136
- document.documentElement.setAttribute("data-theme", resolvedTheme);
137
- }, [resolvedTheme]);
138
- const getPreference = (0, import_react2.useCallback)(() => {
139
- const prefersDark = window.matchMedia("(prefers-color-scheme: dark)").matches;
140
- const prefersLight = window.matchMedia("(prefers-color-scheme: light)").matches;
141
- setThemePreference(prefersDark ? "dark" : prefersLight ? "light" : "system");
142
- }, []);
143
- (0, import_react2.useEffect)(() => {
144
- getPreference();
145
- }, [getPreference]);
146
- (0, import_react2.useEffect)(() => {
147
- const darkQuery = window.matchMedia("(prefers-color-scheme: dark)");
148
- const lightQuery = window.matchMedia("(prefers-color-scheme: light)");
149
- const noPrefQuery = window.matchMedia("(prefers-color-scheme: no-preference)");
150
- darkQuery.addEventListener("change", getPreference);
151
- lightQuery.addEventListener("change", getPreference);
152
- noPrefQuery.addEventListener("change", getPreference);
153
- return () => {
154
- darkQuery.removeEventListener("change", getPreference);
155
- lightQuery.removeEventListener("change", getPreference);
156
- noPrefQuery.removeEventListener("change", getPreference);
157
- };
158
- }, [getPreference]);
159
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
160
- ThemeContext.Provider,
161
- {
162
- value: {
163
- theme: storedTheme,
164
- resolvedTheme,
165
- setTheme: (newTheme) => {
166
- if (theme && theme !== "system") {
167
- console.warn("ThemeProvider: Attempting to change the theme while setting a fixed theme won't have any effect. Change the theme provided to the ThemeProvider instead.");
168
- }
169
- setStoredTheme(newTheme);
170
- }
171
- },
172
- children
173
- }
174
- );
175
- };
176
- var useTheme = () => {
177
- const context = (0, import_react2.useContext)(ThemeContext);
178
- if (!context) {
179
- throw new Error("useTheme must be used within ThemeContext. Try adding a ThemeProvider around your app.");
180
- }
181
- return context;
182
- };
183
- // Annotate the CommonJS export names for ESM import in node:
184
- 0 && (module.exports = {
185
- ThemeContext,
186
- ThemeProvider,
187
- ThemeUtil,
188
- useTheme
189
- });
190
- //# sourceMappingURL=index.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/theming/index.ts","../../src/theming/useTheme.tsx","../../src/hooks/useLocalStorage.ts","../../src/utils/storage.ts","../../src/utils/resolveSetState.ts"],"sourcesContent":["export * from './useTheme'\n","import type { Dispatch, PropsWithChildren, SetStateAction } from 'react'\nimport { createContext, useCallback, useContext, useEffect, useMemo, useState } from 'react'\nimport { useLocalStorage } from '../hooks/useLocalStorage'\n\nconst themes = ['light', 'dark', 'system'] as const\n\nexport type ThemeType = typeof themes[number]\nexport type ResolvedTheme = Exclude<ThemeType, 'system'>\n\nexport const ThemeUtil = {\n themes,\n}\n\ntype ThemeContextType = {\n theme: ThemeType,\n resolvedTheme: ResolvedTheme,\n setTheme: Dispatch<SetStateAction<ThemeType>>,\n}\n\nexport const ThemeContext = createContext<ThemeContextType | null>(null)\n\ntype ThemeProviderProps = {\n /**\n * Only set this if you want to control the theme yourself\n */\n theme?: ThemeType,\n}\n\nexport const ThemeProvider = ({ children, theme }: PropsWithChildren<ThemeProviderProps>) => {\n const {\n value: storedTheme,\n setValue: setStoredTheme,\n deleteValue: deleteStoredTheme\n } = useLocalStorage<ThemeType>('theme', 'system')\n const [themePreference, setThemePreference] = useState<ThemeType>('system')\n\n const resolvedTheme = useMemo((): ResolvedTheme => {\n if (theme && theme !== 'system') {\n return theme\n }\n if (storedTheme && storedTheme !== 'system') {\n return storedTheme\n }\n if (themePreference !== 'system') {\n return themePreference\n }\n return 'light'\n }, [storedTheme, theme, themePreference])\n\n useEffect(() => {\n if(!theme) return\n if (theme === 'system') {\n deleteStoredTheme()\n } else {\n setStoredTheme(theme)\n }\n }, [theme]) // eslint-disable-line react-hooks/exhaustive-deps\n\n useEffect(() => {\n document.documentElement.setAttribute('data-theme', resolvedTheme)\n }, [resolvedTheme])\n\n const getPreference = useCallback(() => {\n const prefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches\n const prefersLight = window.matchMedia('(prefers-color-scheme: light)').matches\n setThemePreference(prefersDark ? 'dark' : (prefersLight ? 'light' : 'system'))\n }, [])\n\n useEffect(() => {\n getPreference()\n }, [getPreference])\n\n useEffect(() => {\n const darkQuery = window.matchMedia('(prefers-color-scheme: dark)')\n const lightQuery = window.matchMedia('(prefers-color-scheme: light)')\n const noPrefQuery = window.matchMedia('(prefers-color-scheme: no-preference)')\n darkQuery.addEventListener('change', getPreference)\n lightQuery.addEventListener('change', getPreference)\n noPrefQuery.addEventListener('change', getPreference)\n return () => {\n darkQuery.removeEventListener('change', getPreference)\n lightQuery.removeEventListener('change', getPreference)\n noPrefQuery.removeEventListener('change', getPreference)\n }\n }, [getPreference])\n\n return (\n <ThemeContext.Provider\n value={{\n theme: storedTheme,\n resolvedTheme,\n setTheme: (newTheme) => {\n if (theme && theme !== 'system') {\n console.warn('ThemeProvider: Attempting to change the ' +\n \"theme while setting a fixed theme won't have any effect. \" +\n 'Change the theme provided to the ThemeProvider instead.')\n }\n setStoredTheme(newTheme)\n }\n }}\n >\n {children}\n </ThemeContext.Provider>\n )\n}\n\nexport const useTheme = () => {\n const context = useContext(ThemeContext)\n if (!context) {\n throw new Error('useTheme must be used within ThemeContext. Try adding a ThemeProvider around your app.')\n }\n return context\n}\n","'use client'\n\nimport type { Dispatch, SetStateAction } from 'react'\nimport { useCallback, useState } from 'react'\nimport { LocalStorageService } from '@/src/utils/storage'\nimport { resolveSetState } from '@/src/utils/resolveSetState'\n\ntype SetValue<T> = Dispatch<SetStateAction<T>>\n\ntype UseLocalStorageResult<T> = {\n value: T,\n setValue: SetValue<T>,\n deleteValue: () => void,\n}\n\n/**\n * @param key Key under which to save the data\n * @param backupValue Used if the storage is unavailable or no value is present\n *\n * The backup value will never be saved to the storage unless you explicitly\n */\nexport const useLocalStorage = <T>(key: string, backupValue: T): UseLocalStorageResult<T> => {\n const get = useCallback((): T => {\n if (typeof window === 'undefined') {\n return backupValue\n }\n const storageService = new LocalStorageService()\n try {\n const value = storageService.get<T>(key)\n return value || backupValue\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n } catch (_) {\n console.warn('useLocalStorage: Error while reading the stored value. Make sure your typing is correct.')\n storageService.delete(key)\n console.info(`useLocalStorage: deleted erroneous value for key: ${key}`)\n return backupValue\n }\n }, [backupValue, key])\n\n const [storedValue, setStoredValue] = useState<T>(get)\n\n const setValue: SetValue<T> = useCallback(action => {\n const newValue = resolveSetState(action, storedValue)\n const storageService = new LocalStorageService()\n storageService.set(key, newValue)\n\n setStoredValue(newValue)\n }, [storedValue, setStoredValue, key])\n\n const deleteValue = () => {\n const storageService = new LocalStorageService()\n storageService.delete(key)\n setStoredValue(backupValue)\n }\n\n return { value: storedValue, setValue, deleteValue }\n}","class StorageService {\n // this seems to be a bug in eslint as 'paramter-properties' is a special syntax of typescript\n\n constructor(private storage: Storage) {\n }\n\n public get<T>(key: string): T | null {\n const value = this.storage.getItem(key)\n if (value === null) {\n return null\n }\n return JSON.parse(value)\n }\n\n public set<T>(key: string, value: T) {\n this.storage.setItem(key, JSON.stringify(value))\n }\n\n public delete(key: string) {\n this.storage.removeItem(key)\n }\n\n public deleteAll() {\n this.storage.clear()\n }\n}\n\nexport class LocalStorageService extends StorageService {\n constructor() {\n super(window.localStorage)\n }\n}\n\nexport class SessionStorageService extends StorageService {\n constructor() {\n super(window.sessionStorage)\n }\n}\n","import type { SetStateAction } from 'react'\n\nexport function resolveSetState<T>(action: SetStateAction<T>, prev: T): T {\n return typeof action === 'function' ? (action as (prev: T) => T)(prev) : action\n}"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACCA,IAAAA,gBAAqF;;;ACErF,mBAAsC;;;ACHtC,IAAM,iBAAN,MAAqB;AAAA;AAAA,EAGnB,YAAoB,SAAkB;AAAlB;AAAA,EACpB;AAAA,EAEO,IAAO,KAAuB;AACnC,UAAM,QAAQ,KAAK,QAAQ,QAAQ,GAAG;AACtC,QAAI,UAAU,MAAM;AAClB,aAAO;AAAA,IACT;AACA,WAAO,KAAK,MAAM,KAAK;AAAA,EACzB;AAAA,EAEO,IAAO,KAAa,OAAU;AACnC,SAAK,QAAQ,QAAQ,KAAK,KAAK,UAAU,KAAK,CAAC;AAAA,EACjD;AAAA,EAEO,OAAO,KAAa;AACzB,SAAK,QAAQ,WAAW,GAAG;AAAA,EAC7B;AAAA,EAEO,YAAY;AACjB,SAAK,QAAQ,MAAM;AAAA,EACrB;AACF;AAEO,IAAM,sBAAN,cAAkC,eAAe;AAAA,EACtD,cAAc;AACZ,UAAM,OAAO,YAAY;AAAA,EAC3B;AACF;;;AC7BO,SAAS,gBAAmB,QAA2B,MAAY;AACxE,SAAO,OAAO,WAAW,aAAc,OAA0B,IAAI,IAAI;AAC3E;;;AFiBO,IAAM,kBAAkB,CAAI,KAAa,gBAA6C;AAC3F,QAAM,UAAM,0BAAY,MAAS;AAC/B,QAAI,OAAO,WAAW,aAAa;AACjC,aAAO;AAAA,IACT;AACA,UAAM,iBAAiB,IAAI,oBAAoB;AAC/C,QAAI;AACF,YAAM,QAAQ,eAAe,IAAO,GAAG;AACvC,aAAO,SAAS;AAAA,IAElB,SAAS,GAAG;AACV,cAAQ,KAAK,0FAA0F;AACvG,qBAAe,OAAO,GAAG;AACzB,cAAQ,KAAK,qDAAqD,GAAG,EAAE;AACvE,aAAO;AAAA,IACT;AAAA,EACF,GAAG,CAAC,aAAa,GAAG,CAAC;AAErB,QAAM,CAAC,aAAa,cAAc,QAAI,uBAAY,GAAG;AAErD,QAAM,eAAwB,0BAAY,YAAU;AAClD,UAAM,WAAW,gBAAgB,QAAQ,WAAW;AACpD,UAAM,iBAAiB,IAAI,oBAAoB;AAC/C,mBAAe,IAAI,KAAK,QAAQ;AAEhC,mBAAe,QAAQ;AAAA,EACzB,GAAG,CAAC,aAAa,gBAAgB,GAAG,CAAC;AAErC,QAAM,cAAc,MAAM;AACxB,UAAM,iBAAiB,IAAI,oBAAoB;AAC/C,mBAAe,OAAO,GAAG;AACzB,mBAAe,WAAW;AAAA,EAC5B;AAEA,SAAO,EAAE,OAAO,aAAa,UAAU,YAAY;AACrD;;;AD+BI;AAnFJ,IAAM,SAAS,CAAC,SAAS,QAAQ,QAAQ;AAKlC,IAAM,YAAY;AAAA,EACvB;AACF;AAQO,IAAM,mBAAe,6BAAuC,IAAI;AAShE,IAAM,gBAAgB,CAAC,EAAE,UAAU,MAAM,MAA6C;AAC3F,QAAM;AAAA,IACJ,OAAO;AAAA,IACP,UAAU;AAAA,IACV,aAAa;AAAA,EACf,IAAI,gBAA2B,SAAS,QAAQ;AAChD,QAAM,CAAC,iBAAiB,kBAAkB,QAAI,wBAAoB,QAAQ;AAE1E,QAAM,oBAAgB,uBAAQ,MAAqB;AACjD,QAAI,SAAS,UAAU,UAAU;AAC/B,aAAO;AAAA,IACT;AACA,QAAI,eAAe,gBAAgB,UAAU;AAC3C,aAAO;AAAA,IACT;AACA,QAAI,oBAAoB,UAAU;AAChC,aAAO;AAAA,IACT;AACA,WAAO;AAAA,EACT,GAAG,CAAC,aAAa,OAAO,eAAe,CAAC;AAExC,+BAAU,MAAM;AACd,QAAG,CAAC,MAAO;AACX,QAAI,UAAU,UAAU;AACtB,wBAAkB;AAAA,IACpB,OAAO;AACL,qBAAe,KAAK;AAAA,IACtB;AAAA,EACF,GAAG,CAAC,KAAK,CAAC;AAEV,+BAAU,MAAM;AACd,aAAS,gBAAgB,aAAa,cAAc,aAAa;AAAA,EACnE,GAAG,CAAC,aAAa,CAAC;AAElB,QAAM,oBAAgB,2BAAY,MAAM;AACtC,UAAM,cAAc,OAAO,WAAW,8BAA8B,EAAE;AACtE,UAAM,eAAe,OAAO,WAAW,+BAA+B,EAAE;AACxE,uBAAmB,cAAc,SAAU,eAAe,UAAU,QAAS;AAAA,EAC/E,GAAG,CAAC,CAAC;AAEL,+BAAU,MAAM;AACd,kBAAc;AAAA,EAChB,GAAG,CAAC,aAAa,CAAC;AAElB,+BAAU,MAAM;AACd,UAAM,YAAY,OAAO,WAAW,8BAA8B;AAClE,UAAM,aAAa,OAAO,WAAW,+BAA+B;AACpE,UAAM,cAAc,OAAO,WAAW,uCAAuC;AAC7E,cAAU,iBAAiB,UAAU,aAAa;AAClD,eAAW,iBAAiB,UAAU,aAAa;AACnD,gBAAY,iBAAiB,UAAU,aAAa;AACpD,WAAO,MAAM;AACX,gBAAU,oBAAoB,UAAU,aAAa;AACrD,iBAAW,oBAAoB,UAAU,aAAa;AACtD,kBAAY,oBAAoB,UAAU,aAAa;AAAA,IACzD;AAAA,EACF,GAAG,CAAC,aAAa,CAAC;AAElB,SACE;AAAA,IAAC,aAAa;AAAA,IAAb;AAAA,MACC,OAAO;AAAA,QACL,OAAO;AAAA,QACP;AAAA,QACA,UAAU,CAAC,aAAa;AACtB,cAAI,SAAS,UAAU,UAAU;AAC/B,oBAAQ,KAAK,0JAE8C;AAAA,UAC7D;AACA,yBAAe,QAAQ;AAAA,QACzB;AAAA,MACF;AAAA,MAEC;AAAA;AAAA,EACH;AAEJ;AAEO,IAAM,WAAW,MAAM;AAC5B,QAAM,cAAU,0BAAW,YAAY;AACvC,MAAI,CAAC,SAAS;AACZ,UAAM,IAAI,MAAM,wFAAwF;AAAA,EAC1G;AACA,SAAO;AACT;","names":["import_react"]}
@@ -1,3 +0,0 @@
1
- export { ResolvedTheme, ThemeContext, ThemeProvider, ThemeType, ThemeUtil, useTheme } from './useTheme.cjs';
2
- import 'react/jsx-runtime';
3
- import 'react';
@@ -1,3 +0,0 @@
1
- export { ResolvedTheme, ThemeContext, ThemeProvider, ThemeType, ThemeUtil, useTheme } from './useTheme.js';
2
- import 'react/jsx-runtime';
3
- import 'react';
@@ -1,161 +0,0 @@
1
- // src/theming/useTheme.tsx
2
- import { createContext, useCallback as useCallback2, useContext, useEffect, useMemo, useState as useState2 } from "react";
3
-
4
- // src/hooks/useLocalStorage.ts
5
- import { useCallback, useState } from "react";
6
-
7
- // src/utils/storage.ts
8
- var StorageService = class {
9
- // this seems to be a bug in eslint as 'paramter-properties' is a special syntax of typescript
10
- constructor(storage) {
11
- this.storage = storage;
12
- }
13
- get(key) {
14
- const value = this.storage.getItem(key);
15
- if (value === null) {
16
- return null;
17
- }
18
- return JSON.parse(value);
19
- }
20
- set(key, value) {
21
- this.storage.setItem(key, JSON.stringify(value));
22
- }
23
- delete(key) {
24
- this.storage.removeItem(key);
25
- }
26
- deleteAll() {
27
- this.storage.clear();
28
- }
29
- };
30
- var LocalStorageService = class extends StorageService {
31
- constructor() {
32
- super(window.localStorage);
33
- }
34
- };
35
-
36
- // src/utils/resolveSetState.ts
37
- function resolveSetState(action, prev) {
38
- return typeof action === "function" ? action(prev) : action;
39
- }
40
-
41
- // src/hooks/useLocalStorage.ts
42
- var useLocalStorage = (key, backupValue) => {
43
- const get = useCallback(() => {
44
- if (typeof window === "undefined") {
45
- return backupValue;
46
- }
47
- const storageService = new LocalStorageService();
48
- try {
49
- const value = storageService.get(key);
50
- return value || backupValue;
51
- } catch (_) {
52
- console.warn("useLocalStorage: Error while reading the stored value. Make sure your typing is correct.");
53
- storageService.delete(key);
54
- console.info(`useLocalStorage: deleted erroneous value for key: ${key}`);
55
- return backupValue;
56
- }
57
- }, [backupValue, key]);
58
- const [storedValue, setStoredValue] = useState(get);
59
- const setValue = useCallback((action) => {
60
- const newValue = resolveSetState(action, storedValue);
61
- const storageService = new LocalStorageService();
62
- storageService.set(key, newValue);
63
- setStoredValue(newValue);
64
- }, [storedValue, setStoredValue, key]);
65
- const deleteValue = () => {
66
- const storageService = new LocalStorageService();
67
- storageService.delete(key);
68
- setStoredValue(backupValue);
69
- };
70
- return { value: storedValue, setValue, deleteValue };
71
- };
72
-
73
- // src/theming/useTheme.tsx
74
- import { jsx } from "react/jsx-runtime";
75
- var themes = ["light", "dark", "system"];
76
- var ThemeUtil = {
77
- themes
78
- };
79
- var ThemeContext = createContext(null);
80
- var ThemeProvider = ({ children, theme }) => {
81
- const {
82
- value: storedTheme,
83
- setValue: setStoredTheme,
84
- deleteValue: deleteStoredTheme
85
- } = useLocalStorage("theme", "system");
86
- const [themePreference, setThemePreference] = useState2("system");
87
- const resolvedTheme = useMemo(() => {
88
- if (theme && theme !== "system") {
89
- return theme;
90
- }
91
- if (storedTheme && storedTheme !== "system") {
92
- return storedTheme;
93
- }
94
- if (themePreference !== "system") {
95
- return themePreference;
96
- }
97
- return "light";
98
- }, [storedTheme, theme, themePreference]);
99
- useEffect(() => {
100
- if (!theme) return;
101
- if (theme === "system") {
102
- deleteStoredTheme();
103
- } else {
104
- setStoredTheme(theme);
105
- }
106
- }, [theme]);
107
- useEffect(() => {
108
- document.documentElement.setAttribute("data-theme", resolvedTheme);
109
- }, [resolvedTheme]);
110
- const getPreference = useCallback2(() => {
111
- const prefersDark = window.matchMedia("(prefers-color-scheme: dark)").matches;
112
- const prefersLight = window.matchMedia("(prefers-color-scheme: light)").matches;
113
- setThemePreference(prefersDark ? "dark" : prefersLight ? "light" : "system");
114
- }, []);
115
- useEffect(() => {
116
- getPreference();
117
- }, [getPreference]);
118
- useEffect(() => {
119
- const darkQuery = window.matchMedia("(prefers-color-scheme: dark)");
120
- const lightQuery = window.matchMedia("(prefers-color-scheme: light)");
121
- const noPrefQuery = window.matchMedia("(prefers-color-scheme: no-preference)");
122
- darkQuery.addEventListener("change", getPreference);
123
- lightQuery.addEventListener("change", getPreference);
124
- noPrefQuery.addEventListener("change", getPreference);
125
- return () => {
126
- darkQuery.removeEventListener("change", getPreference);
127
- lightQuery.removeEventListener("change", getPreference);
128
- noPrefQuery.removeEventListener("change", getPreference);
129
- };
130
- }, [getPreference]);
131
- return /* @__PURE__ */ jsx(
132
- ThemeContext.Provider,
133
- {
134
- value: {
135
- theme: storedTheme,
136
- resolvedTheme,
137
- setTheme: (newTheme) => {
138
- if (theme && theme !== "system") {
139
- console.warn("ThemeProvider: Attempting to change the theme while setting a fixed theme won't have any effect. Change the theme provided to the ThemeProvider instead.");
140
- }
141
- setStoredTheme(newTheme);
142
- }
143
- },
144
- children
145
- }
146
- );
147
- };
148
- var useTheme = () => {
149
- const context = useContext(ThemeContext);
150
- if (!context) {
151
- throw new Error("useTheme must be used within ThemeContext. Try adding a ThemeProvider around your app.");
152
- }
153
- return context;
154
- };
155
- export {
156
- ThemeContext,
157
- ThemeProvider,
158
- ThemeUtil,
159
- useTheme
160
- };
161
- //# sourceMappingURL=index.js.map