@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
|
@@ -33,9 +33,9 @@ __export(DateProperty_exports, {
|
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(DateProperty_exports);
|
|
35
35
|
var import_lucide_react2 = require("lucide-react");
|
|
36
|
-
var
|
|
36
|
+
var import_clsx4 = __toESM(require("clsx"));
|
|
37
37
|
|
|
38
|
-
// src/
|
|
38
|
+
// src/utils/date.ts
|
|
39
39
|
var formatDate = (date) => {
|
|
40
40
|
const year = date.getFullYear().toString().padStart(4, "0");
|
|
41
41
|
const month = (date.getMonth() + 1).toString().padStart(2, "0");
|
|
@@ -49,12 +49,12 @@ var formatDateTime = (date) => {
|
|
|
49
49
|
return `${dateString}T${hours}:${minutes}`;
|
|
50
50
|
};
|
|
51
51
|
|
|
52
|
-
// src/
|
|
52
|
+
// src/utils/noop.ts
|
|
53
53
|
var noop = () => void 0;
|
|
54
54
|
|
|
55
|
-
// src/components/user-action/Input.tsx
|
|
56
|
-
var
|
|
57
|
-
var
|
|
55
|
+
// src/components/user-action/input/Input.tsx
|
|
56
|
+
var import_react3 = require("react");
|
|
57
|
+
var import_clsx = __toESM(require("clsx"));
|
|
58
58
|
|
|
59
59
|
// src/hooks/useDelay.ts
|
|
60
60
|
var import_react = require("react");
|
|
@@ -96,25 +96,7 @@ function useDelay(options) {
|
|
|
96
96
|
return { restartTimer, clearTimer, hasActiveTimer: !!timer };
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
// src/
|
|
100
|
-
var import_clsx = __toESM(require("clsx"));
|
|
101
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
102
|
-
var styleMapping = {
|
|
103
|
-
labelSmall: "textstyle-label-sm",
|
|
104
|
-
labelMedium: "textstyle-label-md",
|
|
105
|
-
labelBig: "textstyle-label-lg"
|
|
106
|
-
};
|
|
107
|
-
var Label = ({
|
|
108
|
-
children,
|
|
109
|
-
name,
|
|
110
|
-
labelType = "labelSmall",
|
|
111
|
-
className,
|
|
112
|
-
...props
|
|
113
|
-
}) => {
|
|
114
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("label", { ...props, className: (0, import_clsx.default)(styleMapping[labelType], className), children: children ? children : name });
|
|
115
|
-
};
|
|
116
|
-
|
|
117
|
-
// src/hooks/useFocusManagement.ts
|
|
99
|
+
// src/hooks/focus/useFocusManagement.ts
|
|
118
100
|
var import_react2 = require("react");
|
|
119
101
|
function useFocusManagement() {
|
|
120
102
|
const getFocusableElements = (0, import_react2.useCallback)(() => {
|
|
@@ -171,164 +153,97 @@ function useFocusManagement() {
|
|
|
171
153
|
};
|
|
172
154
|
}
|
|
173
155
|
|
|
174
|
-
// src/
|
|
175
|
-
var
|
|
176
|
-
var useFocusOnceVisible = (ref, disable = false) => {
|
|
177
|
-
const [hasUsedFocus, setHasUsedFocus] = import_react3.default.useState(false);
|
|
178
|
-
(0, import_react3.useEffect)(() => {
|
|
179
|
-
if (disable || hasUsedFocus) {
|
|
180
|
-
return;
|
|
181
|
-
}
|
|
182
|
-
const observer = new IntersectionObserver(([entry]) => {
|
|
183
|
-
if (entry.isIntersecting && !hasUsedFocus) {
|
|
184
|
-
ref.current?.focus();
|
|
185
|
-
setHasUsedFocus(hasUsedFocus);
|
|
186
|
-
}
|
|
187
|
-
}, {
|
|
188
|
-
threshold: 0.1
|
|
189
|
-
});
|
|
190
|
-
if (ref.current) {
|
|
191
|
-
observer.observe(ref.current);
|
|
192
|
-
}
|
|
193
|
-
return () => observer.disconnect();
|
|
194
|
-
}, [disable, hasUsedFocus, ref]);
|
|
195
|
-
};
|
|
196
|
-
|
|
197
|
-
// src/components/user-action/Input.tsx
|
|
198
|
-
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
199
|
-
var getInputClassName = ({ disabled = false, hasError = false }) => {
|
|
200
|
-
return (0, import_clsx2.default)(
|
|
201
|
-
"px-2 py-1.5 rounded-md border-2",
|
|
202
|
-
{
|
|
203
|
-
"bg-input-background text-input-text hover:border-primary focus:border-primary": !disabled && !hasError,
|
|
204
|
-
"bg-on-negative text-negative border-negative-border hover:border-negative-border-hover": !disabled && hasError,
|
|
205
|
-
"bg-disabled-background text-disabled-text border-disabled-border": disabled
|
|
206
|
-
}
|
|
207
|
-
);
|
|
208
|
-
};
|
|
156
|
+
// src/components/user-action/input/Input.tsx
|
|
157
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
209
158
|
var defaultEditCompleteOptions = {
|
|
159
|
+
allowEnterComplete: false,
|
|
210
160
|
onBlur: true,
|
|
211
161
|
afterDelay: true,
|
|
212
162
|
delay: 2500
|
|
213
163
|
};
|
|
214
|
-
var Input = (0,
|
|
215
|
-
id,
|
|
216
|
-
type = "text",
|
|
164
|
+
var Input = (0, import_react3.forwardRef)(function Input2({
|
|
217
165
|
value,
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
onChangeText = noop,
|
|
166
|
+
onChange,
|
|
167
|
+
onChangeText,
|
|
221
168
|
onEditCompleted,
|
|
222
|
-
className = "",
|
|
223
|
-
allowEnterComplete = true,
|
|
224
|
-
expanded = true,
|
|
225
|
-
autoFocus = false,
|
|
226
|
-
onBlur,
|
|
227
169
|
editCompleteOptions,
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
170
|
+
disabled = false,
|
|
171
|
+
invalid = false,
|
|
172
|
+
defaultStyle = true,
|
|
173
|
+
className,
|
|
174
|
+
...props
|
|
231
175
|
}, forwardedRef) {
|
|
232
|
-
const {
|
|
176
|
+
const {
|
|
177
|
+
onBlur: allowEditCompleteOnBlur,
|
|
178
|
+
afterDelay,
|
|
179
|
+
delay,
|
|
180
|
+
allowEnterComplete
|
|
181
|
+
} = { ...defaultEditCompleteOptions, ...editCompleteOptions };
|
|
233
182
|
const {
|
|
234
183
|
restartTimer,
|
|
235
184
|
clearTimer
|
|
236
185
|
} = useDelay({ delay, disabled: !afterDelay });
|
|
237
|
-
const innerRef = (0,
|
|
186
|
+
const innerRef = (0, import_react3.useRef)(null);
|
|
187
|
+
(0, import_react3.useImperativeHandle)(forwardedRef, () => innerRef.current);
|
|
238
188
|
const { focusNext } = useFocusManagement();
|
|
239
|
-
|
|
240
|
-
(0, import_react4.useImperativeHandle)(forwardedRef, () => innerRef.current);
|
|
241
|
-
const handleKeyDown = (e) => {
|
|
242
|
-
if (e.key === "Enter" && !e.shiftKey) {
|
|
243
|
-
e.preventDefault();
|
|
244
|
-
innerRef.current?.blur();
|
|
245
|
-
focusNext();
|
|
246
|
-
}
|
|
247
|
-
};
|
|
248
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: (0, import_clsx2.default)({ "w-full": expanded }, containerClassName), children: [
|
|
249
|
-
label && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Label, { ...label, htmlFor: id, className: (0, import_clsx2.default)("mb-1", label.className) }),
|
|
250
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
251
|
-
"input",
|
|
252
|
-
{
|
|
253
|
-
...restProps,
|
|
254
|
-
ref: innerRef,
|
|
255
|
-
value,
|
|
256
|
-
id,
|
|
257
|
-
type,
|
|
258
|
-
disabled,
|
|
259
|
-
className: (0, import_clsx2.default)(getInputClassName({ disabled }), className),
|
|
260
|
-
onKeyDown: allowEnterComplete ? handleKeyDown : void 0,
|
|
261
|
-
onBlur: (event) => {
|
|
262
|
-
onBlur?.(event);
|
|
263
|
-
if (onEditCompleted && allowEditCompleteOnBlur) {
|
|
264
|
-
onEditCompleted(event.target.value);
|
|
265
|
-
clearTimer();
|
|
266
|
-
}
|
|
267
|
-
},
|
|
268
|
-
onChange: (e) => {
|
|
269
|
-
const value2 = e.target.value;
|
|
270
|
-
if (onEditCompleted) {
|
|
271
|
-
restartTimer(() => {
|
|
272
|
-
if (innerRef.current) {
|
|
273
|
-
innerRef.current.blur();
|
|
274
|
-
if (!allowEditCompleteOnBlur) {
|
|
275
|
-
onEditCompleted(value2);
|
|
276
|
-
}
|
|
277
|
-
} else {
|
|
278
|
-
onEditCompleted(value2);
|
|
279
|
-
}
|
|
280
|
-
});
|
|
281
|
-
}
|
|
282
|
-
onChange(e);
|
|
283
|
-
onChangeText(value2);
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
)
|
|
287
|
-
] });
|
|
288
|
-
});
|
|
289
|
-
var FormInput = (0, import_react4.forwardRef)(function FormInput2({
|
|
290
|
-
id,
|
|
291
|
-
labelText,
|
|
292
|
-
errorText,
|
|
293
|
-
className,
|
|
294
|
-
labelClassName,
|
|
295
|
-
errorClassName,
|
|
296
|
-
containerClassName,
|
|
297
|
-
required,
|
|
298
|
-
disabled,
|
|
299
|
-
...restProps
|
|
300
|
-
}, ref) {
|
|
301
|
-
const input = /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
189
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
302
190
|
"input",
|
|
303
191
|
{
|
|
304
|
-
...
|
|
305
|
-
ref,
|
|
306
|
-
|
|
192
|
+
...props,
|
|
193
|
+
ref: innerRef,
|
|
194
|
+
value,
|
|
307
195
|
disabled,
|
|
308
|
-
className: (0,
|
|
309
|
-
|
|
196
|
+
className: defaultStyle ? (0, import_clsx.default)(
|
|
197
|
+
"px-2.5 py-1.75 rounded-md border-1 text-sm",
|
|
198
|
+
{
|
|
199
|
+
"bg-input-background text-input-text hover:border-primary focus:border-primary": !disabled && !invalid,
|
|
200
|
+
"bg-on-negative text-negative border-negative-border hover:border-negative-border-hover focus-visible:ring-negative-border": !disabled && invalid,
|
|
201
|
+
"bg-disabled-background text-disabled-text border-disabled-border": disabled
|
|
202
|
+
},
|
|
310
203
|
className
|
|
311
|
-
)
|
|
204
|
+
) : className,
|
|
205
|
+
onKeyDown: (event) => {
|
|
206
|
+
props.onKeyDown?.(event);
|
|
207
|
+
if (!allowEnterComplete) {
|
|
208
|
+
return;
|
|
209
|
+
}
|
|
210
|
+
if (event.key === "Enter" && !event.shiftKey) {
|
|
211
|
+
event.preventDefault();
|
|
212
|
+
innerRef.current?.blur();
|
|
213
|
+
onEditCompleted?.(event.target.value);
|
|
214
|
+
focusNext();
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
onBlur: (event) => {
|
|
218
|
+
props.onBlur?.(event);
|
|
219
|
+
if (allowEditCompleteOnBlur) {
|
|
220
|
+
onEditCompleted?.(event.target.value);
|
|
221
|
+
clearTimer();
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
onChange: (event) => {
|
|
225
|
+
onChange?.(event);
|
|
226
|
+
const value2 = event.target.value;
|
|
227
|
+
restartTimer(() => {
|
|
228
|
+
innerRef.current?.blur();
|
|
229
|
+
onEditCompleted?.(value2);
|
|
230
|
+
});
|
|
231
|
+
onChangeText?.(value2);
|
|
232
|
+
},
|
|
233
|
+
"aria-invalid": props["aria-invalid"] ?? invalid,
|
|
234
|
+
"aria-disabled": props["aria-disabled"] ?? disabled
|
|
312
235
|
}
|
|
313
236
|
);
|
|
314
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: (0, import_clsx2.default)("flex flex-col gap-y-1", containerClassName), children: [
|
|
315
|
-
labelText && /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("label", { htmlFor: id, className: (0, import_clsx2.default)("textstyle-label-md", labelClassName), children: [
|
|
316
|
-
labelText,
|
|
317
|
-
required && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "text-primary font-bold", children: "*" })
|
|
318
|
-
] }),
|
|
319
|
-
input,
|
|
320
|
-
errorText && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("label", { htmlFor: id, className: (0, import_clsx2.default)("text-negative", errorClassName), children: errorText })
|
|
321
|
-
] });
|
|
322
237
|
});
|
|
323
238
|
|
|
324
239
|
// src/components/properties/PropertyBase.tsx
|
|
325
240
|
var import_lucide_react = require("lucide-react");
|
|
326
|
-
var
|
|
241
|
+
var import_clsx3 = __toESM(require("clsx"));
|
|
327
242
|
|
|
328
243
|
// src/components/user-action/Button.tsx
|
|
329
|
-
var
|
|
330
|
-
var
|
|
331
|
-
var
|
|
244
|
+
var import_react4 = require("react");
|
|
245
|
+
var import_clsx2 = __toESM(require("clsx"));
|
|
246
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
332
247
|
var ButtonColorUtil = {
|
|
333
248
|
solid: ["primary", "secondary", "tertiary", "positive", "warning", "negative", "neutral"],
|
|
334
249
|
text: ["primary", "negative", "neutral"],
|
|
@@ -352,9 +267,8 @@ var ButtonUtil = {
|
|
|
352
267
|
paddingMapping,
|
|
353
268
|
iconPaddingMapping
|
|
354
269
|
};
|
|
355
|
-
var SolidButton = (0,
|
|
270
|
+
var SolidButton = (0, import_react4.forwardRef)(function SolidButton2({
|
|
356
271
|
children,
|
|
357
|
-
disabled = false,
|
|
358
272
|
color = "primary",
|
|
359
273
|
size = "medium",
|
|
360
274
|
startIcon,
|
|
@@ -364,58 +278,56 @@ var SolidButton = (0, import_react5.forwardRef)(function SolidButton2({
|
|
|
364
278
|
...restProps
|
|
365
279
|
}, ref) {
|
|
366
280
|
const colorClasses = {
|
|
367
|
-
primary: "bg-button-solid-primary-background text-button-solid-primary-text",
|
|
368
|
-
secondary: "bg-button-solid-secondary-background text-button-solid-secondary-text",
|
|
369
|
-
tertiary: "bg-button-solid-tertiary-background text-button-solid-tertiary-text",
|
|
370
|
-
positive: "bg-button-solid-positive-background text-button-solid-positive-text",
|
|
371
|
-
warning: "bg-button-solid-warning-background text-button-solid-warning-text",
|
|
372
|
-
negative: "bg-button-solid-negative-background text-button-solid-negative-text",
|
|
373
|
-
neutral: "bg-button-solid-neutral-background text-button-solid-neutral-text"
|
|
281
|
+
primary: "not-disabled:bg-button-solid-primary-background not-disabled:text-button-solid-primary-text",
|
|
282
|
+
secondary: "not-disabled:bg-button-solid-secondary-background not-disabled:text-button-solid-secondary-text",
|
|
283
|
+
tertiary: "not-disabled:bg-button-solid-tertiary-background not-disabled:text-button-solid-tertiary-text",
|
|
284
|
+
positive: "not-disabled:bg-button-solid-positive-background not-disabled:text-button-solid-positive-text",
|
|
285
|
+
warning: "not-disabled:bg-button-solid-warning-background not-disabled:text-button-solid-warning-text",
|
|
286
|
+
negative: "not-disabled:bg-button-solid-negative-background not-disabled:text-button-solid-negative-text",
|
|
287
|
+
neutral: "not-disabled:bg-button-solid-neutral-background not-disabled:text-button-solid-neutral-text"
|
|
374
288
|
}[color];
|
|
375
289
|
const iconColorClasses = {
|
|
376
|
-
primary: "text-button-solid-primary-icon",
|
|
377
|
-
secondary: "text-button-solid-secondary-icon",
|
|
378
|
-
tertiary: "text-button-solid-tertiary-icon",
|
|
379
|
-
positive: "text-button-solid-positive-icon",
|
|
380
|
-
warning: "text-button-solid-warning-icon",
|
|
381
|
-
negative: "text-button-solid-negative-icon",
|
|
382
|
-
neutral: "text-button-solid-neutral-icon"
|
|
290
|
+
primary: "not-group-disabled:text-button-solid-primary-icon",
|
|
291
|
+
secondary: "not-group-disabled:text-button-solid-secondary-icon",
|
|
292
|
+
tertiary: "not-group-disabled:text-button-solid-tertiary-icon",
|
|
293
|
+
positive: "not-group-disabled:text-button-solid-positive-icon",
|
|
294
|
+
warning: "not-group-disabled:text-button-solid-warning-icon",
|
|
295
|
+
negative: "not-group-disabled:text-button-solid-negative-icon",
|
|
296
|
+
neutral: "not-group-disabled:text-button-solid-neutral-icon"
|
|
383
297
|
}[color];
|
|
384
|
-
return /* @__PURE__ */ (0,
|
|
298
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
|
385
299
|
"button",
|
|
386
300
|
{
|
|
387
301
|
ref,
|
|
388
302
|
onClick,
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
[(0, import_clsx3.default)(colorClasses, "hover:brightness-90")]: !disabled
|
|
395
|
-
},
|
|
303
|
+
className: (0, import_clsx2.default)(
|
|
304
|
+
"group font-semibold",
|
|
305
|
+
colorClasses,
|
|
306
|
+
"not-disabled:hover:brightness-90",
|
|
307
|
+
"disabled:text-disabled-text disabled:bg-disabled-background",
|
|
396
308
|
ButtonUtil.paddingMapping[size],
|
|
397
309
|
className
|
|
398
310
|
),
|
|
399
311
|
...restProps,
|
|
400
312
|
children: [
|
|
401
|
-
startIcon && /* @__PURE__ */ (0,
|
|
313
|
+
startIcon && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
402
314
|
"span",
|
|
403
315
|
{
|
|
404
|
-
className: (0,
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
316
|
+
className: (0, import_clsx2.default)(
|
|
317
|
+
iconColorClasses,
|
|
318
|
+
"group-disabled:text-disabled-icon"
|
|
319
|
+
),
|
|
408
320
|
children: startIcon
|
|
409
321
|
}
|
|
410
322
|
),
|
|
411
323
|
children,
|
|
412
|
-
endIcon && /* @__PURE__ */ (0,
|
|
324
|
+
endIcon && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
413
325
|
"span",
|
|
414
326
|
{
|
|
415
|
-
className: (0,
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
327
|
+
className: (0, import_clsx2.default)(
|
|
328
|
+
iconColorClasses,
|
|
329
|
+
"group-disabled:text-disabled-icon"
|
|
330
|
+
),
|
|
419
331
|
children: endIcon
|
|
420
332
|
}
|
|
421
333
|
)
|
|
@@ -425,7 +337,6 @@ var SolidButton = (0, import_react5.forwardRef)(function SolidButton2({
|
|
|
425
337
|
});
|
|
426
338
|
var TextButton = ({
|
|
427
339
|
children,
|
|
428
|
-
disabled = false,
|
|
429
340
|
color = "neutral",
|
|
430
341
|
size = "medium",
|
|
431
342
|
startIcon,
|
|
@@ -436,56 +347,55 @@ var TextButton = ({
|
|
|
436
347
|
...restProps
|
|
437
348
|
}) => {
|
|
438
349
|
const colorClasses = {
|
|
439
|
-
primary: "bg-transparent text-button-text-primary-text",
|
|
440
|
-
negative: "bg-transparent text-button-text-negative-text",
|
|
441
|
-
neutral: "bg-transparent text-button-text-neutral-text"
|
|
350
|
+
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",
|
|
351
|
+
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",
|
|
352
|
+
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"
|
|
442
353
|
}[color];
|
|
443
354
|
const backgroundColor = {
|
|
444
|
-
primary: "hover:bg-button-text-primary-text/20",
|
|
445
|
-
negative: "hover:bg-button-text-negative-text/20",
|
|
446
|
-
neutral: "hover:bg-button-text-neutral-text/20"
|
|
355
|
+
primary: "not-disabled:hover:bg-button-text-primary-text/20 not-disabled:focus-visible:bg-button-text-primary-text/20",
|
|
356
|
+
negative: "not-disabled:hover:bg-button-text-negative-text/20 not-disabled:focus-visible:bg-button-text-negative-text/20",
|
|
357
|
+
neutral: "not-disabled:hover:bg-button-text-neutral-text/20 not-disabled:focus-visible:bg-button-text-neutral-text/20"
|
|
447
358
|
}[color];
|
|
448
359
|
const iconColorClasses = {
|
|
449
|
-
primary: "text-button-text-primary-icon",
|
|
450
|
-
negative: "text-button-text-negative-icon",
|
|
451
|
-
neutral: "text-button-text-neutral-icon"
|
|
360
|
+
primary: "not-group-disabled:text-button-text-primary-icon",
|
|
361
|
+
negative: "not-group-disabled:text-button-text-negative-icon",
|
|
362
|
+
neutral: "not-group-disabled:text-button-text-neutral-icon"
|
|
452
363
|
}[color];
|
|
453
|
-
return /* @__PURE__ */ (0,
|
|
364
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
|
454
365
|
"button",
|
|
455
366
|
{
|
|
456
367
|
onClick,
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
"
|
|
368
|
+
className: (0, import_clsx2.default)(
|
|
369
|
+
"group font-semibold",
|
|
370
|
+
"disabled:text-disabled-text",
|
|
371
|
+
colorClasses,
|
|
460
372
|
{
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
[backgroundColor]: !disabled && coloredHoverBackground,
|
|
464
|
-
"hover:bg-button-text-hover-background": !disabled && !coloredHoverBackground
|
|
373
|
+
[backgroundColor]: coloredHoverBackground,
|
|
374
|
+
"not-disabled:hover:bg-button-text-hover-background": !coloredHoverBackground
|
|
465
375
|
},
|
|
466
376
|
ButtonUtil.paddingMapping[size],
|
|
467
377
|
className
|
|
468
378
|
),
|
|
469
379
|
...restProps,
|
|
470
380
|
children: [
|
|
471
|
-
startIcon && /* @__PURE__ */ (0,
|
|
381
|
+
startIcon && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
472
382
|
"span",
|
|
473
383
|
{
|
|
474
|
-
className: (0,
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
384
|
+
className: (0, import_clsx2.default)(
|
|
385
|
+
iconColorClasses,
|
|
386
|
+
"group-disabled:text-disabled-icon"
|
|
387
|
+
),
|
|
478
388
|
children: startIcon
|
|
479
389
|
}
|
|
480
390
|
),
|
|
481
391
|
children,
|
|
482
|
-
endIcon && /* @__PURE__ */ (0,
|
|
392
|
+
endIcon && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
483
393
|
"span",
|
|
484
394
|
{
|
|
485
|
-
className: (0,
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
395
|
+
className: (0, import_clsx2.default)(
|
|
396
|
+
iconColorClasses,
|
|
397
|
+
"group-disabled:text-disabled-icon"
|
|
398
|
+
),
|
|
489
399
|
children: endIcon
|
|
490
400
|
}
|
|
491
401
|
)
|
|
@@ -493,12 +403,50 @@ var TextButton = ({
|
|
|
493
403
|
}
|
|
494
404
|
);
|
|
495
405
|
};
|
|
406
|
+
var IconButton = (0, import_react4.forwardRef)(function IconButton2({
|
|
407
|
+
children,
|
|
408
|
+
color = "primary",
|
|
409
|
+
size = "medium",
|
|
410
|
+
className,
|
|
411
|
+
...restProps
|
|
412
|
+
}, ref) {
|
|
413
|
+
const colorClasses = {
|
|
414
|
+
primary: "not-disabled:bg-button-solid-primary-background not-disabled:text-button-solid-primary-text",
|
|
415
|
+
secondary: "not-disabled:bg-button-solid-secondary-background not-disabled:text-button-solid-secondary-text",
|
|
416
|
+
tertiary: "not-disabled:bg-button-solid-tertiary-background not-disabled:text-button-solid-tertiary-text",
|
|
417
|
+
positive: "not-disabled:bg-button-solid-positive-background not-disabled:text-button-solid-positive-text",
|
|
418
|
+
warning: "not-disabled:bg-button-solid-warning-background not-disabled:text-button-solid-warning-text",
|
|
419
|
+
negative: "not-disabled:bg-button-solid-negative-background not-disabled:text-button-solid-negative-text",
|
|
420
|
+
neutral: "not-disabled:bg-button-solid-neutral-background not-disabled:text-button-solid-neutral-text",
|
|
421
|
+
transparent: "not-disabled:bg-transparent"
|
|
422
|
+
}[color];
|
|
423
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
424
|
+
"button",
|
|
425
|
+
{
|
|
426
|
+
ref,
|
|
427
|
+
className: (0, import_clsx2.default)(
|
|
428
|
+
colorClasses,
|
|
429
|
+
"not-disabled:hover:brightness-90",
|
|
430
|
+
"disabled:text-disabled-text",
|
|
431
|
+
{
|
|
432
|
+
"disabled:bg-disabled-background": color !== "transparent",
|
|
433
|
+
"disabled:opacity-70": color === "transparent",
|
|
434
|
+
"not-disabled:hover:bg-button-text-hover-background": color === "transparent"
|
|
435
|
+
},
|
|
436
|
+
ButtonUtil.iconPaddingMapping[size],
|
|
437
|
+
className
|
|
438
|
+
),
|
|
439
|
+
...restProps,
|
|
440
|
+
children
|
|
441
|
+
}
|
|
442
|
+
);
|
|
443
|
+
});
|
|
496
444
|
|
|
497
445
|
// src/localization/LanguageProvider.tsx
|
|
498
|
-
var
|
|
446
|
+
var import_react6 = require("react");
|
|
499
447
|
|
|
500
448
|
// src/hooks/useLocalStorage.ts
|
|
501
|
-
var
|
|
449
|
+
var import_react5 = require("react");
|
|
502
450
|
|
|
503
451
|
// src/localization/util.ts
|
|
504
452
|
var languages = ["en", "de"];
|
|
@@ -514,12 +462,12 @@ var LanguageUtil = {
|
|
|
514
462
|
};
|
|
515
463
|
|
|
516
464
|
// src/localization/LanguageProvider.tsx
|
|
517
|
-
var
|
|
518
|
-
var LanguageContext = (0,
|
|
465
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
466
|
+
var LanguageContext = (0, import_react6.createContext)({
|
|
519
467
|
language: LanguageUtil.DEFAULT_LANGUAGE,
|
|
520
468
|
setLanguage: (v) => v
|
|
521
469
|
});
|
|
522
|
-
var useLanguage = () => (0,
|
|
470
|
+
var useLanguage = () => (0, import_react6.useContext)(LanguageContext);
|
|
523
471
|
|
|
524
472
|
// src/localization/useTranslation.ts
|
|
525
473
|
var TranslationPluralCount = {
|
|
@@ -617,6 +565,7 @@ var formTranslation = {
|
|
|
617
565
|
next: "Next",
|
|
618
566
|
no: "No",
|
|
619
567
|
none: "None",
|
|
568
|
+
nothingFound: "Nothing found",
|
|
620
569
|
of: "of",
|
|
621
570
|
optional: "Optional",
|
|
622
571
|
pleaseWait: "Please wait...",
|
|
@@ -673,6 +622,7 @@ var formTranslation = {
|
|
|
673
622
|
next: "Weiter",
|
|
674
623
|
no: "Nein",
|
|
675
624
|
none: "Nichts",
|
|
625
|
+
nothingFound: "Nichts gefunden",
|
|
676
626
|
of: "von",
|
|
677
627
|
optional: "Optional",
|
|
678
628
|
pleaseWait: "Bitte warten...",
|
|
@@ -698,7 +648,7 @@ var formTranslation = {
|
|
|
698
648
|
};
|
|
699
649
|
|
|
700
650
|
// src/components/properties/PropertyBase.tsx
|
|
701
|
-
var
|
|
651
|
+
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
702
652
|
var PropertyBase = ({
|
|
703
653
|
overwriteTranslation,
|
|
704
654
|
name,
|
|
@@ -712,11 +662,11 @@ var PropertyBase = ({
|
|
|
712
662
|
}) => {
|
|
713
663
|
const translation = useTranslation([formTranslation], overwriteTranslation);
|
|
714
664
|
const requiredAndNoValue = softRequired && !hasValue;
|
|
715
|
-
return /* @__PURE__ */ (0,
|
|
716
|
-
/* @__PURE__ */ (0,
|
|
665
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: (0, import_clsx3.default)("flex-row-0 group", className), children: [
|
|
666
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
717
667
|
"div",
|
|
718
668
|
{
|
|
719
|
-
className: (0,
|
|
669
|
+
className: (0, import_clsx3.default)(
|
|
720
670
|
"flex-row-2 max-w-48 min-w-48 px-3 py-2 items-center rounded-l-xl border-2 border-r-0",
|
|
721
671
|
{
|
|
722
672
|
"bg-property-title-background text-property-title-text group-hover:border-primary": !requiredAndNoValue,
|
|
@@ -725,15 +675,15 @@ var PropertyBase = ({
|
|
|
725
675
|
className
|
|
726
676
|
),
|
|
727
677
|
children: [
|
|
728
|
-
/* @__PURE__ */ (0,
|
|
729
|
-
/* @__PURE__ */ (0,
|
|
678
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "max-w-6 min-w-6 text-text-primary", children: icon }),
|
|
679
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "font-semibold", children: name })
|
|
730
680
|
]
|
|
731
681
|
}
|
|
732
682
|
),
|
|
733
|
-
/* @__PURE__ */ (0,
|
|
683
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
734
684
|
"div",
|
|
735
685
|
{
|
|
736
|
-
className: (0,
|
|
686
|
+
className: (0, import_clsx3.default)(
|
|
737
687
|
"flex-row-2 grow px-3 py-2 justify-between items-center rounded-r-xl border-2 border-l-0 min-h-15",
|
|
738
688
|
{
|
|
739
689
|
"bg-input-background text-input-text group-hover:border-primary": !requiredAndNoValue,
|
|
@@ -743,14 +693,14 @@ var PropertyBase = ({
|
|
|
743
693
|
),
|
|
744
694
|
children: [
|
|
745
695
|
input({ softRequired, hasValue }),
|
|
746
|
-
requiredAndNoValue && /* @__PURE__ */ (0,
|
|
747
|
-
onRemove &&
|
|
696
|
+
requiredAndNoValue && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "text-warning", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_lucide_react.AlertTriangle, { size: 24 }) }),
|
|
697
|
+
onRemove && !readOnly && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
748
698
|
TextButton,
|
|
749
699
|
{
|
|
750
700
|
onClick: onRemove,
|
|
751
701
|
color: "negative",
|
|
752
|
-
className: (0,
|
|
753
|
-
disabled: !hasValue
|
|
702
|
+
className: (0, import_clsx3.default)("items-center"),
|
|
703
|
+
disabled: !hasValue,
|
|
754
704
|
children: translation("remove")
|
|
755
705
|
}
|
|
756
706
|
)
|
|
@@ -761,7 +711,7 @@ var PropertyBase = ({
|
|
|
761
711
|
};
|
|
762
712
|
|
|
763
713
|
// src/components/properties/DateProperty.tsx
|
|
764
|
-
var
|
|
714
|
+
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
765
715
|
var DateProperty = ({
|
|
766
716
|
value,
|
|
767
717
|
onChange = noop,
|
|
@@ -772,16 +722,16 @@ var DateProperty = ({
|
|
|
772
722
|
}) => {
|
|
773
723
|
const hasValue = !!value;
|
|
774
724
|
const dateText = value ? type === "dateTime" ? formatDateTime(value) : formatDate(value) : "";
|
|
775
|
-
return /* @__PURE__ */ (0,
|
|
725
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
776
726
|
PropertyBase,
|
|
777
727
|
{
|
|
778
728
|
...baseProps,
|
|
779
729
|
hasValue,
|
|
780
|
-
icon: /* @__PURE__ */ (0,
|
|
781
|
-
input: ({ softRequired }) => /* @__PURE__ */ (0,
|
|
730
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_lucide_react2.CalendarDays, { size: 24 }),
|
|
731
|
+
input: ({ softRequired }) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
782
732
|
Input,
|
|
783
733
|
{
|
|
784
|
-
className: (0,
|
|
734
|
+
className: (0, import_clsx4.default)("!ring-0 !border-0 !outline-0 !p-0 !m-0 !shadow-none !w-fit !rounded-none", { "bg-surface-warning": softRequired && !hasValue }),
|
|
785
735
|
value: dateText,
|
|
786
736
|
type: type === "dateTime" ? "datetime-local" : "date",
|
|
787
737
|
readOnly,
|