@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,17 +1,18 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __create = Object.create;
|
|
3
2
|
var __defProp = Object.defineProperty;
|
|
4
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
5
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var
|
|
7
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
8
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
9
|
+
}) : x)(function(x) {
|
|
10
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
11
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
12
|
+
});
|
|
13
|
+
var __commonJS = (cb, mod) => function __require2() {
|
|
9
14
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
10
15
|
};
|
|
11
|
-
var __export = (target, all) => {
|
|
12
|
-
for (var name in all)
|
|
13
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
14
|
-
};
|
|
15
16
|
var __copyProps = (to, from, except, desc) => {
|
|
16
17
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
17
18
|
for (let key of __getOwnPropNames(from))
|
|
@@ -28,11 +29,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
28
29
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
29
30
|
mod
|
|
30
31
|
));
|
|
31
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
32
32
|
|
|
33
33
|
// node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs
|
|
34
34
|
var require_interop_require_wildcard = __commonJS({
|
|
35
|
-
"node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs"(
|
|
35
|
+
"node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs"(exports) {
|
|
36
36
|
"use strict";
|
|
37
37
|
function _getRequireWildcardCache(nodeInterop) {
|
|
38
38
|
if (typeof WeakMap !== "function") return null;
|
|
@@ -60,15 +60,15 @@ var require_interop_require_wildcard = __commonJS({
|
|
|
60
60
|
if (cache) cache.set(obj, newObj);
|
|
61
61
|
return newObj;
|
|
62
62
|
}
|
|
63
|
-
|
|
63
|
+
exports._ = _interop_require_wildcard;
|
|
64
64
|
}
|
|
65
65
|
});
|
|
66
66
|
|
|
67
67
|
// node_modules/next/dist/shared/lib/router/utils/querystring.js
|
|
68
68
|
var require_querystring = __commonJS({
|
|
69
|
-
"node_modules/next/dist/shared/lib/router/utils/querystring.js"(
|
|
69
|
+
"node_modules/next/dist/shared/lib/router/utils/querystring.js"(exports) {
|
|
70
70
|
"use strict";
|
|
71
|
-
Object.defineProperty(
|
|
71
|
+
Object.defineProperty(exports, "__esModule", {
|
|
72
72
|
value: true
|
|
73
73
|
});
|
|
74
74
|
function _export(target, all) {
|
|
@@ -77,7 +77,7 @@ var require_querystring = __commonJS({
|
|
|
77
77
|
get: all[name]
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
|
-
_export(
|
|
80
|
+
_export(exports, {
|
|
81
81
|
assign: function() {
|
|
82
82
|
return assign;
|
|
83
83
|
},
|
|
@@ -147,9 +147,9 @@ var require_querystring = __commonJS({
|
|
|
147
147
|
|
|
148
148
|
// node_modules/next/dist/shared/lib/router/utils/format-url.js
|
|
149
149
|
var require_format_url = __commonJS({
|
|
150
|
-
"node_modules/next/dist/shared/lib/router/utils/format-url.js"(
|
|
150
|
+
"node_modules/next/dist/shared/lib/router/utils/format-url.js"(exports) {
|
|
151
151
|
"use strict";
|
|
152
|
-
Object.defineProperty(
|
|
152
|
+
Object.defineProperty(exports, "__esModule", {
|
|
153
153
|
value: true
|
|
154
154
|
});
|
|
155
155
|
function _export(target, all) {
|
|
@@ -158,7 +158,7 @@ var require_format_url = __commonJS({
|
|
|
158
158
|
get: all[name]
|
|
159
159
|
});
|
|
160
160
|
}
|
|
161
|
-
_export(
|
|
161
|
+
_export(exports, {
|
|
162
162
|
formatUrl: function() {
|
|
163
163
|
return formatUrl;
|
|
164
164
|
},
|
|
@@ -236,12 +236,12 @@ var require_format_url = __commonJS({
|
|
|
236
236
|
|
|
237
237
|
// node_modules/next/dist/shared/lib/router/utils/omit.js
|
|
238
238
|
var require_omit = __commonJS({
|
|
239
|
-
"node_modules/next/dist/shared/lib/router/utils/omit.js"(
|
|
239
|
+
"node_modules/next/dist/shared/lib/router/utils/omit.js"(exports) {
|
|
240
240
|
"use strict";
|
|
241
|
-
Object.defineProperty(
|
|
241
|
+
Object.defineProperty(exports, "__esModule", {
|
|
242
242
|
value: true
|
|
243
243
|
});
|
|
244
|
-
Object.defineProperty(
|
|
244
|
+
Object.defineProperty(exports, "omit", {
|
|
245
245
|
enumerable: true,
|
|
246
246
|
get: function() {
|
|
247
247
|
return omit;
|
|
@@ -261,9 +261,9 @@ var require_omit = __commonJS({
|
|
|
261
261
|
|
|
262
262
|
// node_modules/next/dist/shared/lib/utils.js
|
|
263
263
|
var require_utils = __commonJS({
|
|
264
|
-
"node_modules/next/dist/shared/lib/utils.js"(
|
|
264
|
+
"node_modules/next/dist/shared/lib/utils.js"(exports) {
|
|
265
265
|
"use strict";
|
|
266
|
-
Object.defineProperty(
|
|
266
|
+
Object.defineProperty(exports, "__esModule", {
|
|
267
267
|
value: true
|
|
268
268
|
});
|
|
269
269
|
function _export(target, all) {
|
|
@@ -272,7 +272,7 @@ var require_utils = __commonJS({
|
|
|
272
272
|
get: all[name]
|
|
273
273
|
});
|
|
274
274
|
}
|
|
275
|
-
_export(
|
|
275
|
+
_export(exports, {
|
|
276
276
|
DecodeError: function() {
|
|
277
277
|
return DecodeError;
|
|
278
278
|
},
|
|
@@ -451,12 +451,12 @@ var require_utils = __commonJS({
|
|
|
451
451
|
|
|
452
452
|
// node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js
|
|
453
453
|
var require_remove_trailing_slash = __commonJS({
|
|
454
|
-
"node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js"(
|
|
454
|
+
"node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js"(exports) {
|
|
455
455
|
"use strict";
|
|
456
|
-
Object.defineProperty(
|
|
456
|
+
Object.defineProperty(exports, "__esModule", {
|
|
457
457
|
value: true
|
|
458
458
|
});
|
|
459
|
-
Object.defineProperty(
|
|
459
|
+
Object.defineProperty(exports, "removeTrailingSlash", {
|
|
460
460
|
enumerable: true,
|
|
461
461
|
get: function() {
|
|
462
462
|
return removeTrailingSlash;
|
|
@@ -470,12 +470,12 @@ var require_remove_trailing_slash = __commonJS({
|
|
|
470
470
|
|
|
471
471
|
// node_modules/next/dist/shared/lib/router/utils/parse-path.js
|
|
472
472
|
var require_parse_path = __commonJS({
|
|
473
|
-
"node_modules/next/dist/shared/lib/router/utils/parse-path.js"(
|
|
473
|
+
"node_modules/next/dist/shared/lib/router/utils/parse-path.js"(exports) {
|
|
474
474
|
"use strict";
|
|
475
|
-
Object.defineProperty(
|
|
475
|
+
Object.defineProperty(exports, "__esModule", {
|
|
476
476
|
value: true
|
|
477
477
|
});
|
|
478
|
-
Object.defineProperty(
|
|
478
|
+
Object.defineProperty(exports, "parsePath", {
|
|
479
479
|
enumerable: true,
|
|
480
480
|
get: function() {
|
|
481
481
|
return parsePath;
|
|
@@ -503,12 +503,12 @@ var require_parse_path = __commonJS({
|
|
|
503
503
|
|
|
504
504
|
// node_modules/next/dist/client/normalize-trailing-slash.js
|
|
505
505
|
var require_normalize_trailing_slash = __commonJS({
|
|
506
|
-
"node_modules/next/dist/client/normalize-trailing-slash.js"(
|
|
506
|
+
"node_modules/next/dist/client/normalize-trailing-slash.js"(exports, module) {
|
|
507
507
|
"use strict";
|
|
508
|
-
Object.defineProperty(
|
|
508
|
+
Object.defineProperty(exports, "__esModule", {
|
|
509
509
|
value: true
|
|
510
510
|
});
|
|
511
|
-
Object.defineProperty(
|
|
511
|
+
Object.defineProperty(exports, "normalizePathTrailingSlash", {
|
|
512
512
|
enumerable: true,
|
|
513
513
|
get: function() {
|
|
514
514
|
return normalizePathTrailingSlash;
|
|
@@ -532,22 +532,22 @@ var require_normalize_trailing_slash = __commonJS({
|
|
|
532
532
|
}
|
|
533
533
|
return "" + (0, _removetrailingslash.removeTrailingSlash)(pathname) + query + hash;
|
|
534
534
|
};
|
|
535
|
-
if ((typeof
|
|
536
|
-
Object.defineProperty(
|
|
537
|
-
Object.assign(
|
|
538
|
-
|
|
535
|
+
if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
|
|
536
|
+
Object.defineProperty(exports.default, "__esModule", { value: true });
|
|
537
|
+
Object.assign(exports.default, exports);
|
|
538
|
+
module.exports = exports.default;
|
|
539
539
|
}
|
|
540
540
|
}
|
|
541
541
|
});
|
|
542
542
|
|
|
543
543
|
// node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js
|
|
544
544
|
var require_path_has_prefix = __commonJS({
|
|
545
|
-
"node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js"(
|
|
545
|
+
"node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js"(exports) {
|
|
546
546
|
"use strict";
|
|
547
|
-
Object.defineProperty(
|
|
547
|
+
Object.defineProperty(exports, "__esModule", {
|
|
548
548
|
value: true
|
|
549
549
|
});
|
|
550
|
-
Object.defineProperty(
|
|
550
|
+
Object.defineProperty(exports, "pathHasPrefix", {
|
|
551
551
|
enumerable: true,
|
|
552
552
|
get: function() {
|
|
553
553
|
return pathHasPrefix;
|
|
@@ -566,12 +566,12 @@ var require_path_has_prefix = __commonJS({
|
|
|
566
566
|
|
|
567
567
|
// node_modules/next/dist/client/has-base-path.js
|
|
568
568
|
var require_has_base_path = __commonJS({
|
|
569
|
-
"node_modules/next/dist/client/has-base-path.js"(
|
|
569
|
+
"node_modules/next/dist/client/has-base-path.js"(exports, module) {
|
|
570
570
|
"use strict";
|
|
571
|
-
Object.defineProperty(
|
|
571
|
+
Object.defineProperty(exports, "__esModule", {
|
|
572
572
|
value: true
|
|
573
573
|
});
|
|
574
|
-
Object.defineProperty(
|
|
574
|
+
Object.defineProperty(exports, "hasBasePath", {
|
|
575
575
|
enumerable: true,
|
|
576
576
|
get: function() {
|
|
577
577
|
return hasBasePath;
|
|
@@ -582,22 +582,22 @@ var require_has_base_path = __commonJS({
|
|
|
582
582
|
function hasBasePath(path) {
|
|
583
583
|
return (0, _pathhasprefix.pathHasPrefix)(path, basePath);
|
|
584
584
|
}
|
|
585
|
-
if ((typeof
|
|
586
|
-
Object.defineProperty(
|
|
587
|
-
Object.assign(
|
|
588
|
-
|
|
585
|
+
if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
|
|
586
|
+
Object.defineProperty(exports.default, "__esModule", { value: true });
|
|
587
|
+
Object.assign(exports.default, exports);
|
|
588
|
+
module.exports = exports.default;
|
|
589
589
|
}
|
|
590
590
|
}
|
|
591
591
|
});
|
|
592
592
|
|
|
593
593
|
// node_modules/next/dist/shared/lib/router/utils/is-local-url.js
|
|
594
594
|
var require_is_local_url = __commonJS({
|
|
595
|
-
"node_modules/next/dist/shared/lib/router/utils/is-local-url.js"(
|
|
595
|
+
"node_modules/next/dist/shared/lib/router/utils/is-local-url.js"(exports) {
|
|
596
596
|
"use strict";
|
|
597
|
-
Object.defineProperty(
|
|
597
|
+
Object.defineProperty(exports, "__esModule", {
|
|
598
598
|
value: true
|
|
599
599
|
});
|
|
600
|
-
Object.defineProperty(
|
|
600
|
+
Object.defineProperty(exports, "isLocalURL", {
|
|
601
601
|
enumerable: true,
|
|
602
602
|
get: function() {
|
|
603
603
|
return isLocalURL;
|
|
@@ -620,9 +620,9 @@ var require_is_local_url = __commonJS({
|
|
|
620
620
|
|
|
621
621
|
// node_modules/next/dist/shared/lib/router/utils/sorted-routes.js
|
|
622
622
|
var require_sorted_routes = __commonJS({
|
|
623
|
-
"node_modules/next/dist/shared/lib/router/utils/sorted-routes.js"(
|
|
623
|
+
"node_modules/next/dist/shared/lib/router/utils/sorted-routes.js"(exports) {
|
|
624
624
|
"use strict";
|
|
625
|
-
Object.defineProperty(
|
|
625
|
+
Object.defineProperty(exports, "__esModule", {
|
|
626
626
|
value: true
|
|
627
627
|
});
|
|
628
628
|
function _export(target, all) {
|
|
@@ -631,7 +631,7 @@ var require_sorted_routes = __commonJS({
|
|
|
631
631
|
get: all[name]
|
|
632
632
|
});
|
|
633
633
|
}
|
|
634
|
-
_export(
|
|
634
|
+
_export(exports, {
|
|
635
635
|
getSortedRouteObjects: function() {
|
|
636
636
|
return getSortedRouteObjects;
|
|
637
637
|
},
|
|
@@ -830,12 +830,12 @@ var require_sorted_routes = __commonJS({
|
|
|
830
830
|
|
|
831
831
|
// node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js
|
|
832
832
|
var require_ensure_leading_slash = __commonJS({
|
|
833
|
-
"node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js"(
|
|
833
|
+
"node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js"(exports) {
|
|
834
834
|
"use strict";
|
|
835
|
-
Object.defineProperty(
|
|
835
|
+
Object.defineProperty(exports, "__esModule", {
|
|
836
836
|
value: true
|
|
837
837
|
});
|
|
838
|
-
Object.defineProperty(
|
|
838
|
+
Object.defineProperty(exports, "ensureLeadingSlash", {
|
|
839
839
|
enumerable: true,
|
|
840
840
|
get: function() {
|
|
841
841
|
return ensureLeadingSlash;
|
|
@@ -849,9 +849,9 @@ var require_ensure_leading_slash = __commonJS({
|
|
|
849
849
|
|
|
850
850
|
// node_modules/next/dist/shared/lib/segment.js
|
|
851
851
|
var require_segment = __commonJS({
|
|
852
|
-
"node_modules/next/dist/shared/lib/segment.js"(
|
|
852
|
+
"node_modules/next/dist/shared/lib/segment.js"(exports) {
|
|
853
853
|
"use strict";
|
|
854
|
-
Object.defineProperty(
|
|
854
|
+
Object.defineProperty(exports, "__esModule", {
|
|
855
855
|
value: true
|
|
856
856
|
});
|
|
857
857
|
function _export(target, all) {
|
|
@@ -860,7 +860,7 @@ var require_segment = __commonJS({
|
|
|
860
860
|
get: all[name]
|
|
861
861
|
});
|
|
862
862
|
}
|
|
863
|
-
_export(
|
|
863
|
+
_export(exports, {
|
|
864
864
|
DEFAULT_SEGMENT_KEY: function() {
|
|
865
865
|
return DEFAULT_SEGMENT_KEY;
|
|
866
866
|
},
|
|
@@ -898,9 +898,9 @@ var require_segment = __commonJS({
|
|
|
898
898
|
|
|
899
899
|
// node_modules/next/dist/shared/lib/router/utils/app-paths.js
|
|
900
900
|
var require_app_paths = __commonJS({
|
|
901
|
-
"node_modules/next/dist/shared/lib/router/utils/app-paths.js"(
|
|
901
|
+
"node_modules/next/dist/shared/lib/router/utils/app-paths.js"(exports) {
|
|
902
902
|
"use strict";
|
|
903
|
-
Object.defineProperty(
|
|
903
|
+
Object.defineProperty(exports, "__esModule", {
|
|
904
904
|
value: true
|
|
905
905
|
});
|
|
906
906
|
function _export(target, all) {
|
|
@@ -909,7 +909,7 @@ var require_app_paths = __commonJS({
|
|
|
909
909
|
get: all[name]
|
|
910
910
|
});
|
|
911
911
|
}
|
|
912
|
-
_export(
|
|
912
|
+
_export(exports, {
|
|
913
913
|
normalizeAppPath: function() {
|
|
914
914
|
return normalizeAppPath;
|
|
915
915
|
},
|
|
@@ -948,9 +948,9 @@ var require_app_paths = __commonJS({
|
|
|
948
948
|
|
|
949
949
|
// node_modules/next/dist/shared/lib/router/utils/interception-routes.js
|
|
950
950
|
var require_interception_routes = __commonJS({
|
|
951
|
-
"node_modules/next/dist/shared/lib/router/utils/interception-routes.js"(
|
|
951
|
+
"node_modules/next/dist/shared/lib/router/utils/interception-routes.js"(exports) {
|
|
952
952
|
"use strict";
|
|
953
|
-
Object.defineProperty(
|
|
953
|
+
Object.defineProperty(exports, "__esModule", {
|
|
954
954
|
value: true
|
|
955
955
|
});
|
|
956
956
|
function _export(target, all) {
|
|
@@ -959,7 +959,7 @@ var require_interception_routes = __commonJS({
|
|
|
959
959
|
get: all[name]
|
|
960
960
|
});
|
|
961
961
|
}
|
|
962
|
-
_export(
|
|
962
|
+
_export(exports, {
|
|
963
963
|
INTERCEPTION_ROUTE_MARKERS: function() {
|
|
964
964
|
return INTERCEPTION_ROUTE_MARKERS;
|
|
965
965
|
},
|
|
@@ -1047,12 +1047,12 @@ var require_interception_routes = __commonJS({
|
|
|
1047
1047
|
|
|
1048
1048
|
// node_modules/next/dist/shared/lib/router/utils/is-dynamic.js
|
|
1049
1049
|
var require_is_dynamic = __commonJS({
|
|
1050
|
-
"node_modules/next/dist/shared/lib/router/utils/is-dynamic.js"(
|
|
1050
|
+
"node_modules/next/dist/shared/lib/router/utils/is-dynamic.js"(exports) {
|
|
1051
1051
|
"use strict";
|
|
1052
|
-
Object.defineProperty(
|
|
1052
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1053
1053
|
value: true
|
|
1054
1054
|
});
|
|
1055
|
-
Object.defineProperty(
|
|
1055
|
+
Object.defineProperty(exports, "isDynamicRoute", {
|
|
1056
1056
|
enumerable: true,
|
|
1057
1057
|
get: function() {
|
|
1058
1058
|
return isDynamicRoute;
|
|
@@ -1076,9 +1076,9 @@ var require_is_dynamic = __commonJS({
|
|
|
1076
1076
|
|
|
1077
1077
|
// node_modules/next/dist/shared/lib/router/utils/index.js
|
|
1078
1078
|
var require_utils2 = __commonJS({
|
|
1079
|
-
"node_modules/next/dist/shared/lib/router/utils/index.js"(
|
|
1079
|
+
"node_modules/next/dist/shared/lib/router/utils/index.js"(exports) {
|
|
1080
1080
|
"use strict";
|
|
1081
|
-
Object.defineProperty(
|
|
1081
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1082
1082
|
value: true
|
|
1083
1083
|
});
|
|
1084
1084
|
function _export(target, all) {
|
|
@@ -1087,7 +1087,7 @@ var require_utils2 = __commonJS({
|
|
|
1087
1087
|
get: all[name]
|
|
1088
1088
|
});
|
|
1089
1089
|
}
|
|
1090
|
-
_export(
|
|
1090
|
+
_export(exports, {
|
|
1091
1091
|
getSortedRouteObjects: function() {
|
|
1092
1092
|
return _sortedroutes.getSortedRouteObjects;
|
|
1093
1093
|
},
|
|
@@ -1105,12 +1105,12 @@ var require_utils2 = __commonJS({
|
|
|
1105
1105
|
|
|
1106
1106
|
// node_modules/next/dist/shared/lib/router/utils/route-matcher.js
|
|
1107
1107
|
var require_route_matcher = __commonJS({
|
|
1108
|
-
"node_modules/next/dist/shared/lib/router/utils/route-matcher.js"(
|
|
1108
|
+
"node_modules/next/dist/shared/lib/router/utils/route-matcher.js"(exports) {
|
|
1109
1109
|
"use strict";
|
|
1110
|
-
Object.defineProperty(
|
|
1110
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1111
1111
|
value: true
|
|
1112
1112
|
});
|
|
1113
|
-
Object.defineProperty(
|
|
1113
|
+
Object.defineProperty(exports, "getRouteMatcher", {
|
|
1114
1114
|
enumerable: true,
|
|
1115
1115
|
get: function() {
|
|
1116
1116
|
return getRouteMatcher;
|
|
@@ -1152,9 +1152,9 @@ var require_route_matcher = __commonJS({
|
|
|
1152
1152
|
|
|
1153
1153
|
// node_modules/next/dist/lib/constants.js
|
|
1154
1154
|
var require_constants = __commonJS({
|
|
1155
|
-
"node_modules/next/dist/lib/constants.js"(
|
|
1155
|
+
"node_modules/next/dist/lib/constants.js"(exports) {
|
|
1156
1156
|
"use strict";
|
|
1157
|
-
Object.defineProperty(
|
|
1157
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1158
1158
|
value: true
|
|
1159
1159
|
});
|
|
1160
1160
|
function _export(target, all) {
|
|
@@ -1163,7 +1163,7 @@ var require_constants = __commonJS({
|
|
|
1163
1163
|
get: all[name]
|
|
1164
1164
|
});
|
|
1165
1165
|
}
|
|
1166
|
-
_export(
|
|
1166
|
+
_export(exports, {
|
|
1167
1167
|
ACTION_SUFFIX: function() {
|
|
1168
1168
|
return ACTION_SUFFIX;
|
|
1169
1169
|
},
|
|
@@ -1487,12 +1487,12 @@ var require_constants = __commonJS({
|
|
|
1487
1487
|
|
|
1488
1488
|
// node_modules/next/dist/shared/lib/escape-regexp.js
|
|
1489
1489
|
var require_escape_regexp = __commonJS({
|
|
1490
|
-
"node_modules/next/dist/shared/lib/escape-regexp.js"(
|
|
1490
|
+
"node_modules/next/dist/shared/lib/escape-regexp.js"(exports) {
|
|
1491
1491
|
"use strict";
|
|
1492
|
-
Object.defineProperty(
|
|
1492
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1493
1493
|
value: true
|
|
1494
1494
|
});
|
|
1495
|
-
Object.defineProperty(
|
|
1495
|
+
Object.defineProperty(exports, "escapeStringRegexp", {
|
|
1496
1496
|
enumerable: true,
|
|
1497
1497
|
get: function() {
|
|
1498
1498
|
return escapeStringRegexp;
|
|
@@ -1511,9 +1511,9 @@ var require_escape_regexp = __commonJS({
|
|
|
1511
1511
|
|
|
1512
1512
|
// node_modules/next/dist/shared/lib/router/utils/route-regex.js
|
|
1513
1513
|
var require_route_regex = __commonJS({
|
|
1514
|
-
"node_modules/next/dist/shared/lib/router/utils/route-regex.js"(
|
|
1514
|
+
"node_modules/next/dist/shared/lib/router/utils/route-regex.js"(exports) {
|
|
1515
1515
|
"use strict";
|
|
1516
|
-
Object.defineProperty(
|
|
1516
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1517
1517
|
value: true
|
|
1518
1518
|
});
|
|
1519
1519
|
function _export(target, all) {
|
|
@@ -1522,7 +1522,7 @@ var require_route_regex = __commonJS({
|
|
|
1522
1522
|
get: all[name]
|
|
1523
1523
|
});
|
|
1524
1524
|
}
|
|
1525
|
-
_export(
|
|
1525
|
+
_export(exports, {
|
|
1526
1526
|
getNamedMiddlewareRegex: function() {
|
|
1527
1527
|
return getNamedMiddlewareRegex;
|
|
1528
1528
|
},
|
|
@@ -1739,12 +1739,12 @@ var require_route_regex = __commonJS({
|
|
|
1739
1739
|
|
|
1740
1740
|
// node_modules/next/dist/shared/lib/router/utils/interpolate-as.js
|
|
1741
1741
|
var require_interpolate_as = __commonJS({
|
|
1742
|
-
"node_modules/next/dist/shared/lib/router/utils/interpolate-as.js"(
|
|
1742
|
+
"node_modules/next/dist/shared/lib/router/utils/interpolate-as.js"(exports) {
|
|
1743
1743
|
"use strict";
|
|
1744
|
-
Object.defineProperty(
|
|
1744
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1745
1745
|
value: true
|
|
1746
1746
|
});
|
|
1747
|
-
Object.defineProperty(
|
|
1747
|
+
Object.defineProperty(exports, "interpolateAs", {
|
|
1748
1748
|
enumerable: true,
|
|
1749
1749
|
get: function() {
|
|
1750
1750
|
return interpolateAs;
|
|
@@ -1795,12 +1795,12 @@ var require_interpolate_as = __commonJS({
|
|
|
1795
1795
|
|
|
1796
1796
|
// node_modules/next/dist/client/resolve-href.js
|
|
1797
1797
|
var require_resolve_href = __commonJS({
|
|
1798
|
-
"node_modules/next/dist/client/resolve-href.js"(
|
|
1798
|
+
"node_modules/next/dist/client/resolve-href.js"(exports, module) {
|
|
1799
1799
|
"use strict";
|
|
1800
|
-
Object.defineProperty(
|
|
1800
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1801
1801
|
value: true
|
|
1802
1802
|
});
|
|
1803
|
-
Object.defineProperty(
|
|
1803
|
+
Object.defineProperty(exports, "resolveHref", {
|
|
1804
1804
|
enumerable: true,
|
|
1805
1805
|
get: function() {
|
|
1806
1806
|
return resolveHref;
|
|
@@ -1861,22 +1861,22 @@ var require_resolve_href = __commonJS({
|
|
|
1861
1861
|
] : urlAsString;
|
|
1862
1862
|
}
|
|
1863
1863
|
}
|
|
1864
|
-
if ((typeof
|
|
1865
|
-
Object.defineProperty(
|
|
1866
|
-
Object.assign(
|
|
1867
|
-
|
|
1864
|
+
if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
|
|
1865
|
+
Object.defineProperty(exports.default, "__esModule", { value: true });
|
|
1866
|
+
Object.assign(exports.default, exports);
|
|
1867
|
+
module.exports = exports.default;
|
|
1868
1868
|
}
|
|
1869
1869
|
}
|
|
1870
1870
|
});
|
|
1871
1871
|
|
|
1872
1872
|
// node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js
|
|
1873
1873
|
var require_add_path_prefix = __commonJS({
|
|
1874
|
-
"node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js"(
|
|
1874
|
+
"node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js"(exports) {
|
|
1875
1875
|
"use strict";
|
|
1876
|
-
Object.defineProperty(
|
|
1876
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1877
1877
|
value: true
|
|
1878
1878
|
});
|
|
1879
|
-
Object.defineProperty(
|
|
1879
|
+
Object.defineProperty(exports, "addPathPrefix", {
|
|
1880
1880
|
enumerable: true,
|
|
1881
1881
|
get: function() {
|
|
1882
1882
|
return addPathPrefix;
|
|
@@ -1895,12 +1895,12 @@ var require_add_path_prefix = __commonJS({
|
|
|
1895
1895
|
|
|
1896
1896
|
// node_modules/next/dist/shared/lib/router/utils/add-locale.js
|
|
1897
1897
|
var require_add_locale = __commonJS({
|
|
1898
|
-
"node_modules/next/dist/shared/lib/router/utils/add-locale.js"(
|
|
1898
|
+
"node_modules/next/dist/shared/lib/router/utils/add-locale.js"(exports) {
|
|
1899
1899
|
"use strict";
|
|
1900
|
-
Object.defineProperty(
|
|
1900
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1901
1901
|
value: true
|
|
1902
1902
|
});
|
|
1903
|
-
Object.defineProperty(
|
|
1903
|
+
Object.defineProperty(exports, "addLocale", {
|
|
1904
1904
|
enumerable: true,
|
|
1905
1905
|
get: function() {
|
|
1906
1906
|
return addLocale;
|
|
@@ -1922,12 +1922,12 @@ var require_add_locale = __commonJS({
|
|
|
1922
1922
|
|
|
1923
1923
|
// node_modules/next/dist/client/add-locale.js
|
|
1924
1924
|
var require_add_locale2 = __commonJS({
|
|
1925
|
-
"node_modules/next/dist/client/add-locale.js"(
|
|
1925
|
+
"node_modules/next/dist/client/add-locale.js"(exports, module) {
|
|
1926
1926
|
"use strict";
|
|
1927
|
-
Object.defineProperty(
|
|
1927
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1928
1928
|
value: true
|
|
1929
1929
|
});
|
|
1930
|
-
Object.defineProperty(
|
|
1930
|
+
Object.defineProperty(exports, "addLocale", {
|
|
1931
1931
|
enumerable: true,
|
|
1932
1932
|
get: function() {
|
|
1933
1933
|
return addLocale;
|
|
@@ -1943,40 +1943,40 @@ var require_add_locale2 = __commonJS({
|
|
|
1943
1943
|
}
|
|
1944
1944
|
return path;
|
|
1945
1945
|
};
|
|
1946
|
-
if ((typeof
|
|
1947
|
-
Object.defineProperty(
|
|
1948
|
-
Object.assign(
|
|
1949
|
-
|
|
1946
|
+
if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
|
|
1947
|
+
Object.defineProperty(exports.default, "__esModule", { value: true });
|
|
1948
|
+
Object.assign(exports.default, exports);
|
|
1949
|
+
module.exports = exports.default;
|
|
1950
1950
|
}
|
|
1951
1951
|
}
|
|
1952
1952
|
});
|
|
1953
1953
|
|
|
1954
1954
|
// node_modules/@swc/helpers/cjs/_interop_require_default.cjs
|
|
1955
1955
|
var require_interop_require_default = __commonJS({
|
|
1956
|
-
"node_modules/@swc/helpers/cjs/_interop_require_default.cjs"(
|
|
1956
|
+
"node_modules/@swc/helpers/cjs/_interop_require_default.cjs"(exports) {
|
|
1957
1957
|
"use strict";
|
|
1958
1958
|
function _interop_require_default(obj) {
|
|
1959
1959
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
1960
1960
|
}
|
|
1961
|
-
|
|
1961
|
+
exports._ = _interop_require_default;
|
|
1962
1962
|
}
|
|
1963
1963
|
});
|
|
1964
1964
|
|
|
1965
1965
|
// node_modules/next/dist/shared/lib/router-context.shared-runtime.js
|
|
1966
1966
|
var require_router_context_shared_runtime = __commonJS({
|
|
1967
|
-
"node_modules/next/dist/shared/lib/router-context.shared-runtime.js"(
|
|
1967
|
+
"node_modules/next/dist/shared/lib/router-context.shared-runtime.js"(exports) {
|
|
1968
1968
|
"use strict";
|
|
1969
|
-
Object.defineProperty(
|
|
1969
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1970
1970
|
value: true
|
|
1971
1971
|
});
|
|
1972
|
-
Object.defineProperty(
|
|
1972
|
+
Object.defineProperty(exports, "RouterContext", {
|
|
1973
1973
|
enumerable: true,
|
|
1974
1974
|
get: function() {
|
|
1975
1975
|
return RouterContext;
|
|
1976
1976
|
}
|
|
1977
1977
|
});
|
|
1978
1978
|
var _interop_require_default = require_interop_require_default();
|
|
1979
|
-
var _react = /* @__PURE__ */ _interop_require_default._(
|
|
1979
|
+
var _react = /* @__PURE__ */ _interop_require_default._(__require("react"));
|
|
1980
1980
|
var RouterContext = _react.default.createContext(null);
|
|
1981
1981
|
if (process.env.NODE_ENV !== "production") {
|
|
1982
1982
|
RouterContext.displayName = "RouterContext";
|
|
@@ -1986,9 +1986,9 @@ var require_router_context_shared_runtime = __commonJS({
|
|
|
1986
1986
|
|
|
1987
1987
|
// node_modules/next/dist/client/request-idle-callback.js
|
|
1988
1988
|
var require_request_idle_callback = __commonJS({
|
|
1989
|
-
"node_modules/next/dist/client/request-idle-callback.js"(
|
|
1989
|
+
"node_modules/next/dist/client/request-idle-callback.js"(exports, module) {
|
|
1990
1990
|
"use strict";
|
|
1991
|
-
Object.defineProperty(
|
|
1991
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1992
1992
|
value: true
|
|
1993
1993
|
});
|
|
1994
1994
|
function _export(target, all) {
|
|
@@ -1997,7 +1997,7 @@ var require_request_idle_callback = __commonJS({
|
|
|
1997
1997
|
get: all[name]
|
|
1998
1998
|
});
|
|
1999
1999
|
}
|
|
2000
|
-
_export(
|
|
2000
|
+
_export(exports, {
|
|
2001
2001
|
cancelIdleCallback: function() {
|
|
2002
2002
|
return cancelIdleCallback;
|
|
2003
2003
|
},
|
|
@@ -2019,28 +2019,28 @@ var require_request_idle_callback = __commonJS({
|
|
|
2019
2019
|
var cancelIdleCallback = typeof self !== "undefined" && self.cancelIdleCallback && self.cancelIdleCallback.bind(window) || function(id) {
|
|
2020
2020
|
return clearTimeout(id);
|
|
2021
2021
|
};
|
|
2022
|
-
if ((typeof
|
|
2023
|
-
Object.defineProperty(
|
|
2024
|
-
Object.assign(
|
|
2025
|
-
|
|
2022
|
+
if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
|
|
2023
|
+
Object.defineProperty(exports.default, "__esModule", { value: true });
|
|
2024
|
+
Object.assign(exports.default, exports);
|
|
2025
|
+
module.exports = exports.default;
|
|
2026
2026
|
}
|
|
2027
2027
|
}
|
|
2028
2028
|
});
|
|
2029
2029
|
|
|
2030
2030
|
// node_modules/next/dist/client/use-intersection.js
|
|
2031
2031
|
var require_use_intersection = __commonJS({
|
|
2032
|
-
"node_modules/next/dist/client/use-intersection.js"(
|
|
2032
|
+
"node_modules/next/dist/client/use-intersection.js"(exports, module) {
|
|
2033
2033
|
"use strict";
|
|
2034
|
-
Object.defineProperty(
|
|
2034
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2035
2035
|
value: true
|
|
2036
2036
|
});
|
|
2037
|
-
Object.defineProperty(
|
|
2037
|
+
Object.defineProperty(exports, "useIntersection", {
|
|
2038
2038
|
enumerable: true,
|
|
2039
2039
|
get: function() {
|
|
2040
2040
|
return useIntersection;
|
|
2041
2041
|
}
|
|
2042
2042
|
});
|
|
2043
|
-
var _react =
|
|
2043
|
+
var _react = __require("react");
|
|
2044
2044
|
var _requestidlecallback = require_request_idle_callback();
|
|
2045
2045
|
var hasIntersectionObserver = typeof IntersectionObserver === "function";
|
|
2046
2046
|
var observers = /* @__PURE__ */ new Map();
|
|
@@ -2135,22 +2135,22 @@ var require_use_intersection = __commonJS({
|
|
|
2135
2135
|
resetVisible
|
|
2136
2136
|
];
|
|
2137
2137
|
}
|
|
2138
|
-
if ((typeof
|
|
2139
|
-
Object.defineProperty(
|
|
2140
|
-
Object.assign(
|
|
2141
|
-
|
|
2138
|
+
if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
|
|
2139
|
+
Object.defineProperty(exports.default, "__esModule", { value: true });
|
|
2140
|
+
Object.assign(exports.default, exports);
|
|
2141
|
+
module.exports = exports.default;
|
|
2142
2142
|
}
|
|
2143
2143
|
}
|
|
2144
2144
|
});
|
|
2145
2145
|
|
|
2146
2146
|
// node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js
|
|
2147
2147
|
var require_normalize_locale_path = __commonJS({
|
|
2148
|
-
"node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js"(
|
|
2148
|
+
"node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js"(exports) {
|
|
2149
2149
|
"use strict";
|
|
2150
|
-
Object.defineProperty(
|
|
2150
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2151
2151
|
value: true
|
|
2152
2152
|
});
|
|
2153
|
-
Object.defineProperty(
|
|
2153
|
+
Object.defineProperty(exports, "normalizeLocalePath", {
|
|
2154
2154
|
enumerable: true,
|
|
2155
2155
|
get: function() {
|
|
2156
2156
|
return normalizeLocalePath;
|
|
@@ -2188,12 +2188,12 @@ var require_normalize_locale_path = __commonJS({
|
|
|
2188
2188
|
|
|
2189
2189
|
// node_modules/next/dist/client/normalize-locale-path.js
|
|
2190
2190
|
var require_normalize_locale_path2 = __commonJS({
|
|
2191
|
-
"node_modules/next/dist/client/normalize-locale-path.js"(
|
|
2191
|
+
"node_modules/next/dist/client/normalize-locale-path.js"(exports, module) {
|
|
2192
2192
|
"use strict";
|
|
2193
|
-
Object.defineProperty(
|
|
2193
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2194
2194
|
value: true
|
|
2195
2195
|
});
|
|
2196
|
-
Object.defineProperty(
|
|
2196
|
+
Object.defineProperty(exports, "normalizeLocalePath", {
|
|
2197
2197
|
enumerable: true,
|
|
2198
2198
|
get: function() {
|
|
2199
2199
|
return normalizeLocalePath;
|
|
@@ -2208,22 +2208,22 @@ var require_normalize_locale_path2 = __commonJS({
|
|
|
2208
2208
|
detectedLocale: void 0
|
|
2209
2209
|
};
|
|
2210
2210
|
};
|
|
2211
|
-
if ((typeof
|
|
2212
|
-
Object.defineProperty(
|
|
2213
|
-
Object.assign(
|
|
2214
|
-
|
|
2211
|
+
if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
|
|
2212
|
+
Object.defineProperty(exports.default, "__esModule", { value: true });
|
|
2213
|
+
Object.assign(exports.default, exports);
|
|
2214
|
+
module.exports = exports.default;
|
|
2215
2215
|
}
|
|
2216
2216
|
}
|
|
2217
2217
|
});
|
|
2218
2218
|
|
|
2219
2219
|
// node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js
|
|
2220
2220
|
var require_detect_domain_locale = __commonJS({
|
|
2221
|
-
"node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js"(
|
|
2221
|
+
"node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js"(exports) {
|
|
2222
2222
|
"use strict";
|
|
2223
|
-
Object.defineProperty(
|
|
2223
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2224
2224
|
value: true
|
|
2225
2225
|
});
|
|
2226
|
-
Object.defineProperty(
|
|
2226
|
+
Object.defineProperty(exports, "detectDomainLocale", {
|
|
2227
2227
|
enumerable: true,
|
|
2228
2228
|
get: function() {
|
|
2229
2229
|
return detectDomainLocale;
|
|
@@ -2247,12 +2247,12 @@ var require_detect_domain_locale = __commonJS({
|
|
|
2247
2247
|
|
|
2248
2248
|
// node_modules/next/dist/client/detect-domain-locale.js
|
|
2249
2249
|
var require_detect_domain_locale2 = __commonJS({
|
|
2250
|
-
"node_modules/next/dist/client/detect-domain-locale.js"(
|
|
2250
|
+
"node_modules/next/dist/client/detect-domain-locale.js"(exports, module) {
|
|
2251
2251
|
"use strict";
|
|
2252
|
-
Object.defineProperty(
|
|
2252
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2253
2253
|
value: true
|
|
2254
2254
|
});
|
|
2255
|
-
Object.defineProperty(
|
|
2255
|
+
Object.defineProperty(exports, "detectDomainLocale", {
|
|
2256
2256
|
enumerable: true,
|
|
2257
2257
|
get: function() {
|
|
2258
2258
|
return detectDomainLocale;
|
|
@@ -2266,22 +2266,22 @@ var require_detect_domain_locale2 = __commonJS({
|
|
|
2266
2266
|
return require_detect_domain_locale().detectDomainLocale(...args);
|
|
2267
2267
|
}
|
|
2268
2268
|
};
|
|
2269
|
-
if ((typeof
|
|
2270
|
-
Object.defineProperty(
|
|
2271
|
-
Object.assign(
|
|
2272
|
-
|
|
2269
|
+
if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
|
|
2270
|
+
Object.defineProperty(exports.default, "__esModule", { value: true });
|
|
2271
|
+
Object.assign(exports.default, exports);
|
|
2272
|
+
module.exports = exports.default;
|
|
2273
2273
|
}
|
|
2274
2274
|
}
|
|
2275
2275
|
});
|
|
2276
2276
|
|
|
2277
2277
|
// node_modules/next/dist/client/get-domain-locale.js
|
|
2278
2278
|
var require_get_domain_locale = __commonJS({
|
|
2279
|
-
"node_modules/next/dist/client/get-domain-locale.js"(
|
|
2279
|
+
"node_modules/next/dist/client/get-domain-locale.js"(exports, module) {
|
|
2280
2280
|
"use strict";
|
|
2281
|
-
Object.defineProperty(
|
|
2281
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2282
2282
|
value: true
|
|
2283
2283
|
});
|
|
2284
|
-
Object.defineProperty(
|
|
2284
|
+
Object.defineProperty(exports, "getDomainLocale", {
|
|
2285
2285
|
enumerable: true,
|
|
2286
2286
|
get: function() {
|
|
2287
2287
|
return getDomainLocale;
|
|
@@ -2305,22 +2305,22 @@ var require_get_domain_locale = __commonJS({
|
|
|
2305
2305
|
return false;
|
|
2306
2306
|
}
|
|
2307
2307
|
}
|
|
2308
|
-
if ((typeof
|
|
2309
|
-
Object.defineProperty(
|
|
2310
|
-
Object.assign(
|
|
2311
|
-
|
|
2308
|
+
if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
|
|
2309
|
+
Object.defineProperty(exports.default, "__esModule", { value: true });
|
|
2310
|
+
Object.assign(exports.default, exports);
|
|
2311
|
+
module.exports = exports.default;
|
|
2312
2312
|
}
|
|
2313
2313
|
}
|
|
2314
2314
|
});
|
|
2315
2315
|
|
|
2316
2316
|
// node_modules/next/dist/client/add-base-path.js
|
|
2317
2317
|
var require_add_base_path = __commonJS({
|
|
2318
|
-
"node_modules/next/dist/client/add-base-path.js"(
|
|
2318
|
+
"node_modules/next/dist/client/add-base-path.js"(exports, module) {
|
|
2319
2319
|
"use strict";
|
|
2320
|
-
Object.defineProperty(
|
|
2320
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2321
2321
|
value: true
|
|
2322
2322
|
});
|
|
2323
|
-
Object.defineProperty(
|
|
2323
|
+
Object.defineProperty(exports, "addBasePath", {
|
|
2324
2324
|
enumerable: true,
|
|
2325
2325
|
get: function() {
|
|
2326
2326
|
return addBasePath;
|
|
@@ -2332,28 +2332,28 @@ var require_add_base_path = __commonJS({
|
|
|
2332
2332
|
function addBasePath(path, required) {
|
|
2333
2333
|
return (0, _normalizetrailingslash.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH && !required ? path : (0, _addpathprefix.addPathPrefix)(path, basePath));
|
|
2334
2334
|
}
|
|
2335
|
-
if ((typeof
|
|
2336
|
-
Object.defineProperty(
|
|
2337
|
-
Object.assign(
|
|
2338
|
-
|
|
2335
|
+
if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
|
|
2336
|
+
Object.defineProperty(exports.default, "__esModule", { value: true });
|
|
2337
|
+
Object.assign(exports.default, exports);
|
|
2338
|
+
module.exports = exports.default;
|
|
2339
2339
|
}
|
|
2340
2340
|
}
|
|
2341
2341
|
});
|
|
2342
2342
|
|
|
2343
2343
|
// node_modules/next/dist/client/use-merged-ref.js
|
|
2344
2344
|
var require_use_merged_ref = __commonJS({
|
|
2345
|
-
"node_modules/next/dist/client/use-merged-ref.js"(
|
|
2345
|
+
"node_modules/next/dist/client/use-merged-ref.js"(exports, module) {
|
|
2346
2346
|
"use strict";
|
|
2347
|
-
Object.defineProperty(
|
|
2347
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2348
2348
|
value: true
|
|
2349
2349
|
});
|
|
2350
|
-
Object.defineProperty(
|
|
2350
|
+
Object.defineProperty(exports, "useMergedRef", {
|
|
2351
2351
|
enumerable: true,
|
|
2352
2352
|
get: function() {
|
|
2353
2353
|
return useMergedRef;
|
|
2354
2354
|
}
|
|
2355
2355
|
});
|
|
2356
|
-
var _react =
|
|
2356
|
+
var _react = __require("react");
|
|
2357
2357
|
function useMergedRef(refA, refB) {
|
|
2358
2358
|
const cleanupA = (0, _react.useRef)(null);
|
|
2359
2359
|
const cleanupB = (0, _react.useRef)(null);
|
|
@@ -2397,22 +2397,22 @@ var require_use_merged_ref = __commonJS({
|
|
|
2397
2397
|
};
|
|
2398
2398
|
}
|
|
2399
2399
|
}
|
|
2400
|
-
if ((typeof
|
|
2401
|
-
Object.defineProperty(
|
|
2402
|
-
Object.assign(
|
|
2403
|
-
|
|
2400
|
+
if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
|
|
2401
|
+
Object.defineProperty(exports.default, "__esModule", { value: true });
|
|
2402
|
+
Object.assign(exports.default, exports);
|
|
2403
|
+
module.exports = exports.default;
|
|
2404
2404
|
}
|
|
2405
2405
|
}
|
|
2406
2406
|
});
|
|
2407
2407
|
|
|
2408
2408
|
// node_modules/next/dist/shared/lib/utils/error-once.js
|
|
2409
2409
|
var require_error_once = __commonJS({
|
|
2410
|
-
"node_modules/next/dist/shared/lib/utils/error-once.js"(
|
|
2410
|
+
"node_modules/next/dist/shared/lib/utils/error-once.js"(exports) {
|
|
2411
2411
|
"use strict";
|
|
2412
|
-
Object.defineProperty(
|
|
2412
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2413
2413
|
value: true
|
|
2414
2414
|
});
|
|
2415
|
-
Object.defineProperty(
|
|
2415
|
+
Object.defineProperty(exports, "errorOnce", {
|
|
2416
2416
|
enumerable: true,
|
|
2417
2417
|
get: function() {
|
|
2418
2418
|
return errorOnce;
|
|
@@ -2434,10 +2434,10 @@ var require_error_once = __commonJS({
|
|
|
2434
2434
|
|
|
2435
2435
|
// node_modules/next/dist/client/link.js
|
|
2436
2436
|
var require_link = __commonJS({
|
|
2437
|
-
"node_modules/next/dist/client/link.js"(
|
|
2438
|
-
"use strict";
|
|
2437
|
+
"node_modules/next/dist/client/link.js"(exports, module) {
|
|
2439
2438
|
"use client";
|
|
2440
|
-
|
|
2439
|
+
"use strict";
|
|
2440
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2441
2441
|
value: true
|
|
2442
2442
|
});
|
|
2443
2443
|
function _export(target, all) {
|
|
@@ -2446,7 +2446,7 @@ var require_link = __commonJS({
|
|
|
2446
2446
|
get: all[name]
|
|
2447
2447
|
});
|
|
2448
2448
|
}
|
|
2449
|
-
_export(
|
|
2449
|
+
_export(exports, {
|
|
2450
2450
|
default: function() {
|
|
2451
2451
|
return _default;
|
|
2452
2452
|
},
|
|
@@ -2455,8 +2455,8 @@ var require_link = __commonJS({
|
|
|
2455
2455
|
}
|
|
2456
2456
|
});
|
|
2457
2457
|
var _interop_require_wildcard = require_interop_require_wildcard();
|
|
2458
|
-
var _jsxruntime =
|
|
2459
|
-
var _react = /* @__PURE__ */ _interop_require_wildcard._(
|
|
2458
|
+
var _jsxruntime = __require("react/jsx-runtime");
|
|
2459
|
+
var _react = /* @__PURE__ */ _interop_require_wildcard._(__require("react"));
|
|
2460
2460
|
var _resolvehref = require_resolve_href();
|
|
2461
2461
|
var _islocalurl = require_is_local_url();
|
|
2462
2462
|
var _formaturl = require_format_url();
|
|
@@ -2823,176 +2823,28 @@ var require_link = __commonJS({
|
|
|
2823
2823
|
return (0, _react.useContext)(LinkStatusContext);
|
|
2824
2824
|
};
|
|
2825
2825
|
var _default = Link2;
|
|
2826
|
-
if ((typeof
|
|
2827
|
-
Object.defineProperty(
|
|
2828
|
-
Object.assign(
|
|
2829
|
-
|
|
2826
|
+
if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
|
|
2827
|
+
Object.defineProperty(exports.default, "__esModule", { value: true });
|
|
2828
|
+
Object.assign(exports.default, exports);
|
|
2829
|
+
module.exports = exports.default;
|
|
2830
2830
|
}
|
|
2831
2831
|
}
|
|
2832
2832
|
});
|
|
2833
2833
|
|
|
2834
2834
|
// node_modules/next/link.js
|
|
2835
2835
|
var require_link2 = __commonJS({
|
|
2836
|
-
"node_modules/next/link.js"(
|
|
2837
|
-
|
|
2838
|
-
module2.exports = require_link();
|
|
2836
|
+
"node_modules/next/link.js"(exports, module) {
|
|
2837
|
+
module.exports = require_link();
|
|
2839
2838
|
}
|
|
2840
2839
|
});
|
|
2841
2840
|
|
|
2842
|
-
// src/
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
ArrayUtil: () => ArrayUtil,
|
|
2848
|
-
Avatar: () => Avatar,
|
|
2849
|
-
AvatarGroup: () => AvatarGroup,
|
|
2850
|
-
BreadCrumb: () => BreadCrumb,
|
|
2851
|
-
ButtonColorUtil: () => ButtonColorUtil,
|
|
2852
|
-
ButtonUtil: () => ButtonUtil,
|
|
2853
|
-
Carousel: () => Carousel,
|
|
2854
|
-
Checkbox: () => Checkbox,
|
|
2855
|
-
CheckboxProperty: () => CheckboxProperty,
|
|
2856
|
-
CheckboxUncontrolled: () => CheckboxUncontrolled,
|
|
2857
|
-
Chip: () => Chip,
|
|
2858
|
-
ChipList: () => ChipList,
|
|
2859
|
-
Circle: () => Circle,
|
|
2860
|
-
ConfirmDialog: () => ConfirmDialog,
|
|
2861
|
-
ConfirmModal: () => ConfirmModal,
|
|
2862
|
-
DatePicker: () => DatePicker,
|
|
2863
|
-
DatePickerUncontrolled: () => DatePickerUncontrolled,
|
|
2864
|
-
DateProperty: () => DateProperty,
|
|
2865
|
-
DateTimePicker: () => DateTimePicker,
|
|
2866
|
-
DayPicker: () => DayPicker,
|
|
2867
|
-
DayPickerUncontrolled: () => DayPickerUncontrolled,
|
|
2868
|
-
Dialog: () => Dialog,
|
|
2869
|
-
DiscardChangesModal: () => DiscardChangesModal,
|
|
2870
|
-
DividerInserter: () => DividerInserter,
|
|
2871
|
-
EaseFunctions: () => EaseFunctions,
|
|
2872
|
-
ErrorComponent: () => ErrorComponent,
|
|
2873
|
-
Expandable: () => Expandable,
|
|
2874
|
-
ExpandableUncontrolled: () => ExpandableUncontrolled,
|
|
2875
|
-
FAQSection: () => FAQSection,
|
|
2876
|
-
FormInput: () => FormInput,
|
|
2877
|
-
Helpwave: () => Helpwave,
|
|
2878
|
-
HelpwaveBadge: () => HelpwaveBadge,
|
|
2879
|
-
IconButton: () => IconButton,
|
|
2880
|
-
Input: () => Input,
|
|
2881
|
-
InputModal: () => InputModal,
|
|
2882
|
-
InputUncontrolled: () => InputUncontrolled,
|
|
2883
|
-
Label: () => Label,
|
|
2884
|
-
LanguageContext: () => LanguageContext,
|
|
2885
|
-
LanguageModal: () => LanguageModal,
|
|
2886
|
-
LanguageProvider: () => LanguageProvider,
|
|
2887
|
-
LanguageUtil: () => LanguageUtil,
|
|
2888
|
-
LoadingAndErrorComponent: () => LoadingAndErrorComponent,
|
|
2889
|
-
LoadingAnimation: () => LoadingAnimation,
|
|
2890
|
-
LoadingButton: () => LoadingButton,
|
|
2891
|
-
LocalStorageService: () => LocalStorageService,
|
|
2892
|
-
LoopingArrayCalculator: () => LoopingArrayCalculator,
|
|
2893
|
-
MarkdownInterpreter: () => MarkdownInterpreter,
|
|
2894
|
-
Menu: () => Menu2,
|
|
2895
|
-
MenuItem: () => MenuItem,
|
|
2896
|
-
Modal: () => Modal,
|
|
2897
|
-
MultiSearchWithMapping: () => MultiSearchWithMapping,
|
|
2898
|
-
MultiSelect: () => MultiSelect,
|
|
2899
|
-
MultiSelectProperty: () => MultiSelectProperty,
|
|
2900
|
-
MultiSubjectSearchWithMapping: () => MultiSubjectSearchWithMapping,
|
|
2901
|
-
NumberProperty: () => NumberProperty,
|
|
2902
|
-
OutlineButton: () => OutlineButton,
|
|
2903
|
-
Overlay: () => Overlay,
|
|
2904
|
-
OverlayHeader: () => OverlayHeader,
|
|
2905
|
-
Pagination: () => Pagination,
|
|
2906
|
-
ProgressIndicator: () => ProgressIndicator,
|
|
2907
|
-
PropertyBase: () => PropertyBase,
|
|
2908
|
-
RadialRings: () => RadialRings,
|
|
2909
|
-
Ring: () => Ring,
|
|
2910
|
-
RingWave: () => RingWave,
|
|
2911
|
-
ScrollPicker: () => ScrollPicker,
|
|
2912
|
-
SearchableList: () => SearchableList,
|
|
2913
|
-
SearchableSelect: () => SearchableSelect,
|
|
2914
|
-
Select: () => Select,
|
|
2915
|
-
SelectUncontrolled: () => SelectUncontrolled,
|
|
2916
|
-
SessionStorageService: () => SessionStorageService,
|
|
2917
|
-
SimpleSearch: () => SimpleSearch,
|
|
2918
|
-
SimpleSearchWithMapping: () => SimpleSearchWithMapping,
|
|
2919
|
-
SingleSelectProperty: () => SingleSelectProperty,
|
|
2920
|
-
SolidButton: () => SolidButton,
|
|
2921
|
-
SortButton: () => SortButton,
|
|
2922
|
-
StepperBar: () => StepperBar,
|
|
2923
|
-
StepperBarUncontrolled: () => StepperBarUncontrolled,
|
|
2924
|
-
Table: () => Table,
|
|
2925
|
-
TagIcon: () => TagIcon,
|
|
2926
|
-
TextButton: () => TextButton,
|
|
2927
|
-
TextImage: () => TextImage,
|
|
2928
|
-
TextProperty: () => TextProperty,
|
|
2929
|
-
Textarea: () => Textarea,
|
|
2930
|
-
TextareaUncontrolled: () => TextareaUncontrolled,
|
|
2931
|
-
ThemeContext: () => ThemeContext,
|
|
2932
|
-
ThemeModal: () => ThemeModal,
|
|
2933
|
-
ThemeProvider: () => ThemeProvider,
|
|
2934
|
-
ThemeUtil: () => ThemeUtil,
|
|
2935
|
-
Tile: () => Tile,
|
|
2936
|
-
TimeDisplay: () => TimeDisplay,
|
|
2937
|
-
TimePicker: () => TimePicker,
|
|
2938
|
-
TimePickerUncontrolled: () => TimePickerUncontrolled,
|
|
2939
|
-
ToggleableInput: () => ToggleableInput,
|
|
2940
|
-
ToggleableInputUncontrolled: () => ToggleableInputUncontrolled,
|
|
2941
|
-
Tooltip: () => Tooltip,
|
|
2942
|
-
VerticalDivider: () => VerticalDivider,
|
|
2943
|
-
YearMonthPicker: () => YearMonthPicker,
|
|
2944
|
-
YearMonthPickerUncontrolled: () => YearMonthPickerUncontrolled,
|
|
2945
|
-
addDuration: () => addDuration,
|
|
2946
|
-
addElementToTable: () => addElementToTable,
|
|
2947
|
-
avatarSizeMapping: () => avatarSizeMapping,
|
|
2948
|
-
avtarSizeList: () => avtarSizeList,
|
|
2949
|
-
builder: () => builder,
|
|
2950
|
-
changeDuration: () => changeDuration,
|
|
2951
|
-
changeTableSelectionSingle: () => changeTableSelectionSingle,
|
|
2952
|
-
clamp: () => clamp,
|
|
2953
|
-
closestMatch: () => closestMatch,
|
|
2954
|
-
createLoopingList: () => createLoopingList,
|
|
2955
|
-
createLoopingListWithIndex: () => createLoopingListWithIndex,
|
|
2956
|
-
defaultTableStatePagination: () => defaultTableStatePagination,
|
|
2957
|
-
defaultTableStateSelection: () => defaultTableStateSelection,
|
|
2958
|
-
equalDate: () => equalDate,
|
|
2959
|
-
equalSizeGroups: () => equalSizeGroups,
|
|
2960
|
-
filterNews: () => filterNews,
|
|
2961
|
-
formatDate: () => formatDate,
|
|
2962
|
-
formatDateTime: () => formatDateTime,
|
|
2963
|
-
generateShadingColors: () => generateShadingColors,
|
|
2964
|
-
getBetweenDuration: () => getBetweenDuration,
|
|
2965
|
-
getDaysInMonth: () => getDaysInMonth,
|
|
2966
|
-
getNeighbours: () => getNeighbours,
|
|
2967
|
-
getWeeksForCalenderMonth: () => getWeeksForCalenderMonth,
|
|
2968
|
-
isDataObjectSelected: () => isDataObjectSelected,
|
|
2969
|
-
isInTimeSpan: () => isInTimeSpan,
|
|
2970
|
-
localizedNewsSchema: () => localizedNewsSchema,
|
|
2971
|
-
monthsList: () => monthsList,
|
|
2972
|
-
newsListSchema: () => newsListSchema,
|
|
2973
|
-
newsSchema: () => newsSchema,
|
|
2974
|
-
noop: () => noop,
|
|
2975
|
-
pageForItem: () => pageForItem,
|
|
2976
|
-
range: () => range,
|
|
2977
|
-
removeFromTableSelection: () => removeFromTableSelection,
|
|
2978
|
-
shadingColorValues: () => shadingColorValues,
|
|
2979
|
-
subtractDuration: () => subtractDuration,
|
|
2980
|
-
updatePagination: () => updatePagination,
|
|
2981
|
-
useHoverState: () => useHoverState,
|
|
2982
|
-
useLanguage: () => useLanguage,
|
|
2983
|
-
useLocalStorage: () => useLocalStorage,
|
|
2984
|
-
useLocale: () => useLocale,
|
|
2985
|
-
useOutsideClick: () => useOutsideClick,
|
|
2986
|
-
useSaveDelay: () => useSaveDelay,
|
|
2987
|
-
useTheme: () => useTheme,
|
|
2988
|
-
useTranslation: () => useTranslation,
|
|
2989
|
-
validateEmail: () => validateEmail,
|
|
2990
|
-
weekDayList: () => weekDayList
|
|
2991
|
-
});
|
|
2992
|
-
module.exports = __toCommonJS(index_exports);
|
|
2841
|
+
// src/coloring/shading.ts
|
|
2842
|
+
import tinycolor from "tinycolor2";
|
|
2843
|
+
|
|
2844
|
+
// src/coloring/types.ts
|
|
2845
|
+
var shadingColorValues = [0, 50, 100, 150, 200, 250, 300, 350, 400, 450, 500, 550, 600, 650, 700, 750, 800, 850, 900, 950, 1e3];
|
|
2993
2846
|
|
|
2994
2847
|
// src/coloring/shading.ts
|
|
2995
|
-
var import_tinycolor2 = __toESM(require("tinycolor2"), 1);
|
|
2996
2848
|
var generateShadingColors = (partialShading) => {
|
|
2997
2849
|
const shading = {
|
|
2998
2850
|
0: "#FFFFFF",
|
|
@@ -3023,22 +2875,19 @@ var generateShadingColors = (partialShading) => {
|
|
|
3023
2875
|
const current2 = shadingColorValues[k];
|
|
3024
2876
|
const previousValue = partialShading[previous] ?? shading[previous];
|
|
3025
2877
|
const nextValue = partialShading[nextFound] ?? shading[nextFound];
|
|
3026
|
-
shading[current2] =
|
|
2878
|
+
shading[current2] = tinycolor.mix(tinycolor(previousValue), tinycolor(nextValue), (current2 - previous) / interval * 100).toHexString();
|
|
3027
2879
|
}
|
|
3028
2880
|
index = j;
|
|
3029
2881
|
}
|
|
3030
2882
|
return shading;
|
|
3031
2883
|
};
|
|
3032
2884
|
|
|
3033
|
-
// src/coloring/types.ts
|
|
3034
|
-
var shadingColorValues = [0, 50, 100, 150, 200, 250, 300, 350, 400, 450, 500, 550, 600, 650, 700, 750, 800, 850, 900, 950, 1e3];
|
|
3035
|
-
|
|
3036
2885
|
// src/components/branding/HelpwaveBadge.tsx
|
|
3037
|
-
|
|
2886
|
+
import clsx3 from "clsx";
|
|
3038
2887
|
|
|
3039
2888
|
// src/components/layout-and-navigation/Tile.tsx
|
|
3040
|
-
|
|
3041
|
-
|
|
2889
|
+
import clsx from "clsx";
|
|
2890
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3042
2891
|
var Tile = ({
|
|
3043
2892
|
title,
|
|
3044
2893
|
description,
|
|
@@ -3046,19 +2895,19 @@ var Tile = ({
|
|
|
3046
2895
|
suffix,
|
|
3047
2896
|
className
|
|
3048
2897
|
}) => {
|
|
3049
|
-
return /* @__PURE__ */
|
|
2898
|
+
return /* @__PURE__ */ jsxs("div", { className: clsx("row gap-x-4 w-full items-center", className), children: [
|
|
3050
2899
|
prefix,
|
|
3051
|
-
/* @__PURE__ */
|
|
3052
|
-
/* @__PURE__ */
|
|
3053
|
-
!!description && /* @__PURE__ */
|
|
2900
|
+
/* @__PURE__ */ jsxs("div", { className: "col gap-y-0 w-full", children: [
|
|
2901
|
+
/* @__PURE__ */ jsx("h4", { className: clsx(title.className ?? "textstyle-title-normal"), children: title.value }),
|
|
2902
|
+
!!description && /* @__PURE__ */ jsx("span", { className: clsx(description.className ?? "textstyle-description"), children: description.value })
|
|
3054
2903
|
] }),
|
|
3055
2904
|
suffix
|
|
3056
2905
|
] });
|
|
3057
2906
|
};
|
|
3058
2907
|
|
|
3059
2908
|
// src/components/icons-and-geometry/Helpwave.tsx
|
|
3060
|
-
|
|
3061
|
-
|
|
2909
|
+
import { clsx as clsx2 } from "clsx";
|
|
2910
|
+
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
3062
2911
|
var Helpwave = ({
|
|
3063
2912
|
color = "currentColor",
|
|
3064
2913
|
animate = "none",
|
|
@@ -3076,7 +2925,7 @@ var Helpwave = ({
|
|
|
3076
2925
|
console.error("size cannot be less than 0");
|
|
3077
2926
|
size = 64;
|
|
3078
2927
|
}
|
|
3079
|
-
return /* @__PURE__ */ (
|
|
2928
|
+
return /* @__PURE__ */ jsx2(
|
|
3080
2929
|
"svg",
|
|
3081
2930
|
{
|
|
3082
2931
|
width: size,
|
|
@@ -3086,38 +2935,38 @@ var Helpwave = ({
|
|
|
3086
2935
|
strokeLinecap: "round",
|
|
3087
2936
|
strokeWidth: 48,
|
|
3088
2937
|
...props,
|
|
3089
|
-
children: /* @__PURE__ */ (
|
|
3090
|
-
/* @__PURE__ */ (
|
|
2938
|
+
children: /* @__PURE__ */ jsxs2("g", { className: clsx2(svgAnimationKey), children: [
|
|
2939
|
+
/* @__PURE__ */ jsx2(
|
|
3091
2940
|
"path",
|
|
3092
2941
|
{
|
|
3093
|
-
className: (
|
|
2942
|
+
className: clsx2({ "animate-wave-big-left-up": isLoadingAnimation }),
|
|
3094
2943
|
d: "M144 543.235C144 423.259 232.164 326 340.92 326",
|
|
3095
2944
|
stroke: color,
|
|
3096
2945
|
strokeDasharray: "1000"
|
|
3097
2946
|
}
|
|
3098
2947
|
),
|
|
3099
|
-
/* @__PURE__ */ (
|
|
2948
|
+
/* @__PURE__ */ jsx2(
|
|
3100
2949
|
"path",
|
|
3101
2950
|
{
|
|
3102
|
-
className: (
|
|
2951
|
+
className: clsx2({ "animate-wave-big-right-down": isLoadingAnimation }),
|
|
3103
2952
|
d: "M537.84 544.104C429.084 544.104 340.92 446.844 340.92 326.869",
|
|
3104
2953
|
stroke: color,
|
|
3105
2954
|
strokeDasharray: "1000"
|
|
3106
2955
|
}
|
|
3107
2956
|
),
|
|
3108
|
-
/* @__PURE__ */ (
|
|
2957
|
+
/* @__PURE__ */ jsx2(
|
|
3109
2958
|
"path",
|
|
3110
2959
|
{
|
|
3111
|
-
className: (
|
|
2960
|
+
className: clsx2({ "animate-wave-small-left-up": isLoadingAnimation }),
|
|
3112
2961
|
d: "M462.223 518.035C462.223 432.133 525.348 362.495 603.217 362.495",
|
|
3113
2962
|
stroke: color,
|
|
3114
2963
|
strokeDasharray: "1000"
|
|
3115
2964
|
}
|
|
3116
2965
|
),
|
|
3117
|
-
/* @__PURE__ */ (
|
|
2966
|
+
/* @__PURE__ */ jsx2(
|
|
3118
2967
|
"path",
|
|
3119
2968
|
{
|
|
3120
|
-
className: (
|
|
2969
|
+
className: clsx2({ "animate-wave-small-right-down": isLoadingAnimation }),
|
|
3121
2970
|
d: "M745.001 519.773C666.696 519.773 603.218 450.136 603.218 364.233",
|
|
3122
2971
|
stroke: color,
|
|
3123
2972
|
strokeDasharray: "1000"
|
|
@@ -3129,19 +2978,19 @@ var Helpwave = ({
|
|
|
3129
2978
|
};
|
|
3130
2979
|
|
|
3131
2980
|
// src/components/branding/HelpwaveBadge.tsx
|
|
3132
|
-
|
|
2981
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
3133
2982
|
var HelpwaveBadge = ({
|
|
3134
2983
|
size = "small",
|
|
3135
2984
|
title = "helpwave",
|
|
3136
2985
|
className = ""
|
|
3137
2986
|
}) => {
|
|
3138
2987
|
const iconSize = size === "small" ? 24 : 64;
|
|
3139
|
-
return /* @__PURE__ */ (
|
|
2988
|
+
return /* @__PURE__ */ jsx3(
|
|
3140
2989
|
Tile,
|
|
3141
2990
|
{
|
|
3142
|
-
prefix: /* @__PURE__ */ (
|
|
2991
|
+
prefix: /* @__PURE__ */ jsx3(Helpwave, { size: iconSize }),
|
|
3143
2992
|
title: { value: title, className: size === "small" ? "textstyle-title-lg text-base" : "textstyle-title-xl" },
|
|
3144
|
-
className: (
|
|
2993
|
+
className: clsx3(
|
|
3145
2994
|
{
|
|
3146
2995
|
"px-2 py-1 rounded-md": size === "small",
|
|
3147
2996
|
"px-4 py-1 rounded-md": size === "large"
|
|
@@ -3153,14 +3002,14 @@ var HelpwaveBadge = ({
|
|
|
3153
3002
|
};
|
|
3154
3003
|
|
|
3155
3004
|
// src/components/date/DatePicker.tsx
|
|
3156
|
-
|
|
3157
|
-
|
|
3005
|
+
import { useEffect as useEffect6, useState as useState6 } from "react";
|
|
3006
|
+
import { ArrowDown, ArrowUp, ChevronDown as ChevronDown2 } from "lucide-react";
|
|
3158
3007
|
|
|
3159
3008
|
// src/localization/LanguageProvider.tsx
|
|
3160
|
-
|
|
3009
|
+
import { createContext, useContext, useEffect as useEffect2, useState as useState2 } from "react";
|
|
3161
3010
|
|
|
3162
3011
|
// src/hooks/useLocalStorage.ts
|
|
3163
|
-
|
|
3012
|
+
import { useCallback, useEffect, useState } from "react";
|
|
3164
3013
|
|
|
3165
3014
|
// src/util/storage.ts
|
|
3166
3015
|
var StorageService = class {
|
|
@@ -3198,7 +3047,7 @@ var SessionStorageService = class extends StorageService {
|
|
|
3198
3047
|
|
|
3199
3048
|
// src/hooks/useLocalStorage.ts
|
|
3200
3049
|
var useLocalStorage = (key, initValue) => {
|
|
3201
|
-
const get =
|
|
3050
|
+
const get = useCallback(() => {
|
|
3202
3051
|
if (typeof window === "undefined") {
|
|
3203
3052
|
return initValue;
|
|
3204
3053
|
}
|
|
@@ -3206,14 +3055,14 @@ var useLocalStorage = (key, initValue) => {
|
|
|
3206
3055
|
const value = storageService.get(key);
|
|
3207
3056
|
return value || initValue;
|
|
3208
3057
|
}, [initValue, key]);
|
|
3209
|
-
const [storedValue, setStoredValue] =
|
|
3210
|
-
const setValue =
|
|
3058
|
+
const [storedValue, setStoredValue] = useState(get);
|
|
3059
|
+
const setValue = useCallback((value) => {
|
|
3211
3060
|
const newValue = value instanceof Function ? value(storedValue) : value;
|
|
3212
3061
|
const storageService = new LocalStorageService();
|
|
3213
3062
|
storageService.set(key, value);
|
|
3214
3063
|
setStoredValue(newValue);
|
|
3215
3064
|
}, [storedValue, setStoredValue, key]);
|
|
3216
|
-
|
|
3065
|
+
useEffect(() => {
|
|
3217
3066
|
setStoredValue(get());
|
|
3218
3067
|
}, []);
|
|
3219
3068
|
return [storedValue, setValue];
|
|
@@ -3233,12 +3082,12 @@ var LanguageUtil = {
|
|
|
3233
3082
|
};
|
|
3234
3083
|
|
|
3235
3084
|
// src/localization/LanguageProvider.tsx
|
|
3236
|
-
|
|
3237
|
-
var LanguageContext =
|
|
3085
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
3086
|
+
var LanguageContext = createContext({
|
|
3238
3087
|
language: LanguageUtil.DEFAULT_LANGUAGE,
|
|
3239
3088
|
setLanguage: (v) => v
|
|
3240
3089
|
});
|
|
3241
|
-
var useLanguage = () =>
|
|
3090
|
+
var useLanguage = () => useContext(LanguageContext);
|
|
3242
3091
|
var useLocale = (overWriteLanguage) => {
|
|
3243
3092
|
const { language } = useLanguage();
|
|
3244
3093
|
const mapping = {
|
|
@@ -3248,18 +3097,18 @@ var useLocale = (overWriteLanguage) => {
|
|
|
3248
3097
|
return mapping[overWriteLanguage ?? language];
|
|
3249
3098
|
};
|
|
3250
3099
|
var LanguageProvider = ({ initialLanguage, children }) => {
|
|
3251
|
-
const [language, setLanguage] = (
|
|
3100
|
+
const [language, setLanguage] = useState2(initialLanguage ?? LanguageUtil.DEFAULT_LANGUAGE);
|
|
3252
3101
|
const [storedLanguage, setStoredLanguage] = useLocalStorage("language", initialLanguage ?? LanguageUtil.DEFAULT_LANGUAGE);
|
|
3253
|
-
(
|
|
3102
|
+
useEffect2(() => {
|
|
3254
3103
|
if (language !== initialLanguage && initialLanguage) {
|
|
3255
3104
|
console.warn("LanguageProvider initial state changed: Prefer using languageProvider's setLanguage instead");
|
|
3256
3105
|
setLanguage(initialLanguage);
|
|
3257
3106
|
}
|
|
3258
3107
|
}, [initialLanguage]);
|
|
3259
|
-
(
|
|
3108
|
+
useEffect2(() => {
|
|
3260
3109
|
setStoredLanguage(language);
|
|
3261
3110
|
}, [language, setStoredLanguage]);
|
|
3262
|
-
(
|
|
3111
|
+
useEffect2(() => {
|
|
3263
3112
|
if (storedLanguage !== null) {
|
|
3264
3113
|
setLanguage(storedLanguage);
|
|
3265
3114
|
return;
|
|
@@ -3270,7 +3119,7 @@ var LanguageProvider = ({ initialLanguage, children }) => {
|
|
|
3270
3119
|
const firstMatch = matchingBrowserLanguage[0];
|
|
3271
3120
|
setLanguage(firstMatch);
|
|
3272
3121
|
}, []);
|
|
3273
|
-
return /* @__PURE__ */ (
|
|
3122
|
+
return /* @__PURE__ */ jsx4(LanguageContext.Provider, { value: {
|
|
3274
3123
|
language,
|
|
3275
3124
|
setLanguage
|
|
3276
3125
|
}, children });
|
|
@@ -3511,11 +3360,11 @@ var getWeeksForCalenderMonth = (date, weekStart, weeks = 6) => {
|
|
|
3511
3360
|
};
|
|
3512
3361
|
|
|
3513
3362
|
// src/components/date/DatePicker.tsx
|
|
3514
|
-
|
|
3363
|
+
import clsx8 from "clsx";
|
|
3515
3364
|
|
|
3516
3365
|
// src/components/user-action/Button.tsx
|
|
3517
|
-
|
|
3518
|
-
|
|
3366
|
+
import clsx4 from "clsx";
|
|
3367
|
+
import { jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
3519
3368
|
var ButtonColorUtil = {
|
|
3520
3369
|
solid: ["primary", "secondary", "tertiary", "positive", "warning", "negative", "neutral"],
|
|
3521
3370
|
text: ["primary", "negative", "neutral"],
|
|
@@ -3564,25 +3413,25 @@ var SolidButton = ({
|
|
|
3564
3413
|
negative: "text-button-solid-negative-icon",
|
|
3565
3414
|
neutral: "text-button-solid-neutral-icon"
|
|
3566
3415
|
}[color];
|
|
3567
|
-
return /* @__PURE__ */ (
|
|
3416
|
+
return /* @__PURE__ */ jsxs3(
|
|
3568
3417
|
"button",
|
|
3569
3418
|
{
|
|
3570
3419
|
onClick: disabled ? void 0 : onClick,
|
|
3571
3420
|
disabled: disabled || onClick === void 0,
|
|
3572
|
-
className: (
|
|
3421
|
+
className: clsx4(
|
|
3573
3422
|
{
|
|
3574
3423
|
"text-disabled-text bg-disabled-background cursor-not-allowed": disabled,
|
|
3575
|
-
[(
|
|
3424
|
+
[clsx4(colorClasses, "hover:brightness-90")]: !disabled
|
|
3576
3425
|
},
|
|
3577
3426
|
ButtonUtil.paddingMapping[size],
|
|
3578
3427
|
className
|
|
3579
3428
|
),
|
|
3580
3429
|
...restProps,
|
|
3581
3430
|
children: [
|
|
3582
|
-
startIcon && /* @__PURE__ */ (
|
|
3431
|
+
startIcon && /* @__PURE__ */ jsx5(
|
|
3583
3432
|
"span",
|
|
3584
3433
|
{
|
|
3585
|
-
className: (
|
|
3434
|
+
className: clsx4({
|
|
3586
3435
|
[iconColorClasses]: !disabled,
|
|
3587
3436
|
[`text-disabled-icon`]: disabled
|
|
3588
3437
|
}),
|
|
@@ -3590,10 +3439,10 @@ var SolidButton = ({
|
|
|
3590
3439
|
}
|
|
3591
3440
|
),
|
|
3592
3441
|
children,
|
|
3593
|
-
endIcon && /* @__PURE__ */ (
|
|
3442
|
+
endIcon && /* @__PURE__ */ jsx5(
|
|
3594
3443
|
"span",
|
|
3595
3444
|
{
|
|
3596
|
-
className: (
|
|
3445
|
+
className: clsx4({
|
|
3597
3446
|
[iconColorClasses]: !disabled,
|
|
3598
3447
|
[`text-disabled-icon`]: disabled
|
|
3599
3448
|
}),
|
|
@@ -3621,25 +3470,25 @@ var OutlineButton = ({
|
|
|
3621
3470
|
const iconColorClasses = {
|
|
3622
3471
|
primary: "text-button-outline-primary-icon"
|
|
3623
3472
|
}[color];
|
|
3624
|
-
return /* @__PURE__ */ (
|
|
3473
|
+
return /* @__PURE__ */ jsxs3(
|
|
3625
3474
|
"button",
|
|
3626
3475
|
{
|
|
3627
3476
|
onClick: disabled ? void 0 : onClick,
|
|
3628
3477
|
disabled: disabled || onClick === void 0,
|
|
3629
|
-
className: (
|
|
3478
|
+
className: clsx4(
|
|
3630
3479
|
{
|
|
3631
3480
|
"text-disabled-text border-disabled-outline cursor-not-allowed": disabled,
|
|
3632
|
-
[(
|
|
3481
|
+
[clsx4(colorClasses, "hover:brightness-80")]: !disabled
|
|
3633
3482
|
},
|
|
3634
3483
|
ButtonUtil.paddingMapping[size],
|
|
3635
3484
|
className
|
|
3636
3485
|
),
|
|
3637
3486
|
...restProps,
|
|
3638
3487
|
children: [
|
|
3639
|
-
startIcon && /* @__PURE__ */ (
|
|
3488
|
+
startIcon && /* @__PURE__ */ jsx5(
|
|
3640
3489
|
"span",
|
|
3641
3490
|
{
|
|
3642
|
-
className: (
|
|
3491
|
+
className: clsx4({
|
|
3643
3492
|
[iconColorClasses]: !disabled,
|
|
3644
3493
|
[`text-disabled-icon`]: disabled
|
|
3645
3494
|
}),
|
|
@@ -3647,10 +3496,10 @@ var OutlineButton = ({
|
|
|
3647
3496
|
}
|
|
3648
3497
|
),
|
|
3649
3498
|
children,
|
|
3650
|
-
endIcon && /* @__PURE__ */ (
|
|
3499
|
+
endIcon && /* @__PURE__ */ jsx5(
|
|
3651
3500
|
"span",
|
|
3652
3501
|
{
|
|
3653
|
-
className: (
|
|
3502
|
+
className: clsx4({
|
|
3654
3503
|
[iconColorClasses]: !disabled,
|
|
3655
3504
|
[`text-disabled-icon`]: disabled
|
|
3656
3505
|
}),
|
|
@@ -3682,25 +3531,25 @@ var TextButton = ({
|
|
|
3682
3531
|
negative: "text-button-text-negative-icon",
|
|
3683
3532
|
neutral: "text-button-text-neutral-icon"
|
|
3684
3533
|
}[color];
|
|
3685
|
-
return /* @__PURE__ */ (
|
|
3534
|
+
return /* @__PURE__ */ jsxs3(
|
|
3686
3535
|
"button",
|
|
3687
3536
|
{
|
|
3688
3537
|
onClick: disabled ? void 0 : onClick,
|
|
3689
3538
|
disabled: disabled || onClick === void 0,
|
|
3690
|
-
className: (
|
|
3539
|
+
className: clsx4(
|
|
3691
3540
|
{
|
|
3692
3541
|
"text-disabled-text cursor-not-allowed": disabled,
|
|
3693
|
-
[(
|
|
3542
|
+
[clsx4(colorClasses, "hover:bg-button-text-hover-background rounded-full")]: !disabled
|
|
3694
3543
|
},
|
|
3695
3544
|
ButtonUtil.paddingMapping[size],
|
|
3696
3545
|
className
|
|
3697
3546
|
),
|
|
3698
3547
|
...restProps,
|
|
3699
3548
|
children: [
|
|
3700
|
-
startIcon && /* @__PURE__ */ (
|
|
3549
|
+
startIcon && /* @__PURE__ */ jsx5(
|
|
3701
3550
|
"span",
|
|
3702
3551
|
{
|
|
3703
|
-
className: (
|
|
3552
|
+
className: clsx4({
|
|
3704
3553
|
[iconColorClasses]: !disabled,
|
|
3705
3554
|
[`text-disabled-icon`]: disabled
|
|
3706
3555
|
}),
|
|
@@ -3708,10 +3557,10 @@ var TextButton = ({
|
|
|
3708
3557
|
}
|
|
3709
3558
|
),
|
|
3710
3559
|
children,
|
|
3711
|
-
endIcon && /* @__PURE__ */ (
|
|
3560
|
+
endIcon && /* @__PURE__ */ jsx5(
|
|
3712
3561
|
"span",
|
|
3713
3562
|
{
|
|
3714
|
-
className: (
|
|
3563
|
+
className: clsx4({
|
|
3715
3564
|
[iconColorClasses]: !disabled,
|
|
3716
3565
|
[`text-disabled-icon`]: disabled
|
|
3717
3566
|
}),
|
|
@@ -3740,15 +3589,15 @@ var IconButton = ({
|
|
|
3740
3589
|
negative: "bg-button-solid-negative-background text-button-solid-negative-text",
|
|
3741
3590
|
neutral: "bg-button-solid-neutral-background text-button-solid-neutral-text"
|
|
3742
3591
|
}[color];
|
|
3743
|
-
return /* @__PURE__ */ (
|
|
3592
|
+
return /* @__PURE__ */ jsx5(
|
|
3744
3593
|
"button",
|
|
3745
3594
|
{
|
|
3746
3595
|
onClick: disabled ? void 0 : onClick,
|
|
3747
3596
|
disabled: disabled || onClick === void 0,
|
|
3748
|
-
className: (
|
|
3597
|
+
className: clsx4(
|
|
3749
3598
|
{
|
|
3750
3599
|
"text-disabled-text bg-disabled-background cursor-not-allowed": disabled,
|
|
3751
|
-
[(
|
|
3600
|
+
[clsx4(colorClasses, "hover:brightness-90")]: !disabled
|
|
3752
3601
|
},
|
|
3753
3602
|
ButtonUtil.iconPaddingMapping[size],
|
|
3754
3603
|
className
|
|
@@ -3760,17 +3609,17 @@ var IconButton = ({
|
|
|
3760
3609
|
};
|
|
3761
3610
|
|
|
3762
3611
|
// src/components/date/YearMonthPicker.tsx
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3612
|
+
import { useEffect as useEffect4, useRef, useState as useState4 } from "react";
|
|
3613
|
+
import { Scrollbars } from "react-custom-scrollbars-2";
|
|
3614
|
+
import clsx6 from "clsx";
|
|
3766
3615
|
|
|
3767
3616
|
// src/components/layout-and-navigation/Expandable.tsx
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
var DefaultIcon = (expanded) => expanded ? /* @__PURE__ */ (
|
|
3773
|
-
var Expandable =
|
|
3617
|
+
import { forwardRef, useEffect as useEffect3, useState as useState3 } from "react";
|
|
3618
|
+
import { ChevronDown, ChevronUp } from "lucide-react";
|
|
3619
|
+
import clsx5 from "clsx";
|
|
3620
|
+
import { jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
3621
|
+
var DefaultIcon = (expanded) => expanded ? /* @__PURE__ */ jsx6(ChevronUp, { size: 16, className: "min-w-[16px]" }) : /* @__PURE__ */ jsx6(ChevronDown, { size: 16, className: "min-w-[16px]" });
|
|
3622
|
+
var Expandable = forwardRef(function Expandable2({
|
|
3774
3623
|
children,
|
|
3775
3624
|
label,
|
|
3776
3625
|
icon,
|
|
@@ -3782,17 +3631,17 @@ var Expandable = (0, import_react3.forwardRef)(function Expandable2({
|
|
|
3782
3631
|
headerClassName = ""
|
|
3783
3632
|
}, ref) {
|
|
3784
3633
|
icon ??= DefaultIcon;
|
|
3785
|
-
return /* @__PURE__ */ (
|
|
3634
|
+
return /* @__PURE__ */ jsxs4(
|
|
3786
3635
|
"div",
|
|
3787
3636
|
{
|
|
3788
3637
|
ref,
|
|
3789
|
-
className: (
|
|
3638
|
+
className: clsx5("col gap-y-0 bg-surface text-on-surface group rounded-lg shadow-sm", { "cursor-pointer": !clickOnlyOnHeader && !disabled }, className),
|
|
3790
3639
|
onClick: () => !clickOnlyOnHeader && !disabled && onChange(!isExpanded),
|
|
3791
3640
|
children: [
|
|
3792
|
-
/* @__PURE__ */ (
|
|
3641
|
+
/* @__PURE__ */ jsxs4(
|
|
3793
3642
|
"div",
|
|
3794
3643
|
{
|
|
3795
|
-
className: (
|
|
3644
|
+
className: clsx5(
|
|
3796
3645
|
"row py-2 px-4 rounded-lg justify-between items-center bg-surface text-on-surface select-none",
|
|
3797
3646
|
{
|
|
3798
3647
|
"group-hover:brightness-95": !isExpanded,
|
|
@@ -3808,21 +3657,21 @@ var Expandable = (0, import_react3.forwardRef)(function Expandable2({
|
|
|
3808
3657
|
]
|
|
3809
3658
|
}
|
|
3810
3659
|
),
|
|
3811
|
-
isExpanded && /* @__PURE__ */ (
|
|
3660
|
+
isExpanded && /* @__PURE__ */ jsx6("div", { className: "col px-4 pb-2", children })
|
|
3812
3661
|
]
|
|
3813
3662
|
}
|
|
3814
3663
|
);
|
|
3815
3664
|
});
|
|
3816
|
-
var ExpandableUncontrolled =
|
|
3665
|
+
var ExpandableUncontrolled = forwardRef(function ExpandableUncontrolled2({
|
|
3817
3666
|
isExpanded,
|
|
3818
3667
|
onChange = noop,
|
|
3819
3668
|
...props
|
|
3820
3669
|
}, ref) {
|
|
3821
|
-
const [usedIsExpanded, setUsedIsExpanded] = (
|
|
3822
|
-
(
|
|
3670
|
+
const [usedIsExpanded, setUsedIsExpanded] = useState3(isExpanded);
|
|
3671
|
+
useEffect3(() => {
|
|
3823
3672
|
setUsedIsExpanded(isExpanded);
|
|
3824
3673
|
}, [isExpanded]);
|
|
3825
|
-
return /* @__PURE__ */ (
|
|
3674
|
+
return /* @__PURE__ */ jsx6(
|
|
3826
3675
|
Expandable,
|
|
3827
3676
|
{
|
|
3828
3677
|
...props,
|
|
@@ -3837,7 +3686,7 @@ var ExpandableUncontrolled = (0, import_react3.forwardRef)(function ExpandableUn
|
|
|
3837
3686
|
});
|
|
3838
3687
|
|
|
3839
3688
|
// src/components/date/YearMonthPicker.tsx
|
|
3840
|
-
|
|
3689
|
+
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
3841
3690
|
var YearMonthPicker = ({
|
|
3842
3691
|
displayedYearMonth = /* @__PURE__ */ new Date(),
|
|
3843
3692
|
start = subtractDuration(/* @__PURE__ */ new Date(), { years: 50 }),
|
|
@@ -3848,8 +3697,8 @@ var YearMonthPicker = ({
|
|
|
3848
3697
|
showValueOpen = true
|
|
3849
3698
|
}) => {
|
|
3850
3699
|
const locale = useLocale();
|
|
3851
|
-
const ref =
|
|
3852
|
-
(
|
|
3700
|
+
const ref = useRef(null);
|
|
3701
|
+
useEffect4(() => {
|
|
3853
3702
|
const scrollToItem = () => {
|
|
3854
3703
|
if (ref.current) {
|
|
3855
3704
|
ref.current.scrollIntoView({
|
|
@@ -3865,15 +3714,15 @@ var YearMonthPicker = ({
|
|
|
3865
3714
|
return null;
|
|
3866
3715
|
}
|
|
3867
3716
|
const years = range(start.getFullYear(), end.getFullYear());
|
|
3868
|
-
return /* @__PURE__ */ (
|
|
3717
|
+
return /* @__PURE__ */ jsx7("div", { className: clsx6("col select-none", className), children: /* @__PURE__ */ jsx7(Scrollbars, { autoHeight: true, autoHeightMax: maxHeight, style: { height: "100%" }, children: /* @__PURE__ */ jsx7("div", { className: "col gap-y-1 mr-3", children: years.map((year) => {
|
|
3869
3718
|
const selectedYear = displayedYearMonth.getFullYear() === year;
|
|
3870
|
-
return /* @__PURE__ */ (
|
|
3719
|
+
return /* @__PURE__ */ jsx7(
|
|
3871
3720
|
ExpandableUncontrolled,
|
|
3872
3721
|
{
|
|
3873
3722
|
ref: (displayedYearMonth.getFullYear() ?? (/* @__PURE__ */ new Date()).getFullYear()) === year ? ref : void 0,
|
|
3874
|
-
label: /* @__PURE__ */ (
|
|
3723
|
+
label: /* @__PURE__ */ jsx7("span", { className: clsx6({ "text-primary font-bold": selectedYear }), children: year }),
|
|
3875
3724
|
isExpanded: showValueOpen && selectedYear,
|
|
3876
|
-
children:
|
|
3725
|
+
children: equalSizeGroups([...monthsList], 3).map((monthList, index) => /* @__PURE__ */ jsx7("div", { className: "row", children: monthList.map((month) => {
|
|
3877
3726
|
const monthIndex = monthsList.indexOf(month);
|
|
3878
3727
|
const newDate = new Date(year, monthIndex);
|
|
3879
3728
|
const selectedMonth = selectedYear && monthIndex === displayedYearMonth.getMonth();
|
|
@@ -3882,11 +3731,11 @@ var YearMonthPicker = ({
|
|
|
3882
3731
|
const isAfterStart = start === void 0 || start <= addDuration(subtractDuration(lastOfMonth, { days: 1 }), { months: 1 });
|
|
3883
3732
|
const isBeforeEnd = end === void 0 || firstOfMonth <= end;
|
|
3884
3733
|
const isValid = isAfterStart && isBeforeEnd;
|
|
3885
|
-
return /* @__PURE__ */ (
|
|
3734
|
+
return /* @__PURE__ */ jsx7(
|
|
3886
3735
|
"button",
|
|
3887
3736
|
{
|
|
3888
3737
|
disabled: !isValid,
|
|
3889
|
-
className: (
|
|
3738
|
+
className: clsx6(
|
|
3890
3739
|
"chip hover:brightness-95 flex-1",
|
|
3891
3740
|
{
|
|
3892
3741
|
"bg-gray-50 text-black": !selectedMonth && isValid,
|
|
@@ -3901,7 +3750,7 @@ var YearMonthPicker = ({
|
|
|
3901
3750
|
},
|
|
3902
3751
|
month
|
|
3903
3752
|
);
|
|
3904
|
-
}) }, index))
|
|
3753
|
+
}) }, index))
|
|
3905
3754
|
},
|
|
3906
3755
|
year
|
|
3907
3756
|
);
|
|
@@ -3912,9 +3761,9 @@ var YearMonthPickerUncontrolled = ({
|
|
|
3912
3761
|
onChange = noop,
|
|
3913
3762
|
...props
|
|
3914
3763
|
}) => {
|
|
3915
|
-
const [yearMonth, setYearMonth] = (
|
|
3916
|
-
(
|
|
3917
|
-
return /* @__PURE__ */ (
|
|
3764
|
+
const [yearMonth, setYearMonth] = useState4(displayedYearMonth);
|
|
3765
|
+
useEffect4(() => setYearMonth(displayedYearMonth), [displayedYearMonth]);
|
|
3766
|
+
return /* @__PURE__ */ jsx7(
|
|
3918
3767
|
YearMonthPicker,
|
|
3919
3768
|
{
|
|
3920
3769
|
displayedYearMonth: yearMonth,
|
|
@@ -3928,9 +3777,9 @@ var YearMonthPickerUncontrolled = ({
|
|
|
3928
3777
|
};
|
|
3929
3778
|
|
|
3930
3779
|
// src/components/date/DayPicker.tsx
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
|
|
3780
|
+
import clsx7 from "clsx";
|
|
3781
|
+
import { useEffect as useEffect5, useState as useState5 } from "react";
|
|
3782
|
+
import { jsx as jsx8, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
3934
3783
|
var DayPicker = ({
|
|
3935
3784
|
displayedMonth,
|
|
3936
3785
|
selected,
|
|
@@ -3944,18 +3793,18 @@ var DayPicker = ({
|
|
|
3944
3793
|
const locale = useLocale();
|
|
3945
3794
|
const month = displayedMonth.getMonth();
|
|
3946
3795
|
const weeks = getWeeksForCalenderMonth(displayedMonth, weekStart);
|
|
3947
|
-
return /* @__PURE__ */ (
|
|
3948
|
-
/* @__PURE__ */ (
|
|
3949
|
-
weeks.map((week, index) => /* @__PURE__ */ (
|
|
3796
|
+
return /* @__PURE__ */ jsxs5("div", { className: clsx7("col gap-y-1 min-w-[220px] select-none", className), children: [
|
|
3797
|
+
/* @__PURE__ */ jsx8("div", { className: "row text-center", children: weeks[0].map((weekDay, index) => /* @__PURE__ */ jsx8("div", { className: "flex-1 font-semibold", children: new Intl.DateTimeFormat(locale, { weekday: "long" }).format(weekDay).substring(0, 2) }, index)) }),
|
|
3798
|
+
weeks.map((week, index) => /* @__PURE__ */ jsx8("div", { className: "row text-center", children: week.map((date) => {
|
|
3950
3799
|
const isSelected = !!selected && equalDate(selected, date);
|
|
3951
3800
|
const isToday = equalDate(/* @__PURE__ */ new Date(), date);
|
|
3952
3801
|
const isSameMonth = date.getMonth() === month;
|
|
3953
3802
|
const isDayValid = isInTimeSpan(date, start, end);
|
|
3954
|
-
return /* @__PURE__ */ (
|
|
3803
|
+
return /* @__PURE__ */ jsx8(
|
|
3955
3804
|
"button",
|
|
3956
3805
|
{
|
|
3957
3806
|
disabled: !isDayValid,
|
|
3958
|
-
className: (
|
|
3807
|
+
className: clsx7(
|
|
3959
3808
|
"flex-1 rounded-full border-2 border-transparent shadow-sm",
|
|
3960
3809
|
{
|
|
3961
3810
|
"text-gray-700 bg-gray-100": !isSameMonth && isDayValid,
|
|
@@ -3975,9 +3824,9 @@ var DayPicker = ({
|
|
|
3975
3824
|
] });
|
|
3976
3825
|
};
|
|
3977
3826
|
var DayPickerUncontrolled = ({ displayedMonth, onChange = noop, ...restProps }) => {
|
|
3978
|
-
const [date, setDate] = (
|
|
3979
|
-
(
|
|
3980
|
-
return /* @__PURE__ */ (
|
|
3827
|
+
const [date, setDate] = useState5(displayedMonth);
|
|
3828
|
+
useEffect5(() => setDate(displayedMonth), [displayedMonth]);
|
|
3829
|
+
return /* @__PURE__ */ jsx8(
|
|
3981
3830
|
DayPicker,
|
|
3982
3831
|
{
|
|
3983
3832
|
displayedMonth: date,
|
|
@@ -3991,7 +3840,7 @@ var DayPickerUncontrolled = ({ displayedMonth, onChange = noop, ...restProps })
|
|
|
3991
3840
|
};
|
|
3992
3841
|
|
|
3993
3842
|
// src/components/date/DatePicker.tsx
|
|
3994
|
-
|
|
3843
|
+
import { jsx as jsx9, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
3995
3844
|
var defaultDatePickerTranslation = {
|
|
3996
3845
|
en: {
|
|
3997
3846
|
today: "Today"
|
|
@@ -4013,28 +3862,28 @@ var DatePicker = ({
|
|
|
4013
3862
|
}) => {
|
|
4014
3863
|
const locale = useLocale();
|
|
4015
3864
|
const translation = useTranslation(defaultDatePickerTranslation, overwriteTranslation);
|
|
4016
|
-
const [displayedMonth, setDisplayedMonth] = (
|
|
4017
|
-
const [displayMode, setDisplayMode] = (
|
|
4018
|
-
(
|
|
3865
|
+
const [displayedMonth, setDisplayedMonth] = useState6(value);
|
|
3866
|
+
const [displayMode, setDisplayMode] = useState6(initialDisplay);
|
|
3867
|
+
useEffect6(() => {
|
|
4019
3868
|
setDisplayedMonth(value);
|
|
4020
3869
|
}, [value]);
|
|
4021
|
-
return /* @__PURE__ */ (
|
|
4022
|
-
/* @__PURE__ */ (
|
|
4023
|
-
/* @__PURE__ */ (
|
|
3870
|
+
return /* @__PURE__ */ jsxs6("div", { className: clsx8("col gap-y-4", className), children: [
|
|
3871
|
+
/* @__PURE__ */ jsxs6("div", { className: "row items-center justify-between h-7", children: [
|
|
3872
|
+
/* @__PURE__ */ jsxs6(
|
|
4024
3873
|
TextButton,
|
|
4025
3874
|
{
|
|
4026
|
-
className: (
|
|
3875
|
+
className: clsx8("row gap-x-1 items-center cursor-pointer select-none", {
|
|
4027
3876
|
"text-disabled-text": displayMode !== "day"
|
|
4028
3877
|
}),
|
|
4029
3878
|
onClick: () => setDisplayMode(displayMode === "day" ? "yearMonth" : "day"),
|
|
4030
3879
|
children: [
|
|
4031
3880
|
`${new Intl.DateTimeFormat(locale, { month: "long" }).format(displayedMonth)} ${displayedMonth.getFullYear()}`,
|
|
4032
|
-
/* @__PURE__ */ (
|
|
3881
|
+
/* @__PURE__ */ jsx9(ChevronDown2, { size: 16 })
|
|
4033
3882
|
]
|
|
4034
3883
|
}
|
|
4035
3884
|
),
|
|
4036
|
-
displayMode === "day" && /* @__PURE__ */ (
|
|
4037
|
-
/* @__PURE__ */ (
|
|
3885
|
+
displayMode === "day" && /* @__PURE__ */ jsxs6("div", { className: "row justify-end", children: [
|
|
3886
|
+
/* @__PURE__ */ jsx9(
|
|
4038
3887
|
SolidButton,
|
|
4039
3888
|
{
|
|
4040
3889
|
size: "small",
|
|
@@ -4043,10 +3892,10 @@ var DatePicker = ({
|
|
|
4043
3892
|
onClick: () => {
|
|
4044
3893
|
setDisplayedMonth(subtractDuration(displayedMonth, { months: 1 }));
|
|
4045
3894
|
},
|
|
4046
|
-
children: /* @__PURE__ */ (
|
|
3895
|
+
children: /* @__PURE__ */ jsx9(ArrowUp, { size: 20 })
|
|
4047
3896
|
}
|
|
4048
3897
|
),
|
|
4049
|
-
/* @__PURE__ */ (
|
|
3898
|
+
/* @__PURE__ */ jsx9(
|
|
4050
3899
|
SolidButton,
|
|
4051
3900
|
{
|
|
4052
3901
|
size: "small",
|
|
@@ -4055,12 +3904,12 @@ var DatePicker = ({
|
|
|
4055
3904
|
onClick: () => {
|
|
4056
3905
|
setDisplayedMonth(addDuration(displayedMonth, { months: 1 }));
|
|
4057
3906
|
},
|
|
4058
|
-
children: /* @__PURE__ */ (
|
|
3907
|
+
children: /* @__PURE__ */ jsx9(ArrowDown, { size: 20 })
|
|
4059
3908
|
}
|
|
4060
3909
|
)
|
|
4061
3910
|
] })
|
|
4062
3911
|
] }),
|
|
4063
|
-
displayMode === "yearMonth" ? /* @__PURE__ */ (
|
|
3912
|
+
displayMode === "yearMonth" ? /* @__PURE__ */ jsx9(
|
|
4064
3913
|
YearMonthPicker,
|
|
4065
3914
|
{
|
|
4066
3915
|
...yearMonthPickerProps,
|
|
@@ -4072,8 +3921,8 @@ var DatePicker = ({
|
|
|
4072
3921
|
setDisplayMode("day");
|
|
4073
3922
|
}
|
|
4074
3923
|
}
|
|
4075
|
-
) : /* @__PURE__ */ (
|
|
4076
|
-
/* @__PURE__ */ (
|
|
3924
|
+
) : /* @__PURE__ */ jsxs6("div", { children: [
|
|
3925
|
+
/* @__PURE__ */ jsx9(
|
|
4077
3926
|
DayPicker,
|
|
4078
3927
|
{
|
|
4079
3928
|
...dayPickerProps,
|
|
@@ -4086,9 +3935,10 @@ var DatePicker = ({
|
|
|
4086
3935
|
}
|
|
4087
3936
|
}
|
|
4088
3937
|
),
|
|
4089
|
-
/* @__PURE__ */ (
|
|
3938
|
+
/* @__PURE__ */ jsx9("div", { className: "mt-2", children: /* @__PURE__ */ jsx9(
|
|
4090
3939
|
TextButton,
|
|
4091
3940
|
{
|
|
3941
|
+
color: "primary",
|
|
4092
3942
|
onClick: () => {
|
|
4093
3943
|
const newDate = /* @__PURE__ */ new Date();
|
|
4094
3944
|
newDate.setHours(value.getHours(), value.getMinutes());
|
|
@@ -4105,9 +3955,9 @@ var DatePickerUncontrolled = ({
|
|
|
4105
3955
|
onChange = noop,
|
|
4106
3956
|
...props
|
|
4107
3957
|
}) => {
|
|
4108
|
-
const [date, setDate] = (
|
|
4109
|
-
(
|
|
4110
|
-
return /* @__PURE__ */ (
|
|
3958
|
+
const [date, setDate] = useState6(value);
|
|
3959
|
+
useEffect6(() => setDate(value), [value]);
|
|
3960
|
+
return /* @__PURE__ */ jsx9(
|
|
4111
3961
|
DatePicker,
|
|
4112
3962
|
{
|
|
4113
3963
|
...props,
|
|
@@ -4121,7 +3971,7 @@ var DatePickerUncontrolled = ({
|
|
|
4121
3971
|
};
|
|
4122
3972
|
|
|
4123
3973
|
// src/components/date/TimeDisplay.tsx
|
|
4124
|
-
|
|
3974
|
+
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
4125
3975
|
var defaultTimeDisplayTranslations = {
|
|
4126
3976
|
en: {
|
|
4127
3977
|
today: "today",
|
|
@@ -4199,14 +4049,14 @@ var TimeDisplay = ({
|
|
|
4199
4049
|
} else {
|
|
4200
4050
|
fullString = `${date.getDate()}. ${monthToTranslation[date.getMonth()]} ${date.getFullYear()}`;
|
|
4201
4051
|
}
|
|
4202
|
-
return /* @__PURE__ */ (
|
|
4052
|
+
return /* @__PURE__ */ jsx10("span", { children: fullString });
|
|
4203
4053
|
};
|
|
4204
4054
|
|
|
4205
4055
|
// src/components/date/TimePicker.tsx
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
|
|
4056
|
+
import { useEffect as useEffect7, useRef as useRef2, useState as useState7 } from "react";
|
|
4057
|
+
import { Scrollbars as Scrollbars2 } from "react-custom-scrollbars-2";
|
|
4058
|
+
import clsx9 from "clsx";
|
|
4059
|
+
import { jsx as jsx11, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
4210
4060
|
var TimePicker = ({
|
|
4211
4061
|
time = /* @__PURE__ */ new Date(),
|
|
4212
4062
|
onChange = noop,
|
|
@@ -4215,12 +4065,12 @@ var TimePicker = ({
|
|
|
4215
4065
|
maxHeight = 300,
|
|
4216
4066
|
className = ""
|
|
4217
4067
|
}) => {
|
|
4218
|
-
const minuteRef = (
|
|
4219
|
-
const hourRef = (
|
|
4068
|
+
const minuteRef = useRef2(null);
|
|
4069
|
+
const hourRef = useRef2(null);
|
|
4220
4070
|
const isPM = time.getHours() >= 11;
|
|
4221
4071
|
const hours = is24HourFormat ? range(0, 23) : range(1, 12);
|
|
4222
4072
|
let minutes = range(0, 59);
|
|
4223
|
-
(
|
|
4073
|
+
useEffect7(() => {
|
|
4224
4074
|
const scrollToItem = () => {
|
|
4225
4075
|
if (minuteRef.current) {
|
|
4226
4076
|
const container = minuteRef.current.parentElement;
|
|
@@ -4235,7 +4085,7 @@ var TimePicker = ({
|
|
|
4235
4085
|
};
|
|
4236
4086
|
scrollToItem();
|
|
4237
4087
|
}, [minuteRef, minuteRef.current]);
|
|
4238
|
-
(
|
|
4088
|
+
useEffect7(() => {
|
|
4239
4089
|
const scrollToItem = () => {
|
|
4240
4090
|
if (hourRef.current) {
|
|
4241
4091
|
const container = hourRef.current.parentElement;
|
|
@@ -4265,7 +4115,7 @@ var TimePicker = ({
|
|
|
4265
4115
|
break;
|
|
4266
4116
|
}
|
|
4267
4117
|
const closestMinute = closestMatch(minutes, (item1, item2) => Math.abs(item1 - time.getMinutes()) < Math.abs(item2 - time.getMinutes()));
|
|
4268
|
-
const style = (selected) => (
|
|
4118
|
+
const style = (selected) => clsx9(
|
|
4269
4119
|
"chip-full hover:brightness-90 hover:bg-primary hover:text-on-primary rounded-md mr-3",
|
|
4270
4120
|
{ "bg-primary text-on-primary": selected, "bg-white text-black": !selected }
|
|
4271
4121
|
);
|
|
@@ -4274,10 +4124,10 @@ var TimePicker = ({
|
|
|
4274
4124
|
transformer(newDate);
|
|
4275
4125
|
onChange(newDate);
|
|
4276
4126
|
};
|
|
4277
|
-
return /* @__PURE__ */ (
|
|
4278
|
-
/* @__PURE__ */ (
|
|
4127
|
+
return /* @__PURE__ */ jsxs7("div", { className: clsx9("row gap-x-2 w-fit min-w-[150px] select-none", className), children: [
|
|
4128
|
+
/* @__PURE__ */ jsx11(Scrollbars2, { autoHeight: true, autoHeightMax: maxHeight, style: { height: "100%" }, children: /* @__PURE__ */ jsx11("div", { className: "col gap-y-1 h-full", children: hours.map((hour) => {
|
|
4279
4129
|
const currentHour = hour === time.getHours() - (!is24HourFormat && isPM ? 12 : 0);
|
|
4280
|
-
return /* @__PURE__ */ (
|
|
4130
|
+
return /* @__PURE__ */ jsx11(
|
|
4281
4131
|
"button",
|
|
4282
4132
|
{
|
|
4283
4133
|
ref: currentHour ? hourRef : void 0,
|
|
@@ -4288,9 +4138,9 @@ var TimePicker = ({
|
|
|
4288
4138
|
hour
|
|
4289
4139
|
);
|
|
4290
4140
|
}) }) }),
|
|
4291
|
-
/* @__PURE__ */ (
|
|
4141
|
+
/* @__PURE__ */ jsx11(Scrollbars2, { autoHeight: true, autoHeightMax: maxHeight, style: { height: "100%" }, children: /* @__PURE__ */ jsx11("div", { className: "col gap-y-1 h-full", children: minutes.map((minute) => {
|
|
4292
4142
|
const currentMinute = minute === closestMinute;
|
|
4293
|
-
return /* @__PURE__ */ (
|
|
4143
|
+
return /* @__PURE__ */ jsx11(
|
|
4294
4144
|
"button",
|
|
4295
4145
|
{
|
|
4296
4146
|
ref: currentMinute ? minuteRef : void 0,
|
|
@@ -4301,8 +4151,8 @@ var TimePicker = ({
|
|
|
4301
4151
|
minute + minuteIncrement
|
|
4302
4152
|
);
|
|
4303
4153
|
}) }) }),
|
|
4304
|
-
!is24HourFormat && /* @__PURE__ */ (
|
|
4305
|
-
/* @__PURE__ */ (
|
|
4154
|
+
!is24HourFormat && /* @__PURE__ */ jsxs7("div", { className: "col gap-y-1", children: [
|
|
4155
|
+
/* @__PURE__ */ jsx11(
|
|
4306
4156
|
"button",
|
|
4307
4157
|
{
|
|
4308
4158
|
className: style(!isPM),
|
|
@@ -4310,7 +4160,7 @@ var TimePicker = ({
|
|
|
4310
4160
|
children: "AM"
|
|
4311
4161
|
}
|
|
4312
4162
|
),
|
|
4313
|
-
/* @__PURE__ */ (
|
|
4163
|
+
/* @__PURE__ */ jsx11(
|
|
4314
4164
|
"button",
|
|
4315
4165
|
{
|
|
4316
4166
|
className: style(isPM),
|
|
@@ -4326,9 +4176,9 @@ var TimePickerUncontrolled = ({
|
|
|
4326
4176
|
onChange = noop,
|
|
4327
4177
|
...props
|
|
4328
4178
|
}) => {
|
|
4329
|
-
const [value, setValue] = (
|
|
4330
|
-
(
|
|
4331
|
-
return /* @__PURE__ */ (
|
|
4179
|
+
const [value, setValue] = useState7(time);
|
|
4180
|
+
useEffect7(() => setValue(time), [time]);
|
|
4181
|
+
return /* @__PURE__ */ jsx11(
|
|
4332
4182
|
TimePicker,
|
|
4333
4183
|
{
|
|
4334
4184
|
...props,
|
|
@@ -4342,23 +4192,23 @@ var TimePickerUncontrolled = ({
|
|
|
4342
4192
|
};
|
|
4343
4193
|
|
|
4344
4194
|
// src/components/dialogs/ConfirmDialog.tsx
|
|
4345
|
-
|
|
4195
|
+
import clsx12 from "clsx";
|
|
4346
4196
|
|
|
4347
4197
|
// src/components/layout-and-navigation/Overlay.tsx
|
|
4348
|
-
|
|
4349
|
-
|
|
4350
|
-
|
|
4198
|
+
import { useEffect as useEffect9, useRef as useRef3, useState as useState9 } from "react";
|
|
4199
|
+
import ReactDOM from "react-dom";
|
|
4200
|
+
import clsx11 from "clsx";
|
|
4351
4201
|
|
|
4352
4202
|
// src/hooks/useHoverState.ts
|
|
4353
|
-
|
|
4203
|
+
import { useEffect as useEffect8, useState as useState8 } from "react";
|
|
4354
4204
|
var defaultUseHoverStateProps = {
|
|
4355
4205
|
closingDelay: 200,
|
|
4356
4206
|
isDisabled: false
|
|
4357
4207
|
};
|
|
4358
4208
|
var useHoverState = (props = void 0) => {
|
|
4359
4209
|
const { closingDelay, isDisabled } = { ...defaultUseHoverStateProps, ...props };
|
|
4360
|
-
const [isHovered, setIsHovered] = (
|
|
4361
|
-
const [timer, setTimer] = (
|
|
4210
|
+
const [isHovered, setIsHovered] = useState8(false);
|
|
4211
|
+
const [timer, setTimer] = useState8();
|
|
4362
4212
|
const onMouseEnter = () => {
|
|
4363
4213
|
if (isDisabled) {
|
|
4364
4214
|
return;
|
|
@@ -4374,14 +4224,14 @@ var useHoverState = (props = void 0) => {
|
|
|
4374
4224
|
setIsHovered(false);
|
|
4375
4225
|
}, closingDelay));
|
|
4376
4226
|
};
|
|
4377
|
-
(
|
|
4227
|
+
useEffect8(() => {
|
|
4378
4228
|
if (timer) {
|
|
4379
4229
|
return () => {
|
|
4380
4230
|
clearTimeout(timer);
|
|
4381
4231
|
};
|
|
4382
4232
|
}
|
|
4383
4233
|
});
|
|
4384
|
-
(
|
|
4234
|
+
useEffect8(() => {
|
|
4385
4235
|
if (timer) {
|
|
4386
4236
|
clearTimeout(timer);
|
|
4387
4237
|
}
|
|
@@ -4394,8 +4244,8 @@ var useHoverState = (props = void 0) => {
|
|
|
4394
4244
|
};
|
|
4395
4245
|
|
|
4396
4246
|
// src/components/user-action/Tooltip.tsx
|
|
4397
|
-
|
|
4398
|
-
|
|
4247
|
+
import { clsx as clsx10 } from "clsx";
|
|
4248
|
+
import { jsx as jsx12, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
4399
4249
|
var Tooltip = ({
|
|
4400
4250
|
tooltip,
|
|
4401
4251
|
children,
|
|
@@ -4425,17 +4275,17 @@ var Tooltip = ({
|
|
|
4425
4275
|
left: { borderWidth: `${triangleSize}px 0 ${triangleSize}px ${triangleSize}px` },
|
|
4426
4276
|
right: { borderWidth: `${triangleSize}px ${triangleSize}px ${triangleSize}px 0` }
|
|
4427
4277
|
};
|
|
4428
|
-
return /* @__PURE__ */ (
|
|
4278
|
+
return /* @__PURE__ */ jsxs8(
|
|
4429
4279
|
"div",
|
|
4430
4280
|
{
|
|
4431
|
-
className: (
|
|
4281
|
+
className: clsx10("relative inline-block", containerClassName),
|
|
4432
4282
|
...handlers,
|
|
4433
4283
|
children: [
|
|
4434
4284
|
children,
|
|
4435
|
-
isHovered && /* @__PURE__ */ (
|
|
4285
|
+
isHovered && /* @__PURE__ */ jsxs8(
|
|
4436
4286
|
"div",
|
|
4437
4287
|
{
|
|
4438
|
-
className: (
|
|
4288
|
+
className: clsx10(
|
|
4439
4289
|
`opacity-0 absolute text-xs font-semibold text-tooltip-text px-2 py-1 rounded whitespace-nowrap
|
|
4440
4290
|
animate-tooltip-fade-in shadow-lg bg-tooltip-background`,
|
|
4441
4291
|
positionClasses[position],
|
|
@@ -4444,10 +4294,10 @@ var Tooltip = ({
|
|
|
4444
4294
|
style: { zIndex, animationDelay: animationDelay + "ms" },
|
|
4445
4295
|
children: [
|
|
4446
4296
|
tooltip,
|
|
4447
|
-
/* @__PURE__ */ (
|
|
4297
|
+
/* @__PURE__ */ jsx12(
|
|
4448
4298
|
"div",
|
|
4449
4299
|
{
|
|
4450
|
-
className: (
|
|
4300
|
+
className: clsx10(`absolute w-0 h-0`, triangleClasses[position]),
|
|
4451
4301
|
style: { ...triangleStyle[position], zIndex }
|
|
4452
4302
|
}
|
|
4453
4303
|
)
|
|
@@ -4460,25 +4310,25 @@ var Tooltip = ({
|
|
|
4460
4310
|
};
|
|
4461
4311
|
|
|
4462
4312
|
// src/components/layout-and-navigation/Overlay.tsx
|
|
4463
|
-
|
|
4464
|
-
|
|
4313
|
+
import { X } from "lucide-react";
|
|
4314
|
+
import { jsx as jsx13, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
4465
4315
|
var Overlay = ({
|
|
4466
4316
|
children,
|
|
4467
4317
|
isOpen,
|
|
4468
4318
|
onBackgroundClick,
|
|
4469
4319
|
backgroundClassName
|
|
4470
4320
|
}) => {
|
|
4471
|
-
const [root, setRoot] = (
|
|
4472
|
-
(
|
|
4321
|
+
const [root, setRoot] = useState9();
|
|
4322
|
+
useEffect9(() => {
|
|
4473
4323
|
setRoot(document.body);
|
|
4474
4324
|
}, []);
|
|
4475
4325
|
if (!root || !isOpen) return null;
|
|
4476
|
-
return
|
|
4477
|
-
/* @__PURE__ */ (
|
|
4478
|
-
/* @__PURE__ */ (
|
|
4326
|
+
return ReactDOM.createPortal(
|
|
4327
|
+
/* @__PURE__ */ jsxs9("div", { className: clsx11("fixed inset-0 z-[9999]"), children: [
|
|
4328
|
+
/* @__PURE__ */ jsx13(
|
|
4479
4329
|
"div",
|
|
4480
4330
|
{
|
|
4481
|
-
className: (
|
|
4331
|
+
className: clsx11("fixed inset-0 h-screen w-screen bg-black/30", backgroundClassName),
|
|
4482
4332
|
onClick: onBackgroundClick
|
|
4483
4333
|
}
|
|
4484
4334
|
),
|
|
@@ -4506,21 +4356,21 @@ var OverlayHeader = ({
|
|
|
4506
4356
|
}) => {
|
|
4507
4357
|
const translation = useTranslation(defaultModalHeaderTranslation, overwriteTranslation);
|
|
4508
4358
|
const hasTitleRow = !!title || !!titleText || !!onClose;
|
|
4509
|
-
const titleRow = /* @__PURE__ */ (
|
|
4510
|
-
title ?? /* @__PURE__ */ (
|
|
4359
|
+
const titleRow = /* @__PURE__ */ jsxs9("div", { className: "row justify-between items-start gap-x-8", children: [
|
|
4360
|
+
title ?? /* @__PURE__ */ jsx13(
|
|
4511
4361
|
"h2",
|
|
4512
4362
|
{
|
|
4513
|
-
className: (
|
|
4363
|
+
className: clsx11("textstyle-title-lg", {
|
|
4514
4364
|
"mb-1": description || descriptionText
|
|
4515
4365
|
}),
|
|
4516
4366
|
children: titleText
|
|
4517
4367
|
}
|
|
4518
4368
|
),
|
|
4519
|
-
!!onClose && /* @__PURE__ */ (
|
|
4369
|
+
!!onClose && /* @__PURE__ */ jsx13(Tooltip, { tooltip: translation.close, children: /* @__PURE__ */ jsx13(IconButton, { color: "neutral", size: "small", onClick: onClose, children: /* @__PURE__ */ jsx13(X, { className: "w-full h-full" }) }) })
|
|
4520
4370
|
] });
|
|
4521
|
-
return /* @__PURE__ */ (
|
|
4371
|
+
return /* @__PURE__ */ jsxs9("div", { className: "col", children: [
|
|
4522
4372
|
hasTitleRow && titleRow,
|
|
4523
|
-
description ?? (descriptionText && /* @__PURE__ */ (
|
|
4373
|
+
description ?? (descriptionText && /* @__PURE__ */ jsx13("span", { className: "textstyle-description", children: descriptionText }))
|
|
4524
4374
|
] });
|
|
4525
4375
|
};
|
|
4526
4376
|
var Modal = ({
|
|
@@ -4531,8 +4381,8 @@ var Modal = ({
|
|
|
4531
4381
|
backgroundClassName,
|
|
4532
4382
|
headerProps
|
|
4533
4383
|
}) => {
|
|
4534
|
-
const ref = (
|
|
4535
|
-
(
|
|
4384
|
+
const ref = useRef3(null);
|
|
4385
|
+
useEffect9(() => {
|
|
4536
4386
|
if (!isOpen) return;
|
|
4537
4387
|
const modal = ref.current;
|
|
4538
4388
|
if (!modal) {
|
|
@@ -4569,25 +4419,25 @@ var Modal = ({
|
|
|
4569
4419
|
overlayStack = overlayStack.filter((m) => m !== modal);
|
|
4570
4420
|
};
|
|
4571
4421
|
}, [isOpen, onClose]);
|
|
4572
|
-
return /* @__PURE__ */ (
|
|
4422
|
+
return /* @__PURE__ */ jsx13(
|
|
4573
4423
|
Overlay,
|
|
4574
4424
|
{
|
|
4575
4425
|
isOpen,
|
|
4576
4426
|
onBackgroundClick: onClose,
|
|
4577
4427
|
backgroundClassName,
|
|
4578
|
-
children: /* @__PURE__ */ (
|
|
4428
|
+
children: /* @__PURE__ */ jsxs9(
|
|
4579
4429
|
"div",
|
|
4580
4430
|
{
|
|
4581
4431
|
ref,
|
|
4582
4432
|
tabIndex: -1,
|
|
4583
|
-
className: (
|
|
4433
|
+
className: clsx11(
|
|
4584
4434
|
"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",
|
|
4585
4435
|
className
|
|
4586
4436
|
),
|
|
4587
4437
|
role: "dialog",
|
|
4588
4438
|
"aria-modal": true,
|
|
4589
4439
|
children: [
|
|
4590
|
-
/* @__PURE__ */ (
|
|
4440
|
+
/* @__PURE__ */ jsx13(OverlayHeader, { ...headerProps, onClose }),
|
|
4591
4441
|
children
|
|
4592
4442
|
]
|
|
4593
4443
|
}
|
|
@@ -4602,8 +4452,8 @@ var Dialog = ({
|
|
|
4602
4452
|
backgroundClassName,
|
|
4603
4453
|
headerProps
|
|
4604
4454
|
}) => {
|
|
4605
|
-
const ref = (
|
|
4606
|
-
(
|
|
4455
|
+
const ref = useRef3(null);
|
|
4456
|
+
useEffect9(() => {
|
|
4607
4457
|
if (!isOpen) return;
|
|
4608
4458
|
const dialog = ref.current;
|
|
4609
4459
|
if (!dialog) {
|
|
@@ -4639,24 +4489,24 @@ var Dialog = ({
|
|
|
4639
4489
|
overlayStack = overlayStack.filter((m) => m !== dialog);
|
|
4640
4490
|
};
|
|
4641
4491
|
}, [isOpen]);
|
|
4642
|
-
return /* @__PURE__ */ (
|
|
4492
|
+
return /* @__PURE__ */ jsx13(
|
|
4643
4493
|
Overlay,
|
|
4644
4494
|
{
|
|
4645
4495
|
isOpen,
|
|
4646
4496
|
backgroundClassName,
|
|
4647
|
-
children: /* @__PURE__ */ (
|
|
4497
|
+
children: /* @__PURE__ */ jsxs9(
|
|
4648
4498
|
"div",
|
|
4649
4499
|
{
|
|
4650
4500
|
ref,
|
|
4651
4501
|
tabIndex: -1,
|
|
4652
|
-
className: (
|
|
4502
|
+
className: clsx11(
|
|
4653
4503
|
"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",
|
|
4654
4504
|
className
|
|
4655
4505
|
),
|
|
4656
4506
|
role: "dialog",
|
|
4657
4507
|
"aria-modal": true,
|
|
4658
4508
|
children: [
|
|
4659
|
-
!!headerProps && /* @__PURE__ */ (
|
|
4509
|
+
!!headerProps && /* @__PURE__ */ jsx13(OverlayHeader, { ...headerProps }),
|
|
4660
4510
|
children
|
|
4661
4511
|
]
|
|
4662
4512
|
}
|
|
@@ -4666,7 +4516,7 @@ var Dialog = ({
|
|
|
4666
4516
|
};
|
|
4667
4517
|
|
|
4668
4518
|
// src/components/dialogs/ConfirmDialog.tsx
|
|
4669
|
-
|
|
4519
|
+
import { jsx as jsx14, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
4670
4520
|
var defaultConfirmDialogTranslation = {
|
|
4671
4521
|
en: {
|
|
4672
4522
|
confirm: "Confirm",
|
|
@@ -4694,10 +4544,10 @@ var ConfirmDialog = ({
|
|
|
4694
4544
|
positive: "positive",
|
|
4695
4545
|
primary: "primary"
|
|
4696
4546
|
};
|
|
4697
|
-
return /* @__PURE__ */ (
|
|
4698
|
-
/* @__PURE__ */ (
|
|
4699
|
-
/* @__PURE__ */ (
|
|
4700
|
-
onDecline && /* @__PURE__ */ (
|
|
4547
|
+
return /* @__PURE__ */ jsxs10(Dialog, { ...restProps, className: clsx12("justify-between", className), children: [
|
|
4548
|
+
/* @__PURE__ */ jsx14("div", { className: "col grow", children }),
|
|
4549
|
+
/* @__PURE__ */ jsxs10("div", { className: "row mt-3 gap-x-4 justify-end", children: [
|
|
4550
|
+
onDecline && /* @__PURE__ */ jsx14(
|
|
4701
4551
|
SolidButton,
|
|
4702
4552
|
{
|
|
4703
4553
|
color: buttonOverwrites?.[0].color ?? "negative",
|
|
@@ -4706,7 +4556,7 @@ var ConfirmDialog = ({
|
|
|
4706
4556
|
children: buttonOverwrites?.[0].text ?? translation.decline
|
|
4707
4557
|
}
|
|
4708
4558
|
),
|
|
4709
|
-
/* @__PURE__ */ (
|
|
4559
|
+
/* @__PURE__ */ jsx14(
|
|
4710
4560
|
SolidButton,
|
|
4711
4561
|
{
|
|
4712
4562
|
autoFocus: true,
|
|
@@ -4721,8 +4571,8 @@ var ConfirmDialog = ({
|
|
|
4721
4571
|
};
|
|
4722
4572
|
|
|
4723
4573
|
// src/components/icons-and-geometry/Avatar.tsx
|
|
4724
|
-
|
|
4725
|
-
|
|
4574
|
+
import clsx13 from "clsx";
|
|
4575
|
+
import { jsx as jsx15, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
4726
4576
|
var avtarSizeList = ["tiny", "small", "medium", "large"];
|
|
4727
4577
|
var avatarSizeMapping = {
|
|
4728
4578
|
tiny: 24,
|
|
@@ -4748,7 +4598,7 @@ var Avatar = ({ avatarUrl, alt, size = "medium", className = "" }) => {
|
|
|
4748
4598
|
};
|
|
4749
4599
|
return (
|
|
4750
4600
|
// TODO transparent or white background later
|
|
4751
|
-
/* @__PURE__ */ (
|
|
4601
|
+
/* @__PURE__ */ jsx15("div", { className: clsx13(`rounded-full bg-primary`, className), style, children: /* @__PURE__ */ jsx15(
|
|
4752
4602
|
"img",
|
|
4753
4603
|
{
|
|
4754
4604
|
className: "rounded-full border border-gray-200",
|
|
@@ -4771,22 +4621,22 @@ var AvatarGroup = ({
|
|
|
4771
4621
|
const stackingOverlap = 0.5;
|
|
4772
4622
|
const notDisplayedProfiles = avatars.length - maxShownProfiles;
|
|
4773
4623
|
const avatarGroupWidth = diameter * (stackingOverlap * (displayedProfiles.length - 1) + 1);
|
|
4774
|
-
return /* @__PURE__ */ (
|
|
4775
|
-
/* @__PURE__ */ (
|
|
4624
|
+
return /* @__PURE__ */ jsxs11("div", { className: "row relative", style: { height: diameter + "px" }, children: [
|
|
4625
|
+
/* @__PURE__ */ jsx15("div", { style: { width: avatarGroupWidth + "px" }, children: displayedProfiles.map((avatar, index) => /* @__PURE__ */ jsx15(
|
|
4776
4626
|
"div",
|
|
4777
4627
|
{
|
|
4778
4628
|
className: "absolute",
|
|
4779
4629
|
style: { left: index * diameter * stackingOverlap + "px", zIndex: maxShownProfiles - index },
|
|
4780
|
-
children: /* @__PURE__ */ (
|
|
4630
|
+
children: /* @__PURE__ */ jsx15(Avatar, { avatarUrl: avatar.avatarUrl, alt: avatar.alt, size })
|
|
4781
4631
|
},
|
|
4782
4632
|
index
|
|
4783
4633
|
)) }),
|
|
4784
|
-
notDisplayedProfiles > 0 && /* @__PURE__ */ (
|
|
4634
|
+
notDisplayedProfiles > 0 && /* @__PURE__ */ jsx15(
|
|
4785
4635
|
"div",
|
|
4786
4636
|
{
|
|
4787
4637
|
className: "truncate row items-center",
|
|
4788
4638
|
style: { fontSize: diameter / 2 + "px", marginLeft: 1 + diameter / 16 + "px" },
|
|
4789
|
-
children: /* @__PURE__ */ (
|
|
4639
|
+
children: /* @__PURE__ */ jsxs11("span", { children: [
|
|
4790
4640
|
"+ ",
|
|
4791
4641
|
notDisplayedProfiles
|
|
4792
4642
|
] })
|
|
@@ -4796,8 +4646,8 @@ var AvatarGroup = ({
|
|
|
4796
4646
|
};
|
|
4797
4647
|
|
|
4798
4648
|
// src/components/icons-and-geometry/Circle.tsx
|
|
4799
|
-
|
|
4800
|
-
|
|
4649
|
+
import clsx14 from "clsx";
|
|
4650
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
4801
4651
|
var Circle = ({
|
|
4802
4652
|
radius = 20,
|
|
4803
4653
|
className = "bg-primary",
|
|
@@ -4805,10 +4655,10 @@ var Circle = ({
|
|
|
4805
4655
|
...restProps
|
|
4806
4656
|
}) => {
|
|
4807
4657
|
const size = radius * 2;
|
|
4808
|
-
return /* @__PURE__ */ (
|
|
4658
|
+
return /* @__PURE__ */ jsx16(
|
|
4809
4659
|
"div",
|
|
4810
4660
|
{
|
|
4811
|
-
className: (
|
|
4661
|
+
className: clsx14(`rounded-full`, className),
|
|
4812
4662
|
style: {
|
|
4813
4663
|
width: `${size}px`,
|
|
4814
4664
|
height: `${size}px`,
|
|
@@ -4820,18 +4670,18 @@ var Circle = ({
|
|
|
4820
4670
|
};
|
|
4821
4671
|
|
|
4822
4672
|
// src/components/icons-and-geometry/Ring.tsx
|
|
4823
|
-
|
|
4824
|
-
|
|
4825
|
-
|
|
4673
|
+
import { useCallback as useCallback2, useEffect as useEffect10, useState as useState10 } from "react";
|
|
4674
|
+
import clsx15 from "clsx";
|
|
4675
|
+
import { jsx as jsx17, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
4826
4676
|
var Ring = ({
|
|
4827
4677
|
innerSize = 20,
|
|
4828
4678
|
width = 7,
|
|
4829
4679
|
className = "outline-primary"
|
|
4830
4680
|
}) => {
|
|
4831
|
-
return /* @__PURE__ */ (
|
|
4681
|
+
return /* @__PURE__ */ jsx17(
|
|
4832
4682
|
"div",
|
|
4833
4683
|
{
|
|
4834
|
-
className: (
|
|
4684
|
+
className: clsx15(`bg-transparent rounded-full outline`, className),
|
|
4835
4685
|
style: {
|
|
4836
4686
|
width: `${innerSize}px`,
|
|
4837
4687
|
height: `${innerSize}px`,
|
|
@@ -4849,9 +4699,9 @@ var AnimatedRing = ({
|
|
|
4849
4699
|
onAnimationFinished = noop,
|
|
4850
4700
|
style
|
|
4851
4701
|
}) => {
|
|
4852
|
-
const [currentWidth, setCurrentWidth] = (0
|
|
4702
|
+
const [currentWidth, setCurrentWidth] = useState10(0);
|
|
4853
4703
|
const milliseconds = 1e3 * fillAnimationDuration;
|
|
4854
|
-
const animate = (
|
|
4704
|
+
const animate = useCallback2((timestamp, startTime) => {
|
|
4855
4705
|
const progress = Math.min((timestamp - startTime) / milliseconds, 1);
|
|
4856
4706
|
const newWidth = Math.min(width * progress, width);
|
|
4857
4707
|
setCurrentWidth(newWidth);
|
|
@@ -4865,12 +4715,12 @@ var AnimatedRing = ({
|
|
|
4865
4715
|
}
|
|
4866
4716
|
}
|
|
4867
4717
|
}, [milliseconds, onAnimationFinished, repeating, width]);
|
|
4868
|
-
(
|
|
4718
|
+
useEffect10(() => {
|
|
4869
4719
|
if (currentWidth < width) {
|
|
4870
4720
|
requestAnimationFrame((timestamp) => animate(timestamp, timestamp));
|
|
4871
4721
|
}
|
|
4872
4722
|
}, []);
|
|
4873
|
-
return /* @__PURE__ */ (
|
|
4723
|
+
return /* @__PURE__ */ jsx17(
|
|
4874
4724
|
"div",
|
|
4875
4725
|
{
|
|
4876
4726
|
className: "row items-center justify-center",
|
|
@@ -4879,7 +4729,7 @@ var AnimatedRing = ({
|
|
|
4879
4729
|
height: `${innerSize + 2 * width}px`,
|
|
4880
4730
|
...style
|
|
4881
4731
|
},
|
|
4882
|
-
children: /* @__PURE__ */ (
|
|
4732
|
+
children: /* @__PURE__ */ jsx17(
|
|
4883
4733
|
Ring,
|
|
4884
4734
|
{
|
|
4885
4735
|
innerSize,
|
|
@@ -4900,10 +4750,10 @@ var RingWave = ({
|
|
|
4900
4750
|
onAnimationFinished = noop,
|
|
4901
4751
|
style
|
|
4902
4752
|
}) => {
|
|
4903
|
-
const [currentInnerSize, setCurrentInnerSize] = (
|
|
4753
|
+
const [currentInnerSize, setCurrentInnerSize] = useState10(startInnerSize);
|
|
4904
4754
|
const distance = endInnerSize - startInnerSize;
|
|
4905
4755
|
const milliseconds = 1e3 * fillAnimationDuration;
|
|
4906
|
-
const animate = (
|
|
4756
|
+
const animate = useCallback2((timestamp, startTime) => {
|
|
4907
4757
|
const progress = Math.min((timestamp - startTime) / milliseconds, 1);
|
|
4908
4758
|
const newInnerSize = Math.min(
|
|
4909
4759
|
startInnerSize + distance * progress,
|
|
@@ -4920,12 +4770,12 @@ var RingWave = ({
|
|
|
4920
4770
|
}
|
|
4921
4771
|
}
|
|
4922
4772
|
}, [distance, endInnerSize, milliseconds, onAnimationFinished, repeating, startInnerSize]);
|
|
4923
|
-
(
|
|
4773
|
+
useEffect10(() => {
|
|
4924
4774
|
if (currentInnerSize < endInnerSize) {
|
|
4925
4775
|
requestAnimationFrame((timestamp) => animate(timestamp, timestamp));
|
|
4926
4776
|
}
|
|
4927
4777
|
}, []);
|
|
4928
|
-
return /* @__PURE__ */ (
|
|
4778
|
+
return /* @__PURE__ */ jsx17(
|
|
4929
4779
|
"div",
|
|
4930
4780
|
{
|
|
4931
4781
|
className: "row items-center justify-center",
|
|
@@ -4934,7 +4784,7 @@ var RingWave = ({
|
|
|
4934
4784
|
height: `${endInnerSize + 2 * width}px`,
|
|
4935
4785
|
...style
|
|
4936
4786
|
},
|
|
4937
|
-
children: /* @__PURE__ */ (
|
|
4787
|
+
children: /* @__PURE__ */ jsx17(
|
|
4938
4788
|
Ring,
|
|
4939
4789
|
{
|
|
4940
4790
|
innerSize: currentInnerSize,
|
|
@@ -4955,9 +4805,9 @@ var RadialRings = ({
|
|
|
4955
4805
|
sizeCircle2 = 200,
|
|
4956
4806
|
sizeCircle3 = 300
|
|
4957
4807
|
}) => {
|
|
4958
|
-
const [currentRing, setCurrentRing] = (0
|
|
4808
|
+
const [currentRing, setCurrentRing] = useState10(0);
|
|
4959
4809
|
const size = sizeCircle3;
|
|
4960
|
-
return /* @__PURE__ */ (
|
|
4810
|
+
return /* @__PURE__ */ jsxs12(
|
|
4961
4811
|
"div",
|
|
4962
4812
|
{
|
|
4963
4813
|
className: "relative",
|
|
@@ -4966,25 +4816,25 @@ var RadialRings = ({
|
|
|
4966
4816
|
height: `${sizeCircle3}px`
|
|
4967
4817
|
},
|
|
4968
4818
|
children: [
|
|
4969
|
-
/* @__PURE__ */ (
|
|
4819
|
+
/* @__PURE__ */ jsx17(
|
|
4970
4820
|
Circle,
|
|
4971
4821
|
{
|
|
4972
4822
|
radius: sizeCircle1 / 2,
|
|
4973
|
-
className: (
|
|
4823
|
+
className: clsx15(circle1ClassName, `absolute z-[10] -translate-y-1/2 -translate-x-1/2`),
|
|
4974
4824
|
style: {
|
|
4975
4825
|
left: `${size / 2}px`,
|
|
4976
4826
|
top: `${size / 2}px`
|
|
4977
4827
|
}
|
|
4978
4828
|
}
|
|
4979
4829
|
),
|
|
4980
|
-
currentRing === 0 ? /* @__PURE__ */ (
|
|
4830
|
+
currentRing === 0 ? /* @__PURE__ */ jsx17(
|
|
4981
4831
|
AnimatedRing,
|
|
4982
4832
|
{
|
|
4983
4833
|
innerSize: sizeCircle1,
|
|
4984
4834
|
width: (sizeCircle2 - sizeCircle1) / 2,
|
|
4985
4835
|
onAnimationFinished: () => currentRing === 0 ? setCurrentRing(1) : null,
|
|
4986
4836
|
repeating: true,
|
|
4987
|
-
className: (
|
|
4837
|
+
className: clsx15(
|
|
4988
4838
|
circle2ClassName,
|
|
4989
4839
|
{ "opacity-5": currentRing !== 0 }
|
|
4990
4840
|
),
|
|
@@ -4997,14 +4847,14 @@ var RadialRings = ({
|
|
|
4997
4847
|
}
|
|
4998
4848
|
}
|
|
4999
4849
|
) : null,
|
|
5000
|
-
currentRing === 2 ? /* @__PURE__ */ (
|
|
4850
|
+
currentRing === 2 ? /* @__PURE__ */ jsx17(
|
|
5001
4851
|
RingWave,
|
|
5002
4852
|
{
|
|
5003
4853
|
startInnerSize: sizeCircle1 - waveWidth,
|
|
5004
4854
|
endInnerSize: sizeCircle2,
|
|
5005
4855
|
width: waveWidth,
|
|
5006
4856
|
repeating: true,
|
|
5007
|
-
className: (
|
|
4857
|
+
className: clsx15(waveBaseColor, `opacity-5`),
|
|
5008
4858
|
style: {
|
|
5009
4859
|
left: `${size / 2}px`,
|
|
5010
4860
|
top: `${size / 2}px`,
|
|
@@ -5014,11 +4864,11 @@ var RadialRings = ({
|
|
|
5014
4864
|
}
|
|
5015
4865
|
}
|
|
5016
4866
|
) : null,
|
|
5017
|
-
/* @__PURE__ */ (
|
|
4867
|
+
/* @__PURE__ */ jsx17(
|
|
5018
4868
|
Circle,
|
|
5019
4869
|
{
|
|
5020
4870
|
radius: sizeCircle2 / 2,
|
|
5021
|
-
className: (
|
|
4871
|
+
className: clsx15(
|
|
5022
4872
|
circle2ClassName,
|
|
5023
4873
|
{ "opacity-20": currentRing < 1 },
|
|
5024
4874
|
`absolute z-[8] -translate-y-1/2 -translate-x-1/2`
|
|
@@ -5029,14 +4879,14 @@ var RadialRings = ({
|
|
|
5029
4879
|
}
|
|
5030
4880
|
}
|
|
5031
4881
|
),
|
|
5032
|
-
currentRing === 1 ? /* @__PURE__ */ (
|
|
4882
|
+
currentRing === 1 ? /* @__PURE__ */ jsx17(
|
|
5033
4883
|
AnimatedRing,
|
|
5034
4884
|
{
|
|
5035
4885
|
innerSize: sizeCircle2 - 1,
|
|
5036
4886
|
width: (sizeCircle3 - sizeCircle2) / 2,
|
|
5037
4887
|
onAnimationFinished: () => currentRing === 1 ? setCurrentRing(2) : null,
|
|
5038
4888
|
repeating: true,
|
|
5039
|
-
className: (
|
|
4889
|
+
className: clsx15(circle3ClassName),
|
|
5040
4890
|
style: {
|
|
5041
4891
|
left: `${size / 2}px`,
|
|
5042
4892
|
top: `${size / 2}px`,
|
|
@@ -5046,14 +4896,14 @@ var RadialRings = ({
|
|
|
5046
4896
|
}
|
|
5047
4897
|
}
|
|
5048
4898
|
) : null,
|
|
5049
|
-
currentRing === 2 ? /* @__PURE__ */ (
|
|
4899
|
+
currentRing === 2 ? /* @__PURE__ */ jsx17(
|
|
5050
4900
|
RingWave,
|
|
5051
4901
|
{
|
|
5052
4902
|
startInnerSize: sizeCircle2,
|
|
5053
4903
|
endInnerSize: sizeCircle3 - waveWidth,
|
|
5054
4904
|
width: waveWidth,
|
|
5055
4905
|
repeating: true,
|
|
5056
|
-
className: (
|
|
4906
|
+
className: clsx15(waveBaseColor, `opacity-5`),
|
|
5057
4907
|
style: {
|
|
5058
4908
|
left: `${size / 2}px`,
|
|
5059
4909
|
top: `${size / 2}px`,
|
|
@@ -5063,11 +4913,11 @@ var RadialRings = ({
|
|
|
5063
4913
|
}
|
|
5064
4914
|
}
|
|
5065
4915
|
) : null,
|
|
5066
|
-
/* @__PURE__ */ (
|
|
4916
|
+
/* @__PURE__ */ jsx17(
|
|
5067
4917
|
Circle,
|
|
5068
4918
|
{
|
|
5069
4919
|
radius: sizeCircle3 / 2,
|
|
5070
|
-
className: (
|
|
4920
|
+
className: clsx15(
|
|
5071
4921
|
circle3ClassName,
|
|
5072
4922
|
{ "opacity-20": currentRing < 2 },
|
|
5073
4923
|
`absolute z-[6] -translate-y-1/2 -translate-x-1/2`
|
|
@@ -5084,12 +4934,12 @@ var RadialRings = ({
|
|
|
5084
4934
|
};
|
|
5085
4935
|
|
|
5086
4936
|
// src/components/icons-and-geometry/Tag.tsx
|
|
5087
|
-
|
|
4937
|
+
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
5088
4938
|
var TagIcon = ({
|
|
5089
4939
|
className,
|
|
5090
4940
|
size = 16
|
|
5091
4941
|
}) => {
|
|
5092
|
-
return /* @__PURE__ */ (
|
|
4942
|
+
return /* @__PURE__ */ jsx18(
|
|
5093
4943
|
"img",
|
|
5094
4944
|
{
|
|
5095
4945
|
style: { width: `${size}px`, height: `${size}px`, minWidth: `${size}px`, minHeight: `${size}px` },
|
|
@@ -5103,28 +4953,28 @@ var TagIcon = ({
|
|
|
5103
4953
|
};
|
|
5104
4954
|
|
|
5105
4955
|
// src/components/layout-and-navigation/BreadCrumb.tsx
|
|
5106
|
-
var import_link = __toESM(require_link2()
|
|
5107
|
-
|
|
5108
|
-
|
|
4956
|
+
var import_link = __toESM(require_link2());
|
|
4957
|
+
import clsx16 from "clsx";
|
|
4958
|
+
import { jsx as jsx19, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
5109
4959
|
var BreadCrumb = ({ crumbs, linkClassName, containerClassName }) => {
|
|
5110
4960
|
const color = "text-description";
|
|
5111
|
-
return /* @__PURE__ */ (
|
|
5112
|
-
/* @__PURE__ */ (
|
|
4961
|
+
return /* @__PURE__ */ jsx19("div", { className: clsx16("row gap-x-0", containerClassName), children: crumbs.map((crumb, index) => /* @__PURE__ */ jsxs13("div", { children: [
|
|
4962
|
+
/* @__PURE__ */ jsx19(
|
|
5113
4963
|
import_link.default,
|
|
5114
4964
|
{
|
|
5115
4965
|
href: crumb.link,
|
|
5116
|
-
className: (
|
|
4966
|
+
className: clsx16(linkClassName, { [`${color} hover:brightness-60`]: index !== crumbs.length - 1 }),
|
|
5117
4967
|
children: crumb.display
|
|
5118
4968
|
}
|
|
5119
4969
|
),
|
|
5120
|
-
index !== crumbs.length - 1 && /* @__PURE__ */ (
|
|
4970
|
+
index !== crumbs.length - 1 && /* @__PURE__ */ jsx19("span", { className: clsx16(`px-1`, color), children: "/" })
|
|
5121
4971
|
] }, index)) });
|
|
5122
4972
|
};
|
|
5123
4973
|
|
|
5124
4974
|
// src/components/layout-and-navigation/Carousel.tsx
|
|
5125
|
-
|
|
5126
|
-
|
|
5127
|
-
|
|
4975
|
+
import { useCallback as useCallback3, useEffect as useEffect11, useMemo, useRef as useRef4, useState as useState11 } from "react";
|
|
4976
|
+
import clsx17 from "clsx";
|
|
4977
|
+
import { ChevronLeft, ChevronRight } from "lucide-react";
|
|
5128
4978
|
|
|
5129
4979
|
// src/util/math.ts
|
|
5130
4980
|
var clamp = (value, min = 0, max = 1) => {
|
|
@@ -5229,7 +5079,7 @@ var LoopingArrayCalculator = class _LoopingArrayCalculator {
|
|
|
5229
5079
|
};
|
|
5230
5080
|
|
|
5231
5081
|
// src/components/layout-and-navigation/Carousel.tsx
|
|
5232
|
-
|
|
5082
|
+
import { Fragment, jsx as jsx20, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
5233
5083
|
var Carousel = ({
|
|
5234
5084
|
children,
|
|
5235
5085
|
animationTime = 200,
|
|
@@ -5254,15 +5104,15 @@ var Carousel = ({
|
|
|
5254
5104
|
currentPosition,
|
|
5255
5105
|
dragState,
|
|
5256
5106
|
animationState
|
|
5257
|
-
}, setCarouselInformation] = (
|
|
5107
|
+
}, setCarouselInformation] = useState11({
|
|
5258
5108
|
currentPosition: 0
|
|
5259
5109
|
});
|
|
5260
|
-
const animationId = (
|
|
5261
|
-
const timeOut = (
|
|
5110
|
+
const animationId = useRef4(void 0);
|
|
5111
|
+
const timeOut = useRef4(void 0);
|
|
5262
5112
|
autoLoopingTimeOut = Math.max(0, autoLoopingTimeOut);
|
|
5263
5113
|
const length = children.length;
|
|
5264
5114
|
const paddingItemCount = 3;
|
|
5265
|
-
const util =
|
|
5115
|
+
const util = useMemo(() => new LoopingArrayCalculator(length, isLooping, overScrollThreshold), [length, isLooping, overScrollThreshold]);
|
|
5266
5116
|
const currentIndex = util.getCorrectedPosition(LoopingArrayCalculator.withoutOffset(currentPosition));
|
|
5267
5117
|
animationTime = Math.max(200, animationTime);
|
|
5268
5118
|
autoLoopAnimationTime = Math.max(200, autoLoopAnimationTime);
|
|
@@ -5270,7 +5120,7 @@ var Carousel = ({
|
|
|
5270
5120
|
const baseOffset = -50 + (index - currentPosition) * 100;
|
|
5271
5121
|
return `${baseOffset}%`;
|
|
5272
5122
|
};
|
|
5273
|
-
const animation = (
|
|
5123
|
+
const animation = useCallback3((time) => {
|
|
5274
5124
|
let keepAnimating = true;
|
|
5275
5125
|
setCarouselInformation((state) => {
|
|
5276
5126
|
const {
|
|
@@ -5315,7 +5165,7 @@ var Carousel = ({
|
|
|
5315
5165
|
animationId.current = requestAnimationFrame((time1) => animation(time1));
|
|
5316
5166
|
}
|
|
5317
5167
|
}, [animationTime, autoLoopAnimationTime, util]);
|
|
5318
|
-
(
|
|
5168
|
+
useEffect11(() => {
|
|
5319
5169
|
if (animationState) {
|
|
5320
5170
|
animationId.current = requestAnimationFrame(animation);
|
|
5321
5171
|
}
|
|
@@ -5337,7 +5187,7 @@ var Carousel = ({
|
|
|
5337
5187
|
isAutoLooping: true
|
|
5338
5188
|
}
|
|
5339
5189
|
}));
|
|
5340
|
-
(
|
|
5190
|
+
useEffect11(() => {
|
|
5341
5191
|
if (!animationId.current && !animationState && !dragState && !timeOut.current) {
|
|
5342
5192
|
if (autoLoopingTimeOut > 0) {
|
|
5343
5193
|
timeOut.current = setTimeout(() => {
|
|
@@ -5469,34 +5319,34 @@ var Carousel = ({
|
|
|
5469
5319
|
onTouchEnd: (event) => onDragEnd(event.changedTouches[0].clientX, event.target.getBoundingClientRect().width),
|
|
5470
5320
|
onTouchCancel: (event) => onDragEnd(event.changedTouches[0].clientX, event.target.getBoundingClientRect().width)
|
|
5471
5321
|
};
|
|
5472
|
-
return /* @__PURE__ */ (
|
|
5473
|
-
/* @__PURE__ */ (
|
|
5474
|
-
arrows && /* @__PURE__ */ (
|
|
5475
|
-
/* @__PURE__ */ (
|
|
5322
|
+
return /* @__PURE__ */ jsxs14("div", { className: "col items-center w-full gap-y-2", children: [
|
|
5323
|
+
/* @__PURE__ */ jsxs14("div", { className: clsx17(`relative w-full overflow-hidden`, heightClassName, className), children: [
|
|
5324
|
+
arrows && /* @__PURE__ */ jsxs14(Fragment, { children: [
|
|
5325
|
+
/* @__PURE__ */ jsx20(
|
|
5476
5326
|
"div",
|
|
5477
5327
|
{
|
|
5478
|
-
className: (
|
|
5328
|
+
className: clsx17("absolute z-10 left-0 top-1/2 -translate-y-1/2 bg-gray-200 hover:bg-gray-300 rounded-lg cursor-pointer border-black border-2", { hidden: !canGoLeft() }),
|
|
5479
5329
|
onClick: () => left(),
|
|
5480
|
-
children: /* @__PURE__ */ (
|
|
5330
|
+
children: /* @__PURE__ */ jsx20(ChevronLeft, { size: 32 })
|
|
5481
5331
|
}
|
|
5482
5332
|
),
|
|
5483
|
-
/* @__PURE__ */ (
|
|
5333
|
+
/* @__PURE__ */ jsx20(
|
|
5484
5334
|
"div",
|
|
5485
5335
|
{
|
|
5486
|
-
className: (
|
|
5336
|
+
className: clsx17("absolute z-10 right-0 top-1/2 -translate-y-1/2 bg-gray-200 hover:bg-gray-300 rounded-lg cursor-pointer border-black border-2", { hidden: !canGoRight() }),
|
|
5487
5337
|
onClick: () => right(),
|
|
5488
|
-
children: /* @__PURE__ */ (
|
|
5338
|
+
children: /* @__PURE__ */ jsx20(ChevronRight, { size: 32 })
|
|
5489
5339
|
}
|
|
5490
5340
|
)
|
|
5491
5341
|
] }),
|
|
5492
|
-
hintNext ? /* @__PURE__ */ (
|
|
5493
|
-
/* @__PURE__ */ (
|
|
5342
|
+
hintNext ? /* @__PURE__ */ jsxs14("div", { className: clsx17(`relative row h-full`, heightClassName), children: [
|
|
5343
|
+
/* @__PURE__ */ jsx20("div", { className: "relative row h-full w-full px-2 overflow-hidden", children: items.map(({
|
|
5494
5344
|
item,
|
|
5495
5345
|
index
|
|
5496
|
-
}, listIndex) => /* @__PURE__ */ (
|
|
5346
|
+
}, listIndex) => /* @__PURE__ */ jsx20(
|
|
5497
5347
|
"div",
|
|
5498
5348
|
{
|
|
5499
|
-
className: (
|
|
5349
|
+
className: clsx17(`absolute left-[50%] h-full overflow-hidden`, widthClassName, { "!cursor-grabbing": !!dragState }),
|
|
5500
5350
|
style: { translate: getStyleOffset(listIndex - (isLooping ? paddingItemCount : 0)) },
|
|
5501
5351
|
...dragHandlers,
|
|
5502
5352
|
onClick: () => startAnimation(index),
|
|
@@ -5504,28 +5354,28 @@ var Carousel = ({
|
|
|
5504
5354
|
},
|
|
5505
5355
|
listIndex
|
|
5506
5356
|
)) }),
|
|
5507
|
-
/* @__PURE__ */ (
|
|
5357
|
+
/* @__PURE__ */ jsx20(
|
|
5508
5358
|
"div",
|
|
5509
5359
|
{
|
|
5510
|
-
className: (
|
|
5360
|
+
className: clsx17(`hidden pointer-events-none desktop:block absolute left-0 h-full w-[20%] bg-gradient-to-r to-transparent`, blurColor)
|
|
5511
5361
|
}
|
|
5512
5362
|
),
|
|
5513
|
-
/* @__PURE__ */ (
|
|
5363
|
+
/* @__PURE__ */ jsx20(
|
|
5514
5364
|
"div",
|
|
5515
5365
|
{
|
|
5516
|
-
className: (
|
|
5366
|
+
className: clsx17(`hidden pointer-events-none desktop:block absolute right-0 h-full w-[20%] bg-gradient-to-l to-transparent`, blurColor)
|
|
5517
5367
|
}
|
|
5518
5368
|
)
|
|
5519
|
-
] }) : /* @__PURE__ */ (
|
|
5369
|
+
] }) : /* @__PURE__ */ jsx20("div", { className: clsx17("px-16 h-full", { "!cursor-grabbing": !!dragState }), ...dragHandlers, children: children[currentIndex] })
|
|
5520
5370
|
] }),
|
|
5521
|
-
dots && /* @__PURE__ */ (
|
|
5371
|
+
dots && /* @__PURE__ */ jsx20(
|
|
5522
5372
|
"div",
|
|
5523
5373
|
{
|
|
5524
5374
|
className: "row items-center justify-center w-full my-2",
|
|
5525
|
-
children: range(0, length - 1).map((index) => /* @__PURE__ */ (
|
|
5375
|
+
children: range(0, length - 1).map((index) => /* @__PURE__ */ jsx20(
|
|
5526
5376
|
"button",
|
|
5527
5377
|
{
|
|
5528
|
-
className: (
|
|
5378
|
+
className: clsx17("w-[2rem] min-w-[2rem] h-[0.75rem] min-h-[0.75rem] hover:bg-primary hover:brightness-90 first:rounded-l-md last:rounded-r-md", {
|
|
5529
5379
|
"bg-gray-200": currentIndex !== index,
|
|
5530
5380
|
"bg-primary": currentIndex === index
|
|
5531
5381
|
}),
|
|
@@ -5539,8 +5389,8 @@ var Carousel = ({
|
|
|
5539
5389
|
};
|
|
5540
5390
|
|
|
5541
5391
|
// src/components/layout-and-navigation/Chip.tsx
|
|
5542
|
-
|
|
5543
|
-
|
|
5392
|
+
import clsx18 from "clsx";
|
|
5393
|
+
import { jsx as jsx21, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
5544
5394
|
var Chip = ({
|
|
5545
5395
|
children,
|
|
5546
5396
|
trailingIcon,
|
|
@@ -5567,11 +5417,11 @@ var Chip = ({
|
|
|
5567
5417
|
blue: "text-tag-blue-icon",
|
|
5568
5418
|
pink: "text-tag-pink-icon"
|
|
5569
5419
|
}[color];
|
|
5570
|
-
return /* @__PURE__ */ (
|
|
5420
|
+
return /* @__PURE__ */ jsxs15(
|
|
5571
5421
|
"div",
|
|
5572
5422
|
{
|
|
5573
5423
|
...restProps,
|
|
5574
|
-
className: (
|
|
5424
|
+
className: clsx18(
|
|
5575
5425
|
`row w-fit px-2 py-1`,
|
|
5576
5426
|
colorMapping,
|
|
5577
5427
|
{
|
|
@@ -5582,7 +5432,7 @@ var Chip = ({
|
|
|
5582
5432
|
),
|
|
5583
5433
|
children: [
|
|
5584
5434
|
children,
|
|
5585
|
-
trailingIcon && /* @__PURE__ */ (
|
|
5435
|
+
trailingIcon && /* @__PURE__ */ jsx21("span", { className: colorMappingIcon, children: trailingIcon })
|
|
5586
5436
|
]
|
|
5587
5437
|
}
|
|
5588
5438
|
);
|
|
@@ -5591,7 +5441,7 @@ var ChipList = ({
|
|
|
5591
5441
|
list,
|
|
5592
5442
|
className = ""
|
|
5593
5443
|
}) => {
|
|
5594
|
-
return /* @__PURE__ */ (
|
|
5444
|
+
return /* @__PURE__ */ jsx21("div", { className: clsx18("flex flex-wrap gap-x-4 gap-y-2", className), children: list.map((value, index) => /* @__PURE__ */ jsx21(
|
|
5595
5445
|
Chip,
|
|
5596
5446
|
{
|
|
5597
5447
|
...value,
|
|
@@ -5604,8 +5454,8 @@ var ChipList = ({
|
|
|
5604
5454
|
};
|
|
5605
5455
|
|
|
5606
5456
|
// src/components/layout-and-navigation/DividerInserter.tsx
|
|
5607
|
-
|
|
5608
|
-
|
|
5457
|
+
import clsx19 from "clsx";
|
|
5458
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
5609
5459
|
var DividerInserter = ({
|
|
5610
5460
|
children,
|
|
5611
5461
|
divider,
|
|
@@ -5622,15 +5472,15 @@ var DividerInserter = ({
|
|
|
5622
5472
|
}
|
|
5623
5473
|
}
|
|
5624
5474
|
}
|
|
5625
|
-
return /* @__PURE__ */ (
|
|
5475
|
+
return /* @__PURE__ */ jsx22("div", { className: clsx19(className), ...restProps, children: nodes });
|
|
5626
5476
|
};
|
|
5627
5477
|
|
|
5628
5478
|
// src/components/layout-and-navigation/FAQSection.tsx
|
|
5629
|
-
|
|
5630
|
-
|
|
5479
|
+
import clsx20 from "clsx";
|
|
5480
|
+
import { ChevronDown as ChevronDown3, ChevronUp as ChevronUp2 } from "lucide-react";
|
|
5631
5481
|
|
|
5632
5482
|
// src/components/layout-and-navigation/MarkdownInterpreter.tsx
|
|
5633
|
-
|
|
5483
|
+
import { Fragment as Fragment2, jsx as jsx23 } from "react/jsx-runtime";
|
|
5634
5484
|
var astNodeInserterType = ["helpwave", "newline"];
|
|
5635
5485
|
var ASTNodeInterpreter = ({
|
|
5636
5486
|
node,
|
|
@@ -5639,27 +5489,27 @@ var ASTNodeInterpreter = ({
|
|
|
5639
5489
|
}) => {
|
|
5640
5490
|
switch (node.type) {
|
|
5641
5491
|
case "newline":
|
|
5642
|
-
return /* @__PURE__ */ (
|
|
5492
|
+
return /* @__PURE__ */ jsx23("br", {});
|
|
5643
5493
|
case "text":
|
|
5644
|
-
return isRoot ? /* @__PURE__ */ (
|
|
5494
|
+
return isRoot ? /* @__PURE__ */ jsx23("span", { className, children: node.text }) : node.text;
|
|
5645
5495
|
case "helpwave":
|
|
5646
|
-
return /* @__PURE__ */ (
|
|
5496
|
+
return /* @__PURE__ */ jsx23("span", { className: "font-bold font-space no-underline", children: "helpwave" });
|
|
5647
5497
|
case "none":
|
|
5648
|
-
return isRoot ? /* @__PURE__ */ (
|
|
5498
|
+
return isRoot ? /* @__PURE__ */ jsx23("span", { className, children: node.children.map((value, index) => /* @__PURE__ */ jsx23(
|
|
5649
5499
|
ASTNodeInterpreter,
|
|
5650
5500
|
{
|
|
5651
5501
|
node: value
|
|
5652
5502
|
},
|
|
5653
5503
|
index
|
|
5654
|
-
)) }) : /* @__PURE__ */ (
|
|
5504
|
+
)) }) : /* @__PURE__ */ jsx23(Fragment2, { children: node.children.map((value, index) => /* @__PURE__ */ jsx23(ASTNodeInterpreter, { node: value }, index)) });
|
|
5655
5505
|
case "bold":
|
|
5656
|
-
return /* @__PURE__ */ (
|
|
5506
|
+
return /* @__PURE__ */ jsx23("b", { children: node.children.map((value, index) => /* @__PURE__ */ jsx23(ASTNodeInterpreter, { node: value }, index)) });
|
|
5657
5507
|
case "italic":
|
|
5658
|
-
return /* @__PURE__ */ (
|
|
5508
|
+
return /* @__PURE__ */ jsx23("i", { children: node.children.map((value, index) => /* @__PURE__ */ jsx23(ASTNodeInterpreter, { node: value }, index)) });
|
|
5659
5509
|
case "underline":
|
|
5660
|
-
return /* @__PURE__ */ (
|
|
5510
|
+
return /* @__PURE__ */ jsx23("u", { children: node.children.map((value, index) => /* @__PURE__ */ jsx23(ASTNodeInterpreter, { node: value }, index)) });
|
|
5661
5511
|
case "font-space":
|
|
5662
|
-
return /* @__PURE__ */ (
|
|
5512
|
+
return /* @__PURE__ */ jsx23("span", { className: "font-space", children: node.children.map((value, index) => /* @__PURE__ */ jsx23(
|
|
5663
5513
|
ASTNodeInterpreter,
|
|
5664
5514
|
{
|
|
5665
5515
|
node: value
|
|
@@ -5667,7 +5517,7 @@ var ASTNodeInterpreter = ({
|
|
|
5667
5517
|
index
|
|
5668
5518
|
)) });
|
|
5669
5519
|
case "primary":
|
|
5670
|
-
return /* @__PURE__ */ (
|
|
5520
|
+
return /* @__PURE__ */ jsx23("span", { className: "text-primary", children: node.children.map((value, index) => /* @__PURE__ */ jsx23(
|
|
5671
5521
|
ASTNodeInterpreter,
|
|
5672
5522
|
{
|
|
5673
5523
|
node: value
|
|
@@ -5675,7 +5525,7 @@ var ASTNodeInterpreter = ({
|
|
|
5675
5525
|
index
|
|
5676
5526
|
)) });
|
|
5677
5527
|
case "secondary":
|
|
5678
|
-
return /* @__PURE__ */ (
|
|
5528
|
+
return /* @__PURE__ */ jsx23("span", { className: "text-secondary", children: node.children.map((value, index) => /* @__PURE__ */ jsx23(
|
|
5679
5529
|
ASTNodeInterpreter,
|
|
5680
5530
|
{
|
|
5681
5531
|
node: value
|
|
@@ -5683,7 +5533,7 @@ var ASTNodeInterpreter = ({
|
|
|
5683
5533
|
index
|
|
5684
5534
|
)) });
|
|
5685
5535
|
case "warn":
|
|
5686
|
-
return /* @__PURE__ */ (
|
|
5536
|
+
return /* @__PURE__ */ jsx23("span", { className: "text-warning", children: node.children.map((value, index) => /* @__PURE__ */ jsx23(
|
|
5687
5537
|
ASTNodeInterpreter,
|
|
5688
5538
|
{
|
|
5689
5539
|
node: value
|
|
@@ -5691,7 +5541,7 @@ var ASTNodeInterpreter = ({
|
|
|
5691
5541
|
index
|
|
5692
5542
|
)) });
|
|
5693
5543
|
case "positive":
|
|
5694
|
-
return /* @__PURE__ */ (
|
|
5544
|
+
return /* @__PURE__ */ jsx23("span", { className: "text-positive", children: node.children.map((value, index) => /* @__PURE__ */ jsx23(
|
|
5695
5545
|
ASTNodeInterpreter,
|
|
5696
5546
|
{
|
|
5697
5547
|
node: value
|
|
@@ -5699,7 +5549,7 @@ var ASTNodeInterpreter = ({
|
|
|
5699
5549
|
index
|
|
5700
5550
|
)) });
|
|
5701
5551
|
case "negative":
|
|
5702
|
-
return /* @__PURE__ */ (
|
|
5552
|
+
return /* @__PURE__ */ jsx23("span", { className: "text-negative", children: node.children.map((value, index) => /* @__PURE__ */ jsx23(
|
|
5703
5553
|
ASTNodeInterpreter,
|
|
5704
5554
|
{
|
|
5705
5555
|
node: value
|
|
@@ -5857,34 +5707,34 @@ var optimizeTree = (node) => {
|
|
|
5857
5707
|
var MarkdownInterpreter = ({ text, className }) => {
|
|
5858
5708
|
const tree = parseMarkdown(text);
|
|
5859
5709
|
const optimizedTree = optimizeTree(tree);
|
|
5860
|
-
return /* @__PURE__ */ (
|
|
5710
|
+
return /* @__PURE__ */ jsx23(ASTNodeInterpreter, { node: optimizedTree, isRoot: true, className });
|
|
5861
5711
|
};
|
|
5862
5712
|
|
|
5863
5713
|
// src/components/layout-and-navigation/FAQSection.tsx
|
|
5864
|
-
|
|
5714
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
5865
5715
|
var FAQSection = ({
|
|
5866
5716
|
entries,
|
|
5867
5717
|
expandableClassName
|
|
5868
5718
|
}) => {
|
|
5869
5719
|
const chevronSize = 28;
|
|
5870
|
-
return /* @__PURE__ */ (
|
|
5720
|
+
return /* @__PURE__ */ jsx24("div", { className: "col gap-y-4", children: entries.map(({ id, title, content, ...restProps }) => /* @__PURE__ */ jsx24(
|
|
5871
5721
|
ExpandableUncontrolled,
|
|
5872
5722
|
{
|
|
5873
5723
|
...restProps,
|
|
5874
|
-
label: /* @__PURE__ */ (
|
|
5724
|
+
label: /* @__PURE__ */ jsx24("h3", { id, className: "textstyle-title-md", children: title }),
|
|
5875
5725
|
clickOnlyOnHeader: false,
|
|
5876
|
-
icon: (expanded) => expanded ? /* @__PURE__ */ (
|
|
5877
|
-
className: (
|
|
5878
|
-
children: /* @__PURE__ */ (
|
|
5726
|
+
icon: (expanded) => expanded ? /* @__PURE__ */ jsx24(ChevronUp2, { size: chevronSize, className: "text-primary", style: { minWidth: `${chevronSize}px` } }) : /* @__PURE__ */ jsx24(ChevronDown3, { size: chevronSize, className: "text-primary" }),
|
|
5727
|
+
className: clsx20("rounded-xl", expandableClassName),
|
|
5728
|
+
children: /* @__PURE__ */ jsx24("div", { className: "mt-2", children: content.type === "markdown" ? /* @__PURE__ */ jsx24(MarkdownInterpreter, { text: content.value }) : content.value })
|
|
5879
5729
|
},
|
|
5880
5730
|
id
|
|
5881
5731
|
)) });
|
|
5882
5732
|
};
|
|
5883
5733
|
|
|
5884
5734
|
// src/components/layout-and-navigation/Pagination.tsx
|
|
5885
|
-
|
|
5886
|
-
|
|
5887
|
-
|
|
5735
|
+
import { ChevronFirst, ChevronLast, ChevronLeft as ChevronLeft2, ChevronRight as ChevronRight2 } from "lucide-react";
|
|
5736
|
+
import clsx21 from "clsx";
|
|
5737
|
+
import { jsx as jsx25, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
5888
5738
|
var defaultPaginationTranslations = {
|
|
5889
5739
|
en: {
|
|
5890
5740
|
of: "of"
|
|
@@ -5906,23 +5756,23 @@ var Pagination = ({
|
|
|
5906
5756
|
const noPages = numberOfPages === 0;
|
|
5907
5757
|
const onFirstPage = page === 0 && !noPages;
|
|
5908
5758
|
const onLastPage = page === numberOfPages - 1;
|
|
5909
|
-
return /* @__PURE__ */ (
|
|
5910
|
-
/* @__PURE__ */ (
|
|
5911
|
-
/* @__PURE__ */ (
|
|
5912
|
-
/* @__PURE__ */ (
|
|
5913
|
-
/* @__PURE__ */ (
|
|
5914
|
-
/* @__PURE__ */ (
|
|
5915
|
-
/* @__PURE__ */ (
|
|
5759
|
+
return /* @__PURE__ */ jsxs16("div", { className: clsx21("row", { "opacity-30": noPages }), children: [
|
|
5760
|
+
/* @__PURE__ */ jsx25("button", { onClick: () => changePage(0), disabled: onFirstPage, children: /* @__PURE__ */ jsx25(ChevronFirst, { className: clsx21({ "opacity-30": onFirstPage }) }) }),
|
|
5761
|
+
/* @__PURE__ */ jsx25("button", { onClick: () => changePage(page - 1), disabled: onFirstPage, children: /* @__PURE__ */ jsx25(ChevronLeft2, { className: clsx21({ "opacity-30": onFirstPage }) }) }),
|
|
5762
|
+
/* @__PURE__ */ jsxs16("div", { className: "min-w-[80px] justify-center mx-2", children: [
|
|
5763
|
+
/* @__PURE__ */ jsx25("span", { className: "select-none text-right flex-1", children: noPages ? 0 : page + 1 }),
|
|
5764
|
+
/* @__PURE__ */ jsx25("span", { className: "select-none mx-2", children: translation.of }),
|
|
5765
|
+
/* @__PURE__ */ jsx25("span", { className: "select-none text-left flex-1", children: numberOfPages })
|
|
5916
5766
|
] }),
|
|
5917
|
-
/* @__PURE__ */ (
|
|
5918
|
-
/* @__PURE__ */ (
|
|
5767
|
+
/* @__PURE__ */ jsx25("button", { onClick: () => changePage(page + 1), disabled: onLastPage || noPages, children: /* @__PURE__ */ jsx25(ChevronRight2, { className: clsx21({ "opacity-30": onLastPage }) }) }),
|
|
5768
|
+
/* @__PURE__ */ jsx25("button", { onClick: () => changePage(numberOfPages - 1), disabled: onLastPage || noPages, children: /* @__PURE__ */ jsx25(ChevronLast, { className: clsx21({ "opacity-30": onLastPage }) }) })
|
|
5919
5769
|
] });
|
|
5920
5770
|
};
|
|
5921
5771
|
|
|
5922
5772
|
// src/components/layout-and-navigation/SearchableList.tsx
|
|
5923
|
-
|
|
5924
|
-
|
|
5925
|
-
|
|
5773
|
+
import { useEffect as useEffect14, useMemo as useMemo2, useState as useState14 } from "react";
|
|
5774
|
+
import { Search } from "lucide-react";
|
|
5775
|
+
import clsx24 from "clsx";
|
|
5926
5776
|
|
|
5927
5777
|
// src/util/simpleSearch.ts
|
|
5928
5778
|
var MultiSubjectSearchWithMapping = (search, objects, mapping) => {
|
|
@@ -5945,14 +5795,14 @@ var SimpleSearch = (search, objects) => {
|
|
|
5945
5795
|
};
|
|
5946
5796
|
|
|
5947
5797
|
// src/components/user-action/Input.tsx
|
|
5948
|
-
|
|
5949
|
-
|
|
5798
|
+
import { forwardRef as forwardRef2, useEffect as useEffect13, useRef as useRef5, useState as useState13 } from "react";
|
|
5799
|
+
import clsx23 from "clsx";
|
|
5950
5800
|
|
|
5951
5801
|
// src/hooks/useSaveDelay.ts
|
|
5952
|
-
|
|
5802
|
+
import { useEffect as useEffect12, useState as useState12 } from "react";
|
|
5953
5803
|
function useSaveDelay(setNotificationStatus, delay) {
|
|
5954
|
-
const [updateTimer, setUpdateTimer] = (
|
|
5955
|
-
const [notificationTimer, setNotificationTimer] = (
|
|
5804
|
+
const [updateTimer, setUpdateTimer] = useState12(void 0);
|
|
5805
|
+
const [notificationTimer, setNotificationTimer] = useState12(void 0);
|
|
5956
5806
|
const restartTimer = (onSave) => {
|
|
5957
5807
|
clearTimeout(updateTimer);
|
|
5958
5808
|
setUpdateTimer(setTimeout(() => {
|
|
@@ -5979,7 +5829,7 @@ function useSaveDelay(setNotificationStatus, delay) {
|
|
|
5979
5829
|
setNotificationStatus(false);
|
|
5980
5830
|
}
|
|
5981
5831
|
};
|
|
5982
|
-
(
|
|
5832
|
+
useEffect12(() => {
|
|
5983
5833
|
return () => {
|
|
5984
5834
|
clearTimeout(updateTimer);
|
|
5985
5835
|
clearTimeout(notificationTimer);
|
|
@@ -5989,8 +5839,8 @@ function useSaveDelay(setNotificationStatus, delay) {
|
|
|
5989
5839
|
}
|
|
5990
5840
|
|
|
5991
5841
|
// src/components/user-action/Label.tsx
|
|
5992
|
-
|
|
5993
|
-
|
|
5842
|
+
import clsx22 from "clsx";
|
|
5843
|
+
import { jsx as jsx26 } from "react/jsx-runtime";
|
|
5994
5844
|
var styleMapping = {
|
|
5995
5845
|
labelSmall: "textstyle-label-sm",
|
|
5996
5846
|
labelMedium: "textstyle-label-md",
|
|
@@ -6003,11 +5853,11 @@ var Label = ({
|
|
|
6003
5853
|
className,
|
|
6004
5854
|
...props
|
|
6005
5855
|
}) => {
|
|
6006
|
-
return /* @__PURE__ */ (
|
|
5856
|
+
return /* @__PURE__ */ jsx26("label", { ...props, className: clsx22(styleMapping[labelType], className), children: children ? children : name });
|
|
6007
5857
|
};
|
|
6008
5858
|
|
|
6009
5859
|
// src/components/user-action/Input.tsx
|
|
6010
|
-
|
|
5860
|
+
import { jsx as jsx27, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
6011
5861
|
var Input = ({
|
|
6012
5862
|
id,
|
|
6013
5863
|
type = "text",
|
|
@@ -6027,15 +5877,15 @@ var Input = ({
|
|
|
6027
5877
|
restartTimer,
|
|
6028
5878
|
clearUpdateTimer
|
|
6029
5879
|
} = useSaveDelay(() => void 0, 3e3);
|
|
6030
|
-
const ref = (
|
|
6031
|
-
(
|
|
5880
|
+
const ref = useRef5(null);
|
|
5881
|
+
useEffect13(() => {
|
|
6032
5882
|
if (autoFocus) {
|
|
6033
5883
|
ref.current?.focus();
|
|
6034
5884
|
}
|
|
6035
5885
|
}, [autoFocus]);
|
|
6036
|
-
return /* @__PURE__ */ (
|
|
6037
|
-
label && /* @__PURE__ */ (
|
|
6038
|
-
/* @__PURE__ */ (
|
|
5886
|
+
return /* @__PURE__ */ jsxs17("div", { className: clsx23({ "w-full": expanded }, containerClassName), children: [
|
|
5887
|
+
label && /* @__PURE__ */ jsx27(Label, { ...label, htmlFor: id, className: clsx23("mb-1", label.className) }),
|
|
5888
|
+
/* @__PURE__ */ jsx27(
|
|
6039
5889
|
"input",
|
|
6040
5890
|
{
|
|
6041
5891
|
ref,
|
|
@@ -6073,8 +5923,8 @@ var InputUncontrolled = ({
|
|
|
6073
5923
|
onChangeText = noop,
|
|
6074
5924
|
...props
|
|
6075
5925
|
}) => {
|
|
6076
|
-
const [value, setValue] = (
|
|
6077
|
-
return /* @__PURE__ */ (
|
|
5926
|
+
const [value, setValue] = useState13(defaultValue);
|
|
5927
|
+
return /* @__PURE__ */ jsx27(
|
|
6078
5928
|
Input,
|
|
6079
5929
|
{
|
|
6080
5930
|
...props,
|
|
@@ -6086,7 +5936,7 @@ var InputUncontrolled = ({
|
|
|
6086
5936
|
}
|
|
6087
5937
|
);
|
|
6088
5938
|
};
|
|
6089
|
-
var FormInput = (
|
|
5939
|
+
var FormInput = forwardRef2(function FormInput2({
|
|
6090
5940
|
id,
|
|
6091
5941
|
labelText,
|
|
6092
5942
|
errorText,
|
|
@@ -6097,13 +5947,13 @@ var FormInput = (0, import_react13.forwardRef)(function FormInput2({
|
|
|
6097
5947
|
required,
|
|
6098
5948
|
...restProps
|
|
6099
5949
|
}, ref) {
|
|
6100
|
-
const input = /* @__PURE__ */ (
|
|
5950
|
+
const input = /* @__PURE__ */ jsx27(
|
|
6101
5951
|
"input",
|
|
6102
5952
|
{
|
|
6103
5953
|
ref,
|
|
6104
5954
|
id,
|
|
6105
5955
|
...restProps,
|
|
6106
|
-
className: (
|
|
5956
|
+
className: clsx23(
|
|
6107
5957
|
{
|
|
6108
5958
|
"focus:border-primary focus:ring-primary": !errorText,
|
|
6109
5959
|
"focus:border-negative focus:ring-negative text-negative": !!errorText
|
|
@@ -6112,18 +5962,18 @@ var FormInput = (0, import_react13.forwardRef)(function FormInput2({
|
|
|
6112
5962
|
)
|
|
6113
5963
|
}
|
|
6114
5964
|
);
|
|
6115
|
-
return /* @__PURE__ */ (
|
|
6116
|
-
labelText && /* @__PURE__ */ (
|
|
5965
|
+
return /* @__PURE__ */ jsxs17("div", { className: clsx23("flex flex-col gap-y-1", containerClassName), children: [
|
|
5966
|
+
labelText && /* @__PURE__ */ jsxs17("label", { htmlFor: id, className: clsx23("textstyle-label-md", labelClassName), children: [
|
|
6117
5967
|
labelText,
|
|
6118
|
-
required && /* @__PURE__ */ (
|
|
5968
|
+
required && /* @__PURE__ */ jsx27("span", { className: "text-primary font-bold", children: "*" })
|
|
6119
5969
|
] }),
|
|
6120
5970
|
input,
|
|
6121
|
-
errorText && /* @__PURE__ */ (
|
|
5971
|
+
errorText && /* @__PURE__ */ jsx27("label", { htmlFor: id, className: clsx23("text-negative", errorClassName), children: errorText })
|
|
6122
5972
|
] });
|
|
6123
5973
|
});
|
|
6124
5974
|
|
|
6125
5975
|
// src/components/layout-and-navigation/SearchableList.tsx
|
|
6126
|
-
|
|
5976
|
+
import { jsx as jsx28, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
6127
5977
|
var defaultSearchableListTranslation = {
|
|
6128
5978
|
en: {
|
|
6129
5979
|
search: "Search",
|
|
@@ -6143,24 +5993,24 @@ var SearchableList = ({
|
|
|
6143
5993
|
className
|
|
6144
5994
|
}) => {
|
|
6145
5995
|
const translation = useTranslation(defaultSearchableListTranslation, overwriteTranslation);
|
|
6146
|
-
const [search, setSearch] = (
|
|
6147
|
-
(
|
|
6148
|
-
const filteredEntries = (
|
|
6149
|
-
return /* @__PURE__ */ (
|
|
6150
|
-
/* @__PURE__ */ (
|
|
6151
|
-
/* @__PURE__ */ (
|
|
6152
|
-
/* @__PURE__ */ (
|
|
5996
|
+
const [search, setSearch] = useState14(initialSearch);
|
|
5997
|
+
useEffect14(() => setSearch(initialSearch), [initialSearch]);
|
|
5998
|
+
const filteredEntries = useMemo2(() => MultiSearchWithMapping(search, list, searchMapping), [search, list, searchMapping]);
|
|
5999
|
+
return /* @__PURE__ */ jsxs18("div", { className: clsx24("col gap-y-2", className), children: [
|
|
6000
|
+
/* @__PURE__ */ jsxs18("div", { className: "row justify-between gap-x-2 items-center", children: [
|
|
6001
|
+
/* @__PURE__ */ jsx28("div", { className: "flex-1", children: /* @__PURE__ */ jsx28(Input, { value: search, onChangeText: setSearch, placeholder: translation.search }) }),
|
|
6002
|
+
/* @__PURE__ */ jsx28(Search, { size: 20 })
|
|
6153
6003
|
] }),
|
|
6154
|
-
filteredEntries.length > 0 && /* @__PURE__ */ (
|
|
6155
|
-
!filteredEntries.length && /* @__PURE__ */ (
|
|
6004
|
+
filteredEntries.length > 0 && /* @__PURE__ */ jsx28("div", { className: "col gap-y-1", children: filteredEntries.map(itemMapper) }),
|
|
6005
|
+
!filteredEntries.length && /* @__PURE__ */ jsx28("div", { className: "row justify-center", children: translation.nothingFound })
|
|
6156
6006
|
] });
|
|
6157
6007
|
};
|
|
6158
6008
|
|
|
6159
6009
|
// src/components/layout-and-navigation/StepperBar.tsx
|
|
6160
|
-
|
|
6161
|
-
|
|
6162
|
-
|
|
6163
|
-
|
|
6010
|
+
import { Check, ChevronLeft as ChevronLeft3, ChevronRight as ChevronRight3 } from "lucide-react";
|
|
6011
|
+
import clsx25 from "clsx";
|
|
6012
|
+
import { useEffect as useEffect15, useState as useState15 } from "react";
|
|
6013
|
+
import { jsx as jsx29, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
6164
6014
|
var defaultStepperBarTranslation = {
|
|
6165
6015
|
en: {
|
|
6166
6016
|
back: "Back",
|
|
@@ -6195,12 +6045,12 @@ var StepperBar = ({
|
|
|
6195
6045
|
seenSteps.add(newStep);
|
|
6196
6046
|
onChange({ currentStep: newStep, seenSteps });
|
|
6197
6047
|
};
|
|
6198
|
-
return /* @__PURE__ */ (
|
|
6048
|
+
return /* @__PURE__ */ jsxs19(
|
|
6199
6049
|
"div",
|
|
6200
6050
|
{
|
|
6201
|
-
className: (
|
|
6051
|
+
className: clsx25("row justify-between", className),
|
|
6202
6052
|
children: [
|
|
6203
|
-
/* @__PURE__ */ (
|
|
6053
|
+
/* @__PURE__ */ jsx29("div", { className: "row flex-[2] justify-start", children: /* @__PURE__ */ jsxs19(
|
|
6204
6054
|
SolidButton,
|
|
6205
6055
|
{
|
|
6206
6056
|
disabled: currentStep === 0 || disabledSteps.has(currentStep),
|
|
@@ -6209,18 +6059,18 @@ var StepperBar = ({
|
|
|
6209
6059
|
},
|
|
6210
6060
|
className: "row gap-x-1 items-center justify-center",
|
|
6211
6061
|
children: [
|
|
6212
|
-
/* @__PURE__ */ (
|
|
6062
|
+
/* @__PURE__ */ jsx29(ChevronLeft3, { size: 14 }),
|
|
6213
6063
|
translation.back
|
|
6214
6064
|
]
|
|
6215
6065
|
}
|
|
6216
6066
|
) }),
|
|
6217
|
-
/* @__PURE__ */ (
|
|
6067
|
+
/* @__PURE__ */ jsx29("div", { className: "row flex-[5] gap-x-2 justify-center items-center", children: showDots && dots.map((value, index) => {
|
|
6218
6068
|
const seen = seenSteps.has(index);
|
|
6219
|
-
return /* @__PURE__ */ (
|
|
6069
|
+
return /* @__PURE__ */ jsx29(
|
|
6220
6070
|
"div",
|
|
6221
6071
|
{
|
|
6222
6072
|
onClick: () => seen && update(index),
|
|
6223
|
-
className: (
|
|
6073
|
+
className: clsx25(
|
|
6224
6074
|
"rounded-full w-4 h-4",
|
|
6225
6075
|
{
|
|
6226
6076
|
"bg-primary hover:brightness-75": index === currentStep && seen && !disabledSteps.has(currentStep),
|
|
@@ -6236,7 +6086,7 @@ var StepperBar = ({
|
|
|
6236
6086
|
index
|
|
6237
6087
|
);
|
|
6238
6088
|
}) }),
|
|
6239
|
-
currentStep !== numberOfSteps && /* @__PURE__ */ (
|
|
6089
|
+
currentStep !== numberOfSteps && /* @__PURE__ */ jsx29("div", { className: "row flex-[2] justify-end", children: /* @__PURE__ */ jsxs19(
|
|
6240
6090
|
SolidButton,
|
|
6241
6091
|
{
|
|
6242
6092
|
onClick: () => update(currentStep + 1),
|
|
@@ -6244,18 +6094,18 @@ var StepperBar = ({
|
|
|
6244
6094
|
disabled: disabledSteps.has(currentStep),
|
|
6245
6095
|
children: [
|
|
6246
6096
|
translation.next,
|
|
6247
|
-
/* @__PURE__ */ (
|
|
6097
|
+
/* @__PURE__ */ jsx29(ChevronRight3, { size: 14 })
|
|
6248
6098
|
]
|
|
6249
6099
|
}
|
|
6250
6100
|
) }),
|
|
6251
|
-
currentStep === numberOfSteps && /* @__PURE__ */ (
|
|
6101
|
+
currentStep === numberOfSteps && /* @__PURE__ */ jsx29("div", { className: "row flex-[2] justify-end", children: /* @__PURE__ */ jsxs19(
|
|
6252
6102
|
SolidButton,
|
|
6253
6103
|
{
|
|
6254
6104
|
disabled: disabledSteps.has(currentStep),
|
|
6255
6105
|
onClick: onFinish,
|
|
6256
6106
|
className: "row gap-x-1 items-center justify-center",
|
|
6257
6107
|
children: [
|
|
6258
|
-
/* @__PURE__ */ (
|
|
6108
|
+
/* @__PURE__ */ jsx29(Check, { size: 14 }),
|
|
6259
6109
|
finishText ?? translation.confirm
|
|
6260
6110
|
]
|
|
6261
6111
|
}
|
|
@@ -6265,11 +6115,11 @@ var StepperBar = ({
|
|
|
6265
6115
|
);
|
|
6266
6116
|
};
|
|
6267
6117
|
var StepperBarUncontrolled = ({ state, onChange, ...props }) => {
|
|
6268
|
-
const [usedState, setUsedState] = (
|
|
6269
|
-
(
|
|
6118
|
+
const [usedState, setUsedState] = useState15(state ?? defaultState);
|
|
6119
|
+
useEffect15(() => {
|
|
6270
6120
|
setUsedState(state ?? defaultState);
|
|
6271
6121
|
}, [state]);
|
|
6272
|
-
return /* @__PURE__ */ (
|
|
6122
|
+
return /* @__PURE__ */ jsx29(
|
|
6273
6123
|
StepperBar,
|
|
6274
6124
|
{
|
|
6275
6125
|
...props,
|
|
@@ -6283,15 +6133,15 @@ var StepperBarUncontrolled = ({ state, onChange, ...props }) => {
|
|
|
6283
6133
|
};
|
|
6284
6134
|
|
|
6285
6135
|
// src/components/layout-and-navigation/Table.tsx
|
|
6286
|
-
|
|
6287
|
-
|
|
6136
|
+
import { useEffect as useEffect16, useRef as useRef6, useState as useState17 } from "react";
|
|
6137
|
+
import { Scrollbars as Scrollbars3 } from "react-custom-scrollbars-2";
|
|
6288
6138
|
|
|
6289
6139
|
// src/components/user-action/Checkbox.tsx
|
|
6290
|
-
|
|
6291
|
-
|
|
6292
|
-
|
|
6293
|
-
|
|
6294
|
-
|
|
6140
|
+
import { useState as useState16 } from "react";
|
|
6141
|
+
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
6142
|
+
import { Check as Check2, Minus } from "lucide-react";
|
|
6143
|
+
import clsx26 from "clsx";
|
|
6144
|
+
import { jsx as jsx30, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
6295
6145
|
var checkboxSizeMapping = {
|
|
6296
6146
|
small: "size-4",
|
|
6297
6147
|
medium: "size-6",
|
|
@@ -6327,31 +6177,31 @@ var Checkbox = ({
|
|
|
6327
6177
|
const newValue = checked === "indeterminate" ? false : !checked;
|
|
6328
6178
|
propagateChange(newValue);
|
|
6329
6179
|
};
|
|
6330
|
-
return /* @__PURE__ */ (
|
|
6331
|
-
/* @__PURE__ */ (
|
|
6180
|
+
return /* @__PURE__ */ jsxs20("div", { className: clsx26("row justify-center items-center", containerClassName), children: [
|
|
6181
|
+
/* @__PURE__ */ jsx30(
|
|
6332
6182
|
CheckboxPrimitive.Root,
|
|
6333
6183
|
{
|
|
6334
6184
|
onCheckedChange: propagateChange,
|
|
6335
6185
|
checked,
|
|
6336
6186
|
disabled,
|
|
6337
6187
|
id,
|
|
6338
|
-
className: (
|
|
6339
|
-
"text-disabled-text border-disabled-text": disabled,
|
|
6340
|
-
"
|
|
6188
|
+
className: clsx26(usedSizeClass, `items-center border-2 rounded outline-none focus:border-primary`, {
|
|
6189
|
+
"text-disabled-text border-disabled-text bg-disabled-background": disabled,
|
|
6190
|
+
"bg-surface": !disabled && !checked,
|
|
6341
6191
|
"bg-primary/30 border-primary text-primary": checked === true || checked === "indeterminate",
|
|
6342
|
-
"hover:border-
|
|
6192
|
+
"hover:border-primary focus:hover:border-primary": !checked
|
|
6343
6193
|
}, className),
|
|
6344
|
-
children: /* @__PURE__ */ (
|
|
6345
|
-
checked === true && /* @__PURE__ */ (
|
|
6346
|
-
checked === "indeterminate" && /* @__PURE__ */ (
|
|
6194
|
+
children: /* @__PURE__ */ jsxs20(CheckboxPrimitive.Indicator, { children: [
|
|
6195
|
+
checked === true && /* @__PURE__ */ jsx30(Check2, { className: innerIconSize }),
|
|
6196
|
+
checked === "indeterminate" && /* @__PURE__ */ jsx30(Minus, { className: innerIconSize })
|
|
6347
6197
|
] })
|
|
6348
6198
|
}
|
|
6349
6199
|
),
|
|
6350
|
-
label && /* @__PURE__ */ (
|
|
6200
|
+
label && /* @__PURE__ */ jsx30(
|
|
6351
6201
|
Label,
|
|
6352
6202
|
{
|
|
6353
6203
|
...label,
|
|
6354
|
-
className: (
|
|
6204
|
+
className: clsx26("cursor-pointer", label.className),
|
|
6355
6205
|
htmlFor: id,
|
|
6356
6206
|
onClick: changeValue
|
|
6357
6207
|
}
|
|
@@ -6364,7 +6214,7 @@ var CheckboxUncontrolled = ({
|
|
|
6364
6214
|
defaultValue = false,
|
|
6365
6215
|
...props
|
|
6366
6216
|
}) => {
|
|
6367
|
-
const [checked, setChecked] = (
|
|
6217
|
+
const [checked, setChecked] = useState16(defaultValue);
|
|
6368
6218
|
const handleChange = (checked2) => {
|
|
6369
6219
|
if (onChangeTristate) {
|
|
6370
6220
|
onChangeTristate(checked2);
|
|
@@ -6374,7 +6224,7 @@ var CheckboxUncontrolled = ({
|
|
|
6374
6224
|
}
|
|
6375
6225
|
setChecked(checked2);
|
|
6376
6226
|
};
|
|
6377
|
-
return /* @__PURE__ */ (
|
|
6227
|
+
return /* @__PURE__ */ jsx30(
|
|
6378
6228
|
Checkbox,
|
|
6379
6229
|
{
|
|
6380
6230
|
...props,
|
|
@@ -6385,9 +6235,9 @@ var CheckboxUncontrolled = ({
|
|
|
6385
6235
|
};
|
|
6386
6236
|
|
|
6387
6237
|
// src/components/layout-and-navigation/Table.tsx
|
|
6388
|
-
|
|
6389
|
-
|
|
6390
|
-
|
|
6238
|
+
import clsx27 from "clsx";
|
|
6239
|
+
import { ChevronDown as ChevronDown4, ChevronsUpDown, ChevronUp as ChevronUp3 } from "lucide-react";
|
|
6240
|
+
import { jsx as jsx31, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
6391
6241
|
var defaultTableStatePagination = {
|
|
6392
6242
|
currentPage: 0,
|
|
6393
6243
|
entriesPerPage: 5
|
|
@@ -6539,8 +6389,8 @@ var Table = ({
|
|
|
6539
6389
|
const headerPaddingHead = "pb-2";
|
|
6540
6390
|
const headerPaddingBody = "pt-2";
|
|
6541
6391
|
const cellPadding = "py-1 px-2";
|
|
6542
|
-
const [scrollbarsAutoHeightMin, setScrollbarsAutoHeightMin] = (0
|
|
6543
|
-
const tableRef = (
|
|
6392
|
+
const [scrollbarsAutoHeightMin, setScrollbarsAutoHeightMin] = useState17(0);
|
|
6393
|
+
const tableRef = useRef6(null);
|
|
6544
6394
|
const calculateHeight = () => {
|
|
6545
6395
|
if (tableRef.current) {
|
|
6546
6396
|
const tableHeight = tableRef.current.offsetHeight;
|
|
@@ -6548,7 +6398,7 @@ var Table = ({
|
|
|
6548
6398
|
setScrollbarsAutoHeightMin(tableHeight + offset);
|
|
6549
6399
|
}
|
|
6550
6400
|
};
|
|
6551
|
-
(
|
|
6401
|
+
useEffect16(() => {
|
|
6552
6402
|
calculateHeight();
|
|
6553
6403
|
const handleResize = () => {
|
|
6554
6404
|
calculateHeight();
|
|
@@ -6558,20 +6408,20 @@ var Table = ({
|
|
|
6558
6408
|
window.removeEventListener("resize", handleResize);
|
|
6559
6409
|
};
|
|
6560
6410
|
}, [data, currentPage]);
|
|
6561
|
-
return /* @__PURE__ */ (
|
|
6562
|
-
/* @__PURE__ */ (
|
|
6563
|
-
/* @__PURE__ */ (
|
|
6564
|
-
header && tableState.selection && /* @__PURE__ */ (
|
|
6411
|
+
return /* @__PURE__ */ jsxs21("div", { className: clsx27("col gap-y-4 overflow-hidden", className), children: [
|
|
6412
|
+
/* @__PURE__ */ jsx31("div", { children: /* @__PURE__ */ jsx31(Scrollbars3, { autoHeight: true, autoHeightMin: scrollbarsAutoHeightMin, children: /* @__PURE__ */ jsxs21("table", { ref: tableRef, className: "w-full mb-[12px]", children: [
|
|
6413
|
+
/* @__PURE__ */ jsx31("thead", { children: /* @__PURE__ */ jsxs21("tr", { className: headerRow, children: [
|
|
6414
|
+
header && tableState.selection && /* @__PURE__ */ jsx31("th", { className: headerPaddingHead, children: /* @__PURE__ */ jsx31(
|
|
6565
6415
|
Checkbox,
|
|
6566
6416
|
{
|
|
6567
6417
|
checked: tableState.selection.hasSelectedSome ? "indeterminate" : tableState.selection.hasSelectedAll,
|
|
6568
6418
|
onChange: () => updateTableState(changeTableSelectionAll(tableState, data, identifierMapping))
|
|
6569
6419
|
}
|
|
6570
6420
|
) }),
|
|
6571
|
-
header && header.map((value, index) => /* @__PURE__ */ (
|
|
6421
|
+
header && header.map((value, index) => /* @__PURE__ */ jsx31("th", { className: headerPaddingHead, children: /* @__PURE__ */ jsx31("div", { className: "row justify-start px-2", children: value }) }, `tableHeader${index}`))
|
|
6572
6422
|
] }) }),
|
|
6573
|
-
/* @__PURE__ */ (
|
|
6574
|
-
tableState.selection && /* @__PURE__ */ (
|
|
6423
|
+
/* @__PURE__ */ jsx31("tbody", { children: shownElements.map((value, rowIndex) => /* @__PURE__ */ jsxs21("tr", { children: [
|
|
6424
|
+
tableState.selection && /* @__PURE__ */ jsx31("td", { className: clsx27(cellPadding, { [headerPaddingBody]: rowIndex === 0 }), children: /* @__PURE__ */ jsx31(
|
|
6575
6425
|
Checkbox,
|
|
6576
6426
|
{
|
|
6577
6427
|
checked: isDataObjectSelected(tableState, value, identifierMapping),
|
|
@@ -6580,17 +6430,17 @@ var Table = ({
|
|
|
6580
6430
|
}
|
|
6581
6431
|
}
|
|
6582
6432
|
) }),
|
|
6583
|
-
rowMappingToCells(value).map((value1, index) => /* @__PURE__ */ (
|
|
6433
|
+
rowMappingToCells(value).map((value1, index) => /* @__PURE__ */ jsx31(
|
|
6584
6434
|
"td",
|
|
6585
6435
|
{
|
|
6586
|
-
className: (
|
|
6436
|
+
className: clsx27(cellPadding, { [headerPaddingBody]: rowIndex === 0 }),
|
|
6587
6437
|
children: value1
|
|
6588
6438
|
},
|
|
6589
6439
|
index
|
|
6590
6440
|
))
|
|
6591
6441
|
] }, identifierMapping(value))) })
|
|
6592
6442
|
] }) }) }),
|
|
6593
|
-
/* @__PURE__ */ (
|
|
6443
|
+
/* @__PURE__ */ jsx31("div", { className: "row justify-center", children: tableState.pagination && /* @__PURE__ */ jsx31(Pagination, { page: currentPage, numberOfPages: pageCount, onPageChanged: (page) => updateTableState({
|
|
6594
6444
|
...tableState,
|
|
6595
6445
|
pagination: { entriesPerPage, currentPage: page }
|
|
6596
6446
|
}) }) })
|
|
@@ -6603,23 +6453,23 @@ var SortButton = ({
|
|
|
6603
6453
|
onClick,
|
|
6604
6454
|
...buttonProps
|
|
6605
6455
|
}) => {
|
|
6606
|
-
return /* @__PURE__ */ (
|
|
6456
|
+
return /* @__PURE__ */ jsx31(
|
|
6607
6457
|
TextButton,
|
|
6608
6458
|
{
|
|
6609
6459
|
color,
|
|
6610
6460
|
onClick: () => onClick(ascending === "descending" ? "ascending" : "descending"),
|
|
6611
6461
|
...buttonProps,
|
|
6612
|
-
children: /* @__PURE__ */ (
|
|
6462
|
+
children: /* @__PURE__ */ jsxs21("div", { className: "row gap-x-2", children: [
|
|
6613
6463
|
children,
|
|
6614
|
-
ascending === "ascending" ? /* @__PURE__ */ (
|
|
6464
|
+
ascending === "ascending" ? /* @__PURE__ */ jsx31(ChevronUp3, {}) : !ascending ? /* @__PURE__ */ jsx31(ChevronsUpDown, {}) : /* @__PURE__ */ jsx31(ChevronDown4, {})
|
|
6615
6465
|
] })
|
|
6616
6466
|
}
|
|
6617
6467
|
);
|
|
6618
6468
|
};
|
|
6619
6469
|
|
|
6620
6470
|
// src/components/layout-and-navigation/TextImage.tsx
|
|
6621
|
-
|
|
6622
|
-
|
|
6471
|
+
import clsx28 from "clsx";
|
|
6472
|
+
import { jsx as jsx32, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
6623
6473
|
var defaultTextImageTranslation = {
|
|
6624
6474
|
de: {
|
|
6625
6475
|
showMore: "Mehr anzeigen"
|
|
@@ -6650,25 +6500,25 @@ var TextImage = ({
|
|
|
6650
6500
|
secondary: "text-text-image-secondary-text bg-linear-to-r from-30% from-text-image-secondary-background to-text-image-secondary-background/55",
|
|
6651
6501
|
dark: "text-text-image-dark-text bg-linear-to-r from-30% from-text-image-dark-background to-text-image-dark-background/55"
|
|
6652
6502
|
};
|
|
6653
|
-
return /* @__PURE__ */ (
|
|
6503
|
+
return /* @__PURE__ */ jsx32(
|
|
6654
6504
|
"div",
|
|
6655
6505
|
{
|
|
6656
|
-
className: (
|
|
6506
|
+
className: clsx28("rounded-2xl w-full", className),
|
|
6657
6507
|
style: {
|
|
6658
6508
|
backgroundImage: `url(${imageUrl})`,
|
|
6659
6509
|
backgroundSize: "cover"
|
|
6660
6510
|
},
|
|
6661
|
-
children: /* @__PURE__ */ (
|
|
6511
|
+
children: /* @__PURE__ */ jsxs22(
|
|
6662
6512
|
"div",
|
|
6663
6513
|
{
|
|
6664
|
-
className: (
|
|
6514
|
+
className: clsx28(`col px-6 py-12 rounded-2xl h-full`, colorMapping[color], contentClassName),
|
|
6665
6515
|
children: [
|
|
6666
|
-
badge && /* @__PURE__ */ (
|
|
6667
|
-
/* @__PURE__ */ (
|
|
6668
|
-
/* @__PURE__ */ (
|
|
6669
|
-
/* @__PURE__ */ (
|
|
6516
|
+
badge && /* @__PURE__ */ jsx32("div", { className: clsx28(`chip-full bg-white mb-2 py-2 px-4 w-fit`, chipColorMapping[color]), children: /* @__PURE__ */ jsx32("span", { className: "text-lg font-bold", children: badge }) }),
|
|
6517
|
+
/* @__PURE__ */ jsxs22("div", { className: "col gap-y-1 text-white overflow-hidden", children: [
|
|
6518
|
+
/* @__PURE__ */ jsx32("span", { className: "textstyle-title-xl", children: title }),
|
|
6519
|
+
/* @__PURE__ */ jsx32("span", { className: "text-ellipsis overflow-hidden", children: description })
|
|
6670
6520
|
] }),
|
|
6671
|
-
onShowMoreClicked && /* @__PURE__ */ (
|
|
6521
|
+
onShowMoreClicked && /* @__PURE__ */ jsx32("div", { className: "row mt-2 text-white underline", children: /* @__PURE__ */ jsx32("button", { onClick: onShowMoreClicked, children: translation.showMore }) })
|
|
6672
6522
|
]
|
|
6673
6523
|
}
|
|
6674
6524
|
)
|
|
@@ -6677,7 +6527,7 @@ var TextImage = ({
|
|
|
6677
6527
|
};
|
|
6678
6528
|
|
|
6679
6529
|
// src/components/layout-and-navigation/VerticalDivider.tsx
|
|
6680
|
-
|
|
6530
|
+
import { jsx as jsx33, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
6681
6531
|
var VerticalDivider = ({
|
|
6682
6532
|
width = 1,
|
|
6683
6533
|
height = 100,
|
|
@@ -6685,7 +6535,7 @@ var VerticalDivider = ({
|
|
|
6685
6535
|
dashGap = 4,
|
|
6686
6536
|
dashLength = 4
|
|
6687
6537
|
}) => {
|
|
6688
|
-
return /* @__PURE__ */ (
|
|
6538
|
+
return /* @__PURE__ */ jsx33("div", { style: { width: width + "px", height: height + "px" }, children: /* @__PURE__ */ jsxs23(
|
|
6689
6539
|
"svg",
|
|
6690
6540
|
{
|
|
6691
6541
|
width,
|
|
@@ -6694,7 +6544,7 @@ var VerticalDivider = ({
|
|
|
6694
6544
|
fill: "none",
|
|
6695
6545
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6696
6546
|
children: [
|
|
6697
|
-
/* @__PURE__ */ (
|
|
6547
|
+
/* @__PURE__ */ jsx33(
|
|
6698
6548
|
"line",
|
|
6699
6549
|
{
|
|
6700
6550
|
opacity: "0.5",
|
|
@@ -6708,7 +6558,7 @@ var VerticalDivider = ({
|
|
|
6708
6558
|
strokeLinecap: "round"
|
|
6709
6559
|
}
|
|
6710
6560
|
),
|
|
6711
|
-
/* @__PURE__ */ (
|
|
6561
|
+
/* @__PURE__ */ jsx33("defs", { children: /* @__PURE__ */ jsxs23(
|
|
6712
6562
|
"linearGradient",
|
|
6713
6563
|
{
|
|
6714
6564
|
id: "paint_linear",
|
|
@@ -6718,9 +6568,9 @@ var VerticalDivider = ({
|
|
|
6718
6568
|
y2: height,
|
|
6719
6569
|
gradientUnits: "userSpaceOnUse",
|
|
6720
6570
|
children: [
|
|
6721
|
-
/* @__PURE__ */ (
|
|
6722
|
-
/* @__PURE__ */ (
|
|
6723
|
-
/* @__PURE__ */ (
|
|
6571
|
+
/* @__PURE__ */ jsx33("stop", { stopOpacity: "0", stopColor: "currentColor" }),
|
|
6572
|
+
/* @__PURE__ */ jsx33("stop", { offset: "0.5", stopColor: "currentColor" }),
|
|
6573
|
+
/* @__PURE__ */ jsx33("stop", { offset: "1", stopColor: "currentColor", stopOpacity: "0" })
|
|
6724
6574
|
]
|
|
6725
6575
|
}
|
|
6726
6576
|
) })
|
|
@@ -6730,9 +6580,9 @@ var VerticalDivider = ({
|
|
|
6730
6580
|
};
|
|
6731
6581
|
|
|
6732
6582
|
// src/components/loading-states/ErrorComponent.tsx
|
|
6733
|
-
|
|
6734
|
-
|
|
6735
|
-
|
|
6583
|
+
import { AlertOctagon } from "lucide-react";
|
|
6584
|
+
import clsx29 from "clsx";
|
|
6585
|
+
import { jsx as jsx34, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
6736
6586
|
var defaultErrorComponentTranslation = {
|
|
6737
6587
|
en: {
|
|
6738
6588
|
errorOccurred: "An error occurred"
|
|
@@ -6747,18 +6597,18 @@ var ErrorComponent = ({
|
|
|
6747
6597
|
classname
|
|
6748
6598
|
}) => {
|
|
6749
6599
|
const translation = useTranslation(defaultErrorComponentTranslation, overwriteTranslation);
|
|
6750
|
-
return /* @__PURE__ */ (
|
|
6751
|
-
/* @__PURE__ */ (
|
|
6600
|
+
return /* @__PURE__ */ jsxs24("div", { className: clsx29("col items-center justify-center gap-y-4 w-full h-24", classname), children: [
|
|
6601
|
+
/* @__PURE__ */ jsx34(AlertOctagon, { size: 64, className: "text-warning" }),
|
|
6752
6602
|
errorText ?? `${translation.errorOccurred} :(`
|
|
6753
6603
|
] });
|
|
6754
6604
|
};
|
|
6755
6605
|
|
|
6756
6606
|
// src/components/loading-states/LoadingAndErrorComponent.tsx
|
|
6757
|
-
|
|
6607
|
+
import { useState as useState18 } from "react";
|
|
6758
6608
|
|
|
6759
6609
|
// src/components/loading-states/LoadingAnimation.tsx
|
|
6760
|
-
|
|
6761
|
-
|
|
6610
|
+
import clsx30 from "clsx";
|
|
6611
|
+
import { jsx as jsx35, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
6762
6612
|
var defaultLoadingAnimationTranslation = {
|
|
6763
6613
|
en: {
|
|
6764
6614
|
loading: "Loading data"
|
|
@@ -6773,14 +6623,14 @@ var LoadingAnimation = ({
|
|
|
6773
6623
|
classname
|
|
6774
6624
|
}) => {
|
|
6775
6625
|
const translation = useTranslation(defaultLoadingAnimationTranslation, overwriteTranslation);
|
|
6776
|
-
return /* @__PURE__ */ (
|
|
6777
|
-
/* @__PURE__ */ (
|
|
6626
|
+
return /* @__PURE__ */ jsxs25("div", { className: clsx30("col items-center justify-center w-full h-24", classname), children: [
|
|
6627
|
+
/* @__PURE__ */ jsx35(Helpwave, { animate: "loading" }),
|
|
6778
6628
|
loadingText ?? `${translation.loading}...`
|
|
6779
6629
|
] });
|
|
6780
6630
|
};
|
|
6781
6631
|
|
|
6782
6632
|
// src/components/loading-states/LoadingAndErrorComponent.tsx
|
|
6783
|
-
|
|
6633
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
6784
6634
|
var LoadingAndErrorComponent = ({
|
|
6785
6635
|
children,
|
|
6786
6636
|
isLoading = false,
|
|
@@ -6789,8 +6639,8 @@ var LoadingAndErrorComponent = ({
|
|
|
6789
6639
|
loadingProps,
|
|
6790
6640
|
minimumLoadingDuration
|
|
6791
6641
|
}) => {
|
|
6792
|
-
const [isInMinimumLoading, setIsInMinimumLoading] = (
|
|
6793
|
-
const [hasUsedMinimumLoading, setHasUsedMinimumLoading] = (
|
|
6642
|
+
const [isInMinimumLoading, setIsInMinimumLoading] = useState18(false);
|
|
6643
|
+
const [hasUsedMinimumLoading, setHasUsedMinimumLoading] = useState18(false);
|
|
6794
6644
|
if (minimumLoadingDuration && !isInMinimumLoading && !hasUsedMinimumLoading) {
|
|
6795
6645
|
setIsInMinimumLoading(true);
|
|
6796
6646
|
setTimeout(() => {
|
|
@@ -6799,27 +6649,27 @@ var LoadingAndErrorComponent = ({
|
|
|
6799
6649
|
}, minimumLoadingDuration);
|
|
6800
6650
|
}
|
|
6801
6651
|
if (isLoading || minimumLoadingDuration && isInMinimumLoading) {
|
|
6802
|
-
return /* @__PURE__ */ (
|
|
6652
|
+
return /* @__PURE__ */ jsx36(LoadingAnimation, { ...loadingProps });
|
|
6803
6653
|
}
|
|
6804
6654
|
if (hasError) {
|
|
6805
|
-
return /* @__PURE__ */ (
|
|
6655
|
+
return /* @__PURE__ */ jsx36(ErrorComponent, { ...errorProps });
|
|
6806
6656
|
}
|
|
6807
6657
|
return children;
|
|
6808
6658
|
};
|
|
6809
6659
|
|
|
6810
6660
|
// src/components/loading-states/LoadingButton.tsx
|
|
6811
|
-
|
|
6812
|
-
|
|
6661
|
+
import clsx31 from "clsx";
|
|
6662
|
+
import { jsx as jsx37, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
6813
6663
|
var LoadingButton = ({ isLoading = false, size = "medium", onClick, ...rest }) => {
|
|
6814
6664
|
const paddingClass = ButtonUtil.paddingMapping[size];
|
|
6815
|
-
return /* @__PURE__ */ (
|
|
6816
|
-
isLoading && /* @__PURE__ */ (
|
|
6817
|
-
/* @__PURE__ */ (
|
|
6665
|
+
return /* @__PURE__ */ jsxs26("div", { className: "inline-block relative", children: [
|
|
6666
|
+
isLoading && /* @__PURE__ */ jsx37("div", { className: clsx31("absolute inset-0 row items-center justify-center bg-white/40", paddingClass), children: /* @__PURE__ */ jsx37(Helpwave, { animate: "loading", className: "text-white" }) }),
|
|
6667
|
+
/* @__PURE__ */ jsx37(SolidButton, { ...rest, disabled: rest.disabled, onClick: isLoading ? noop : onClick })
|
|
6818
6668
|
] });
|
|
6819
6669
|
};
|
|
6820
6670
|
|
|
6821
6671
|
// src/components/loading-states/ProgressIndicator.tsx
|
|
6822
|
-
|
|
6672
|
+
import { jsx as jsx38, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
6823
6673
|
var sizeMapping = { small: 16, medium: 24, big: 48 };
|
|
6824
6674
|
var ProgressIndicator = ({
|
|
6825
6675
|
progress,
|
|
@@ -6836,7 +6686,7 @@ var ProgressIndicator = ({
|
|
|
6836
6686
|
if (direction === "clockwise") {
|
|
6837
6687
|
rotation += 360 * progress;
|
|
6838
6688
|
}
|
|
6839
|
-
return /* @__PURE__ */ (
|
|
6689
|
+
return /* @__PURE__ */ jsxs27(
|
|
6840
6690
|
"svg",
|
|
6841
6691
|
{
|
|
6842
6692
|
style: {
|
|
@@ -6845,7 +6695,7 @@ var ProgressIndicator = ({
|
|
|
6845
6695
|
transform: `rotate(${rotation}deg)`
|
|
6846
6696
|
},
|
|
6847
6697
|
children: [
|
|
6848
|
-
/* @__PURE__ */ (
|
|
6698
|
+
/* @__PURE__ */ jsx38(
|
|
6849
6699
|
"circle",
|
|
6850
6700
|
{
|
|
6851
6701
|
cx: center,
|
|
@@ -6856,7 +6706,7 @@ var ProgressIndicator = ({
|
|
|
6856
6706
|
className: "stroke-primary"
|
|
6857
6707
|
}
|
|
6858
6708
|
),
|
|
6859
|
-
/* @__PURE__ */ (
|
|
6709
|
+
/* @__PURE__ */ jsx38(
|
|
6860
6710
|
"circle",
|
|
6861
6711
|
{
|
|
6862
6712
|
cx: center,
|
|
@@ -6875,8 +6725,8 @@ var ProgressIndicator = ({
|
|
|
6875
6725
|
};
|
|
6876
6726
|
|
|
6877
6727
|
// src/components/modals/ConfirmModal.tsx
|
|
6878
|
-
|
|
6879
|
-
|
|
6728
|
+
import clsx32 from "clsx";
|
|
6729
|
+
import { jsx as jsx39, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
6880
6730
|
var defaultConfirmDialogTranslation2 = {
|
|
6881
6731
|
en: {
|
|
6882
6732
|
confirm: "Confirm",
|
|
@@ -6907,10 +6757,10 @@ var ConfirmModal = ({
|
|
|
6907
6757
|
positive: "positive",
|
|
6908
6758
|
primary: "primary"
|
|
6909
6759
|
};
|
|
6910
|
-
return /* @__PURE__ */ (
|
|
6911
|
-
/* @__PURE__ */ (
|
|
6912
|
-
/* @__PURE__ */ (
|
|
6913
|
-
onCancel && /* @__PURE__ */ (
|
|
6760
|
+
return /* @__PURE__ */ jsxs28(Modal, { ...restProps, onClose: onCancel, className: clsx32("justify-between", className), children: [
|
|
6761
|
+
/* @__PURE__ */ jsx39("div", { className: "col grow", children }),
|
|
6762
|
+
/* @__PURE__ */ jsxs28("div", { className: "row mt-3 gap-x-4 justify-end", children: [
|
|
6763
|
+
onCancel && /* @__PURE__ */ jsx39(
|
|
6914
6764
|
SolidButton,
|
|
6915
6765
|
{
|
|
6916
6766
|
color: buttonOverwrites?.[0].color ?? "neutral",
|
|
@@ -6919,7 +6769,7 @@ var ConfirmModal = ({
|
|
|
6919
6769
|
children: buttonOverwrites?.[0].text ?? translation.cancel
|
|
6920
6770
|
}
|
|
6921
6771
|
),
|
|
6922
|
-
onDecline && /* @__PURE__ */ (
|
|
6772
|
+
onDecline && /* @__PURE__ */ jsx39(
|
|
6923
6773
|
SolidButton,
|
|
6924
6774
|
{
|
|
6925
6775
|
color: buttonOverwrites?.[1].color ?? "negative",
|
|
@@ -6928,7 +6778,7 @@ var ConfirmModal = ({
|
|
|
6928
6778
|
children: buttonOverwrites?.[1].text ?? translation.decline
|
|
6929
6779
|
}
|
|
6930
6780
|
),
|
|
6931
|
-
/* @__PURE__ */ (
|
|
6781
|
+
/* @__PURE__ */ jsx39(
|
|
6932
6782
|
SolidButton,
|
|
6933
6783
|
{
|
|
6934
6784
|
autoFocus: true,
|
|
@@ -6943,7 +6793,7 @@ var ConfirmModal = ({
|
|
|
6943
6793
|
};
|
|
6944
6794
|
|
|
6945
6795
|
// src/components/modals/DiscardChangesModal.tsx
|
|
6946
|
-
|
|
6796
|
+
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
6947
6797
|
var defaultDiscardChangesModalTranslation = {
|
|
6948
6798
|
en: {
|
|
6949
6799
|
save: "Save",
|
|
@@ -6970,7 +6820,7 @@ var DiscardChangesModal = ({
|
|
|
6970
6820
|
...modalProps
|
|
6971
6821
|
}) => {
|
|
6972
6822
|
const translation = useTranslation(defaultDiscardChangesModalTranslation, overwriteTranslation);
|
|
6973
|
-
return /* @__PURE__ */ (
|
|
6823
|
+
return /* @__PURE__ */ jsx40(
|
|
6974
6824
|
ConfirmModal,
|
|
6975
6825
|
{
|
|
6976
6826
|
headerProps: {
|
|
@@ -6989,28 +6839,28 @@ var DiscardChangesModal = ({
|
|
|
6989
6839
|
};
|
|
6990
6840
|
|
|
6991
6841
|
// src/components/modals/InputModal.tsx
|
|
6992
|
-
|
|
6842
|
+
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
6993
6843
|
var InputModal = ({
|
|
6994
6844
|
inputs,
|
|
6995
6845
|
buttonOverwrites,
|
|
6996
6846
|
...restProps
|
|
6997
6847
|
}) => {
|
|
6998
|
-
return /* @__PURE__ */ (
|
|
6848
|
+
return /* @__PURE__ */ jsx41(
|
|
6999
6849
|
ConfirmModal,
|
|
7000
6850
|
{
|
|
7001
6851
|
buttonOverwrites,
|
|
7002
6852
|
...restProps,
|
|
7003
|
-
children: inputs.map((inputProps, index) => /* @__PURE__ */ (
|
|
6853
|
+
children: inputs.map((inputProps, index) => /* @__PURE__ */ jsx41(Input, { ...inputProps }, `input ${index}`))
|
|
7004
6854
|
}
|
|
7005
6855
|
);
|
|
7006
6856
|
};
|
|
7007
6857
|
|
|
7008
6858
|
// src/components/user-action/Select.tsx
|
|
7009
|
-
|
|
7010
|
-
|
|
7011
|
-
|
|
7012
|
-
|
|
7013
|
-
|
|
6859
|
+
import { Menu } from "@headlessui/react";
|
|
6860
|
+
import { ChevronDown as ChevronDown5, ChevronUp as ChevronUp4, Search as Search2 } from "lucide-react";
|
|
6861
|
+
import { useEffect as useEffect17, useState as useState19 } from "react";
|
|
6862
|
+
import clsx33 from "clsx";
|
|
6863
|
+
import { Fragment as Fragment3, jsx as jsx42, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
7014
6864
|
var Select = ({
|
|
7015
6865
|
value,
|
|
7016
6866
|
label,
|
|
@@ -7022,7 +6872,6 @@ var Select = ({
|
|
|
7022
6872
|
isDisabled,
|
|
7023
6873
|
className,
|
|
7024
6874
|
textColor = "text-menu-text",
|
|
7025
|
-
hoverColor = "hover:brightness-90",
|
|
7026
6875
|
additionalItems,
|
|
7027
6876
|
selectedDisplayOverwrite
|
|
7028
6877
|
}) => {
|
|
@@ -7035,48 +6884,48 @@ var Select = ({
|
|
|
7035
6884
|
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");
|
|
7036
6885
|
}
|
|
7037
6886
|
const borderColor = "border-menu-border";
|
|
7038
|
-
return /* @__PURE__ */ (
|
|
7039
|
-
label && /* @__PURE__ */ (
|
|
7040
|
-
/* @__PURE__ */ (
|
|
7041
|
-
/* @__PURE__ */ (
|
|
7042
|
-
|
|
6887
|
+
return /* @__PURE__ */ jsxs29("div", { className: clsx33(className), children: [
|
|
6888
|
+
label && /* @__PURE__ */ jsx42(Label, { ...label, labelType: label.labelType ?? "labelBig", className: clsx33("mb-1", label.className) }),
|
|
6889
|
+
/* @__PURE__ */ jsx42(Menu, { as: "div", className: "relative text-menu-text", children: ({ open }) => /* @__PURE__ */ jsxs29(Fragment3, { children: [
|
|
6890
|
+
/* @__PURE__ */ jsxs29(
|
|
6891
|
+
Menu.Button,
|
|
7043
6892
|
{
|
|
7044
|
-
className: (
|
|
6893
|
+
className: clsx33(
|
|
7045
6894
|
"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",
|
|
7046
6895
|
textColor,
|
|
7047
6896
|
borderColor,
|
|
7048
6897
|
{
|
|
7049
6898
|
"rounded-b-lg": !open,
|
|
7050
|
-
|
|
6899
|
+
"hover:border-primary": !isDisabled,
|
|
7051
6900
|
"bg-disabled-background cursor-not-allowed text-disabled": isDisabled
|
|
7052
6901
|
}
|
|
7053
6902
|
),
|
|
7054
6903
|
disabled: isDisabled,
|
|
7055
6904
|
children: [
|
|
7056
|
-
/* @__PURE__ */ (
|
|
7057
|
-
open ? /* @__PURE__ */ (
|
|
6905
|
+
/* @__PURE__ */ jsx42("span", { children: selectedDisplayOverwrite ?? selectedOption?.label ?? hintText }),
|
|
6906
|
+
open ? /* @__PURE__ */ jsx42(ChevronUp4, {}) : /* @__PURE__ */ jsx42(ChevronDown5, {})
|
|
7058
6907
|
]
|
|
7059
6908
|
}
|
|
7060
6909
|
),
|
|
7061
|
-
/* @__PURE__ */ (
|
|
7062
|
-
|
|
6910
|
+
/* @__PURE__ */ jsxs29(
|
|
6911
|
+
Menu.Items,
|
|
7063
6912
|
{
|
|
7064
6913
|
className: "absolute w-full z-10 rounded-b-lg bg-menu-background text-menu-text shadow-lg max-h-[500px] overflow-y-auto",
|
|
7065
6914
|
children: [
|
|
7066
|
-
(additionalItems ?? []).map((item, index) => /* @__PURE__ */ (
|
|
6915
|
+
(additionalItems ?? []).map((item, index) => /* @__PURE__ */ jsx42(
|
|
7067
6916
|
"div",
|
|
7068
6917
|
{
|
|
7069
|
-
className: (
|
|
6918
|
+
className: clsx33(borderColor, "px-4 py-2 overflow-hidden whitespace-nowrap text-ellipsis border-2 border-t-0", {
|
|
7070
6919
|
"border-b-0 rounded-b-lg": filteredOptions.length === 0 && index === (additionalItems?.length ?? 1) - 1
|
|
7071
6920
|
}),
|
|
7072
6921
|
children: item
|
|
7073
6922
|
},
|
|
7074
6923
|
`additionalItems${index}`
|
|
7075
6924
|
)),
|
|
7076
|
-
filteredOptions.map((option, index) => /* @__PURE__ */ (
|
|
6925
|
+
filteredOptions.map((option, index) => /* @__PURE__ */ jsx42(Menu.Item, { children: /* @__PURE__ */ jsx42(
|
|
7077
6926
|
"div",
|
|
7078
6927
|
{
|
|
7079
|
-
className: (
|
|
6928
|
+
className: clsx33(
|
|
7080
6929
|
"px-4 py-2 overflow-hidden whitespace-nowrap text-ellipsis border-2 border-t-0 cursor-pointer",
|
|
7081
6930
|
option.className,
|
|
7082
6931
|
borderColor,
|
|
@@ -7109,13 +6958,13 @@ var SelectUncontrolled = ({
|
|
|
7109
6958
|
hintText,
|
|
7110
6959
|
...props
|
|
7111
6960
|
}) => {
|
|
7112
|
-
const [selected, setSelected] = (
|
|
7113
|
-
(
|
|
6961
|
+
const [selected, setSelected] = useState19(value);
|
|
6962
|
+
useEffect17(() => {
|
|
7114
6963
|
if (options.find((options2) => options2.value === value)) {
|
|
7115
6964
|
setSelected(value);
|
|
7116
6965
|
}
|
|
7117
6966
|
}, [options, value]);
|
|
7118
|
-
return /* @__PURE__ */ (
|
|
6967
|
+
return /* @__PURE__ */ jsx42(
|
|
7119
6968
|
Select,
|
|
7120
6969
|
{
|
|
7121
6970
|
value: selected,
|
|
@@ -7135,16 +6984,16 @@ var SearchableSelect = ({
|
|
|
7135
6984
|
searchMapping,
|
|
7136
6985
|
...selectProps
|
|
7137
6986
|
}) => {
|
|
7138
|
-
const [search, setSearch] = (
|
|
6987
|
+
const [search, setSearch] = useState19("");
|
|
7139
6988
|
const filteredOptions = MultiSearchWithMapping(search, options, searchMapping);
|
|
7140
|
-
return /* @__PURE__ */ (
|
|
6989
|
+
return /* @__PURE__ */ jsx42(
|
|
7141
6990
|
Select,
|
|
7142
6991
|
{
|
|
7143
6992
|
value,
|
|
7144
6993
|
options: filteredOptions,
|
|
7145
|
-
additionalItems: [/* @__PURE__ */ (
|
|
7146
|
-
/* @__PURE__ */ (
|
|
7147
|
-
/* @__PURE__ */ (
|
|
6994
|
+
additionalItems: [/* @__PURE__ */ jsxs29("div", { className: "row gap-x-2 items-center", children: [
|
|
6995
|
+
/* @__PURE__ */ jsx42(Input, { autoFocus: true, value: search, onChangeText: setSearch, className: "w-full" }),
|
|
6996
|
+
/* @__PURE__ */ jsx42(Search2, { className: "min-w-[1.5rem] min-h-[1.5rem]" })
|
|
7148
6997
|
] }, "selectSearch")],
|
|
7149
6998
|
...selectProps
|
|
7150
6999
|
}
|
|
@@ -7152,7 +7001,7 @@ var SearchableSelect = ({
|
|
|
7152
7001
|
};
|
|
7153
7002
|
|
|
7154
7003
|
// src/components/modals/LanguageModal.tsx
|
|
7155
|
-
|
|
7004
|
+
import { jsx as jsx43, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
7156
7005
|
var defaultLanguageModalTranslation = {
|
|
7157
7006
|
en: {
|
|
7158
7007
|
title: "Language",
|
|
@@ -7175,7 +7024,7 @@ var LanguageModal = ({
|
|
|
7175
7024
|
}) => {
|
|
7176
7025
|
const { language, setLanguage } = useLanguage();
|
|
7177
7026
|
const translation = useTranslation(defaultLanguageModalTranslation, overwriteTranslation);
|
|
7178
|
-
return /* @__PURE__ */ (
|
|
7027
|
+
return /* @__PURE__ */ jsx43(
|
|
7179
7028
|
Modal,
|
|
7180
7029
|
{
|
|
7181
7030
|
headerProps: {
|
|
@@ -7185,8 +7034,8 @@ var LanguageModal = ({
|
|
|
7185
7034
|
},
|
|
7186
7035
|
onClose,
|
|
7187
7036
|
...modalProps,
|
|
7188
|
-
children: /* @__PURE__ */ (
|
|
7189
|
-
/* @__PURE__ */ (
|
|
7037
|
+
children: /* @__PURE__ */ jsxs30("div", { className: "w-64", children: [
|
|
7038
|
+
/* @__PURE__ */ jsx43(
|
|
7190
7039
|
Select,
|
|
7191
7040
|
{
|
|
7192
7041
|
className: "mt-2",
|
|
@@ -7195,15 +7044,15 @@ var LanguageModal = ({
|
|
|
7195
7044
|
onChange: (language2) => setLanguage(language2)
|
|
7196
7045
|
}
|
|
7197
7046
|
),
|
|
7198
|
-
/* @__PURE__ */ (
|
|
7047
|
+
/* @__PURE__ */ jsx43("div", { className: "row mt-3 gap-x-4 justify-end", children: /* @__PURE__ */ jsx43(SolidButton, { autoFocus: true, color: "positive", onClick: onClose, children: translation.done }) })
|
|
7199
7048
|
] })
|
|
7200
7049
|
}
|
|
7201
7050
|
);
|
|
7202
7051
|
};
|
|
7203
7052
|
|
|
7204
7053
|
// src/theming/useTheme.tsx
|
|
7205
|
-
|
|
7206
|
-
|
|
7054
|
+
import { createContext as createContext2, useContext as useContext2, useEffect as useEffect18, useState as useState20 } from "react";
|
|
7055
|
+
import { jsx as jsx44 } from "react/jsx-runtime";
|
|
7207
7056
|
var themes = ["light", "dark"];
|
|
7208
7057
|
var defaultThemeTypeTranslation = {
|
|
7209
7058
|
en: {
|
|
@@ -7219,27 +7068,27 @@ var ThemeUtil = {
|
|
|
7219
7068
|
themes,
|
|
7220
7069
|
translation: defaultThemeTypeTranslation
|
|
7221
7070
|
};
|
|
7222
|
-
var ThemeContext = (
|
|
7071
|
+
var ThemeContext = createContext2({
|
|
7223
7072
|
theme: "light",
|
|
7224
7073
|
setTheme: noop
|
|
7225
7074
|
});
|
|
7226
7075
|
var ThemeProvider = ({ children, initialTheme = "light" }) => {
|
|
7227
|
-
const [theme, setTheme] = (
|
|
7228
|
-
(
|
|
7076
|
+
const [theme, setTheme] = useState20(initialTheme);
|
|
7077
|
+
useEffect18(() => {
|
|
7229
7078
|
if (theme !== initialTheme) {
|
|
7230
7079
|
console.warn("ThemeProvider initial state changed: Prefer using useTheme's setTheme instead");
|
|
7231
7080
|
setTheme(initialTheme);
|
|
7232
7081
|
}
|
|
7233
7082
|
}, [initialTheme]);
|
|
7234
|
-
(
|
|
7083
|
+
useEffect18(() => {
|
|
7235
7084
|
document.documentElement.setAttribute("data-theme", theme);
|
|
7236
7085
|
}, [theme]);
|
|
7237
|
-
return /* @__PURE__ */ (
|
|
7086
|
+
return /* @__PURE__ */ jsx44(ThemeContext.Provider, { value: { theme, setTheme }, children });
|
|
7238
7087
|
};
|
|
7239
|
-
var useTheme = () => (
|
|
7088
|
+
var useTheme = () => useContext2(ThemeContext);
|
|
7240
7089
|
|
|
7241
7090
|
// src/components/modals/ThemeModal.tsx
|
|
7242
|
-
|
|
7091
|
+
import { jsx as jsx45, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
7243
7092
|
var defaultConfirmDialogTranslation3 = {
|
|
7244
7093
|
en: {
|
|
7245
7094
|
title: "Theme",
|
|
@@ -7262,7 +7111,7 @@ var ThemeModal = ({
|
|
|
7262
7111
|
}) => {
|
|
7263
7112
|
const { theme, setTheme } = useTheme();
|
|
7264
7113
|
const translation = useTranslation(defaultConfirmDialogTranslation3, overwriteTranslation);
|
|
7265
|
-
return /* @__PURE__ */ (
|
|
7114
|
+
return /* @__PURE__ */ jsx45(
|
|
7266
7115
|
Modal,
|
|
7267
7116
|
{
|
|
7268
7117
|
headerProps: {
|
|
@@ -7272,8 +7121,8 @@ var ThemeModal = ({
|
|
|
7272
7121
|
},
|
|
7273
7122
|
onClose,
|
|
7274
7123
|
...modalProps,
|
|
7275
|
-
children: /* @__PURE__ */ (
|
|
7276
|
-
/* @__PURE__ */ (
|
|
7124
|
+
children: /* @__PURE__ */ jsxs31("div", { className: "w-64", children: [
|
|
7125
|
+
/* @__PURE__ */ jsx45(
|
|
7277
7126
|
Select,
|
|
7278
7127
|
{
|
|
7279
7128
|
className: "mt-2",
|
|
@@ -7282,19 +7131,19 @@ var ThemeModal = ({
|
|
|
7282
7131
|
onChange: (theme2) => setTheme(theme2)
|
|
7283
7132
|
}
|
|
7284
7133
|
),
|
|
7285
|
-
/* @__PURE__ */ (
|
|
7134
|
+
/* @__PURE__ */ jsx45("div", { className: "row mt-3 gap-x-4 justify-end", children: /* @__PURE__ */ jsx45(SolidButton, { autoFocus: true, color: "positive", onClick: onClose, children: translation.done }) })
|
|
7286
7135
|
] })
|
|
7287
7136
|
}
|
|
7288
7137
|
);
|
|
7289
7138
|
};
|
|
7290
7139
|
|
|
7291
7140
|
// src/components/properties/CheckboxProperty.tsx
|
|
7292
|
-
|
|
7141
|
+
import { Check as Check3 } from "lucide-react";
|
|
7293
7142
|
|
|
7294
7143
|
// src/components/properties/PropertyBase.tsx
|
|
7295
|
-
|
|
7296
|
-
|
|
7297
|
-
|
|
7144
|
+
import { AlertTriangle } from "lucide-react";
|
|
7145
|
+
import clsx34 from "clsx";
|
|
7146
|
+
import { jsx as jsx46, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
7298
7147
|
var defaultPropertyBaseTranslation = {
|
|
7299
7148
|
en: {
|
|
7300
7149
|
remove: "Remove"
|
|
@@ -7316,12 +7165,12 @@ var PropertyBase = ({
|
|
|
7316
7165
|
}) => {
|
|
7317
7166
|
const translation = useTranslation(defaultPropertyBaseTranslation, overwriteTranslation);
|
|
7318
7167
|
const requiredAndNoValue = softRequired && !hasValue;
|
|
7319
|
-
return /* @__PURE__ */ (
|
|
7320
|
-
/* @__PURE__ */ (
|
|
7168
|
+
return /* @__PURE__ */ jsxs32("div", { className: clsx34("row gap-x-0 group", className), children: [
|
|
7169
|
+
/* @__PURE__ */ jsxs32(
|
|
7321
7170
|
"div",
|
|
7322
7171
|
{
|
|
7323
|
-
className: (
|
|
7324
|
-
"bg-
|
|
7172
|
+
className: clsx34("row gap-x-2 !w-[200px] px-4 py-2 items-center rounded-l-xl border-2 border-r-0", {
|
|
7173
|
+
"bg-property-title-background property-title-text group-hover:border-primary": !requiredAndNoValue,
|
|
7325
7174
|
"bg-warning text-surface-warning group-hover:border-warning border-warning/90": requiredAndNoValue
|
|
7326
7175
|
}, className),
|
|
7327
7176
|
children: [
|
|
@@ -7330,22 +7179,22 @@ var PropertyBase = ({
|
|
|
7330
7179
|
]
|
|
7331
7180
|
}
|
|
7332
7181
|
),
|
|
7333
|
-
/* @__PURE__ */ (
|
|
7182
|
+
/* @__PURE__ */ jsxs32(
|
|
7334
7183
|
"div",
|
|
7335
7184
|
{
|
|
7336
|
-
className: (
|
|
7337
|
-
"bg-
|
|
7185
|
+
className: clsx34("row grow justify-between items-center rounded-r-xl border-2 border-l-0", {
|
|
7186
|
+
"bg-surface group-hover:border-primary": !requiredAndNoValue,
|
|
7338
7187
|
"bg-surface-warning group-hover:border-warning border-warning/90": requiredAndNoValue
|
|
7339
7188
|
}, className),
|
|
7340
7189
|
children: [
|
|
7341
7190
|
input({ softRequired, hasValue }),
|
|
7342
|
-
requiredAndNoValue && /* @__PURE__ */ (
|
|
7343
|
-
onRemove && /* @__PURE__ */ (
|
|
7191
|
+
requiredAndNoValue && /* @__PURE__ */ jsx46("div", { className: "text-warning pr-4", children: /* @__PURE__ */ jsx46(AlertTriangle, { size: 24 }) }),
|
|
7192
|
+
onRemove && /* @__PURE__ */ jsx46(
|
|
7344
7193
|
TextButton,
|
|
7345
7194
|
{
|
|
7346
7195
|
onClick: onRemove,
|
|
7347
7196
|
color: "negative",
|
|
7348
|
-
className: (
|
|
7197
|
+
className: clsx34("pr-4 items-center", { "!text-transparent": !hasValue || readOnly }),
|
|
7349
7198
|
disabled: !hasValue || readOnly,
|
|
7350
7199
|
children: translation.remove
|
|
7351
7200
|
}
|
|
@@ -7357,7 +7206,7 @@ var PropertyBase = ({
|
|
|
7357
7206
|
};
|
|
7358
7207
|
|
|
7359
7208
|
// src/components/properties/CheckboxProperty.tsx
|
|
7360
|
-
|
|
7209
|
+
import { jsx as jsx47 } from "react/jsx-runtime";
|
|
7361
7210
|
var defaultCheckboxPropertyTranslation = {
|
|
7362
7211
|
en: {
|
|
7363
7212
|
yes: "Yes",
|
|
@@ -7376,14 +7225,14 @@ var CheckboxProperty = ({
|
|
|
7376
7225
|
...baseProps
|
|
7377
7226
|
}) => {
|
|
7378
7227
|
const translation = useTranslation(defaultCheckboxPropertyTranslation, overwriteTranslation);
|
|
7379
|
-
return /* @__PURE__ */ (
|
|
7228
|
+
return /* @__PURE__ */ jsx47(
|
|
7380
7229
|
PropertyBase,
|
|
7381
7230
|
{
|
|
7382
7231
|
...baseProps,
|
|
7383
7232
|
hasValue: true,
|
|
7384
7233
|
readOnly,
|
|
7385
|
-
icon: /* @__PURE__ */ (
|
|
7386
|
-
input: () => /* @__PURE__ */ (
|
|
7234
|
+
icon: /* @__PURE__ */ jsx47(Check3, { size: 16 }),
|
|
7235
|
+
input: () => /* @__PURE__ */ jsx47("div", { className: "row py-2 px-4 items-center", children: /* @__PURE__ */ jsx47(
|
|
7387
7236
|
Checkbox,
|
|
7388
7237
|
{
|
|
7389
7238
|
checked: value ?? true,
|
|
@@ -7397,9 +7246,9 @@ var CheckboxProperty = ({
|
|
|
7397
7246
|
};
|
|
7398
7247
|
|
|
7399
7248
|
// src/components/properties/DateProperty.tsx
|
|
7400
|
-
|
|
7401
|
-
|
|
7402
|
-
|
|
7249
|
+
import { CalendarDays } from "lucide-react";
|
|
7250
|
+
import clsx35 from "clsx";
|
|
7251
|
+
import { jsx as jsx48 } from "react/jsx-runtime";
|
|
7403
7252
|
var DateProperty = ({
|
|
7404
7253
|
value,
|
|
7405
7254
|
onChange = noop,
|
|
@@ -7410,20 +7259,20 @@ var DateProperty = ({
|
|
|
7410
7259
|
}) => {
|
|
7411
7260
|
const hasValue = !!value;
|
|
7412
7261
|
const dateText = value ? type === "dateTime" ? formatDateTime(value) : formatDate(value) : "";
|
|
7413
|
-
return /* @__PURE__ */ (
|
|
7262
|
+
return /* @__PURE__ */ jsx48(
|
|
7414
7263
|
PropertyBase,
|
|
7415
7264
|
{
|
|
7416
7265
|
...baseProps,
|
|
7417
7266
|
hasValue,
|
|
7418
|
-
icon: /* @__PURE__ */ (
|
|
7419
|
-
input: ({ softRequired }) => /* @__PURE__ */ (
|
|
7267
|
+
icon: /* @__PURE__ */ jsx48(CalendarDays, { size: 16 }),
|
|
7268
|
+
input: ({ softRequired }) => /* @__PURE__ */ jsx48(
|
|
7420
7269
|
"div",
|
|
7421
7270
|
{
|
|
7422
|
-
className: (
|
|
7423
|
-
children: /* @__PURE__ */ (
|
|
7271
|
+
className: clsx35("row grow py-2 px-4 cursor-pointer", { "text-warning": softRequired && !hasValue }),
|
|
7272
|
+
children: /* @__PURE__ */ jsx48(
|
|
7424
7273
|
Input,
|
|
7425
7274
|
{
|
|
7426
|
-
className: (
|
|
7275
|
+
className: clsx35("!ring-0 !border-0 !outline-0 !p-0 !m-0 !shadow-none !w-fit !rounded-none", { "bg-surface-warning": softRequired && !hasValue }),
|
|
7427
7276
|
value: dateText,
|
|
7428
7277
|
type: type === "dateTime" ? "datetime-local" : "date",
|
|
7429
7278
|
readOnly,
|
|
@@ -7446,22 +7295,22 @@ var DateProperty = ({
|
|
|
7446
7295
|
};
|
|
7447
7296
|
|
|
7448
7297
|
// src/components/properties/MultiSelectProperty.tsx
|
|
7449
|
-
|
|
7450
|
-
|
|
7298
|
+
import { List } from "lucide-react";
|
|
7299
|
+
import clsx38 from "clsx";
|
|
7451
7300
|
|
|
7452
7301
|
// src/components/user-action/MultiSelect.tsx
|
|
7453
|
-
|
|
7454
|
-
|
|
7455
|
-
|
|
7302
|
+
import { useState as useState21 } from "react";
|
|
7303
|
+
import { Search as Search3 } from "lucide-react";
|
|
7304
|
+
import clsx37 from "clsx";
|
|
7456
7305
|
|
|
7457
7306
|
// src/components/user-action/Menu.tsx
|
|
7458
|
-
|
|
7459
|
-
|
|
7307
|
+
import { useRef as useRef7 } from "react";
|
|
7308
|
+
import clsx36 from "clsx";
|
|
7460
7309
|
|
|
7461
7310
|
// src/hooks/useOutsideClick.ts
|
|
7462
|
-
|
|
7311
|
+
import { useEffect as useEffect19 } from "react";
|
|
7463
7312
|
var useOutsideClick = (refs, handler) => {
|
|
7464
|
-
(
|
|
7313
|
+
useEffect19(() => {
|
|
7465
7314
|
const listener = (event) => {
|
|
7466
7315
|
if (event.target === null) return;
|
|
7467
7316
|
if (refs.some((ref) => !ref.current || ref.current.contains(event.target))) {
|
|
@@ -7479,16 +7328,16 @@ var useOutsideClick = (refs, handler) => {
|
|
|
7479
7328
|
};
|
|
7480
7329
|
|
|
7481
7330
|
// src/components/user-action/Menu.tsx
|
|
7482
|
-
|
|
7331
|
+
import { jsx as jsx49, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
7483
7332
|
var MenuItem = ({
|
|
7484
7333
|
children,
|
|
7485
7334
|
onClick,
|
|
7486
7335
|
alignment = "left",
|
|
7487
7336
|
className
|
|
7488
|
-
}) => /* @__PURE__ */ (
|
|
7337
|
+
}) => /* @__PURE__ */ jsx49(
|
|
7489
7338
|
"div",
|
|
7490
7339
|
{
|
|
7491
|
-
className: (
|
|
7340
|
+
className: clsx36("block px-3 py-1 bg-menu-background text-menu-text hover:brightness-90", {
|
|
7492
7341
|
"text-right": alignment === "right",
|
|
7493
7342
|
"text-left": alignment === "left"
|
|
7494
7343
|
}, className),
|
|
@@ -7504,22 +7353,22 @@ var Menu2 = ({
|
|
|
7504
7353
|
menuClassName = ""
|
|
7505
7354
|
}) => {
|
|
7506
7355
|
const { isHovered: isOpen, setIsHovered: setIsOpen, handlers } = useHoverState({ isDisabled: !showOnHover });
|
|
7507
|
-
const triggerRef = (
|
|
7508
|
-
const menuRef = (
|
|
7356
|
+
const triggerRef = useRef7(null);
|
|
7357
|
+
const menuRef = useRef7(null);
|
|
7509
7358
|
useOutsideClick([triggerRef, menuRef], () => setIsOpen(false));
|
|
7510
|
-
return /* @__PURE__ */ (
|
|
7359
|
+
return /* @__PURE__ */ jsxs33(
|
|
7511
7360
|
"div",
|
|
7512
7361
|
{
|
|
7513
7362
|
className: "relative",
|
|
7514
7363
|
...handlers,
|
|
7515
7364
|
children: [
|
|
7516
7365
|
trigger(() => setIsOpen(!isOpen), triggerRef),
|
|
7517
|
-
isOpen ? /* @__PURE__ */ (
|
|
7366
|
+
isOpen ? /* @__PURE__ */ jsx49(
|
|
7518
7367
|
"div",
|
|
7519
7368
|
{
|
|
7520
7369
|
ref: menuRef,
|
|
7521
7370
|
onClick: (e) => e.stopPropagation(),
|
|
7522
|
-
className: (
|
|
7371
|
+
className: clsx36("absolute top-full mt-1 py-2 w-60 rounded-lg bg-menu-background text-menu-text ring-1 ring-slate-900/5 text-sm leading-6 font-semibold shadow-md z-[1]", {
|
|
7523
7372
|
" top-[8px]": alignment[0] === "t",
|
|
7524
7373
|
" bottom-[8px]": alignment[0] === "b",
|
|
7525
7374
|
" left-[-8px]": alignment[1] === "l",
|
|
@@ -7534,7 +7383,7 @@ var Menu2 = ({
|
|
|
7534
7383
|
};
|
|
7535
7384
|
|
|
7536
7385
|
// src/components/user-action/MultiSelect.tsx
|
|
7537
|
-
|
|
7386
|
+
import { jsx as jsx50, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
7538
7387
|
var defaultMultiSelectTranslation = {
|
|
7539
7388
|
en: {
|
|
7540
7389
|
select: "Select",
|
|
@@ -7561,7 +7410,7 @@ var MultiSelect = ({
|
|
|
7561
7410
|
triggerClassName = ""
|
|
7562
7411
|
}) => {
|
|
7563
7412
|
const translation = useTranslation(defaultMultiSelectTranslation, overwriteTranslation);
|
|
7564
|
-
const [searchText, setSearchText] = (
|
|
7413
|
+
const [searchText, setSearchText] = useState21(search?.initialSearch ?? "");
|
|
7565
7414
|
let filteredOptions = options;
|
|
7566
7415
|
const enableSearch = !!search;
|
|
7567
7416
|
if (enableSearch && !!searchText) {
|
|
@@ -7575,32 +7424,32 @@ var MultiSelect = ({
|
|
|
7575
7424
|
filteredOptions = filteredOptions.filter((value) => !value.disabled);
|
|
7576
7425
|
}
|
|
7577
7426
|
const selectedItems = options.filter((value) => value.selected);
|
|
7578
|
-
const menuButtonText = selectedItems.length === 0 ? hintText ?? translation.select : /* @__PURE__ */ (
|
|
7427
|
+
const menuButtonText = selectedItems.length === 0 ? hintText ?? translation.select : /* @__PURE__ */ jsx50("span", { children: `${selectedItems.length} ${translation.selected}` });
|
|
7579
7428
|
const borderColor = "border-menu-border";
|
|
7580
|
-
return /* @__PURE__ */ (
|
|
7581
|
-
label && /* @__PURE__ */ (
|
|
7429
|
+
return /* @__PURE__ */ jsxs34("div", { className: clsx37(className), children: [
|
|
7430
|
+
label && /* @__PURE__ */ jsx50(
|
|
7582
7431
|
Label,
|
|
7583
7432
|
{
|
|
7584
7433
|
...label,
|
|
7585
7434
|
htmlFor: label.name,
|
|
7586
|
-
className: (
|
|
7435
|
+
className: clsx37(" mb-1", label.className),
|
|
7587
7436
|
labelType: label.labelType ?? "labelBig"
|
|
7588
7437
|
}
|
|
7589
7438
|
),
|
|
7590
|
-
/* @__PURE__ */ (
|
|
7439
|
+
/* @__PURE__ */ jsxs34(
|
|
7591
7440
|
Menu2,
|
|
7592
7441
|
{
|
|
7593
7442
|
alignment: "t_",
|
|
7594
|
-
trigger: (onClick, ref) => /* @__PURE__ */ (
|
|
7443
|
+
trigger: (onClick, ref) => /* @__PURE__ */ jsx50(
|
|
7595
7444
|
"div",
|
|
7596
7445
|
{
|
|
7597
7446
|
ref,
|
|
7598
7447
|
onClick: disabled ? void 0 : onClick,
|
|
7599
|
-
className: (
|
|
7448
|
+
className: clsx37(
|
|
7600
7449
|
borderColor,
|
|
7601
7450
|
"bg-menu-background text-menu-text inline-w-full justify-between items-center rounded-lg border-2 px-4 py-2 font-medium",
|
|
7602
7451
|
{
|
|
7603
|
-
"hover:
|
|
7452
|
+
"hover:border-primary cursor-pointer": !disabled,
|
|
7604
7453
|
"bg-disabled-background text-disabled cursor-not-allowed": disabled
|
|
7605
7454
|
},
|
|
7606
7455
|
triggerClassName
|
|
@@ -7608,27 +7457,27 @@ var MultiSelect = ({
|
|
|
7608
7457
|
children: selectedDisplay ? selectedDisplay({ items: options, disabled }) : menuButtonText
|
|
7609
7458
|
}
|
|
7610
7459
|
),
|
|
7611
|
-
menuClassName: (
|
|
7460
|
+
menuClassName: clsx37(
|
|
7612
7461
|
"!rounded-lg !shadow-lg !max-h-[500px] !min-w-[400px] !max-w-[70vh] !overflow-y-auto !border !border-2",
|
|
7613
7462
|
borderColor,
|
|
7614
7463
|
{ "!py-0": !enableSearch, "!pb-0": enableSearch }
|
|
7615
7464
|
),
|
|
7616
7465
|
children: [
|
|
7617
|
-
enableSearch && /* @__PURE__ */ (
|
|
7618
|
-
/* @__PURE__ */ (
|
|
7619
|
-
/* @__PURE__ */ (
|
|
7466
|
+
enableSearch && /* @__PURE__ */ jsxs34("div", { className: "row gap-x-2 items-center px-2 py-2", children: [
|
|
7467
|
+
/* @__PURE__ */ jsx50(Input, { autoFocus: true, className: "w-full", value: searchText, onChangeText: setSearchText }),
|
|
7468
|
+
/* @__PURE__ */ jsx50(Search3, {})
|
|
7620
7469
|
] }, "selectSearch"),
|
|
7621
|
-
filteredOptions.map((option, index) => /* @__PURE__ */ (
|
|
7470
|
+
filteredOptions.map((option, index) => /* @__PURE__ */ jsx50(
|
|
7622
7471
|
MenuItem,
|
|
7623
7472
|
{
|
|
7624
|
-
className: (
|
|
7473
|
+
className: clsx37({
|
|
7625
7474
|
"cursor-not-allowed !bg-disabled-background !text-disabled-text hover:brightness-100": !!option.disabled,
|
|
7626
7475
|
"cursor-pointer": !option.disabled
|
|
7627
7476
|
}),
|
|
7628
|
-
children: /* @__PURE__ */ (
|
|
7477
|
+
children: /* @__PURE__ */ jsxs34(
|
|
7629
7478
|
"div",
|
|
7630
7479
|
{
|
|
7631
|
-
className: (
|
|
7480
|
+
className: clsx37("overflow-hidden whitespace-nowrap text-ellipsis row items-center gap-x-2", option.className),
|
|
7632
7481
|
onClick: () => {
|
|
7633
7482
|
if (!option.disabled) {
|
|
7634
7483
|
onChange(options.map((value) => value.value === option.value ? {
|
|
@@ -7638,7 +7487,7 @@ var MultiSelect = ({
|
|
|
7638
7487
|
}
|
|
7639
7488
|
},
|
|
7640
7489
|
children: [
|
|
7641
|
-
/* @__PURE__ */ (
|
|
7490
|
+
/* @__PURE__ */ jsx50(Checkbox, { checked: option.selected, disabled: option.disabled, size: "small" }),
|
|
7642
7491
|
option.label
|
|
7643
7492
|
]
|
|
7644
7493
|
}
|
|
@@ -7653,7 +7502,7 @@ var MultiSelect = ({
|
|
|
7653
7502
|
};
|
|
7654
7503
|
|
|
7655
7504
|
// src/components/properties/MultiSelectProperty.tsx
|
|
7656
|
-
|
|
7505
|
+
import { jsx as jsx51 } from "react/jsx-runtime";
|
|
7657
7506
|
var defaultMultiSelectPropertyTranslation = {
|
|
7658
7507
|
en: {
|
|
7659
7508
|
select: "Select"
|
|
@@ -7677,7 +7526,7 @@ var MultiSelectProperty = ({
|
|
|
7677
7526
|
if (softRequired && !hasValue) {
|
|
7678
7527
|
triggerClassName = "border-warning hover:brightness-90";
|
|
7679
7528
|
}
|
|
7680
|
-
return /* @__PURE__ */ (
|
|
7529
|
+
return /* @__PURE__ */ jsx51(
|
|
7681
7530
|
PropertyBase,
|
|
7682
7531
|
{
|
|
7683
7532
|
name,
|
|
@@ -7685,23 +7534,23 @@ var MultiSelectProperty = ({
|
|
|
7685
7534
|
readOnly,
|
|
7686
7535
|
softRequired,
|
|
7687
7536
|
hasValue,
|
|
7688
|
-
icon: /* @__PURE__ */ (
|
|
7689
|
-
input: ({ softRequired: softRequired2 }) => /* @__PURE__ */ (
|
|
7537
|
+
icon: /* @__PURE__ */ jsx51(List, { size: 16 }),
|
|
7538
|
+
input: ({ softRequired: softRequired2 }) => /* @__PURE__ */ jsx51(
|
|
7690
7539
|
"div",
|
|
7691
7540
|
{
|
|
7692
|
-
className: (
|
|
7693
|
-
children: /* @__PURE__ */ (
|
|
7541
|
+
className: clsx38("row grow py-2 px-4 cursor-pointer", { "text-warning": softRequired2 && !hasValue }),
|
|
7542
|
+
children: /* @__PURE__ */ jsx51(
|
|
7694
7543
|
MultiSelect,
|
|
7695
7544
|
{
|
|
7696
7545
|
...multiSelectProps,
|
|
7697
|
-
className: (
|
|
7546
|
+
className: clsx38("w-full", { "bg-surface-warning": softRequired2 && !hasValue }),
|
|
7698
7547
|
triggerClassName,
|
|
7699
7548
|
selectedDisplay: ({ items }) => {
|
|
7700
7549
|
const selected = items.filter((value) => value.selected);
|
|
7701
7550
|
if (selected.length === 0) {
|
|
7702
|
-
return /* @__PURE__ */ (
|
|
7551
|
+
return /* @__PURE__ */ jsx51("span", { children: "Select" });
|
|
7703
7552
|
}
|
|
7704
|
-
return /* @__PURE__ */ (
|
|
7553
|
+
return /* @__PURE__ */ jsx51(ChipList, { list: selected.map((value) => ({ children: value.label })) });
|
|
7705
7554
|
},
|
|
7706
7555
|
options,
|
|
7707
7556
|
disabled: readOnly,
|
|
@@ -7715,9 +7564,9 @@ var MultiSelectProperty = ({
|
|
|
7715
7564
|
};
|
|
7716
7565
|
|
|
7717
7566
|
// src/components/properties/NumberProperty.tsx
|
|
7718
|
-
|
|
7719
|
-
|
|
7720
|
-
|
|
7567
|
+
import { Binary } from "lucide-react";
|
|
7568
|
+
import clsx39 from "clsx";
|
|
7569
|
+
import { jsx as jsx52, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
7721
7570
|
var defaultNumberPropertyTranslation = {
|
|
7722
7571
|
en: {
|
|
7723
7572
|
value: "Value"
|
|
@@ -7738,23 +7587,23 @@ var NumberProperty = ({
|
|
|
7738
7587
|
}) => {
|
|
7739
7588
|
const translation = useTranslation(defaultNumberPropertyTranslation, overwriteTranslation);
|
|
7740
7589
|
const hasValue = value !== void 0;
|
|
7741
|
-
return /* @__PURE__ */ (
|
|
7590
|
+
return /* @__PURE__ */ jsx52(
|
|
7742
7591
|
PropertyBase,
|
|
7743
7592
|
{
|
|
7744
7593
|
...baseProps,
|
|
7745
7594
|
onRemove,
|
|
7746
7595
|
hasValue,
|
|
7747
|
-
icon: /* @__PURE__ */ (
|
|
7748
|
-
input: ({ softRequired }) => /* @__PURE__ */ (
|
|
7596
|
+
icon: /* @__PURE__ */ jsx52(Binary, { size: 16 }),
|
|
7597
|
+
input: ({ softRequired }) => /* @__PURE__ */ jsxs35(
|
|
7749
7598
|
"div",
|
|
7750
7599
|
{
|
|
7751
|
-
className: (
|
|
7600
|
+
className: clsx39("row grow py-2 px-4 cursor-pointer", { "text-warning": softRequired && !hasValue }),
|
|
7752
7601
|
children: [
|
|
7753
|
-
/* @__PURE__ */ (
|
|
7602
|
+
/* @__PURE__ */ jsx52(
|
|
7754
7603
|
Input,
|
|
7755
7604
|
{
|
|
7756
7605
|
expanded: false,
|
|
7757
|
-
className: (
|
|
7606
|
+
className: clsx39("!ring-0 !border-0 !outline-0 !p-0 !m-0 !w-fit !shadow-none !rounded-none", { "bg-surface-warning placeholder-warning": softRequired && !hasValue }),
|
|
7758
7607
|
value: value?.toString() ?? "",
|
|
7759
7608
|
type: "number",
|
|
7760
7609
|
readOnly,
|
|
@@ -7777,7 +7626,7 @@ var NumberProperty = ({
|
|
|
7777
7626
|
}
|
|
7778
7627
|
}
|
|
7779
7628
|
),
|
|
7780
|
-
suffix && /* @__PURE__ */ (
|
|
7629
|
+
suffix && /* @__PURE__ */ jsx52("span", { className: clsx39("ml-1", { "bg-surface-warning": softRequired && !hasValue }), children: suffix })
|
|
7781
7630
|
]
|
|
7782
7631
|
}
|
|
7783
7632
|
)
|
|
@@ -7786,9 +7635,9 @@ var NumberProperty = ({
|
|
|
7786
7635
|
};
|
|
7787
7636
|
|
|
7788
7637
|
// src/components/properties/SelectProperty.tsx
|
|
7789
|
-
|
|
7790
|
-
|
|
7791
|
-
|
|
7638
|
+
import { List as List2 } from "lucide-react";
|
|
7639
|
+
import clsx40 from "clsx";
|
|
7640
|
+
import { jsx as jsx53 } from "react/jsx-runtime";
|
|
7792
7641
|
var defaultSingleSelectPropertyTranslation = {
|
|
7793
7642
|
en: {
|
|
7794
7643
|
select: "Select"
|
|
@@ -7809,7 +7658,7 @@ var SingleSelectProperty = ({
|
|
|
7809
7658
|
}) => {
|
|
7810
7659
|
const translation = useTranslation(defaultSingleSelectPropertyTranslation, overwriteTranslation);
|
|
7811
7660
|
const hasValue = value !== void 0;
|
|
7812
|
-
return /* @__PURE__ */ (
|
|
7661
|
+
return /* @__PURE__ */ jsx53(
|
|
7813
7662
|
PropertyBase,
|
|
7814
7663
|
{
|
|
7815
7664
|
name,
|
|
@@ -7817,19 +7666,19 @@ var SingleSelectProperty = ({
|
|
|
7817
7666
|
readOnly,
|
|
7818
7667
|
softRequired,
|
|
7819
7668
|
hasValue,
|
|
7820
|
-
icon: /* @__PURE__ */ (
|
|
7821
|
-
input: ({ softRequired: softRequired2 }) => /* @__PURE__ */ (
|
|
7669
|
+
icon: /* @__PURE__ */ jsx53(List2, { size: 16 }),
|
|
7670
|
+
input: ({ softRequired: softRequired2 }) => /* @__PURE__ */ jsx53(
|
|
7822
7671
|
"div",
|
|
7823
7672
|
{
|
|
7824
|
-
className: (
|
|
7825
|
-
children: /* @__PURE__ */ (
|
|
7673
|
+
className: clsx40("row grow py-2 px-4 cursor-pointer", { "text-warning": softRequired2 && !hasValue }),
|
|
7674
|
+
children: /* @__PURE__ */ jsx53(
|
|
7826
7675
|
SearchableSelect,
|
|
7827
7676
|
{
|
|
7828
7677
|
...multiSelectProps,
|
|
7829
7678
|
value,
|
|
7830
7679
|
options,
|
|
7831
7680
|
isDisabled: readOnly,
|
|
7832
|
-
className: (
|
|
7681
|
+
className: clsx40("w-full", { "bg-surface-warning": softRequired2 && !hasValue }),
|
|
7833
7682
|
hintText: `${translation.select}...`
|
|
7834
7683
|
}
|
|
7835
7684
|
)
|
|
@@ -7840,13 +7689,13 @@ var SingleSelectProperty = ({
|
|
|
7840
7689
|
};
|
|
7841
7690
|
|
|
7842
7691
|
// src/components/properties/TextProperty.tsx
|
|
7843
|
-
|
|
7844
|
-
|
|
7692
|
+
import { Text } from "lucide-react";
|
|
7693
|
+
import clsx42 from "clsx";
|
|
7845
7694
|
|
|
7846
7695
|
// src/components/user-action/Textarea.tsx
|
|
7847
|
-
|
|
7848
|
-
|
|
7849
|
-
|
|
7696
|
+
import { useEffect as useEffect20, useState as useState22 } from "react";
|
|
7697
|
+
import clsx41 from "clsx";
|
|
7698
|
+
import { jsx as jsx54, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
7850
7699
|
var Textarea = ({
|
|
7851
7700
|
label,
|
|
7852
7701
|
headline,
|
|
@@ -7861,33 +7710,33 @@ var Textarea = ({
|
|
|
7861
7710
|
className,
|
|
7862
7711
|
...props
|
|
7863
7712
|
}) => {
|
|
7864
|
-
const [hasFocus, setHasFocus] = (
|
|
7713
|
+
const [hasFocus, setHasFocus] = useState22(false);
|
|
7865
7714
|
const { restartTimer, clearUpdateTimer } = useSaveDelay(() => void 0, 3e3);
|
|
7866
7715
|
const onEditCompletedWrapper = (text) => {
|
|
7867
7716
|
onEditCompleted(text);
|
|
7868
7717
|
clearUpdateTimer();
|
|
7869
7718
|
};
|
|
7870
|
-
return /* @__PURE__ */ (
|
|
7871
|
-
label && /* @__PURE__ */ (
|
|
7719
|
+
return /* @__PURE__ */ jsxs36("div", { className: "w-full", children: [
|
|
7720
|
+
label && /* @__PURE__ */ jsx54(
|
|
7872
7721
|
Label,
|
|
7873
7722
|
{
|
|
7874
7723
|
...label,
|
|
7875
7724
|
htmlFor: id,
|
|
7876
|
-
className: (
|
|
7725
|
+
className: clsx41("mb-1", label.className),
|
|
7877
7726
|
labelType: label.labelType ?? "labelSmall"
|
|
7878
7727
|
}
|
|
7879
7728
|
),
|
|
7880
|
-
/* @__PURE__ */ (
|
|
7729
|
+
/* @__PURE__ */ jsxs36(
|
|
7881
7730
|
"div",
|
|
7882
7731
|
{
|
|
7883
|
-
className: `${(
|
|
7732
|
+
className: `${clsx41(" bg-surface text-on-surface focus-within:border-primary relative", { "shadow border-2 hover:border-primary rounded-lg": defaultStyle })}`,
|
|
7884
7733
|
children: [
|
|
7885
|
-
headline && /* @__PURE__ */ (
|
|
7886
|
-
/* @__PURE__ */ (
|
|
7734
|
+
headline && /* @__PURE__ */ jsx54("span", { className: "mx-3 mt-3 block textstyle-label-md", children: headline }),
|
|
7735
|
+
/* @__PURE__ */ jsx54(
|
|
7887
7736
|
"textarea",
|
|
7888
7737
|
{
|
|
7889
7738
|
id,
|
|
7890
|
-
className: (
|
|
7739
|
+
className: clsx41("pt-0 px-3 border-transparent focus:border-transparent focus:ring-0 appearance-none border w-full leading-tight focus:outline-none", {
|
|
7891
7740
|
"resize-none": !resizable,
|
|
7892
7741
|
"h-32": defaultStyle,
|
|
7893
7742
|
"mt-3": !headline
|
|
@@ -7914,7 +7763,7 @@ var Textarea = ({
|
|
|
7914
7763
|
]
|
|
7915
7764
|
}
|
|
7916
7765
|
),
|
|
7917
|
-
hasFocus && disclaimer && /* @__PURE__ */ (
|
|
7766
|
+
hasFocus && disclaimer && /* @__PURE__ */ jsx54("label", { className: "text-negative", children: disclaimer })
|
|
7918
7767
|
] });
|
|
7919
7768
|
};
|
|
7920
7769
|
var TextareaUncontrolled = ({
|
|
@@ -7922,11 +7771,11 @@ var TextareaUncontrolled = ({
|
|
|
7922
7771
|
onChangeText = noop,
|
|
7923
7772
|
...props
|
|
7924
7773
|
}) => {
|
|
7925
|
-
const [text, setText] = (
|
|
7926
|
-
(
|
|
7774
|
+
const [text, setText] = useState22(value);
|
|
7775
|
+
useEffect20(() => {
|
|
7927
7776
|
setText(value);
|
|
7928
7777
|
}, [value]);
|
|
7929
|
-
return /* @__PURE__ */ (
|
|
7778
|
+
return /* @__PURE__ */ jsx54(
|
|
7930
7779
|
Textarea,
|
|
7931
7780
|
{
|
|
7932
7781
|
...props,
|
|
@@ -7940,7 +7789,7 @@ var TextareaUncontrolled = ({
|
|
|
7940
7789
|
};
|
|
7941
7790
|
|
|
7942
7791
|
// src/components/properties/TextProperty.tsx
|
|
7943
|
-
|
|
7792
|
+
import { jsx as jsx55 } from "react/jsx-runtime";
|
|
7944
7793
|
var defaultTextPropertyTranslation = {
|
|
7945
7794
|
en: {
|
|
7946
7795
|
value: "Text"
|
|
@@ -7960,21 +7809,21 @@ var TextProperty = ({
|
|
|
7960
7809
|
}) => {
|
|
7961
7810
|
const translation = useTranslation(defaultTextPropertyTranslation, overwriteTranslation);
|
|
7962
7811
|
const hasValue = value !== void 0;
|
|
7963
|
-
return /* @__PURE__ */ (
|
|
7812
|
+
return /* @__PURE__ */ jsx55(
|
|
7964
7813
|
PropertyBase,
|
|
7965
7814
|
{
|
|
7966
7815
|
...baseProps,
|
|
7967
7816
|
onRemove,
|
|
7968
7817
|
hasValue,
|
|
7969
|
-
icon: /* @__PURE__ */ (
|
|
7970
|
-
input: ({ softRequired }) => /* @__PURE__ */ (
|
|
7818
|
+
icon: /* @__PURE__ */ jsx55(Text, { size: 16 }),
|
|
7819
|
+
input: ({ softRequired }) => /* @__PURE__ */ jsx55(
|
|
7971
7820
|
"div",
|
|
7972
7821
|
{
|
|
7973
|
-
className: (
|
|
7974
|
-
children: /* @__PURE__ */ (
|
|
7822
|
+
className: clsx42("row grow pt-2 pb-1 px-4 cursor-pointer", { "text-warning": softRequired && !hasValue }),
|
|
7823
|
+
children: /* @__PURE__ */ jsx55(
|
|
7975
7824
|
Textarea,
|
|
7976
7825
|
{
|
|
7977
|
-
className: (
|
|
7826
|
+
className: clsx42("ring-0 border-0 outline-0 p-0 m-0 shadow-none rounded-none", { "bg-surface-warning placeholder-warning": softRequired && !hasValue }),
|
|
7978
7827
|
rows: 5,
|
|
7979
7828
|
defaultStyle: false,
|
|
7980
7829
|
value: value ?? "",
|
|
@@ -8003,8 +7852,8 @@ var TextProperty = ({
|
|
|
8003
7852
|
};
|
|
8004
7853
|
|
|
8005
7854
|
// src/components/user-action/DateAndTimePicker.tsx
|
|
8006
|
-
|
|
8007
|
-
|
|
7855
|
+
import clsx43 from "clsx";
|
|
7856
|
+
import { jsx as jsx56, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
8008
7857
|
var defaultTimeTranslation = {
|
|
8009
7858
|
en: {
|
|
8010
7859
|
clear: "Clear",
|
|
@@ -8063,7 +7912,7 @@ var DateTimePicker = ({
|
|
|
8063
7912
|
let dateDisplay;
|
|
8064
7913
|
let timeDisplay;
|
|
8065
7914
|
if (useDate) {
|
|
8066
|
-
dateDisplay = /* @__PURE__ */ (
|
|
7915
|
+
dateDisplay = /* @__PURE__ */ jsx56(
|
|
8067
7916
|
DatePicker,
|
|
8068
7917
|
{
|
|
8069
7918
|
...datePickerProps,
|
|
@@ -8077,25 +7926,25 @@ var DateTimePicker = ({
|
|
|
8077
7926
|
);
|
|
8078
7927
|
}
|
|
8079
7928
|
if (useTime) {
|
|
8080
|
-
timeDisplay = /* @__PURE__ */ (
|
|
7929
|
+
timeDisplay = /* @__PURE__ */ jsx56(
|
|
8081
7930
|
TimePicker,
|
|
8082
7931
|
{
|
|
8083
7932
|
...timePickerProps,
|
|
8084
|
-
className: (
|
|
7933
|
+
className: clsx43("h-full", { "justify-between w-full": mode === "time" }),
|
|
8085
7934
|
maxHeight: 250,
|
|
8086
7935
|
time: value,
|
|
8087
7936
|
onChange
|
|
8088
7937
|
}
|
|
8089
7938
|
);
|
|
8090
7939
|
}
|
|
8091
|
-
return /* @__PURE__ */ (
|
|
8092
|
-
/* @__PURE__ */ (
|
|
7940
|
+
return /* @__PURE__ */ jsxs37("div", { className: "col w-fit", children: [
|
|
7941
|
+
/* @__PURE__ */ jsxs37("div", { className: "row gap-x-4", children: [
|
|
8093
7942
|
dateDisplay,
|
|
8094
7943
|
timeDisplay
|
|
8095
7944
|
] }),
|
|
8096
|
-
/* @__PURE__ */ (
|
|
8097
|
-
/* @__PURE__ */ (
|
|
8098
|
-
/* @__PURE__ */ (
|
|
7945
|
+
/* @__PURE__ */ jsx56("div", { className: "row justify-end", children: /* @__PURE__ */ jsxs37("div", { className: "row gap-x-2 mt-1", children: [
|
|
7946
|
+
/* @__PURE__ */ jsx56(SolidButton, { size: "medium", color: "negative", onClick: onRemove, children: translation.clear }),
|
|
7947
|
+
/* @__PURE__ */ jsx56(
|
|
8099
7948
|
SolidButton,
|
|
8100
7949
|
{
|
|
8101
7950
|
size: "medium",
|
|
@@ -8108,9 +7957,9 @@ var DateTimePicker = ({
|
|
|
8108
7957
|
};
|
|
8109
7958
|
|
|
8110
7959
|
// src/components/user-action/ScrollPicker.tsx
|
|
8111
|
-
|
|
8112
|
-
|
|
8113
|
-
|
|
7960
|
+
import { useCallback as useCallback4, useEffect as useEffect21, useState as useState23 } from "react";
|
|
7961
|
+
import clsx44 from "clsx";
|
|
7962
|
+
import { jsx as jsx57, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
8114
7963
|
var up = 1;
|
|
8115
7964
|
var down = -1;
|
|
8116
7965
|
var ScrollPicker = ({
|
|
@@ -8129,7 +7978,7 @@ var ScrollPicker = ({
|
|
|
8129
7978
|
transition,
|
|
8130
7979
|
items,
|
|
8131
7980
|
lastTimeStamp
|
|
8132
|
-
}, setAnimation] = (
|
|
7981
|
+
}, setAnimation] = useState23({
|
|
8133
7982
|
targetIndex: selectedIndex,
|
|
8134
7983
|
currentIndex: disabled ? selectedIndex : 0,
|
|
8135
7984
|
velocity: 0,
|
|
@@ -8145,7 +7994,7 @@ var ScrollPicker = ({
|
|
|
8145
7994
|
const itemHeight = 40;
|
|
8146
7995
|
const distance = 8;
|
|
8147
7996
|
const containerHeight = itemHeight * (itemsShownCount - 2) + distance * (itemsShownCount - 2 + 1);
|
|
8148
|
-
const getDirection = (
|
|
7997
|
+
const getDirection = useCallback4((targetIndex, currentIndex2, transition2, length) => {
|
|
8149
7998
|
if (targetIndex === currentIndex2) {
|
|
8150
7999
|
return transition2 > 0 ? up : down;
|
|
8151
8000
|
}
|
|
@@ -8155,7 +8004,7 @@ var ScrollPicker = ({
|
|
|
8155
8004
|
}
|
|
8156
8005
|
return distanceForward >= length / 2 ? down : up;
|
|
8157
8006
|
}, []);
|
|
8158
|
-
const animate = (
|
|
8007
|
+
const animate = useCallback4((timestamp, startTime) => {
|
|
8159
8008
|
setAnimation((prevState) => {
|
|
8160
8009
|
const {
|
|
8161
8010
|
targetIndex,
|
|
@@ -8228,7 +8077,7 @@ var ScrollPicker = ({
|
|
|
8228
8077
|
};
|
|
8229
8078
|
});
|
|
8230
8079
|
}, [disabled, getDirection, onChange]);
|
|
8231
|
-
(
|
|
8080
|
+
useEffect21(() => {
|
|
8232
8081
|
requestAnimationFrame((timestamp) => animate(timestamp, lastTimeStamp));
|
|
8233
8082
|
});
|
|
8234
8083
|
const opacity = (transition2, index, itemsCount) => {
|
|
@@ -8249,7 +8098,7 @@ var ScrollPicker = ({
|
|
|
8249
8098
|
}
|
|
8250
8099
|
return clamp(1 - opacityValue / max);
|
|
8251
8100
|
};
|
|
8252
|
-
return /* @__PURE__ */ (
|
|
8101
|
+
return /* @__PURE__ */ jsx57(
|
|
8253
8102
|
"div",
|
|
8254
8103
|
{
|
|
8255
8104
|
className: "relative overflow-hidden",
|
|
@@ -8259,15 +8108,15 @@ var ScrollPicker = ({
|
|
|
8259
8108
|
setAnimation(({ velocity, ...animationData }) => ({ ...animationData, velocity: velocity + event.deltaY }));
|
|
8260
8109
|
}
|
|
8261
8110
|
},
|
|
8262
|
-
children: /* @__PURE__ */ (
|
|
8263
|
-
/* @__PURE__ */ (
|
|
8111
|
+
children: /* @__PURE__ */ jsxs38("div", { className: "absolute top-1/2 -translate-y-1/2 -translate-x-1/2 left-1/2", children: [
|
|
8112
|
+
/* @__PURE__ */ jsx57(
|
|
8264
8113
|
"div",
|
|
8265
8114
|
{
|
|
8266
|
-
className: "absolute z-[1] top-1/2 -translate-y-1/2 -translate-x-1/2 left-1/2 w-full min-w-[40px] border border-y-2 border-x-0
|
|
8115
|
+
className: "absolute z-[1] top-1/2 -translate-y-1/2 -translate-x-1/2 left-1/2 w-full min-w-[40px] border border-divider/30 border-y-2 border-x-0 ",
|
|
8267
8116
|
style: { height: `${itemHeight}px` }
|
|
8268
8117
|
}
|
|
8269
8118
|
),
|
|
8270
|
-
/* @__PURE__ */ (
|
|
8119
|
+
/* @__PURE__ */ jsx57(
|
|
8271
8120
|
"div",
|
|
8272
8121
|
{
|
|
8273
8122
|
className: "col select-none",
|
|
@@ -8275,10 +8124,10 @@ var ScrollPicker = ({
|
|
|
8275
8124
|
transform: `translateY(${-transition * (distance + itemHeight)}px)`,
|
|
8276
8125
|
columnGap: `${distance}px`
|
|
8277
8126
|
},
|
|
8278
|
-
children: shownItems.map(({ name, index }, arrayIndex) => /* @__PURE__ */ (
|
|
8127
|
+
children: shownItems.map(({ name, index }, arrayIndex) => /* @__PURE__ */ jsx57(
|
|
8279
8128
|
"div",
|
|
8280
8129
|
{
|
|
8281
|
-
className: (
|
|
8130
|
+
className: clsx44(
|
|
8282
8131
|
`col items-center justify-center rounded-md`,
|
|
8283
8132
|
{
|
|
8284
8133
|
"text-primary font-bold": currentIndex === index,
|
|
@@ -8305,10 +8154,10 @@ var ScrollPicker = ({
|
|
|
8305
8154
|
};
|
|
8306
8155
|
|
|
8307
8156
|
// src/components/user-action/ToggleableInput.tsx
|
|
8308
|
-
|
|
8309
|
-
|
|
8310
|
-
|
|
8311
|
-
|
|
8157
|
+
import { useEffect as useEffect22, useRef as useRef8, useState as useState24 } from "react";
|
|
8158
|
+
import { Pencil } from "lucide-react";
|
|
8159
|
+
import clsx45 from "clsx";
|
|
8160
|
+
import { jsx as jsx58, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
8312
8161
|
var ToggleableInput = ({
|
|
8313
8162
|
type = "text",
|
|
8314
8163
|
value,
|
|
@@ -8322,26 +8171,26 @@ var ToggleableInput = ({
|
|
|
8322
8171
|
onBlur,
|
|
8323
8172
|
...restProps
|
|
8324
8173
|
}) => {
|
|
8325
|
-
const [isEditing, setIsEditing] = (
|
|
8174
|
+
const [isEditing, setIsEditing] = useState24(initialState !== "display");
|
|
8326
8175
|
const { restartTimer, clearUpdateTimer } = useSaveDelay(() => void 0, 3e3);
|
|
8327
|
-
const ref = (
|
|
8176
|
+
const ref = useRef8(null);
|
|
8328
8177
|
const onEditCompletedWrapper = (text) => {
|
|
8329
8178
|
onEditCompleted(text);
|
|
8330
8179
|
clearUpdateTimer();
|
|
8331
8180
|
};
|
|
8332
|
-
(
|
|
8181
|
+
useEffect22(() => {
|
|
8333
8182
|
if (isEditing) {
|
|
8334
8183
|
ref.current?.focus();
|
|
8335
8184
|
}
|
|
8336
8185
|
}, [isEditing]);
|
|
8337
|
-
return /* @__PURE__ */ (
|
|
8338
|
-
/* @__PURE__ */ (
|
|
8186
|
+
return /* @__PURE__ */ jsxs39("div", { children: [
|
|
8187
|
+
/* @__PURE__ */ jsxs39(
|
|
8339
8188
|
"div",
|
|
8340
8189
|
{
|
|
8341
|
-
className: (
|
|
8190
|
+
className: clsx45("row items-center w-full gap-x-2 overflow-hidden", { "cursor-pointer": !isEditing }),
|
|
8342
8191
|
onClick: () => !isEditing ? setIsEditing(!isEditing) : void 0,
|
|
8343
8192
|
children: [
|
|
8344
|
-
/* @__PURE__ */ (
|
|
8193
|
+
/* @__PURE__ */ jsx58("div", { className: clsx45("row overflow-hidden", { "flex-1": isEditing }), children: isEditing ? /* @__PURE__ */ jsx58(
|
|
8345
8194
|
"input",
|
|
8346
8195
|
{
|
|
8347
8196
|
ref,
|
|
@@ -8369,16 +8218,16 @@ var ToggleableInput = ({
|
|
|
8369
8218
|
onEditCompletedWrapper(value);
|
|
8370
8219
|
}
|
|
8371
8220
|
},
|
|
8372
|
-
className: (
|
|
8221
|
+
className: clsx45(`w-full border-none rounded-none ring-0 outline-0 text-inherit bg-inherit shadow-transparent decoration-primary p-0 underline-offset-4`, {
|
|
8373
8222
|
underline: isEditing
|
|
8374
8223
|
}, labelClassName),
|
|
8375
8224
|
onFocus: (event) => event.target.select()
|
|
8376
8225
|
}
|
|
8377
|
-
) : /* @__PURE__ */ (
|
|
8378
|
-
/* @__PURE__ */ (
|
|
8379
|
-
|
|
8226
|
+
) : /* @__PURE__ */ jsx58("span", { className: clsx45("max-w-xs break-words overflow-hidden", labelClassName), children: value }) }),
|
|
8227
|
+
/* @__PURE__ */ jsx58(
|
|
8228
|
+
Pencil,
|
|
8380
8229
|
{
|
|
8381
|
-
className: (
|
|
8230
|
+
className: clsx45(`cursor-pointer`, { "text-transparent": isEditing }),
|
|
8382
8231
|
size,
|
|
8383
8232
|
style: { minWidth: `${size}px` }
|
|
8384
8233
|
}
|
|
@@ -8386,7 +8235,7 @@ var ToggleableInput = ({
|
|
|
8386
8235
|
]
|
|
8387
8236
|
}
|
|
8388
8237
|
),
|
|
8389
|
-
isEditing && disclaimer && /* @__PURE__ */ (
|
|
8238
|
+
isEditing && disclaimer && /* @__PURE__ */ jsx58("label", { className: "text-negative", children: disclaimer })
|
|
8390
8239
|
] });
|
|
8391
8240
|
};
|
|
8392
8241
|
var ToggleableInputUncontrolled = ({
|
|
@@ -8394,11 +8243,11 @@ var ToggleableInputUncontrolled = ({
|
|
|
8394
8243
|
onChangeText = noop,
|
|
8395
8244
|
...restProps
|
|
8396
8245
|
}) => {
|
|
8397
|
-
const [value, setValue] = (
|
|
8398
|
-
(
|
|
8246
|
+
const [value, setValue] = useState24(initialValue);
|
|
8247
|
+
useEffect22(() => {
|
|
8399
8248
|
setValue(initialValue);
|
|
8400
8249
|
}, [initialValue]);
|
|
8401
|
-
return /* @__PURE__ */ (
|
|
8250
|
+
return /* @__PURE__ */ jsx58(
|
|
8402
8251
|
ToggleableInput,
|
|
8403
8252
|
{
|
|
8404
8253
|
value,
|
|
@@ -8423,14 +8272,14 @@ var validateEmail = (email) => {
|
|
|
8423
8272
|
};
|
|
8424
8273
|
|
|
8425
8274
|
// src/util/news.ts
|
|
8426
|
-
|
|
8427
|
-
var newsSchema =
|
|
8428
|
-
title:
|
|
8429
|
-
description:
|
|
8430
|
-
date:
|
|
8431
|
-
image:
|
|
8432
|
-
externalResource:
|
|
8433
|
-
keys:
|
|
8275
|
+
import { z } from "zod";
|
|
8276
|
+
var newsSchema = z.object({
|
|
8277
|
+
title: z.string(),
|
|
8278
|
+
description: z.string(),
|
|
8279
|
+
date: z.string(),
|
|
8280
|
+
image: z.string().url().optional(),
|
|
8281
|
+
externalResource: z.string().url().optional(),
|
|
8282
|
+
keys: z.array(z.string())
|
|
8434
8283
|
}).transform((obj) => {
|
|
8435
8284
|
let description = [obj.description];
|
|
8436
8285
|
if (obj.image) {
|
|
@@ -8444,13 +8293,12 @@ var newsSchema = import_zod.z.object({
|
|
|
8444
8293
|
keys: obj.keys
|
|
8445
8294
|
};
|
|
8446
8295
|
});
|
|
8447
|
-
var newsListSchema =
|
|
8448
|
-
var localizedNewsSchema =
|
|
8296
|
+
var newsListSchema = z.array(newsSchema);
|
|
8297
|
+
var localizedNewsSchema = z.record(z.enum(LanguageUtil.languages), newsListSchema);
|
|
8449
8298
|
var filterNews = (localizedNews, requiredKeys) => {
|
|
8450
8299
|
return localizedNews.filter((news) => requiredKeys.every((value) => news.keys.includes(value)));
|
|
8451
8300
|
};
|
|
8452
|
-
|
|
8453
|
-
0 && (module.exports = {
|
|
8301
|
+
export {
|
|
8454
8302
|
ASTNodeInterpreter,
|
|
8455
8303
|
AnimatedRing,
|
|
8456
8304
|
ArrayUtil,
|
|
@@ -8500,7 +8348,7 @@ var filterNews = (localizedNews, requiredKeys) => {
|
|
|
8500
8348
|
LocalStorageService,
|
|
8501
8349
|
LoopingArrayCalculator,
|
|
8502
8350
|
MarkdownInterpreter,
|
|
8503
|
-
Menu,
|
|
8351
|
+
Menu2 as Menu,
|
|
8504
8352
|
MenuItem,
|
|
8505
8353
|
Modal,
|
|
8506
8354
|
MultiSearchWithMapping,
|
|
@@ -8597,5 +8445,5 @@ var filterNews = (localizedNews, requiredKeys) => {
|
|
|
8597
8445
|
useTranslation,
|
|
8598
8446
|
validateEmail,
|
|
8599
8447
|
weekDayList
|
|
8600
|
-
}
|
|
8601
|
-
//# sourceMappingURL=index.
|
|
8448
|
+
};
|
|
8449
|
+
//# sourceMappingURL=index.mjs.map
|