@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,45 +1,11 @@
|
|
|
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/user-action/DateAndTimePicker.tsx
|
|
31
|
-
|
|
32
|
-
__export(DateAndTimePicker_exports, {
|
|
33
|
-
DateTimePicker: () => DateTimePicker
|
|
34
|
-
});
|
|
35
|
-
module.exports = __toCommonJS(DateAndTimePicker_exports);
|
|
36
|
-
var import_clsx7 = __toESM(require("clsx"), 1);
|
|
2
|
+
import clsx7 from "clsx";
|
|
37
3
|
|
|
38
4
|
// src/localization/LanguageProvider.tsx
|
|
39
|
-
|
|
5
|
+
import { createContext, useContext, useEffect as useEffect2, useState as useState2 } from "react";
|
|
40
6
|
|
|
41
7
|
// src/hooks/useLocalStorage.ts
|
|
42
|
-
|
|
8
|
+
import { useCallback, useEffect, useState } from "react";
|
|
43
9
|
|
|
44
10
|
// src/localization/util.ts
|
|
45
11
|
var languages = ["en", "de"];
|
|
@@ -55,12 +21,12 @@ var LanguageUtil = {
|
|
|
55
21
|
};
|
|
56
22
|
|
|
57
23
|
// src/localization/LanguageProvider.tsx
|
|
58
|
-
|
|
59
|
-
var LanguageContext =
|
|
24
|
+
import { jsx } from "react/jsx-runtime";
|
|
25
|
+
var LanguageContext = createContext({
|
|
60
26
|
language: LanguageUtil.DEFAULT_LANGUAGE,
|
|
61
27
|
setLanguage: (v) => v
|
|
62
28
|
});
|
|
63
|
-
var useLanguage = () =>
|
|
29
|
+
var useLanguage = () => useContext(LanguageContext);
|
|
64
30
|
var useLocale = (overWriteLanguage) => {
|
|
65
31
|
const { language } = useLanguage();
|
|
66
32
|
const mapping = {
|
|
@@ -204,8 +170,8 @@ var getWeeksForCalenderMonth = (date, weekStart, weeks = 6) => {
|
|
|
204
170
|
};
|
|
205
171
|
|
|
206
172
|
// src/components/user-action/Button.tsx
|
|
207
|
-
|
|
208
|
-
|
|
173
|
+
import clsx from "clsx";
|
|
174
|
+
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
209
175
|
var paddingMapping = {
|
|
210
176
|
small: "btn-sm",
|
|
211
177
|
medium: "btn-md",
|
|
@@ -249,25 +215,25 @@ var SolidButton = ({
|
|
|
249
215
|
negative: "text-button-solid-negative-icon",
|
|
250
216
|
neutral: "text-button-solid-neutral-icon"
|
|
251
217
|
}[color];
|
|
252
|
-
return /* @__PURE__ */
|
|
218
|
+
return /* @__PURE__ */ jsxs(
|
|
253
219
|
"button",
|
|
254
220
|
{
|
|
255
221
|
onClick: disabled ? void 0 : onClick,
|
|
256
222
|
disabled: disabled || onClick === void 0,
|
|
257
|
-
className: (
|
|
223
|
+
className: clsx(
|
|
258
224
|
{
|
|
259
225
|
"text-disabled-text bg-disabled-background cursor-not-allowed": disabled,
|
|
260
|
-
[(
|
|
226
|
+
[clsx(colorClasses, "hover:brightness-90")]: !disabled
|
|
261
227
|
},
|
|
262
228
|
ButtonUtil.paddingMapping[size],
|
|
263
229
|
className
|
|
264
230
|
),
|
|
265
231
|
...restProps,
|
|
266
232
|
children: [
|
|
267
|
-
startIcon && /* @__PURE__ */ (
|
|
233
|
+
startIcon && /* @__PURE__ */ jsx2(
|
|
268
234
|
"span",
|
|
269
235
|
{
|
|
270
|
-
className: (
|
|
236
|
+
className: clsx({
|
|
271
237
|
[iconColorClasses]: !disabled,
|
|
272
238
|
[`text-disabled-icon`]: disabled
|
|
273
239
|
}),
|
|
@@ -275,10 +241,10 @@ var SolidButton = ({
|
|
|
275
241
|
}
|
|
276
242
|
),
|
|
277
243
|
children,
|
|
278
|
-
endIcon && /* @__PURE__ */ (
|
|
244
|
+
endIcon && /* @__PURE__ */ jsx2(
|
|
279
245
|
"span",
|
|
280
246
|
{
|
|
281
|
-
className: (
|
|
247
|
+
className: clsx({
|
|
282
248
|
[iconColorClasses]: !disabled,
|
|
283
249
|
[`text-disabled-icon`]: disabled
|
|
284
250
|
}),
|
|
@@ -310,25 +276,25 @@ var TextButton = ({
|
|
|
310
276
|
negative: "text-button-text-negative-icon",
|
|
311
277
|
neutral: "text-button-text-neutral-icon"
|
|
312
278
|
}[color];
|
|
313
|
-
return /* @__PURE__ */
|
|
279
|
+
return /* @__PURE__ */ jsxs(
|
|
314
280
|
"button",
|
|
315
281
|
{
|
|
316
282
|
onClick: disabled ? void 0 : onClick,
|
|
317
283
|
disabled: disabled || onClick === void 0,
|
|
318
|
-
className: (
|
|
284
|
+
className: clsx(
|
|
319
285
|
{
|
|
320
286
|
"text-disabled-text cursor-not-allowed": disabled,
|
|
321
|
-
[(
|
|
287
|
+
[clsx(colorClasses, "hover:bg-button-text-hover-background rounded-full")]: !disabled
|
|
322
288
|
},
|
|
323
289
|
ButtonUtil.paddingMapping[size],
|
|
324
290
|
className
|
|
325
291
|
),
|
|
326
292
|
...restProps,
|
|
327
293
|
children: [
|
|
328
|
-
startIcon && /* @__PURE__ */ (
|
|
294
|
+
startIcon && /* @__PURE__ */ jsx2(
|
|
329
295
|
"span",
|
|
330
296
|
{
|
|
331
|
-
className: (
|
|
297
|
+
className: clsx({
|
|
332
298
|
[iconColorClasses]: !disabled,
|
|
333
299
|
[`text-disabled-icon`]: disabled
|
|
334
300
|
}),
|
|
@@ -336,10 +302,10 @@ var TextButton = ({
|
|
|
336
302
|
}
|
|
337
303
|
),
|
|
338
304
|
children,
|
|
339
|
-
endIcon && /* @__PURE__ */ (
|
|
305
|
+
endIcon && /* @__PURE__ */ jsx2(
|
|
340
306
|
"span",
|
|
341
307
|
{
|
|
342
|
-
className: (
|
|
308
|
+
className: clsx({
|
|
343
309
|
[iconColorClasses]: !disabled,
|
|
344
310
|
[`text-disabled-icon`]: disabled
|
|
345
311
|
}),
|
|
@@ -352,10 +318,10 @@ var TextButton = ({
|
|
|
352
318
|
};
|
|
353
319
|
|
|
354
320
|
// src/components/date/TimePicker.tsx
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
321
|
+
import { useEffect as useEffect3, useRef, useState as useState3 } from "react";
|
|
322
|
+
import { Scrollbars } from "react-custom-scrollbars-2";
|
|
323
|
+
import clsx2 from "clsx";
|
|
324
|
+
import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
359
325
|
var TimePicker = ({
|
|
360
326
|
time = /* @__PURE__ */ new Date(),
|
|
361
327
|
onChange = noop,
|
|
@@ -364,12 +330,12 @@ var TimePicker = ({
|
|
|
364
330
|
maxHeight = 300,
|
|
365
331
|
className = ""
|
|
366
332
|
}) => {
|
|
367
|
-
const minuteRef =
|
|
368
|
-
const hourRef =
|
|
333
|
+
const minuteRef = useRef(null);
|
|
334
|
+
const hourRef = useRef(null);
|
|
369
335
|
const isPM = time.getHours() >= 11;
|
|
370
336
|
const hours = is24HourFormat ? range(0, 23) : range(1, 12);
|
|
371
337
|
let minutes = range(0, 59);
|
|
372
|
-
(
|
|
338
|
+
useEffect3(() => {
|
|
373
339
|
const scrollToItem = () => {
|
|
374
340
|
if (minuteRef.current) {
|
|
375
341
|
const container = minuteRef.current.parentElement;
|
|
@@ -384,7 +350,7 @@ var TimePicker = ({
|
|
|
384
350
|
};
|
|
385
351
|
scrollToItem();
|
|
386
352
|
}, [minuteRef, minuteRef.current]);
|
|
387
|
-
(
|
|
353
|
+
useEffect3(() => {
|
|
388
354
|
const scrollToItem = () => {
|
|
389
355
|
if (hourRef.current) {
|
|
390
356
|
const container = hourRef.current.parentElement;
|
|
@@ -414,7 +380,7 @@ var TimePicker = ({
|
|
|
414
380
|
break;
|
|
415
381
|
}
|
|
416
382
|
const closestMinute = closestMatch(minutes, (item1, item2) => Math.abs(item1 - time.getMinutes()) < Math.abs(item2 - time.getMinutes()));
|
|
417
|
-
const style = (selected) => (
|
|
383
|
+
const style = (selected) => clsx2(
|
|
418
384
|
"chip-full hover:brightness-90 hover:bg-primary hover:text-on-primary rounded-md mr-3",
|
|
419
385
|
{ "bg-primary text-on-primary": selected, "bg-white text-black": !selected }
|
|
420
386
|
);
|
|
@@ -423,10 +389,10 @@ var TimePicker = ({
|
|
|
423
389
|
transformer(newDate);
|
|
424
390
|
onChange(newDate);
|
|
425
391
|
};
|
|
426
|
-
return /* @__PURE__ */ (
|
|
427
|
-
/* @__PURE__ */ (
|
|
392
|
+
return /* @__PURE__ */ jsxs2("div", { className: clsx2("row gap-x-2 w-fit min-w-[150px] select-none", className), children: [
|
|
393
|
+
/* @__PURE__ */ jsx3(Scrollbars, { autoHeight: true, autoHeightMax: maxHeight, style: { height: "100%" }, children: /* @__PURE__ */ jsx3("div", { className: "col gap-y-1 h-full", children: hours.map((hour) => {
|
|
428
394
|
const currentHour = hour === time.getHours() - (!is24HourFormat && isPM ? 12 : 0);
|
|
429
|
-
return /* @__PURE__ */ (
|
|
395
|
+
return /* @__PURE__ */ jsx3(
|
|
430
396
|
"button",
|
|
431
397
|
{
|
|
432
398
|
ref: currentHour ? hourRef : void 0,
|
|
@@ -437,9 +403,9 @@ var TimePicker = ({
|
|
|
437
403
|
hour
|
|
438
404
|
);
|
|
439
405
|
}) }) }),
|
|
440
|
-
/* @__PURE__ */ (
|
|
406
|
+
/* @__PURE__ */ jsx3(Scrollbars, { autoHeight: true, autoHeightMax: maxHeight, style: { height: "100%" }, children: /* @__PURE__ */ jsx3("div", { className: "col gap-y-1 h-full", children: minutes.map((minute) => {
|
|
441
407
|
const currentMinute = minute === closestMinute;
|
|
442
|
-
return /* @__PURE__ */ (
|
|
408
|
+
return /* @__PURE__ */ jsx3(
|
|
443
409
|
"button",
|
|
444
410
|
{
|
|
445
411
|
ref: currentMinute ? minuteRef : void 0,
|
|
@@ -450,8 +416,8 @@ var TimePicker = ({
|
|
|
450
416
|
minute + minuteIncrement
|
|
451
417
|
);
|
|
452
418
|
}) }) }),
|
|
453
|
-
!is24HourFormat && /* @__PURE__ */ (
|
|
454
|
-
/* @__PURE__ */ (
|
|
419
|
+
!is24HourFormat && /* @__PURE__ */ jsxs2("div", { className: "col gap-y-1", children: [
|
|
420
|
+
/* @__PURE__ */ jsx3(
|
|
455
421
|
"button",
|
|
456
422
|
{
|
|
457
423
|
className: style(!isPM),
|
|
@@ -459,7 +425,7 @@ var TimePicker = ({
|
|
|
459
425
|
children: "AM"
|
|
460
426
|
}
|
|
461
427
|
),
|
|
462
|
-
/* @__PURE__ */ (
|
|
428
|
+
/* @__PURE__ */ jsx3(
|
|
463
429
|
"button",
|
|
464
430
|
{
|
|
465
431
|
className: style(isPM),
|
|
@@ -472,22 +438,22 @@ var TimePicker = ({
|
|
|
472
438
|
};
|
|
473
439
|
|
|
474
440
|
// src/components/date/DatePicker.tsx
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
441
|
+
import { useEffect as useEffect7, useState as useState7 } from "react";
|
|
442
|
+
import { ArrowDown, ArrowUp, ChevronDown as ChevronDown2 } from "lucide-react";
|
|
443
|
+
import clsx6 from "clsx";
|
|
478
444
|
|
|
479
445
|
// src/components/date/YearMonthPicker.tsx
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
446
|
+
import { useEffect as useEffect5, useRef as useRef2, useState as useState5 } from "react";
|
|
447
|
+
import { Scrollbars as Scrollbars2 } from "react-custom-scrollbars-2";
|
|
448
|
+
import clsx4 from "clsx";
|
|
483
449
|
|
|
484
450
|
// src/components/layout-and-navigation/Expandable.tsx
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
var DefaultIcon = (expanded) => expanded ? /* @__PURE__ */ (
|
|
490
|
-
var Expandable =
|
|
451
|
+
import { forwardRef, useEffect as useEffect4, useState as useState4 } from "react";
|
|
452
|
+
import { ChevronDown, ChevronUp } from "lucide-react";
|
|
453
|
+
import clsx3 from "clsx";
|
|
454
|
+
import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
455
|
+
var DefaultIcon = (expanded) => expanded ? /* @__PURE__ */ jsx4(ChevronUp, { size: 16, className: "min-w-[16px]" }) : /* @__PURE__ */ jsx4(ChevronDown, { size: 16, className: "min-w-[16px]" });
|
|
456
|
+
var Expandable = forwardRef(function Expandable2({
|
|
491
457
|
children,
|
|
492
458
|
label,
|
|
493
459
|
icon,
|
|
@@ -499,17 +465,17 @@ var Expandable = (0, import_react4.forwardRef)(function Expandable2({
|
|
|
499
465
|
headerClassName = ""
|
|
500
466
|
}, ref) {
|
|
501
467
|
icon ??= DefaultIcon;
|
|
502
|
-
return /* @__PURE__ */ (
|
|
468
|
+
return /* @__PURE__ */ jsxs3(
|
|
503
469
|
"div",
|
|
504
470
|
{
|
|
505
471
|
ref,
|
|
506
|
-
className: (
|
|
472
|
+
className: clsx3("col gap-y-0 bg-surface text-on-surface group rounded-lg shadow-sm", { "cursor-pointer": !clickOnlyOnHeader && !disabled }, className),
|
|
507
473
|
onClick: () => !clickOnlyOnHeader && !disabled && onChange(!isExpanded),
|
|
508
474
|
children: [
|
|
509
|
-
/* @__PURE__ */ (
|
|
475
|
+
/* @__PURE__ */ jsxs3(
|
|
510
476
|
"div",
|
|
511
477
|
{
|
|
512
|
-
className: (
|
|
478
|
+
className: clsx3(
|
|
513
479
|
"row py-2 px-4 rounded-lg justify-between items-center bg-surface text-on-surface select-none",
|
|
514
480
|
{
|
|
515
481
|
"group-hover:brightness-95": !isExpanded,
|
|
@@ -525,21 +491,21 @@ var Expandable = (0, import_react4.forwardRef)(function Expandable2({
|
|
|
525
491
|
]
|
|
526
492
|
}
|
|
527
493
|
),
|
|
528
|
-
isExpanded && /* @__PURE__ */ (
|
|
494
|
+
isExpanded && /* @__PURE__ */ jsx4("div", { className: "col px-4 pb-2", children })
|
|
529
495
|
]
|
|
530
496
|
}
|
|
531
497
|
);
|
|
532
498
|
});
|
|
533
|
-
var ExpandableUncontrolled =
|
|
499
|
+
var ExpandableUncontrolled = forwardRef(function ExpandableUncontrolled2({
|
|
534
500
|
isExpanded,
|
|
535
501
|
onChange = noop,
|
|
536
502
|
...props
|
|
537
503
|
}, ref) {
|
|
538
|
-
const [usedIsExpanded, setUsedIsExpanded] = (
|
|
539
|
-
(
|
|
504
|
+
const [usedIsExpanded, setUsedIsExpanded] = useState4(isExpanded);
|
|
505
|
+
useEffect4(() => {
|
|
540
506
|
setUsedIsExpanded(isExpanded);
|
|
541
507
|
}, [isExpanded]);
|
|
542
|
-
return /* @__PURE__ */ (
|
|
508
|
+
return /* @__PURE__ */ jsx4(
|
|
543
509
|
Expandable,
|
|
544
510
|
{
|
|
545
511
|
...props,
|
|
@@ -554,7 +520,7 @@ var ExpandableUncontrolled = (0, import_react4.forwardRef)(function ExpandableUn
|
|
|
554
520
|
});
|
|
555
521
|
|
|
556
522
|
// src/components/date/YearMonthPicker.tsx
|
|
557
|
-
|
|
523
|
+
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
558
524
|
var YearMonthPicker = ({
|
|
559
525
|
displayedYearMonth = /* @__PURE__ */ new Date(),
|
|
560
526
|
start = subtractDuration(/* @__PURE__ */ new Date(), { years: 50 }),
|
|
@@ -565,8 +531,8 @@ var YearMonthPicker = ({
|
|
|
565
531
|
showValueOpen = true
|
|
566
532
|
}) => {
|
|
567
533
|
const locale = useLocale();
|
|
568
|
-
const ref = (
|
|
569
|
-
(
|
|
534
|
+
const ref = useRef2(null);
|
|
535
|
+
useEffect5(() => {
|
|
570
536
|
const scrollToItem = () => {
|
|
571
537
|
if (ref.current) {
|
|
572
538
|
ref.current.scrollIntoView({
|
|
@@ -582,15 +548,15 @@ var YearMonthPicker = ({
|
|
|
582
548
|
return null;
|
|
583
549
|
}
|
|
584
550
|
const years = range(start.getFullYear(), end.getFullYear());
|
|
585
|
-
return /* @__PURE__ */ (
|
|
551
|
+
return /* @__PURE__ */ jsx5("div", { className: clsx4("col select-none", className), children: /* @__PURE__ */ jsx5(Scrollbars2, { autoHeight: true, autoHeightMax: maxHeight, style: { height: "100%" }, children: /* @__PURE__ */ jsx5("div", { className: "col gap-y-1 mr-3", children: years.map((year) => {
|
|
586
552
|
const selectedYear = displayedYearMonth.getFullYear() === year;
|
|
587
|
-
return /* @__PURE__ */ (
|
|
553
|
+
return /* @__PURE__ */ jsx5(
|
|
588
554
|
ExpandableUncontrolled,
|
|
589
555
|
{
|
|
590
556
|
ref: (displayedYearMonth.getFullYear() ?? (/* @__PURE__ */ new Date()).getFullYear()) === year ? ref : void 0,
|
|
591
|
-
label: /* @__PURE__ */ (
|
|
557
|
+
label: /* @__PURE__ */ jsx5("span", { className: clsx4({ "text-primary font-bold": selectedYear }), children: year }),
|
|
592
558
|
isExpanded: showValueOpen && selectedYear,
|
|
593
|
-
children:
|
|
559
|
+
children: equalSizeGroups([...monthsList], 3).map((monthList, index) => /* @__PURE__ */ jsx5("div", { className: "row", children: monthList.map((month) => {
|
|
594
560
|
const monthIndex = monthsList.indexOf(month);
|
|
595
561
|
const newDate = new Date(year, monthIndex);
|
|
596
562
|
const selectedMonth = selectedYear && monthIndex === displayedYearMonth.getMonth();
|
|
@@ -599,11 +565,11 @@ var YearMonthPicker = ({
|
|
|
599
565
|
const isAfterStart = start === void 0 || start <= addDuration(subtractDuration(lastOfMonth, { days: 1 }), { months: 1 });
|
|
600
566
|
const isBeforeEnd = end === void 0 || firstOfMonth <= end;
|
|
601
567
|
const isValid = isAfterStart && isBeforeEnd;
|
|
602
|
-
return /* @__PURE__ */ (
|
|
568
|
+
return /* @__PURE__ */ jsx5(
|
|
603
569
|
"button",
|
|
604
570
|
{
|
|
605
571
|
disabled: !isValid,
|
|
606
|
-
className: (
|
|
572
|
+
className: clsx4(
|
|
607
573
|
"chip hover:brightness-95 flex-1",
|
|
608
574
|
{
|
|
609
575
|
"bg-gray-50 text-black": !selectedMonth && isValid,
|
|
@@ -618,7 +584,7 @@ var YearMonthPicker = ({
|
|
|
618
584
|
},
|
|
619
585
|
month
|
|
620
586
|
);
|
|
621
|
-
}) }, index))
|
|
587
|
+
}) }, index))
|
|
622
588
|
},
|
|
623
589
|
year
|
|
624
590
|
);
|
|
@@ -626,9 +592,9 @@ var YearMonthPicker = ({
|
|
|
626
592
|
};
|
|
627
593
|
|
|
628
594
|
// src/components/date/DayPicker.tsx
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
595
|
+
import clsx5 from "clsx";
|
|
596
|
+
import { useEffect as useEffect6, useState as useState6 } from "react";
|
|
597
|
+
import { jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
632
598
|
var DayPicker = ({
|
|
633
599
|
displayedMonth,
|
|
634
600
|
selected,
|
|
@@ -642,18 +608,18 @@ var DayPicker = ({
|
|
|
642
608
|
const locale = useLocale();
|
|
643
609
|
const month = displayedMonth.getMonth();
|
|
644
610
|
const weeks = getWeeksForCalenderMonth(displayedMonth, weekStart);
|
|
645
|
-
return /* @__PURE__ */ (
|
|
646
|
-
/* @__PURE__ */ (
|
|
647
|
-
weeks.map((week, index) => /* @__PURE__ */ (
|
|
611
|
+
return /* @__PURE__ */ jsxs4("div", { className: clsx5("col gap-y-1 min-w-[220px] select-none", className), children: [
|
|
612
|
+
/* @__PURE__ */ jsx6("div", { className: "row text-center", children: weeks[0].map((weekDay, index) => /* @__PURE__ */ jsx6("div", { className: "flex-1 font-semibold", children: new Intl.DateTimeFormat(locale, { weekday: "long" }).format(weekDay).substring(0, 2) }, index)) }),
|
|
613
|
+
weeks.map((week, index) => /* @__PURE__ */ jsx6("div", { className: "row text-center", children: week.map((date) => {
|
|
648
614
|
const isSelected = !!selected && equalDate(selected, date);
|
|
649
615
|
const isToday = equalDate(/* @__PURE__ */ new Date(), date);
|
|
650
616
|
const isSameMonth = date.getMonth() === month;
|
|
651
617
|
const isDayValid = isInTimeSpan(date, start, end);
|
|
652
|
-
return /* @__PURE__ */ (
|
|
618
|
+
return /* @__PURE__ */ jsx6(
|
|
653
619
|
"button",
|
|
654
620
|
{
|
|
655
621
|
disabled: !isDayValid,
|
|
656
|
-
className: (
|
|
622
|
+
className: clsx5(
|
|
657
623
|
"flex-1 rounded-full border-2 border-transparent shadow-sm",
|
|
658
624
|
{
|
|
659
625
|
"text-gray-700 bg-gray-100": !isSameMonth && isDayValid,
|
|
@@ -674,7 +640,7 @@ var DayPicker = ({
|
|
|
674
640
|
};
|
|
675
641
|
|
|
676
642
|
// src/components/date/DatePicker.tsx
|
|
677
|
-
|
|
643
|
+
import { jsx as jsx7, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
678
644
|
var defaultDatePickerTranslation = {
|
|
679
645
|
en: {
|
|
680
646
|
today: "Today"
|
|
@@ -696,28 +662,28 @@ var DatePicker = ({
|
|
|
696
662
|
}) => {
|
|
697
663
|
const locale = useLocale();
|
|
698
664
|
const translation = useTranslation(defaultDatePickerTranslation, overwriteTranslation);
|
|
699
|
-
const [displayedMonth, setDisplayedMonth] = (
|
|
700
|
-
const [displayMode, setDisplayMode] = (
|
|
701
|
-
(
|
|
665
|
+
const [displayedMonth, setDisplayedMonth] = useState7(value);
|
|
666
|
+
const [displayMode, setDisplayMode] = useState7(initialDisplay);
|
|
667
|
+
useEffect7(() => {
|
|
702
668
|
setDisplayedMonth(value);
|
|
703
669
|
}, [value]);
|
|
704
|
-
return /* @__PURE__ */ (
|
|
705
|
-
/* @__PURE__ */ (
|
|
706
|
-
/* @__PURE__ */ (
|
|
670
|
+
return /* @__PURE__ */ jsxs5("div", { className: clsx6("col gap-y-4", className), children: [
|
|
671
|
+
/* @__PURE__ */ jsxs5("div", { className: "row items-center justify-between h-7", children: [
|
|
672
|
+
/* @__PURE__ */ jsxs5(
|
|
707
673
|
TextButton,
|
|
708
674
|
{
|
|
709
|
-
className: (
|
|
675
|
+
className: clsx6("row gap-x-1 items-center cursor-pointer select-none", {
|
|
710
676
|
"text-disabled-text": displayMode !== "day"
|
|
711
677
|
}),
|
|
712
678
|
onClick: () => setDisplayMode(displayMode === "day" ? "yearMonth" : "day"),
|
|
713
679
|
children: [
|
|
714
680
|
`${new Intl.DateTimeFormat(locale, { month: "long" }).format(displayedMonth)} ${displayedMonth.getFullYear()}`,
|
|
715
|
-
/* @__PURE__ */ (
|
|
681
|
+
/* @__PURE__ */ jsx7(ChevronDown2, { size: 16 })
|
|
716
682
|
]
|
|
717
683
|
}
|
|
718
684
|
),
|
|
719
|
-
displayMode === "day" && /* @__PURE__ */ (
|
|
720
|
-
/* @__PURE__ */ (
|
|
685
|
+
displayMode === "day" && /* @__PURE__ */ jsxs5("div", { className: "row justify-end", children: [
|
|
686
|
+
/* @__PURE__ */ jsx7(
|
|
721
687
|
SolidButton,
|
|
722
688
|
{
|
|
723
689
|
size: "small",
|
|
@@ -726,10 +692,10 @@ var DatePicker = ({
|
|
|
726
692
|
onClick: () => {
|
|
727
693
|
setDisplayedMonth(subtractDuration(displayedMonth, { months: 1 }));
|
|
728
694
|
},
|
|
729
|
-
children: /* @__PURE__ */ (
|
|
695
|
+
children: /* @__PURE__ */ jsx7(ArrowUp, { size: 20 })
|
|
730
696
|
}
|
|
731
697
|
),
|
|
732
|
-
/* @__PURE__ */ (
|
|
698
|
+
/* @__PURE__ */ jsx7(
|
|
733
699
|
SolidButton,
|
|
734
700
|
{
|
|
735
701
|
size: "small",
|
|
@@ -738,12 +704,12 @@ var DatePicker = ({
|
|
|
738
704
|
onClick: () => {
|
|
739
705
|
setDisplayedMonth(addDuration(displayedMonth, { months: 1 }));
|
|
740
706
|
},
|
|
741
|
-
children: /* @__PURE__ */ (
|
|
707
|
+
children: /* @__PURE__ */ jsx7(ArrowDown, { size: 20 })
|
|
742
708
|
}
|
|
743
709
|
)
|
|
744
710
|
] })
|
|
745
711
|
] }),
|
|
746
|
-
displayMode === "yearMonth" ? /* @__PURE__ */ (
|
|
712
|
+
displayMode === "yearMonth" ? /* @__PURE__ */ jsx7(
|
|
747
713
|
YearMonthPicker,
|
|
748
714
|
{
|
|
749
715
|
...yearMonthPickerProps,
|
|
@@ -755,8 +721,8 @@ var DatePicker = ({
|
|
|
755
721
|
setDisplayMode("day");
|
|
756
722
|
}
|
|
757
723
|
}
|
|
758
|
-
) : /* @__PURE__ */ (
|
|
759
|
-
/* @__PURE__ */ (
|
|
724
|
+
) : /* @__PURE__ */ jsxs5("div", { children: [
|
|
725
|
+
/* @__PURE__ */ jsx7(
|
|
760
726
|
DayPicker,
|
|
761
727
|
{
|
|
762
728
|
...dayPickerProps,
|
|
@@ -769,9 +735,10 @@ var DatePicker = ({
|
|
|
769
735
|
}
|
|
770
736
|
}
|
|
771
737
|
),
|
|
772
|
-
/* @__PURE__ */ (
|
|
738
|
+
/* @__PURE__ */ jsx7("div", { className: "mt-2", children: /* @__PURE__ */ jsx7(
|
|
773
739
|
TextButton,
|
|
774
740
|
{
|
|
741
|
+
color: "primary",
|
|
775
742
|
onClick: () => {
|
|
776
743
|
const newDate = /* @__PURE__ */ new Date();
|
|
777
744
|
newDate.setHours(value.getHours(), value.getMinutes());
|
|
@@ -785,7 +752,7 @@ var DatePicker = ({
|
|
|
785
752
|
};
|
|
786
753
|
|
|
787
754
|
// src/components/user-action/DateAndTimePicker.tsx
|
|
788
|
-
|
|
755
|
+
import { jsx as jsx8, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
789
756
|
var defaultTimeTranslation = {
|
|
790
757
|
en: {
|
|
791
758
|
clear: "Clear",
|
|
@@ -844,7 +811,7 @@ var DateTimePicker = ({
|
|
|
844
811
|
let dateDisplay;
|
|
845
812
|
let timeDisplay;
|
|
846
813
|
if (useDate) {
|
|
847
|
-
dateDisplay = /* @__PURE__ */ (
|
|
814
|
+
dateDisplay = /* @__PURE__ */ jsx8(
|
|
848
815
|
DatePicker,
|
|
849
816
|
{
|
|
850
817
|
...datePickerProps,
|
|
@@ -858,25 +825,25 @@ var DateTimePicker = ({
|
|
|
858
825
|
);
|
|
859
826
|
}
|
|
860
827
|
if (useTime) {
|
|
861
|
-
timeDisplay = /* @__PURE__ */ (
|
|
828
|
+
timeDisplay = /* @__PURE__ */ jsx8(
|
|
862
829
|
TimePicker,
|
|
863
830
|
{
|
|
864
831
|
...timePickerProps,
|
|
865
|
-
className: (
|
|
832
|
+
className: clsx7("h-full", { "justify-between w-full": mode === "time" }),
|
|
866
833
|
maxHeight: 250,
|
|
867
834
|
time: value,
|
|
868
835
|
onChange
|
|
869
836
|
}
|
|
870
837
|
);
|
|
871
838
|
}
|
|
872
|
-
return /* @__PURE__ */ (
|
|
873
|
-
/* @__PURE__ */ (
|
|
839
|
+
return /* @__PURE__ */ jsxs6("div", { className: "col w-fit", children: [
|
|
840
|
+
/* @__PURE__ */ jsxs6("div", { className: "row gap-x-4", children: [
|
|
874
841
|
dateDisplay,
|
|
875
842
|
timeDisplay
|
|
876
843
|
] }),
|
|
877
|
-
/* @__PURE__ */ (
|
|
878
|
-
/* @__PURE__ */ (
|
|
879
|
-
/* @__PURE__ */ (
|
|
844
|
+
/* @__PURE__ */ jsx8("div", { className: "row justify-end", children: /* @__PURE__ */ jsxs6("div", { className: "row gap-x-2 mt-1", children: [
|
|
845
|
+
/* @__PURE__ */ jsx8(SolidButton, { size: "medium", color: "negative", onClick: onRemove, children: translation.clear }),
|
|
846
|
+
/* @__PURE__ */ jsx8(
|
|
880
847
|
SolidButton,
|
|
881
848
|
{
|
|
882
849
|
size: "medium",
|
|
@@ -887,8 +854,7 @@ var DateTimePicker = ({
|
|
|
887
854
|
] }) })
|
|
888
855
|
] });
|
|
889
856
|
};
|
|
890
|
-
|
|
891
|
-
0 && (module.exports = {
|
|
857
|
+
export {
|
|
892
858
|
DateTimePicker
|
|
893
|
-
}
|
|
894
|
-
//# sourceMappingURL=DateAndTimePicker.
|
|
859
|
+
};
|
|
860
|
+
//# sourceMappingURL=DateAndTimePicker.mjs.map
|