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