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