@helpwave/hightide 0.0.19 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -2
- package/dist/coloring/shading.cjs +556 -0
- package/dist/coloring/shading.cjs.map +1 -0
- package/dist/coloring/{shading.d.mts → shading.d.cts} +1 -1
- package/dist/coloring/shading.js +476 -37
- package/dist/coloring/shading.js.map +1 -1
- package/dist/coloring/types.cjs +31 -0
- package/dist/coloring/{types.mjs.map → types.cjs.map} +1 -1
- package/dist/coloring/types.js +2 -27
- package/dist/coloring/types.js.map +1 -1
- package/dist/components/{HelpwaveBadge.js → branding/HelpwaveBadge.cjs} +65 -33
- package/dist/components/branding/HelpwaveBadge.cjs.map +1 -0
- package/dist/components/branding/HelpwaveBadge.js +123 -0
- package/dist/components/branding/HelpwaveBadge.js.map +1 -0
- package/dist/components/date/{DatePicker.mjs → DatePicker.cjs} +158 -94
- package/dist/components/date/DatePicker.cjs.map +1 -0
- package/dist/components/date/{DatePicker.d.mts → DatePicker.d.cts} +7 -8
- package/dist/components/date/DatePicker.d.ts +4 -5
- package/dist/components/date/DatePicker.js +121 -129
- package/dist/components/date/DatePicker.js.map +1 -1
- package/dist/components/date/{DayPicker.mjs → DayPicker.cjs} +77 -24
- package/dist/components/date/DayPicker.cjs.map +1 -0
- package/dist/components/date/{DayPicker.d.mts → DayPicker.d.cts} +3 -3
- package/dist/components/date/DayPicker.d.ts +2 -2
- package/dist/components/date/DayPicker.js +38 -61
- package/dist/components/date/DayPicker.js.map +1 -1
- package/dist/components/{TimeDisplay.js → date/TimeDisplay.cjs} +24 -9
- package/dist/components/date/TimeDisplay.cjs.map +1 -0
- package/dist/components/{TimeDisplay.d.mts → date/TimeDisplay.d.cts} +2 -3
- package/dist/components/{TimeDisplay.d.ts → date/TimeDisplay.d.ts} +2 -3
- package/dist/components/{TimeDisplay.mjs → date/TimeDisplay.js} +23 -8
- package/dist/components/date/TimeDisplay.js.map +1 -0
- package/dist/components/date/{TimePicker.mjs → TimePicker.cjs} +62 -26
- package/dist/components/date/TimePicker.cjs.map +1 -0
- package/dist/components/date/{TimePicker.d.mts → TimePicker.d.cts} +2 -2
- package/dist/components/date/TimePicker.d.ts +2 -2
- package/dist/components/date/TimePicker.js +25 -61
- package/dist/components/date/TimePicker.js.map +1 -1
- package/dist/components/date/{YearMonthPicker.mjs → YearMonthPicker.cjs} +93 -42
- package/dist/components/date/YearMonthPicker.cjs.map +1 -0
- package/dist/components/date/{YearMonthPicker.d.mts → YearMonthPicker.d.cts} +2 -2
- package/dist/components/date/YearMonthPicker.d.ts +2 -2
- package/dist/components/date/YearMonthPicker.js +56 -77
- package/dist/components/date/YearMonthPicker.js.map +1 -1
- package/dist/components/{AvatarGroup.js → icons-and-geometry/Avatar.cjs} +23 -19
- package/dist/components/icons-and-geometry/Avatar.cjs.map +1 -0
- package/dist/components/icons-and-geometry/Avatar.d.cts +30 -0
- package/dist/components/icons-and-geometry/Avatar.d.ts +30 -0
- package/dist/components/{AvatarGroup.mjs → icons-and-geometry/Avatar.js} +13 -10
- package/dist/components/icons-and-geometry/Avatar.js.map +1 -0
- package/dist/components/{Circle.js → icons-and-geometry/Circle.cjs} +3 -3
- package/dist/components/icons-and-geometry/Circle.cjs.map +1 -0
- package/dist/components/{Circle.mjs → icons-and-geometry/Circle.js} +2 -2
- package/dist/components/icons-and-geometry/Circle.js.map +1 -0
- package/dist/components/{icons/Helpwave.js → icons-and-geometry/Helpwave.cjs} +38 -6
- package/dist/components/icons-and-geometry/Helpwave.cjs.map +1 -0
- package/dist/components/icons-and-geometry/Helpwave.js +75 -0
- package/dist/components/icons-and-geometry/Helpwave.js.map +1 -0
- package/dist/components/{Ring.js → icons-and-geometry/Ring.cjs} +6 -6
- package/dist/components/icons-and-geometry/Ring.cjs.map +1 -0
- package/dist/components/{Ring.mjs → icons-and-geometry/Ring.js} +4 -4
- package/dist/components/icons-and-geometry/Ring.js.map +1 -0
- package/dist/components/{icons/Tag.js → icons-and-geometry/Tag.cjs} +3 -3
- package/dist/components/icons-and-geometry/Tag.cjs.map +1 -0
- package/dist/components/{icons/Tag.mjs → icons-and-geometry/Tag.js} +2 -2
- package/dist/components/icons-and-geometry/Tag.js.map +1 -0
- package/dist/components/{BreadCrumb.js → layout-and-navigation/BreadCrumb.cjs} +12 -5
- package/dist/components/layout-and-navigation/BreadCrumb.cjs.map +1 -0
- package/dist/components/{BreadCrumb.mjs → layout-and-navigation/BreadCrumb.js} +10 -3
- package/dist/components/layout-and-navigation/BreadCrumb.js.map +1 -0
- package/dist/components/{layout/Carousel.js → layout-and-navigation/Carousel.cjs} +4 -4
- package/dist/components/layout-and-navigation/Carousel.cjs.map +1 -0
- package/dist/components/{layout/Carousel.mjs → layout-and-navigation/Carousel.js} +4 -4
- package/dist/components/layout-and-navigation/Carousel.js.map +1 -0
- package/dist/components/{ChipList.js → layout-and-navigation/Chip.cjs} +6 -6
- package/dist/components/layout-and-navigation/Chip.cjs.map +1 -0
- package/dist/components/{ChipList.mjs → layout-and-navigation/Chip.js} +2 -2
- package/dist/components/layout-and-navigation/Chip.js.map +1 -0
- package/dist/components/{layout/DividerInserter.js → layout-and-navigation/DividerInserter.cjs} +3 -3
- package/dist/components/layout-and-navigation/DividerInserter.cjs.map +1 -0
- package/dist/components/{layout/DividerInserter.mjs → layout-and-navigation/DividerInserter.js} +2 -2
- package/dist/components/layout-and-navigation/DividerInserter.js.map +1 -0
- package/dist/components/{Expandable.js → layout-and-navigation/Expandable.cjs} +3 -3
- package/dist/components/layout-and-navigation/Expandable.cjs.map +1 -0
- package/dist/components/{Expandable.mjs → layout-and-navigation/Expandable.js} +2 -2
- package/dist/components/layout-and-navigation/Expandable.js.map +1 -0
- package/dist/components/{layout/FAQSection.js → layout-and-navigation/FAQSection.cjs} +7 -7
- package/dist/components/layout-and-navigation/FAQSection.cjs.map +1 -0
- package/dist/components/{layout/FAQSection.d.mts → layout-and-navigation/FAQSection.d.cts} +1 -1
- package/dist/components/{layout → layout-and-navigation}/FAQSection.d.ts +1 -1
- package/dist/components/{layout/FAQSection.mjs → layout-and-navigation/FAQSection.js} +5 -5
- package/dist/components/layout-and-navigation/FAQSection.js.map +1 -0
- package/dist/components/{MarkdownInterpreter.js → layout-and-navigation/MarkdownInterpreter.cjs} +2 -2
- package/dist/components/layout-and-navigation/MarkdownInterpreter.cjs.map +1 -0
- package/dist/components/{MarkdownInterpreter.mjs → layout-and-navigation/MarkdownInterpreter.js} +2 -2
- package/dist/components/layout-and-navigation/MarkdownInterpreter.js.map +1 -0
- package/dist/components/layout-and-navigation/Overlay.cjs +467 -0
- package/dist/components/layout-and-navigation/Overlay.cjs.map +1 -0
- package/dist/components/layout-and-navigation/Overlay.d.cts +63 -0
- package/dist/components/layout-and-navigation/Overlay.d.ts +63 -0
- package/dist/components/layout-and-navigation/Overlay.js +429 -0
- package/dist/components/layout-and-navigation/Overlay.js.map +1 -0
- package/dist/components/{Pagination.js → layout-and-navigation/Pagination.cjs} +25 -10
- package/dist/components/layout-and-navigation/Pagination.cjs.map +1 -0
- package/dist/components/{Pagination.d.mts → layout-and-navigation/Pagination.d.cts} +2 -3
- package/dist/components/{Pagination.d.ts → layout-and-navigation/Pagination.d.ts} +2 -3
- package/dist/components/{Pagination.mjs → layout-and-navigation/Pagination.js} +25 -10
- package/dist/components/layout-and-navigation/Pagination.js.map +1 -0
- package/dist/components/{SearchableList.js → layout-and-navigation/SearchableList.cjs} +51 -34
- package/dist/components/layout-and-navigation/SearchableList.cjs.map +1 -0
- package/dist/components/{SearchableList.d.mts → layout-and-navigation/SearchableList.d.cts} +2 -2
- package/dist/components/{SearchableList.d.ts → layout-and-navigation/SearchableList.d.ts} +2 -2
- package/dist/components/{SearchableList.mjs → layout-and-navigation/SearchableList.js} +52 -40
- package/dist/components/layout-and-navigation/SearchableList.js.map +1 -0
- package/dist/components/{StepperBar.js → layout-and-navigation/StepperBar.cjs} +42 -16
- package/dist/components/layout-and-navigation/StepperBar.cjs.map +1 -0
- package/dist/components/{StepperBar.d.mts → layout-and-navigation/StepperBar.d.cts} +2 -3
- package/dist/components/{StepperBar.d.ts → layout-and-navigation/StepperBar.d.ts} +2 -3
- package/dist/components/{StepperBar.mjs → layout-and-navigation/StepperBar.js} +40 -14
- package/dist/components/layout-and-navigation/StepperBar.js.map +1 -0
- package/dist/components/{Table.js → layout-and-navigation/Table.cjs} +176 -40
- package/dist/components/layout-and-navigation/Table.cjs.map +1 -0
- package/dist/components/{Table.d.mts → layout-and-navigation/Table.d.cts} +10 -1
- package/dist/components/{Table.d.ts → layout-and-navigation/Table.d.ts} +10 -1
- package/dist/components/{Table.mjs → layout-and-navigation/Table.js} +175 -40
- package/dist/components/layout-and-navigation/Table.js.map +1 -0
- package/dist/components/{TextImage.js → layout-and-navigation/TextImage.cjs} +25 -10
- package/dist/components/layout-and-navigation/TextImage.cjs.map +1 -0
- package/dist/components/{TextImage.d.mts → layout-and-navigation/TextImage.d.cts} +2 -3
- package/dist/components/{TextImage.d.ts → layout-and-navigation/TextImage.d.ts} +2 -3
- package/dist/components/{TextImage.mjs → layout-and-navigation/TextImage.js} +23 -8
- package/dist/components/layout-and-navigation/TextImage.js.map +1 -0
- package/dist/components/{layout/Tile.js → layout-and-navigation/Tile.cjs} +4 -4
- package/dist/components/layout-and-navigation/Tile.cjs.map +1 -0
- package/dist/components/{layout/Tile.mjs → layout-and-navigation/Tile.js} +2 -2
- package/dist/components/layout-and-navigation/Tile.js.map +1 -0
- package/dist/components/{VerticalDivider.js → layout-and-navigation/VerticalDivider.cjs} +2 -2
- package/dist/components/layout-and-navigation/VerticalDivider.cjs.map +1 -0
- package/dist/components/{VerticalDivider.mjs → layout-and-navigation/VerticalDivider.js} +2 -2
- package/dist/components/layout-and-navigation/VerticalDivider.js.map +1 -0
- package/dist/components/{ErrorComponent.js → loading-states/ErrorComponent.cjs} +25 -10
- package/dist/components/loading-states/ErrorComponent.cjs.map +1 -0
- package/dist/components/{ErrorComponent.d.mts → loading-states/ErrorComponent.d.cts} +2 -3
- package/dist/components/{ErrorComponent.d.ts → loading-states/ErrorComponent.d.ts} +2 -3
- package/dist/components/{ErrorComponent.mjs → loading-states/ErrorComponent.js} +24 -9
- package/dist/components/loading-states/ErrorComponent.js.map +1 -0
- package/dist/components/{LoadingAndErrorComponent.js → loading-states/LoadingAndErrorComponent.cjs} +67 -18
- package/dist/components/loading-states/LoadingAndErrorComponent.cjs.map +1 -0
- package/dist/components/{LoadingAndErrorComponent.d.mts → loading-states/LoadingAndErrorComponent.d.cts} +6 -6
- package/dist/components/{LoadingAndErrorComponent.d.ts → loading-states/LoadingAndErrorComponent.d.ts} +4 -4
- package/dist/components/{LoadingAndErrorComponent.mjs → loading-states/LoadingAndErrorComponent.js} +66 -17
- package/dist/components/loading-states/LoadingAndErrorComponent.js.map +1 -0
- package/dist/components/{LoadingAnimation.js → loading-states/LoadingAnimation.cjs} +64 -15
- package/dist/components/loading-states/LoadingAnimation.cjs.map +1 -0
- package/dist/components/{LoadingAnimation.d.mts → loading-states/LoadingAnimation.d.cts} +2 -3
- package/dist/components/{LoadingAnimation.d.ts → loading-states/LoadingAnimation.d.ts} +2 -3
- package/dist/components/{LoadingAnimation.mjs → loading-states/LoadingAnimation.js} +63 -14
- package/dist/components/loading-states/LoadingAnimation.js.map +1 -0
- package/dist/components/{LoadingButton.js → loading-states/LoadingButton.cjs} +101 -58
- package/dist/components/loading-states/LoadingButton.cjs.map +1 -0
- package/dist/components/{LoadingButton.d.mts → loading-states/LoadingButton.d.cts} +1 -1
- package/dist/components/{LoadingButton.d.ts → loading-states/LoadingButton.d.ts} +1 -1
- package/dist/components/{LoadingButton.mjs → loading-states/LoadingButton.js} +100 -57
- package/dist/components/loading-states/LoadingButton.js.map +1 -0
- package/dist/components/{ProgressIndicator.js → loading-states/ProgressIndicator.cjs} +2 -2
- package/dist/components/loading-states/ProgressIndicator.cjs.map +1 -0
- package/dist/components/{ProgressIndicator.mjs → loading-states/ProgressIndicator.js} +2 -2
- package/dist/components/loading-states/ProgressIndicator.js.map +1 -0
- package/dist/components/modals/ConfirmDialog.cjs +353 -0
- package/dist/components/modals/ConfirmDialog.cjs.map +1 -0
- package/dist/components/modals/{ConfirmDialog.d.mts → ConfirmDialog.d.cts} +6 -6
- package/dist/components/modals/ConfirmDialog.d.ts +6 -6
- package/dist/components/modals/ConfirmDialog.js +157 -268
- package/dist/components/modals/ConfirmDialog.js.map +1 -1
- package/dist/components/modals/{DiscardChangesDialog.js → DiscardChangesModal.cjs} +210 -116
- package/dist/components/modals/DiscardChangesModal.cjs.map +1 -0
- package/dist/components/modals/DiscardChangesModal.d.cts +23 -0
- package/dist/components/modals/DiscardChangesModal.d.ts +23 -0
- package/dist/components/modals/{DiscardChangesDialog.mjs → DiscardChangesModal.js} +198 -104
- package/dist/components/modals/DiscardChangesModal.js.map +1 -0
- package/dist/components/modals/InputModal.cjs +533 -0
- package/dist/components/modals/InputModal.cjs.map +1 -0
- package/dist/components/modals/{InputModal.d.mts → InputModal.d.cts} +7 -7
- package/dist/components/modals/InputModal.d.ts +6 -6
- package/dist/components/modals/InputModal.js +197 -301
- package/dist/components/modals/InputModal.js.map +1 -1
- package/dist/components/modals/LanguageModal.cjs +667 -0
- package/dist/components/modals/LanguageModal.cjs.map +1 -0
- package/dist/components/modals/LanguageModal.d.cts +20 -0
- package/dist/components/modals/LanguageModal.d.ts +7 -8
- package/dist/components/modals/LanguageModal.js +305 -203
- package/dist/components/modals/LanguageModal.js.map +1 -1
- package/dist/components/modals/ThemeModal.cjs +694 -0
- package/dist/components/modals/ThemeModal.cjs.map +1 -0
- package/dist/components/modals/ThemeModal.d.cts +21 -0
- package/dist/components/modals/ThemeModal.d.ts +21 -0
- package/dist/components/modals/ThemeModal.js +657 -0
- package/dist/components/modals/ThemeModal.js.map +1 -0
- package/dist/components/properties/CheckboxProperty.cjs +362 -0
- package/dist/components/properties/CheckboxProperty.cjs.map +1 -0
- package/dist/components/properties/{CheckboxProperty.d.mts → CheckboxProperty.d.cts} +3 -3
- package/dist/components/properties/CheckboxProperty.d.ts +2 -2
- package/dist/components/properties/CheckboxProperty.js +94 -93
- package/dist/components/properties/CheckboxProperty.js.map +1 -1
- package/dist/components/properties/DateProperty.cjs +451 -0
- package/dist/components/properties/DateProperty.cjs.map +1 -0
- package/dist/components/properties/{DateProperty.d.mts → DateProperty.d.cts} +3 -3
- package/dist/components/properties/DateProperty.d.ts +2 -2
- package/dist/components/properties/DateProperty.js +110 -116
- package/dist/components/properties/DateProperty.js.map +1 -1
- package/dist/components/properties/{MultiSelectProperty.mjs → MultiSelectProperty.cjs} +216 -155
- package/dist/components/properties/MultiSelectProperty.cjs.map +1 -0
- package/dist/components/properties/{MultiSelectProperty.d.mts → MultiSelectProperty.d.cts} +5 -5
- package/dist/components/properties/MultiSelectProperty.d.ts +4 -4
- package/dist/components/properties/MultiSelectProperty.js +180 -184
- package/dist/components/properties/MultiSelectProperty.js.map +1 -1
- package/dist/components/properties/NumberProperty.cjs +459 -0
- package/dist/components/properties/NumberProperty.cjs.map +1 -0
- package/dist/components/properties/{NumberProperty.d.mts → NumberProperty.d.cts} +3 -3
- package/dist/components/properties/NumberProperty.d.ts +2 -2
- package/dist/components/properties/NumberProperty.js +109 -116
- package/dist/components/properties/NumberProperty.js.map +1 -1
- package/dist/components/properties/PropertyBase.cjs +223 -0
- package/dist/components/properties/PropertyBase.cjs.map +1 -0
- package/dist/components/properties/{PropertyBase.d.mts → PropertyBase.d.cts} +2 -2
- package/dist/components/properties/PropertyBase.d.ts +2 -2
- package/dist/components/properties/PropertyBase.js +60 -69
- package/dist/components/properties/PropertyBase.js.map +1 -1
- package/dist/components/properties/{SelectProperty.mjs → SelectProperty.cjs} +251 -199
- package/dist/components/properties/SelectProperty.cjs.map +1 -0
- package/dist/components/properties/{SelectProperty.d.mts → SelectProperty.d.cts} +5 -6
- package/dist/components/properties/SelectProperty.d.ts +4 -5
- package/dist/components/properties/SelectProperty.js +215 -228
- package/dist/components/properties/SelectProperty.js.map +1 -1
- package/dist/components/properties/TextProperty.cjs +428 -0
- package/dist/components/properties/TextProperty.cjs.map +1 -0
- package/dist/components/properties/{TextProperty.d.mts → TextProperty.d.cts} +3 -3
- package/dist/components/properties/TextProperty.d.ts +2 -2
- package/dist/components/properties/TextProperty.js +134 -121
- package/dist/components/properties/TextProperty.js.map +1 -1
- package/dist/components/{Button.js → user-action/Button.cjs} +70 -12
- package/dist/components/user-action/Button.cjs.map +1 -0
- package/dist/components/{Button.d.mts → user-action/Button.d.cts} +32 -5
- package/dist/components/{Button.d.ts → user-action/Button.d.ts} +32 -5
- package/dist/components/{Button.mjs → user-action/Button.js} +66 -10
- package/dist/components/user-action/Button.js.map +1 -0
- package/dist/components/{user-input/Checkbox.js → user-action/Checkbox.cjs} +26 -16
- package/dist/components/user-action/Checkbox.cjs.map +1 -0
- package/dist/components/{user-input/Checkbox.d.mts → user-action/Checkbox.d.cts} +5 -5
- package/dist/components/{user-input → user-action}/Checkbox.d.ts +4 -4
- package/dist/components/{user-input/Checkbox.mjs → user-action/Checkbox.js} +24 -14
- package/dist/components/user-action/Checkbox.js.map +1 -0
- package/dist/components/{user-input/DateAndTimePicker.js → user-action/DateAndTimePicker.cjs} +51 -23
- package/dist/components/user-action/DateAndTimePicker.cjs.map +1 -0
- package/dist/components/{user-input/DateAndTimePicker.d.mts → user-action/DateAndTimePicker.d.cts} +7 -8
- package/dist/components/{user-input → user-action}/DateAndTimePicker.d.ts +2 -3
- package/dist/components/{user-input/DateAndTimePicker.mjs → user-action/DateAndTimePicker.js} +44 -16
- package/dist/components/user-action/DateAndTimePicker.js.map +1 -0
- package/dist/components/{user-input/Input.js → user-action/Input.cjs} +35 -34
- package/dist/components/user-action/Input.cjs.map +1 -0
- package/dist/components/{user-input/Input.d.mts → user-action/Input.d.cts} +9 -16
- package/dist/components/{user-input → user-action}/Input.d.ts +8 -15
- package/dist/components/{user-input/Input.mjs → user-action/Input.js} +35 -39
- package/dist/components/user-action/Input.js.map +1 -0
- package/dist/components/{user-input/Label.js → user-action/Label.cjs} +15 -3
- package/dist/components/user-action/Label.cjs.map +1 -0
- package/dist/components/{user-input/Label.d.mts → user-action/Label.d.cts} +1 -1
- package/dist/components/{user-input → user-action}/Label.d.ts +1 -1
- package/dist/components/{user-input/Label.mjs → user-action/Label.js} +5 -3
- package/dist/components/user-action/Label.js.map +1 -0
- package/dist/components/{user-input/Menu.js → user-action/Menu.cjs} +4 -4
- package/dist/components/user-action/Menu.cjs.map +1 -0
- package/dist/components/{user-input/Menu.mjs → user-action/Menu.js} +3 -3
- package/dist/components/user-action/Menu.js.map +1 -0
- package/dist/components/{user-input/MultiSelect.js → user-action/MultiSelect.cjs} +76 -51
- package/dist/components/user-action/MultiSelect.cjs.map +1 -0
- package/dist/components/{user-input/MultiSelect.d.mts → user-action/MultiSelect.d.cts} +3 -3
- package/dist/components/{user-input → user-action}/MultiSelect.d.ts +2 -2
- package/dist/components/{user-input/MultiSelect.mjs → user-action/MultiSelect.js} +75 -55
- package/dist/components/user-action/MultiSelect.js.map +1 -0
- package/dist/components/{user-input/ScrollPicker.js → user-action/ScrollPicker.cjs} +4 -4
- package/dist/components/user-action/ScrollPicker.cjs.map +1 -0
- package/dist/components/{user-input/ScrollPicker.mjs → user-action/ScrollPicker.js} +3 -3
- package/dist/components/user-action/ScrollPicker.js.map +1 -0
- package/dist/components/{user-input/SearchableSelect.js → user-action/Select.cjs} +181 -152
- package/dist/components/user-action/Select.cjs.map +1 -0
- package/dist/components/user-action/Select.d.cts +49 -0
- package/dist/components/user-action/Select.d.ts +49 -0
- package/dist/components/{user-input/SearchableSelect.mjs → user-action/Select.js} +167 -145
- package/dist/components/user-action/Select.js.map +1 -0
- package/dist/components/{user-input/Textarea.js → user-action/Textarea.cjs} +80 -35
- package/dist/components/user-action/Textarea.cjs.map +1 -0
- package/dist/components/user-action/Textarea.d.cts +28 -0
- package/dist/components/{user-input → user-action}/Textarea.d.ts +9 -5
- package/dist/components/user-action/Textarea.js +163 -0
- package/dist/components/user-action/Textarea.js.map +1 -0
- package/dist/components/{user-input/ToggleableInput.js → user-action/ToggleableInput.cjs} +9 -15
- package/dist/components/user-action/ToggleableInput.cjs.map +1 -0
- package/dist/components/{user-input/ToggleableInput.mjs → user-action/ToggleableInput.js} +8 -14
- package/dist/components/user-action/ToggleableInput.js.map +1 -0
- package/dist/components/{Tooltip.js → user-action/Tooltip.cjs} +13 -9
- package/dist/components/user-action/Tooltip.cjs.map +1 -0
- package/dist/components/{Tooltip.d.mts → user-action/Tooltip.d.cts} +1 -1
- package/dist/components/{Tooltip.d.ts → user-action/Tooltip.d.ts} +1 -1
- package/dist/components/{Tooltip.mjs → user-action/Tooltip.js} +12 -8
- package/dist/components/user-action/Tooltip.js.map +1 -0
- package/dist/css/globals.css +178 -126
- package/dist/css/uncompiled/globals.css +65 -29
- package/dist/hooks/useHoverState.cjs +72 -0
- package/dist/hooks/{useHoverState.mjs.map → useHoverState.cjs.map} +1 -1
- package/dist/hooks/useHoverState.js +7 -32
- package/dist/hooks/useHoverState.js.map +1 -1
- package/dist/hooks/useLocalStorage.cjs +83 -0
- package/dist/hooks/useLocalStorage.cjs.map +1 -0
- package/dist/hooks/useLocalStorage.js +9 -34
- package/dist/hooks/useLocalStorage.js.map +1 -1
- package/dist/hooks/useOutsideClick.cjs +48 -0
- package/dist/hooks/{useOutsideClick.mjs.map → useOutsideClick.cjs.map} +1 -1
- package/dist/hooks/useOutsideClick.js +4 -29
- package/dist/hooks/useOutsideClick.js.map +1 -1
- package/dist/hooks/useSaveDelay.cjs +68 -0
- package/dist/hooks/{useSaveDelay.mjs.map → useSaveDelay.cjs.map} +1 -1
- package/dist/hooks/useSaveDelay.js +6 -31
- package/dist/hooks/useSaveDelay.js.map +1 -1
- package/dist/{index.mjs → index.cjs} +4005 -3881
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +82 -0
- package/dist/index.d.ts +49 -55
- package/dist/index.js +3822 -4055
- package/dist/index.js.map +1 -1
- package/dist/{hooks/useLanguage.js → localization/LanguageProvider.cjs} +30 -26
- package/dist/localization/LanguageProvider.cjs.map +1 -0
- package/dist/localization/LanguageProvider.d.cts +18 -0
- package/dist/localization/LanguageProvider.d.ts +18 -0
- package/dist/{hooks/useLanguage.mjs → localization/LanguageProvider.js} +26 -19
- package/dist/localization/LanguageProvider.js.map +1 -0
- package/dist/{hooks/useTranslation.js → localization/useTranslation.cjs} +23 -8
- package/dist/localization/useTranslation.cjs.map +1 -0
- package/dist/{hooks/useTranslation.d.mts → localization/useTranslation.d.cts} +5 -7
- package/dist/{hooks → localization}/useTranslation.d.ts +5 -7
- package/dist/{hooks/useTranslation.mjs → localization/useTranslation.js} +22 -7
- package/dist/localization/useTranslation.js.map +1 -0
- package/dist/localization/util.cjs +41 -0
- package/dist/localization/util.cjs.map +1 -0
- package/dist/localization/util.d.cts +18 -0
- package/dist/localization/util.d.ts +18 -0
- package/dist/localization/util.js +16 -0
- package/dist/localization/util.js.map +1 -0
- package/dist/{hooks/useTheme.js → theming/useTheme.cjs} +19 -11
- package/dist/theming/useTheme.cjs.map +1 -0
- package/dist/{hooks/useTheme.d.mts → theming/useTheme.d.cts} +9 -5
- package/dist/{hooks → theming}/useTheme.d.ts +9 -5
- package/dist/{hooks/useTheme.mjs → theming/useTheme.js} +15 -7
- package/dist/theming/useTheme.js.map +1 -0
- package/dist/util/{array.mjs → array.cjs} +34 -3
- package/dist/util/array.cjs.map +1 -0
- package/dist/util/array.js +2 -33
- package/dist/util/array.js.map +1 -1
- package/dist/util/builder.cjs +34 -0
- package/dist/util/{builder.mjs.map → builder.cjs.map} +1 -1
- package/dist/util/builder.js +2 -27
- package/dist/util/builder.js.map +1 -1
- package/dist/util/{date.mjs → date.cjs} +41 -3
- package/dist/util/date.cjs.map +1 -0
- package/dist/util/date.js +2 -40
- package/dist/util/date.js.map +1 -1
- package/dist/util/easeFunctions.cjs +63 -0
- package/dist/util/easeFunctions.cjs.map +1 -0
- package/dist/util/easeFunctions.js +2 -29
- package/dist/util/easeFunctions.js.map +1 -1
- package/dist/util/emailValidation.cjs +33 -0
- package/dist/util/{emailValidation.mjs.map → emailValidation.cjs.map} +1 -1
- package/dist/util/emailValidation.js +2 -27
- package/dist/util/emailValidation.js.map +1 -1
- package/dist/util/{loopingArray.mjs → loopingArray.cjs} +28 -3
- package/dist/util/{loopingArray.mjs.map → loopingArray.cjs.map} +1 -1
- package/dist/util/loopingArray.js +2 -27
- package/dist/util/loopingArray.js.map +1 -1
- package/dist/util/math.cjs +33 -0
- package/dist/util/{math.mjs.map → math.cjs.map} +1 -1
- package/dist/util/math.js +2 -27
- package/dist/util/math.js.map +1 -1
- package/dist/util/news.cjs +77 -0
- package/dist/util/news.cjs.map +1 -0
- package/dist/util/{news.d.mts → news.d.cts} +11 -13
- package/dist/util/news.d.ts +11 -13
- package/dist/util/news.js +22 -49
- package/dist/util/news.js.map +1 -1
- package/dist/util/noop.cjs +31 -0
- package/dist/util/noop.cjs.map +1 -0
- package/dist/util/noop.js +2 -27
- package/dist/util/noop.js.map +1 -1
- package/dist/util/simpleSearch.cjs +54 -0
- package/dist/util/simpleSearch.cjs.map +1 -0
- package/dist/util/simpleSearch.js +2 -30
- package/dist/util/simpleSearch.js.map +1 -1
- package/dist/util/storage.cjs +64 -0
- package/dist/util/storage.cjs.map +1 -0
- package/dist/util/storage.js +2 -28
- package/dist/util/storage.js.map +1 -1
- package/dist/util/types.cjs +19 -0
- package/dist/util/types.cjs.map +1 -0
- package/dist/util/types.js +0 -18
- package/dist/util/types.js.map +1 -1
- package/package.json +9 -12
- package/dist/coloring/shading.mjs +0 -47
- package/dist/coloring/shading.mjs.map +0 -1
- package/dist/coloring/types.mjs +0 -6
- package/dist/components/Avatar.d.mts +0 -17
- package/dist/components/Avatar.d.ts +0 -17
- package/dist/components/Avatar.js +0 -85
- package/dist/components/Avatar.js.map +0 -1
- package/dist/components/Avatar.mjs +0 -48
- package/dist/components/Avatar.mjs.map +0 -1
- package/dist/components/AvatarGroup.d.mts +0 -14
- package/dist/components/AvatarGroup.d.ts +0 -14
- package/dist/components/AvatarGroup.js.map +0 -1
- package/dist/components/AvatarGroup.mjs.map +0 -1
- package/dist/components/BreadCrumb.js.map +0 -1
- package/dist/components/BreadCrumb.mjs.map +0 -1
- package/dist/components/Button.js.map +0 -1
- package/dist/components/Button.mjs.map +0 -1
- package/dist/components/ChipList.js.map +0 -1
- package/dist/components/ChipList.mjs.map +0 -1
- package/dist/components/Circle.js.map +0 -1
- package/dist/components/Circle.mjs.map +0 -1
- package/dist/components/ErrorComponent.js.map +0 -1
- package/dist/components/ErrorComponent.mjs.map +0 -1
- package/dist/components/Expandable.js.map +0 -1
- package/dist/components/Expandable.mjs.map +0 -1
- package/dist/components/HelpwaveBadge.js.map +0 -1
- package/dist/components/HelpwaveBadge.mjs +0 -91
- package/dist/components/HelpwaveBadge.mjs.map +0 -1
- package/dist/components/HideableContentSection.d.mts +0 -14
- package/dist/components/HideableContentSection.d.ts +0 -14
- package/dist/components/HideableContentSection.js +0 -70
- package/dist/components/HideableContentSection.js.map +0 -1
- package/dist/components/HideableContentSection.mjs +0 -35
- package/dist/components/HideableContentSection.mjs.map +0 -1
- package/dist/components/InputGroup.d.mts +0 -17
- package/dist/components/InputGroup.d.ts +0 -17
- package/dist/components/InputGroup.js +0 -97
- package/dist/components/InputGroup.js.map +0 -1
- package/dist/components/InputGroup.mjs +0 -62
- package/dist/components/InputGroup.mjs.map +0 -1
- package/dist/components/LoadingAndErrorComponent.js.map +0 -1
- package/dist/components/LoadingAndErrorComponent.mjs.map +0 -1
- package/dist/components/LoadingAnimation.js.map +0 -1
- package/dist/components/LoadingAnimation.mjs.map +0 -1
- package/dist/components/LoadingButton.js.map +0 -1
- package/dist/components/LoadingButton.mjs.map +0 -1
- package/dist/components/MarkdownInterpreter.js.map +0 -1
- package/dist/components/MarkdownInterpreter.mjs.map +0 -1
- package/dist/components/Pagination.js.map +0 -1
- package/dist/components/Pagination.mjs.map +0 -1
- package/dist/components/Profile.d.mts +0 -31
- package/dist/components/Profile.d.ts +0 -31
- package/dist/components/Profile.js +0 -197
- package/dist/components/Profile.js.map +0 -1
- package/dist/components/Profile.mjs +0 -162
- package/dist/components/Profile.mjs.map +0 -1
- package/dist/components/ProgressIndicator.js.map +0 -1
- package/dist/components/ProgressIndicator.mjs.map +0 -1
- package/dist/components/Ring.js.map +0 -1
- package/dist/components/Ring.mjs.map +0 -1
- package/dist/components/SearchableList.js.map +0 -1
- package/dist/components/SearchableList.mjs.map +0 -1
- package/dist/components/SortButton.d.mts +0 -15
- package/dist/components/SortButton.d.ts +0 -15
- package/dist/components/SortButton.js +0 -132
- package/dist/components/SortButton.js.map +0 -1
- package/dist/components/SortButton.mjs +0 -97
- package/dist/components/SortButton.mjs.map +0 -1
- package/dist/components/StepperBar.js.map +0 -1
- package/dist/components/StepperBar.mjs.map +0 -1
- package/dist/components/Table.js.map +0 -1
- package/dist/components/Table.mjs.map +0 -1
- package/dist/components/TechRadar.d.mts +0 -39
- package/dist/components/TechRadar.d.ts +0 -39
- package/dist/components/TechRadar.js +0 -243
- package/dist/components/TechRadar.js.map +0 -1
- package/dist/components/TechRadar.mjs +0 -208
- package/dist/components/TechRadar.mjs.map +0 -1
- package/dist/components/TextImage.js.map +0 -1
- package/dist/components/TextImage.mjs.map +0 -1
- package/dist/components/TimeDisplay.js.map +0 -1
- package/dist/components/TimeDisplay.mjs.map +0 -1
- package/dist/components/Tooltip.js.map +0 -1
- package/dist/components/Tooltip.mjs.map +0 -1
- package/dist/components/VerticalDivider.js.map +0 -1
- package/dist/components/VerticalDivider.mjs.map +0 -1
- package/dist/components/date/DatePicker.mjs.map +0 -1
- package/dist/components/date/DayPicker.mjs.map +0 -1
- package/dist/components/date/TimePicker.mjs.map +0 -1
- package/dist/components/date/YearMonthPicker.mjs.map +0 -1
- package/dist/components/icons/Helpwave.js.map +0 -1
- package/dist/components/icons/Helpwave.mjs +0 -43
- package/dist/components/icons/Helpwave.mjs.map +0 -1
- package/dist/components/icons/Tag.js.map +0 -1
- package/dist/components/icons/Tag.mjs.map +0 -1
- package/dist/components/layout/Carousel.js.map +0 -1
- package/dist/components/layout/Carousel.mjs.map +0 -1
- package/dist/components/layout/DividerInserter.js.map +0 -1
- package/dist/components/layout/DividerInserter.mjs.map +0 -1
- package/dist/components/layout/FAQSection.js.map +0 -1
- package/dist/components/layout/FAQSection.mjs.map +0 -1
- package/dist/components/layout/Tile.js.map +0 -1
- package/dist/components/layout/Tile.mjs.map +0 -1
- package/dist/components/modals/ConfirmDialog.mjs +0 -390
- package/dist/components/modals/ConfirmDialog.mjs.map +0 -1
- package/dist/components/modals/DiscardChangesDialog.d.mts +0 -23
- package/dist/components/modals/DiscardChangesDialog.d.ts +0 -23
- package/dist/components/modals/DiscardChangesDialog.js.map +0 -1
- package/dist/components/modals/DiscardChangesDialog.mjs.map +0 -1
- package/dist/components/modals/InputModal.mjs +0 -568
- package/dist/components/modals/InputModal.mjs.map +0 -1
- package/dist/components/modals/LanguageModal.d.mts +0 -21
- package/dist/components/modals/LanguageModal.mjs +0 -491
- package/dist/components/modals/LanguageModal.mjs.map +0 -1
- package/dist/components/modals/Modal.d.mts +0 -43
- package/dist/components/modals/Modal.d.ts +0 -43
- package/dist/components/modals/Modal.js +0 -288
- package/dist/components/modals/Modal.js.map +0 -1
- package/dist/components/modals/Modal.mjs +0 -251
- package/dist/components/modals/Modal.mjs.map +0 -1
- package/dist/components/modals/ModalRegister.d.mts +0 -16
- package/dist/components/modals/ModalRegister.d.ts +0 -16
- package/dist/components/modals/ModalRegister.js +0 -63
- package/dist/components/modals/ModalRegister.js.map +0 -1
- package/dist/components/modals/ModalRegister.mjs +0 -37
- package/dist/components/modals/ModalRegister.mjs.map +0 -1
- package/dist/components/properties/CheckboxProperty.mjs +0 -291
- package/dist/components/properties/CheckboxProperty.mjs.map +0 -1
- package/dist/components/properties/DateProperty.mjs +0 -392
- package/dist/components/properties/DateProperty.mjs.map +0 -1
- package/dist/components/properties/MultiSelectProperty.mjs.map +0 -1
- package/dist/components/properties/NumberProperty.mjs +0 -401
- package/dist/components/properties/NumberProperty.mjs.map +0 -1
- package/dist/components/properties/PropertyBase.mjs +0 -162
- package/dist/components/properties/PropertyBase.mjs.map +0 -1
- package/dist/components/properties/SelectProperty.mjs.map +0 -1
- package/dist/components/properties/TextProperty.mjs +0 -345
- package/dist/components/properties/TextProperty.mjs.map +0 -1
- package/dist/components/user-input/Checkbox.js.map +0 -1
- package/dist/components/user-input/Checkbox.mjs.map +0 -1
- package/dist/components/user-input/DateAndTimePicker.js.map +0 -1
- package/dist/components/user-input/DateAndTimePicker.mjs.map +0 -1
- package/dist/components/user-input/Input.js.map +0 -1
- package/dist/components/user-input/Input.mjs.map +0 -1
- package/dist/components/user-input/Label.js.map +0 -1
- package/dist/components/user-input/Label.mjs.map +0 -1
- package/dist/components/user-input/Menu.js.map +0 -1
- package/dist/components/user-input/Menu.mjs.map +0 -1
- package/dist/components/user-input/MultiSelect.js.map +0 -1
- package/dist/components/user-input/MultiSelect.mjs.map +0 -1
- package/dist/components/user-input/ScrollPicker.js.map +0 -1
- package/dist/components/user-input/ScrollPicker.mjs.map +0 -1
- package/dist/components/user-input/SearchableSelect.d.mts +0 -14
- package/dist/components/user-input/SearchableSelect.d.ts +0 -14
- package/dist/components/user-input/SearchableSelect.js.map +0 -1
- package/dist/components/user-input/SearchableSelect.mjs.map +0 -1
- package/dist/components/user-input/Select.d.mts +0 -36
- package/dist/components/user-input/Select.d.ts +0 -36
- package/dist/components/user-input/Select.js +0 -153
- package/dist/components/user-input/Select.js.map +0 -1
- package/dist/components/user-input/Select.mjs +0 -118
- package/dist/components/user-input/Select.mjs.map +0 -1
- package/dist/components/user-input/Textarea.d.mts +0 -24
- package/dist/components/user-input/Textarea.js.map +0 -1
- package/dist/components/user-input/Textarea.mjs +0 -119
- package/dist/components/user-input/Textarea.mjs.map +0 -1
- package/dist/components/user-input/ToggleableInput.js.map +0 -1
- package/dist/components/user-input/ToggleableInput.mjs.map +0 -1
- package/dist/hooks/useHoverState.mjs +0 -47
- package/dist/hooks/useLanguage.d.mts +0 -21
- package/dist/hooks/useLanguage.d.ts +0 -21
- package/dist/hooks/useLanguage.js.map +0 -1
- package/dist/hooks/useLanguage.mjs.map +0 -1
- package/dist/hooks/useLocalStorage.mjs +0 -58
- package/dist/hooks/useLocalStorage.mjs.map +0 -1
- package/dist/hooks/useOutsideClick.mjs +0 -23
- package/dist/hooks/useSaveDelay.mjs +0 -43
- package/dist/hooks/useTheme.js.map +0 -1
- package/dist/hooks/useTheme.mjs.map +0 -1
- package/dist/hooks/useTranslation.js.map +0 -1
- package/dist/hooks/useTranslation.mjs.map +0 -1
- package/dist/index.d.mts +0 -88
- package/dist/index.mjs.map +0 -1
- package/dist/util/array.mjs.map +0 -1
- package/dist/util/builder.mjs +0 -9
- package/dist/util/date.mjs.map +0 -1
- package/dist/util/easeFunctions.mjs +0 -36
- package/dist/util/easeFunctions.mjs.map +0 -1
- package/dist/util/emailValidation.mjs +0 -8
- package/dist/util/math.mjs +0 -8
- package/dist/util/news.mjs +0 -48
- package/dist/util/news.mjs.map +0 -1
- package/dist/util/noop.mjs +0 -6
- package/dist/util/noop.mjs.map +0 -1
- package/dist/util/simpleSearch.mjs +0 -26
- package/dist/util/simpleSearch.mjs.map +0 -1
- package/dist/util/storage.mjs +0 -38
- package/dist/util/storage.mjs.map +0 -1
- package/dist/util/types.mjs +0 -1
- package/dist/util/types.mjs.map +0 -1
- /package/dist/coloring/{types.d.mts → types.d.cts} +0 -0
- /package/dist/components/{HelpwaveBadge.d.mts → branding/HelpwaveBadge.d.cts} +0 -0
- /package/dist/components/{HelpwaveBadge.d.ts → branding/HelpwaveBadge.d.ts} +0 -0
- /package/dist/components/{Circle.d.mts → icons-and-geometry/Circle.d.cts} +0 -0
- /package/dist/components/{Circle.d.ts → icons-and-geometry/Circle.d.ts} +0 -0
- /package/dist/components/{icons/Helpwave.d.mts → icons-and-geometry/Helpwave.d.cts} +0 -0
- /package/dist/components/{icons → icons-and-geometry}/Helpwave.d.ts +0 -0
- /package/dist/components/{Ring.d.mts → icons-and-geometry/Ring.d.cts} +0 -0
- /package/dist/components/{Ring.d.ts → icons-and-geometry/Ring.d.ts} +0 -0
- /package/dist/components/{icons/Tag.d.mts → icons-and-geometry/Tag.d.cts} +0 -0
- /package/dist/components/{icons → icons-and-geometry}/Tag.d.ts +0 -0
- /package/dist/components/{BreadCrumb.d.mts → layout-and-navigation/BreadCrumb.d.cts} +0 -0
- /package/dist/components/{BreadCrumb.d.ts → layout-and-navigation/BreadCrumb.d.ts} +0 -0
- /package/dist/components/{layout/Carousel.d.mts → layout-and-navigation/Carousel.d.cts} +0 -0
- /package/dist/components/{layout → layout-and-navigation}/Carousel.d.ts +0 -0
- /package/dist/components/{ChipList.d.mts → layout-and-navigation/Chip.d.cts} +0 -0
- /package/dist/components/{ChipList.d.ts → layout-and-navigation/Chip.d.ts} +0 -0
- /package/dist/components/{layout/DividerInserter.d.mts → layout-and-navigation/DividerInserter.d.cts} +0 -0
- /package/dist/components/{layout → layout-and-navigation}/DividerInserter.d.ts +0 -0
- /package/dist/components/{Expandable.d.mts → layout-and-navigation/Expandable.d.cts} +0 -0
- /package/dist/components/{Expandable.d.ts → layout-and-navigation/Expandable.d.ts} +0 -0
- /package/dist/components/{MarkdownInterpreter.d.mts → layout-and-navigation/MarkdownInterpreter.d.cts} +0 -0
- /package/dist/components/{MarkdownInterpreter.d.ts → layout-and-navigation/MarkdownInterpreter.d.ts} +0 -0
- /package/dist/components/{layout/Tile.d.mts → layout-and-navigation/Tile.d.cts} +0 -0
- /package/dist/components/{layout → layout-and-navigation}/Tile.d.ts +0 -0
- /package/dist/components/{VerticalDivider.d.mts → layout-and-navigation/VerticalDivider.d.cts} +0 -0
- /package/dist/components/{VerticalDivider.d.ts → layout-and-navigation/VerticalDivider.d.ts} +0 -0
- /package/dist/components/{ProgressIndicator.d.mts → loading-states/ProgressIndicator.d.cts} +0 -0
- /package/dist/components/{ProgressIndicator.d.ts → loading-states/ProgressIndicator.d.ts} +0 -0
- /package/dist/components/{user-input/Menu.d.mts → user-action/Menu.d.cts} +0 -0
- /package/dist/components/{user-input → user-action}/Menu.d.ts +0 -0
- /package/dist/components/{user-input/ScrollPicker.d.mts → user-action/ScrollPicker.d.cts} +0 -0
- /package/dist/components/{user-input → user-action}/ScrollPicker.d.ts +0 -0
- /package/dist/components/{user-input/ToggleableInput.d.mts → user-action/ToggleableInput.d.cts} +0 -0
- /package/dist/components/{user-input → user-action}/ToggleableInput.d.ts +0 -0
- /package/dist/hooks/{useHoverState.d.mts → useHoverState.d.cts} +0 -0
- /package/dist/hooks/{useLocalStorage.d.mts → useLocalStorage.d.cts} +0 -0
- /package/dist/hooks/{useOutsideClick.d.mts → useOutsideClick.d.cts} +0 -0
- /package/dist/hooks/{useSaveDelay.d.mts → useSaveDelay.d.cts} +0 -0
- /package/dist/util/{array.d.mts → array.d.cts} +0 -0
- /package/dist/util/{builder.d.mts → builder.d.cts} +0 -0
- /package/dist/util/{date.d.mts → date.d.cts} +0 -0
- /package/dist/util/{easeFunctions.d.mts → easeFunctions.d.cts} +0 -0
- /package/dist/util/{emailValidation.d.mts → emailValidation.d.cts} +0 -0
- /package/dist/util/{loopingArray.d.mts → loopingArray.d.cts} +0 -0
- /package/dist/util/{math.d.mts → math.d.cts} +0 -0
- /package/dist/util/{noop.d.mts → noop.d.cts} +0 -0
- /package/dist/util/{simpleSearch.d.mts → simpleSearch.d.cts} +0 -0
- /package/dist/util/{storage.d.mts → storage.d.cts} +0 -0
- /package/dist/util/{types.d.mts → types.d.cts} +0 -0
|
@@ -1,52 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
var
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
// src/localization/LanguageProvider.tsx
|
|
2
|
+
import { createContext, useContext, useEffect as useEffect2, useState as useState2 } from "react";
|
|
3
|
+
|
|
4
|
+
// src/hooks/useLocalStorage.ts
|
|
5
|
+
import { useCallback, useEffect, useState } from "react";
|
|
6
|
+
|
|
7
|
+
// src/localization/util.ts
|
|
8
|
+
var languages = ["en", "de"];
|
|
9
|
+
var languagesLocalNames = {
|
|
10
|
+
en: "English",
|
|
11
|
+
de: "Deutsch"
|
|
11
12
|
};
|
|
12
|
-
var
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
13
|
+
var DEFAULT_LANGUAGE = "en";
|
|
14
|
+
var LanguageUtil = {
|
|
15
|
+
languages,
|
|
16
|
+
DEFAULT_LANGUAGE,
|
|
17
|
+
languagesLocalNames
|
|
19
18
|
};
|
|
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
19
|
|
|
30
|
-
// src/
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
20
|
+
// src/localization/LanguageProvider.tsx
|
|
21
|
+
import { jsx } from "react/jsx-runtime";
|
|
22
|
+
var LanguageContext = createContext({
|
|
23
|
+
language: LanguageUtil.DEFAULT_LANGUAGE,
|
|
24
|
+
setLanguage: (v) => v
|
|
34
25
|
});
|
|
35
|
-
|
|
26
|
+
var useLanguage = () => useContext(LanguageContext);
|
|
36
27
|
|
|
37
|
-
// src/
|
|
38
|
-
var import_react2 = require("react");
|
|
39
|
-
|
|
40
|
-
// src/hooks/useLocalStorage.tsx
|
|
41
|
-
var import_react = require("react");
|
|
42
|
-
|
|
43
|
-
// src/hooks/useLanguage.tsx
|
|
44
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
45
|
-
var DEFAULT_LANGUAGE = "en";
|
|
46
|
-
var LanguageContext = (0, import_react2.createContext)({ language: DEFAULT_LANGUAGE, setLanguage: (v) => v });
|
|
47
|
-
var useLanguage = () => (0, import_react2.useContext)(LanguageContext);
|
|
48
|
-
|
|
49
|
-
// src/hooks/useTranslation.ts
|
|
28
|
+
// src/localization/useTranslation.ts
|
|
50
29
|
var useTranslation = (defaults, translationOverwrite = {}) => {
|
|
51
30
|
const { language: languageProp, translation: overwrite } = translationOverwrite;
|
|
52
31
|
const { language: inferredLanguage } = useLanguage();
|
|
@@ -58,13 +37,15 @@ var useTranslation = (defaults, translationOverwrite = {}) => {
|
|
|
58
37
|
return defaultValues;
|
|
59
38
|
};
|
|
60
39
|
|
|
61
|
-
// src/components/user-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
40
|
+
// src/components/user-action/Select.tsx
|
|
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";
|
|
65
45
|
|
|
66
|
-
// src/components/user-
|
|
67
|
-
|
|
46
|
+
// src/components/user-action/Label.tsx
|
|
47
|
+
import clsx from "clsx";
|
|
48
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
68
49
|
var styleMapping = {
|
|
69
50
|
labelSmall: "textstyle-label-sm",
|
|
70
51
|
labelMedium: "textstyle-label-md",
|
|
@@ -74,13 +55,59 @@ var Label = ({
|
|
|
74
55
|
children,
|
|
75
56
|
name,
|
|
76
57
|
labelType = "labelSmall",
|
|
58
|
+
className,
|
|
77
59
|
...props
|
|
78
60
|
}) => {
|
|
79
|
-
return /* @__PURE__ */ (
|
|
61
|
+
return /* @__PURE__ */ jsx2("label", { ...props, className: clsx(styleMapping[labelType], className), children: children ? children : name });
|
|
80
62
|
};
|
|
81
63
|
|
|
82
|
-
// src/components/user-
|
|
83
|
-
|
|
64
|
+
// src/components/user-action/Input.tsx
|
|
65
|
+
import { forwardRef, useEffect as useEffect4, useRef, useState as useState4 } from "react";
|
|
66
|
+
import clsx2 from "clsx";
|
|
67
|
+
|
|
68
|
+
// src/hooks/useSaveDelay.ts
|
|
69
|
+
import { useEffect as useEffect3, useState as useState3 } from "react";
|
|
70
|
+
|
|
71
|
+
// src/components/user-action/Input.tsx
|
|
72
|
+
import { jsx as jsx3, jsxs } from "react/jsx-runtime";
|
|
73
|
+
var FormInput = forwardRef(function FormInput2({
|
|
74
|
+
id,
|
|
75
|
+
labelText,
|
|
76
|
+
errorText,
|
|
77
|
+
className,
|
|
78
|
+
labelClassName,
|
|
79
|
+
errorClassName,
|
|
80
|
+
containerClassName,
|
|
81
|
+
required,
|
|
82
|
+
...restProps
|
|
83
|
+
}, ref) {
|
|
84
|
+
const input = /* @__PURE__ */ jsx3(
|
|
85
|
+
"input",
|
|
86
|
+
{
|
|
87
|
+
ref,
|
|
88
|
+
id,
|
|
89
|
+
...restProps,
|
|
90
|
+
className: clsx2(
|
|
91
|
+
{
|
|
92
|
+
"focus:border-primary focus:ring-primary": !errorText,
|
|
93
|
+
"focus:border-negative focus:ring-negative text-negative": !!errorText
|
|
94
|
+
},
|
|
95
|
+
className
|
|
96
|
+
)
|
|
97
|
+
}
|
|
98
|
+
);
|
|
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: [
|
|
101
|
+
labelText,
|
|
102
|
+
required && /* @__PURE__ */ jsx3("span", { className: "text-primary font-bold", children: "*" })
|
|
103
|
+
] }),
|
|
104
|
+
input,
|
|
105
|
+
errorText && /* @__PURE__ */ jsx3("label", { htmlFor: id, className: clsx2("text-negative", errorClassName), children: errorText })
|
|
106
|
+
] });
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
// src/components/user-action/Select.tsx
|
|
110
|
+
import { Fragment, jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
84
111
|
var Select = ({
|
|
85
112
|
value,
|
|
86
113
|
label,
|
|
@@ -105,13 +132,13 @@ var Select = ({
|
|
|
105
132
|
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");
|
|
106
133
|
}
|
|
107
134
|
const borderColor = "border-menu-border";
|
|
108
|
-
return /* @__PURE__ */ (
|
|
109
|
-
label && /* @__PURE__ */ (
|
|
110
|
-
/* @__PURE__ */ (
|
|
111
|
-
/* @__PURE__ */ (
|
|
112
|
-
|
|
135
|
+
return /* @__PURE__ */ jsxs2("div", { className: clsx3(className), children: [
|
|
136
|
+
label && /* @__PURE__ */ jsx4(Label, { ...label, labelType: label.labelType ?? "labelBig", className: clsx3("mb-1", label.className) }),
|
|
137
|
+
/* @__PURE__ */ jsx4(Menu, { as: "div", className: "relative text-menu-text", children: ({ open }) => /* @__PURE__ */ jsxs2(Fragment, { children: [
|
|
138
|
+
/* @__PURE__ */ jsxs2(
|
|
139
|
+
Menu.Button,
|
|
113
140
|
{
|
|
114
|
-
className: (
|
|
141
|
+
className: clsx3(
|
|
115
142
|
"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",
|
|
116
143
|
textColor,
|
|
117
144
|
borderColor,
|
|
@@ -123,30 +150,30 @@ var Select = ({
|
|
|
123
150
|
),
|
|
124
151
|
disabled: isDisabled,
|
|
125
152
|
children: [
|
|
126
|
-
/* @__PURE__ */ (
|
|
127
|
-
open ? /* @__PURE__ */ (
|
|
153
|
+
/* @__PURE__ */ jsx4("span", { children: selectedDisplayOverwrite ?? selectedOption?.label ?? hintText }),
|
|
154
|
+
open ? /* @__PURE__ */ jsx4(ChevronUp, {}) : /* @__PURE__ */ jsx4(ChevronDown, {})
|
|
128
155
|
]
|
|
129
156
|
}
|
|
130
157
|
),
|
|
131
|
-
/* @__PURE__ */ (
|
|
132
|
-
|
|
158
|
+
/* @__PURE__ */ jsxs2(
|
|
159
|
+
Menu.Items,
|
|
133
160
|
{
|
|
134
161
|
className: "absolute w-full z-10 rounded-b-lg bg-menu-background text-menu-text shadow-lg max-h-[500px] overflow-y-auto",
|
|
135
162
|
children: [
|
|
136
|
-
(additionalItems ?? []).map((item, index) => /* @__PURE__ */ (
|
|
163
|
+
(additionalItems ?? []).map((item, index) => /* @__PURE__ */ jsx4(
|
|
137
164
|
"div",
|
|
138
165
|
{
|
|
139
|
-
className: (
|
|
166
|
+
className: clsx3(borderColor, "px-4 py-2 overflow-hidden whitespace-nowrap text-ellipsis border-2 border-t-0", {
|
|
140
167
|
"border-b-0 rounded-b-lg": filteredOptions.length === 0 && index === (additionalItems?.length ?? 1) - 1
|
|
141
168
|
}),
|
|
142
169
|
children: item
|
|
143
170
|
},
|
|
144
171
|
`additionalItems${index}`
|
|
145
172
|
)),
|
|
146
|
-
filteredOptions.map((option, index) => /* @__PURE__ */ (
|
|
173
|
+
filteredOptions.map((option, index) => /* @__PURE__ */ jsx4(Menu.Item, { children: /* @__PURE__ */ jsx4(
|
|
147
174
|
"div",
|
|
148
175
|
{
|
|
149
|
-
className: (
|
|
176
|
+
className: clsx3(
|
|
150
177
|
"px-4 py-2 overflow-hidden whitespace-nowrap text-ellipsis border-2 border-t-0 cursor-pointer",
|
|
151
178
|
option.className,
|
|
152
179
|
borderColor,
|
|
@@ -173,14 +200,23 @@ var Select = ({
|
|
|
173
200
|
] });
|
|
174
201
|
};
|
|
175
202
|
|
|
176
|
-
// src/components/Button.tsx
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
var
|
|
203
|
+
// src/components/user-action/Button.tsx
|
|
204
|
+
import clsx4 from "clsx";
|
|
205
|
+
import { jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
206
|
+
var paddingMapping = {
|
|
180
207
|
small: "btn-sm",
|
|
181
208
|
medium: "btn-md",
|
|
182
209
|
large: "btn-lg"
|
|
183
210
|
};
|
|
211
|
+
var iconPaddingMapping = {
|
|
212
|
+
small: "icon-btn-sm",
|
|
213
|
+
medium: "icon-btn-md",
|
|
214
|
+
large: "icon-btn-lg"
|
|
215
|
+
};
|
|
216
|
+
var ButtonUtil = {
|
|
217
|
+
paddingMapping,
|
|
218
|
+
iconPaddingMapping
|
|
219
|
+
};
|
|
184
220
|
var SolidButton = ({
|
|
185
221
|
children,
|
|
186
222
|
disabled = false,
|
|
@@ -198,7 +234,8 @@ var SolidButton = ({
|
|
|
198
234
|
tertiary: "bg-button-solid-tertiary-background text-button-solid-tertiary-text",
|
|
199
235
|
positive: "bg-button-solid-positive-background text-button-solid-positive-text",
|
|
200
236
|
warning: "bg-button-solid-warning-background text-button-solid-warning-text",
|
|
201
|
-
negative: "bg-button-solid-negative-background text-button-solid-negative-text"
|
|
237
|
+
negative: "bg-button-solid-negative-background text-button-solid-negative-text",
|
|
238
|
+
neutral: "bg-button-solid-neutral-background text-button-solid-neutral-text"
|
|
202
239
|
}[color];
|
|
203
240
|
const iconColorClasses = {
|
|
204
241
|
primary: "text-button-solid-primary-icon",
|
|
@@ -206,27 +243,28 @@ var SolidButton = ({
|
|
|
206
243
|
tertiary: "text-button-solid-tertiary-icon",
|
|
207
244
|
positive: "text-button-solid-positive-icon",
|
|
208
245
|
warning: "text-button-solid-warning-icon",
|
|
209
|
-
negative: "text-button-solid-negative-icon"
|
|
246
|
+
negative: "text-button-solid-negative-icon",
|
|
247
|
+
neutral: "text-button-solid-neutral-icon"
|
|
210
248
|
}[color];
|
|
211
|
-
return /* @__PURE__ */ (
|
|
249
|
+
return /* @__PURE__ */ jsxs3(
|
|
212
250
|
"button",
|
|
213
251
|
{
|
|
214
252
|
onClick: disabled ? void 0 : onClick,
|
|
215
253
|
disabled: disabled || onClick === void 0,
|
|
216
|
-
className: (
|
|
254
|
+
className: clsx4(
|
|
217
255
|
className,
|
|
218
256
|
{
|
|
219
257
|
"text-disabled-text bg-disabled-background": disabled,
|
|
220
|
-
[(
|
|
258
|
+
[clsx4(colorClasses, "hover:brightness-90")]: !disabled
|
|
221
259
|
},
|
|
222
|
-
|
|
260
|
+
ButtonUtil.paddingMapping[size]
|
|
223
261
|
),
|
|
224
262
|
...restProps,
|
|
225
263
|
children: [
|
|
226
|
-
startIcon && /* @__PURE__ */ (
|
|
264
|
+
startIcon && /* @__PURE__ */ jsx5(
|
|
227
265
|
"span",
|
|
228
266
|
{
|
|
229
|
-
className: (
|
|
267
|
+
className: clsx4({
|
|
230
268
|
[iconColorClasses]: !disabled,
|
|
231
269
|
[`text-disabled-icon`]: disabled
|
|
232
270
|
}),
|
|
@@ -234,10 +272,10 @@ var SolidButton = ({
|
|
|
234
272
|
}
|
|
235
273
|
),
|
|
236
274
|
children,
|
|
237
|
-
endIcon && /* @__PURE__ */ (
|
|
275
|
+
endIcon && /* @__PURE__ */ jsx5(
|
|
238
276
|
"span",
|
|
239
277
|
{
|
|
240
|
-
className: (
|
|
278
|
+
className: clsx4({
|
|
241
279
|
[iconColorClasses]: !disabled,
|
|
242
280
|
[`text-disabled-icon`]: disabled
|
|
243
281
|
}),
|
|
@@ -248,23 +286,58 @@ var SolidButton = ({
|
|
|
248
286
|
}
|
|
249
287
|
);
|
|
250
288
|
};
|
|
289
|
+
var IconButton = ({
|
|
290
|
+
children,
|
|
291
|
+
disabled = false,
|
|
292
|
+
color = "primary",
|
|
293
|
+
size = "medium",
|
|
294
|
+
onClick,
|
|
295
|
+
className,
|
|
296
|
+
...restProps
|
|
297
|
+
}) => {
|
|
298
|
+
const colorClasses = {
|
|
299
|
+
primary: "bg-button-solid-primary-background text-button-solid-primary-text",
|
|
300
|
+
secondary: "bg-button-solid-secondary-background text-button-solid-secondary-text",
|
|
301
|
+
tertiary: "bg-button-solid-tertiary-background text-button-solid-tertiary-text",
|
|
302
|
+
positive: "bg-button-solid-positive-background text-button-solid-positive-text",
|
|
303
|
+
warning: "bg-button-solid-warning-background text-button-solid-warning-text",
|
|
304
|
+
negative: "bg-button-solid-negative-background text-button-solid-negative-text",
|
|
305
|
+
neutral: "bg-button-solid-neutral-background text-button-solid-neutral-text"
|
|
306
|
+
}[color];
|
|
307
|
+
return /* @__PURE__ */ jsx5(
|
|
308
|
+
"button",
|
|
309
|
+
{
|
|
310
|
+
onClick: disabled ? void 0 : onClick,
|
|
311
|
+
disabled: disabled || onClick === void 0,
|
|
312
|
+
className: clsx4(
|
|
313
|
+
className,
|
|
314
|
+
{
|
|
315
|
+
"text-disabled-text bg-disabled-background": disabled,
|
|
316
|
+
[clsx4(colorClasses, "hover:brightness-90")]: !disabled
|
|
317
|
+
},
|
|
318
|
+
ButtonUtil.iconPaddingMapping[size]
|
|
319
|
+
),
|
|
320
|
+
...restProps,
|
|
321
|
+
children
|
|
322
|
+
}
|
|
323
|
+
);
|
|
324
|
+
};
|
|
251
325
|
|
|
252
|
-
// src/components/
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
var import_clsx4 = __toESM(require("clsx"));
|
|
326
|
+
// src/components/layout-and-navigation/Overlay.tsx
|
|
327
|
+
import { useEffect as useEffect7, useRef as useRef2, useState as useState7 } from "react";
|
|
328
|
+
import ReactDOM from "react-dom";
|
|
329
|
+
import clsx6 from "clsx";
|
|
257
330
|
|
|
258
331
|
// src/hooks/useHoverState.ts
|
|
259
|
-
|
|
332
|
+
import { useEffect as useEffect6, useState as useState6 } from "react";
|
|
260
333
|
var defaultUseHoverStateProps = {
|
|
261
334
|
closingDelay: 200,
|
|
262
335
|
isDisabled: false
|
|
263
336
|
};
|
|
264
337
|
var useHoverState = (props = void 0) => {
|
|
265
338
|
const { closingDelay, isDisabled } = { ...defaultUseHoverStateProps, ...props };
|
|
266
|
-
const [isHovered, setIsHovered] = (
|
|
267
|
-
const [timer, setTimer] = (
|
|
339
|
+
const [isHovered, setIsHovered] = useState6(false);
|
|
340
|
+
const [timer, setTimer] = useState6();
|
|
268
341
|
const onMouseEnter = () => {
|
|
269
342
|
if (isDisabled) {
|
|
270
343
|
return;
|
|
@@ -280,14 +353,14 @@ var useHoverState = (props = void 0) => {
|
|
|
280
353
|
setIsHovered(false);
|
|
281
354
|
}, closingDelay));
|
|
282
355
|
};
|
|
283
|
-
(
|
|
356
|
+
useEffect6(() => {
|
|
284
357
|
if (timer) {
|
|
285
358
|
return () => {
|
|
286
359
|
clearTimeout(timer);
|
|
287
360
|
};
|
|
288
361
|
}
|
|
289
362
|
});
|
|
290
|
-
(
|
|
363
|
+
useEffect6(() => {
|
|
291
364
|
if (timer) {
|
|
292
365
|
clearTimeout(timer);
|
|
293
366
|
}
|
|
@@ -299,9 +372,9 @@ var useHoverState = (props = void 0) => {
|
|
|
299
372
|
};
|
|
300
373
|
};
|
|
301
374
|
|
|
302
|
-
// src/components/Tooltip.tsx
|
|
303
|
-
|
|
304
|
-
|
|
375
|
+
// src/components/user-action/Tooltip.tsx
|
|
376
|
+
import { clsx as clsx5 } from "clsx";
|
|
377
|
+
import { jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
305
378
|
var Tooltip = ({
|
|
306
379
|
tooltip,
|
|
307
380
|
children,
|
|
@@ -320,10 +393,10 @@ var Tooltip = ({
|
|
|
320
393
|
};
|
|
321
394
|
const triangleSize = 6;
|
|
322
395
|
const triangleClasses = {
|
|
323
|
-
top: `top-full left-1/2 -translate-x-1/2 border-t-
|
|
324
|
-
bottom: `bottom-full left-1/2 -translate-x-1/2 border-b-
|
|
325
|
-
left: `left-full top-1/2 -translate-y-1/2 border-l-
|
|
326
|
-
right: `right-full top-1/2 -translate-y-1/2 border-r-
|
|
396
|
+
top: `top-full left-1/2 -translate-x-1/2 border-t-tooltip-background border-l-transparent border-r-transparent`,
|
|
397
|
+
bottom: `bottom-full left-1/2 -translate-x-1/2 border-b-tooltip-background border-l-transparent border-r-transparent`,
|
|
398
|
+
left: `left-full top-1/2 -translate-y-1/2 border-l-tooltip-background border-t-transparent border-b-transparent`,
|
|
399
|
+
right: `right-full top-1/2 -translate-y-1/2 border-r-tooltip-background border-t-transparent border-b-transparent`
|
|
327
400
|
};
|
|
328
401
|
const triangleStyle = {
|
|
329
402
|
top: { borderWidth: `${triangleSize}px ${triangleSize}px 0 ${triangleSize}px` },
|
|
@@ -331,25 +404,29 @@ var Tooltip = ({
|
|
|
331
404
|
left: { borderWidth: `${triangleSize}px 0 ${triangleSize}px ${triangleSize}px` },
|
|
332
405
|
right: { borderWidth: `${triangleSize}px ${triangleSize}px ${triangleSize}px 0` }
|
|
333
406
|
};
|
|
334
|
-
return /* @__PURE__ */ (
|
|
407
|
+
return /* @__PURE__ */ jsxs4(
|
|
335
408
|
"div",
|
|
336
409
|
{
|
|
337
|
-
className: (
|
|
410
|
+
className: clsx5("relative inline-block", containerClassName),
|
|
338
411
|
...handlers,
|
|
339
412
|
children: [
|
|
340
413
|
children,
|
|
341
|
-
isHovered && /* @__PURE__ */ (
|
|
414
|
+
isHovered && /* @__PURE__ */ jsxs4(
|
|
342
415
|
"div",
|
|
343
416
|
{
|
|
344
|
-
className: (
|
|
345
|
-
|
|
417
|
+
className: clsx5(
|
|
418
|
+
`opacity-0 absolute text-xs font-semibold text-tooltip-text px-2 py-1 rounded whitespace-nowrap
|
|
419
|
+
animate-tooltip-fade-in shadow-lg bg-tooltip-background`,
|
|
420
|
+
positionClasses[position],
|
|
421
|
+
tooltipClassName
|
|
422
|
+
),
|
|
346
423
|
style: { zIndex, animationDelay: animationDelay + "ms" },
|
|
347
424
|
children: [
|
|
348
425
|
tooltip,
|
|
349
|
-
/* @__PURE__ */ (
|
|
426
|
+
/* @__PURE__ */ jsx6(
|
|
350
427
|
"div",
|
|
351
428
|
{
|
|
352
|
-
className: (
|
|
429
|
+
className: clsx5(`absolute w-0 h-0`, triangleClasses[position]),
|
|
353
430
|
style: { ...triangleStyle[position], zIndex }
|
|
354
431
|
}
|
|
355
432
|
)
|
|
@@ -361,22 +438,35 @@ var Tooltip = ({
|
|
|
361
438
|
);
|
|
362
439
|
};
|
|
363
440
|
|
|
364
|
-
// src/components/
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
});
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
441
|
+
// src/components/layout-and-navigation/Overlay.tsx
|
|
442
|
+
import { X } from "lucide-react";
|
|
443
|
+
import { jsx as jsx7, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
444
|
+
var Overlay = ({
|
|
445
|
+
children,
|
|
446
|
+
isOpen,
|
|
447
|
+
onBackgroundClick,
|
|
448
|
+
backgroundClassName
|
|
449
|
+
}) => {
|
|
450
|
+
const [root, setRoot] = useState7();
|
|
451
|
+
useEffect7(() => {
|
|
452
|
+
setRoot(document.body);
|
|
453
|
+
}, []);
|
|
454
|
+
if (!root || !isOpen) return null;
|
|
455
|
+
return ReactDOM.createPortal(
|
|
456
|
+
/* @__PURE__ */ jsxs5("div", { className: clsx6("fixed inset-0 z-[9999]"), children: [
|
|
457
|
+
/* @__PURE__ */ jsx7(
|
|
458
|
+
"div",
|
|
459
|
+
{
|
|
460
|
+
className: clsx6("fixed inset-0 h-screen w-screen bg-black/30", backgroundClassName),
|
|
461
|
+
onClick: onBackgroundClick
|
|
462
|
+
}
|
|
463
|
+
),
|
|
464
|
+
children
|
|
465
|
+
] }),
|
|
466
|
+
root
|
|
467
|
+
);
|
|
468
|
+
};
|
|
469
|
+
var overlayStack = [];
|
|
380
470
|
var defaultModalHeaderTranslation = {
|
|
381
471
|
en: {
|
|
382
472
|
close: "Close"
|
|
@@ -395,134 +485,146 @@ var ModalHeader = ({
|
|
|
395
485
|
}) => {
|
|
396
486
|
const translation = useTranslation(defaultModalHeaderTranslation, overwriteTranslation);
|
|
397
487
|
const hasTitleRow = !!title || !!titleText || !!onCloseClick;
|
|
398
|
-
const titleRow = /* @__PURE__ */ (
|
|
399
|
-
title ?? /* @__PURE__ */ (
|
|
400
|
-
"
|
|
401
|
-
|
|
402
|
-
|
|
488
|
+
const titleRow = /* @__PURE__ */ jsxs5("div", { className: "row justify-between items-start gap-x-8", children: [
|
|
489
|
+
title ?? /* @__PURE__ */ jsx7(
|
|
490
|
+
"h2",
|
|
491
|
+
{
|
|
492
|
+
className: clsx6("textstyle-title-lg", {
|
|
493
|
+
"mb-1": description || descriptionText
|
|
494
|
+
}),
|
|
495
|
+
children: titleText
|
|
496
|
+
}
|
|
497
|
+
),
|
|
498
|
+
!!onCloseClick && /* @__PURE__ */ jsx7(Tooltip, { tooltip: translation.close, children: /* @__PURE__ */ jsx7(IconButton, { color: "neutral", size: "small", onClick: onCloseClick, children: /* @__PURE__ */ jsx7(X, { className: "w-full h-full" }) }) })
|
|
403
499
|
] });
|
|
404
|
-
return /* @__PURE__ */ (
|
|
500
|
+
return /* @__PURE__ */ jsxs5("div", { className: "col", children: [
|
|
405
501
|
hasTitleRow && titleRow,
|
|
406
|
-
description ?? (descriptionText && /* @__PURE__ */ (
|
|
502
|
+
description ?? (descriptionText && /* @__PURE__ */ jsx7("span", { className: "textstyle-description", children: descriptionText }))
|
|
407
503
|
] });
|
|
408
504
|
};
|
|
409
|
-
var modalRootName = "modal-root";
|
|
410
505
|
var Modal = ({
|
|
411
506
|
children,
|
|
412
|
-
id,
|
|
413
507
|
isOpen,
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
...modalHeaderProps
|
|
508
|
+
onClose,
|
|
509
|
+
className,
|
|
510
|
+
backgroundClassName,
|
|
511
|
+
headerProps
|
|
419
512
|
}) => {
|
|
420
|
-
const
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
console.error("the id cannot be empty");
|
|
428
|
-
}
|
|
429
|
-
(0, import_react6.useEffect)(() => {
|
|
430
|
-
if (isOpen) {
|
|
431
|
-
addToRegister(id);
|
|
432
|
-
} else {
|
|
433
|
-
removeFromRegister(id);
|
|
513
|
+
const ref = useRef2(null);
|
|
514
|
+
useEffect7(() => {
|
|
515
|
+
if (!isOpen) return;
|
|
516
|
+
const modal = ref.current;
|
|
517
|
+
if (!modal) {
|
|
518
|
+
console.error("modal open, but no ref found");
|
|
519
|
+
return;
|
|
434
520
|
}
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
521
|
+
overlayStack.push(modal);
|
|
522
|
+
const focusable = modal?.querySelectorAll(
|
|
523
|
+
'a[href], button:not([disabled]), textarea, input, select, [tabindex]:not([tabindex="-1"])'
|
|
524
|
+
);
|
|
525
|
+
const first = focusable[0];
|
|
526
|
+
const last = focusable[focusable.length - 1];
|
|
527
|
+
const handleKeyDown = (e) => {
|
|
528
|
+
const isTopmost = overlayStack[overlayStack.length - 1] === modal;
|
|
529
|
+
if (!isTopmost) return;
|
|
530
|
+
if (e.key === "Escape") {
|
|
531
|
+
e.stopPropagation();
|
|
532
|
+
onClose();
|
|
533
|
+
} else if (e.key === "Tab") {
|
|
534
|
+
if (focusable.length === 0) return;
|
|
535
|
+
if (e.shiftKey && document.activeElement === first) {
|
|
536
|
+
e.preventDefault();
|
|
537
|
+
last.focus();
|
|
538
|
+
} else if (!e.shiftKey && document.activeElement === last) {
|
|
539
|
+
e.preventDefault();
|
|
540
|
+
first.focus();
|
|
448
541
|
}
|
|
449
|
-
|
|
450
|
-
|
|
542
|
+
}
|
|
543
|
+
};
|
|
544
|
+
modal.focus();
|
|
545
|
+
document.addEventListener("keydown", handleKeyDown);
|
|
546
|
+
return () => {
|
|
547
|
+
document.removeEventListener("keydown", handleKeyDown);
|
|
548
|
+
overlayStack = overlayStack.filter((m) => m !== modal);
|
|
549
|
+
};
|
|
550
|
+
}, [isOpen, onClose]);
|
|
551
|
+
return /* @__PURE__ */ jsx7(
|
|
552
|
+
Overlay,
|
|
553
|
+
{
|
|
554
|
+
isOpen,
|
|
555
|
+
onBackgroundClick: onClose,
|
|
556
|
+
backgroundClassName,
|
|
557
|
+
children: /* @__PURE__ */ jsxs5(
|
|
451
558
|
"div",
|
|
452
559
|
{
|
|
453
|
-
|
|
560
|
+
ref,
|
|
561
|
+
tabIndex: -1,
|
|
562
|
+
className: clsx6(
|
|
563
|
+
"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",
|
|
564
|
+
className
|
|
565
|
+
),
|
|
566
|
+
role: "dialog",
|
|
567
|
+
"aria-modal": true,
|
|
454
568
|
children: [
|
|
455
|
-
/* @__PURE__ */ (
|
|
569
|
+
/* @__PURE__ */ jsx7(ModalHeader, { ...headerProps, onCloseClick: onClose }),
|
|
456
570
|
children
|
|
457
571
|
]
|
|
458
572
|
}
|
|
459
|
-
),
|
|
460
|
-
!isLast && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
461
|
-
"div",
|
|
462
|
-
{
|
|
463
|
-
className: (0, import_clsx4.default)("fixed inset-0 h-screen w-screen", backgroundClassName, {
|
|
464
|
-
"bg-black/70": isSecondLast && register.length > 1
|
|
465
|
-
})
|
|
466
|
-
}
|
|
467
573
|
)
|
|
468
|
-
|
|
469
|
-
modalRoot,
|
|
470
|
-
id
|
|
574
|
+
}
|
|
471
575
|
);
|
|
472
576
|
};
|
|
473
577
|
|
|
474
578
|
// src/components/modals/LanguageModal.tsx
|
|
475
|
-
|
|
476
|
-
var
|
|
477
|
-
en: "English",
|
|
478
|
-
de: "Deutsch"
|
|
479
|
-
};
|
|
480
|
-
var defaultConfirmDialogTranslation = {
|
|
579
|
+
import { jsx as jsx8, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
580
|
+
var defaultLanguageModalTranslation = {
|
|
481
581
|
en: {
|
|
582
|
+
title: "Language",
|
|
482
583
|
message: "Choose your language",
|
|
483
|
-
done: "Done"
|
|
584
|
+
done: "Done",
|
|
585
|
+
...LanguageUtil.languagesLocalNames
|
|
484
586
|
},
|
|
485
587
|
de: {
|
|
486
|
-
|
|
487
|
-
|
|
588
|
+
title: "Sprache",
|
|
589
|
+
message: "W\xE4hle deine bevorzugte Sprache",
|
|
590
|
+
done: "Fertig",
|
|
591
|
+
...LanguageUtil.languagesLocalNames
|
|
488
592
|
}
|
|
489
593
|
};
|
|
490
594
|
var LanguageModal = ({
|
|
491
595
|
overwriteTranslation,
|
|
492
|
-
|
|
493
|
-
|
|
596
|
+
headerProps,
|
|
597
|
+
onClose,
|
|
494
598
|
...modalProps
|
|
495
599
|
}) => {
|
|
496
600
|
const { language, setLanguage } = useLanguage();
|
|
497
|
-
const translation = useTranslation(
|
|
498
|
-
return /* @__PURE__ */ (
|
|
601
|
+
const translation = useTranslation(defaultLanguageModalTranslation, overwriteTranslation);
|
|
602
|
+
return /* @__PURE__ */ jsx8(
|
|
499
603
|
Modal,
|
|
500
604
|
{
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
onBackgroundClick(eventData);
|
|
506
|
-
}
|
|
605
|
+
headerProps: {
|
|
606
|
+
...headerProps,
|
|
607
|
+
titleText: headerProps?.titleText ?? translation.title,
|
|
608
|
+
descriptionText: headerProps?.descriptionText ?? translation.message
|
|
507
609
|
},
|
|
610
|
+
onClose,
|
|
508
611
|
...modalProps,
|
|
509
|
-
children: /* @__PURE__ */ (
|
|
510
|
-
/* @__PURE__ */ (
|
|
612
|
+
children: /* @__PURE__ */ jsxs6("div", { className: "w-64", children: [
|
|
613
|
+
/* @__PURE__ */ jsx8(
|
|
511
614
|
Select,
|
|
512
615
|
{
|
|
513
616
|
className: "mt-2",
|
|
514
617
|
value: language,
|
|
515
|
-
options:
|
|
618
|
+
options: LanguageUtil.languages.map((language2) => ({ label: translation[language2], value: language2 })),
|
|
516
619
|
onChange: (language2) => setLanguage(language2)
|
|
517
620
|
}
|
|
518
621
|
),
|
|
519
|
-
/* @__PURE__ */ (
|
|
622
|
+
/* @__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 }) })
|
|
520
623
|
] })
|
|
521
624
|
}
|
|
522
625
|
);
|
|
523
626
|
};
|
|
524
|
-
|
|
525
|
-
0 && (module.exports = {
|
|
627
|
+
export {
|
|
526
628
|
LanguageModal
|
|
527
|
-
}
|
|
629
|
+
};
|
|
528
630
|
//# sourceMappingURL=LanguageModal.js.map
|