@helpwave/hightide 0.1.6 → 0.1.7-alpha.1
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 +117 -82
- package/dist/components/date/DatePicker.js.map +1 -1
- package/dist/components/date/{DatePicker.cjs → DatePicker.mjs} +83 -119
- 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 +72 -37
- package/dist/components/date/YearMonthPicker.js.map +1 -1
- package/dist/components/date/{YearMonthPicker.cjs → YearMonthPicker.mjs} +38 -74
- 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} +2 -2
- 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 +108 -65
- package/dist/components/layout-and-navigation/Table.js.map +1 -1
- package/dist/components/layout-and-navigation/{Table.cjs → Table.mjs} +66 -110
- 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 +129 -93
- package/dist/components/modals/LanguageModal.js.map +1 -1
- package/dist/components/modals/{LanguageModal.cjs → LanguageModal.mjs} +94 -131
- 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 +133 -97
- package/dist/components/modals/ThemeModal.js.map +1 -1
- package/dist/components/modals/{ThemeModal.cjs → ThemeModal.mjs} +98 -135
- 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 +82 -48
- package/dist/components/properties/CheckboxProperty.js.map +1 -1
- package/dist/components/properties/{CheckboxProperty.cjs → CheckboxProperty.mjs} +49 -84
- 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 +92 -58
- package/dist/components/properties/DateProperty.js.map +1 -1
- package/dist/components/properties/{DateProperty.cjs → DateProperty.mjs} +59 -94
- 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 +151 -117
- package/dist/components/properties/MultiSelectProperty.js.map +1 -1
- package/dist/components/properties/{MultiSelectProperty.cjs → MultiSelectProperty.mjs} +118 -153
- 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 +93 -59
- package/dist/components/properties/NumberProperty.js.map +1 -1
- package/dist/components/properties/{NumberProperty.cjs → NumberProperty.mjs} +60 -95
- 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 +61 -27
- package/dist/components/properties/PropertyBase.js.map +1 -1
- package/dist/components/properties/{PropertyBase.cjs → PropertyBase.mjs} +28 -63
- package/dist/components/properties/{PropertyBase.cjs.map → PropertyBase.mjs.map} +1 -1
- package/dist/components/properties/{SelectProperty.d.cts → SelectProperty.d.mts} +5 -5
- package/dist/components/properties/SelectProperty.js +116 -82
- package/dist/components/properties/SelectProperty.js.map +1 -1
- package/dist/components/properties/{SelectProperty.cjs → SelectProperty.mjs} +83 -118
- 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 +90 -56
- package/dist/components/properties/TextProperty.js.map +1 -1
- package/dist/components/properties/{TextProperty.cjs → TextProperty.mjs} +57 -92
- 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 +55 -20
- 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.cjs.map → Checkbox.mjs.map} +1 -1
- package/dist/components/user-action/{DateAndTimePicker.d.cts → DateAndTimePicker.d.mts} +7 -7
- package/dist/components/user-action/DateAndTimePicker.js +140 -106
- package/dist/components/user-action/DateAndTimePicker.js.map +1 -1
- package/dist/components/user-action/{DateAndTimePicker.cjs → DateAndTimePicker.mjs} +107 -142
- 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 +114 -80
- package/dist/components/user-action/MultiSelect.js.map +1 -1
- package/dist/components/user-action/{MultiSelect.cjs → MultiSelect.mjs} +81 -116
- package/dist/components/user-action/MultiSelect.mjs.map +1 -0
- package/dist/components/user-action/ScrollPicker.js +49 -15
- package/dist/components/user-action/ScrollPicker.js.map +1 -1
- package/dist/components/user-action/{ScrollPicker.cjs → ScrollPicker.mjs} +16 -51
- package/dist/components/user-action/ScrollPicker.mjs.map +1 -0
- package/dist/components/user-action/{Select.d.cts → Select.d.mts} +1 -1
- package/dist/components/user-action/Select.js +87 -51
- package/dist/components/user-action/Select.js.map +1 -1
- package/dist/components/user-action/{Select.cjs → Select.mjs} +52 -89
- 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/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 +1028 -875
- package/dist/index.js.map +1 -1
- package/dist/{index.cjs → index.mjs} +876 -1028
- 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/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/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,44 +1,8 @@
|
|
|
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
|
-
// src/components/modals/LanguageModal.tsx
|
|
31
|
-
var LanguageModal_exports = {};
|
|
32
|
-
__export(LanguageModal_exports, {
|
|
33
|
-
LanguageModal: () => LanguageModal
|
|
34
|
-
});
|
|
35
|
-
module.exports = __toCommonJS(LanguageModal_exports);
|
|
36
|
-
|
|
37
1
|
// src/localization/LanguageProvider.tsx
|
|
38
|
-
|
|
2
|
+
import { createContext, useContext, useEffect as useEffect2, useState as useState2 } from "react";
|
|
39
3
|
|
|
40
4
|
// src/hooks/useLocalStorage.ts
|
|
41
|
-
|
|
5
|
+
import { useCallback, useEffect, useState } from "react";
|
|
42
6
|
|
|
43
7
|
// src/localization/util.ts
|
|
44
8
|
var languages = ["en", "de"];
|
|
@@ -54,12 +18,12 @@ var LanguageUtil = {
|
|
|
54
18
|
};
|
|
55
19
|
|
|
56
20
|
// src/localization/LanguageProvider.tsx
|
|
57
|
-
|
|
58
|
-
var LanguageContext =
|
|
21
|
+
import { jsx } from "react/jsx-runtime";
|
|
22
|
+
var LanguageContext = createContext({
|
|
59
23
|
language: LanguageUtil.DEFAULT_LANGUAGE,
|
|
60
24
|
setLanguage: (v) => v
|
|
61
25
|
});
|
|
62
|
-
var useLanguage = () =>
|
|
26
|
+
var useLanguage = () => useContext(LanguageContext);
|
|
63
27
|
|
|
64
28
|
// src/localization/useTranslation.ts
|
|
65
29
|
var useTranslation = (defaults, translationOverwrite = {}) => {
|
|
@@ -74,14 +38,14 @@ var useTranslation = (defaults, translationOverwrite = {}) => {
|
|
|
74
38
|
};
|
|
75
39
|
|
|
76
40
|
// src/components/user-action/Select.tsx
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
41
|
+
import { Menu } from "@headlessui/react";
|
|
42
|
+
import { ChevronDown, ChevronUp, Search } from "lucide-react";
|
|
43
|
+
import { useEffect as useEffect5, useState as useState5 } from "react";
|
|
44
|
+
import clsx3 from "clsx";
|
|
81
45
|
|
|
82
46
|
// src/components/user-action/Label.tsx
|
|
83
|
-
|
|
84
|
-
|
|
47
|
+
import clsx from "clsx";
|
|
48
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
85
49
|
var styleMapping = {
|
|
86
50
|
labelSmall: "textstyle-label-sm",
|
|
87
51
|
labelMedium: "textstyle-label-md",
|
|
@@ -94,19 +58,19 @@ var Label = ({
|
|
|
94
58
|
className,
|
|
95
59
|
...props
|
|
96
60
|
}) => {
|
|
97
|
-
return /* @__PURE__ */ (
|
|
61
|
+
return /* @__PURE__ */ jsx2("label", { ...props, className: clsx(styleMapping[labelType], className), children: children ? children : name });
|
|
98
62
|
};
|
|
99
63
|
|
|
100
64
|
// src/components/user-action/Input.tsx
|
|
101
|
-
|
|
102
|
-
|
|
65
|
+
import { forwardRef, useEffect as useEffect4, useRef, useState as useState4 } from "react";
|
|
66
|
+
import clsx2 from "clsx";
|
|
103
67
|
|
|
104
68
|
// src/hooks/useSaveDelay.ts
|
|
105
|
-
|
|
69
|
+
import { useEffect as useEffect3, useState as useState3 } from "react";
|
|
106
70
|
|
|
107
71
|
// src/components/user-action/Input.tsx
|
|
108
|
-
|
|
109
|
-
var FormInput =
|
|
72
|
+
import { jsx as jsx3, jsxs } from "react/jsx-runtime";
|
|
73
|
+
var FormInput = forwardRef(function FormInput2({
|
|
110
74
|
id,
|
|
111
75
|
labelText,
|
|
112
76
|
errorText,
|
|
@@ -117,13 +81,13 @@ var FormInput = (0, import_react4.forwardRef)(function FormInput2({
|
|
|
117
81
|
required,
|
|
118
82
|
...restProps
|
|
119
83
|
}, ref) {
|
|
120
|
-
const input = /* @__PURE__ */ (
|
|
84
|
+
const input = /* @__PURE__ */ jsx3(
|
|
121
85
|
"input",
|
|
122
86
|
{
|
|
123
87
|
ref,
|
|
124
88
|
id,
|
|
125
89
|
...restProps,
|
|
126
|
-
className: (
|
|
90
|
+
className: clsx2(
|
|
127
91
|
{
|
|
128
92
|
"focus:border-primary focus:ring-primary": !errorText,
|
|
129
93
|
"focus:border-negative focus:ring-negative text-negative": !!errorText
|
|
@@ -132,18 +96,18 @@ var FormInput = (0, import_react4.forwardRef)(function FormInput2({
|
|
|
132
96
|
)
|
|
133
97
|
}
|
|
134
98
|
);
|
|
135
|
-
return /* @__PURE__ */
|
|
136
|
-
labelText && /* @__PURE__ */
|
|
99
|
+
return /* @__PURE__ */ jsxs("div", { className: clsx2("flex flex-col gap-y-1", containerClassName), children: [
|
|
100
|
+
labelText && /* @__PURE__ */ jsxs("label", { htmlFor: id, className: clsx2("textstyle-label-md", labelClassName), children: [
|
|
137
101
|
labelText,
|
|
138
|
-
required && /* @__PURE__ */ (
|
|
102
|
+
required && /* @__PURE__ */ jsx3("span", { className: "text-primary font-bold", children: "*" })
|
|
139
103
|
] }),
|
|
140
104
|
input,
|
|
141
|
-
errorText && /* @__PURE__ */ (
|
|
105
|
+
errorText && /* @__PURE__ */ jsx3("label", { htmlFor: id, className: clsx2("text-negative", errorClassName), children: errorText })
|
|
142
106
|
] });
|
|
143
107
|
});
|
|
144
108
|
|
|
145
109
|
// src/components/user-action/Select.tsx
|
|
146
|
-
|
|
110
|
+
import { Fragment, jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
147
111
|
var Select = ({
|
|
148
112
|
value,
|
|
149
113
|
label,
|
|
@@ -168,13 +132,13 @@ var Select = ({
|
|
|
168
132
|
console.warn("The selected value is not found in the options list. This might be an error on your part or default behavior if it is complex data type on which === does not work. In case of the latter use selectedDisplayOverwrite to set your selected text or component");
|
|
169
133
|
}
|
|
170
134
|
const borderColor = "border-menu-border";
|
|
171
|
-
return /* @__PURE__ */ (
|
|
172
|
-
label && /* @__PURE__ */ (
|
|
173
|
-
/* @__PURE__ */ (
|
|
174
|
-
/* @__PURE__ */ (
|
|
175
|
-
|
|
135
|
+
return /* @__PURE__ */ jsxs2("div", { className: clsx3(className), children: [
|
|
136
|
+
label && /* @__PURE__ */ jsx4(Label, { ...label, labelType: label.labelType ?? "labelBig", className: clsx3("mb-1", label.className) }),
|
|
137
|
+
/* @__PURE__ */ jsx4(Menu, { as: "div", className: "relative text-menu-text", children: ({ open }) => /* @__PURE__ */ jsxs2(Fragment, { children: [
|
|
138
|
+
/* @__PURE__ */ jsxs2(
|
|
139
|
+
Menu.Button,
|
|
176
140
|
{
|
|
177
|
-
className: (
|
|
141
|
+
className: clsx3(
|
|
178
142
|
"inline-flex w-full justify-between items-center rounded-t-lg border-2 px-4 py-2 font-medium bg-menu-background text-menu-text",
|
|
179
143
|
textColor,
|
|
180
144
|
borderColor,
|
|
@@ -186,30 +150,30 @@ var Select = ({
|
|
|
186
150
|
),
|
|
187
151
|
disabled: isDisabled,
|
|
188
152
|
children: [
|
|
189
|
-
/* @__PURE__ */ (
|
|
190
|
-
open ? /* @__PURE__ */ (
|
|
153
|
+
/* @__PURE__ */ jsx4("span", { children: selectedDisplayOverwrite ?? selectedOption?.label ?? hintText }),
|
|
154
|
+
open ? /* @__PURE__ */ jsx4(ChevronUp, {}) : /* @__PURE__ */ jsx4(ChevronDown, {})
|
|
191
155
|
]
|
|
192
156
|
}
|
|
193
157
|
),
|
|
194
|
-
/* @__PURE__ */ (
|
|
195
|
-
|
|
158
|
+
/* @__PURE__ */ jsxs2(
|
|
159
|
+
Menu.Items,
|
|
196
160
|
{
|
|
197
161
|
className: "absolute w-full z-10 rounded-b-lg bg-menu-background text-menu-text shadow-lg max-h-[500px] overflow-y-auto",
|
|
198
162
|
children: [
|
|
199
|
-
(additionalItems ?? []).map((item, index) => /* @__PURE__ */ (
|
|
163
|
+
(additionalItems ?? []).map((item, index) => /* @__PURE__ */ jsx4(
|
|
200
164
|
"div",
|
|
201
165
|
{
|
|
202
|
-
className: (
|
|
166
|
+
className: clsx3(borderColor, "px-4 py-2 overflow-hidden whitespace-nowrap text-ellipsis border-2 border-t-0", {
|
|
203
167
|
"border-b-0 rounded-b-lg": filteredOptions.length === 0 && index === (additionalItems?.length ?? 1) - 1
|
|
204
168
|
}),
|
|
205
169
|
children: item
|
|
206
170
|
},
|
|
207
171
|
`additionalItems${index}`
|
|
208
172
|
)),
|
|
209
|
-
filteredOptions.map((option, index) => /* @__PURE__ */ (
|
|
173
|
+
filteredOptions.map((option, index) => /* @__PURE__ */ jsx4(Menu.Item, { children: /* @__PURE__ */ jsx4(
|
|
210
174
|
"div",
|
|
211
175
|
{
|
|
212
|
-
className: (
|
|
176
|
+
className: clsx3(
|
|
213
177
|
"px-4 py-2 overflow-hidden whitespace-nowrap text-ellipsis border-2 border-t-0 cursor-pointer",
|
|
214
178
|
option.className,
|
|
215
179
|
borderColor,
|
|
@@ -237,8 +201,8 @@ var Select = ({
|
|
|
237
201
|
};
|
|
238
202
|
|
|
239
203
|
// src/components/user-action/Button.tsx
|
|
240
|
-
|
|
241
|
-
|
|
204
|
+
import clsx4 from "clsx";
|
|
205
|
+
import { jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
242
206
|
var paddingMapping = {
|
|
243
207
|
small: "btn-sm",
|
|
244
208
|
medium: "btn-md",
|
|
@@ -282,25 +246,25 @@ var SolidButton = ({
|
|
|
282
246
|
negative: "text-button-solid-negative-icon",
|
|
283
247
|
neutral: "text-button-solid-neutral-icon"
|
|
284
248
|
}[color];
|
|
285
|
-
return /* @__PURE__ */ (
|
|
249
|
+
return /* @__PURE__ */ jsxs3(
|
|
286
250
|
"button",
|
|
287
251
|
{
|
|
288
252
|
onClick: disabled ? void 0 : onClick,
|
|
289
253
|
disabled: disabled || onClick === void 0,
|
|
290
|
-
className: (
|
|
254
|
+
className: clsx4(
|
|
291
255
|
{
|
|
292
256
|
"text-disabled-text bg-disabled-background cursor-not-allowed": disabled,
|
|
293
|
-
[(
|
|
257
|
+
[clsx4(colorClasses, "hover:brightness-90")]: !disabled
|
|
294
258
|
},
|
|
295
259
|
ButtonUtil.paddingMapping[size],
|
|
296
260
|
className
|
|
297
261
|
),
|
|
298
262
|
...restProps,
|
|
299
263
|
children: [
|
|
300
|
-
startIcon && /* @__PURE__ */ (
|
|
264
|
+
startIcon && /* @__PURE__ */ jsx5(
|
|
301
265
|
"span",
|
|
302
266
|
{
|
|
303
|
-
className: (
|
|
267
|
+
className: clsx4({
|
|
304
268
|
[iconColorClasses]: !disabled,
|
|
305
269
|
[`text-disabled-icon`]: disabled
|
|
306
270
|
}),
|
|
@@ -308,10 +272,10 @@ var SolidButton = ({
|
|
|
308
272
|
}
|
|
309
273
|
),
|
|
310
274
|
children,
|
|
311
|
-
endIcon && /* @__PURE__ */ (
|
|
275
|
+
endIcon && /* @__PURE__ */ jsx5(
|
|
312
276
|
"span",
|
|
313
277
|
{
|
|
314
|
-
className: (
|
|
278
|
+
className: clsx4({
|
|
315
279
|
[iconColorClasses]: !disabled,
|
|
316
280
|
[`text-disabled-icon`]: disabled
|
|
317
281
|
}),
|
|
@@ -340,15 +304,15 @@ var IconButton = ({
|
|
|
340
304
|
negative: "bg-button-solid-negative-background text-button-solid-negative-text",
|
|
341
305
|
neutral: "bg-button-solid-neutral-background text-button-solid-neutral-text"
|
|
342
306
|
}[color];
|
|
343
|
-
return /* @__PURE__ */ (
|
|
307
|
+
return /* @__PURE__ */ jsx5(
|
|
344
308
|
"button",
|
|
345
309
|
{
|
|
346
310
|
onClick: disabled ? void 0 : onClick,
|
|
347
311
|
disabled: disabled || onClick === void 0,
|
|
348
|
-
className: (
|
|
312
|
+
className: clsx4(
|
|
349
313
|
{
|
|
350
314
|
"text-disabled-text bg-disabled-background cursor-not-allowed": disabled,
|
|
351
|
-
[(
|
|
315
|
+
[clsx4(colorClasses, "hover:brightness-90")]: !disabled
|
|
352
316
|
},
|
|
353
317
|
ButtonUtil.iconPaddingMapping[size],
|
|
354
318
|
className
|
|
@@ -360,20 +324,20 @@ var IconButton = ({
|
|
|
360
324
|
};
|
|
361
325
|
|
|
362
326
|
// src/components/layout-and-navigation/Overlay.tsx
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
327
|
+
import { useEffect as useEffect7, useRef as useRef2, useState as useState7 } from "react";
|
|
328
|
+
import ReactDOM from "react-dom";
|
|
329
|
+
import clsx6 from "clsx";
|
|
366
330
|
|
|
367
331
|
// src/hooks/useHoverState.ts
|
|
368
|
-
|
|
332
|
+
import { useEffect as useEffect6, useState as useState6 } from "react";
|
|
369
333
|
var defaultUseHoverStateProps = {
|
|
370
334
|
closingDelay: 200,
|
|
371
335
|
isDisabled: false
|
|
372
336
|
};
|
|
373
337
|
var useHoverState = (props = void 0) => {
|
|
374
338
|
const { closingDelay, isDisabled } = { ...defaultUseHoverStateProps, ...props };
|
|
375
|
-
const [isHovered, setIsHovered] = (
|
|
376
|
-
const [timer, setTimer] = (
|
|
339
|
+
const [isHovered, setIsHovered] = useState6(false);
|
|
340
|
+
const [timer, setTimer] = useState6();
|
|
377
341
|
const onMouseEnter = () => {
|
|
378
342
|
if (isDisabled) {
|
|
379
343
|
return;
|
|
@@ -389,14 +353,14 @@ var useHoverState = (props = void 0) => {
|
|
|
389
353
|
setIsHovered(false);
|
|
390
354
|
}, closingDelay));
|
|
391
355
|
};
|
|
392
|
-
(
|
|
356
|
+
useEffect6(() => {
|
|
393
357
|
if (timer) {
|
|
394
358
|
return () => {
|
|
395
359
|
clearTimeout(timer);
|
|
396
360
|
};
|
|
397
361
|
}
|
|
398
362
|
});
|
|
399
|
-
(
|
|
363
|
+
useEffect6(() => {
|
|
400
364
|
if (timer) {
|
|
401
365
|
clearTimeout(timer);
|
|
402
366
|
}
|
|
@@ -409,8 +373,8 @@ var useHoverState = (props = void 0) => {
|
|
|
409
373
|
};
|
|
410
374
|
|
|
411
375
|
// src/components/user-action/Tooltip.tsx
|
|
412
|
-
|
|
413
|
-
|
|
376
|
+
import { clsx as clsx5 } from "clsx";
|
|
377
|
+
import { jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
414
378
|
var Tooltip = ({
|
|
415
379
|
tooltip,
|
|
416
380
|
children,
|
|
@@ -440,17 +404,17 @@ var Tooltip = ({
|
|
|
440
404
|
left: { borderWidth: `${triangleSize}px 0 ${triangleSize}px ${triangleSize}px` },
|
|
441
405
|
right: { borderWidth: `${triangleSize}px ${triangleSize}px ${triangleSize}px 0` }
|
|
442
406
|
};
|
|
443
|
-
return /* @__PURE__ */ (
|
|
407
|
+
return /* @__PURE__ */ jsxs4(
|
|
444
408
|
"div",
|
|
445
409
|
{
|
|
446
|
-
className: (
|
|
410
|
+
className: clsx5("relative inline-block", containerClassName),
|
|
447
411
|
...handlers,
|
|
448
412
|
children: [
|
|
449
413
|
children,
|
|
450
|
-
isHovered && /* @__PURE__ */ (
|
|
414
|
+
isHovered && /* @__PURE__ */ jsxs4(
|
|
451
415
|
"div",
|
|
452
416
|
{
|
|
453
|
-
className: (
|
|
417
|
+
className: clsx5(
|
|
454
418
|
`opacity-0 absolute text-xs font-semibold text-tooltip-text px-2 py-1 rounded whitespace-nowrap
|
|
455
419
|
animate-tooltip-fade-in shadow-lg bg-tooltip-background`,
|
|
456
420
|
positionClasses[position],
|
|
@@ -459,10 +423,10 @@ var Tooltip = ({
|
|
|
459
423
|
style: { zIndex, animationDelay: animationDelay + "ms" },
|
|
460
424
|
children: [
|
|
461
425
|
tooltip,
|
|
462
|
-
/* @__PURE__ */ (
|
|
426
|
+
/* @__PURE__ */ jsx6(
|
|
463
427
|
"div",
|
|
464
428
|
{
|
|
465
|
-
className: (
|
|
429
|
+
className: clsx5(`absolute w-0 h-0`, triangleClasses[position]),
|
|
466
430
|
style: { ...triangleStyle[position], zIndex }
|
|
467
431
|
}
|
|
468
432
|
)
|
|
@@ -475,25 +439,25 @@ var Tooltip = ({
|
|
|
475
439
|
};
|
|
476
440
|
|
|
477
441
|
// src/components/layout-and-navigation/Overlay.tsx
|
|
478
|
-
|
|
479
|
-
|
|
442
|
+
import { X } from "lucide-react";
|
|
443
|
+
import { jsx as jsx7, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
480
444
|
var Overlay = ({
|
|
481
445
|
children,
|
|
482
446
|
isOpen,
|
|
483
447
|
onBackgroundClick,
|
|
484
448
|
backgroundClassName
|
|
485
449
|
}) => {
|
|
486
|
-
const [root, setRoot] = (
|
|
487
|
-
(
|
|
450
|
+
const [root, setRoot] = useState7();
|
|
451
|
+
useEffect7(() => {
|
|
488
452
|
setRoot(document.body);
|
|
489
453
|
}, []);
|
|
490
454
|
if (!root || !isOpen) return null;
|
|
491
|
-
return
|
|
492
|
-
/* @__PURE__ */ (
|
|
493
|
-
/* @__PURE__ */ (
|
|
455
|
+
return ReactDOM.createPortal(
|
|
456
|
+
/* @__PURE__ */ jsxs5("div", { className: clsx6("fixed inset-0 z-[9999]"), children: [
|
|
457
|
+
/* @__PURE__ */ jsx7(
|
|
494
458
|
"div",
|
|
495
459
|
{
|
|
496
|
-
className: (
|
|
460
|
+
className: clsx6("fixed inset-0 h-screen w-screen bg-black/30", backgroundClassName),
|
|
497
461
|
onClick: onBackgroundClick
|
|
498
462
|
}
|
|
499
463
|
),
|
|
@@ -521,21 +485,21 @@ var OverlayHeader = ({
|
|
|
521
485
|
}) => {
|
|
522
486
|
const translation = useTranslation(defaultModalHeaderTranslation, overwriteTranslation);
|
|
523
487
|
const hasTitleRow = !!title || !!titleText || !!onClose;
|
|
524
|
-
const titleRow = /* @__PURE__ */ (
|
|
525
|
-
title ?? /* @__PURE__ */ (
|
|
488
|
+
const titleRow = /* @__PURE__ */ jsxs5("div", { className: "row justify-between items-start gap-x-8", children: [
|
|
489
|
+
title ?? /* @__PURE__ */ jsx7(
|
|
526
490
|
"h2",
|
|
527
491
|
{
|
|
528
|
-
className: (
|
|
492
|
+
className: clsx6("textstyle-title-lg", {
|
|
529
493
|
"mb-1": description || descriptionText
|
|
530
494
|
}),
|
|
531
495
|
children: titleText
|
|
532
496
|
}
|
|
533
497
|
),
|
|
534
|
-
!!onClose && /* @__PURE__ */ (
|
|
498
|
+
!!onClose && /* @__PURE__ */ jsx7(Tooltip, { tooltip: translation.close, children: /* @__PURE__ */ jsx7(IconButton, { color: "neutral", size: "small", onClick: onClose, children: /* @__PURE__ */ jsx7(X, { className: "w-full h-full" }) }) })
|
|
535
499
|
] });
|
|
536
|
-
return /* @__PURE__ */ (
|
|
500
|
+
return /* @__PURE__ */ jsxs5("div", { className: "col", children: [
|
|
537
501
|
hasTitleRow && titleRow,
|
|
538
|
-
description ?? (descriptionText && /* @__PURE__ */ (
|
|
502
|
+
description ?? (descriptionText && /* @__PURE__ */ jsx7("span", { className: "textstyle-description", children: descriptionText }))
|
|
539
503
|
] });
|
|
540
504
|
};
|
|
541
505
|
var Modal = ({
|
|
@@ -546,8 +510,8 @@ var Modal = ({
|
|
|
546
510
|
backgroundClassName,
|
|
547
511
|
headerProps
|
|
548
512
|
}) => {
|
|
549
|
-
const ref = (
|
|
550
|
-
(
|
|
513
|
+
const ref = useRef2(null);
|
|
514
|
+
useEffect7(() => {
|
|
551
515
|
if (!isOpen) return;
|
|
552
516
|
const modal = ref.current;
|
|
553
517
|
if (!modal) {
|
|
@@ -584,25 +548,25 @@ var Modal = ({
|
|
|
584
548
|
overlayStack = overlayStack.filter((m) => m !== modal);
|
|
585
549
|
};
|
|
586
550
|
}, [isOpen, onClose]);
|
|
587
|
-
return /* @__PURE__ */ (
|
|
551
|
+
return /* @__PURE__ */ jsx7(
|
|
588
552
|
Overlay,
|
|
589
553
|
{
|
|
590
554
|
isOpen,
|
|
591
555
|
onBackgroundClick: onClose,
|
|
592
556
|
backgroundClassName,
|
|
593
|
-
children: /* @__PURE__ */ (
|
|
557
|
+
children: /* @__PURE__ */ jsxs5(
|
|
594
558
|
"div",
|
|
595
559
|
{
|
|
596
560
|
ref,
|
|
597
561
|
tabIndex: -1,
|
|
598
|
-
className: (
|
|
562
|
+
className: clsx6(
|
|
599
563
|
"fixed left-1/2 top-1/2 -translate-y-1/2 -translate-x-1/2 col p-4 bg-overlay-background text-overlay-text rounded-xl shadow-xl",
|
|
600
564
|
className
|
|
601
565
|
),
|
|
602
566
|
role: "dialog",
|
|
603
567
|
"aria-modal": true,
|
|
604
568
|
children: [
|
|
605
|
-
/* @__PURE__ */ (
|
|
569
|
+
/* @__PURE__ */ jsx7(OverlayHeader, { ...headerProps, onClose }),
|
|
606
570
|
children
|
|
607
571
|
]
|
|
608
572
|
}
|
|
@@ -612,7 +576,7 @@ var Modal = ({
|
|
|
612
576
|
};
|
|
613
577
|
|
|
614
578
|
// src/components/modals/LanguageModal.tsx
|
|
615
|
-
|
|
579
|
+
import { jsx as jsx8, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
616
580
|
var defaultLanguageModalTranslation = {
|
|
617
581
|
en: {
|
|
618
582
|
title: "Language",
|
|
@@ -635,7 +599,7 @@ var LanguageModal = ({
|
|
|
635
599
|
}) => {
|
|
636
600
|
const { language, setLanguage } = useLanguage();
|
|
637
601
|
const translation = useTranslation(defaultLanguageModalTranslation, overwriteTranslation);
|
|
638
|
-
return /* @__PURE__ */ (
|
|
602
|
+
return /* @__PURE__ */ jsx8(
|
|
639
603
|
Modal,
|
|
640
604
|
{
|
|
641
605
|
headerProps: {
|
|
@@ -645,8 +609,8 @@ var LanguageModal = ({
|
|
|
645
609
|
},
|
|
646
610
|
onClose,
|
|
647
611
|
...modalProps,
|
|
648
|
-
children: /* @__PURE__ */ (
|
|
649
|
-
/* @__PURE__ */ (
|
|
612
|
+
children: /* @__PURE__ */ jsxs6("div", { className: "w-64", children: [
|
|
613
|
+
/* @__PURE__ */ jsx8(
|
|
650
614
|
Select,
|
|
651
615
|
{
|
|
652
616
|
className: "mt-2",
|
|
@@ -655,13 +619,12 @@ var LanguageModal = ({
|
|
|
655
619
|
onChange: (language2) => setLanguage(language2)
|
|
656
620
|
}
|
|
657
621
|
),
|
|
658
|
-
/* @__PURE__ */ (
|
|
622
|
+
/* @__PURE__ */ jsx8("div", { className: "row mt-3 gap-x-4 justify-end", children: /* @__PURE__ */ jsx8(SolidButton, { autoFocus: true, color: "positive", onClick: onClose, children: translation.done }) })
|
|
659
623
|
] })
|
|
660
624
|
}
|
|
661
625
|
);
|
|
662
626
|
};
|
|
663
|
-
|
|
664
|
-
0 && (module.exports = {
|
|
627
|
+
export {
|
|
665
628
|
LanguageModal
|
|
666
|
-
}
|
|
667
|
-
//# sourceMappingURL=LanguageModal.
|
|
629
|
+
};
|
|
630
|
+
//# sourceMappingURL=LanguageModal.mjs.map
|