@helpwave/hightide 0.1.24 → 0.1.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/components/branding/HelpwaveBadge.d.mts +4 -5
- package/dist/components/branding/HelpwaveBadge.d.ts +4 -5
- package/dist/components/branding/HelpwaveBadge.js +46 -87
- package/dist/components/branding/HelpwaveBadge.js.map +1 -1
- package/dist/components/branding/HelpwaveBadge.mjs +46 -89
- package/dist/components/branding/HelpwaveBadge.mjs.map +1 -1
- package/dist/components/date/DatePicker.d.mts +1 -1
- package/dist/components/date/DatePicker.d.ts +1 -1
- package/dist/components/date/DatePicker.js +106 -60
- package/dist/components/date/DatePicker.js.map +1 -1
- package/dist/components/date/DatePicker.mjs +107 -61
- package/dist/components/date/DatePicker.mjs.map +1 -1
- package/dist/components/date/DayPicker.d.mts +1 -1
- package/dist/components/date/DayPicker.d.ts +1 -1
- package/dist/components/date/DayPicker.js +3 -3
- package/dist/components/date/DayPicker.js.map +1 -1
- package/dist/components/date/DayPicker.mjs +3 -3
- package/dist/components/date/DayPicker.mjs.map +1 -1
- package/dist/components/date/TimeDisplay.js.map +1 -1
- package/dist/components/date/TimeDisplay.mjs.map +1 -1
- package/dist/components/date/TimePicker.js +2 -2
- package/dist/components/date/TimePicker.js.map +1 -1
- package/dist/components/date/TimePicker.mjs +2 -2
- package/dist/components/date/TimePicker.mjs.map +1 -1
- package/dist/components/date/YearMonthPicker.js +84 -36
- package/dist/components/date/YearMonthPicker.js.map +1 -1
- package/dist/components/date/YearMonthPicker.mjs +85 -37
- package/dist/components/date/YearMonthPicker.mjs.map +1 -1
- package/dist/components/{dialogs → dialog}/ConfirmDialog.d.mts +9 -8
- package/dist/components/{dialogs → dialog}/ConfirmDialog.d.ts +9 -8
- package/dist/components/dialog/ConfirmDialog.js +938 -0
- package/dist/components/dialog/ConfirmDialog.js.map +1 -0
- package/dist/components/dialog/ConfirmDialog.mjs +902 -0
- package/dist/components/dialog/ConfirmDialog.mjs.map +1 -0
- package/dist/components/dialog/Dialog.d.mts +27 -0
- package/dist/components/dialog/Dialog.d.ts +27 -0
- package/dist/components/dialog/Dialog.js +879 -0
- package/dist/components/dialog/Dialog.js.map +1 -0
- package/dist/components/dialog/Dialog.mjs +845 -0
- package/dist/components/dialog/Dialog.mjs.map +1 -0
- package/dist/components/dialog/DiscardChangesDialog.d.mts +24 -0
- package/dist/components/dialog/DiscardChangesDialog.d.ts +24 -0
- package/dist/components/dialog/DiscardChangesDialog.js +966 -0
- package/dist/components/dialog/DiscardChangesDialog.js.map +1 -0
- package/dist/components/dialog/DiscardChangesDialog.mjs +930 -0
- package/dist/components/dialog/DiscardChangesDialog.mjs.map +1 -0
- package/dist/components/dialog/InputDialog.d.mts +22 -0
- package/dist/components/dialog/InputDialog.d.ts +22 -0
- package/dist/components/dialog/InputDialog.js +1139 -0
- package/dist/components/dialog/InputDialog.js.map +1 -0
- package/dist/components/dialog/InputDialog.mjs +1103 -0
- package/dist/components/dialog/InputDialog.mjs.map +1 -0
- package/dist/components/dialog/LanguageDialog.d.mts +25 -0
- package/dist/components/dialog/LanguageDialog.d.ts +25 -0
- package/dist/components/dialog/LanguageDialog.js +1684 -0
- package/dist/components/dialog/LanguageDialog.js.map +1 -0
- package/dist/components/dialog/LanguageDialog.mjs +1658 -0
- package/dist/components/dialog/LanguageDialog.mjs.map +1 -0
- package/dist/components/dialog/ThemeDialog.d.mts +26 -0
- package/dist/components/dialog/ThemeDialog.d.ts +26 -0
- package/dist/components/dialog/ThemeDialog.js +1715 -0
- package/dist/components/dialog/ThemeDialog.js.map +1 -0
- package/dist/components/dialog/ThemeDialog.mjs +1689 -0
- package/dist/components/dialog/ThemeDialog.mjs.map +1 -0
- package/dist/components/dialog/index.d.mts +17 -0
- package/dist/components/dialog/index.d.ts +17 -0
- package/dist/components/dialog/index.js +2062 -0
- package/dist/components/dialog/index.js.map +1 -0
- package/dist/components/dialog/index.mjs +2031 -0
- package/dist/components/dialog/index.mjs.map +1 -0
- package/dist/components/form/FormElementWrapper.d.mts +29 -0
- package/dist/components/form/FormElementWrapper.d.ts +29 -0
- package/dist/components/form/FormElementWrapper.js +98 -0
- package/dist/components/form/FormElementWrapper.js.map +1 -0
- package/dist/components/form/FormElementWrapper.mjs +64 -0
- package/dist/components/form/FormElementWrapper.mjs.map +1 -0
- package/dist/components/icons-and-geometry/Avatar.js +498 -2886
- package/dist/components/icons-and-geometry/Avatar.js.map +1 -1
- package/dist/components/icons-and-geometry/Avatar.mjs +490 -2878
- package/dist/components/icons-and-geometry/Avatar.mjs.map +1 -1
- package/dist/components/icons-and-geometry/{Helpwave.d.mts → HelpwaveLogo.d.mts} +3 -3
- package/dist/components/icons-and-geometry/{Helpwave.d.ts → HelpwaveLogo.d.ts} +3 -3
- package/dist/components/icons-and-geometry/{Helpwave.js → HelpwaveLogo.js} +21 -22
- package/dist/components/icons-and-geometry/HelpwaveLogo.js.map +1 -0
- package/dist/components/icons-and-geometry/{Helpwave.mjs → HelpwaveLogo.mjs} +17 -18
- package/dist/components/icons-and-geometry/HelpwaveLogo.mjs.map +1 -0
- package/dist/components/icons-and-geometry/Ring.js +1 -1
- package/dist/components/icons-and-geometry/Ring.js.map +1 -1
- package/dist/components/icons-and-geometry/Ring.mjs +1 -1
- package/dist/components/icons-and-geometry/Ring.mjs.map +1 -1
- package/dist/components/icons-and-geometry/Tag.js +8 -20
- package/dist/components/icons-and-geometry/Tag.js.map +1 -1
- package/dist/components/icons-and-geometry/Tag.mjs +8 -20
- package/dist/components/icons-and-geometry/Tag.mjs.map +1 -1
- package/dist/components/layout-and-navigation/BreadCrumb.js +667 -22
- package/dist/components/layout-and-navigation/BreadCrumb.js.map +1 -1
- package/dist/components/layout-and-navigation/BreadCrumb.mjs +667 -22
- package/dist/components/layout-and-navigation/BreadCrumb.mjs.map +1 -1
- package/dist/components/layout-and-navigation/Carousel.js +52 -53
- package/dist/components/layout-and-navigation/Carousel.js.map +1 -1
- package/dist/components/layout-and-navigation/Carousel.mjs +52 -53
- package/dist/components/layout-and-navigation/Carousel.mjs.map +1 -1
- package/dist/components/layout-and-navigation/Chip.d.mts +8 -5
- package/dist/components/layout-and-navigation/Chip.d.ts +8 -5
- package/dist/components/layout-and-navigation/Chip.js +17 -4
- package/dist/components/layout-and-navigation/Chip.js.map +1 -1
- package/dist/components/layout-and-navigation/Chip.mjs +17 -4
- package/dist/components/layout-and-navigation/Chip.mjs.map +1 -1
- package/dist/components/layout-and-navigation/Expandable.d.mts +13 -10
- package/dist/components/layout-and-navigation/Expandable.d.ts +13 -10
- package/dist/components/layout-and-navigation/Expandable.js +18 -5
- package/dist/components/layout-and-navigation/Expandable.js.map +1 -1
- package/dist/components/layout-and-navigation/Expandable.mjs +19 -6
- package/dist/components/layout-and-navigation/Expandable.mjs.map +1 -1
- package/dist/components/layout-and-navigation/FAQSection.js +21 -8
- package/dist/components/layout-and-navigation/FAQSection.js.map +1 -1
- package/dist/components/layout-and-navigation/FAQSection.mjs +22 -9
- package/dist/components/layout-and-navigation/FAQSection.mjs.map +1 -1
- package/dist/components/layout-and-navigation/FloatingContainer.d.mts +38 -0
- package/dist/components/layout-and-navigation/FloatingContainer.d.ts +38 -0
- package/dist/components/layout-and-navigation/FloatingContainer.js +219 -0
- package/dist/components/layout-and-navigation/FloatingContainer.js.map +1 -0
- package/dist/components/layout-and-navigation/FloatingContainer.mjs +195 -0
- package/dist/components/layout-and-navigation/FloatingContainer.mjs.map +1 -0
- package/dist/components/layout-and-navigation/ListBox.d.mts +44 -0
- package/dist/components/layout-and-navigation/ListBox.d.ts +44 -0
- package/dist/components/layout-and-navigation/ListBox.js +329 -0
- package/dist/components/layout-and-navigation/ListBox.js.map +1 -0
- package/dist/components/layout-and-navigation/ListBox.mjs +290 -0
- package/dist/components/layout-and-navigation/ListBox.mjs.map +1 -0
- package/dist/components/layout-and-navigation/Pagination.js +142 -230
- package/dist/components/layout-and-navigation/Pagination.js.map +1 -1
- package/dist/components/layout-and-navigation/Pagination.mjs +137 -225
- package/dist/components/layout-and-navigation/Pagination.mjs.map +1 -1
- package/dist/components/layout-and-navigation/ScrollArea.d.mts +15 -0
- package/dist/components/layout-and-navigation/ScrollArea.d.ts +15 -0
- package/dist/components/layout-and-navigation/ScrollArea.js +1252 -0
- package/dist/components/layout-and-navigation/ScrollArea.js.map +1 -0
- package/dist/components/layout-and-navigation/ScrollArea.mjs +1216 -0
- package/dist/components/layout-and-navigation/ScrollArea.mjs.map +1 -0
- package/dist/components/layout-and-navigation/StepperBar.js +67 -30
- package/dist/components/layout-and-navigation/StepperBar.js.map +1 -1
- package/dist/components/layout-and-navigation/StepperBar.mjs +67 -30
- package/dist/components/layout-and-navigation/StepperBar.mjs.map +1 -1
- package/dist/components/layout-and-navigation/TextImage.js +3 -1
- package/dist/components/layout-and-navigation/TextImage.js.map +1 -1
- package/dist/components/layout-and-navigation/TextImage.mjs +3 -1
- package/dist/components/layout-and-navigation/TextImage.mjs.map +1 -1
- package/dist/components/loading-states/ErrorComponent.js.map +1 -1
- package/dist/components/loading-states/ErrorComponent.mjs.map +1 -1
- package/dist/components/loading-states/LoadingAndErrorComponent.d.mts +1 -1
- package/dist/components/loading-states/LoadingAndErrorComponent.d.ts +1 -1
- package/dist/components/loading-states/LoadingAnimation.js +18 -17
- package/dist/components/loading-states/LoadingAnimation.js.map +1 -1
- package/dist/components/loading-states/LoadingAnimation.mjs +18 -17
- package/dist/components/loading-states/LoadingAnimation.mjs.map +1 -1
- package/dist/components/loading-states/LoadingButton.js +81 -47
- package/dist/components/loading-states/LoadingButton.js.map +1 -1
- package/dist/components/loading-states/LoadingButton.mjs +81 -47
- package/dist/components/loading-states/LoadingButton.mjs.map +1 -1
- package/dist/components/properties/CheckboxProperty.js +929 -153
- package/dist/components/properties/CheckboxProperty.js.map +1 -1
- package/dist/components/properties/CheckboxProperty.mjs +936 -160
- package/dist/components/properties/CheckboxProperty.mjs.map +1 -1
- package/dist/components/properties/DateProperty.js +191 -241
- package/dist/components/properties/DateProperty.js.map +1 -1
- package/dist/components/properties/DateProperty.mjs +184 -234
- package/dist/components/properties/DateProperty.mjs.map +1 -1
- package/dist/components/properties/MultiSelectProperty.d.mts +5 -10
- package/dist/components/properties/MultiSelectProperty.d.ts +5 -10
- package/dist/components/properties/MultiSelectProperty.js +1193 -1189
- package/dist/components/properties/MultiSelectProperty.js.map +1 -1
- package/dist/components/properties/MultiSelectProperty.mjs +1207 -1193
- package/dist/components/properties/MultiSelectProperty.mjs.map +1 -1
- package/dist/components/properties/NumberProperty.js +193 -244
- package/dist/components/properties/NumberProperty.js.map +1 -1
- package/dist/components/properties/NumberProperty.mjs +186 -237
- package/dist/components/properties/NumberProperty.mjs.map +1 -1
- package/dist/components/properties/PropertyBase.js +91 -56
- package/dist/components/properties/PropertyBase.js.map +1 -1
- package/dist/components/properties/PropertyBase.mjs +91 -56
- package/dist/components/properties/PropertyBase.mjs.map +1 -1
- package/dist/components/properties/SelectProperty.d.mts +5 -8
- package/dist/components/properties/SelectProperty.d.ts +5 -8
- package/dist/components/properties/SelectProperty.js +1102 -897
- package/dist/components/properties/SelectProperty.js.map +1 -1
- package/dist/components/properties/SelectProperty.mjs +1107 -892
- package/dist/components/properties/SelectProperty.mjs.map +1 -1
- package/dist/components/properties/TextProperty.js +139 -147
- package/dist/components/properties/TextProperty.js.map +1 -1
- package/dist/components/properties/TextProperty.mjs +142 -150
- package/dist/components/properties/TextProperty.mjs.map +1 -1
- package/dist/components/table/Table.js +1639 -991
- package/dist/components/table/Table.js.map +1 -1
- package/dist/components/table/Table.mjs +1645 -997
- package/dist/components/table/Table.mjs.map +1 -1
- package/dist/components/table/TableFilterButton.js +156 -244
- package/dist/components/table/TableFilterButton.js.map +1 -1
- package/dist/components/table/TableFilterButton.mjs +145 -233
- package/dist/components/table/TableFilterButton.mjs.map +1 -1
- package/dist/components/table/TableSortButton.js +44 -46
- package/dist/components/table/TableSortButton.js.map +1 -1
- package/dist/components/table/TableSortButton.mjs +44 -46
- package/dist/components/table/TableSortButton.mjs.map +1 -1
- package/dist/components/user-action/Button.d.mts +17 -13
- package/dist/components/user-action/Button.d.ts +17 -13
- package/dist/components/user-action/Button.js +80 -87
- package/dist/components/user-action/Button.js.map +1 -1
- package/dist/components/user-action/Button.mjs +80 -87
- package/dist/components/user-action/Button.mjs.map +1 -1
- package/dist/components/user-action/Checkbox.d.mts +9 -25
- package/dist/components/user-action/Checkbox.d.ts +9 -25
- package/dist/components/user-action/Checkbox.js +794 -78
- package/dist/components/user-action/Checkbox.js.map +1 -1
- package/dist/components/user-action/Checkbox.mjs +795 -79
- package/dist/components/user-action/Checkbox.mjs.map +1 -1
- package/dist/components/user-action/CopyToClipboardWrapper.js +3 -1
- package/dist/components/user-action/CopyToClipboardWrapper.js.map +1 -1
- package/dist/components/user-action/CopyToClipboardWrapper.mjs +3 -1
- package/dist/components/user-action/CopyToClipboardWrapper.mjs.map +1 -1
- package/dist/components/user-action/DateAndTimePicker.d.mts +1 -1
- package/dist/components/user-action/DateAndTimePicker.d.ts +1 -1
- package/dist/components/user-action/DateAndTimePicker.js +108 -60
- package/dist/components/user-action/DateAndTimePicker.js.map +1 -1
- package/dist/components/user-action/DateAndTimePicker.mjs +109 -61
- package/dist/components/user-action/DateAndTimePicker.mjs.map +1 -1
- package/dist/components/user-action/Label.d.mts +6 -8
- package/dist/components/user-action/Label.d.ts +6 -8
- package/dist/components/user-action/Label.js +4 -6
- package/dist/components/user-action/Label.js.map +1 -1
- package/dist/components/user-action/Label.mjs +4 -6
- package/dist/components/user-action/Label.mjs.map +1 -1
- package/dist/components/user-action/Menu.d.mts +2 -2
- package/dist/components/user-action/Menu.d.ts +2 -2
- package/dist/components/user-action/Menu.js +1 -1
- package/dist/components/user-action/Menu.js.map +1 -1
- package/dist/components/user-action/Menu.mjs +1 -1
- package/dist/components/user-action/Menu.mjs.map +1 -1
- package/dist/components/user-action/ScrollPicker.js +8 -6
- package/dist/components/user-action/ScrollPicker.js.map +1 -1
- package/dist/components/user-action/ScrollPicker.mjs +8 -6
- package/dist/components/user-action/ScrollPicker.mjs.map +1 -1
- package/dist/components/user-action/SearchBar.d.mts +1 -2
- package/dist/components/user-action/SearchBar.d.ts +1 -2
- package/dist/components/user-action/SearchBar.js +131 -219
- package/dist/components/user-action/SearchBar.js.map +1 -1
- package/dist/components/user-action/SearchBar.mjs +124 -212
- package/dist/components/user-action/SearchBar.mjs.map +1 -1
- package/dist/components/user-action/Textarea.d.mts +22 -11
- package/dist/components/user-action/Textarea.d.ts +22 -11
- package/dist/components/user-action/Textarea.js +101 -92
- package/dist/components/user-action/Textarea.js.map +1 -1
- package/dist/components/user-action/Textarea.mjs +100 -92
- package/dist/components/user-action/Textarea.mjs.map +1 -1
- package/dist/components/user-action/input/Input.d.mts +37 -0
- package/dist/components/user-action/input/Input.d.ts +37 -0
- package/dist/components/user-action/input/Input.js +244 -0
- package/dist/components/user-action/input/Input.js.map +1 -0
- package/dist/components/user-action/input/Input.mjs +209 -0
- package/dist/components/user-action/input/Input.mjs.map +1 -0
- package/dist/components/user-action/input/InsideLabelInput.d.mts +20 -0
- package/dist/components/user-action/input/InsideLabelInput.d.ts +20 -0
- package/dist/components/user-action/input/InsideLabelInput.js +295 -0
- package/dist/components/user-action/input/InsideLabelInput.js.map +1 -0
- package/dist/components/user-action/input/InsideLabelInput.mjs +260 -0
- package/dist/components/user-action/input/InsideLabelInput.mjs.map +1 -0
- package/dist/components/user-action/input/ToggleableInput.d.mts +22 -0
- package/dist/components/user-action/input/ToggleableInput.d.ts +22 -0
- package/dist/components/user-action/{Input.js → input/ToggleableInput.js} +136 -171
- package/dist/components/user-action/input/ToggleableInput.js.map +1 -0
- package/dist/components/user-action/input/ToggleableInput.mjs +264 -0
- package/dist/components/user-action/input/ToggleableInput.mjs.map +1 -0
- package/dist/components/user-action/select/Select.d.mts +98 -0
- package/dist/components/user-action/select/Select.d.ts +98 -0
- package/dist/components/user-action/select/Select.js +1354 -0
- package/dist/components/user-action/select/Select.js.map +1 -0
- package/dist/components/user-action/select/Select.mjs +1320 -0
- package/dist/components/user-action/select/Select.mjs.map +1 -0
- package/dist/components/utils/FocusTrap.d.mts +28 -0
- package/dist/components/utils/FocusTrap.d.ts +28 -0
- package/dist/components/utils/FocusTrap.js +252 -0
- package/dist/components/utils/FocusTrap.js.map +1 -0
- package/dist/components/utils/FocusTrap.mjs +229 -0
- package/dist/components/utils/FocusTrap.mjs.map +1 -0
- package/dist/components/utils/Transition.d.mts +26 -0
- package/dist/components/utils/Transition.d.ts +26 -0
- package/dist/components/utils/Transition.js +74 -0
- package/dist/components/utils/Transition.js.map +1 -0
- package/dist/components/utils/Transition.mjs +50 -0
- package/dist/components/utils/Transition.mjs.map +1 -0
- package/dist/hooks/focus/useFocusGuards.d.mts +3 -0
- package/dist/hooks/focus/useFocusGuards.d.ts +3 -0
- package/dist/hooks/focus/useFocusGuards.js +74 -0
- package/dist/hooks/focus/useFocusGuards.js.map +1 -0
- package/dist/hooks/focus/useFocusGuards.mjs +50 -0
- package/dist/hooks/focus/useFocusGuards.mjs.map +1 -0
- package/dist/hooks/{useFocusManagement.js → focus/useFocusManagement.js} +1 -1
- package/dist/hooks/focus/useFocusManagement.js.map +1 -0
- package/dist/hooks/{useFocusManagement.mjs → focus/useFocusManagement.mjs} +1 -1
- package/dist/hooks/focus/useFocusManagement.mjs.map +1 -0
- package/dist/hooks/{useFocusOnceVisible.js → focus/useFocusOnceVisible.js} +1 -1
- package/dist/hooks/focus/useFocusOnceVisible.js.map +1 -0
- package/dist/hooks/{useFocusOnceVisible.mjs → focus/useFocusOnceVisible.mjs} +1 -1
- package/dist/hooks/focus/useFocusOnceVisible.mjs.map +1 -0
- package/dist/hooks/focus/useFocusTrap.d.mts +16 -0
- package/dist/hooks/focus/useFocusTrap.d.ts +16 -0
- package/dist/hooks/focus/useFocusTrap.js +233 -0
- package/dist/hooks/focus/useFocusTrap.js.map +1 -0
- package/dist/hooks/focus/useFocusTrap.mjs +210 -0
- package/dist/hooks/focus/useFocusTrap.mjs.map +1 -0
- package/dist/hooks/focus/useIsMounted.d.mts +3 -0
- package/dist/hooks/focus/useIsMounted.d.ts +3 -0
- package/dist/hooks/focus/useIsMounted.js +43 -0
- package/dist/hooks/focus/useIsMounted.js.map +1 -0
- package/dist/hooks/focus/useIsMounted.mjs +20 -0
- package/dist/hooks/focus/useIsMounted.mjs.map +1 -0
- package/dist/hooks/useFloatingElement.d.mts +22 -0
- package/dist/hooks/useFloatingElement.d.ts +22 -0
- package/dist/hooks/useFloatingElement.js +162 -0
- package/dist/hooks/useFloatingElement.js.map +1 -0
- package/dist/hooks/useFloatingElement.mjs +139 -0
- package/dist/hooks/useFloatingElement.mjs.map +1 -0
- package/dist/hooks/useLocalStorage.js +2 -2
- package/dist/hooks/useLocalStorage.js.map +1 -1
- package/dist/hooks/useLocalStorage.mjs +2 -2
- package/dist/hooks/useLocalStorage.mjs.map +1 -1
- package/dist/hooks/useLogOnce.d.mts +3 -4
- package/dist/hooks/useLogOnce.d.ts +3 -4
- package/dist/hooks/useLogOnce.js +5 -5
- package/dist/hooks/useLogOnce.js.map +1 -1
- package/dist/hooks/useLogOnce.mjs +5 -5
- package/dist/hooks/useLogOnce.mjs.map +1 -1
- package/dist/hooks/useRerender.d.mts +2 -2
- package/dist/hooks/useRerender.d.ts +2 -2
- package/dist/hooks/useSearch.d.mts +2 -2
- package/dist/hooks/useSearch.d.ts +2 -2
- package/dist/hooks/useSearch.js +1 -1
- package/dist/hooks/useSearch.js.map +1 -1
- package/dist/hooks/useSearch.mjs +1 -1
- package/dist/hooks/useSearch.mjs.map +1 -1
- package/dist/localization/LanguageProvider.d.mts +2 -2
- package/dist/localization/LanguageProvider.d.ts +2 -2
- package/dist/localization/LanguageProvider.js +2 -2
- package/dist/localization/LanguageProvider.js.map +1 -1
- package/dist/localization/LanguageProvider.mjs +2 -2
- package/dist/localization/LanguageProvider.mjs.map +1 -1
- package/dist/localization/defaults/form.d.mts +1 -0
- package/dist/localization/defaults/form.d.ts +1 -0
- package/dist/localization/defaults/form.js +2 -0
- package/dist/localization/defaults/form.js.map +1 -1
- package/dist/localization/defaults/form.mjs +2 -0
- package/dist/localization/defaults/form.mjs.map +1 -1
- package/dist/localization/useTranslation.js.map +1 -1
- package/dist/localization/useTranslation.mjs.map +1 -1
- package/dist/storybook/helper.d.mts +17 -0
- package/dist/storybook/helper.d.ts +17 -0
- package/dist/storybook/helper.js +61 -0
- package/dist/storybook/helper.js.map +1 -0
- package/dist/storybook/helper.mjs +37 -0
- package/dist/storybook/helper.mjs.map +1 -0
- package/dist/{css → style}/globals.css +994 -456
- package/dist/{css → style}/uncompiled/globals.css +75 -13
- package/dist/{css → style}/uncompiled/theme/colors-component.css +18 -4
- package/dist/{css → style}/uncompiled/theme/colors-semantic.css +2 -9
- package/dist/style/uncompiled/typography.css +171 -0
- package/dist/{css → style}/uncompiled/utitlity/animation.css +54 -42
- package/dist/{css → style}/uncompiled/utitlity/index.css +2 -1
- package/dist/{css → style}/uncompiled/utitlity/shadow.css +5 -1
- package/dist/style/uncompiled/utitlity/sizing.css +29 -0
- package/dist/theming/useTheme.d.mts +2 -2
- package/dist/theming/useTheme.d.ts +2 -2
- package/dist/theming/useTheme.js +4 -4
- package/dist/theming/useTheme.js.map +1 -1
- package/dist/theming/useTheme.mjs +4 -4
- package/dist/theming/useTheme.mjs.map +1 -1
- package/dist/{util → utils}/array.d.mts +1 -0
- package/dist/{util → utils}/array.d.ts +1 -0
- package/dist/{util → utils}/array.js +15 -2
- package/dist/utils/array.js.map +1 -0
- package/dist/{util → utils}/array.mjs +15 -2
- package/dist/utils/array.mjs.map +1 -0
- package/dist/utils/bagFunctions.d.mts +15 -0
- package/dist/utils/bagFunctions.d.ts +15 -0
- package/dist/{util/PropsWithFunctionChildren.js → utils/bagFunctions.js} +5 -5
- package/dist/utils/bagFunctions.js.map +1 -0
- package/dist/{util/PropsWithFunctionChildren.mjs → utils/bagFunctions.mjs} +2 -2
- package/dist/utils/bagFunctions.mjs.map +1 -0
- package/dist/{util → utils}/builder.js +1 -1
- package/dist/utils/builder.js.map +1 -0
- package/dist/{util → utils}/builder.mjs +1 -1
- package/dist/utils/builder.mjs.map +1 -0
- package/dist/{util → utils}/date.js +3 -3
- package/dist/utils/date.js.map +1 -0
- package/dist/{util → utils}/date.mjs +2 -2
- package/dist/utils/date.mjs.map +1 -0
- package/dist/{util → utils}/easeFunctions.js +5 -4
- package/dist/utils/easeFunctions.js.map +1 -0
- package/dist/{util → utils}/easeFunctions.mjs +4 -3
- package/dist/utils/easeFunctions.mjs.map +1 -0
- package/dist/{util → utils}/emailValidation.js +1 -1
- package/dist/utils/emailValidation.js.map +1 -0
- package/dist/{util → utils}/emailValidation.mjs +1 -1
- package/dist/utils/emailValidation.mjs.map +1 -0
- package/dist/{util → utils}/loopingArray.js +1 -1
- package/dist/utils/loopingArray.js.map +1 -0
- package/dist/{util → utils}/loopingArray.mjs +1 -1
- package/dist/utils/loopingArray.mjs.map +1 -0
- package/dist/utils/match.d.mts +3 -0
- package/dist/utils/match.d.ts +3 -0
- package/dist/utils/match.js +32 -0
- package/dist/utils/match.js.map +1 -0
- package/dist/utils/match.mjs +8 -0
- package/dist/utils/match.mjs.map +1 -0
- package/dist/utils/math.d.mts +3 -0
- package/dist/utils/math.d.ts +3 -0
- package/dist/{util → utils}/math.js +3 -2
- package/dist/utils/math.js.map +1 -0
- package/dist/utils/math.mjs +9 -0
- package/dist/utils/math.mjs.map +1 -0
- package/dist/{util → utils}/noop.js +1 -1
- package/dist/utils/noop.js.map +1 -0
- package/dist/utils/noop.mjs +6 -0
- package/dist/utils/noop.mjs.map +1 -0
- package/dist/{util → utils}/resolveSetState.js +1 -1
- package/dist/utils/resolveSetState.js.map +1 -0
- package/dist/{util → utils}/resolveSetState.mjs +1 -1
- package/dist/utils/resolveSetState.mjs.map +1 -0
- package/dist/{util → utils}/simpleSearch.js +1 -1
- package/dist/utils/simpleSearch.js.map +1 -0
- package/dist/{util → utils}/simpleSearch.mjs +1 -1
- package/dist/utils/simpleSearch.mjs.map +1 -0
- package/dist/{util → utils}/storage.js +1 -1
- package/dist/utils/storage.js.map +1 -0
- package/dist/{util → utils}/storage.mjs +1 -1
- package/dist/utils/storage.mjs.map +1 -0
- package/dist/{util → utils}/writeToClipboard.js +2 -1
- package/dist/utils/writeToClipboard.js.map +1 -0
- package/dist/{util → utils}/writeToClipboard.mjs +3 -1
- package/dist/utils/writeToClipboard.mjs.map +1 -0
- package/package.json +8 -8
- package/dist/components/dialogs/ConfirmDialog.js +0 -677
- package/dist/components/dialogs/ConfirmDialog.js.map +0 -1
- package/dist/components/dialogs/ConfirmDialog.mjs +0 -641
- package/dist/components/dialogs/ConfirmDialog.mjs.map +0 -1
- package/dist/components/icons-and-geometry/Helpwave.js.map +0 -1
- package/dist/components/icons-and-geometry/Helpwave.mjs.map +0 -1
- package/dist/components/layout-and-navigation/Overlay.d.mts +0 -67
- package/dist/components/layout-and-navigation/Overlay.d.ts +0 -67
- package/dist/components/layout-and-navigation/Overlay.js +0 -705
- package/dist/components/layout-and-navigation/Overlay.js.map +0 -1
- package/dist/components/layout-and-navigation/Overlay.mjs +0 -668
- package/dist/components/layout-and-navigation/Overlay.mjs.map +0 -1
- package/dist/components/layout-and-navigation/SearchableList.d.mts +0 -24
- package/dist/components/layout-and-navigation/SearchableList.d.ts +0 -24
- package/dist/components/layout-and-navigation/SearchableList.js +0 -761
- package/dist/components/layout-and-navigation/SearchableList.js.map +0 -1
- package/dist/components/layout-and-navigation/SearchableList.mjs +0 -727
- package/dist/components/layout-and-navigation/SearchableList.mjs.map +0 -1
- package/dist/components/layout-and-navigation/Tile.d.mts +0 -27
- package/dist/components/layout-and-navigation/Tile.d.ts +0 -27
- package/dist/components/layout-and-navigation/Tile.js +0 -96
- package/dist/components/layout-and-navigation/Tile.js.map +0 -1
- package/dist/components/layout-and-navigation/Tile.mjs +0 -61
- package/dist/components/layout-and-navigation/Tile.mjs.map +0 -1
- package/dist/components/modals/ConfirmModal.d.mts +0 -33
- package/dist/components/modals/ConfirmModal.d.ts +0 -33
- package/dist/components/modals/ConfirmModal.js +0 -690
- package/dist/components/modals/ConfirmModal.js.map +0 -1
- package/dist/components/modals/ConfirmModal.mjs +0 -654
- package/dist/components/modals/ConfirmModal.mjs.map +0 -1
- package/dist/components/modals/DiscardChangesModal.d.mts +0 -20
- package/dist/components/modals/DiscardChangesModal.d.ts +0 -20
- package/dist/components/modals/DiscardChangesModal.js +0 -720
- package/dist/components/modals/DiscardChangesModal.js.map +0 -1
- package/dist/components/modals/DiscardChangesModal.mjs +0 -684
- package/dist/components/modals/DiscardChangesModal.mjs.map +0 -1
- package/dist/components/modals/InputModal.d.mts +0 -21
- package/dist/components/modals/InputModal.d.ts +0 -21
- package/dist/components/modals/InputModal.js +0 -979
- package/dist/components/modals/InputModal.js.map +0 -1
- package/dist/components/modals/InputModal.mjs +0 -943
- package/dist/components/modals/InputModal.mjs.map +0 -1
- package/dist/components/modals/LanguageModal.d.mts +0 -21
- package/dist/components/modals/LanguageModal.d.ts +0 -21
- package/dist/components/modals/LanguageModal.js +0 -1474
- package/dist/components/modals/LanguageModal.js.map +0 -1
- package/dist/components/modals/LanguageModal.mjs +0 -1438
- package/dist/components/modals/LanguageModal.mjs.map +0 -1
- package/dist/components/modals/ThemeModal.d.mts +0 -21
- package/dist/components/modals/ThemeModal.d.ts +0 -21
- package/dist/components/modals/ThemeModal.js +0 -1503
- package/dist/components/modals/ThemeModal.js.map +0 -1
- package/dist/components/modals/ThemeModal.mjs +0 -1467
- package/dist/components/modals/ThemeModal.mjs.map +0 -1
- package/dist/components/user-action/Input.d.mts +0 -77
- package/dist/components/user-action/Input.d.ts +0 -77
- package/dist/components/user-action/Input.js.map +0 -1
- package/dist/components/user-action/Input.mjs +0 -298
- package/dist/components/user-action/Input.mjs.map +0 -1
- package/dist/components/user-action/MultiSelect.d.mts +0 -42
- package/dist/components/user-action/MultiSelect.d.ts +0 -42
- package/dist/components/user-action/MultiSelect.js +0 -1445
- package/dist/components/user-action/MultiSelect.js.map +0 -1
- package/dist/components/user-action/MultiSelect.mjs +0 -1410
- package/dist/components/user-action/MultiSelect.mjs.map +0 -1
- package/dist/components/user-action/Select.d.mts +0 -41
- package/dist/components/user-action/Select.d.ts +0 -41
- package/dist/components/user-action/Select.js +0 -1242
- package/dist/components/user-action/Select.js.map +0 -1
- package/dist/components/user-action/Select.mjs +0 -1207
- package/dist/components/user-action/Select.mjs.map +0 -1
- package/dist/components/user-action/ToggleableInput.d.mts +0 -37
- package/dist/components/user-action/ToggleableInput.d.ts +0 -37
- package/dist/components/user-action/ToggleableInput.js +0 -192
- package/dist/components/user-action/ToggleableInput.js.map +0 -1
- package/dist/components/user-action/ToggleableInput.mjs +0 -157
- package/dist/components/user-action/ToggleableInput.mjs.map +0 -1
- package/dist/css/uncompiled/textstyles.css +0 -69
- package/dist/hooks/useFocusManagement.js.map +0 -1
- package/dist/hooks/useFocusManagement.mjs.map +0 -1
- package/dist/hooks/useFocusOnceVisible.js.map +0 -1
- package/dist/hooks/useFocusOnceVisible.mjs.map +0 -1
- package/dist/index.d.mts +0 -103
- package/dist/index.d.ts +0 -103
- package/dist/index.js +0 -12595
- package/dist/index.js.map +0 -1
- package/dist/index.mjs +0 -12432
- package/dist/index.mjs.map +0 -1
- package/dist/util/PropsWithFunctionChildren.d.mts +0 -14
- package/dist/util/PropsWithFunctionChildren.d.ts +0 -14
- package/dist/util/PropsWithFunctionChildren.js.map +0 -1
- package/dist/util/PropsWithFunctionChildren.mjs.map +0 -1
- package/dist/util/array.js.map +0 -1
- package/dist/util/array.mjs.map +0 -1
- package/dist/util/builder.js.map +0 -1
- package/dist/util/builder.mjs.map +0 -1
- package/dist/util/date.js.map +0 -1
- package/dist/util/date.mjs.map +0 -1
- package/dist/util/easeFunctions.js.map +0 -1
- package/dist/util/easeFunctions.mjs.map +0 -1
- package/dist/util/emailValidation.js.map +0 -1
- package/dist/util/emailValidation.mjs.map +0 -1
- package/dist/util/loopingArray.js.map +0 -1
- package/dist/util/loopingArray.mjs.map +0 -1
- package/dist/util/math.d.mts +0 -3
- package/dist/util/math.d.ts +0 -3
- package/dist/util/math.js.map +0 -1
- package/dist/util/math.mjs +0 -8
- package/dist/util/math.mjs.map +0 -1
- package/dist/util/news.d.mts +0 -101
- package/dist/util/news.d.ts +0 -101
- package/dist/util/news.js +0 -76
- package/dist/util/news.js.map +0 -1
- package/dist/util/news.mjs +0 -49
- package/dist/util/news.mjs.map +0 -1
- package/dist/util/noop.js.map +0 -1
- package/dist/util/noop.mjs +0 -6
- package/dist/util/noop.mjs.map +0 -1
- package/dist/util/resolveSetState.js.map +0 -1
- package/dist/util/resolveSetState.mjs.map +0 -1
- package/dist/util/simpleSearch.js.map +0 -1
- package/dist/util/simpleSearch.mjs.map +0 -1
- package/dist/util/storage.js.map +0 -1
- package/dist/util/storage.mjs.map +0 -1
- package/dist/util/types.d.mts +0 -3
- package/dist/util/types.d.ts +0 -3
- package/dist/util/types.js +0 -18
- package/dist/util/types.js.map +0 -1
- package/dist/util/types.mjs +0 -1
- package/dist/util/types.mjs.map +0 -1
- package/dist/util/writeToClipboard.js.map +0 -1
- package/dist/util/writeToClipboard.mjs.map +0 -1
- /package/dist/hooks/{useFocusManagement.d.mts → focus/useFocusManagement.d.mts} +0 -0
- /package/dist/hooks/{useFocusManagement.d.ts → focus/useFocusManagement.d.ts} +0 -0
- /package/dist/hooks/{useFocusOnceVisible.d.mts → focus/useFocusOnceVisible.d.mts} +0 -0
- /package/dist/hooks/{useFocusOnceVisible.d.ts → focus/useFocusOnceVisible.d.ts} +0 -0
- /package/dist/{css → style}/uncompiled/theme/colors-basic.css +0 -0
- /package/dist/{css → style}/uncompiled/theme/index.css +0 -0
- /package/dist/{css → style}/uncompiled/theme/variants.css +0 -0
- /package/dist/{css → style}/uncompiled/utitlity/borderradius.css +0 -0
- /package/dist/{css → style}/uncompiled/utitlity/general.css +0 -0
- /package/dist/{util → utils}/builder.d.mts +0 -0
- /package/dist/{util → utils}/builder.d.ts +0 -0
- /package/dist/{util → utils}/date.d.mts +0 -0
- /package/dist/{util → utils}/date.d.ts +0 -0
- /package/dist/{util → utils}/easeFunctions.d.mts +0 -0
- /package/dist/{util → utils}/easeFunctions.d.ts +0 -0
- /package/dist/{util → utils}/emailValidation.d.mts +0 -0
- /package/dist/{util → utils}/emailValidation.d.ts +0 -0
- /package/dist/{util → utils}/loopingArray.d.mts +0 -0
- /package/dist/{util → utils}/loopingArray.d.ts +0 -0
- /package/dist/{util → utils}/noop.d.mts +0 -0
- /package/dist/{util → utils}/noop.d.ts +0 -0
- /package/dist/{util → utils}/resolveSetState.d.mts +0 -0
- /package/dist/{util → utils}/resolveSetState.d.ts +0 -0
- /package/dist/{util → utils}/simpleSearch.d.mts +0 -0
- /package/dist/{util → utils}/simpleSearch.d.ts +0 -0
- /package/dist/{util → utils}/storage.d.mts +0 -0
- /package/dist/{util → utils}/storage.d.ts +0 -0
- /package/dist/{util → utils}/writeToClipboard.d.mts +0 -0
- /package/dist/{util → utils}/writeToClipboard.d.ts +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// src/components/properties/DateProperty.tsx
|
|
2
2
|
import { CalendarDays } from "lucide-react";
|
|
3
|
-
import
|
|
3
|
+
import clsx4 from "clsx";
|
|
4
4
|
|
|
5
|
-
// src/
|
|
5
|
+
// src/utils/date.ts
|
|
6
6
|
var formatDate = (date) => {
|
|
7
7
|
const year = date.getFullYear().toString().padStart(4, "0");
|
|
8
8
|
const month = (date.getMonth() + 1).toString().padStart(2, "0");
|
|
@@ -16,12 +16,12 @@ var formatDateTime = (date) => {
|
|
|
16
16
|
return `${dateString}T${hours}:${minutes}`;
|
|
17
17
|
};
|
|
18
18
|
|
|
19
|
-
// src/
|
|
19
|
+
// src/utils/noop.ts
|
|
20
20
|
var noop = () => void 0;
|
|
21
21
|
|
|
22
|
-
// src/components/user-action/Input.tsx
|
|
23
|
-
import { forwardRef, useEffect as
|
|
24
|
-
import
|
|
22
|
+
// src/components/user-action/input/Input.tsx
|
|
23
|
+
import { forwardRef, useEffect as useEffect2, useImperativeHandle, useRef, useState as useState2 } from "react";
|
|
24
|
+
import clsx from "clsx";
|
|
25
25
|
|
|
26
26
|
// src/hooks/useDelay.ts
|
|
27
27
|
import { useEffect, useState } from "react";
|
|
@@ -63,25 +63,7 @@ function useDelay(options) {
|
|
|
63
63
|
return { restartTimer, clearTimer, hasActiveTimer: !!timer };
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
// src/
|
|
67
|
-
import clsx from "clsx";
|
|
68
|
-
import { jsx } from "react/jsx-runtime";
|
|
69
|
-
var styleMapping = {
|
|
70
|
-
labelSmall: "textstyle-label-sm",
|
|
71
|
-
labelMedium: "textstyle-label-md",
|
|
72
|
-
labelBig: "textstyle-label-lg"
|
|
73
|
-
};
|
|
74
|
-
var Label = ({
|
|
75
|
-
children,
|
|
76
|
-
name,
|
|
77
|
-
labelType = "labelSmall",
|
|
78
|
-
className,
|
|
79
|
-
...props
|
|
80
|
-
}) => {
|
|
81
|
-
return /* @__PURE__ */ jsx("label", { ...props, className: clsx(styleMapping[labelType], className), children: children ? children : name });
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
// src/hooks/useFocusManagement.ts
|
|
66
|
+
// src/hooks/focus/useFocusManagement.ts
|
|
85
67
|
import { useCallback } from "react";
|
|
86
68
|
function useFocusManagement() {
|
|
87
69
|
const getFocusableElements = useCallback(() => {
|
|
@@ -138,164 +120,97 @@ function useFocusManagement() {
|
|
|
138
120
|
};
|
|
139
121
|
}
|
|
140
122
|
|
|
141
|
-
// src/
|
|
142
|
-
import
|
|
143
|
-
var useFocusOnceVisible = (ref, disable = false) => {
|
|
144
|
-
const [hasUsedFocus, setHasUsedFocus] = React.useState(false);
|
|
145
|
-
useEffect2(() => {
|
|
146
|
-
if (disable || hasUsedFocus) {
|
|
147
|
-
return;
|
|
148
|
-
}
|
|
149
|
-
const observer = new IntersectionObserver(([entry]) => {
|
|
150
|
-
if (entry.isIntersecting && !hasUsedFocus) {
|
|
151
|
-
ref.current?.focus();
|
|
152
|
-
setHasUsedFocus(hasUsedFocus);
|
|
153
|
-
}
|
|
154
|
-
}, {
|
|
155
|
-
threshold: 0.1
|
|
156
|
-
});
|
|
157
|
-
if (ref.current) {
|
|
158
|
-
observer.observe(ref.current);
|
|
159
|
-
}
|
|
160
|
-
return () => observer.disconnect();
|
|
161
|
-
}, [disable, hasUsedFocus, ref]);
|
|
162
|
-
};
|
|
163
|
-
|
|
164
|
-
// src/components/user-action/Input.tsx
|
|
165
|
-
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
166
|
-
var getInputClassName = ({ disabled = false, hasError = false }) => {
|
|
167
|
-
return clsx2(
|
|
168
|
-
"px-2 py-1.5 rounded-md border-2",
|
|
169
|
-
{
|
|
170
|
-
"bg-input-background text-input-text hover:border-primary focus:border-primary": !disabled && !hasError,
|
|
171
|
-
"bg-on-negative text-negative border-negative-border hover:border-negative-border-hover": !disabled && hasError,
|
|
172
|
-
"bg-disabled-background text-disabled-text border-disabled-border": disabled
|
|
173
|
-
}
|
|
174
|
-
);
|
|
175
|
-
};
|
|
123
|
+
// src/components/user-action/input/Input.tsx
|
|
124
|
+
import { jsx } from "react/jsx-runtime";
|
|
176
125
|
var defaultEditCompleteOptions = {
|
|
126
|
+
allowEnterComplete: false,
|
|
177
127
|
onBlur: true,
|
|
178
128
|
afterDelay: true,
|
|
179
129
|
delay: 2500
|
|
180
130
|
};
|
|
181
131
|
var Input = forwardRef(function Input2({
|
|
182
|
-
id,
|
|
183
|
-
type = "text",
|
|
184
132
|
value,
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
onChangeText = noop,
|
|
133
|
+
onChange,
|
|
134
|
+
onChangeText,
|
|
188
135
|
onEditCompleted,
|
|
189
|
-
className = "",
|
|
190
|
-
allowEnterComplete = true,
|
|
191
|
-
expanded = true,
|
|
192
|
-
autoFocus = false,
|
|
193
|
-
onBlur,
|
|
194
136
|
editCompleteOptions,
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
137
|
+
disabled = false,
|
|
138
|
+
invalid = false,
|
|
139
|
+
defaultStyle = true,
|
|
140
|
+
className,
|
|
141
|
+
...props
|
|
198
142
|
}, forwardedRef) {
|
|
199
|
-
const {
|
|
143
|
+
const {
|
|
144
|
+
onBlur: allowEditCompleteOnBlur,
|
|
145
|
+
afterDelay,
|
|
146
|
+
delay,
|
|
147
|
+
allowEnterComplete
|
|
148
|
+
} = { ...defaultEditCompleteOptions, ...editCompleteOptions };
|
|
200
149
|
const {
|
|
201
150
|
restartTimer,
|
|
202
151
|
clearTimer
|
|
203
152
|
} = useDelay({ delay, disabled: !afterDelay });
|
|
204
153
|
const innerRef = useRef(null);
|
|
205
|
-
const { focusNext } = useFocusManagement();
|
|
206
|
-
useFocusOnceVisible(innerRef, !autoFocus);
|
|
207
154
|
useImperativeHandle(forwardedRef, () => innerRef.current);
|
|
208
|
-
const
|
|
209
|
-
|
|
210
|
-
e.preventDefault();
|
|
211
|
-
innerRef.current?.blur();
|
|
212
|
-
focusNext();
|
|
213
|
-
}
|
|
214
|
-
};
|
|
215
|
-
return /* @__PURE__ */ jsxs("div", { className: clsx2({ "w-full": expanded }, containerClassName), children: [
|
|
216
|
-
label && /* @__PURE__ */ jsx2(Label, { ...label, htmlFor: id, className: clsx2("mb-1", label.className) }),
|
|
217
|
-
/* @__PURE__ */ jsx2(
|
|
218
|
-
"input",
|
|
219
|
-
{
|
|
220
|
-
...restProps,
|
|
221
|
-
ref: innerRef,
|
|
222
|
-
value,
|
|
223
|
-
id,
|
|
224
|
-
type,
|
|
225
|
-
disabled,
|
|
226
|
-
className: clsx2(getInputClassName({ disabled }), className),
|
|
227
|
-
onKeyDown: allowEnterComplete ? handleKeyDown : void 0,
|
|
228
|
-
onBlur: (event) => {
|
|
229
|
-
onBlur?.(event);
|
|
230
|
-
if (onEditCompleted && allowEditCompleteOnBlur) {
|
|
231
|
-
onEditCompleted(event.target.value);
|
|
232
|
-
clearTimer();
|
|
233
|
-
}
|
|
234
|
-
},
|
|
235
|
-
onChange: (e) => {
|
|
236
|
-
const value2 = e.target.value;
|
|
237
|
-
if (onEditCompleted) {
|
|
238
|
-
restartTimer(() => {
|
|
239
|
-
if (innerRef.current) {
|
|
240
|
-
innerRef.current.blur();
|
|
241
|
-
if (!allowEditCompleteOnBlur) {
|
|
242
|
-
onEditCompleted(value2);
|
|
243
|
-
}
|
|
244
|
-
} else {
|
|
245
|
-
onEditCompleted(value2);
|
|
246
|
-
}
|
|
247
|
-
});
|
|
248
|
-
}
|
|
249
|
-
onChange(e);
|
|
250
|
-
onChangeText(value2);
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
)
|
|
254
|
-
] });
|
|
255
|
-
});
|
|
256
|
-
var FormInput = forwardRef(function FormInput2({
|
|
257
|
-
id,
|
|
258
|
-
labelText,
|
|
259
|
-
errorText,
|
|
260
|
-
className,
|
|
261
|
-
labelClassName,
|
|
262
|
-
errorClassName,
|
|
263
|
-
containerClassName,
|
|
264
|
-
required,
|
|
265
|
-
disabled,
|
|
266
|
-
...restProps
|
|
267
|
-
}, ref) {
|
|
268
|
-
const input = /* @__PURE__ */ jsx2(
|
|
155
|
+
const { focusNext } = useFocusManagement();
|
|
156
|
+
return /* @__PURE__ */ jsx(
|
|
269
157
|
"input",
|
|
270
158
|
{
|
|
271
|
-
...
|
|
272
|
-
ref,
|
|
273
|
-
|
|
159
|
+
...props,
|
|
160
|
+
ref: innerRef,
|
|
161
|
+
value,
|
|
274
162
|
disabled,
|
|
275
|
-
className:
|
|
276
|
-
|
|
163
|
+
className: defaultStyle ? clsx(
|
|
164
|
+
"px-2.5 py-1.75 rounded-md border-1 text-sm",
|
|
165
|
+
{
|
|
166
|
+
"bg-input-background text-input-text hover:border-primary focus:border-primary": !disabled && !invalid,
|
|
167
|
+
"bg-on-negative text-negative border-negative-border hover:border-negative-border-hover focus-visible:ring-negative-border": !disabled && invalid,
|
|
168
|
+
"bg-disabled-background text-disabled-text border-disabled-border": disabled
|
|
169
|
+
},
|
|
277
170
|
className
|
|
278
|
-
)
|
|
171
|
+
) : className,
|
|
172
|
+
onKeyDown: (event) => {
|
|
173
|
+
props.onKeyDown?.(event);
|
|
174
|
+
if (!allowEnterComplete) {
|
|
175
|
+
return;
|
|
176
|
+
}
|
|
177
|
+
if (event.key === "Enter" && !event.shiftKey) {
|
|
178
|
+
event.preventDefault();
|
|
179
|
+
innerRef.current?.blur();
|
|
180
|
+
onEditCompleted?.(event.target.value);
|
|
181
|
+
focusNext();
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
onBlur: (event) => {
|
|
185
|
+
props.onBlur?.(event);
|
|
186
|
+
if (allowEditCompleteOnBlur) {
|
|
187
|
+
onEditCompleted?.(event.target.value);
|
|
188
|
+
clearTimer();
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
onChange: (event) => {
|
|
192
|
+
onChange?.(event);
|
|
193
|
+
const value2 = event.target.value;
|
|
194
|
+
restartTimer(() => {
|
|
195
|
+
innerRef.current?.blur();
|
|
196
|
+
onEditCompleted?.(value2);
|
|
197
|
+
});
|
|
198
|
+
onChangeText?.(value2);
|
|
199
|
+
},
|
|
200
|
+
"aria-invalid": props["aria-invalid"] ?? invalid,
|
|
201
|
+
"aria-disabled": props["aria-disabled"] ?? disabled
|
|
279
202
|
}
|
|
280
203
|
);
|
|
281
|
-
return /* @__PURE__ */ jsxs("div", { className: clsx2("flex flex-col gap-y-1", containerClassName), children: [
|
|
282
|
-
labelText && /* @__PURE__ */ jsxs("label", { htmlFor: id, className: clsx2("textstyle-label-md", labelClassName), children: [
|
|
283
|
-
labelText,
|
|
284
|
-
required && /* @__PURE__ */ jsx2("span", { className: "text-primary font-bold", children: "*" })
|
|
285
|
-
] }),
|
|
286
|
-
input,
|
|
287
|
-
errorText && /* @__PURE__ */ jsx2("label", { htmlFor: id, className: clsx2("text-negative", errorClassName), children: errorText })
|
|
288
|
-
] });
|
|
289
204
|
});
|
|
290
205
|
|
|
291
206
|
// src/components/properties/PropertyBase.tsx
|
|
292
207
|
import { AlertTriangle } from "lucide-react";
|
|
293
|
-
import
|
|
208
|
+
import clsx3 from "clsx";
|
|
294
209
|
|
|
295
210
|
// src/components/user-action/Button.tsx
|
|
296
211
|
import { forwardRef as forwardRef2 } from "react";
|
|
297
|
-
import
|
|
298
|
-
import { jsx as
|
|
212
|
+
import clsx2 from "clsx";
|
|
213
|
+
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
299
214
|
var ButtonColorUtil = {
|
|
300
215
|
solid: ["primary", "secondary", "tertiary", "positive", "warning", "negative", "neutral"],
|
|
301
216
|
text: ["primary", "negative", "neutral"],
|
|
@@ -321,7 +236,6 @@ var ButtonUtil = {
|
|
|
321
236
|
};
|
|
322
237
|
var SolidButton = forwardRef2(function SolidButton2({
|
|
323
238
|
children,
|
|
324
|
-
disabled = false,
|
|
325
239
|
color = "primary",
|
|
326
240
|
size = "medium",
|
|
327
241
|
startIcon,
|
|
@@ -331,58 +245,56 @@ var SolidButton = forwardRef2(function SolidButton2({
|
|
|
331
245
|
...restProps
|
|
332
246
|
}, ref) {
|
|
333
247
|
const colorClasses = {
|
|
334
|
-
primary: "bg-button-solid-primary-background text-button-solid-primary-text",
|
|
335
|
-
secondary: "bg-button-solid-secondary-background text-button-solid-secondary-text",
|
|
336
|
-
tertiary: "bg-button-solid-tertiary-background text-button-solid-tertiary-text",
|
|
337
|
-
positive: "bg-button-solid-positive-background text-button-solid-positive-text",
|
|
338
|
-
warning: "bg-button-solid-warning-background text-button-solid-warning-text",
|
|
339
|
-
negative: "bg-button-solid-negative-background text-button-solid-negative-text",
|
|
340
|
-
neutral: "bg-button-solid-neutral-background text-button-solid-neutral-text"
|
|
248
|
+
primary: "not-disabled:bg-button-solid-primary-background not-disabled:text-button-solid-primary-text",
|
|
249
|
+
secondary: "not-disabled:bg-button-solid-secondary-background not-disabled:text-button-solid-secondary-text",
|
|
250
|
+
tertiary: "not-disabled:bg-button-solid-tertiary-background not-disabled:text-button-solid-tertiary-text",
|
|
251
|
+
positive: "not-disabled:bg-button-solid-positive-background not-disabled:text-button-solid-positive-text",
|
|
252
|
+
warning: "not-disabled:bg-button-solid-warning-background not-disabled:text-button-solid-warning-text",
|
|
253
|
+
negative: "not-disabled:bg-button-solid-negative-background not-disabled:text-button-solid-negative-text",
|
|
254
|
+
neutral: "not-disabled:bg-button-solid-neutral-background not-disabled:text-button-solid-neutral-text"
|
|
341
255
|
}[color];
|
|
342
256
|
const iconColorClasses = {
|
|
343
|
-
primary: "text-button-solid-primary-icon",
|
|
344
|
-
secondary: "text-button-solid-secondary-icon",
|
|
345
|
-
tertiary: "text-button-solid-tertiary-icon",
|
|
346
|
-
positive: "text-button-solid-positive-icon",
|
|
347
|
-
warning: "text-button-solid-warning-icon",
|
|
348
|
-
negative: "text-button-solid-negative-icon",
|
|
349
|
-
neutral: "text-button-solid-neutral-icon"
|
|
257
|
+
primary: "not-group-disabled:text-button-solid-primary-icon",
|
|
258
|
+
secondary: "not-group-disabled:text-button-solid-secondary-icon",
|
|
259
|
+
tertiary: "not-group-disabled:text-button-solid-tertiary-icon",
|
|
260
|
+
positive: "not-group-disabled:text-button-solid-positive-icon",
|
|
261
|
+
warning: "not-group-disabled:text-button-solid-warning-icon",
|
|
262
|
+
negative: "not-group-disabled:text-button-solid-negative-icon",
|
|
263
|
+
neutral: "not-group-disabled:text-button-solid-neutral-icon"
|
|
350
264
|
}[color];
|
|
351
|
-
return /* @__PURE__ */
|
|
265
|
+
return /* @__PURE__ */ jsxs(
|
|
352
266
|
"button",
|
|
353
267
|
{
|
|
354
268
|
ref,
|
|
355
269
|
onClick,
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
[clsx3(colorClasses, "hover:brightness-90")]: !disabled
|
|
362
|
-
},
|
|
270
|
+
className: clsx2(
|
|
271
|
+
"group font-semibold",
|
|
272
|
+
colorClasses,
|
|
273
|
+
"not-disabled:hover:brightness-90",
|
|
274
|
+
"disabled:text-disabled-text disabled:bg-disabled-background",
|
|
363
275
|
ButtonUtil.paddingMapping[size],
|
|
364
276
|
className
|
|
365
277
|
),
|
|
366
278
|
...restProps,
|
|
367
279
|
children: [
|
|
368
|
-
startIcon && /* @__PURE__ */
|
|
280
|
+
startIcon && /* @__PURE__ */ jsx2(
|
|
369
281
|
"span",
|
|
370
282
|
{
|
|
371
|
-
className:
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
283
|
+
className: clsx2(
|
|
284
|
+
iconColorClasses,
|
|
285
|
+
"group-disabled:text-disabled-icon"
|
|
286
|
+
),
|
|
375
287
|
children: startIcon
|
|
376
288
|
}
|
|
377
289
|
),
|
|
378
290
|
children,
|
|
379
|
-
endIcon && /* @__PURE__ */
|
|
291
|
+
endIcon && /* @__PURE__ */ jsx2(
|
|
380
292
|
"span",
|
|
381
293
|
{
|
|
382
|
-
className:
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
294
|
+
className: clsx2(
|
|
295
|
+
iconColorClasses,
|
|
296
|
+
"group-disabled:text-disabled-icon"
|
|
297
|
+
),
|
|
386
298
|
children: endIcon
|
|
387
299
|
}
|
|
388
300
|
)
|
|
@@ -392,7 +304,6 @@ var SolidButton = forwardRef2(function SolidButton2({
|
|
|
392
304
|
});
|
|
393
305
|
var TextButton = ({
|
|
394
306
|
children,
|
|
395
|
-
disabled = false,
|
|
396
307
|
color = "neutral",
|
|
397
308
|
size = "medium",
|
|
398
309
|
startIcon,
|
|
@@ -403,56 +314,55 @@ var TextButton = ({
|
|
|
403
314
|
...restProps
|
|
404
315
|
}) => {
|
|
405
316
|
const colorClasses = {
|
|
406
|
-
primary: "bg-transparent text-button-text-primary-text",
|
|
407
|
-
negative: "bg-transparent text-button-text-negative-text",
|
|
408
|
-
neutral: "bg-transparent text-button-text-neutral-text"
|
|
317
|
+
primary: "not-disabled:bg-transparent not-disabled:text-button-text-primary-text focus-style-none focus-visible:ring-2 not-disabled:focus-visible:ring-button-text-primary-text",
|
|
318
|
+
negative: "not-disabled:bg-transparent not-disabled:text-button-text-negative-text focus-style-none focus-visible:ring-2 not-disabled:focus-visible:ring-button-text-negative-text",
|
|
319
|
+
neutral: "not-disabled:bg-transparent not-disabled:text-button-text-neutral-text focus-style-none focus-visible:ring-2 not-disabled:focus-visible:ring-button-text-neutral-text"
|
|
409
320
|
}[color];
|
|
410
321
|
const backgroundColor = {
|
|
411
|
-
primary: "hover:bg-button-text-primary-text/20",
|
|
412
|
-
negative: "hover:bg-button-text-negative-text/20",
|
|
413
|
-
neutral: "hover:bg-button-text-neutral-text/20"
|
|
322
|
+
primary: "not-disabled:hover:bg-button-text-primary-text/20 not-disabled:focus-visible:bg-button-text-primary-text/20",
|
|
323
|
+
negative: "not-disabled:hover:bg-button-text-negative-text/20 not-disabled:focus-visible:bg-button-text-negative-text/20",
|
|
324
|
+
neutral: "not-disabled:hover:bg-button-text-neutral-text/20 not-disabled:focus-visible:bg-button-text-neutral-text/20"
|
|
414
325
|
}[color];
|
|
415
326
|
const iconColorClasses = {
|
|
416
|
-
primary: "text-button-text-primary-icon",
|
|
417
|
-
negative: "text-button-text-negative-icon",
|
|
418
|
-
neutral: "text-button-text-neutral-icon"
|
|
327
|
+
primary: "not-group-disabled:text-button-text-primary-icon",
|
|
328
|
+
negative: "not-group-disabled:text-button-text-negative-icon",
|
|
329
|
+
neutral: "not-group-disabled:text-button-text-neutral-icon"
|
|
419
330
|
}[color];
|
|
420
|
-
return /* @__PURE__ */
|
|
331
|
+
return /* @__PURE__ */ jsxs(
|
|
421
332
|
"button",
|
|
422
333
|
{
|
|
423
334
|
onClick,
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
"
|
|
335
|
+
className: clsx2(
|
|
336
|
+
"group font-semibold",
|
|
337
|
+
"disabled:text-disabled-text",
|
|
338
|
+
colorClasses,
|
|
427
339
|
{
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
[backgroundColor]: !disabled && coloredHoverBackground,
|
|
431
|
-
"hover:bg-button-text-hover-background": !disabled && !coloredHoverBackground
|
|
340
|
+
[backgroundColor]: coloredHoverBackground,
|
|
341
|
+
"not-disabled:hover:bg-button-text-hover-background": !coloredHoverBackground
|
|
432
342
|
},
|
|
433
343
|
ButtonUtil.paddingMapping[size],
|
|
434
344
|
className
|
|
435
345
|
),
|
|
436
346
|
...restProps,
|
|
437
347
|
children: [
|
|
438
|
-
startIcon && /* @__PURE__ */
|
|
348
|
+
startIcon && /* @__PURE__ */ jsx2(
|
|
439
349
|
"span",
|
|
440
350
|
{
|
|
441
|
-
className:
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
351
|
+
className: clsx2(
|
|
352
|
+
iconColorClasses,
|
|
353
|
+
"group-disabled:text-disabled-icon"
|
|
354
|
+
),
|
|
445
355
|
children: startIcon
|
|
446
356
|
}
|
|
447
357
|
),
|
|
448
358
|
children,
|
|
449
|
-
endIcon && /* @__PURE__ */
|
|
359
|
+
endIcon && /* @__PURE__ */ jsx2(
|
|
450
360
|
"span",
|
|
451
361
|
{
|
|
452
|
-
className:
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
362
|
+
className: clsx2(
|
|
363
|
+
iconColorClasses,
|
|
364
|
+
"group-disabled:text-disabled-icon"
|
|
365
|
+
),
|
|
456
366
|
children: endIcon
|
|
457
367
|
}
|
|
458
368
|
)
|
|
@@ -460,9 +370,47 @@ var TextButton = ({
|
|
|
460
370
|
}
|
|
461
371
|
);
|
|
462
372
|
};
|
|
373
|
+
var IconButton = forwardRef2(function IconButton2({
|
|
374
|
+
children,
|
|
375
|
+
color = "primary",
|
|
376
|
+
size = "medium",
|
|
377
|
+
className,
|
|
378
|
+
...restProps
|
|
379
|
+
}, ref) {
|
|
380
|
+
const colorClasses = {
|
|
381
|
+
primary: "not-disabled:bg-button-solid-primary-background not-disabled:text-button-solid-primary-text",
|
|
382
|
+
secondary: "not-disabled:bg-button-solid-secondary-background not-disabled:text-button-solid-secondary-text",
|
|
383
|
+
tertiary: "not-disabled:bg-button-solid-tertiary-background not-disabled:text-button-solid-tertiary-text",
|
|
384
|
+
positive: "not-disabled:bg-button-solid-positive-background not-disabled:text-button-solid-positive-text",
|
|
385
|
+
warning: "not-disabled:bg-button-solid-warning-background not-disabled:text-button-solid-warning-text",
|
|
386
|
+
negative: "not-disabled:bg-button-solid-negative-background not-disabled:text-button-solid-negative-text",
|
|
387
|
+
neutral: "not-disabled:bg-button-solid-neutral-background not-disabled:text-button-solid-neutral-text",
|
|
388
|
+
transparent: "not-disabled:bg-transparent"
|
|
389
|
+
}[color];
|
|
390
|
+
return /* @__PURE__ */ jsx2(
|
|
391
|
+
"button",
|
|
392
|
+
{
|
|
393
|
+
ref,
|
|
394
|
+
className: clsx2(
|
|
395
|
+
colorClasses,
|
|
396
|
+
"not-disabled:hover:brightness-90",
|
|
397
|
+
"disabled:text-disabled-text",
|
|
398
|
+
{
|
|
399
|
+
"disabled:bg-disabled-background": color !== "transparent",
|
|
400
|
+
"disabled:opacity-70": color === "transparent",
|
|
401
|
+
"not-disabled:hover:bg-button-text-hover-background": color === "transparent"
|
|
402
|
+
},
|
|
403
|
+
ButtonUtil.iconPaddingMapping[size],
|
|
404
|
+
className
|
|
405
|
+
),
|
|
406
|
+
...restProps,
|
|
407
|
+
children
|
|
408
|
+
}
|
|
409
|
+
);
|
|
410
|
+
});
|
|
463
411
|
|
|
464
412
|
// src/localization/LanguageProvider.tsx
|
|
465
|
-
import { createContext, useContext, useEffect as
|
|
413
|
+
import { createContext, useContext, useEffect as useEffect3, useState as useState4 } from "react";
|
|
466
414
|
|
|
467
415
|
// src/hooks/useLocalStorage.ts
|
|
468
416
|
import { useCallback as useCallback2, useState as useState3 } from "react";
|
|
@@ -481,7 +429,7 @@ var LanguageUtil = {
|
|
|
481
429
|
};
|
|
482
430
|
|
|
483
431
|
// src/localization/LanguageProvider.tsx
|
|
484
|
-
import { jsx as
|
|
432
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
485
433
|
var LanguageContext = createContext({
|
|
486
434
|
language: LanguageUtil.DEFAULT_LANGUAGE,
|
|
487
435
|
setLanguage: (v) => v
|
|
@@ -584,6 +532,7 @@ var formTranslation = {
|
|
|
584
532
|
next: "Next",
|
|
585
533
|
no: "No",
|
|
586
534
|
none: "None",
|
|
535
|
+
nothingFound: "Nothing found",
|
|
587
536
|
of: "of",
|
|
588
537
|
optional: "Optional",
|
|
589
538
|
pleaseWait: "Please wait...",
|
|
@@ -640,6 +589,7 @@ var formTranslation = {
|
|
|
640
589
|
next: "Weiter",
|
|
641
590
|
no: "Nein",
|
|
642
591
|
none: "Nichts",
|
|
592
|
+
nothingFound: "Nichts gefunden",
|
|
643
593
|
of: "von",
|
|
644
594
|
optional: "Optional",
|
|
645
595
|
pleaseWait: "Bitte warten...",
|
|
@@ -665,7 +615,7 @@ var formTranslation = {
|
|
|
665
615
|
};
|
|
666
616
|
|
|
667
617
|
// src/components/properties/PropertyBase.tsx
|
|
668
|
-
import { jsx as
|
|
618
|
+
import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
669
619
|
var PropertyBase = ({
|
|
670
620
|
overwriteTranslation,
|
|
671
621
|
name,
|
|
@@ -679,11 +629,11 @@ var PropertyBase = ({
|
|
|
679
629
|
}) => {
|
|
680
630
|
const translation = useTranslation([formTranslation], overwriteTranslation);
|
|
681
631
|
const requiredAndNoValue = softRequired && !hasValue;
|
|
682
|
-
return /* @__PURE__ */
|
|
683
|
-
/* @__PURE__ */
|
|
632
|
+
return /* @__PURE__ */ jsxs2("div", { className: clsx3("flex-row-0 group", className), children: [
|
|
633
|
+
/* @__PURE__ */ jsxs2(
|
|
684
634
|
"div",
|
|
685
635
|
{
|
|
686
|
-
className:
|
|
636
|
+
className: clsx3(
|
|
687
637
|
"flex-row-2 max-w-48 min-w-48 px-3 py-2 items-center rounded-l-xl border-2 border-r-0",
|
|
688
638
|
{
|
|
689
639
|
"bg-property-title-background text-property-title-text group-hover:border-primary": !requiredAndNoValue,
|
|
@@ -692,15 +642,15 @@ var PropertyBase = ({
|
|
|
692
642
|
className
|
|
693
643
|
),
|
|
694
644
|
children: [
|
|
695
|
-
/* @__PURE__ */
|
|
696
|
-
/* @__PURE__ */
|
|
645
|
+
/* @__PURE__ */ jsx4("div", { className: "max-w-6 min-w-6 text-text-primary", children: icon }),
|
|
646
|
+
/* @__PURE__ */ jsx4("span", { className: "font-semibold", children: name })
|
|
697
647
|
]
|
|
698
648
|
}
|
|
699
649
|
),
|
|
700
|
-
/* @__PURE__ */
|
|
650
|
+
/* @__PURE__ */ jsxs2(
|
|
701
651
|
"div",
|
|
702
652
|
{
|
|
703
|
-
className:
|
|
653
|
+
className: clsx3(
|
|
704
654
|
"flex-row-2 grow px-3 py-2 justify-between items-center rounded-r-xl border-2 border-l-0 min-h-15",
|
|
705
655
|
{
|
|
706
656
|
"bg-input-background text-input-text group-hover:border-primary": !requiredAndNoValue,
|
|
@@ -710,14 +660,14 @@ var PropertyBase = ({
|
|
|
710
660
|
),
|
|
711
661
|
children: [
|
|
712
662
|
input({ softRequired, hasValue }),
|
|
713
|
-
requiredAndNoValue && /* @__PURE__ */
|
|
714
|
-
onRemove &&
|
|
663
|
+
requiredAndNoValue && /* @__PURE__ */ jsx4("div", { className: "text-warning", children: /* @__PURE__ */ jsx4(AlertTriangle, { size: 24 }) }),
|
|
664
|
+
onRemove && !readOnly && /* @__PURE__ */ jsx4(
|
|
715
665
|
TextButton,
|
|
716
666
|
{
|
|
717
667
|
onClick: onRemove,
|
|
718
668
|
color: "negative",
|
|
719
|
-
className:
|
|
720
|
-
disabled: !hasValue
|
|
669
|
+
className: clsx3("items-center"),
|
|
670
|
+
disabled: !hasValue,
|
|
721
671
|
children: translation("remove")
|
|
722
672
|
}
|
|
723
673
|
)
|
|
@@ -728,7 +678,7 @@ var PropertyBase = ({
|
|
|
728
678
|
};
|
|
729
679
|
|
|
730
680
|
// src/components/properties/DateProperty.tsx
|
|
731
|
-
import { jsx as
|
|
681
|
+
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
732
682
|
var DateProperty = ({
|
|
733
683
|
value,
|
|
734
684
|
onChange = noop,
|
|
@@ -739,16 +689,16 @@ var DateProperty = ({
|
|
|
739
689
|
}) => {
|
|
740
690
|
const hasValue = !!value;
|
|
741
691
|
const dateText = value ? type === "dateTime" ? formatDateTime(value) : formatDate(value) : "";
|
|
742
|
-
return /* @__PURE__ */
|
|
692
|
+
return /* @__PURE__ */ jsx5(
|
|
743
693
|
PropertyBase,
|
|
744
694
|
{
|
|
745
695
|
...baseProps,
|
|
746
696
|
hasValue,
|
|
747
|
-
icon: /* @__PURE__ */
|
|
748
|
-
input: ({ softRequired }) => /* @__PURE__ */
|
|
697
|
+
icon: /* @__PURE__ */ jsx5(CalendarDays, { size: 24 }),
|
|
698
|
+
input: ({ softRequired }) => /* @__PURE__ */ jsx5(
|
|
749
699
|
Input,
|
|
750
700
|
{
|
|
751
|
-
className:
|
|
701
|
+
className: clsx4("!ring-0 !border-0 !outline-0 !p-0 !m-0 !shadow-none !w-fit !rounded-none", { "bg-surface-warning": softRequired && !hasValue }),
|
|
752
702
|
value: dateText,
|
|
753
703
|
type: type === "dateTime" ? "datetime-local" : "date",
|
|
754
704
|
readOnly,
|