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