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