@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,44 +1,8 @@
|
|
|
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/LanguageModal.tsx
|
|
31
|
-
var LanguageModal_exports = {};
|
|
32
|
-
__export(LanguageModal_exports, {
|
|
33
|
-
LanguageModal: () => LanguageModal
|
|
34
|
-
});
|
|
35
|
-
module.exports = __toCommonJS(LanguageModal_exports);
|
|
36
|
-
|
|
37
1
|
// src/localization/LanguageProvider.tsx
|
|
38
|
-
|
|
2
|
+
import { createContext, useContext, useEffect as useEffect2, useState as useState2 } from "react";
|
|
39
3
|
|
|
40
4
|
// src/hooks/useLocalStorage.ts
|
|
41
|
-
|
|
5
|
+
import { useCallback, useEffect, useState } from "react";
|
|
42
6
|
|
|
43
7
|
// src/localization/util.ts
|
|
44
8
|
var languages = ["en", "de"];
|
|
@@ -54,12 +18,12 @@ var LanguageUtil = {
|
|
|
54
18
|
};
|
|
55
19
|
|
|
56
20
|
// src/localization/LanguageProvider.tsx
|
|
57
|
-
|
|
58
|
-
var LanguageContext =
|
|
21
|
+
import { jsx } from "react/jsx-runtime";
|
|
22
|
+
var LanguageContext = createContext({
|
|
59
23
|
language: LanguageUtil.DEFAULT_LANGUAGE,
|
|
60
24
|
setLanguage: (v) => v
|
|
61
25
|
});
|
|
62
|
-
var useLanguage = () =>
|
|
26
|
+
var useLanguage = () => useContext(LanguageContext);
|
|
63
27
|
|
|
64
28
|
// src/localization/useTranslation.ts
|
|
65
29
|
var useTranslation = (defaults, translationOverwrite = {}) => {
|
|
@@ -74,14 +38,14 @@ var useTranslation = (defaults, translationOverwrite = {}) => {
|
|
|
74
38
|
};
|
|
75
39
|
|
|
76
40
|
// src/components/user-action/Select.tsx
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
41
|
+
import { Menu } from "@headlessui/react";
|
|
42
|
+
import { ChevronDown, ChevronUp, Search } from "lucide-react";
|
|
43
|
+
import { useEffect as useEffect5, useState as useState5 } from "react";
|
|
44
|
+
import clsx3 from "clsx";
|
|
81
45
|
|
|
82
46
|
// src/components/user-action/Label.tsx
|
|
83
|
-
|
|
84
|
-
|
|
47
|
+
import clsx from "clsx";
|
|
48
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
85
49
|
var styleMapping = {
|
|
86
50
|
labelSmall: "textstyle-label-sm",
|
|
87
51
|
labelMedium: "textstyle-label-md",
|
|
@@ -94,19 +58,19 @@ var Label = ({
|
|
|
94
58
|
className,
|
|
95
59
|
...props
|
|
96
60
|
}) => {
|
|
97
|
-
return /* @__PURE__ */ (
|
|
61
|
+
return /* @__PURE__ */ jsx2("label", { ...props, className: clsx(styleMapping[labelType], className), children: children ? children : name });
|
|
98
62
|
};
|
|
99
63
|
|
|
100
64
|
// src/components/user-action/Input.tsx
|
|
101
|
-
|
|
102
|
-
|
|
65
|
+
import { forwardRef, useEffect as useEffect4, useRef, useState as useState4 } from "react";
|
|
66
|
+
import clsx2 from "clsx";
|
|
103
67
|
|
|
104
68
|
// src/hooks/useSaveDelay.ts
|
|
105
|
-
|
|
69
|
+
import { useEffect as useEffect3, useState as useState3 } from "react";
|
|
106
70
|
|
|
107
71
|
// src/components/user-action/Input.tsx
|
|
108
|
-
|
|
109
|
-
var FormInput =
|
|
72
|
+
import { jsx as jsx3, jsxs } from "react/jsx-runtime";
|
|
73
|
+
var FormInput = forwardRef(function FormInput2({
|
|
110
74
|
id,
|
|
111
75
|
labelText,
|
|
112
76
|
errorText,
|
|
@@ -117,13 +81,13 @@ var FormInput = (0, import_react4.forwardRef)(function FormInput2({
|
|
|
117
81
|
required,
|
|
118
82
|
...restProps
|
|
119
83
|
}, ref) {
|
|
120
|
-
const input = /* @__PURE__ */ (
|
|
84
|
+
const input = /* @__PURE__ */ jsx3(
|
|
121
85
|
"input",
|
|
122
86
|
{
|
|
123
87
|
ref,
|
|
124
88
|
id,
|
|
125
89
|
...restProps,
|
|
126
|
-
className: (
|
|
90
|
+
className: clsx2(
|
|
127
91
|
{
|
|
128
92
|
"focus:border-primary focus:ring-primary": !errorText,
|
|
129
93
|
"focus:border-negative focus:ring-negative text-negative": !!errorText
|
|
@@ -132,18 +96,18 @@ var FormInput = (0, import_react4.forwardRef)(function FormInput2({
|
|
|
132
96
|
)
|
|
133
97
|
}
|
|
134
98
|
);
|
|
135
|
-
return /* @__PURE__ */
|
|
136
|
-
labelText && /* @__PURE__ */
|
|
99
|
+
return /* @__PURE__ */ jsxs("div", { className: clsx2("flex flex-col gap-y-1", containerClassName), children: [
|
|
100
|
+
labelText && /* @__PURE__ */ jsxs("label", { htmlFor: id, className: clsx2("textstyle-label-md", labelClassName), children: [
|
|
137
101
|
labelText,
|
|
138
|
-
required && /* @__PURE__ */ (
|
|
102
|
+
required && /* @__PURE__ */ jsx3("span", { className: "text-primary font-bold", children: "*" })
|
|
139
103
|
] }),
|
|
140
104
|
input,
|
|
141
|
-
errorText && /* @__PURE__ */ (
|
|
105
|
+
errorText && /* @__PURE__ */ jsx3("label", { htmlFor: id, className: clsx2("text-negative", errorClassName), children: errorText })
|
|
142
106
|
] });
|
|
143
107
|
});
|
|
144
108
|
|
|
145
109
|
// src/components/user-action/Select.tsx
|
|
146
|
-
|
|
110
|
+
import { Fragment, jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
147
111
|
var Select = ({
|
|
148
112
|
value,
|
|
149
113
|
label,
|
|
@@ -155,7 +119,6 @@ var Select = ({
|
|
|
155
119
|
isDisabled,
|
|
156
120
|
className,
|
|
157
121
|
textColor = "text-menu-text",
|
|
158
|
-
hoverColor = "hover:brightness-90",
|
|
159
122
|
additionalItems,
|
|
160
123
|
selectedDisplayOverwrite
|
|
161
124
|
}) => {
|
|
@@ -168,48 +131,48 @@ var Select = ({
|
|
|
168
131
|
console.warn("The selected value is not found in the options list. This might be an error on your part or default behavior if it is complex data type on which === does not work. In case of the latter use selectedDisplayOverwrite to set your selected text or component");
|
|
169
132
|
}
|
|
170
133
|
const borderColor = "border-menu-border";
|
|
171
|
-
return /* @__PURE__ */ (
|
|
172
|
-
label && /* @__PURE__ */ (
|
|
173
|
-
/* @__PURE__ */ (
|
|
174
|
-
/* @__PURE__ */ (
|
|
175
|
-
|
|
134
|
+
return /* @__PURE__ */ jsxs2("div", { className: clsx3(className), children: [
|
|
135
|
+
label && /* @__PURE__ */ jsx4(Label, { ...label, labelType: label.labelType ?? "labelBig", className: clsx3("mb-1", label.className) }),
|
|
136
|
+
/* @__PURE__ */ jsx4(Menu, { as: "div", className: "relative text-menu-text", children: ({ open }) => /* @__PURE__ */ jsxs2(Fragment, { children: [
|
|
137
|
+
/* @__PURE__ */ jsxs2(
|
|
138
|
+
Menu.Button,
|
|
176
139
|
{
|
|
177
|
-
className: (
|
|
140
|
+
className: clsx3(
|
|
178
141
|
"inline-flex w-full justify-between items-center rounded-t-lg border-2 px-4 py-2 font-medium bg-menu-background text-menu-text",
|
|
179
142
|
textColor,
|
|
180
143
|
borderColor,
|
|
181
144
|
{
|
|
182
145
|
"rounded-b-lg": !open,
|
|
183
|
-
|
|
146
|
+
"hover:border-primary": !isDisabled,
|
|
184
147
|
"bg-disabled-background cursor-not-allowed text-disabled": isDisabled
|
|
185
148
|
}
|
|
186
149
|
),
|
|
187
150
|
disabled: isDisabled,
|
|
188
151
|
children: [
|
|
189
|
-
/* @__PURE__ */ (
|
|
190
|
-
open ? /* @__PURE__ */ (
|
|
152
|
+
/* @__PURE__ */ jsx4("span", { children: selectedDisplayOverwrite ?? selectedOption?.label ?? hintText }),
|
|
153
|
+
open ? /* @__PURE__ */ jsx4(ChevronUp, {}) : /* @__PURE__ */ jsx4(ChevronDown, {})
|
|
191
154
|
]
|
|
192
155
|
}
|
|
193
156
|
),
|
|
194
|
-
/* @__PURE__ */ (
|
|
195
|
-
|
|
157
|
+
/* @__PURE__ */ jsxs2(
|
|
158
|
+
Menu.Items,
|
|
196
159
|
{
|
|
197
160
|
className: "absolute w-full z-10 rounded-b-lg bg-menu-background text-menu-text shadow-lg max-h-[500px] overflow-y-auto",
|
|
198
161
|
children: [
|
|
199
|
-
(additionalItems ?? []).map((item, index) => /* @__PURE__ */ (
|
|
162
|
+
(additionalItems ?? []).map((item, index) => /* @__PURE__ */ jsx4(
|
|
200
163
|
"div",
|
|
201
164
|
{
|
|
202
|
-
className: (
|
|
165
|
+
className: clsx3(borderColor, "px-4 py-2 overflow-hidden whitespace-nowrap text-ellipsis border-2 border-t-0", {
|
|
203
166
|
"border-b-0 rounded-b-lg": filteredOptions.length === 0 && index === (additionalItems?.length ?? 1) - 1
|
|
204
167
|
}),
|
|
205
168
|
children: item
|
|
206
169
|
},
|
|
207
170
|
`additionalItems${index}`
|
|
208
171
|
)),
|
|
209
|
-
filteredOptions.map((option, index) => /* @__PURE__ */ (
|
|
172
|
+
filteredOptions.map((option, index) => /* @__PURE__ */ jsx4(Menu.Item, { children: /* @__PURE__ */ jsx4(
|
|
210
173
|
"div",
|
|
211
174
|
{
|
|
212
|
-
className: (
|
|
175
|
+
className: clsx3(
|
|
213
176
|
"px-4 py-2 overflow-hidden whitespace-nowrap text-ellipsis border-2 border-t-0 cursor-pointer",
|
|
214
177
|
option.className,
|
|
215
178
|
borderColor,
|
|
@@ -237,8 +200,8 @@ var Select = ({
|
|
|
237
200
|
};
|
|
238
201
|
|
|
239
202
|
// src/components/user-action/Button.tsx
|
|
240
|
-
|
|
241
|
-
|
|
203
|
+
import clsx4 from "clsx";
|
|
204
|
+
import { jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
242
205
|
var paddingMapping = {
|
|
243
206
|
small: "btn-sm",
|
|
244
207
|
medium: "btn-md",
|
|
@@ -282,25 +245,25 @@ var SolidButton = ({
|
|
|
282
245
|
negative: "text-button-solid-negative-icon",
|
|
283
246
|
neutral: "text-button-solid-neutral-icon"
|
|
284
247
|
}[color];
|
|
285
|
-
return /* @__PURE__ */ (
|
|
248
|
+
return /* @__PURE__ */ jsxs3(
|
|
286
249
|
"button",
|
|
287
250
|
{
|
|
288
251
|
onClick: disabled ? void 0 : onClick,
|
|
289
252
|
disabled: disabled || onClick === void 0,
|
|
290
|
-
className: (
|
|
253
|
+
className: clsx4(
|
|
291
254
|
{
|
|
292
255
|
"text-disabled-text bg-disabled-background cursor-not-allowed": disabled,
|
|
293
|
-
[(
|
|
256
|
+
[clsx4(colorClasses, "hover:brightness-90")]: !disabled
|
|
294
257
|
},
|
|
295
258
|
ButtonUtil.paddingMapping[size],
|
|
296
259
|
className
|
|
297
260
|
),
|
|
298
261
|
...restProps,
|
|
299
262
|
children: [
|
|
300
|
-
startIcon && /* @__PURE__ */ (
|
|
263
|
+
startIcon && /* @__PURE__ */ jsx5(
|
|
301
264
|
"span",
|
|
302
265
|
{
|
|
303
|
-
className: (
|
|
266
|
+
className: clsx4({
|
|
304
267
|
[iconColorClasses]: !disabled,
|
|
305
268
|
[`text-disabled-icon`]: disabled
|
|
306
269
|
}),
|
|
@@ -308,10 +271,10 @@ var SolidButton = ({
|
|
|
308
271
|
}
|
|
309
272
|
),
|
|
310
273
|
children,
|
|
311
|
-
endIcon && /* @__PURE__ */ (
|
|
274
|
+
endIcon && /* @__PURE__ */ jsx5(
|
|
312
275
|
"span",
|
|
313
276
|
{
|
|
314
|
-
className: (
|
|
277
|
+
className: clsx4({
|
|
315
278
|
[iconColorClasses]: !disabled,
|
|
316
279
|
[`text-disabled-icon`]: disabled
|
|
317
280
|
}),
|
|
@@ -340,15 +303,15 @@ var IconButton = ({
|
|
|
340
303
|
negative: "bg-button-solid-negative-background text-button-solid-negative-text",
|
|
341
304
|
neutral: "bg-button-solid-neutral-background text-button-solid-neutral-text"
|
|
342
305
|
}[color];
|
|
343
|
-
return /* @__PURE__ */ (
|
|
306
|
+
return /* @__PURE__ */ jsx5(
|
|
344
307
|
"button",
|
|
345
308
|
{
|
|
346
309
|
onClick: disabled ? void 0 : onClick,
|
|
347
310
|
disabled: disabled || onClick === void 0,
|
|
348
|
-
className: (
|
|
311
|
+
className: clsx4(
|
|
349
312
|
{
|
|
350
313
|
"text-disabled-text bg-disabled-background cursor-not-allowed": disabled,
|
|
351
|
-
[(
|
|
314
|
+
[clsx4(colorClasses, "hover:brightness-90")]: !disabled
|
|
352
315
|
},
|
|
353
316
|
ButtonUtil.iconPaddingMapping[size],
|
|
354
317
|
className
|
|
@@ -360,20 +323,20 @@ var IconButton = ({
|
|
|
360
323
|
};
|
|
361
324
|
|
|
362
325
|
// src/components/layout-and-navigation/Overlay.tsx
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
326
|
+
import { useEffect as useEffect7, useRef as useRef2, useState as useState7 } from "react";
|
|
327
|
+
import ReactDOM from "react-dom";
|
|
328
|
+
import clsx6 from "clsx";
|
|
366
329
|
|
|
367
330
|
// src/hooks/useHoverState.ts
|
|
368
|
-
|
|
331
|
+
import { useEffect as useEffect6, useState as useState6 } from "react";
|
|
369
332
|
var defaultUseHoverStateProps = {
|
|
370
333
|
closingDelay: 200,
|
|
371
334
|
isDisabled: false
|
|
372
335
|
};
|
|
373
336
|
var useHoverState = (props = void 0) => {
|
|
374
337
|
const { closingDelay, isDisabled } = { ...defaultUseHoverStateProps, ...props };
|
|
375
|
-
const [isHovered, setIsHovered] = (
|
|
376
|
-
const [timer, setTimer] = (
|
|
338
|
+
const [isHovered, setIsHovered] = useState6(false);
|
|
339
|
+
const [timer, setTimer] = useState6();
|
|
377
340
|
const onMouseEnter = () => {
|
|
378
341
|
if (isDisabled) {
|
|
379
342
|
return;
|
|
@@ -389,14 +352,14 @@ var useHoverState = (props = void 0) => {
|
|
|
389
352
|
setIsHovered(false);
|
|
390
353
|
}, closingDelay));
|
|
391
354
|
};
|
|
392
|
-
(
|
|
355
|
+
useEffect6(() => {
|
|
393
356
|
if (timer) {
|
|
394
357
|
return () => {
|
|
395
358
|
clearTimeout(timer);
|
|
396
359
|
};
|
|
397
360
|
}
|
|
398
361
|
});
|
|
399
|
-
(
|
|
362
|
+
useEffect6(() => {
|
|
400
363
|
if (timer) {
|
|
401
364
|
clearTimeout(timer);
|
|
402
365
|
}
|
|
@@ -409,8 +372,8 @@ var useHoverState = (props = void 0) => {
|
|
|
409
372
|
};
|
|
410
373
|
|
|
411
374
|
// src/components/user-action/Tooltip.tsx
|
|
412
|
-
|
|
413
|
-
|
|
375
|
+
import { clsx as clsx5 } from "clsx";
|
|
376
|
+
import { jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
414
377
|
var Tooltip = ({
|
|
415
378
|
tooltip,
|
|
416
379
|
children,
|
|
@@ -440,17 +403,17 @@ var Tooltip = ({
|
|
|
440
403
|
left: { borderWidth: `${triangleSize}px 0 ${triangleSize}px ${triangleSize}px` },
|
|
441
404
|
right: { borderWidth: `${triangleSize}px ${triangleSize}px ${triangleSize}px 0` }
|
|
442
405
|
};
|
|
443
|
-
return /* @__PURE__ */ (
|
|
406
|
+
return /* @__PURE__ */ jsxs4(
|
|
444
407
|
"div",
|
|
445
408
|
{
|
|
446
|
-
className: (
|
|
409
|
+
className: clsx5("relative inline-block", containerClassName),
|
|
447
410
|
...handlers,
|
|
448
411
|
children: [
|
|
449
412
|
children,
|
|
450
|
-
isHovered && /* @__PURE__ */ (
|
|
413
|
+
isHovered && /* @__PURE__ */ jsxs4(
|
|
451
414
|
"div",
|
|
452
415
|
{
|
|
453
|
-
className: (
|
|
416
|
+
className: clsx5(
|
|
454
417
|
`opacity-0 absolute text-xs font-semibold text-tooltip-text px-2 py-1 rounded whitespace-nowrap
|
|
455
418
|
animate-tooltip-fade-in shadow-lg bg-tooltip-background`,
|
|
456
419
|
positionClasses[position],
|
|
@@ -459,10 +422,10 @@ var Tooltip = ({
|
|
|
459
422
|
style: { zIndex, animationDelay: animationDelay + "ms" },
|
|
460
423
|
children: [
|
|
461
424
|
tooltip,
|
|
462
|
-
/* @__PURE__ */ (
|
|
425
|
+
/* @__PURE__ */ jsx6(
|
|
463
426
|
"div",
|
|
464
427
|
{
|
|
465
|
-
className: (
|
|
428
|
+
className: clsx5(`absolute w-0 h-0`, triangleClasses[position]),
|
|
466
429
|
style: { ...triangleStyle[position], zIndex }
|
|
467
430
|
}
|
|
468
431
|
)
|
|
@@ -475,25 +438,25 @@ var Tooltip = ({
|
|
|
475
438
|
};
|
|
476
439
|
|
|
477
440
|
// src/components/layout-and-navigation/Overlay.tsx
|
|
478
|
-
|
|
479
|
-
|
|
441
|
+
import { X } from "lucide-react";
|
|
442
|
+
import { jsx as jsx7, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
480
443
|
var Overlay = ({
|
|
481
444
|
children,
|
|
482
445
|
isOpen,
|
|
483
446
|
onBackgroundClick,
|
|
484
447
|
backgroundClassName
|
|
485
448
|
}) => {
|
|
486
|
-
const [root, setRoot] = (
|
|
487
|
-
(
|
|
449
|
+
const [root, setRoot] = useState7();
|
|
450
|
+
useEffect7(() => {
|
|
488
451
|
setRoot(document.body);
|
|
489
452
|
}, []);
|
|
490
453
|
if (!root || !isOpen) return null;
|
|
491
|
-
return
|
|
492
|
-
/* @__PURE__ */ (
|
|
493
|
-
/* @__PURE__ */ (
|
|
454
|
+
return ReactDOM.createPortal(
|
|
455
|
+
/* @__PURE__ */ jsxs5("div", { className: clsx6("fixed inset-0 z-[9999]"), children: [
|
|
456
|
+
/* @__PURE__ */ jsx7(
|
|
494
457
|
"div",
|
|
495
458
|
{
|
|
496
|
-
className: (
|
|
459
|
+
className: clsx6("fixed inset-0 h-screen w-screen bg-black/30", backgroundClassName),
|
|
497
460
|
onClick: onBackgroundClick
|
|
498
461
|
}
|
|
499
462
|
),
|
|
@@ -521,21 +484,21 @@ var OverlayHeader = ({
|
|
|
521
484
|
}) => {
|
|
522
485
|
const translation = useTranslation(defaultModalHeaderTranslation, overwriteTranslation);
|
|
523
486
|
const hasTitleRow = !!title || !!titleText || !!onClose;
|
|
524
|
-
const titleRow = /* @__PURE__ */ (
|
|
525
|
-
title ?? /* @__PURE__ */ (
|
|
487
|
+
const titleRow = /* @__PURE__ */ jsxs5("div", { className: "row justify-between items-start gap-x-8", children: [
|
|
488
|
+
title ?? /* @__PURE__ */ jsx7(
|
|
526
489
|
"h2",
|
|
527
490
|
{
|
|
528
|
-
className: (
|
|
491
|
+
className: clsx6("textstyle-title-lg", {
|
|
529
492
|
"mb-1": description || descriptionText
|
|
530
493
|
}),
|
|
531
494
|
children: titleText
|
|
532
495
|
}
|
|
533
496
|
),
|
|
534
|
-
!!onClose && /* @__PURE__ */ (
|
|
497
|
+
!!onClose && /* @__PURE__ */ jsx7(Tooltip, { tooltip: translation.close, children: /* @__PURE__ */ jsx7(IconButton, { color: "neutral", size: "small", onClick: onClose, children: /* @__PURE__ */ jsx7(X, { className: "w-full h-full" }) }) })
|
|
535
498
|
] });
|
|
536
|
-
return /* @__PURE__ */ (
|
|
499
|
+
return /* @__PURE__ */ jsxs5("div", { className: "col", children: [
|
|
537
500
|
hasTitleRow && titleRow,
|
|
538
|
-
description ?? (descriptionText && /* @__PURE__ */ (
|
|
501
|
+
description ?? (descriptionText && /* @__PURE__ */ jsx7("span", { className: "textstyle-description", children: descriptionText }))
|
|
539
502
|
] });
|
|
540
503
|
};
|
|
541
504
|
var Modal = ({
|
|
@@ -546,8 +509,8 @@ var Modal = ({
|
|
|
546
509
|
backgroundClassName,
|
|
547
510
|
headerProps
|
|
548
511
|
}) => {
|
|
549
|
-
const ref = (
|
|
550
|
-
(
|
|
512
|
+
const ref = useRef2(null);
|
|
513
|
+
useEffect7(() => {
|
|
551
514
|
if (!isOpen) return;
|
|
552
515
|
const modal = ref.current;
|
|
553
516
|
if (!modal) {
|
|
@@ -584,25 +547,25 @@ var Modal = ({
|
|
|
584
547
|
overlayStack = overlayStack.filter((m) => m !== modal);
|
|
585
548
|
};
|
|
586
549
|
}, [isOpen, onClose]);
|
|
587
|
-
return /* @__PURE__ */ (
|
|
550
|
+
return /* @__PURE__ */ jsx7(
|
|
588
551
|
Overlay,
|
|
589
552
|
{
|
|
590
553
|
isOpen,
|
|
591
554
|
onBackgroundClick: onClose,
|
|
592
555
|
backgroundClassName,
|
|
593
|
-
children: /* @__PURE__ */ (
|
|
556
|
+
children: /* @__PURE__ */ jsxs5(
|
|
594
557
|
"div",
|
|
595
558
|
{
|
|
596
559
|
ref,
|
|
597
560
|
tabIndex: -1,
|
|
598
|
-
className: (
|
|
561
|
+
className: clsx6(
|
|
599
562
|
"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",
|
|
600
563
|
className
|
|
601
564
|
),
|
|
602
565
|
role: "dialog",
|
|
603
566
|
"aria-modal": true,
|
|
604
567
|
children: [
|
|
605
|
-
/* @__PURE__ */ (
|
|
568
|
+
/* @__PURE__ */ jsx7(OverlayHeader, { ...headerProps, onClose }),
|
|
606
569
|
children
|
|
607
570
|
]
|
|
608
571
|
}
|
|
@@ -612,7 +575,7 @@ var Modal = ({
|
|
|
612
575
|
};
|
|
613
576
|
|
|
614
577
|
// src/components/modals/LanguageModal.tsx
|
|
615
|
-
|
|
578
|
+
import { jsx as jsx8, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
616
579
|
var defaultLanguageModalTranslation = {
|
|
617
580
|
en: {
|
|
618
581
|
title: "Language",
|
|
@@ -635,7 +598,7 @@ var LanguageModal = ({
|
|
|
635
598
|
}) => {
|
|
636
599
|
const { language, setLanguage } = useLanguage();
|
|
637
600
|
const translation = useTranslation(defaultLanguageModalTranslation, overwriteTranslation);
|
|
638
|
-
return /* @__PURE__ */ (
|
|
601
|
+
return /* @__PURE__ */ jsx8(
|
|
639
602
|
Modal,
|
|
640
603
|
{
|
|
641
604
|
headerProps: {
|
|
@@ -645,8 +608,8 @@ var LanguageModal = ({
|
|
|
645
608
|
},
|
|
646
609
|
onClose,
|
|
647
610
|
...modalProps,
|
|
648
|
-
children: /* @__PURE__ */ (
|
|
649
|
-
/* @__PURE__ */ (
|
|
611
|
+
children: /* @__PURE__ */ jsxs6("div", { className: "w-64", children: [
|
|
612
|
+
/* @__PURE__ */ jsx8(
|
|
650
613
|
Select,
|
|
651
614
|
{
|
|
652
615
|
className: "mt-2",
|
|
@@ -655,13 +618,12 @@ var LanguageModal = ({
|
|
|
655
618
|
onChange: (language2) => setLanguage(language2)
|
|
656
619
|
}
|
|
657
620
|
),
|
|
658
|
-
/* @__PURE__ */ (
|
|
621
|
+
/* @__PURE__ */ jsx8("div", { className: "row mt-3 gap-x-4 justify-end", children: /* @__PURE__ */ jsx8(SolidButton, { autoFocus: true, color: "positive", onClick: onClose, children: translation.done }) })
|
|
659
622
|
] })
|
|
660
623
|
}
|
|
661
624
|
);
|
|
662
625
|
};
|
|
663
|
-
|
|
664
|
-
0 && (module.exports = {
|
|
626
|
+
export {
|
|
665
627
|
LanguageModal
|
|
666
|
-
}
|
|
667
|
-
//# sourceMappingURL=LanguageModal.
|
|
628
|
+
};
|
|
629
|
+
//# sourceMappingURL=LanguageModal.mjs.map
|