@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,54 +1,35 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
|
|
30
1
|
// src/components/properties/MultiSelectProperty.tsx
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
MultiSelectProperty: () => MultiSelectProperty
|
|
34
|
-
});
|
|
35
|
-
module.exports = __toCommonJS(MultiSelectProperty_exports);
|
|
36
|
-
var import_lucide_react4 = require("lucide-react");
|
|
37
|
-
var import_clsx8 = __toESM(require("clsx"));
|
|
2
|
+
import { List } from "lucide-react";
|
|
3
|
+
import clsx9 from "clsx";
|
|
38
4
|
|
|
39
|
-
// src/
|
|
40
|
-
|
|
5
|
+
// src/localization/LanguageProvider.tsx
|
|
6
|
+
import { createContext, useContext, useEffect as useEffect2, useState as useState2 } from "react";
|
|
41
7
|
|
|
42
|
-
// src/hooks/useLocalStorage.
|
|
43
|
-
|
|
8
|
+
// src/hooks/useLocalStorage.ts
|
|
9
|
+
import { useCallback, useEffect, useState } from "react";
|
|
44
10
|
|
|
45
|
-
// src/
|
|
46
|
-
var
|
|
11
|
+
// src/localization/util.ts
|
|
12
|
+
var languages = ["en", "de"];
|
|
13
|
+
var languagesLocalNames = {
|
|
14
|
+
en: "English",
|
|
15
|
+
de: "Deutsch"
|
|
16
|
+
};
|
|
47
17
|
var DEFAULT_LANGUAGE = "en";
|
|
48
|
-
var
|
|
49
|
-
|
|
18
|
+
var LanguageUtil = {
|
|
19
|
+
languages,
|
|
20
|
+
DEFAULT_LANGUAGE,
|
|
21
|
+
languagesLocalNames
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
// src/localization/LanguageProvider.tsx
|
|
25
|
+
import { jsx } from "react/jsx-runtime";
|
|
26
|
+
var LanguageContext = createContext({
|
|
27
|
+
language: LanguageUtil.DEFAULT_LANGUAGE,
|
|
28
|
+
setLanguage: (v) => v
|
|
29
|
+
});
|
|
30
|
+
var useLanguage = () => useContext(LanguageContext);
|
|
50
31
|
|
|
51
|
-
// src/
|
|
32
|
+
// src/localization/useTranslation.ts
|
|
52
33
|
var useTranslation = (defaults, translationOverwrite = {}) => {
|
|
53
34
|
const { language: languageProp, translation: overwrite } = translationOverwrite;
|
|
54
35
|
const { language: inferredLanguage } = useLanguage();
|
|
@@ -60,9 +41,9 @@ var useTranslation = (defaults, translationOverwrite = {}) => {
|
|
|
60
41
|
return defaultValues;
|
|
61
42
|
};
|
|
62
43
|
|
|
63
|
-
// src/components/user-
|
|
64
|
-
|
|
65
|
-
|
|
44
|
+
// src/components/user-action/MultiSelect.tsx
|
|
45
|
+
import { useState as useState7 } from "react";
|
|
46
|
+
import { Search } from "lucide-react";
|
|
66
47
|
|
|
67
48
|
// src/util/simpleSearch.ts
|
|
68
49
|
var MultiSearchWithMapping = (search, objects, mapping) => {
|
|
@@ -72,17 +53,17 @@ var MultiSearchWithMapping = (search, objects, mapping) => {
|
|
|
72
53
|
});
|
|
73
54
|
};
|
|
74
55
|
|
|
75
|
-
// src/components/user-
|
|
76
|
-
|
|
56
|
+
// src/components/user-action/MultiSelect.tsx
|
|
57
|
+
import clsx5 from "clsx";
|
|
77
58
|
|
|
78
|
-
// src/components/user-
|
|
79
|
-
|
|
80
|
-
|
|
59
|
+
// src/components/user-action/Menu.tsx
|
|
60
|
+
import { useRef } from "react";
|
|
61
|
+
import clsx from "clsx";
|
|
81
62
|
|
|
82
63
|
// src/hooks/useOutsideClick.ts
|
|
83
|
-
|
|
64
|
+
import { useEffect as useEffect3 } from "react";
|
|
84
65
|
var useOutsideClick = (refs, handler) => {
|
|
85
|
-
(
|
|
66
|
+
useEffect3(() => {
|
|
86
67
|
const listener = (event) => {
|
|
87
68
|
if (event.target === null) return;
|
|
88
69
|
if (refs.some((ref) => !ref.current || ref.current.contains(event.target))) {
|
|
@@ -100,15 +81,15 @@ var useOutsideClick = (refs, handler) => {
|
|
|
100
81
|
};
|
|
101
82
|
|
|
102
83
|
// src/hooks/useHoverState.ts
|
|
103
|
-
|
|
84
|
+
import { useEffect as useEffect4, useState as useState3 } from "react";
|
|
104
85
|
var defaultUseHoverStateProps = {
|
|
105
86
|
closingDelay: 200,
|
|
106
87
|
isDisabled: false
|
|
107
88
|
};
|
|
108
89
|
var useHoverState = (props = void 0) => {
|
|
109
90
|
const { closingDelay, isDisabled } = { ...defaultUseHoverStateProps, ...props };
|
|
110
|
-
const [isHovered, setIsHovered] = (
|
|
111
|
-
const [timer, setTimer] = (
|
|
91
|
+
const [isHovered, setIsHovered] = useState3(false);
|
|
92
|
+
const [timer, setTimer] = useState3();
|
|
112
93
|
const onMouseEnter = () => {
|
|
113
94
|
if (isDisabled) {
|
|
114
95
|
return;
|
|
@@ -124,14 +105,14 @@ var useHoverState = (props = void 0) => {
|
|
|
124
105
|
setIsHovered(false);
|
|
125
106
|
}, closingDelay));
|
|
126
107
|
};
|
|
127
|
-
(
|
|
108
|
+
useEffect4(() => {
|
|
128
109
|
if (timer) {
|
|
129
110
|
return () => {
|
|
130
111
|
clearTimeout(timer);
|
|
131
112
|
};
|
|
132
113
|
}
|
|
133
114
|
});
|
|
134
|
-
(
|
|
115
|
+
useEffect4(() => {
|
|
135
116
|
if (timer) {
|
|
136
117
|
clearTimeout(timer);
|
|
137
118
|
}
|
|
@@ -143,17 +124,17 @@ var useHoverState = (props = void 0) => {
|
|
|
143
124
|
};
|
|
144
125
|
};
|
|
145
126
|
|
|
146
|
-
// src/components/user-
|
|
147
|
-
|
|
127
|
+
// src/components/user-action/Menu.tsx
|
|
128
|
+
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
148
129
|
var MenuItem = ({
|
|
149
130
|
children,
|
|
150
131
|
onClick,
|
|
151
132
|
alignment = "left",
|
|
152
133
|
className
|
|
153
|
-
}) => /* @__PURE__ */ (
|
|
134
|
+
}) => /* @__PURE__ */ jsx2(
|
|
154
135
|
"div",
|
|
155
136
|
{
|
|
156
|
-
className: (
|
|
137
|
+
className: clsx("block px-3 py-1 bg-menu-background text-menu-text hover:brightness-90", {
|
|
157
138
|
"text-right": alignment === "right",
|
|
158
139
|
"text-left": alignment === "left"
|
|
159
140
|
}, className),
|
|
@@ -169,22 +150,22 @@ var Menu = ({
|
|
|
169
150
|
menuClassName = ""
|
|
170
151
|
}) => {
|
|
171
152
|
const { isHovered: isOpen, setIsHovered: setIsOpen, handlers } = useHoverState({ isDisabled: !showOnHover });
|
|
172
|
-
const triggerRef =
|
|
173
|
-
const menuRef =
|
|
153
|
+
const triggerRef = useRef(null);
|
|
154
|
+
const menuRef = useRef(null);
|
|
174
155
|
useOutsideClick([triggerRef, menuRef], () => setIsOpen(false));
|
|
175
|
-
return /* @__PURE__ */
|
|
156
|
+
return /* @__PURE__ */ jsxs(
|
|
176
157
|
"div",
|
|
177
158
|
{
|
|
178
159
|
className: "relative",
|
|
179
160
|
...handlers,
|
|
180
161
|
children: [
|
|
181
162
|
trigger(() => setIsOpen(!isOpen), triggerRef),
|
|
182
|
-
isOpen ? /* @__PURE__ */ (
|
|
163
|
+
isOpen ? /* @__PURE__ */ jsx2(
|
|
183
164
|
"div",
|
|
184
165
|
{
|
|
185
166
|
ref: menuRef,
|
|
186
167
|
onClick: (e) => e.stopPropagation(),
|
|
187
|
-
className: (
|
|
168
|
+
className: clsx("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]", {
|
|
188
169
|
" top-[8px]": alignment[0] === "t",
|
|
189
170
|
" bottom-[8px]": alignment[0] === "b",
|
|
190
171
|
" left-[-8px]": alignment[1] === "l",
|
|
@@ -198,15 +179,15 @@ var Menu = ({
|
|
|
198
179
|
);
|
|
199
180
|
};
|
|
200
181
|
|
|
201
|
-
// src/components/user-
|
|
202
|
-
|
|
203
|
-
|
|
182
|
+
// src/components/user-action/Input.tsx
|
|
183
|
+
import { forwardRef, useEffect as useEffect6, useRef as useRef2, useState as useState5 } from "react";
|
|
184
|
+
import clsx3 from "clsx";
|
|
204
185
|
|
|
205
186
|
// src/hooks/useSaveDelay.ts
|
|
206
|
-
|
|
187
|
+
import { useEffect as useEffect5, useState as useState4 } from "react";
|
|
207
188
|
function useSaveDelay(setNotificationStatus, delay) {
|
|
208
|
-
const [updateTimer, setUpdateTimer] = (
|
|
209
|
-
const [notificationTimer, setNotificationTimer] = (
|
|
189
|
+
const [updateTimer, setUpdateTimer] = useState4(void 0);
|
|
190
|
+
const [notificationTimer, setNotificationTimer] = useState4(void 0);
|
|
210
191
|
const restartTimer = (onSave) => {
|
|
211
192
|
clearTimeout(updateTimer);
|
|
212
193
|
setUpdateTimer(setTimeout(() => {
|
|
@@ -233,7 +214,7 @@ function useSaveDelay(setNotificationStatus, delay) {
|
|
|
233
214
|
setNotificationStatus(false);
|
|
234
215
|
}
|
|
235
216
|
};
|
|
236
|
-
(
|
|
217
|
+
useEffect5(() => {
|
|
237
218
|
return () => {
|
|
238
219
|
clearTimeout(updateTimer);
|
|
239
220
|
clearTimeout(notificationTimer);
|
|
@@ -245,8 +226,9 @@ function useSaveDelay(setNotificationStatus, delay) {
|
|
|
245
226
|
// src/util/noop.ts
|
|
246
227
|
var noop = () => void 0;
|
|
247
228
|
|
|
248
|
-
// src/components/user-
|
|
249
|
-
|
|
229
|
+
// src/components/user-action/Label.tsx
|
|
230
|
+
import clsx2 from "clsx";
|
|
231
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
250
232
|
var styleMapping = {
|
|
251
233
|
labelSmall: "textstyle-label-sm",
|
|
252
234
|
labelMedium: "textstyle-label-md",
|
|
@@ -256,23 +238,25 @@ var Label = ({
|
|
|
256
238
|
children,
|
|
257
239
|
name,
|
|
258
240
|
labelType = "labelSmall",
|
|
241
|
+
className,
|
|
259
242
|
...props
|
|
260
243
|
}) => {
|
|
261
|
-
return /* @__PURE__ */ (
|
|
244
|
+
return /* @__PURE__ */ jsx3("label", { ...props, className: clsx2(styleMapping[labelType], className), children: children ? children : name });
|
|
262
245
|
};
|
|
263
246
|
|
|
264
|
-
// src/components/user-
|
|
265
|
-
|
|
266
|
-
var
|
|
247
|
+
// src/components/user-action/Input.tsx
|
|
248
|
+
import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
249
|
+
var Input = ({
|
|
267
250
|
id,
|
|
268
251
|
type = "text",
|
|
269
252
|
value,
|
|
270
253
|
label,
|
|
271
254
|
onChange = noop,
|
|
272
|
-
|
|
273
|
-
className = "",
|
|
255
|
+
onChangeText = noop,
|
|
274
256
|
onEditCompleted,
|
|
257
|
+
className = "",
|
|
275
258
|
expanded = true,
|
|
259
|
+
autoFocus,
|
|
276
260
|
onBlur,
|
|
277
261
|
containerClassName,
|
|
278
262
|
...restProps
|
|
@@ -281,28 +265,28 @@ var ControlledInput = ({
|
|
|
281
265
|
restartTimer,
|
|
282
266
|
clearUpdateTimer
|
|
283
267
|
} = useSaveDelay(() => void 0, 3e3);
|
|
284
|
-
const ref = (
|
|
285
|
-
(
|
|
286
|
-
if (
|
|
268
|
+
const ref = useRef2(null);
|
|
269
|
+
useEffect6(() => {
|
|
270
|
+
if (autoFocus) {
|
|
287
271
|
ref.current?.focus();
|
|
288
272
|
}
|
|
289
|
-
}, [
|
|
290
|
-
return /* @__PURE__ */ (
|
|
291
|
-
label && /* @__PURE__ */ (
|
|
292
|
-
/* @__PURE__ */ (
|
|
273
|
+
}, [autoFocus]);
|
|
274
|
+
return /* @__PURE__ */ jsxs2("div", { className: clsx3({ "w-full": expanded }, containerClassName), children: [
|
|
275
|
+
label && /* @__PURE__ */ jsx4(Label, { ...label, htmlFor: id, className: clsx3("mb-1", label.className) }),
|
|
276
|
+
/* @__PURE__ */ jsx4(
|
|
293
277
|
"input",
|
|
294
278
|
{
|
|
295
279
|
ref,
|
|
296
280
|
value,
|
|
297
281
|
id,
|
|
298
282
|
type,
|
|
299
|
-
className
|
|
283
|
+
className,
|
|
300
284
|
onBlur: (event) => {
|
|
301
285
|
if (onBlur) {
|
|
302
286
|
onBlur(event);
|
|
303
287
|
}
|
|
304
288
|
if (onEditCompleted) {
|
|
305
|
-
onEditCompleted(event.target.value
|
|
289
|
+
onEditCompleted(event.target.value);
|
|
306
290
|
clearUpdateTimer();
|
|
307
291
|
}
|
|
308
292
|
},
|
|
@@ -310,19 +294,19 @@ var ControlledInput = ({
|
|
|
310
294
|
const value2 = e.target.value;
|
|
311
295
|
if (onEditCompleted) {
|
|
312
296
|
restartTimer(() => {
|
|
313
|
-
onEditCompleted(value2
|
|
297
|
+
onEditCompleted(value2);
|
|
314
298
|
clearUpdateTimer();
|
|
315
299
|
});
|
|
316
300
|
}
|
|
317
|
-
onChange(
|
|
318
|
-
|
|
301
|
+
onChange(e);
|
|
302
|
+
onChangeText(value2);
|
|
319
303
|
},
|
|
320
304
|
...restProps
|
|
321
305
|
}
|
|
322
306
|
)
|
|
323
307
|
] });
|
|
324
308
|
};
|
|
325
|
-
var FormInput =
|
|
309
|
+
var FormInput = forwardRef(function FormInput2({
|
|
326
310
|
id,
|
|
327
311
|
labelText,
|
|
328
312
|
errorText,
|
|
@@ -333,14 +317,13 @@ var FormInput = (0, import_react7.forwardRef)(function FormInput2({
|
|
|
333
317
|
required,
|
|
334
318
|
...restProps
|
|
335
319
|
}, ref) {
|
|
336
|
-
const input = /* @__PURE__ */ (
|
|
320
|
+
const input = /* @__PURE__ */ jsx4(
|
|
337
321
|
"input",
|
|
338
322
|
{
|
|
339
323
|
ref,
|
|
340
324
|
id,
|
|
341
325
|
...restProps,
|
|
342
|
-
className: (
|
|
343
|
-
"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",
|
|
326
|
+
className: clsx3(
|
|
344
327
|
{
|
|
345
328
|
"focus:border-primary focus:ring-primary": !errorText,
|
|
346
329
|
"focus:border-negative focus:ring-negative text-negative": !!errorText
|
|
@@ -349,22 +332,22 @@ var FormInput = (0, import_react7.forwardRef)(function FormInput2({
|
|
|
349
332
|
)
|
|
350
333
|
}
|
|
351
334
|
);
|
|
352
|
-
return /* @__PURE__ */ (
|
|
353
|
-
labelText && /* @__PURE__ */ (
|
|
335
|
+
return /* @__PURE__ */ jsxs2("div", { className: clsx3("flex flex-col gap-y-1", containerClassName), children: [
|
|
336
|
+
labelText && /* @__PURE__ */ jsxs2("label", { htmlFor: id, className: clsx3("textstyle-label-md", labelClassName), children: [
|
|
354
337
|
labelText,
|
|
355
|
-
required && /* @__PURE__ */ (
|
|
338
|
+
required && /* @__PURE__ */ jsx4("span", { className: "text-primary font-bold", children: "*" })
|
|
356
339
|
] }),
|
|
357
340
|
input,
|
|
358
|
-
errorText && /* @__PURE__ */ (
|
|
341
|
+
errorText && /* @__PURE__ */ jsx4("label", { htmlFor: id, className: clsx3("text-negative", errorClassName), children: errorText })
|
|
359
342
|
] });
|
|
360
343
|
});
|
|
361
344
|
|
|
362
|
-
// src/components/user-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
345
|
+
// src/components/user-action/Checkbox.tsx
|
|
346
|
+
import { useState as useState6 } from "react";
|
|
347
|
+
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
348
|
+
import { Check, Minus } from "lucide-react";
|
|
349
|
+
import clsx4 from "clsx";
|
|
350
|
+
import { jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
368
351
|
var checkboxSizeMapping = {
|
|
369
352
|
small: "size-4",
|
|
370
353
|
medium: "size-6",
|
|
@@ -375,7 +358,7 @@ var checkboxIconSizeMapping = {
|
|
|
375
358
|
medium: "size-5",
|
|
376
359
|
large: "size-7"
|
|
377
360
|
};
|
|
378
|
-
var
|
|
361
|
+
var Checkbox = ({
|
|
379
362
|
id,
|
|
380
363
|
label,
|
|
381
364
|
checked,
|
|
@@ -400,32 +383,40 @@ var ControlledCheckbox = ({
|
|
|
400
383
|
const newValue = checked === "indeterminate" ? false : !checked;
|
|
401
384
|
propagateChange(newValue);
|
|
402
385
|
};
|
|
403
|
-
return /* @__PURE__ */ (
|
|
404
|
-
/* @__PURE__ */ (
|
|
386
|
+
return /* @__PURE__ */ jsxs3("div", { className: clsx4("row justify-center items-center", containerClassName), children: [
|
|
387
|
+
/* @__PURE__ */ jsx5(
|
|
405
388
|
CheckboxPrimitive.Root,
|
|
406
389
|
{
|
|
407
390
|
onCheckedChange: propagateChange,
|
|
408
391
|
checked,
|
|
409
392
|
disabled,
|
|
410
393
|
id,
|
|
411
|
-
className: (
|
|
394
|
+
className: clsx4(usedSizeClass, `items-center border-2 rounded outline-none focus:border-primary`, {
|
|
412
395
|
"text-disabled-text border-disabled-text": disabled,
|
|
413
396
|
"border-on-background": !disabled,
|
|
414
397
|
"bg-primary/30 border-primary text-primary": checked === true || checked === "indeterminate",
|
|
415
398
|
"hover:border-gray-400 focus:hover:border-primary": !checked
|
|
416
399
|
}, className),
|
|
417
|
-
children: /* @__PURE__ */ (
|
|
418
|
-
checked === true && /* @__PURE__ */ (
|
|
419
|
-
checked === "indeterminate" && /* @__PURE__ */ (
|
|
400
|
+
children: /* @__PURE__ */ jsxs3(CheckboxPrimitive.Indicator, { children: [
|
|
401
|
+
checked === true && /* @__PURE__ */ jsx5(Check, { className: innerIconSize }),
|
|
402
|
+
checked === "indeterminate" && /* @__PURE__ */ jsx5(Minus, { className: innerIconSize })
|
|
420
403
|
] })
|
|
421
404
|
}
|
|
422
405
|
),
|
|
423
|
-
label && /* @__PURE__ */ (
|
|
406
|
+
label && /* @__PURE__ */ jsx5(
|
|
407
|
+
Label,
|
|
408
|
+
{
|
|
409
|
+
...label,
|
|
410
|
+
className: clsx4("cursor-pointer", label.className),
|
|
411
|
+
htmlFor: id,
|
|
412
|
+
onClick: changeValue
|
|
413
|
+
}
|
|
414
|
+
)
|
|
424
415
|
] });
|
|
425
416
|
};
|
|
426
417
|
|
|
427
|
-
// src/components/user-
|
|
428
|
-
|
|
418
|
+
// src/components/user-action/MultiSelect.tsx
|
|
419
|
+
import { jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
429
420
|
var defaultMultiSelectTranslation = {
|
|
430
421
|
en: {
|
|
431
422
|
select: "Select",
|
|
@@ -452,7 +443,7 @@ var MultiSelect = ({
|
|
|
452
443
|
triggerClassName = ""
|
|
453
444
|
}) => {
|
|
454
445
|
const translation = useTranslation(defaultMultiSelectTranslation, overwriteTranslation);
|
|
455
|
-
const [searchText, setSearchText] = (
|
|
446
|
+
const [searchText, setSearchText] = useState7(search?.initialSearch ?? "");
|
|
456
447
|
let filteredOptions = options;
|
|
457
448
|
const enableSearch = !!search;
|
|
458
449
|
if (enableSearch && !!searchText) {
|
|
@@ -466,28 +457,28 @@ var MultiSelect = ({
|
|
|
466
457
|
filteredOptions = filteredOptions.filter((value) => !value.disabled);
|
|
467
458
|
}
|
|
468
459
|
const selectedItems = options.filter((value) => value.selected);
|
|
469
|
-
const menuButtonText = selectedItems.length === 0 ? hintText ?? translation.select : /* @__PURE__ */ (
|
|
460
|
+
const menuButtonText = selectedItems.length === 0 ? hintText ?? translation.select : /* @__PURE__ */ jsx6("span", { children: `${selectedItems.length} ${translation.selected}` });
|
|
470
461
|
const borderColor = "border-menu-border";
|
|
471
|
-
return /* @__PURE__ */ (
|
|
472
|
-
label && /* @__PURE__ */ (
|
|
462
|
+
return /* @__PURE__ */ jsxs4("div", { className: clsx5(className), children: [
|
|
463
|
+
label && /* @__PURE__ */ jsx6(
|
|
473
464
|
Label,
|
|
474
465
|
{
|
|
475
466
|
...label,
|
|
476
467
|
htmlFor: label.name,
|
|
477
|
-
className: (
|
|
468
|
+
className: clsx5(" mb-1", label.className),
|
|
478
469
|
labelType: label.labelType ?? "labelBig"
|
|
479
470
|
}
|
|
480
471
|
),
|
|
481
|
-
/* @__PURE__ */ (
|
|
472
|
+
/* @__PURE__ */ jsxs4(
|
|
482
473
|
Menu,
|
|
483
474
|
{
|
|
484
475
|
alignment: "t_",
|
|
485
|
-
trigger: (onClick, ref) => /* @__PURE__ */ (
|
|
476
|
+
trigger: (onClick, ref) => /* @__PURE__ */ jsx6(
|
|
486
477
|
"div",
|
|
487
478
|
{
|
|
488
479
|
ref,
|
|
489
480
|
onClick: disabled ? void 0 : onClick,
|
|
490
|
-
className: (
|
|
481
|
+
className: clsx5(
|
|
491
482
|
borderColor,
|
|
492
483
|
"bg-menu-background text-menu-text inline-w-full justify-between items-center rounded-lg border-2 px-4 py-2 font-medium",
|
|
493
484
|
{
|
|
@@ -499,27 +490,27 @@ var MultiSelect = ({
|
|
|
499
490
|
children: selectedDisplay ? selectedDisplay({ items: options, disabled }) : menuButtonText
|
|
500
491
|
}
|
|
501
492
|
),
|
|
502
|
-
menuClassName: (
|
|
493
|
+
menuClassName: clsx5(
|
|
503
494
|
"!rounded-lg !shadow-lg !max-h-[500px] !min-w-[400px] !max-w-[70vh] !overflow-y-auto !border !border-2",
|
|
504
495
|
borderColor,
|
|
505
496
|
{ "!py-0": !enableSearch, "!pb-0": enableSearch }
|
|
506
497
|
),
|
|
507
498
|
children: [
|
|
508
|
-
enableSearch && /* @__PURE__ */ (
|
|
509
|
-
/* @__PURE__ */ (
|
|
510
|
-
/* @__PURE__ */ (
|
|
499
|
+
enableSearch && /* @__PURE__ */ jsxs4("div", { className: "row gap-x-2 items-center px-2 py-2", children: [
|
|
500
|
+
/* @__PURE__ */ jsx6(Input, { autoFocus: true, className: "w-full", value: searchText, onChangeText: setSearchText }),
|
|
501
|
+
/* @__PURE__ */ jsx6(Search, {})
|
|
511
502
|
] }, "selectSearch"),
|
|
512
|
-
filteredOptions.map((option, index) => /* @__PURE__ */ (
|
|
503
|
+
filteredOptions.map((option, index) => /* @__PURE__ */ jsx6(
|
|
513
504
|
MenuItem,
|
|
514
505
|
{
|
|
515
|
-
className: (
|
|
506
|
+
className: clsx5({
|
|
516
507
|
"cursor-not-allowed !bg-disabled-background !text-disabled-text hover:brightness-100": !!option.disabled,
|
|
517
508
|
"cursor-pointer": !option.disabled
|
|
518
509
|
}),
|
|
519
|
-
children: /* @__PURE__ */ (
|
|
510
|
+
children: /* @__PURE__ */ jsxs4(
|
|
520
511
|
"div",
|
|
521
512
|
{
|
|
522
|
-
className: (
|
|
513
|
+
className: clsx5("overflow-hidden whitespace-nowrap text-ellipsis row items-center gap-x-2", option.className),
|
|
523
514
|
onClick: () => {
|
|
524
515
|
if (!option.disabled) {
|
|
525
516
|
onChange(options.map((value) => value.value === option.value ? {
|
|
@@ -529,7 +520,7 @@ var MultiSelect = ({
|
|
|
529
520
|
}
|
|
530
521
|
},
|
|
531
522
|
children: [
|
|
532
|
-
/* @__PURE__ */ (
|
|
523
|
+
/* @__PURE__ */ jsx6(Checkbox, { checked: option.selected, disabled: option.disabled, size: "small" }),
|
|
533
524
|
option.label
|
|
534
525
|
]
|
|
535
526
|
}
|
|
@@ -543,9 +534,9 @@ var MultiSelect = ({
|
|
|
543
534
|
] });
|
|
544
535
|
};
|
|
545
536
|
|
|
546
|
-
// src/components/
|
|
547
|
-
|
|
548
|
-
|
|
537
|
+
// src/components/layout-and-navigation/Chip.tsx
|
|
538
|
+
import clsx6 from "clsx";
|
|
539
|
+
import { jsx as jsx7, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
549
540
|
var Chip = ({
|
|
550
541
|
children,
|
|
551
542
|
trailingIcon,
|
|
@@ -572,11 +563,11 @@ var Chip = ({
|
|
|
572
563
|
blue: "text-tag-blue-icon",
|
|
573
564
|
pink: "text-tag-pink-icon"
|
|
574
565
|
}[color];
|
|
575
|
-
return /* @__PURE__ */ (
|
|
566
|
+
return /* @__PURE__ */ jsxs5(
|
|
576
567
|
"div",
|
|
577
568
|
{
|
|
578
569
|
...restProps,
|
|
579
|
-
className: (
|
|
570
|
+
className: clsx6(
|
|
580
571
|
`row w-fit px-2 py-1`,
|
|
581
572
|
colorMapping,
|
|
582
573
|
{
|
|
@@ -587,7 +578,7 @@ var Chip = ({
|
|
|
587
578
|
),
|
|
588
579
|
children: [
|
|
589
580
|
children,
|
|
590
|
-
trailingIcon && /* @__PURE__ */ (
|
|
581
|
+
trailingIcon && /* @__PURE__ */ jsx7("span", { className: colorMappingIcon, children: trailingIcon })
|
|
591
582
|
]
|
|
592
583
|
}
|
|
593
584
|
);
|
|
@@ -596,7 +587,7 @@ var ChipList = ({
|
|
|
596
587
|
list,
|
|
597
588
|
className = ""
|
|
598
589
|
}) => {
|
|
599
|
-
return /* @__PURE__ */ (
|
|
590
|
+
return /* @__PURE__ */ jsx7("div", { className: clsx6("flex flex-wrap gap-x-4 gap-y-2", className), children: list.map((value, index) => /* @__PURE__ */ jsx7(
|
|
600
591
|
Chip,
|
|
601
592
|
{
|
|
602
593
|
...value,
|
|
@@ -609,17 +600,26 @@ var ChipList = ({
|
|
|
609
600
|
};
|
|
610
601
|
|
|
611
602
|
// src/components/properties/PropertyBase.tsx
|
|
612
|
-
|
|
613
|
-
|
|
603
|
+
import { AlertTriangle } from "lucide-react";
|
|
604
|
+
import clsx8 from "clsx";
|
|
614
605
|
|
|
615
|
-
// src/components/Button.tsx
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
var
|
|
606
|
+
// src/components/user-action/Button.tsx
|
|
607
|
+
import clsx7 from "clsx";
|
|
608
|
+
import { jsx as jsx8, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
609
|
+
var paddingMapping = {
|
|
619
610
|
small: "btn-sm",
|
|
620
611
|
medium: "btn-md",
|
|
621
612
|
large: "btn-lg"
|
|
622
613
|
};
|
|
614
|
+
var iconPaddingMapping = {
|
|
615
|
+
small: "icon-btn-sm",
|
|
616
|
+
medium: "icon-btn-md",
|
|
617
|
+
large: "icon-btn-lg"
|
|
618
|
+
};
|
|
619
|
+
var ButtonUtil = {
|
|
620
|
+
paddingMapping,
|
|
621
|
+
iconPaddingMapping
|
|
622
|
+
};
|
|
623
623
|
var TextButton = ({
|
|
624
624
|
children,
|
|
625
625
|
disabled = false,
|
|
@@ -632,32 +632,34 @@ var TextButton = ({
|
|
|
632
632
|
...restProps
|
|
633
633
|
}) => {
|
|
634
634
|
const colorClasses = {
|
|
635
|
+
primary: "bg-transparent text-button-text-primary-text",
|
|
635
636
|
negative: "bg-transparent text-button-text-negative-text",
|
|
636
637
|
neutral: "bg-transparent text-button-text-neutral-text"
|
|
637
638
|
}[color];
|
|
638
639
|
const iconColorClasses = {
|
|
640
|
+
primary: "text-button-text-primary-icon",
|
|
639
641
|
negative: "text-button-text-negative-icon",
|
|
640
642
|
neutral: "text-button-text-neutral-icon"
|
|
641
643
|
}[color];
|
|
642
|
-
return /* @__PURE__ */ (
|
|
644
|
+
return /* @__PURE__ */ jsxs6(
|
|
643
645
|
"button",
|
|
644
646
|
{
|
|
645
647
|
onClick: disabled ? void 0 : onClick,
|
|
646
648
|
disabled: disabled || onClick === void 0,
|
|
647
|
-
className: (
|
|
649
|
+
className: clsx7(
|
|
648
650
|
className,
|
|
649
651
|
{
|
|
650
652
|
"text-disabled-text": disabled,
|
|
651
|
-
[(
|
|
653
|
+
[clsx7(colorClasses, "hover:bg-button-text-hover-background rounded-full")]: !disabled
|
|
652
654
|
},
|
|
653
|
-
|
|
655
|
+
ButtonUtil.paddingMapping[size]
|
|
654
656
|
),
|
|
655
657
|
...restProps,
|
|
656
658
|
children: [
|
|
657
|
-
startIcon && /* @__PURE__ */ (
|
|
659
|
+
startIcon && /* @__PURE__ */ jsx8(
|
|
658
660
|
"span",
|
|
659
661
|
{
|
|
660
|
-
className: (
|
|
662
|
+
className: clsx7({
|
|
661
663
|
[iconColorClasses]: !disabled,
|
|
662
664
|
[`text-disabled-icon`]: disabled
|
|
663
665
|
}),
|
|
@@ -665,10 +667,10 @@ var TextButton = ({
|
|
|
665
667
|
}
|
|
666
668
|
),
|
|
667
669
|
children,
|
|
668
|
-
endIcon && /* @__PURE__ */ (
|
|
670
|
+
endIcon && /* @__PURE__ */ jsx8(
|
|
669
671
|
"span",
|
|
670
672
|
{
|
|
671
|
-
className: (
|
|
673
|
+
className: clsx7({
|
|
672
674
|
[iconColorClasses]: !disabled,
|
|
673
675
|
[`text-disabled-icon`]: disabled
|
|
674
676
|
}),
|
|
@@ -681,7 +683,7 @@ var TextButton = ({
|
|
|
681
683
|
};
|
|
682
684
|
|
|
683
685
|
// src/components/properties/PropertyBase.tsx
|
|
684
|
-
|
|
686
|
+
import { jsx as jsx9, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
685
687
|
var defaultPropertyBaseTranslation = {
|
|
686
688
|
en: {
|
|
687
689
|
remove: "Remove"
|
|
@@ -703,11 +705,11 @@ var PropertyBase = ({
|
|
|
703
705
|
}) => {
|
|
704
706
|
const translation = useTranslation(defaultPropertyBaseTranslation, overwriteTranslation);
|
|
705
707
|
const requiredAndNoValue = softRequired && !hasValue;
|
|
706
|
-
return /* @__PURE__ */ (
|
|
707
|
-
/* @__PURE__ */ (
|
|
708
|
+
return /* @__PURE__ */ jsxs7("div", { className: clsx8("row gap-x-0 group", className), children: [
|
|
709
|
+
/* @__PURE__ */ jsxs7(
|
|
708
710
|
"div",
|
|
709
711
|
{
|
|
710
|
-
className: (
|
|
712
|
+
className: clsx8("row gap-x-2 !w-[200px] px-4 py-2 items-center rounded-l-xl border-2 border-r-0", {
|
|
711
713
|
"bg-gray-100 text-black group-hover:border-primary border-gray-400": !requiredAndNoValue,
|
|
712
714
|
"bg-warning text-surface-warning group-hover:border-warning border-warning/90": requiredAndNoValue
|
|
713
715
|
}, className),
|
|
@@ -717,22 +719,22 @@ var PropertyBase = ({
|
|
|
717
719
|
]
|
|
718
720
|
}
|
|
719
721
|
),
|
|
720
|
-
/* @__PURE__ */ (
|
|
722
|
+
/* @__PURE__ */ jsxs7(
|
|
721
723
|
"div",
|
|
722
724
|
{
|
|
723
|
-
className: (
|
|
725
|
+
className: clsx8("row grow justify-between items-center rounded-r-xl border-2 border-l-0", {
|
|
724
726
|
"bg-white group-hover:border-primary border-gray-400": !requiredAndNoValue,
|
|
725
727
|
"bg-surface-warning group-hover:border-warning border-warning/90": requiredAndNoValue
|
|
726
728
|
}, className),
|
|
727
729
|
children: [
|
|
728
730
|
input({ softRequired, hasValue }),
|
|
729
|
-
requiredAndNoValue && /* @__PURE__ */ (
|
|
730
|
-
onRemove && /* @__PURE__ */ (
|
|
731
|
+
requiredAndNoValue && /* @__PURE__ */ jsx9("div", { className: "text-warning pr-4", children: /* @__PURE__ */ jsx9(AlertTriangle, { size: 24 }) }),
|
|
732
|
+
onRemove && /* @__PURE__ */ jsx9(
|
|
731
733
|
TextButton,
|
|
732
734
|
{
|
|
733
735
|
onClick: onRemove,
|
|
734
736
|
color: "negative",
|
|
735
|
-
className: (
|
|
737
|
+
className: clsx8("pr-4 items-center", { "!text-transparent": !hasValue || readOnly }),
|
|
736
738
|
disabled: !hasValue || readOnly,
|
|
737
739
|
children: translation.remove
|
|
738
740
|
}
|
|
@@ -744,7 +746,7 @@ var PropertyBase = ({
|
|
|
744
746
|
};
|
|
745
747
|
|
|
746
748
|
// src/components/properties/MultiSelectProperty.tsx
|
|
747
|
-
|
|
749
|
+
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
748
750
|
var defaultMultiSelectPropertyTranslation = {
|
|
749
751
|
en: {
|
|
750
752
|
select: "Select"
|
|
@@ -768,7 +770,7 @@ var MultiSelectProperty = ({
|
|
|
768
770
|
if (softRequired && !hasValue) {
|
|
769
771
|
triggerClassName = "border-warning hover:brightness-90";
|
|
770
772
|
}
|
|
771
|
-
return /* @__PURE__ */ (
|
|
773
|
+
return /* @__PURE__ */ jsx10(
|
|
772
774
|
PropertyBase,
|
|
773
775
|
{
|
|
774
776
|
name,
|
|
@@ -776,28 +778,23 @@ var MultiSelectProperty = ({
|
|
|
776
778
|
readOnly,
|
|
777
779
|
softRequired,
|
|
778
780
|
hasValue,
|
|
779
|
-
icon: /* @__PURE__ */ (
|
|
780
|
-
input: ({ softRequired: softRequired2 }) => /* @__PURE__ */ (
|
|
781
|
+
icon: /* @__PURE__ */ jsx10(List, { size: 16 }),
|
|
782
|
+
input: ({ softRequired: softRequired2 }) => /* @__PURE__ */ jsx10(
|
|
781
783
|
"div",
|
|
782
784
|
{
|
|
783
|
-
className: (
|
|
784
|
-
children: /* @__PURE__ */ (
|
|
785
|
+
className: clsx9("row grow py-2 px-4 cursor-pointer", { "text-warning": softRequired2 && !hasValue }),
|
|
786
|
+
children: /* @__PURE__ */ jsx10(
|
|
785
787
|
MultiSelect,
|
|
786
788
|
{
|
|
787
789
|
...multiSelectProps,
|
|
788
|
-
className: (
|
|
790
|
+
className: clsx9("w-full", { "bg-surface-warning": softRequired2 && !hasValue }),
|
|
789
791
|
triggerClassName,
|
|
790
792
|
selectedDisplay: ({ items }) => {
|
|
791
793
|
const selected = items.filter((value) => value.selected);
|
|
792
794
|
if (selected.length === 0) {
|
|
793
|
-
return /* @__PURE__ */ (
|
|
795
|
+
return /* @__PURE__ */ jsx10("span", { children: "Select" });
|
|
794
796
|
}
|
|
795
|
-
return /* @__PURE__ */ (
|
|
796
|
-
ChipList,
|
|
797
|
-
{
|
|
798
|
-
list: selected.map((value) => ({ children: value.label }))
|
|
799
|
-
}
|
|
800
|
-
);
|
|
797
|
+
return /* @__PURE__ */ jsx10(ChipList, { list: selected.map((value) => ({ children: value.label })) });
|
|
801
798
|
},
|
|
802
799
|
options,
|
|
803
800
|
disabled: readOnly,
|
|
@@ -809,8 +806,7 @@ var MultiSelectProperty = ({
|
|
|
809
806
|
}
|
|
810
807
|
);
|
|
811
808
|
};
|
|
812
|
-
|
|
813
|
-
0 && (module.exports = {
|
|
809
|
+
export {
|
|
814
810
|
MultiSelectProperty
|
|
815
|
-
}
|
|
811
|
+
};
|
|
816
812
|
//# sourceMappingURL=MultiSelectProperty.js.map
|