@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/SelectProperty.tsx
|
|
2
|
-
|
|
3
|
-
|
|
31
|
+
var SelectProperty_exports = {};
|
|
32
|
+
__export(SelectProperty_exports, {
|
|
33
|
+
SingleSelectProperty: () => SingleSelectProperty
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(SelectProperty_exports);
|
|
36
|
+
var import_lucide_react3 = require("lucide-react");
|
|
37
|
+
var import_clsx6 = __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,25 +75,15 @@ var useTranslation = (defaults, translationOverwrite = {}) => {
|
|
|
26
75
|
return defaultValues;
|
|
27
76
|
};
|
|
28
77
|
|
|
29
|
-
// src/components/user-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
var MultiSearchWithMapping = (search, objects, mapping) => {
|
|
35
|
-
return objects.filter((object) => {
|
|
36
|
-
const mappedSearchKeywords = mapping(object).map((value) => value.toLowerCase().trim());
|
|
37
|
-
return !!mappedSearchKeywords.find((value) => value.includes(search.toLowerCase().trim()));
|
|
38
|
-
});
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
// src/components/user-input/Select.tsx
|
|
42
|
-
import { Menu } from "@headlessui/react";
|
|
43
|
-
import { ChevronDown, ChevronUp } from "lucide-react";
|
|
44
|
-
import clsx from "clsx";
|
|
78
|
+
// src/components/user-action/Select.tsx
|
|
79
|
+
var import_react5 = require("@headlessui/react");
|
|
80
|
+
var import_lucide_react = require("lucide-react");
|
|
81
|
+
var import_react6 = require("react");
|
|
82
|
+
var import_clsx3 = __toESM(require("clsx"), 1);
|
|
45
83
|
|
|
46
|
-
// src/components/user-
|
|
47
|
-
|
|
84
|
+
// src/components/user-action/Label.tsx
|
|
85
|
+
var import_clsx = __toESM(require("clsx"), 1);
|
|
86
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
48
87
|
var styleMapping = {
|
|
49
88
|
labelSmall: "textstyle-label-sm",
|
|
50
89
|
labelMedium: "textstyle-label-md",
|
|
@@ -54,119 +93,29 @@ var Label = ({
|
|
|
54
93
|
children,
|
|
55
94
|
name,
|
|
56
95
|
labelType = "labelSmall",
|
|
96
|
+
className,
|
|
57
97
|
...props
|
|
58
98
|
}) => {
|
|
59
|
-
return /* @__PURE__ */
|
|
99
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("label", { ...props, className: (0, import_clsx.default)(styleMapping[labelType], className), children: children ? children : name });
|
|
60
100
|
};
|
|
61
101
|
|
|
62
|
-
// src/
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
onChange,
|
|
69
|
-
isHidingCurrentValue = true,
|
|
70
|
-
hintText = "",
|
|
71
|
-
showDisabledOptions = true,
|
|
72
|
-
isDisabled,
|
|
73
|
-
className,
|
|
74
|
-
textColor = "text-menu-text",
|
|
75
|
-
hoverColor = "hover:brightness-90",
|
|
76
|
-
additionalItems,
|
|
77
|
-
selectedDisplayOverwrite
|
|
78
|
-
}) => {
|
|
79
|
-
let filteredOptions = isHidingCurrentValue ? options.filter((option) => option.value !== value) : options;
|
|
80
|
-
if (!showDisabledOptions) {
|
|
81
|
-
filteredOptions = filteredOptions.filter((value2) => !value2.disabled);
|
|
82
|
-
}
|
|
83
|
-
const selectedOption = options.find((option) => option.value === value);
|
|
84
|
-
if (value !== void 0 && selectedOption === void 0 && selectedDisplayOverwrite === void 0) {
|
|
85
|
-
console.warn("The selected value is not found in the options list. This might be an error on your part or default behavior if it is complex data type on which === does not work. In case of the latter use selectedDisplayOverwrite to set your selected text or component");
|
|
86
|
-
}
|
|
87
|
-
const borderColor = "border-menu-border";
|
|
88
|
-
return /* @__PURE__ */ jsxs("div", { className: clsx(className), children: [
|
|
89
|
-
label && /* @__PURE__ */ jsx3(Label, { ...label, labelType: label.labelType ?? "labelBig", className: clsx("mb-1", label.className) }),
|
|
90
|
-
/* @__PURE__ */ jsx3(Menu, { as: "div", className: "relative text-menu-text", children: ({ open }) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
91
|
-
/* @__PURE__ */ jsxs(
|
|
92
|
-
Menu.Button,
|
|
93
|
-
{
|
|
94
|
-
className: clsx(
|
|
95
|
-
"inline-flex w-full justify-between items-center rounded-t-lg border-2 px-4 py-2 font-medium bg-menu-background text-menu-text",
|
|
96
|
-
textColor,
|
|
97
|
-
borderColor,
|
|
98
|
-
{
|
|
99
|
-
"rounded-b-lg": !open,
|
|
100
|
-
[hoverColor]: !isDisabled,
|
|
101
|
-
"bg-disabled-background cursor-not-allowed text-disabled": isDisabled
|
|
102
|
-
}
|
|
103
|
-
),
|
|
104
|
-
disabled: isDisabled,
|
|
105
|
-
children: [
|
|
106
|
-
/* @__PURE__ */ jsx3("span", { children: selectedDisplayOverwrite ?? selectedOption?.label ?? hintText }),
|
|
107
|
-
open ? /* @__PURE__ */ jsx3(ChevronUp, {}) : /* @__PURE__ */ jsx3(ChevronDown, {})
|
|
108
|
-
]
|
|
109
|
-
}
|
|
110
|
-
),
|
|
111
|
-
/* @__PURE__ */ jsxs(
|
|
112
|
-
Menu.Items,
|
|
113
|
-
{
|
|
114
|
-
className: "absolute w-full z-10 rounded-b-lg bg-menu-background text-menu-text shadow-lg max-h-[500px] overflow-y-auto",
|
|
115
|
-
children: [
|
|
116
|
-
(additionalItems ?? []).map((item, index) => /* @__PURE__ */ jsx3(
|
|
117
|
-
"div",
|
|
118
|
-
{
|
|
119
|
-
className: clsx(borderColor, "px-4 py-2 overflow-hidden whitespace-nowrap text-ellipsis border-2 border-t-0", {
|
|
120
|
-
"border-b-0 rounded-b-lg": filteredOptions.length === 0 && index === (additionalItems?.length ?? 1) - 1
|
|
121
|
-
}),
|
|
122
|
-
children: item
|
|
123
|
-
},
|
|
124
|
-
`additionalItems${index}`
|
|
125
|
-
)),
|
|
126
|
-
filteredOptions.map((option, index) => /* @__PURE__ */ jsx3(Menu.Item, { children: /* @__PURE__ */ jsx3(
|
|
127
|
-
"div",
|
|
128
|
-
{
|
|
129
|
-
className: clsx(
|
|
130
|
-
"px-4 py-2 overflow-hidden whitespace-nowrap text-ellipsis border-2 border-t-0 cursor-pointer",
|
|
131
|
-
option.className,
|
|
132
|
-
borderColor,
|
|
133
|
-
{
|
|
134
|
-
"brightness-90": option.value === value,
|
|
135
|
-
"brightness-95": index % 2 === 1,
|
|
136
|
-
"text-disabled bg-disabled-background cursor-not-allowed": !!option.disabled,
|
|
137
|
-
"bg-menu-background text-menu-text hover:brightness-90 cursor-pointer": !option.disabled,
|
|
138
|
-
"rounded-b-lg": index === filteredOptions.length - 1
|
|
139
|
-
}
|
|
140
|
-
),
|
|
141
|
-
onClick: () => {
|
|
142
|
-
if (!option.disabled) {
|
|
143
|
-
onChange(option.value);
|
|
144
|
-
}
|
|
145
|
-
},
|
|
146
|
-
children: option.label
|
|
147
|
-
}
|
|
148
|
-
) }, `item${index}`))
|
|
149
|
-
]
|
|
150
|
-
}
|
|
151
|
-
)
|
|
152
|
-
] }) })
|
|
153
|
-
] });
|
|
102
|
+
// src/util/simpleSearch.ts
|
|
103
|
+
var MultiSearchWithMapping = (search, objects, mapping) => {
|
|
104
|
+
return objects.filter((object) => {
|
|
105
|
+
const mappedSearchKeywords = mapping(object).map((value) => value.toLowerCase().trim());
|
|
106
|
+
return !!mappedSearchKeywords.find((value) => value.includes(search.toLowerCase().trim()));
|
|
107
|
+
});
|
|
154
108
|
};
|
|
155
109
|
|
|
156
|
-
// src/components/user-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
useRef,
|
|
160
|
-
useState as useState4,
|
|
161
|
-
forwardRef
|
|
162
|
-
} from "react";
|
|
163
|
-
import clsx2 from "clsx";
|
|
110
|
+
// src/components/user-action/Input.tsx
|
|
111
|
+
var import_react4 = require("react");
|
|
112
|
+
var import_clsx2 = __toESM(require("clsx"), 1);
|
|
164
113
|
|
|
165
114
|
// src/hooks/useSaveDelay.ts
|
|
166
|
-
|
|
115
|
+
var import_react3 = require("react");
|
|
167
116
|
function useSaveDelay(setNotificationStatus, delay) {
|
|
168
|
-
const [updateTimer, setUpdateTimer] =
|
|
169
|
-
const [notificationTimer, setNotificationTimer] =
|
|
117
|
+
const [updateTimer, setUpdateTimer] = (0, import_react3.useState)(void 0);
|
|
118
|
+
const [notificationTimer, setNotificationTimer] = (0, import_react3.useState)(void 0);
|
|
170
119
|
const restartTimer = (onSave) => {
|
|
171
120
|
clearTimeout(updateTimer);
|
|
172
121
|
setUpdateTimer(setTimeout(() => {
|
|
@@ -193,7 +142,7 @@ function useSaveDelay(setNotificationStatus, delay) {
|
|
|
193
142
|
setNotificationStatus(false);
|
|
194
143
|
}
|
|
195
144
|
};
|
|
196
|
-
|
|
145
|
+
(0, import_react3.useEffect)(() => {
|
|
197
146
|
return () => {
|
|
198
147
|
clearTimeout(updateTimer);
|
|
199
148
|
clearTimeout(notificationTimer);
|
|
@@ -205,18 +154,19 @@ function useSaveDelay(setNotificationStatus, delay) {
|
|
|
205
154
|
// src/util/noop.ts
|
|
206
155
|
var noop = () => void 0;
|
|
207
156
|
|
|
208
|
-
// src/components/user-
|
|
209
|
-
|
|
210
|
-
var
|
|
157
|
+
// src/components/user-action/Input.tsx
|
|
158
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
159
|
+
var Input = ({
|
|
211
160
|
id,
|
|
212
161
|
type = "text",
|
|
213
162
|
value,
|
|
214
163
|
label,
|
|
215
164
|
onChange = noop,
|
|
216
|
-
|
|
217
|
-
className = "",
|
|
165
|
+
onChangeText = noop,
|
|
218
166
|
onEditCompleted,
|
|
167
|
+
className = "",
|
|
219
168
|
expanded = true,
|
|
169
|
+
autoFocus,
|
|
220
170
|
onBlur,
|
|
221
171
|
containerClassName,
|
|
222
172
|
...restProps
|
|
@@ -225,28 +175,28 @@ var ControlledInput = ({
|
|
|
225
175
|
restartTimer,
|
|
226
176
|
clearUpdateTimer
|
|
227
177
|
} = useSaveDelay(() => void 0, 3e3);
|
|
228
|
-
const ref = useRef(null);
|
|
229
|
-
|
|
230
|
-
if (
|
|
178
|
+
const ref = (0, import_react4.useRef)(null);
|
|
179
|
+
(0, import_react4.useEffect)(() => {
|
|
180
|
+
if (autoFocus) {
|
|
231
181
|
ref.current?.focus();
|
|
232
182
|
}
|
|
233
|
-
}, [
|
|
234
|
-
return /* @__PURE__ */
|
|
235
|
-
label && /* @__PURE__ */
|
|
236
|
-
/* @__PURE__ */
|
|
183
|
+
}, [autoFocus]);
|
|
184
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: (0, import_clsx2.default)({ "w-full": expanded }, containerClassName), children: [
|
|
185
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Label, { ...label, htmlFor: id, className: (0, import_clsx2.default)("mb-1", label.className) }),
|
|
186
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
237
187
|
"input",
|
|
238
188
|
{
|
|
239
189
|
ref,
|
|
240
190
|
value,
|
|
241
191
|
id,
|
|
242
192
|
type,
|
|
243
|
-
className
|
|
193
|
+
className,
|
|
244
194
|
onBlur: (event) => {
|
|
245
195
|
if (onBlur) {
|
|
246
196
|
onBlur(event);
|
|
247
197
|
}
|
|
248
198
|
if (onEditCompleted) {
|
|
249
|
-
onEditCompleted(event.target.value
|
|
199
|
+
onEditCompleted(event.target.value);
|
|
250
200
|
clearUpdateTimer();
|
|
251
201
|
}
|
|
252
202
|
},
|
|
@@ -254,19 +204,19 @@ var ControlledInput = ({
|
|
|
254
204
|
const value2 = e.target.value;
|
|
255
205
|
if (onEditCompleted) {
|
|
256
206
|
restartTimer(() => {
|
|
257
|
-
onEditCompleted(value2
|
|
207
|
+
onEditCompleted(value2);
|
|
258
208
|
clearUpdateTimer();
|
|
259
209
|
});
|
|
260
210
|
}
|
|
261
|
-
onChange(
|
|
262
|
-
|
|
211
|
+
onChange(e);
|
|
212
|
+
onChangeText(value2);
|
|
263
213
|
},
|
|
264
214
|
...restProps
|
|
265
215
|
}
|
|
266
216
|
)
|
|
267
217
|
] });
|
|
268
218
|
};
|
|
269
|
-
var FormInput = forwardRef(function FormInput2({
|
|
219
|
+
var FormInput = (0, import_react4.forwardRef)(function FormInput2({
|
|
270
220
|
id,
|
|
271
221
|
labelText,
|
|
272
222
|
errorText,
|
|
@@ -277,14 +227,13 @@ var FormInput = forwardRef(function FormInput2({
|
|
|
277
227
|
required,
|
|
278
228
|
...restProps
|
|
279
229
|
}, ref) {
|
|
280
|
-
const input = /* @__PURE__ */
|
|
230
|
+
const input = /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
281
231
|
"input",
|
|
282
232
|
{
|
|
283
233
|
ref,
|
|
284
234
|
id,
|
|
285
235
|
...restProps,
|
|
286
|
-
className:
|
|
287
|
-
"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",
|
|
236
|
+
className: (0, import_clsx2.default)(
|
|
288
237
|
{
|
|
289
238
|
"focus:border-primary focus:ring-primary": !errorText,
|
|
290
239
|
"focus:border-negative focus:ring-negative text-negative": !!errorText
|
|
@@ -293,34 +242,125 @@ var FormInput = forwardRef(function FormInput2({
|
|
|
293
242
|
)
|
|
294
243
|
}
|
|
295
244
|
);
|
|
296
|
-
return /* @__PURE__ */
|
|
297
|
-
labelText && /* @__PURE__ */
|
|
245
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: (0, import_clsx2.default)("flex flex-col gap-y-1", containerClassName), children: [
|
|
246
|
+
labelText && /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("label", { htmlFor: id, className: (0, import_clsx2.default)("textstyle-label-md", labelClassName), children: [
|
|
298
247
|
labelText,
|
|
299
|
-
required && /* @__PURE__ */
|
|
248
|
+
required && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "text-primary font-bold", children: "*" })
|
|
300
249
|
] }),
|
|
301
250
|
input,
|
|
302
|
-
errorText && /* @__PURE__ */
|
|
251
|
+
errorText && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("label", { htmlFor: id, className: (0, import_clsx2.default)("text-negative", errorClassName), children: errorText })
|
|
303
252
|
] });
|
|
304
253
|
});
|
|
305
254
|
|
|
306
|
-
// src/components/user-
|
|
307
|
-
|
|
255
|
+
// src/components/user-action/Select.tsx
|
|
256
|
+
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
257
|
+
var Select = ({
|
|
258
|
+
value,
|
|
259
|
+
label,
|
|
260
|
+
options,
|
|
261
|
+
onChange,
|
|
262
|
+
isHidingCurrentValue = true,
|
|
263
|
+
hintText = "",
|
|
264
|
+
showDisabledOptions = true,
|
|
265
|
+
isDisabled,
|
|
266
|
+
className,
|
|
267
|
+
textColor = "text-menu-text",
|
|
268
|
+
hoverColor = "hover:brightness-90",
|
|
269
|
+
additionalItems,
|
|
270
|
+
selectedDisplayOverwrite
|
|
271
|
+
}) => {
|
|
272
|
+
let filteredOptions = isHidingCurrentValue ? options.filter((option) => option.value !== value) : options;
|
|
273
|
+
if (!showDisabledOptions) {
|
|
274
|
+
filteredOptions = filteredOptions.filter((value2) => !value2.disabled);
|
|
275
|
+
}
|
|
276
|
+
const selectedOption = options.find((option) => option.value === value);
|
|
277
|
+
if (value !== void 0 && selectedOption === void 0 && selectedDisplayOverwrite === void 0) {
|
|
278
|
+
console.warn("The selected value is not found in the options list. This might be an error on your part or default behavior if it is complex data type on which === does not work. In case of the latter use selectedDisplayOverwrite to set your selected text or component");
|
|
279
|
+
}
|
|
280
|
+
const borderColor = "border-menu-border";
|
|
281
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: (0, import_clsx3.default)(className), children: [
|
|
282
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Label, { ...label, labelType: label.labelType ?? "labelBig", className: (0, import_clsx3.default)("mb-1", label.className) }),
|
|
283
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_react5.Menu, { as: "div", className: "relative text-menu-text", children: ({ open }) => /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
284
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
285
|
+
import_react5.Menu.Button,
|
|
286
|
+
{
|
|
287
|
+
className: (0, import_clsx3.default)(
|
|
288
|
+
"inline-flex w-full justify-between items-center rounded-t-lg border-2 px-4 py-2 font-medium bg-menu-background text-menu-text",
|
|
289
|
+
textColor,
|
|
290
|
+
borderColor,
|
|
291
|
+
{
|
|
292
|
+
"rounded-b-lg": !open,
|
|
293
|
+
[hoverColor]: !isDisabled,
|
|
294
|
+
"bg-disabled-background cursor-not-allowed text-disabled": isDisabled
|
|
295
|
+
}
|
|
296
|
+
),
|
|
297
|
+
disabled: isDisabled,
|
|
298
|
+
children: [
|
|
299
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { children: selectedDisplayOverwrite ?? selectedOption?.label ?? hintText }),
|
|
300
|
+
open ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_lucide_react.ChevronUp, {}) : /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_lucide_react.ChevronDown, {})
|
|
301
|
+
]
|
|
302
|
+
}
|
|
303
|
+
),
|
|
304
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
305
|
+
import_react5.Menu.Items,
|
|
306
|
+
{
|
|
307
|
+
className: "absolute w-full z-10 rounded-b-lg bg-menu-background text-menu-text shadow-lg max-h-[500px] overflow-y-auto",
|
|
308
|
+
children: [
|
|
309
|
+
(additionalItems ?? []).map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
310
|
+
"div",
|
|
311
|
+
{
|
|
312
|
+
className: (0, import_clsx3.default)(borderColor, "px-4 py-2 overflow-hidden whitespace-nowrap text-ellipsis border-2 border-t-0", {
|
|
313
|
+
"border-b-0 rounded-b-lg": filteredOptions.length === 0 && index === (additionalItems?.length ?? 1) - 1
|
|
314
|
+
}),
|
|
315
|
+
children: item
|
|
316
|
+
},
|
|
317
|
+
`additionalItems${index}`
|
|
318
|
+
)),
|
|
319
|
+
filteredOptions.map((option, index) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_react5.Menu.Item, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
320
|
+
"div",
|
|
321
|
+
{
|
|
322
|
+
className: (0, import_clsx3.default)(
|
|
323
|
+
"px-4 py-2 overflow-hidden whitespace-nowrap text-ellipsis border-2 border-t-0 cursor-pointer",
|
|
324
|
+
option.className,
|
|
325
|
+
borderColor,
|
|
326
|
+
{
|
|
327
|
+
"brightness-90": option.value === value,
|
|
328
|
+
"brightness-95": index % 2 === 1,
|
|
329
|
+
"text-disabled bg-disabled-background cursor-not-allowed": !!option.disabled,
|
|
330
|
+
"bg-menu-background text-menu-text hover:brightness-90 cursor-pointer": !option.disabled,
|
|
331
|
+
"rounded-b-lg": index === filteredOptions.length - 1
|
|
332
|
+
}
|
|
333
|
+
),
|
|
334
|
+
onClick: () => {
|
|
335
|
+
if (!option.disabled) {
|
|
336
|
+
onChange(option.value);
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
children: option.label
|
|
340
|
+
}
|
|
341
|
+
) }, `item${index}`))
|
|
342
|
+
]
|
|
343
|
+
}
|
|
344
|
+
)
|
|
345
|
+
] }) })
|
|
346
|
+
] });
|
|
347
|
+
};
|
|
308
348
|
var SearchableSelect = ({
|
|
309
349
|
value,
|
|
310
350
|
options,
|
|
311
351
|
searchMapping,
|
|
312
352
|
...selectProps
|
|
313
353
|
}) => {
|
|
314
|
-
const [search, setSearch] =
|
|
354
|
+
const [search, setSearch] = (0, import_react6.useState)("");
|
|
315
355
|
const filteredOptions = MultiSearchWithMapping(search, options, searchMapping);
|
|
316
|
-
return /* @__PURE__ */
|
|
356
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
317
357
|
Select,
|
|
318
358
|
{
|
|
319
359
|
value,
|
|
320
360
|
options: filteredOptions,
|
|
321
|
-
additionalItems: [/* @__PURE__ */
|
|
322
|
-
/* @__PURE__ */
|
|
323
|
-
/* @__PURE__ */
|
|
361
|
+
additionalItems: [/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "row gap-x-2 items-center", children: [
|
|
362
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Input, { autoFocus: true, value: search, onChangeText: setSearch }),
|
|
363
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_lucide_react.Search, {})
|
|
324
364
|
] }, "selectSearch")],
|
|
325
365
|
...selectProps
|
|
326
366
|
}
|
|
@@ -328,17 +368,26 @@ var SearchableSelect = ({
|
|
|
328
368
|
};
|
|
329
369
|
|
|
330
370
|
// src/components/properties/PropertyBase.tsx
|
|
331
|
-
|
|
332
|
-
|
|
371
|
+
var import_lucide_react2 = require("lucide-react");
|
|
372
|
+
var import_clsx5 = __toESM(require("clsx"), 1);
|
|
333
373
|
|
|
334
|
-
// src/components/Button.tsx
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
var
|
|
374
|
+
// src/components/user-action/Button.tsx
|
|
375
|
+
var import_clsx4 = __toESM(require("clsx"), 1);
|
|
376
|
+
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
377
|
+
var paddingMapping = {
|
|
338
378
|
small: "btn-sm",
|
|
339
379
|
medium: "btn-md",
|
|
340
380
|
large: "btn-lg"
|
|
341
381
|
};
|
|
382
|
+
var iconPaddingMapping = {
|
|
383
|
+
small: "icon-btn-sm",
|
|
384
|
+
medium: "icon-btn-md",
|
|
385
|
+
large: "icon-btn-lg"
|
|
386
|
+
};
|
|
387
|
+
var ButtonUtil = {
|
|
388
|
+
paddingMapping,
|
|
389
|
+
iconPaddingMapping
|
|
390
|
+
};
|
|
342
391
|
var TextButton = ({
|
|
343
392
|
children,
|
|
344
393
|
disabled = false,
|
|
@@ -351,32 +400,34 @@ var TextButton = ({
|
|
|
351
400
|
...restProps
|
|
352
401
|
}) => {
|
|
353
402
|
const colorClasses = {
|
|
403
|
+
primary: "bg-transparent text-button-text-primary-text",
|
|
354
404
|
negative: "bg-transparent text-button-text-negative-text",
|
|
355
405
|
neutral: "bg-transparent text-button-text-neutral-text"
|
|
356
406
|
}[color];
|
|
357
407
|
const iconColorClasses = {
|
|
408
|
+
primary: "text-button-text-primary-icon",
|
|
358
409
|
negative: "text-button-text-negative-icon",
|
|
359
410
|
neutral: "text-button-text-neutral-icon"
|
|
360
411
|
}[color];
|
|
361
|
-
return /* @__PURE__ */
|
|
412
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
|
|
362
413
|
"button",
|
|
363
414
|
{
|
|
364
415
|
onClick: disabled ? void 0 : onClick,
|
|
365
416
|
disabled: disabled || onClick === void 0,
|
|
366
|
-
className:
|
|
417
|
+
className: (0, import_clsx4.default)(
|
|
367
418
|
className,
|
|
368
419
|
{
|
|
369
420
|
"text-disabled-text": disabled,
|
|
370
|
-
[
|
|
421
|
+
[(0, import_clsx4.default)(colorClasses, "hover:bg-button-text-hover-background rounded-full")]: !disabled
|
|
371
422
|
},
|
|
372
|
-
|
|
423
|
+
ButtonUtil.paddingMapping[size]
|
|
373
424
|
),
|
|
374
425
|
...restProps,
|
|
375
426
|
children: [
|
|
376
|
-
startIcon && /* @__PURE__ */
|
|
427
|
+
startIcon && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
377
428
|
"span",
|
|
378
429
|
{
|
|
379
|
-
className:
|
|
430
|
+
className: (0, import_clsx4.default)({
|
|
380
431
|
[iconColorClasses]: !disabled,
|
|
381
432
|
[`text-disabled-icon`]: disabled
|
|
382
433
|
}),
|
|
@@ -384,10 +435,10 @@ var TextButton = ({
|
|
|
384
435
|
}
|
|
385
436
|
),
|
|
386
437
|
children,
|
|
387
|
-
endIcon && /* @__PURE__ */
|
|
438
|
+
endIcon && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
388
439
|
"span",
|
|
389
440
|
{
|
|
390
|
-
className:
|
|
441
|
+
className: (0, import_clsx4.default)({
|
|
391
442
|
[iconColorClasses]: !disabled,
|
|
392
443
|
[`text-disabled-icon`]: disabled
|
|
393
444
|
}),
|
|
@@ -400,7 +451,7 @@ var TextButton = ({
|
|
|
400
451
|
};
|
|
401
452
|
|
|
402
453
|
// src/components/properties/PropertyBase.tsx
|
|
403
|
-
|
|
454
|
+
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
404
455
|
var defaultPropertyBaseTranslation = {
|
|
405
456
|
en: {
|
|
406
457
|
remove: "Remove"
|
|
@@ -422,11 +473,11 @@ var PropertyBase = ({
|
|
|
422
473
|
}) => {
|
|
423
474
|
const translation = useTranslation(defaultPropertyBaseTranslation, overwriteTranslation);
|
|
424
475
|
const requiredAndNoValue = softRequired && !hasValue;
|
|
425
|
-
return /* @__PURE__ */
|
|
426
|
-
/* @__PURE__ */
|
|
476
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: (0, import_clsx5.default)("row gap-x-0 group", className), children: [
|
|
477
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
427
478
|
"div",
|
|
428
479
|
{
|
|
429
|
-
className:
|
|
480
|
+
className: (0, import_clsx5.default)("row gap-x-2 !w-[200px] px-4 py-2 items-center rounded-l-xl border-2 border-r-0", {
|
|
430
481
|
"bg-gray-100 text-black group-hover:border-primary border-gray-400": !requiredAndNoValue,
|
|
431
482
|
"bg-warning text-surface-warning group-hover:border-warning border-warning/90": requiredAndNoValue
|
|
432
483
|
}, className),
|
|
@@ -436,22 +487,22 @@ var PropertyBase = ({
|
|
|
436
487
|
]
|
|
437
488
|
}
|
|
438
489
|
),
|
|
439
|
-
/* @__PURE__ */
|
|
490
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
440
491
|
"div",
|
|
441
492
|
{
|
|
442
|
-
className:
|
|
493
|
+
className: (0, import_clsx5.default)("row grow justify-between items-center rounded-r-xl border-2 border-l-0", {
|
|
443
494
|
"bg-white group-hover:border-primary border-gray-400": !requiredAndNoValue,
|
|
444
495
|
"bg-surface-warning group-hover:border-warning border-warning/90": requiredAndNoValue
|
|
445
496
|
}, className),
|
|
446
497
|
children: [
|
|
447
498
|
input({ softRequired, hasValue }),
|
|
448
|
-
requiredAndNoValue && /* @__PURE__ */
|
|
449
|
-
onRemove && /* @__PURE__ */
|
|
499
|
+
requiredAndNoValue && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "text-warning pr-4", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_lucide_react2.AlertTriangle, { size: 24 }) }),
|
|
500
|
+
onRemove && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
450
501
|
TextButton,
|
|
451
502
|
{
|
|
452
503
|
onClick: onRemove,
|
|
453
504
|
color: "negative",
|
|
454
|
-
className:
|
|
505
|
+
className: (0, import_clsx5.default)("pr-4 items-center", { "!text-transparent": !hasValue || readOnly }),
|
|
455
506
|
disabled: !hasValue || readOnly,
|
|
456
507
|
children: translation.remove
|
|
457
508
|
}
|
|
@@ -463,7 +514,7 @@ var PropertyBase = ({
|
|
|
463
514
|
};
|
|
464
515
|
|
|
465
516
|
// src/components/properties/SelectProperty.tsx
|
|
466
|
-
|
|
517
|
+
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
467
518
|
var defaultSingleSelectPropertyTranslation = {
|
|
468
519
|
en: {
|
|
469
520
|
select: "Select"
|
|
@@ -484,7 +535,7 @@ var SingleSelectProperty = ({
|
|
|
484
535
|
}) => {
|
|
485
536
|
const translation = useTranslation(defaultSingleSelectPropertyTranslation, overwriteTranslation);
|
|
486
537
|
const hasValue = value !== void 0;
|
|
487
|
-
return /* @__PURE__ */
|
|
538
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
488
539
|
PropertyBase,
|
|
489
540
|
{
|
|
490
541
|
name,
|
|
@@ -492,19 +543,19 @@ var SingleSelectProperty = ({
|
|
|
492
543
|
readOnly,
|
|
493
544
|
softRequired,
|
|
494
545
|
hasValue,
|
|
495
|
-
icon: /* @__PURE__ */
|
|
496
|
-
input: ({ softRequired: softRequired2 }) => /* @__PURE__ */
|
|
546
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_lucide_react3.List, { size: 16 }),
|
|
547
|
+
input: ({ softRequired: softRequired2 }) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
497
548
|
"div",
|
|
498
549
|
{
|
|
499
|
-
className:
|
|
500
|
-
children: /* @__PURE__ */
|
|
550
|
+
className: (0, import_clsx6.default)("row grow py-2 px-4 cursor-pointer", { "text-warning": softRequired2 && !hasValue }),
|
|
551
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
501
552
|
SearchableSelect,
|
|
502
553
|
{
|
|
503
554
|
...multiSelectProps,
|
|
504
555
|
value,
|
|
505
556
|
options,
|
|
506
557
|
isDisabled: readOnly,
|
|
507
|
-
className:
|
|
558
|
+
className: (0, import_clsx6.default)("w-full", { "bg-surface-warning": softRequired2 && !hasValue }),
|
|
508
559
|
hintText: `${translation.select}...`
|
|
509
560
|
}
|
|
510
561
|
)
|
|
@@ -513,7 +564,8 @@ var SingleSelectProperty = ({
|
|
|
513
564
|
}
|
|
514
565
|
);
|
|
515
566
|
};
|
|
516
|
-
export
|
|
567
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
568
|
+
0 && (module.exports = {
|
|
517
569
|
SingleSelectProperty
|
|
518
|
-
};
|
|
519
|
-
//# sourceMappingURL=SelectProperty.
|
|
570
|
+
});
|
|
571
|
+
//# sourceMappingURL=SelectProperty.cjs.map
|