@helpwave/hightide 0.1.24 → 0.1.26
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 +1 -1
- package/dist/components/branding/HelpwaveBadge.d.mts +4 -5
- package/dist/components/branding/HelpwaveBadge.d.ts +4 -5
- package/dist/components/branding/HelpwaveBadge.js +46 -87
- package/dist/components/branding/HelpwaveBadge.js.map +1 -1
- package/dist/components/branding/HelpwaveBadge.mjs +46 -89
- package/dist/components/branding/HelpwaveBadge.mjs.map +1 -1
- package/dist/components/date/DatePicker.d.mts +1 -1
- package/dist/components/date/DatePicker.d.ts +1 -1
- package/dist/components/date/DatePicker.js +106 -60
- package/dist/components/date/DatePicker.js.map +1 -1
- package/dist/components/date/DatePicker.mjs +107 -61
- package/dist/components/date/DatePicker.mjs.map +1 -1
- package/dist/components/date/DayPicker.d.mts +1 -1
- package/dist/components/date/DayPicker.d.ts +1 -1
- package/dist/components/date/DayPicker.js +3 -3
- package/dist/components/date/DayPicker.js.map +1 -1
- package/dist/components/date/DayPicker.mjs +3 -3
- package/dist/components/date/DayPicker.mjs.map +1 -1
- package/dist/components/date/TimeDisplay.js.map +1 -1
- package/dist/components/date/TimeDisplay.mjs.map +1 -1
- package/dist/components/date/TimePicker.js +2 -2
- package/dist/components/date/TimePicker.js.map +1 -1
- package/dist/components/date/TimePicker.mjs +2 -2
- package/dist/components/date/TimePicker.mjs.map +1 -1
- package/dist/components/date/YearMonthPicker.js +84 -36
- package/dist/components/date/YearMonthPicker.js.map +1 -1
- package/dist/components/date/YearMonthPicker.mjs +85 -37
- package/dist/components/date/YearMonthPicker.mjs.map +1 -1
- package/dist/components/{dialogs → dialog}/ConfirmDialog.d.mts +9 -8
- package/dist/components/{dialogs → dialog}/ConfirmDialog.d.ts +9 -8
- package/dist/components/dialog/ConfirmDialog.js +938 -0
- package/dist/components/dialog/ConfirmDialog.js.map +1 -0
- package/dist/components/dialog/ConfirmDialog.mjs +902 -0
- package/dist/components/dialog/ConfirmDialog.mjs.map +1 -0
- package/dist/components/dialog/Dialog.d.mts +27 -0
- package/dist/components/dialog/Dialog.d.ts +27 -0
- package/dist/components/dialog/Dialog.js +879 -0
- package/dist/components/dialog/Dialog.js.map +1 -0
- package/dist/components/dialog/Dialog.mjs +845 -0
- package/dist/components/dialog/Dialog.mjs.map +1 -0
- package/dist/components/dialog/DiscardChangesDialog.d.mts +24 -0
- package/dist/components/dialog/DiscardChangesDialog.d.ts +24 -0
- package/dist/components/dialog/DiscardChangesDialog.js +966 -0
- package/dist/components/dialog/DiscardChangesDialog.js.map +1 -0
- package/dist/components/dialog/DiscardChangesDialog.mjs +930 -0
- package/dist/components/dialog/DiscardChangesDialog.mjs.map +1 -0
- package/dist/components/dialog/InputDialog.d.mts +22 -0
- package/dist/components/dialog/InputDialog.d.ts +22 -0
- package/dist/components/dialog/InputDialog.js +1139 -0
- package/dist/components/dialog/InputDialog.js.map +1 -0
- package/dist/components/dialog/InputDialog.mjs +1103 -0
- package/dist/components/dialog/InputDialog.mjs.map +1 -0
- package/dist/components/dialog/LanguageDialog.d.mts +25 -0
- package/dist/components/dialog/LanguageDialog.d.ts +25 -0
- package/dist/components/dialog/LanguageDialog.js +1684 -0
- package/dist/components/dialog/LanguageDialog.js.map +1 -0
- package/dist/components/dialog/LanguageDialog.mjs +1658 -0
- package/dist/components/dialog/LanguageDialog.mjs.map +1 -0
- package/dist/components/dialog/ThemeDialog.d.mts +26 -0
- package/dist/components/dialog/ThemeDialog.d.ts +26 -0
- package/dist/components/dialog/ThemeDialog.js +1715 -0
- package/dist/components/dialog/ThemeDialog.js.map +1 -0
- package/dist/components/dialog/ThemeDialog.mjs +1689 -0
- package/dist/components/dialog/ThemeDialog.mjs.map +1 -0
- package/dist/components/dialog/index.d.mts +17 -0
- package/dist/components/dialog/index.d.ts +17 -0
- package/dist/components/dialog/index.js +2062 -0
- package/dist/components/dialog/index.js.map +1 -0
- package/dist/components/dialog/index.mjs +2031 -0
- package/dist/components/dialog/index.mjs.map +1 -0
- package/dist/components/form/FormElementWrapper.d.mts +29 -0
- package/dist/components/form/FormElementWrapper.d.ts +29 -0
- package/dist/components/form/FormElementWrapper.js +98 -0
- package/dist/components/form/FormElementWrapper.js.map +1 -0
- package/dist/components/form/FormElementWrapper.mjs +64 -0
- package/dist/components/form/FormElementWrapper.mjs.map +1 -0
- package/dist/components/icons-and-geometry/Avatar.js +498 -2886
- package/dist/components/icons-and-geometry/Avatar.js.map +1 -1
- package/dist/components/icons-and-geometry/Avatar.mjs +490 -2878
- package/dist/components/icons-and-geometry/Avatar.mjs.map +1 -1
- package/dist/components/icons-and-geometry/{Helpwave.d.mts → HelpwaveLogo.d.mts} +3 -3
- package/dist/components/icons-and-geometry/{Helpwave.d.ts → HelpwaveLogo.d.ts} +3 -3
- package/dist/components/icons-and-geometry/{Helpwave.js → HelpwaveLogo.js} +21 -22
- package/dist/components/icons-and-geometry/HelpwaveLogo.js.map +1 -0
- package/dist/components/icons-and-geometry/{Helpwave.mjs → HelpwaveLogo.mjs} +17 -18
- package/dist/components/icons-and-geometry/HelpwaveLogo.mjs.map +1 -0
- package/dist/components/icons-and-geometry/Ring.js +1 -1
- package/dist/components/icons-and-geometry/Ring.js.map +1 -1
- package/dist/components/icons-and-geometry/Ring.mjs +1 -1
- package/dist/components/icons-and-geometry/Ring.mjs.map +1 -1
- package/dist/components/icons-and-geometry/Tag.js +8 -20
- package/dist/components/icons-and-geometry/Tag.js.map +1 -1
- package/dist/components/icons-and-geometry/Tag.mjs +8 -20
- package/dist/components/icons-and-geometry/Tag.mjs.map +1 -1
- package/dist/components/layout-and-navigation/BreadCrumb.js +667 -22
- package/dist/components/layout-and-navigation/BreadCrumb.js.map +1 -1
- package/dist/components/layout-and-navigation/BreadCrumb.mjs +667 -22
- package/dist/components/layout-and-navigation/BreadCrumb.mjs.map +1 -1
- package/dist/components/layout-and-navigation/Carousel.js +52 -53
- package/dist/components/layout-and-navigation/Carousel.js.map +1 -1
- package/dist/components/layout-and-navigation/Carousel.mjs +52 -53
- package/dist/components/layout-and-navigation/Carousel.mjs.map +1 -1
- package/dist/components/layout-and-navigation/Chip.d.mts +8 -5
- package/dist/components/layout-and-navigation/Chip.d.ts +8 -5
- package/dist/components/layout-and-navigation/Chip.js +17 -4
- package/dist/components/layout-and-navigation/Chip.js.map +1 -1
- package/dist/components/layout-and-navigation/Chip.mjs +17 -4
- package/dist/components/layout-and-navigation/Chip.mjs.map +1 -1
- package/dist/components/layout-and-navigation/Expandable.d.mts +13 -10
- package/dist/components/layout-and-navigation/Expandable.d.ts +13 -10
- package/dist/components/layout-and-navigation/Expandable.js +18 -5
- package/dist/components/layout-and-navigation/Expandable.js.map +1 -1
- package/dist/components/layout-and-navigation/Expandable.mjs +19 -6
- package/dist/components/layout-and-navigation/Expandable.mjs.map +1 -1
- package/dist/components/layout-and-navigation/FAQSection.js +21 -8
- package/dist/components/layout-and-navigation/FAQSection.js.map +1 -1
- package/dist/components/layout-and-navigation/FAQSection.mjs +22 -9
- package/dist/components/layout-and-navigation/FAQSection.mjs.map +1 -1
- package/dist/components/layout-and-navigation/FloatingContainer.d.mts +38 -0
- package/dist/components/layout-and-navigation/FloatingContainer.d.ts +38 -0
- package/dist/components/layout-and-navigation/FloatingContainer.js +219 -0
- package/dist/components/layout-and-navigation/FloatingContainer.js.map +1 -0
- package/dist/components/layout-and-navigation/FloatingContainer.mjs +195 -0
- package/dist/components/layout-and-navigation/FloatingContainer.mjs.map +1 -0
- package/dist/components/layout-and-navigation/ListBox.d.mts +44 -0
- package/dist/components/layout-and-navigation/ListBox.d.ts +44 -0
- package/dist/components/layout-and-navigation/ListBox.js +329 -0
- package/dist/components/layout-and-navigation/ListBox.js.map +1 -0
- package/dist/components/layout-and-navigation/ListBox.mjs +290 -0
- package/dist/components/layout-and-navigation/ListBox.mjs.map +1 -0
- package/dist/components/layout-and-navigation/Pagination.js +142 -230
- package/dist/components/layout-and-navigation/Pagination.js.map +1 -1
- package/dist/components/layout-and-navigation/Pagination.mjs +137 -225
- package/dist/components/layout-and-navigation/Pagination.mjs.map +1 -1
- package/dist/components/layout-and-navigation/ScrollArea.d.mts +15 -0
- package/dist/components/layout-and-navigation/ScrollArea.d.ts +15 -0
- package/dist/components/layout-and-navigation/ScrollArea.js +1252 -0
- package/dist/components/layout-and-navigation/ScrollArea.js.map +1 -0
- package/dist/components/layout-and-navigation/ScrollArea.mjs +1216 -0
- package/dist/components/layout-and-navigation/ScrollArea.mjs.map +1 -0
- package/dist/components/layout-and-navigation/StepperBar.js +67 -30
- package/dist/components/layout-and-navigation/StepperBar.js.map +1 -1
- package/dist/components/layout-and-navigation/StepperBar.mjs +67 -30
- package/dist/components/layout-and-navigation/StepperBar.mjs.map +1 -1
- package/dist/components/layout-and-navigation/TextImage.js +3 -1
- package/dist/components/layout-and-navigation/TextImage.js.map +1 -1
- package/dist/components/layout-and-navigation/TextImage.mjs +3 -1
- package/dist/components/layout-and-navigation/TextImage.mjs.map +1 -1
- package/dist/components/loading-states/ErrorComponent.js.map +1 -1
- package/dist/components/loading-states/ErrorComponent.mjs.map +1 -1
- package/dist/components/loading-states/LoadingAndErrorComponent.d.mts +1 -1
- package/dist/components/loading-states/LoadingAndErrorComponent.d.ts +1 -1
- package/dist/components/loading-states/LoadingAnimation.js +18 -17
- package/dist/components/loading-states/LoadingAnimation.js.map +1 -1
- package/dist/components/loading-states/LoadingAnimation.mjs +18 -17
- package/dist/components/loading-states/LoadingAnimation.mjs.map +1 -1
- package/dist/components/loading-states/LoadingButton.js +81 -47
- package/dist/components/loading-states/LoadingButton.js.map +1 -1
- package/dist/components/loading-states/LoadingButton.mjs +81 -47
- package/dist/components/loading-states/LoadingButton.mjs.map +1 -1
- package/dist/components/properties/CheckboxProperty.js +929 -153
- package/dist/components/properties/CheckboxProperty.js.map +1 -1
- package/dist/components/properties/CheckboxProperty.mjs +936 -160
- package/dist/components/properties/CheckboxProperty.mjs.map +1 -1
- package/dist/components/properties/DateProperty.js +191 -241
- package/dist/components/properties/DateProperty.js.map +1 -1
- package/dist/components/properties/DateProperty.mjs +184 -234
- package/dist/components/properties/DateProperty.mjs.map +1 -1
- package/dist/components/properties/MultiSelectProperty.d.mts +5 -10
- package/dist/components/properties/MultiSelectProperty.d.ts +5 -10
- package/dist/components/properties/MultiSelectProperty.js +1193 -1189
- package/dist/components/properties/MultiSelectProperty.js.map +1 -1
- package/dist/components/properties/MultiSelectProperty.mjs +1207 -1193
- package/dist/components/properties/MultiSelectProperty.mjs.map +1 -1
- package/dist/components/properties/NumberProperty.js +193 -244
- package/dist/components/properties/NumberProperty.js.map +1 -1
- package/dist/components/properties/NumberProperty.mjs +186 -237
- package/dist/components/properties/NumberProperty.mjs.map +1 -1
- package/dist/components/properties/PropertyBase.js +91 -56
- package/dist/components/properties/PropertyBase.js.map +1 -1
- package/dist/components/properties/PropertyBase.mjs +91 -56
- package/dist/components/properties/PropertyBase.mjs.map +1 -1
- package/dist/components/properties/SelectProperty.d.mts +5 -8
- package/dist/components/properties/SelectProperty.d.ts +5 -8
- package/dist/components/properties/SelectProperty.js +1102 -897
- package/dist/components/properties/SelectProperty.js.map +1 -1
- package/dist/components/properties/SelectProperty.mjs +1107 -892
- package/dist/components/properties/SelectProperty.mjs.map +1 -1
- package/dist/components/properties/TextProperty.js +139 -147
- package/dist/components/properties/TextProperty.js.map +1 -1
- package/dist/components/properties/TextProperty.mjs +142 -150
- package/dist/components/properties/TextProperty.mjs.map +1 -1
- package/dist/components/table/Table.js +1639 -991
- package/dist/components/table/Table.js.map +1 -1
- package/dist/components/table/Table.mjs +1645 -997
- package/dist/components/table/Table.mjs.map +1 -1
- package/dist/components/table/TableFilterButton.js +156 -244
- package/dist/components/table/TableFilterButton.js.map +1 -1
- package/dist/components/table/TableFilterButton.mjs +145 -233
- package/dist/components/table/TableFilterButton.mjs.map +1 -1
- package/dist/components/table/TableSortButton.js +44 -46
- package/dist/components/table/TableSortButton.js.map +1 -1
- package/dist/components/table/TableSortButton.mjs +44 -46
- package/dist/components/table/TableSortButton.mjs.map +1 -1
- package/dist/components/user-action/Button.d.mts +17 -13
- package/dist/components/user-action/Button.d.ts +17 -13
- package/dist/components/user-action/Button.js +80 -87
- package/dist/components/user-action/Button.js.map +1 -1
- package/dist/components/user-action/Button.mjs +80 -87
- package/dist/components/user-action/Button.mjs.map +1 -1
- package/dist/components/user-action/Checkbox.d.mts +9 -25
- package/dist/components/user-action/Checkbox.d.ts +9 -25
- package/dist/components/user-action/Checkbox.js +794 -78
- package/dist/components/user-action/Checkbox.js.map +1 -1
- package/dist/components/user-action/Checkbox.mjs +795 -79
- package/dist/components/user-action/Checkbox.mjs.map +1 -1
- package/dist/components/user-action/CopyToClipboardWrapper.js +3 -1
- package/dist/components/user-action/CopyToClipboardWrapper.js.map +1 -1
- package/dist/components/user-action/CopyToClipboardWrapper.mjs +3 -1
- package/dist/components/user-action/CopyToClipboardWrapper.mjs.map +1 -1
- package/dist/components/user-action/DateAndTimePicker.d.mts +1 -1
- package/dist/components/user-action/DateAndTimePicker.d.ts +1 -1
- package/dist/components/user-action/DateAndTimePicker.js +108 -60
- package/dist/components/user-action/DateAndTimePicker.js.map +1 -1
- package/dist/components/user-action/DateAndTimePicker.mjs +109 -61
- package/dist/components/user-action/DateAndTimePicker.mjs.map +1 -1
- package/dist/components/user-action/Label.d.mts +6 -8
- package/dist/components/user-action/Label.d.ts +6 -8
- package/dist/components/user-action/Label.js +4 -6
- package/dist/components/user-action/Label.js.map +1 -1
- package/dist/components/user-action/Label.mjs +4 -6
- package/dist/components/user-action/Label.mjs.map +1 -1
- package/dist/components/user-action/Menu.d.mts +2 -2
- package/dist/components/user-action/Menu.d.ts +2 -2
- package/dist/components/user-action/Menu.js +1 -1
- package/dist/components/user-action/Menu.js.map +1 -1
- package/dist/components/user-action/Menu.mjs +1 -1
- package/dist/components/user-action/Menu.mjs.map +1 -1
- package/dist/components/user-action/ScrollPicker.js +8 -6
- package/dist/components/user-action/ScrollPicker.js.map +1 -1
- package/dist/components/user-action/ScrollPicker.mjs +8 -6
- package/dist/components/user-action/ScrollPicker.mjs.map +1 -1
- package/dist/components/user-action/SearchBar.d.mts +1 -2
- package/dist/components/user-action/SearchBar.d.ts +1 -2
- package/dist/components/user-action/SearchBar.js +131 -219
- package/dist/components/user-action/SearchBar.js.map +1 -1
- package/dist/components/user-action/SearchBar.mjs +124 -212
- package/dist/components/user-action/SearchBar.mjs.map +1 -1
- package/dist/components/user-action/Textarea.d.mts +22 -11
- package/dist/components/user-action/Textarea.d.ts +22 -11
- package/dist/components/user-action/Textarea.js +101 -92
- package/dist/components/user-action/Textarea.js.map +1 -1
- package/dist/components/user-action/Textarea.mjs +100 -92
- package/dist/components/user-action/Textarea.mjs.map +1 -1
- package/dist/components/user-action/input/Input.d.mts +37 -0
- package/dist/components/user-action/input/Input.d.ts +37 -0
- package/dist/components/user-action/input/Input.js +244 -0
- package/dist/components/user-action/input/Input.js.map +1 -0
- package/dist/components/user-action/input/Input.mjs +209 -0
- package/dist/components/user-action/input/Input.mjs.map +1 -0
- package/dist/components/user-action/input/InsideLabelInput.d.mts +20 -0
- package/dist/components/user-action/input/InsideLabelInput.d.ts +20 -0
- package/dist/components/user-action/input/InsideLabelInput.js +295 -0
- package/dist/components/user-action/input/InsideLabelInput.js.map +1 -0
- package/dist/components/user-action/input/InsideLabelInput.mjs +260 -0
- package/dist/components/user-action/input/InsideLabelInput.mjs.map +1 -0
- package/dist/components/user-action/input/ToggleableInput.d.mts +22 -0
- package/dist/components/user-action/input/ToggleableInput.d.ts +22 -0
- package/dist/components/user-action/{Input.js → input/ToggleableInput.js} +136 -171
- package/dist/components/user-action/input/ToggleableInput.js.map +1 -0
- package/dist/components/user-action/input/ToggleableInput.mjs +264 -0
- package/dist/components/user-action/input/ToggleableInput.mjs.map +1 -0
- package/dist/components/user-action/select/Select.d.mts +98 -0
- package/dist/components/user-action/select/Select.d.ts +98 -0
- package/dist/components/user-action/select/Select.js +1354 -0
- package/dist/components/user-action/select/Select.js.map +1 -0
- package/dist/components/user-action/select/Select.mjs +1320 -0
- package/dist/components/user-action/select/Select.mjs.map +1 -0
- package/dist/components/utils/FocusTrap.d.mts +28 -0
- package/dist/components/utils/FocusTrap.d.ts +28 -0
- package/dist/components/utils/FocusTrap.js +252 -0
- package/dist/components/utils/FocusTrap.js.map +1 -0
- package/dist/components/utils/FocusTrap.mjs +229 -0
- package/dist/components/utils/FocusTrap.mjs.map +1 -0
- package/dist/components/utils/Transition.d.mts +26 -0
- package/dist/components/utils/Transition.d.ts +26 -0
- package/dist/components/utils/Transition.js +74 -0
- package/dist/components/utils/Transition.js.map +1 -0
- package/dist/components/utils/Transition.mjs +50 -0
- package/dist/components/utils/Transition.mjs.map +1 -0
- package/dist/hooks/focus/useFocusGuards.d.mts +3 -0
- package/dist/hooks/focus/useFocusGuards.d.ts +3 -0
- package/dist/hooks/focus/useFocusGuards.js +74 -0
- package/dist/hooks/focus/useFocusGuards.js.map +1 -0
- package/dist/hooks/focus/useFocusGuards.mjs +50 -0
- package/dist/hooks/focus/useFocusGuards.mjs.map +1 -0
- package/dist/hooks/{useFocusManagement.js → focus/useFocusManagement.js} +1 -1
- package/dist/hooks/focus/useFocusManagement.js.map +1 -0
- package/dist/hooks/{useFocusManagement.mjs → focus/useFocusManagement.mjs} +1 -1
- package/dist/hooks/focus/useFocusManagement.mjs.map +1 -0
- package/dist/hooks/{useFocusOnceVisible.js → focus/useFocusOnceVisible.js} +1 -1
- package/dist/hooks/focus/useFocusOnceVisible.js.map +1 -0
- package/dist/hooks/{useFocusOnceVisible.mjs → focus/useFocusOnceVisible.mjs} +1 -1
- package/dist/hooks/focus/useFocusOnceVisible.mjs.map +1 -0
- package/dist/hooks/focus/useFocusTrap.d.mts +16 -0
- package/dist/hooks/focus/useFocusTrap.d.ts +16 -0
- package/dist/hooks/focus/useFocusTrap.js +233 -0
- package/dist/hooks/focus/useFocusTrap.js.map +1 -0
- package/dist/hooks/focus/useFocusTrap.mjs +210 -0
- package/dist/hooks/focus/useFocusTrap.mjs.map +1 -0
- package/dist/hooks/focus/useIsMounted.d.mts +3 -0
- package/dist/hooks/focus/useIsMounted.d.ts +3 -0
- package/dist/hooks/focus/useIsMounted.js +43 -0
- package/dist/hooks/focus/useIsMounted.js.map +1 -0
- package/dist/hooks/focus/useIsMounted.mjs +20 -0
- package/dist/hooks/focus/useIsMounted.mjs.map +1 -0
- package/dist/hooks/useFloatingElement.d.mts +22 -0
- package/dist/hooks/useFloatingElement.d.ts +22 -0
- package/dist/hooks/useFloatingElement.js +162 -0
- package/dist/hooks/useFloatingElement.js.map +1 -0
- package/dist/hooks/useFloatingElement.mjs +139 -0
- package/dist/hooks/useFloatingElement.mjs.map +1 -0
- package/dist/hooks/useLocalStorage.js +2 -2
- package/dist/hooks/useLocalStorage.js.map +1 -1
- package/dist/hooks/useLocalStorage.mjs +2 -2
- package/dist/hooks/useLocalStorage.mjs.map +1 -1
- package/dist/hooks/useLogOnce.d.mts +3 -4
- package/dist/hooks/useLogOnce.d.ts +3 -4
- package/dist/hooks/useLogOnce.js +5 -5
- package/dist/hooks/useLogOnce.js.map +1 -1
- package/dist/hooks/useLogOnce.mjs +5 -5
- package/dist/hooks/useLogOnce.mjs.map +1 -1
- package/dist/hooks/useRerender.d.mts +2 -2
- package/dist/hooks/useRerender.d.ts +2 -2
- package/dist/hooks/useSearch.d.mts +2 -2
- package/dist/hooks/useSearch.d.ts +2 -2
- package/dist/hooks/useSearch.js +1 -1
- package/dist/hooks/useSearch.js.map +1 -1
- package/dist/hooks/useSearch.mjs +1 -1
- package/dist/hooks/useSearch.mjs.map +1 -1
- package/dist/localization/LanguageProvider.d.mts +2 -2
- package/dist/localization/LanguageProvider.d.ts +2 -2
- package/dist/localization/LanguageProvider.js +2 -2
- package/dist/localization/LanguageProvider.js.map +1 -1
- package/dist/localization/LanguageProvider.mjs +2 -2
- package/dist/localization/LanguageProvider.mjs.map +1 -1
- package/dist/localization/defaults/form.d.mts +1 -0
- package/dist/localization/defaults/form.d.ts +1 -0
- package/dist/localization/defaults/form.js +2 -0
- package/dist/localization/defaults/form.js.map +1 -1
- package/dist/localization/defaults/form.mjs +2 -0
- package/dist/localization/defaults/form.mjs.map +1 -1
- package/dist/localization/useTranslation.js.map +1 -1
- package/dist/localization/useTranslation.mjs.map +1 -1
- package/dist/storybook/helper.d.mts +17 -0
- package/dist/storybook/helper.d.ts +17 -0
- package/dist/storybook/helper.js +61 -0
- package/dist/storybook/helper.js.map +1 -0
- package/dist/storybook/helper.mjs +37 -0
- package/dist/storybook/helper.mjs.map +1 -0
- package/dist/{css → style}/globals.css +994 -456
- package/dist/{css → style}/uncompiled/globals.css +75 -13
- package/dist/{css → style}/uncompiled/theme/colors-component.css +18 -4
- package/dist/{css → style}/uncompiled/theme/colors-semantic.css +2 -9
- package/dist/style/uncompiled/typography.css +171 -0
- package/dist/{css → style}/uncompiled/utitlity/animation.css +54 -42
- package/dist/{css → style}/uncompiled/utitlity/index.css +2 -1
- package/dist/{css → style}/uncompiled/utitlity/shadow.css +5 -1
- package/dist/style/uncompiled/utitlity/sizing.css +29 -0
- package/dist/theming/useTheme.d.mts +2 -2
- package/dist/theming/useTheme.d.ts +2 -2
- package/dist/theming/useTheme.js +4 -4
- package/dist/theming/useTheme.js.map +1 -1
- package/dist/theming/useTheme.mjs +4 -4
- package/dist/theming/useTheme.mjs.map +1 -1
- package/dist/{util → utils}/array.d.mts +1 -0
- package/dist/{util → utils}/array.d.ts +1 -0
- package/dist/{util → utils}/array.js +15 -2
- package/dist/utils/array.js.map +1 -0
- package/dist/{util → utils}/array.mjs +15 -2
- package/dist/utils/array.mjs.map +1 -0
- package/dist/utils/bagFunctions.d.mts +15 -0
- package/dist/utils/bagFunctions.d.ts +15 -0
- package/dist/{util/PropsWithFunctionChildren.js → utils/bagFunctions.js} +5 -5
- package/dist/utils/bagFunctions.js.map +1 -0
- package/dist/{util/PropsWithFunctionChildren.mjs → utils/bagFunctions.mjs} +2 -2
- package/dist/utils/bagFunctions.mjs.map +1 -0
- package/dist/{util → utils}/builder.js +1 -1
- package/dist/utils/builder.js.map +1 -0
- package/dist/{util → utils}/builder.mjs +1 -1
- package/dist/utils/builder.mjs.map +1 -0
- package/dist/{util → utils}/date.js +3 -3
- package/dist/utils/date.js.map +1 -0
- package/dist/{util → utils}/date.mjs +2 -2
- package/dist/utils/date.mjs.map +1 -0
- package/dist/{util → utils}/easeFunctions.js +5 -4
- package/dist/utils/easeFunctions.js.map +1 -0
- package/dist/{util → utils}/easeFunctions.mjs +4 -3
- package/dist/utils/easeFunctions.mjs.map +1 -0
- package/dist/{util → utils}/emailValidation.js +1 -1
- package/dist/utils/emailValidation.js.map +1 -0
- package/dist/{util → utils}/emailValidation.mjs +1 -1
- package/dist/utils/emailValidation.mjs.map +1 -0
- package/dist/{util → utils}/loopingArray.js +1 -1
- package/dist/utils/loopingArray.js.map +1 -0
- package/dist/{util → utils}/loopingArray.mjs +1 -1
- package/dist/utils/loopingArray.mjs.map +1 -0
- package/dist/utils/match.d.mts +3 -0
- package/dist/utils/match.d.ts +3 -0
- package/dist/utils/match.js +32 -0
- package/dist/utils/match.js.map +1 -0
- package/dist/utils/match.mjs +8 -0
- package/dist/utils/match.mjs.map +1 -0
- package/dist/utils/math.d.mts +3 -0
- package/dist/utils/math.d.ts +3 -0
- package/dist/{util → utils}/math.js +3 -2
- package/dist/utils/math.js.map +1 -0
- package/dist/utils/math.mjs +9 -0
- package/dist/utils/math.mjs.map +1 -0
- package/dist/{util → utils}/noop.js +1 -1
- package/dist/utils/noop.js.map +1 -0
- package/dist/utils/noop.mjs +6 -0
- package/dist/utils/noop.mjs.map +1 -0
- package/dist/{util → utils}/resolveSetState.js +1 -1
- package/dist/utils/resolveSetState.js.map +1 -0
- package/dist/{util → utils}/resolveSetState.mjs +1 -1
- package/dist/utils/resolveSetState.mjs.map +1 -0
- package/dist/{util → utils}/simpleSearch.js +1 -1
- package/dist/utils/simpleSearch.js.map +1 -0
- package/dist/{util → utils}/simpleSearch.mjs +1 -1
- package/dist/utils/simpleSearch.mjs.map +1 -0
- package/dist/{util → utils}/storage.js +1 -1
- package/dist/utils/storage.js.map +1 -0
- package/dist/{util → utils}/storage.mjs +1 -1
- package/dist/utils/storage.mjs.map +1 -0
- package/dist/{util → utils}/writeToClipboard.js +2 -1
- package/dist/utils/writeToClipboard.js.map +1 -0
- package/dist/{util → utils}/writeToClipboard.mjs +3 -1
- package/dist/utils/writeToClipboard.mjs.map +1 -0
- package/package.json +8 -8
- package/dist/components/dialogs/ConfirmDialog.js +0 -677
- package/dist/components/dialogs/ConfirmDialog.js.map +0 -1
- package/dist/components/dialogs/ConfirmDialog.mjs +0 -641
- package/dist/components/dialogs/ConfirmDialog.mjs.map +0 -1
- package/dist/components/icons-and-geometry/Helpwave.js.map +0 -1
- package/dist/components/icons-and-geometry/Helpwave.mjs.map +0 -1
- package/dist/components/layout-and-navigation/Overlay.d.mts +0 -67
- package/dist/components/layout-and-navigation/Overlay.d.ts +0 -67
- package/dist/components/layout-and-navigation/Overlay.js +0 -705
- package/dist/components/layout-and-navigation/Overlay.js.map +0 -1
- package/dist/components/layout-and-navigation/Overlay.mjs +0 -668
- package/dist/components/layout-and-navigation/Overlay.mjs.map +0 -1
- package/dist/components/layout-and-navigation/SearchableList.d.mts +0 -24
- package/dist/components/layout-and-navigation/SearchableList.d.ts +0 -24
- package/dist/components/layout-and-navigation/SearchableList.js +0 -761
- package/dist/components/layout-and-navigation/SearchableList.js.map +0 -1
- package/dist/components/layout-and-navigation/SearchableList.mjs +0 -727
- package/dist/components/layout-and-navigation/SearchableList.mjs.map +0 -1
- package/dist/components/layout-and-navigation/Tile.d.mts +0 -27
- package/dist/components/layout-and-navigation/Tile.d.ts +0 -27
- package/dist/components/layout-and-navigation/Tile.js +0 -96
- package/dist/components/layout-and-navigation/Tile.js.map +0 -1
- package/dist/components/layout-and-navigation/Tile.mjs +0 -61
- package/dist/components/layout-and-navigation/Tile.mjs.map +0 -1
- package/dist/components/modals/ConfirmModal.d.mts +0 -33
- package/dist/components/modals/ConfirmModal.d.ts +0 -33
- package/dist/components/modals/ConfirmModal.js +0 -690
- package/dist/components/modals/ConfirmModal.js.map +0 -1
- package/dist/components/modals/ConfirmModal.mjs +0 -654
- package/dist/components/modals/ConfirmModal.mjs.map +0 -1
- package/dist/components/modals/DiscardChangesModal.d.mts +0 -20
- package/dist/components/modals/DiscardChangesModal.d.ts +0 -20
- package/dist/components/modals/DiscardChangesModal.js +0 -720
- package/dist/components/modals/DiscardChangesModal.js.map +0 -1
- package/dist/components/modals/DiscardChangesModal.mjs +0 -684
- package/dist/components/modals/DiscardChangesModal.mjs.map +0 -1
- package/dist/components/modals/InputModal.d.mts +0 -21
- package/dist/components/modals/InputModal.d.ts +0 -21
- package/dist/components/modals/InputModal.js +0 -979
- package/dist/components/modals/InputModal.js.map +0 -1
- package/dist/components/modals/InputModal.mjs +0 -943
- package/dist/components/modals/InputModal.mjs.map +0 -1
- package/dist/components/modals/LanguageModal.d.mts +0 -21
- package/dist/components/modals/LanguageModal.d.ts +0 -21
- package/dist/components/modals/LanguageModal.js +0 -1474
- package/dist/components/modals/LanguageModal.js.map +0 -1
- package/dist/components/modals/LanguageModal.mjs +0 -1438
- package/dist/components/modals/LanguageModal.mjs.map +0 -1
- package/dist/components/modals/ThemeModal.d.mts +0 -21
- package/dist/components/modals/ThemeModal.d.ts +0 -21
- package/dist/components/modals/ThemeModal.js +0 -1503
- package/dist/components/modals/ThemeModal.js.map +0 -1
- package/dist/components/modals/ThemeModal.mjs +0 -1467
- package/dist/components/modals/ThemeModal.mjs.map +0 -1
- package/dist/components/user-action/Input.d.mts +0 -77
- package/dist/components/user-action/Input.d.ts +0 -77
- package/dist/components/user-action/Input.js.map +0 -1
- package/dist/components/user-action/Input.mjs +0 -298
- package/dist/components/user-action/Input.mjs.map +0 -1
- package/dist/components/user-action/MultiSelect.d.mts +0 -42
- package/dist/components/user-action/MultiSelect.d.ts +0 -42
- package/dist/components/user-action/MultiSelect.js +0 -1445
- package/dist/components/user-action/MultiSelect.js.map +0 -1
- package/dist/components/user-action/MultiSelect.mjs +0 -1410
- package/dist/components/user-action/MultiSelect.mjs.map +0 -1
- package/dist/components/user-action/Select.d.mts +0 -41
- package/dist/components/user-action/Select.d.ts +0 -41
- package/dist/components/user-action/Select.js +0 -1242
- package/dist/components/user-action/Select.js.map +0 -1
- package/dist/components/user-action/Select.mjs +0 -1207
- package/dist/components/user-action/Select.mjs.map +0 -1
- package/dist/components/user-action/ToggleableInput.d.mts +0 -37
- package/dist/components/user-action/ToggleableInput.d.ts +0 -37
- package/dist/components/user-action/ToggleableInput.js +0 -192
- package/dist/components/user-action/ToggleableInput.js.map +0 -1
- package/dist/components/user-action/ToggleableInput.mjs +0 -157
- package/dist/components/user-action/ToggleableInput.mjs.map +0 -1
- package/dist/css/uncompiled/textstyles.css +0 -69
- package/dist/hooks/useFocusManagement.js.map +0 -1
- package/dist/hooks/useFocusManagement.mjs.map +0 -1
- package/dist/hooks/useFocusOnceVisible.js.map +0 -1
- package/dist/hooks/useFocusOnceVisible.mjs.map +0 -1
- package/dist/index.d.mts +0 -103
- package/dist/index.d.ts +0 -103
- package/dist/index.js +0 -12595
- package/dist/index.js.map +0 -1
- package/dist/index.mjs +0 -12432
- package/dist/index.mjs.map +0 -1
- package/dist/util/PropsWithFunctionChildren.d.mts +0 -14
- package/dist/util/PropsWithFunctionChildren.d.ts +0 -14
- package/dist/util/PropsWithFunctionChildren.js.map +0 -1
- package/dist/util/PropsWithFunctionChildren.mjs.map +0 -1
- package/dist/util/array.js.map +0 -1
- package/dist/util/array.mjs.map +0 -1
- package/dist/util/builder.js.map +0 -1
- package/dist/util/builder.mjs.map +0 -1
- package/dist/util/date.js.map +0 -1
- package/dist/util/date.mjs.map +0 -1
- package/dist/util/easeFunctions.js.map +0 -1
- package/dist/util/easeFunctions.mjs.map +0 -1
- package/dist/util/emailValidation.js.map +0 -1
- package/dist/util/emailValidation.mjs.map +0 -1
- package/dist/util/loopingArray.js.map +0 -1
- package/dist/util/loopingArray.mjs.map +0 -1
- package/dist/util/math.d.mts +0 -3
- package/dist/util/math.d.ts +0 -3
- package/dist/util/math.js.map +0 -1
- package/dist/util/math.mjs +0 -8
- package/dist/util/math.mjs.map +0 -1
- package/dist/util/news.d.mts +0 -101
- package/dist/util/news.d.ts +0 -101
- package/dist/util/news.js +0 -76
- package/dist/util/news.js.map +0 -1
- package/dist/util/news.mjs +0 -49
- package/dist/util/news.mjs.map +0 -1
- package/dist/util/noop.js.map +0 -1
- package/dist/util/noop.mjs +0 -6
- package/dist/util/noop.mjs.map +0 -1
- package/dist/util/resolveSetState.js.map +0 -1
- package/dist/util/resolveSetState.mjs.map +0 -1
- package/dist/util/simpleSearch.js.map +0 -1
- package/dist/util/simpleSearch.mjs.map +0 -1
- package/dist/util/storage.js.map +0 -1
- package/dist/util/storage.mjs.map +0 -1
- package/dist/util/types.d.mts +0 -3
- package/dist/util/types.d.ts +0 -3
- package/dist/util/types.js +0 -18
- package/dist/util/types.js.map +0 -1
- package/dist/util/types.mjs +0 -1
- package/dist/util/types.mjs.map +0 -1
- package/dist/util/writeToClipboard.js.map +0 -1
- package/dist/util/writeToClipboard.mjs.map +0 -1
- /package/dist/hooks/{useFocusManagement.d.mts → focus/useFocusManagement.d.mts} +0 -0
- /package/dist/hooks/{useFocusManagement.d.ts → focus/useFocusManagement.d.ts} +0 -0
- /package/dist/hooks/{useFocusOnceVisible.d.mts → focus/useFocusOnceVisible.d.mts} +0 -0
- /package/dist/hooks/{useFocusOnceVisible.d.ts → focus/useFocusOnceVisible.d.ts} +0 -0
- /package/dist/{css → style}/uncompiled/theme/colors-basic.css +0 -0
- /package/dist/{css → style}/uncompiled/theme/index.css +0 -0
- /package/dist/{css → style}/uncompiled/theme/variants.css +0 -0
- /package/dist/{css → style}/uncompiled/utitlity/borderradius.css +0 -0
- /package/dist/{css → style}/uncompiled/utitlity/general.css +0 -0
- /package/dist/{util → utils}/builder.d.mts +0 -0
- /package/dist/{util → utils}/builder.d.ts +0 -0
- /package/dist/{util → utils}/date.d.mts +0 -0
- /package/dist/{util → utils}/date.d.ts +0 -0
- /package/dist/{util → utils}/easeFunctions.d.mts +0 -0
- /package/dist/{util → utils}/easeFunctions.d.ts +0 -0
- /package/dist/{util → utils}/emailValidation.d.mts +0 -0
- /package/dist/{util → utils}/emailValidation.d.ts +0 -0
- /package/dist/{util → utils}/loopingArray.d.mts +0 -0
- /package/dist/{util → utils}/loopingArray.d.ts +0 -0
- /package/dist/{util → utils}/noop.d.mts +0 -0
- /package/dist/{util → utils}/noop.d.ts +0 -0
- /package/dist/{util → utils}/resolveSetState.d.mts +0 -0
- /package/dist/{util → utils}/resolveSetState.d.ts +0 -0
- /package/dist/{util → utils}/simpleSearch.d.mts +0 -0
- /package/dist/{util → utils}/simpleSearch.d.ts +0 -0
- /package/dist/{util → utils}/storage.d.mts +0 -0
- /package/dist/{util → utils}/storage.d.ts +0 -0
- /package/dist/{util → utils}/writeToClipboard.d.mts +0 -0
- /package/dist/{util → utils}/writeToClipboard.d.ts +0 -0
|
@@ -1,720 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
-
mod
|
|
26
|
-
));
|
|
27
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
-
|
|
29
|
-
// src/components/modals/DiscardChangesModal.tsx
|
|
30
|
-
var DiscardChangesModal_exports = {};
|
|
31
|
-
__export(DiscardChangesModal_exports, {
|
|
32
|
-
DiscardChangesModal: () => DiscardChangesModal
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(DiscardChangesModal_exports);
|
|
35
|
-
|
|
36
|
-
// src/localization/LanguageProvider.tsx
|
|
37
|
-
var import_react2 = require("react");
|
|
38
|
-
|
|
39
|
-
// src/hooks/useLocalStorage.ts
|
|
40
|
-
var import_react = require("react");
|
|
41
|
-
|
|
42
|
-
// src/localization/util.ts
|
|
43
|
-
var languages = ["en", "de"];
|
|
44
|
-
var languagesLocalNames = {
|
|
45
|
-
en: "English",
|
|
46
|
-
de: "Deutsch"
|
|
47
|
-
};
|
|
48
|
-
var DEFAULT_LANGUAGE = "en";
|
|
49
|
-
var LanguageUtil = {
|
|
50
|
-
languages,
|
|
51
|
-
DEFAULT_LANGUAGE,
|
|
52
|
-
languagesLocalNames
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
// src/localization/LanguageProvider.tsx
|
|
56
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
57
|
-
var LanguageContext = (0, import_react2.createContext)({
|
|
58
|
-
language: LanguageUtil.DEFAULT_LANGUAGE,
|
|
59
|
-
setLanguage: (v) => v
|
|
60
|
-
});
|
|
61
|
-
var useLanguage = () => (0, import_react2.useContext)(LanguageContext);
|
|
62
|
-
|
|
63
|
-
// src/localization/useTranslation.ts
|
|
64
|
-
var TranslationPluralCount = {
|
|
65
|
-
zero: 0,
|
|
66
|
-
one: 1,
|
|
67
|
-
two: 2,
|
|
68
|
-
few: 3,
|
|
69
|
-
many: 11,
|
|
70
|
-
other: -1
|
|
71
|
-
};
|
|
72
|
-
var useTranslation = (translations, overwriteTranslation = {}) => {
|
|
73
|
-
const { language: languageProp, translation: overwrite } = overwriteTranslation;
|
|
74
|
-
const { language: inferredLanguage } = useLanguage();
|
|
75
|
-
const usedLanguage = languageProp ?? inferredLanguage;
|
|
76
|
-
const usedTranslations = [...translations];
|
|
77
|
-
if (overwrite) {
|
|
78
|
-
usedTranslations.push(overwrite);
|
|
79
|
-
}
|
|
80
|
-
return (key, options) => {
|
|
81
|
-
const { count, replacements } = { ...{ count: 0, replacements: {} }, ...options };
|
|
82
|
-
try {
|
|
83
|
-
for (let i = translations.length - 1; i >= 0; i--) {
|
|
84
|
-
const translation = translations[i];
|
|
85
|
-
const localizedTranslation = translation[usedLanguage];
|
|
86
|
-
if (!localizedTranslation) {
|
|
87
|
-
continue;
|
|
88
|
-
}
|
|
89
|
-
const value = localizedTranslation[key];
|
|
90
|
-
if (!value) {
|
|
91
|
-
continue;
|
|
92
|
-
}
|
|
93
|
-
let forProcessing;
|
|
94
|
-
if (typeof value !== "string") {
|
|
95
|
-
if (count === TranslationPluralCount.zero && value?.zero) {
|
|
96
|
-
forProcessing = value.zero;
|
|
97
|
-
} else if (count === TranslationPluralCount.one && value?.one) {
|
|
98
|
-
forProcessing = value.one;
|
|
99
|
-
} else if (count === TranslationPluralCount.two && value?.two) {
|
|
100
|
-
forProcessing = value.two;
|
|
101
|
-
} else if (TranslationPluralCount.few <= count && count < TranslationPluralCount.many && value?.few) {
|
|
102
|
-
forProcessing = value.few;
|
|
103
|
-
} else if (count > TranslationPluralCount.many && value?.many) {
|
|
104
|
-
forProcessing = value.many;
|
|
105
|
-
} else {
|
|
106
|
-
forProcessing = value.other;
|
|
107
|
-
}
|
|
108
|
-
} else {
|
|
109
|
-
forProcessing = value;
|
|
110
|
-
}
|
|
111
|
-
forProcessing = forProcessing.replace(/\{\{(\w+)}}/g, (_, placeholder) => {
|
|
112
|
-
return replacements[placeholder] ?? `{{key:${placeholder}}}`;
|
|
113
|
-
});
|
|
114
|
-
return forProcessing;
|
|
115
|
-
}
|
|
116
|
-
} catch (e) {
|
|
117
|
-
console.error(e);
|
|
118
|
-
}
|
|
119
|
-
return `{{${usedLanguage}:${key}}}`;
|
|
120
|
-
};
|
|
121
|
-
};
|
|
122
|
-
|
|
123
|
-
// src/components/user-action/Button.tsx
|
|
124
|
-
var import_react3 = require("react");
|
|
125
|
-
var import_clsx = __toESM(require("clsx"));
|
|
126
|
-
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
127
|
-
var ButtonColorUtil = {
|
|
128
|
-
solid: ["primary", "secondary", "tertiary", "positive", "warning", "negative", "neutral"],
|
|
129
|
-
text: ["primary", "negative", "neutral"],
|
|
130
|
-
outline: ["primary"]
|
|
131
|
-
};
|
|
132
|
-
var IconButtonUtil = {
|
|
133
|
-
icon: [...ButtonColorUtil.solid, "transparent"]
|
|
134
|
-
};
|
|
135
|
-
var paddingMapping = {
|
|
136
|
-
small: "btn-sm",
|
|
137
|
-
medium: "btn-md",
|
|
138
|
-
large: "btn-lg"
|
|
139
|
-
};
|
|
140
|
-
var iconPaddingMapping = {
|
|
141
|
-
tiny: "icon-btn-xs",
|
|
142
|
-
small: "icon-btn-sm",
|
|
143
|
-
medium: "icon-btn-md",
|
|
144
|
-
large: "icon-btn-lg"
|
|
145
|
-
};
|
|
146
|
-
var ButtonUtil = {
|
|
147
|
-
paddingMapping,
|
|
148
|
-
iconPaddingMapping
|
|
149
|
-
};
|
|
150
|
-
var SolidButton = (0, import_react3.forwardRef)(function SolidButton2({
|
|
151
|
-
children,
|
|
152
|
-
disabled = false,
|
|
153
|
-
color = "primary",
|
|
154
|
-
size = "medium",
|
|
155
|
-
startIcon,
|
|
156
|
-
endIcon,
|
|
157
|
-
onClick,
|
|
158
|
-
className,
|
|
159
|
-
...restProps
|
|
160
|
-
}, ref) {
|
|
161
|
-
const colorClasses = {
|
|
162
|
-
primary: "bg-button-solid-primary-background text-button-solid-primary-text",
|
|
163
|
-
secondary: "bg-button-solid-secondary-background text-button-solid-secondary-text",
|
|
164
|
-
tertiary: "bg-button-solid-tertiary-background text-button-solid-tertiary-text",
|
|
165
|
-
positive: "bg-button-solid-positive-background text-button-solid-positive-text",
|
|
166
|
-
warning: "bg-button-solid-warning-background text-button-solid-warning-text",
|
|
167
|
-
negative: "bg-button-solid-negative-background text-button-solid-negative-text",
|
|
168
|
-
neutral: "bg-button-solid-neutral-background text-button-solid-neutral-text"
|
|
169
|
-
}[color];
|
|
170
|
-
const iconColorClasses = {
|
|
171
|
-
primary: "text-button-solid-primary-icon",
|
|
172
|
-
secondary: "text-button-solid-secondary-icon",
|
|
173
|
-
tertiary: "text-button-solid-tertiary-icon",
|
|
174
|
-
positive: "text-button-solid-positive-icon",
|
|
175
|
-
warning: "text-button-solid-warning-icon",
|
|
176
|
-
negative: "text-button-solid-negative-icon",
|
|
177
|
-
neutral: "text-button-solid-neutral-icon"
|
|
178
|
-
}[color];
|
|
179
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
|
180
|
-
"button",
|
|
181
|
-
{
|
|
182
|
-
ref,
|
|
183
|
-
onClick,
|
|
184
|
-
disabled,
|
|
185
|
-
className: (0, import_clsx.default)(
|
|
186
|
-
"font-semibold",
|
|
187
|
-
{
|
|
188
|
-
"text-disabled-text bg-disabled-background cursor-not-allowed": disabled,
|
|
189
|
-
[(0, import_clsx.default)(colorClasses, "hover:brightness-90")]: !disabled
|
|
190
|
-
},
|
|
191
|
-
ButtonUtil.paddingMapping[size],
|
|
192
|
-
className
|
|
193
|
-
),
|
|
194
|
-
...restProps,
|
|
195
|
-
children: [
|
|
196
|
-
startIcon && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
197
|
-
"span",
|
|
198
|
-
{
|
|
199
|
-
className: (0, import_clsx.default)({
|
|
200
|
-
[iconColorClasses]: !disabled,
|
|
201
|
-
[`text-disabled-icon`]: disabled
|
|
202
|
-
}),
|
|
203
|
-
children: startIcon
|
|
204
|
-
}
|
|
205
|
-
),
|
|
206
|
-
children,
|
|
207
|
-
endIcon && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
208
|
-
"span",
|
|
209
|
-
{
|
|
210
|
-
className: (0, import_clsx.default)({
|
|
211
|
-
[iconColorClasses]: !disabled,
|
|
212
|
-
[`text-disabled-icon`]: disabled
|
|
213
|
-
}),
|
|
214
|
-
children: endIcon
|
|
215
|
-
}
|
|
216
|
-
)
|
|
217
|
-
]
|
|
218
|
-
}
|
|
219
|
-
);
|
|
220
|
-
});
|
|
221
|
-
var IconButton = ({
|
|
222
|
-
children,
|
|
223
|
-
disabled = false,
|
|
224
|
-
color = "primary",
|
|
225
|
-
size = "medium",
|
|
226
|
-
className,
|
|
227
|
-
...restProps
|
|
228
|
-
}) => {
|
|
229
|
-
const colorClasses = {
|
|
230
|
-
primary: "bg-button-solid-primary-background text-button-solid-primary-text",
|
|
231
|
-
secondary: "bg-button-solid-secondary-background text-button-solid-secondary-text",
|
|
232
|
-
tertiary: "bg-button-solid-tertiary-background text-button-solid-tertiary-text",
|
|
233
|
-
positive: "bg-button-solid-positive-background text-button-solid-positive-text",
|
|
234
|
-
warning: "bg-button-solid-warning-background text-button-solid-warning-text",
|
|
235
|
-
negative: "bg-button-solid-negative-background text-button-solid-negative-text",
|
|
236
|
-
neutral: "bg-button-solid-neutral-background text-button-solid-neutral-text",
|
|
237
|
-
transparent: "bg-transparent"
|
|
238
|
-
}[color];
|
|
239
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
240
|
-
"button",
|
|
241
|
-
{
|
|
242
|
-
disabled,
|
|
243
|
-
className: (0, import_clsx.default)(
|
|
244
|
-
{
|
|
245
|
-
"text-disabled-text bg-disabled-background cursor-not-allowed": disabled && color !== "transparent",
|
|
246
|
-
"text-disabled-text cursor-not-allowed opacity-70": disabled && color === "transparent",
|
|
247
|
-
"hover:bg-button-text-hover-background": !disabled && color === "transparent",
|
|
248
|
-
[(0, import_clsx.default)(colorClasses, "hover:brightness-90")]: !disabled
|
|
249
|
-
},
|
|
250
|
-
ButtonUtil.iconPaddingMapping[size],
|
|
251
|
-
className
|
|
252
|
-
),
|
|
253
|
-
...restProps,
|
|
254
|
-
children
|
|
255
|
-
}
|
|
256
|
-
);
|
|
257
|
-
};
|
|
258
|
-
|
|
259
|
-
// src/components/modals/ConfirmModal.tsx
|
|
260
|
-
var import_clsx4 = __toESM(require("clsx"));
|
|
261
|
-
|
|
262
|
-
// src/components/layout-and-navigation/Overlay.tsx
|
|
263
|
-
var import_react5 = require("react");
|
|
264
|
-
var import_react_dom = __toESM(require("react-dom"));
|
|
265
|
-
var import_clsx3 = __toESM(require("clsx"));
|
|
266
|
-
|
|
267
|
-
// src/hooks/useHoverState.ts
|
|
268
|
-
var import_react4 = require("react");
|
|
269
|
-
var defaultUseHoverStateProps = {
|
|
270
|
-
closingDelay: 200,
|
|
271
|
-
isDisabled: false
|
|
272
|
-
};
|
|
273
|
-
var useHoverState = (props = void 0) => {
|
|
274
|
-
const { closingDelay, isDisabled } = { ...defaultUseHoverStateProps, ...props };
|
|
275
|
-
const [isHovered, setIsHovered] = (0, import_react4.useState)(false);
|
|
276
|
-
const [timer, setTimer] = (0, import_react4.useState)();
|
|
277
|
-
const onMouseEnter = () => {
|
|
278
|
-
if (isDisabled) {
|
|
279
|
-
return;
|
|
280
|
-
}
|
|
281
|
-
clearTimeout(timer);
|
|
282
|
-
setIsHovered(true);
|
|
283
|
-
};
|
|
284
|
-
const onMouseLeave = () => {
|
|
285
|
-
if (isDisabled) {
|
|
286
|
-
return;
|
|
287
|
-
}
|
|
288
|
-
setTimer(setTimeout(() => {
|
|
289
|
-
setIsHovered(false);
|
|
290
|
-
}, closingDelay));
|
|
291
|
-
};
|
|
292
|
-
(0, import_react4.useEffect)(() => {
|
|
293
|
-
if (timer) {
|
|
294
|
-
return () => {
|
|
295
|
-
clearTimeout(timer);
|
|
296
|
-
};
|
|
297
|
-
}
|
|
298
|
-
});
|
|
299
|
-
(0, import_react4.useEffect)(() => {
|
|
300
|
-
if (timer) {
|
|
301
|
-
clearTimeout(timer);
|
|
302
|
-
}
|
|
303
|
-
}, [isDisabled]);
|
|
304
|
-
return {
|
|
305
|
-
isHovered,
|
|
306
|
-
setIsHovered,
|
|
307
|
-
handlers: { onMouseEnter, onMouseLeave }
|
|
308
|
-
};
|
|
309
|
-
};
|
|
310
|
-
|
|
311
|
-
// src/components/user-action/Tooltip.tsx
|
|
312
|
-
var import_clsx2 = require("clsx");
|
|
313
|
-
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
314
|
-
var Tooltip = ({
|
|
315
|
-
tooltip,
|
|
316
|
-
children,
|
|
317
|
-
animationDelay = 650,
|
|
318
|
-
tooltipClassName = "",
|
|
319
|
-
containerClassName = "",
|
|
320
|
-
position = "bottom",
|
|
321
|
-
zIndex = 10
|
|
322
|
-
}) => {
|
|
323
|
-
const { isHovered, handlers } = useHoverState();
|
|
324
|
-
const positionClasses = {
|
|
325
|
-
top: `bottom-full left-1/2 -translate-x-1/2 mb-[6px]`,
|
|
326
|
-
bottom: `top-full left-1/2 -translate-x-1/2 mt-[6px]`,
|
|
327
|
-
left: `right-full top-1/2 -translate-y-1/2 mr-[6px]`,
|
|
328
|
-
right: `left-full top-1/2 -translate-y-1/2 ml-[6px]`
|
|
329
|
-
};
|
|
330
|
-
const triangleSize = 6;
|
|
331
|
-
const triangleClasses = {
|
|
332
|
-
top: `top-full left-1/2 -translate-x-1/2 border-t-tooltip-background border-l-transparent border-r-transparent`,
|
|
333
|
-
bottom: `bottom-full left-1/2 -translate-x-1/2 border-b-tooltip-background border-l-transparent border-r-transparent`,
|
|
334
|
-
left: `left-full top-1/2 -translate-y-1/2 border-l-tooltip-background border-t-transparent border-b-transparent`,
|
|
335
|
-
right: `right-full top-1/2 -translate-y-1/2 border-r-tooltip-background border-t-transparent border-b-transparent`
|
|
336
|
-
};
|
|
337
|
-
const triangleStyle = {
|
|
338
|
-
top: { borderWidth: `${triangleSize}px ${triangleSize}px 0 ${triangleSize}px` },
|
|
339
|
-
bottom: { borderWidth: `0 ${triangleSize}px ${triangleSize}px ${triangleSize}px` },
|
|
340
|
-
left: { borderWidth: `${triangleSize}px 0 ${triangleSize}px ${triangleSize}px` },
|
|
341
|
-
right: { borderWidth: `${triangleSize}px ${triangleSize}px ${triangleSize}px 0` }
|
|
342
|
-
};
|
|
343
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
344
|
-
"div",
|
|
345
|
-
{
|
|
346
|
-
className: (0, import_clsx2.clsx)("relative inline-block", containerClassName),
|
|
347
|
-
...handlers,
|
|
348
|
-
children: [
|
|
349
|
-
children,
|
|
350
|
-
isHovered && /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
351
|
-
"div",
|
|
352
|
-
{
|
|
353
|
-
className: (0, import_clsx2.clsx)(
|
|
354
|
-
`opacity-0 absolute text-xs font-semibold text-tooltip-text px-2 py-1 rounded whitespace-nowrap
|
|
355
|
-
animate-tooltip-fade-in shadow-around-md bg-tooltip-background`,
|
|
356
|
-
positionClasses[position],
|
|
357
|
-
tooltipClassName
|
|
358
|
-
),
|
|
359
|
-
style: { zIndex, animationDelay: animationDelay + "ms" },
|
|
360
|
-
children: [
|
|
361
|
-
tooltip,
|
|
362
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
363
|
-
"div",
|
|
364
|
-
{
|
|
365
|
-
className: (0, import_clsx2.clsx)(`absolute w-0 h-0`, triangleClasses[position]),
|
|
366
|
-
style: { ...triangleStyle[position], zIndex: zIndex + 1 }
|
|
367
|
-
}
|
|
368
|
-
)
|
|
369
|
-
]
|
|
370
|
-
}
|
|
371
|
-
)
|
|
372
|
-
]
|
|
373
|
-
}
|
|
374
|
-
);
|
|
375
|
-
};
|
|
376
|
-
|
|
377
|
-
// src/components/layout-and-navigation/Overlay.tsx
|
|
378
|
-
var import_lucide_react = require("lucide-react");
|
|
379
|
-
|
|
380
|
-
// src/localization/defaults/form.ts
|
|
381
|
-
var formTranslation = {
|
|
382
|
-
en: {
|
|
383
|
-
add: "Add",
|
|
384
|
-
all: "All",
|
|
385
|
-
apply: "Apply",
|
|
386
|
-
back: "Back",
|
|
387
|
-
cancel: "Cancel",
|
|
388
|
-
change: "Change",
|
|
389
|
-
clear: "Clear",
|
|
390
|
-
click: "Click",
|
|
391
|
-
clickToCopy: "Click to Copy",
|
|
392
|
-
close: "Close",
|
|
393
|
-
confirm: "Confirm",
|
|
394
|
-
copy: "Copy",
|
|
395
|
-
copied: "Copied",
|
|
396
|
-
create: "Create",
|
|
397
|
-
decline: "Decline",
|
|
398
|
-
delete: "Delete",
|
|
399
|
-
discard: "Discard",
|
|
400
|
-
discardChanges: "Discard Changes",
|
|
401
|
-
done: "Done",
|
|
402
|
-
edit: "Edit",
|
|
403
|
-
enterText: "Enter text here",
|
|
404
|
-
error: "Error",
|
|
405
|
-
exit: "Exit",
|
|
406
|
-
fieldRequiredError: "This field is required.",
|
|
407
|
-
invalidEmailError: "Please enter a valid email address.",
|
|
408
|
-
less: "Less",
|
|
409
|
-
loading: "Loading",
|
|
410
|
-
maxLengthError: "Maximum length exceeded.",
|
|
411
|
-
minLengthError: "Minimum length not met.",
|
|
412
|
-
more: "More",
|
|
413
|
-
next: "Next",
|
|
414
|
-
no: "No",
|
|
415
|
-
none: "None",
|
|
416
|
-
of: "of",
|
|
417
|
-
optional: "Optional",
|
|
418
|
-
pleaseWait: "Please wait...",
|
|
419
|
-
previous: "Previous",
|
|
420
|
-
remove: "Remove",
|
|
421
|
-
required: "Required",
|
|
422
|
-
reset: "Reset",
|
|
423
|
-
save: "Save",
|
|
424
|
-
saved: "Saved",
|
|
425
|
-
search: "Search",
|
|
426
|
-
select: "Select",
|
|
427
|
-
selectOption: "Select an option",
|
|
428
|
-
show: "Show",
|
|
429
|
-
showMore: "Show more",
|
|
430
|
-
showLess: "Show less",
|
|
431
|
-
submit: "Submit",
|
|
432
|
-
success: "Success",
|
|
433
|
-
update: "Update",
|
|
434
|
-
unsavedChanges: "Unsaved Changes",
|
|
435
|
-
unsavedChangesSaveQuestion: "Do you want to save your changes?",
|
|
436
|
-
yes: "Yes"
|
|
437
|
-
},
|
|
438
|
-
de: {
|
|
439
|
-
add: "Hinzuf\xFCgen",
|
|
440
|
-
all: "Alle",
|
|
441
|
-
apply: "Anwenden",
|
|
442
|
-
back: "Zur\xFCck",
|
|
443
|
-
cancel: "Abbrechen",
|
|
444
|
-
change: "\xC4ndern",
|
|
445
|
-
clear: "L\xF6schen",
|
|
446
|
-
click: "Klicken",
|
|
447
|
-
clickToCopy: "Zum kopieren klicken",
|
|
448
|
-
close: "Schlie\xDFen",
|
|
449
|
-
confirm: "Best\xE4tigen",
|
|
450
|
-
copy: "Kopieren",
|
|
451
|
-
copied: "Kopiert",
|
|
452
|
-
create: "Erstellen",
|
|
453
|
-
decline: "Ablehnen",
|
|
454
|
-
delete: "L\xF6schen",
|
|
455
|
-
discard: "Verwerfen",
|
|
456
|
-
discardChanges: "\xC4nderungen Verwerfen",
|
|
457
|
-
done: "Fertig",
|
|
458
|
-
edit: "Bearbeiten",
|
|
459
|
-
enterText: "Text hier eingeben",
|
|
460
|
-
error: "Fehler",
|
|
461
|
-
exit: "Beenden",
|
|
462
|
-
fieldRequiredError: "Dieses Feld ist erforderlich.",
|
|
463
|
-
invalidEmailError: "Bitte geben Sie eine g\xFCltige E-Mail-Adresse ein.",
|
|
464
|
-
less: "Weniger",
|
|
465
|
-
loading: "L\xE4dt",
|
|
466
|
-
maxLengthError: "Maximale L\xE4nge \xFCberschritten.",
|
|
467
|
-
minLengthError: "Mindestl\xE4nge nicht erreicht.",
|
|
468
|
-
more: "Mehr",
|
|
469
|
-
next: "Weiter",
|
|
470
|
-
no: "Nein",
|
|
471
|
-
none: "Nichts",
|
|
472
|
-
of: "von",
|
|
473
|
-
optional: "Optional",
|
|
474
|
-
pleaseWait: "Bitte warten...",
|
|
475
|
-
previous: "Vorherige",
|
|
476
|
-
remove: "Entfernen",
|
|
477
|
-
required: "Erforderlich",
|
|
478
|
-
reset: "Zur\xFCcksetzen",
|
|
479
|
-
save: "Speichern",
|
|
480
|
-
saved: "Gespeichert",
|
|
481
|
-
search: "Suche",
|
|
482
|
-
select: "Select",
|
|
483
|
-
selectOption: "Option ausw\xE4hlen",
|
|
484
|
-
show: "Anzeigen",
|
|
485
|
-
showMore: "Mehr anzeigen",
|
|
486
|
-
showLess: "Weniger anzeigen",
|
|
487
|
-
submit: "Abschicken",
|
|
488
|
-
success: "Erfolg",
|
|
489
|
-
update: "Update",
|
|
490
|
-
unsavedChanges: "Ungespeicherte \xC4nderungen",
|
|
491
|
-
unsavedChangesSaveQuestion: "M\xF6chtest du die \xC4nderungen speichern?",
|
|
492
|
-
yes: "Ja"
|
|
493
|
-
}
|
|
494
|
-
};
|
|
495
|
-
|
|
496
|
-
// src/components/layout-and-navigation/Overlay.tsx
|
|
497
|
-
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
498
|
-
var Overlay = ({
|
|
499
|
-
children,
|
|
500
|
-
isOpen,
|
|
501
|
-
onBackgroundClick,
|
|
502
|
-
backgroundClassName
|
|
503
|
-
}) => {
|
|
504
|
-
const [root, setRoot] = (0, import_react5.useState)();
|
|
505
|
-
(0, import_react5.useEffect)(() => {
|
|
506
|
-
setRoot(document.body);
|
|
507
|
-
}, []);
|
|
508
|
-
if (!root || !isOpen) return null;
|
|
509
|
-
return import_react_dom.default.createPortal(
|
|
510
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: (0, import_clsx3.default)("fixed inset-0 z-[200]"), children: [
|
|
511
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
512
|
-
"div",
|
|
513
|
-
{
|
|
514
|
-
className: (0, import_clsx3.default)("fixed inset-0 h-screen w-screen bg-overlay-shadow", backgroundClassName),
|
|
515
|
-
onClick: onBackgroundClick
|
|
516
|
-
}
|
|
517
|
-
),
|
|
518
|
-
children
|
|
519
|
-
] }),
|
|
520
|
-
root
|
|
521
|
-
);
|
|
522
|
-
};
|
|
523
|
-
var overlayStack = [];
|
|
524
|
-
var defaultModalHeaderTranslation = {
|
|
525
|
-
en: {
|
|
526
|
-
...formTranslation.en
|
|
527
|
-
},
|
|
528
|
-
de: {
|
|
529
|
-
...formTranslation.de
|
|
530
|
-
}
|
|
531
|
-
};
|
|
532
|
-
var OverlayHeader = ({
|
|
533
|
-
overwriteTranslation,
|
|
534
|
-
onClose,
|
|
535
|
-
title,
|
|
536
|
-
titleText = "",
|
|
537
|
-
description,
|
|
538
|
-
descriptionText = ""
|
|
539
|
-
}) => {
|
|
540
|
-
const translation = useTranslation([defaultModalHeaderTranslation], overwriteTranslation);
|
|
541
|
-
const hasTitleRow = !!title || !!titleText || !!onClose;
|
|
542
|
-
const titleRow = /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "flex-row-8 justify-between items-start", children: [
|
|
543
|
-
title ?? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
544
|
-
"h2",
|
|
545
|
-
{
|
|
546
|
-
className: (0, import_clsx3.default)("textstyle-title-lg", {
|
|
547
|
-
"mb-1": description || descriptionText
|
|
548
|
-
}),
|
|
549
|
-
children: titleText
|
|
550
|
-
}
|
|
551
|
-
),
|
|
552
|
-
!!onClose && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Tooltip, { tooltip: translation("close"), children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(IconButton, { color: "neutral", size: "small", onClick: onClose, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_lucide_react.X, { className: "w-full h-full" }) }) })
|
|
553
|
-
] });
|
|
554
|
-
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "flex-col-2", children: [
|
|
555
|
-
hasTitleRow && titleRow,
|
|
556
|
-
description ?? (descriptionText && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "textstyle-description", children: descriptionText }))
|
|
557
|
-
] });
|
|
558
|
-
};
|
|
559
|
-
var Modal = ({
|
|
560
|
-
children,
|
|
561
|
-
isOpen,
|
|
562
|
-
onClose,
|
|
563
|
-
className,
|
|
564
|
-
backgroundClassName,
|
|
565
|
-
headerProps
|
|
566
|
-
}) => {
|
|
567
|
-
const ref = (0, import_react5.useRef)(null);
|
|
568
|
-
(0, import_react5.useEffect)(() => {
|
|
569
|
-
if (!isOpen) return;
|
|
570
|
-
const modal = ref.current;
|
|
571
|
-
if (!modal) {
|
|
572
|
-
console.error("modal open, but no ref found");
|
|
573
|
-
return;
|
|
574
|
-
}
|
|
575
|
-
overlayStack.push(modal);
|
|
576
|
-
const focusable = modal?.querySelectorAll(
|
|
577
|
-
'a[href], button:not([disabled]), textarea, input, select, [tabindex]:not([tabindex="-1"])'
|
|
578
|
-
);
|
|
579
|
-
const first = focusable[0];
|
|
580
|
-
const last = focusable[focusable.length - 1];
|
|
581
|
-
const handleKeyDown = (e) => {
|
|
582
|
-
const isTopmost = overlayStack[overlayStack.length - 1] === modal;
|
|
583
|
-
if (!isTopmost) return;
|
|
584
|
-
if (e.key === "Escape") {
|
|
585
|
-
e.stopPropagation();
|
|
586
|
-
onClose();
|
|
587
|
-
} else if (e.key === "Tab") {
|
|
588
|
-
if (focusable.length === 0) return;
|
|
589
|
-
if (e.shiftKey && document.activeElement === first) {
|
|
590
|
-
e.preventDefault();
|
|
591
|
-
last.focus();
|
|
592
|
-
} else if (!e.shiftKey && document.activeElement === last) {
|
|
593
|
-
e.preventDefault();
|
|
594
|
-
first.focus();
|
|
595
|
-
}
|
|
596
|
-
}
|
|
597
|
-
};
|
|
598
|
-
modal.focus();
|
|
599
|
-
document.addEventListener("keydown", handleKeyDown);
|
|
600
|
-
return () => {
|
|
601
|
-
document.removeEventListener("keydown", handleKeyDown);
|
|
602
|
-
overlayStack = overlayStack.filter((m) => m !== modal);
|
|
603
|
-
};
|
|
604
|
-
}, [isOpen, onClose]);
|
|
605
|
-
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
606
|
-
Overlay,
|
|
607
|
-
{
|
|
608
|
-
isOpen,
|
|
609
|
-
onBackgroundClick: onClose,
|
|
610
|
-
backgroundClassName,
|
|
611
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
612
|
-
"div",
|
|
613
|
-
{
|
|
614
|
-
ref,
|
|
615
|
-
tabIndex: -1,
|
|
616
|
-
className: (0, import_clsx3.default)(
|
|
617
|
-
"flex-col-2 fixed left-1/2 top-1/2 -translate-y-1/2 -translate-x-1/2 p-4 bg-overlay-background text-overlay-text rounded-xl shadow-around-lg shadow-strong animate-pop-in",
|
|
618
|
-
className
|
|
619
|
-
),
|
|
620
|
-
role: "dialog",
|
|
621
|
-
"aria-modal": true,
|
|
622
|
-
children: [
|
|
623
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(OverlayHeader, { ...headerProps, onClose }),
|
|
624
|
-
children
|
|
625
|
-
]
|
|
626
|
-
}
|
|
627
|
-
)
|
|
628
|
-
}
|
|
629
|
-
);
|
|
630
|
-
};
|
|
631
|
-
|
|
632
|
-
// src/components/modals/ConfirmModal.tsx
|
|
633
|
-
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
634
|
-
var ConfirmModal = ({
|
|
635
|
-
overwriteTranslation,
|
|
636
|
-
children,
|
|
637
|
-
onCancel,
|
|
638
|
-
onConfirm,
|
|
639
|
-
onDecline,
|
|
640
|
-
confirmType = "positive",
|
|
641
|
-
buttonOverwrites,
|
|
642
|
-
className,
|
|
643
|
-
...restProps
|
|
644
|
-
}) => {
|
|
645
|
-
const translation = useTranslation([formTranslation], overwriteTranslation);
|
|
646
|
-
const mapping = {
|
|
647
|
-
neutral: "neutral",
|
|
648
|
-
negative: "negative",
|
|
649
|
-
positive: "positive",
|
|
650
|
-
primary: "primary"
|
|
651
|
-
};
|
|
652
|
-
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(Modal, { ...restProps, onClose: onCancel, className: (0, import_clsx4.default)("justify-between", className), children: [
|
|
653
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "flex-col-2 grow", children }),
|
|
654
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex-row-4 mt-3 justify-end", children: [
|
|
655
|
-
onCancel && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
656
|
-
SolidButton,
|
|
657
|
-
{
|
|
658
|
-
color: buttonOverwrites?.[0].color ?? "neutral",
|
|
659
|
-
onClick: onCancel,
|
|
660
|
-
disabled: buttonOverwrites?.[0].disabled ?? false,
|
|
661
|
-
children: buttonOverwrites?.[0].text ?? translation("cancel")
|
|
662
|
-
}
|
|
663
|
-
),
|
|
664
|
-
onDecline && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
665
|
-
SolidButton,
|
|
666
|
-
{
|
|
667
|
-
color: buttonOverwrites?.[1].color ?? "negative",
|
|
668
|
-
onClick: onDecline,
|
|
669
|
-
disabled: buttonOverwrites?.[1].disabled ?? false,
|
|
670
|
-
children: buttonOverwrites?.[1].text ?? translation("decline")
|
|
671
|
-
}
|
|
672
|
-
),
|
|
673
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
674
|
-
SolidButton,
|
|
675
|
-
{
|
|
676
|
-
autoFocus: true,
|
|
677
|
-
color: buttonOverwrites?.[2].color ?? mapping[confirmType],
|
|
678
|
-
onClick: onConfirm,
|
|
679
|
-
disabled: buttonOverwrites?.[2].disabled ?? false,
|
|
680
|
-
children: buttonOverwrites?.[2].text ?? translation("confirm")
|
|
681
|
-
}
|
|
682
|
-
)
|
|
683
|
-
] })
|
|
684
|
-
] });
|
|
685
|
-
};
|
|
686
|
-
|
|
687
|
-
// src/components/modals/DiscardChangesModal.tsx
|
|
688
|
-
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
689
|
-
var DiscardChangesModal = ({
|
|
690
|
-
overwriteTranslation,
|
|
691
|
-
children,
|
|
692
|
-
onCancel,
|
|
693
|
-
onSave,
|
|
694
|
-
onDontSave,
|
|
695
|
-
headerProps,
|
|
696
|
-
...modalProps
|
|
697
|
-
}) => {
|
|
698
|
-
const translation = useTranslation([formTranslation], overwriteTranslation);
|
|
699
|
-
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
700
|
-
ConfirmModal,
|
|
701
|
-
{
|
|
702
|
-
headerProps: {
|
|
703
|
-
...headerProps,
|
|
704
|
-
titleText: headerProps?.titleText ?? translation("unsavedChanges"),
|
|
705
|
-
descriptionText: headerProps?.descriptionText ?? translation("unsavedChangesSaveQuestion")
|
|
706
|
-
},
|
|
707
|
-
onConfirm: onSave,
|
|
708
|
-
onCancel,
|
|
709
|
-
onDecline: onDontSave,
|
|
710
|
-
buttonOverwrites: [{ text: translation("cancel") }, { text: translation("discardChanges") }, { text: translation("save") }],
|
|
711
|
-
...modalProps,
|
|
712
|
-
children
|
|
713
|
-
}
|
|
714
|
-
);
|
|
715
|
-
};
|
|
716
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
717
|
-
0 && (module.exports = {
|
|
718
|
-
DiscardChangesModal
|
|
719
|
-
});
|
|
720
|
-
//# sourceMappingURL=DiscardChangesModal.js.map
|