@helpwave/hightide 0.1.25 → 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 +64 -13
- package/dist/components/date/DatePicker.js.map +1 -1
- package/dist/components/date/DatePicker.mjs +65 -14
- 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 +58 -7
- package/dist/components/date/YearMonthPicker.js.map +1 -1
- package/dist/components/date/YearMonthPicker.mjs +59 -8
- 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 +12 -10
- package/dist/components/layout-and-navigation/Carousel.js.map +1 -1
- package/dist/components/layout-and-navigation/Carousel.mjs +12 -10
- 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 +104 -189
- package/dist/components/layout-and-navigation/Pagination.js.map +1 -1
- package/dist/components/layout-and-navigation/Pagination.mjs +99 -184
- 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 +41 -1
- package/dist/components/layout-and-navigation/StepperBar.js.map +1 -1
- package/dist/components/layout-and-navigation/StepperBar.mjs +41 -1
- 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 +55 -18
- package/dist/components/loading-states/LoadingButton.js.map +1 -1
- package/dist/components/loading-states/LoadingButton.mjs +55 -18
- package/dist/components/loading-states/LoadingButton.mjs.map +1 -1
- package/dist/components/properties/CheckboxProperty.js +890 -135
- package/dist/components/properties/CheckboxProperty.js.map +1 -1
- package/dist/components/properties/CheckboxProperty.mjs +897 -142
- package/dist/components/properties/CheckboxProperty.mjs.map +1 -1
- package/dist/components/properties/DateProperty.js +153 -198
- package/dist/components/properties/DateProperty.js.map +1 -1
- package/dist/components/properties/DateProperty.mjs +146 -191
- 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 +1143 -1160
- package/dist/components/properties/MultiSelectProperty.js.map +1 -1
- package/dist/components/properties/MultiSelectProperty.mjs +1156 -1163
- package/dist/components/properties/MultiSelectProperty.mjs.map +1 -1
- package/dist/components/properties/NumberProperty.js +155 -201
- package/dist/components/properties/NumberProperty.js.map +1 -1
- package/dist/components/properties/NumberProperty.mjs +148 -194
- package/dist/components/properties/NumberProperty.mjs.map +1 -1
- package/dist/components/properties/PropertyBase.js +49 -9
- package/dist/components/properties/PropertyBase.js.map +1 -1
- package/dist/components/properties/PropertyBase.mjs +49 -9
- 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 +1047 -834
- package/dist/components/properties/SelectProperty.js.map +1 -1
- package/dist/components/properties/SelectProperty.mjs +1063 -840
- package/dist/components/properties/SelectProperty.mjs.map +1 -1
- package/dist/components/properties/TextProperty.js +97 -100
- package/dist/components/properties/TextProperty.js.map +1 -1
- package/dist/components/properties/TextProperty.mjs +100 -103
- package/dist/components/properties/TextProperty.mjs.map +1 -1
- package/dist/components/table/Table.js +1618 -993
- package/dist/components/table/Table.js.map +1 -1
- package/dist/components/table/Table.mjs +1625 -1000
- package/dist/components/table/Table.mjs.map +1 -1
- package/dist/components/table/TableFilterButton.js +116 -201
- package/dist/components/table/TableFilterButton.js.map +1 -1
- package/dist/components/table/TableFilterButton.mjs +105 -190
- package/dist/components/table/TableFilterButton.mjs.map +1 -1
- package/dist/components/table/TableSortButton.js +4 -3
- package/dist/components/table/TableSortButton.js.map +1 -1
- package/dist/components/table/TableSortButton.mjs +4 -3
- package/dist/components/table/TableSortButton.mjs.map +1 -1
- package/dist/components/user-action/Button.d.mts +15 -11
- package/dist/components/user-action/Button.d.ts +15 -11
- package/dist/components/user-action/Button.js +10 -9
- package/dist/components/user-action/Button.js.map +1 -1
- package/dist/components/user-action/Button.mjs +10 -9
- 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 +793 -103
- package/dist/components/user-action/Checkbox.js.map +1 -1
- package/dist/components/user-action/Checkbox.mjs +794 -104
- 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 +66 -13
- package/dist/components/user-action/DateAndTimePicker.js.map +1 -1
- package/dist/components/user-action/DateAndTimePicker.mjs +67 -14
- 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 +93 -178
- package/dist/components/user-action/SearchBar.js.map +1 -1
- package/dist/components/user-action/SearchBar.mjs +86 -171
- 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 +779 -374
- 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 +3 -3
- package/dist/theming/useTheme.js.map +1 -1
- package/dist/theming/useTheme.mjs +3 -3
- 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 -674
- package/dist/components/dialogs/ConfirmDialog.js.map +0 -1
- package/dist/components/dialogs/ConfirmDialog.mjs +0 -638
- 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 -702
- package/dist/components/layout-and-navigation/Overlay.js.map +0 -1
- package/dist/components/layout-and-navigation/Overlay.mjs +0 -665
- 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 -758
- package/dist/components/layout-and-navigation/SearchableList.js.map +0 -1
- package/dist/components/layout-and-navigation/SearchableList.mjs +0 -724
- 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 -687
- package/dist/components/modals/ConfirmModal.js.map +0 -1
- package/dist/components/modals/ConfirmModal.mjs +0 -651
- 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 -717
- package/dist/components/modals/DiscardChangesModal.js.map +0 -1
- package/dist/components/modals/DiscardChangesModal.mjs +0 -681
- 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 -976
- package/dist/components/modals/InputModal.js.map +0 -1
- package/dist/components/modals/InputModal.mjs +0 -940
- 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 -1468
- package/dist/components/modals/LanguageModal.js.map +0 -1
- package/dist/components/modals/LanguageModal.mjs +0 -1432
- 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 -1497
- package/dist/components/modals/ThemeModal.js.map +0 -1
- package/dist/components/modals/ThemeModal.mjs +0 -1461
- 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 -1468
- package/dist/components/user-action/MultiSelect.js.map +0 -1
- package/dist/components/user-action/MultiSelect.mjs +0 -1433
- 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 -1236
- package/dist/components/user-action/Select.js.map +0 -1
- package/dist/components/user-action/Select.mjs +0 -1201
- 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 -12610
- package/dist/index.js.map +0 -1
- package/dist/index.mjs +0 -12447
- 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,724 +0,0 @@
|
|
|
1
|
-
// src/components/layout-and-navigation/SearchableList.tsx
|
|
2
|
-
import { Search } from "lucide-react";
|
|
3
|
-
import clsx4 from "clsx";
|
|
4
|
-
|
|
5
|
-
// src/localization/LanguageProvider.tsx
|
|
6
|
-
import { createContext, useContext, useEffect, useState as useState2 } from "react";
|
|
7
|
-
|
|
8
|
-
// src/hooks/useLocalStorage.ts
|
|
9
|
-
import { useCallback, useState } from "react";
|
|
10
|
-
|
|
11
|
-
// src/localization/util.ts
|
|
12
|
-
var languages = ["en", "de"];
|
|
13
|
-
var languagesLocalNames = {
|
|
14
|
-
en: "English",
|
|
15
|
-
de: "Deutsch"
|
|
16
|
-
};
|
|
17
|
-
var DEFAULT_LANGUAGE = "en";
|
|
18
|
-
var LanguageUtil = {
|
|
19
|
-
languages,
|
|
20
|
-
DEFAULT_LANGUAGE,
|
|
21
|
-
languagesLocalNames
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
// src/localization/LanguageProvider.tsx
|
|
25
|
-
import { jsx } from "react/jsx-runtime";
|
|
26
|
-
var LanguageContext = createContext({
|
|
27
|
-
language: LanguageUtil.DEFAULT_LANGUAGE,
|
|
28
|
-
setLanguage: (v) => v
|
|
29
|
-
});
|
|
30
|
-
var useLanguage = () => useContext(LanguageContext);
|
|
31
|
-
|
|
32
|
-
// src/localization/useTranslation.ts
|
|
33
|
-
var TranslationPluralCount = {
|
|
34
|
-
zero: 0,
|
|
35
|
-
one: 1,
|
|
36
|
-
two: 2,
|
|
37
|
-
few: 3,
|
|
38
|
-
many: 11,
|
|
39
|
-
other: -1
|
|
40
|
-
};
|
|
41
|
-
var useTranslation = (translations, overwriteTranslation = {}) => {
|
|
42
|
-
const { language: languageProp, translation: overwrite } = overwriteTranslation;
|
|
43
|
-
const { language: inferredLanguage } = useLanguage();
|
|
44
|
-
const usedLanguage = languageProp ?? inferredLanguage;
|
|
45
|
-
const usedTranslations = [...translations];
|
|
46
|
-
if (overwrite) {
|
|
47
|
-
usedTranslations.push(overwrite);
|
|
48
|
-
}
|
|
49
|
-
return (key, options) => {
|
|
50
|
-
const { count, replacements } = { ...{ count: 0, replacements: {} }, ...options };
|
|
51
|
-
try {
|
|
52
|
-
for (let i = translations.length - 1; i >= 0; i--) {
|
|
53
|
-
const translation = translations[i];
|
|
54
|
-
const localizedTranslation = translation[usedLanguage];
|
|
55
|
-
if (!localizedTranslation) {
|
|
56
|
-
continue;
|
|
57
|
-
}
|
|
58
|
-
const value = localizedTranslation[key];
|
|
59
|
-
if (!value) {
|
|
60
|
-
continue;
|
|
61
|
-
}
|
|
62
|
-
let forProcessing;
|
|
63
|
-
if (typeof value !== "string") {
|
|
64
|
-
if (count === TranslationPluralCount.zero && value?.zero) {
|
|
65
|
-
forProcessing = value.zero;
|
|
66
|
-
} else if (count === TranslationPluralCount.one && value?.one) {
|
|
67
|
-
forProcessing = value.one;
|
|
68
|
-
} else if (count === TranslationPluralCount.two && value?.two) {
|
|
69
|
-
forProcessing = value.two;
|
|
70
|
-
} else if (TranslationPluralCount.few <= count && count < TranslationPluralCount.many && value?.few) {
|
|
71
|
-
forProcessing = value.few;
|
|
72
|
-
} else if (count > TranslationPluralCount.many && value?.many) {
|
|
73
|
-
forProcessing = value.many;
|
|
74
|
-
} else {
|
|
75
|
-
forProcessing = value.other;
|
|
76
|
-
}
|
|
77
|
-
} else {
|
|
78
|
-
forProcessing = value;
|
|
79
|
-
}
|
|
80
|
-
forProcessing = forProcessing.replace(/\{\{(\w+)}}/g, (_, placeholder) => {
|
|
81
|
-
return replacements[placeholder] ?? `{{key:${placeholder}}}`;
|
|
82
|
-
});
|
|
83
|
-
return forProcessing;
|
|
84
|
-
}
|
|
85
|
-
} catch (e) {
|
|
86
|
-
console.error(e);
|
|
87
|
-
}
|
|
88
|
-
return `{{${usedLanguage}:${key}}}`;
|
|
89
|
-
};
|
|
90
|
-
};
|
|
91
|
-
|
|
92
|
-
// src/components/user-action/Input.tsx
|
|
93
|
-
import { forwardRef, useEffect as useEffect4, useImperativeHandle, useRef, useState as useState4 } from "react";
|
|
94
|
-
import clsx2 from "clsx";
|
|
95
|
-
|
|
96
|
-
// src/hooks/useDelay.ts
|
|
97
|
-
import { useEffect as useEffect2, useState as useState3 } from "react";
|
|
98
|
-
var defaultOptions = {
|
|
99
|
-
delay: 3e3,
|
|
100
|
-
disabled: false
|
|
101
|
-
};
|
|
102
|
-
function useDelay(options) {
|
|
103
|
-
const [timer, setTimer] = useState3(void 0);
|
|
104
|
-
const { delay, disabled } = {
|
|
105
|
-
...defaultOptions,
|
|
106
|
-
...options
|
|
107
|
-
};
|
|
108
|
-
const clearTimer = () => {
|
|
109
|
-
clearTimeout(timer);
|
|
110
|
-
setTimer(void 0);
|
|
111
|
-
};
|
|
112
|
-
const restartTimer = (onDelayFinish) => {
|
|
113
|
-
if (disabled) {
|
|
114
|
-
return;
|
|
115
|
-
}
|
|
116
|
-
clearTimeout(timer);
|
|
117
|
-
setTimer(setTimeout(() => {
|
|
118
|
-
onDelayFinish();
|
|
119
|
-
setTimer(void 0);
|
|
120
|
-
}, delay));
|
|
121
|
-
};
|
|
122
|
-
useEffect2(() => {
|
|
123
|
-
return () => {
|
|
124
|
-
clearTimeout(timer);
|
|
125
|
-
};
|
|
126
|
-
}, [timer]);
|
|
127
|
-
useEffect2(() => {
|
|
128
|
-
if (disabled) {
|
|
129
|
-
clearTimeout(timer);
|
|
130
|
-
setTimer(void 0);
|
|
131
|
-
}
|
|
132
|
-
}, [disabled, timer]);
|
|
133
|
-
return { restartTimer, clearTimer, hasActiveTimer: !!timer };
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
// src/util/noop.ts
|
|
137
|
-
var noop = () => void 0;
|
|
138
|
-
|
|
139
|
-
// src/components/user-action/Label.tsx
|
|
140
|
-
import clsx from "clsx";
|
|
141
|
-
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
142
|
-
var styleMapping = {
|
|
143
|
-
labelSmall: "textstyle-label-sm",
|
|
144
|
-
labelMedium: "textstyle-label-md",
|
|
145
|
-
labelBig: "textstyle-label-lg"
|
|
146
|
-
};
|
|
147
|
-
var Label = ({
|
|
148
|
-
children,
|
|
149
|
-
name,
|
|
150
|
-
labelType = "labelSmall",
|
|
151
|
-
className,
|
|
152
|
-
...props
|
|
153
|
-
}) => {
|
|
154
|
-
return /* @__PURE__ */ jsx2("label", { ...props, className: clsx(styleMapping[labelType], className), children: children ? children : name });
|
|
155
|
-
};
|
|
156
|
-
|
|
157
|
-
// src/hooks/useFocusManagement.ts
|
|
158
|
-
import { useCallback as useCallback2 } from "react";
|
|
159
|
-
function useFocusManagement() {
|
|
160
|
-
const getFocusableElements = useCallback2(() => {
|
|
161
|
-
return Array.from(
|
|
162
|
-
document.querySelectorAll(
|
|
163
|
-
'input, button, select, textarea, a[href], [tabindex]:not([tabindex="-1"])'
|
|
164
|
-
)
|
|
165
|
-
).filter(
|
|
166
|
-
(el) => el instanceof HTMLElement && !el.hasAttribute("disabled") && !el.hasAttribute("hidden") && el.tabIndex !== -1
|
|
167
|
-
);
|
|
168
|
-
}, []);
|
|
169
|
-
const getNextFocusElement = useCallback2(() => {
|
|
170
|
-
const elements = getFocusableElements();
|
|
171
|
-
if (elements.length === 0) {
|
|
172
|
-
return void 0;
|
|
173
|
-
}
|
|
174
|
-
let nextElement = elements[0];
|
|
175
|
-
if (document.activeElement instanceof HTMLElement) {
|
|
176
|
-
const currentIndex = elements.indexOf(document.activeElement);
|
|
177
|
-
nextElement = elements[(currentIndex + 1) % elements.length];
|
|
178
|
-
}
|
|
179
|
-
return nextElement;
|
|
180
|
-
}, [getFocusableElements]);
|
|
181
|
-
const focusNext = useCallback2(() => {
|
|
182
|
-
const nextElement = getNextFocusElement();
|
|
183
|
-
nextElement?.focus();
|
|
184
|
-
}, [getNextFocusElement]);
|
|
185
|
-
const getPreviousFocusElement = useCallback2(() => {
|
|
186
|
-
const elements = getFocusableElements();
|
|
187
|
-
if (elements.length === 0) {
|
|
188
|
-
return void 0;
|
|
189
|
-
}
|
|
190
|
-
let previousElement = elements[0];
|
|
191
|
-
if (document.activeElement instanceof HTMLElement) {
|
|
192
|
-
const currentIndex = elements.indexOf(document.activeElement);
|
|
193
|
-
if (currentIndex === 0) {
|
|
194
|
-
previousElement = elements[elements.length - 1];
|
|
195
|
-
} else {
|
|
196
|
-
previousElement = elements[currentIndex - 1];
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
return previousElement;
|
|
200
|
-
}, [getFocusableElements]);
|
|
201
|
-
const focusPrevious = useCallback2(() => {
|
|
202
|
-
const previousElement = getPreviousFocusElement();
|
|
203
|
-
if (previousElement) previousElement.focus();
|
|
204
|
-
}, [getPreviousFocusElement]);
|
|
205
|
-
return {
|
|
206
|
-
getFocusableElements,
|
|
207
|
-
getNextFocusElement,
|
|
208
|
-
getPreviousFocusElement,
|
|
209
|
-
focusNext,
|
|
210
|
-
focusPrevious
|
|
211
|
-
};
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
// src/hooks/useFocusOnceVisible.ts
|
|
215
|
-
import React, { useEffect as useEffect3 } from "react";
|
|
216
|
-
var useFocusOnceVisible = (ref, disable = false) => {
|
|
217
|
-
const [hasUsedFocus, setHasUsedFocus] = React.useState(false);
|
|
218
|
-
useEffect3(() => {
|
|
219
|
-
if (disable || hasUsedFocus) {
|
|
220
|
-
return;
|
|
221
|
-
}
|
|
222
|
-
const observer = new IntersectionObserver(([entry]) => {
|
|
223
|
-
if (entry.isIntersecting && !hasUsedFocus) {
|
|
224
|
-
ref.current?.focus();
|
|
225
|
-
setHasUsedFocus(hasUsedFocus);
|
|
226
|
-
}
|
|
227
|
-
}, {
|
|
228
|
-
threshold: 0.1
|
|
229
|
-
});
|
|
230
|
-
if (ref.current) {
|
|
231
|
-
observer.observe(ref.current);
|
|
232
|
-
}
|
|
233
|
-
return () => observer.disconnect();
|
|
234
|
-
}, [disable, hasUsedFocus, ref]);
|
|
235
|
-
};
|
|
236
|
-
|
|
237
|
-
// src/components/user-action/Input.tsx
|
|
238
|
-
import { jsx as jsx3, jsxs } from "react/jsx-runtime";
|
|
239
|
-
var getInputClassName = ({ disabled = false, hasError = false }) => {
|
|
240
|
-
return clsx2(
|
|
241
|
-
"px-2 py-1.5 rounded-md border-2",
|
|
242
|
-
{
|
|
243
|
-
"bg-input-background text-input-text hover:border-primary focus:border-primary": !disabled && !hasError,
|
|
244
|
-
"bg-on-negative text-negative border-negative-border hover:border-negative-border-hover": !disabled && hasError,
|
|
245
|
-
"bg-disabled-background text-disabled-text border-disabled-border": disabled
|
|
246
|
-
}
|
|
247
|
-
);
|
|
248
|
-
};
|
|
249
|
-
var defaultEditCompleteOptions = {
|
|
250
|
-
onBlur: true,
|
|
251
|
-
afterDelay: true,
|
|
252
|
-
delay: 2500
|
|
253
|
-
};
|
|
254
|
-
var Input = forwardRef(function Input2({
|
|
255
|
-
id,
|
|
256
|
-
type = "text",
|
|
257
|
-
value,
|
|
258
|
-
label,
|
|
259
|
-
onChange = noop,
|
|
260
|
-
onChangeText = noop,
|
|
261
|
-
onEditCompleted,
|
|
262
|
-
className = "",
|
|
263
|
-
allowEnterComplete = true,
|
|
264
|
-
expanded = true,
|
|
265
|
-
autoFocus = false,
|
|
266
|
-
onBlur,
|
|
267
|
-
editCompleteOptions,
|
|
268
|
-
containerClassName,
|
|
269
|
-
disabled,
|
|
270
|
-
...restProps
|
|
271
|
-
}, forwardedRef) {
|
|
272
|
-
const { onBlur: allowEditCompleteOnBlur, afterDelay, delay } = { ...defaultEditCompleteOptions, ...editCompleteOptions };
|
|
273
|
-
const {
|
|
274
|
-
restartTimer,
|
|
275
|
-
clearTimer
|
|
276
|
-
} = useDelay({ delay, disabled: !afterDelay });
|
|
277
|
-
const innerRef = useRef(null);
|
|
278
|
-
const { focusNext } = useFocusManagement();
|
|
279
|
-
useFocusOnceVisible(innerRef, !autoFocus);
|
|
280
|
-
useImperativeHandle(forwardedRef, () => innerRef.current);
|
|
281
|
-
const handleKeyDown = (e) => {
|
|
282
|
-
if (e.key === "Enter" && !e.shiftKey) {
|
|
283
|
-
e.preventDefault();
|
|
284
|
-
innerRef.current?.blur();
|
|
285
|
-
focusNext();
|
|
286
|
-
}
|
|
287
|
-
};
|
|
288
|
-
return /* @__PURE__ */ jsxs("div", { className: clsx2({ "w-full": expanded }, containerClassName), children: [
|
|
289
|
-
label && /* @__PURE__ */ jsx3(Label, { ...label, htmlFor: id, className: clsx2("mb-1", label.className) }),
|
|
290
|
-
/* @__PURE__ */ jsx3(
|
|
291
|
-
"input",
|
|
292
|
-
{
|
|
293
|
-
...restProps,
|
|
294
|
-
ref: innerRef,
|
|
295
|
-
value,
|
|
296
|
-
id,
|
|
297
|
-
type,
|
|
298
|
-
disabled,
|
|
299
|
-
className: clsx2(getInputClassName({ disabled }), className),
|
|
300
|
-
onKeyDown: allowEnterComplete ? handleKeyDown : void 0,
|
|
301
|
-
onBlur: (event) => {
|
|
302
|
-
onBlur?.(event);
|
|
303
|
-
if (onEditCompleted && allowEditCompleteOnBlur) {
|
|
304
|
-
onEditCompleted(event.target.value);
|
|
305
|
-
clearTimer();
|
|
306
|
-
}
|
|
307
|
-
},
|
|
308
|
-
onChange: (e) => {
|
|
309
|
-
const value2 = e.target.value;
|
|
310
|
-
if (onEditCompleted) {
|
|
311
|
-
restartTimer(() => {
|
|
312
|
-
if (innerRef.current) {
|
|
313
|
-
innerRef.current.blur();
|
|
314
|
-
if (!allowEditCompleteOnBlur) {
|
|
315
|
-
onEditCompleted(value2);
|
|
316
|
-
}
|
|
317
|
-
} else {
|
|
318
|
-
onEditCompleted(value2);
|
|
319
|
-
}
|
|
320
|
-
});
|
|
321
|
-
}
|
|
322
|
-
onChange(e);
|
|
323
|
-
onChangeText(value2);
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
)
|
|
327
|
-
] });
|
|
328
|
-
});
|
|
329
|
-
var FormInput = forwardRef(function FormInput2({
|
|
330
|
-
id,
|
|
331
|
-
labelText,
|
|
332
|
-
errorText,
|
|
333
|
-
className,
|
|
334
|
-
labelClassName,
|
|
335
|
-
errorClassName,
|
|
336
|
-
containerClassName,
|
|
337
|
-
required,
|
|
338
|
-
disabled,
|
|
339
|
-
...restProps
|
|
340
|
-
}, ref) {
|
|
341
|
-
const input = /* @__PURE__ */ jsx3(
|
|
342
|
-
"input",
|
|
343
|
-
{
|
|
344
|
-
...restProps,
|
|
345
|
-
ref,
|
|
346
|
-
id,
|
|
347
|
-
disabled,
|
|
348
|
-
className: clsx2(
|
|
349
|
-
getInputClassName({ disabled, hasError: !!errorText }),
|
|
350
|
-
className
|
|
351
|
-
)
|
|
352
|
-
}
|
|
353
|
-
);
|
|
354
|
-
return /* @__PURE__ */ jsxs("div", { className: clsx2("flex flex-col gap-y-1", containerClassName), children: [
|
|
355
|
-
labelText && /* @__PURE__ */ jsxs("label", { htmlFor: id, className: clsx2("textstyle-label-md", labelClassName), children: [
|
|
356
|
-
labelText,
|
|
357
|
-
required && /* @__PURE__ */ jsx3("span", { className: "text-primary font-bold", children: "*" })
|
|
358
|
-
] }),
|
|
359
|
-
input,
|
|
360
|
-
errorText && /* @__PURE__ */ jsx3("label", { htmlFor: id, className: clsx2("text-negative", errorClassName), children: errorText })
|
|
361
|
-
] });
|
|
362
|
-
});
|
|
363
|
-
|
|
364
|
-
// src/components/user-action/Button.tsx
|
|
365
|
-
import { forwardRef as forwardRef2 } from "react";
|
|
366
|
-
import clsx3 from "clsx";
|
|
367
|
-
import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
368
|
-
var ButtonColorUtil = {
|
|
369
|
-
solid: ["primary", "secondary", "tertiary", "positive", "warning", "negative", "neutral"],
|
|
370
|
-
text: ["primary", "negative", "neutral"],
|
|
371
|
-
outline: ["primary"]
|
|
372
|
-
};
|
|
373
|
-
var IconButtonUtil = {
|
|
374
|
-
icon: [...ButtonColorUtil.solid, "transparent"]
|
|
375
|
-
};
|
|
376
|
-
var paddingMapping = {
|
|
377
|
-
small: "btn-sm",
|
|
378
|
-
medium: "btn-md",
|
|
379
|
-
large: "btn-lg"
|
|
380
|
-
};
|
|
381
|
-
var iconPaddingMapping = {
|
|
382
|
-
tiny: "icon-btn-xs",
|
|
383
|
-
small: "icon-btn-sm",
|
|
384
|
-
medium: "icon-btn-md",
|
|
385
|
-
large: "icon-btn-lg"
|
|
386
|
-
};
|
|
387
|
-
var ButtonUtil = {
|
|
388
|
-
paddingMapping,
|
|
389
|
-
iconPaddingMapping
|
|
390
|
-
};
|
|
391
|
-
var SolidButton = forwardRef2(function SolidButton2({
|
|
392
|
-
children,
|
|
393
|
-
color = "primary",
|
|
394
|
-
size = "medium",
|
|
395
|
-
startIcon,
|
|
396
|
-
endIcon,
|
|
397
|
-
onClick,
|
|
398
|
-
className,
|
|
399
|
-
...restProps
|
|
400
|
-
}, ref) {
|
|
401
|
-
const colorClasses = {
|
|
402
|
-
primary: "not-disabled:bg-button-solid-primary-background not-disabled:text-button-solid-primary-text",
|
|
403
|
-
secondary: "not-disabled:bg-button-solid-secondary-background not-disabled:text-button-solid-secondary-text",
|
|
404
|
-
tertiary: "not-disabled:bg-button-solid-tertiary-background not-disabled:text-button-solid-tertiary-text",
|
|
405
|
-
positive: "not-disabled:bg-button-solid-positive-background not-disabled:text-button-solid-positive-text",
|
|
406
|
-
warning: "not-disabled:bg-button-solid-warning-background not-disabled:text-button-solid-warning-text",
|
|
407
|
-
negative: "not-disabled:bg-button-solid-negative-background not-disabled:text-button-solid-negative-text",
|
|
408
|
-
neutral: "not-disabled:bg-button-solid-neutral-background not-disabled:text-button-solid-neutral-text"
|
|
409
|
-
}[color];
|
|
410
|
-
const iconColorClasses = {
|
|
411
|
-
primary: "not-group-disabled:text-button-solid-primary-icon",
|
|
412
|
-
secondary: "not-group-disabled:text-button-solid-secondary-icon",
|
|
413
|
-
tertiary: "not-group-disabled:text-button-solid-tertiary-icon",
|
|
414
|
-
positive: "not-group-disabled:text-button-solid-positive-icon",
|
|
415
|
-
warning: "not-group-disabled:text-button-solid-warning-icon",
|
|
416
|
-
negative: "not-group-disabled:text-button-solid-negative-icon",
|
|
417
|
-
neutral: "not-group-disabled:text-button-solid-neutral-icon"
|
|
418
|
-
}[color];
|
|
419
|
-
return /* @__PURE__ */ jsxs2(
|
|
420
|
-
"button",
|
|
421
|
-
{
|
|
422
|
-
ref,
|
|
423
|
-
onClick,
|
|
424
|
-
className: clsx3(
|
|
425
|
-
"group font-semibold",
|
|
426
|
-
colorClasses,
|
|
427
|
-
"not-disabled:hover:brightness-90",
|
|
428
|
-
"disabled:text-disabled-text disabled:bg-disabled-background",
|
|
429
|
-
ButtonUtil.paddingMapping[size],
|
|
430
|
-
className
|
|
431
|
-
),
|
|
432
|
-
...restProps,
|
|
433
|
-
children: [
|
|
434
|
-
startIcon && /* @__PURE__ */ jsx4(
|
|
435
|
-
"span",
|
|
436
|
-
{
|
|
437
|
-
className: clsx3(
|
|
438
|
-
iconColorClasses,
|
|
439
|
-
"group-disabled:text-disabled-icon"
|
|
440
|
-
),
|
|
441
|
-
children: startIcon
|
|
442
|
-
}
|
|
443
|
-
),
|
|
444
|
-
children,
|
|
445
|
-
endIcon && /* @__PURE__ */ jsx4(
|
|
446
|
-
"span",
|
|
447
|
-
{
|
|
448
|
-
className: clsx3(
|
|
449
|
-
iconColorClasses,
|
|
450
|
-
"group-disabled:text-disabled-icon"
|
|
451
|
-
),
|
|
452
|
-
children: endIcon
|
|
453
|
-
}
|
|
454
|
-
)
|
|
455
|
-
]
|
|
456
|
-
}
|
|
457
|
-
);
|
|
458
|
-
});
|
|
459
|
-
var IconButton = ({
|
|
460
|
-
children,
|
|
461
|
-
color = "primary",
|
|
462
|
-
size = "medium",
|
|
463
|
-
className,
|
|
464
|
-
...restProps
|
|
465
|
-
}) => {
|
|
466
|
-
const colorClasses = {
|
|
467
|
-
primary: "not-disabled:bg-button-solid-primary-background not-disabled:text-button-solid-primary-text",
|
|
468
|
-
secondary: "not-disabled:bg-button-solid-secondary-background not-disabled:text-button-solid-secondary-text",
|
|
469
|
-
tertiary: "not-disabled:bg-button-solid-tertiary-background not-disabled:text-button-solid-tertiary-text",
|
|
470
|
-
positive: "not-disabled:bg-button-solid-positive-background not-disabled:text-button-solid-positive-text",
|
|
471
|
-
warning: "not-disabled:bg-button-solid-warning-background not-disabled:text-button-solid-warning-text",
|
|
472
|
-
negative: "not-disabled:bg-button-solid-negative-background not-disabled:text-button-solid-negative-text",
|
|
473
|
-
neutral: "not-disabled:bg-button-solid-neutral-background not-disabled:text-button-solid-neutral-text",
|
|
474
|
-
transparent: "not-disabled:bg-transparent"
|
|
475
|
-
}[color];
|
|
476
|
-
return /* @__PURE__ */ jsx4(
|
|
477
|
-
"button",
|
|
478
|
-
{
|
|
479
|
-
className: clsx3(
|
|
480
|
-
colorClasses,
|
|
481
|
-
"not-disabled:hover:brightness-90",
|
|
482
|
-
"disabled:text-disabled-text",
|
|
483
|
-
{
|
|
484
|
-
"disabled:bg-disabled-background": color !== "transparent",
|
|
485
|
-
"disabled:opacity-70": color === "transparent",
|
|
486
|
-
"not-disabled:hover:bg-button-text-hover-background": color === "transparent"
|
|
487
|
-
},
|
|
488
|
-
ButtonUtil.iconPaddingMapping[size],
|
|
489
|
-
className
|
|
490
|
-
),
|
|
491
|
-
...restProps,
|
|
492
|
-
children
|
|
493
|
-
}
|
|
494
|
-
);
|
|
495
|
-
};
|
|
496
|
-
|
|
497
|
-
// src/hooks/useSearch.ts
|
|
498
|
-
import { useCallback as useCallback3, useEffect as useEffect5, useMemo, useState as useState5 } from "react";
|
|
499
|
-
|
|
500
|
-
// src/util/simpleSearch.ts
|
|
501
|
-
var MultiSubjectSearchWithMapping = (search, objects, mapping) => {
|
|
502
|
-
return objects.filter((object) => {
|
|
503
|
-
const mappedSearchKeywords = mapping(object)?.map((value) => value.toLowerCase().trim());
|
|
504
|
-
if (!mappedSearchKeywords) {
|
|
505
|
-
return true;
|
|
506
|
-
}
|
|
507
|
-
return search.every((searchValue) => !!mappedSearchKeywords.find((value) => !!value && value.includes(searchValue.toLowerCase().trim())));
|
|
508
|
-
});
|
|
509
|
-
};
|
|
510
|
-
|
|
511
|
-
// src/hooks/useSearch.ts
|
|
512
|
-
var useSearch = ({
|
|
513
|
-
list,
|
|
514
|
-
initialSearch,
|
|
515
|
-
searchMapping,
|
|
516
|
-
additionalSearchTags,
|
|
517
|
-
isSearchInstant = true,
|
|
518
|
-
sortingFunction,
|
|
519
|
-
filter,
|
|
520
|
-
disabled = false
|
|
521
|
-
}) => {
|
|
522
|
-
const [search, setSearch] = useState5(initialSearch ?? "");
|
|
523
|
-
const [result, setResult] = useState5(list);
|
|
524
|
-
const searchTags = useMemo(() => additionalSearchTags ?? [], [additionalSearchTags]);
|
|
525
|
-
const updateSearch = useCallback3((newSearch) => {
|
|
526
|
-
const usedSearch = newSearch ?? search;
|
|
527
|
-
if (newSearch) {
|
|
528
|
-
setSearch(search);
|
|
529
|
-
}
|
|
530
|
-
setResult(MultiSubjectSearchWithMapping([usedSearch, ...searchTags], list, searchMapping));
|
|
531
|
-
}, [searchTags, list, search, searchMapping]);
|
|
532
|
-
useEffect5(() => {
|
|
533
|
-
if (isSearchInstant) {
|
|
534
|
-
setResult(MultiSubjectSearchWithMapping([search, ...searchTags], list, searchMapping));
|
|
535
|
-
}
|
|
536
|
-
}, [searchTags, isSearchInstant, list, search, searchMapping, additionalSearchTags]);
|
|
537
|
-
const filteredResult = useMemo(() => {
|
|
538
|
-
if (!filter) {
|
|
539
|
-
return result;
|
|
540
|
-
}
|
|
541
|
-
return result.filter(filter);
|
|
542
|
-
}, [result, filter]);
|
|
543
|
-
const sortedAndFilteredResult = useMemo(() => {
|
|
544
|
-
if (!sortingFunction) {
|
|
545
|
-
return filteredResult;
|
|
546
|
-
}
|
|
547
|
-
return filteredResult.sort(sortingFunction);
|
|
548
|
-
}, [filteredResult, sortingFunction]);
|
|
549
|
-
const usedResult = useMemo(() => {
|
|
550
|
-
if (!disabled) {
|
|
551
|
-
return sortedAndFilteredResult;
|
|
552
|
-
}
|
|
553
|
-
return list;
|
|
554
|
-
}, [disabled, list, sortedAndFilteredResult]);
|
|
555
|
-
return {
|
|
556
|
-
result: usedResult,
|
|
557
|
-
hasResult: usedResult.length > 0,
|
|
558
|
-
allItems: list,
|
|
559
|
-
updateSearch,
|
|
560
|
-
search,
|
|
561
|
-
setSearch
|
|
562
|
-
};
|
|
563
|
-
};
|
|
564
|
-
|
|
565
|
-
// src/localization/defaults/form.ts
|
|
566
|
-
var formTranslation = {
|
|
567
|
-
en: {
|
|
568
|
-
add: "Add",
|
|
569
|
-
all: "All",
|
|
570
|
-
apply: "Apply",
|
|
571
|
-
back: "Back",
|
|
572
|
-
cancel: "Cancel",
|
|
573
|
-
change: "Change",
|
|
574
|
-
clear: "Clear",
|
|
575
|
-
click: "Click",
|
|
576
|
-
clickToCopy: "Click to Copy",
|
|
577
|
-
close: "Close",
|
|
578
|
-
confirm: "Confirm",
|
|
579
|
-
copy: "Copy",
|
|
580
|
-
copied: "Copied",
|
|
581
|
-
create: "Create",
|
|
582
|
-
decline: "Decline",
|
|
583
|
-
delete: "Delete",
|
|
584
|
-
discard: "Discard",
|
|
585
|
-
discardChanges: "Discard Changes",
|
|
586
|
-
done: "Done",
|
|
587
|
-
edit: "Edit",
|
|
588
|
-
enterText: "Enter text here",
|
|
589
|
-
error: "Error",
|
|
590
|
-
exit: "Exit",
|
|
591
|
-
fieldRequiredError: "This field is required.",
|
|
592
|
-
invalidEmailError: "Please enter a valid email address.",
|
|
593
|
-
less: "Less",
|
|
594
|
-
loading: "Loading",
|
|
595
|
-
maxLengthError: "Maximum length exceeded.",
|
|
596
|
-
minLengthError: "Minimum length not met.",
|
|
597
|
-
more: "More",
|
|
598
|
-
next: "Next",
|
|
599
|
-
no: "No",
|
|
600
|
-
none: "None",
|
|
601
|
-
of: "of",
|
|
602
|
-
optional: "Optional",
|
|
603
|
-
pleaseWait: "Please wait...",
|
|
604
|
-
previous: "Previous",
|
|
605
|
-
remove: "Remove",
|
|
606
|
-
required: "Required",
|
|
607
|
-
reset: "Reset",
|
|
608
|
-
save: "Save",
|
|
609
|
-
saved: "Saved",
|
|
610
|
-
search: "Search",
|
|
611
|
-
select: "Select",
|
|
612
|
-
selectOption: "Select an option",
|
|
613
|
-
show: "Show",
|
|
614
|
-
showMore: "Show more",
|
|
615
|
-
showLess: "Show less",
|
|
616
|
-
submit: "Submit",
|
|
617
|
-
success: "Success",
|
|
618
|
-
update: "Update",
|
|
619
|
-
unsavedChanges: "Unsaved Changes",
|
|
620
|
-
unsavedChangesSaveQuestion: "Do you want to save your changes?",
|
|
621
|
-
yes: "Yes"
|
|
622
|
-
},
|
|
623
|
-
de: {
|
|
624
|
-
add: "Hinzuf\xFCgen",
|
|
625
|
-
all: "Alle",
|
|
626
|
-
apply: "Anwenden",
|
|
627
|
-
back: "Zur\xFCck",
|
|
628
|
-
cancel: "Abbrechen",
|
|
629
|
-
change: "\xC4ndern",
|
|
630
|
-
clear: "L\xF6schen",
|
|
631
|
-
click: "Klicken",
|
|
632
|
-
clickToCopy: "Zum kopieren klicken",
|
|
633
|
-
close: "Schlie\xDFen",
|
|
634
|
-
confirm: "Best\xE4tigen",
|
|
635
|
-
copy: "Kopieren",
|
|
636
|
-
copied: "Kopiert",
|
|
637
|
-
create: "Erstellen",
|
|
638
|
-
decline: "Ablehnen",
|
|
639
|
-
delete: "L\xF6schen",
|
|
640
|
-
discard: "Verwerfen",
|
|
641
|
-
discardChanges: "\xC4nderungen Verwerfen",
|
|
642
|
-
done: "Fertig",
|
|
643
|
-
edit: "Bearbeiten",
|
|
644
|
-
enterText: "Text hier eingeben",
|
|
645
|
-
error: "Fehler",
|
|
646
|
-
exit: "Beenden",
|
|
647
|
-
fieldRequiredError: "Dieses Feld ist erforderlich.",
|
|
648
|
-
invalidEmailError: "Bitte geben Sie eine g\xFCltige E-Mail-Adresse ein.",
|
|
649
|
-
less: "Weniger",
|
|
650
|
-
loading: "L\xE4dt",
|
|
651
|
-
maxLengthError: "Maximale L\xE4nge \xFCberschritten.",
|
|
652
|
-
minLengthError: "Mindestl\xE4nge nicht erreicht.",
|
|
653
|
-
more: "Mehr",
|
|
654
|
-
next: "Weiter",
|
|
655
|
-
no: "Nein",
|
|
656
|
-
none: "Nichts",
|
|
657
|
-
of: "von",
|
|
658
|
-
optional: "Optional",
|
|
659
|
-
pleaseWait: "Bitte warten...",
|
|
660
|
-
previous: "Vorherige",
|
|
661
|
-
remove: "Entfernen",
|
|
662
|
-
required: "Erforderlich",
|
|
663
|
-
reset: "Zur\xFCcksetzen",
|
|
664
|
-
save: "Speichern",
|
|
665
|
-
saved: "Gespeichert",
|
|
666
|
-
search: "Suche",
|
|
667
|
-
select: "Select",
|
|
668
|
-
selectOption: "Option ausw\xE4hlen",
|
|
669
|
-
show: "Anzeigen",
|
|
670
|
-
showMore: "Mehr anzeigen",
|
|
671
|
-
showLess: "Weniger anzeigen",
|
|
672
|
-
submit: "Abschicken",
|
|
673
|
-
success: "Erfolg",
|
|
674
|
-
update: "Update",
|
|
675
|
-
unsavedChanges: "Ungespeicherte \xC4nderungen",
|
|
676
|
-
unsavedChangesSaveQuestion: "M\xF6chtest du die \xC4nderungen speichern?",
|
|
677
|
-
yes: "Ja"
|
|
678
|
-
}
|
|
679
|
-
};
|
|
680
|
-
|
|
681
|
-
// src/components/layout-and-navigation/SearchableList.tsx
|
|
682
|
-
import { jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
683
|
-
var defaultSearchableListTranslation = {
|
|
684
|
-
en: {
|
|
685
|
-
nothingFound: "Nothing found"
|
|
686
|
-
},
|
|
687
|
-
de: {
|
|
688
|
-
nothingFound: "Nichts gefunden"
|
|
689
|
-
}
|
|
690
|
-
};
|
|
691
|
-
var SearchableList = ({
|
|
692
|
-
overwriteTranslation,
|
|
693
|
-
list,
|
|
694
|
-
initialSearch = "",
|
|
695
|
-
searchMapping,
|
|
696
|
-
autoFocus,
|
|
697
|
-
minimumItemsForSearch = 6,
|
|
698
|
-
itemMapper,
|
|
699
|
-
className,
|
|
700
|
-
resultListClassName
|
|
701
|
-
}) => {
|
|
702
|
-
const translation = useTranslation([defaultSearchableListTranslation, formTranslation], overwriteTranslation);
|
|
703
|
-
const { result, hasResult, search, setSearch, updateSearch } = useSearch({ list, initialSearch, searchMapping });
|
|
704
|
-
return /* @__PURE__ */ jsxs3("div", { className: clsx4("flex-col-2", className), children: [
|
|
705
|
-
list.length > minimumItemsForSearch && /* @__PURE__ */ jsxs3("div", { className: "flex-row-2 justify-between items-center", children: [
|
|
706
|
-
/* @__PURE__ */ jsx5(
|
|
707
|
-
Input,
|
|
708
|
-
{
|
|
709
|
-
value: search,
|
|
710
|
-
onChangeText: setSearch,
|
|
711
|
-
placeholder: translation("search"),
|
|
712
|
-
autoFocus,
|
|
713
|
-
className: "w-full"
|
|
714
|
-
}
|
|
715
|
-
),
|
|
716
|
-
/* @__PURE__ */ jsx5(IconButton, { color: "neutral", onClick: () => updateSearch(), children: /* @__PURE__ */ jsx5(Search, { className: "w-full h-full" }) })
|
|
717
|
-
] }),
|
|
718
|
-
hasResult ? /* @__PURE__ */ jsx5("div", { className: clsx4("flex-col-1 overflow-y-auto", resultListClassName), children: result.map(itemMapper) }) : /* @__PURE__ */ jsx5("div", { className: "flex-row-2 text-description py-2 px-2", children: translation("nothingFound") })
|
|
719
|
-
] });
|
|
720
|
-
};
|
|
721
|
-
export {
|
|
722
|
-
SearchableList
|
|
723
|
-
};
|
|
724
|
-
//# sourceMappingURL=SearchableList.mjs.map
|