@helpwave/hightide 0.0.13 → 0.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/coloring/shading.d.mts +5 -0
- package/dist/coloring/shading.d.ts +5 -2
- package/dist/coloring/shading.js +80 -38
- package/dist/coloring/shading.js.map +1 -0
- package/dist/coloring/shading.mjs +47 -0
- package/dist/coloring/shading.mjs.map +1 -0
- package/dist/coloring/types.d.mts +13 -0
- package/dist/coloring/types.d.ts +8 -6
- package/dist/coloring/types.js +31 -1
- package/dist/coloring/types.js.map +1 -0
- package/dist/coloring/types.mjs +6 -0
- package/dist/coloring/types.mjs.map +1 -0
- package/dist/components/Avatar.d.mts +17 -0
- package/dist/components/Avatar.d.ts +9 -6
- package/dist/components/Avatar.js +79 -29
- package/dist/components/Avatar.js.map +1 -0
- package/dist/components/Avatar.mjs +48 -0
- package/dist/components/Avatar.mjs.map +1 -0
- package/dist/components/AvatarGroup.d.mts +14 -0
- package/dist/components/AvatarGroup.d.ts +7 -3
- package/dist/components/AvatarGroup.js +117 -12
- package/dist/components/AvatarGroup.js.map +1 -0
- package/dist/components/AvatarGroup.mjs +81 -0
- package/dist/components/AvatarGroup.mjs.map +1 -0
- package/dist/components/BreadCrumb.d.mts +19 -0
- package/dist/components/BreadCrumb.d.ts +6 -3
- package/dist/components/BreadCrumb.js +49 -11
- package/dist/components/BreadCrumb.js.map +1 -0
- package/dist/components/BreadCrumb.mjs +15 -0
- package/dist/components/BreadCrumb.mjs.map +1 -0
- package/dist/components/Button.d.mts +44 -0
- package/dist/components/Button.d.ts +16 -13
- package/dist/components/Button.js +232 -80
- package/dist/components/Button.js.map +1 -0
- package/dist/components/Button.mjs +198 -0
- package/dist/components/Button.mjs.map +1 -0
- package/dist/components/ChipList.d.mts +24 -0
- package/dist/components/ChipList.d.ts +10 -7
- package/dist/components/ChipList.js +103 -36
- package/dist/components/ChipList.js.map +1 -0
- package/dist/components/ChipList.mjs +69 -0
- package/dist/components/ChipList.mjs.map +1 -0
- package/dist/components/Circle.d.mts +10 -0
- package/dist/components/Circle.d.ts +7 -3
- package/dist/components/Circle.js +61 -9
- package/dist/components/Circle.js.map +1 -0
- package/dist/components/Circle.mjs +27 -0
- package/dist/components/Circle.mjs.map +1 -0
- package/dist/components/ErrorComponent.d.mts +18 -0
- package/dist/components/ErrorComponent.d.ts +9 -4
- package/dist/components/ErrorComponent.js +86 -17
- package/dist/components/ErrorComponent.js.map +1 -0
- package/dist/components/ErrorComponent.mjs +53 -0
- package/dist/components/ErrorComponent.mjs.map +1 -0
- package/dist/components/Expandable.d.mts +33 -0
- package/dist/components/Expandable.d.ts +8 -5
- package/dist/components/Expandable.js +79 -15
- package/dist/components/Expandable.js.map +1 -0
- package/dist/components/Expandable.mjs +45 -0
- package/dist/components/Expandable.mjs.map +1 -0
- package/dist/components/HelpwaveBadge.d.mts +14 -0
- package/dist/components/HelpwaveBadge.d.ts +6 -3
- package/dist/components/HelpwaveBadge.js +125 -13
- package/dist/components/HelpwaveBadge.js.map +1 -0
- package/dist/components/HelpwaveBadge.mjs +91 -0
- package/dist/components/HelpwaveBadge.mjs.map +1 -0
- package/dist/components/HideableContentSection.d.mts +14 -0
- package/dist/components/HideableContentSection.d.ts +7 -3
- package/dist/components/HideableContentSection.js +69 -14
- package/dist/components/HideableContentSection.js.map +1 -0
- package/dist/components/HideableContentSection.mjs +35 -0
- package/dist/components/HideableContentSection.mjs.map +1 -0
- package/dist/components/InputGroup.d.mts +17 -0
- package/dist/components/InputGroup.d.ts +7 -3
- package/dist/components/InputGroup.js +96 -32
- package/dist/components/InputGroup.js.map +1 -0
- package/dist/components/InputGroup.mjs +62 -0
- package/dist/components/InputGroup.mjs.map +1 -0
- package/dist/components/LoadingAndErrorComponent.d.mts +24 -0
- package/dist/components/LoadingAndErrorComponent.d.ts +12 -5
- package/dist/components/LoadingAndErrorComponent.js +178 -23
- package/dist/components/LoadingAndErrorComponent.js.map +1 -0
- package/dist/components/LoadingAndErrorComponent.mjs +145 -0
- package/dist/components/LoadingAndErrorComponent.mjs.map +1 -0
- package/dist/components/LoadingAnimation.d.mts +18 -0
- package/dist/components/LoadingAnimation.d.ts +9 -4
- package/dist/components/LoadingAnimation.js +124 -16
- package/dist/components/LoadingAnimation.js.map +1 -0
- package/dist/components/LoadingAnimation.mjs +90 -0
- package/dist/components/LoadingAnimation.mjs.map +1 -0
- package/dist/components/LoadingButton.d.mts +10 -0
- package/dist/components/LoadingButton.d.ts +7 -3
- package/dist/components/LoadingButton.js +169 -9
- package/dist/components/LoadingButton.js.map +1 -0
- package/dist/components/LoadingButton.mjs +135 -0
- package/dist/components/LoadingButton.mjs.map +1 -0
- package/dist/components/MarkdownInterpreter.d.mts +28 -0
- package/dist/components/MarkdownInterpreter.d.ts +8 -5
- package/dist/components/MarkdownInterpreter.js +246 -175
- package/dist/components/MarkdownInterpreter.js.map +1 -0
- package/dist/components/MarkdownInterpreter.mjs +235 -0
- package/dist/components/MarkdownInterpreter.mjs.map +1 -0
- package/dist/components/Pagination.d.mts +19 -0
- package/dist/components/Pagination.d.ts +9 -4
- package/dist/components/Pagination.js +100 -23
- package/dist/components/Pagination.js.map +1 -0
- package/dist/components/Pagination.mjs +67 -0
- package/dist/components/Pagination.mjs.map +1 -0
- package/dist/components/Profile.d.mts +31 -0
- package/dist/components/Profile.d.ts +8 -5
- package/dist/components/Profile.js +194 -42
- package/dist/components/Profile.js.map +1 -0
- package/dist/components/Profile.mjs +162 -0
- package/dist/components/Profile.mjs.map +1 -0
- package/dist/components/ProgressIndicator.d.mts +24 -0
- package/dist/components/ProgressIndicator.d.ts +6 -3
- package/dist/components/ProgressIndicator.js +82 -22
- package/dist/components/ProgressIndicator.js.map +1 -0
- package/dist/components/ProgressIndicator.mjs +59 -0
- package/dist/components/ProgressIndicator.mjs.map +1 -0
- package/dist/components/Ring.d.mts +35 -0
- package/dist/components/Ring.d.ts +13 -9
- package/dist/components/Ring.js +331 -107
- package/dist/components/Ring.js.map +1 -0
- package/dist/components/Ring.mjs +299 -0
- package/dist/components/Ring.mjs.map +1 -0
- package/dist/components/SearchableList.d.mts +22 -0
- package/dist/components/SearchableList.d.ts +9 -5
- package/dist/components/SearchableList.js +268 -24
- package/dist/components/SearchableList.js.map +1 -0
- package/dist/components/SearchableList.mjs +241 -0
- package/dist/components/SearchableList.mjs.map +1 -0
- package/dist/components/SortButton.d.mts +15 -0
- package/dist/components/SortButton.d.ts +9 -4
- package/dist/components/SortButton.js +131 -8
- package/dist/components/SortButton.js.map +1 -0
- package/dist/components/SortButton.mjs +97 -0
- package/dist/components/SortButton.mjs.map +1 -0
- package/dist/components/StepperBar.d.mts +28 -0
- package/dist/components/StepperBar.d.ts +10 -5
- package/dist/components/StepperBar.js +248 -44
- package/dist/components/StepperBar.js.map +1 -0
- package/dist/components/StepperBar.mjs +216 -0
- package/dist/components/StepperBar.mjs.map +1 -0
- package/dist/components/Table.d.mts +90 -0
- package/dist/components/Table.d.ts +20 -17
- package/dist/components/Table.js +396 -170
- package/dist/components/Table.js.map +1 -0
- package/dist/components/Table.mjs +370 -0
- package/dist/components/Table.mjs.map +1 -0
- package/dist/components/TechRadar.d.mts +39 -0
- package/dist/components/TechRadar.d.ts +5 -2
- package/dist/components/TechRadar.js +241 -189
- package/dist/components/TechRadar.js.map +1 -0
- package/dist/components/TechRadar.mjs +208 -0
- package/dist/components/TechRadar.mjs.map +1 -0
- package/dist/components/TextImage.d.mts +25 -0
- package/dist/components/TextImage.d.ts +9 -4
- package/dist/components/TextImage.js +121 -29
- package/dist/components/TextImage.js.map +1 -0
- package/dist/components/TextImage.mjs +86 -0
- package/dist/components/TextImage.mjs.map +1 -0
- package/dist/components/TimeDisplay.d.mts +35 -0
- package/dist/components/TimeDisplay.d.ts +8 -3
- package/dist/components/TimeDisplay.js +134 -81
- package/dist/components/TimeDisplay.js.map +1 -0
- package/dist/components/TimeDisplay.mjs +109 -0
- package/dist/components/TimeDisplay.mjs.map +1 -0
- package/dist/components/Tooltip.d.mts +37 -0
- package/dist/components/Tooltip.d.ts +7 -4
- package/dist/components/Tooltip.js +135 -37
- package/dist/components/Tooltip.js.map +1 -0
- package/dist/components/Tooltip.mjs +109 -0
- package/dist/components/Tooltip.mjs.map +1 -0
- package/dist/components/VerticalDivider.d.mts +15 -0
- package/dist/components/VerticalDivider.d.ts +6 -2
- package/dist/components/VerticalDivider.js +80 -6
- package/dist/components/VerticalDivider.js.map +1 -0
- package/dist/components/VerticalDivider.mjs +56 -0
- package/dist/components/VerticalDivider.mjs.map +1 -0
- package/dist/components/date/DatePicker.d.mts +32 -0
- package/dist/components/date/DatePicker.d.ts +13 -7
- package/dist/components/date/DatePicker.js +624 -55
- package/dist/components/date/DatePicker.js.map +1 -0
- package/dist/components/date/DatePicker.mjs +591 -0
- package/dist/components/date/DatePicker.mjs.map +1 -0
- package/dist/components/date/DayPicker.d.mts +20 -0
- package/dist/components/date/DayPicker.d.ts +8 -4
- package/dist/components/date/DayPicker.js +232 -36
- package/dist/components/date/DayPicker.js.map +1 -0
- package/dist/components/date/DayPicker.mjs +195 -0
- package/dist/components/date/DayPicker.mjs.map +1 -0
- package/dist/components/date/TimePicker.d.mts +15 -0
- package/dist/components/date/TimePicker.d.ts +7 -4
- package/dist/components/date/TimePicker.js +196 -75
- package/dist/components/date/TimePicker.js.map +1 -0
- package/dist/components/date/TimePicker.mjs +164 -0
- package/dist/components/date/TimePicker.mjs.map +1 -0
- package/dist/components/date/YearMonthPicker.d.mts +15 -0
- package/dist/components/date/YearMonthPicker.d.ts +7 -3
- package/dist/components/date/YearMonthPicker.js +281 -57
- package/dist/components/date/YearMonthPicker.js.map +1 -0
- package/dist/components/date/YearMonthPicker.mjs +247 -0
- package/dist/components/date/YearMonthPicker.mjs.map +1 -0
- package/dist/components/icons/Helpwave.d.mts +14 -0
- package/dist/components/icons/Helpwave.d.ts +7 -3
- package/dist/components/icons/Helpwave.js +66 -18
- package/dist/components/icons/Helpwave.js.map +1 -0
- package/dist/components/icons/Helpwave.mjs +43 -0
- package/dist/components/icons/Helpwave.mjs.map +1 -0
- package/dist/components/icons/Tag.d.mts +14 -0
- package/dist/components/icons/Tag.d.ts +7 -3
- package/dist/components/icons/Tag.js +59 -11
- package/dist/components/icons/Tag.js.map +1 -0
- package/dist/components/icons/Tag.mjs +25 -0
- package/dist/components/icons/Tag.mjs.map +1 -0
- package/dist/components/layout/Carousel.d.mts +25 -0
- package/dist/components/layout/Carousel.d.ts +6 -3
- package/dist/components/layout/Carousel.js +477 -226
- package/dist/components/layout/Carousel.js.map +1 -0
- package/dist/components/layout/Carousel.mjs +449 -0
- package/dist/components/layout/Carousel.mjs.map +1 -0
- package/dist/components/layout/DividerInserter.d.mts +15 -0
- package/dist/components/layout/DividerInserter.d.ts +7 -3
- package/dist/components/layout/DividerInserter.js +58 -18
- package/dist/components/layout/DividerInserter.js.map +1 -0
- package/dist/components/layout/DividerInserter.mjs +25 -0
- package/dist/components/layout/DividerInserter.mjs.map +1 -0
- package/dist/components/layout/FAQSection.d.mts +26 -0
- package/dist/components/layout/FAQSection.d.ts +9 -6
- package/dist/components/layout/FAQSection.js +336 -13
- package/dist/components/layout/FAQSection.js.map +1 -0
- package/dist/components/layout/FAQSection.mjs +302 -0
- package/dist/components/layout/FAQSection.mjs.map +1 -0
- package/dist/components/layout/Tile.d.mts +37 -0
- package/dist/components/layout/Tile.d.ts +9 -6
- package/dist/components/layout/Tile.js +76 -16
- package/dist/components/layout/Tile.js.map +1 -0
- package/dist/components/layout/Tile.mjs +42 -0
- package/dist/components/layout/Tile.mjs.map +1 -0
- package/dist/components/modals/ConfirmDialog.d.mts +38 -0
- package/dist/components/modals/ConfirmDialog.d.ts +13 -9
- package/dist/components/modals/ConfirmDialog.js +422 -28
- package/dist/components/modals/ConfirmDialog.js.map +1 -0
- package/dist/components/modals/ConfirmDialog.mjs +388 -0
- package/dist/components/modals/ConfirmDialog.mjs.map +1 -0
- package/dist/components/modals/DiscardChangesDialog.d.mts +23 -0
- package/dist/components/modals/DiscardChangesDialog.d.ts +9 -5
- package/dist/components/modals/DiscardChangesDialog.js +406 -23
- package/dist/components/modals/DiscardChangesDialog.js.map +1 -0
- package/dist/components/modals/DiscardChangesDialog.mjs +370 -0
- package/dist/components/modals/DiscardChangesDialog.mjs.map +1 -0
- package/dist/components/modals/InputModal.d.mts +19 -0
- package/dist/components/modals/InputModal.d.ts +14 -4
- package/dist/components/modals/InputModal.js +598 -8
- package/dist/components/modals/InputModal.js.map +1 -0
- package/dist/components/modals/InputModal.mjs +567 -0
- package/dist/components/modals/InputModal.mjs.map +1 -0
- package/dist/components/modals/LanguageModal.d.mts +21 -0
- package/dist/components/modals/LanguageModal.d.ts +9 -5
- package/dist/components/modals/LanguageModal.js +524 -33
- package/dist/components/modals/LanguageModal.js.map +1 -0
- package/dist/components/modals/LanguageModal.mjs +489 -0
- package/dist/components/modals/LanguageModal.mjs.map +1 -0
- package/dist/components/modals/Modal.d.mts +43 -0
- package/dist/components/modals/Modal.d.ts +13 -8
- package/dist/components/modals/Modal.js +280 -51
- package/dist/components/modals/Modal.js.map +1 -0
- package/dist/components/modals/Modal.mjs +249 -0
- package/dist/components/modals/Modal.mjs.map +1 -0
- package/dist/components/modals/ModalRegister.d.mts +16 -0
- package/dist/components/modals/ModalRegister.d.ts +9 -4
- package/dist/components/modals/ModalRegister.js +61 -26
- package/dist/components/modals/ModalRegister.js.map +1 -0
- package/dist/components/modals/ModalRegister.mjs +37 -0
- package/dist/components/modals/ModalRegister.mjs.map +1 -0
- package/dist/components/properties/CheckboxProperty.d.mts +20 -0
- package/dist/components/properties/CheckboxProperty.d.ts +10 -5
- package/dist/components/properties/CheckboxProperty.js +323 -24
- package/dist/components/properties/CheckboxProperty.js.map +1 -0
- package/dist/components/properties/CheckboxProperty.mjs +291 -0
- package/dist/components/properties/CheckboxProperty.mjs.map +1 -0
- package/dist/components/properties/DateProperty.d.mts +18 -0
- package/dist/components/properties/DateProperty.d.ts +10 -3
- package/dist/components/properties/DateProperty.js +422 -21
- package/dist/components/properties/DateProperty.js.map +1 -0
- package/dist/components/properties/DateProperty.mjs +393 -0
- package/dist/components/properties/DateProperty.mjs.map +1 -0
- package/dist/components/properties/MultiSelectProperty.d.mts +18 -0
- package/dist/components/properties/MultiSelectProperty.d.ts +12 -6
- package/dist/components/properties/MultiSelectProperty.js +815 -31
- package/dist/components/properties/MultiSelectProperty.js.map +1 -0
- package/dist/components/properties/MultiSelectProperty.mjs +787 -0
- package/dist/components/properties/MultiSelectProperty.mjs.map +1 -0
- package/dist/components/properties/NumberProperty.d.mts +21 -0
- package/dist/components/properties/NumberProperty.d.ts +10 -5
- package/dist/components/properties/NumberProperty.js +429 -39
- package/dist/components/properties/NumberProperty.js.map +1 -0
- package/dist/components/properties/NumberProperty.mjs +402 -0
- package/dist/components/properties/NumberProperty.mjs.map +1 -0
- package/dist/components/properties/PropertyBase.d.mts +27 -0
- package/dist/components/properties/PropertyBase.d.ts +9 -5
- package/dist/components/properties/PropertyBase.js +194 -24
- package/dist/components/properties/PropertyBase.js.map +1 -0
- package/dist/components/properties/PropertyBase.mjs +162 -0
- package/dist/components/properties/PropertyBase.mjs.map +1 -0
- package/dist/components/properties/SelectProperty.d.mts +19 -0
- package/dist/components/properties/SelectProperty.d.ts +13 -6
- package/dist/components/properties/SelectProperty.js +547 -19
- package/dist/components/properties/SelectProperty.js.map +1 -0
- package/dist/components/properties/SelectProperty.mjs +520 -0
- package/dist/components/properties/SelectProperty.mjs.map +1 -0
- package/dist/components/properties/TextProperty.d.mts +20 -0
- package/dist/components/properties/TextProperty.d.ts +10 -5
- package/dist/components/properties/TextProperty.js +378 -34
- package/dist/components/properties/TextProperty.js.map +1 -0
- package/dist/components/properties/TextProperty.mjs +346 -0
- package/dist/components/properties/TextProperty.mjs.map +1 -0
- package/dist/components/user-input/Checkbox.d.mts +41 -0
- package/dist/components/user-input/Checkbox.d.ts +9 -5
- package/dist/components/user-input/Checkbox.js +148 -63
- package/dist/components/user-input/Checkbox.js.map +1 -0
- package/dist/components/user-input/Checkbox.mjs +112 -0
- package/dist/components/user-input/Checkbox.mjs.map +1 -0
- package/dist/components/user-input/DateAndTimePicker.d.mts +47 -0
- package/dist/components/user-input/DateAndTimePicker.d.ts +15 -7
- package/dist/components/user-input/DateAndTimePicker.js +831 -60
- package/dist/components/user-input/DateAndTimePicker.js.map +1 -0
- package/dist/components/user-input/DateAndTimePicker.mjs +801 -0
- package/dist/components/user-input/DateAndTimePicker.mjs.map +1 -0
- package/dist/components/user-input/Input.d.mts +64 -0
- package/dist/components/user-input/Input.d.ts +12 -9
- package/dist/components/user-input/Input.js +219 -57
- package/dist/components/user-input/Input.js.map +1 -0
- package/dist/components/user-input/Input.mjs +191 -0
- package/dist/components/user-input/Input.mjs.map +1 -0
- package/dist/components/user-input/Label.d.mts +16 -0
- package/dist/components/user-input/Label.d.ts +8 -4
- package/dist/components/user-input/Label.js +43 -11
- package/dist/components/user-input/Label.js.map +1 -0
- package/dist/components/user-input/Label.mjs +19 -0
- package/dist/components/user-input/Label.mjs.map +1 -0
- package/dist/components/user-input/Menu.d.mts +24 -0
- package/dist/components/user-input/Menu.d.ts +8 -5
- package/dist/components/user-input/Menu.js +162 -25
- package/dist/components/user-input/Menu.js.map +1 -0
- package/dist/components/user-input/Menu.mjs +127 -0
- package/dist/components/user-input/Menu.mjs.map +1 -0
- package/dist/components/user-input/MultiSelect.d.mts +43 -0
- package/dist/components/user-input/MultiSelect.d.ts +12 -8
- package/dist/components/user-input/MultiSelect.js +545 -56
- package/dist/components/user-input/MultiSelect.js.map +1 -0
- package/dist/components/user-input/MultiSelect.mjs +516 -0
- package/dist/components/user-input/MultiSelect.mjs.map +1 -0
- package/dist/components/user-input/ScrollPicker.d.mts +15 -0
- package/dist/components/user-input/ScrollPicker.d.ts +6 -2
- package/dist/components/user-input/ScrollPicker.js +276 -145
- package/dist/components/user-input/ScrollPicker.js.map +1 -0
- package/dist/components/user-input/ScrollPicker.mjs +247 -0
- package/dist/components/user-input/ScrollPicker.mjs.map +1 -0
- package/dist/components/user-input/SearchableSelect.d.mts +14 -0
- package/dist/components/user-input/SearchableSelect.d.ts +9 -3
- package/dist/components/user-input/SearchableSelect.js +334 -13
- package/dist/components/user-input/SearchableSelect.js.map +1 -0
- package/dist/components/user-input/SearchableSelect.mjs +305 -0
- package/dist/components/user-input/SearchableSelect.mjs.map +1 -0
- package/dist/components/user-input/Select.d.mts +36 -0
- package/dist/components/user-input/Select.d.ts +9 -5
- package/dist/components/user-input/Select.js +152 -47
- package/dist/components/user-input/Select.js.map +1 -0
- package/dist/components/user-input/Select.mjs +118 -0
- package/dist/components/user-input/Select.mjs.map +1 -0
- package/dist/components/user-input/Textarea.d.mts +24 -0
- package/dist/components/user-input/Textarea.d.ts +8 -4
- package/dist/components/user-input/Textarea.js +153 -31
- package/dist/components/user-input/Textarea.js.map +1 -0
- package/dist/components/user-input/Textarea.mjs +120 -0
- package/dist/components/user-input/Textarea.mjs.map +1 -0
- package/dist/components/user-input/ToggleableInput.d.mts +35 -0
- package/dist/components/user-input/ToggleableInput.d.ts +6 -3
- package/dist/components/user-input/ToggleableInput.js +161 -38
- package/dist/components/user-input/ToggleableInput.js.map +1 -0
- package/dist/components/user-input/ToggleableInput.mjs +128 -0
- package/dist/components/user-input/ToggleableInput.mjs.map +1 -0
- package/dist/hooks/useHoverState.d.mts +42 -0
- package/dist/hooks/useHoverState.d.ts +5 -3
- package/dist/hooks/useHoverState.js +69 -43
- package/dist/hooks/useHoverState.js.map +1 -0
- package/dist/hooks/useHoverState.mjs +47 -0
- package/dist/hooks/useHoverState.mjs.map +1 -0
- package/dist/hooks/useLanguage.d.mts +21 -0
- package/dist/hooks/useLanguage.d.ts +15 -11
- package/dist/hooks/useLanguage.js +145 -50
- package/dist/hooks/useLanguage.js.map +1 -0
- package/dist/hooks/useLanguage.mjs +115 -0
- package/dist/hooks/useLanguage.mjs.map +1 -0
- package/dist/hooks/useLocalStorage.d.mts +6 -0
- package/dist/hooks/useLocalStorage.d.ts +4 -2
- package/dist/hooks/useLocalStorage.js +79 -23
- package/dist/hooks/useLocalStorage.js.map +1 -0
- package/dist/hooks/useLocalStorage.mjs +59 -0
- package/dist/hooks/useLocalStorage.mjs.map +1 -0
- package/dist/hooks/useOutsideClick.d.mts +5 -0
- package/dist/hooks/useOutsideClick.d.ts +5 -2
- package/dist/hooks/useOutsideClick.js +47 -21
- package/dist/hooks/useOutsideClick.js.map +1 -0
- package/dist/hooks/useOutsideClick.mjs +23 -0
- package/dist/hooks/useOutsideClick.mjs.map +1 -0
- package/dist/hooks/useSaveDelay.d.mts +6 -0
- package/dist/hooks/useSaveDelay.d.ts +2 -1
- package/dist/hooks/useSaveDelay.js +62 -38
- package/dist/hooks/useSaveDelay.js.map +1 -0
- package/dist/hooks/useSaveDelay.mjs +44 -0
- package/dist/hooks/useSaveDelay.mjs.map +1 -0
- package/dist/hooks/useTheme.d.mts +21 -0
- package/dist/hooks/useTheme.d.ts +14 -9
- package/dist/hooks/useTheme.js +65 -29
- package/dist/hooks/useTheme.js.map +1 -0
- package/dist/hooks/useTheme.mjs +40 -0
- package/dist/hooks/useTheme.mjs.map +1 -0
- package/dist/hooks/useTranslation.d.mts +28 -0
- package/dist/hooks/useTranslation.d.ts +9 -5
- package/dist/hooks/useTranslation.js +53 -10
- package/dist/hooks/useTranslation.js.map +1 -0
- package/dist/hooks/useTranslation.mjs +27 -0
- package/dist/hooks/useTranslation.mjs.map +1 -0
- package/dist/index.d.mts +86 -0
- package/dist/index.d.ts +86 -0
- package/dist/index.js +5716 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +5542 -0
- package/dist/index.mjs.map +1 -0
- package/dist/util/array.d.mts +25 -0
- package/dist/util/array.d.ts +9 -7
- package/dist/util/array.js +119 -92
- package/dist/util/array.js.map +1 -0
- package/dist/util/array.mjs +99 -0
- package/dist/util/array.mjs.map +1 -0
- package/dist/util/builder.d.mts +8 -0
- package/dist/util/builder.d.ts +3 -1
- package/dist/util/builder.js +33 -8
- package/dist/util/builder.js.map +1 -0
- package/dist/util/builder.mjs +9 -0
- package/dist/util/builder.mjs.map +1 -0
- package/dist/util/date.d.mts +30 -0
- package/dist/util/date.d.ts +17 -15
- package/dist/util/date.js +184 -123
- package/dist/util/date.js.map +1 -0
- package/dist/util/date.mjs +156 -0
- package/dist/util/date.mjs.map +1 -0
- package/dist/util/easeFunctions.d.mts +11 -0
- package/dist/util/easeFunctions.d.ts +4 -2
- package/dist/util/easeFunctions.js +63 -30
- package/dist/util/easeFunctions.js.map +1 -0
- package/dist/util/easeFunctions.mjs +36 -0
- package/dist/util/easeFunctions.mjs.map +1 -0
- package/dist/util/emailValidation.d.mts +3 -0
- package/dist/util/emailValidation.d.ts +3 -1
- package/dist/util/emailValidation.js +32 -2
- package/dist/util/emailValidation.js.map +1 -0
- package/dist/util/emailValidation.mjs +8 -0
- package/dist/util/emailValidation.mjs.map +1 -0
- package/dist/util/loopingArray.d.mts +25 -0
- package/dist/util/loopingArray.d.ts +4 -2
- package/dist/util/loopingArray.js +89 -59
- package/dist/util/loopingArray.js.map +1 -0
- package/dist/util/loopingArray.mjs +72 -0
- package/dist/util/loopingArray.mjs.map +1 -0
- package/dist/util/math.d.mts +3 -0
- package/dist/util/math.d.ts +3 -1
- package/dist/util/math.js +32 -2
- package/dist/util/math.js.map +1 -0
- package/dist/util/math.mjs +8 -0
- package/dist/util/math.mjs.map +1 -0
- package/dist/util/news.d.mts +103 -0
- package/dist/util/news.d.ts +12 -7
- package/dist/util/news.js +73 -24
- package/dist/util/news.js.map +1 -0
- package/dist/util/news.mjs +48 -0
- package/dist/util/news.mjs.map +1 -0
- package/dist/util/noop.d.mts +3 -0
- package/dist/util/noop.d.ts +3 -1
- package/dist/util/noop.js +31 -1
- package/dist/util/noop.js.map +1 -0
- package/dist/util/noop.mjs +6 -0
- package/dist/util/noop.mjs.map +1 -0
- package/dist/util/simpleSearch.d.mts +50 -0
- package/dist/util/simpleSearch.d.ts +6 -4
- package/dist/util/simpleSearch.js +50 -58
- package/dist/util/simpleSearch.js.map +1 -0
- package/dist/util/simpleSearch.mjs +26 -0
- package/dist/util/simpleSearch.mjs.map +1 -0
- package/dist/util/storage.d.mts +16 -0
- package/dist/util/storage.d.ts +4 -3
- package/dist/util/storage.js +63 -31
- package/dist/util/storage.js.map +1 -0
- package/dist/util/storage.mjs +38 -0
- package/dist/util/storage.mjs.map +1 -0
- package/dist/util/types.d.mts +3 -0
- package/dist/util/types.d.ts +3 -1
- package/dist/util/types.js +19 -1
- package/dist/util/types.js.map +1 -0
- package/dist/util/types.mjs +1 -0
- package/dist/util/types.mjs.map +1 -0
- package/package.json +20 -9
- package/dist/components/Span.d.ts +0 -0
- package/dist/components/Span.js +0 -1
- package/dist/components/examples/InputGroupExample.d.ts +0 -6
- package/dist/components/examples/InputGroupExample.js +0 -21
- package/dist/components/examples/MultiSelectExample.d.ts +0 -7
- package/dist/components/examples/MultiSelectExample.js +0 -27
- package/dist/components/examples/SearchableSelectExample.d.ts +0 -6
- package/dist/components/examples/SearchableSelectExample.js +0 -17
- package/dist/components/examples/SelectExample.d.ts +0 -4
- package/dist/components/examples/SelectExample.js +0 -15
- package/dist/components/examples/StackingModals.d.ts +0 -4
- package/dist/components/examples/StackingModals.js +0 -15
- package/dist/components/examples/TableExample.d.ts +0 -9
- package/dist/components/examples/TableExample.js +0 -92
- package/dist/components/examples/TextareaExample.d.ts +0 -6
- package/dist/components/examples/TextareaExample.js +0 -10
- package/dist/components/examples/TileExample.d.ts +0 -9
- package/dist/components/examples/TileExample.js +0 -9
- package/dist/components/examples/Title.d.ts +0 -0
- package/dist/components/examples/Title.js +0 -1
- package/dist/components/examples/date/DateTimePickerExample.d.ts +0 -10
- package/dist/components/examples/date/DateTimePickerExample.js +0 -21
- package/dist/components/examples/properties/CheckboxPropertyExample.d.ts +0 -8
- package/dist/components/examples/properties/CheckboxPropertyExample.js +0 -13
- package/dist/components/examples/properties/DatePropertyExample.d.ts +0 -8
- package/dist/components/examples/properties/DatePropertyExample.js +0 -23
- package/dist/components/examples/properties/MultiSelectPropertyExample.d.ts +0 -8
- package/dist/components/examples/properties/MultiSelectPropertyExample.js +0 -16
- package/dist/components/examples/properties/NumberPropertyExample.d.ts +0 -6
- package/dist/components/examples/properties/NumberPropertyExample.js +0 -13
- package/dist/components/examples/properties/SelectPropertyExample.d.ts +0 -6
- package/dist/components/examples/properties/SelectPropertyExample.js +0 -18
- package/dist/components/examples/properties/TextPropertyExample.d.ts +0 -8
- package/dist/components/examples/properties/TextPropertyExample.js +0 -13
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare class StorageService {
|
|
2
|
+
private storage;
|
|
3
|
+
constructor(storage: Storage);
|
|
4
|
+
get<T>(key: string): T | null;
|
|
5
|
+
set<T>(key: string, value: T): void;
|
|
6
|
+
delete(key: string): void;
|
|
7
|
+
deleteAll(): void;
|
|
8
|
+
}
|
|
9
|
+
declare class LocalStorageService extends StorageService {
|
|
10
|
+
constructor();
|
|
11
|
+
}
|
|
12
|
+
declare class SessionStorageService extends StorageService {
|
|
13
|
+
constructor();
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export { LocalStorageService, SessionStorageService };
|
package/dist/util/storage.d.ts
CHANGED
|
@@ -6,10 +6,11 @@ declare class StorageService {
|
|
|
6
6
|
delete(key: string): void;
|
|
7
7
|
deleteAll(): void;
|
|
8
8
|
}
|
|
9
|
-
|
|
9
|
+
declare class LocalStorageService extends StorageService {
|
|
10
10
|
constructor();
|
|
11
11
|
}
|
|
12
|
-
|
|
12
|
+
declare class SessionStorageService extends StorageService {
|
|
13
13
|
constructor();
|
|
14
14
|
}
|
|
15
|
-
|
|
15
|
+
|
|
16
|
+
export { LocalStorageService, SessionStorageService };
|
package/dist/util/storage.js
CHANGED
|
@@ -1,32 +1,64 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/util/storage.ts
|
|
21
|
+
var storage_exports = {};
|
|
22
|
+
__export(storage_exports, {
|
|
23
|
+
LocalStorageService: () => LocalStorageService,
|
|
24
|
+
SessionStorageService: () => SessionStorageService
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(storage_exports);
|
|
27
|
+
var StorageService = class {
|
|
28
|
+
// this seems to be a bug in eslint as 'paramter-properties' is a special syntax of typescript
|
|
29
|
+
constructor(storage) {
|
|
30
|
+
this.storage = storage;
|
|
31
|
+
}
|
|
32
|
+
get(key) {
|
|
33
|
+
const value = this.storage.getItem(key);
|
|
34
|
+
if (value === null) {
|
|
35
|
+
return null;
|
|
5
36
|
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
export
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
37
|
+
return JSON.parse(value);
|
|
38
|
+
}
|
|
39
|
+
set(key, value) {
|
|
40
|
+
this.storage.setItem(key, JSON.stringify(value));
|
|
41
|
+
}
|
|
42
|
+
delete(key) {
|
|
43
|
+
this.storage.removeItem(key);
|
|
44
|
+
}
|
|
45
|
+
deleteAll() {
|
|
46
|
+
this.storage.clear();
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
var LocalStorageService = class extends StorageService {
|
|
50
|
+
constructor() {
|
|
51
|
+
super(window.localStorage);
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
var SessionStorageService = class extends StorageService {
|
|
55
|
+
constructor() {
|
|
56
|
+
super(window.sessionStorage);
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
60
|
+
0 && (module.exports = {
|
|
61
|
+
LocalStorageService,
|
|
62
|
+
SessionStorageService
|
|
63
|
+
});
|
|
64
|
+
//# sourceMappingURL=storage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/util/storage.ts"],"sourcesContent":["class StorageService {\n // this seems to be a bug in eslint as 'paramter-properties' is a special syntax of typescript\n\n constructor(private storage: Storage) {}\n\n public get<T>(key: string): T | null {\n const value = this.storage.getItem(key)\n if (value === null) {\n return null\n }\n return JSON.parse(value)\n }\n\n public set<T>(key: string, value: T) {\n this.storage.setItem(key, JSON.stringify(value))\n }\n\n public delete(key: string) {\n this.storage.removeItem(key)\n }\n\n public deleteAll() {\n this.storage.clear()\n }\n}\n\nexport class LocalStorageService extends StorageService {\n constructor() {\n super(window.localStorage)\n }\n}\n\nexport class SessionStorageService extends StorageService {\n constructor() {\n super(window.sessionStorage)\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAAM,iBAAN,MAAqB;AAAA;AAAA,EAGnB,YAAoB,SAAkB;AAAlB;AAAA,EAAmB;AAAA,EAEhC,IAAO,KAAuB;AACnC,UAAM,QAAQ,KAAK,QAAQ,QAAQ,GAAG;AACtC,QAAI,UAAU,MAAM;AAClB,aAAO;AAAA,IACT;AACA,WAAO,KAAK,MAAM,KAAK;AAAA,EACzB;AAAA,EAEO,IAAO,KAAa,OAAU;AACnC,SAAK,QAAQ,QAAQ,KAAK,KAAK,UAAU,KAAK,CAAC;AAAA,EACjD;AAAA,EAEO,OAAO,KAAa;AACzB,SAAK,QAAQ,WAAW,GAAG;AAAA,EAC7B;AAAA,EAEO,YAAY;AACjB,SAAK,QAAQ,MAAM;AAAA,EACrB;AACF;AAEO,IAAM,sBAAN,cAAkC,eAAe;AAAA,EACtD,cAAc;AACZ,UAAM,OAAO,YAAY;AAAA,EAC3B;AACF;AAEO,IAAM,wBAAN,cAAoC,eAAe;AAAA,EACxD,cAAc;AACZ,UAAM,OAAO,cAAc;AAAA,EAC7B;AACF;","names":[]}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// src/util/storage.ts
|
|
2
|
+
var StorageService = class {
|
|
3
|
+
// this seems to be a bug in eslint as 'paramter-properties' is a special syntax of typescript
|
|
4
|
+
constructor(storage) {
|
|
5
|
+
this.storage = storage;
|
|
6
|
+
}
|
|
7
|
+
get(key) {
|
|
8
|
+
const value = this.storage.getItem(key);
|
|
9
|
+
if (value === null) {
|
|
10
|
+
return null;
|
|
11
|
+
}
|
|
12
|
+
return JSON.parse(value);
|
|
13
|
+
}
|
|
14
|
+
set(key, value) {
|
|
15
|
+
this.storage.setItem(key, JSON.stringify(value));
|
|
16
|
+
}
|
|
17
|
+
delete(key) {
|
|
18
|
+
this.storage.removeItem(key);
|
|
19
|
+
}
|
|
20
|
+
deleteAll() {
|
|
21
|
+
this.storage.clear();
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
var LocalStorageService = class extends StorageService {
|
|
25
|
+
constructor() {
|
|
26
|
+
super(window.localStorage);
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
var SessionStorageService = class extends StorageService {
|
|
30
|
+
constructor() {
|
|
31
|
+
super(window.sessionStorage);
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
export {
|
|
35
|
+
LocalStorageService,
|
|
36
|
+
SessionStorageService
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=storage.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/util/storage.ts"],"sourcesContent":["class StorageService {\n // this seems to be a bug in eslint as 'paramter-properties' is a special syntax of typescript\n\n constructor(private storage: Storage) {}\n\n public get<T>(key: string): T | null {\n const value = this.storage.getItem(key)\n if (value === null) {\n return null\n }\n return JSON.parse(value)\n }\n\n public set<T>(key: string, value: T) {\n this.storage.setItem(key, JSON.stringify(value))\n }\n\n public delete(key: string) {\n this.storage.removeItem(key)\n }\n\n public deleteAll() {\n this.storage.clear()\n }\n}\n\nexport class LocalStorageService extends StorageService {\n constructor() {\n super(window.localStorage)\n }\n}\n\nexport class SessionStorageService extends StorageService {\n constructor() {\n super(window.sessionStorage)\n }\n}\n"],"mappings":";AAAA,IAAM,iBAAN,MAAqB;AAAA;AAAA,EAGnB,YAAoB,SAAkB;AAAlB;AAAA,EAAmB;AAAA,EAEhC,IAAO,KAAuB;AACnC,UAAM,QAAQ,KAAK,QAAQ,QAAQ,GAAG;AACtC,QAAI,UAAU,MAAM;AAClB,aAAO;AAAA,IACT;AACA,WAAO,KAAK,MAAM,KAAK;AAAA,EACzB;AAAA,EAEO,IAAO,KAAa,OAAU;AACnC,SAAK,QAAQ,QAAQ,KAAK,KAAK,UAAU,KAAK,CAAC;AAAA,EACjD;AAAA,EAEO,OAAO,KAAa;AACzB,SAAK,QAAQ,WAAW,GAAG;AAAA,EAC7B;AAAA,EAEO,YAAY;AACjB,SAAK,QAAQ,MAAM;AAAA,EACrB;AACF;AAEO,IAAM,sBAAN,cAAkC,eAAe;AAAA,EACtD,cAAc;AACZ,UAAM,OAAO,YAAY;AAAA,EAC3B;AACF;AAEO,IAAM,wBAAN,cAAoC,eAAe;AAAA,EACxD,cAAc;AACZ,UAAM,OAAO,cAAc;AAAA,EAC7B;AACF;","names":[]}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
type NativeProps<NativeElement extends keyof React.ReactHTML, OmittedKeys extends string | number | symbol | undefined = undefined> = Omit<React.JSX.IntrinsicElements[NativeElement], OmittedKeys extends undefined ? 'ref' : 'ref' | OmittedKeys>;
|
|
2
|
+
|
|
3
|
+
export type { NativeProps };
|
package/dist/util/types.d.ts
CHANGED
|
@@ -1 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
type NativeProps<NativeElement extends keyof React.ReactHTML, OmittedKeys extends string | number | symbol | undefined = undefined> = Omit<React.JSX.IntrinsicElements[NativeElement], OmittedKeys extends undefined ? 'ref' : 'ref' | OmittedKeys>;
|
|
2
|
+
|
|
3
|
+
export type { NativeProps };
|
package/dist/util/types.js
CHANGED
|
@@ -1 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
|
|
16
|
+
// src/util/types.ts
|
|
17
|
+
var types_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(types_exports);
|
|
19
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/util/types.ts"],"sourcesContent":["export type NativeProps<\n NativeElement extends keyof React.ReactHTML,\n OmittedKeys extends string | number | symbol | undefined = undefined\n> = Omit<React.JSX.IntrinsicElements[NativeElement], OmittedKeys extends undefined ? 'ref' : 'ref' | OmittedKeys>\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=types.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/package.json
CHANGED
|
@@ -7,21 +7,30 @@
|
|
|
7
7
|
"url": "git+https://github.com/helpwave/hightide.git"
|
|
8
8
|
},
|
|
9
9
|
"license": "MPL-2.0",
|
|
10
|
-
"version": "0.0.
|
|
11
|
-
"
|
|
10
|
+
"version": "0.0.16",
|
|
11
|
+
"files": [
|
|
12
|
+
"dist"
|
|
13
|
+
],
|
|
14
|
+
"main": "dist/index.cjs",
|
|
15
|
+
"module": "dist/index.js",
|
|
16
|
+
"exports": {
|
|
17
|
+
".": {
|
|
18
|
+
"require": "./dist/index.cjs",
|
|
19
|
+
"import": "./dist/index.js"
|
|
20
|
+
},
|
|
21
|
+
"./css/globals.css": "./dist/css/globals.css",
|
|
22
|
+
"./css/uncompiled/globals.css": "./dist/css/uncompiled/globals.css"
|
|
23
|
+
},
|
|
12
24
|
"types": "dist/index.d.ts",
|
|
13
|
-
"type": "module",
|
|
14
25
|
"scripts": {
|
|
15
26
|
"clean": "rm -rf dist",
|
|
16
27
|
"build-css": "npx @tailwindcss/cli -i ./src/css/globals.css -o ./dist/css/globals.css",
|
|
17
|
-
"build": "npm run clean &&
|
|
28
|
+
"build": "npm run clean && npm run generate-barrels && tsup && npm run build-css && cp -R ./src/css/. ./dist/css/uncompiled/",
|
|
18
29
|
"storybook": "storybook dev -p 6006",
|
|
19
30
|
"build-storybook": "storybook build",
|
|
20
|
-
"lint": "
|
|
31
|
+
"lint": "tsup && eslint .",
|
|
32
|
+
"generate-barrels": "barrelsby -c ./barrelsby-config.json -S -q"
|
|
21
33
|
},
|
|
22
|
-
"files": [
|
|
23
|
-
"dist"
|
|
24
|
-
],
|
|
25
34
|
"dependencies": {
|
|
26
35
|
"@headlessui/react": "1.7.19",
|
|
27
36
|
"@radix-ui/react-checkbox": "1.1.3",
|
|
@@ -56,9 +65,11 @@
|
|
|
56
65
|
"@types/react": "18.3.17",
|
|
57
66
|
"@types/react-dom": "18.3.5",
|
|
58
67
|
"@types/tinycolor2": "^1.4.6",
|
|
68
|
+
"barrelsby": "^2.8.1",
|
|
59
69
|
"eslint": "^9.0.0",
|
|
60
70
|
"storybook": "^8.6.12",
|
|
61
|
-
"
|
|
71
|
+
"tsup": "^8.5.0",
|
|
72
|
+
"typescript": "^5.7.2",
|
|
62
73
|
"webpack": "5.97.1"
|
|
63
74
|
},
|
|
64
75
|
"peerDependencies": {
|
|
File without changes
|
package/dist/components/Span.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { InputGroupProps } from '../InputGroup';
|
|
2
|
-
export type InputGroupExampleProps = Omit<InputGroupProps, 'inputs' | 'onChange'>;
|
|
3
|
-
/**
|
|
4
|
-
* Example for an Input Group
|
|
5
|
-
*/
|
|
6
|
-
export declare const InputGroupExample: ({ ...props }: InputGroupExampleProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useState } from 'react';
|
|
3
|
-
import { InputGroup } from '../InputGroup';
|
|
4
|
-
import { Select } from '../user-input/Select';
|
|
5
|
-
import { Input } from '../user-input/Input';
|
|
6
|
-
import { Textarea } from '../user-input/Textarea';
|
|
7
|
-
/**
|
|
8
|
-
* Example for an Input Group
|
|
9
|
-
*/
|
|
10
|
-
export const InputGroupExample = ({ ...props }) => {
|
|
11
|
-
const [state, setState] = useState({
|
|
12
|
-
propertyName: '',
|
|
13
|
-
description: ''
|
|
14
|
-
});
|
|
15
|
-
return (_jsxs(InputGroup, { ...props, onChange: console.log, children: [_jsx(Select, { label: { name: 'Subject Type', labelType: 'labelSmall' }, value: state.subject, options: [
|
|
16
|
-
{ value: 'organization', label: 'Organization' },
|
|
17
|
-
{ value: 'ward', label: 'Ward' },
|
|
18
|
-
{ value: 'bed', label: 'Bed' },
|
|
19
|
-
{ value: 'patient', label: 'Patient' },
|
|
20
|
-
], onChange: subject => setState({ ...state, subject }) }, "item1"), _jsx(Input, { label: { name: 'Property Name' }, value: state.propertyName, onChange: propertyName => setState({ ...state, propertyName }) }, "item2"), _jsx(Textarea, { label: { name: 'Description' }, value: state.description, onChange: description => setState({ ...state, description }) }, "item3")] }));
|
|
21
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { MultiSelectProps } from '../user-input/MultiSelect';
|
|
2
|
-
type MultiSelectExampleProps = Omit<MultiSelectProps<string>, 'search' | 'selectedDisplay'> & {
|
|
3
|
-
enableSearch: boolean;
|
|
4
|
-
useChipDisplay: boolean;
|
|
5
|
-
};
|
|
6
|
-
export declare const MultiSelectExample: ({ options, hintText, enableSearch, onChange, useChipDisplay, ...props }: MultiSelectExampleProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export {};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useEffect, useState } from 'react';
|
|
3
|
-
import { MultiSelect } from '../user-input/MultiSelect';
|
|
4
|
-
import { ChipList } from '../ChipList';
|
|
5
|
-
export const MultiSelectExample = ({ options, hintText, enableSearch, onChange, useChipDisplay = false, ...props }) => {
|
|
6
|
-
const [usedOptions, setUsedOptions] = useState(options);
|
|
7
|
-
useEffect(() => {
|
|
8
|
-
setUsedOptions(options);
|
|
9
|
-
}, [options]);
|
|
10
|
-
useEffect(() => {
|
|
11
|
-
setUsedOptions(options);
|
|
12
|
-
}, [options]);
|
|
13
|
-
useEffect(() => {
|
|
14
|
-
setUsedOptions(options.map(value => ({ ...value, selected: false })));
|
|
15
|
-
}, [hintText, options]);
|
|
16
|
-
return (_jsx(MultiSelect, { options: usedOptions, onChange: value => {
|
|
17
|
-
onChange(value);
|
|
18
|
-
setUsedOptions(value);
|
|
19
|
-
}, hintText: hintText, search: enableSearch ? { initialSearch: '', searchMapping: value => [value.label] } : undefined, selectedDisplay: useChipDisplay ?
|
|
20
|
-
({ items }) => {
|
|
21
|
-
const selected = items.filter(value => value.selected);
|
|
22
|
-
if (selected.length === 0) {
|
|
23
|
-
return (_jsx("span", { children: "Select" }));
|
|
24
|
-
}
|
|
25
|
-
return (_jsx(ChipList, { list: selected.map(value => ({ children: value.label })) }));
|
|
26
|
-
} : undefined, ...props }));
|
|
27
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { SearchableSelectProps } from '../user-input/SearchableSelect';
|
|
2
|
-
export type SearchableSelectExampleProps = Omit<SearchableSelectProps<string>, 'searchMapping' | 'additionalItems'>;
|
|
3
|
-
/**
|
|
4
|
-
* Example for a Searchable select
|
|
5
|
-
*/
|
|
6
|
-
export declare const SearchableSelectExample: ({ value, options, onChange, ...props }: SearchableSelectExampleProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useEffect, useState } from 'react';
|
|
3
|
-
import { SearchableSelect } from '../user-input/SearchableSelect';
|
|
4
|
-
/**
|
|
5
|
-
* Example for a Searchable select
|
|
6
|
-
*/
|
|
7
|
-
export const SearchableSelectExample = ({ value, options, onChange, ...props }) => {
|
|
8
|
-
const [selected, setSelected] = useState(value);
|
|
9
|
-
useEffect(() => {
|
|
10
|
-
var _a;
|
|
11
|
-
setSelected((_a = options.find(value1 => value1.value === value)) === null || _a === void 0 ? void 0 : _a.value);
|
|
12
|
-
}, [options, value]);
|
|
13
|
-
return (_jsx(SearchableSelect, { ...props, value: selected, options: options, onChange: value => {
|
|
14
|
-
setSelected(value);
|
|
15
|
-
onChange(value);
|
|
16
|
-
}, searchMapping: value1 => [value1.value] }));
|
|
17
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { type SelectProps } from '../user-input/Select';
|
|
2
|
-
type SelectExampleProps<T> = Omit<SelectProps<T>, 'onChange' | 'additionalItems' | 'selectedDisplayOverwrite'>;
|
|
3
|
-
export declare const SelectExample: <T>({ options, value, hintText, ...props }: SelectExampleProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useEffect, useState } from 'react';
|
|
3
|
-
import { Select } from '../user-input/Select';
|
|
4
|
-
export const SelectExample = ({ options, value, hintText, ...props }) => {
|
|
5
|
-
const [selected, setSelected] = useState(value);
|
|
6
|
-
useEffect(() => {
|
|
7
|
-
if (options.find(options => options.value === value)) {
|
|
8
|
-
setSelected(value);
|
|
9
|
-
}
|
|
10
|
-
}, [options, value]);
|
|
11
|
-
useEffect(() => {
|
|
12
|
-
setSelected(undefined);
|
|
13
|
-
}, [hintText]);
|
|
14
|
-
return (_jsx(Select, { value: selected, options: options, onChange: value => setSelected(value), hintText: hintText, ...props }));
|
|
15
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useState } from 'react';
|
|
3
|
-
import { ModalRegister } from '../modals/ModalRegister';
|
|
4
|
-
import { ConfirmDialog } from '../modals/ConfirmDialog';
|
|
5
|
-
import { SolidButton } from '../Button';
|
|
6
|
-
import { modalRootName } from '../modals/Modal';
|
|
7
|
-
/**
|
|
8
|
-
* An Example Component for Stacking Modals
|
|
9
|
-
*/
|
|
10
|
-
export const StackingModals = () => {
|
|
11
|
-
const [modal1, setModal1] = useState(false);
|
|
12
|
-
const [modal2, setModal2] = useState(false);
|
|
13
|
-
const [modal3, setModal3] = useState(false);
|
|
14
|
-
return (_jsxs(ModalRegister, { children: [_jsxs(ConfirmDialog, { id: "1", isOpen: modal1, onConfirm: () => setModal1(false), onBackgroundClick: () => setModal1(false), onCloseClick: () => setModal1(false), modalClassName: "!bg-yellow-200 min-h-[300px]", children: ['I\'m Modal 1', _jsx(SolidButton, { onClick: () => setModal2(true), children: "Open Modal 2" })] }), _jsxs(ConfirmDialog, { id: "2", isOpen: modal2, onConfirm: () => setModal2(false), onBackgroundClick: () => setModal2(false), onCloseClick: () => setModal2(false), modalClassName: "!bg-green-200 min-w-[300px]", children: ['The next layer of Modals!', 'This is Modal 2', _jsx(SolidButton, { onClick: () => setModal3(true), children: "Open Modal 3" })] }), _jsx(ConfirmDialog, { id: "3", isOpen: modal3, onConfirm: () => setModal3(false), onBackgroundClick: () => setModal3(false), onCloseClick: () => setModal3(false), children: "This is Modal 3!" }), _jsx("div", { className: "row items-center justify-center min-h-[400px]", id: modalRootName, children: _jsx(SolidButton, { onClick: () => setModal1(true), children: "Open Modal 1" }) })] }));
|
|
15
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { TableProps } from '../Table';
|
|
2
|
-
export type DataType = {
|
|
3
|
-
id: string;
|
|
4
|
-
name: string;
|
|
5
|
-
age: number;
|
|
6
|
-
};
|
|
7
|
-
export declare const exampleData: DataType[];
|
|
8
|
-
declare const TableExample: ({ data: initialData }: Pick<TableProps<DataType>, "data">) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export default TableExample;
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useEffect, useState } from 'react';
|
|
3
|
-
import { addElementToTable, defaultTableStatePagination, defaultTableStateSelection, removeFromTableSelection, Table } from '../Table';
|
|
4
|
-
import { Input } from '../user-input/Input';
|
|
5
|
-
import { SolidButton, TextButton } from '../Button';
|
|
6
|
-
import { SortButton } from '../SortButton';
|
|
7
|
-
export const exampleData = [
|
|
8
|
-
{ id: 'data1', name: 'Name 1', age: 23 },
|
|
9
|
-
{ id: 'data2', name: 'Name 2', age: 21 },
|
|
10
|
-
{ id: 'data3', name: 'Name 3', age: 32 },
|
|
11
|
-
{ id: 'data4', name: 'Name 4', age: 42 },
|
|
12
|
-
{ id: 'data5', name: 'Name 5', age: 17 },
|
|
13
|
-
{ id: 'data6', name: 'Name 6', age: 26 },
|
|
14
|
-
{ id: 'data7', name: 'Name 7', age: 19 },
|
|
15
|
-
{ id: 'data8', name: 'Name 8', age: 31 }
|
|
16
|
-
];
|
|
17
|
-
const TableExample = ({ data: initialData }) => {
|
|
18
|
-
const [data, setData] = useState(initialData);
|
|
19
|
-
const [tableState, setTableState] = useState({
|
|
20
|
-
pagination: defaultTableStatePagination,
|
|
21
|
-
selection: defaultTableStateSelection
|
|
22
|
-
});
|
|
23
|
-
useEffect(() => {
|
|
24
|
-
setData(initialData);
|
|
25
|
-
}, [initialData]);
|
|
26
|
-
const [sorting, setSorting] = useState();
|
|
27
|
-
const [sortingKey, ascending] = sorting !== null && sorting !== void 0 ? sorting : ['', 'ascending'];
|
|
28
|
-
const idMapping = (data) => data.id;
|
|
29
|
-
const sortingFunctions = {
|
|
30
|
-
id: {
|
|
31
|
-
ascending: (t1, t2) => t1.id.localeCompare(t2.id),
|
|
32
|
-
descending: (t1, t2) => t1.id.localeCompare(t2.id) * -1,
|
|
33
|
-
},
|
|
34
|
-
name: {
|
|
35
|
-
ascending: (t1, t2) => t1.name.localeCompare(t2.name),
|
|
36
|
-
descending: (t1, t2) => t1.name.localeCompare(t2.name) * -1,
|
|
37
|
-
},
|
|
38
|
-
age: {
|
|
39
|
-
ascending: (t1, t2) => t1.age - t2.age,
|
|
40
|
-
descending: (t1, t2) => (t1.age - t2.age) * -1,
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
return (_jsxs("div", { className: "col gap-y-12 items-center", children: [_jsx(Table, { stateManagement: [tableState, (newTableState) => {
|
|
44
|
-
setTableState(newTableState);
|
|
45
|
-
setData(data);
|
|
46
|
-
}], data: data, identifierMapping: idMapping, rowMappingToCells: dataObject => [
|
|
47
|
-
_jsx("span", { className: "textstyle-title-md w-[100px] text-ellipsis overflow-hidden block", children: dataObject.id }, "id"),
|
|
48
|
-
_jsx(Input, { value: dataObject.name, onChange: text => {
|
|
49
|
-
setData(data.map(value => value.id === dataObject.id ? { ...dataObject, name: text } : value));
|
|
50
|
-
setSorting(undefined);
|
|
51
|
-
} }, "name"),
|
|
52
|
-
_jsx(Input, { type: "number", value: dataObject.age.toString(), onChange: text => {
|
|
53
|
-
setData(data.map(value => value.id === dataObject.id ? { ...dataObject, age: parseInt(text) } : value));
|
|
54
|
-
setSorting(undefined);
|
|
55
|
-
} }, "age"),
|
|
56
|
-
_jsx(TextButton, { color: "negative", onClick: () => {
|
|
57
|
-
const newData = data.filter(value => value.id !== dataObject.id);
|
|
58
|
-
setData(newData);
|
|
59
|
-
setTableState(removeFromTableSelection(tableState, [dataObject], data.length, idMapping));
|
|
60
|
-
}, children: "Delete" }, "delete")
|
|
61
|
-
], header: [
|
|
62
|
-
_jsx(SortButton, { ascending: sortingKey === 'id' ? ascending : undefined, onClick: newTableSorting => {
|
|
63
|
-
setSorting(['id', newTableSorting]);
|
|
64
|
-
setData(data.sort(sortingFunctions.id[newTableSorting]));
|
|
65
|
-
}, children: _jsx("span", { className: "textstyle-table-header", children: "Id" }) }, "headerId"),
|
|
66
|
-
_jsx(SortButton, { ascending: sortingKey === 'name' ? ascending : undefined, onClick: newTableSorting => {
|
|
67
|
-
setSorting(['name', newTableSorting]);
|
|
68
|
-
setData(data.sort(sortingFunctions.name[newTableSorting]));
|
|
69
|
-
}, children: _jsx("span", { className: "textstyle-table-header", children: "Name" }) }, "name"),
|
|
70
|
-
_jsx(SortButton, { ascending: sortingKey === 'age' ? ascending : undefined, onClick: newTableSorting => {
|
|
71
|
-
setSorting(['age', newTableSorting]);
|
|
72
|
-
setData(data.sort(sortingFunctions.age[newTableSorting]));
|
|
73
|
-
}, children: _jsx("span", { className: "textstyle-table-header", children: "age" }, "age") }, "name"),
|
|
74
|
-
_jsx(_Fragment, {})
|
|
75
|
-
] }), _jsxs("div", { className: "row gap-x-2", children: [_jsx(SolidButton, { className: "w-auto", onClick: () => {
|
|
76
|
-
const newData = {
|
|
77
|
-
id: Math.random().toString(),
|
|
78
|
-
name: 'Name ' + data.length,
|
|
79
|
-
age: Math.ceil(Math.random() * 100)
|
|
80
|
-
};
|
|
81
|
-
const withNewData = [...data, newData];
|
|
82
|
-
const sorted = sortingKey ? withNewData.sort(sortingFunctions[sortingKey][ascending]) : withNewData;
|
|
83
|
-
setData(sorted);
|
|
84
|
-
setTableState(addElementToTable(tableState, sorted, newData, idMapping));
|
|
85
|
-
}, children: 'Add Data' }), _jsx(TextButton, { className: "w-auto", onClick: () => {
|
|
86
|
-
const selectedData = data.filter((d) => { var _a; return (_a = tableState.selection) === null || _a === void 0 ? void 0 : _a.currentSelection.includes(idMapping(d)); });
|
|
87
|
-
const unselectedData = data.filter((d) => { var _a; return !((_a = tableState.selection) === null || _a === void 0 ? void 0 : _a.currentSelection.includes(idMapping(d))); });
|
|
88
|
-
setData(unselectedData);
|
|
89
|
-
setTableState(removeFromTableSelection(tableState, selectedData, data.length, idMapping));
|
|
90
|
-
}, children: 'Remove all selected' })] })] }));
|
|
91
|
-
};
|
|
92
|
-
export default TableExample;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { TextareaProps } from '../user-input/Textarea';
|
|
2
|
-
export type TextareaExampleProps = Omit<TextareaProps, 'onChange' | 'onEditCompleted'>;
|
|
3
|
-
/**
|
|
4
|
-
* Example for the Textarea component
|
|
5
|
-
*/
|
|
6
|
-
export declare const TextareaExample: ({ value, ...props }: TextareaExampleProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useState } from 'react';
|
|
3
|
-
import { Textarea } from '../user-input/Textarea';
|
|
4
|
-
/**
|
|
5
|
-
* Example for the Textarea component
|
|
6
|
-
*/
|
|
7
|
-
export const TextareaExample = ({ value, ...props }) => {
|
|
8
|
-
const [text, setText] = useState(value);
|
|
9
|
-
return (_jsx(Textarea, { ...props, value: text, onChange: setText, onEditCompleted: setText }));
|
|
10
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { TileProps } from '../layout/Tile';
|
|
2
|
-
export type TileExampleProps = Omit<TileProps, 'prefix' | 'suffix'> & {
|
|
3
|
-
prefix: boolean;
|
|
4
|
-
suffix: boolean;
|
|
5
|
-
};
|
|
6
|
-
/**
|
|
7
|
-
* An Example for using the tile
|
|
8
|
-
*/
|
|
9
|
-
export declare const TileExample: ({ prefix, suffix, ...restProps }: TileExampleProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Info, X } from 'lucide-react';
|
|
3
|
-
import { Tile } from '../layout/Tile';
|
|
4
|
-
/**
|
|
5
|
-
* An Example for using the tile
|
|
6
|
-
*/
|
|
7
|
-
export const TileExample = ({ prefix, suffix, ...restProps }) => {
|
|
8
|
-
return (_jsx(Tile, { ...restProps, prefix: prefix ? _jsx(Info, { size: 20 }) : undefined, suffix: suffix ? _jsx(X, { size: 20 }) : undefined }));
|
|
9
|
-
};
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { DateTimePickerProps } from '../../user-input/DateAndTimePicker';
|
|
2
|
-
import type { DatePickerProps } from '../../date/DatePicker';
|
|
3
|
-
import type { TimePickerProps } from '../../date/TimePicker';
|
|
4
|
-
import type { YearMonthPickerProps } from '../../date/YearMonthPicker';
|
|
5
|
-
import type { DayPickerProps } from '../../date/DayPicker';
|
|
6
|
-
export type DateTimePickerExampleProps = Omit<DateTimePickerProps, 'datePickerProps' | 'timePickerProps'> & Pick<DatePickerProps, 'initialDisplay'> & Pick<TimePickerProps, 'is24HourFormat' | 'minuteIncrement'> & Pick<YearMonthPickerProps, 'showValueOpen'> & Pick<DayPickerProps, 'markToday' | 'weekStart'>;
|
|
7
|
-
/**
|
|
8
|
-
* Example for the DateTimePicker
|
|
9
|
-
*/
|
|
10
|
-
export declare const DateTimePickerExample: ({ value, onChange, onRemove, onFinish, initialDisplay, is24HourFormat, minuteIncrement, showValueOpen, markToday, weekStart, ...props }: DateTimePickerExampleProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useEffect, useState } from 'react';
|
|
3
|
-
import { DateTimePicker } from '../../user-input/DateAndTimePicker';
|
|
4
|
-
import { noop } from '../../../util/noop';
|
|
5
|
-
/**
|
|
6
|
-
* Example for the DateTimePicker
|
|
7
|
-
*/
|
|
8
|
-
export const DateTimePickerExample = ({ value, onChange = noop, onRemove = noop, onFinish = noop, initialDisplay, is24HourFormat, minuteIncrement, showValueOpen, markToday, weekStart, ...props }) => {
|
|
9
|
-
const [time, setTime] = useState(value);
|
|
10
|
-
useEffect(() => setTime(value), [value]);
|
|
11
|
-
return (_jsx(DateTimePicker, { ...props, value: time, onChange: date => {
|
|
12
|
-
onChange(date);
|
|
13
|
-
setTime(date);
|
|
14
|
-
}, onRemove: () => {
|
|
15
|
-
onRemove();
|
|
16
|
-
setTime(new Date());
|
|
17
|
-
}, onFinish: date => {
|
|
18
|
-
onFinish(date);
|
|
19
|
-
setTime(date);
|
|
20
|
-
}, timePickerProps: { is24HourFormat, minuteIncrement }, datePickerProps: { initialDisplay, dayPickerProps: { markToday, weekStart }, yearMonthPickerProps: { showValueOpen } } }));
|
|
21
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { CheckboxPropertyProps } from '../../properties/CheckboxProperty';
|
|
2
|
-
export type CheckboxPropertyExampleProps = Omit<CheckboxPropertyProps, 'onChange' | 'onRemove'> & {
|
|
3
|
-
readOnly: boolean;
|
|
4
|
-
};
|
|
5
|
-
/**
|
|
6
|
-
* Example for using the CheckboxProperty
|
|
7
|
-
*/
|
|
8
|
-
export declare const CheckboxPropertyExample: ({ value, ...restProps }: CheckboxPropertyExampleProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useEffect, useState } from 'react';
|
|
3
|
-
import { CheckboxProperty } from '../../properties/CheckboxProperty';
|
|
4
|
-
/**
|
|
5
|
-
* Example for using the CheckboxProperty
|
|
6
|
-
*/
|
|
7
|
-
export const CheckboxPropertyExample = ({ value = false, ...restProps }) => {
|
|
8
|
-
const [usedValue, setUsedValue] = useState(value);
|
|
9
|
-
useEffect(() => {
|
|
10
|
-
setUsedValue(value);
|
|
11
|
-
}, [value]);
|
|
12
|
-
return (_jsx(CheckboxProperty, { ...restProps, onChange: setUsedValue, value: usedValue }));
|
|
13
|
-
};
|