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