@helpwave/hightide 0.0.19 → 0.1.1
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 +562 -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 +482 -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/dialogs/ConfirmDialog.cjs +509 -0
- package/dist/components/dialogs/ConfirmDialog.cjs.map +1 -0
- package/dist/components/dialogs/ConfirmDialog.d.cts +37 -0
- package/dist/components/dialogs/ConfirmDialog.d.ts +37 -0
- package/dist/components/dialogs/ConfirmDialog.js +472 -0
- package/dist/components/dialogs/ConfirmDialog.js.map +1 -0
- 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 +460 -0
- package/dist/components/layout-and-navigation/Overlay.cjs.map +1 -0
- package/dist/components/layout-and-navigation/Overlay.d.cts +68 -0
- package/dist/components/layout-and-navigation/Overlay.d.ts +68 -0
- package/dist/components/layout-and-navigation/Overlay.js +422 -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.js → ConfirmModal.cjs} +214 -117
- package/dist/components/modals/ConfirmModal.cjs.map +1 -0
- package/dist/components/modals/ConfirmModal.d.cts +36 -0
- package/dist/components/modals/ConfirmModal.d.ts +36 -0
- package/dist/components/modals/{ConfirmDialog.mjs → ConfirmModal.js} +203 -106
- package/dist/components/modals/ConfirmModal.js.map +1 -0
- package/dist/components/modals/DiscardChangesModal.cjs +570 -0
- package/dist/components/modals/DiscardChangesModal.cjs.map +1 -0
- package/dist/components/modals/DiscardChangesModal.d.cts +25 -0
- package/dist/components/modals/DiscardChangesModal.d.ts +25 -0
- package/dist/components/modals/DiscardChangesModal.js +533 -0
- package/dist/components/modals/DiscardChangesModal.js.map +1 -0
- package/dist/components/modals/InputModal.cjs +689 -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 +7 -7
- package/dist/components/modals/InputModal.js +273 -221
- 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 +308 -206
- 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 +185 -129
- package/dist/css/uncompiled/globals.css +71 -32
- 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} +4042 -3867
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +83 -0
- package/dist/index.d.ts +51 -56
- package/dist/index.js +3858 -4041
- 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.d.mts +0 -38
- package/dist/components/modals/ConfirmDialog.d.ts +0 -38
- package/dist/components/modals/ConfirmDialog.js.map +0 -1
- 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 +0 -409
- package/dist/components/modals/DiscardChangesDialog.js.map +0 -1
- package/dist/components/modals/DiscardChangesDialog.mjs +0 -372
- 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
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { PropsWithChildren } from 'react';
|
|
3
|
+
import { PropsForTranslation } from '../../localization/useTranslation.cjs';
|
|
4
|
+
import { ConfirmModalProps } from './ConfirmModal.cjs';
|
|
5
|
+
import '../../localization/util.cjs';
|
|
6
|
+
import '../user-action/Button.cjs';
|
|
7
|
+
import '../layout-and-navigation/Overlay.cjs';
|
|
8
|
+
|
|
9
|
+
type DiscardChangesModalTranslation = {
|
|
10
|
+
save: string;
|
|
11
|
+
cancel: string;
|
|
12
|
+
dontSave: string;
|
|
13
|
+
title: string;
|
|
14
|
+
description: string;
|
|
15
|
+
};
|
|
16
|
+
type DiscardChangesModalProps = Omit<ConfirmModalProps, 'onDecline' | 'onConfirm' | 'buttonOverwrites'> & {
|
|
17
|
+
isShowingDecline?: boolean;
|
|
18
|
+
requireAnswer?: boolean;
|
|
19
|
+
onCancel: () => void;
|
|
20
|
+
onSave: () => void;
|
|
21
|
+
onDontSave: () => void;
|
|
22
|
+
};
|
|
23
|
+
declare const DiscardChangesModal: ({ overwriteTranslation, children, onCancel, onSave, onDontSave, headerProps, ...modalProps }: PropsForTranslation<DiscardChangesModalTranslation, PropsWithChildren<DiscardChangesModalProps>>) => react_jsx_runtime.JSX.Element;
|
|
24
|
+
|
|
25
|
+
export { DiscardChangesModal };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { PropsWithChildren } from 'react';
|
|
3
|
+
import { PropsForTranslation } from '../../localization/useTranslation.js';
|
|
4
|
+
import { ConfirmModalProps } from './ConfirmModal.js';
|
|
5
|
+
import '../../localization/util.js';
|
|
6
|
+
import '../user-action/Button.js';
|
|
7
|
+
import '../layout-and-navigation/Overlay.js';
|
|
8
|
+
|
|
9
|
+
type DiscardChangesModalTranslation = {
|
|
10
|
+
save: string;
|
|
11
|
+
cancel: string;
|
|
12
|
+
dontSave: string;
|
|
13
|
+
title: string;
|
|
14
|
+
description: string;
|
|
15
|
+
};
|
|
16
|
+
type DiscardChangesModalProps = Omit<ConfirmModalProps, 'onDecline' | 'onConfirm' | 'buttonOverwrites'> & {
|
|
17
|
+
isShowingDecline?: boolean;
|
|
18
|
+
requireAnswer?: boolean;
|
|
19
|
+
onCancel: () => void;
|
|
20
|
+
onSave: () => void;
|
|
21
|
+
onDontSave: () => void;
|
|
22
|
+
};
|
|
23
|
+
declare const DiscardChangesModal: ({ overwriteTranslation, children, onCancel, onSave, onDontSave, headerProps, ...modalProps }: PropsForTranslation<DiscardChangesModalTranslation, PropsWithChildren<DiscardChangesModalProps>>) => react_jsx_runtime.JSX.Element;
|
|
24
|
+
|
|
25
|
+
export { DiscardChangesModal };
|
|
@@ -0,0 +1,533 @@
|
|
|
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"
|
|
12
|
+
};
|
|
13
|
+
var DEFAULT_LANGUAGE = "en";
|
|
14
|
+
var LanguageUtil = {
|
|
15
|
+
languages,
|
|
16
|
+
DEFAULT_LANGUAGE,
|
|
17
|
+
languagesLocalNames
|
|
18
|
+
};
|
|
19
|
+
|
|
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
|
|
25
|
+
});
|
|
26
|
+
var useLanguage = () => useContext(LanguageContext);
|
|
27
|
+
|
|
28
|
+
// src/localization/useTranslation.ts
|
|
29
|
+
var useTranslation = (defaults, translationOverwrite = {}) => {
|
|
30
|
+
const { language: languageProp, translation: overwrite } = translationOverwrite;
|
|
31
|
+
const { language: inferredLanguage } = useLanguage();
|
|
32
|
+
const usedLanguage = languageProp ?? inferredLanguage;
|
|
33
|
+
let defaultValues = defaults[usedLanguage];
|
|
34
|
+
if (overwrite && overwrite[usedLanguage]) {
|
|
35
|
+
defaultValues = { ...defaultValues, ...overwrite[usedLanguage] };
|
|
36
|
+
}
|
|
37
|
+
return defaultValues;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
// src/components/user-action/Button.tsx
|
|
41
|
+
import clsx from "clsx";
|
|
42
|
+
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
43
|
+
var paddingMapping = {
|
|
44
|
+
small: "btn-sm",
|
|
45
|
+
medium: "btn-md",
|
|
46
|
+
large: "btn-lg"
|
|
47
|
+
};
|
|
48
|
+
var iconPaddingMapping = {
|
|
49
|
+
small: "icon-btn-sm",
|
|
50
|
+
medium: "icon-btn-md",
|
|
51
|
+
large: "icon-btn-lg"
|
|
52
|
+
};
|
|
53
|
+
var ButtonUtil = {
|
|
54
|
+
paddingMapping,
|
|
55
|
+
iconPaddingMapping
|
|
56
|
+
};
|
|
57
|
+
var SolidButton = ({
|
|
58
|
+
children,
|
|
59
|
+
disabled = false,
|
|
60
|
+
color = "primary",
|
|
61
|
+
size = "medium",
|
|
62
|
+
startIcon,
|
|
63
|
+
endIcon,
|
|
64
|
+
onClick,
|
|
65
|
+
className,
|
|
66
|
+
...restProps
|
|
67
|
+
}) => {
|
|
68
|
+
const colorClasses = {
|
|
69
|
+
primary: "bg-button-solid-primary-background text-button-solid-primary-text",
|
|
70
|
+
secondary: "bg-button-solid-secondary-background text-button-solid-secondary-text",
|
|
71
|
+
tertiary: "bg-button-solid-tertiary-background text-button-solid-tertiary-text",
|
|
72
|
+
positive: "bg-button-solid-positive-background text-button-solid-positive-text",
|
|
73
|
+
warning: "bg-button-solid-warning-background text-button-solid-warning-text",
|
|
74
|
+
negative: "bg-button-solid-negative-background text-button-solid-negative-text",
|
|
75
|
+
neutral: "bg-button-solid-neutral-background text-button-solid-neutral-text"
|
|
76
|
+
}[color];
|
|
77
|
+
const iconColorClasses = {
|
|
78
|
+
primary: "text-button-solid-primary-icon",
|
|
79
|
+
secondary: "text-button-solid-secondary-icon",
|
|
80
|
+
tertiary: "text-button-solid-tertiary-icon",
|
|
81
|
+
positive: "text-button-solid-positive-icon",
|
|
82
|
+
warning: "text-button-solid-warning-icon",
|
|
83
|
+
negative: "text-button-solid-negative-icon",
|
|
84
|
+
neutral: "text-button-solid-neutral-icon"
|
|
85
|
+
}[color];
|
|
86
|
+
return /* @__PURE__ */ jsxs(
|
|
87
|
+
"button",
|
|
88
|
+
{
|
|
89
|
+
onClick: disabled ? void 0 : onClick,
|
|
90
|
+
disabled: disabled || onClick === void 0,
|
|
91
|
+
className: clsx(
|
|
92
|
+
className,
|
|
93
|
+
{
|
|
94
|
+
"text-disabled-text bg-disabled-background": disabled,
|
|
95
|
+
[clsx(colorClasses, "hover:brightness-90")]: !disabled
|
|
96
|
+
},
|
|
97
|
+
ButtonUtil.paddingMapping[size]
|
|
98
|
+
),
|
|
99
|
+
...restProps,
|
|
100
|
+
children: [
|
|
101
|
+
startIcon && /* @__PURE__ */ jsx2(
|
|
102
|
+
"span",
|
|
103
|
+
{
|
|
104
|
+
className: clsx({
|
|
105
|
+
[iconColorClasses]: !disabled,
|
|
106
|
+
[`text-disabled-icon`]: disabled
|
|
107
|
+
}),
|
|
108
|
+
children: startIcon
|
|
109
|
+
}
|
|
110
|
+
),
|
|
111
|
+
children,
|
|
112
|
+
endIcon && /* @__PURE__ */ jsx2(
|
|
113
|
+
"span",
|
|
114
|
+
{
|
|
115
|
+
className: clsx({
|
|
116
|
+
[iconColorClasses]: !disabled,
|
|
117
|
+
[`text-disabled-icon`]: disabled
|
|
118
|
+
}),
|
|
119
|
+
children: endIcon
|
|
120
|
+
}
|
|
121
|
+
)
|
|
122
|
+
]
|
|
123
|
+
}
|
|
124
|
+
);
|
|
125
|
+
};
|
|
126
|
+
var IconButton = ({
|
|
127
|
+
children,
|
|
128
|
+
disabled = false,
|
|
129
|
+
color = "primary",
|
|
130
|
+
size = "medium",
|
|
131
|
+
onClick,
|
|
132
|
+
className,
|
|
133
|
+
...restProps
|
|
134
|
+
}) => {
|
|
135
|
+
const colorClasses = {
|
|
136
|
+
primary: "bg-button-solid-primary-background text-button-solid-primary-text",
|
|
137
|
+
secondary: "bg-button-solid-secondary-background text-button-solid-secondary-text",
|
|
138
|
+
tertiary: "bg-button-solid-tertiary-background text-button-solid-tertiary-text",
|
|
139
|
+
positive: "bg-button-solid-positive-background text-button-solid-positive-text",
|
|
140
|
+
warning: "bg-button-solid-warning-background text-button-solid-warning-text",
|
|
141
|
+
negative: "bg-button-solid-negative-background text-button-solid-negative-text",
|
|
142
|
+
neutral: "bg-button-solid-neutral-background text-button-solid-neutral-text"
|
|
143
|
+
}[color];
|
|
144
|
+
return /* @__PURE__ */ jsx2(
|
|
145
|
+
"button",
|
|
146
|
+
{
|
|
147
|
+
onClick: disabled ? void 0 : onClick,
|
|
148
|
+
disabled: disabled || onClick === void 0,
|
|
149
|
+
className: clsx(
|
|
150
|
+
className,
|
|
151
|
+
{
|
|
152
|
+
"text-disabled-text bg-disabled-background": disabled,
|
|
153
|
+
[clsx(colorClasses, "hover:brightness-90")]: !disabled
|
|
154
|
+
},
|
|
155
|
+
ButtonUtil.iconPaddingMapping[size]
|
|
156
|
+
),
|
|
157
|
+
...restProps,
|
|
158
|
+
children
|
|
159
|
+
}
|
|
160
|
+
);
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
// src/components/modals/ConfirmModal.tsx
|
|
164
|
+
import clsx4 from "clsx";
|
|
165
|
+
|
|
166
|
+
// src/components/layout-and-navigation/Overlay.tsx
|
|
167
|
+
import { useEffect as useEffect4, useRef, useState as useState4 } from "react";
|
|
168
|
+
import ReactDOM from "react-dom";
|
|
169
|
+
import clsx3 from "clsx";
|
|
170
|
+
|
|
171
|
+
// src/hooks/useHoverState.ts
|
|
172
|
+
import { useEffect as useEffect3, useState as useState3 } from "react";
|
|
173
|
+
var defaultUseHoverStateProps = {
|
|
174
|
+
closingDelay: 200,
|
|
175
|
+
isDisabled: false
|
|
176
|
+
};
|
|
177
|
+
var useHoverState = (props = void 0) => {
|
|
178
|
+
const { closingDelay, isDisabled } = { ...defaultUseHoverStateProps, ...props };
|
|
179
|
+
const [isHovered, setIsHovered] = useState3(false);
|
|
180
|
+
const [timer, setTimer] = useState3();
|
|
181
|
+
const onMouseEnter = () => {
|
|
182
|
+
if (isDisabled) {
|
|
183
|
+
return;
|
|
184
|
+
}
|
|
185
|
+
clearTimeout(timer);
|
|
186
|
+
setIsHovered(true);
|
|
187
|
+
};
|
|
188
|
+
const onMouseLeave = () => {
|
|
189
|
+
if (isDisabled) {
|
|
190
|
+
return;
|
|
191
|
+
}
|
|
192
|
+
setTimer(setTimeout(() => {
|
|
193
|
+
setIsHovered(false);
|
|
194
|
+
}, closingDelay));
|
|
195
|
+
};
|
|
196
|
+
useEffect3(() => {
|
|
197
|
+
if (timer) {
|
|
198
|
+
return () => {
|
|
199
|
+
clearTimeout(timer);
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
});
|
|
203
|
+
useEffect3(() => {
|
|
204
|
+
if (timer) {
|
|
205
|
+
clearTimeout(timer);
|
|
206
|
+
}
|
|
207
|
+
}, [isDisabled]);
|
|
208
|
+
return {
|
|
209
|
+
isHovered,
|
|
210
|
+
setIsHovered,
|
|
211
|
+
handlers: { onMouseEnter, onMouseLeave }
|
|
212
|
+
};
|
|
213
|
+
};
|
|
214
|
+
|
|
215
|
+
// src/components/user-action/Tooltip.tsx
|
|
216
|
+
import { clsx as clsx2 } from "clsx";
|
|
217
|
+
import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
218
|
+
var Tooltip = ({
|
|
219
|
+
tooltip,
|
|
220
|
+
children,
|
|
221
|
+
animationDelay = 650,
|
|
222
|
+
tooltipClassName = "",
|
|
223
|
+
containerClassName = "",
|
|
224
|
+
position = "bottom",
|
|
225
|
+
zIndex = 10
|
|
226
|
+
}) => {
|
|
227
|
+
const { isHovered, handlers } = useHoverState();
|
|
228
|
+
const positionClasses = {
|
|
229
|
+
top: `bottom-full left-1/2 -translate-x-1/2 mb-[6px]`,
|
|
230
|
+
bottom: `top-full left-1/2 -translate-x-1/2 mt-[6px]`,
|
|
231
|
+
left: `right-full top-1/2 -translate-y-1/2 mr-[6px]`,
|
|
232
|
+
right: `left-full top-1/2 -translate-y-1/2 ml-[6px]`
|
|
233
|
+
};
|
|
234
|
+
const triangleSize = 6;
|
|
235
|
+
const triangleClasses = {
|
|
236
|
+
top: `top-full left-1/2 -translate-x-1/2 border-t-tooltip-background border-l-transparent border-r-transparent`,
|
|
237
|
+
bottom: `bottom-full left-1/2 -translate-x-1/2 border-b-tooltip-background border-l-transparent border-r-transparent`,
|
|
238
|
+
left: `left-full top-1/2 -translate-y-1/2 border-l-tooltip-background border-t-transparent border-b-transparent`,
|
|
239
|
+
right: `right-full top-1/2 -translate-y-1/2 border-r-tooltip-background border-t-transparent border-b-transparent`
|
|
240
|
+
};
|
|
241
|
+
const triangleStyle = {
|
|
242
|
+
top: { borderWidth: `${triangleSize}px ${triangleSize}px 0 ${triangleSize}px` },
|
|
243
|
+
bottom: { borderWidth: `0 ${triangleSize}px ${triangleSize}px ${triangleSize}px` },
|
|
244
|
+
left: { borderWidth: `${triangleSize}px 0 ${triangleSize}px ${triangleSize}px` },
|
|
245
|
+
right: { borderWidth: `${triangleSize}px ${triangleSize}px ${triangleSize}px 0` }
|
|
246
|
+
};
|
|
247
|
+
return /* @__PURE__ */ jsxs2(
|
|
248
|
+
"div",
|
|
249
|
+
{
|
|
250
|
+
className: clsx2("relative inline-block", containerClassName),
|
|
251
|
+
...handlers,
|
|
252
|
+
children: [
|
|
253
|
+
children,
|
|
254
|
+
isHovered && /* @__PURE__ */ jsxs2(
|
|
255
|
+
"div",
|
|
256
|
+
{
|
|
257
|
+
className: clsx2(
|
|
258
|
+
`opacity-0 absolute text-xs font-semibold text-tooltip-text px-2 py-1 rounded whitespace-nowrap
|
|
259
|
+
animate-tooltip-fade-in shadow-lg bg-tooltip-background`,
|
|
260
|
+
positionClasses[position],
|
|
261
|
+
tooltipClassName
|
|
262
|
+
),
|
|
263
|
+
style: { zIndex, animationDelay: animationDelay + "ms" },
|
|
264
|
+
children: [
|
|
265
|
+
tooltip,
|
|
266
|
+
/* @__PURE__ */ jsx3(
|
|
267
|
+
"div",
|
|
268
|
+
{
|
|
269
|
+
className: clsx2(`absolute w-0 h-0`, triangleClasses[position]),
|
|
270
|
+
style: { ...triangleStyle[position], zIndex }
|
|
271
|
+
}
|
|
272
|
+
)
|
|
273
|
+
]
|
|
274
|
+
}
|
|
275
|
+
)
|
|
276
|
+
]
|
|
277
|
+
}
|
|
278
|
+
);
|
|
279
|
+
};
|
|
280
|
+
|
|
281
|
+
// src/components/layout-and-navigation/Overlay.tsx
|
|
282
|
+
import { X } from "lucide-react";
|
|
283
|
+
import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
284
|
+
var Overlay = ({
|
|
285
|
+
children,
|
|
286
|
+
isOpen,
|
|
287
|
+
onBackgroundClick,
|
|
288
|
+
backgroundClassName
|
|
289
|
+
}) => {
|
|
290
|
+
const [root, setRoot] = useState4();
|
|
291
|
+
useEffect4(() => {
|
|
292
|
+
setRoot(document.body);
|
|
293
|
+
}, []);
|
|
294
|
+
if (!root || !isOpen) return null;
|
|
295
|
+
return ReactDOM.createPortal(
|
|
296
|
+
/* @__PURE__ */ jsxs3("div", { className: clsx3("fixed inset-0 z-[9999]"), children: [
|
|
297
|
+
/* @__PURE__ */ jsx4(
|
|
298
|
+
"div",
|
|
299
|
+
{
|
|
300
|
+
className: clsx3("fixed inset-0 h-screen w-screen bg-black/30", backgroundClassName),
|
|
301
|
+
onClick: onBackgroundClick
|
|
302
|
+
}
|
|
303
|
+
),
|
|
304
|
+
children
|
|
305
|
+
] }),
|
|
306
|
+
root
|
|
307
|
+
);
|
|
308
|
+
};
|
|
309
|
+
var overlayStack = [];
|
|
310
|
+
var defaultModalHeaderTranslation = {
|
|
311
|
+
en: {
|
|
312
|
+
close: "Close"
|
|
313
|
+
},
|
|
314
|
+
de: {
|
|
315
|
+
close: "Schlie\xDFen"
|
|
316
|
+
}
|
|
317
|
+
};
|
|
318
|
+
var OverlayHeader = ({
|
|
319
|
+
overwriteTranslation,
|
|
320
|
+
onClose,
|
|
321
|
+
title,
|
|
322
|
+
titleText = "",
|
|
323
|
+
description,
|
|
324
|
+
descriptionText = ""
|
|
325
|
+
}) => {
|
|
326
|
+
const translation = useTranslation(defaultModalHeaderTranslation, overwriteTranslation);
|
|
327
|
+
const hasTitleRow = !!title || !!titleText || !!onClose;
|
|
328
|
+
const titleRow = /* @__PURE__ */ jsxs3("div", { className: "row justify-between items-start gap-x-8", children: [
|
|
329
|
+
title ?? /* @__PURE__ */ jsx4(
|
|
330
|
+
"h2",
|
|
331
|
+
{
|
|
332
|
+
className: clsx3("textstyle-title-lg", {
|
|
333
|
+
"mb-1": description || descriptionText
|
|
334
|
+
}),
|
|
335
|
+
children: titleText
|
|
336
|
+
}
|
|
337
|
+
),
|
|
338
|
+
!!onClose && /* @__PURE__ */ jsx4(Tooltip, { tooltip: translation.close, children: /* @__PURE__ */ jsx4(IconButton, { color: "neutral", size: "small", onClick: onClose, children: /* @__PURE__ */ jsx4(X, { className: "w-full h-full" }) }) })
|
|
339
|
+
] });
|
|
340
|
+
return /* @__PURE__ */ jsxs3("div", { className: "col", children: [
|
|
341
|
+
hasTitleRow && titleRow,
|
|
342
|
+
description ?? (descriptionText && /* @__PURE__ */ jsx4("span", { className: "textstyle-description", children: descriptionText }))
|
|
343
|
+
] });
|
|
344
|
+
};
|
|
345
|
+
var Modal = ({
|
|
346
|
+
children,
|
|
347
|
+
isOpen,
|
|
348
|
+
onClose,
|
|
349
|
+
className,
|
|
350
|
+
backgroundClassName,
|
|
351
|
+
headerProps
|
|
352
|
+
}) => {
|
|
353
|
+
const ref = useRef(null);
|
|
354
|
+
useEffect4(() => {
|
|
355
|
+
if (!isOpen) return;
|
|
356
|
+
const modal = ref.current;
|
|
357
|
+
if (!modal) {
|
|
358
|
+
console.error("modal open, but no ref found");
|
|
359
|
+
return;
|
|
360
|
+
}
|
|
361
|
+
overlayStack.push(modal);
|
|
362
|
+
const focusable = modal?.querySelectorAll(
|
|
363
|
+
'a[href], button:not([disabled]), textarea, input, select, [tabindex]:not([tabindex="-1"])'
|
|
364
|
+
);
|
|
365
|
+
const first = focusable[0];
|
|
366
|
+
const last = focusable[focusable.length - 1];
|
|
367
|
+
const handleKeyDown = (e) => {
|
|
368
|
+
const isTopmost = overlayStack[overlayStack.length - 1] === modal;
|
|
369
|
+
if (!isTopmost) return;
|
|
370
|
+
if (e.key === "Escape") {
|
|
371
|
+
e.stopPropagation();
|
|
372
|
+
onClose();
|
|
373
|
+
} else if (e.key === "Tab") {
|
|
374
|
+
if (focusable.length === 0) return;
|
|
375
|
+
if (e.shiftKey && document.activeElement === first) {
|
|
376
|
+
e.preventDefault();
|
|
377
|
+
last.focus();
|
|
378
|
+
} else if (!e.shiftKey && document.activeElement === last) {
|
|
379
|
+
e.preventDefault();
|
|
380
|
+
first.focus();
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
};
|
|
384
|
+
modal.focus();
|
|
385
|
+
document.addEventListener("keydown", handleKeyDown);
|
|
386
|
+
return () => {
|
|
387
|
+
document.removeEventListener("keydown", handleKeyDown);
|
|
388
|
+
overlayStack = overlayStack.filter((m) => m !== modal);
|
|
389
|
+
};
|
|
390
|
+
}, [isOpen, onClose]);
|
|
391
|
+
return /* @__PURE__ */ jsx4(
|
|
392
|
+
Overlay,
|
|
393
|
+
{
|
|
394
|
+
isOpen,
|
|
395
|
+
onBackgroundClick: onClose,
|
|
396
|
+
backgroundClassName,
|
|
397
|
+
children: /* @__PURE__ */ jsxs3(
|
|
398
|
+
"div",
|
|
399
|
+
{
|
|
400
|
+
ref,
|
|
401
|
+
tabIndex: -1,
|
|
402
|
+
className: clsx3(
|
|
403
|
+
"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",
|
|
404
|
+
className
|
|
405
|
+
),
|
|
406
|
+
role: "dialog",
|
|
407
|
+
"aria-modal": true,
|
|
408
|
+
children: [
|
|
409
|
+
/* @__PURE__ */ jsx4(OverlayHeader, { ...headerProps, onClose }),
|
|
410
|
+
children
|
|
411
|
+
]
|
|
412
|
+
}
|
|
413
|
+
)
|
|
414
|
+
}
|
|
415
|
+
);
|
|
416
|
+
};
|
|
417
|
+
|
|
418
|
+
// src/components/modals/ConfirmModal.tsx
|
|
419
|
+
import { jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
420
|
+
var defaultConfirmDialogTranslation = {
|
|
421
|
+
en: {
|
|
422
|
+
confirm: "Confirm",
|
|
423
|
+
cancel: "Cancel",
|
|
424
|
+
decline: "Decline"
|
|
425
|
+
},
|
|
426
|
+
de: {
|
|
427
|
+
confirm: "Best\xE4tigen",
|
|
428
|
+
cancel: "Abbrechen",
|
|
429
|
+
decline: "Ablehnen"
|
|
430
|
+
}
|
|
431
|
+
};
|
|
432
|
+
var ConfirmModal = ({
|
|
433
|
+
overwriteTranslation,
|
|
434
|
+
children,
|
|
435
|
+
onCancel,
|
|
436
|
+
onConfirm,
|
|
437
|
+
onDecline,
|
|
438
|
+
confirmType = "positive",
|
|
439
|
+
buttonOverwrites,
|
|
440
|
+
className,
|
|
441
|
+
...restProps
|
|
442
|
+
}) => {
|
|
443
|
+
const translation = useTranslation(defaultConfirmDialogTranslation, overwriteTranslation);
|
|
444
|
+
const mapping = {
|
|
445
|
+
neutral: "neutral",
|
|
446
|
+
negative: "negative",
|
|
447
|
+
positive: "positive",
|
|
448
|
+
primary: "primary"
|
|
449
|
+
};
|
|
450
|
+
return /* @__PURE__ */ jsxs4(Modal, { ...restProps, onClose: onCancel, className: clsx4("justify-between", className), children: [
|
|
451
|
+
/* @__PURE__ */ jsx5("div", { className: "col grow", children }),
|
|
452
|
+
/* @__PURE__ */ jsxs4("div", { className: "row mt-3 gap-x-4 justify-end", children: [
|
|
453
|
+
onCancel && /* @__PURE__ */ jsx5(
|
|
454
|
+
SolidButton,
|
|
455
|
+
{
|
|
456
|
+
color: buttonOverwrites?.[0].color ?? "neutral",
|
|
457
|
+
onClick: onCancel,
|
|
458
|
+
disabled: buttonOverwrites?.[0].disabled ?? false,
|
|
459
|
+
children: buttonOverwrites?.[0].text ?? translation.cancel
|
|
460
|
+
}
|
|
461
|
+
),
|
|
462
|
+
onDecline && /* @__PURE__ */ jsx5(
|
|
463
|
+
SolidButton,
|
|
464
|
+
{
|
|
465
|
+
color: buttonOverwrites?.[1].color ?? "negative",
|
|
466
|
+
onClick: onDecline,
|
|
467
|
+
disabled: buttonOverwrites?.[1].disabled ?? false,
|
|
468
|
+
children: buttonOverwrites?.[1].text ?? translation.decline
|
|
469
|
+
}
|
|
470
|
+
),
|
|
471
|
+
/* @__PURE__ */ jsx5(
|
|
472
|
+
SolidButton,
|
|
473
|
+
{
|
|
474
|
+
autoFocus: true,
|
|
475
|
+
color: buttonOverwrites?.[2].color ?? mapping[confirmType],
|
|
476
|
+
onClick: onConfirm,
|
|
477
|
+
disabled: buttonOverwrites?.[2].disabled ?? false,
|
|
478
|
+
children: buttonOverwrites?.[2].text ?? translation.confirm
|
|
479
|
+
}
|
|
480
|
+
)
|
|
481
|
+
] })
|
|
482
|
+
] });
|
|
483
|
+
};
|
|
484
|
+
|
|
485
|
+
// src/components/modals/DiscardChangesModal.tsx
|
|
486
|
+
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
487
|
+
var defaultDiscardChangesModalTranslation = {
|
|
488
|
+
en: {
|
|
489
|
+
save: "Save",
|
|
490
|
+
cancel: "Cancel",
|
|
491
|
+
dontSave: "Don't save",
|
|
492
|
+
title: "Unsaved Changes",
|
|
493
|
+
description: "Do you want to save your changes?"
|
|
494
|
+
},
|
|
495
|
+
de: {
|
|
496
|
+
save: "Speichern",
|
|
497
|
+
cancel: "Abbrechen",
|
|
498
|
+
dontSave: "Nicht Speichern",
|
|
499
|
+
title: "Ungespeicherte \xC4nderungen",
|
|
500
|
+
description: "M\xF6chtest du die \xC4nderungen speichern?"
|
|
501
|
+
}
|
|
502
|
+
};
|
|
503
|
+
var DiscardChangesModal = ({
|
|
504
|
+
overwriteTranslation,
|
|
505
|
+
children,
|
|
506
|
+
onCancel,
|
|
507
|
+
onSave,
|
|
508
|
+
onDontSave,
|
|
509
|
+
headerProps,
|
|
510
|
+
...modalProps
|
|
511
|
+
}) => {
|
|
512
|
+
const translation = useTranslation(defaultDiscardChangesModalTranslation, overwriteTranslation);
|
|
513
|
+
return /* @__PURE__ */ jsx6(
|
|
514
|
+
ConfirmModal,
|
|
515
|
+
{
|
|
516
|
+
headerProps: {
|
|
517
|
+
...headerProps,
|
|
518
|
+
titleText: headerProps?.titleText ?? translation.title,
|
|
519
|
+
descriptionText: headerProps?.descriptionText ?? translation.description
|
|
520
|
+
},
|
|
521
|
+
onConfirm: onSave,
|
|
522
|
+
onCancel,
|
|
523
|
+
onDecline: onDontSave,
|
|
524
|
+
buttonOverwrites: [{ text: translation.cancel }, { text: translation.dontSave }, { text: translation.save }],
|
|
525
|
+
...modalProps,
|
|
526
|
+
children
|
|
527
|
+
}
|
|
528
|
+
);
|
|
529
|
+
};
|
|
530
|
+
export {
|
|
531
|
+
DiscardChangesModal
|
|
532
|
+
};
|
|
533
|
+
//# sourceMappingURL=DiscardChangesModal.js.map
|