@helpwave/hightide 0.0.19 → 0.1.0
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/README.md +21 -2
- package/dist/coloring/shading.cjs +556 -0
- package/dist/coloring/shading.cjs.map +1 -0
- package/dist/coloring/{shading.d.mts → shading.d.cts} +1 -1
- package/dist/coloring/shading.js +476 -37
- package/dist/coloring/shading.js.map +1 -1
- package/dist/coloring/types.cjs +31 -0
- package/dist/coloring/{types.mjs.map → types.cjs.map} +1 -1
- package/dist/coloring/types.js +2 -27
- package/dist/coloring/types.js.map +1 -1
- package/dist/components/{HelpwaveBadge.js → branding/HelpwaveBadge.cjs} +65 -33
- package/dist/components/branding/HelpwaveBadge.cjs.map +1 -0
- package/dist/components/branding/HelpwaveBadge.js +123 -0
- package/dist/components/branding/HelpwaveBadge.js.map +1 -0
- package/dist/components/date/{DatePicker.mjs → DatePicker.cjs} +158 -94
- package/dist/components/date/DatePicker.cjs.map +1 -0
- package/dist/components/date/{DatePicker.d.mts → DatePicker.d.cts} +7 -8
- package/dist/components/date/DatePicker.d.ts +4 -5
- package/dist/components/date/DatePicker.js +121 -129
- package/dist/components/date/DatePicker.js.map +1 -1
- package/dist/components/date/{DayPicker.mjs → DayPicker.cjs} +77 -24
- package/dist/components/date/DayPicker.cjs.map +1 -0
- package/dist/components/date/{DayPicker.d.mts → DayPicker.d.cts} +3 -3
- package/dist/components/date/DayPicker.d.ts +2 -2
- package/dist/components/date/DayPicker.js +38 -61
- package/dist/components/date/DayPicker.js.map +1 -1
- package/dist/components/{TimeDisplay.js → date/TimeDisplay.cjs} +24 -9
- package/dist/components/date/TimeDisplay.cjs.map +1 -0
- package/dist/components/{TimeDisplay.d.mts → date/TimeDisplay.d.cts} +2 -3
- package/dist/components/{TimeDisplay.d.ts → date/TimeDisplay.d.ts} +2 -3
- package/dist/components/{TimeDisplay.mjs → date/TimeDisplay.js} +23 -8
- package/dist/components/date/TimeDisplay.js.map +1 -0
- package/dist/components/date/{TimePicker.mjs → TimePicker.cjs} +62 -26
- package/dist/components/date/TimePicker.cjs.map +1 -0
- package/dist/components/date/{TimePicker.d.mts → TimePicker.d.cts} +2 -2
- package/dist/components/date/TimePicker.d.ts +2 -2
- package/dist/components/date/TimePicker.js +25 -61
- package/dist/components/date/TimePicker.js.map +1 -1
- package/dist/components/date/{YearMonthPicker.mjs → YearMonthPicker.cjs} +93 -42
- package/dist/components/date/YearMonthPicker.cjs.map +1 -0
- package/dist/components/date/{YearMonthPicker.d.mts → YearMonthPicker.d.cts} +2 -2
- package/dist/components/date/YearMonthPicker.d.ts +2 -2
- package/dist/components/date/YearMonthPicker.js +56 -77
- package/dist/components/date/YearMonthPicker.js.map +1 -1
- package/dist/components/{AvatarGroup.js → icons-and-geometry/Avatar.cjs} +23 -19
- package/dist/components/icons-and-geometry/Avatar.cjs.map +1 -0
- package/dist/components/icons-and-geometry/Avatar.d.cts +30 -0
- package/dist/components/icons-and-geometry/Avatar.d.ts +30 -0
- package/dist/components/{AvatarGroup.mjs → icons-and-geometry/Avatar.js} +13 -10
- package/dist/components/icons-and-geometry/Avatar.js.map +1 -0
- package/dist/components/{Circle.js → icons-and-geometry/Circle.cjs} +3 -3
- package/dist/components/icons-and-geometry/Circle.cjs.map +1 -0
- package/dist/components/{Circle.mjs → icons-and-geometry/Circle.js} +2 -2
- package/dist/components/icons-and-geometry/Circle.js.map +1 -0
- package/dist/components/{icons/Helpwave.js → icons-and-geometry/Helpwave.cjs} +38 -6
- package/dist/components/icons-and-geometry/Helpwave.cjs.map +1 -0
- package/dist/components/icons-and-geometry/Helpwave.js +75 -0
- package/dist/components/icons-and-geometry/Helpwave.js.map +1 -0
- package/dist/components/{Ring.js → icons-and-geometry/Ring.cjs} +6 -6
- package/dist/components/icons-and-geometry/Ring.cjs.map +1 -0
- package/dist/components/{Ring.mjs → icons-and-geometry/Ring.js} +4 -4
- package/dist/components/icons-and-geometry/Ring.js.map +1 -0
- package/dist/components/{icons/Tag.js → icons-and-geometry/Tag.cjs} +3 -3
- package/dist/components/icons-and-geometry/Tag.cjs.map +1 -0
- package/dist/components/{icons/Tag.mjs → icons-and-geometry/Tag.js} +2 -2
- package/dist/components/icons-and-geometry/Tag.js.map +1 -0
- package/dist/components/{BreadCrumb.js → layout-and-navigation/BreadCrumb.cjs} +12 -5
- package/dist/components/layout-and-navigation/BreadCrumb.cjs.map +1 -0
- package/dist/components/{BreadCrumb.mjs → layout-and-navigation/BreadCrumb.js} +10 -3
- package/dist/components/layout-and-navigation/BreadCrumb.js.map +1 -0
- package/dist/components/{layout/Carousel.js → layout-and-navigation/Carousel.cjs} +4 -4
- package/dist/components/layout-and-navigation/Carousel.cjs.map +1 -0
- package/dist/components/{layout/Carousel.mjs → layout-and-navigation/Carousel.js} +4 -4
- package/dist/components/layout-and-navigation/Carousel.js.map +1 -0
- package/dist/components/{ChipList.js → layout-and-navigation/Chip.cjs} +6 -6
- package/dist/components/layout-and-navigation/Chip.cjs.map +1 -0
- package/dist/components/{ChipList.mjs → layout-and-navigation/Chip.js} +2 -2
- package/dist/components/layout-and-navigation/Chip.js.map +1 -0
- package/dist/components/{layout/DividerInserter.js → layout-and-navigation/DividerInserter.cjs} +3 -3
- package/dist/components/layout-and-navigation/DividerInserter.cjs.map +1 -0
- package/dist/components/{layout/DividerInserter.mjs → layout-and-navigation/DividerInserter.js} +2 -2
- package/dist/components/layout-and-navigation/DividerInserter.js.map +1 -0
- package/dist/components/{Expandable.js → layout-and-navigation/Expandable.cjs} +3 -3
- package/dist/components/layout-and-navigation/Expandable.cjs.map +1 -0
- package/dist/components/{Expandable.mjs → layout-and-navigation/Expandable.js} +2 -2
- package/dist/components/layout-and-navigation/Expandable.js.map +1 -0
- package/dist/components/{layout/FAQSection.js → layout-and-navigation/FAQSection.cjs} +7 -7
- package/dist/components/layout-and-navigation/FAQSection.cjs.map +1 -0
- package/dist/components/{layout/FAQSection.d.mts → layout-and-navigation/FAQSection.d.cts} +1 -1
- package/dist/components/{layout → layout-and-navigation}/FAQSection.d.ts +1 -1
- package/dist/components/{layout/FAQSection.mjs → layout-and-navigation/FAQSection.js} +5 -5
- package/dist/components/layout-and-navigation/FAQSection.js.map +1 -0
- package/dist/components/{MarkdownInterpreter.js → layout-and-navigation/MarkdownInterpreter.cjs} +2 -2
- package/dist/components/layout-and-navigation/MarkdownInterpreter.cjs.map +1 -0
- package/dist/components/{MarkdownInterpreter.mjs → layout-and-navigation/MarkdownInterpreter.js} +2 -2
- package/dist/components/layout-and-navigation/MarkdownInterpreter.js.map +1 -0
- package/dist/components/layout-and-navigation/Overlay.cjs +467 -0
- package/dist/components/layout-and-navigation/Overlay.cjs.map +1 -0
- package/dist/components/layout-and-navigation/Overlay.d.cts +63 -0
- package/dist/components/layout-and-navigation/Overlay.d.ts +63 -0
- package/dist/components/layout-and-navigation/Overlay.js +429 -0
- package/dist/components/layout-and-navigation/Overlay.js.map +1 -0
- package/dist/components/{Pagination.js → layout-and-navigation/Pagination.cjs} +25 -10
- package/dist/components/layout-and-navigation/Pagination.cjs.map +1 -0
- package/dist/components/{Pagination.d.mts → layout-and-navigation/Pagination.d.cts} +2 -3
- package/dist/components/{Pagination.d.ts → layout-and-navigation/Pagination.d.ts} +2 -3
- package/dist/components/{Pagination.mjs → layout-and-navigation/Pagination.js} +25 -10
- package/dist/components/layout-and-navigation/Pagination.js.map +1 -0
- package/dist/components/{SearchableList.js → layout-and-navigation/SearchableList.cjs} +51 -34
- package/dist/components/layout-and-navigation/SearchableList.cjs.map +1 -0
- package/dist/components/{SearchableList.d.mts → layout-and-navigation/SearchableList.d.cts} +2 -2
- package/dist/components/{SearchableList.d.ts → layout-and-navigation/SearchableList.d.ts} +2 -2
- package/dist/components/{SearchableList.mjs → layout-and-navigation/SearchableList.js} +52 -40
- package/dist/components/layout-and-navigation/SearchableList.js.map +1 -0
- package/dist/components/{StepperBar.js → layout-and-navigation/StepperBar.cjs} +42 -16
- package/dist/components/layout-and-navigation/StepperBar.cjs.map +1 -0
- package/dist/components/{StepperBar.d.mts → layout-and-navigation/StepperBar.d.cts} +2 -3
- package/dist/components/{StepperBar.d.ts → layout-and-navigation/StepperBar.d.ts} +2 -3
- package/dist/components/{StepperBar.mjs → layout-and-navigation/StepperBar.js} +40 -14
- package/dist/components/layout-and-navigation/StepperBar.js.map +1 -0
- package/dist/components/{Table.js → layout-and-navigation/Table.cjs} +176 -40
- package/dist/components/layout-and-navigation/Table.cjs.map +1 -0
- package/dist/components/{Table.d.mts → layout-and-navigation/Table.d.cts} +10 -1
- package/dist/components/{Table.d.ts → layout-and-navigation/Table.d.ts} +10 -1
- package/dist/components/{Table.mjs → layout-and-navigation/Table.js} +175 -40
- package/dist/components/layout-and-navigation/Table.js.map +1 -0
- package/dist/components/{TextImage.js → layout-and-navigation/TextImage.cjs} +25 -10
- package/dist/components/layout-and-navigation/TextImage.cjs.map +1 -0
- package/dist/components/{TextImage.d.mts → layout-and-navigation/TextImage.d.cts} +2 -3
- package/dist/components/{TextImage.d.ts → layout-and-navigation/TextImage.d.ts} +2 -3
- package/dist/components/{TextImage.mjs → layout-and-navigation/TextImage.js} +23 -8
- package/dist/components/layout-and-navigation/TextImage.js.map +1 -0
- package/dist/components/{layout/Tile.js → layout-and-navigation/Tile.cjs} +4 -4
- package/dist/components/layout-and-navigation/Tile.cjs.map +1 -0
- package/dist/components/{layout/Tile.mjs → layout-and-navigation/Tile.js} +2 -2
- package/dist/components/layout-and-navigation/Tile.js.map +1 -0
- package/dist/components/{VerticalDivider.js → layout-and-navigation/VerticalDivider.cjs} +2 -2
- package/dist/components/layout-and-navigation/VerticalDivider.cjs.map +1 -0
- package/dist/components/{VerticalDivider.mjs → layout-and-navigation/VerticalDivider.js} +2 -2
- package/dist/components/layout-and-navigation/VerticalDivider.js.map +1 -0
- package/dist/components/{ErrorComponent.js → loading-states/ErrorComponent.cjs} +25 -10
- package/dist/components/loading-states/ErrorComponent.cjs.map +1 -0
- package/dist/components/{ErrorComponent.d.mts → loading-states/ErrorComponent.d.cts} +2 -3
- package/dist/components/{ErrorComponent.d.ts → loading-states/ErrorComponent.d.ts} +2 -3
- package/dist/components/{ErrorComponent.mjs → loading-states/ErrorComponent.js} +24 -9
- package/dist/components/loading-states/ErrorComponent.js.map +1 -0
- package/dist/components/{LoadingAndErrorComponent.js → loading-states/LoadingAndErrorComponent.cjs} +67 -18
- package/dist/components/loading-states/LoadingAndErrorComponent.cjs.map +1 -0
- package/dist/components/{LoadingAndErrorComponent.d.mts → loading-states/LoadingAndErrorComponent.d.cts} +6 -6
- package/dist/components/{LoadingAndErrorComponent.d.ts → loading-states/LoadingAndErrorComponent.d.ts} +4 -4
- package/dist/components/{LoadingAndErrorComponent.mjs → loading-states/LoadingAndErrorComponent.js} +66 -17
- package/dist/components/loading-states/LoadingAndErrorComponent.js.map +1 -0
- package/dist/components/{LoadingAnimation.js → loading-states/LoadingAnimation.cjs} +64 -15
- package/dist/components/loading-states/LoadingAnimation.cjs.map +1 -0
- package/dist/components/{LoadingAnimation.d.mts → loading-states/LoadingAnimation.d.cts} +2 -3
- package/dist/components/{LoadingAnimation.d.ts → loading-states/LoadingAnimation.d.ts} +2 -3
- package/dist/components/{LoadingAnimation.mjs → loading-states/LoadingAnimation.js} +63 -14
- package/dist/components/loading-states/LoadingAnimation.js.map +1 -0
- package/dist/components/{LoadingButton.js → loading-states/LoadingButton.cjs} +101 -58
- package/dist/components/loading-states/LoadingButton.cjs.map +1 -0
- package/dist/components/{LoadingButton.d.mts → loading-states/LoadingButton.d.cts} +1 -1
- package/dist/components/{LoadingButton.d.ts → loading-states/LoadingButton.d.ts} +1 -1
- package/dist/components/{LoadingButton.mjs → loading-states/LoadingButton.js} +100 -57
- package/dist/components/loading-states/LoadingButton.js.map +1 -0
- package/dist/components/{ProgressIndicator.js → loading-states/ProgressIndicator.cjs} +2 -2
- package/dist/components/loading-states/ProgressIndicator.cjs.map +1 -0
- package/dist/components/{ProgressIndicator.mjs → loading-states/ProgressIndicator.js} +2 -2
- package/dist/components/loading-states/ProgressIndicator.js.map +1 -0
- package/dist/components/modals/ConfirmDialog.cjs +353 -0
- package/dist/components/modals/ConfirmDialog.cjs.map +1 -0
- package/dist/components/modals/{ConfirmDialog.d.mts → ConfirmDialog.d.cts} +6 -6
- package/dist/components/modals/ConfirmDialog.d.ts +6 -6
- package/dist/components/modals/ConfirmDialog.js +157 -268
- package/dist/components/modals/ConfirmDialog.js.map +1 -1
- package/dist/components/modals/{DiscardChangesDialog.js → DiscardChangesModal.cjs} +210 -116
- package/dist/components/modals/DiscardChangesModal.cjs.map +1 -0
- package/dist/components/modals/DiscardChangesModal.d.cts +23 -0
- package/dist/components/modals/DiscardChangesModal.d.ts +23 -0
- package/dist/components/modals/{DiscardChangesDialog.mjs → DiscardChangesModal.js} +198 -104
- package/dist/components/modals/DiscardChangesModal.js.map +1 -0
- package/dist/components/modals/InputModal.cjs +533 -0
- package/dist/components/modals/InputModal.cjs.map +1 -0
- package/dist/components/modals/{InputModal.d.mts → InputModal.d.cts} +7 -7
- package/dist/components/modals/InputModal.d.ts +6 -6
- package/dist/components/modals/InputModal.js +197 -301
- package/dist/components/modals/InputModal.js.map +1 -1
- package/dist/components/modals/LanguageModal.cjs +667 -0
- package/dist/components/modals/LanguageModal.cjs.map +1 -0
- package/dist/components/modals/LanguageModal.d.cts +20 -0
- package/dist/components/modals/LanguageModal.d.ts +7 -8
- package/dist/components/modals/LanguageModal.js +305 -203
- package/dist/components/modals/LanguageModal.js.map +1 -1
- package/dist/components/modals/ThemeModal.cjs +694 -0
- package/dist/components/modals/ThemeModal.cjs.map +1 -0
- package/dist/components/modals/ThemeModal.d.cts +21 -0
- package/dist/components/modals/ThemeModal.d.ts +21 -0
- package/dist/components/modals/ThemeModal.js +657 -0
- package/dist/components/modals/ThemeModal.js.map +1 -0
- package/dist/components/properties/CheckboxProperty.cjs +362 -0
- package/dist/components/properties/CheckboxProperty.cjs.map +1 -0
- package/dist/components/properties/{CheckboxProperty.d.mts → CheckboxProperty.d.cts} +3 -3
- package/dist/components/properties/CheckboxProperty.d.ts +2 -2
- package/dist/components/properties/CheckboxProperty.js +94 -93
- package/dist/components/properties/CheckboxProperty.js.map +1 -1
- package/dist/components/properties/DateProperty.cjs +451 -0
- package/dist/components/properties/DateProperty.cjs.map +1 -0
- package/dist/components/properties/{DateProperty.d.mts → DateProperty.d.cts} +3 -3
- package/dist/components/properties/DateProperty.d.ts +2 -2
- package/dist/components/properties/DateProperty.js +110 -116
- package/dist/components/properties/DateProperty.js.map +1 -1
- package/dist/components/properties/{MultiSelectProperty.mjs → MultiSelectProperty.cjs} +216 -155
- package/dist/components/properties/MultiSelectProperty.cjs.map +1 -0
- package/dist/components/properties/{MultiSelectProperty.d.mts → MultiSelectProperty.d.cts} +5 -5
- package/dist/components/properties/MultiSelectProperty.d.ts +4 -4
- package/dist/components/properties/MultiSelectProperty.js +180 -184
- package/dist/components/properties/MultiSelectProperty.js.map +1 -1
- package/dist/components/properties/NumberProperty.cjs +459 -0
- package/dist/components/properties/NumberProperty.cjs.map +1 -0
- package/dist/components/properties/{NumberProperty.d.mts → NumberProperty.d.cts} +3 -3
- package/dist/components/properties/NumberProperty.d.ts +2 -2
- package/dist/components/properties/NumberProperty.js +109 -116
- package/dist/components/properties/NumberProperty.js.map +1 -1
- package/dist/components/properties/PropertyBase.cjs +223 -0
- package/dist/components/properties/PropertyBase.cjs.map +1 -0
- package/dist/components/properties/{PropertyBase.d.mts → PropertyBase.d.cts} +2 -2
- package/dist/components/properties/PropertyBase.d.ts +2 -2
- package/dist/components/properties/PropertyBase.js +60 -69
- package/dist/components/properties/PropertyBase.js.map +1 -1
- package/dist/components/properties/{SelectProperty.mjs → SelectProperty.cjs} +251 -199
- package/dist/components/properties/SelectProperty.cjs.map +1 -0
- package/dist/components/properties/{SelectProperty.d.mts → SelectProperty.d.cts} +5 -6
- package/dist/components/properties/SelectProperty.d.ts +4 -5
- package/dist/components/properties/SelectProperty.js +215 -228
- package/dist/components/properties/SelectProperty.js.map +1 -1
- package/dist/components/properties/TextProperty.cjs +428 -0
- package/dist/components/properties/TextProperty.cjs.map +1 -0
- package/dist/components/properties/{TextProperty.d.mts → TextProperty.d.cts} +3 -3
- package/dist/components/properties/TextProperty.d.ts +2 -2
- package/dist/components/properties/TextProperty.js +134 -121
- package/dist/components/properties/TextProperty.js.map +1 -1
- package/dist/components/{Button.js → user-action/Button.cjs} +70 -12
- package/dist/components/user-action/Button.cjs.map +1 -0
- package/dist/components/{Button.d.mts → user-action/Button.d.cts} +32 -5
- package/dist/components/{Button.d.ts → user-action/Button.d.ts} +32 -5
- package/dist/components/{Button.mjs → user-action/Button.js} +66 -10
- package/dist/components/user-action/Button.js.map +1 -0
- package/dist/components/{user-input/Checkbox.js → user-action/Checkbox.cjs} +26 -16
- package/dist/components/user-action/Checkbox.cjs.map +1 -0
- package/dist/components/{user-input/Checkbox.d.mts → user-action/Checkbox.d.cts} +5 -5
- package/dist/components/{user-input → user-action}/Checkbox.d.ts +4 -4
- package/dist/components/{user-input/Checkbox.mjs → user-action/Checkbox.js} +24 -14
- package/dist/components/user-action/Checkbox.js.map +1 -0
- package/dist/components/{user-input/DateAndTimePicker.js → user-action/DateAndTimePicker.cjs} +51 -23
- package/dist/components/user-action/DateAndTimePicker.cjs.map +1 -0
- package/dist/components/{user-input/DateAndTimePicker.d.mts → user-action/DateAndTimePicker.d.cts} +7 -8
- package/dist/components/{user-input → user-action}/DateAndTimePicker.d.ts +2 -3
- package/dist/components/{user-input/DateAndTimePicker.mjs → user-action/DateAndTimePicker.js} +44 -16
- package/dist/components/user-action/DateAndTimePicker.js.map +1 -0
- package/dist/components/{user-input/Input.js → user-action/Input.cjs} +35 -34
- package/dist/components/user-action/Input.cjs.map +1 -0
- package/dist/components/{user-input/Input.d.mts → user-action/Input.d.cts} +9 -16
- package/dist/components/{user-input → user-action}/Input.d.ts +8 -15
- package/dist/components/{user-input/Input.mjs → user-action/Input.js} +35 -39
- package/dist/components/user-action/Input.js.map +1 -0
- package/dist/components/{user-input/Label.js → user-action/Label.cjs} +15 -3
- package/dist/components/user-action/Label.cjs.map +1 -0
- package/dist/components/{user-input/Label.d.mts → user-action/Label.d.cts} +1 -1
- package/dist/components/{user-input → user-action}/Label.d.ts +1 -1
- package/dist/components/{user-input/Label.mjs → user-action/Label.js} +5 -3
- package/dist/components/user-action/Label.js.map +1 -0
- package/dist/components/{user-input/Menu.js → user-action/Menu.cjs} +4 -4
- package/dist/components/user-action/Menu.cjs.map +1 -0
- package/dist/components/{user-input/Menu.mjs → user-action/Menu.js} +3 -3
- package/dist/components/user-action/Menu.js.map +1 -0
- package/dist/components/{user-input/MultiSelect.js → user-action/MultiSelect.cjs} +76 -51
- package/dist/components/user-action/MultiSelect.cjs.map +1 -0
- package/dist/components/{user-input/MultiSelect.d.mts → user-action/MultiSelect.d.cts} +3 -3
- package/dist/components/{user-input → user-action}/MultiSelect.d.ts +2 -2
- package/dist/components/{user-input/MultiSelect.mjs → user-action/MultiSelect.js} +75 -55
- package/dist/components/user-action/MultiSelect.js.map +1 -0
- package/dist/components/{user-input/ScrollPicker.js → user-action/ScrollPicker.cjs} +4 -4
- package/dist/components/user-action/ScrollPicker.cjs.map +1 -0
- package/dist/components/{user-input/ScrollPicker.mjs → user-action/ScrollPicker.js} +3 -3
- package/dist/components/user-action/ScrollPicker.js.map +1 -0
- package/dist/components/{user-input/SearchableSelect.js → user-action/Select.cjs} +181 -152
- package/dist/components/user-action/Select.cjs.map +1 -0
- package/dist/components/user-action/Select.d.cts +49 -0
- package/dist/components/user-action/Select.d.ts +49 -0
- package/dist/components/{user-input/SearchableSelect.mjs → user-action/Select.js} +167 -145
- package/dist/components/user-action/Select.js.map +1 -0
- package/dist/components/{user-input/Textarea.js → user-action/Textarea.cjs} +80 -35
- package/dist/components/user-action/Textarea.cjs.map +1 -0
- package/dist/components/user-action/Textarea.d.cts +28 -0
- package/dist/components/{user-input → user-action}/Textarea.d.ts +9 -5
- package/dist/components/user-action/Textarea.js +163 -0
- package/dist/components/user-action/Textarea.js.map +1 -0
- package/dist/components/{user-input/ToggleableInput.js → user-action/ToggleableInput.cjs} +9 -15
- package/dist/components/user-action/ToggleableInput.cjs.map +1 -0
- package/dist/components/{user-input/ToggleableInput.mjs → user-action/ToggleableInput.js} +8 -14
- package/dist/components/user-action/ToggleableInput.js.map +1 -0
- package/dist/components/{Tooltip.js → user-action/Tooltip.cjs} +13 -9
- package/dist/components/user-action/Tooltip.cjs.map +1 -0
- package/dist/components/{Tooltip.d.mts → user-action/Tooltip.d.cts} +1 -1
- package/dist/components/{Tooltip.d.ts → user-action/Tooltip.d.ts} +1 -1
- package/dist/components/{Tooltip.mjs → user-action/Tooltip.js} +12 -8
- package/dist/components/user-action/Tooltip.js.map +1 -0
- package/dist/css/globals.css +178 -126
- package/dist/css/uncompiled/globals.css +65 -29
- package/dist/hooks/useHoverState.cjs +72 -0
- package/dist/hooks/{useHoverState.mjs.map → useHoverState.cjs.map} +1 -1
- package/dist/hooks/useHoverState.js +7 -32
- package/dist/hooks/useHoverState.js.map +1 -1
- package/dist/hooks/useLocalStorage.cjs +83 -0
- package/dist/hooks/useLocalStorage.cjs.map +1 -0
- package/dist/hooks/useLocalStorage.js +9 -34
- package/dist/hooks/useLocalStorage.js.map +1 -1
- package/dist/hooks/useOutsideClick.cjs +48 -0
- package/dist/hooks/{useOutsideClick.mjs.map → useOutsideClick.cjs.map} +1 -1
- package/dist/hooks/useOutsideClick.js +4 -29
- package/dist/hooks/useOutsideClick.js.map +1 -1
- package/dist/hooks/useSaveDelay.cjs +68 -0
- package/dist/hooks/{useSaveDelay.mjs.map → useSaveDelay.cjs.map} +1 -1
- package/dist/hooks/useSaveDelay.js +6 -31
- package/dist/hooks/useSaveDelay.js.map +1 -1
- package/dist/{index.mjs → index.cjs} +4005 -3881
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +82 -0
- package/dist/index.d.ts +49 -55
- package/dist/index.js +3822 -4055
- package/dist/index.js.map +1 -1
- package/dist/{hooks/useLanguage.js → localization/LanguageProvider.cjs} +30 -26
- package/dist/localization/LanguageProvider.cjs.map +1 -0
- package/dist/localization/LanguageProvider.d.cts +18 -0
- package/dist/localization/LanguageProvider.d.ts +18 -0
- package/dist/{hooks/useLanguage.mjs → localization/LanguageProvider.js} +26 -19
- package/dist/localization/LanguageProvider.js.map +1 -0
- package/dist/{hooks/useTranslation.js → localization/useTranslation.cjs} +23 -8
- package/dist/localization/useTranslation.cjs.map +1 -0
- package/dist/{hooks/useTranslation.d.mts → localization/useTranslation.d.cts} +5 -7
- package/dist/{hooks → localization}/useTranslation.d.ts +5 -7
- package/dist/{hooks/useTranslation.mjs → localization/useTranslation.js} +22 -7
- package/dist/localization/useTranslation.js.map +1 -0
- package/dist/localization/util.cjs +41 -0
- package/dist/localization/util.cjs.map +1 -0
- package/dist/localization/util.d.cts +18 -0
- package/dist/localization/util.d.ts +18 -0
- package/dist/localization/util.js +16 -0
- package/dist/localization/util.js.map +1 -0
- package/dist/{hooks/useTheme.js → theming/useTheme.cjs} +19 -11
- package/dist/theming/useTheme.cjs.map +1 -0
- package/dist/{hooks/useTheme.d.mts → theming/useTheme.d.cts} +9 -5
- package/dist/{hooks → theming}/useTheme.d.ts +9 -5
- package/dist/{hooks/useTheme.mjs → theming/useTheme.js} +15 -7
- package/dist/theming/useTheme.js.map +1 -0
- package/dist/util/{array.mjs → array.cjs} +34 -3
- package/dist/util/array.cjs.map +1 -0
- package/dist/util/array.js +2 -33
- package/dist/util/array.js.map +1 -1
- package/dist/util/builder.cjs +34 -0
- package/dist/util/{builder.mjs.map → builder.cjs.map} +1 -1
- package/dist/util/builder.js +2 -27
- package/dist/util/builder.js.map +1 -1
- package/dist/util/{date.mjs → date.cjs} +41 -3
- package/dist/util/date.cjs.map +1 -0
- package/dist/util/date.js +2 -40
- package/dist/util/date.js.map +1 -1
- package/dist/util/easeFunctions.cjs +63 -0
- package/dist/util/easeFunctions.cjs.map +1 -0
- package/dist/util/easeFunctions.js +2 -29
- package/dist/util/easeFunctions.js.map +1 -1
- package/dist/util/emailValidation.cjs +33 -0
- package/dist/util/{emailValidation.mjs.map → emailValidation.cjs.map} +1 -1
- package/dist/util/emailValidation.js +2 -27
- package/dist/util/emailValidation.js.map +1 -1
- package/dist/util/{loopingArray.mjs → loopingArray.cjs} +28 -3
- package/dist/util/{loopingArray.mjs.map → loopingArray.cjs.map} +1 -1
- package/dist/util/loopingArray.js +2 -27
- package/dist/util/loopingArray.js.map +1 -1
- package/dist/util/math.cjs +33 -0
- package/dist/util/{math.mjs.map → math.cjs.map} +1 -1
- package/dist/util/math.js +2 -27
- package/dist/util/math.js.map +1 -1
- package/dist/util/news.cjs +77 -0
- package/dist/util/news.cjs.map +1 -0
- package/dist/util/{news.d.mts → news.d.cts} +11 -13
- package/dist/util/news.d.ts +11 -13
- package/dist/util/news.js +22 -49
- package/dist/util/news.js.map +1 -1
- package/dist/util/noop.cjs +31 -0
- package/dist/util/noop.cjs.map +1 -0
- package/dist/util/noop.js +2 -27
- package/dist/util/noop.js.map +1 -1
- package/dist/util/simpleSearch.cjs +54 -0
- package/dist/util/simpleSearch.cjs.map +1 -0
- package/dist/util/simpleSearch.js +2 -30
- package/dist/util/simpleSearch.js.map +1 -1
- package/dist/util/storage.cjs +64 -0
- package/dist/util/storage.cjs.map +1 -0
- package/dist/util/storage.js +2 -28
- package/dist/util/storage.js.map +1 -1
- package/dist/util/types.cjs +19 -0
- package/dist/util/types.cjs.map +1 -0
- package/dist/util/types.js +0 -18
- package/dist/util/types.js.map +1 -1
- package/package.json +9 -12
- package/dist/coloring/shading.mjs +0 -47
- package/dist/coloring/shading.mjs.map +0 -1
- package/dist/coloring/types.mjs +0 -6
- package/dist/components/Avatar.d.mts +0 -17
- package/dist/components/Avatar.d.ts +0 -17
- package/dist/components/Avatar.js +0 -85
- package/dist/components/Avatar.js.map +0 -1
- package/dist/components/Avatar.mjs +0 -48
- package/dist/components/Avatar.mjs.map +0 -1
- package/dist/components/AvatarGroup.d.mts +0 -14
- package/dist/components/AvatarGroup.d.ts +0 -14
- package/dist/components/AvatarGroup.js.map +0 -1
- package/dist/components/AvatarGroup.mjs.map +0 -1
- package/dist/components/BreadCrumb.js.map +0 -1
- package/dist/components/BreadCrumb.mjs.map +0 -1
- package/dist/components/Button.js.map +0 -1
- package/dist/components/Button.mjs.map +0 -1
- package/dist/components/ChipList.js.map +0 -1
- package/dist/components/ChipList.mjs.map +0 -1
- package/dist/components/Circle.js.map +0 -1
- package/dist/components/Circle.mjs.map +0 -1
- package/dist/components/ErrorComponent.js.map +0 -1
- package/dist/components/ErrorComponent.mjs.map +0 -1
- package/dist/components/Expandable.js.map +0 -1
- package/dist/components/Expandable.mjs.map +0 -1
- package/dist/components/HelpwaveBadge.js.map +0 -1
- package/dist/components/HelpwaveBadge.mjs +0 -91
- package/dist/components/HelpwaveBadge.mjs.map +0 -1
- package/dist/components/HideableContentSection.d.mts +0 -14
- package/dist/components/HideableContentSection.d.ts +0 -14
- package/dist/components/HideableContentSection.js +0 -70
- package/dist/components/HideableContentSection.js.map +0 -1
- package/dist/components/HideableContentSection.mjs +0 -35
- package/dist/components/HideableContentSection.mjs.map +0 -1
- package/dist/components/InputGroup.d.mts +0 -17
- package/dist/components/InputGroup.d.ts +0 -17
- package/dist/components/InputGroup.js +0 -97
- package/dist/components/InputGroup.js.map +0 -1
- package/dist/components/InputGroup.mjs +0 -62
- package/dist/components/InputGroup.mjs.map +0 -1
- package/dist/components/LoadingAndErrorComponent.js.map +0 -1
- package/dist/components/LoadingAndErrorComponent.mjs.map +0 -1
- package/dist/components/LoadingAnimation.js.map +0 -1
- package/dist/components/LoadingAnimation.mjs.map +0 -1
- package/dist/components/LoadingButton.js.map +0 -1
- package/dist/components/LoadingButton.mjs.map +0 -1
- package/dist/components/MarkdownInterpreter.js.map +0 -1
- package/dist/components/MarkdownInterpreter.mjs.map +0 -1
- package/dist/components/Pagination.js.map +0 -1
- package/dist/components/Pagination.mjs.map +0 -1
- package/dist/components/Profile.d.mts +0 -31
- package/dist/components/Profile.d.ts +0 -31
- package/dist/components/Profile.js +0 -197
- package/dist/components/Profile.js.map +0 -1
- package/dist/components/Profile.mjs +0 -162
- package/dist/components/Profile.mjs.map +0 -1
- package/dist/components/ProgressIndicator.js.map +0 -1
- package/dist/components/ProgressIndicator.mjs.map +0 -1
- package/dist/components/Ring.js.map +0 -1
- package/dist/components/Ring.mjs.map +0 -1
- package/dist/components/SearchableList.js.map +0 -1
- package/dist/components/SearchableList.mjs.map +0 -1
- package/dist/components/SortButton.d.mts +0 -15
- package/dist/components/SortButton.d.ts +0 -15
- package/dist/components/SortButton.js +0 -132
- package/dist/components/SortButton.js.map +0 -1
- package/dist/components/SortButton.mjs +0 -97
- package/dist/components/SortButton.mjs.map +0 -1
- package/dist/components/StepperBar.js.map +0 -1
- package/dist/components/StepperBar.mjs.map +0 -1
- package/dist/components/Table.js.map +0 -1
- package/dist/components/Table.mjs.map +0 -1
- package/dist/components/TechRadar.d.mts +0 -39
- package/dist/components/TechRadar.d.ts +0 -39
- package/dist/components/TechRadar.js +0 -243
- package/dist/components/TechRadar.js.map +0 -1
- package/dist/components/TechRadar.mjs +0 -208
- package/dist/components/TechRadar.mjs.map +0 -1
- package/dist/components/TextImage.js.map +0 -1
- package/dist/components/TextImage.mjs.map +0 -1
- package/dist/components/TimeDisplay.js.map +0 -1
- package/dist/components/TimeDisplay.mjs.map +0 -1
- package/dist/components/Tooltip.js.map +0 -1
- package/dist/components/Tooltip.mjs.map +0 -1
- package/dist/components/VerticalDivider.js.map +0 -1
- package/dist/components/VerticalDivider.mjs.map +0 -1
- package/dist/components/date/DatePicker.mjs.map +0 -1
- package/dist/components/date/DayPicker.mjs.map +0 -1
- package/dist/components/date/TimePicker.mjs.map +0 -1
- package/dist/components/date/YearMonthPicker.mjs.map +0 -1
- package/dist/components/icons/Helpwave.js.map +0 -1
- package/dist/components/icons/Helpwave.mjs +0 -43
- package/dist/components/icons/Helpwave.mjs.map +0 -1
- package/dist/components/icons/Tag.js.map +0 -1
- package/dist/components/icons/Tag.mjs.map +0 -1
- package/dist/components/layout/Carousel.js.map +0 -1
- package/dist/components/layout/Carousel.mjs.map +0 -1
- package/dist/components/layout/DividerInserter.js.map +0 -1
- package/dist/components/layout/DividerInserter.mjs.map +0 -1
- package/dist/components/layout/FAQSection.js.map +0 -1
- package/dist/components/layout/FAQSection.mjs.map +0 -1
- package/dist/components/layout/Tile.js.map +0 -1
- package/dist/components/layout/Tile.mjs.map +0 -1
- package/dist/components/modals/ConfirmDialog.mjs +0 -390
- package/dist/components/modals/ConfirmDialog.mjs.map +0 -1
- package/dist/components/modals/DiscardChangesDialog.d.mts +0 -23
- package/dist/components/modals/DiscardChangesDialog.d.ts +0 -23
- package/dist/components/modals/DiscardChangesDialog.js.map +0 -1
- package/dist/components/modals/DiscardChangesDialog.mjs.map +0 -1
- package/dist/components/modals/InputModal.mjs +0 -568
- package/dist/components/modals/InputModal.mjs.map +0 -1
- package/dist/components/modals/LanguageModal.d.mts +0 -21
- package/dist/components/modals/LanguageModal.mjs +0 -491
- package/dist/components/modals/LanguageModal.mjs.map +0 -1
- package/dist/components/modals/Modal.d.mts +0 -43
- package/dist/components/modals/Modal.d.ts +0 -43
- package/dist/components/modals/Modal.js +0 -288
- package/dist/components/modals/Modal.js.map +0 -1
- package/dist/components/modals/Modal.mjs +0 -251
- package/dist/components/modals/Modal.mjs.map +0 -1
- package/dist/components/modals/ModalRegister.d.mts +0 -16
- package/dist/components/modals/ModalRegister.d.ts +0 -16
- package/dist/components/modals/ModalRegister.js +0 -63
- package/dist/components/modals/ModalRegister.js.map +0 -1
- package/dist/components/modals/ModalRegister.mjs +0 -37
- package/dist/components/modals/ModalRegister.mjs.map +0 -1
- package/dist/components/properties/CheckboxProperty.mjs +0 -291
- package/dist/components/properties/CheckboxProperty.mjs.map +0 -1
- package/dist/components/properties/DateProperty.mjs +0 -392
- package/dist/components/properties/DateProperty.mjs.map +0 -1
- package/dist/components/properties/MultiSelectProperty.mjs.map +0 -1
- package/dist/components/properties/NumberProperty.mjs +0 -401
- package/dist/components/properties/NumberProperty.mjs.map +0 -1
- package/dist/components/properties/PropertyBase.mjs +0 -162
- package/dist/components/properties/PropertyBase.mjs.map +0 -1
- package/dist/components/properties/SelectProperty.mjs.map +0 -1
- package/dist/components/properties/TextProperty.mjs +0 -345
- package/dist/components/properties/TextProperty.mjs.map +0 -1
- package/dist/components/user-input/Checkbox.js.map +0 -1
- package/dist/components/user-input/Checkbox.mjs.map +0 -1
- package/dist/components/user-input/DateAndTimePicker.js.map +0 -1
- package/dist/components/user-input/DateAndTimePicker.mjs.map +0 -1
- package/dist/components/user-input/Input.js.map +0 -1
- package/dist/components/user-input/Input.mjs.map +0 -1
- package/dist/components/user-input/Label.js.map +0 -1
- package/dist/components/user-input/Label.mjs.map +0 -1
- package/dist/components/user-input/Menu.js.map +0 -1
- package/dist/components/user-input/Menu.mjs.map +0 -1
- package/dist/components/user-input/MultiSelect.js.map +0 -1
- package/dist/components/user-input/MultiSelect.mjs.map +0 -1
- package/dist/components/user-input/ScrollPicker.js.map +0 -1
- package/dist/components/user-input/ScrollPicker.mjs.map +0 -1
- package/dist/components/user-input/SearchableSelect.d.mts +0 -14
- package/dist/components/user-input/SearchableSelect.d.ts +0 -14
- package/dist/components/user-input/SearchableSelect.js.map +0 -1
- package/dist/components/user-input/SearchableSelect.mjs.map +0 -1
- package/dist/components/user-input/Select.d.mts +0 -36
- package/dist/components/user-input/Select.d.ts +0 -36
- package/dist/components/user-input/Select.js +0 -153
- package/dist/components/user-input/Select.js.map +0 -1
- package/dist/components/user-input/Select.mjs +0 -118
- package/dist/components/user-input/Select.mjs.map +0 -1
- package/dist/components/user-input/Textarea.d.mts +0 -24
- package/dist/components/user-input/Textarea.js.map +0 -1
- package/dist/components/user-input/Textarea.mjs +0 -119
- package/dist/components/user-input/Textarea.mjs.map +0 -1
- package/dist/components/user-input/ToggleableInput.js.map +0 -1
- package/dist/components/user-input/ToggleableInput.mjs.map +0 -1
- package/dist/hooks/useHoverState.mjs +0 -47
- package/dist/hooks/useLanguage.d.mts +0 -21
- package/dist/hooks/useLanguage.d.ts +0 -21
- package/dist/hooks/useLanguage.js.map +0 -1
- package/dist/hooks/useLanguage.mjs.map +0 -1
- package/dist/hooks/useLocalStorage.mjs +0 -58
- package/dist/hooks/useLocalStorage.mjs.map +0 -1
- package/dist/hooks/useOutsideClick.mjs +0 -23
- package/dist/hooks/useSaveDelay.mjs +0 -43
- package/dist/hooks/useTheme.js.map +0 -1
- package/dist/hooks/useTheme.mjs.map +0 -1
- package/dist/hooks/useTranslation.js.map +0 -1
- package/dist/hooks/useTranslation.mjs.map +0 -1
- package/dist/index.d.mts +0 -88
- package/dist/index.mjs.map +0 -1
- package/dist/util/array.mjs.map +0 -1
- package/dist/util/builder.mjs +0 -9
- package/dist/util/date.mjs.map +0 -1
- package/dist/util/easeFunctions.mjs +0 -36
- package/dist/util/easeFunctions.mjs.map +0 -1
- package/dist/util/emailValidation.mjs +0 -8
- package/dist/util/math.mjs +0 -8
- package/dist/util/news.mjs +0 -48
- package/dist/util/news.mjs.map +0 -1
- package/dist/util/noop.mjs +0 -6
- package/dist/util/noop.mjs.map +0 -1
- package/dist/util/simpleSearch.mjs +0 -26
- package/dist/util/simpleSearch.mjs.map +0 -1
- package/dist/util/storage.mjs +0 -38
- package/dist/util/storage.mjs.map +0 -1
- package/dist/util/types.mjs +0 -1
- package/dist/util/types.mjs.map +0 -1
- /package/dist/coloring/{types.d.mts → types.d.cts} +0 -0
- /package/dist/components/{HelpwaveBadge.d.mts → branding/HelpwaveBadge.d.cts} +0 -0
- /package/dist/components/{HelpwaveBadge.d.ts → branding/HelpwaveBadge.d.ts} +0 -0
- /package/dist/components/{Circle.d.mts → icons-and-geometry/Circle.d.cts} +0 -0
- /package/dist/components/{Circle.d.ts → icons-and-geometry/Circle.d.ts} +0 -0
- /package/dist/components/{icons/Helpwave.d.mts → icons-and-geometry/Helpwave.d.cts} +0 -0
- /package/dist/components/{icons → icons-and-geometry}/Helpwave.d.ts +0 -0
- /package/dist/components/{Ring.d.mts → icons-and-geometry/Ring.d.cts} +0 -0
- /package/dist/components/{Ring.d.ts → icons-and-geometry/Ring.d.ts} +0 -0
- /package/dist/components/{icons/Tag.d.mts → icons-and-geometry/Tag.d.cts} +0 -0
- /package/dist/components/{icons → icons-and-geometry}/Tag.d.ts +0 -0
- /package/dist/components/{BreadCrumb.d.mts → layout-and-navigation/BreadCrumb.d.cts} +0 -0
- /package/dist/components/{BreadCrumb.d.ts → layout-and-navigation/BreadCrumb.d.ts} +0 -0
- /package/dist/components/{layout/Carousel.d.mts → layout-and-navigation/Carousel.d.cts} +0 -0
- /package/dist/components/{layout → layout-and-navigation}/Carousel.d.ts +0 -0
- /package/dist/components/{ChipList.d.mts → layout-and-navigation/Chip.d.cts} +0 -0
- /package/dist/components/{ChipList.d.ts → layout-and-navigation/Chip.d.ts} +0 -0
- /package/dist/components/{layout/DividerInserter.d.mts → layout-and-navigation/DividerInserter.d.cts} +0 -0
- /package/dist/components/{layout → layout-and-navigation}/DividerInserter.d.ts +0 -0
- /package/dist/components/{Expandable.d.mts → layout-and-navigation/Expandable.d.cts} +0 -0
- /package/dist/components/{Expandable.d.ts → layout-and-navigation/Expandable.d.ts} +0 -0
- /package/dist/components/{MarkdownInterpreter.d.mts → layout-and-navigation/MarkdownInterpreter.d.cts} +0 -0
- /package/dist/components/{MarkdownInterpreter.d.ts → layout-and-navigation/MarkdownInterpreter.d.ts} +0 -0
- /package/dist/components/{layout/Tile.d.mts → layout-and-navigation/Tile.d.cts} +0 -0
- /package/dist/components/{layout → layout-and-navigation}/Tile.d.ts +0 -0
- /package/dist/components/{VerticalDivider.d.mts → layout-and-navigation/VerticalDivider.d.cts} +0 -0
- /package/dist/components/{VerticalDivider.d.ts → layout-and-navigation/VerticalDivider.d.ts} +0 -0
- /package/dist/components/{ProgressIndicator.d.mts → loading-states/ProgressIndicator.d.cts} +0 -0
- /package/dist/components/{ProgressIndicator.d.ts → loading-states/ProgressIndicator.d.ts} +0 -0
- /package/dist/components/{user-input/Menu.d.mts → user-action/Menu.d.cts} +0 -0
- /package/dist/components/{user-input → user-action}/Menu.d.ts +0 -0
- /package/dist/components/{user-input/ScrollPicker.d.mts → user-action/ScrollPicker.d.cts} +0 -0
- /package/dist/components/{user-input → user-action}/ScrollPicker.d.ts +0 -0
- /package/dist/components/{user-input/ToggleableInput.d.mts → user-action/ToggleableInput.d.cts} +0 -0
- /package/dist/components/{user-input → user-action}/ToggleableInput.d.ts +0 -0
- /package/dist/hooks/{useHoverState.d.mts → useHoverState.d.cts} +0 -0
- /package/dist/hooks/{useLocalStorage.d.mts → useLocalStorage.d.cts} +0 -0
- /package/dist/hooks/{useOutsideClick.d.mts → useOutsideClick.d.cts} +0 -0
- /package/dist/hooks/{useSaveDelay.d.mts → useSaveDelay.d.cts} +0 -0
- /package/dist/util/{array.d.mts → array.d.cts} +0 -0
- /package/dist/util/{builder.d.mts → builder.d.cts} +0 -0
- /package/dist/util/{date.d.mts → date.d.cts} +0 -0
- /package/dist/util/{easeFunctions.d.mts → easeFunctions.d.cts} +0 -0
- /package/dist/util/{emailValidation.d.mts → emailValidation.d.cts} +0 -0
- /package/dist/util/{loopingArray.d.mts → loopingArray.d.cts} +0 -0
- /package/dist/util/{math.d.mts → math.d.cts} +0 -0
- /package/dist/util/{noop.d.mts → noop.d.cts} +0 -0
- /package/dist/util/{simpleSearch.d.mts → simpleSearch.d.cts} +0 -0
- /package/dist/util/{storage.d.mts → storage.d.cts} +0 -0
- /package/dist/util/{types.d.mts → types.d.cts} +0 -0
|
@@ -1,20 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
1
30
|
// src/components/properties/MultiSelectProperty.tsx
|
|
2
|
-
|
|
3
|
-
|
|
31
|
+
var MultiSelectProperty_exports = {};
|
|
32
|
+
__export(MultiSelectProperty_exports, {
|
|
33
|
+
MultiSelectProperty: () => MultiSelectProperty
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(MultiSelectProperty_exports);
|
|
36
|
+
var import_lucide_react4 = require("lucide-react");
|
|
37
|
+
var import_clsx9 = __toESM(require("clsx"), 1);
|
|
4
38
|
|
|
5
|
-
// src/
|
|
6
|
-
|
|
39
|
+
// src/localization/LanguageProvider.tsx
|
|
40
|
+
var import_react2 = require("react");
|
|
7
41
|
|
|
8
|
-
// src/hooks/useLocalStorage.
|
|
9
|
-
|
|
42
|
+
// src/hooks/useLocalStorage.ts
|
|
43
|
+
var import_react = require("react");
|
|
10
44
|
|
|
11
|
-
// src/
|
|
12
|
-
|
|
45
|
+
// src/localization/util.ts
|
|
46
|
+
var languages = ["en", "de"];
|
|
47
|
+
var languagesLocalNames = {
|
|
48
|
+
en: "English",
|
|
49
|
+
de: "Deutsch"
|
|
50
|
+
};
|
|
13
51
|
var DEFAULT_LANGUAGE = "en";
|
|
14
|
-
var
|
|
15
|
-
|
|
52
|
+
var LanguageUtil = {
|
|
53
|
+
languages,
|
|
54
|
+
DEFAULT_LANGUAGE,
|
|
55
|
+
languagesLocalNames
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
// src/localization/LanguageProvider.tsx
|
|
59
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
60
|
+
var LanguageContext = (0, import_react2.createContext)({
|
|
61
|
+
language: LanguageUtil.DEFAULT_LANGUAGE,
|
|
62
|
+
setLanguage: (v) => v
|
|
63
|
+
});
|
|
64
|
+
var useLanguage = () => (0, import_react2.useContext)(LanguageContext);
|
|
16
65
|
|
|
17
|
-
// src/
|
|
66
|
+
// src/localization/useTranslation.ts
|
|
18
67
|
var useTranslation = (defaults, translationOverwrite = {}) => {
|
|
19
68
|
const { language: languageProp, translation: overwrite } = translationOverwrite;
|
|
20
69
|
const { language: inferredLanguage } = useLanguage();
|
|
@@ -26,9 +75,9 @@ var useTranslation = (defaults, translationOverwrite = {}) => {
|
|
|
26
75
|
return defaultValues;
|
|
27
76
|
};
|
|
28
77
|
|
|
29
|
-
// src/components/user-
|
|
30
|
-
|
|
31
|
-
|
|
78
|
+
// src/components/user-action/MultiSelect.tsx
|
|
79
|
+
var import_react9 = require("react");
|
|
80
|
+
var import_lucide_react2 = require("lucide-react");
|
|
32
81
|
|
|
33
82
|
// src/util/simpleSearch.ts
|
|
34
83
|
var MultiSearchWithMapping = (search, objects, mapping) => {
|
|
@@ -38,17 +87,17 @@ var MultiSearchWithMapping = (search, objects, mapping) => {
|
|
|
38
87
|
});
|
|
39
88
|
};
|
|
40
89
|
|
|
41
|
-
// src/components/user-
|
|
42
|
-
|
|
90
|
+
// src/components/user-action/MultiSelect.tsx
|
|
91
|
+
var import_clsx5 = __toESM(require("clsx"), 1);
|
|
43
92
|
|
|
44
|
-
// src/components/user-
|
|
45
|
-
|
|
46
|
-
|
|
93
|
+
// src/components/user-action/Menu.tsx
|
|
94
|
+
var import_react5 = require("react");
|
|
95
|
+
var import_clsx = __toESM(require("clsx"), 1);
|
|
47
96
|
|
|
48
97
|
// src/hooks/useOutsideClick.ts
|
|
49
|
-
|
|
98
|
+
var import_react3 = require("react");
|
|
50
99
|
var useOutsideClick = (refs, handler) => {
|
|
51
|
-
|
|
100
|
+
(0, import_react3.useEffect)(() => {
|
|
52
101
|
const listener = (event) => {
|
|
53
102
|
if (event.target === null) return;
|
|
54
103
|
if (refs.some((ref) => !ref.current || ref.current.contains(event.target))) {
|
|
@@ -66,15 +115,15 @@ var useOutsideClick = (refs, handler) => {
|
|
|
66
115
|
};
|
|
67
116
|
|
|
68
117
|
// src/hooks/useHoverState.ts
|
|
69
|
-
|
|
118
|
+
var import_react4 = require("react");
|
|
70
119
|
var defaultUseHoverStateProps = {
|
|
71
120
|
closingDelay: 200,
|
|
72
121
|
isDisabled: false
|
|
73
122
|
};
|
|
74
123
|
var useHoverState = (props = void 0) => {
|
|
75
124
|
const { closingDelay, isDisabled } = { ...defaultUseHoverStateProps, ...props };
|
|
76
|
-
const [isHovered, setIsHovered] =
|
|
77
|
-
const [timer, setTimer] =
|
|
125
|
+
const [isHovered, setIsHovered] = (0, import_react4.useState)(false);
|
|
126
|
+
const [timer, setTimer] = (0, import_react4.useState)();
|
|
78
127
|
const onMouseEnter = () => {
|
|
79
128
|
if (isDisabled) {
|
|
80
129
|
return;
|
|
@@ -90,14 +139,14 @@ var useHoverState = (props = void 0) => {
|
|
|
90
139
|
setIsHovered(false);
|
|
91
140
|
}, closingDelay));
|
|
92
141
|
};
|
|
93
|
-
|
|
142
|
+
(0, import_react4.useEffect)(() => {
|
|
94
143
|
if (timer) {
|
|
95
144
|
return () => {
|
|
96
145
|
clearTimeout(timer);
|
|
97
146
|
};
|
|
98
147
|
}
|
|
99
148
|
});
|
|
100
|
-
|
|
149
|
+
(0, import_react4.useEffect)(() => {
|
|
101
150
|
if (timer) {
|
|
102
151
|
clearTimeout(timer);
|
|
103
152
|
}
|
|
@@ -109,17 +158,17 @@ var useHoverState = (props = void 0) => {
|
|
|
109
158
|
};
|
|
110
159
|
};
|
|
111
160
|
|
|
112
|
-
// src/components/user-
|
|
113
|
-
|
|
161
|
+
// src/components/user-action/Menu.tsx
|
|
162
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
114
163
|
var MenuItem = ({
|
|
115
164
|
children,
|
|
116
165
|
onClick,
|
|
117
166
|
alignment = "left",
|
|
118
167
|
className
|
|
119
|
-
}) => /* @__PURE__ */
|
|
168
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
120
169
|
"div",
|
|
121
170
|
{
|
|
122
|
-
className:
|
|
171
|
+
className: (0, import_clsx.default)("block px-3 py-1 bg-menu-background text-menu-text hover:brightness-90", {
|
|
123
172
|
"text-right": alignment === "right",
|
|
124
173
|
"text-left": alignment === "left"
|
|
125
174
|
}, className),
|
|
@@ -135,22 +184,22 @@ var Menu = ({
|
|
|
135
184
|
menuClassName = ""
|
|
136
185
|
}) => {
|
|
137
186
|
const { isHovered: isOpen, setIsHovered: setIsOpen, handlers } = useHoverState({ isDisabled: !showOnHover });
|
|
138
|
-
const triggerRef = useRef(null);
|
|
139
|
-
const menuRef = useRef(null);
|
|
187
|
+
const triggerRef = (0, import_react5.useRef)(null);
|
|
188
|
+
const menuRef = (0, import_react5.useRef)(null);
|
|
140
189
|
useOutsideClick([triggerRef, menuRef], () => setIsOpen(false));
|
|
141
|
-
return /* @__PURE__ */ jsxs(
|
|
190
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
|
142
191
|
"div",
|
|
143
192
|
{
|
|
144
193
|
className: "relative",
|
|
145
194
|
...handlers,
|
|
146
195
|
children: [
|
|
147
196
|
trigger(() => setIsOpen(!isOpen), triggerRef),
|
|
148
|
-
isOpen ? /* @__PURE__ */
|
|
197
|
+
isOpen ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
149
198
|
"div",
|
|
150
199
|
{
|
|
151
200
|
ref: menuRef,
|
|
152
201
|
onClick: (e) => e.stopPropagation(),
|
|
153
|
-
className:
|
|
202
|
+
className: (0, import_clsx.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]", {
|
|
154
203
|
" top-[8px]": alignment[0] === "t",
|
|
155
204
|
" bottom-[8px]": alignment[0] === "b",
|
|
156
205
|
" left-[-8px]": alignment[1] === "l",
|
|
@@ -164,20 +213,15 @@ var Menu = ({
|
|
|
164
213
|
);
|
|
165
214
|
};
|
|
166
215
|
|
|
167
|
-
// src/components/user-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
useRef as useRef2,
|
|
171
|
-
useState as useState5,
|
|
172
|
-
forwardRef
|
|
173
|
-
} from "react";
|
|
174
|
-
import clsx2 from "clsx";
|
|
216
|
+
// src/components/user-action/Input.tsx
|
|
217
|
+
var import_react7 = require("react");
|
|
218
|
+
var import_clsx3 = __toESM(require("clsx"), 1);
|
|
175
219
|
|
|
176
220
|
// src/hooks/useSaveDelay.ts
|
|
177
|
-
|
|
221
|
+
var import_react6 = require("react");
|
|
178
222
|
function useSaveDelay(setNotificationStatus, delay) {
|
|
179
|
-
const [updateTimer, setUpdateTimer] =
|
|
180
|
-
const [notificationTimer, setNotificationTimer] =
|
|
223
|
+
const [updateTimer, setUpdateTimer] = (0, import_react6.useState)(void 0);
|
|
224
|
+
const [notificationTimer, setNotificationTimer] = (0, import_react6.useState)(void 0);
|
|
181
225
|
const restartTimer = (onSave) => {
|
|
182
226
|
clearTimeout(updateTimer);
|
|
183
227
|
setUpdateTimer(setTimeout(() => {
|
|
@@ -204,7 +248,7 @@ function useSaveDelay(setNotificationStatus, delay) {
|
|
|
204
248
|
setNotificationStatus(false);
|
|
205
249
|
}
|
|
206
250
|
};
|
|
207
|
-
|
|
251
|
+
(0, import_react6.useEffect)(() => {
|
|
208
252
|
return () => {
|
|
209
253
|
clearTimeout(updateTimer);
|
|
210
254
|
clearTimeout(notificationTimer);
|
|
@@ -216,8 +260,9 @@ function useSaveDelay(setNotificationStatus, delay) {
|
|
|
216
260
|
// src/util/noop.ts
|
|
217
261
|
var noop = () => void 0;
|
|
218
262
|
|
|
219
|
-
// src/components/user-
|
|
220
|
-
|
|
263
|
+
// src/components/user-action/Label.tsx
|
|
264
|
+
var import_clsx2 = __toESM(require("clsx"), 1);
|
|
265
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
221
266
|
var styleMapping = {
|
|
222
267
|
labelSmall: "textstyle-label-sm",
|
|
223
268
|
labelMedium: "textstyle-label-md",
|
|
@@ -227,23 +272,25 @@ var Label = ({
|
|
|
227
272
|
children,
|
|
228
273
|
name,
|
|
229
274
|
labelType = "labelSmall",
|
|
275
|
+
className,
|
|
230
276
|
...props
|
|
231
277
|
}) => {
|
|
232
|
-
return /* @__PURE__ */
|
|
278
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("label", { ...props, className: (0, import_clsx2.default)(styleMapping[labelType], className), children: children ? children : name });
|
|
233
279
|
};
|
|
234
280
|
|
|
235
|
-
// src/components/user-
|
|
236
|
-
|
|
237
|
-
var
|
|
281
|
+
// src/components/user-action/Input.tsx
|
|
282
|
+
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
283
|
+
var Input = ({
|
|
238
284
|
id,
|
|
239
285
|
type = "text",
|
|
240
286
|
value,
|
|
241
287
|
label,
|
|
242
288
|
onChange = noop,
|
|
243
|
-
|
|
244
|
-
className = "",
|
|
289
|
+
onChangeText = noop,
|
|
245
290
|
onEditCompleted,
|
|
291
|
+
className = "",
|
|
246
292
|
expanded = true,
|
|
293
|
+
autoFocus,
|
|
247
294
|
onBlur,
|
|
248
295
|
containerClassName,
|
|
249
296
|
...restProps
|
|
@@ -252,28 +299,28 @@ var ControlledInput = ({
|
|
|
252
299
|
restartTimer,
|
|
253
300
|
clearUpdateTimer
|
|
254
301
|
} = useSaveDelay(() => void 0, 3e3);
|
|
255
|
-
const ref =
|
|
256
|
-
|
|
257
|
-
if (
|
|
302
|
+
const ref = (0, import_react7.useRef)(null);
|
|
303
|
+
(0, import_react7.useEffect)(() => {
|
|
304
|
+
if (autoFocus) {
|
|
258
305
|
ref.current?.focus();
|
|
259
306
|
}
|
|
260
|
-
}, [
|
|
261
|
-
return /* @__PURE__ */
|
|
262
|
-
label && /* @__PURE__ */
|
|
263
|
-
/* @__PURE__ */
|
|
307
|
+
}, [autoFocus]);
|
|
308
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: (0, import_clsx3.default)({ "w-full": expanded }, containerClassName), children: [
|
|
309
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Label, { ...label, htmlFor: id, className: (0, import_clsx3.default)("mb-1", label.className) }),
|
|
310
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
264
311
|
"input",
|
|
265
312
|
{
|
|
266
313
|
ref,
|
|
267
314
|
value,
|
|
268
315
|
id,
|
|
269
316
|
type,
|
|
270
|
-
className
|
|
317
|
+
className,
|
|
271
318
|
onBlur: (event) => {
|
|
272
319
|
if (onBlur) {
|
|
273
320
|
onBlur(event);
|
|
274
321
|
}
|
|
275
322
|
if (onEditCompleted) {
|
|
276
|
-
onEditCompleted(event.target.value
|
|
323
|
+
onEditCompleted(event.target.value);
|
|
277
324
|
clearUpdateTimer();
|
|
278
325
|
}
|
|
279
326
|
},
|
|
@@ -281,19 +328,19 @@ var ControlledInput = ({
|
|
|
281
328
|
const value2 = e.target.value;
|
|
282
329
|
if (onEditCompleted) {
|
|
283
330
|
restartTimer(() => {
|
|
284
|
-
onEditCompleted(value2
|
|
331
|
+
onEditCompleted(value2);
|
|
285
332
|
clearUpdateTimer();
|
|
286
333
|
});
|
|
287
334
|
}
|
|
288
|
-
onChange(
|
|
289
|
-
|
|
335
|
+
onChange(e);
|
|
336
|
+
onChangeText(value2);
|
|
290
337
|
},
|
|
291
338
|
...restProps
|
|
292
339
|
}
|
|
293
340
|
)
|
|
294
341
|
] });
|
|
295
342
|
};
|
|
296
|
-
var FormInput = forwardRef(function FormInput2({
|
|
343
|
+
var FormInput = (0, import_react7.forwardRef)(function FormInput2({
|
|
297
344
|
id,
|
|
298
345
|
labelText,
|
|
299
346
|
errorText,
|
|
@@ -304,14 +351,13 @@ var FormInput = forwardRef(function FormInput2({
|
|
|
304
351
|
required,
|
|
305
352
|
...restProps
|
|
306
353
|
}, ref) {
|
|
307
|
-
const input = /* @__PURE__ */
|
|
354
|
+
const input = /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
308
355
|
"input",
|
|
309
356
|
{
|
|
310
357
|
ref,
|
|
311
358
|
id,
|
|
312
359
|
...restProps,
|
|
313
|
-
className:
|
|
314
|
-
"block bg-surface text-on-surface px-3 py-2 rounded-md w-full border-2 border-gray-200 hover:border-primary focus:outline-none focus:border-primary focus:ring-primary",
|
|
360
|
+
className: (0, import_clsx3.default)(
|
|
315
361
|
{
|
|
316
362
|
"focus:border-primary focus:ring-primary": !errorText,
|
|
317
363
|
"focus:border-negative focus:ring-negative text-negative": !!errorText
|
|
@@ -320,22 +366,22 @@ var FormInput = forwardRef(function FormInput2({
|
|
|
320
366
|
)
|
|
321
367
|
}
|
|
322
368
|
);
|
|
323
|
-
return /* @__PURE__ */
|
|
324
|
-
labelText && /* @__PURE__ */
|
|
369
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: (0, import_clsx3.default)("flex flex-col gap-y-1", containerClassName), children: [
|
|
370
|
+
labelText && /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("label", { htmlFor: id, className: (0, import_clsx3.default)("textstyle-label-md", labelClassName), children: [
|
|
325
371
|
labelText,
|
|
326
|
-
required && /* @__PURE__ */
|
|
372
|
+
required && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "text-primary font-bold", children: "*" })
|
|
327
373
|
] }),
|
|
328
374
|
input,
|
|
329
|
-
errorText && /* @__PURE__ */
|
|
375
|
+
errorText && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("label", { htmlFor: id, className: (0, import_clsx3.default)("text-negative", errorClassName), children: errorText })
|
|
330
376
|
] });
|
|
331
377
|
});
|
|
332
378
|
|
|
333
|
-
// src/components/user-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
379
|
+
// src/components/user-action/Checkbox.tsx
|
|
380
|
+
var import_react8 = require("react");
|
|
381
|
+
var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"), 1);
|
|
382
|
+
var import_lucide_react = require("lucide-react");
|
|
383
|
+
var import_clsx4 = __toESM(require("clsx"), 1);
|
|
384
|
+
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
339
385
|
var checkboxSizeMapping = {
|
|
340
386
|
small: "size-4",
|
|
341
387
|
medium: "size-6",
|
|
@@ -346,7 +392,7 @@ var checkboxIconSizeMapping = {
|
|
|
346
392
|
medium: "size-5",
|
|
347
393
|
large: "size-7"
|
|
348
394
|
};
|
|
349
|
-
var
|
|
395
|
+
var Checkbox = ({
|
|
350
396
|
id,
|
|
351
397
|
label,
|
|
352
398
|
checked,
|
|
@@ -371,32 +417,40 @@ var ControlledCheckbox = ({
|
|
|
371
417
|
const newValue = checked === "indeterminate" ? false : !checked;
|
|
372
418
|
propagateChange(newValue);
|
|
373
419
|
};
|
|
374
|
-
return /* @__PURE__ */
|
|
375
|
-
/* @__PURE__ */
|
|
420
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: (0, import_clsx4.default)("row justify-center items-center", containerClassName), children: [
|
|
421
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
376
422
|
CheckboxPrimitive.Root,
|
|
377
423
|
{
|
|
378
424
|
onCheckedChange: propagateChange,
|
|
379
425
|
checked,
|
|
380
426
|
disabled,
|
|
381
427
|
id,
|
|
382
|
-
className:
|
|
428
|
+
className: (0, import_clsx4.default)(usedSizeClass, `items-center border-2 rounded outline-none focus:border-primary`, {
|
|
383
429
|
"text-disabled-text border-disabled-text": disabled,
|
|
384
430
|
"border-on-background": !disabled,
|
|
385
431
|
"bg-primary/30 border-primary text-primary": checked === true || checked === "indeterminate",
|
|
386
432
|
"hover:border-gray-400 focus:hover:border-primary": !checked
|
|
387
433
|
}, className),
|
|
388
|
-
children: /* @__PURE__ */
|
|
389
|
-
checked === true && /* @__PURE__ */
|
|
390
|
-
checked === "indeterminate" && /* @__PURE__ */
|
|
434
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(CheckboxPrimitive.Indicator, { children: [
|
|
435
|
+
checked === true && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_lucide_react.Check, { className: innerIconSize }),
|
|
436
|
+
checked === "indeterminate" && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_lucide_react.Minus, { className: innerIconSize })
|
|
391
437
|
] })
|
|
392
438
|
}
|
|
393
439
|
),
|
|
394
|
-
label && /* @__PURE__ */
|
|
440
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
441
|
+
Label,
|
|
442
|
+
{
|
|
443
|
+
...label,
|
|
444
|
+
className: (0, import_clsx4.default)("cursor-pointer", label.className),
|
|
445
|
+
htmlFor: id,
|
|
446
|
+
onClick: changeValue
|
|
447
|
+
}
|
|
448
|
+
)
|
|
395
449
|
] });
|
|
396
450
|
};
|
|
397
451
|
|
|
398
|
-
// src/components/user-
|
|
399
|
-
|
|
452
|
+
// src/components/user-action/MultiSelect.tsx
|
|
453
|
+
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
400
454
|
var defaultMultiSelectTranslation = {
|
|
401
455
|
en: {
|
|
402
456
|
select: "Select",
|
|
@@ -423,7 +477,7 @@ var MultiSelect = ({
|
|
|
423
477
|
triggerClassName = ""
|
|
424
478
|
}) => {
|
|
425
479
|
const translation = useTranslation(defaultMultiSelectTranslation, overwriteTranslation);
|
|
426
|
-
const [searchText, setSearchText] =
|
|
480
|
+
const [searchText, setSearchText] = (0, import_react9.useState)(search?.initialSearch ?? "");
|
|
427
481
|
let filteredOptions = options;
|
|
428
482
|
const enableSearch = !!search;
|
|
429
483
|
if (enableSearch && !!searchText) {
|
|
@@ -437,28 +491,28 @@ var MultiSelect = ({
|
|
|
437
491
|
filteredOptions = filteredOptions.filter((value) => !value.disabled);
|
|
438
492
|
}
|
|
439
493
|
const selectedItems = options.filter((value) => value.selected);
|
|
440
|
-
const menuButtonText = selectedItems.length === 0 ? hintText ?? translation.select : /* @__PURE__ */
|
|
494
|
+
const menuButtonText = selectedItems.length === 0 ? hintText ?? translation.select : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { children: `${selectedItems.length} ${translation.selected}` });
|
|
441
495
|
const borderColor = "border-menu-border";
|
|
442
|
-
return /* @__PURE__ */
|
|
443
|
-
label && /* @__PURE__ */
|
|
496
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: (0, import_clsx5.default)(className), children: [
|
|
497
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
444
498
|
Label,
|
|
445
499
|
{
|
|
446
500
|
...label,
|
|
447
501
|
htmlFor: label.name,
|
|
448
|
-
className:
|
|
502
|
+
className: (0, import_clsx5.default)(" mb-1", label.className),
|
|
449
503
|
labelType: label.labelType ?? "labelBig"
|
|
450
504
|
}
|
|
451
505
|
),
|
|
452
|
-
/* @__PURE__ */
|
|
506
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
453
507
|
Menu,
|
|
454
508
|
{
|
|
455
509
|
alignment: "t_",
|
|
456
|
-
trigger: (onClick, ref) => /* @__PURE__ */
|
|
510
|
+
trigger: (onClick, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
457
511
|
"div",
|
|
458
512
|
{
|
|
459
513
|
ref,
|
|
460
514
|
onClick: disabled ? void 0 : onClick,
|
|
461
|
-
className:
|
|
515
|
+
className: (0, import_clsx5.default)(
|
|
462
516
|
borderColor,
|
|
463
517
|
"bg-menu-background text-menu-text inline-w-full justify-between items-center rounded-lg border-2 px-4 py-2 font-medium",
|
|
464
518
|
{
|
|
@@ -470,27 +524,27 @@ var MultiSelect = ({
|
|
|
470
524
|
children: selectedDisplay ? selectedDisplay({ items: options, disabled }) : menuButtonText
|
|
471
525
|
}
|
|
472
526
|
),
|
|
473
|
-
menuClassName:
|
|
527
|
+
menuClassName: (0, import_clsx5.default)(
|
|
474
528
|
"!rounded-lg !shadow-lg !max-h-[500px] !min-w-[400px] !max-w-[70vh] !overflow-y-auto !border !border-2",
|
|
475
529
|
borderColor,
|
|
476
530
|
{ "!py-0": !enableSearch, "!pb-0": enableSearch }
|
|
477
531
|
),
|
|
478
532
|
children: [
|
|
479
|
-
enableSearch && /* @__PURE__ */
|
|
480
|
-
/* @__PURE__ */
|
|
481
|
-
/* @__PURE__ */
|
|
533
|
+
enableSearch && /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "row gap-x-2 items-center px-2 py-2", children: [
|
|
534
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Input, { autoFocus: true, className: "w-full", value: searchText, onChangeText: setSearchText }),
|
|
535
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_lucide_react2.Search, {})
|
|
482
536
|
] }, "selectSearch"),
|
|
483
|
-
filteredOptions.map((option, index) => /* @__PURE__ */
|
|
537
|
+
filteredOptions.map((option, index) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
484
538
|
MenuItem,
|
|
485
539
|
{
|
|
486
|
-
className:
|
|
540
|
+
className: (0, import_clsx5.default)({
|
|
487
541
|
"cursor-not-allowed !bg-disabled-background !text-disabled-text hover:brightness-100": !!option.disabled,
|
|
488
542
|
"cursor-pointer": !option.disabled
|
|
489
543
|
}),
|
|
490
|
-
children: /* @__PURE__ */
|
|
544
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
491
545
|
"div",
|
|
492
546
|
{
|
|
493
|
-
className:
|
|
547
|
+
className: (0, import_clsx5.default)("overflow-hidden whitespace-nowrap text-ellipsis row items-center gap-x-2", option.className),
|
|
494
548
|
onClick: () => {
|
|
495
549
|
if (!option.disabled) {
|
|
496
550
|
onChange(options.map((value) => value.value === option.value ? {
|
|
@@ -500,7 +554,7 @@ var MultiSelect = ({
|
|
|
500
554
|
}
|
|
501
555
|
},
|
|
502
556
|
children: [
|
|
503
|
-
/* @__PURE__ */
|
|
557
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Checkbox, { checked: option.selected, disabled: option.disabled, size: "small" }),
|
|
504
558
|
option.label
|
|
505
559
|
]
|
|
506
560
|
}
|
|
@@ -514,9 +568,9 @@ var MultiSelect = ({
|
|
|
514
568
|
] });
|
|
515
569
|
};
|
|
516
570
|
|
|
517
|
-
// src/components/
|
|
518
|
-
|
|
519
|
-
|
|
571
|
+
// src/components/layout-and-navigation/Chip.tsx
|
|
572
|
+
var import_clsx6 = __toESM(require("clsx"), 1);
|
|
573
|
+
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
520
574
|
var Chip = ({
|
|
521
575
|
children,
|
|
522
576
|
trailingIcon,
|
|
@@ -543,11 +597,11 @@ var Chip = ({
|
|
|
543
597
|
blue: "text-tag-blue-icon",
|
|
544
598
|
pink: "text-tag-pink-icon"
|
|
545
599
|
}[color];
|
|
546
|
-
return /* @__PURE__ */
|
|
600
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
|
|
547
601
|
"div",
|
|
548
602
|
{
|
|
549
603
|
...restProps,
|
|
550
|
-
className:
|
|
604
|
+
className: (0, import_clsx6.default)(
|
|
551
605
|
`row w-fit px-2 py-1`,
|
|
552
606
|
colorMapping,
|
|
553
607
|
{
|
|
@@ -558,7 +612,7 @@ var Chip = ({
|
|
|
558
612
|
),
|
|
559
613
|
children: [
|
|
560
614
|
children,
|
|
561
|
-
trailingIcon && /* @__PURE__ */
|
|
615
|
+
trailingIcon && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: colorMappingIcon, children: trailingIcon })
|
|
562
616
|
]
|
|
563
617
|
}
|
|
564
618
|
);
|
|
@@ -567,7 +621,7 @@ var ChipList = ({
|
|
|
567
621
|
list,
|
|
568
622
|
className = ""
|
|
569
623
|
}) => {
|
|
570
|
-
return /* @__PURE__ */
|
|
624
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: (0, import_clsx6.default)("flex flex-wrap gap-x-4 gap-y-2", className), children: list.map((value, index) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
571
625
|
Chip,
|
|
572
626
|
{
|
|
573
627
|
...value,
|
|
@@ -580,17 +634,26 @@ var ChipList = ({
|
|
|
580
634
|
};
|
|
581
635
|
|
|
582
636
|
// src/components/properties/PropertyBase.tsx
|
|
583
|
-
|
|
584
|
-
|
|
637
|
+
var import_lucide_react3 = require("lucide-react");
|
|
638
|
+
var import_clsx8 = __toESM(require("clsx"), 1);
|
|
585
639
|
|
|
586
|
-
// src/components/Button.tsx
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
var
|
|
640
|
+
// src/components/user-action/Button.tsx
|
|
641
|
+
var import_clsx7 = __toESM(require("clsx"), 1);
|
|
642
|
+
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
643
|
+
var paddingMapping = {
|
|
590
644
|
small: "btn-sm",
|
|
591
645
|
medium: "btn-md",
|
|
592
646
|
large: "btn-lg"
|
|
593
647
|
};
|
|
648
|
+
var iconPaddingMapping = {
|
|
649
|
+
small: "icon-btn-sm",
|
|
650
|
+
medium: "icon-btn-md",
|
|
651
|
+
large: "icon-btn-lg"
|
|
652
|
+
};
|
|
653
|
+
var ButtonUtil = {
|
|
654
|
+
paddingMapping,
|
|
655
|
+
iconPaddingMapping
|
|
656
|
+
};
|
|
594
657
|
var TextButton = ({
|
|
595
658
|
children,
|
|
596
659
|
disabled = false,
|
|
@@ -603,32 +666,34 @@ var TextButton = ({
|
|
|
603
666
|
...restProps
|
|
604
667
|
}) => {
|
|
605
668
|
const colorClasses = {
|
|
669
|
+
primary: "bg-transparent text-button-text-primary-text",
|
|
606
670
|
negative: "bg-transparent text-button-text-negative-text",
|
|
607
671
|
neutral: "bg-transparent text-button-text-neutral-text"
|
|
608
672
|
}[color];
|
|
609
673
|
const iconColorClasses = {
|
|
674
|
+
primary: "text-button-text-primary-icon",
|
|
610
675
|
negative: "text-button-text-negative-icon",
|
|
611
676
|
neutral: "text-button-text-neutral-icon"
|
|
612
677
|
}[color];
|
|
613
|
-
return /* @__PURE__ */
|
|
678
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
614
679
|
"button",
|
|
615
680
|
{
|
|
616
681
|
onClick: disabled ? void 0 : onClick,
|
|
617
682
|
disabled: disabled || onClick === void 0,
|
|
618
|
-
className:
|
|
683
|
+
className: (0, import_clsx7.default)(
|
|
619
684
|
className,
|
|
620
685
|
{
|
|
621
686
|
"text-disabled-text": disabled,
|
|
622
|
-
[
|
|
687
|
+
[(0, import_clsx7.default)(colorClasses, "hover:bg-button-text-hover-background rounded-full")]: !disabled
|
|
623
688
|
},
|
|
624
|
-
|
|
689
|
+
ButtonUtil.paddingMapping[size]
|
|
625
690
|
),
|
|
626
691
|
...restProps,
|
|
627
692
|
children: [
|
|
628
|
-
startIcon && /* @__PURE__ */
|
|
693
|
+
startIcon && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
629
694
|
"span",
|
|
630
695
|
{
|
|
631
|
-
className:
|
|
696
|
+
className: (0, import_clsx7.default)({
|
|
632
697
|
[iconColorClasses]: !disabled,
|
|
633
698
|
[`text-disabled-icon`]: disabled
|
|
634
699
|
}),
|
|
@@ -636,10 +701,10 @@ var TextButton = ({
|
|
|
636
701
|
}
|
|
637
702
|
),
|
|
638
703
|
children,
|
|
639
|
-
endIcon && /* @__PURE__ */
|
|
704
|
+
endIcon && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
640
705
|
"span",
|
|
641
706
|
{
|
|
642
|
-
className:
|
|
707
|
+
className: (0, import_clsx7.default)({
|
|
643
708
|
[iconColorClasses]: !disabled,
|
|
644
709
|
[`text-disabled-icon`]: disabled
|
|
645
710
|
}),
|
|
@@ -652,7 +717,7 @@ var TextButton = ({
|
|
|
652
717
|
};
|
|
653
718
|
|
|
654
719
|
// src/components/properties/PropertyBase.tsx
|
|
655
|
-
|
|
720
|
+
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
656
721
|
var defaultPropertyBaseTranslation = {
|
|
657
722
|
en: {
|
|
658
723
|
remove: "Remove"
|
|
@@ -674,11 +739,11 @@ var PropertyBase = ({
|
|
|
674
739
|
}) => {
|
|
675
740
|
const translation = useTranslation(defaultPropertyBaseTranslation, overwriteTranslation);
|
|
676
741
|
const requiredAndNoValue = softRequired && !hasValue;
|
|
677
|
-
return /* @__PURE__ */
|
|
678
|
-
/* @__PURE__ */
|
|
742
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: (0, import_clsx8.default)("row gap-x-0 group", className), children: [
|
|
743
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
|
|
679
744
|
"div",
|
|
680
745
|
{
|
|
681
|
-
className:
|
|
746
|
+
className: (0, import_clsx8.default)("row gap-x-2 !w-[200px] px-4 py-2 items-center rounded-l-xl border-2 border-r-0", {
|
|
682
747
|
"bg-gray-100 text-black group-hover:border-primary border-gray-400": !requiredAndNoValue,
|
|
683
748
|
"bg-warning text-surface-warning group-hover:border-warning border-warning/90": requiredAndNoValue
|
|
684
749
|
}, className),
|
|
@@ -688,22 +753,22 @@ var PropertyBase = ({
|
|
|
688
753
|
]
|
|
689
754
|
}
|
|
690
755
|
),
|
|
691
|
-
/* @__PURE__ */
|
|
756
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
|
|
692
757
|
"div",
|
|
693
758
|
{
|
|
694
|
-
className:
|
|
759
|
+
className: (0, import_clsx8.default)("row grow justify-between items-center rounded-r-xl border-2 border-l-0", {
|
|
695
760
|
"bg-white group-hover:border-primary border-gray-400": !requiredAndNoValue,
|
|
696
761
|
"bg-surface-warning group-hover:border-warning border-warning/90": requiredAndNoValue
|
|
697
762
|
}, className),
|
|
698
763
|
children: [
|
|
699
764
|
input({ softRequired, hasValue }),
|
|
700
|
-
requiredAndNoValue && /* @__PURE__ */
|
|
701
|
-
onRemove && /* @__PURE__ */
|
|
765
|
+
requiredAndNoValue && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "text-warning pr-4", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_lucide_react3.AlertTriangle, { size: 24 }) }),
|
|
766
|
+
onRemove && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
702
767
|
TextButton,
|
|
703
768
|
{
|
|
704
769
|
onClick: onRemove,
|
|
705
770
|
color: "negative",
|
|
706
|
-
className:
|
|
771
|
+
className: (0, import_clsx8.default)("pr-4 items-center", { "!text-transparent": !hasValue || readOnly }),
|
|
707
772
|
disabled: !hasValue || readOnly,
|
|
708
773
|
children: translation.remove
|
|
709
774
|
}
|
|
@@ -715,7 +780,7 @@ var PropertyBase = ({
|
|
|
715
780
|
};
|
|
716
781
|
|
|
717
782
|
// src/components/properties/MultiSelectProperty.tsx
|
|
718
|
-
|
|
783
|
+
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
719
784
|
var defaultMultiSelectPropertyTranslation = {
|
|
720
785
|
en: {
|
|
721
786
|
select: "Select"
|
|
@@ -739,7 +804,7 @@ var MultiSelectProperty = ({
|
|
|
739
804
|
if (softRequired && !hasValue) {
|
|
740
805
|
triggerClassName = "border-warning hover:brightness-90";
|
|
741
806
|
}
|
|
742
|
-
return /* @__PURE__ */
|
|
807
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
743
808
|
PropertyBase,
|
|
744
809
|
{
|
|
745
810
|
name,
|
|
@@ -747,28 +812,23 @@ var MultiSelectProperty = ({
|
|
|
747
812
|
readOnly,
|
|
748
813
|
softRequired,
|
|
749
814
|
hasValue,
|
|
750
|
-
icon: /* @__PURE__ */
|
|
751
|
-
input: ({ softRequired: softRequired2 }) => /* @__PURE__ */
|
|
815
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_lucide_react4.List, { size: 16 }),
|
|
816
|
+
input: ({ softRequired: softRequired2 }) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
752
817
|
"div",
|
|
753
818
|
{
|
|
754
|
-
className:
|
|
755
|
-
children: /* @__PURE__ */
|
|
819
|
+
className: (0, import_clsx9.default)("row grow py-2 px-4 cursor-pointer", { "text-warning": softRequired2 && !hasValue }),
|
|
820
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
756
821
|
MultiSelect,
|
|
757
822
|
{
|
|
758
823
|
...multiSelectProps,
|
|
759
|
-
className:
|
|
824
|
+
className: (0, import_clsx9.default)("w-full", { "bg-surface-warning": softRequired2 && !hasValue }),
|
|
760
825
|
triggerClassName,
|
|
761
826
|
selectedDisplay: ({ items }) => {
|
|
762
827
|
const selected = items.filter((value) => value.selected);
|
|
763
828
|
if (selected.length === 0) {
|
|
764
|
-
return /* @__PURE__ */
|
|
829
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { children: "Select" });
|
|
765
830
|
}
|
|
766
|
-
return /* @__PURE__ */
|
|
767
|
-
ChipList,
|
|
768
|
-
{
|
|
769
|
-
list: selected.map((value) => ({ children: value.label }))
|
|
770
|
-
}
|
|
771
|
-
);
|
|
831
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(ChipList, { list: selected.map((value) => ({ children: value.label })) });
|
|
772
832
|
},
|
|
773
833
|
options,
|
|
774
834
|
disabled: readOnly,
|
|
@@ -780,7 +840,8 @@ var MultiSelectProperty = ({
|
|
|
780
840
|
}
|
|
781
841
|
);
|
|
782
842
|
};
|
|
783
|
-
export
|
|
843
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
844
|
+
0 && (module.exports = {
|
|
784
845
|
MultiSelectProperty
|
|
785
|
-
};
|
|
786
|
-
//# sourceMappingURL=MultiSelectProperty.
|
|
846
|
+
});
|
|
847
|
+
//# sourceMappingURL=MultiSelectProperty.cjs.map
|