@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.
- package/README.md +1 -1
- package/dist/index.d.mts +1990 -0
- package/dist/index.d.ts +1990 -113
- package/dist/index.js +1514 -1353
- package/dist/index.js.map +1 -1
- package/dist/{components/index.js → index.mjs} +728 -18
- package/dist/index.mjs.map +1 -0
- package/package.json +5 -12
- package/dist/coloring/index.cjs +0 -85
- package/dist/coloring/index.cjs.map +0 -1
- package/dist/coloring/index.d.cts +0 -2
- package/dist/coloring/index.d.ts +0 -2
- package/dist/coloring/index.js +0 -48
- package/dist/coloring/index.js.map +0 -1
- package/dist/coloring/shading.cjs +0 -81
- package/dist/coloring/shading.cjs.map +0 -1
- package/dist/coloring/shading.d.cts +0 -5
- package/dist/coloring/shading.d.ts +0 -5
- package/dist/coloring/shading.js +0 -47
- package/dist/coloring/shading.js.map +0 -1
- package/dist/coloring/types.cjs +0 -30
- package/dist/coloring/types.cjs.map +0 -1
- package/dist/coloring/types.d.cts +0 -13
- package/dist/coloring/types.d.ts +0 -13
- package/dist/coloring/types.js +0 -6
- package/dist/coloring/types.js.map +0 -1
- package/dist/components/branding/HelpwaveBadge.cjs +0 -140
- package/dist/components/branding/HelpwaveBadge.cjs.map +0 -1
- package/dist/components/branding/HelpwaveBadge.d.cts +0 -13
- package/dist/components/branding/HelpwaveBadge.d.ts +0 -13
- package/dist/components/branding/HelpwaveBadge.js +0 -104
- package/dist/components/branding/HelpwaveBadge.js.map +0 -1
- package/dist/components/branding/index.cjs +0 -140
- package/dist/components/branding/index.cjs.map +0 -1
- package/dist/components/branding/index.d.cts +0 -3
- package/dist/components/branding/index.d.ts +0 -3
- package/dist/components/branding/index.js +0 -104
- package/dist/components/branding/index.js.map +0 -1
- package/dist/components/date/DatePicker.cjs +0 -1318
- package/dist/components/date/DatePicker.cjs.map +0 -1
- package/dist/components/date/DatePicker.d.cts +0 -26
- package/dist/components/date/DatePicker.d.ts +0 -26
- package/dist/components/date/DatePicker.js +0 -1283
- package/dist/components/date/DatePicker.js.map +0 -1
- package/dist/components/date/DayPicker.cjs +0 -261
- package/dist/components/date/DayPicker.cjs.map +0 -1
- package/dist/components/date/DayPicker.d.cts +0 -20
- package/dist/components/date/DayPicker.d.ts +0 -20
- package/dist/components/date/DayPicker.js +0 -224
- package/dist/components/date/DayPicker.js.map +0 -1
- package/dist/components/date/TimeDisplay.cjs +0 -638
- package/dist/components/date/TimeDisplay.cjs.map +0 -1
- package/dist/components/date/TimeDisplay.d.cts +0 -13
- package/dist/components/date/TimeDisplay.d.ts +0 -13
- package/dist/components/date/TimeDisplay.js +0 -612
- package/dist/components/date/TimeDisplay.js.map +0 -1
- package/dist/components/date/TimePicker.cjs +0 -237
- package/dist/components/date/TimePicker.cjs.map +0 -1
- package/dist/components/date/TimePicker.d.cts +0 -15
- package/dist/components/date/TimePicker.d.ts +0 -15
- package/dist/components/date/TimePicker.js +0 -202
- package/dist/components/date/TimePicker.js.map +0 -1
- package/dist/components/date/YearMonthPicker.cjs +0 -536
- package/dist/components/date/YearMonthPicker.cjs.map +0 -1
- package/dist/components/date/YearMonthPicker.d.cts +0 -15
- package/dist/components/date/YearMonthPicker.d.ts +0 -15
- package/dist/components/date/YearMonthPicker.js +0 -501
- package/dist/components/date/YearMonthPicker.js.map +0 -1
- package/dist/components/date/index.cjs +0 -1556
- package/dist/components/date/index.cjs.map +0 -1
- package/dist/components/date/index.d.cts +0 -7
- package/dist/components/date/index.d.ts +0 -7
- package/dist/components/date/index.js +0 -1512
- package/dist/components/date/index.js.map +0 -1
- package/dist/components/dialog/ConfirmDialog.cjs +0 -1165
- package/dist/components/dialog/ConfirmDialog.cjs.map +0 -1
- package/dist/components/dialog/ConfirmDialog.d.cts +0 -29
- package/dist/components/dialog/ConfirmDialog.d.ts +0 -29
- package/dist/components/dialog/ConfirmDialog.js +0 -1129
- package/dist/components/dialog/ConfirmDialog.js.map +0 -1
- package/dist/components/dialog/Dialog.cjs +0 -1108
- package/dist/components/dialog/Dialog.cjs.map +0 -1
- package/dist/components/dialog/Dialog.d.cts +0 -27
- package/dist/components/dialog/Dialog.d.ts +0 -27
- package/dist/components/dialog/Dialog.js +0 -1075
- package/dist/components/dialog/Dialog.js.map +0 -1
- package/dist/components/dialog/DiscardChangesDialog.cjs +0 -1192
- package/dist/components/dialog/DiscardChangesDialog.cjs.map +0 -1
- package/dist/components/dialog/DiscardChangesDialog.d.cts +0 -18
- package/dist/components/dialog/DiscardChangesDialog.d.ts +0 -18
- package/dist/components/dialog/DiscardChangesDialog.js +0 -1156
- package/dist/components/dialog/DiscardChangesDialog.js.map +0 -1
- package/dist/components/dialog/InputDialog.cjs +0 -1369
- package/dist/components/dialog/InputDialog.cjs.map +0 -1
- package/dist/components/dialog/InputDialog.d.cts +0 -17
- package/dist/components/dialog/InputDialog.d.ts +0 -17
- package/dist/components/dialog/InputDialog.js +0 -1333
- package/dist/components/dialog/InputDialog.js.map +0 -1
- package/dist/components/dialog/LanguageDialog.cjs +0 -2149
- package/dist/components/dialog/LanguageDialog.cjs.map +0 -1
- package/dist/components/dialog/LanguageDialog.d.cts +0 -16
- package/dist/components/dialog/LanguageDialog.d.ts +0 -16
- package/dist/components/dialog/LanguageDialog.js +0 -2124
- package/dist/components/dialog/LanguageDialog.js.map +0 -1
- package/dist/components/dialog/ThemeDialog.cjs +0 -2188
- package/dist/components/dialog/ThemeDialog.cjs.map +0 -1
- package/dist/components/dialog/ThemeDialog.d.cts +0 -16
- package/dist/components/dialog/ThemeDialog.d.ts +0 -16
- package/dist/components/dialog/ThemeDialog.js +0 -2163
- package/dist/components/dialog/ThemeDialog.js.map +0 -1
- package/dist/components/dialog/index.cjs +0 -2516
- package/dist/components/dialog/index.cjs.map +0 -1
- package/dist/components/dialog/index.d.cts +0 -11
- package/dist/components/dialog/index.d.ts +0 -11
- package/dist/components/dialog/index.js +0 -2486
- package/dist/components/dialog/index.js.map +0 -1
- package/dist/components/form/FormElementWrapper.cjs +0 -167
- package/dist/components/form/FormElementWrapper.cjs.map +0 -1
- package/dist/components/form/FormElementWrapper.d.cts +0 -35
- package/dist/components/form/FormElementWrapper.d.ts +0 -35
- package/dist/components/form/FormElementWrapper.js +0 -133
- package/dist/components/form/FormElementWrapper.js.map +0 -1
- package/dist/components/form/index.cjs +0 -169
- package/dist/components/form/index.cjs.map +0 -1
- package/dist/components/form/index.d.cts +0 -5
- package/dist/components/form/index.d.ts +0 -5
- package/dist/components/form/index.js +0 -133
- package/dist/components/form/index.js.map +0 -1
- package/dist/components/icons-and-geometry/Avatar.cjs +0 -670
- package/dist/components/icons-and-geometry/Avatar.cjs.map +0 -1
- package/dist/components/icons-and-geometry/Avatar.d.cts +0 -36
- package/dist/components/icons-and-geometry/Avatar.d.ts +0 -36
- package/dist/components/icons-and-geometry/Avatar.js +0 -663
- package/dist/components/icons-and-geometry/Avatar.js.map +0 -1
- package/dist/components/icons-and-geometry/Circle.cjs +0 -61
- package/dist/components/icons-and-geometry/Circle.cjs.map +0 -1
- package/dist/components/icons-and-geometry/Circle.d.cts +0 -10
- package/dist/components/icons-and-geometry/Circle.d.ts +0 -10
- package/dist/components/icons-and-geometry/Circle.js +0 -27
- package/dist/components/icons-and-geometry/Circle.js.map +0 -1
- package/dist/components/icons-and-geometry/HelpwaveLogo.cjs +0 -98
- package/dist/components/icons-and-geometry/HelpwaveLogo.cjs.map +0 -1
- package/dist/components/icons-and-geometry/HelpwaveLogo.d.cts +0 -14
- package/dist/components/icons-and-geometry/HelpwaveLogo.d.ts +0 -14
- package/dist/components/icons-and-geometry/HelpwaveLogo.js +0 -74
- package/dist/components/icons-and-geometry/HelpwaveLogo.js.map +0 -1
- package/dist/components/icons-and-geometry/Ring.cjs +0 -333
- package/dist/components/icons-and-geometry/Ring.cjs.map +0 -1
- package/dist/components/icons-and-geometry/Ring.d.cts +0 -35
- package/dist/components/icons-and-geometry/Ring.d.ts +0 -35
- package/dist/components/icons-and-geometry/Ring.js +0 -296
- package/dist/components/icons-and-geometry/Ring.js.map +0 -1
- package/dist/components/icons-and-geometry/Tag.cjs +0 -2945
- package/dist/components/icons-and-geometry/Tag.cjs.map +0 -1
- package/dist/components/icons-and-geometry/Tag.d.cts +0 -16
- package/dist/components/icons-and-geometry/Tag.d.ts +0 -16
- package/dist/components/icons-and-geometry/Tag.js +0 -2940
- package/dist/components/icons-and-geometry/Tag.js.map +0 -1
- package/dist/components/icons-and-geometry/index.cjs +0 -3950
- package/dist/components/icons-and-geometry/index.cjs.map +0 -1
- package/dist/components/icons-and-geometry/index.d.cts +0 -7
- package/dist/components/icons-and-geometry/index.d.ts +0 -7
- package/dist/components/icons-and-geometry/index.js +0 -3934
- package/dist/components/icons-and-geometry/index.js.map +0 -1
- package/dist/components/index.cjs +0 -15692
- package/dist/components/index.cjs.map +0 -1
- package/dist/components/index.d.cts +0 -78
- package/dist/components/index.d.ts +0 -78
- package/dist/components/index.js.map +0 -1
- package/dist/components/layout/Carousel.cjs +0 -1128
- package/dist/components/layout/Carousel.cjs.map +0 -1
- package/dist/components/layout/Carousel.d.cts +0 -35
- package/dist/components/layout/Carousel.d.ts +0 -35
- package/dist/components/layout/Carousel.js +0 -1103
- package/dist/components/layout/Carousel.js.map +0 -1
- package/dist/components/layout/Chip.cjs +0 -123
- package/dist/components/layout/Chip.cjs.map +0 -1
- package/dist/components/layout/Chip.d.cts +0 -31
- package/dist/components/layout/Chip.d.ts +0 -31
- package/dist/components/layout/Chip.js +0 -87
- package/dist/components/layout/Chip.js.map +0 -1
- package/dist/components/layout/DividerInserter.cjs +0 -59
- package/dist/components/layout/DividerInserter.cjs.map +0 -1
- package/dist/components/layout/DividerInserter.d.cts +0 -15
- package/dist/components/layout/DividerInserter.d.ts +0 -15
- package/dist/components/layout/DividerInserter.js +0 -25
- package/dist/components/layout/DividerInserter.js.map +0 -1
- package/dist/components/layout/Expandable.cjs +0 -171
- package/dist/components/layout/Expandable.cjs.map +0 -1
- package/dist/components/layout/Expandable.d.cts +0 -67
- package/dist/components/layout/Expandable.d.ts +0 -67
- package/dist/components/layout/Expandable.js +0 -135
- package/dist/components/layout/Expandable.js.map +0 -1
- package/dist/components/layout/FAQSection.cjs +0 -421
- package/dist/components/layout/FAQSection.cjs.map +0 -1
- package/dist/components/layout/FAQSection.d.cts +0 -26
- package/dist/components/layout/FAQSection.d.ts +0 -26
- package/dist/components/layout/FAQSection.js +0 -387
- package/dist/components/layout/FAQSection.js.map +0 -1
- package/dist/components/layout/FloatingContainer.cjs +0 -220
- package/dist/components/layout/FloatingContainer.cjs.map +0 -1
- package/dist/components/layout/FloatingContainer.d.cts +0 -38
- package/dist/components/layout/FloatingContainer.d.ts +0 -38
- package/dist/components/layout/FloatingContainer.js +0 -196
- package/dist/components/layout/FloatingContainer.js.map +0 -1
- package/dist/components/layout/ListBox.cjs +0 -339
- package/dist/components/layout/ListBox.cjs.map +0 -1
- package/dist/components/layout/ListBox.d.cts +0 -44
- package/dist/components/layout/ListBox.d.ts +0 -44
- package/dist/components/layout/ListBox.js +0 -300
- package/dist/components/layout/ListBox.js.map +0 -1
- package/dist/components/layout/MarkdownInterpreter.cjs +0 -260
- package/dist/components/layout/MarkdownInterpreter.cjs.map +0 -1
- package/dist/components/layout/MarkdownInterpreter.d.cts +0 -28
- package/dist/components/layout/MarkdownInterpreter.d.ts +0 -28
- package/dist/components/layout/MarkdownInterpreter.js +0 -235
- package/dist/components/layout/MarkdownInterpreter.js.map +0 -1
- package/dist/components/layout/ScrollArea.cjs +0 -1252
- package/dist/components/layout/ScrollArea.cjs.map +0 -1
- package/dist/components/layout/ScrollArea.d.cts +0 -15
- package/dist/components/layout/ScrollArea.d.ts +0 -15
- package/dist/components/layout/ScrollArea.js +0 -1216
- package/dist/components/layout/ScrollArea.js.map +0 -1
- package/dist/components/layout/TextImage.cjs +0 -657
- package/dist/components/layout/TextImage.cjs.map +0 -1
- package/dist/components/layout/TextImage.d.cts +0 -19
- package/dist/components/layout/TextImage.d.ts +0 -19
- package/dist/components/layout/TextImage.js +0 -623
- package/dist/components/layout/TextImage.js.map +0 -1
- package/dist/components/layout/VerticalDivider.cjs +0 -80
- package/dist/components/layout/VerticalDivider.cjs.map +0 -1
- package/dist/components/layout/VerticalDivider.d.cts +0 -15
- package/dist/components/layout/VerticalDivider.d.ts +0 -15
- package/dist/components/layout/VerticalDivider.js +0 -56
- package/dist/components/layout/VerticalDivider.js.map +0 -1
- package/dist/components/layout/index.cjs +0 -3434
- package/dist/components/layout/index.cjs.map +0 -1
- package/dist/components/layout/index.d.cts +0 -15
- package/dist/components/layout/index.d.ts +0 -15
- package/dist/components/layout/index.js +0 -3387
- package/dist/components/layout/index.js.map +0 -1
- package/dist/components/loading-states/ErrorComponent.cjs +0 -622
- package/dist/components/loading-states/ErrorComponent.cjs.map +0 -1
- package/dist/components/loading-states/ErrorComponent.d.cts +0 -12
- package/dist/components/loading-states/ErrorComponent.d.ts +0 -12
- package/dist/components/loading-states/ErrorComponent.js +0 -588
- package/dist/components/loading-states/ErrorComponent.js.map +0 -1
- package/dist/components/loading-states/LoadingAndErrorComponent.cjs +0 -67
- package/dist/components/loading-states/LoadingAndErrorComponent.cjs.map +0 -1
- package/dist/components/loading-states/LoadingAndErrorComponent.d.cts +0 -20
- package/dist/components/loading-states/LoadingAndErrorComponent.d.ts +0 -20
- package/dist/components/loading-states/LoadingAndErrorComponent.js +0 -43
- package/dist/components/loading-states/LoadingAndErrorComponent.js.map +0 -1
- package/dist/components/loading-states/LoadingAnimation.cjs +0 -694
- package/dist/components/loading-states/LoadingAnimation.cjs.map +0 -1
- package/dist/components/loading-states/LoadingAnimation.d.cts +0 -12
- package/dist/components/loading-states/LoadingAnimation.d.ts +0 -12
- package/dist/components/loading-states/LoadingAnimation.js +0 -658
- package/dist/components/loading-states/LoadingAnimation.js.map +0 -1
- package/dist/components/loading-states/LoadingButton.cjs +0 -257
- package/dist/components/loading-states/LoadingButton.cjs.map +0 -1
- package/dist/components/loading-states/LoadingButton.d.cts +0 -10
- package/dist/components/loading-states/LoadingButton.d.ts +0 -10
- package/dist/components/loading-states/LoadingButton.js +0 -223
- package/dist/components/loading-states/LoadingButton.js.map +0 -1
- package/dist/components/loading-states/LoadingContainer.cjs +0 -34
- package/dist/components/loading-states/LoadingContainer.cjs.map +0 -1
- package/dist/components/loading-states/LoadingContainer.d.cts +0 -8
- package/dist/components/loading-states/LoadingContainer.d.ts +0 -8
- package/dist/components/loading-states/LoadingContainer.js +0 -10
- package/dist/components/loading-states/LoadingContainer.js.map +0 -1
- package/dist/components/loading-states/ProgressIndicator.cjs +0 -83
- package/dist/components/loading-states/ProgressIndicator.cjs.map +0 -1
- package/dist/components/loading-states/ProgressIndicator.d.cts +0 -24
- package/dist/components/loading-states/ProgressIndicator.d.ts +0 -24
- package/dist/components/loading-states/ProgressIndicator.js +0 -59
- package/dist/components/loading-states/ProgressIndicator.js.map +0 -1
- package/dist/components/loading-states/index.cjs +0 -966
- package/dist/components/loading-states/index.cjs.map +0 -1
- package/dist/components/loading-states/index.d.cts +0 -9
- package/dist/components/loading-states/index.d.ts +0 -9
- package/dist/components/loading-states/index.js +0 -925
- package/dist/components/loading-states/index.js.map +0 -1
- package/dist/components/navigation/BreadCrumb.cjs +0 -3516
- package/dist/components/navigation/BreadCrumb.cjs.map +0 -1
- package/dist/components/navigation/BreadCrumb.d.cts +0 -20
- package/dist/components/navigation/BreadCrumb.d.ts +0 -20
- package/dist/components/navigation/BreadCrumb.js +0 -3511
- package/dist/components/navigation/BreadCrumb.js.map +0 -1
- package/dist/components/navigation/Navigation.cjs +0 -4041
- package/dist/components/navigation/Navigation.cjs.map +0 -1
- package/dist/components/navigation/Navigation.d.cts +0 -21
- package/dist/components/navigation/Navigation.d.ts +0 -21
- package/dist/components/navigation/Navigation.js +0 -4035
- package/dist/components/navigation/Navigation.js.map +0 -1
- package/dist/components/navigation/Pagination.cjs +0 -1007
- package/dist/components/navigation/Pagination.cjs.map +0 -1
- package/dist/components/navigation/Pagination.d.cts +0 -16
- package/dist/components/navigation/Pagination.d.ts +0 -16
- package/dist/components/navigation/Pagination.js +0 -973
- package/dist/components/navigation/Pagination.js.map +0 -1
- package/dist/components/navigation/StepperBar.cjs +0 -903
- package/dist/components/navigation/StepperBar.cjs.map +0 -1
- package/dist/components/navigation/StepperBar.d.cts +0 -23
- package/dist/components/navigation/StepperBar.d.ts +0 -23
- package/dist/components/navigation/StepperBar.js +0 -868
- package/dist/components/navigation/StepperBar.js.map +0 -1
- package/dist/components/navigation/index.cjs +0 -5035
- package/dist/components/navigation/index.cjs.map +0 -1
- package/dist/components/navigation/index.d.cts +0 -6
- package/dist/components/navigation/index.d.ts +0 -6
- package/dist/components/navigation/index.js +0 -5023
- package/dist/components/navigation/index.js.map +0 -1
- package/dist/components/properties/CheckboxProperty.cjs +0 -1736
- package/dist/components/properties/CheckboxProperty.cjs.map +0 -1
- package/dist/components/properties/CheckboxProperty.d.cts +0 -14
- package/dist/components/properties/CheckboxProperty.d.ts +0 -14
- package/dist/components/properties/CheckboxProperty.js +0 -1702
- package/dist/components/properties/CheckboxProperty.js.map +0 -1
- package/dist/components/properties/DateProperty.cjs +0 -1119
- package/dist/components/properties/DateProperty.cjs.map +0 -1
- package/dist/components/properties/DateProperty.d.cts +0 -16
- package/dist/components/properties/DateProperty.d.ts +0 -16
- package/dist/components/properties/DateProperty.js +0 -1085
- package/dist/components/properties/DateProperty.js.map +0 -1
- package/dist/components/properties/MultiSelectProperty.cjs +0 -2058
- package/dist/components/properties/MultiSelectProperty.cjs.map +0 -1
- package/dist/components/properties/MultiSelectProperty.d.cts +0 -14
- package/dist/components/properties/MultiSelectProperty.d.ts +0 -14
- package/dist/components/properties/MultiSelectProperty.js +0 -2035
- package/dist/components/properties/MultiSelectProperty.js.map +0 -1
- package/dist/components/properties/NumberProperty.cjs +0 -1125
- package/dist/components/properties/NumberProperty.cjs.map +0 -1
- package/dist/components/properties/NumberProperty.d.cts +0 -16
- package/dist/components/properties/NumberProperty.d.ts +0 -16
- package/dist/components/properties/NumberProperty.js +0 -1091
- package/dist/components/properties/NumberProperty.js.map +0 -1
- package/dist/components/properties/PropertyBase.cjs +0 -875
- package/dist/components/properties/PropertyBase.cjs.map +0 -1
- package/dist/components/properties/PropertyBase.d.cts +0 -22
- package/dist/components/properties/PropertyBase.d.ts +0 -22
- package/dist/components/properties/PropertyBase.js +0 -841
- package/dist/components/properties/PropertyBase.js.map +0 -1
- package/dist/components/properties/SelectProperty.cjs +0 -2058
- package/dist/components/properties/SelectProperty.cjs.map +0 -1
- package/dist/components/properties/SelectProperty.d.cts +0 -16
- package/dist/components/properties/SelectProperty.d.ts +0 -16
- package/dist/components/properties/SelectProperty.js +0 -2035
- package/dist/components/properties/SelectProperty.js.map +0 -1
- package/dist/components/properties/TextProperty.cjs +0 -1033
- package/dist/components/properties/TextProperty.cjs.map +0 -1
- package/dist/components/properties/TextProperty.d.cts +0 -15
- package/dist/components/properties/TextProperty.d.ts +0 -15
- package/dist/components/properties/TextProperty.js +0 -999
- package/dist/components/properties/TextProperty.js.map +0 -1
- package/dist/components/properties/index.cjs +0 -3383
- package/dist/components/properties/index.cjs.map +0 -1
- package/dist/components/properties/index.d.cts +0 -9
- package/dist/components/properties/index.d.ts +0 -9
- package/dist/components/properties/index.js +0 -3352
- package/dist/components/properties/index.js.map +0 -1
- package/dist/components/table/FillerRowElement.cjs +0 -36
- package/dist/components/table/FillerRowElement.cjs.map +0 -1
- package/dist/components/table/FillerRowElement.d.cts +0 -8
- package/dist/components/table/FillerRowElement.d.ts +0 -8
- package/dist/components/table/FillerRowElement.js +0 -12
- package/dist/components/table/FillerRowElement.js.map +0 -1
- package/dist/components/table/Filter.cjs +0 -41
- package/dist/components/table/Filter.cjs.map +0 -1
- package/dist/components/table/Filter.d.cts +0 -5
- package/dist/components/table/Filter.d.ts +0 -5
- package/dist/components/table/Filter.js +0 -17
- package/dist/components/table/Filter.js.map +0 -1
- package/dist/components/table/Table.cjs +0 -2678
- package/dist/components/table/Table.cjs.map +0 -1
- package/dist/components/table/Table.d.cts +0 -42
- package/dist/components/table/Table.d.ts +0 -42
- package/dist/components/table/Table.js +0 -2649
- package/dist/components/table/Table.js.map +0 -1
- package/dist/components/table/TableCell.cjs +0 -37
- package/dist/components/table/TableCell.cjs.map +0 -1
- package/dist/components/table/TableCell.d.cts +0 -9
- package/dist/components/table/TableCell.d.ts +0 -9
- package/dist/components/table/TableCell.js +0 -13
- package/dist/components/table/TableCell.js.map +0 -1
- package/dist/components/table/TableFilterButton.cjs +0 -1269
- package/dist/components/table/TableFilterButton.cjs.map +0 -1
- package/dist/components/table/TableFilterButton.d.cts +0 -11
- package/dist/components/table/TableFilterButton.d.ts +0 -11
- package/dist/components/table/TableFilterButton.js +0 -1233
- package/dist/components/table/TableFilterButton.js.map +0 -1
- package/dist/components/table/TableSortButton.cjs +0 -206
- package/dist/components/table/TableSortButton.cjs.map +0 -1
- package/dist/components/table/TableSortButton.d.cts +0 -15
- package/dist/components/table/TableSortButton.d.ts +0 -15
- package/dist/components/table/TableSortButton.js +0 -172
- package/dist/components/table/TableSortButton.js.map +0 -1
- package/dist/components/table/index.cjs +0 -2690
- package/dist/components/table/index.cjs.map +0 -1
- package/dist/components/table/index.d.cts +0 -10
- package/dist/components/table/index.d.ts +0 -10
- package/dist/components/table/index.js +0 -2654
- package/dist/components/table/index.js.map +0 -1
- package/dist/components/user-action/Button.cjs +0 -308
- package/dist/components/user-action/Button.cjs.map +0 -1
- package/dist/components/user-action/Button.d.cts +0 -104
- package/dist/components/user-action/Button.d.ts +0 -104
- package/dist/components/user-action/Button.js +0 -268
- package/dist/components/user-action/Button.js.map +0 -1
- package/dist/components/user-action/Checkbox.cjs +0 -878
- package/dist/components/user-action/Checkbox.cjs.map +0 -1
- package/dist/components/user-action/Checkbox.d.cts +0 -25
- package/dist/components/user-action/Checkbox.d.ts +0 -25
- package/dist/components/user-action/Checkbox.js +0 -843
- package/dist/components/user-action/Checkbox.js.map +0 -1
- package/dist/components/user-action/CopyToClipboardWrapper.cjs +0 -695
- package/dist/components/user-action/CopyToClipboardWrapper.cjs.map +0 -1
- package/dist/components/user-action/CopyToClipboardWrapper.d.cts +0 -30
- package/dist/components/user-action/CopyToClipboardWrapper.d.ts +0 -30
- package/dist/components/user-action/CopyToClipboardWrapper.js +0 -671
- package/dist/components/user-action/CopyToClipboardWrapper.js.map +0 -1
- package/dist/components/user-action/DateAndTimePicker.cjs +0 -1492
- package/dist/components/user-action/DateAndTimePicker.cjs.map +0 -1
- package/dist/components/user-action/DateAndTimePicker.d.cts +0 -25
- package/dist/components/user-action/DateAndTimePicker.d.ts +0 -25
- package/dist/components/user-action/DateAndTimePicker.js +0 -1458
- package/dist/components/user-action/DateAndTimePicker.js.map +0 -1
- package/dist/components/user-action/Label.cjs +0 -53
- package/dist/components/user-action/Label.cjs.map +0 -1
- package/dist/components/user-action/Label.d.cts +0 -14
- package/dist/components/user-action/Label.d.ts +0 -14
- package/dist/components/user-action/Label.js +0 -19
- package/dist/components/user-action/Label.js.map +0 -1
- package/dist/components/user-action/Menu.cjs +0 -282
- package/dist/components/user-action/Menu.cjs.map +0 -1
- package/dist/components/user-action/Menu.d.cts +0 -35
- package/dist/components/user-action/Menu.d.ts +0 -35
- package/dist/components/user-action/Menu.js +0 -247
- package/dist/components/user-action/Menu.js.map +0 -1
- package/dist/components/user-action/ScrollPicker.cjs +0 -301
- package/dist/components/user-action/ScrollPicker.cjs.map +0 -1
- package/dist/components/user-action/ScrollPicker.d.cts +0 -15
- package/dist/components/user-action/ScrollPicker.d.ts +0 -15
- package/dist/components/user-action/ScrollPicker.js +0 -267
- package/dist/components/user-action/ScrollPicker.js.map +0 -1
- package/dist/components/user-action/SearchBar.cjs +0 -956
- package/dist/components/user-action/SearchBar.cjs.map +0 -1
- package/dist/components/user-action/SearchBar.d.cts +0 -13
- package/dist/components/user-action/SearchBar.d.ts +0 -13
- package/dist/components/user-action/SearchBar.js +0 -920
- package/dist/components/user-action/SearchBar.js.map +0 -1
- package/dist/components/user-action/Textarea.cjs +0 -231
- package/dist/components/user-action/Textarea.cjs.map +0 -1
- package/dist/components/user-action/Textarea.d.cts +0 -41
- package/dist/components/user-action/Textarea.d.ts +0 -41
- package/dist/components/user-action/Textarea.js +0 -195
- package/dist/components/user-action/Textarea.js.map +0 -1
- package/dist/components/user-action/Tooltip.cjs +0 -139
- package/dist/components/user-action/Tooltip.cjs.map +0 -1
- package/dist/components/user-action/Tooltip.d.cts +0 -37
- package/dist/components/user-action/Tooltip.d.ts +0 -37
- package/dist/components/user-action/Tooltip.js +0 -113
- package/dist/components/user-action/Tooltip.js.map +0 -1
- package/dist/components/user-action/index.cjs +0 -4564
- package/dist/components/user-action/index.cjs.map +0 -1
- package/dist/components/user-action/index.d.cts +0 -26
- package/dist/components/user-action/index.d.ts +0 -26
- package/dist/components/user-action/index.js +0 -4503
- package/dist/components/user-action/index.js.map +0 -1
- package/dist/components/user-action/input/Input.cjs +0 -260
- package/dist/components/user-action/input/Input.cjs.map +0 -1
- package/dist/components/user-action/input/Input.d.cts +0 -37
- package/dist/components/user-action/input/Input.d.ts +0 -37
- package/dist/components/user-action/input/Input.js +0 -225
- package/dist/components/user-action/input/Input.js.map +0 -1
- package/dist/components/user-action/input/InsideLabelInput.cjs +0 -312
- package/dist/components/user-action/input/InsideLabelInput.cjs.map +0 -1
- package/dist/components/user-action/input/InsideLabelInput.d.cts +0 -20
- package/dist/components/user-action/input/InsideLabelInput.d.ts +0 -20
- package/dist/components/user-action/input/InsideLabelInput.js +0 -277
- package/dist/components/user-action/input/InsideLabelInput.js.map +0 -1
- package/dist/components/user-action/input/ToggleableInput.cjs +0 -315
- package/dist/components/user-action/input/ToggleableInput.cjs.map +0 -1
- package/dist/components/user-action/input/ToggleableInput.d.cts +0 -22
- package/dist/components/user-action/input/ToggleableInput.d.ts +0 -22
- package/dist/components/user-action/input/ToggleableInput.js +0 -280
- package/dist/components/user-action/input/ToggleableInput.js.map +0 -1
- package/dist/components/user-action/input/index.cjs +0 -403
- package/dist/components/user-action/input/index.cjs.map +0 -1
- package/dist/components/user-action/input/index.d.cts +0 -6
- package/dist/components/user-action/input/index.d.ts +0 -6
- package/dist/components/user-action/input/index.js +0 -362
- package/dist/components/user-action/input/index.js.map +0 -1
- package/dist/components/user-action/select/Select.cjs +0 -1970
- package/dist/components/user-action/select/Select.cjs.map +0 -1
- package/dist/components/user-action/select/Select.d.cts +0 -104
- package/dist/components/user-action/select/Select.d.ts +0 -104
- package/dist/components/user-action/select/Select.js +0 -1937
- package/dist/components/user-action/select/Select.js.map +0 -1
- package/dist/components/user-action/select/index.cjs +0 -1972
- package/dist/components/user-action/select/index.cjs.map +0 -1
- package/dist/components/user-action/select/index.d.cts +0 -4
- package/dist/components/user-action/select/index.d.ts +0 -4
- package/dist/components/user-action/select/index.js +0 -1937
- package/dist/components/user-action/select/index.js.map +0 -1
- package/dist/components/utils/FocusTrap.cjs +0 -252
- package/dist/components/utils/FocusTrap.cjs.map +0 -1
- package/dist/components/utils/FocusTrap.d.cts +0 -28
- package/dist/components/utils/FocusTrap.d.ts +0 -28
- package/dist/components/utils/FocusTrap.js +0 -229
- package/dist/components/utils/FocusTrap.js.map +0 -1
- package/dist/components/utils/Transition.cjs +0 -74
- package/dist/components/utils/Transition.cjs.map +0 -1
- package/dist/components/utils/Transition.d.cts +0 -26
- package/dist/components/utils/Transition.d.ts +0 -26
- package/dist/components/utils/Transition.js +0 -50
- package/dist/components/utils/Transition.js.map +0 -1
- package/dist/components/utils/index.cjs +0 -302
- package/dist/components/utils/index.cjs.map +0 -1
- package/dist/components/utils/index.d.cts +0 -4
- package/dist/components/utils/index.d.ts +0 -4
- package/dist/components/utils/index.js +0 -275
- package/dist/components/utils/index.js.map +0 -1
- package/dist/hooks/focus/index.cjs +0 -379
- package/dist/hooks/focus/index.cjs.map +0 -1
- package/dist/hooks/focus/index.d.cts +0 -6
- package/dist/hooks/focus/index.d.ts +0 -6
- package/dist/hooks/focus/index.js +0 -339
- package/dist/hooks/focus/index.js.map +0 -1
- package/dist/hooks/focus/useFocusGuards.cjs +0 -74
- package/dist/hooks/focus/useFocusGuards.cjs.map +0 -1
- package/dist/hooks/focus/useFocusGuards.d.cts +0 -3
- package/dist/hooks/focus/useFocusGuards.d.ts +0 -3
- package/dist/hooks/focus/useFocusGuards.js +0 -50
- package/dist/hooks/focus/useFocusGuards.js.map +0 -1
- package/dist/hooks/focus/useFocusManagement.cjs +0 -84
- package/dist/hooks/focus/useFocusManagement.cjs.map +0 -1
- package/dist/hooks/focus/useFocusManagement.d.cts +0 -9
- package/dist/hooks/focus/useFocusManagement.d.ts +0 -9
- package/dist/hooks/focus/useFocusManagement.js +0 -60
- package/dist/hooks/focus/useFocusManagement.js.map +0 -1
- package/dist/hooks/focus/useFocusOnceVisible.cjs +0 -60
- package/dist/hooks/focus/useFocusOnceVisible.cjs.map +0 -1
- package/dist/hooks/focus/useFocusOnceVisible.d.cts +0 -5
- package/dist/hooks/focus/useFocusOnceVisible.d.ts +0 -5
- package/dist/hooks/focus/useFocusOnceVisible.js +0 -26
- package/dist/hooks/focus/useFocusOnceVisible.js.map +0 -1
- package/dist/hooks/focus/useFocusTrap.cjs +0 -233
- package/dist/hooks/focus/useFocusTrap.cjs.map +0 -1
- package/dist/hooks/focus/useFocusTrap.d.cts +0 -16
- package/dist/hooks/focus/useFocusTrap.d.ts +0 -16
- package/dist/hooks/focus/useFocusTrap.js +0 -210
- package/dist/hooks/focus/useFocusTrap.js.map +0 -1
- package/dist/hooks/focus/useIsMounted.cjs +0 -43
- package/dist/hooks/focus/useIsMounted.cjs.map +0 -1
- package/dist/hooks/focus/useIsMounted.d.cts +0 -3
- package/dist/hooks/focus/useIsMounted.d.ts +0 -3
- package/dist/hooks/focus/useIsMounted.js +0 -20
- package/dist/hooks/focus/useIsMounted.js.map +0 -1
- package/dist/hooks/index.cjs +0 -1530
- package/dist/hooks/index.cjs.map +0 -1
- package/dist/hooks/index.d.cts +0 -18
- package/dist/hooks/index.d.ts +0 -18
- package/dist/hooks/index.js +0 -1477
- package/dist/hooks/index.js.map +0 -1
- package/dist/hooks/useDelay.cjs +0 -67
- package/dist/hooks/useDelay.cjs.map +0 -1
- package/dist/hooks/useDelay.d.cts +0 -12
- package/dist/hooks/useDelay.d.ts +0 -12
- package/dist/hooks/useDelay.js +0 -43
- package/dist/hooks/useDelay.js.map +0 -1
- package/dist/hooks/useFloatingElement.cjs +0 -162
- package/dist/hooks/useFloatingElement.cjs.map +0 -1
- package/dist/hooks/useFloatingElement.d.cts +0 -22
- package/dist/hooks/useFloatingElement.d.ts +0 -22
- package/dist/hooks/useFloatingElement.js +0 -139
- package/dist/hooks/useFloatingElement.js.map +0 -1
- package/dist/hooks/useHoverState.cjs +0 -71
- package/dist/hooks/useHoverState.cjs.map +0 -1
- package/dist/hooks/useHoverState.d.cts +0 -42
- package/dist/hooks/useHoverState.d.ts +0 -42
- package/dist/hooks/useHoverState.js +0 -47
- package/dist/hooks/useHoverState.js.map +0 -1
- package/dist/hooks/useLocalStorage.cjs +0 -97
- package/dist/hooks/useLocalStorage.cjs.map +0 -1
- package/dist/hooks/useLocalStorage.d.cts +0 -17
- package/dist/hooks/useLocalStorage.d.ts +0 -17
- package/dist/hooks/useLocalStorage.js +0 -74
- package/dist/hooks/useLocalStorage.js.map +0 -1
- package/dist/hooks/useLogOnce.cjs +0 -53
- package/dist/hooks/useLogOnce.cjs.map +0 -1
- package/dist/hooks/useLogOnce.d.cts +0 -7
- package/dist/hooks/useLogOnce.d.ts +0 -7
- package/dist/hooks/useLogOnce.js +0 -29
- package/dist/hooks/useLogOnce.js.map +0 -1
- package/dist/hooks/useOutsideClick.cjs +0 -47
- package/dist/hooks/useOutsideClick.cjs.map +0 -1
- package/dist/hooks/useOutsideClick.d.cts +0 -5
- package/dist/hooks/useOutsideClick.d.ts +0 -5
- package/dist/hooks/useOutsideClick.js +0 -23
- package/dist/hooks/useOutsideClick.js.map +0 -1
- package/dist/hooks/useOverwritableState.cjs +0 -49
- package/dist/hooks/useOverwritableState.cjs.map +0 -1
- package/dist/hooks/useOverwritableState.d.cts +0 -5
- package/dist/hooks/useOverwritableState.d.ts +0 -5
- package/dist/hooks/useOverwritableState.js +0 -25
- package/dist/hooks/useOverwritableState.js.map +0 -1
- package/dist/hooks/usePopoverPosition.cjs +0 -81
- package/dist/hooks/usePopoverPosition.cjs.map +0 -1
- package/dist/hooks/usePopoverPosition.d.cts +0 -15
- package/dist/hooks/usePopoverPosition.d.ts +0 -15
- package/dist/hooks/usePopoverPosition.js +0 -57
- package/dist/hooks/usePopoverPosition.js.map +0 -1
- package/dist/hooks/useRerender.cjs +0 -33
- package/dist/hooks/useRerender.cjs.map +0 -1
- package/dist/hooks/useRerender.d.cts +0 -5
- package/dist/hooks/useRerender.d.ts +0 -5
- package/dist/hooks/useRerender.js +0 -9
- package/dist/hooks/useRerender.js.map +0 -1
- package/dist/hooks/useResizeCallbackWrapper.cjs +0 -38
- package/dist/hooks/useResizeCallbackWrapper.cjs.map +0 -1
- package/dist/hooks/useResizeCallbackWrapper.d.cts +0 -11
- package/dist/hooks/useResizeCallbackWrapper.d.ts +0 -11
- package/dist/hooks/useResizeCallbackWrapper.js +0 -14
- package/dist/hooks/useResizeCallbackWrapper.js.map +0 -1
- package/dist/hooks/useSearch.cjs +0 -95
- package/dist/hooks/useSearch.cjs.map +0 -1
- package/dist/hooks/useSearch.d.cts +0 -22
- package/dist/hooks/useSearch.d.ts +0 -22
- package/dist/hooks/useSearch.js +0 -71
- package/dist/hooks/useSearch.js.map +0 -1
- package/dist/hooks/useValidators.cjs +0 -687
- package/dist/hooks/useValidators.cjs.map +0 -1
- package/dist/hooks/useValidators.d.cts +0 -16
- package/dist/hooks/useValidators.d.ts +0 -16
- package/dist/hooks/useValidators.js +0 -660
- package/dist/hooks/useValidators.js.map +0 -1
- package/dist/i18n/LocaleProvider.cjs +0 -202
- package/dist/i18n/LocaleProvider.cjs.map +0 -1
- package/dist/i18n/LocaleProvider.d.cts +0 -23
- package/dist/i18n/LocaleProvider.d.ts +0 -23
- package/dist/i18n/LocaleProvider.js +0 -175
- package/dist/i18n/LocaleProvider.js.map +0 -1
- package/dist/i18n/index.cjs +0 -761
- package/dist/i18n/index.cjs.map +0 -1
- package/dist/i18n/index.d.cts +0 -8
- package/dist/i18n/index.d.ts +0 -8
- package/dist/i18n/index.js +0 -727
- package/dist/i18n/index.js.map +0 -1
- package/dist/i18n/translations.cjs +0 -507
- package/dist/i18n/translations.cjs.map +0 -1
- package/dist/i18n/translations.d.cts +0 -189
- package/dist/i18n/translations.d.ts +0 -189
- package/dist/i18n/translations.js +0 -482
- package/dist/i18n/translations.js.map +0 -1
- package/dist/i18n/useHightideTranslation.cjs +0 -618
- package/dist/i18n/useHightideTranslation.cjs.map +0 -1
- package/dist/i18n/useHightideTranslation.d.cts +0 -21
- package/dist/i18n/useHightideTranslation.d.ts +0 -21
- package/dist/i18n/useHightideTranslation.js +0 -591
- package/dist/i18n/useHightideTranslation.js.map +0 -1
- package/dist/i18n/util.cjs +0 -49
- package/dist/i18n/util.cjs.map +0 -1
- package/dist/i18n/util.d.cts +0 -15
- package/dist/i18n/util.d.ts +0 -15
- package/dist/i18n/util.js +0 -23
- package/dist/i18n/util.js.map +0 -1
- package/dist/index.cjs +0 -16470
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -113
- package/dist/storybook/helper.cjs +0 -61
- package/dist/storybook/helper.cjs.map +0 -1
- package/dist/storybook/helper.d.cts +0 -17
- package/dist/storybook/helper.d.ts +0 -17
- package/dist/storybook/helper.js +0 -37
- package/dist/storybook/helper.js.map +0 -1
- package/dist/theming/index.cjs +0 -190
- package/dist/theming/index.cjs.map +0 -1
- package/dist/theming/index.d.cts +0 -3
- package/dist/theming/index.d.ts +0 -3
- package/dist/theming/index.js +0 -161
- package/dist/theming/index.js.map +0 -1
- package/dist/theming/useTheme.cjs +0 -188
- package/dist/theming/useTheme.cjs.map +0 -1
- package/dist/theming/useTheme.d.cts +0 -26
- package/dist/theming/useTheme.d.ts +0 -26
- package/dist/theming/useTheme.js +0 -161
- package/dist/theming/useTheme.js.map +0 -1
- package/dist/utils/array.cjs +0 -172
- package/dist/utils/array.cjs.map +0 -1
- package/dist/utils/array.d.cts +0 -34
- package/dist/utils/array.d.ts +0 -34
- package/dist/utils/array.js +0 -142
- package/dist/utils/array.js.map +0 -1
- package/dist/utils/bagFunctions.cjs +0 -38
- package/dist/utils/bagFunctions.cjs.map +0 -1
- package/dist/utils/bagFunctions.d.cts +0 -15
- package/dist/utils/bagFunctions.d.ts +0 -15
- package/dist/utils/bagFunctions.js +0 -14
- package/dist/utils/bagFunctions.js.map +0 -1
- package/dist/utils/builder.cjs +0 -33
- package/dist/utils/builder.cjs.map +0 -1
- package/dist/utils/builder.d.cts +0 -8
- package/dist/utils/builder.d.ts +0 -8
- package/dist/utils/builder.js +0 -9
- package/dist/utils/builder.js.map +0 -1
- package/dist/utils/date.cjs +0 -193
- package/dist/utils/date.cjs.map +0 -1
- package/dist/utils/date.d.cts +0 -30
- package/dist/utils/date.d.ts +0 -30
- package/dist/utils/date.js +0 -156
- package/dist/utils/date.js.map +0 -1
- package/dist/utils/easeFunctions.cjs +0 -63
- package/dist/utils/easeFunctions.cjs.map +0 -1
- package/dist/utils/easeFunctions.d.cts +0 -11
- package/dist/utils/easeFunctions.d.ts +0 -11
- package/dist/utils/easeFunctions.js +0 -37
- package/dist/utils/easeFunctions.js.map +0 -1
- package/dist/utils/emailValidation.cjs +0 -32
- package/dist/utils/emailValidation.cjs.map +0 -1
- package/dist/utils/emailValidation.d.cts +0 -3
- package/dist/utils/emailValidation.d.ts +0 -3
- package/dist/utils/emailValidation.js +0 -8
- package/dist/utils/emailValidation.js.map +0 -1
- package/dist/utils/index.cjs +0 -562
- package/dist/utils/index.cjs.map +0 -1
- package/dist/utils/index.d.cts +0 -16
- package/dist/utils/index.d.ts +0 -16
- package/dist/utils/index.js +0 -502
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/loopingArray.cjs +0 -96
- package/dist/utils/loopingArray.cjs.map +0 -1
- package/dist/utils/loopingArray.d.cts +0 -25
- package/dist/utils/loopingArray.d.ts +0 -25
- package/dist/utils/loopingArray.js +0 -72
- package/dist/utils/loopingArray.js.map +0 -1
- package/dist/utils/match.cjs +0 -32
- package/dist/utils/match.cjs.map +0 -1
- package/dist/utils/match.d.cts +0 -3
- package/dist/utils/match.d.ts +0 -3
- package/dist/utils/match.js +0 -8
- package/dist/utils/match.js.map +0 -1
- package/dist/utils/math.cjs +0 -33
- package/dist/utils/math.cjs.map +0 -1
- package/dist/utils/math.d.cts +0 -3
- package/dist/utils/math.d.ts +0 -3
- package/dist/utils/math.js +0 -9
- package/dist/utils/math.js.map +0 -1
- package/dist/utils/noop.cjs +0 -30
- package/dist/utils/noop.cjs.map +0 -1
- package/dist/utils/noop.d.cts +0 -3
- package/dist/utils/noop.d.ts +0 -3
- package/dist/utils/noop.js +0 -6
- package/dist/utils/noop.js.map +0 -1
- package/dist/utils/resolveSetState.cjs +0 -32
- package/dist/utils/resolveSetState.cjs.map +0 -1
- package/dist/utils/resolveSetState.d.cts +0 -5
- package/dist/utils/resolveSetState.d.ts +0 -5
- package/dist/utils/resolveSetState.js +0 -8
- package/dist/utils/resolveSetState.js.map +0 -1
- package/dist/utils/simpleSearch.cjs +0 -59
- package/dist/utils/simpleSearch.cjs.map +0 -1
- package/dist/utils/simpleSearch.d.cts +0 -50
- package/dist/utils/simpleSearch.d.ts +0 -50
- package/dist/utils/simpleSearch.js +0 -32
- package/dist/utils/simpleSearch.js.map +0 -1
- package/dist/utils/storage.cjs +0 -63
- package/dist/utils/storage.cjs.map +0 -1
- package/dist/utils/storage.d.cts +0 -16
- package/dist/utils/storage.d.ts +0 -16
- package/dist/utils/storage.js +0 -38
- package/dist/utils/storage.js.map +0 -1
- package/dist/utils/typing.cjs +0 -18
- package/dist/utils/typing.cjs.map +0 -1
- package/dist/utils/typing.d.cts +0 -8
- package/dist/utils/typing.d.ts +0 -8
- package/dist/utils/typing.js +0 -1
- package/dist/utils/typing.js.map +0 -1
- package/dist/utils/writeToClipboard.cjs +0 -33
- package/dist/utils/writeToClipboard.cjs.map +0 -1
- package/dist/utils/writeToClipboard.d.cts +0 -3
- package/dist/utils/writeToClipboard.d.ts +0 -3
- package/dist/utils/writeToClipboard.js +0 -10
- 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 };
|
package/dist/storybook/helper.js
DELETED
|
@@ -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":[]}
|
package/dist/theming/index.cjs
DELETED
|
@@ -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"]}
|
package/dist/theming/index.d.cts
DELETED
package/dist/theming/index.d.ts
DELETED
package/dist/theming/index.js
DELETED
|
@@ -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
|