@helpwave/hightide 0.1.6 → 0.1.7
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/dist/coloring/{shading.d.cts → shading.d.mts} +1 -1
- package/dist/coloring/shading.js +14 -3329
- package/dist/coloring/shading.js.map +1 -1
- package/dist/coloring/shading.mjs +47 -0
- package/dist/coloring/shading.mjs.map +1 -0
- package/dist/coloring/types.js +26 -2
- package/dist/coloring/types.js.map +1 -1
- package/dist/coloring/types.mjs +6 -0
- package/dist/coloring/{types.cjs.map → types.mjs.map} +1 -1
- package/dist/components/branding/HelpwaveBadge.js +59 -25
- package/dist/components/branding/HelpwaveBadge.js.map +1 -1
- package/dist/components/branding/HelpwaveBadge.mjs +122 -0
- package/dist/components/branding/HelpwaveBadge.mjs.map +1 -0
- package/dist/components/date/{DatePicker.d.cts → DatePicker.d.mts} +5 -5
- package/dist/components/date/DatePicker.js +119 -83
- package/dist/components/date/DatePicker.js.map +1 -1
- package/dist/components/date/{DatePicker.cjs → DatePicker.mjs} +85 -120
- package/dist/components/date/DatePicker.mjs.map +1 -0
- package/dist/components/date/{DayPicker.d.cts → DayPicker.d.mts} +1 -1
- package/dist/components/date/DayPicker.js +55 -18
- package/dist/components/date/DayPicker.js.map +1 -1
- package/dist/components/date/{DayPicker.cjs → DayPicker.mjs} +19 -57
- package/dist/components/date/DayPicker.mjs.map +1 -0
- package/dist/components/date/{TimeDisplay.d.cts → TimeDisplay.d.mts} +2 -2
- package/dist/components/date/TimeDisplay.js +35 -9
- package/dist/components/date/TimeDisplay.js.map +1 -1
- package/dist/components/date/{TimeDisplay.cjs → TimeDisplay.mjs} +10 -37
- package/dist/components/date/TimeDisplay.mjs.map +1 -0
- package/dist/components/date/TimePicker.js +57 -22
- package/dist/components/date/TimePicker.js.map +1 -1
- package/dist/components/date/{TimePicker.cjs → TimePicker.mjs} +23 -59
- package/dist/components/date/TimePicker.mjs.map +1 -0
- package/dist/components/date/{YearMonthPicker.d.cts → YearMonthPicker.d.mts} +1 -1
- package/dist/components/date/YearMonthPicker.d.ts +1 -1
- package/dist/components/date/YearMonthPicker.js +73 -38
- package/dist/components/date/YearMonthPicker.js.map +1 -1
- package/dist/components/date/{YearMonthPicker.cjs → YearMonthPicker.mjs} +39 -75
- package/dist/components/date/YearMonthPicker.mjs.map +1 -0
- package/dist/components/dialogs/{ConfirmDialog.d.cts → ConfirmDialog.d.mts} +4 -4
- package/dist/components/dialogs/ConfirmDialog.js +98 -62
- package/dist/components/dialogs/ConfirmDialog.js.map +1 -1
- package/dist/components/dialogs/{ConfirmDialog.cjs → ConfirmDialog.mjs} +63 -100
- package/dist/components/dialogs/ConfirmDialog.mjs.map +1 -0
- package/dist/components/icons-and-geometry/Avatar.js +47 -10
- package/dist/components/icons-and-geometry/Avatar.js.map +1 -1
- package/dist/components/icons-and-geometry/Avatar.mjs +81 -0
- package/dist/components/icons-and-geometry/{Avatar.cjs.map → Avatar.mjs.map} +1 -1
- package/dist/components/icons-and-geometry/Circle.js +40 -6
- package/dist/components/icons-and-geometry/Circle.js.map +1 -1
- package/dist/components/icons-and-geometry/Circle.mjs +27 -0
- package/dist/components/icons-and-geometry/{Circle.cjs.map → Circle.mjs.map} +1 -1
- package/dist/components/icons-and-geometry/Helpwave.js +38 -14
- package/dist/components/icons-and-geometry/Helpwave.js.map +1 -1
- package/dist/components/icons-and-geometry/Helpwave.mjs +75 -0
- package/dist/components/icons-and-geometry/{Helpwave.cjs.map → Helpwave.mjs.map} +1 -1
- package/dist/components/icons-and-geometry/Ring.js +74 -37
- package/dist/components/icons-and-geometry/Ring.js.map +1 -1
- package/dist/components/icons-and-geometry/{Ring.cjs → Ring.mjs} +38 -76
- package/dist/components/icons-and-geometry/{Ring.cjs.map → Ring.mjs.map} +1 -1
- package/dist/components/icons-and-geometry/Tag.js +28 -4
- package/dist/components/icons-and-geometry/Tag.js.map +1 -1
- package/dist/components/icons-and-geometry/Tag.mjs +22 -0
- package/dist/components/icons-and-geometry/{Tag.cjs.map → Tag.mjs.map} +1 -1
- package/dist/components/layout-and-navigation/BreadCrumb.js +195 -191
- package/dist/components/layout-and-navigation/BreadCrumb.js.map +1 -1
- package/dist/components/layout-and-navigation/{BreadCrumb.cjs → BreadCrumb.mjs} +191 -198
- package/dist/components/layout-and-navigation/{BreadCrumb.cjs.map → BreadCrumb.mjs.map} +1 -1
- package/dist/components/layout-and-navigation/Carousel.js +68 -34
- package/dist/components/layout-and-navigation/Carousel.js.map +1 -1
- package/dist/components/layout-and-navigation/{Carousel.cjs → Carousel.mjs} +35 -70
- package/dist/components/layout-and-navigation/{Carousel.cjs.map → Carousel.mjs.map} +1 -1
- package/dist/components/layout-and-navigation/Chip.js +43 -8
- package/dist/components/layout-and-navigation/Chip.js.map +1 -1
- package/dist/components/layout-and-navigation/Chip.mjs +69 -0
- package/dist/components/layout-and-navigation/{Chip.cjs.map → Chip.mjs.map} +1 -1
- package/dist/components/layout-and-navigation/DividerInserter.js +39 -5
- package/dist/components/layout-and-navigation/DividerInserter.js.map +1 -1
- package/dist/components/layout-and-navigation/DividerInserter.mjs +25 -0
- package/dist/components/layout-and-navigation/{DividerInserter.cjs.map → DividerInserter.mjs.map} +1 -1
- package/dist/components/layout-and-navigation/Expandable.js +52 -17
- package/dist/components/layout-and-navigation/Expandable.js.map +1 -1
- package/dist/components/layout-and-navigation/Expandable.mjs +81 -0
- package/dist/components/layout-and-navigation/Expandable.mjs.map +1 -0
- package/dist/components/layout-and-navigation/{FAQSection.d.cts → FAQSection.d.mts} +1 -1
- package/dist/components/layout-and-navigation/FAQSection.js +75 -41
- package/dist/components/layout-and-navigation/FAQSection.js.map +1 -1
- package/dist/components/layout-and-navigation/{FAQSection.cjs → FAQSection.mjs} +42 -77
- package/dist/components/layout-and-navigation/FAQSection.mjs.map +1 -0
- package/dist/components/layout-and-navigation/{MarkdownInterpreter.d.cts → MarkdownInterpreter.d.mts} +1 -1
- package/dist/components/layout-and-navigation/MarkdownInterpreter.d.ts +1 -1
- package/dist/components/layout-and-navigation/MarkdownInterpreter.js +43 -18
- package/dist/components/layout-and-navigation/MarkdownInterpreter.js.map +1 -1
- package/dist/components/layout-and-navigation/{MarkdownInterpreter.cjs → MarkdownInterpreter.mjs} +19 -45
- package/dist/components/layout-and-navigation/{MarkdownInterpreter.cjs.map → MarkdownInterpreter.mjs.map} +1 -1
- package/dist/components/layout-and-navigation/{Overlay.d.cts → Overlay.d.mts} +3 -3
- package/dist/components/layout-and-navigation/Overlay.d.ts +1 -1
- package/dist/components/layout-and-navigation/Overlay.js +91 -54
- package/dist/components/layout-and-navigation/Overlay.js.map +1 -1
- package/dist/components/layout-and-navigation/{Overlay.cjs → Overlay.mjs} +55 -93
- package/dist/components/layout-and-navigation/Overlay.mjs.map +1 -0
- package/dist/components/layout-and-navigation/{Pagination.d.cts → Pagination.d.mts} +2 -2
- package/dist/components/layout-and-navigation/Pagination.js +53 -19
- package/dist/components/layout-and-navigation/Pagination.js.map +1 -1
- package/dist/components/layout-and-navigation/Pagination.mjs +82 -0
- package/dist/components/layout-and-navigation/Pagination.mjs.map +1 -0
- package/dist/components/layout-and-navigation/{SearchableList.d.cts → SearchableList.d.mts} +2 -2
- package/dist/components/layout-and-navigation/SearchableList.js +76 -42
- package/dist/components/layout-and-navigation/SearchableList.js.map +1 -1
- package/dist/components/layout-and-navigation/SearchableList.mjs +252 -0
- package/dist/components/layout-and-navigation/SearchableList.mjs.map +1 -0
- package/dist/components/layout-and-navigation/{StepperBar.d.cts → StepperBar.d.mts} +3 -3
- package/dist/components/layout-and-navigation/StepperBar.d.ts +1 -1
- package/dist/components/layout-and-navigation/StepperBar.js +69 -34
- package/dist/components/layout-and-navigation/StepperBar.js.map +1 -1
- package/dist/components/layout-and-navigation/{StepperBar.cjs → StepperBar.mjs} +35 -71
- package/dist/components/layout-and-navigation/StepperBar.mjs.map +1 -0
- package/dist/components/layout-and-navigation/{Table.d.cts → Table.d.mts} +4 -4
- package/dist/components/layout-and-navigation/Table.d.ts +3 -3
- package/dist/components/layout-and-navigation/Table.js +111 -68
- package/dist/components/layout-and-navigation/Table.js.map +1 -1
- package/dist/components/layout-and-navigation/{Table.cjs → Table.mjs} +69 -113
- package/dist/components/layout-and-navigation/Table.mjs.map +1 -0
- package/dist/components/layout-and-navigation/{TextImage.d.cts → TextImage.d.mts} +2 -2
- package/dist/components/layout-and-navigation/TextImage.js +54 -18
- package/dist/components/layout-and-navigation/TextImage.js.map +1 -1
- package/dist/components/layout-and-navigation/TextImage.mjs +101 -0
- package/dist/components/layout-and-navigation/TextImage.mjs.map +1 -0
- package/dist/components/layout-and-navigation/Tile.js +42 -8
- package/dist/components/layout-and-navigation/Tile.js.map +1 -1
- package/dist/components/layout-and-navigation/Tile.mjs +23 -0
- package/dist/components/layout-and-navigation/{Tile.cjs.map → Tile.mjs.map} +1 -1
- package/dist/components/layout-and-navigation/VerticalDivider.js +33 -9
- package/dist/components/layout-and-navigation/VerticalDivider.js.map +1 -1
- package/dist/components/layout-and-navigation/VerticalDivider.mjs +56 -0
- package/dist/components/layout-and-navigation/{VerticalDivider.cjs.map → VerticalDivider.mjs.map} +1 -1
- package/dist/components/loading-states/{ErrorComponent.d.cts → ErrorComponent.d.mts} +2 -2
- package/dist/components/loading-states/ErrorComponent.js +46 -12
- package/dist/components/loading-states/ErrorComponent.js.map +1 -1
- package/dist/components/loading-states/ErrorComponent.mjs +68 -0
- package/dist/components/loading-states/ErrorComponent.mjs.map +1 -0
- package/dist/components/loading-states/{LoadingAndErrorComponent.d.cts → LoadingAndErrorComponent.d.mts} +5 -5
- package/dist/components/loading-states/LoadingAndErrorComponent.d.ts +1 -1
- package/dist/components/loading-states/LoadingAndErrorComponent.js +68 -34
- package/dist/components/loading-states/LoadingAndErrorComponent.js.map +1 -1
- package/dist/components/loading-states/LoadingAndErrorComponent.mjs +194 -0
- package/dist/components/loading-states/LoadingAndErrorComponent.mjs.map +1 -0
- package/dist/components/loading-states/{LoadingAnimation.d.cts → LoadingAnimation.d.mts} +2 -2
- package/dist/components/loading-states/LoadingAnimation.js +59 -23
- package/dist/components/loading-states/LoadingAnimation.js.map +1 -1
- package/dist/components/loading-states/LoadingAnimation.mjs +139 -0
- package/dist/components/loading-states/LoadingAnimation.mjs.map +1 -0
- package/dist/components/loading-states/{LoadingButton.d.cts → LoadingButton.d.mts} +1 -1
- package/dist/components/loading-states/LoadingButton.js +62 -28
- package/dist/components/loading-states/LoadingButton.js.map +1 -1
- package/dist/components/loading-states/{LoadingButton.cjs → LoadingButton.mjs} +29 -64
- package/dist/components/loading-states/LoadingButton.mjs.map +1 -0
- package/dist/components/loading-states/ProgressIndicator.js +30 -6
- package/dist/components/loading-states/ProgressIndicator.js.map +1 -1
- package/dist/components/loading-states/ProgressIndicator.mjs +59 -0
- package/dist/components/loading-states/{ProgressIndicator.cjs.map → ProgressIndicator.mjs.map} +1 -1
- package/dist/components/modals/{ConfirmModal.d.cts → ConfirmModal.d.mts} +4 -4
- package/dist/components/modals/ConfirmModal.js +99 -63
- package/dist/components/modals/ConfirmModal.js.map +1 -1
- package/dist/components/modals/{ConfirmModal.cjs → ConfirmModal.mjs} +64 -101
- package/dist/components/modals/ConfirmModal.mjs.map +1 -0
- package/dist/components/modals/{DiscardChangesModal.d.cts → DiscardChangesModal.d.mts} +5 -5
- package/dist/components/modals/DiscardChangesModal.js +101 -65
- package/dist/components/modals/DiscardChangesModal.js.map +1 -1
- package/dist/components/modals/{DiscardChangesModal.cjs → DiscardChangesModal.mjs} +66 -103
- package/dist/components/modals/DiscardChangesModal.mjs.map +1 -0
- package/dist/components/modals/{InputModal.d.cts → InputModal.d.mts} +7 -7
- package/dist/components/modals/InputModal.js +124 -88
- package/dist/components/modals/InputModal.js.map +1 -1
- package/dist/components/modals/{InputModal.cjs → InputModal.mjs} +89 -126
- package/dist/components/modals/InputModal.mjs.map +1 -0
- package/dist/components/modals/{LanguageModal.d.cts → LanguageModal.d.mts} +3 -3
- package/dist/components/modals/LanguageModal.js +130 -95
- package/dist/components/modals/LanguageModal.js.map +1 -1
- package/dist/components/modals/{LanguageModal.cjs → LanguageModal.mjs} +95 -133
- package/dist/components/modals/LanguageModal.mjs.map +1 -0
- package/dist/components/modals/{ThemeModal.d.cts → ThemeModal.d.mts} +4 -4
- package/dist/components/modals/ThemeModal.js +134 -99
- package/dist/components/modals/ThemeModal.js.map +1 -1
- package/dist/components/modals/{ThemeModal.cjs → ThemeModal.mjs} +99 -137
- package/dist/components/modals/ThemeModal.mjs.map +1 -0
- package/dist/components/properties/{CheckboxProperty.d.cts → CheckboxProperty.d.mts} +3 -3
- package/dist/components/properties/CheckboxProperty.js +87 -53
- package/dist/components/properties/CheckboxProperty.js.map +1 -1
- package/dist/components/properties/{CheckboxProperty.cjs → CheckboxProperty.mjs} +54 -89
- package/dist/components/properties/CheckboxProperty.mjs.map +1 -0
- package/dist/components/properties/{DateProperty.d.cts → DateProperty.d.mts} +3 -3
- package/dist/components/properties/DateProperty.js +94 -60
- package/dist/components/properties/DateProperty.js.map +1 -1
- package/dist/components/properties/{DateProperty.cjs → DateProperty.mjs} +61 -96
- package/dist/components/properties/DateProperty.mjs.map +1 -0
- package/dist/components/properties/{MultiSelectProperty.d.cts → MultiSelectProperty.d.mts} +5 -5
- package/dist/components/properties/MultiSelectProperty.js +157 -123
- package/dist/components/properties/MultiSelectProperty.js.map +1 -1
- package/dist/components/properties/{MultiSelectProperty.cjs → MultiSelectProperty.mjs} +124 -159
- package/dist/components/properties/MultiSelectProperty.mjs.map +1 -0
- package/dist/components/properties/{NumberProperty.d.cts → NumberProperty.d.mts} +3 -3
- package/dist/components/properties/NumberProperty.js +95 -61
- package/dist/components/properties/NumberProperty.js.map +1 -1
- package/dist/components/properties/{NumberProperty.cjs → NumberProperty.mjs} +62 -97
- package/dist/components/properties/NumberProperty.mjs.map +1 -0
- package/dist/components/properties/{PropertyBase.d.cts → PropertyBase.d.mts} +2 -2
- package/dist/components/properties/PropertyBase.js +63 -29
- package/dist/components/properties/PropertyBase.js.map +1 -1
- package/dist/components/properties/PropertyBase.mjs +188 -0
- package/dist/components/properties/PropertyBase.mjs.map +1 -0
- package/dist/components/properties/{SelectProperty.d.cts → SelectProperty.d.mts} +5 -5
- package/dist/components/properties/SelectProperty.js +119 -86
- package/dist/components/properties/SelectProperty.js.map +1 -1
- package/dist/components/properties/{SelectProperty.cjs → SelectProperty.mjs} +86 -122
- package/dist/components/properties/SelectProperty.mjs.map +1 -0
- package/dist/components/properties/{TextProperty.d.cts → TextProperty.d.mts} +3 -3
- package/dist/components/properties/TextProperty.js +92 -58
- package/dist/components/properties/TextProperty.js.map +1 -1
- package/dist/components/properties/{TextProperty.cjs → TextProperty.mjs} +59 -94
- package/dist/components/properties/TextProperty.mjs.map +1 -0
- package/dist/components/user-action/Button.js +67 -28
- package/dist/components/user-action/Button.js.map +1 -1
- package/dist/components/user-action/{Button.cjs → Button.mjs} +29 -69
- package/dist/components/user-action/{Button.cjs.map → Button.mjs.map} +1 -1
- package/dist/components/user-action/{Checkbox.d.cts → Checkbox.d.mts} +1 -1
- package/dist/components/user-action/Checkbox.js +58 -23
- package/dist/components/user-action/Checkbox.js.map +1 -1
- package/dist/components/user-action/Checkbox.mjs +122 -0
- package/dist/components/user-action/Checkbox.mjs.map +1 -0
- package/dist/components/user-action/{DateAndTimePicker.d.cts → DateAndTimePicker.d.mts} +7 -7
- package/dist/components/user-action/DateAndTimePicker.js +142 -107
- package/dist/components/user-action/DateAndTimePicker.js.map +1 -1
- package/dist/components/user-action/{DateAndTimePicker.cjs → DateAndTimePicker.mjs} +109 -143
- package/dist/components/user-action/DateAndTimePicker.mjs.map +1 -0
- package/dist/components/user-action/{Input.d.cts → Input.d.mts} +1 -1
- package/dist/components/user-action/Input.js +62 -26
- package/dist/components/user-action/Input.js.map +1 -1
- package/dist/components/user-action/Input.mjs +186 -0
- package/dist/components/user-action/Input.mjs.map +1 -0
- package/dist/components/user-action/Label.js +39 -5
- package/dist/components/user-action/Label.js.map +1 -1
- package/dist/components/user-action/Label.mjs +21 -0
- package/dist/components/user-action/{Label.cjs.map → Label.mjs.map} +1 -1
- package/dist/components/user-action/Menu.js +54 -19
- package/dist/components/user-action/Menu.js.map +1 -1
- package/dist/components/user-action/Menu.mjs +127 -0
- package/dist/components/user-action/Menu.mjs.map +1 -0
- package/dist/components/user-action/{MultiSelect.d.cts → MultiSelect.d.mts} +3 -3
- package/dist/components/user-action/MultiSelect.js +118 -84
- package/dist/components/user-action/MultiSelect.js.map +1 -1
- package/dist/components/user-action/{MultiSelect.cjs → MultiSelect.mjs} +85 -120
- package/dist/components/user-action/MultiSelect.mjs.map +1 -0
- package/dist/components/user-action/ScrollPicker.js +50 -16
- package/dist/components/user-action/ScrollPicker.js.map +1 -1
- package/dist/components/user-action/{ScrollPicker.cjs → ScrollPicker.mjs} +17 -52
- package/dist/components/user-action/ScrollPicker.mjs.map +1 -0
- package/dist/components/user-action/{Select.d.cts → Select.d.mts} +2 -2
- package/dist/components/user-action/Select.d.ts +1 -1
- package/dist/components/user-action/Select.js +88 -53
- package/dist/components/user-action/Select.js.map +1 -1
- package/dist/components/user-action/{Select.cjs → Select.mjs} +53 -91
- package/dist/components/user-action/Select.mjs.map +1 -0
- package/dist/components/user-action/{Textarea.d.cts → Textarea.d.mts} +1 -1
- package/dist/components/user-action/Textarea.js +60 -25
- package/dist/components/user-action/Textarea.js.map +1 -1
- package/dist/components/user-action/Textarea.mjs +163 -0
- package/dist/components/user-action/Textarea.mjs.map +1 -0
- package/dist/components/user-action/ToggleableInput.js +61 -26
- package/dist/components/user-action/ToggleableInput.js.map +1 -1
- package/dist/components/user-action/ToggleableInput.mjs +156 -0
- package/dist/components/user-action/ToggleableInput.mjs.map +1 -0
- package/dist/components/user-action/Tooltip.js +41 -15
- package/dist/components/user-action/Tooltip.js.map +1 -1
- package/dist/components/user-action/{Tooltip.cjs → Tooltip.mjs} +16 -43
- package/dist/components/user-action/Tooltip.mjs.map +1 -0
- package/dist/css/globals.css +33 -24
- package/dist/css/uncompiled/globals.css +19 -7
- package/dist/hooks/useHoverState.js +31 -7
- package/dist/hooks/useHoverState.js.map +1 -1
- package/dist/hooks/useHoverState.mjs +47 -0
- package/dist/hooks/{useHoverState.cjs.map → useHoverState.mjs.map} +1 -1
- package/dist/hooks/useLocalStorage.js +31 -7
- package/dist/hooks/useLocalStorage.js.map +1 -1
- package/dist/hooks/useLocalStorage.mjs +58 -0
- package/dist/hooks/{useLocalStorage.cjs.map → useLocalStorage.mjs.map} +1 -1
- package/dist/hooks/useOutsideClick.js +28 -4
- package/dist/hooks/useOutsideClick.js.map +1 -1
- package/dist/hooks/useOutsideClick.mjs +23 -0
- package/dist/hooks/{useOutsideClick.cjs.map → useOutsideClick.mjs.map} +1 -1
- package/dist/hooks/useSaveDelay.js +30 -6
- package/dist/hooks/useSaveDelay.js.map +1 -1
- package/dist/hooks/useSaveDelay.mjs +43 -0
- package/dist/hooks/{useSaveDelay.cjs.map → useSaveDelay.mjs.map} +1 -1
- package/dist/{index.d.cts → index.d.mts} +78 -78
- package/dist/index.js +1038 -885
- package/dist/index.js.map +1 -1
- package/dist/{index.cjs → index.mjs} +886 -1038
- package/dist/index.mjs.map +1 -0
- package/dist/localization/{LanguageProvider.d.cts → LanguageProvider.d.mts} +1 -1
- package/dist/localization/LanguageProvider.js +43 -16
- package/dist/localization/LanguageProvider.js.map +1 -1
- package/dist/localization/{LanguageProvider.cjs → LanguageProvider.mjs} +17 -45
- package/dist/localization/LanguageProvider.mjs.map +1 -0
- package/dist/localization/{useTranslation.d.cts → useTranslation.d.mts} +1 -1
- package/dist/localization/useTranslation.js +33 -7
- package/dist/localization/useTranslation.js.map +1 -1
- package/dist/localization/useTranslation.mjs +42 -0
- package/dist/localization/useTranslation.mjs.map +1 -0
- package/dist/localization/util.js +26 -2
- package/dist/localization/util.js.map +1 -1
- package/dist/localization/util.mjs +16 -0
- package/dist/localization/{util.cjs.map → util.mjs.map} +1 -1
- package/dist/theming/{useTheme.d.cts → useTheme.d.mts} +2 -2
- package/dist/theming/useTheme.js +37 -10
- package/dist/theming/useTheme.js.map +1 -1
- package/dist/theming/useTheme.mjs +48 -0
- package/dist/theming/useTheme.mjs.map +1 -0
- package/dist/util/array.js +32 -2
- package/dist/util/array.js.map +1 -1
- package/dist/util/{array.cjs → array.mjs} +3 -34
- package/dist/util/{array.cjs.map → array.mjs.map} +1 -1
- package/dist/util/builder.js +26 -2
- package/dist/util/builder.js.map +1 -1
- package/dist/util/builder.mjs +9 -0
- package/dist/util/{builder.cjs.map → builder.mjs.map} +1 -1
- package/dist/util/date.js +39 -2
- package/dist/util/date.js.map +1 -1
- package/dist/util/{date.cjs → date.mjs} +3 -41
- package/dist/util/date.mjs.map +1 -0
- package/dist/util/easeFunctions.js +28 -2
- package/dist/util/easeFunctions.js.map +1 -1
- package/dist/util/easeFunctions.mjs +36 -0
- package/dist/util/easeFunctions.mjs.map +1 -0
- package/dist/util/emailValidation.js +26 -2
- package/dist/util/emailValidation.js.map +1 -1
- package/dist/util/emailValidation.mjs +8 -0
- package/dist/util/{emailValidation.cjs.map → emailValidation.mjs.map} +1 -1
- package/dist/util/loopingArray.js +26 -2
- package/dist/util/loopingArray.js.map +1 -1
- package/dist/util/{loopingArray.cjs → loopingArray.mjs} +3 -28
- package/dist/util/{loopingArray.cjs.map → loopingArray.mjs.map} +1 -1
- package/dist/util/math.js +26 -2
- package/dist/util/math.js.map +1 -1
- package/dist/util/math.mjs +8 -0
- package/dist/util/{math.cjs.map → math.mjs.map} +1 -1
- package/dist/util/news.d.mts +101 -0
- package/dist/util/news.d.ts +54 -54
- package/dist/util/news.js +39 -12
- package/dist/util/news.js.map +1 -1
- package/dist/util/news.mjs +49 -0
- package/dist/util/news.mjs.map +1 -0
- package/dist/util/noop.d.mts +3 -0
- package/dist/util/noop.d.ts +1 -1
- package/dist/util/noop.js +26 -2
- package/dist/util/noop.js.map +1 -1
- package/dist/util/noop.mjs +6 -0
- package/dist/util/noop.mjs.map +1 -0
- package/dist/util/simpleSearch.js +29 -2
- package/dist/util/simpleSearch.js.map +1 -1
- package/dist/util/simpleSearch.mjs +26 -0
- package/dist/util/{simpleSearch.cjs.map → simpleSearch.mjs.map} +1 -1
- package/dist/util/storage.js +27 -2
- package/dist/util/storage.js.map +1 -1
- package/dist/util/storage.mjs +38 -0
- package/dist/util/{storage.cjs.map → storage.mjs.map} +1 -1
- package/dist/util/types.js +17 -0
- package/dist/util/types.js.map +1 -1
- package/dist/util/types.mjs +1 -0
- package/dist/util/types.mjs.map +1 -0
- package/package.json +5 -7
- package/dist/coloring/shading.cjs +0 -3402
- package/dist/coloring/shading.cjs.map +0 -1
- package/dist/coloring/types.cjs +0 -31
- package/dist/components/branding/HelpwaveBadge.cjs +0 -157
- package/dist/components/branding/HelpwaveBadge.cjs.map +0 -1
- package/dist/components/date/DatePicker.cjs.map +0 -1
- package/dist/components/date/DayPicker.cjs.map +0 -1
- package/dist/components/date/TimeDisplay.cjs.map +0 -1
- package/dist/components/date/TimePicker.cjs.map +0 -1
- package/dist/components/date/YearMonthPicker.cjs.map +0 -1
- package/dist/components/dialogs/ConfirmDialog.cjs.map +0 -1
- package/dist/components/icons-and-geometry/Avatar.cjs +0 -119
- package/dist/components/icons-and-geometry/Circle.cjs +0 -62
- package/dist/components/icons-and-geometry/Helpwave.cjs +0 -100
- package/dist/components/icons-and-geometry/Tag.cjs +0 -47
- package/dist/components/layout-and-navigation/Chip.cjs +0 -105
- package/dist/components/layout-and-navigation/DividerInserter.cjs +0 -60
- package/dist/components/layout-and-navigation/Expandable.cjs +0 -117
- package/dist/components/layout-and-navigation/Expandable.cjs.map +0 -1
- package/dist/components/layout-and-navigation/FAQSection.cjs.map +0 -1
- package/dist/components/layout-and-navigation/Overlay.cjs.map +0 -1
- package/dist/components/layout-and-navigation/Pagination.cjs +0 -117
- package/dist/components/layout-and-navigation/Pagination.cjs.map +0 -1
- package/dist/components/layout-and-navigation/SearchableList.cjs +0 -287
- package/dist/components/layout-and-navigation/SearchableList.cjs.map +0 -1
- package/dist/components/layout-and-navigation/StepperBar.cjs.map +0 -1
- package/dist/components/layout-and-navigation/Table.cjs.map +0 -1
- package/dist/components/layout-and-navigation/TextImage.cjs +0 -138
- package/dist/components/layout-and-navigation/TextImage.cjs.map +0 -1
- package/dist/components/layout-and-navigation/Tile.cjs +0 -58
- package/dist/components/layout-and-navigation/VerticalDivider.cjs +0 -81
- package/dist/components/loading-states/ErrorComponent.cjs +0 -103
- package/dist/components/loading-states/ErrorComponent.cjs.map +0 -1
- package/dist/components/loading-states/LoadingAndErrorComponent.cjs +0 -229
- package/dist/components/loading-states/LoadingAndErrorComponent.cjs.map +0 -1
- package/dist/components/loading-states/LoadingAnimation.cjs +0 -176
- package/dist/components/loading-states/LoadingAnimation.cjs.map +0 -1
- package/dist/components/loading-states/LoadingButton.cjs.map +0 -1
- package/dist/components/loading-states/ProgressIndicator.cjs +0 -84
- package/dist/components/modals/ConfirmModal.cjs.map +0 -1
- package/dist/components/modals/DiscardChangesModal.cjs.map +0 -1
- package/dist/components/modals/InputModal.cjs.map +0 -1
- package/dist/components/modals/LanguageModal.cjs.map +0 -1
- package/dist/components/modals/ThemeModal.cjs.map +0 -1
- package/dist/components/properties/CheckboxProperty.cjs.map +0 -1
- package/dist/components/properties/DateProperty.cjs.map +0 -1
- package/dist/components/properties/MultiSelectProperty.cjs.map +0 -1
- package/dist/components/properties/NumberProperty.cjs.map +0 -1
- package/dist/components/properties/PropertyBase.cjs +0 -223
- package/dist/components/properties/PropertyBase.cjs.map +0 -1
- package/dist/components/properties/SelectProperty.cjs.map +0 -1
- package/dist/components/properties/TextProperty.cjs.map +0 -1
- package/dist/components/user-action/Checkbox.cjs +0 -158
- package/dist/components/user-action/Checkbox.cjs.map +0 -1
- package/dist/components/user-action/DateAndTimePicker.cjs.map +0 -1
- package/dist/components/user-action/Input.cjs +0 -223
- package/dist/components/user-action/Input.cjs.map +0 -1
- package/dist/components/user-action/Label.cjs +0 -56
- package/dist/components/user-action/Menu.cjs +0 -163
- package/dist/components/user-action/Menu.cjs.map +0 -1
- package/dist/components/user-action/MultiSelect.cjs.map +0 -1
- package/dist/components/user-action/ScrollPicker.cjs.map +0 -1
- package/dist/components/user-action/Select.cjs.map +0 -1
- package/dist/components/user-action/Textarea.cjs +0 -199
- package/dist/components/user-action/Textarea.cjs.map +0 -1
- package/dist/components/user-action/ToggleableInput.cjs +0 -192
- package/dist/components/user-action/ToggleableInput.cjs.map +0 -1
- package/dist/components/user-action/Tooltip.cjs.map +0 -1
- package/dist/hooks/useHoverState.cjs +0 -72
- package/dist/hooks/useLocalStorage.cjs +0 -83
- package/dist/hooks/useOutsideClick.cjs +0 -48
- package/dist/hooks/useSaveDelay.cjs +0 -68
- package/dist/index.cjs.map +0 -1
- package/dist/localization/LanguageProvider.cjs.map +0 -1
- package/dist/localization/useTranslation.cjs +0 -69
- package/dist/localization/useTranslation.cjs.map +0 -1
- package/dist/localization/util.cjs +0 -41
- package/dist/theming/useTheme.cjs +0 -76
- package/dist/theming/useTheme.cjs.map +0 -1
- package/dist/util/builder.cjs +0 -34
- package/dist/util/date.cjs.map +0 -1
- package/dist/util/easeFunctions.cjs +0 -63
- package/dist/util/easeFunctions.cjs.map +0 -1
- package/dist/util/emailValidation.cjs +0 -33
- package/dist/util/math.cjs +0 -33
- package/dist/util/news.cjs +0 -77
- package/dist/util/news.cjs.map +0 -1
- package/dist/util/news.d.cts +0 -101
- package/dist/util/noop.cjs +0 -31
- package/dist/util/noop.cjs.map +0 -1
- package/dist/util/noop.d.cts +0 -3
- package/dist/util/simpleSearch.cjs +0 -54
- package/dist/util/storage.cjs +0 -64
- package/dist/util/types.cjs +0 -19
- package/dist/util/types.cjs.map +0 -1
- /package/dist/coloring/{types.d.cts → types.d.mts} +0 -0
- /package/dist/components/branding/{HelpwaveBadge.d.cts → HelpwaveBadge.d.mts} +0 -0
- /package/dist/components/date/{TimePicker.d.cts → TimePicker.d.mts} +0 -0
- /package/dist/components/icons-and-geometry/{Avatar.d.cts → Avatar.d.mts} +0 -0
- /package/dist/components/icons-and-geometry/{Circle.d.cts → Circle.d.mts} +0 -0
- /package/dist/components/icons-and-geometry/{Helpwave.d.cts → Helpwave.d.mts} +0 -0
- /package/dist/components/icons-and-geometry/{Ring.d.cts → Ring.d.mts} +0 -0
- /package/dist/components/icons-and-geometry/{Tag.d.cts → Tag.d.mts} +0 -0
- /package/dist/components/layout-and-navigation/{BreadCrumb.d.cts → BreadCrumb.d.mts} +0 -0
- /package/dist/components/layout-and-navigation/{Carousel.d.cts → Carousel.d.mts} +0 -0
- /package/dist/components/layout-and-navigation/{Chip.d.cts → Chip.d.mts} +0 -0
- /package/dist/components/layout-and-navigation/{DividerInserter.d.cts → DividerInserter.d.mts} +0 -0
- /package/dist/components/layout-and-navigation/{Expandable.d.cts → Expandable.d.mts} +0 -0
- /package/dist/components/layout-and-navigation/{Tile.d.cts → Tile.d.mts} +0 -0
- /package/dist/components/layout-and-navigation/{VerticalDivider.d.cts → VerticalDivider.d.mts} +0 -0
- /package/dist/components/loading-states/{ProgressIndicator.d.cts → ProgressIndicator.d.mts} +0 -0
- /package/dist/components/user-action/{Button.d.cts → Button.d.mts} +0 -0
- /package/dist/components/user-action/{Label.d.cts → Label.d.mts} +0 -0
- /package/dist/components/user-action/{Menu.d.cts → Menu.d.mts} +0 -0
- /package/dist/components/user-action/{ScrollPicker.d.cts → ScrollPicker.d.mts} +0 -0
- /package/dist/components/user-action/{ToggleableInput.d.cts → ToggleableInput.d.mts} +0 -0
- /package/dist/components/user-action/{Tooltip.d.cts → Tooltip.d.mts} +0 -0
- /package/dist/hooks/{useHoverState.d.cts → useHoverState.d.mts} +0 -0
- /package/dist/hooks/{useLocalStorage.d.cts → useLocalStorage.d.mts} +0 -0
- /package/dist/hooks/{useOutsideClick.d.cts → useOutsideClick.d.mts} +0 -0
- /package/dist/hooks/{useSaveDelay.d.cts → useSaveDelay.d.mts} +0 -0
- /package/dist/localization/{util.d.cts → util.d.mts} +0 -0
- /package/dist/util/{array.d.cts → array.d.mts} +0 -0
- /package/dist/util/{builder.d.cts → builder.d.mts} +0 -0
- /package/dist/util/{date.d.cts → date.d.mts} +0 -0
- /package/dist/util/{easeFunctions.d.cts → easeFunctions.d.mts} +0 -0
- /package/dist/util/{emailValidation.d.cts → emailValidation.d.mts} +0 -0
- /package/dist/util/{loopingArray.d.cts → loopingArray.d.mts} +0 -0
- /package/dist/util/{math.d.cts → math.d.mts} +0 -0
- /package/dist/util/{simpleSearch.d.cts → simpleSearch.d.mts} +0 -0
- /package/dist/util/{storage.d.cts → storage.d.mts} +0 -0
- /package/dist/util/{types.d.cts → types.d.mts} +0 -0
|
@@ -1,12 +1,45 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
1
29
|
// src/components/properties/MultiSelectProperty.tsx
|
|
2
|
-
|
|
3
|
-
|
|
30
|
+
var MultiSelectProperty_exports = {};
|
|
31
|
+
__export(MultiSelectProperty_exports, {
|
|
32
|
+
MultiSelectProperty: () => MultiSelectProperty
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(MultiSelectProperty_exports);
|
|
35
|
+
var import_lucide_react4 = require("lucide-react");
|
|
36
|
+
var import_clsx9 = __toESM(require("clsx"));
|
|
4
37
|
|
|
5
38
|
// src/localization/LanguageProvider.tsx
|
|
6
|
-
|
|
39
|
+
var import_react2 = require("react");
|
|
7
40
|
|
|
8
41
|
// src/hooks/useLocalStorage.ts
|
|
9
|
-
|
|
42
|
+
var import_react = require("react");
|
|
10
43
|
|
|
11
44
|
// src/localization/util.ts
|
|
12
45
|
var languages = ["en", "de"];
|
|
@@ -22,12 +55,12 @@ var LanguageUtil = {
|
|
|
22
55
|
};
|
|
23
56
|
|
|
24
57
|
// src/localization/LanguageProvider.tsx
|
|
25
|
-
|
|
26
|
-
var LanguageContext = createContext({
|
|
58
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
59
|
+
var LanguageContext = (0, import_react2.createContext)({
|
|
27
60
|
language: LanguageUtil.DEFAULT_LANGUAGE,
|
|
28
61
|
setLanguage: (v) => v
|
|
29
62
|
});
|
|
30
|
-
var useLanguage = () => useContext(LanguageContext);
|
|
63
|
+
var useLanguage = () => (0, import_react2.useContext)(LanguageContext);
|
|
31
64
|
|
|
32
65
|
// src/localization/useTranslation.ts
|
|
33
66
|
var useTranslation = (defaults, translationOverwrite = {}) => {
|
|
@@ -42,8 +75,8 @@ var useTranslation = (defaults, translationOverwrite = {}) => {
|
|
|
42
75
|
};
|
|
43
76
|
|
|
44
77
|
// src/components/user-action/MultiSelect.tsx
|
|
45
|
-
|
|
46
|
-
|
|
78
|
+
var import_react9 = require("react");
|
|
79
|
+
var import_lucide_react2 = require("lucide-react");
|
|
47
80
|
|
|
48
81
|
// src/util/simpleSearch.ts
|
|
49
82
|
var MultiSearchWithMapping = (search, objects, mapping) => {
|
|
@@ -54,16 +87,16 @@ var MultiSearchWithMapping = (search, objects, mapping) => {
|
|
|
54
87
|
};
|
|
55
88
|
|
|
56
89
|
// src/components/user-action/MultiSelect.tsx
|
|
57
|
-
|
|
90
|
+
var import_clsx5 = __toESM(require("clsx"));
|
|
58
91
|
|
|
59
92
|
// src/components/user-action/Menu.tsx
|
|
60
|
-
|
|
61
|
-
|
|
93
|
+
var import_react5 = require("react");
|
|
94
|
+
var import_clsx = __toESM(require("clsx"));
|
|
62
95
|
|
|
63
96
|
// src/hooks/useOutsideClick.ts
|
|
64
|
-
|
|
97
|
+
var import_react3 = require("react");
|
|
65
98
|
var useOutsideClick = (refs, handler) => {
|
|
66
|
-
|
|
99
|
+
(0, import_react3.useEffect)(() => {
|
|
67
100
|
const listener = (event) => {
|
|
68
101
|
if (event.target === null) return;
|
|
69
102
|
if (refs.some((ref) => !ref.current || ref.current.contains(event.target))) {
|
|
@@ -81,15 +114,15 @@ var useOutsideClick = (refs, handler) => {
|
|
|
81
114
|
};
|
|
82
115
|
|
|
83
116
|
// src/hooks/useHoverState.ts
|
|
84
|
-
|
|
117
|
+
var import_react4 = require("react");
|
|
85
118
|
var defaultUseHoverStateProps = {
|
|
86
119
|
closingDelay: 200,
|
|
87
120
|
isDisabled: false
|
|
88
121
|
};
|
|
89
122
|
var useHoverState = (props = void 0) => {
|
|
90
123
|
const { closingDelay, isDisabled } = { ...defaultUseHoverStateProps, ...props };
|
|
91
|
-
const [isHovered, setIsHovered] =
|
|
92
|
-
const [timer, setTimer] =
|
|
124
|
+
const [isHovered, setIsHovered] = (0, import_react4.useState)(false);
|
|
125
|
+
const [timer, setTimer] = (0, import_react4.useState)();
|
|
93
126
|
const onMouseEnter = () => {
|
|
94
127
|
if (isDisabled) {
|
|
95
128
|
return;
|
|
@@ -105,14 +138,14 @@ var useHoverState = (props = void 0) => {
|
|
|
105
138
|
setIsHovered(false);
|
|
106
139
|
}, closingDelay));
|
|
107
140
|
};
|
|
108
|
-
|
|
141
|
+
(0, import_react4.useEffect)(() => {
|
|
109
142
|
if (timer) {
|
|
110
143
|
return () => {
|
|
111
144
|
clearTimeout(timer);
|
|
112
145
|
};
|
|
113
146
|
}
|
|
114
147
|
});
|
|
115
|
-
|
|
148
|
+
(0, import_react4.useEffect)(() => {
|
|
116
149
|
if (timer) {
|
|
117
150
|
clearTimeout(timer);
|
|
118
151
|
}
|
|
@@ -125,16 +158,16 @@ var useHoverState = (props = void 0) => {
|
|
|
125
158
|
};
|
|
126
159
|
|
|
127
160
|
// src/components/user-action/Menu.tsx
|
|
128
|
-
|
|
161
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
129
162
|
var MenuItem = ({
|
|
130
163
|
children,
|
|
131
164
|
onClick,
|
|
132
165
|
alignment = "left",
|
|
133
166
|
className
|
|
134
|
-
}) => /* @__PURE__ */
|
|
167
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
135
168
|
"div",
|
|
136
169
|
{
|
|
137
|
-
className:
|
|
170
|
+
className: (0, import_clsx.default)("block px-3 py-1 bg-menu-background text-menu-text hover:brightness-90", {
|
|
138
171
|
"text-right": alignment === "right",
|
|
139
172
|
"text-left": alignment === "left"
|
|
140
173
|
}, className),
|
|
@@ -150,22 +183,22 @@ var Menu = ({
|
|
|
150
183
|
menuClassName = ""
|
|
151
184
|
}) => {
|
|
152
185
|
const { isHovered: isOpen, setIsHovered: setIsOpen, handlers } = useHoverState({ isDisabled: !showOnHover });
|
|
153
|
-
const triggerRef = useRef(null);
|
|
154
|
-
const menuRef = useRef(null);
|
|
186
|
+
const triggerRef = (0, import_react5.useRef)(null);
|
|
187
|
+
const menuRef = (0, import_react5.useRef)(null);
|
|
155
188
|
useOutsideClick([triggerRef, menuRef], () => setIsOpen(false));
|
|
156
|
-
return /* @__PURE__ */ jsxs(
|
|
189
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
|
157
190
|
"div",
|
|
158
191
|
{
|
|
159
192
|
className: "relative",
|
|
160
193
|
...handlers,
|
|
161
194
|
children: [
|
|
162
195
|
trigger(() => setIsOpen(!isOpen), triggerRef),
|
|
163
|
-
isOpen ? /* @__PURE__ */
|
|
196
|
+
isOpen ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
164
197
|
"div",
|
|
165
198
|
{
|
|
166
199
|
ref: menuRef,
|
|
167
200
|
onClick: (e) => e.stopPropagation(),
|
|
168
|
-
className:
|
|
201
|
+
className: (0, import_clsx.default)("absolute top-full mt-1 py-2 w-60 rounded-lg bg-menu-background text-menu-text ring-1 ring-slate-900/5 text-sm leading-6 font-semibold shadow-md z-[1]", {
|
|
169
202
|
" top-[8px]": alignment[0] === "t",
|
|
170
203
|
" bottom-[8px]": alignment[0] === "b",
|
|
171
204
|
" left-[-8px]": alignment[1] === "l",
|
|
@@ -180,14 +213,14 @@ var Menu = ({
|
|
|
180
213
|
};
|
|
181
214
|
|
|
182
215
|
// src/components/user-action/Input.tsx
|
|
183
|
-
|
|
184
|
-
|
|
216
|
+
var import_react7 = require("react");
|
|
217
|
+
var import_clsx3 = __toESM(require("clsx"));
|
|
185
218
|
|
|
186
219
|
// src/hooks/useSaveDelay.ts
|
|
187
|
-
|
|
220
|
+
var import_react6 = require("react");
|
|
188
221
|
function useSaveDelay(setNotificationStatus, delay) {
|
|
189
|
-
const [updateTimer, setUpdateTimer] =
|
|
190
|
-
const [notificationTimer, setNotificationTimer] =
|
|
222
|
+
const [updateTimer, setUpdateTimer] = (0, import_react6.useState)(void 0);
|
|
223
|
+
const [notificationTimer, setNotificationTimer] = (0, import_react6.useState)(void 0);
|
|
191
224
|
const restartTimer = (onSave) => {
|
|
192
225
|
clearTimeout(updateTimer);
|
|
193
226
|
setUpdateTimer(setTimeout(() => {
|
|
@@ -214,7 +247,7 @@ function useSaveDelay(setNotificationStatus, delay) {
|
|
|
214
247
|
setNotificationStatus(false);
|
|
215
248
|
}
|
|
216
249
|
};
|
|
217
|
-
|
|
250
|
+
(0, import_react6.useEffect)(() => {
|
|
218
251
|
return () => {
|
|
219
252
|
clearTimeout(updateTimer);
|
|
220
253
|
clearTimeout(notificationTimer);
|
|
@@ -227,8 +260,8 @@ function useSaveDelay(setNotificationStatus, delay) {
|
|
|
227
260
|
var noop = () => void 0;
|
|
228
261
|
|
|
229
262
|
// src/components/user-action/Label.tsx
|
|
230
|
-
|
|
231
|
-
|
|
263
|
+
var import_clsx2 = __toESM(require("clsx"));
|
|
264
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
232
265
|
var styleMapping = {
|
|
233
266
|
labelSmall: "textstyle-label-sm",
|
|
234
267
|
labelMedium: "textstyle-label-md",
|
|
@@ -241,11 +274,11 @@ var Label = ({
|
|
|
241
274
|
className,
|
|
242
275
|
...props
|
|
243
276
|
}) => {
|
|
244
|
-
return /* @__PURE__ */
|
|
277
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("label", { ...props, className: (0, import_clsx2.default)(styleMapping[labelType], className), children: children ? children : name });
|
|
245
278
|
};
|
|
246
279
|
|
|
247
280
|
// src/components/user-action/Input.tsx
|
|
248
|
-
|
|
281
|
+
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
249
282
|
var Input = ({
|
|
250
283
|
id,
|
|
251
284
|
type = "text",
|
|
@@ -265,15 +298,15 @@ var Input = ({
|
|
|
265
298
|
restartTimer,
|
|
266
299
|
clearUpdateTimer
|
|
267
300
|
} = useSaveDelay(() => void 0, 3e3);
|
|
268
|
-
const ref =
|
|
269
|
-
|
|
301
|
+
const ref = (0, import_react7.useRef)(null);
|
|
302
|
+
(0, import_react7.useEffect)(() => {
|
|
270
303
|
if (autoFocus) {
|
|
271
304
|
ref.current?.focus();
|
|
272
305
|
}
|
|
273
306
|
}, [autoFocus]);
|
|
274
|
-
return /* @__PURE__ */
|
|
275
|
-
label && /* @__PURE__ */
|
|
276
|
-
/* @__PURE__ */
|
|
307
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: (0, import_clsx3.default)({ "w-full": expanded }, containerClassName), children: [
|
|
308
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Label, { ...label, htmlFor: id, className: (0, import_clsx3.default)("mb-1", label.className) }),
|
|
309
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
277
310
|
"input",
|
|
278
311
|
{
|
|
279
312
|
ref,
|
|
@@ -306,7 +339,7 @@ var Input = ({
|
|
|
306
339
|
)
|
|
307
340
|
] });
|
|
308
341
|
};
|
|
309
|
-
var FormInput = forwardRef(function FormInput2({
|
|
342
|
+
var FormInput = (0, import_react7.forwardRef)(function FormInput2({
|
|
310
343
|
id,
|
|
311
344
|
labelText,
|
|
312
345
|
errorText,
|
|
@@ -317,13 +350,13 @@ var FormInput = forwardRef(function FormInput2({
|
|
|
317
350
|
required,
|
|
318
351
|
...restProps
|
|
319
352
|
}, ref) {
|
|
320
|
-
const input = /* @__PURE__ */
|
|
353
|
+
const input = /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
321
354
|
"input",
|
|
322
355
|
{
|
|
323
356
|
ref,
|
|
324
357
|
id,
|
|
325
358
|
...restProps,
|
|
326
|
-
className:
|
|
359
|
+
className: (0, import_clsx3.default)(
|
|
327
360
|
{
|
|
328
361
|
"focus:border-primary focus:ring-primary": !errorText,
|
|
329
362
|
"focus:border-negative focus:ring-negative text-negative": !!errorText
|
|
@@ -332,22 +365,22 @@ var FormInput = forwardRef(function FormInput2({
|
|
|
332
365
|
)
|
|
333
366
|
}
|
|
334
367
|
);
|
|
335
|
-
return /* @__PURE__ */
|
|
336
|
-
labelText && /* @__PURE__ */
|
|
368
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: (0, import_clsx3.default)("flex flex-col gap-y-1", containerClassName), children: [
|
|
369
|
+
labelText && /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("label", { htmlFor: id, className: (0, import_clsx3.default)("textstyle-label-md", labelClassName), children: [
|
|
337
370
|
labelText,
|
|
338
|
-
required && /* @__PURE__ */
|
|
371
|
+
required && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "text-primary font-bold", children: "*" })
|
|
339
372
|
] }),
|
|
340
373
|
input,
|
|
341
|
-
errorText && /* @__PURE__ */
|
|
374
|
+
errorText && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("label", { htmlFor: id, className: (0, import_clsx3.default)("text-negative", errorClassName), children: errorText })
|
|
342
375
|
] });
|
|
343
376
|
});
|
|
344
377
|
|
|
345
378
|
// src/components/user-action/Checkbox.tsx
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
379
|
+
var import_react8 = require("react");
|
|
380
|
+
var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"));
|
|
381
|
+
var import_lucide_react = require("lucide-react");
|
|
382
|
+
var import_clsx4 = __toESM(require("clsx"));
|
|
383
|
+
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
351
384
|
var checkboxSizeMapping = {
|
|
352
385
|
small: "size-4",
|
|
353
386
|
medium: "size-6",
|
|
@@ -383,31 +416,31 @@ var Checkbox = ({
|
|
|
383
416
|
const newValue = checked === "indeterminate" ? false : !checked;
|
|
384
417
|
propagateChange(newValue);
|
|
385
418
|
};
|
|
386
|
-
return /* @__PURE__ */
|
|
387
|
-
/* @__PURE__ */
|
|
419
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: (0, import_clsx4.default)("row justify-center items-center", containerClassName), children: [
|
|
420
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
388
421
|
CheckboxPrimitive.Root,
|
|
389
422
|
{
|
|
390
423
|
onCheckedChange: propagateChange,
|
|
391
424
|
checked,
|
|
392
425
|
disabled,
|
|
393
426
|
id,
|
|
394
|
-
className:
|
|
395
|
-
"text-disabled-text border-disabled-text": disabled,
|
|
396
|
-
"
|
|
427
|
+
className: (0, import_clsx4.default)(usedSizeClass, `items-center border-2 rounded outline-none focus:border-primary`, {
|
|
428
|
+
"text-disabled-text border-disabled-text bg-disabled-background": disabled,
|
|
429
|
+
"bg-surface": !disabled && !checked,
|
|
397
430
|
"bg-primary/30 border-primary text-primary": checked === true || checked === "indeterminate",
|
|
398
|
-
"hover:border-
|
|
431
|
+
"hover:border-primary focus:hover:border-primary": !checked
|
|
399
432
|
}, className),
|
|
400
|
-
children: /* @__PURE__ */
|
|
401
|
-
checked === true && /* @__PURE__ */
|
|
402
|
-
checked === "indeterminate" && /* @__PURE__ */
|
|
433
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(CheckboxPrimitive.Indicator, { children: [
|
|
434
|
+
checked === true && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_lucide_react.Check, { className: innerIconSize }),
|
|
435
|
+
checked === "indeterminate" && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_lucide_react.Minus, { className: innerIconSize })
|
|
403
436
|
] })
|
|
404
437
|
}
|
|
405
438
|
),
|
|
406
|
-
label && /* @__PURE__ */
|
|
439
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
407
440
|
Label,
|
|
408
441
|
{
|
|
409
442
|
...label,
|
|
410
|
-
className:
|
|
443
|
+
className: (0, import_clsx4.default)("cursor-pointer", label.className),
|
|
411
444
|
htmlFor: id,
|
|
412
445
|
onClick: changeValue
|
|
413
446
|
}
|
|
@@ -416,7 +449,7 @@ var Checkbox = ({
|
|
|
416
449
|
};
|
|
417
450
|
|
|
418
451
|
// src/components/user-action/MultiSelect.tsx
|
|
419
|
-
|
|
452
|
+
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
420
453
|
var defaultMultiSelectTranslation = {
|
|
421
454
|
en: {
|
|
422
455
|
select: "Select",
|
|
@@ -443,7 +476,7 @@ var MultiSelect = ({
|
|
|
443
476
|
triggerClassName = ""
|
|
444
477
|
}) => {
|
|
445
478
|
const translation = useTranslation(defaultMultiSelectTranslation, overwriteTranslation);
|
|
446
|
-
const [searchText, setSearchText] =
|
|
479
|
+
const [searchText, setSearchText] = (0, import_react9.useState)(search?.initialSearch ?? "");
|
|
447
480
|
let filteredOptions = options;
|
|
448
481
|
const enableSearch = !!search;
|
|
449
482
|
if (enableSearch && !!searchText) {
|
|
@@ -457,32 +490,32 @@ var MultiSelect = ({
|
|
|
457
490
|
filteredOptions = filteredOptions.filter((value) => !value.disabled);
|
|
458
491
|
}
|
|
459
492
|
const selectedItems = options.filter((value) => value.selected);
|
|
460
|
-
const menuButtonText = selectedItems.length === 0 ? hintText ?? translation.select : /* @__PURE__ */
|
|
493
|
+
const menuButtonText = selectedItems.length === 0 ? hintText ?? translation.select : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { children: `${selectedItems.length} ${translation.selected}` });
|
|
461
494
|
const borderColor = "border-menu-border";
|
|
462
|
-
return /* @__PURE__ */
|
|
463
|
-
label && /* @__PURE__ */
|
|
495
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: (0, import_clsx5.default)(className), children: [
|
|
496
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
464
497
|
Label,
|
|
465
498
|
{
|
|
466
499
|
...label,
|
|
467
500
|
htmlFor: label.name,
|
|
468
|
-
className:
|
|
501
|
+
className: (0, import_clsx5.default)(" mb-1", label.className),
|
|
469
502
|
labelType: label.labelType ?? "labelBig"
|
|
470
503
|
}
|
|
471
504
|
),
|
|
472
|
-
/* @__PURE__ */
|
|
505
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
473
506
|
Menu,
|
|
474
507
|
{
|
|
475
508
|
alignment: "t_",
|
|
476
|
-
trigger: (onClick, ref) => /* @__PURE__ */
|
|
509
|
+
trigger: (onClick, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
477
510
|
"div",
|
|
478
511
|
{
|
|
479
512
|
ref,
|
|
480
513
|
onClick: disabled ? void 0 : onClick,
|
|
481
|
-
className:
|
|
514
|
+
className: (0, import_clsx5.default)(
|
|
482
515
|
borderColor,
|
|
483
516
|
"bg-menu-background text-menu-text inline-w-full justify-between items-center rounded-lg border-2 px-4 py-2 font-medium",
|
|
484
517
|
{
|
|
485
|
-
"hover:
|
|
518
|
+
"hover:border-primary cursor-pointer": !disabled,
|
|
486
519
|
"bg-disabled-background text-disabled cursor-not-allowed": disabled
|
|
487
520
|
},
|
|
488
521
|
triggerClassName
|
|
@@ -490,27 +523,27 @@ var MultiSelect = ({
|
|
|
490
523
|
children: selectedDisplay ? selectedDisplay({ items: options, disabled }) : menuButtonText
|
|
491
524
|
}
|
|
492
525
|
),
|
|
493
|
-
menuClassName:
|
|
526
|
+
menuClassName: (0, import_clsx5.default)(
|
|
494
527
|
"!rounded-lg !shadow-lg !max-h-[500px] !min-w-[400px] !max-w-[70vh] !overflow-y-auto !border !border-2",
|
|
495
528
|
borderColor,
|
|
496
529
|
{ "!py-0": !enableSearch, "!pb-0": enableSearch }
|
|
497
530
|
),
|
|
498
531
|
children: [
|
|
499
|
-
enableSearch && /* @__PURE__ */
|
|
500
|
-
/* @__PURE__ */
|
|
501
|
-
/* @__PURE__ */
|
|
532
|
+
enableSearch && /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "row gap-x-2 items-center px-2 py-2", children: [
|
|
533
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Input, { autoFocus: true, className: "w-full", value: searchText, onChangeText: setSearchText }),
|
|
534
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_lucide_react2.Search, {})
|
|
502
535
|
] }, "selectSearch"),
|
|
503
|
-
filteredOptions.map((option, index) => /* @__PURE__ */
|
|
536
|
+
filteredOptions.map((option, index) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
504
537
|
MenuItem,
|
|
505
538
|
{
|
|
506
|
-
className:
|
|
539
|
+
className: (0, import_clsx5.default)({
|
|
507
540
|
"cursor-not-allowed !bg-disabled-background !text-disabled-text hover:brightness-100": !!option.disabled,
|
|
508
541
|
"cursor-pointer": !option.disabled
|
|
509
542
|
}),
|
|
510
|
-
children: /* @__PURE__ */
|
|
543
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
511
544
|
"div",
|
|
512
545
|
{
|
|
513
|
-
className:
|
|
546
|
+
className: (0, import_clsx5.default)("overflow-hidden whitespace-nowrap text-ellipsis row items-center gap-x-2", option.className),
|
|
514
547
|
onClick: () => {
|
|
515
548
|
if (!option.disabled) {
|
|
516
549
|
onChange(options.map((value) => value.value === option.value ? {
|
|
@@ -520,7 +553,7 @@ var MultiSelect = ({
|
|
|
520
553
|
}
|
|
521
554
|
},
|
|
522
555
|
children: [
|
|
523
|
-
/* @__PURE__ */
|
|
556
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Checkbox, { checked: option.selected, disabled: option.disabled, size: "small" }),
|
|
524
557
|
option.label
|
|
525
558
|
]
|
|
526
559
|
}
|
|
@@ -535,8 +568,8 @@ var MultiSelect = ({
|
|
|
535
568
|
};
|
|
536
569
|
|
|
537
570
|
// src/components/layout-and-navigation/Chip.tsx
|
|
538
|
-
|
|
539
|
-
|
|
571
|
+
var import_clsx6 = __toESM(require("clsx"));
|
|
572
|
+
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
540
573
|
var Chip = ({
|
|
541
574
|
children,
|
|
542
575
|
trailingIcon,
|
|
@@ -563,11 +596,11 @@ var Chip = ({
|
|
|
563
596
|
blue: "text-tag-blue-icon",
|
|
564
597
|
pink: "text-tag-pink-icon"
|
|
565
598
|
}[color];
|
|
566
|
-
return /* @__PURE__ */
|
|
599
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
|
|
567
600
|
"div",
|
|
568
601
|
{
|
|
569
602
|
...restProps,
|
|
570
|
-
className:
|
|
603
|
+
className: (0, import_clsx6.default)(
|
|
571
604
|
`row w-fit px-2 py-1`,
|
|
572
605
|
colorMapping,
|
|
573
606
|
{
|
|
@@ -578,7 +611,7 @@ var Chip = ({
|
|
|
578
611
|
),
|
|
579
612
|
children: [
|
|
580
613
|
children,
|
|
581
|
-
trailingIcon && /* @__PURE__ */
|
|
614
|
+
trailingIcon && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: colorMappingIcon, children: trailingIcon })
|
|
582
615
|
]
|
|
583
616
|
}
|
|
584
617
|
);
|
|
@@ -587,7 +620,7 @@ var ChipList = ({
|
|
|
587
620
|
list,
|
|
588
621
|
className = ""
|
|
589
622
|
}) => {
|
|
590
|
-
return /* @__PURE__ */
|
|
623
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: (0, import_clsx6.default)("flex flex-wrap gap-x-4 gap-y-2", className), children: list.map((value, index) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
591
624
|
Chip,
|
|
592
625
|
{
|
|
593
626
|
...value,
|
|
@@ -600,12 +633,12 @@ var ChipList = ({
|
|
|
600
633
|
};
|
|
601
634
|
|
|
602
635
|
// src/components/properties/PropertyBase.tsx
|
|
603
|
-
|
|
604
|
-
|
|
636
|
+
var import_lucide_react3 = require("lucide-react");
|
|
637
|
+
var import_clsx8 = __toESM(require("clsx"));
|
|
605
638
|
|
|
606
639
|
// src/components/user-action/Button.tsx
|
|
607
|
-
|
|
608
|
-
|
|
640
|
+
var import_clsx7 = __toESM(require("clsx"));
|
|
641
|
+
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
609
642
|
var paddingMapping = {
|
|
610
643
|
small: "btn-sm",
|
|
611
644
|
medium: "btn-md",
|
|
@@ -641,25 +674,25 @@ var TextButton = ({
|
|
|
641
674
|
negative: "text-button-text-negative-icon",
|
|
642
675
|
neutral: "text-button-text-neutral-icon"
|
|
643
676
|
}[color];
|
|
644
|
-
return /* @__PURE__ */
|
|
677
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
645
678
|
"button",
|
|
646
679
|
{
|
|
647
680
|
onClick: disabled ? void 0 : onClick,
|
|
648
681
|
disabled: disabled || onClick === void 0,
|
|
649
|
-
className:
|
|
682
|
+
className: (0, import_clsx7.default)(
|
|
650
683
|
{
|
|
651
684
|
"text-disabled-text cursor-not-allowed": disabled,
|
|
652
|
-
[
|
|
685
|
+
[(0, import_clsx7.default)(colorClasses, "hover:bg-button-text-hover-background rounded-full")]: !disabled
|
|
653
686
|
},
|
|
654
687
|
ButtonUtil.paddingMapping[size],
|
|
655
688
|
className
|
|
656
689
|
),
|
|
657
690
|
...restProps,
|
|
658
691
|
children: [
|
|
659
|
-
startIcon && /* @__PURE__ */
|
|
692
|
+
startIcon && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
660
693
|
"span",
|
|
661
694
|
{
|
|
662
|
-
className:
|
|
695
|
+
className: (0, import_clsx7.default)({
|
|
663
696
|
[iconColorClasses]: !disabled,
|
|
664
697
|
[`text-disabled-icon`]: disabled
|
|
665
698
|
}),
|
|
@@ -667,10 +700,10 @@ var TextButton = ({
|
|
|
667
700
|
}
|
|
668
701
|
),
|
|
669
702
|
children,
|
|
670
|
-
endIcon && /* @__PURE__ */
|
|
703
|
+
endIcon && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
671
704
|
"span",
|
|
672
705
|
{
|
|
673
|
-
className:
|
|
706
|
+
className: (0, import_clsx7.default)({
|
|
674
707
|
[iconColorClasses]: !disabled,
|
|
675
708
|
[`text-disabled-icon`]: disabled
|
|
676
709
|
}),
|
|
@@ -683,7 +716,7 @@ var TextButton = ({
|
|
|
683
716
|
};
|
|
684
717
|
|
|
685
718
|
// src/components/properties/PropertyBase.tsx
|
|
686
|
-
|
|
719
|
+
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
687
720
|
var defaultPropertyBaseTranslation = {
|
|
688
721
|
en: {
|
|
689
722
|
remove: "Remove"
|
|
@@ -705,12 +738,12 @@ var PropertyBase = ({
|
|
|
705
738
|
}) => {
|
|
706
739
|
const translation = useTranslation(defaultPropertyBaseTranslation, overwriteTranslation);
|
|
707
740
|
const requiredAndNoValue = softRequired && !hasValue;
|
|
708
|
-
return /* @__PURE__ */
|
|
709
|
-
/* @__PURE__ */
|
|
741
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: (0, import_clsx8.default)("row gap-x-0 group", className), children: [
|
|
742
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
|
|
710
743
|
"div",
|
|
711
744
|
{
|
|
712
|
-
className:
|
|
713
|
-
"bg-
|
|
745
|
+
className: (0, import_clsx8.default)("row gap-x-2 !w-[200px] px-4 py-2 items-center rounded-l-xl border-2 border-r-0", {
|
|
746
|
+
"bg-property-title-background property-title-text group-hover:border-primary": !requiredAndNoValue,
|
|
714
747
|
"bg-warning text-surface-warning group-hover:border-warning border-warning/90": requiredAndNoValue
|
|
715
748
|
}, className),
|
|
716
749
|
children: [
|
|
@@ -719,22 +752,22 @@ var PropertyBase = ({
|
|
|
719
752
|
]
|
|
720
753
|
}
|
|
721
754
|
),
|
|
722
|
-
/* @__PURE__ */
|
|
755
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
|
|
723
756
|
"div",
|
|
724
757
|
{
|
|
725
|
-
className:
|
|
726
|
-
"bg-
|
|
758
|
+
className: (0, import_clsx8.default)("row grow justify-between items-center rounded-r-xl border-2 border-l-0", {
|
|
759
|
+
"bg-surface group-hover:border-primary": !requiredAndNoValue,
|
|
727
760
|
"bg-surface-warning group-hover:border-warning border-warning/90": requiredAndNoValue
|
|
728
761
|
}, className),
|
|
729
762
|
children: [
|
|
730
763
|
input({ softRequired, hasValue }),
|
|
731
|
-
requiredAndNoValue && /* @__PURE__ */
|
|
732
|
-
onRemove && /* @__PURE__ */
|
|
764
|
+
requiredAndNoValue && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "text-warning pr-4", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_lucide_react3.AlertTriangle, { size: 24 }) }),
|
|
765
|
+
onRemove && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
733
766
|
TextButton,
|
|
734
767
|
{
|
|
735
768
|
onClick: onRemove,
|
|
736
769
|
color: "negative",
|
|
737
|
-
className:
|
|
770
|
+
className: (0, import_clsx8.default)("pr-4 items-center", { "!text-transparent": !hasValue || readOnly }),
|
|
738
771
|
disabled: !hasValue || readOnly,
|
|
739
772
|
children: translation.remove
|
|
740
773
|
}
|
|
@@ -746,7 +779,7 @@ var PropertyBase = ({
|
|
|
746
779
|
};
|
|
747
780
|
|
|
748
781
|
// src/components/properties/MultiSelectProperty.tsx
|
|
749
|
-
|
|
782
|
+
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
750
783
|
var defaultMultiSelectPropertyTranslation = {
|
|
751
784
|
en: {
|
|
752
785
|
select: "Select"
|
|
@@ -770,7 +803,7 @@ var MultiSelectProperty = ({
|
|
|
770
803
|
if (softRequired && !hasValue) {
|
|
771
804
|
triggerClassName = "border-warning hover:brightness-90";
|
|
772
805
|
}
|
|
773
|
-
return /* @__PURE__ */
|
|
806
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
774
807
|
PropertyBase,
|
|
775
808
|
{
|
|
776
809
|
name,
|
|
@@ -778,23 +811,23 @@ var MultiSelectProperty = ({
|
|
|
778
811
|
readOnly,
|
|
779
812
|
softRequired,
|
|
780
813
|
hasValue,
|
|
781
|
-
icon: /* @__PURE__ */
|
|
782
|
-
input: ({ softRequired: softRequired2 }) => /* @__PURE__ */
|
|
814
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_lucide_react4.List, { size: 16 }),
|
|
815
|
+
input: ({ softRequired: softRequired2 }) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
783
816
|
"div",
|
|
784
817
|
{
|
|
785
|
-
className:
|
|
786
|
-
children: /* @__PURE__ */
|
|
818
|
+
className: (0, import_clsx9.default)("row grow py-2 px-4 cursor-pointer", { "text-warning": softRequired2 && !hasValue }),
|
|
819
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
787
820
|
MultiSelect,
|
|
788
821
|
{
|
|
789
822
|
...multiSelectProps,
|
|
790
|
-
className:
|
|
823
|
+
className: (0, import_clsx9.default)("w-full", { "bg-surface-warning": softRequired2 && !hasValue }),
|
|
791
824
|
triggerClassName,
|
|
792
825
|
selectedDisplay: ({ items }) => {
|
|
793
826
|
const selected = items.filter((value) => value.selected);
|
|
794
827
|
if (selected.length === 0) {
|
|
795
|
-
return /* @__PURE__ */
|
|
828
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { children: "Select" });
|
|
796
829
|
}
|
|
797
|
-
return /* @__PURE__ */
|
|
830
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(ChipList, { list: selected.map((value) => ({ children: value.label })) });
|
|
798
831
|
},
|
|
799
832
|
options,
|
|
800
833
|
disabled: readOnly,
|
|
@@ -806,7 +839,8 @@ var MultiSelectProperty = ({
|
|
|
806
839
|
}
|
|
807
840
|
);
|
|
808
841
|
};
|
|
809
|
-
export
|
|
842
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
843
|
+
0 && (module.exports = {
|
|
810
844
|
MultiSelectProperty
|
|
811
|
-
};
|
|
845
|
+
});
|
|
812
846
|
//# sourceMappingURL=MultiSelectProperty.js.map
|