@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
|
@@ -93,13 +93,13 @@ var SolidButton = forwardRef(function SolidButton2({
|
|
|
93
93
|
}
|
|
94
94
|
);
|
|
95
95
|
});
|
|
96
|
-
var IconButton = ({
|
|
96
|
+
var IconButton = forwardRef(function IconButton2({
|
|
97
97
|
children,
|
|
98
98
|
color = "primary",
|
|
99
99
|
size = "medium",
|
|
100
100
|
className,
|
|
101
101
|
...restProps
|
|
102
|
-
})
|
|
102
|
+
}, ref) {
|
|
103
103
|
const colorClasses = {
|
|
104
104
|
primary: "not-disabled:bg-button-solid-primary-background not-disabled:text-button-solid-primary-text",
|
|
105
105
|
secondary: "not-disabled:bg-button-solid-secondary-background not-disabled:text-button-solid-secondary-text",
|
|
@@ -113,6 +113,7 @@ var IconButton = ({
|
|
|
113
113
|
return /* @__PURE__ */ jsx(
|
|
114
114
|
"button",
|
|
115
115
|
{
|
|
116
|
+
ref,
|
|
116
117
|
className: clsx(
|
|
117
118
|
colorClasses,
|
|
118
119
|
"not-disabled:hover:brightness-90",
|
|
@@ -129,11 +130,11 @@ var IconButton = ({
|
|
|
129
130
|
children
|
|
130
131
|
}
|
|
131
132
|
);
|
|
132
|
-
};
|
|
133
|
+
});
|
|
133
134
|
|
|
134
|
-
// src/components/user-action/Input.tsx
|
|
135
|
-
import { forwardRef as forwardRef2, useEffect as
|
|
136
|
-
import
|
|
135
|
+
// src/components/user-action/input/Input.tsx
|
|
136
|
+
import { forwardRef as forwardRef2, useEffect as useEffect2, useImperativeHandle, useRef, useState as useState2 } from "react";
|
|
137
|
+
import clsx2 from "clsx";
|
|
137
138
|
|
|
138
139
|
// src/hooks/useDelay.ts
|
|
139
140
|
import { useEffect, useState } from "react";
|
|
@@ -175,28 +176,7 @@ function useDelay(options) {
|
|
|
175
176
|
return { restartTimer, clearTimer, hasActiveTimer: !!timer };
|
|
176
177
|
}
|
|
177
178
|
|
|
178
|
-
// src/
|
|
179
|
-
var noop = () => void 0;
|
|
180
|
-
|
|
181
|
-
// src/components/user-action/Label.tsx
|
|
182
|
-
import clsx2 from "clsx";
|
|
183
|
-
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
184
|
-
var styleMapping = {
|
|
185
|
-
labelSmall: "textstyle-label-sm",
|
|
186
|
-
labelMedium: "textstyle-label-md",
|
|
187
|
-
labelBig: "textstyle-label-lg"
|
|
188
|
-
};
|
|
189
|
-
var Label = ({
|
|
190
|
-
children,
|
|
191
|
-
name,
|
|
192
|
-
labelType = "labelSmall",
|
|
193
|
-
className,
|
|
194
|
-
...props
|
|
195
|
-
}) => {
|
|
196
|
-
return /* @__PURE__ */ jsx2("label", { ...props, className: clsx2(styleMapping[labelType], className), children: children ? children : name });
|
|
197
|
-
};
|
|
198
|
-
|
|
199
|
-
// src/hooks/useFocusManagement.ts
|
|
179
|
+
// src/hooks/focus/useFocusManagement.ts
|
|
200
180
|
import { useCallback } from "react";
|
|
201
181
|
function useFocusManagement() {
|
|
202
182
|
const getFocusableElements = useCallback(() => {
|
|
@@ -253,167 +233,100 @@ function useFocusManagement() {
|
|
|
253
233
|
};
|
|
254
234
|
}
|
|
255
235
|
|
|
256
|
-
// src/
|
|
257
|
-
import
|
|
258
|
-
var useFocusOnceVisible = (ref, disable = false) => {
|
|
259
|
-
const [hasUsedFocus, setHasUsedFocus] = React.useState(false);
|
|
260
|
-
useEffect2(() => {
|
|
261
|
-
if (disable || hasUsedFocus) {
|
|
262
|
-
return;
|
|
263
|
-
}
|
|
264
|
-
const observer = new IntersectionObserver(([entry]) => {
|
|
265
|
-
if (entry.isIntersecting && !hasUsedFocus) {
|
|
266
|
-
ref.current?.focus();
|
|
267
|
-
setHasUsedFocus(hasUsedFocus);
|
|
268
|
-
}
|
|
269
|
-
}, {
|
|
270
|
-
threshold: 0.1
|
|
271
|
-
});
|
|
272
|
-
if (ref.current) {
|
|
273
|
-
observer.observe(ref.current);
|
|
274
|
-
}
|
|
275
|
-
return () => observer.disconnect();
|
|
276
|
-
}, [disable, hasUsedFocus, ref]);
|
|
277
|
-
};
|
|
278
|
-
|
|
279
|
-
// src/components/user-action/Input.tsx
|
|
280
|
-
import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
281
|
-
var getInputClassName = ({ disabled = false, hasError = false }) => {
|
|
282
|
-
return clsx3(
|
|
283
|
-
"px-2 py-1.5 rounded-md border-2",
|
|
284
|
-
{
|
|
285
|
-
"bg-input-background text-input-text hover:border-primary focus:border-primary": !disabled && !hasError,
|
|
286
|
-
"bg-on-negative text-negative border-negative-border hover:border-negative-border-hover": !disabled && hasError,
|
|
287
|
-
"bg-disabled-background text-disabled-text border-disabled-border": disabled
|
|
288
|
-
}
|
|
289
|
-
);
|
|
290
|
-
};
|
|
236
|
+
// src/components/user-action/input/Input.tsx
|
|
237
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
291
238
|
var defaultEditCompleteOptions = {
|
|
239
|
+
allowEnterComplete: false,
|
|
292
240
|
onBlur: true,
|
|
293
241
|
afterDelay: true,
|
|
294
242
|
delay: 2500
|
|
295
243
|
};
|
|
296
244
|
var Input = forwardRef2(function Input2({
|
|
297
|
-
id,
|
|
298
|
-
type = "text",
|
|
299
245
|
value,
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
onChangeText = noop,
|
|
246
|
+
onChange,
|
|
247
|
+
onChangeText,
|
|
303
248
|
onEditCompleted,
|
|
304
|
-
className = "",
|
|
305
|
-
allowEnterComplete = true,
|
|
306
|
-
expanded = true,
|
|
307
|
-
autoFocus = false,
|
|
308
|
-
onBlur,
|
|
309
249
|
editCompleteOptions,
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
250
|
+
disabled = false,
|
|
251
|
+
invalid = false,
|
|
252
|
+
defaultStyle = true,
|
|
253
|
+
className,
|
|
254
|
+
...props
|
|
313
255
|
}, forwardedRef) {
|
|
314
|
-
const {
|
|
256
|
+
const {
|
|
257
|
+
onBlur: allowEditCompleteOnBlur,
|
|
258
|
+
afterDelay,
|
|
259
|
+
delay,
|
|
260
|
+
allowEnterComplete
|
|
261
|
+
} = { ...defaultEditCompleteOptions, ...editCompleteOptions };
|
|
315
262
|
const {
|
|
316
263
|
restartTimer,
|
|
317
264
|
clearTimer
|
|
318
265
|
} = useDelay({ delay, disabled: !afterDelay });
|
|
319
266
|
const innerRef = useRef(null);
|
|
320
|
-
const { focusNext } = useFocusManagement();
|
|
321
|
-
useFocusOnceVisible(innerRef, !autoFocus);
|
|
322
267
|
useImperativeHandle(forwardedRef, () => innerRef.current);
|
|
323
|
-
const
|
|
324
|
-
|
|
325
|
-
e.preventDefault();
|
|
326
|
-
innerRef.current?.blur();
|
|
327
|
-
focusNext();
|
|
328
|
-
}
|
|
329
|
-
};
|
|
330
|
-
return /* @__PURE__ */ jsxs2("div", { className: clsx3({ "w-full": expanded }, containerClassName), children: [
|
|
331
|
-
label && /* @__PURE__ */ jsx3(Label, { ...label, htmlFor: id, className: clsx3("mb-1", label.className) }),
|
|
332
|
-
/* @__PURE__ */ jsx3(
|
|
333
|
-
"input",
|
|
334
|
-
{
|
|
335
|
-
...restProps,
|
|
336
|
-
ref: innerRef,
|
|
337
|
-
value,
|
|
338
|
-
id,
|
|
339
|
-
type,
|
|
340
|
-
disabled,
|
|
341
|
-
className: clsx3(getInputClassName({ disabled }), className),
|
|
342
|
-
onKeyDown: allowEnterComplete ? handleKeyDown : void 0,
|
|
343
|
-
onBlur: (event) => {
|
|
344
|
-
onBlur?.(event);
|
|
345
|
-
if (onEditCompleted && allowEditCompleteOnBlur) {
|
|
346
|
-
onEditCompleted(event.target.value);
|
|
347
|
-
clearTimer();
|
|
348
|
-
}
|
|
349
|
-
},
|
|
350
|
-
onChange: (e) => {
|
|
351
|
-
const value2 = e.target.value;
|
|
352
|
-
if (onEditCompleted) {
|
|
353
|
-
restartTimer(() => {
|
|
354
|
-
if (innerRef.current) {
|
|
355
|
-
innerRef.current.blur();
|
|
356
|
-
if (!allowEditCompleteOnBlur) {
|
|
357
|
-
onEditCompleted(value2);
|
|
358
|
-
}
|
|
359
|
-
} else {
|
|
360
|
-
onEditCompleted(value2);
|
|
361
|
-
}
|
|
362
|
-
});
|
|
363
|
-
}
|
|
364
|
-
onChange(e);
|
|
365
|
-
onChangeText(value2);
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
)
|
|
369
|
-
] });
|
|
370
|
-
});
|
|
371
|
-
var FormInput = forwardRef2(function FormInput2({
|
|
372
|
-
id,
|
|
373
|
-
labelText,
|
|
374
|
-
errorText,
|
|
375
|
-
className,
|
|
376
|
-
labelClassName,
|
|
377
|
-
errorClassName,
|
|
378
|
-
containerClassName,
|
|
379
|
-
required,
|
|
380
|
-
disabled,
|
|
381
|
-
...restProps
|
|
382
|
-
}, ref) {
|
|
383
|
-
const input = /* @__PURE__ */ jsx3(
|
|
268
|
+
const { focusNext } = useFocusManagement();
|
|
269
|
+
return /* @__PURE__ */ jsx2(
|
|
384
270
|
"input",
|
|
385
271
|
{
|
|
386
|
-
...
|
|
387
|
-
ref,
|
|
388
|
-
|
|
272
|
+
...props,
|
|
273
|
+
ref: innerRef,
|
|
274
|
+
value,
|
|
389
275
|
disabled,
|
|
390
|
-
className:
|
|
391
|
-
|
|
276
|
+
className: defaultStyle ? clsx2(
|
|
277
|
+
"px-2.5 py-1.75 rounded-md border-1 text-sm",
|
|
278
|
+
{
|
|
279
|
+
"bg-input-background text-input-text hover:border-primary focus:border-primary": !disabled && !invalid,
|
|
280
|
+
"bg-on-negative text-negative border-negative-border hover:border-negative-border-hover focus-visible:ring-negative-border": !disabled && invalid,
|
|
281
|
+
"bg-disabled-background text-disabled-text border-disabled-border": disabled
|
|
282
|
+
},
|
|
392
283
|
className
|
|
393
|
-
)
|
|
284
|
+
) : className,
|
|
285
|
+
onKeyDown: (event) => {
|
|
286
|
+
props.onKeyDown?.(event);
|
|
287
|
+
if (!allowEnterComplete) {
|
|
288
|
+
return;
|
|
289
|
+
}
|
|
290
|
+
if (event.key === "Enter" && !event.shiftKey) {
|
|
291
|
+
event.preventDefault();
|
|
292
|
+
innerRef.current?.blur();
|
|
293
|
+
onEditCompleted?.(event.target.value);
|
|
294
|
+
focusNext();
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
onBlur: (event) => {
|
|
298
|
+
props.onBlur?.(event);
|
|
299
|
+
if (allowEditCompleteOnBlur) {
|
|
300
|
+
onEditCompleted?.(event.target.value);
|
|
301
|
+
clearTimer();
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
onChange: (event) => {
|
|
305
|
+
onChange?.(event);
|
|
306
|
+
const value2 = event.target.value;
|
|
307
|
+
restartTimer(() => {
|
|
308
|
+
innerRef.current?.blur();
|
|
309
|
+
onEditCompleted?.(value2);
|
|
310
|
+
});
|
|
311
|
+
onChangeText?.(value2);
|
|
312
|
+
},
|
|
313
|
+
"aria-invalid": props["aria-invalid"] ?? invalid,
|
|
314
|
+
"aria-disabled": props["aria-disabled"] ?? disabled
|
|
394
315
|
}
|
|
395
316
|
);
|
|
396
|
-
return /* @__PURE__ */ jsxs2("div", { className: clsx3("flex flex-col gap-y-1", containerClassName), children: [
|
|
397
|
-
labelText && /* @__PURE__ */ jsxs2("label", { htmlFor: id, className: clsx3("textstyle-label-md", labelClassName), children: [
|
|
398
|
-
labelText,
|
|
399
|
-
required && /* @__PURE__ */ jsx3("span", { className: "text-primary font-bold", children: "*" })
|
|
400
|
-
] }),
|
|
401
|
-
input,
|
|
402
|
-
errorText && /* @__PURE__ */ jsx3("label", { htmlFor: id, className: clsx3("text-negative", errorClassName), children: errorText })
|
|
403
|
-
] });
|
|
404
317
|
});
|
|
405
318
|
|
|
406
319
|
// src/components/table/TableFilterButton.tsx
|
|
407
320
|
import { FilterIcon } from "lucide-react";
|
|
408
321
|
|
|
409
322
|
// src/components/user-action/Menu.tsx
|
|
410
|
-
import { useEffect as
|
|
411
|
-
import
|
|
323
|
+
import { useEffect as useEffect5, useRef as useRef2, useState as useState4 } from "react";
|
|
324
|
+
import clsx3 from "clsx";
|
|
412
325
|
|
|
413
326
|
// src/hooks/useOutsideClick.ts
|
|
414
|
-
import { useEffect as
|
|
327
|
+
import { useEffect as useEffect3 } from "react";
|
|
415
328
|
var useOutsideClick = (refs, handler) => {
|
|
416
|
-
|
|
329
|
+
useEffect3(() => {
|
|
417
330
|
const listener = (event) => {
|
|
418
331
|
if (event.target === null) return;
|
|
419
332
|
if (refs.some((ref) => !ref.current || ref.current.contains(event.target))) {
|
|
@@ -431,7 +344,7 @@ var useOutsideClick = (refs, handler) => {
|
|
|
431
344
|
};
|
|
432
345
|
|
|
433
346
|
// src/hooks/useHoverState.ts
|
|
434
|
-
import { useEffect as
|
|
347
|
+
import { useEffect as useEffect4, useState as useState3 } from "react";
|
|
435
348
|
var defaultUseHoverStateProps = {
|
|
436
349
|
closingDelay: 200,
|
|
437
350
|
isDisabled: false
|
|
@@ -455,14 +368,14 @@ var useHoverState = (props = void 0) => {
|
|
|
455
368
|
setIsHovered(false);
|
|
456
369
|
}, closingDelay));
|
|
457
370
|
};
|
|
458
|
-
|
|
371
|
+
useEffect4(() => {
|
|
459
372
|
if (timer) {
|
|
460
373
|
return () => {
|
|
461
374
|
clearTimeout(timer);
|
|
462
375
|
};
|
|
463
376
|
}
|
|
464
377
|
});
|
|
465
|
-
|
|
378
|
+
useEffect4(() => {
|
|
466
379
|
if (timer) {
|
|
467
380
|
clearTimeout(timer);
|
|
468
381
|
}
|
|
@@ -474,7 +387,7 @@ var useHoverState = (props = void 0) => {
|
|
|
474
387
|
};
|
|
475
388
|
};
|
|
476
389
|
|
|
477
|
-
// src/
|
|
390
|
+
// src/utils/bagFunctions.ts
|
|
478
391
|
var resolve = (children, bag) => {
|
|
479
392
|
if (typeof children === "function") {
|
|
480
393
|
return children(bag);
|
|
@@ -541,7 +454,7 @@ var usePopoverPosition = (trigger, options) => {
|
|
|
541
454
|
|
|
542
455
|
// src/components/user-action/Menu.tsx
|
|
543
456
|
import { createPortal } from "react-dom";
|
|
544
|
-
import { Fragment, jsx as
|
|
457
|
+
import { Fragment, jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
545
458
|
function getScrollableParents(element) {
|
|
546
459
|
const scrollables = [];
|
|
547
460
|
let parent = element.parentElement;
|
|
@@ -575,7 +488,7 @@ var Menu = ({
|
|
|
575
488
|
triggerRef.current?.getBoundingClientRect(),
|
|
576
489
|
{ verticalAlignment: alignmentVertical, horizontalAlignment: alignmentHorizontal, disabled }
|
|
577
490
|
);
|
|
578
|
-
|
|
491
|
+
useEffect5(() => {
|
|
579
492
|
if (!isOpen) return;
|
|
580
493
|
const triggerEl = triggerRef.current;
|
|
581
494
|
if (!triggerEl) return;
|
|
@@ -592,19 +505,19 @@ var Menu = ({
|
|
|
592
505
|
window.removeEventListener("resize", close);
|
|
593
506
|
};
|
|
594
507
|
}, [isOpen, setIsOpen]);
|
|
595
|
-
|
|
508
|
+
useEffect5(() => {
|
|
596
509
|
if (isOpen) {
|
|
597
510
|
setIsHidden(false);
|
|
598
511
|
}
|
|
599
512
|
}, [isOpen]);
|
|
600
|
-
return /* @__PURE__ */
|
|
513
|
+
return /* @__PURE__ */ jsxs2(Fragment, { children: [
|
|
601
514
|
trigger(bag, triggerRef),
|
|
602
|
-
createPortal(/* @__PURE__ */
|
|
515
|
+
createPortal(/* @__PURE__ */ jsx3(
|
|
603
516
|
"div",
|
|
604
517
|
{
|
|
605
518
|
ref: menuRef,
|
|
606
519
|
onClick: (e) => e.stopPropagation(),
|
|
607
|
-
className:
|
|
520
|
+
className: clsx3(
|
|
608
521
|
"absolute rounded-md bg-menu-background text-menu-text shadow-around-lg shadow-strong z-[300]",
|
|
609
522
|
{
|
|
610
523
|
"animate-pop-in": isOpen,
|
|
@@ -628,7 +541,7 @@ var Menu = ({
|
|
|
628
541
|
};
|
|
629
542
|
|
|
630
543
|
// src/localization/LanguageProvider.tsx
|
|
631
|
-
import { createContext, useContext, useEffect as
|
|
544
|
+
import { createContext, useContext, useEffect as useEffect6, useState as useState6 } from "react";
|
|
632
545
|
|
|
633
546
|
// src/hooks/useLocalStorage.ts
|
|
634
547
|
import { useCallback as useCallback2, useState as useState5 } from "react";
|
|
@@ -647,7 +560,7 @@ var LanguageUtil = {
|
|
|
647
560
|
};
|
|
648
561
|
|
|
649
562
|
// src/localization/LanguageProvider.tsx
|
|
650
|
-
import { jsx as
|
|
563
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
651
564
|
var LanguageContext = createContext({
|
|
652
565
|
language: LanguageUtil.DEFAULT_LANGUAGE,
|
|
653
566
|
setLanguage: (v) => v
|
|
@@ -750,6 +663,7 @@ var formTranslation = {
|
|
|
750
663
|
next: "Next",
|
|
751
664
|
no: "No",
|
|
752
665
|
none: "None",
|
|
666
|
+
nothingFound: "Nothing found",
|
|
753
667
|
of: "of",
|
|
754
668
|
optional: "Optional",
|
|
755
669
|
pleaseWait: "Please wait...",
|
|
@@ -806,6 +720,7 @@ var formTranslation = {
|
|
|
806
720
|
next: "Weiter",
|
|
807
721
|
no: "Nein",
|
|
808
722
|
none: "Nichts",
|
|
723
|
+
nothingFound: "Nichts gefunden",
|
|
809
724
|
of: "von",
|
|
810
725
|
optional: "Optional",
|
|
811
726
|
pleaseWait: "Bitte warten...",
|
|
@@ -831,8 +746,8 @@ var formTranslation = {
|
|
|
831
746
|
};
|
|
832
747
|
|
|
833
748
|
// src/components/table/TableFilterButton.tsx
|
|
834
|
-
import { useEffect as
|
|
835
|
-
import { Fragment as Fragment2, jsx as
|
|
749
|
+
import { useEffect as useEffect7, useState as useState7 } from "react";
|
|
750
|
+
import { Fragment as Fragment2, jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
836
751
|
var defaultTableFilterTranslation = {
|
|
837
752
|
en: {
|
|
838
753
|
filter: "Filter",
|
|
@@ -859,15 +774,15 @@ var TableFilterButton = ({
|
|
|
859
774
|
const columnFilterValue = column.getFilterValue();
|
|
860
775
|
const [filterValue, setFilterValue] = useState7(columnFilterValue);
|
|
861
776
|
const hasFilter = !!filterValue;
|
|
862
|
-
|
|
777
|
+
useEffect7(() => {
|
|
863
778
|
setFilterValue(columnFilterValue);
|
|
864
779
|
}, [columnFilterValue]);
|
|
865
|
-
return /* @__PURE__ */
|
|
780
|
+
return /* @__PURE__ */ jsx5(
|
|
866
781
|
Menu,
|
|
867
782
|
{
|
|
868
|
-
trigger: ({ toggleOpen }, ref) => /* @__PURE__ */
|
|
869
|
-
/* @__PURE__ */
|
|
870
|
-
hasFilter && /* @__PURE__ */
|
|
783
|
+
trigger: ({ toggleOpen }, ref) => /* @__PURE__ */ jsxs3("div", { ref, className: "relative", children: [
|
|
784
|
+
/* @__PURE__ */ jsx5(IconButton, { color: "neutral", size: "tiny", onClick: toggleOpen, children: /* @__PURE__ */ jsx5(FilterIcon, {}) }),
|
|
785
|
+
hasFilter && /* @__PURE__ */ jsx5(
|
|
871
786
|
"div",
|
|
872
787
|
{
|
|
873
788
|
className: "absolute top-0.5 right-0.5 w-2 h-2 rounded-full bg-primary pointer-events-none",
|
|
@@ -875,9 +790,9 @@ var TableFilterButton = ({
|
|
|
875
790
|
}
|
|
876
791
|
)
|
|
877
792
|
] }),
|
|
878
|
-
children: ({ close }) => /* @__PURE__ */
|
|
879
|
-
/* @__PURE__ */
|
|
880
|
-
filterType === "text" && /* @__PURE__ */
|
|
793
|
+
children: ({ close }) => /* @__PURE__ */ jsxs3("div", { className: "flex-col-1 p-2 items-start font-normal text-menu-text", children: [
|
|
794
|
+
/* @__PURE__ */ jsx5("h4", { className: "typography-label-md-semibold", children: translation("filter") }),
|
|
795
|
+
filterType === "text" && /* @__PURE__ */ jsx5(
|
|
881
796
|
Input,
|
|
882
797
|
{
|
|
883
798
|
value: filterValue ?? "",
|
|
@@ -887,8 +802,8 @@ var TableFilterButton = ({
|
|
|
887
802
|
className: "h-10"
|
|
888
803
|
}
|
|
889
804
|
),
|
|
890
|
-
filterType === "range" && /* @__PURE__ */
|
|
891
|
-
/* @__PURE__ */
|
|
805
|
+
filterType === "range" && /* @__PURE__ */ jsxs3("div", { className: "flex-row-2 items-center", children: [
|
|
806
|
+
/* @__PURE__ */ jsx5(
|
|
892
807
|
Input,
|
|
893
808
|
{
|
|
894
809
|
value: filterValue?.[0] ?? "",
|
|
@@ -901,8 +816,8 @@ var TableFilterButton = ({
|
|
|
901
816
|
className: "h-10 input-indicator-hidden w-40"
|
|
902
817
|
}
|
|
903
818
|
),
|
|
904
|
-
/* @__PURE__ */
|
|
905
|
-
/* @__PURE__ */
|
|
819
|
+
/* @__PURE__ */ jsx5("span", { className: "font-bold", children: "-" }),
|
|
820
|
+
/* @__PURE__ */ jsx5(
|
|
906
821
|
Input,
|
|
907
822
|
{
|
|
908
823
|
value: filterValue?.[1] ?? "",
|
|
@@ -916,8 +831,8 @@ var TableFilterButton = ({
|
|
|
916
831
|
}
|
|
917
832
|
)
|
|
918
833
|
] }),
|
|
919
|
-
filterType === "dateRange" && /* @__PURE__ */
|
|
920
|
-
/* @__PURE__ */
|
|
834
|
+
filterType === "dateRange" && /* @__PURE__ */ jsxs3(Fragment2, { children: [
|
|
835
|
+
/* @__PURE__ */ jsx5(
|
|
921
836
|
Input,
|
|
922
837
|
{
|
|
923
838
|
value: filterValue?.[0] ? filterValue?.[0].toISOString().slice(0, 16) : "",
|
|
@@ -930,7 +845,7 @@ var TableFilterButton = ({
|
|
|
930
845
|
className: "h-10 w-50"
|
|
931
846
|
}
|
|
932
847
|
),
|
|
933
|
-
/* @__PURE__ */
|
|
848
|
+
/* @__PURE__ */ jsx5(
|
|
934
849
|
Input,
|
|
935
850
|
{
|
|
936
851
|
value: filterValue?.[1] ? filterValue?.[1].toISOString().slice(0, 16) : "",
|
|
@@ -944,12 +859,12 @@ var TableFilterButton = ({
|
|
|
944
859
|
}
|
|
945
860
|
)
|
|
946
861
|
] }),
|
|
947
|
-
/* @__PURE__ */
|
|
948
|
-
hasFilter && /* @__PURE__ */
|
|
862
|
+
/* @__PURE__ */ jsxs3("div", { className: "flex-row-2 justify-end w-full", children: [
|
|
863
|
+
hasFilter && /* @__PURE__ */ jsx5(SolidButton, { color: "negative", size: "small", onClick: () => {
|
|
949
864
|
column.setFilterValue(void 0);
|
|
950
865
|
close();
|
|
951
866
|
}, children: translation("remove") }),
|
|
952
|
-
/* @__PURE__ */
|
|
867
|
+
/* @__PURE__ */ jsx5(SolidButton, { size: "small", onClick: () => {
|
|
953
868
|
column.setFilterValue(filterValue);
|
|
954
869
|
close();
|
|
955
870
|
}, children: translation("apply") })
|