@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/user-action/MultiSelect.tsx
|
|
2
|
-
|
|
3
|
-
|
|
30
|
+
var MultiSelect_exports = {};
|
|
31
|
+
__export(MultiSelect_exports, {
|
|
32
|
+
MultiSelect: () => MultiSelect
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(MultiSelect_exports);
|
|
35
|
+
var import_react9 = require("react");
|
|
36
|
+
var import_lucide_react2 = require("lucide-react");
|
|
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 = {}) => {
|
|
@@ -50,16 +83,16 @@ var MultiSearchWithMapping = (search, objects, mapping) => {
|
|
|
50
83
|
};
|
|
51
84
|
|
|
52
85
|
// src/components/user-action/MultiSelect.tsx
|
|
53
|
-
|
|
86
|
+
var import_clsx5 = __toESM(require("clsx"));
|
|
54
87
|
|
|
55
88
|
// src/components/user-action/Menu.tsx
|
|
56
|
-
|
|
57
|
-
|
|
89
|
+
var import_react5 = require("react");
|
|
90
|
+
var import_clsx = __toESM(require("clsx"));
|
|
58
91
|
|
|
59
92
|
// src/hooks/useOutsideClick.ts
|
|
60
|
-
|
|
93
|
+
var import_react3 = require("react");
|
|
61
94
|
var useOutsideClick = (refs, handler) => {
|
|
62
|
-
|
|
95
|
+
(0, import_react3.useEffect)(() => {
|
|
63
96
|
const listener = (event) => {
|
|
64
97
|
if (event.target === null) return;
|
|
65
98
|
if (refs.some((ref) => !ref.current || ref.current.contains(event.target))) {
|
|
@@ -77,15 +110,15 @@ var useOutsideClick = (refs, handler) => {
|
|
|
77
110
|
};
|
|
78
111
|
|
|
79
112
|
// src/hooks/useHoverState.ts
|
|
80
|
-
|
|
113
|
+
var import_react4 = require("react");
|
|
81
114
|
var defaultUseHoverStateProps = {
|
|
82
115
|
closingDelay: 200,
|
|
83
116
|
isDisabled: false
|
|
84
117
|
};
|
|
85
118
|
var useHoverState = (props = void 0) => {
|
|
86
119
|
const { closingDelay, isDisabled } = { ...defaultUseHoverStateProps, ...props };
|
|
87
|
-
const [isHovered, setIsHovered] =
|
|
88
|
-
const [timer, setTimer] =
|
|
120
|
+
const [isHovered, setIsHovered] = (0, import_react4.useState)(false);
|
|
121
|
+
const [timer, setTimer] = (0, import_react4.useState)();
|
|
89
122
|
const onMouseEnter = () => {
|
|
90
123
|
if (isDisabled) {
|
|
91
124
|
return;
|
|
@@ -101,14 +134,14 @@ var useHoverState = (props = void 0) => {
|
|
|
101
134
|
setIsHovered(false);
|
|
102
135
|
}, closingDelay));
|
|
103
136
|
};
|
|
104
|
-
|
|
137
|
+
(0, import_react4.useEffect)(() => {
|
|
105
138
|
if (timer) {
|
|
106
139
|
return () => {
|
|
107
140
|
clearTimeout(timer);
|
|
108
141
|
};
|
|
109
142
|
}
|
|
110
143
|
});
|
|
111
|
-
|
|
144
|
+
(0, import_react4.useEffect)(() => {
|
|
112
145
|
if (timer) {
|
|
113
146
|
clearTimeout(timer);
|
|
114
147
|
}
|
|
@@ -121,16 +154,16 @@ var useHoverState = (props = void 0) => {
|
|
|
121
154
|
};
|
|
122
155
|
|
|
123
156
|
// src/components/user-action/Menu.tsx
|
|
124
|
-
|
|
157
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
125
158
|
var MenuItem = ({
|
|
126
159
|
children,
|
|
127
160
|
onClick,
|
|
128
161
|
alignment = "left",
|
|
129
162
|
className
|
|
130
|
-
}) => /* @__PURE__ */
|
|
163
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
131
164
|
"div",
|
|
132
165
|
{
|
|
133
|
-
className:
|
|
166
|
+
className: (0, import_clsx.default)("block px-3 py-1 bg-menu-background text-menu-text hover:brightness-90", {
|
|
134
167
|
"text-right": alignment === "right",
|
|
135
168
|
"text-left": alignment === "left"
|
|
136
169
|
}, className),
|
|
@@ -146,22 +179,22 @@ var Menu = ({
|
|
|
146
179
|
menuClassName = ""
|
|
147
180
|
}) => {
|
|
148
181
|
const { isHovered: isOpen, setIsHovered: setIsOpen, handlers } = useHoverState({ isDisabled: !showOnHover });
|
|
149
|
-
const triggerRef = useRef(null);
|
|
150
|
-
const menuRef = useRef(null);
|
|
182
|
+
const triggerRef = (0, import_react5.useRef)(null);
|
|
183
|
+
const menuRef = (0, import_react5.useRef)(null);
|
|
151
184
|
useOutsideClick([triggerRef, menuRef], () => setIsOpen(false));
|
|
152
|
-
return /* @__PURE__ */ jsxs(
|
|
185
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
|
153
186
|
"div",
|
|
154
187
|
{
|
|
155
188
|
className: "relative",
|
|
156
189
|
...handlers,
|
|
157
190
|
children: [
|
|
158
191
|
trigger(() => setIsOpen(!isOpen), triggerRef),
|
|
159
|
-
isOpen ? /* @__PURE__ */
|
|
192
|
+
isOpen ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
160
193
|
"div",
|
|
161
194
|
{
|
|
162
195
|
ref: menuRef,
|
|
163
196
|
onClick: (e) => e.stopPropagation(),
|
|
164
|
-
className:
|
|
197
|
+
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]", {
|
|
165
198
|
" top-[8px]": alignment[0] === "t",
|
|
166
199
|
" bottom-[8px]": alignment[0] === "b",
|
|
167
200
|
" left-[-8px]": alignment[1] === "l",
|
|
@@ -176,14 +209,14 @@ var Menu = ({
|
|
|
176
209
|
};
|
|
177
210
|
|
|
178
211
|
// src/components/user-action/Input.tsx
|
|
179
|
-
|
|
180
|
-
|
|
212
|
+
var import_react7 = require("react");
|
|
213
|
+
var import_clsx3 = __toESM(require("clsx"));
|
|
181
214
|
|
|
182
215
|
// src/hooks/useSaveDelay.ts
|
|
183
|
-
|
|
216
|
+
var import_react6 = require("react");
|
|
184
217
|
function useSaveDelay(setNotificationStatus, delay) {
|
|
185
|
-
const [updateTimer, setUpdateTimer] =
|
|
186
|
-
const [notificationTimer, setNotificationTimer] =
|
|
218
|
+
const [updateTimer, setUpdateTimer] = (0, import_react6.useState)(void 0);
|
|
219
|
+
const [notificationTimer, setNotificationTimer] = (0, import_react6.useState)(void 0);
|
|
187
220
|
const restartTimer = (onSave) => {
|
|
188
221
|
clearTimeout(updateTimer);
|
|
189
222
|
setUpdateTimer(setTimeout(() => {
|
|
@@ -210,7 +243,7 @@ function useSaveDelay(setNotificationStatus, delay) {
|
|
|
210
243
|
setNotificationStatus(false);
|
|
211
244
|
}
|
|
212
245
|
};
|
|
213
|
-
|
|
246
|
+
(0, import_react6.useEffect)(() => {
|
|
214
247
|
return () => {
|
|
215
248
|
clearTimeout(updateTimer);
|
|
216
249
|
clearTimeout(notificationTimer);
|
|
@@ -223,8 +256,8 @@ function useSaveDelay(setNotificationStatus, delay) {
|
|
|
223
256
|
var noop = () => void 0;
|
|
224
257
|
|
|
225
258
|
// src/components/user-action/Label.tsx
|
|
226
|
-
|
|
227
|
-
|
|
259
|
+
var import_clsx2 = __toESM(require("clsx"));
|
|
260
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
228
261
|
var styleMapping = {
|
|
229
262
|
labelSmall: "textstyle-label-sm",
|
|
230
263
|
labelMedium: "textstyle-label-md",
|
|
@@ -237,11 +270,11 @@ var Label = ({
|
|
|
237
270
|
className,
|
|
238
271
|
...props
|
|
239
272
|
}) => {
|
|
240
|
-
return /* @__PURE__ */
|
|
273
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("label", { ...props, className: (0, import_clsx2.default)(styleMapping[labelType], className), children: children ? children : name });
|
|
241
274
|
};
|
|
242
275
|
|
|
243
276
|
// src/components/user-action/Input.tsx
|
|
244
|
-
|
|
277
|
+
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
245
278
|
var Input = ({
|
|
246
279
|
id,
|
|
247
280
|
type = "text",
|
|
@@ -261,15 +294,15 @@ var Input = ({
|
|
|
261
294
|
restartTimer,
|
|
262
295
|
clearUpdateTimer
|
|
263
296
|
} = useSaveDelay(() => void 0, 3e3);
|
|
264
|
-
const ref =
|
|
265
|
-
|
|
297
|
+
const ref = (0, import_react7.useRef)(null);
|
|
298
|
+
(0, import_react7.useEffect)(() => {
|
|
266
299
|
if (autoFocus) {
|
|
267
300
|
ref.current?.focus();
|
|
268
301
|
}
|
|
269
302
|
}, [autoFocus]);
|
|
270
|
-
return /* @__PURE__ */
|
|
271
|
-
label && /* @__PURE__ */
|
|
272
|
-
/* @__PURE__ */
|
|
303
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: (0, import_clsx3.default)({ "w-full": expanded }, containerClassName), children: [
|
|
304
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Label, { ...label, htmlFor: id, className: (0, import_clsx3.default)("mb-1", label.className) }),
|
|
305
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
273
306
|
"input",
|
|
274
307
|
{
|
|
275
308
|
ref,
|
|
@@ -302,7 +335,7 @@ var Input = ({
|
|
|
302
335
|
)
|
|
303
336
|
] });
|
|
304
337
|
};
|
|
305
|
-
var FormInput = forwardRef(function FormInput2({
|
|
338
|
+
var FormInput = (0, import_react7.forwardRef)(function FormInput2({
|
|
306
339
|
id,
|
|
307
340
|
labelText,
|
|
308
341
|
errorText,
|
|
@@ -313,13 +346,13 @@ var FormInput = forwardRef(function FormInput2({
|
|
|
313
346
|
required,
|
|
314
347
|
...restProps
|
|
315
348
|
}, ref) {
|
|
316
|
-
const input = /* @__PURE__ */
|
|
349
|
+
const input = /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
317
350
|
"input",
|
|
318
351
|
{
|
|
319
352
|
ref,
|
|
320
353
|
id,
|
|
321
354
|
...restProps,
|
|
322
|
-
className:
|
|
355
|
+
className: (0, import_clsx3.default)(
|
|
323
356
|
{
|
|
324
357
|
"focus:border-primary focus:ring-primary": !errorText,
|
|
325
358
|
"focus:border-negative focus:ring-negative text-negative": !!errorText
|
|
@@ -328,22 +361,22 @@ var FormInput = forwardRef(function FormInput2({
|
|
|
328
361
|
)
|
|
329
362
|
}
|
|
330
363
|
);
|
|
331
|
-
return /* @__PURE__ */
|
|
332
|
-
labelText && /* @__PURE__ */
|
|
364
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: (0, import_clsx3.default)("flex flex-col gap-y-1", containerClassName), children: [
|
|
365
|
+
labelText && /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("label", { htmlFor: id, className: (0, import_clsx3.default)("textstyle-label-md", labelClassName), children: [
|
|
333
366
|
labelText,
|
|
334
|
-
required && /* @__PURE__ */
|
|
367
|
+
required && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "text-primary font-bold", children: "*" })
|
|
335
368
|
] }),
|
|
336
369
|
input,
|
|
337
|
-
errorText && /* @__PURE__ */
|
|
370
|
+
errorText && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("label", { htmlFor: id, className: (0, import_clsx3.default)("text-negative", errorClassName), children: errorText })
|
|
338
371
|
] });
|
|
339
372
|
});
|
|
340
373
|
|
|
341
374
|
// src/components/user-action/Checkbox.tsx
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
375
|
+
var import_react8 = require("react");
|
|
376
|
+
var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"));
|
|
377
|
+
var import_lucide_react = require("lucide-react");
|
|
378
|
+
var import_clsx4 = __toESM(require("clsx"));
|
|
379
|
+
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
347
380
|
var checkboxSizeMapping = {
|
|
348
381
|
small: "size-4",
|
|
349
382
|
medium: "size-6",
|
|
@@ -379,31 +412,31 @@ var Checkbox = ({
|
|
|
379
412
|
const newValue = checked === "indeterminate" ? false : !checked;
|
|
380
413
|
propagateChange(newValue);
|
|
381
414
|
};
|
|
382
|
-
return /* @__PURE__ */
|
|
383
|
-
/* @__PURE__ */
|
|
415
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: (0, import_clsx4.default)("row justify-center items-center", containerClassName), children: [
|
|
416
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
384
417
|
CheckboxPrimitive.Root,
|
|
385
418
|
{
|
|
386
419
|
onCheckedChange: propagateChange,
|
|
387
420
|
checked,
|
|
388
421
|
disabled,
|
|
389
422
|
id,
|
|
390
|
-
className:
|
|
391
|
-
"text-disabled-text border-disabled-text": disabled,
|
|
392
|
-
"
|
|
423
|
+
className: (0, import_clsx4.default)(usedSizeClass, `items-center border-2 rounded outline-none focus:border-primary`, {
|
|
424
|
+
"text-disabled-text border-disabled-text bg-disabled-background": disabled,
|
|
425
|
+
"bg-surface": !disabled && !checked,
|
|
393
426
|
"bg-primary/30 border-primary text-primary": checked === true || checked === "indeterminate",
|
|
394
|
-
"hover:border-
|
|
427
|
+
"hover:border-primary focus:hover:border-primary": !checked
|
|
395
428
|
}, className),
|
|
396
|
-
children: /* @__PURE__ */
|
|
397
|
-
checked === true && /* @__PURE__ */
|
|
398
|
-
checked === "indeterminate" && /* @__PURE__ */
|
|
429
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(CheckboxPrimitive.Indicator, { children: [
|
|
430
|
+
checked === true && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_lucide_react.Check, { className: innerIconSize }),
|
|
431
|
+
checked === "indeterminate" && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_lucide_react.Minus, { className: innerIconSize })
|
|
399
432
|
] })
|
|
400
433
|
}
|
|
401
434
|
),
|
|
402
|
-
label && /* @__PURE__ */
|
|
435
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
403
436
|
Label,
|
|
404
437
|
{
|
|
405
438
|
...label,
|
|
406
|
-
className:
|
|
439
|
+
className: (0, import_clsx4.default)("cursor-pointer", label.className),
|
|
407
440
|
htmlFor: id,
|
|
408
441
|
onClick: changeValue
|
|
409
442
|
}
|
|
@@ -412,7 +445,7 @@ var Checkbox = ({
|
|
|
412
445
|
};
|
|
413
446
|
|
|
414
447
|
// src/components/user-action/MultiSelect.tsx
|
|
415
|
-
|
|
448
|
+
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
416
449
|
var defaultMultiSelectTranslation = {
|
|
417
450
|
en: {
|
|
418
451
|
select: "Select",
|
|
@@ -439,7 +472,7 @@ var MultiSelect = ({
|
|
|
439
472
|
triggerClassName = ""
|
|
440
473
|
}) => {
|
|
441
474
|
const translation = useTranslation(defaultMultiSelectTranslation, overwriteTranslation);
|
|
442
|
-
const [searchText, setSearchText] =
|
|
475
|
+
const [searchText, setSearchText] = (0, import_react9.useState)(search?.initialSearch ?? "");
|
|
443
476
|
let filteredOptions = options;
|
|
444
477
|
const enableSearch = !!search;
|
|
445
478
|
if (enableSearch && !!searchText) {
|
|
@@ -453,32 +486,32 @@ var MultiSelect = ({
|
|
|
453
486
|
filteredOptions = filteredOptions.filter((value) => !value.disabled);
|
|
454
487
|
}
|
|
455
488
|
const selectedItems = options.filter((value) => value.selected);
|
|
456
|
-
const menuButtonText = selectedItems.length === 0 ? hintText ?? translation.select : /* @__PURE__ */
|
|
489
|
+
const menuButtonText = selectedItems.length === 0 ? hintText ?? translation.select : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { children: `${selectedItems.length} ${translation.selected}` });
|
|
457
490
|
const borderColor = "border-menu-border";
|
|
458
|
-
return /* @__PURE__ */
|
|
459
|
-
label && /* @__PURE__ */
|
|
491
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: (0, import_clsx5.default)(className), children: [
|
|
492
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
460
493
|
Label,
|
|
461
494
|
{
|
|
462
495
|
...label,
|
|
463
496
|
htmlFor: label.name,
|
|
464
|
-
className:
|
|
497
|
+
className: (0, import_clsx5.default)(" mb-1", label.className),
|
|
465
498
|
labelType: label.labelType ?? "labelBig"
|
|
466
499
|
}
|
|
467
500
|
),
|
|
468
|
-
/* @__PURE__ */
|
|
501
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
469
502
|
Menu,
|
|
470
503
|
{
|
|
471
504
|
alignment: "t_",
|
|
472
|
-
trigger: (onClick, ref) => /* @__PURE__ */
|
|
505
|
+
trigger: (onClick, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
473
506
|
"div",
|
|
474
507
|
{
|
|
475
508
|
ref,
|
|
476
509
|
onClick: disabled ? void 0 : onClick,
|
|
477
|
-
className:
|
|
510
|
+
className: (0, import_clsx5.default)(
|
|
478
511
|
borderColor,
|
|
479
512
|
"bg-menu-background text-menu-text inline-w-full justify-between items-center rounded-lg border-2 px-4 py-2 font-medium",
|
|
480
513
|
{
|
|
481
|
-
"hover:
|
|
514
|
+
"hover:border-primary cursor-pointer": !disabled,
|
|
482
515
|
"bg-disabled-background text-disabled cursor-not-allowed": disabled
|
|
483
516
|
},
|
|
484
517
|
triggerClassName
|
|
@@ -486,27 +519,27 @@ var MultiSelect = ({
|
|
|
486
519
|
children: selectedDisplay ? selectedDisplay({ items: options, disabled }) : menuButtonText
|
|
487
520
|
}
|
|
488
521
|
),
|
|
489
|
-
menuClassName:
|
|
522
|
+
menuClassName: (0, import_clsx5.default)(
|
|
490
523
|
"!rounded-lg !shadow-lg !max-h-[500px] !min-w-[400px] !max-w-[70vh] !overflow-y-auto !border !border-2",
|
|
491
524
|
borderColor,
|
|
492
525
|
{ "!py-0": !enableSearch, "!pb-0": enableSearch }
|
|
493
526
|
),
|
|
494
527
|
children: [
|
|
495
|
-
enableSearch && /* @__PURE__ */
|
|
496
|
-
/* @__PURE__ */
|
|
497
|
-
/* @__PURE__ */
|
|
528
|
+
enableSearch && /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "row gap-x-2 items-center px-2 py-2", children: [
|
|
529
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Input, { autoFocus: true, className: "w-full", value: searchText, onChangeText: setSearchText }),
|
|
530
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_lucide_react2.Search, {})
|
|
498
531
|
] }, "selectSearch"),
|
|
499
|
-
filteredOptions.map((option, index) => /* @__PURE__ */
|
|
532
|
+
filteredOptions.map((option, index) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
500
533
|
MenuItem,
|
|
501
534
|
{
|
|
502
|
-
className:
|
|
535
|
+
className: (0, import_clsx5.default)({
|
|
503
536
|
"cursor-not-allowed !bg-disabled-background !text-disabled-text hover:brightness-100": !!option.disabled,
|
|
504
537
|
"cursor-pointer": !option.disabled
|
|
505
538
|
}),
|
|
506
|
-
children: /* @__PURE__ */
|
|
539
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
507
540
|
"div",
|
|
508
541
|
{
|
|
509
|
-
className:
|
|
542
|
+
className: (0, import_clsx5.default)("overflow-hidden whitespace-nowrap text-ellipsis row items-center gap-x-2", option.className),
|
|
510
543
|
onClick: () => {
|
|
511
544
|
if (!option.disabled) {
|
|
512
545
|
onChange(options.map((value) => value.value === option.value ? {
|
|
@@ -516,7 +549,7 @@ var MultiSelect = ({
|
|
|
516
549
|
}
|
|
517
550
|
},
|
|
518
551
|
children: [
|
|
519
|
-
/* @__PURE__ */
|
|
552
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Checkbox, { checked: option.selected, disabled: option.disabled, size: "small" }),
|
|
520
553
|
option.label
|
|
521
554
|
]
|
|
522
555
|
}
|
|
@@ -529,7 +562,8 @@ var MultiSelect = ({
|
|
|
529
562
|
)
|
|
530
563
|
] });
|
|
531
564
|
};
|
|
532
|
-
export
|
|
565
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
566
|
+
0 && (module.exports = {
|
|
533
567
|
MultiSelect
|
|
534
|
-
};
|
|
568
|
+
});
|
|
535
569
|
//# sourceMappingURL=MultiSelect.js.map
|