@helpwave/hightide 0.1.6 → 0.1.7
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/dist/coloring/{shading.d.cts → shading.d.mts} +1 -1
- package/dist/coloring/shading.js +14 -3329
- package/dist/coloring/shading.js.map +1 -1
- package/dist/coloring/shading.mjs +47 -0
- package/dist/coloring/shading.mjs.map +1 -0
- package/dist/coloring/types.js +26 -2
- package/dist/coloring/types.js.map +1 -1
- package/dist/coloring/types.mjs +6 -0
- package/dist/coloring/{types.cjs.map → types.mjs.map} +1 -1
- package/dist/components/branding/HelpwaveBadge.js +59 -25
- package/dist/components/branding/HelpwaveBadge.js.map +1 -1
- package/dist/components/branding/HelpwaveBadge.mjs +122 -0
- package/dist/components/branding/HelpwaveBadge.mjs.map +1 -0
- package/dist/components/date/{DatePicker.d.cts → DatePicker.d.mts} +5 -5
- package/dist/components/date/DatePicker.js +119 -83
- package/dist/components/date/DatePicker.js.map +1 -1
- package/dist/components/date/{DatePicker.cjs → DatePicker.mjs} +85 -120
- package/dist/components/date/DatePicker.mjs.map +1 -0
- package/dist/components/date/{DayPicker.d.cts → DayPicker.d.mts} +1 -1
- package/dist/components/date/DayPicker.js +55 -18
- package/dist/components/date/DayPicker.js.map +1 -1
- package/dist/components/date/{DayPicker.cjs → DayPicker.mjs} +19 -57
- package/dist/components/date/DayPicker.mjs.map +1 -0
- package/dist/components/date/{TimeDisplay.d.cts → TimeDisplay.d.mts} +2 -2
- package/dist/components/date/TimeDisplay.js +35 -9
- package/dist/components/date/TimeDisplay.js.map +1 -1
- package/dist/components/date/{TimeDisplay.cjs → TimeDisplay.mjs} +10 -37
- package/dist/components/date/TimeDisplay.mjs.map +1 -0
- package/dist/components/date/TimePicker.js +57 -22
- package/dist/components/date/TimePicker.js.map +1 -1
- package/dist/components/date/{TimePicker.cjs → TimePicker.mjs} +23 -59
- package/dist/components/date/TimePicker.mjs.map +1 -0
- package/dist/components/date/{YearMonthPicker.d.cts → YearMonthPicker.d.mts} +1 -1
- package/dist/components/date/YearMonthPicker.d.ts +1 -1
- package/dist/components/date/YearMonthPicker.js +73 -38
- package/dist/components/date/YearMonthPicker.js.map +1 -1
- package/dist/components/date/{YearMonthPicker.cjs → YearMonthPicker.mjs} +39 -75
- package/dist/components/date/YearMonthPicker.mjs.map +1 -0
- package/dist/components/dialogs/{ConfirmDialog.d.cts → ConfirmDialog.d.mts} +4 -4
- package/dist/components/dialogs/ConfirmDialog.js +98 -62
- package/dist/components/dialogs/ConfirmDialog.js.map +1 -1
- package/dist/components/dialogs/{ConfirmDialog.cjs → ConfirmDialog.mjs} +63 -100
- package/dist/components/dialogs/ConfirmDialog.mjs.map +1 -0
- package/dist/components/icons-and-geometry/Avatar.js +47 -10
- package/dist/components/icons-and-geometry/Avatar.js.map +1 -1
- package/dist/components/icons-and-geometry/Avatar.mjs +81 -0
- package/dist/components/icons-and-geometry/{Avatar.cjs.map → Avatar.mjs.map} +1 -1
- package/dist/components/icons-and-geometry/Circle.js +40 -6
- package/dist/components/icons-and-geometry/Circle.js.map +1 -1
- package/dist/components/icons-and-geometry/Circle.mjs +27 -0
- package/dist/components/icons-and-geometry/{Circle.cjs.map → Circle.mjs.map} +1 -1
- package/dist/components/icons-and-geometry/Helpwave.js +38 -14
- package/dist/components/icons-and-geometry/Helpwave.js.map +1 -1
- package/dist/components/icons-and-geometry/Helpwave.mjs +75 -0
- package/dist/components/icons-and-geometry/{Helpwave.cjs.map → Helpwave.mjs.map} +1 -1
- package/dist/components/icons-and-geometry/Ring.js +74 -37
- package/dist/components/icons-and-geometry/Ring.js.map +1 -1
- package/dist/components/icons-and-geometry/{Ring.cjs → Ring.mjs} +38 -76
- package/dist/components/icons-and-geometry/{Ring.cjs.map → Ring.mjs.map} +1 -1
- package/dist/components/icons-and-geometry/Tag.js +28 -4
- package/dist/components/icons-and-geometry/Tag.js.map +1 -1
- package/dist/components/icons-and-geometry/Tag.mjs +22 -0
- package/dist/components/icons-and-geometry/{Tag.cjs.map → Tag.mjs.map} +1 -1
- package/dist/components/layout-and-navigation/BreadCrumb.js +195 -191
- package/dist/components/layout-and-navigation/BreadCrumb.js.map +1 -1
- package/dist/components/layout-and-navigation/{BreadCrumb.cjs → BreadCrumb.mjs} +191 -198
- package/dist/components/layout-and-navigation/{BreadCrumb.cjs.map → BreadCrumb.mjs.map} +1 -1
- package/dist/components/layout-and-navigation/Carousel.js +68 -34
- package/dist/components/layout-and-navigation/Carousel.js.map +1 -1
- package/dist/components/layout-and-navigation/{Carousel.cjs → Carousel.mjs} +35 -70
- package/dist/components/layout-and-navigation/{Carousel.cjs.map → Carousel.mjs.map} +1 -1
- package/dist/components/layout-and-navigation/Chip.js +43 -8
- package/dist/components/layout-and-navigation/Chip.js.map +1 -1
- package/dist/components/layout-and-navigation/Chip.mjs +69 -0
- package/dist/components/layout-and-navigation/{Chip.cjs.map → Chip.mjs.map} +1 -1
- package/dist/components/layout-and-navigation/DividerInserter.js +39 -5
- package/dist/components/layout-and-navigation/DividerInserter.js.map +1 -1
- package/dist/components/layout-and-navigation/DividerInserter.mjs +25 -0
- package/dist/components/layout-and-navigation/{DividerInserter.cjs.map → DividerInserter.mjs.map} +1 -1
- package/dist/components/layout-and-navigation/Expandable.js +52 -17
- package/dist/components/layout-and-navigation/Expandable.js.map +1 -1
- package/dist/components/layout-and-navigation/Expandable.mjs +81 -0
- package/dist/components/layout-and-navigation/Expandable.mjs.map +1 -0
- package/dist/components/layout-and-navigation/{FAQSection.d.cts → FAQSection.d.mts} +1 -1
- package/dist/components/layout-and-navigation/FAQSection.js +75 -41
- package/dist/components/layout-and-navigation/FAQSection.js.map +1 -1
- package/dist/components/layout-and-navigation/{FAQSection.cjs → FAQSection.mjs} +42 -77
- package/dist/components/layout-and-navigation/FAQSection.mjs.map +1 -0
- package/dist/components/layout-and-navigation/{MarkdownInterpreter.d.cts → MarkdownInterpreter.d.mts} +1 -1
- package/dist/components/layout-and-navigation/MarkdownInterpreter.d.ts +1 -1
- package/dist/components/layout-and-navigation/MarkdownInterpreter.js +43 -18
- package/dist/components/layout-and-navigation/MarkdownInterpreter.js.map +1 -1
- package/dist/components/layout-and-navigation/{MarkdownInterpreter.cjs → MarkdownInterpreter.mjs} +19 -45
- package/dist/components/layout-and-navigation/{MarkdownInterpreter.cjs.map → MarkdownInterpreter.mjs.map} +1 -1
- package/dist/components/layout-and-navigation/{Overlay.d.cts → Overlay.d.mts} +3 -3
- package/dist/components/layout-and-navigation/Overlay.d.ts +1 -1
- package/dist/components/layout-and-navigation/Overlay.js +91 -54
- package/dist/components/layout-and-navigation/Overlay.js.map +1 -1
- package/dist/components/layout-and-navigation/{Overlay.cjs → Overlay.mjs} +55 -93
- package/dist/components/layout-and-navigation/Overlay.mjs.map +1 -0
- package/dist/components/layout-and-navigation/{Pagination.d.cts → Pagination.d.mts} +2 -2
- package/dist/components/layout-and-navigation/Pagination.js +53 -19
- package/dist/components/layout-and-navigation/Pagination.js.map +1 -1
- package/dist/components/layout-and-navigation/Pagination.mjs +82 -0
- package/dist/components/layout-and-navigation/Pagination.mjs.map +1 -0
- package/dist/components/layout-and-navigation/{SearchableList.d.cts → SearchableList.d.mts} +2 -2
- package/dist/components/layout-and-navigation/SearchableList.js +76 -42
- package/dist/components/layout-and-navigation/SearchableList.js.map +1 -1
- package/dist/components/layout-and-navigation/SearchableList.mjs +252 -0
- package/dist/components/layout-and-navigation/SearchableList.mjs.map +1 -0
- package/dist/components/layout-and-navigation/{StepperBar.d.cts → StepperBar.d.mts} +3 -3
- package/dist/components/layout-and-navigation/StepperBar.d.ts +1 -1
- package/dist/components/layout-and-navigation/StepperBar.js +69 -34
- package/dist/components/layout-and-navigation/StepperBar.js.map +1 -1
- package/dist/components/layout-and-navigation/{StepperBar.cjs → StepperBar.mjs} +35 -71
- package/dist/components/layout-and-navigation/StepperBar.mjs.map +1 -0
- package/dist/components/layout-and-navigation/{Table.d.cts → Table.d.mts} +4 -4
- package/dist/components/layout-and-navigation/Table.d.ts +3 -3
- package/dist/components/layout-and-navigation/Table.js +111 -68
- package/dist/components/layout-and-navigation/Table.js.map +1 -1
- package/dist/components/layout-and-navigation/{Table.cjs → Table.mjs} +69 -113
- package/dist/components/layout-and-navigation/Table.mjs.map +1 -0
- package/dist/components/layout-and-navigation/{TextImage.d.cts → TextImage.d.mts} +2 -2
- package/dist/components/layout-and-navigation/TextImage.js +54 -18
- package/dist/components/layout-and-navigation/TextImage.js.map +1 -1
- package/dist/components/layout-and-navigation/TextImage.mjs +101 -0
- package/dist/components/layout-and-navigation/TextImage.mjs.map +1 -0
- package/dist/components/layout-and-navigation/Tile.js +42 -8
- package/dist/components/layout-and-navigation/Tile.js.map +1 -1
- package/dist/components/layout-and-navigation/Tile.mjs +23 -0
- package/dist/components/layout-and-navigation/{Tile.cjs.map → Tile.mjs.map} +1 -1
- package/dist/components/layout-and-navigation/VerticalDivider.js +33 -9
- package/dist/components/layout-and-navigation/VerticalDivider.js.map +1 -1
- package/dist/components/layout-and-navigation/VerticalDivider.mjs +56 -0
- package/dist/components/layout-and-navigation/{VerticalDivider.cjs.map → VerticalDivider.mjs.map} +1 -1
- package/dist/components/loading-states/{ErrorComponent.d.cts → ErrorComponent.d.mts} +2 -2
- package/dist/components/loading-states/ErrorComponent.js +46 -12
- package/dist/components/loading-states/ErrorComponent.js.map +1 -1
- package/dist/components/loading-states/ErrorComponent.mjs +68 -0
- package/dist/components/loading-states/ErrorComponent.mjs.map +1 -0
- package/dist/components/loading-states/{LoadingAndErrorComponent.d.cts → LoadingAndErrorComponent.d.mts} +5 -5
- package/dist/components/loading-states/LoadingAndErrorComponent.d.ts +1 -1
- package/dist/components/loading-states/LoadingAndErrorComponent.js +68 -34
- package/dist/components/loading-states/LoadingAndErrorComponent.js.map +1 -1
- package/dist/components/loading-states/LoadingAndErrorComponent.mjs +194 -0
- package/dist/components/loading-states/LoadingAndErrorComponent.mjs.map +1 -0
- package/dist/components/loading-states/{LoadingAnimation.d.cts → LoadingAnimation.d.mts} +2 -2
- package/dist/components/loading-states/LoadingAnimation.js +59 -23
- package/dist/components/loading-states/LoadingAnimation.js.map +1 -1
- package/dist/components/loading-states/LoadingAnimation.mjs +139 -0
- package/dist/components/loading-states/LoadingAnimation.mjs.map +1 -0
- package/dist/components/loading-states/{LoadingButton.d.cts → LoadingButton.d.mts} +1 -1
- package/dist/components/loading-states/LoadingButton.js +62 -28
- package/dist/components/loading-states/LoadingButton.js.map +1 -1
- package/dist/components/loading-states/{LoadingButton.cjs → LoadingButton.mjs} +29 -64
- package/dist/components/loading-states/LoadingButton.mjs.map +1 -0
- package/dist/components/loading-states/ProgressIndicator.js +30 -6
- package/dist/components/loading-states/ProgressIndicator.js.map +1 -1
- package/dist/components/loading-states/ProgressIndicator.mjs +59 -0
- package/dist/components/loading-states/{ProgressIndicator.cjs.map → ProgressIndicator.mjs.map} +1 -1
- package/dist/components/modals/{ConfirmModal.d.cts → ConfirmModal.d.mts} +4 -4
- package/dist/components/modals/ConfirmModal.js +99 -63
- package/dist/components/modals/ConfirmModal.js.map +1 -1
- package/dist/components/modals/{ConfirmModal.cjs → ConfirmModal.mjs} +64 -101
- package/dist/components/modals/ConfirmModal.mjs.map +1 -0
- package/dist/components/modals/{DiscardChangesModal.d.cts → DiscardChangesModal.d.mts} +5 -5
- package/dist/components/modals/DiscardChangesModal.js +101 -65
- package/dist/components/modals/DiscardChangesModal.js.map +1 -1
- package/dist/components/modals/{DiscardChangesModal.cjs → DiscardChangesModal.mjs} +66 -103
- package/dist/components/modals/DiscardChangesModal.mjs.map +1 -0
- package/dist/components/modals/{InputModal.d.cts → InputModal.d.mts} +7 -7
- package/dist/components/modals/InputModal.js +124 -88
- package/dist/components/modals/InputModal.js.map +1 -1
- package/dist/components/modals/{InputModal.cjs → InputModal.mjs} +89 -126
- package/dist/components/modals/InputModal.mjs.map +1 -0
- package/dist/components/modals/{LanguageModal.d.cts → LanguageModal.d.mts} +3 -3
- package/dist/components/modals/LanguageModal.js +130 -95
- package/dist/components/modals/LanguageModal.js.map +1 -1
- package/dist/components/modals/{LanguageModal.cjs → LanguageModal.mjs} +95 -133
- package/dist/components/modals/LanguageModal.mjs.map +1 -0
- package/dist/components/modals/{ThemeModal.d.cts → ThemeModal.d.mts} +4 -4
- package/dist/components/modals/ThemeModal.js +134 -99
- package/dist/components/modals/ThemeModal.js.map +1 -1
- package/dist/components/modals/{ThemeModal.cjs → ThemeModal.mjs} +99 -137
- package/dist/components/modals/ThemeModal.mjs.map +1 -0
- package/dist/components/properties/{CheckboxProperty.d.cts → CheckboxProperty.d.mts} +3 -3
- package/dist/components/properties/CheckboxProperty.js +87 -53
- package/dist/components/properties/CheckboxProperty.js.map +1 -1
- package/dist/components/properties/{CheckboxProperty.cjs → CheckboxProperty.mjs} +54 -89
- package/dist/components/properties/CheckboxProperty.mjs.map +1 -0
- package/dist/components/properties/{DateProperty.d.cts → DateProperty.d.mts} +3 -3
- package/dist/components/properties/DateProperty.js +94 -60
- package/dist/components/properties/DateProperty.js.map +1 -1
- package/dist/components/properties/{DateProperty.cjs → DateProperty.mjs} +61 -96
- package/dist/components/properties/DateProperty.mjs.map +1 -0
- package/dist/components/properties/{MultiSelectProperty.d.cts → MultiSelectProperty.d.mts} +5 -5
- package/dist/components/properties/MultiSelectProperty.js +157 -123
- package/dist/components/properties/MultiSelectProperty.js.map +1 -1
- package/dist/components/properties/{MultiSelectProperty.cjs → MultiSelectProperty.mjs} +124 -159
- package/dist/components/properties/MultiSelectProperty.mjs.map +1 -0
- package/dist/components/properties/{NumberProperty.d.cts → NumberProperty.d.mts} +3 -3
- package/dist/components/properties/NumberProperty.js +95 -61
- package/dist/components/properties/NumberProperty.js.map +1 -1
- package/dist/components/properties/{NumberProperty.cjs → NumberProperty.mjs} +62 -97
- package/dist/components/properties/NumberProperty.mjs.map +1 -0
- package/dist/components/properties/{PropertyBase.d.cts → PropertyBase.d.mts} +2 -2
- package/dist/components/properties/PropertyBase.js +63 -29
- package/dist/components/properties/PropertyBase.js.map +1 -1
- package/dist/components/properties/PropertyBase.mjs +188 -0
- package/dist/components/properties/PropertyBase.mjs.map +1 -0
- package/dist/components/properties/{SelectProperty.d.cts → SelectProperty.d.mts} +5 -5
- package/dist/components/properties/SelectProperty.js +119 -86
- package/dist/components/properties/SelectProperty.js.map +1 -1
- package/dist/components/properties/{SelectProperty.cjs → SelectProperty.mjs} +86 -122
- package/dist/components/properties/SelectProperty.mjs.map +1 -0
- package/dist/components/properties/{TextProperty.d.cts → TextProperty.d.mts} +3 -3
- package/dist/components/properties/TextProperty.js +92 -58
- package/dist/components/properties/TextProperty.js.map +1 -1
- package/dist/components/properties/{TextProperty.cjs → TextProperty.mjs} +59 -94
- package/dist/components/properties/TextProperty.mjs.map +1 -0
- package/dist/components/user-action/Button.js +67 -28
- package/dist/components/user-action/Button.js.map +1 -1
- package/dist/components/user-action/{Button.cjs → Button.mjs} +29 -69
- package/dist/components/user-action/{Button.cjs.map → Button.mjs.map} +1 -1
- package/dist/components/user-action/{Checkbox.d.cts → Checkbox.d.mts} +1 -1
- package/dist/components/user-action/Checkbox.js +58 -23
- package/dist/components/user-action/Checkbox.js.map +1 -1
- package/dist/components/user-action/Checkbox.mjs +122 -0
- package/dist/components/user-action/Checkbox.mjs.map +1 -0
- package/dist/components/user-action/{DateAndTimePicker.d.cts → DateAndTimePicker.d.mts} +7 -7
- package/dist/components/user-action/DateAndTimePicker.js +142 -107
- package/dist/components/user-action/DateAndTimePicker.js.map +1 -1
- package/dist/components/user-action/{DateAndTimePicker.cjs → DateAndTimePicker.mjs} +109 -143
- package/dist/components/user-action/DateAndTimePicker.mjs.map +1 -0
- package/dist/components/user-action/{Input.d.cts → Input.d.mts} +1 -1
- package/dist/components/user-action/Input.js +62 -26
- package/dist/components/user-action/Input.js.map +1 -1
- package/dist/components/user-action/Input.mjs +186 -0
- package/dist/components/user-action/Input.mjs.map +1 -0
- package/dist/components/user-action/Label.js +39 -5
- package/dist/components/user-action/Label.js.map +1 -1
- package/dist/components/user-action/Label.mjs +21 -0
- package/dist/components/user-action/{Label.cjs.map → Label.mjs.map} +1 -1
- package/dist/components/user-action/Menu.js +54 -19
- package/dist/components/user-action/Menu.js.map +1 -1
- package/dist/components/user-action/Menu.mjs +127 -0
- package/dist/components/user-action/Menu.mjs.map +1 -0
- package/dist/components/user-action/{MultiSelect.d.cts → MultiSelect.d.mts} +3 -3
- package/dist/components/user-action/MultiSelect.js +118 -84
- package/dist/components/user-action/MultiSelect.js.map +1 -1
- package/dist/components/user-action/{MultiSelect.cjs → MultiSelect.mjs} +85 -120
- package/dist/components/user-action/MultiSelect.mjs.map +1 -0
- package/dist/components/user-action/ScrollPicker.js +50 -16
- package/dist/components/user-action/ScrollPicker.js.map +1 -1
- package/dist/components/user-action/{ScrollPicker.cjs → ScrollPicker.mjs} +17 -52
- package/dist/components/user-action/ScrollPicker.mjs.map +1 -0
- package/dist/components/user-action/{Select.d.cts → Select.d.mts} +2 -2
- package/dist/components/user-action/Select.d.ts +1 -1
- package/dist/components/user-action/Select.js +88 -53
- package/dist/components/user-action/Select.js.map +1 -1
- package/dist/components/user-action/{Select.cjs → Select.mjs} +53 -91
- package/dist/components/user-action/Select.mjs.map +1 -0
- package/dist/components/user-action/{Textarea.d.cts → Textarea.d.mts} +1 -1
- package/dist/components/user-action/Textarea.js +60 -25
- package/dist/components/user-action/Textarea.js.map +1 -1
- package/dist/components/user-action/Textarea.mjs +163 -0
- package/dist/components/user-action/Textarea.mjs.map +1 -0
- package/dist/components/user-action/ToggleableInput.js +61 -26
- package/dist/components/user-action/ToggleableInput.js.map +1 -1
- package/dist/components/user-action/ToggleableInput.mjs +156 -0
- package/dist/components/user-action/ToggleableInput.mjs.map +1 -0
- package/dist/components/user-action/Tooltip.js +41 -15
- package/dist/components/user-action/Tooltip.js.map +1 -1
- package/dist/components/user-action/{Tooltip.cjs → Tooltip.mjs} +16 -43
- package/dist/components/user-action/Tooltip.mjs.map +1 -0
- package/dist/css/globals.css +33 -24
- package/dist/css/uncompiled/globals.css +19 -7
- package/dist/hooks/useHoverState.js +31 -7
- package/dist/hooks/useHoverState.js.map +1 -1
- package/dist/hooks/useHoverState.mjs +47 -0
- package/dist/hooks/{useHoverState.cjs.map → useHoverState.mjs.map} +1 -1
- package/dist/hooks/useLocalStorage.js +31 -7
- package/dist/hooks/useLocalStorage.js.map +1 -1
- package/dist/hooks/useLocalStorage.mjs +58 -0
- package/dist/hooks/{useLocalStorage.cjs.map → useLocalStorage.mjs.map} +1 -1
- package/dist/hooks/useOutsideClick.js +28 -4
- package/dist/hooks/useOutsideClick.js.map +1 -1
- package/dist/hooks/useOutsideClick.mjs +23 -0
- package/dist/hooks/{useOutsideClick.cjs.map → useOutsideClick.mjs.map} +1 -1
- package/dist/hooks/useSaveDelay.js +30 -6
- package/dist/hooks/useSaveDelay.js.map +1 -1
- package/dist/hooks/useSaveDelay.mjs +43 -0
- package/dist/hooks/{useSaveDelay.cjs.map → useSaveDelay.mjs.map} +1 -1
- package/dist/{index.d.cts → index.d.mts} +78 -78
- package/dist/index.js +1038 -885
- package/dist/index.js.map +1 -1
- package/dist/{index.cjs → index.mjs} +886 -1038
- package/dist/index.mjs.map +1 -0
- package/dist/localization/{LanguageProvider.d.cts → LanguageProvider.d.mts} +1 -1
- package/dist/localization/LanguageProvider.js +43 -16
- package/dist/localization/LanguageProvider.js.map +1 -1
- package/dist/localization/{LanguageProvider.cjs → LanguageProvider.mjs} +17 -45
- package/dist/localization/LanguageProvider.mjs.map +1 -0
- package/dist/localization/{useTranslation.d.cts → useTranslation.d.mts} +1 -1
- package/dist/localization/useTranslation.js +33 -7
- package/dist/localization/useTranslation.js.map +1 -1
- package/dist/localization/useTranslation.mjs +42 -0
- package/dist/localization/useTranslation.mjs.map +1 -0
- package/dist/localization/util.js +26 -2
- package/dist/localization/util.js.map +1 -1
- package/dist/localization/util.mjs +16 -0
- package/dist/localization/{util.cjs.map → util.mjs.map} +1 -1
- package/dist/theming/{useTheme.d.cts → useTheme.d.mts} +2 -2
- package/dist/theming/useTheme.js +37 -10
- package/dist/theming/useTheme.js.map +1 -1
- package/dist/theming/useTheme.mjs +48 -0
- package/dist/theming/useTheme.mjs.map +1 -0
- package/dist/util/array.js +32 -2
- package/dist/util/array.js.map +1 -1
- package/dist/util/{array.cjs → array.mjs} +3 -34
- package/dist/util/{array.cjs.map → array.mjs.map} +1 -1
- package/dist/util/builder.js +26 -2
- package/dist/util/builder.js.map +1 -1
- package/dist/util/builder.mjs +9 -0
- package/dist/util/{builder.cjs.map → builder.mjs.map} +1 -1
- package/dist/util/date.js +39 -2
- package/dist/util/date.js.map +1 -1
- package/dist/util/{date.cjs → date.mjs} +3 -41
- package/dist/util/date.mjs.map +1 -0
- package/dist/util/easeFunctions.js +28 -2
- package/dist/util/easeFunctions.js.map +1 -1
- package/dist/util/easeFunctions.mjs +36 -0
- package/dist/util/easeFunctions.mjs.map +1 -0
- package/dist/util/emailValidation.js +26 -2
- package/dist/util/emailValidation.js.map +1 -1
- package/dist/util/emailValidation.mjs +8 -0
- package/dist/util/{emailValidation.cjs.map → emailValidation.mjs.map} +1 -1
- package/dist/util/loopingArray.js +26 -2
- package/dist/util/loopingArray.js.map +1 -1
- package/dist/util/{loopingArray.cjs → loopingArray.mjs} +3 -28
- package/dist/util/{loopingArray.cjs.map → loopingArray.mjs.map} +1 -1
- package/dist/util/math.js +26 -2
- package/dist/util/math.js.map +1 -1
- package/dist/util/math.mjs +8 -0
- package/dist/util/{math.cjs.map → math.mjs.map} +1 -1
- package/dist/util/news.d.mts +101 -0
- package/dist/util/news.d.ts +54 -54
- package/dist/util/news.js +39 -12
- package/dist/util/news.js.map +1 -1
- package/dist/util/news.mjs +49 -0
- package/dist/util/news.mjs.map +1 -0
- package/dist/util/noop.d.mts +3 -0
- package/dist/util/noop.d.ts +1 -1
- package/dist/util/noop.js +26 -2
- package/dist/util/noop.js.map +1 -1
- package/dist/util/noop.mjs +6 -0
- package/dist/util/noop.mjs.map +1 -0
- package/dist/util/simpleSearch.js +29 -2
- package/dist/util/simpleSearch.js.map +1 -1
- package/dist/util/simpleSearch.mjs +26 -0
- package/dist/util/{simpleSearch.cjs.map → simpleSearch.mjs.map} +1 -1
- package/dist/util/storage.js +27 -2
- package/dist/util/storage.js.map +1 -1
- package/dist/util/storage.mjs +38 -0
- package/dist/util/{storage.cjs.map → storage.mjs.map} +1 -1
- package/dist/util/types.js +17 -0
- package/dist/util/types.js.map +1 -1
- package/dist/util/types.mjs +1 -0
- package/dist/util/types.mjs.map +1 -0
- package/package.json +5 -7
- package/dist/coloring/shading.cjs +0 -3402
- package/dist/coloring/shading.cjs.map +0 -1
- package/dist/coloring/types.cjs +0 -31
- package/dist/components/branding/HelpwaveBadge.cjs +0 -157
- package/dist/components/branding/HelpwaveBadge.cjs.map +0 -1
- package/dist/components/date/DatePicker.cjs.map +0 -1
- package/dist/components/date/DayPicker.cjs.map +0 -1
- package/dist/components/date/TimeDisplay.cjs.map +0 -1
- package/dist/components/date/TimePicker.cjs.map +0 -1
- package/dist/components/date/YearMonthPicker.cjs.map +0 -1
- package/dist/components/dialogs/ConfirmDialog.cjs.map +0 -1
- package/dist/components/icons-and-geometry/Avatar.cjs +0 -119
- package/dist/components/icons-and-geometry/Circle.cjs +0 -62
- package/dist/components/icons-and-geometry/Helpwave.cjs +0 -100
- package/dist/components/icons-and-geometry/Tag.cjs +0 -47
- package/dist/components/layout-and-navigation/Chip.cjs +0 -105
- package/dist/components/layout-and-navigation/DividerInserter.cjs +0 -60
- package/dist/components/layout-and-navigation/Expandable.cjs +0 -117
- package/dist/components/layout-and-navigation/Expandable.cjs.map +0 -1
- package/dist/components/layout-and-navigation/FAQSection.cjs.map +0 -1
- package/dist/components/layout-and-navigation/Overlay.cjs.map +0 -1
- package/dist/components/layout-and-navigation/Pagination.cjs +0 -117
- package/dist/components/layout-and-navigation/Pagination.cjs.map +0 -1
- package/dist/components/layout-and-navigation/SearchableList.cjs +0 -287
- package/dist/components/layout-and-navigation/SearchableList.cjs.map +0 -1
- package/dist/components/layout-and-navigation/StepperBar.cjs.map +0 -1
- package/dist/components/layout-and-navigation/Table.cjs.map +0 -1
- package/dist/components/layout-and-navigation/TextImage.cjs +0 -138
- package/dist/components/layout-and-navigation/TextImage.cjs.map +0 -1
- package/dist/components/layout-and-navigation/Tile.cjs +0 -58
- package/dist/components/layout-and-navigation/VerticalDivider.cjs +0 -81
- package/dist/components/loading-states/ErrorComponent.cjs +0 -103
- package/dist/components/loading-states/ErrorComponent.cjs.map +0 -1
- package/dist/components/loading-states/LoadingAndErrorComponent.cjs +0 -229
- package/dist/components/loading-states/LoadingAndErrorComponent.cjs.map +0 -1
- package/dist/components/loading-states/LoadingAnimation.cjs +0 -176
- package/dist/components/loading-states/LoadingAnimation.cjs.map +0 -1
- package/dist/components/loading-states/LoadingButton.cjs.map +0 -1
- package/dist/components/loading-states/ProgressIndicator.cjs +0 -84
- package/dist/components/modals/ConfirmModal.cjs.map +0 -1
- package/dist/components/modals/DiscardChangesModal.cjs.map +0 -1
- package/dist/components/modals/InputModal.cjs.map +0 -1
- package/dist/components/modals/LanguageModal.cjs.map +0 -1
- package/dist/components/modals/ThemeModal.cjs.map +0 -1
- package/dist/components/properties/CheckboxProperty.cjs.map +0 -1
- package/dist/components/properties/DateProperty.cjs.map +0 -1
- package/dist/components/properties/MultiSelectProperty.cjs.map +0 -1
- package/dist/components/properties/NumberProperty.cjs.map +0 -1
- package/dist/components/properties/PropertyBase.cjs +0 -223
- package/dist/components/properties/PropertyBase.cjs.map +0 -1
- package/dist/components/properties/SelectProperty.cjs.map +0 -1
- package/dist/components/properties/TextProperty.cjs.map +0 -1
- package/dist/components/user-action/Checkbox.cjs +0 -158
- package/dist/components/user-action/Checkbox.cjs.map +0 -1
- package/dist/components/user-action/DateAndTimePicker.cjs.map +0 -1
- package/dist/components/user-action/Input.cjs +0 -223
- package/dist/components/user-action/Input.cjs.map +0 -1
- package/dist/components/user-action/Label.cjs +0 -56
- package/dist/components/user-action/Menu.cjs +0 -163
- package/dist/components/user-action/Menu.cjs.map +0 -1
- package/dist/components/user-action/MultiSelect.cjs.map +0 -1
- package/dist/components/user-action/ScrollPicker.cjs.map +0 -1
- package/dist/components/user-action/Select.cjs.map +0 -1
- package/dist/components/user-action/Textarea.cjs +0 -199
- package/dist/components/user-action/Textarea.cjs.map +0 -1
- package/dist/components/user-action/ToggleableInput.cjs +0 -192
- package/dist/components/user-action/ToggleableInput.cjs.map +0 -1
- package/dist/components/user-action/Tooltip.cjs.map +0 -1
- package/dist/hooks/useHoverState.cjs +0 -72
- package/dist/hooks/useLocalStorage.cjs +0 -83
- package/dist/hooks/useOutsideClick.cjs +0 -48
- package/dist/hooks/useSaveDelay.cjs +0 -68
- package/dist/index.cjs.map +0 -1
- package/dist/localization/LanguageProvider.cjs.map +0 -1
- package/dist/localization/useTranslation.cjs +0 -69
- package/dist/localization/useTranslation.cjs.map +0 -1
- package/dist/localization/util.cjs +0 -41
- package/dist/theming/useTheme.cjs +0 -76
- package/dist/theming/useTheme.cjs.map +0 -1
- package/dist/util/builder.cjs +0 -34
- package/dist/util/date.cjs.map +0 -1
- package/dist/util/easeFunctions.cjs +0 -63
- package/dist/util/easeFunctions.cjs.map +0 -1
- package/dist/util/emailValidation.cjs +0 -33
- package/dist/util/math.cjs +0 -33
- package/dist/util/news.cjs +0 -77
- package/dist/util/news.cjs.map +0 -1
- package/dist/util/news.d.cts +0 -101
- package/dist/util/noop.cjs +0 -31
- package/dist/util/noop.cjs.map +0 -1
- package/dist/util/noop.d.cts +0 -3
- package/dist/util/simpleSearch.cjs +0 -54
- package/dist/util/storage.cjs +0 -64
- package/dist/util/types.cjs +0 -19
- package/dist/util/types.cjs.map +0 -1
- /package/dist/coloring/{types.d.cts → types.d.mts} +0 -0
- /package/dist/components/branding/{HelpwaveBadge.d.cts → HelpwaveBadge.d.mts} +0 -0
- /package/dist/components/date/{TimePicker.d.cts → TimePicker.d.mts} +0 -0
- /package/dist/components/icons-and-geometry/{Avatar.d.cts → Avatar.d.mts} +0 -0
- /package/dist/components/icons-and-geometry/{Circle.d.cts → Circle.d.mts} +0 -0
- /package/dist/components/icons-and-geometry/{Helpwave.d.cts → Helpwave.d.mts} +0 -0
- /package/dist/components/icons-and-geometry/{Ring.d.cts → Ring.d.mts} +0 -0
- /package/dist/components/icons-and-geometry/{Tag.d.cts → Tag.d.mts} +0 -0
- /package/dist/components/layout-and-navigation/{BreadCrumb.d.cts → BreadCrumb.d.mts} +0 -0
- /package/dist/components/layout-and-navigation/{Carousel.d.cts → Carousel.d.mts} +0 -0
- /package/dist/components/layout-and-navigation/{Chip.d.cts → Chip.d.mts} +0 -0
- /package/dist/components/layout-and-navigation/{DividerInserter.d.cts → DividerInserter.d.mts} +0 -0
- /package/dist/components/layout-and-navigation/{Expandable.d.cts → Expandable.d.mts} +0 -0
- /package/dist/components/layout-and-navigation/{Tile.d.cts → Tile.d.mts} +0 -0
- /package/dist/components/layout-and-navigation/{VerticalDivider.d.cts → VerticalDivider.d.mts} +0 -0
- /package/dist/components/loading-states/{ProgressIndicator.d.cts → ProgressIndicator.d.mts} +0 -0
- /package/dist/components/user-action/{Button.d.cts → Button.d.mts} +0 -0
- /package/dist/components/user-action/{Label.d.cts → Label.d.mts} +0 -0
- /package/dist/components/user-action/{Menu.d.cts → Menu.d.mts} +0 -0
- /package/dist/components/user-action/{ScrollPicker.d.cts → ScrollPicker.d.mts} +0 -0
- /package/dist/components/user-action/{ToggleableInput.d.cts → ToggleableInput.d.mts} +0 -0
- /package/dist/components/user-action/{Tooltip.d.cts → Tooltip.d.mts} +0 -0
- /package/dist/hooks/{useHoverState.d.cts → useHoverState.d.mts} +0 -0
- /package/dist/hooks/{useLocalStorage.d.cts → useLocalStorage.d.mts} +0 -0
- /package/dist/hooks/{useOutsideClick.d.cts → useOutsideClick.d.mts} +0 -0
- /package/dist/hooks/{useSaveDelay.d.cts → useSaveDelay.d.mts} +0 -0
- /package/dist/localization/{util.d.cts → util.d.mts} +0 -0
- /package/dist/util/{array.d.cts → array.d.mts} +0 -0
- /package/dist/util/{builder.d.cts → builder.d.mts} +0 -0
- /package/dist/util/{date.d.cts → date.d.mts} +0 -0
- /package/dist/util/{easeFunctions.d.cts → easeFunctions.d.mts} +0 -0
- /package/dist/util/{emailValidation.d.cts → emailValidation.d.mts} +0 -0
- /package/dist/util/{loopingArray.d.cts → loopingArray.d.mts} +0 -0
- /package/dist/util/{math.d.cts → math.d.mts} +0 -0
- /package/dist/util/{simpleSearch.d.cts → simpleSearch.d.mts} +0 -0
- /package/dist/util/{storage.d.cts → storage.d.mts} +0 -0
- /package/dist/util/{types.d.cts → types.d.mts} +0 -0
|
@@ -1,12 +1,47 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/modals/InputModal.tsx
|
|
30
|
+
var InputModal_exports = {};
|
|
31
|
+
__export(InputModal_exports, {
|
|
32
|
+
InputModal: () => InputModal
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(InputModal_exports);
|
|
35
|
+
|
|
1
36
|
// src/components/user-action/Input.tsx
|
|
2
|
-
|
|
3
|
-
|
|
37
|
+
var import_react2 = require("react");
|
|
38
|
+
var import_clsx2 = __toESM(require("clsx"));
|
|
4
39
|
|
|
5
40
|
// src/hooks/useSaveDelay.ts
|
|
6
|
-
|
|
41
|
+
var import_react = require("react");
|
|
7
42
|
function useSaveDelay(setNotificationStatus, delay) {
|
|
8
|
-
const [updateTimer, setUpdateTimer] = useState(void 0);
|
|
9
|
-
const [notificationTimer, setNotificationTimer] = useState(void 0);
|
|
43
|
+
const [updateTimer, setUpdateTimer] = (0, import_react.useState)(void 0);
|
|
44
|
+
const [notificationTimer, setNotificationTimer] = (0, import_react.useState)(void 0);
|
|
10
45
|
const restartTimer = (onSave) => {
|
|
11
46
|
clearTimeout(updateTimer);
|
|
12
47
|
setUpdateTimer(setTimeout(() => {
|
|
@@ -33,7 +68,7 @@ function useSaveDelay(setNotificationStatus, delay) {
|
|
|
33
68
|
setNotificationStatus(false);
|
|
34
69
|
}
|
|
35
70
|
};
|
|
36
|
-
useEffect(() => {
|
|
71
|
+
(0, import_react.useEffect)(() => {
|
|
37
72
|
return () => {
|
|
38
73
|
clearTimeout(updateTimer);
|
|
39
74
|
clearTimeout(notificationTimer);
|
|
@@ -46,8 +81,8 @@ function useSaveDelay(setNotificationStatus, delay) {
|
|
|
46
81
|
var noop = () => void 0;
|
|
47
82
|
|
|
48
83
|
// src/components/user-action/Label.tsx
|
|
49
|
-
|
|
50
|
-
|
|
84
|
+
var import_clsx = __toESM(require("clsx"));
|
|
85
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
51
86
|
var styleMapping = {
|
|
52
87
|
labelSmall: "textstyle-label-sm",
|
|
53
88
|
labelMedium: "textstyle-label-md",
|
|
@@ -60,11 +95,11 @@ var Label = ({
|
|
|
60
95
|
className,
|
|
61
96
|
...props
|
|
62
97
|
}) => {
|
|
63
|
-
return /* @__PURE__ */ jsx("label", { ...props, className:
|
|
98
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("label", { ...props, className: (0, import_clsx.default)(styleMapping[labelType], className), children: children ? children : name });
|
|
64
99
|
};
|
|
65
100
|
|
|
66
101
|
// src/components/user-action/Input.tsx
|
|
67
|
-
|
|
102
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
68
103
|
var Input = ({
|
|
69
104
|
id,
|
|
70
105
|
type = "text",
|
|
@@ -84,15 +119,15 @@ var Input = ({
|
|
|
84
119
|
restartTimer,
|
|
85
120
|
clearUpdateTimer
|
|
86
121
|
} = useSaveDelay(() => void 0, 3e3);
|
|
87
|
-
const ref = useRef(null);
|
|
88
|
-
|
|
122
|
+
const ref = (0, import_react2.useRef)(null);
|
|
123
|
+
(0, import_react2.useEffect)(() => {
|
|
89
124
|
if (autoFocus) {
|
|
90
125
|
ref.current?.focus();
|
|
91
126
|
}
|
|
92
127
|
}, [autoFocus]);
|
|
93
|
-
return /* @__PURE__ */ jsxs("div", { className:
|
|
94
|
-
label && /* @__PURE__ */
|
|
95
|
-
/* @__PURE__ */
|
|
128
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: (0, import_clsx2.default)({ "w-full": expanded }, containerClassName), children: [
|
|
129
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Label, { ...label, htmlFor: id, className: (0, import_clsx2.default)("mb-1", label.className) }),
|
|
130
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
96
131
|
"input",
|
|
97
132
|
{
|
|
98
133
|
ref,
|
|
@@ -125,7 +160,7 @@ var Input = ({
|
|
|
125
160
|
)
|
|
126
161
|
] });
|
|
127
162
|
};
|
|
128
|
-
var FormInput = forwardRef(function FormInput2({
|
|
163
|
+
var FormInput = (0, import_react2.forwardRef)(function FormInput2({
|
|
129
164
|
id,
|
|
130
165
|
labelText,
|
|
131
166
|
errorText,
|
|
@@ -136,13 +171,13 @@ var FormInput = forwardRef(function FormInput2({
|
|
|
136
171
|
required,
|
|
137
172
|
...restProps
|
|
138
173
|
}, ref) {
|
|
139
|
-
const input = /* @__PURE__ */
|
|
174
|
+
const input = /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
140
175
|
"input",
|
|
141
176
|
{
|
|
142
177
|
ref,
|
|
143
178
|
id,
|
|
144
179
|
...restProps,
|
|
145
|
-
className:
|
|
180
|
+
className: (0, import_clsx2.default)(
|
|
146
181
|
{
|
|
147
182
|
"focus:border-primary focus:ring-primary": !errorText,
|
|
148
183
|
"focus:border-negative focus:ring-negative text-negative": !!errorText
|
|
@@ -151,19 +186,19 @@ var FormInput = forwardRef(function FormInput2({
|
|
|
151
186
|
)
|
|
152
187
|
}
|
|
153
188
|
);
|
|
154
|
-
return /* @__PURE__ */ jsxs("div", { className:
|
|
155
|
-
labelText && /* @__PURE__ */ jsxs("label", { htmlFor: id, className:
|
|
189
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: (0, import_clsx2.default)("flex flex-col gap-y-1", containerClassName), children: [
|
|
190
|
+
labelText && /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("label", { htmlFor: id, className: (0, import_clsx2.default)("textstyle-label-md", labelClassName), children: [
|
|
156
191
|
labelText,
|
|
157
|
-
required && /* @__PURE__ */
|
|
192
|
+
required && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "text-primary font-bold", children: "*" })
|
|
158
193
|
] }),
|
|
159
194
|
input,
|
|
160
|
-
errorText && /* @__PURE__ */
|
|
195
|
+
errorText && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("label", { htmlFor: id, className: (0, import_clsx2.default)("text-negative", errorClassName), children: errorText })
|
|
161
196
|
] });
|
|
162
197
|
});
|
|
163
198
|
|
|
164
199
|
// src/components/user-action/Button.tsx
|
|
165
|
-
|
|
166
|
-
|
|
200
|
+
var import_clsx3 = __toESM(require("clsx"));
|
|
201
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
167
202
|
var paddingMapping = {
|
|
168
203
|
small: "btn-sm",
|
|
169
204
|
medium: "btn-md",
|
|
@@ -207,25 +242,25 @@ var SolidButton = ({
|
|
|
207
242
|
negative: "text-button-solid-negative-icon",
|
|
208
243
|
neutral: "text-button-solid-neutral-icon"
|
|
209
244
|
}[color];
|
|
210
|
-
return /* @__PURE__ */
|
|
245
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
211
246
|
"button",
|
|
212
247
|
{
|
|
213
248
|
onClick: disabled ? void 0 : onClick,
|
|
214
249
|
disabled: disabled || onClick === void 0,
|
|
215
|
-
className:
|
|
250
|
+
className: (0, import_clsx3.default)(
|
|
216
251
|
{
|
|
217
252
|
"text-disabled-text bg-disabled-background cursor-not-allowed": disabled,
|
|
218
|
-
[
|
|
253
|
+
[(0, import_clsx3.default)(colorClasses, "hover:brightness-90")]: !disabled
|
|
219
254
|
},
|
|
220
255
|
ButtonUtil.paddingMapping[size],
|
|
221
256
|
className
|
|
222
257
|
),
|
|
223
258
|
...restProps,
|
|
224
259
|
children: [
|
|
225
|
-
startIcon && /* @__PURE__ */
|
|
260
|
+
startIcon && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
226
261
|
"span",
|
|
227
262
|
{
|
|
228
|
-
className:
|
|
263
|
+
className: (0, import_clsx3.default)({
|
|
229
264
|
[iconColorClasses]: !disabled,
|
|
230
265
|
[`text-disabled-icon`]: disabled
|
|
231
266
|
}),
|
|
@@ -233,10 +268,10 @@ var SolidButton = ({
|
|
|
233
268
|
}
|
|
234
269
|
),
|
|
235
270
|
children,
|
|
236
|
-
endIcon && /* @__PURE__ */
|
|
271
|
+
endIcon && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
237
272
|
"span",
|
|
238
273
|
{
|
|
239
|
-
className:
|
|
274
|
+
className: (0, import_clsx3.default)({
|
|
240
275
|
[iconColorClasses]: !disabled,
|
|
241
276
|
[`text-disabled-icon`]: disabled
|
|
242
277
|
}),
|
|
@@ -265,15 +300,15 @@ var IconButton = ({
|
|
|
265
300
|
negative: "bg-button-solid-negative-background text-button-solid-negative-text",
|
|
266
301
|
neutral: "bg-button-solid-neutral-background text-button-solid-neutral-text"
|
|
267
302
|
}[color];
|
|
268
|
-
return /* @__PURE__ */
|
|
303
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
269
304
|
"button",
|
|
270
305
|
{
|
|
271
306
|
onClick: disabled ? void 0 : onClick,
|
|
272
307
|
disabled: disabled || onClick === void 0,
|
|
273
|
-
className:
|
|
308
|
+
className: (0, import_clsx3.default)(
|
|
274
309
|
{
|
|
275
310
|
"text-disabled-text bg-disabled-background cursor-not-allowed": disabled,
|
|
276
|
-
[
|
|
311
|
+
[(0, import_clsx3.default)(colorClasses, "hover:brightness-90")]: !disabled
|
|
277
312
|
},
|
|
278
313
|
ButtonUtil.iconPaddingMapping[size],
|
|
279
314
|
className
|
|
@@ -285,10 +320,10 @@ var IconButton = ({
|
|
|
285
320
|
};
|
|
286
321
|
|
|
287
322
|
// src/localization/LanguageProvider.tsx
|
|
288
|
-
|
|
323
|
+
var import_react4 = require("react");
|
|
289
324
|
|
|
290
325
|
// src/hooks/useLocalStorage.ts
|
|
291
|
-
|
|
326
|
+
var import_react3 = require("react");
|
|
292
327
|
|
|
293
328
|
// src/localization/util.ts
|
|
294
329
|
var languages = ["en", "de"];
|
|
@@ -304,12 +339,12 @@ var LanguageUtil = {
|
|
|
304
339
|
};
|
|
305
340
|
|
|
306
341
|
// src/localization/LanguageProvider.tsx
|
|
307
|
-
|
|
308
|
-
var LanguageContext = createContext({
|
|
342
|
+
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
343
|
+
var LanguageContext = (0, import_react4.createContext)({
|
|
309
344
|
language: LanguageUtil.DEFAULT_LANGUAGE,
|
|
310
345
|
setLanguage: (v) => v
|
|
311
346
|
});
|
|
312
|
-
var useLanguage = () => useContext(LanguageContext);
|
|
347
|
+
var useLanguage = () => (0, import_react4.useContext)(LanguageContext);
|
|
313
348
|
|
|
314
349
|
// src/localization/useTranslation.ts
|
|
315
350
|
var useTranslation = (defaults, translationOverwrite = {}) => {
|
|
@@ -324,23 +359,23 @@ var useTranslation = (defaults, translationOverwrite = {}) => {
|
|
|
324
359
|
};
|
|
325
360
|
|
|
326
361
|
// src/components/modals/ConfirmModal.tsx
|
|
327
|
-
|
|
362
|
+
var import_clsx6 = __toESM(require("clsx"));
|
|
328
363
|
|
|
329
364
|
// src/components/layout-and-navigation/Overlay.tsx
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
365
|
+
var import_react6 = require("react");
|
|
366
|
+
var import_react_dom = __toESM(require("react-dom"));
|
|
367
|
+
var import_clsx5 = __toESM(require("clsx"));
|
|
333
368
|
|
|
334
369
|
// src/hooks/useHoverState.ts
|
|
335
|
-
|
|
370
|
+
var import_react5 = require("react");
|
|
336
371
|
var defaultUseHoverStateProps = {
|
|
337
372
|
closingDelay: 200,
|
|
338
373
|
isDisabled: false
|
|
339
374
|
};
|
|
340
375
|
var useHoverState = (props = void 0) => {
|
|
341
376
|
const { closingDelay, isDisabled } = { ...defaultUseHoverStateProps, ...props };
|
|
342
|
-
const [isHovered, setIsHovered] =
|
|
343
|
-
const [timer, setTimer] =
|
|
377
|
+
const [isHovered, setIsHovered] = (0, import_react5.useState)(false);
|
|
378
|
+
const [timer, setTimer] = (0, import_react5.useState)();
|
|
344
379
|
const onMouseEnter = () => {
|
|
345
380
|
if (isDisabled) {
|
|
346
381
|
return;
|
|
@@ -356,14 +391,14 @@ var useHoverState = (props = void 0) => {
|
|
|
356
391
|
setIsHovered(false);
|
|
357
392
|
}, closingDelay));
|
|
358
393
|
};
|
|
359
|
-
|
|
394
|
+
(0, import_react5.useEffect)(() => {
|
|
360
395
|
if (timer) {
|
|
361
396
|
return () => {
|
|
362
397
|
clearTimeout(timer);
|
|
363
398
|
};
|
|
364
399
|
}
|
|
365
400
|
});
|
|
366
|
-
|
|
401
|
+
(0, import_react5.useEffect)(() => {
|
|
367
402
|
if (timer) {
|
|
368
403
|
clearTimeout(timer);
|
|
369
404
|
}
|
|
@@ -376,8 +411,8 @@ var useHoverState = (props = void 0) => {
|
|
|
376
411
|
};
|
|
377
412
|
|
|
378
413
|
// src/components/user-action/Tooltip.tsx
|
|
379
|
-
|
|
380
|
-
|
|
414
|
+
var import_clsx4 = require("clsx");
|
|
415
|
+
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
381
416
|
var Tooltip = ({
|
|
382
417
|
tooltip,
|
|
383
418
|
children,
|
|
@@ -407,17 +442,17 @@ var Tooltip = ({
|
|
|
407
442
|
left: { borderWidth: `${triangleSize}px 0 ${triangleSize}px ${triangleSize}px` },
|
|
408
443
|
right: { borderWidth: `${triangleSize}px ${triangleSize}px ${triangleSize}px 0` }
|
|
409
444
|
};
|
|
410
|
-
return /* @__PURE__ */
|
|
445
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
|
|
411
446
|
"div",
|
|
412
447
|
{
|
|
413
|
-
className:
|
|
448
|
+
className: (0, import_clsx4.clsx)("relative inline-block", containerClassName),
|
|
414
449
|
...handlers,
|
|
415
450
|
children: [
|
|
416
451
|
children,
|
|
417
|
-
isHovered && /* @__PURE__ */
|
|
452
|
+
isHovered && /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
|
|
418
453
|
"div",
|
|
419
454
|
{
|
|
420
|
-
className:
|
|
455
|
+
className: (0, import_clsx4.clsx)(
|
|
421
456
|
`opacity-0 absolute text-xs font-semibold text-tooltip-text px-2 py-1 rounded whitespace-nowrap
|
|
422
457
|
animate-tooltip-fade-in shadow-lg bg-tooltip-background`,
|
|
423
458
|
positionClasses[position],
|
|
@@ -426,10 +461,10 @@ var Tooltip = ({
|
|
|
426
461
|
style: { zIndex, animationDelay: animationDelay + "ms" },
|
|
427
462
|
children: [
|
|
428
463
|
tooltip,
|
|
429
|
-
/* @__PURE__ */
|
|
464
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
430
465
|
"div",
|
|
431
466
|
{
|
|
432
|
-
className:
|
|
467
|
+
className: (0, import_clsx4.clsx)(`absolute w-0 h-0`, triangleClasses[position]),
|
|
433
468
|
style: { ...triangleStyle[position], zIndex }
|
|
434
469
|
}
|
|
435
470
|
)
|
|
@@ -442,25 +477,25 @@ var Tooltip = ({
|
|
|
442
477
|
};
|
|
443
478
|
|
|
444
479
|
// src/components/layout-and-navigation/Overlay.tsx
|
|
445
|
-
|
|
446
|
-
|
|
480
|
+
var import_lucide_react = require("lucide-react");
|
|
481
|
+
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
447
482
|
var Overlay = ({
|
|
448
483
|
children,
|
|
449
484
|
isOpen,
|
|
450
485
|
onBackgroundClick,
|
|
451
486
|
backgroundClassName
|
|
452
487
|
}) => {
|
|
453
|
-
const [root, setRoot] =
|
|
454
|
-
|
|
488
|
+
const [root, setRoot] = (0, import_react6.useState)();
|
|
489
|
+
(0, import_react6.useEffect)(() => {
|
|
455
490
|
setRoot(document.body);
|
|
456
491
|
}, []);
|
|
457
492
|
if (!root || !isOpen) return null;
|
|
458
|
-
return
|
|
459
|
-
/* @__PURE__ */
|
|
460
|
-
/* @__PURE__ */
|
|
493
|
+
return import_react_dom.default.createPortal(
|
|
494
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: (0, import_clsx5.default)("fixed inset-0 z-[9999]"), children: [
|
|
495
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
461
496
|
"div",
|
|
462
497
|
{
|
|
463
|
-
className:
|
|
498
|
+
className: (0, import_clsx5.default)("fixed inset-0 h-screen w-screen bg-black/30", backgroundClassName),
|
|
464
499
|
onClick: onBackgroundClick
|
|
465
500
|
}
|
|
466
501
|
),
|
|
@@ -488,21 +523,21 @@ var OverlayHeader = ({
|
|
|
488
523
|
}) => {
|
|
489
524
|
const translation = useTranslation(defaultModalHeaderTranslation, overwriteTranslation);
|
|
490
525
|
const hasTitleRow = !!title || !!titleText || !!onClose;
|
|
491
|
-
const titleRow = /* @__PURE__ */
|
|
492
|
-
title ?? /* @__PURE__ */
|
|
526
|
+
const titleRow = /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "row justify-between items-start gap-x-8", children: [
|
|
527
|
+
title ?? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
493
528
|
"h2",
|
|
494
529
|
{
|
|
495
|
-
className:
|
|
530
|
+
className: (0, import_clsx5.default)("textstyle-title-lg", {
|
|
496
531
|
"mb-1": description || descriptionText
|
|
497
532
|
}),
|
|
498
533
|
children: titleText
|
|
499
534
|
}
|
|
500
535
|
),
|
|
501
|
-
!!onClose && /* @__PURE__ */
|
|
536
|
+
!!onClose && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Tooltip, { tooltip: translation.close, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(IconButton, { color: "neutral", size: "small", onClick: onClose, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_lucide_react.X, { className: "w-full h-full" }) }) })
|
|
502
537
|
] });
|
|
503
|
-
return /* @__PURE__ */
|
|
538
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "col", children: [
|
|
504
539
|
hasTitleRow && titleRow,
|
|
505
|
-
description ?? (descriptionText && /* @__PURE__ */
|
|
540
|
+
description ?? (descriptionText && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "textstyle-description", children: descriptionText }))
|
|
506
541
|
] });
|
|
507
542
|
};
|
|
508
543
|
var Modal = ({
|
|
@@ -513,8 +548,8 @@ var Modal = ({
|
|
|
513
548
|
backgroundClassName,
|
|
514
549
|
headerProps
|
|
515
550
|
}) => {
|
|
516
|
-
const ref =
|
|
517
|
-
|
|
551
|
+
const ref = (0, import_react6.useRef)(null);
|
|
552
|
+
(0, import_react6.useEffect)(() => {
|
|
518
553
|
if (!isOpen) return;
|
|
519
554
|
const modal = ref.current;
|
|
520
555
|
if (!modal) {
|
|
@@ -551,25 +586,25 @@ var Modal = ({
|
|
|
551
586
|
overlayStack = overlayStack.filter((m) => m !== modal);
|
|
552
587
|
};
|
|
553
588
|
}, [isOpen, onClose]);
|
|
554
|
-
return /* @__PURE__ */
|
|
589
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
555
590
|
Overlay,
|
|
556
591
|
{
|
|
557
592
|
isOpen,
|
|
558
593
|
onBackgroundClick: onClose,
|
|
559
594
|
backgroundClassName,
|
|
560
|
-
children: /* @__PURE__ */
|
|
595
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
561
596
|
"div",
|
|
562
597
|
{
|
|
563
598
|
ref,
|
|
564
599
|
tabIndex: -1,
|
|
565
|
-
className:
|
|
600
|
+
className: (0, import_clsx5.default)(
|
|
566
601
|
"fixed left-1/2 top-1/2 -translate-y-1/2 -translate-x-1/2 col p-4 bg-overlay-background text-overlay-text rounded-xl shadow-xl",
|
|
567
602
|
className
|
|
568
603
|
),
|
|
569
604
|
role: "dialog",
|
|
570
605
|
"aria-modal": true,
|
|
571
606
|
children: [
|
|
572
|
-
/* @__PURE__ */
|
|
607
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(OverlayHeader, { ...headerProps, onClose }),
|
|
573
608
|
children
|
|
574
609
|
]
|
|
575
610
|
}
|
|
@@ -579,7 +614,7 @@ var Modal = ({
|
|
|
579
614
|
};
|
|
580
615
|
|
|
581
616
|
// src/components/modals/ConfirmModal.tsx
|
|
582
|
-
|
|
617
|
+
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
583
618
|
var defaultConfirmDialogTranslation = {
|
|
584
619
|
en: {
|
|
585
620
|
confirm: "Confirm",
|
|
@@ -610,10 +645,10 @@ var ConfirmModal = ({
|
|
|
610
645
|
positive: "positive",
|
|
611
646
|
primary: "primary"
|
|
612
647
|
};
|
|
613
|
-
return /* @__PURE__ */
|
|
614
|
-
/* @__PURE__ */
|
|
615
|
-
/* @__PURE__ */
|
|
616
|
-
onCancel && /* @__PURE__ */
|
|
648
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(Modal, { ...restProps, onClose: onCancel, className: (0, import_clsx6.default)("justify-between", className), children: [
|
|
649
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "col grow", children }),
|
|
650
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "row mt-3 gap-x-4 justify-end", children: [
|
|
651
|
+
onCancel && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
617
652
|
SolidButton,
|
|
618
653
|
{
|
|
619
654
|
color: buttonOverwrites?.[0].color ?? "neutral",
|
|
@@ -622,7 +657,7 @@ var ConfirmModal = ({
|
|
|
622
657
|
children: buttonOverwrites?.[0].text ?? translation.cancel
|
|
623
658
|
}
|
|
624
659
|
),
|
|
625
|
-
onDecline && /* @__PURE__ */
|
|
660
|
+
onDecline && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
626
661
|
SolidButton,
|
|
627
662
|
{
|
|
628
663
|
color: buttonOverwrites?.[1].color ?? "negative",
|
|
@@ -631,7 +666,7 @@ var ConfirmModal = ({
|
|
|
631
666
|
children: buttonOverwrites?.[1].text ?? translation.decline
|
|
632
667
|
}
|
|
633
668
|
),
|
|
634
|
-
/* @__PURE__ */
|
|
669
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
635
670
|
SolidButton,
|
|
636
671
|
{
|
|
637
672
|
autoFocus: true,
|
|
@@ -646,22 +681,23 @@ var ConfirmModal = ({
|
|
|
646
681
|
};
|
|
647
682
|
|
|
648
683
|
// src/components/modals/InputModal.tsx
|
|
649
|
-
|
|
684
|
+
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
650
685
|
var InputModal = ({
|
|
651
686
|
inputs,
|
|
652
687
|
buttonOverwrites,
|
|
653
688
|
...restProps
|
|
654
689
|
}) => {
|
|
655
|
-
return /* @__PURE__ */
|
|
690
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
656
691
|
ConfirmModal,
|
|
657
692
|
{
|
|
658
693
|
buttonOverwrites,
|
|
659
694
|
...restProps,
|
|
660
|
-
children: inputs.map((inputProps, index) => /* @__PURE__ */
|
|
695
|
+
children: inputs.map((inputProps, index) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Input, { ...inputProps }, `input ${index}`))
|
|
661
696
|
}
|
|
662
697
|
);
|
|
663
698
|
};
|
|
664
|
-
export
|
|
699
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
700
|
+
0 && (module.exports = {
|
|
665
701
|
InputModal
|
|
666
|
-
};
|
|
702
|
+
});
|
|
667
703
|
//# sourceMappingURL=InputModal.js.map
|