@helpwave/hightide 0.0.19 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -2
- package/dist/coloring/shading.cjs +556 -0
- package/dist/coloring/shading.cjs.map +1 -0
- package/dist/coloring/{shading.d.mts → shading.d.cts} +1 -1
- package/dist/coloring/shading.js +476 -37
- package/dist/coloring/shading.js.map +1 -1
- package/dist/coloring/types.cjs +31 -0
- package/dist/coloring/{types.mjs.map → types.cjs.map} +1 -1
- package/dist/coloring/types.js +2 -27
- package/dist/coloring/types.js.map +1 -1
- package/dist/components/{HelpwaveBadge.js → branding/HelpwaveBadge.cjs} +65 -33
- package/dist/components/branding/HelpwaveBadge.cjs.map +1 -0
- package/dist/components/branding/HelpwaveBadge.js +123 -0
- package/dist/components/branding/HelpwaveBadge.js.map +1 -0
- package/dist/components/date/{DatePicker.mjs → DatePicker.cjs} +158 -94
- package/dist/components/date/DatePicker.cjs.map +1 -0
- package/dist/components/date/{DatePicker.d.mts → DatePicker.d.cts} +7 -8
- package/dist/components/date/DatePicker.d.ts +4 -5
- package/dist/components/date/DatePicker.js +121 -129
- package/dist/components/date/DatePicker.js.map +1 -1
- package/dist/components/date/{DayPicker.mjs → DayPicker.cjs} +77 -24
- package/dist/components/date/DayPicker.cjs.map +1 -0
- package/dist/components/date/{DayPicker.d.mts → DayPicker.d.cts} +3 -3
- package/dist/components/date/DayPicker.d.ts +2 -2
- package/dist/components/date/DayPicker.js +38 -61
- package/dist/components/date/DayPicker.js.map +1 -1
- package/dist/components/{TimeDisplay.js → date/TimeDisplay.cjs} +24 -9
- package/dist/components/date/TimeDisplay.cjs.map +1 -0
- package/dist/components/{TimeDisplay.d.mts → date/TimeDisplay.d.cts} +2 -3
- package/dist/components/{TimeDisplay.d.ts → date/TimeDisplay.d.ts} +2 -3
- package/dist/components/{TimeDisplay.mjs → date/TimeDisplay.js} +23 -8
- package/dist/components/date/TimeDisplay.js.map +1 -0
- package/dist/components/date/{TimePicker.mjs → TimePicker.cjs} +62 -26
- package/dist/components/date/TimePicker.cjs.map +1 -0
- package/dist/components/date/{TimePicker.d.mts → TimePicker.d.cts} +2 -2
- package/dist/components/date/TimePicker.d.ts +2 -2
- package/dist/components/date/TimePicker.js +25 -61
- package/dist/components/date/TimePicker.js.map +1 -1
- package/dist/components/date/{YearMonthPicker.mjs → YearMonthPicker.cjs} +93 -42
- package/dist/components/date/YearMonthPicker.cjs.map +1 -0
- package/dist/components/date/{YearMonthPicker.d.mts → YearMonthPicker.d.cts} +2 -2
- package/dist/components/date/YearMonthPicker.d.ts +2 -2
- package/dist/components/date/YearMonthPicker.js +56 -77
- package/dist/components/date/YearMonthPicker.js.map +1 -1
- package/dist/components/{AvatarGroup.js → icons-and-geometry/Avatar.cjs} +23 -19
- package/dist/components/icons-and-geometry/Avatar.cjs.map +1 -0
- package/dist/components/icons-and-geometry/Avatar.d.cts +30 -0
- package/dist/components/icons-and-geometry/Avatar.d.ts +30 -0
- package/dist/components/{AvatarGroup.mjs → icons-and-geometry/Avatar.js} +13 -10
- package/dist/components/icons-and-geometry/Avatar.js.map +1 -0
- package/dist/components/{Circle.js → icons-and-geometry/Circle.cjs} +3 -3
- package/dist/components/icons-and-geometry/Circle.cjs.map +1 -0
- package/dist/components/{Circle.mjs → icons-and-geometry/Circle.js} +2 -2
- package/dist/components/icons-and-geometry/Circle.js.map +1 -0
- package/dist/components/{icons/Helpwave.js → icons-and-geometry/Helpwave.cjs} +38 -6
- package/dist/components/icons-and-geometry/Helpwave.cjs.map +1 -0
- package/dist/components/icons-and-geometry/Helpwave.js +75 -0
- package/dist/components/icons-and-geometry/Helpwave.js.map +1 -0
- package/dist/components/{Ring.js → icons-and-geometry/Ring.cjs} +6 -6
- package/dist/components/icons-and-geometry/Ring.cjs.map +1 -0
- package/dist/components/{Ring.mjs → icons-and-geometry/Ring.js} +4 -4
- package/dist/components/icons-and-geometry/Ring.js.map +1 -0
- package/dist/components/{icons/Tag.js → icons-and-geometry/Tag.cjs} +3 -3
- package/dist/components/icons-and-geometry/Tag.cjs.map +1 -0
- package/dist/components/{icons/Tag.mjs → icons-and-geometry/Tag.js} +2 -2
- package/dist/components/icons-and-geometry/Tag.js.map +1 -0
- package/dist/components/{BreadCrumb.js → layout-and-navigation/BreadCrumb.cjs} +12 -5
- package/dist/components/layout-and-navigation/BreadCrumb.cjs.map +1 -0
- package/dist/components/{BreadCrumb.mjs → layout-and-navigation/BreadCrumb.js} +10 -3
- package/dist/components/layout-and-navigation/BreadCrumb.js.map +1 -0
- package/dist/components/{layout/Carousel.js → layout-and-navigation/Carousel.cjs} +4 -4
- package/dist/components/layout-and-navigation/Carousel.cjs.map +1 -0
- package/dist/components/{layout/Carousel.mjs → layout-and-navigation/Carousel.js} +4 -4
- package/dist/components/layout-and-navigation/Carousel.js.map +1 -0
- package/dist/components/{ChipList.js → layout-and-navigation/Chip.cjs} +6 -6
- package/dist/components/layout-and-navigation/Chip.cjs.map +1 -0
- package/dist/components/{ChipList.mjs → layout-and-navigation/Chip.js} +2 -2
- package/dist/components/layout-and-navigation/Chip.js.map +1 -0
- package/dist/components/{layout/DividerInserter.js → layout-and-navigation/DividerInserter.cjs} +3 -3
- package/dist/components/layout-and-navigation/DividerInserter.cjs.map +1 -0
- package/dist/components/{layout/DividerInserter.mjs → layout-and-navigation/DividerInserter.js} +2 -2
- package/dist/components/layout-and-navigation/DividerInserter.js.map +1 -0
- package/dist/components/{Expandable.js → layout-and-navigation/Expandable.cjs} +3 -3
- package/dist/components/layout-and-navigation/Expandable.cjs.map +1 -0
- package/dist/components/{Expandable.mjs → layout-and-navigation/Expandable.js} +2 -2
- package/dist/components/layout-and-navigation/Expandable.js.map +1 -0
- package/dist/components/{layout/FAQSection.js → layout-and-navigation/FAQSection.cjs} +7 -7
- package/dist/components/layout-and-navigation/FAQSection.cjs.map +1 -0
- package/dist/components/{layout/FAQSection.d.mts → layout-and-navigation/FAQSection.d.cts} +1 -1
- package/dist/components/{layout → layout-and-navigation}/FAQSection.d.ts +1 -1
- package/dist/components/{layout/FAQSection.mjs → layout-and-navigation/FAQSection.js} +5 -5
- package/dist/components/layout-and-navigation/FAQSection.js.map +1 -0
- package/dist/components/{MarkdownInterpreter.js → layout-and-navigation/MarkdownInterpreter.cjs} +2 -2
- package/dist/components/layout-and-navigation/MarkdownInterpreter.cjs.map +1 -0
- package/dist/components/{MarkdownInterpreter.mjs → layout-and-navigation/MarkdownInterpreter.js} +2 -2
- package/dist/components/layout-and-navigation/MarkdownInterpreter.js.map +1 -0
- package/dist/components/layout-and-navigation/Overlay.cjs +467 -0
- package/dist/components/layout-and-navigation/Overlay.cjs.map +1 -0
- package/dist/components/layout-and-navigation/Overlay.d.cts +63 -0
- package/dist/components/layout-and-navigation/Overlay.d.ts +63 -0
- package/dist/components/layout-and-navigation/Overlay.js +429 -0
- package/dist/components/layout-and-navigation/Overlay.js.map +1 -0
- package/dist/components/{Pagination.js → layout-and-navigation/Pagination.cjs} +25 -10
- package/dist/components/layout-and-navigation/Pagination.cjs.map +1 -0
- package/dist/components/{Pagination.d.mts → layout-and-navigation/Pagination.d.cts} +2 -3
- package/dist/components/{Pagination.d.ts → layout-and-navigation/Pagination.d.ts} +2 -3
- package/dist/components/{Pagination.mjs → layout-and-navigation/Pagination.js} +25 -10
- package/dist/components/layout-and-navigation/Pagination.js.map +1 -0
- package/dist/components/{SearchableList.js → layout-and-navigation/SearchableList.cjs} +51 -34
- package/dist/components/layout-and-navigation/SearchableList.cjs.map +1 -0
- package/dist/components/{SearchableList.d.mts → layout-and-navigation/SearchableList.d.cts} +2 -2
- package/dist/components/{SearchableList.d.ts → layout-and-navigation/SearchableList.d.ts} +2 -2
- package/dist/components/{SearchableList.mjs → layout-and-navigation/SearchableList.js} +52 -40
- package/dist/components/layout-and-navigation/SearchableList.js.map +1 -0
- package/dist/components/{StepperBar.js → layout-and-navigation/StepperBar.cjs} +42 -16
- package/dist/components/layout-and-navigation/StepperBar.cjs.map +1 -0
- package/dist/components/{StepperBar.d.mts → layout-and-navigation/StepperBar.d.cts} +2 -3
- package/dist/components/{StepperBar.d.ts → layout-and-navigation/StepperBar.d.ts} +2 -3
- package/dist/components/{StepperBar.mjs → layout-and-navigation/StepperBar.js} +40 -14
- package/dist/components/layout-and-navigation/StepperBar.js.map +1 -0
- package/dist/components/{Table.js → layout-and-navigation/Table.cjs} +176 -40
- package/dist/components/layout-and-navigation/Table.cjs.map +1 -0
- package/dist/components/{Table.d.mts → layout-and-navigation/Table.d.cts} +10 -1
- package/dist/components/{Table.d.ts → layout-and-navigation/Table.d.ts} +10 -1
- package/dist/components/{Table.mjs → layout-and-navigation/Table.js} +175 -40
- package/dist/components/layout-and-navigation/Table.js.map +1 -0
- package/dist/components/{TextImage.js → layout-and-navigation/TextImage.cjs} +25 -10
- package/dist/components/layout-and-navigation/TextImage.cjs.map +1 -0
- package/dist/components/{TextImage.d.mts → layout-and-navigation/TextImage.d.cts} +2 -3
- package/dist/components/{TextImage.d.ts → layout-and-navigation/TextImage.d.ts} +2 -3
- package/dist/components/{TextImage.mjs → layout-and-navigation/TextImage.js} +23 -8
- package/dist/components/layout-and-navigation/TextImage.js.map +1 -0
- package/dist/components/{layout/Tile.js → layout-and-navigation/Tile.cjs} +4 -4
- package/dist/components/layout-and-navigation/Tile.cjs.map +1 -0
- package/dist/components/{layout/Tile.mjs → layout-and-navigation/Tile.js} +2 -2
- package/dist/components/layout-and-navigation/Tile.js.map +1 -0
- package/dist/components/{VerticalDivider.js → layout-and-navigation/VerticalDivider.cjs} +2 -2
- package/dist/components/layout-and-navigation/VerticalDivider.cjs.map +1 -0
- package/dist/components/{VerticalDivider.mjs → layout-and-navigation/VerticalDivider.js} +2 -2
- package/dist/components/layout-and-navigation/VerticalDivider.js.map +1 -0
- package/dist/components/{ErrorComponent.js → loading-states/ErrorComponent.cjs} +25 -10
- package/dist/components/loading-states/ErrorComponent.cjs.map +1 -0
- package/dist/components/{ErrorComponent.d.mts → loading-states/ErrorComponent.d.cts} +2 -3
- package/dist/components/{ErrorComponent.d.ts → loading-states/ErrorComponent.d.ts} +2 -3
- package/dist/components/{ErrorComponent.mjs → loading-states/ErrorComponent.js} +24 -9
- package/dist/components/loading-states/ErrorComponent.js.map +1 -0
- package/dist/components/{LoadingAndErrorComponent.js → loading-states/LoadingAndErrorComponent.cjs} +67 -18
- package/dist/components/loading-states/LoadingAndErrorComponent.cjs.map +1 -0
- package/dist/components/{LoadingAndErrorComponent.d.mts → loading-states/LoadingAndErrorComponent.d.cts} +6 -6
- package/dist/components/{LoadingAndErrorComponent.d.ts → loading-states/LoadingAndErrorComponent.d.ts} +4 -4
- package/dist/components/{LoadingAndErrorComponent.mjs → loading-states/LoadingAndErrorComponent.js} +66 -17
- package/dist/components/loading-states/LoadingAndErrorComponent.js.map +1 -0
- package/dist/components/{LoadingAnimation.js → loading-states/LoadingAnimation.cjs} +64 -15
- package/dist/components/loading-states/LoadingAnimation.cjs.map +1 -0
- package/dist/components/{LoadingAnimation.d.mts → loading-states/LoadingAnimation.d.cts} +2 -3
- package/dist/components/{LoadingAnimation.d.ts → loading-states/LoadingAnimation.d.ts} +2 -3
- package/dist/components/{LoadingAnimation.mjs → loading-states/LoadingAnimation.js} +63 -14
- package/dist/components/loading-states/LoadingAnimation.js.map +1 -0
- package/dist/components/{LoadingButton.js → loading-states/LoadingButton.cjs} +101 -58
- package/dist/components/loading-states/LoadingButton.cjs.map +1 -0
- package/dist/components/{LoadingButton.d.mts → loading-states/LoadingButton.d.cts} +1 -1
- package/dist/components/{LoadingButton.d.ts → loading-states/LoadingButton.d.ts} +1 -1
- package/dist/components/{LoadingButton.mjs → loading-states/LoadingButton.js} +100 -57
- package/dist/components/loading-states/LoadingButton.js.map +1 -0
- package/dist/components/{ProgressIndicator.js → loading-states/ProgressIndicator.cjs} +2 -2
- package/dist/components/loading-states/ProgressIndicator.cjs.map +1 -0
- package/dist/components/{ProgressIndicator.mjs → loading-states/ProgressIndicator.js} +2 -2
- package/dist/components/loading-states/ProgressIndicator.js.map +1 -0
- package/dist/components/modals/ConfirmDialog.cjs +353 -0
- package/dist/components/modals/ConfirmDialog.cjs.map +1 -0
- package/dist/components/modals/{ConfirmDialog.d.mts → ConfirmDialog.d.cts} +6 -6
- package/dist/components/modals/ConfirmDialog.d.ts +6 -6
- package/dist/components/modals/ConfirmDialog.js +157 -268
- package/dist/components/modals/ConfirmDialog.js.map +1 -1
- package/dist/components/modals/{DiscardChangesDialog.js → DiscardChangesModal.cjs} +210 -116
- package/dist/components/modals/DiscardChangesModal.cjs.map +1 -0
- package/dist/components/modals/DiscardChangesModal.d.cts +23 -0
- package/dist/components/modals/DiscardChangesModal.d.ts +23 -0
- package/dist/components/modals/{DiscardChangesDialog.mjs → DiscardChangesModal.js} +198 -104
- package/dist/components/modals/DiscardChangesModal.js.map +1 -0
- package/dist/components/modals/InputModal.cjs +533 -0
- package/dist/components/modals/InputModal.cjs.map +1 -0
- package/dist/components/modals/{InputModal.d.mts → InputModal.d.cts} +7 -7
- package/dist/components/modals/InputModal.d.ts +6 -6
- package/dist/components/modals/InputModal.js +197 -301
- package/dist/components/modals/InputModal.js.map +1 -1
- package/dist/components/modals/LanguageModal.cjs +667 -0
- package/dist/components/modals/LanguageModal.cjs.map +1 -0
- package/dist/components/modals/LanguageModal.d.cts +20 -0
- package/dist/components/modals/LanguageModal.d.ts +7 -8
- package/dist/components/modals/LanguageModal.js +305 -203
- package/dist/components/modals/LanguageModal.js.map +1 -1
- package/dist/components/modals/ThemeModal.cjs +694 -0
- package/dist/components/modals/ThemeModal.cjs.map +1 -0
- package/dist/components/modals/ThemeModal.d.cts +21 -0
- package/dist/components/modals/ThemeModal.d.ts +21 -0
- package/dist/components/modals/ThemeModal.js +657 -0
- package/dist/components/modals/ThemeModal.js.map +1 -0
- package/dist/components/properties/CheckboxProperty.cjs +362 -0
- package/dist/components/properties/CheckboxProperty.cjs.map +1 -0
- package/dist/components/properties/{CheckboxProperty.d.mts → CheckboxProperty.d.cts} +3 -3
- package/dist/components/properties/CheckboxProperty.d.ts +2 -2
- package/dist/components/properties/CheckboxProperty.js +94 -93
- package/dist/components/properties/CheckboxProperty.js.map +1 -1
- package/dist/components/properties/DateProperty.cjs +451 -0
- package/dist/components/properties/DateProperty.cjs.map +1 -0
- package/dist/components/properties/{DateProperty.d.mts → DateProperty.d.cts} +3 -3
- package/dist/components/properties/DateProperty.d.ts +2 -2
- package/dist/components/properties/DateProperty.js +110 -116
- package/dist/components/properties/DateProperty.js.map +1 -1
- package/dist/components/properties/{MultiSelectProperty.mjs → MultiSelectProperty.cjs} +216 -155
- package/dist/components/properties/MultiSelectProperty.cjs.map +1 -0
- package/dist/components/properties/{MultiSelectProperty.d.mts → MultiSelectProperty.d.cts} +5 -5
- package/dist/components/properties/MultiSelectProperty.d.ts +4 -4
- package/dist/components/properties/MultiSelectProperty.js +180 -184
- package/dist/components/properties/MultiSelectProperty.js.map +1 -1
- package/dist/components/properties/NumberProperty.cjs +459 -0
- package/dist/components/properties/NumberProperty.cjs.map +1 -0
- package/dist/components/properties/{NumberProperty.d.mts → NumberProperty.d.cts} +3 -3
- package/dist/components/properties/NumberProperty.d.ts +2 -2
- package/dist/components/properties/NumberProperty.js +109 -116
- package/dist/components/properties/NumberProperty.js.map +1 -1
- package/dist/components/properties/PropertyBase.cjs +223 -0
- package/dist/components/properties/PropertyBase.cjs.map +1 -0
- package/dist/components/properties/{PropertyBase.d.mts → PropertyBase.d.cts} +2 -2
- package/dist/components/properties/PropertyBase.d.ts +2 -2
- package/dist/components/properties/PropertyBase.js +60 -69
- package/dist/components/properties/PropertyBase.js.map +1 -1
- package/dist/components/properties/{SelectProperty.mjs → SelectProperty.cjs} +251 -199
- package/dist/components/properties/SelectProperty.cjs.map +1 -0
- package/dist/components/properties/{SelectProperty.d.mts → SelectProperty.d.cts} +5 -6
- package/dist/components/properties/SelectProperty.d.ts +4 -5
- package/dist/components/properties/SelectProperty.js +215 -228
- package/dist/components/properties/SelectProperty.js.map +1 -1
- package/dist/components/properties/TextProperty.cjs +428 -0
- package/dist/components/properties/TextProperty.cjs.map +1 -0
- package/dist/components/properties/{TextProperty.d.mts → TextProperty.d.cts} +3 -3
- package/dist/components/properties/TextProperty.d.ts +2 -2
- package/dist/components/properties/TextProperty.js +134 -121
- package/dist/components/properties/TextProperty.js.map +1 -1
- package/dist/components/{Button.js → user-action/Button.cjs} +70 -12
- package/dist/components/user-action/Button.cjs.map +1 -0
- package/dist/components/{Button.d.mts → user-action/Button.d.cts} +32 -5
- package/dist/components/{Button.d.ts → user-action/Button.d.ts} +32 -5
- package/dist/components/{Button.mjs → user-action/Button.js} +66 -10
- package/dist/components/user-action/Button.js.map +1 -0
- package/dist/components/{user-input/Checkbox.js → user-action/Checkbox.cjs} +26 -16
- package/dist/components/user-action/Checkbox.cjs.map +1 -0
- package/dist/components/{user-input/Checkbox.d.mts → user-action/Checkbox.d.cts} +5 -5
- package/dist/components/{user-input → user-action}/Checkbox.d.ts +4 -4
- package/dist/components/{user-input/Checkbox.mjs → user-action/Checkbox.js} +24 -14
- package/dist/components/user-action/Checkbox.js.map +1 -0
- package/dist/components/{user-input/DateAndTimePicker.js → user-action/DateAndTimePicker.cjs} +51 -23
- package/dist/components/user-action/DateAndTimePicker.cjs.map +1 -0
- package/dist/components/{user-input/DateAndTimePicker.d.mts → user-action/DateAndTimePicker.d.cts} +7 -8
- package/dist/components/{user-input → user-action}/DateAndTimePicker.d.ts +2 -3
- package/dist/components/{user-input/DateAndTimePicker.mjs → user-action/DateAndTimePicker.js} +44 -16
- package/dist/components/user-action/DateAndTimePicker.js.map +1 -0
- package/dist/components/{user-input/Input.js → user-action/Input.cjs} +35 -34
- package/dist/components/user-action/Input.cjs.map +1 -0
- package/dist/components/{user-input/Input.d.mts → user-action/Input.d.cts} +9 -16
- package/dist/components/{user-input → user-action}/Input.d.ts +8 -15
- package/dist/components/{user-input/Input.mjs → user-action/Input.js} +35 -39
- package/dist/components/user-action/Input.js.map +1 -0
- package/dist/components/{user-input/Label.js → user-action/Label.cjs} +15 -3
- package/dist/components/user-action/Label.cjs.map +1 -0
- package/dist/components/{user-input/Label.d.mts → user-action/Label.d.cts} +1 -1
- package/dist/components/{user-input → user-action}/Label.d.ts +1 -1
- package/dist/components/{user-input/Label.mjs → user-action/Label.js} +5 -3
- package/dist/components/user-action/Label.js.map +1 -0
- package/dist/components/{user-input/Menu.js → user-action/Menu.cjs} +4 -4
- package/dist/components/user-action/Menu.cjs.map +1 -0
- package/dist/components/{user-input/Menu.mjs → user-action/Menu.js} +3 -3
- package/dist/components/user-action/Menu.js.map +1 -0
- package/dist/components/{user-input/MultiSelect.js → user-action/MultiSelect.cjs} +76 -51
- package/dist/components/user-action/MultiSelect.cjs.map +1 -0
- package/dist/components/{user-input/MultiSelect.d.mts → user-action/MultiSelect.d.cts} +3 -3
- package/dist/components/{user-input → user-action}/MultiSelect.d.ts +2 -2
- package/dist/components/{user-input/MultiSelect.mjs → user-action/MultiSelect.js} +75 -55
- package/dist/components/user-action/MultiSelect.js.map +1 -0
- package/dist/components/{user-input/ScrollPicker.js → user-action/ScrollPicker.cjs} +4 -4
- package/dist/components/user-action/ScrollPicker.cjs.map +1 -0
- package/dist/components/{user-input/ScrollPicker.mjs → user-action/ScrollPicker.js} +3 -3
- package/dist/components/user-action/ScrollPicker.js.map +1 -0
- package/dist/components/{user-input/SearchableSelect.js → user-action/Select.cjs} +181 -152
- package/dist/components/user-action/Select.cjs.map +1 -0
- package/dist/components/user-action/Select.d.cts +49 -0
- package/dist/components/user-action/Select.d.ts +49 -0
- package/dist/components/{user-input/SearchableSelect.mjs → user-action/Select.js} +167 -145
- package/dist/components/user-action/Select.js.map +1 -0
- package/dist/components/{user-input/Textarea.js → user-action/Textarea.cjs} +80 -35
- package/dist/components/user-action/Textarea.cjs.map +1 -0
- package/dist/components/user-action/Textarea.d.cts +28 -0
- package/dist/components/{user-input → user-action}/Textarea.d.ts +9 -5
- package/dist/components/user-action/Textarea.js +163 -0
- package/dist/components/user-action/Textarea.js.map +1 -0
- package/dist/components/{user-input/ToggleableInput.js → user-action/ToggleableInput.cjs} +9 -15
- package/dist/components/user-action/ToggleableInput.cjs.map +1 -0
- package/dist/components/{user-input/ToggleableInput.mjs → user-action/ToggleableInput.js} +8 -14
- package/dist/components/user-action/ToggleableInput.js.map +1 -0
- package/dist/components/{Tooltip.js → user-action/Tooltip.cjs} +13 -9
- package/dist/components/user-action/Tooltip.cjs.map +1 -0
- package/dist/components/{Tooltip.d.mts → user-action/Tooltip.d.cts} +1 -1
- package/dist/components/{Tooltip.d.ts → user-action/Tooltip.d.ts} +1 -1
- package/dist/components/{Tooltip.mjs → user-action/Tooltip.js} +12 -8
- package/dist/components/user-action/Tooltip.js.map +1 -0
- package/dist/css/globals.css +178 -126
- package/dist/css/uncompiled/globals.css +65 -29
- package/dist/hooks/useHoverState.cjs +72 -0
- package/dist/hooks/{useHoverState.mjs.map → useHoverState.cjs.map} +1 -1
- package/dist/hooks/useHoverState.js +7 -32
- package/dist/hooks/useHoverState.js.map +1 -1
- package/dist/hooks/useLocalStorage.cjs +83 -0
- package/dist/hooks/useLocalStorage.cjs.map +1 -0
- package/dist/hooks/useLocalStorage.js +9 -34
- package/dist/hooks/useLocalStorage.js.map +1 -1
- package/dist/hooks/useOutsideClick.cjs +48 -0
- package/dist/hooks/{useOutsideClick.mjs.map → useOutsideClick.cjs.map} +1 -1
- package/dist/hooks/useOutsideClick.js +4 -29
- package/dist/hooks/useOutsideClick.js.map +1 -1
- package/dist/hooks/useSaveDelay.cjs +68 -0
- package/dist/hooks/{useSaveDelay.mjs.map → useSaveDelay.cjs.map} +1 -1
- package/dist/hooks/useSaveDelay.js +6 -31
- package/dist/hooks/useSaveDelay.js.map +1 -1
- package/dist/{index.mjs → index.cjs} +4005 -3881
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +82 -0
- package/dist/index.d.ts +49 -55
- package/dist/index.js +3822 -4055
- package/dist/index.js.map +1 -1
- package/dist/{hooks/useLanguage.js → localization/LanguageProvider.cjs} +30 -26
- package/dist/localization/LanguageProvider.cjs.map +1 -0
- package/dist/localization/LanguageProvider.d.cts +18 -0
- package/dist/localization/LanguageProvider.d.ts +18 -0
- package/dist/{hooks/useLanguage.mjs → localization/LanguageProvider.js} +26 -19
- package/dist/localization/LanguageProvider.js.map +1 -0
- package/dist/{hooks/useTranslation.js → localization/useTranslation.cjs} +23 -8
- package/dist/localization/useTranslation.cjs.map +1 -0
- package/dist/{hooks/useTranslation.d.mts → localization/useTranslation.d.cts} +5 -7
- package/dist/{hooks → localization}/useTranslation.d.ts +5 -7
- package/dist/{hooks/useTranslation.mjs → localization/useTranslation.js} +22 -7
- package/dist/localization/useTranslation.js.map +1 -0
- package/dist/localization/util.cjs +41 -0
- package/dist/localization/util.cjs.map +1 -0
- package/dist/localization/util.d.cts +18 -0
- package/dist/localization/util.d.ts +18 -0
- package/dist/localization/util.js +16 -0
- package/dist/localization/util.js.map +1 -0
- package/dist/{hooks/useTheme.js → theming/useTheme.cjs} +19 -11
- package/dist/theming/useTheme.cjs.map +1 -0
- package/dist/{hooks/useTheme.d.mts → theming/useTheme.d.cts} +9 -5
- package/dist/{hooks → theming}/useTheme.d.ts +9 -5
- package/dist/{hooks/useTheme.mjs → theming/useTheme.js} +15 -7
- package/dist/theming/useTheme.js.map +1 -0
- package/dist/util/{array.mjs → array.cjs} +34 -3
- package/dist/util/array.cjs.map +1 -0
- package/dist/util/array.js +2 -33
- package/dist/util/array.js.map +1 -1
- package/dist/util/builder.cjs +34 -0
- package/dist/util/{builder.mjs.map → builder.cjs.map} +1 -1
- package/dist/util/builder.js +2 -27
- package/dist/util/builder.js.map +1 -1
- package/dist/util/{date.mjs → date.cjs} +41 -3
- package/dist/util/date.cjs.map +1 -0
- package/dist/util/date.js +2 -40
- package/dist/util/date.js.map +1 -1
- package/dist/util/easeFunctions.cjs +63 -0
- package/dist/util/easeFunctions.cjs.map +1 -0
- package/dist/util/easeFunctions.js +2 -29
- package/dist/util/easeFunctions.js.map +1 -1
- package/dist/util/emailValidation.cjs +33 -0
- package/dist/util/{emailValidation.mjs.map → emailValidation.cjs.map} +1 -1
- package/dist/util/emailValidation.js +2 -27
- package/dist/util/emailValidation.js.map +1 -1
- package/dist/util/{loopingArray.mjs → loopingArray.cjs} +28 -3
- package/dist/util/{loopingArray.mjs.map → loopingArray.cjs.map} +1 -1
- package/dist/util/loopingArray.js +2 -27
- package/dist/util/loopingArray.js.map +1 -1
- package/dist/util/math.cjs +33 -0
- package/dist/util/{math.mjs.map → math.cjs.map} +1 -1
- package/dist/util/math.js +2 -27
- package/dist/util/math.js.map +1 -1
- package/dist/util/news.cjs +77 -0
- package/dist/util/news.cjs.map +1 -0
- package/dist/util/{news.d.mts → news.d.cts} +11 -13
- package/dist/util/news.d.ts +11 -13
- package/dist/util/news.js +22 -49
- package/dist/util/news.js.map +1 -1
- package/dist/util/noop.cjs +31 -0
- package/dist/util/noop.cjs.map +1 -0
- package/dist/util/noop.js +2 -27
- package/dist/util/noop.js.map +1 -1
- package/dist/util/simpleSearch.cjs +54 -0
- package/dist/util/simpleSearch.cjs.map +1 -0
- package/dist/util/simpleSearch.js +2 -30
- package/dist/util/simpleSearch.js.map +1 -1
- package/dist/util/storage.cjs +64 -0
- package/dist/util/storage.cjs.map +1 -0
- package/dist/util/storage.js +2 -28
- package/dist/util/storage.js.map +1 -1
- package/dist/util/types.cjs +19 -0
- package/dist/util/types.cjs.map +1 -0
- package/dist/util/types.js +0 -18
- package/dist/util/types.js.map +1 -1
- package/package.json +9 -12
- package/dist/coloring/shading.mjs +0 -47
- package/dist/coloring/shading.mjs.map +0 -1
- package/dist/coloring/types.mjs +0 -6
- package/dist/components/Avatar.d.mts +0 -17
- package/dist/components/Avatar.d.ts +0 -17
- package/dist/components/Avatar.js +0 -85
- package/dist/components/Avatar.js.map +0 -1
- package/dist/components/Avatar.mjs +0 -48
- package/dist/components/Avatar.mjs.map +0 -1
- package/dist/components/AvatarGroup.d.mts +0 -14
- package/dist/components/AvatarGroup.d.ts +0 -14
- package/dist/components/AvatarGroup.js.map +0 -1
- package/dist/components/AvatarGroup.mjs.map +0 -1
- package/dist/components/BreadCrumb.js.map +0 -1
- package/dist/components/BreadCrumb.mjs.map +0 -1
- package/dist/components/Button.js.map +0 -1
- package/dist/components/Button.mjs.map +0 -1
- package/dist/components/ChipList.js.map +0 -1
- package/dist/components/ChipList.mjs.map +0 -1
- package/dist/components/Circle.js.map +0 -1
- package/dist/components/Circle.mjs.map +0 -1
- package/dist/components/ErrorComponent.js.map +0 -1
- package/dist/components/ErrorComponent.mjs.map +0 -1
- package/dist/components/Expandable.js.map +0 -1
- package/dist/components/Expandable.mjs.map +0 -1
- package/dist/components/HelpwaveBadge.js.map +0 -1
- package/dist/components/HelpwaveBadge.mjs +0 -91
- package/dist/components/HelpwaveBadge.mjs.map +0 -1
- package/dist/components/HideableContentSection.d.mts +0 -14
- package/dist/components/HideableContentSection.d.ts +0 -14
- package/dist/components/HideableContentSection.js +0 -70
- package/dist/components/HideableContentSection.js.map +0 -1
- package/dist/components/HideableContentSection.mjs +0 -35
- package/dist/components/HideableContentSection.mjs.map +0 -1
- package/dist/components/InputGroup.d.mts +0 -17
- package/dist/components/InputGroup.d.ts +0 -17
- package/dist/components/InputGroup.js +0 -97
- package/dist/components/InputGroup.js.map +0 -1
- package/dist/components/InputGroup.mjs +0 -62
- package/dist/components/InputGroup.mjs.map +0 -1
- package/dist/components/LoadingAndErrorComponent.js.map +0 -1
- package/dist/components/LoadingAndErrorComponent.mjs.map +0 -1
- package/dist/components/LoadingAnimation.js.map +0 -1
- package/dist/components/LoadingAnimation.mjs.map +0 -1
- package/dist/components/LoadingButton.js.map +0 -1
- package/dist/components/LoadingButton.mjs.map +0 -1
- package/dist/components/MarkdownInterpreter.js.map +0 -1
- package/dist/components/MarkdownInterpreter.mjs.map +0 -1
- package/dist/components/Pagination.js.map +0 -1
- package/dist/components/Pagination.mjs.map +0 -1
- package/dist/components/Profile.d.mts +0 -31
- package/dist/components/Profile.d.ts +0 -31
- package/dist/components/Profile.js +0 -197
- package/dist/components/Profile.js.map +0 -1
- package/dist/components/Profile.mjs +0 -162
- package/dist/components/Profile.mjs.map +0 -1
- package/dist/components/ProgressIndicator.js.map +0 -1
- package/dist/components/ProgressIndicator.mjs.map +0 -1
- package/dist/components/Ring.js.map +0 -1
- package/dist/components/Ring.mjs.map +0 -1
- package/dist/components/SearchableList.js.map +0 -1
- package/dist/components/SearchableList.mjs.map +0 -1
- package/dist/components/SortButton.d.mts +0 -15
- package/dist/components/SortButton.d.ts +0 -15
- package/dist/components/SortButton.js +0 -132
- package/dist/components/SortButton.js.map +0 -1
- package/dist/components/SortButton.mjs +0 -97
- package/dist/components/SortButton.mjs.map +0 -1
- package/dist/components/StepperBar.js.map +0 -1
- package/dist/components/StepperBar.mjs.map +0 -1
- package/dist/components/Table.js.map +0 -1
- package/dist/components/Table.mjs.map +0 -1
- package/dist/components/TechRadar.d.mts +0 -39
- package/dist/components/TechRadar.d.ts +0 -39
- package/dist/components/TechRadar.js +0 -243
- package/dist/components/TechRadar.js.map +0 -1
- package/dist/components/TechRadar.mjs +0 -208
- package/dist/components/TechRadar.mjs.map +0 -1
- package/dist/components/TextImage.js.map +0 -1
- package/dist/components/TextImage.mjs.map +0 -1
- package/dist/components/TimeDisplay.js.map +0 -1
- package/dist/components/TimeDisplay.mjs.map +0 -1
- package/dist/components/Tooltip.js.map +0 -1
- package/dist/components/Tooltip.mjs.map +0 -1
- package/dist/components/VerticalDivider.js.map +0 -1
- package/dist/components/VerticalDivider.mjs.map +0 -1
- package/dist/components/date/DatePicker.mjs.map +0 -1
- package/dist/components/date/DayPicker.mjs.map +0 -1
- package/dist/components/date/TimePicker.mjs.map +0 -1
- package/dist/components/date/YearMonthPicker.mjs.map +0 -1
- package/dist/components/icons/Helpwave.js.map +0 -1
- package/dist/components/icons/Helpwave.mjs +0 -43
- package/dist/components/icons/Helpwave.mjs.map +0 -1
- package/dist/components/icons/Tag.js.map +0 -1
- package/dist/components/icons/Tag.mjs.map +0 -1
- package/dist/components/layout/Carousel.js.map +0 -1
- package/dist/components/layout/Carousel.mjs.map +0 -1
- package/dist/components/layout/DividerInserter.js.map +0 -1
- package/dist/components/layout/DividerInserter.mjs.map +0 -1
- package/dist/components/layout/FAQSection.js.map +0 -1
- package/dist/components/layout/FAQSection.mjs.map +0 -1
- package/dist/components/layout/Tile.js.map +0 -1
- package/dist/components/layout/Tile.mjs.map +0 -1
- package/dist/components/modals/ConfirmDialog.mjs +0 -390
- package/dist/components/modals/ConfirmDialog.mjs.map +0 -1
- package/dist/components/modals/DiscardChangesDialog.d.mts +0 -23
- package/dist/components/modals/DiscardChangesDialog.d.ts +0 -23
- package/dist/components/modals/DiscardChangesDialog.js.map +0 -1
- package/dist/components/modals/DiscardChangesDialog.mjs.map +0 -1
- package/dist/components/modals/InputModal.mjs +0 -568
- package/dist/components/modals/InputModal.mjs.map +0 -1
- package/dist/components/modals/LanguageModal.d.mts +0 -21
- package/dist/components/modals/LanguageModal.mjs +0 -491
- package/dist/components/modals/LanguageModal.mjs.map +0 -1
- package/dist/components/modals/Modal.d.mts +0 -43
- package/dist/components/modals/Modal.d.ts +0 -43
- package/dist/components/modals/Modal.js +0 -288
- package/dist/components/modals/Modal.js.map +0 -1
- package/dist/components/modals/Modal.mjs +0 -251
- package/dist/components/modals/Modal.mjs.map +0 -1
- package/dist/components/modals/ModalRegister.d.mts +0 -16
- package/dist/components/modals/ModalRegister.d.ts +0 -16
- package/dist/components/modals/ModalRegister.js +0 -63
- package/dist/components/modals/ModalRegister.js.map +0 -1
- package/dist/components/modals/ModalRegister.mjs +0 -37
- package/dist/components/modals/ModalRegister.mjs.map +0 -1
- package/dist/components/properties/CheckboxProperty.mjs +0 -291
- package/dist/components/properties/CheckboxProperty.mjs.map +0 -1
- package/dist/components/properties/DateProperty.mjs +0 -392
- package/dist/components/properties/DateProperty.mjs.map +0 -1
- package/dist/components/properties/MultiSelectProperty.mjs.map +0 -1
- package/dist/components/properties/NumberProperty.mjs +0 -401
- package/dist/components/properties/NumberProperty.mjs.map +0 -1
- package/dist/components/properties/PropertyBase.mjs +0 -162
- package/dist/components/properties/PropertyBase.mjs.map +0 -1
- package/dist/components/properties/SelectProperty.mjs.map +0 -1
- package/dist/components/properties/TextProperty.mjs +0 -345
- package/dist/components/properties/TextProperty.mjs.map +0 -1
- package/dist/components/user-input/Checkbox.js.map +0 -1
- package/dist/components/user-input/Checkbox.mjs.map +0 -1
- package/dist/components/user-input/DateAndTimePicker.js.map +0 -1
- package/dist/components/user-input/DateAndTimePicker.mjs.map +0 -1
- package/dist/components/user-input/Input.js.map +0 -1
- package/dist/components/user-input/Input.mjs.map +0 -1
- package/dist/components/user-input/Label.js.map +0 -1
- package/dist/components/user-input/Label.mjs.map +0 -1
- package/dist/components/user-input/Menu.js.map +0 -1
- package/dist/components/user-input/Menu.mjs.map +0 -1
- package/dist/components/user-input/MultiSelect.js.map +0 -1
- package/dist/components/user-input/MultiSelect.mjs.map +0 -1
- package/dist/components/user-input/ScrollPicker.js.map +0 -1
- package/dist/components/user-input/ScrollPicker.mjs.map +0 -1
- package/dist/components/user-input/SearchableSelect.d.mts +0 -14
- package/dist/components/user-input/SearchableSelect.d.ts +0 -14
- package/dist/components/user-input/SearchableSelect.js.map +0 -1
- package/dist/components/user-input/SearchableSelect.mjs.map +0 -1
- package/dist/components/user-input/Select.d.mts +0 -36
- package/dist/components/user-input/Select.d.ts +0 -36
- package/dist/components/user-input/Select.js +0 -153
- package/dist/components/user-input/Select.js.map +0 -1
- package/dist/components/user-input/Select.mjs +0 -118
- package/dist/components/user-input/Select.mjs.map +0 -1
- package/dist/components/user-input/Textarea.d.mts +0 -24
- package/dist/components/user-input/Textarea.js.map +0 -1
- package/dist/components/user-input/Textarea.mjs +0 -119
- package/dist/components/user-input/Textarea.mjs.map +0 -1
- package/dist/components/user-input/ToggleableInput.js.map +0 -1
- package/dist/components/user-input/ToggleableInput.mjs.map +0 -1
- package/dist/hooks/useHoverState.mjs +0 -47
- package/dist/hooks/useLanguage.d.mts +0 -21
- package/dist/hooks/useLanguage.d.ts +0 -21
- package/dist/hooks/useLanguage.js.map +0 -1
- package/dist/hooks/useLanguage.mjs.map +0 -1
- package/dist/hooks/useLocalStorage.mjs +0 -58
- package/dist/hooks/useLocalStorage.mjs.map +0 -1
- package/dist/hooks/useOutsideClick.mjs +0 -23
- package/dist/hooks/useSaveDelay.mjs +0 -43
- package/dist/hooks/useTheme.js.map +0 -1
- package/dist/hooks/useTheme.mjs.map +0 -1
- package/dist/hooks/useTranslation.js.map +0 -1
- package/dist/hooks/useTranslation.mjs.map +0 -1
- package/dist/index.d.mts +0 -88
- package/dist/index.mjs.map +0 -1
- package/dist/util/array.mjs.map +0 -1
- package/dist/util/builder.mjs +0 -9
- package/dist/util/date.mjs.map +0 -1
- package/dist/util/easeFunctions.mjs +0 -36
- package/dist/util/easeFunctions.mjs.map +0 -1
- package/dist/util/emailValidation.mjs +0 -8
- package/dist/util/math.mjs +0 -8
- package/dist/util/news.mjs +0 -48
- package/dist/util/news.mjs.map +0 -1
- package/dist/util/noop.mjs +0 -6
- package/dist/util/noop.mjs.map +0 -1
- package/dist/util/simpleSearch.mjs +0 -26
- package/dist/util/simpleSearch.mjs.map +0 -1
- package/dist/util/storage.mjs +0 -38
- package/dist/util/storage.mjs.map +0 -1
- package/dist/util/types.mjs +0 -1
- package/dist/util/types.mjs.map +0 -1
- /package/dist/coloring/{types.d.mts → types.d.cts} +0 -0
- /package/dist/components/{HelpwaveBadge.d.mts → branding/HelpwaveBadge.d.cts} +0 -0
- /package/dist/components/{HelpwaveBadge.d.ts → branding/HelpwaveBadge.d.ts} +0 -0
- /package/dist/components/{Circle.d.mts → icons-and-geometry/Circle.d.cts} +0 -0
- /package/dist/components/{Circle.d.ts → icons-and-geometry/Circle.d.ts} +0 -0
- /package/dist/components/{icons/Helpwave.d.mts → icons-and-geometry/Helpwave.d.cts} +0 -0
- /package/dist/components/{icons → icons-and-geometry}/Helpwave.d.ts +0 -0
- /package/dist/components/{Ring.d.mts → icons-and-geometry/Ring.d.cts} +0 -0
- /package/dist/components/{Ring.d.ts → icons-and-geometry/Ring.d.ts} +0 -0
- /package/dist/components/{icons/Tag.d.mts → icons-and-geometry/Tag.d.cts} +0 -0
- /package/dist/components/{icons → icons-and-geometry}/Tag.d.ts +0 -0
- /package/dist/components/{BreadCrumb.d.mts → layout-and-navigation/BreadCrumb.d.cts} +0 -0
- /package/dist/components/{BreadCrumb.d.ts → layout-and-navigation/BreadCrumb.d.ts} +0 -0
- /package/dist/components/{layout/Carousel.d.mts → layout-and-navigation/Carousel.d.cts} +0 -0
- /package/dist/components/{layout → layout-and-navigation}/Carousel.d.ts +0 -0
- /package/dist/components/{ChipList.d.mts → layout-and-navigation/Chip.d.cts} +0 -0
- /package/dist/components/{ChipList.d.ts → layout-and-navigation/Chip.d.ts} +0 -0
- /package/dist/components/{layout/DividerInserter.d.mts → layout-and-navigation/DividerInserter.d.cts} +0 -0
- /package/dist/components/{layout → layout-and-navigation}/DividerInserter.d.ts +0 -0
- /package/dist/components/{Expandable.d.mts → layout-and-navigation/Expandable.d.cts} +0 -0
- /package/dist/components/{Expandable.d.ts → layout-and-navigation/Expandable.d.ts} +0 -0
- /package/dist/components/{MarkdownInterpreter.d.mts → layout-and-navigation/MarkdownInterpreter.d.cts} +0 -0
- /package/dist/components/{MarkdownInterpreter.d.ts → layout-and-navigation/MarkdownInterpreter.d.ts} +0 -0
- /package/dist/components/{layout/Tile.d.mts → layout-and-navigation/Tile.d.cts} +0 -0
- /package/dist/components/{layout → layout-and-navigation}/Tile.d.ts +0 -0
- /package/dist/components/{VerticalDivider.d.mts → layout-and-navigation/VerticalDivider.d.cts} +0 -0
- /package/dist/components/{VerticalDivider.d.ts → layout-and-navigation/VerticalDivider.d.ts} +0 -0
- /package/dist/components/{ProgressIndicator.d.mts → loading-states/ProgressIndicator.d.cts} +0 -0
- /package/dist/components/{ProgressIndicator.d.ts → loading-states/ProgressIndicator.d.ts} +0 -0
- /package/dist/components/{user-input/Menu.d.mts → user-action/Menu.d.cts} +0 -0
- /package/dist/components/{user-input → user-action}/Menu.d.ts +0 -0
- /package/dist/components/{user-input/ScrollPicker.d.mts → user-action/ScrollPicker.d.cts} +0 -0
- /package/dist/components/{user-input → user-action}/ScrollPicker.d.ts +0 -0
- /package/dist/components/{user-input/ToggleableInput.d.mts → user-action/ToggleableInput.d.cts} +0 -0
- /package/dist/components/{user-input → user-action}/ToggleableInput.d.ts +0 -0
- /package/dist/hooks/{useHoverState.d.mts → useHoverState.d.cts} +0 -0
- /package/dist/hooks/{useLocalStorage.d.mts → useLocalStorage.d.cts} +0 -0
- /package/dist/hooks/{useOutsideClick.d.mts → useOutsideClick.d.cts} +0 -0
- /package/dist/hooks/{useSaveDelay.d.mts → useSaveDelay.d.cts} +0 -0
- /package/dist/util/{array.d.mts → array.d.cts} +0 -0
- /package/dist/util/{builder.d.mts → builder.d.cts} +0 -0
- /package/dist/util/{date.d.mts → date.d.cts} +0 -0
- /package/dist/util/{easeFunctions.d.mts → easeFunctions.d.cts} +0 -0
- /package/dist/util/{emailValidation.d.mts → emailValidation.d.cts} +0 -0
- /package/dist/util/{loopingArray.d.mts → loopingArray.d.cts} +0 -0
- /package/dist/util/{math.d.mts → math.d.cts} +0 -0
- /package/dist/util/{noop.d.mts → noop.d.cts} +0 -0
- /package/dist/util/{simpleSearch.d.mts → simpleSearch.d.cts} +0 -0
- /package/dist/util/{storage.d.mts → storage.d.cts} +0 -0
- /package/dist/util/{types.d.mts → types.d.cts} +0 -0
|
@@ -1,47 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var
|
|
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/ConfirmDialog.tsx
|
|
31
|
-
var ConfirmDialog_exports = {};
|
|
32
|
-
__export(ConfirmDialog_exports, {
|
|
33
|
-
ConfirmDialog: () => ConfirmDialog
|
|
34
|
-
});
|
|
35
|
-
module.exports = __toCommonJS(ConfirmDialog_exports);
|
|
36
|
-
|
|
37
|
-
// src/components/Button.tsx
|
|
38
|
-
var import_clsx = __toESM(require("clsx"));
|
|
39
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
40
|
-
var ButtonSizePaddings = {
|
|
1
|
+
// src/components/user-action/Button.tsx
|
|
2
|
+
import clsx from "clsx";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
var paddingMapping = {
|
|
41
5
|
small: "btn-sm",
|
|
42
6
|
medium: "btn-md",
|
|
43
7
|
large: "btn-lg"
|
|
44
8
|
};
|
|
9
|
+
var iconPaddingMapping = {
|
|
10
|
+
small: "icon-btn-sm",
|
|
11
|
+
medium: "icon-btn-md",
|
|
12
|
+
large: "icon-btn-lg"
|
|
13
|
+
};
|
|
14
|
+
var ButtonUtil = {
|
|
15
|
+
paddingMapping,
|
|
16
|
+
iconPaddingMapping
|
|
17
|
+
};
|
|
45
18
|
var SolidButton = ({
|
|
46
19
|
children,
|
|
47
20
|
disabled = false,
|
|
@@ -59,7 +32,8 @@ var SolidButton = ({
|
|
|
59
32
|
tertiary: "bg-button-solid-tertiary-background text-button-solid-tertiary-text",
|
|
60
33
|
positive: "bg-button-solid-positive-background text-button-solid-positive-text",
|
|
61
34
|
warning: "bg-button-solid-warning-background text-button-solid-warning-text",
|
|
62
|
-
negative: "bg-button-solid-negative-background text-button-solid-negative-text"
|
|
35
|
+
negative: "bg-button-solid-negative-background text-button-solid-negative-text",
|
|
36
|
+
neutral: "bg-button-solid-neutral-background text-button-solid-neutral-text"
|
|
63
37
|
}[color];
|
|
64
38
|
const iconColorClasses = {
|
|
65
39
|
primary: "text-button-solid-primary-icon",
|
|
@@ -67,27 +41,28 @@ var SolidButton = ({
|
|
|
67
41
|
tertiary: "text-button-solid-tertiary-icon",
|
|
68
42
|
positive: "text-button-solid-positive-icon",
|
|
69
43
|
warning: "text-button-solid-warning-icon",
|
|
70
|
-
negative: "text-button-solid-negative-icon"
|
|
44
|
+
negative: "text-button-solid-negative-icon",
|
|
45
|
+
neutral: "text-button-solid-neutral-icon"
|
|
71
46
|
}[color];
|
|
72
|
-
return /* @__PURE__ */
|
|
47
|
+
return /* @__PURE__ */ jsxs(
|
|
73
48
|
"button",
|
|
74
49
|
{
|
|
75
50
|
onClick: disabled ? void 0 : onClick,
|
|
76
51
|
disabled: disabled || onClick === void 0,
|
|
77
|
-
className: (
|
|
52
|
+
className: clsx(
|
|
78
53
|
className,
|
|
79
54
|
{
|
|
80
55
|
"text-disabled-text bg-disabled-background": disabled,
|
|
81
|
-
[(
|
|
56
|
+
[clsx(colorClasses, "hover:brightness-90")]: !disabled
|
|
82
57
|
},
|
|
83
|
-
|
|
58
|
+
ButtonUtil.paddingMapping[size]
|
|
84
59
|
),
|
|
85
60
|
...restProps,
|
|
86
61
|
children: [
|
|
87
|
-
startIcon && /* @__PURE__ */
|
|
62
|
+
startIcon && /* @__PURE__ */ jsx(
|
|
88
63
|
"span",
|
|
89
64
|
{
|
|
90
|
-
className: (
|
|
65
|
+
className: clsx({
|
|
91
66
|
[iconColorClasses]: !disabled,
|
|
92
67
|
[`text-disabled-icon`]: disabled
|
|
93
68
|
}),
|
|
@@ -95,10 +70,10 @@ var SolidButton = ({
|
|
|
95
70
|
}
|
|
96
71
|
),
|
|
97
72
|
children,
|
|
98
|
-
endIcon && /* @__PURE__ */
|
|
73
|
+
endIcon && /* @__PURE__ */ jsx(
|
|
99
74
|
"span",
|
|
100
75
|
{
|
|
101
|
-
className: (
|
|
76
|
+
className: clsx({
|
|
102
77
|
[iconColorClasses]: !disabled,
|
|
103
78
|
[`text-disabled-icon`]: disabled
|
|
104
79
|
}),
|
|
@@ -110,19 +85,34 @@ var SolidButton = ({
|
|
|
110
85
|
);
|
|
111
86
|
};
|
|
112
87
|
|
|
113
|
-
// src/
|
|
114
|
-
|
|
88
|
+
// src/localization/LanguageProvider.tsx
|
|
89
|
+
import { createContext, useContext, useEffect as useEffect2, useState as useState2 } from "react";
|
|
115
90
|
|
|
116
|
-
// src/hooks/useLocalStorage.
|
|
117
|
-
|
|
91
|
+
// src/hooks/useLocalStorage.ts
|
|
92
|
+
import { useCallback, useEffect, useState } from "react";
|
|
118
93
|
|
|
119
|
-
// src/
|
|
120
|
-
var
|
|
94
|
+
// src/localization/util.ts
|
|
95
|
+
var languages = ["en", "de"];
|
|
96
|
+
var languagesLocalNames = {
|
|
97
|
+
en: "English",
|
|
98
|
+
de: "Deutsch"
|
|
99
|
+
};
|
|
121
100
|
var DEFAULT_LANGUAGE = "en";
|
|
122
|
-
var
|
|
123
|
-
|
|
101
|
+
var LanguageUtil = {
|
|
102
|
+
languages,
|
|
103
|
+
DEFAULT_LANGUAGE,
|
|
104
|
+
languagesLocalNames
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
// src/localization/LanguageProvider.tsx
|
|
108
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
109
|
+
var LanguageContext = createContext({
|
|
110
|
+
language: LanguageUtil.DEFAULT_LANGUAGE,
|
|
111
|
+
setLanguage: (v) => v
|
|
112
|
+
});
|
|
113
|
+
var useLanguage = () => useContext(LanguageContext);
|
|
124
114
|
|
|
125
|
-
// src/
|
|
115
|
+
// src/localization/useTranslation.ts
|
|
126
116
|
var useTranslation = (defaults, translationOverwrite = {}) => {
|
|
127
117
|
const { language: languageProp, translation: overwrite } = translationOverwrite;
|
|
128
118
|
const { language: inferredLanguage } = useLanguage();
|
|
@@ -134,230 +124,129 @@ var useTranslation = (defaults, translationOverwrite = {}) => {
|
|
|
134
124
|
return defaultValues;
|
|
135
125
|
};
|
|
136
126
|
|
|
137
|
-
// src/components/modals/
|
|
138
|
-
|
|
139
|
-
var import_react_dom = __toESM(require("react-dom"));
|
|
140
|
-
var import_lucide_react = require("lucide-react");
|
|
141
|
-
var import_clsx3 = __toESM(require("clsx"));
|
|
142
|
-
|
|
143
|
-
// src/hooks/useHoverState.ts
|
|
144
|
-
var import_react3 = require("react");
|
|
145
|
-
var defaultUseHoverStateProps = {
|
|
146
|
-
closingDelay: 200,
|
|
147
|
-
isDisabled: false
|
|
148
|
-
};
|
|
149
|
-
var useHoverState = (props = void 0) => {
|
|
150
|
-
const { closingDelay, isDisabled } = { ...defaultUseHoverStateProps, ...props };
|
|
151
|
-
const [isHovered, setIsHovered] = (0, import_react3.useState)(false);
|
|
152
|
-
const [timer, setTimer] = (0, import_react3.useState)();
|
|
153
|
-
const onMouseEnter = () => {
|
|
154
|
-
if (isDisabled) {
|
|
155
|
-
return;
|
|
156
|
-
}
|
|
157
|
-
clearTimeout(timer);
|
|
158
|
-
setIsHovered(true);
|
|
159
|
-
};
|
|
160
|
-
const onMouseLeave = () => {
|
|
161
|
-
if (isDisabled) {
|
|
162
|
-
return;
|
|
163
|
-
}
|
|
164
|
-
setTimer(setTimeout(() => {
|
|
165
|
-
setIsHovered(false);
|
|
166
|
-
}, closingDelay));
|
|
167
|
-
};
|
|
168
|
-
(0, import_react3.useEffect)(() => {
|
|
169
|
-
if (timer) {
|
|
170
|
-
return () => {
|
|
171
|
-
clearTimeout(timer);
|
|
172
|
-
};
|
|
173
|
-
}
|
|
174
|
-
});
|
|
175
|
-
(0, import_react3.useEffect)(() => {
|
|
176
|
-
if (timer) {
|
|
177
|
-
clearTimeout(timer);
|
|
178
|
-
}
|
|
179
|
-
}, [isDisabled]);
|
|
180
|
-
return {
|
|
181
|
-
isHovered,
|
|
182
|
-
setIsHovered,
|
|
183
|
-
handlers: { onMouseEnter, onMouseLeave }
|
|
184
|
-
};
|
|
185
|
-
};
|
|
186
|
-
|
|
187
|
-
// src/components/Tooltip.tsx
|
|
188
|
-
var import_clsx2 = require("clsx");
|
|
189
|
-
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
190
|
-
var Tooltip = ({
|
|
191
|
-
tooltip,
|
|
192
|
-
children,
|
|
193
|
-
animationDelay = 650,
|
|
194
|
-
tooltipClassName = "",
|
|
195
|
-
containerClassName = "",
|
|
196
|
-
position = "bottom",
|
|
197
|
-
zIndex = 10
|
|
198
|
-
}) => {
|
|
199
|
-
const { isHovered, handlers } = useHoverState();
|
|
200
|
-
const positionClasses = {
|
|
201
|
-
top: `bottom-full left-1/2 -translate-x-1/2 mb-[6px]`,
|
|
202
|
-
bottom: `top-full left-1/2 -translate-x-1/2 mt-[6px]`,
|
|
203
|
-
left: `right-full top-1/2 -translate-y-1/2 mr-[6px]`,
|
|
204
|
-
right: `left-full top-1/2 -translate-y-1/2 ml-[6px]`
|
|
205
|
-
};
|
|
206
|
-
const triangleSize = 6;
|
|
207
|
-
const triangleClasses = {
|
|
208
|
-
top: `top-full left-1/2 -translate-x-1/2 border-t-gray-600 border-l-transparent border-r-transparent`,
|
|
209
|
-
bottom: `bottom-full left-1/2 -translate-x-1/2 border-b-gray-600 border-l-transparent border-r-transparent`,
|
|
210
|
-
left: `left-full top-1/2 -translate-y-1/2 border-l-gray-600 border-t-transparent border-b-transparent`,
|
|
211
|
-
right: `right-full top-1/2 -translate-y-1/2 border-r-gray-600 border-t-transparent border-b-transparent`
|
|
212
|
-
};
|
|
213
|
-
const triangleStyle = {
|
|
214
|
-
top: { borderWidth: `${triangleSize}px ${triangleSize}px 0 ${triangleSize}px` },
|
|
215
|
-
bottom: { borderWidth: `0 ${triangleSize}px ${triangleSize}px ${triangleSize}px` },
|
|
216
|
-
left: { borderWidth: `${triangleSize}px 0 ${triangleSize}px ${triangleSize}px` },
|
|
217
|
-
right: { borderWidth: `${triangleSize}px ${triangleSize}px ${triangleSize}px 0` }
|
|
218
|
-
};
|
|
219
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
220
|
-
"div",
|
|
221
|
-
{
|
|
222
|
-
className: (0, import_clsx2.clsx)("relative inline-block", containerClassName),
|
|
223
|
-
...handlers,
|
|
224
|
-
children: [
|
|
225
|
-
children,
|
|
226
|
-
isHovered && /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
227
|
-
"div",
|
|
228
|
-
{
|
|
229
|
-
className: (0, import_clsx2.clsx)(`opacity-0 absolute text-black text-xs font-semibold text-gray-600 px-2 py-1 rounded whitespace-nowrap border-2 border-gray-600
|
|
230
|
-
animate-tooltip-fade-in shadow-lg bg-gray-100`, positionClasses[position], tooltipClassName),
|
|
231
|
-
style: { zIndex, animationDelay: animationDelay + "ms" },
|
|
232
|
-
children: [
|
|
233
|
-
tooltip,
|
|
234
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
235
|
-
"div",
|
|
236
|
-
{
|
|
237
|
-
className: (0, import_clsx2.clsx)(`absolute w-0 h-0`, triangleClasses[position]),
|
|
238
|
-
style: { ...triangleStyle[position], zIndex }
|
|
239
|
-
}
|
|
240
|
-
)
|
|
241
|
-
]
|
|
242
|
-
}
|
|
243
|
-
)
|
|
244
|
-
]
|
|
245
|
-
}
|
|
246
|
-
);
|
|
247
|
-
};
|
|
127
|
+
// src/components/modals/ConfirmDialog.tsx
|
|
128
|
+
import clsx4 from "clsx";
|
|
248
129
|
|
|
249
|
-
// src/components/
|
|
250
|
-
|
|
130
|
+
// src/components/layout-and-navigation/Overlay.tsx
|
|
131
|
+
import { useEffect as useEffect4, useRef, useState as useState4 } from "react";
|
|
132
|
+
import ReactDOM from "react-dom";
|
|
133
|
+
import clsx3 from "clsx";
|
|
251
134
|
|
|
252
|
-
// src/
|
|
253
|
-
|
|
135
|
+
// src/hooks/useHoverState.ts
|
|
136
|
+
import { useEffect as useEffect3, useState as useState3 } from "react";
|
|
254
137
|
|
|
255
|
-
// src/components/
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
register: [],
|
|
259
|
-
addToRegister: noop,
|
|
260
|
-
removeFromRegister: noop
|
|
261
|
-
});
|
|
138
|
+
// src/components/user-action/Tooltip.tsx
|
|
139
|
+
import { clsx as clsx2 } from "clsx";
|
|
140
|
+
import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
262
141
|
|
|
263
|
-
// src/components/
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
close: "Close"
|
|
268
|
-
},
|
|
269
|
-
de: {
|
|
270
|
-
close: "Schlie\xDFen"
|
|
271
|
-
}
|
|
272
|
-
};
|
|
273
|
-
var ModalHeader = ({
|
|
274
|
-
overwriteTranslation,
|
|
275
|
-
onCloseClick,
|
|
276
|
-
title,
|
|
277
|
-
titleText = "",
|
|
278
|
-
description,
|
|
279
|
-
descriptionText = ""
|
|
280
|
-
}) => {
|
|
281
|
-
const translation = useTranslation(defaultModalHeaderTranslation, overwriteTranslation);
|
|
282
|
-
const hasTitleRow = !!title || !!titleText || !!onCloseClick;
|
|
283
|
-
const titleRow = /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "row justify-between items-start gap-x-8", children: [
|
|
284
|
-
title ?? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: (0, import_clsx3.default)("textstyle-title-lg", {
|
|
285
|
-
"mb-1": description || descriptionText
|
|
286
|
-
}), children: titleText }),
|
|
287
|
-
!!onCloseClick && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Tooltip, { tooltip: translation.close, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("button", { className: "row bg-gray-200 hover:bg-gray-300 rounded-md p-1", onClick: onCloseClick, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_lucide_react.X, {}) }) })
|
|
288
|
-
] });
|
|
289
|
-
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "col", children: [
|
|
290
|
-
hasTitleRow && titleRow,
|
|
291
|
-
description ?? (descriptionText && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "textstyle-description", children: descriptionText }))
|
|
292
|
-
] });
|
|
293
|
-
};
|
|
294
|
-
var modalRootName = "modal-root";
|
|
295
|
-
var Modal = ({
|
|
142
|
+
// src/components/layout-and-navigation/Overlay.tsx
|
|
143
|
+
import { X } from "lucide-react";
|
|
144
|
+
import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
145
|
+
var Overlay = ({
|
|
296
146
|
children,
|
|
297
|
-
id,
|
|
298
147
|
isOpen,
|
|
299
148
|
onBackgroundClick,
|
|
300
|
-
backgroundClassName
|
|
301
|
-
modalClassName = "",
|
|
302
|
-
containerClassName = "",
|
|
303
|
-
...modalHeaderProps
|
|
149
|
+
backgroundClassName
|
|
304
150
|
}) => {
|
|
305
|
-
const
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
}
|
|
314
|
-
(0, import_react5.useEffect)(() => {
|
|
315
|
-
if (isOpen) {
|
|
316
|
-
addToRegister(id);
|
|
317
|
-
} else {
|
|
318
|
-
removeFromRegister(id);
|
|
319
|
-
}
|
|
320
|
-
}, [addToRegister, id, removeFromRegister, isOpen]);
|
|
321
|
-
if (modalRoot === null || !isOpen) return null;
|
|
322
|
-
const isLast = register.length < 1 || register[register.length - 1] === id;
|
|
323
|
-
const isSecondLast = register.length < 2 || register[register.length - 2] === id;
|
|
324
|
-
return import_react_dom.default.createPortal(
|
|
325
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: (0, import_clsx3.default)("fixed inset-0 overflow-y-auto z-[99]", containerClassName), id, children: [
|
|
326
|
-
isLast && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
151
|
+
const [root, setRoot] = useState4();
|
|
152
|
+
useEffect4(() => {
|
|
153
|
+
setRoot(document.body);
|
|
154
|
+
}, []);
|
|
155
|
+
if (!root || !isOpen) return null;
|
|
156
|
+
return ReactDOM.createPortal(
|
|
157
|
+
/* @__PURE__ */ jsxs3("div", { className: clsx3("fixed inset-0 z-[9999]"), children: [
|
|
158
|
+
/* @__PURE__ */ jsx4(
|
|
327
159
|
"div",
|
|
328
160
|
{
|
|
329
|
-
className: (
|
|
330
|
-
"bg-black/70": isLast && register.length === 1
|
|
331
|
-
}),
|
|
161
|
+
className: clsx3("fixed inset-0 h-screen w-screen bg-black/30", backgroundClassName),
|
|
332
162
|
onClick: onBackgroundClick
|
|
333
163
|
}
|
|
334
164
|
),
|
|
335
|
-
|
|
165
|
+
children
|
|
166
|
+
] }),
|
|
167
|
+
root
|
|
168
|
+
);
|
|
169
|
+
};
|
|
170
|
+
var overlayStack = [];
|
|
171
|
+
var Dialog = ({
|
|
172
|
+
children,
|
|
173
|
+
isOpen,
|
|
174
|
+
className,
|
|
175
|
+
backgroundClassName,
|
|
176
|
+
title,
|
|
177
|
+
titleText
|
|
178
|
+
}) => {
|
|
179
|
+
const ref = useRef(null);
|
|
180
|
+
useEffect4(() => {
|
|
181
|
+
if (!isOpen) return;
|
|
182
|
+
const dialog = ref.current;
|
|
183
|
+
if (!dialog) {
|
|
184
|
+
console.error("dialog open, but no ref found");
|
|
185
|
+
return;
|
|
186
|
+
}
|
|
187
|
+
overlayStack.push(dialog);
|
|
188
|
+
const focusable = dialog?.querySelectorAll(
|
|
189
|
+
'a[href], button:not([disabled]), textarea, input, select, [tabindex]:not([tabindex="-1"])'
|
|
190
|
+
);
|
|
191
|
+
const first = focusable[0];
|
|
192
|
+
const last = focusable[focusable.length - 1];
|
|
193
|
+
const handleKeyDown = (e) => {
|
|
194
|
+
const isTopmost = overlayStack[overlayStack.length - 1] === dialog;
|
|
195
|
+
if (!isTopmost) return;
|
|
196
|
+
if (e.key === "Escape") {
|
|
197
|
+
e.stopPropagation();
|
|
198
|
+
} else if (e.key === "Tab") {
|
|
199
|
+
if (focusable.length === 0) return;
|
|
200
|
+
if (e.shiftKey && document.activeElement === first) {
|
|
201
|
+
e.preventDefault();
|
|
202
|
+
last.focus();
|
|
203
|
+
} else if (!e.shiftKey && document.activeElement === last) {
|
|
204
|
+
e.preventDefault();
|
|
205
|
+
first.focus();
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
};
|
|
209
|
+
dialog.focus();
|
|
210
|
+
document.addEventListener("keydown", handleKeyDown);
|
|
211
|
+
return () => {
|
|
212
|
+
document.removeEventListener("keydown", handleKeyDown);
|
|
213
|
+
overlayStack = overlayStack.filter((m) => m !== dialog);
|
|
214
|
+
};
|
|
215
|
+
}, [isOpen]);
|
|
216
|
+
return /* @__PURE__ */ jsx4(
|
|
217
|
+
Overlay,
|
|
218
|
+
{
|
|
219
|
+
isOpen,
|
|
220
|
+
backgroundClassName,
|
|
221
|
+
children: /* @__PURE__ */ jsxs3(
|
|
336
222
|
"div",
|
|
337
223
|
{
|
|
338
|
-
|
|
224
|
+
ref,
|
|
225
|
+
tabIndex: -1,
|
|
226
|
+
className: clsx3(
|
|
227
|
+
"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",
|
|
228
|
+
className
|
|
229
|
+
),
|
|
230
|
+
role: "dialog",
|
|
231
|
+
"aria-modal": true,
|
|
339
232
|
children: [
|
|
340
|
-
/* @__PURE__ */ (
|
|
233
|
+
title ?? /* @__PURE__ */ jsx4(
|
|
234
|
+
"h2",
|
|
235
|
+
{
|
|
236
|
+
className: clsx3("textstyle-title-lg"),
|
|
237
|
+
children: titleText
|
|
238
|
+
}
|
|
239
|
+
),
|
|
341
240
|
children
|
|
342
241
|
]
|
|
343
242
|
}
|
|
344
|
-
),
|
|
345
|
-
!isLast && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
346
|
-
"div",
|
|
347
|
-
{
|
|
348
|
-
className: (0, import_clsx3.default)("fixed inset-0 h-screen w-screen", backgroundClassName, {
|
|
349
|
-
"bg-black/70": isSecondLast && register.length > 1
|
|
350
|
-
})
|
|
351
|
-
}
|
|
352
243
|
)
|
|
353
|
-
|
|
354
|
-
modalRoot,
|
|
355
|
-
id
|
|
244
|
+
}
|
|
356
245
|
);
|
|
357
246
|
};
|
|
358
247
|
|
|
359
248
|
// src/components/modals/ConfirmDialog.tsx
|
|
360
|
-
|
|
249
|
+
import { jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
361
250
|
var defaultConfirmDialogTranslation = {
|
|
362
251
|
en: {
|
|
363
252
|
confirm: "Confirm",
|
|
@@ -378,6 +267,7 @@ var ConfirmDialog = ({
|
|
|
378
267
|
onDecline,
|
|
379
268
|
confirmType = "positive",
|
|
380
269
|
buttonOverwrites,
|
|
270
|
+
className,
|
|
381
271
|
...restProps
|
|
382
272
|
}) => {
|
|
383
273
|
const translation = useTranslation(defaultConfirmDialogTranslation, overwriteTranslation);
|
|
@@ -386,10 +276,10 @@ var ConfirmDialog = ({
|
|
|
386
276
|
negative: "negative",
|
|
387
277
|
positive: "positive"
|
|
388
278
|
};
|
|
389
|
-
return /* @__PURE__ */ (
|
|
390
|
-
children,
|
|
391
|
-
/* @__PURE__ */ (
|
|
392
|
-
onCancel && /* @__PURE__ */ (
|
|
279
|
+
return /* @__PURE__ */ jsxs4(Dialog, { ...restProps, className: clsx4("justify-between", className), children: [
|
|
280
|
+
/* @__PURE__ */ jsx5("div", { className: "col grow", children }),
|
|
281
|
+
/* @__PURE__ */ jsxs4("div", { className: "row mt-3 gap-x-4 justify-end", children: [
|
|
282
|
+
onCancel && /* @__PURE__ */ jsx5(
|
|
393
283
|
SolidButton,
|
|
394
284
|
{
|
|
395
285
|
color: buttonOverwrites?.[0].color ?? "primary",
|
|
@@ -398,7 +288,7 @@ var ConfirmDialog = ({
|
|
|
398
288
|
children: buttonOverwrites?.[0].text ?? translation.cancel
|
|
399
289
|
}
|
|
400
290
|
),
|
|
401
|
-
onDecline && /* @__PURE__ */ (
|
|
291
|
+
onDecline && /* @__PURE__ */ jsx5(
|
|
402
292
|
SolidButton,
|
|
403
293
|
{
|
|
404
294
|
color: buttonOverwrites?.[1].color ?? "negative",
|
|
@@ -407,7 +297,7 @@ var ConfirmDialog = ({
|
|
|
407
297
|
children: buttonOverwrites?.[1].text ?? translation.decline
|
|
408
298
|
}
|
|
409
299
|
),
|
|
410
|
-
/* @__PURE__ */ (
|
|
300
|
+
/* @__PURE__ */ jsx5(
|
|
411
301
|
SolidButton,
|
|
412
302
|
{
|
|
413
303
|
autoFocus: true,
|
|
@@ -420,8 +310,7 @@ var ConfirmDialog = ({
|
|
|
420
310
|
] })
|
|
421
311
|
] });
|
|
422
312
|
};
|
|
423
|
-
|
|
424
|
-
0 && (module.exports = {
|
|
313
|
+
export {
|
|
425
314
|
ConfirmDialog
|
|
426
|
-
}
|
|
315
|
+
};
|
|
427
316
|
//# sourceMappingURL=ConfirmDialog.js.map
|