@helpwave/hightide 0.0.18 → 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 -266
- package/dist/components/modals/ConfirmDialog.js.map +1 -1
- package/dist/components/modals/{DiscardChangesDialog.js → DiscardChangesModal.cjs} +213 -117
- 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} +202 -106
- 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 -299
- 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 -204
- 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} +4008 -3882
- 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 +3825 -4056
- 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 -388
- 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 -566
- 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 -489
- 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 -286
- package/dist/components/modals/Modal.js.map +0 -1
- package/dist/components/modals/Modal.mjs +0 -249
- 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,667 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// src/components/modals/LanguageModal.tsx
|
|
31
|
+
var LanguageModal_exports = {};
|
|
32
|
+
__export(LanguageModal_exports, {
|
|
33
|
+
LanguageModal: () => LanguageModal
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(LanguageModal_exports);
|
|
36
|
+
|
|
37
|
+
// src/localization/LanguageProvider.tsx
|
|
38
|
+
var import_react2 = require("react");
|
|
39
|
+
|
|
40
|
+
// src/hooks/useLocalStorage.ts
|
|
41
|
+
var import_react = require("react");
|
|
42
|
+
|
|
43
|
+
// src/localization/util.ts
|
|
44
|
+
var languages = ["en", "de"];
|
|
45
|
+
var languagesLocalNames = {
|
|
46
|
+
en: "English",
|
|
47
|
+
de: "Deutsch"
|
|
48
|
+
};
|
|
49
|
+
var DEFAULT_LANGUAGE = "en";
|
|
50
|
+
var LanguageUtil = {
|
|
51
|
+
languages,
|
|
52
|
+
DEFAULT_LANGUAGE,
|
|
53
|
+
languagesLocalNames
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
// src/localization/LanguageProvider.tsx
|
|
57
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
58
|
+
var LanguageContext = (0, import_react2.createContext)({
|
|
59
|
+
language: LanguageUtil.DEFAULT_LANGUAGE,
|
|
60
|
+
setLanguage: (v) => v
|
|
61
|
+
});
|
|
62
|
+
var useLanguage = () => (0, import_react2.useContext)(LanguageContext);
|
|
63
|
+
|
|
64
|
+
// src/localization/useTranslation.ts
|
|
65
|
+
var useTranslation = (defaults, translationOverwrite = {}) => {
|
|
66
|
+
const { language: languageProp, translation: overwrite } = translationOverwrite;
|
|
67
|
+
const { language: inferredLanguage } = useLanguage();
|
|
68
|
+
const usedLanguage = languageProp ?? inferredLanguage;
|
|
69
|
+
let defaultValues = defaults[usedLanguage];
|
|
70
|
+
if (overwrite && overwrite[usedLanguage]) {
|
|
71
|
+
defaultValues = { ...defaultValues, ...overwrite[usedLanguage] };
|
|
72
|
+
}
|
|
73
|
+
return defaultValues;
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
// src/components/user-action/Select.tsx
|
|
77
|
+
var import_react5 = require("@headlessui/react");
|
|
78
|
+
var import_lucide_react = require("lucide-react");
|
|
79
|
+
var import_react6 = require("react");
|
|
80
|
+
var import_clsx3 = __toESM(require("clsx"), 1);
|
|
81
|
+
|
|
82
|
+
// src/components/user-action/Label.tsx
|
|
83
|
+
var import_clsx = __toESM(require("clsx"), 1);
|
|
84
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
85
|
+
var styleMapping = {
|
|
86
|
+
labelSmall: "textstyle-label-sm",
|
|
87
|
+
labelMedium: "textstyle-label-md",
|
|
88
|
+
labelBig: "textstyle-label-lg"
|
|
89
|
+
};
|
|
90
|
+
var Label = ({
|
|
91
|
+
children,
|
|
92
|
+
name,
|
|
93
|
+
labelType = "labelSmall",
|
|
94
|
+
className,
|
|
95
|
+
...props
|
|
96
|
+
}) => {
|
|
97
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("label", { ...props, className: (0, import_clsx.default)(styleMapping[labelType], className), children: children ? children : name });
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
// src/components/user-action/Input.tsx
|
|
101
|
+
var import_react4 = require("react");
|
|
102
|
+
var import_clsx2 = __toESM(require("clsx"), 1);
|
|
103
|
+
|
|
104
|
+
// src/hooks/useSaveDelay.ts
|
|
105
|
+
var import_react3 = require("react");
|
|
106
|
+
|
|
107
|
+
// src/components/user-action/Input.tsx
|
|
108
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
109
|
+
var FormInput = (0, import_react4.forwardRef)(function FormInput2({
|
|
110
|
+
id,
|
|
111
|
+
labelText,
|
|
112
|
+
errorText,
|
|
113
|
+
className,
|
|
114
|
+
labelClassName,
|
|
115
|
+
errorClassName,
|
|
116
|
+
containerClassName,
|
|
117
|
+
required,
|
|
118
|
+
...restProps
|
|
119
|
+
}, ref) {
|
|
120
|
+
const input = /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
121
|
+
"input",
|
|
122
|
+
{
|
|
123
|
+
ref,
|
|
124
|
+
id,
|
|
125
|
+
...restProps,
|
|
126
|
+
className: (0, import_clsx2.default)(
|
|
127
|
+
{
|
|
128
|
+
"focus:border-primary focus:ring-primary": !errorText,
|
|
129
|
+
"focus:border-negative focus:ring-negative text-negative": !!errorText
|
|
130
|
+
},
|
|
131
|
+
className
|
|
132
|
+
)
|
|
133
|
+
}
|
|
134
|
+
);
|
|
135
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: (0, import_clsx2.default)("flex flex-col gap-y-1", containerClassName), children: [
|
|
136
|
+
labelText && /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("label", { htmlFor: id, className: (0, import_clsx2.default)("textstyle-label-md", labelClassName), children: [
|
|
137
|
+
labelText,
|
|
138
|
+
required && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "text-primary font-bold", children: "*" })
|
|
139
|
+
] }),
|
|
140
|
+
input,
|
|
141
|
+
errorText && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("label", { htmlFor: id, className: (0, import_clsx2.default)("text-negative", errorClassName), children: errorText })
|
|
142
|
+
] });
|
|
143
|
+
});
|
|
144
|
+
|
|
145
|
+
// src/components/user-action/Select.tsx
|
|
146
|
+
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
147
|
+
var Select = ({
|
|
148
|
+
value,
|
|
149
|
+
label,
|
|
150
|
+
options,
|
|
151
|
+
onChange,
|
|
152
|
+
isHidingCurrentValue = true,
|
|
153
|
+
hintText = "",
|
|
154
|
+
showDisabledOptions = true,
|
|
155
|
+
isDisabled,
|
|
156
|
+
className,
|
|
157
|
+
textColor = "text-menu-text",
|
|
158
|
+
hoverColor = "hover:brightness-90",
|
|
159
|
+
additionalItems,
|
|
160
|
+
selectedDisplayOverwrite
|
|
161
|
+
}) => {
|
|
162
|
+
let filteredOptions = isHidingCurrentValue ? options.filter((option) => option.value !== value) : options;
|
|
163
|
+
if (!showDisabledOptions) {
|
|
164
|
+
filteredOptions = filteredOptions.filter((value2) => !value2.disabled);
|
|
165
|
+
}
|
|
166
|
+
const selectedOption = options.find((option) => option.value === value);
|
|
167
|
+
if (value !== void 0 && selectedOption === void 0 && selectedDisplayOverwrite === void 0) {
|
|
168
|
+
console.warn("The selected value is not found in the options list. This might be an error on your part or default behavior if it is complex data type on which === does not work. In case of the latter use selectedDisplayOverwrite to set your selected text or component");
|
|
169
|
+
}
|
|
170
|
+
const borderColor = "border-menu-border";
|
|
171
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: (0, import_clsx3.default)(className), children: [
|
|
172
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Label, { ...label, labelType: label.labelType ?? "labelBig", className: (0, import_clsx3.default)("mb-1", label.className) }),
|
|
173
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_react5.Menu, { as: "div", className: "relative text-menu-text", children: ({ open }) => /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
174
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
175
|
+
import_react5.Menu.Button,
|
|
176
|
+
{
|
|
177
|
+
className: (0, import_clsx3.default)(
|
|
178
|
+
"inline-flex w-full justify-between items-center rounded-t-lg border-2 px-4 py-2 font-medium bg-menu-background text-menu-text",
|
|
179
|
+
textColor,
|
|
180
|
+
borderColor,
|
|
181
|
+
{
|
|
182
|
+
"rounded-b-lg": !open,
|
|
183
|
+
[hoverColor]: !isDisabled,
|
|
184
|
+
"bg-disabled-background cursor-not-allowed text-disabled": isDisabled
|
|
185
|
+
}
|
|
186
|
+
),
|
|
187
|
+
disabled: isDisabled,
|
|
188
|
+
children: [
|
|
189
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { children: selectedDisplayOverwrite ?? selectedOption?.label ?? hintText }),
|
|
190
|
+
open ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_lucide_react.ChevronUp, {}) : /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_lucide_react.ChevronDown, {})
|
|
191
|
+
]
|
|
192
|
+
}
|
|
193
|
+
),
|
|
194
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
195
|
+
import_react5.Menu.Items,
|
|
196
|
+
{
|
|
197
|
+
className: "absolute w-full z-10 rounded-b-lg bg-menu-background text-menu-text shadow-lg max-h-[500px] overflow-y-auto",
|
|
198
|
+
children: [
|
|
199
|
+
(additionalItems ?? []).map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
200
|
+
"div",
|
|
201
|
+
{
|
|
202
|
+
className: (0, import_clsx3.default)(borderColor, "px-4 py-2 overflow-hidden whitespace-nowrap text-ellipsis border-2 border-t-0", {
|
|
203
|
+
"border-b-0 rounded-b-lg": filteredOptions.length === 0 && index === (additionalItems?.length ?? 1) - 1
|
|
204
|
+
}),
|
|
205
|
+
children: item
|
|
206
|
+
},
|
|
207
|
+
`additionalItems${index}`
|
|
208
|
+
)),
|
|
209
|
+
filteredOptions.map((option, index) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_react5.Menu.Item, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
210
|
+
"div",
|
|
211
|
+
{
|
|
212
|
+
className: (0, import_clsx3.default)(
|
|
213
|
+
"px-4 py-2 overflow-hidden whitespace-nowrap text-ellipsis border-2 border-t-0 cursor-pointer",
|
|
214
|
+
option.className,
|
|
215
|
+
borderColor,
|
|
216
|
+
{
|
|
217
|
+
"brightness-90": option.value === value,
|
|
218
|
+
"brightness-95": index % 2 === 1,
|
|
219
|
+
"text-disabled bg-disabled-background cursor-not-allowed": !!option.disabled,
|
|
220
|
+
"bg-menu-background text-menu-text hover:brightness-90 cursor-pointer": !option.disabled,
|
|
221
|
+
"rounded-b-lg": index === filteredOptions.length - 1
|
|
222
|
+
}
|
|
223
|
+
),
|
|
224
|
+
onClick: () => {
|
|
225
|
+
if (!option.disabled) {
|
|
226
|
+
onChange(option.value);
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
children: option.label
|
|
230
|
+
}
|
|
231
|
+
) }, `item${index}`))
|
|
232
|
+
]
|
|
233
|
+
}
|
|
234
|
+
)
|
|
235
|
+
] }) })
|
|
236
|
+
] });
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
// src/components/user-action/Button.tsx
|
|
240
|
+
var import_clsx4 = __toESM(require("clsx"), 1);
|
|
241
|
+
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
242
|
+
var paddingMapping = {
|
|
243
|
+
small: "btn-sm",
|
|
244
|
+
medium: "btn-md",
|
|
245
|
+
large: "btn-lg"
|
|
246
|
+
};
|
|
247
|
+
var iconPaddingMapping = {
|
|
248
|
+
small: "icon-btn-sm",
|
|
249
|
+
medium: "icon-btn-md",
|
|
250
|
+
large: "icon-btn-lg"
|
|
251
|
+
};
|
|
252
|
+
var ButtonUtil = {
|
|
253
|
+
paddingMapping,
|
|
254
|
+
iconPaddingMapping
|
|
255
|
+
};
|
|
256
|
+
var SolidButton = ({
|
|
257
|
+
children,
|
|
258
|
+
disabled = false,
|
|
259
|
+
color = "primary",
|
|
260
|
+
size = "medium",
|
|
261
|
+
startIcon,
|
|
262
|
+
endIcon,
|
|
263
|
+
onClick,
|
|
264
|
+
className,
|
|
265
|
+
...restProps
|
|
266
|
+
}) => {
|
|
267
|
+
const colorClasses = {
|
|
268
|
+
primary: "bg-button-solid-primary-background text-button-solid-primary-text",
|
|
269
|
+
secondary: "bg-button-solid-secondary-background text-button-solid-secondary-text",
|
|
270
|
+
tertiary: "bg-button-solid-tertiary-background text-button-solid-tertiary-text",
|
|
271
|
+
positive: "bg-button-solid-positive-background text-button-solid-positive-text",
|
|
272
|
+
warning: "bg-button-solid-warning-background text-button-solid-warning-text",
|
|
273
|
+
negative: "bg-button-solid-negative-background text-button-solid-negative-text",
|
|
274
|
+
neutral: "bg-button-solid-neutral-background text-button-solid-neutral-text"
|
|
275
|
+
}[color];
|
|
276
|
+
const iconColorClasses = {
|
|
277
|
+
primary: "text-button-solid-primary-icon",
|
|
278
|
+
secondary: "text-button-solid-secondary-icon",
|
|
279
|
+
tertiary: "text-button-solid-tertiary-icon",
|
|
280
|
+
positive: "text-button-solid-positive-icon",
|
|
281
|
+
warning: "text-button-solid-warning-icon",
|
|
282
|
+
negative: "text-button-solid-negative-icon",
|
|
283
|
+
neutral: "text-button-solid-neutral-icon"
|
|
284
|
+
}[color];
|
|
285
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
|
|
286
|
+
"button",
|
|
287
|
+
{
|
|
288
|
+
onClick: disabled ? void 0 : onClick,
|
|
289
|
+
disabled: disabled || onClick === void 0,
|
|
290
|
+
className: (0, import_clsx4.default)(
|
|
291
|
+
className,
|
|
292
|
+
{
|
|
293
|
+
"text-disabled-text bg-disabled-background": disabled,
|
|
294
|
+
[(0, import_clsx4.default)(colorClasses, "hover:brightness-90")]: !disabled
|
|
295
|
+
},
|
|
296
|
+
ButtonUtil.paddingMapping[size]
|
|
297
|
+
),
|
|
298
|
+
...restProps,
|
|
299
|
+
children: [
|
|
300
|
+
startIcon && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
301
|
+
"span",
|
|
302
|
+
{
|
|
303
|
+
className: (0, import_clsx4.default)({
|
|
304
|
+
[iconColorClasses]: !disabled,
|
|
305
|
+
[`text-disabled-icon`]: disabled
|
|
306
|
+
}),
|
|
307
|
+
children: startIcon
|
|
308
|
+
}
|
|
309
|
+
),
|
|
310
|
+
children,
|
|
311
|
+
endIcon && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
312
|
+
"span",
|
|
313
|
+
{
|
|
314
|
+
className: (0, import_clsx4.default)({
|
|
315
|
+
[iconColorClasses]: !disabled,
|
|
316
|
+
[`text-disabled-icon`]: disabled
|
|
317
|
+
}),
|
|
318
|
+
children: endIcon
|
|
319
|
+
}
|
|
320
|
+
)
|
|
321
|
+
]
|
|
322
|
+
}
|
|
323
|
+
);
|
|
324
|
+
};
|
|
325
|
+
var IconButton = ({
|
|
326
|
+
children,
|
|
327
|
+
disabled = false,
|
|
328
|
+
color = "primary",
|
|
329
|
+
size = "medium",
|
|
330
|
+
onClick,
|
|
331
|
+
className,
|
|
332
|
+
...restProps
|
|
333
|
+
}) => {
|
|
334
|
+
const colorClasses = {
|
|
335
|
+
primary: "bg-button-solid-primary-background text-button-solid-primary-text",
|
|
336
|
+
secondary: "bg-button-solid-secondary-background text-button-solid-secondary-text",
|
|
337
|
+
tertiary: "bg-button-solid-tertiary-background text-button-solid-tertiary-text",
|
|
338
|
+
positive: "bg-button-solid-positive-background text-button-solid-positive-text",
|
|
339
|
+
warning: "bg-button-solid-warning-background text-button-solid-warning-text",
|
|
340
|
+
negative: "bg-button-solid-negative-background text-button-solid-negative-text",
|
|
341
|
+
neutral: "bg-button-solid-neutral-background text-button-solid-neutral-text"
|
|
342
|
+
}[color];
|
|
343
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
344
|
+
"button",
|
|
345
|
+
{
|
|
346
|
+
onClick: disabled ? void 0 : onClick,
|
|
347
|
+
disabled: disabled || onClick === void 0,
|
|
348
|
+
className: (0, import_clsx4.default)(
|
|
349
|
+
className,
|
|
350
|
+
{
|
|
351
|
+
"text-disabled-text bg-disabled-background": disabled,
|
|
352
|
+
[(0, import_clsx4.default)(colorClasses, "hover:brightness-90")]: !disabled
|
|
353
|
+
},
|
|
354
|
+
ButtonUtil.iconPaddingMapping[size]
|
|
355
|
+
),
|
|
356
|
+
...restProps,
|
|
357
|
+
children
|
|
358
|
+
}
|
|
359
|
+
);
|
|
360
|
+
};
|
|
361
|
+
|
|
362
|
+
// src/components/layout-and-navigation/Overlay.tsx
|
|
363
|
+
var import_react8 = require("react");
|
|
364
|
+
var import_react_dom = __toESM(require("react-dom"), 1);
|
|
365
|
+
var import_clsx6 = __toESM(require("clsx"), 1);
|
|
366
|
+
|
|
367
|
+
// src/hooks/useHoverState.ts
|
|
368
|
+
var import_react7 = require("react");
|
|
369
|
+
var defaultUseHoverStateProps = {
|
|
370
|
+
closingDelay: 200,
|
|
371
|
+
isDisabled: false
|
|
372
|
+
};
|
|
373
|
+
var useHoverState = (props = void 0) => {
|
|
374
|
+
const { closingDelay, isDisabled } = { ...defaultUseHoverStateProps, ...props };
|
|
375
|
+
const [isHovered, setIsHovered] = (0, import_react7.useState)(false);
|
|
376
|
+
const [timer, setTimer] = (0, import_react7.useState)();
|
|
377
|
+
const onMouseEnter = () => {
|
|
378
|
+
if (isDisabled) {
|
|
379
|
+
return;
|
|
380
|
+
}
|
|
381
|
+
clearTimeout(timer);
|
|
382
|
+
setIsHovered(true);
|
|
383
|
+
};
|
|
384
|
+
const onMouseLeave = () => {
|
|
385
|
+
if (isDisabled) {
|
|
386
|
+
return;
|
|
387
|
+
}
|
|
388
|
+
setTimer(setTimeout(() => {
|
|
389
|
+
setIsHovered(false);
|
|
390
|
+
}, closingDelay));
|
|
391
|
+
};
|
|
392
|
+
(0, import_react7.useEffect)(() => {
|
|
393
|
+
if (timer) {
|
|
394
|
+
return () => {
|
|
395
|
+
clearTimeout(timer);
|
|
396
|
+
};
|
|
397
|
+
}
|
|
398
|
+
});
|
|
399
|
+
(0, import_react7.useEffect)(() => {
|
|
400
|
+
if (timer) {
|
|
401
|
+
clearTimeout(timer);
|
|
402
|
+
}
|
|
403
|
+
}, [isDisabled]);
|
|
404
|
+
return {
|
|
405
|
+
isHovered,
|
|
406
|
+
setIsHovered,
|
|
407
|
+
handlers: { onMouseEnter, onMouseLeave }
|
|
408
|
+
};
|
|
409
|
+
};
|
|
410
|
+
|
|
411
|
+
// src/components/user-action/Tooltip.tsx
|
|
412
|
+
var import_clsx5 = require("clsx");
|
|
413
|
+
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
414
|
+
var Tooltip = ({
|
|
415
|
+
tooltip,
|
|
416
|
+
children,
|
|
417
|
+
animationDelay = 650,
|
|
418
|
+
tooltipClassName = "",
|
|
419
|
+
containerClassName = "",
|
|
420
|
+
position = "bottom",
|
|
421
|
+
zIndex = 10
|
|
422
|
+
}) => {
|
|
423
|
+
const { isHovered, handlers } = useHoverState();
|
|
424
|
+
const positionClasses = {
|
|
425
|
+
top: `bottom-full left-1/2 -translate-x-1/2 mb-[6px]`,
|
|
426
|
+
bottom: `top-full left-1/2 -translate-x-1/2 mt-[6px]`,
|
|
427
|
+
left: `right-full top-1/2 -translate-y-1/2 mr-[6px]`,
|
|
428
|
+
right: `left-full top-1/2 -translate-y-1/2 ml-[6px]`
|
|
429
|
+
};
|
|
430
|
+
const triangleSize = 6;
|
|
431
|
+
const triangleClasses = {
|
|
432
|
+
top: `top-full left-1/2 -translate-x-1/2 border-t-tooltip-background border-l-transparent border-r-transparent`,
|
|
433
|
+
bottom: `bottom-full left-1/2 -translate-x-1/2 border-b-tooltip-background border-l-transparent border-r-transparent`,
|
|
434
|
+
left: `left-full top-1/2 -translate-y-1/2 border-l-tooltip-background border-t-transparent border-b-transparent`,
|
|
435
|
+
right: `right-full top-1/2 -translate-y-1/2 border-r-tooltip-background border-t-transparent border-b-transparent`
|
|
436
|
+
};
|
|
437
|
+
const triangleStyle = {
|
|
438
|
+
top: { borderWidth: `${triangleSize}px ${triangleSize}px 0 ${triangleSize}px` },
|
|
439
|
+
bottom: { borderWidth: `0 ${triangleSize}px ${triangleSize}px ${triangleSize}px` },
|
|
440
|
+
left: { borderWidth: `${triangleSize}px 0 ${triangleSize}px ${triangleSize}px` },
|
|
441
|
+
right: { borderWidth: `${triangleSize}px ${triangleSize}px ${triangleSize}px 0` }
|
|
442
|
+
};
|
|
443
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
444
|
+
"div",
|
|
445
|
+
{
|
|
446
|
+
className: (0, import_clsx5.clsx)("relative inline-block", containerClassName),
|
|
447
|
+
...handlers,
|
|
448
|
+
children: [
|
|
449
|
+
children,
|
|
450
|
+
isHovered && /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
451
|
+
"div",
|
|
452
|
+
{
|
|
453
|
+
className: (0, import_clsx5.clsx)(
|
|
454
|
+
`opacity-0 absolute text-xs font-semibold text-tooltip-text px-2 py-1 rounded whitespace-nowrap
|
|
455
|
+
animate-tooltip-fade-in shadow-lg bg-tooltip-background`,
|
|
456
|
+
positionClasses[position],
|
|
457
|
+
tooltipClassName
|
|
458
|
+
),
|
|
459
|
+
style: { zIndex, animationDelay: animationDelay + "ms" },
|
|
460
|
+
children: [
|
|
461
|
+
tooltip,
|
|
462
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
463
|
+
"div",
|
|
464
|
+
{
|
|
465
|
+
className: (0, import_clsx5.clsx)(`absolute w-0 h-0`, triangleClasses[position]),
|
|
466
|
+
style: { ...triangleStyle[position], zIndex }
|
|
467
|
+
}
|
|
468
|
+
)
|
|
469
|
+
]
|
|
470
|
+
}
|
|
471
|
+
)
|
|
472
|
+
]
|
|
473
|
+
}
|
|
474
|
+
);
|
|
475
|
+
};
|
|
476
|
+
|
|
477
|
+
// src/components/layout-and-navigation/Overlay.tsx
|
|
478
|
+
var import_lucide_react2 = require("lucide-react");
|
|
479
|
+
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
480
|
+
var Overlay = ({
|
|
481
|
+
children,
|
|
482
|
+
isOpen,
|
|
483
|
+
onBackgroundClick,
|
|
484
|
+
backgroundClassName
|
|
485
|
+
}) => {
|
|
486
|
+
const [root, setRoot] = (0, import_react8.useState)();
|
|
487
|
+
(0, import_react8.useEffect)(() => {
|
|
488
|
+
setRoot(document.body);
|
|
489
|
+
}, []);
|
|
490
|
+
if (!root || !isOpen) return null;
|
|
491
|
+
return import_react_dom.default.createPortal(
|
|
492
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: (0, import_clsx6.default)("fixed inset-0 z-[9999]"), children: [
|
|
493
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
494
|
+
"div",
|
|
495
|
+
{
|
|
496
|
+
className: (0, import_clsx6.default)("fixed inset-0 h-screen w-screen bg-black/30", backgroundClassName),
|
|
497
|
+
onClick: onBackgroundClick
|
|
498
|
+
}
|
|
499
|
+
),
|
|
500
|
+
children
|
|
501
|
+
] }),
|
|
502
|
+
root
|
|
503
|
+
);
|
|
504
|
+
};
|
|
505
|
+
var overlayStack = [];
|
|
506
|
+
var defaultModalHeaderTranslation = {
|
|
507
|
+
en: {
|
|
508
|
+
close: "Close"
|
|
509
|
+
},
|
|
510
|
+
de: {
|
|
511
|
+
close: "Schlie\xDFen"
|
|
512
|
+
}
|
|
513
|
+
};
|
|
514
|
+
var ModalHeader = ({
|
|
515
|
+
overwriteTranslation,
|
|
516
|
+
onCloseClick,
|
|
517
|
+
title,
|
|
518
|
+
titleText = "",
|
|
519
|
+
description,
|
|
520
|
+
descriptionText = ""
|
|
521
|
+
}) => {
|
|
522
|
+
const translation = useTranslation(defaultModalHeaderTranslation, overwriteTranslation);
|
|
523
|
+
const hasTitleRow = !!title || !!titleText || !!onCloseClick;
|
|
524
|
+
const titleRow = /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "row justify-between items-start gap-x-8", children: [
|
|
525
|
+
title ?? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
526
|
+
"h2",
|
|
527
|
+
{
|
|
528
|
+
className: (0, import_clsx6.default)("textstyle-title-lg", {
|
|
529
|
+
"mb-1": description || descriptionText
|
|
530
|
+
}),
|
|
531
|
+
children: titleText
|
|
532
|
+
}
|
|
533
|
+
),
|
|
534
|
+
!!onCloseClick && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Tooltip, { tooltip: translation.close, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(IconButton, { color: "neutral", size: "small", onClick: onCloseClick, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_lucide_react2.X, { className: "w-full h-full" }) }) })
|
|
535
|
+
] });
|
|
536
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "col", children: [
|
|
537
|
+
hasTitleRow && titleRow,
|
|
538
|
+
description ?? (descriptionText && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "textstyle-description", children: descriptionText }))
|
|
539
|
+
] });
|
|
540
|
+
};
|
|
541
|
+
var Modal = ({
|
|
542
|
+
children,
|
|
543
|
+
isOpen,
|
|
544
|
+
onClose,
|
|
545
|
+
className,
|
|
546
|
+
backgroundClassName,
|
|
547
|
+
headerProps
|
|
548
|
+
}) => {
|
|
549
|
+
const ref = (0, import_react8.useRef)(null);
|
|
550
|
+
(0, import_react8.useEffect)(() => {
|
|
551
|
+
if (!isOpen) return;
|
|
552
|
+
const modal = ref.current;
|
|
553
|
+
if (!modal) {
|
|
554
|
+
console.error("modal open, but no ref found");
|
|
555
|
+
return;
|
|
556
|
+
}
|
|
557
|
+
overlayStack.push(modal);
|
|
558
|
+
const focusable = modal?.querySelectorAll(
|
|
559
|
+
'a[href], button:not([disabled]), textarea, input, select, [tabindex]:not([tabindex="-1"])'
|
|
560
|
+
);
|
|
561
|
+
const first = focusable[0];
|
|
562
|
+
const last = focusable[focusable.length - 1];
|
|
563
|
+
const handleKeyDown = (e) => {
|
|
564
|
+
const isTopmost = overlayStack[overlayStack.length - 1] === modal;
|
|
565
|
+
if (!isTopmost) return;
|
|
566
|
+
if (e.key === "Escape") {
|
|
567
|
+
e.stopPropagation();
|
|
568
|
+
onClose();
|
|
569
|
+
} else if (e.key === "Tab") {
|
|
570
|
+
if (focusable.length === 0) return;
|
|
571
|
+
if (e.shiftKey && document.activeElement === first) {
|
|
572
|
+
e.preventDefault();
|
|
573
|
+
last.focus();
|
|
574
|
+
} else if (!e.shiftKey && document.activeElement === last) {
|
|
575
|
+
e.preventDefault();
|
|
576
|
+
first.focus();
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
};
|
|
580
|
+
modal.focus();
|
|
581
|
+
document.addEventListener("keydown", handleKeyDown);
|
|
582
|
+
return () => {
|
|
583
|
+
document.removeEventListener("keydown", handleKeyDown);
|
|
584
|
+
overlayStack = overlayStack.filter((m) => m !== modal);
|
|
585
|
+
};
|
|
586
|
+
}, [isOpen, onClose]);
|
|
587
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
588
|
+
Overlay,
|
|
589
|
+
{
|
|
590
|
+
isOpen,
|
|
591
|
+
onBackgroundClick: onClose,
|
|
592
|
+
backgroundClassName,
|
|
593
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
|
|
594
|
+
"div",
|
|
595
|
+
{
|
|
596
|
+
ref,
|
|
597
|
+
tabIndex: -1,
|
|
598
|
+
className: (0, import_clsx6.default)(
|
|
599
|
+
"fixed left-1/2 top-1/2 -translate-y-1/2 -translate-x-1/2 col p-4 bg-overlay-background text-overlay-text rounded-xl shadow-xl",
|
|
600
|
+
className
|
|
601
|
+
),
|
|
602
|
+
role: "dialog",
|
|
603
|
+
"aria-modal": true,
|
|
604
|
+
children: [
|
|
605
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(ModalHeader, { ...headerProps, onCloseClick: onClose }),
|
|
606
|
+
children
|
|
607
|
+
]
|
|
608
|
+
}
|
|
609
|
+
)
|
|
610
|
+
}
|
|
611
|
+
);
|
|
612
|
+
};
|
|
613
|
+
|
|
614
|
+
// src/components/modals/LanguageModal.tsx
|
|
615
|
+
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
616
|
+
var defaultLanguageModalTranslation = {
|
|
617
|
+
en: {
|
|
618
|
+
title: "Language",
|
|
619
|
+
message: "Choose your language",
|
|
620
|
+
done: "Done",
|
|
621
|
+
...LanguageUtil.languagesLocalNames
|
|
622
|
+
},
|
|
623
|
+
de: {
|
|
624
|
+
title: "Sprache",
|
|
625
|
+
message: "W\xE4hle deine bevorzugte Sprache",
|
|
626
|
+
done: "Fertig",
|
|
627
|
+
...LanguageUtil.languagesLocalNames
|
|
628
|
+
}
|
|
629
|
+
};
|
|
630
|
+
var LanguageModal = ({
|
|
631
|
+
overwriteTranslation,
|
|
632
|
+
headerProps,
|
|
633
|
+
onClose,
|
|
634
|
+
...modalProps
|
|
635
|
+
}) => {
|
|
636
|
+
const { language, setLanguage } = useLanguage();
|
|
637
|
+
const translation = useTranslation(defaultLanguageModalTranslation, overwriteTranslation);
|
|
638
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
639
|
+
Modal,
|
|
640
|
+
{
|
|
641
|
+
headerProps: {
|
|
642
|
+
...headerProps,
|
|
643
|
+
titleText: headerProps?.titleText ?? translation.title,
|
|
644
|
+
descriptionText: headerProps?.descriptionText ?? translation.message
|
|
645
|
+
},
|
|
646
|
+
onClose,
|
|
647
|
+
...modalProps,
|
|
648
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "w-64", children: [
|
|
649
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
650
|
+
Select,
|
|
651
|
+
{
|
|
652
|
+
className: "mt-2",
|
|
653
|
+
value: language,
|
|
654
|
+
options: LanguageUtil.languages.map((language2) => ({ label: translation[language2], value: language2 })),
|
|
655
|
+
onChange: (language2) => setLanguage(language2)
|
|
656
|
+
}
|
|
657
|
+
),
|
|
658
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "row mt-3 gap-x-4 justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(SolidButton, { autoFocus: true, color: "positive", onClick: onClose, children: translation.done }) })
|
|
659
|
+
] })
|
|
660
|
+
}
|
|
661
|
+
);
|
|
662
|
+
};
|
|
663
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
664
|
+
0 && (module.exports = {
|
|
665
|
+
LanguageModal
|
|
666
|
+
});
|
|
667
|
+
//# sourceMappingURL=LanguageModal.cjs.map
|