@helpwave/hightide 0.1.24 → 0.1.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/components/branding/HelpwaveBadge.d.mts +4 -5
- package/dist/components/branding/HelpwaveBadge.d.ts +4 -5
- package/dist/components/branding/HelpwaveBadge.js +46 -87
- package/dist/components/branding/HelpwaveBadge.js.map +1 -1
- package/dist/components/branding/HelpwaveBadge.mjs +46 -89
- package/dist/components/branding/HelpwaveBadge.mjs.map +1 -1
- package/dist/components/date/DatePicker.d.mts +1 -1
- package/dist/components/date/DatePicker.d.ts +1 -1
- package/dist/components/date/DatePicker.js +106 -60
- package/dist/components/date/DatePicker.js.map +1 -1
- package/dist/components/date/DatePicker.mjs +107 -61
- package/dist/components/date/DatePicker.mjs.map +1 -1
- package/dist/components/date/DayPicker.d.mts +1 -1
- package/dist/components/date/DayPicker.d.ts +1 -1
- package/dist/components/date/DayPicker.js +3 -3
- package/dist/components/date/DayPicker.js.map +1 -1
- package/dist/components/date/DayPicker.mjs +3 -3
- package/dist/components/date/DayPicker.mjs.map +1 -1
- package/dist/components/date/TimeDisplay.js.map +1 -1
- package/dist/components/date/TimeDisplay.mjs.map +1 -1
- package/dist/components/date/TimePicker.js +2 -2
- package/dist/components/date/TimePicker.js.map +1 -1
- package/dist/components/date/TimePicker.mjs +2 -2
- package/dist/components/date/TimePicker.mjs.map +1 -1
- package/dist/components/date/YearMonthPicker.js +84 -36
- package/dist/components/date/YearMonthPicker.js.map +1 -1
- package/dist/components/date/YearMonthPicker.mjs +85 -37
- package/dist/components/date/YearMonthPicker.mjs.map +1 -1
- package/dist/components/{dialogs → dialog}/ConfirmDialog.d.mts +9 -8
- package/dist/components/{dialogs → dialog}/ConfirmDialog.d.ts +9 -8
- package/dist/components/dialog/ConfirmDialog.js +938 -0
- package/dist/components/dialog/ConfirmDialog.js.map +1 -0
- package/dist/components/dialog/ConfirmDialog.mjs +902 -0
- package/dist/components/dialog/ConfirmDialog.mjs.map +1 -0
- package/dist/components/dialog/Dialog.d.mts +27 -0
- package/dist/components/dialog/Dialog.d.ts +27 -0
- package/dist/components/dialog/Dialog.js +879 -0
- package/dist/components/dialog/Dialog.js.map +1 -0
- package/dist/components/dialog/Dialog.mjs +845 -0
- package/dist/components/dialog/Dialog.mjs.map +1 -0
- package/dist/components/dialog/DiscardChangesDialog.d.mts +24 -0
- package/dist/components/dialog/DiscardChangesDialog.d.ts +24 -0
- package/dist/components/dialog/DiscardChangesDialog.js +966 -0
- package/dist/components/dialog/DiscardChangesDialog.js.map +1 -0
- package/dist/components/dialog/DiscardChangesDialog.mjs +930 -0
- package/dist/components/dialog/DiscardChangesDialog.mjs.map +1 -0
- package/dist/components/dialog/InputDialog.d.mts +22 -0
- package/dist/components/dialog/InputDialog.d.ts +22 -0
- package/dist/components/dialog/InputDialog.js +1139 -0
- package/dist/components/dialog/InputDialog.js.map +1 -0
- package/dist/components/dialog/InputDialog.mjs +1103 -0
- package/dist/components/dialog/InputDialog.mjs.map +1 -0
- package/dist/components/dialog/LanguageDialog.d.mts +25 -0
- package/dist/components/dialog/LanguageDialog.d.ts +25 -0
- package/dist/components/dialog/LanguageDialog.js +1684 -0
- package/dist/components/dialog/LanguageDialog.js.map +1 -0
- package/dist/components/dialog/LanguageDialog.mjs +1658 -0
- package/dist/components/dialog/LanguageDialog.mjs.map +1 -0
- package/dist/components/dialog/ThemeDialog.d.mts +26 -0
- package/dist/components/dialog/ThemeDialog.d.ts +26 -0
- package/dist/components/dialog/ThemeDialog.js +1715 -0
- package/dist/components/dialog/ThemeDialog.js.map +1 -0
- package/dist/components/dialog/ThemeDialog.mjs +1689 -0
- package/dist/components/dialog/ThemeDialog.mjs.map +1 -0
- package/dist/components/dialog/index.d.mts +17 -0
- package/dist/components/dialog/index.d.ts +17 -0
- package/dist/components/dialog/index.js +2062 -0
- package/dist/components/dialog/index.js.map +1 -0
- package/dist/components/dialog/index.mjs +2031 -0
- package/dist/components/dialog/index.mjs.map +1 -0
- package/dist/components/form/FormElementWrapper.d.mts +29 -0
- package/dist/components/form/FormElementWrapper.d.ts +29 -0
- package/dist/components/form/FormElementWrapper.js +98 -0
- package/dist/components/form/FormElementWrapper.js.map +1 -0
- package/dist/components/form/FormElementWrapper.mjs +64 -0
- package/dist/components/form/FormElementWrapper.mjs.map +1 -0
- package/dist/components/icons-and-geometry/Avatar.js +498 -2886
- package/dist/components/icons-and-geometry/Avatar.js.map +1 -1
- package/dist/components/icons-and-geometry/Avatar.mjs +490 -2878
- package/dist/components/icons-and-geometry/Avatar.mjs.map +1 -1
- package/dist/components/icons-and-geometry/{Helpwave.d.mts → HelpwaveLogo.d.mts} +3 -3
- package/dist/components/icons-and-geometry/{Helpwave.d.ts → HelpwaveLogo.d.ts} +3 -3
- package/dist/components/icons-and-geometry/{Helpwave.js → HelpwaveLogo.js} +21 -22
- package/dist/components/icons-and-geometry/HelpwaveLogo.js.map +1 -0
- package/dist/components/icons-and-geometry/{Helpwave.mjs → HelpwaveLogo.mjs} +17 -18
- package/dist/components/icons-and-geometry/HelpwaveLogo.mjs.map +1 -0
- package/dist/components/icons-and-geometry/Ring.js +1 -1
- package/dist/components/icons-and-geometry/Ring.js.map +1 -1
- package/dist/components/icons-and-geometry/Ring.mjs +1 -1
- package/dist/components/icons-and-geometry/Ring.mjs.map +1 -1
- package/dist/components/icons-and-geometry/Tag.js +8 -20
- package/dist/components/icons-and-geometry/Tag.js.map +1 -1
- package/dist/components/icons-and-geometry/Tag.mjs +8 -20
- package/dist/components/icons-and-geometry/Tag.mjs.map +1 -1
- package/dist/components/layout-and-navigation/BreadCrumb.js +667 -22
- package/dist/components/layout-and-navigation/BreadCrumb.js.map +1 -1
- package/dist/components/layout-and-navigation/BreadCrumb.mjs +667 -22
- package/dist/components/layout-and-navigation/BreadCrumb.mjs.map +1 -1
- package/dist/components/layout-and-navigation/Carousel.js +52 -53
- package/dist/components/layout-and-navigation/Carousel.js.map +1 -1
- package/dist/components/layout-and-navigation/Carousel.mjs +52 -53
- package/dist/components/layout-and-navigation/Carousel.mjs.map +1 -1
- package/dist/components/layout-and-navigation/Chip.d.mts +8 -5
- package/dist/components/layout-and-navigation/Chip.d.ts +8 -5
- package/dist/components/layout-and-navigation/Chip.js +17 -4
- package/dist/components/layout-and-navigation/Chip.js.map +1 -1
- package/dist/components/layout-and-navigation/Chip.mjs +17 -4
- package/dist/components/layout-and-navigation/Chip.mjs.map +1 -1
- package/dist/components/layout-and-navigation/Expandable.d.mts +13 -10
- package/dist/components/layout-and-navigation/Expandable.d.ts +13 -10
- package/dist/components/layout-and-navigation/Expandable.js +18 -5
- package/dist/components/layout-and-navigation/Expandable.js.map +1 -1
- package/dist/components/layout-and-navigation/Expandable.mjs +19 -6
- package/dist/components/layout-and-navigation/Expandable.mjs.map +1 -1
- package/dist/components/layout-and-navigation/FAQSection.js +21 -8
- package/dist/components/layout-and-navigation/FAQSection.js.map +1 -1
- package/dist/components/layout-and-navigation/FAQSection.mjs +22 -9
- package/dist/components/layout-and-navigation/FAQSection.mjs.map +1 -1
- package/dist/components/layout-and-navigation/FloatingContainer.d.mts +38 -0
- package/dist/components/layout-and-navigation/FloatingContainer.d.ts +38 -0
- package/dist/components/layout-and-navigation/FloatingContainer.js +219 -0
- package/dist/components/layout-and-navigation/FloatingContainer.js.map +1 -0
- package/dist/components/layout-and-navigation/FloatingContainer.mjs +195 -0
- package/dist/components/layout-and-navigation/FloatingContainer.mjs.map +1 -0
- package/dist/components/layout-and-navigation/ListBox.d.mts +44 -0
- package/dist/components/layout-and-navigation/ListBox.d.ts +44 -0
- package/dist/components/layout-and-navigation/ListBox.js +329 -0
- package/dist/components/layout-and-navigation/ListBox.js.map +1 -0
- package/dist/components/layout-and-navigation/ListBox.mjs +290 -0
- package/dist/components/layout-and-navigation/ListBox.mjs.map +1 -0
- package/dist/components/layout-and-navigation/Pagination.js +142 -230
- package/dist/components/layout-and-navigation/Pagination.js.map +1 -1
- package/dist/components/layout-and-navigation/Pagination.mjs +137 -225
- package/dist/components/layout-and-navigation/Pagination.mjs.map +1 -1
- package/dist/components/layout-and-navigation/ScrollArea.d.mts +15 -0
- package/dist/components/layout-and-navigation/ScrollArea.d.ts +15 -0
- package/dist/components/layout-and-navigation/ScrollArea.js +1252 -0
- package/dist/components/layout-and-navigation/ScrollArea.js.map +1 -0
- package/dist/components/layout-and-navigation/ScrollArea.mjs +1216 -0
- package/dist/components/layout-and-navigation/ScrollArea.mjs.map +1 -0
- package/dist/components/layout-and-navigation/StepperBar.js +67 -30
- package/dist/components/layout-and-navigation/StepperBar.js.map +1 -1
- package/dist/components/layout-and-navigation/StepperBar.mjs +67 -30
- package/dist/components/layout-and-navigation/StepperBar.mjs.map +1 -1
- package/dist/components/layout-and-navigation/TextImage.js +3 -1
- package/dist/components/layout-and-navigation/TextImage.js.map +1 -1
- package/dist/components/layout-and-navigation/TextImage.mjs +3 -1
- package/dist/components/layout-and-navigation/TextImage.mjs.map +1 -1
- package/dist/components/loading-states/ErrorComponent.js.map +1 -1
- package/dist/components/loading-states/ErrorComponent.mjs.map +1 -1
- package/dist/components/loading-states/LoadingAndErrorComponent.d.mts +1 -1
- package/dist/components/loading-states/LoadingAndErrorComponent.d.ts +1 -1
- package/dist/components/loading-states/LoadingAnimation.js +18 -17
- package/dist/components/loading-states/LoadingAnimation.js.map +1 -1
- package/dist/components/loading-states/LoadingAnimation.mjs +18 -17
- package/dist/components/loading-states/LoadingAnimation.mjs.map +1 -1
- package/dist/components/loading-states/LoadingButton.js +81 -47
- package/dist/components/loading-states/LoadingButton.js.map +1 -1
- package/dist/components/loading-states/LoadingButton.mjs +81 -47
- package/dist/components/loading-states/LoadingButton.mjs.map +1 -1
- package/dist/components/properties/CheckboxProperty.js +929 -153
- package/dist/components/properties/CheckboxProperty.js.map +1 -1
- package/dist/components/properties/CheckboxProperty.mjs +936 -160
- package/dist/components/properties/CheckboxProperty.mjs.map +1 -1
- package/dist/components/properties/DateProperty.js +191 -241
- package/dist/components/properties/DateProperty.js.map +1 -1
- package/dist/components/properties/DateProperty.mjs +184 -234
- package/dist/components/properties/DateProperty.mjs.map +1 -1
- package/dist/components/properties/MultiSelectProperty.d.mts +5 -10
- package/dist/components/properties/MultiSelectProperty.d.ts +5 -10
- package/dist/components/properties/MultiSelectProperty.js +1193 -1189
- package/dist/components/properties/MultiSelectProperty.js.map +1 -1
- package/dist/components/properties/MultiSelectProperty.mjs +1207 -1193
- package/dist/components/properties/MultiSelectProperty.mjs.map +1 -1
- package/dist/components/properties/NumberProperty.js +193 -244
- package/dist/components/properties/NumberProperty.js.map +1 -1
- package/dist/components/properties/NumberProperty.mjs +186 -237
- package/dist/components/properties/NumberProperty.mjs.map +1 -1
- package/dist/components/properties/PropertyBase.js +91 -56
- package/dist/components/properties/PropertyBase.js.map +1 -1
- package/dist/components/properties/PropertyBase.mjs +91 -56
- package/dist/components/properties/PropertyBase.mjs.map +1 -1
- package/dist/components/properties/SelectProperty.d.mts +5 -8
- package/dist/components/properties/SelectProperty.d.ts +5 -8
- package/dist/components/properties/SelectProperty.js +1102 -897
- package/dist/components/properties/SelectProperty.js.map +1 -1
- package/dist/components/properties/SelectProperty.mjs +1107 -892
- package/dist/components/properties/SelectProperty.mjs.map +1 -1
- package/dist/components/properties/TextProperty.js +139 -147
- package/dist/components/properties/TextProperty.js.map +1 -1
- package/dist/components/properties/TextProperty.mjs +142 -150
- package/dist/components/properties/TextProperty.mjs.map +1 -1
- package/dist/components/table/Table.js +1639 -991
- package/dist/components/table/Table.js.map +1 -1
- package/dist/components/table/Table.mjs +1645 -997
- package/dist/components/table/Table.mjs.map +1 -1
- package/dist/components/table/TableFilterButton.js +156 -244
- package/dist/components/table/TableFilterButton.js.map +1 -1
- package/dist/components/table/TableFilterButton.mjs +145 -233
- package/dist/components/table/TableFilterButton.mjs.map +1 -1
- package/dist/components/table/TableSortButton.js +44 -46
- package/dist/components/table/TableSortButton.js.map +1 -1
- package/dist/components/table/TableSortButton.mjs +44 -46
- package/dist/components/table/TableSortButton.mjs.map +1 -1
- package/dist/components/user-action/Button.d.mts +17 -13
- package/dist/components/user-action/Button.d.ts +17 -13
- package/dist/components/user-action/Button.js +80 -87
- package/dist/components/user-action/Button.js.map +1 -1
- package/dist/components/user-action/Button.mjs +80 -87
- package/dist/components/user-action/Button.mjs.map +1 -1
- package/dist/components/user-action/Checkbox.d.mts +9 -25
- package/dist/components/user-action/Checkbox.d.ts +9 -25
- package/dist/components/user-action/Checkbox.js +794 -78
- package/dist/components/user-action/Checkbox.js.map +1 -1
- package/dist/components/user-action/Checkbox.mjs +795 -79
- package/dist/components/user-action/Checkbox.mjs.map +1 -1
- package/dist/components/user-action/CopyToClipboardWrapper.js +3 -1
- package/dist/components/user-action/CopyToClipboardWrapper.js.map +1 -1
- package/dist/components/user-action/CopyToClipboardWrapper.mjs +3 -1
- package/dist/components/user-action/CopyToClipboardWrapper.mjs.map +1 -1
- package/dist/components/user-action/DateAndTimePicker.d.mts +1 -1
- package/dist/components/user-action/DateAndTimePicker.d.ts +1 -1
- package/dist/components/user-action/DateAndTimePicker.js +108 -60
- package/dist/components/user-action/DateAndTimePicker.js.map +1 -1
- package/dist/components/user-action/DateAndTimePicker.mjs +109 -61
- package/dist/components/user-action/DateAndTimePicker.mjs.map +1 -1
- package/dist/components/user-action/Label.d.mts +6 -8
- package/dist/components/user-action/Label.d.ts +6 -8
- package/dist/components/user-action/Label.js +4 -6
- package/dist/components/user-action/Label.js.map +1 -1
- package/dist/components/user-action/Label.mjs +4 -6
- package/dist/components/user-action/Label.mjs.map +1 -1
- package/dist/components/user-action/Menu.d.mts +2 -2
- package/dist/components/user-action/Menu.d.ts +2 -2
- package/dist/components/user-action/Menu.js +1 -1
- package/dist/components/user-action/Menu.js.map +1 -1
- package/dist/components/user-action/Menu.mjs +1 -1
- package/dist/components/user-action/Menu.mjs.map +1 -1
- package/dist/components/user-action/ScrollPicker.js +8 -6
- package/dist/components/user-action/ScrollPicker.js.map +1 -1
- package/dist/components/user-action/ScrollPicker.mjs +8 -6
- package/dist/components/user-action/ScrollPicker.mjs.map +1 -1
- package/dist/components/user-action/SearchBar.d.mts +1 -2
- package/dist/components/user-action/SearchBar.d.ts +1 -2
- package/dist/components/user-action/SearchBar.js +131 -219
- package/dist/components/user-action/SearchBar.js.map +1 -1
- package/dist/components/user-action/SearchBar.mjs +124 -212
- package/dist/components/user-action/SearchBar.mjs.map +1 -1
- package/dist/components/user-action/Textarea.d.mts +22 -11
- package/dist/components/user-action/Textarea.d.ts +22 -11
- package/dist/components/user-action/Textarea.js +101 -92
- package/dist/components/user-action/Textarea.js.map +1 -1
- package/dist/components/user-action/Textarea.mjs +100 -92
- package/dist/components/user-action/Textarea.mjs.map +1 -1
- package/dist/components/user-action/input/Input.d.mts +37 -0
- package/dist/components/user-action/input/Input.d.ts +37 -0
- package/dist/components/user-action/input/Input.js +244 -0
- package/dist/components/user-action/input/Input.js.map +1 -0
- package/dist/components/user-action/input/Input.mjs +209 -0
- package/dist/components/user-action/input/Input.mjs.map +1 -0
- package/dist/components/user-action/input/InsideLabelInput.d.mts +20 -0
- package/dist/components/user-action/input/InsideLabelInput.d.ts +20 -0
- package/dist/components/user-action/input/InsideLabelInput.js +295 -0
- package/dist/components/user-action/input/InsideLabelInput.js.map +1 -0
- package/dist/components/user-action/input/InsideLabelInput.mjs +260 -0
- package/dist/components/user-action/input/InsideLabelInput.mjs.map +1 -0
- package/dist/components/user-action/input/ToggleableInput.d.mts +22 -0
- package/dist/components/user-action/input/ToggleableInput.d.ts +22 -0
- package/dist/components/user-action/{Input.js → input/ToggleableInput.js} +136 -171
- package/dist/components/user-action/input/ToggleableInput.js.map +1 -0
- package/dist/components/user-action/input/ToggleableInput.mjs +264 -0
- package/dist/components/user-action/input/ToggleableInput.mjs.map +1 -0
- package/dist/components/user-action/select/Select.d.mts +98 -0
- package/dist/components/user-action/select/Select.d.ts +98 -0
- package/dist/components/user-action/select/Select.js +1354 -0
- package/dist/components/user-action/select/Select.js.map +1 -0
- package/dist/components/user-action/select/Select.mjs +1320 -0
- package/dist/components/user-action/select/Select.mjs.map +1 -0
- package/dist/components/utils/FocusTrap.d.mts +28 -0
- package/dist/components/utils/FocusTrap.d.ts +28 -0
- package/dist/components/utils/FocusTrap.js +252 -0
- package/dist/components/utils/FocusTrap.js.map +1 -0
- package/dist/components/utils/FocusTrap.mjs +229 -0
- package/dist/components/utils/FocusTrap.mjs.map +1 -0
- package/dist/components/utils/Transition.d.mts +26 -0
- package/dist/components/utils/Transition.d.ts +26 -0
- package/dist/components/utils/Transition.js +74 -0
- package/dist/components/utils/Transition.js.map +1 -0
- package/dist/components/utils/Transition.mjs +50 -0
- package/dist/components/utils/Transition.mjs.map +1 -0
- package/dist/hooks/focus/useFocusGuards.d.mts +3 -0
- package/dist/hooks/focus/useFocusGuards.d.ts +3 -0
- package/dist/hooks/focus/useFocusGuards.js +74 -0
- package/dist/hooks/focus/useFocusGuards.js.map +1 -0
- package/dist/hooks/focus/useFocusGuards.mjs +50 -0
- package/dist/hooks/focus/useFocusGuards.mjs.map +1 -0
- package/dist/hooks/{useFocusManagement.js → focus/useFocusManagement.js} +1 -1
- package/dist/hooks/focus/useFocusManagement.js.map +1 -0
- package/dist/hooks/{useFocusManagement.mjs → focus/useFocusManagement.mjs} +1 -1
- package/dist/hooks/focus/useFocusManagement.mjs.map +1 -0
- package/dist/hooks/{useFocusOnceVisible.js → focus/useFocusOnceVisible.js} +1 -1
- package/dist/hooks/focus/useFocusOnceVisible.js.map +1 -0
- package/dist/hooks/{useFocusOnceVisible.mjs → focus/useFocusOnceVisible.mjs} +1 -1
- package/dist/hooks/focus/useFocusOnceVisible.mjs.map +1 -0
- package/dist/hooks/focus/useFocusTrap.d.mts +16 -0
- package/dist/hooks/focus/useFocusTrap.d.ts +16 -0
- package/dist/hooks/focus/useFocusTrap.js +233 -0
- package/dist/hooks/focus/useFocusTrap.js.map +1 -0
- package/dist/hooks/focus/useFocusTrap.mjs +210 -0
- package/dist/hooks/focus/useFocusTrap.mjs.map +1 -0
- package/dist/hooks/focus/useIsMounted.d.mts +3 -0
- package/dist/hooks/focus/useIsMounted.d.ts +3 -0
- package/dist/hooks/focus/useIsMounted.js +43 -0
- package/dist/hooks/focus/useIsMounted.js.map +1 -0
- package/dist/hooks/focus/useIsMounted.mjs +20 -0
- package/dist/hooks/focus/useIsMounted.mjs.map +1 -0
- package/dist/hooks/useFloatingElement.d.mts +22 -0
- package/dist/hooks/useFloatingElement.d.ts +22 -0
- package/dist/hooks/useFloatingElement.js +162 -0
- package/dist/hooks/useFloatingElement.js.map +1 -0
- package/dist/hooks/useFloatingElement.mjs +139 -0
- package/dist/hooks/useFloatingElement.mjs.map +1 -0
- package/dist/hooks/useLocalStorage.js +2 -2
- package/dist/hooks/useLocalStorage.js.map +1 -1
- package/dist/hooks/useLocalStorage.mjs +2 -2
- package/dist/hooks/useLocalStorage.mjs.map +1 -1
- package/dist/hooks/useLogOnce.d.mts +3 -4
- package/dist/hooks/useLogOnce.d.ts +3 -4
- package/dist/hooks/useLogOnce.js +5 -5
- package/dist/hooks/useLogOnce.js.map +1 -1
- package/dist/hooks/useLogOnce.mjs +5 -5
- package/dist/hooks/useLogOnce.mjs.map +1 -1
- package/dist/hooks/useRerender.d.mts +2 -2
- package/dist/hooks/useRerender.d.ts +2 -2
- package/dist/hooks/useSearch.d.mts +2 -2
- package/dist/hooks/useSearch.d.ts +2 -2
- package/dist/hooks/useSearch.js +1 -1
- package/dist/hooks/useSearch.js.map +1 -1
- package/dist/hooks/useSearch.mjs +1 -1
- package/dist/hooks/useSearch.mjs.map +1 -1
- package/dist/localization/LanguageProvider.d.mts +2 -2
- package/dist/localization/LanguageProvider.d.ts +2 -2
- package/dist/localization/LanguageProvider.js +2 -2
- package/dist/localization/LanguageProvider.js.map +1 -1
- package/dist/localization/LanguageProvider.mjs +2 -2
- package/dist/localization/LanguageProvider.mjs.map +1 -1
- package/dist/localization/defaults/form.d.mts +1 -0
- package/dist/localization/defaults/form.d.ts +1 -0
- package/dist/localization/defaults/form.js +2 -0
- package/dist/localization/defaults/form.js.map +1 -1
- package/dist/localization/defaults/form.mjs +2 -0
- package/dist/localization/defaults/form.mjs.map +1 -1
- package/dist/localization/useTranslation.js.map +1 -1
- package/dist/localization/useTranslation.mjs.map +1 -1
- package/dist/storybook/helper.d.mts +17 -0
- package/dist/storybook/helper.d.ts +17 -0
- package/dist/storybook/helper.js +61 -0
- package/dist/storybook/helper.js.map +1 -0
- package/dist/storybook/helper.mjs +37 -0
- package/dist/storybook/helper.mjs.map +1 -0
- package/dist/{css → style}/globals.css +994 -456
- package/dist/{css → style}/uncompiled/globals.css +75 -13
- package/dist/{css → style}/uncompiled/theme/colors-component.css +18 -4
- package/dist/{css → style}/uncompiled/theme/colors-semantic.css +2 -9
- package/dist/style/uncompiled/typography.css +171 -0
- package/dist/{css → style}/uncompiled/utitlity/animation.css +54 -42
- package/dist/{css → style}/uncompiled/utitlity/index.css +2 -1
- package/dist/{css → style}/uncompiled/utitlity/shadow.css +5 -1
- package/dist/style/uncompiled/utitlity/sizing.css +29 -0
- package/dist/theming/useTheme.d.mts +2 -2
- package/dist/theming/useTheme.d.ts +2 -2
- package/dist/theming/useTheme.js +4 -4
- package/dist/theming/useTheme.js.map +1 -1
- package/dist/theming/useTheme.mjs +4 -4
- package/dist/theming/useTheme.mjs.map +1 -1
- package/dist/{util → utils}/array.d.mts +1 -0
- package/dist/{util → utils}/array.d.ts +1 -0
- package/dist/{util → utils}/array.js +15 -2
- package/dist/utils/array.js.map +1 -0
- package/dist/{util → utils}/array.mjs +15 -2
- package/dist/utils/array.mjs.map +1 -0
- package/dist/utils/bagFunctions.d.mts +15 -0
- package/dist/utils/bagFunctions.d.ts +15 -0
- package/dist/{util/PropsWithFunctionChildren.js → utils/bagFunctions.js} +5 -5
- package/dist/utils/bagFunctions.js.map +1 -0
- package/dist/{util/PropsWithFunctionChildren.mjs → utils/bagFunctions.mjs} +2 -2
- package/dist/utils/bagFunctions.mjs.map +1 -0
- package/dist/{util → utils}/builder.js +1 -1
- package/dist/utils/builder.js.map +1 -0
- package/dist/{util → utils}/builder.mjs +1 -1
- package/dist/utils/builder.mjs.map +1 -0
- package/dist/{util → utils}/date.js +3 -3
- package/dist/utils/date.js.map +1 -0
- package/dist/{util → utils}/date.mjs +2 -2
- package/dist/utils/date.mjs.map +1 -0
- package/dist/{util → utils}/easeFunctions.js +5 -4
- package/dist/utils/easeFunctions.js.map +1 -0
- package/dist/{util → utils}/easeFunctions.mjs +4 -3
- package/dist/utils/easeFunctions.mjs.map +1 -0
- package/dist/{util → utils}/emailValidation.js +1 -1
- package/dist/utils/emailValidation.js.map +1 -0
- package/dist/{util → utils}/emailValidation.mjs +1 -1
- package/dist/utils/emailValidation.mjs.map +1 -0
- package/dist/{util → utils}/loopingArray.js +1 -1
- package/dist/utils/loopingArray.js.map +1 -0
- package/dist/{util → utils}/loopingArray.mjs +1 -1
- package/dist/utils/loopingArray.mjs.map +1 -0
- package/dist/utils/match.d.mts +3 -0
- package/dist/utils/match.d.ts +3 -0
- package/dist/utils/match.js +32 -0
- package/dist/utils/match.js.map +1 -0
- package/dist/utils/match.mjs +8 -0
- package/dist/utils/match.mjs.map +1 -0
- package/dist/utils/math.d.mts +3 -0
- package/dist/utils/math.d.ts +3 -0
- package/dist/{util → utils}/math.js +3 -2
- package/dist/utils/math.js.map +1 -0
- package/dist/utils/math.mjs +9 -0
- package/dist/utils/math.mjs.map +1 -0
- package/dist/{util → utils}/noop.js +1 -1
- package/dist/utils/noop.js.map +1 -0
- package/dist/utils/noop.mjs +6 -0
- package/dist/utils/noop.mjs.map +1 -0
- package/dist/{util → utils}/resolveSetState.js +1 -1
- package/dist/utils/resolveSetState.js.map +1 -0
- package/dist/{util → utils}/resolveSetState.mjs +1 -1
- package/dist/utils/resolveSetState.mjs.map +1 -0
- package/dist/{util → utils}/simpleSearch.js +1 -1
- package/dist/utils/simpleSearch.js.map +1 -0
- package/dist/{util → utils}/simpleSearch.mjs +1 -1
- package/dist/utils/simpleSearch.mjs.map +1 -0
- package/dist/{util → utils}/storage.js +1 -1
- package/dist/utils/storage.js.map +1 -0
- package/dist/{util → utils}/storage.mjs +1 -1
- package/dist/utils/storage.mjs.map +1 -0
- package/dist/{util → utils}/writeToClipboard.js +2 -1
- package/dist/utils/writeToClipboard.js.map +1 -0
- package/dist/{util → utils}/writeToClipboard.mjs +3 -1
- package/dist/utils/writeToClipboard.mjs.map +1 -0
- package/package.json +8 -8
- package/dist/components/dialogs/ConfirmDialog.js +0 -677
- package/dist/components/dialogs/ConfirmDialog.js.map +0 -1
- package/dist/components/dialogs/ConfirmDialog.mjs +0 -641
- package/dist/components/dialogs/ConfirmDialog.mjs.map +0 -1
- package/dist/components/icons-and-geometry/Helpwave.js.map +0 -1
- package/dist/components/icons-and-geometry/Helpwave.mjs.map +0 -1
- package/dist/components/layout-and-navigation/Overlay.d.mts +0 -67
- package/dist/components/layout-and-navigation/Overlay.d.ts +0 -67
- package/dist/components/layout-and-navigation/Overlay.js +0 -705
- package/dist/components/layout-and-navigation/Overlay.js.map +0 -1
- package/dist/components/layout-and-navigation/Overlay.mjs +0 -668
- package/dist/components/layout-and-navigation/Overlay.mjs.map +0 -1
- package/dist/components/layout-and-navigation/SearchableList.d.mts +0 -24
- package/dist/components/layout-and-navigation/SearchableList.d.ts +0 -24
- package/dist/components/layout-and-navigation/SearchableList.js +0 -761
- package/dist/components/layout-and-navigation/SearchableList.js.map +0 -1
- package/dist/components/layout-and-navigation/SearchableList.mjs +0 -727
- package/dist/components/layout-and-navigation/SearchableList.mjs.map +0 -1
- package/dist/components/layout-and-navigation/Tile.d.mts +0 -27
- package/dist/components/layout-and-navigation/Tile.d.ts +0 -27
- package/dist/components/layout-and-navigation/Tile.js +0 -96
- package/dist/components/layout-and-navigation/Tile.js.map +0 -1
- package/dist/components/layout-and-navigation/Tile.mjs +0 -61
- package/dist/components/layout-and-navigation/Tile.mjs.map +0 -1
- package/dist/components/modals/ConfirmModal.d.mts +0 -33
- package/dist/components/modals/ConfirmModal.d.ts +0 -33
- package/dist/components/modals/ConfirmModal.js +0 -690
- package/dist/components/modals/ConfirmModal.js.map +0 -1
- package/dist/components/modals/ConfirmModal.mjs +0 -654
- package/dist/components/modals/ConfirmModal.mjs.map +0 -1
- package/dist/components/modals/DiscardChangesModal.d.mts +0 -20
- package/dist/components/modals/DiscardChangesModal.d.ts +0 -20
- package/dist/components/modals/DiscardChangesModal.js +0 -720
- package/dist/components/modals/DiscardChangesModal.js.map +0 -1
- package/dist/components/modals/DiscardChangesModal.mjs +0 -684
- package/dist/components/modals/DiscardChangesModal.mjs.map +0 -1
- package/dist/components/modals/InputModal.d.mts +0 -21
- package/dist/components/modals/InputModal.d.ts +0 -21
- package/dist/components/modals/InputModal.js +0 -979
- package/dist/components/modals/InputModal.js.map +0 -1
- package/dist/components/modals/InputModal.mjs +0 -943
- package/dist/components/modals/InputModal.mjs.map +0 -1
- package/dist/components/modals/LanguageModal.d.mts +0 -21
- package/dist/components/modals/LanguageModal.d.ts +0 -21
- package/dist/components/modals/LanguageModal.js +0 -1474
- package/dist/components/modals/LanguageModal.js.map +0 -1
- package/dist/components/modals/LanguageModal.mjs +0 -1438
- package/dist/components/modals/LanguageModal.mjs.map +0 -1
- package/dist/components/modals/ThemeModal.d.mts +0 -21
- package/dist/components/modals/ThemeModal.d.ts +0 -21
- package/dist/components/modals/ThemeModal.js +0 -1503
- package/dist/components/modals/ThemeModal.js.map +0 -1
- package/dist/components/modals/ThemeModal.mjs +0 -1467
- package/dist/components/modals/ThemeModal.mjs.map +0 -1
- package/dist/components/user-action/Input.d.mts +0 -77
- package/dist/components/user-action/Input.d.ts +0 -77
- package/dist/components/user-action/Input.js.map +0 -1
- package/dist/components/user-action/Input.mjs +0 -298
- package/dist/components/user-action/Input.mjs.map +0 -1
- package/dist/components/user-action/MultiSelect.d.mts +0 -42
- package/dist/components/user-action/MultiSelect.d.ts +0 -42
- package/dist/components/user-action/MultiSelect.js +0 -1445
- package/dist/components/user-action/MultiSelect.js.map +0 -1
- package/dist/components/user-action/MultiSelect.mjs +0 -1410
- package/dist/components/user-action/MultiSelect.mjs.map +0 -1
- package/dist/components/user-action/Select.d.mts +0 -41
- package/dist/components/user-action/Select.d.ts +0 -41
- package/dist/components/user-action/Select.js +0 -1242
- package/dist/components/user-action/Select.js.map +0 -1
- package/dist/components/user-action/Select.mjs +0 -1207
- package/dist/components/user-action/Select.mjs.map +0 -1
- package/dist/components/user-action/ToggleableInput.d.mts +0 -37
- package/dist/components/user-action/ToggleableInput.d.ts +0 -37
- package/dist/components/user-action/ToggleableInput.js +0 -192
- package/dist/components/user-action/ToggleableInput.js.map +0 -1
- package/dist/components/user-action/ToggleableInput.mjs +0 -157
- package/dist/components/user-action/ToggleableInput.mjs.map +0 -1
- package/dist/css/uncompiled/textstyles.css +0 -69
- package/dist/hooks/useFocusManagement.js.map +0 -1
- package/dist/hooks/useFocusManagement.mjs.map +0 -1
- package/dist/hooks/useFocusOnceVisible.js.map +0 -1
- package/dist/hooks/useFocusOnceVisible.mjs.map +0 -1
- package/dist/index.d.mts +0 -103
- package/dist/index.d.ts +0 -103
- package/dist/index.js +0 -12595
- package/dist/index.js.map +0 -1
- package/dist/index.mjs +0 -12432
- package/dist/index.mjs.map +0 -1
- package/dist/util/PropsWithFunctionChildren.d.mts +0 -14
- package/dist/util/PropsWithFunctionChildren.d.ts +0 -14
- package/dist/util/PropsWithFunctionChildren.js.map +0 -1
- package/dist/util/PropsWithFunctionChildren.mjs.map +0 -1
- package/dist/util/array.js.map +0 -1
- package/dist/util/array.mjs.map +0 -1
- package/dist/util/builder.js.map +0 -1
- package/dist/util/builder.mjs.map +0 -1
- package/dist/util/date.js.map +0 -1
- package/dist/util/date.mjs.map +0 -1
- package/dist/util/easeFunctions.js.map +0 -1
- package/dist/util/easeFunctions.mjs.map +0 -1
- package/dist/util/emailValidation.js.map +0 -1
- package/dist/util/emailValidation.mjs.map +0 -1
- package/dist/util/loopingArray.js.map +0 -1
- package/dist/util/loopingArray.mjs.map +0 -1
- package/dist/util/math.d.mts +0 -3
- package/dist/util/math.d.ts +0 -3
- package/dist/util/math.js.map +0 -1
- package/dist/util/math.mjs +0 -8
- package/dist/util/math.mjs.map +0 -1
- package/dist/util/news.d.mts +0 -101
- package/dist/util/news.d.ts +0 -101
- package/dist/util/news.js +0 -76
- package/dist/util/news.js.map +0 -1
- package/dist/util/news.mjs +0 -49
- package/dist/util/news.mjs.map +0 -1
- package/dist/util/noop.js.map +0 -1
- package/dist/util/noop.mjs +0 -6
- package/dist/util/noop.mjs.map +0 -1
- package/dist/util/resolveSetState.js.map +0 -1
- package/dist/util/resolveSetState.mjs.map +0 -1
- package/dist/util/simpleSearch.js.map +0 -1
- package/dist/util/simpleSearch.mjs.map +0 -1
- package/dist/util/storage.js.map +0 -1
- package/dist/util/storage.mjs.map +0 -1
- package/dist/util/types.d.mts +0 -3
- package/dist/util/types.d.ts +0 -3
- package/dist/util/types.js +0 -18
- package/dist/util/types.js.map +0 -1
- package/dist/util/types.mjs +0 -1
- package/dist/util/types.mjs.map +0 -1
- package/dist/util/writeToClipboard.js.map +0 -1
- package/dist/util/writeToClipboard.mjs.map +0 -1
- /package/dist/hooks/{useFocusManagement.d.mts → focus/useFocusManagement.d.mts} +0 -0
- /package/dist/hooks/{useFocusManagement.d.ts → focus/useFocusManagement.d.ts} +0 -0
- /package/dist/hooks/{useFocusOnceVisible.d.mts → focus/useFocusOnceVisible.d.mts} +0 -0
- /package/dist/hooks/{useFocusOnceVisible.d.ts → focus/useFocusOnceVisible.d.ts} +0 -0
- /package/dist/{css → style}/uncompiled/theme/colors-basic.css +0 -0
- /package/dist/{css → style}/uncompiled/theme/index.css +0 -0
- /package/dist/{css → style}/uncompiled/theme/variants.css +0 -0
- /package/dist/{css → style}/uncompiled/utitlity/borderradius.css +0 -0
- /package/dist/{css → style}/uncompiled/utitlity/general.css +0 -0
- /package/dist/{util → utils}/builder.d.mts +0 -0
- /package/dist/{util → utils}/builder.d.ts +0 -0
- /package/dist/{util → utils}/date.d.mts +0 -0
- /package/dist/{util → utils}/date.d.ts +0 -0
- /package/dist/{util → utils}/easeFunctions.d.mts +0 -0
- /package/dist/{util → utils}/easeFunctions.d.ts +0 -0
- /package/dist/{util → utils}/emailValidation.d.mts +0 -0
- /package/dist/{util → utils}/emailValidation.d.ts +0 -0
- /package/dist/{util → utils}/loopingArray.d.mts +0 -0
- /package/dist/{util → utils}/loopingArray.d.ts +0 -0
- /package/dist/{util → utils}/noop.d.mts +0 -0
- /package/dist/{util → utils}/noop.d.ts +0 -0
- /package/dist/{util → utils}/resolveSetState.d.mts +0 -0
- /package/dist/{util → utils}/resolveSetState.d.ts +0 -0
- /package/dist/{util → utils}/simpleSearch.d.mts +0 -0
- /package/dist/{util → utils}/simpleSearch.d.ts +0 -0
- /package/dist/{util → utils}/storage.d.mts +0 -0
- /package/dist/{util → utils}/storage.d.ts +0 -0
- /package/dist/{util → utils}/writeToClipboard.d.mts +0 -0
- /package/dist/{util → utils}/writeToClipboard.d.ts +0 -0
|
@@ -62,7 +62,6 @@ var ButtonUtil = {
|
|
|
62
62
|
};
|
|
63
63
|
var SolidButton = (0, import_react.forwardRef)(function SolidButton2({
|
|
64
64
|
children,
|
|
65
|
-
disabled = false,
|
|
66
65
|
color = "primary",
|
|
67
66
|
size = "medium",
|
|
68
67
|
startIcon,
|
|
@@ -72,35 +71,33 @@ var SolidButton = (0, import_react.forwardRef)(function SolidButton2({
|
|
|
72
71
|
...restProps
|
|
73
72
|
}, ref) {
|
|
74
73
|
const colorClasses = {
|
|
75
|
-
primary: "bg-button-solid-primary-background text-button-solid-primary-text",
|
|
76
|
-
secondary: "bg-button-solid-secondary-background text-button-solid-secondary-text",
|
|
77
|
-
tertiary: "bg-button-solid-tertiary-background text-button-solid-tertiary-text",
|
|
78
|
-
positive: "bg-button-solid-positive-background text-button-solid-positive-text",
|
|
79
|
-
warning: "bg-button-solid-warning-background text-button-solid-warning-text",
|
|
80
|
-
negative: "bg-button-solid-negative-background text-button-solid-negative-text",
|
|
81
|
-
neutral: "bg-button-solid-neutral-background text-button-solid-neutral-text"
|
|
74
|
+
primary: "not-disabled:bg-button-solid-primary-background not-disabled:text-button-solid-primary-text",
|
|
75
|
+
secondary: "not-disabled:bg-button-solid-secondary-background not-disabled:text-button-solid-secondary-text",
|
|
76
|
+
tertiary: "not-disabled:bg-button-solid-tertiary-background not-disabled:text-button-solid-tertiary-text",
|
|
77
|
+
positive: "not-disabled:bg-button-solid-positive-background not-disabled:text-button-solid-positive-text",
|
|
78
|
+
warning: "not-disabled:bg-button-solid-warning-background not-disabled:text-button-solid-warning-text",
|
|
79
|
+
negative: "not-disabled:bg-button-solid-negative-background not-disabled:text-button-solid-negative-text",
|
|
80
|
+
neutral: "not-disabled:bg-button-solid-neutral-background not-disabled:text-button-solid-neutral-text"
|
|
82
81
|
}[color];
|
|
83
82
|
const iconColorClasses = {
|
|
84
|
-
primary: "text-button-solid-primary-icon",
|
|
85
|
-
secondary: "text-button-solid-secondary-icon",
|
|
86
|
-
tertiary: "text-button-solid-tertiary-icon",
|
|
87
|
-
positive: "text-button-solid-positive-icon",
|
|
88
|
-
warning: "text-button-solid-warning-icon",
|
|
89
|
-
negative: "text-button-solid-negative-icon",
|
|
90
|
-
neutral: "text-button-solid-neutral-icon"
|
|
83
|
+
primary: "not-group-disabled:text-button-solid-primary-icon",
|
|
84
|
+
secondary: "not-group-disabled:text-button-solid-secondary-icon",
|
|
85
|
+
tertiary: "not-group-disabled:text-button-solid-tertiary-icon",
|
|
86
|
+
positive: "not-group-disabled:text-button-solid-positive-icon",
|
|
87
|
+
warning: "not-group-disabled:text-button-solid-warning-icon",
|
|
88
|
+
negative: "not-group-disabled:text-button-solid-negative-icon",
|
|
89
|
+
neutral: "not-group-disabled:text-button-solid-neutral-icon"
|
|
91
90
|
}[color];
|
|
92
91
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
93
92
|
"button",
|
|
94
93
|
{
|
|
95
94
|
ref,
|
|
96
95
|
onClick,
|
|
97
|
-
disabled,
|
|
98
96
|
className: (0, import_clsx.default)(
|
|
99
|
-
"font-semibold",
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
},
|
|
97
|
+
"group font-semibold",
|
|
98
|
+
colorClasses,
|
|
99
|
+
"not-disabled:hover:brightness-90",
|
|
100
|
+
"disabled:text-disabled-text disabled:bg-disabled-background",
|
|
104
101
|
ButtonUtil.paddingMapping[size],
|
|
105
102
|
className
|
|
106
103
|
),
|
|
@@ -109,10 +106,10 @@ var SolidButton = (0, import_react.forwardRef)(function SolidButton2({
|
|
|
109
106
|
startIcon && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
110
107
|
"span",
|
|
111
108
|
{
|
|
112
|
-
className: (0, import_clsx.default)(
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
109
|
+
className: (0, import_clsx.default)(
|
|
110
|
+
iconColorClasses,
|
|
111
|
+
"group-disabled:text-disabled-icon"
|
|
112
|
+
),
|
|
116
113
|
children: startIcon
|
|
117
114
|
}
|
|
118
115
|
),
|
|
@@ -120,10 +117,10 @@ var SolidButton = (0, import_react.forwardRef)(function SolidButton2({
|
|
|
120
117
|
endIcon && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
121
118
|
"span",
|
|
122
119
|
{
|
|
123
|
-
className: (0, import_clsx.default)(
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
120
|
+
className: (0, import_clsx.default)(
|
|
121
|
+
iconColorClasses,
|
|
122
|
+
"group-disabled:text-disabled-icon"
|
|
123
|
+
),
|
|
127
124
|
children: endIcon
|
|
128
125
|
}
|
|
129
126
|
)
|
|
@@ -131,34 +128,35 @@ var SolidButton = (0, import_react.forwardRef)(function SolidButton2({
|
|
|
131
128
|
}
|
|
132
129
|
);
|
|
133
130
|
});
|
|
134
|
-
var IconButton = ({
|
|
131
|
+
var IconButton = (0, import_react.forwardRef)(function IconButton2({
|
|
135
132
|
children,
|
|
136
|
-
disabled = false,
|
|
137
133
|
color = "primary",
|
|
138
134
|
size = "medium",
|
|
139
135
|
className,
|
|
140
136
|
...restProps
|
|
141
|
-
})
|
|
137
|
+
}, ref) {
|
|
142
138
|
const colorClasses = {
|
|
143
|
-
primary: "bg-button-solid-primary-background text-button-solid-primary-text",
|
|
144
|
-
secondary: "bg-button-solid-secondary-background text-button-solid-secondary-text",
|
|
145
|
-
tertiary: "bg-button-solid-tertiary-background text-button-solid-tertiary-text",
|
|
146
|
-
positive: "bg-button-solid-positive-background text-button-solid-positive-text",
|
|
147
|
-
warning: "bg-button-solid-warning-background text-button-solid-warning-text",
|
|
148
|
-
negative: "bg-button-solid-negative-background text-button-solid-negative-text",
|
|
149
|
-
neutral: "bg-button-solid-neutral-background text-button-solid-neutral-text",
|
|
150
|
-
transparent: "bg-transparent"
|
|
139
|
+
primary: "not-disabled:bg-button-solid-primary-background not-disabled:text-button-solid-primary-text",
|
|
140
|
+
secondary: "not-disabled:bg-button-solid-secondary-background not-disabled:text-button-solid-secondary-text",
|
|
141
|
+
tertiary: "not-disabled:bg-button-solid-tertiary-background not-disabled:text-button-solid-tertiary-text",
|
|
142
|
+
positive: "not-disabled:bg-button-solid-positive-background not-disabled:text-button-solid-positive-text",
|
|
143
|
+
warning: "not-disabled:bg-button-solid-warning-background not-disabled:text-button-solid-warning-text",
|
|
144
|
+
negative: "not-disabled:bg-button-solid-negative-background not-disabled:text-button-solid-negative-text",
|
|
145
|
+
neutral: "not-disabled:bg-button-solid-neutral-background not-disabled:text-button-solid-neutral-text",
|
|
146
|
+
transparent: "not-disabled:bg-transparent"
|
|
151
147
|
}[color];
|
|
152
148
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
153
149
|
"button",
|
|
154
150
|
{
|
|
155
|
-
|
|
151
|
+
ref,
|
|
156
152
|
className: (0, import_clsx.default)(
|
|
153
|
+
colorClasses,
|
|
154
|
+
"not-disabled:hover:brightness-90",
|
|
155
|
+
"disabled:text-disabled-text",
|
|
157
156
|
{
|
|
158
|
-
"
|
|
159
|
-
"
|
|
160
|
-
"hover:bg-button-text-hover-background":
|
|
161
|
-
[(0, import_clsx.default)(colorClasses, "hover:brightness-90")]: !disabled
|
|
157
|
+
"disabled:bg-disabled-background": color !== "transparent",
|
|
158
|
+
"disabled:opacity-70": color === "transparent",
|
|
159
|
+
"not-disabled:hover:bg-button-text-hover-background": color === "transparent"
|
|
162
160
|
},
|
|
163
161
|
ButtonUtil.iconPaddingMapping[size],
|
|
164
162
|
className
|
|
@@ -167,11 +165,11 @@ var IconButton = ({
|
|
|
167
165
|
children
|
|
168
166
|
}
|
|
169
167
|
);
|
|
170
|
-
};
|
|
168
|
+
});
|
|
171
169
|
|
|
172
|
-
// src/components/user-action/Input.tsx
|
|
173
|
-
var
|
|
174
|
-
var
|
|
170
|
+
// src/components/user-action/input/Input.tsx
|
|
171
|
+
var import_react4 = require("react");
|
|
172
|
+
var import_clsx2 = __toESM(require("clsx"));
|
|
175
173
|
|
|
176
174
|
// src/hooks/useDelay.ts
|
|
177
175
|
var import_react2 = require("react");
|
|
@@ -213,28 +211,7 @@ function useDelay(options) {
|
|
|
213
211
|
return { restartTimer, clearTimer, hasActiveTimer: !!timer };
|
|
214
212
|
}
|
|
215
213
|
|
|
216
|
-
// src/
|
|
217
|
-
var noop = () => void 0;
|
|
218
|
-
|
|
219
|
-
// src/components/user-action/Label.tsx
|
|
220
|
-
var import_clsx2 = __toESM(require("clsx"));
|
|
221
|
-
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
222
|
-
var styleMapping = {
|
|
223
|
-
labelSmall: "textstyle-label-sm",
|
|
224
|
-
labelMedium: "textstyle-label-md",
|
|
225
|
-
labelBig: "textstyle-label-lg"
|
|
226
|
-
};
|
|
227
|
-
var Label = ({
|
|
228
|
-
children,
|
|
229
|
-
name,
|
|
230
|
-
labelType = "labelSmall",
|
|
231
|
-
className,
|
|
232
|
-
...props
|
|
233
|
-
}) => {
|
|
234
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("label", { ...props, className: (0, import_clsx2.default)(styleMapping[labelType], className), children: children ? children : name });
|
|
235
|
-
};
|
|
236
|
-
|
|
237
|
-
// src/hooks/useFocusManagement.ts
|
|
214
|
+
// src/hooks/focus/useFocusManagement.ts
|
|
238
215
|
var import_react3 = require("react");
|
|
239
216
|
function useFocusManagement() {
|
|
240
217
|
const getFocusableElements = (0, import_react3.useCallback)(() => {
|
|
@@ -291,167 +268,100 @@ function useFocusManagement() {
|
|
|
291
268
|
};
|
|
292
269
|
}
|
|
293
270
|
|
|
294
|
-
// src/
|
|
295
|
-
var
|
|
296
|
-
var useFocusOnceVisible = (ref, disable = false) => {
|
|
297
|
-
const [hasUsedFocus, setHasUsedFocus] = import_react4.default.useState(false);
|
|
298
|
-
(0, import_react4.useEffect)(() => {
|
|
299
|
-
if (disable || hasUsedFocus) {
|
|
300
|
-
return;
|
|
301
|
-
}
|
|
302
|
-
const observer = new IntersectionObserver(([entry]) => {
|
|
303
|
-
if (entry.isIntersecting && !hasUsedFocus) {
|
|
304
|
-
ref.current?.focus();
|
|
305
|
-
setHasUsedFocus(hasUsedFocus);
|
|
306
|
-
}
|
|
307
|
-
}, {
|
|
308
|
-
threshold: 0.1
|
|
309
|
-
});
|
|
310
|
-
if (ref.current) {
|
|
311
|
-
observer.observe(ref.current);
|
|
312
|
-
}
|
|
313
|
-
return () => observer.disconnect();
|
|
314
|
-
}, [disable, hasUsedFocus, ref]);
|
|
315
|
-
};
|
|
316
|
-
|
|
317
|
-
// src/components/user-action/Input.tsx
|
|
318
|
-
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
319
|
-
var getInputClassName = ({ disabled = false, hasError = false }) => {
|
|
320
|
-
return (0, import_clsx3.default)(
|
|
321
|
-
"px-2 py-1.5 rounded-md border-2",
|
|
322
|
-
{
|
|
323
|
-
"bg-input-background text-input-text hover:border-primary focus:border-primary": !disabled && !hasError,
|
|
324
|
-
"bg-on-negative text-negative border-negative-border hover:border-negative-border-hover": !disabled && hasError,
|
|
325
|
-
"bg-disabled-background text-disabled-text border-disabled-border": disabled
|
|
326
|
-
}
|
|
327
|
-
);
|
|
328
|
-
};
|
|
271
|
+
// src/components/user-action/input/Input.tsx
|
|
272
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
329
273
|
var defaultEditCompleteOptions = {
|
|
274
|
+
allowEnterComplete: false,
|
|
330
275
|
onBlur: true,
|
|
331
276
|
afterDelay: true,
|
|
332
277
|
delay: 2500
|
|
333
278
|
};
|
|
334
|
-
var Input = (0,
|
|
335
|
-
id,
|
|
336
|
-
type = "text",
|
|
279
|
+
var Input = (0, import_react4.forwardRef)(function Input2({
|
|
337
280
|
value,
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
onChangeText = noop,
|
|
281
|
+
onChange,
|
|
282
|
+
onChangeText,
|
|
341
283
|
onEditCompleted,
|
|
342
|
-
className = "",
|
|
343
|
-
allowEnterComplete = true,
|
|
344
|
-
expanded = true,
|
|
345
|
-
autoFocus = false,
|
|
346
|
-
onBlur,
|
|
347
284
|
editCompleteOptions,
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
285
|
+
disabled = false,
|
|
286
|
+
invalid = false,
|
|
287
|
+
defaultStyle = true,
|
|
288
|
+
className,
|
|
289
|
+
...props
|
|
351
290
|
}, forwardedRef) {
|
|
352
|
-
const {
|
|
291
|
+
const {
|
|
292
|
+
onBlur: allowEditCompleteOnBlur,
|
|
293
|
+
afterDelay,
|
|
294
|
+
delay,
|
|
295
|
+
allowEnterComplete
|
|
296
|
+
} = { ...defaultEditCompleteOptions, ...editCompleteOptions };
|
|
353
297
|
const {
|
|
354
298
|
restartTimer,
|
|
355
299
|
clearTimer
|
|
356
300
|
} = useDelay({ delay, disabled: !afterDelay });
|
|
357
|
-
const innerRef = (0,
|
|
301
|
+
const innerRef = (0, import_react4.useRef)(null);
|
|
302
|
+
(0, import_react4.useImperativeHandle)(forwardedRef, () => innerRef.current);
|
|
358
303
|
const { focusNext } = useFocusManagement();
|
|
359
|
-
|
|
360
|
-
(0, import_react5.useImperativeHandle)(forwardedRef, () => innerRef.current);
|
|
361
|
-
const handleKeyDown = (e) => {
|
|
362
|
-
if (e.key === "Enter" && !e.shiftKey) {
|
|
363
|
-
e.preventDefault();
|
|
364
|
-
innerRef.current?.blur();
|
|
365
|
-
focusNext();
|
|
366
|
-
}
|
|
367
|
-
};
|
|
368
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: (0, import_clsx3.default)({ "w-full": expanded }, containerClassName), children: [
|
|
369
|
-
label && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Label, { ...label, htmlFor: id, className: (0, import_clsx3.default)("mb-1", label.className) }),
|
|
370
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
371
|
-
"input",
|
|
372
|
-
{
|
|
373
|
-
...restProps,
|
|
374
|
-
ref: innerRef,
|
|
375
|
-
value,
|
|
376
|
-
id,
|
|
377
|
-
type,
|
|
378
|
-
disabled,
|
|
379
|
-
className: (0, import_clsx3.default)(getInputClassName({ disabled }), className),
|
|
380
|
-
onKeyDown: allowEnterComplete ? handleKeyDown : void 0,
|
|
381
|
-
onBlur: (event) => {
|
|
382
|
-
onBlur?.(event);
|
|
383
|
-
if (onEditCompleted && allowEditCompleteOnBlur) {
|
|
384
|
-
onEditCompleted(event.target.value);
|
|
385
|
-
clearTimer();
|
|
386
|
-
}
|
|
387
|
-
},
|
|
388
|
-
onChange: (e) => {
|
|
389
|
-
const value2 = e.target.value;
|
|
390
|
-
if (onEditCompleted) {
|
|
391
|
-
restartTimer(() => {
|
|
392
|
-
if (innerRef.current) {
|
|
393
|
-
innerRef.current.blur();
|
|
394
|
-
if (!allowEditCompleteOnBlur) {
|
|
395
|
-
onEditCompleted(value2);
|
|
396
|
-
}
|
|
397
|
-
} else {
|
|
398
|
-
onEditCompleted(value2);
|
|
399
|
-
}
|
|
400
|
-
});
|
|
401
|
-
}
|
|
402
|
-
onChange(e);
|
|
403
|
-
onChangeText(value2);
|
|
404
|
-
}
|
|
405
|
-
}
|
|
406
|
-
)
|
|
407
|
-
] });
|
|
408
|
-
});
|
|
409
|
-
var FormInput = (0, import_react5.forwardRef)(function FormInput2({
|
|
410
|
-
id,
|
|
411
|
-
labelText,
|
|
412
|
-
errorText,
|
|
413
|
-
className,
|
|
414
|
-
labelClassName,
|
|
415
|
-
errorClassName,
|
|
416
|
-
containerClassName,
|
|
417
|
-
required,
|
|
418
|
-
disabled,
|
|
419
|
-
...restProps
|
|
420
|
-
}, ref) {
|
|
421
|
-
const input = /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
304
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
422
305
|
"input",
|
|
423
306
|
{
|
|
424
|
-
...
|
|
425
|
-
ref,
|
|
426
|
-
|
|
307
|
+
...props,
|
|
308
|
+
ref: innerRef,
|
|
309
|
+
value,
|
|
427
310
|
disabled,
|
|
428
|
-
className: (0,
|
|
429
|
-
|
|
311
|
+
className: defaultStyle ? (0, import_clsx2.default)(
|
|
312
|
+
"px-2.5 py-1.75 rounded-md border-1 text-sm",
|
|
313
|
+
{
|
|
314
|
+
"bg-input-background text-input-text hover:border-primary focus:border-primary": !disabled && !invalid,
|
|
315
|
+
"bg-on-negative text-negative border-negative-border hover:border-negative-border-hover focus-visible:ring-negative-border": !disabled && invalid,
|
|
316
|
+
"bg-disabled-background text-disabled-text border-disabled-border": disabled
|
|
317
|
+
},
|
|
430
318
|
className
|
|
431
|
-
)
|
|
319
|
+
) : className,
|
|
320
|
+
onKeyDown: (event) => {
|
|
321
|
+
props.onKeyDown?.(event);
|
|
322
|
+
if (!allowEnterComplete) {
|
|
323
|
+
return;
|
|
324
|
+
}
|
|
325
|
+
if (event.key === "Enter" && !event.shiftKey) {
|
|
326
|
+
event.preventDefault();
|
|
327
|
+
innerRef.current?.blur();
|
|
328
|
+
onEditCompleted?.(event.target.value);
|
|
329
|
+
focusNext();
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
onBlur: (event) => {
|
|
333
|
+
props.onBlur?.(event);
|
|
334
|
+
if (allowEditCompleteOnBlur) {
|
|
335
|
+
onEditCompleted?.(event.target.value);
|
|
336
|
+
clearTimer();
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
onChange: (event) => {
|
|
340
|
+
onChange?.(event);
|
|
341
|
+
const value2 = event.target.value;
|
|
342
|
+
restartTimer(() => {
|
|
343
|
+
innerRef.current?.blur();
|
|
344
|
+
onEditCompleted?.(value2);
|
|
345
|
+
});
|
|
346
|
+
onChangeText?.(value2);
|
|
347
|
+
},
|
|
348
|
+
"aria-invalid": props["aria-invalid"] ?? invalid,
|
|
349
|
+
"aria-disabled": props["aria-disabled"] ?? disabled
|
|
432
350
|
}
|
|
433
351
|
);
|
|
434
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: (0, import_clsx3.default)("flex flex-col gap-y-1", containerClassName), children: [
|
|
435
|
-
labelText && /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("label", { htmlFor: id, className: (0, import_clsx3.default)("textstyle-label-md", labelClassName), children: [
|
|
436
|
-
labelText,
|
|
437
|
-
required && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "text-primary font-bold", children: "*" })
|
|
438
|
-
] }),
|
|
439
|
-
input,
|
|
440
|
-
errorText && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("label", { htmlFor: id, className: (0, import_clsx3.default)("text-negative", errorClassName), children: errorText })
|
|
441
|
-
] });
|
|
442
352
|
});
|
|
443
353
|
|
|
444
354
|
// src/components/table/TableFilterButton.tsx
|
|
445
355
|
var import_lucide_react = require("lucide-react");
|
|
446
356
|
|
|
447
357
|
// src/components/user-action/Menu.tsx
|
|
448
|
-
var
|
|
449
|
-
var
|
|
358
|
+
var import_react7 = require("react");
|
|
359
|
+
var import_clsx3 = __toESM(require("clsx"));
|
|
450
360
|
|
|
451
361
|
// src/hooks/useOutsideClick.ts
|
|
452
|
-
var
|
|
362
|
+
var import_react5 = require("react");
|
|
453
363
|
var useOutsideClick = (refs, handler) => {
|
|
454
|
-
(0,
|
|
364
|
+
(0, import_react5.useEffect)(() => {
|
|
455
365
|
const listener = (event) => {
|
|
456
366
|
if (event.target === null) return;
|
|
457
367
|
if (refs.some((ref) => !ref.current || ref.current.contains(event.target))) {
|
|
@@ -469,15 +379,15 @@ var useOutsideClick = (refs, handler) => {
|
|
|
469
379
|
};
|
|
470
380
|
|
|
471
381
|
// src/hooks/useHoverState.ts
|
|
472
|
-
var
|
|
382
|
+
var import_react6 = require("react");
|
|
473
383
|
var defaultUseHoverStateProps = {
|
|
474
384
|
closingDelay: 200,
|
|
475
385
|
isDisabled: false
|
|
476
386
|
};
|
|
477
387
|
var useHoverState = (props = void 0) => {
|
|
478
388
|
const { closingDelay, isDisabled } = { ...defaultUseHoverStateProps, ...props };
|
|
479
|
-
const [isHovered, setIsHovered] = (0,
|
|
480
|
-
const [timer, setTimer] = (0,
|
|
389
|
+
const [isHovered, setIsHovered] = (0, import_react6.useState)(false);
|
|
390
|
+
const [timer, setTimer] = (0, import_react6.useState)();
|
|
481
391
|
const onMouseEnter = () => {
|
|
482
392
|
if (isDisabled) {
|
|
483
393
|
return;
|
|
@@ -493,14 +403,14 @@ var useHoverState = (props = void 0) => {
|
|
|
493
403
|
setIsHovered(false);
|
|
494
404
|
}, closingDelay));
|
|
495
405
|
};
|
|
496
|
-
(0,
|
|
406
|
+
(0, import_react6.useEffect)(() => {
|
|
497
407
|
if (timer) {
|
|
498
408
|
return () => {
|
|
499
409
|
clearTimeout(timer);
|
|
500
410
|
};
|
|
501
411
|
}
|
|
502
412
|
});
|
|
503
|
-
(0,
|
|
413
|
+
(0, import_react6.useEffect)(() => {
|
|
504
414
|
if (timer) {
|
|
505
415
|
clearTimeout(timer);
|
|
506
416
|
}
|
|
@@ -512,7 +422,7 @@ var useHoverState = (props = void 0) => {
|
|
|
512
422
|
};
|
|
513
423
|
};
|
|
514
424
|
|
|
515
|
-
// src/
|
|
425
|
+
// src/utils/bagFunctions.ts
|
|
516
426
|
var resolve = (children, bag) => {
|
|
517
427
|
if (typeof children === "function") {
|
|
518
428
|
return children(bag);
|
|
@@ -579,7 +489,7 @@ var usePopoverPosition = (trigger, options) => {
|
|
|
579
489
|
|
|
580
490
|
// src/components/user-action/Menu.tsx
|
|
581
491
|
var import_react_dom = require("react-dom");
|
|
582
|
-
var
|
|
492
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
583
493
|
function getScrollableParents(element) {
|
|
584
494
|
const scrollables = [];
|
|
585
495
|
let parent = element.parentElement;
|
|
@@ -599,10 +509,10 @@ var Menu = ({
|
|
|
599
509
|
menuClassName = ""
|
|
600
510
|
}) => {
|
|
601
511
|
const { isHovered: isOpen, setIsHovered: setIsOpen } = useHoverState({ isDisabled: !showOnHover || disabled });
|
|
602
|
-
const triggerRef = (0,
|
|
603
|
-
const menuRef = (0,
|
|
512
|
+
const triggerRef = (0, import_react7.useRef)(null);
|
|
513
|
+
const menuRef = (0, import_react7.useRef)(null);
|
|
604
514
|
useOutsideClick([triggerRef, menuRef], () => setIsOpen(false));
|
|
605
|
-
const [isHidden, setIsHidden] = (0,
|
|
515
|
+
const [isHidden, setIsHidden] = (0, import_react7.useState)(true);
|
|
606
516
|
const bag = {
|
|
607
517
|
isOpen,
|
|
608
518
|
close: () => setIsOpen(false),
|
|
@@ -613,7 +523,7 @@ var Menu = ({
|
|
|
613
523
|
triggerRef.current?.getBoundingClientRect(),
|
|
614
524
|
{ verticalAlignment: alignmentVertical, horizontalAlignment: alignmentHorizontal, disabled }
|
|
615
525
|
);
|
|
616
|
-
(0,
|
|
526
|
+
(0, import_react7.useEffect)(() => {
|
|
617
527
|
if (!isOpen) return;
|
|
618
528
|
const triggerEl = triggerRef.current;
|
|
619
529
|
if (!triggerEl) return;
|
|
@@ -630,19 +540,19 @@ var Menu = ({
|
|
|
630
540
|
window.removeEventListener("resize", close);
|
|
631
541
|
};
|
|
632
542
|
}, [isOpen, setIsOpen]);
|
|
633
|
-
(0,
|
|
543
|
+
(0, import_react7.useEffect)(() => {
|
|
634
544
|
if (isOpen) {
|
|
635
545
|
setIsHidden(false);
|
|
636
546
|
}
|
|
637
547
|
}, [isOpen]);
|
|
638
|
-
return /* @__PURE__ */ (0,
|
|
548
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
|
|
639
549
|
trigger(bag, triggerRef),
|
|
640
|
-
(0, import_react_dom.createPortal)(/* @__PURE__ */ (0,
|
|
550
|
+
(0, import_react_dom.createPortal)(/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
641
551
|
"div",
|
|
642
552
|
{
|
|
643
553
|
ref: menuRef,
|
|
644
554
|
onClick: (e) => e.stopPropagation(),
|
|
645
|
-
className: (0,
|
|
555
|
+
className: (0, import_clsx3.default)(
|
|
646
556
|
"absolute rounded-md bg-menu-background text-menu-text shadow-around-lg shadow-strong z-[300]",
|
|
647
557
|
{
|
|
648
558
|
"animate-pop-in": isOpen,
|
|
@@ -666,10 +576,10 @@ var Menu = ({
|
|
|
666
576
|
};
|
|
667
577
|
|
|
668
578
|
// src/localization/LanguageProvider.tsx
|
|
669
|
-
var
|
|
579
|
+
var import_react9 = require("react");
|
|
670
580
|
|
|
671
581
|
// src/hooks/useLocalStorage.ts
|
|
672
|
-
var
|
|
582
|
+
var import_react8 = require("react");
|
|
673
583
|
|
|
674
584
|
// src/localization/util.ts
|
|
675
585
|
var languages = ["en", "de"];
|
|
@@ -685,12 +595,12 @@ var LanguageUtil = {
|
|
|
685
595
|
};
|
|
686
596
|
|
|
687
597
|
// src/localization/LanguageProvider.tsx
|
|
688
|
-
var
|
|
689
|
-
var LanguageContext = (0,
|
|
598
|
+
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
599
|
+
var LanguageContext = (0, import_react9.createContext)({
|
|
690
600
|
language: LanguageUtil.DEFAULT_LANGUAGE,
|
|
691
601
|
setLanguage: (v) => v
|
|
692
602
|
});
|
|
693
|
-
var useLanguage = () => (0,
|
|
603
|
+
var useLanguage = () => (0, import_react9.useContext)(LanguageContext);
|
|
694
604
|
|
|
695
605
|
// src/localization/useTranslation.ts
|
|
696
606
|
var TranslationPluralCount = {
|
|
@@ -788,6 +698,7 @@ var formTranslation = {
|
|
|
788
698
|
next: "Next",
|
|
789
699
|
no: "No",
|
|
790
700
|
none: "None",
|
|
701
|
+
nothingFound: "Nothing found",
|
|
791
702
|
of: "of",
|
|
792
703
|
optional: "Optional",
|
|
793
704
|
pleaseWait: "Please wait...",
|
|
@@ -844,6 +755,7 @@ var formTranslation = {
|
|
|
844
755
|
next: "Weiter",
|
|
845
756
|
no: "Nein",
|
|
846
757
|
none: "Nichts",
|
|
758
|
+
nothingFound: "Nichts gefunden",
|
|
847
759
|
of: "von",
|
|
848
760
|
optional: "Optional",
|
|
849
761
|
pleaseWait: "Bitte warten...",
|
|
@@ -869,8 +781,8 @@ var formTranslation = {
|
|
|
869
781
|
};
|
|
870
782
|
|
|
871
783
|
// src/components/table/TableFilterButton.tsx
|
|
872
|
-
var
|
|
873
|
-
var
|
|
784
|
+
var import_react10 = require("react");
|
|
785
|
+
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
874
786
|
var defaultTableFilterTranslation = {
|
|
875
787
|
en: {
|
|
876
788
|
filter: "Filter",
|
|
@@ -895,17 +807,17 @@ var TableFilterButton = ({
|
|
|
895
807
|
}) => {
|
|
896
808
|
const translation = useTranslation([formTranslation, defaultTableFilterTranslation]);
|
|
897
809
|
const columnFilterValue = column.getFilterValue();
|
|
898
|
-
const [filterValue, setFilterValue] = (0,
|
|
810
|
+
const [filterValue, setFilterValue] = (0, import_react10.useState)(columnFilterValue);
|
|
899
811
|
const hasFilter = !!filterValue;
|
|
900
|
-
(0,
|
|
812
|
+
(0, import_react10.useEffect)(() => {
|
|
901
813
|
setFilterValue(columnFilterValue);
|
|
902
814
|
}, [columnFilterValue]);
|
|
903
|
-
return /* @__PURE__ */ (0,
|
|
815
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
904
816
|
Menu,
|
|
905
817
|
{
|
|
906
|
-
trigger: ({ toggleOpen }, ref) => /* @__PURE__ */ (0,
|
|
907
|
-
/* @__PURE__ */ (0,
|
|
908
|
-
hasFilter && /* @__PURE__ */ (0,
|
|
818
|
+
trigger: ({ toggleOpen }, ref) => /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { ref, className: "relative", children: [
|
|
819
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(IconButton, { color: "neutral", size: "tiny", onClick: toggleOpen, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_lucide_react.FilterIcon, {}) }),
|
|
820
|
+
hasFilter && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
909
821
|
"div",
|
|
910
822
|
{
|
|
911
823
|
className: "absolute top-0.5 right-0.5 w-2 h-2 rounded-full bg-primary pointer-events-none",
|
|
@@ -913,9 +825,9 @@ var TableFilterButton = ({
|
|
|
913
825
|
}
|
|
914
826
|
)
|
|
915
827
|
] }),
|
|
916
|
-
children: ({ close }) => /* @__PURE__ */ (0,
|
|
917
|
-
/* @__PURE__ */ (0,
|
|
918
|
-
filterType === "text" && /* @__PURE__ */ (0,
|
|
828
|
+
children: ({ close }) => /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex-col-1 p-2 items-start font-normal text-menu-text", children: [
|
|
829
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("h4", { className: "typography-label-md-semibold", children: translation("filter") }),
|
|
830
|
+
filterType === "text" && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
919
831
|
Input,
|
|
920
832
|
{
|
|
921
833
|
value: filterValue ?? "",
|
|
@@ -925,8 +837,8 @@ var TableFilterButton = ({
|
|
|
925
837
|
className: "h-10"
|
|
926
838
|
}
|
|
927
839
|
),
|
|
928
|
-
filterType === "range" && /* @__PURE__ */ (0,
|
|
929
|
-
/* @__PURE__ */ (0,
|
|
840
|
+
filterType === "range" && /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex-row-2 items-center", children: [
|
|
841
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
930
842
|
Input,
|
|
931
843
|
{
|
|
932
844
|
value: filterValue?.[0] ?? "",
|
|
@@ -939,8 +851,8 @@ var TableFilterButton = ({
|
|
|
939
851
|
className: "h-10 input-indicator-hidden w-40"
|
|
940
852
|
}
|
|
941
853
|
),
|
|
942
|
-
/* @__PURE__ */ (0,
|
|
943
|
-
/* @__PURE__ */ (0,
|
|
854
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "font-bold", children: "-" }),
|
|
855
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
944
856
|
Input,
|
|
945
857
|
{
|
|
946
858
|
value: filterValue?.[1] ?? "",
|
|
@@ -954,8 +866,8 @@ var TableFilterButton = ({
|
|
|
954
866
|
}
|
|
955
867
|
)
|
|
956
868
|
] }),
|
|
957
|
-
filterType === "dateRange" && /* @__PURE__ */ (0,
|
|
958
|
-
/* @__PURE__ */ (0,
|
|
869
|
+
filterType === "dateRange" && /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_jsx_runtime5.Fragment, { children: [
|
|
870
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
959
871
|
Input,
|
|
960
872
|
{
|
|
961
873
|
value: filterValue?.[0] ? filterValue?.[0].toISOString().slice(0, 16) : "",
|
|
@@ -968,7 +880,7 @@ var TableFilterButton = ({
|
|
|
968
880
|
className: "h-10 w-50"
|
|
969
881
|
}
|
|
970
882
|
),
|
|
971
|
-
/* @__PURE__ */ (0,
|
|
883
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
972
884
|
Input,
|
|
973
885
|
{
|
|
974
886
|
value: filterValue?.[1] ? filterValue?.[1].toISOString().slice(0, 16) : "",
|
|
@@ -982,12 +894,12 @@ var TableFilterButton = ({
|
|
|
982
894
|
}
|
|
983
895
|
)
|
|
984
896
|
] }),
|
|
985
|
-
/* @__PURE__ */ (0,
|
|
986
|
-
hasFilter && /* @__PURE__ */ (0,
|
|
897
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex-row-2 justify-end w-full", children: [
|
|
898
|
+
hasFilter && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(SolidButton, { color: "negative", size: "small", onClick: () => {
|
|
987
899
|
column.setFilterValue(void 0);
|
|
988
900
|
close();
|
|
989
901
|
}, children: translation("remove") }),
|
|
990
|
-
/* @__PURE__ */ (0,
|
|
902
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(SolidButton, { size: "small", onClick: () => {
|
|
991
903
|
column.setFilterValue(filterValue);
|
|
992
904
|
close();
|
|
993
905
|
}, children: translation("apply") })
|