@webiny/ui 0.0.0-mt-2 → 0.0.0-unstable.06b2ede40f
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/Accordion/Accordion.d.ts +12 -8
- package/Accordion/Accordion.js +10 -28
- package/Accordion/Accordion.js.map +1 -0
- package/Accordion/AccordionItem.d.ts +100 -20
- package/Accordion/AccordionItem.js +34 -121
- package/Accordion/AccordionItem.js.map +1 -0
- package/Accordion/AccordionItemActions.d.ts +25 -0
- package/Accordion/AccordionItemActions.js +47 -0
- package/Accordion/AccordionItemActions.js.map +1 -0
- package/Accordion/index.js +3 -1
- package/Accordion/index.js.map +1 -0
- package/Alert/Alert.d.ts +7 -6
- package/Alert/Alert.js +17 -48
- package/Alert/Alert.js.map +1 -0
- package/Alert/index.js +3 -1
- package/Alert/index.js.map +1 -0
- package/AutoComplete/AutoComplete.d.ts +12 -30
- package/AutoComplete/AutoComplete.js +65 -292
- package/AutoComplete/AutoComplete.js.map +1 -0
- package/AutoComplete/MultiAutoComplete.d.ts +28 -54
- package/AutoComplete/MultiAutoComplete.js +79 -561
- package/AutoComplete/MultiAutoComplete.js.map +1 -0
- package/AutoComplete/index.js +3 -1
- package/AutoComplete/index.js.map +1 -0
- package/AutoComplete/types.d.ts +11 -10
- package/AutoComplete/types.js +3 -1
- package/AutoComplete/types.js.map +1 -0
- package/AutoComplete/utils.d.ts +11 -5
- package/AutoComplete/utils.js +8 -8
- package/AutoComplete/utils.js.map +1 -0
- package/Avatar/Avatar.d.ts +7 -12
- package/Avatar/Avatar.js +32 -75
- package/Avatar/Avatar.js.map +1 -0
- package/Avatar/index.js +3 -1
- package/Avatar/index.js.map +1 -0
- package/Button/Button.d.ts +40 -45
- package/Button/Button.js +13 -134
- package/Button/Button.js.map +1 -0
- package/Button/ButtonDefault.d.ts +7 -0
- package/Button/ButtonDefault.js +16 -0
- package/Button/ButtonDefault.js.map +1 -0
- package/Button/ButtonFloating.d.ts +7 -0
- package/Button/ButtonFloating.js +12 -0
- package/Button/ButtonFloating.js.map +1 -0
- package/Button/ButtonIcon.d.ts +9 -0
- package/Button/ButtonIcon.js +11 -0
- package/Button/ButtonIcon.js.map +1 -0
- package/Button/ButtonPrimary.d.ts +7 -0
- package/Button/ButtonPrimary.js +16 -0
- package/Button/ButtonPrimary.js.map +1 -0
- package/Button/ButtonSecondary.d.ts +7 -0
- package/Button/ButtonSecondary.js +16 -0
- package/Button/ButtonSecondary.js.map +1 -0
- package/Button/CopyButton.d.ts +17 -0
- package/Button/CopyButton.js +12 -0
- package/Button/CopyButton.js.map +1 -0
- package/Button/IconButton.d.ts +17 -0
- package/Button/IconButton.js +15 -0
- package/Button/IconButton.js.map +1 -0
- package/Button/index.d.ts +7 -2
- package/Button/index.js +9 -2
- package/Button/index.js.map +1 -0
- package/Button/useMappedButtonProps.d.ts +14 -0
- package/Button/useMappedButtonProps.js +21 -0
- package/Button/useMappedButtonProps.js.map +1 -0
- package/Carousel/Carousel.d.ts +7 -16
- package/Carousel/Carousel.js +12 -46
- package/Carousel/Carousel.js.map +1 -0
- package/Carousel/index.js +3 -1
- package/Carousel/index.js.map +1 -0
- package/Checkbox/Checkbox.d.ts +13 -17
- package/Checkbox/Checkbox.js +33 -71
- package/Checkbox/Checkbox.js.map +1 -0
- package/Checkbox/CheckboxGroup.d.ts +9 -5
- package/Checkbox/CheckboxGroup.js +47 -61
- package/Checkbox/CheckboxGroup.js.map +1 -0
- package/Checkbox/index.js +3 -1
- package/Checkbox/index.js.map +1 -0
- package/Chips/Chip.d.ts +35 -8
- package/Chips/Chip.js +50 -9
- package/Chips/Chip.js.map +1 -0
- package/Chips/Chips.d.ts +9 -5
- package/Chips/Chips.js +17 -16
- package/Chips/Chips.js.map +1 -0
- package/Chips/index.d.ts +0 -1
- package/Chips/index.js +2 -1
- package/Chips/index.js.map +1 -0
- package/CodeEditor/CodeEditor.d.ts +9 -17
- package/CodeEditor/CodeEditor.js +14 -86
- package/CodeEditor/CodeEditor.js.map +1 -0
- package/CodeEditor/index.js +3 -1
- package/CodeEditor/index.js.map +1 -0
- package/ColorPicker/ColorPicker.d.ts +8 -19
- package/ColorPicker/ColorPicker.js +26 -135
- package/ColorPicker/ColorPicker.js.map +1 -0
- package/ColorPicker/index.js +3 -1
- package/ColorPicker/index.js.map +1 -0
- package/ConfirmationDialog/ConfirmationDialog.d.ts +15 -15
- package/ConfirmationDialog/ConfirmationDialog.js +80 -153
- package/ConfirmationDialog/ConfirmationDialog.js.map +1 -0
- package/ConfirmationDialog/index.js +3 -1
- package/ConfirmationDialog/index.js.map +1 -0
- package/ConfirmationDialog/withConfirmation.d.ts +6 -6
- package/ConfirmationDialog/withConfirmation.js +12 -11
- package/ConfirmationDialog/withConfirmation.js.map +1 -0
- package/DataTable/DataTable.d.ts +57 -0
- package/DataTable/DataTable.js +65 -0
- package/DataTable/DataTable.js.map +1 -0
- package/DataTable/index.d.ts +1 -0
- package/DataTable/index.js +3 -0
- package/DataTable/index.js.map +1 -0
- package/DateTime/Date.d.ts +7 -0
- package/DateTime/Date.js +33 -0
- package/DateTime/Date.js.map +1 -0
- package/DateTime/index.d.ts +1 -0
- package/DateTime/index.js +3 -0
- package/DateTime/index.js.map +1 -0
- package/DelayedOnChange/index.d.ts +7 -0
- package/DelayedOnChange/index.js +9 -0
- package/DelayedOnChange/index.js.map +1 -0
- package/Dialog/Dialog.d.ts +51 -72
- package/Dialog/Dialog.js +73 -83
- package/Dialog/Dialog.js.map +1 -0
- package/Dialog/index.js +3 -1
- package/Dialog/index.js.map +1 -0
- package/Drawer/Drawer.d.ts +32 -23
- package/Drawer/Drawer.js +44 -12
- package/Drawer/Drawer.js.map +1 -0
- package/Drawer/index.js +3 -1
- package/Drawer/index.js.map +1 -0
- package/DynamicFieldset/index.d.ts +7 -1
- package/DynamicFieldset/index.js +9 -1
- package/DynamicFieldset/index.js.map +1 -0
- package/Elevation/Elevation.d.ts +8 -4
- package/Elevation/Elevation.js +15 -10
- package/Elevation/Elevation.js.map +1 -0
- package/Elevation/index.js +3 -1
- package/Elevation/index.js.map +1 -0
- package/FormElementMessage/FormElementMessage.d.ts +7 -3
- package/FormElementMessage/FormElementMessage.js +22 -11
- package/FormElementMessage/FormElementMessage.js.map +1 -0
- package/FormElementMessage/index.js +3 -1
- package/FormElementMessage/index.js.map +1 -0
- package/FullName/FullName.d.ts +5 -1
- package/FullName/FullName.js +12 -9
- package/FullName/FullName.js.map +1 -0
- package/FullName/index.js +3 -1
- package/FullName/index.js.map +1 -0
- package/Grid/Grid.d.ts +37 -12
- package/Grid/Grid.js +39 -10
- package/Grid/Grid.js.map +1 -0
- package/Grid/index.js +3 -1
- package/Grid/index.js.map +1 -0
- package/Helpers/ClassNames.d.ts +4 -3
- package/Helpers/ClassNames.js +14 -17
- package/Helpers/ClassNames.js.map +1 -0
- package/Helpers/index.js +3 -1
- package/Helpers/index.js.map +1 -0
- package/Icon/Icon.d.ts +11 -9
- package/Icon/Icon.js +10 -22
- package/Icon/Icon.js.map +1 -0
- package/Icon/index.js +3 -1
- package/Icon/index.js.map +1 -0
- package/Image/index.d.ts +6 -1
- package/Image/index.js +9 -1
- package/Image/index.js.map +1 -0
- package/ImageEditor/ImageEditor.d.ts +24 -41
- package/ImageEditor/ImageEditor.js +12 -333
- package/ImageEditor/ImageEditor.js.map +1 -0
- package/ImageEditor/index.js +3 -1
- package/ImageEditor/index.js.map +1 -0
- package/ImageUpload/Image.d.ts +12 -18
- package/ImageUpload/Image.js +14 -119
- package/ImageUpload/Image.js.map +1 -0
- package/ImageUpload/ImageEditorDialog.d.ts +14 -12
- package/ImageUpload/ImageEditorDialog.js +14 -94
- package/ImageUpload/ImageEditorDialog.js.map +1 -0
- package/ImageUpload/MultiImageUpload.d.ts +13 -47
- package/ImageUpload/MultiImageUpload.js +14 -383
- package/ImageUpload/MultiImageUpload.js.map +1 -0
- package/ImageUpload/SingleImageUpload.d.ts +12 -48
- package/ImageUpload/SingleImageUpload.js +14 -224
- package/ImageUpload/SingleImageUpload.js.map +1 -0
- package/ImageUpload/index.d.ts +2 -2
- package/ImageUpload/index.js +4 -2
- package/ImageUpload/index.js.map +1 -0
- package/Input/Input.d.ts +64 -22
- package/Input/Input.js +79 -142
- package/Input/Input.js.map +1 -0
- package/Input/index.js +3 -1
- package/Input/index.js.map +1 -0
- package/List/CollapsibleList/index.d.ts +20 -6
- package/List/CollapsibleList/index.js +11 -6
- package/List/CollapsibleList/index.js.map +1 -0
- package/List/DataList/DataList.d.ts +16 -61
- package/List/DataList/DataList.js +18 -312
- package/List/DataList/DataList.js.map +1 -0
- package/List/DataList/DataListModalOverlay/index.d.ts +12 -3
- package/List/DataList/DataListModalOverlay/index.js +16 -3
- package/List/DataList/DataListModalOverlay/index.js.map +1 -0
- package/List/DataList/DataListWithSections.d.ts +21 -0
- package/List/DataList/DataListWithSections.js +18 -0
- package/List/DataList/DataListWithSections.js.map +1 -0
- package/List/DataList/icons/index.d.ts +1 -15
- package/List/DataList/icons/index.js +3 -55
- package/List/DataList/icons/index.js.map +1 -0
- package/List/DataList/index.d.ts +1 -1
- package/List/DataList/index.js +4 -2
- package/List/DataList/index.js.map +1 -0
- package/List/DataList/types.d.ts +1 -28
- package/List/DataList/types.js +3 -1
- package/List/DataList/types.js.map +1 -0
- package/List/List/List.d.ts +51 -0
- package/List/List/List.js +16 -0
- package/List/List/List.js.map +1 -0
- package/List/List/ListItem.d.ts +61 -0
- package/List/List/ListItem.js +91 -0
- package/List/List/ListItem.js.map +1 -0
- package/List/List/ListItemAction.d.ts +9 -0
- package/List/List/ListItemAction.js +15 -0
- package/List/List/ListItemAction.js.map +1 -0
- package/List/List/ListItemGraphic.d.ts +18 -0
- package/List/List/ListItemGraphic.js +26 -0
- package/List/List/ListItemGraphic.js.map +1 -0
- package/List/List/ListItemMeta.d.ts +26 -0
- package/List/List/ListItemMeta.js +24 -0
- package/List/List/ListItemMeta.js.map +1 -0
- package/List/List/ListItemText.d.ts +42 -0
- package/List/List/ListItemText.js +51 -0
- package/List/List/ListItemText.js.map +1 -0
- package/List/List/index.d.ts +6 -0
- package/List/List/index.js +8 -0
- package/List/List/index.js.map +1 -0
- package/List/index.d.ts +2 -1
- package/List/index.js +5 -2
- package/List/index.js.map +1 -0
- package/Menu/Menu.d.ts +58 -28
- package/Menu/Menu.js +74 -119
- package/Menu/Menu.js.map +1 -0
- package/Menu/index.js +3 -1
- package/Menu/index.js.map +1 -0
- package/Mosaic/Mosaic.d.ts +7 -16
- package/Mosaic/Mosaic.js +10 -18
- package/Mosaic/Mosaic.js.map +1 -0
- package/Mosaic/index.js +3 -1
- package/Mosaic/index.js.map +1 -0
- package/Progress/CircularProgress.d.ts +13 -13
- package/Progress/CircularProgress.js +16 -60
- package/Progress/CircularProgress.js.map +1 -0
- package/Progress/index.d.ts +1 -1
- package/Progress/index.js +3 -1
- package/Progress/index.js.map +1 -0
- package/README.md +1 -3
- package/Radio/Radio.d.ts +8 -13
- package/Radio/Radio.js +35 -64
- package/Radio/Radio.js.map +1 -0
- package/Radio/RadioGroup.d.ts +10 -11
- package/Radio/RadioGroup.js +38 -54
- package/Radio/RadioGroup.js.map +1 -0
- package/Radio/index.js +3 -1
- package/Radio/index.js.map +1 -0
- package/RichTextEditor/RichTextEditor.d.ts +10 -25
- package/RichTextEditor/RichTextEditor.js +15 -134
- package/RichTextEditor/RichTextEditor.js.map +1 -0
- package/RichTextEditor/index.d.ts +3 -1
- package/RichTextEditor/index.js +3 -1
- package/RichTextEditor/index.js.map +1 -0
- package/Ripple/Ripple.d.ts +6 -6
- package/Ripple/Ripple.js +7 -10
- package/Ripple/Ripple.js.map +1 -0
- package/Ripple/index.js +3 -1
- package/Ripple/index.js.map +1 -0
- package/Scrollbar/Scrollbar.d.ts +6 -9
- package/Scrollbar/Scrollbar.js +8 -6
- package/Scrollbar/Scrollbar.js.map +1 -0
- package/Scrollbar/index.js +3 -1
- package/Scrollbar/index.js.map +1 -0
- package/Section/index.d.ts +10 -6
- package/Section/index.js +14 -46
- package/Section/index.js.map +1 -0
- package/Select/Select.d.ts +47 -14
- package/Select/Select.js +119 -48
- package/Select/Select.js.map +1 -0
- package/Select/index.js +3 -1
- package/Select/index.js.map +1 -0
- package/Skeleton/Skeleton.d.ts +27 -0
- package/Skeleton/Skeleton.js +19 -0
- package/Skeleton/Skeleton.js.map +1 -0
- package/Skeleton/index.d.ts +1 -0
- package/Skeleton/index.js +3 -0
- package/Skeleton/index.js.map +1 -0
- package/Slider/Slider.d.ts +13 -23
- package/Slider/Slider.js +46 -80
- package/Slider/Slider.js.map +1 -0
- package/Slider/index.js +3 -1
- package/Slider/index.js.map +1 -0
- package/Snackbar/Snackbar.d.ts +45 -12
- package/Snackbar/Snackbar.js +29 -51
- package/Snackbar/Snackbar.js.map +1 -0
- package/Snackbar/index.js +3 -1
- package/Snackbar/index.js.map +1 -0
- package/Switch/Switch.d.ts +22 -13
- package/Switch/Switch.js +25 -62
- package/Switch/Switch.js.map +1 -0
- package/Switch/index.js +3 -1
- package/Switch/index.js.map +1 -0
- package/Tabs/Tab.d.ts +30 -4
- package/Tabs/Tab.js +26 -9
- package/Tabs/Tab.js.map +1 -0
- package/Tabs/Tabs.d.ts +23 -22
- package/Tabs/Tabs.js +61 -138
- package/Tabs/Tabs.js.map +1 -0
- package/Tabs/index.js +3 -1
- package/Tabs/index.js.map +1 -0
- package/Tags/Tags.d.ts +18 -25
- package/Tags/Tags.js +12 -148
- package/Tags/Tags.js.map +1 -0
- package/Tags/index.js +3 -1
- package/Tags/index.js.map +1 -0
- package/TimeAgo/index.d.ts +7 -0
- package/TimeAgo/index.js +8 -0
- package/TimeAgo/index.js.map +1 -0
- package/Tooltip/Tooltip.d.ts +7 -18
- package/Tooltip/Tooltip.js +62 -57
- package/Tooltip/Tooltip.js.map +1 -0
- package/Tooltip/index.js +3 -1
- package/Tooltip/index.js.map +1 -0
- package/TopAppBar/TopAppBar.d.ts +28 -4
- package/TopAppBar/TopAppBar.js +34 -9
- package/TopAppBar/TopAppBar.js.map +1 -0
- package/TopAppBar/TopAppBarActionItem.d.ts +6 -4
- package/TopAppBar/TopAppBarActionItem.js +11 -6
- package/TopAppBar/TopAppBarActionItem.js.map +1 -0
- package/TopAppBar/TopAppBarNavigationIcon.d.ts +6 -4
- package/TopAppBar/TopAppBarNavigationIcon.js +11 -6
- package/TopAppBar/TopAppBarNavigationIcon.js.map +1 -0
- package/TopAppBar/TopAppBarPrimary.d.ts +8 -4
- package/TopAppBar/TopAppBarPrimary.js +12 -9
- package/TopAppBar/TopAppBarPrimary.js.map +1 -0
- package/TopAppBar/TopAppBarSecondary.d.ts +8 -4
- package/TopAppBar/TopAppBarSecondary.js +13 -11
- package/TopAppBar/TopAppBarSecondary.js.map +1 -0
- package/TopAppBar/TopAppBarSection.d.ts +13 -4
- package/TopAppBar/TopAppBarSection.js +9 -11
- package/TopAppBar/TopAppBarSection.js.map +1 -0
- package/TopAppBar/TopAppBarTitle.d.ts +8 -5
- package/TopAppBar/TopAppBarTitle.js +10 -11
- package/TopAppBar/TopAppBarTitle.js.map +1 -0
- package/TopAppBar/index.js +3 -1
- package/TopAppBar/index.js.map +1 -0
- package/Typography/Typography.d.ts +12 -7
- package/Typography/Typography.js +33 -7
- package/Typography/Typography.js.map +1 -0
- package/Typography/index.js +3 -1
- package/Typography/index.js.map +1 -0
- package/package.json +24 -103
- package/styles.scss +15 -42
- package/types.d.ts +6 -6
- package/types.js +3 -1
- package/types.js.map +1 -0
- package/Accordion/Accordion.stories.d.ts +0 -1
- package/Accordion/Accordion.stories.js +0 -43
- package/Accordion/README.md +0 -11
- package/Accordion/icons/round-keyboard_arrow_down-24px.svg +0 -16
- package/Accordion/icons/round-keyboard_arrow_up-24px.svg +0 -16
- package/Accordion/icons/round-settings-24px.svg +0 -21
- package/Alert/Alert.stories.d.ts +0 -1
- package/Alert/Alert.stories.js +0 -29
- package/Alert/README.md +0 -11
- package/AutoComplete/AutoComplete.stories.d.ts +0 -1
- package/AutoComplete/AutoComplete.stories.js +0 -76
- package/AutoComplete/AutoCompleteReadme.md +0 -11
- package/AutoComplete/MultiAutoComplete.stories.d.ts +0 -1
- package/AutoComplete/MultiAutoComplete.stories.js +0 -132
- package/AutoComplete/MultiAutoCompleteReadme.md +0 -11
- package/AutoComplete/icons/baseline-close-24px.svg +0 -4
- package/AutoComplete/icons/delete.svg +0 -12
- package/AutoComplete/icons/navigate_before-24px.svg +0 -1
- package/AutoComplete/icons/navigate_next-24px.svg +0 -1
- package/AutoComplete/icons/reorder_black_24dp.svg +0 -1
- package/AutoComplete/icons/skip_next-24px.svg +0 -1
- package/AutoComplete/icons/skip_previous-24px.svg +0 -1
- package/AutoComplete/icons/spinner.svg +0 -3
- package/AutoComplete/styles.d.ts +0 -2
- package/AutoComplete/styles.js +0 -37
- package/Avatar/Avatar.stories.d.ts +0 -1
- package/Avatar/Avatar.stories.js +0 -27
- package/Avatar/README.md +0 -11
- package/Button/Button.stories.d.ts +0 -1
- package/Button/Button.stories.js +0 -53
- package/Button/CopyButton/CopyButton.d.ts +0 -14
- package/Button/CopyButton/CopyButton.js +0 -32
- package/Button/CopyButton/CopyButton.stories.d.ts +0 -1
- package/Button/CopyButton/CopyButton.stories.js +0 -18
- package/Button/CopyButton/README.md +0 -11
- package/Button/IconButton/IconButton.d.ts +0 -39
- package/Button/IconButton/IconButton.js +0 -31
- package/Button/IconButton/IconButton.stories.d.ts +0 -1
- package/Button/IconButton/IconButton.stories.js +0 -38
- package/Button/IconButton/README.md +0 -15
- package/Button/README.md +0 -28
- package/Button/assets/baseline-cloud_done-24px.svg +0 -3
- package/Button/assets/file_copy-24px.svg +0 -1
- package/Button/assets/round-more_vert-24px.svg +0 -12
- package/Carousel/Carouser.stories.d.ts +0 -1
- package/Carousel/Carouser.stories.js +0 -29
- package/Carousel/README.md +0 -15
- package/Checkbox/Checkbox.stories.d.ts +0 -1
- package/Checkbox/Checkbox.stories.js +0 -28
- package/Checkbox/Checkbox.styles.d.ts +0 -6
- package/Checkbox/Checkbox.styles.js +0 -15
- package/Checkbox/CheckboxGroup.stories.d.ts +0 -1
- package/Checkbox/CheckboxGroup.stories.js +0 -55
- package/Checkbox/README_Checkbox.md +0 -15
- package/Checkbox/README_CheckboxGroup.md +0 -19
- package/Chips/ChipIcon.d.ts +0 -4
- package/Chips/ChipIcon.js +0 -8
- package/Chips/Chips.stories.d.ts +0 -1
- package/Chips/Chips.stories.js +0 -25
- package/Chips/README.md +0 -15
- package/Chips/icons/baseline-done-24px.svg +0 -4
- package/Chips/icons/baseline-email-24px.svg +0 -3
- package/Chips/styles.d.ts +0 -2
- package/Chips/styles.js +0 -17
- package/CodeEditor/CodeEditor.stories.d.ts +0 -2
- package/CodeEditor/CodeEditor.stories.js +0 -32
- package/CodeEditor/README.md +0 -21
- package/ColorPicker/ColorPicker.stories.d.ts +0 -1
- package/ColorPicker/ColorPicker.stories.js +0 -30
- package/ColorPicker/README.md +0 -11
- package/ConfirmationDialog/ConfirmationDialog.stories.d.ts +0 -1
- package/ConfirmationDialog/ConfirmationDialog.stories.js +0 -30
- package/ConfirmationDialog/README.md +0 -11
- package/Dialog/Dialog.stories.d.ts +0 -1
- package/Dialog/Dialog.stories.js +0 -30
- package/Dialog/README.md +0 -23
- package/Drawer/Drawer.stories.d.ts +0 -1
- package/Drawer/Drawer.stories.js +0 -23
- package/Drawer/README.md +0 -15
- package/DynamicFieldset/Fieldset.d.ts +0 -41
- package/DynamicFieldset/Fieldset.js +0 -143
- package/Elevation/Elevation.stories.d.ts +0 -1
- package/Elevation/Elevation.stories.js +0 -29
- package/Elevation/README.md +0 -15
- package/FullName/README.md +0 -11
- package/Grid/Grid.stories.d.ts +0 -1
- package/Grid/Grid.stories.js +0 -31
- package/Grid/README.md +0 -15
- package/Icon/Icon.stories.d.ts +0 -1
- package/Icon/Icon.stories.js +0 -27
- package/Icon/README.md +0 -11
- package/Icon/svg/baseline-autorenew-24px.svg +0 -4
- package/Icon/svg/baseline-cloud_done-24px.svg +0 -4
- package/Icon/svg/baseline-delete-24px.svg +0 -4
- package/Icon/svg/baseline-done-24px.svg +0 -4
- package/Image/Image.d.ts +0 -6
- package/Image/Image.js +0 -18
- package/Image/Image.stories.d.ts +0 -1
- package/Image/Image.stories.js +0 -21
- package/Image/README.md +0 -12
- package/ImageEditor/toolbar/crop.d.ts +0 -4
- package/ImageEditor/toolbar/crop.js +0 -69
- package/ImageEditor/toolbar/filter.d.ts +0 -3
- package/ImageEditor/toolbar/filter.js +0 -209
- package/ImageEditor/toolbar/flip.d.ts +0 -4
- package/ImageEditor/toolbar/flip.js +0 -96
- package/ImageEditor/toolbar/icons/crop.svg +0 -4
- package/ImageEditor/toolbar/icons/draw.svg +0 -4
- package/ImageEditor/toolbar/icons/filter.svg +0 -4
- package/ImageEditor/toolbar/icons/flip.svg +0 -4
- package/ImageEditor/toolbar/icons/index.d.ts +0 -8
- package/ImageEditor/toolbar/icons/index.js +0 -8
- package/ImageEditor/toolbar/icons/redo.svg +0 -4
- package/ImageEditor/toolbar/icons/rotateLeft.svg +0 -4
- package/ImageEditor/toolbar/icons/rotateRight.svg +0 -4
- package/ImageEditor/toolbar/icons/undo.svg +0 -4
- package/ImageEditor/toolbar/index.d.ts +0 -4
- package/ImageEditor/toolbar/index.js +0 -4
- package/ImageEditor/toolbar/rotate.d.ts +0 -4
- package/ImageEditor/toolbar/rotate.js +0 -145
- package/ImageEditor/toolbar/types.d.ts +0 -22
- package/ImageEditor/toolbar/types.js +0 -1
- package/ImageUpload/MultiImageUpload.stories.d.ts +0 -1
- package/ImageUpload/MultiImageUpload.stories.js +0 -66
- package/ImageUpload/README.md +0 -11
- package/ImageUpload/SingleImageUpload.stories.d.ts +0 -1
- package/ImageUpload/SingleImageUpload.stories.js +0 -43
- package/ImageUpload/icons/round-add_photo_alternate-24px.svg +0 -23
- package/ImageUpload/icons/round-close-24px.svg +0 -13
- package/ImageUpload/icons/round-edit-24px.svg +0 -4
- package/ImageUpload/image.jpeg +0 -0
- package/ImageUpload/styled.d.ts +0 -15
- package/ImageUpload/styled.js +0 -122
- package/Input/Input.stories.d.ts +0 -1
- package/Input/Input.stories.js +0 -104
- package/Input/README.md +0 -16
- package/Input/__tests__/Input.test.d.ts +0 -1
- package/Input/__tests__/Input.test.js +0 -113
- package/Input/svg/baseline-autorenew-24px.svg +0 -4
- package/Input/svg/baseline-cloud_done-24px.svg +0 -4
- package/Input/svg/baseline-delete-24px.svg +0 -4
- package/Input/svg/baseline-done-24px.svg +0 -4
- package/List/CollapsibleList/CollapsibleList.stories.d.ts +0 -1
- package/List/CollapsibleList/CollapsibleList.stories.js +0 -26
- package/List/CollapsibleList/README.md +0 -11
- package/List/CollapsibleList/index.css +0 -31
- package/List/DataList/DataList.stories.d.ts +0 -1
- package/List/DataList/DataList.stories.js +0 -107
- package/List/DataList/DataListModalOverlay/DataListModalOverlay.d.ts +0 -18
- package/List/DataList/DataListModalOverlay/DataListModalOverlay.js +0 -87
- package/List/DataList/DataListModalOverlay/DataListModalOverlayAction.d.ts +0 -6
- package/List/DataList/DataListModalOverlay/DataListModalOverlayAction.js +0 -21
- package/List/DataList/DataListModalOverlay/DataListModalOverlayContext.d.ts +0 -6
- package/List/DataList/DataListModalOverlay/DataListModalOverlayContext.js +0 -18
- package/List/DataList/Loader.d.ts +0 -3
- package/List/DataList/Loader.js +0 -57
- package/List/DataList/NoData.d.ts +0 -3
- package/List/DataList/NoData.js +0 -19
- package/List/DataList/README.md +0 -17
- package/List/DataList/icons/baseline-autorenew-24px.svg +0 -4
- package/List/DataList/icons/baseline-delete-24px.svg +0 -4
- package/List/DataList/icons/baseline-edit-24px.svg +0 -4
- package/List/DataList/icons/baseline-navigate_before-24px.svg +0 -4
- package/List/DataList/icons/baseline-navigate_next-24px.svg +0 -4
- package/List/DataList/icons/baseline-sort-24px.svg +0 -4
- package/List/DataList/icons/baseline-tune-24px.svg +0 -4
- package/List/DataList/icons/filter_alt-24px.svg +0 -1
- package/List/DataList/icons/round-more_vert-24px.svg +0 -12
- package/List/List.d.ts +0 -131
- package/List/List.js +0 -167
- package/List/List.stories.d.ts +0 -1
- package/List/List.stories.js +0 -47
- package/List/README.md +0 -22
- package/List/icons/baseline-autorenew-24px.svg +0 -4
- package/List/icons/baseline-cloud_done-24px.svg +0 -4
- package/List/icons/baseline-delete-24px.svg +0 -4
- package/List/icons/baseline-done-24px.svg +0 -4
- package/List/icons/baseline-email-24px.svg +0 -4
- package/List/icons/index.d.ts +0 -3
- package/List/icons/index.js +0 -3
- package/Menu/Menu.stories.d.ts +0 -1
- package/Menu/Menu.stories.js +0 -29
- package/Menu/README.md +0 -15
- package/Mosaic/Mosaic.stories.d.ts +0 -1
- package/Mosaic/Mosaic.stories.js +0 -75
- package/Mosaic/README.md +0 -15
- package/Progress/README.md +0 -19
- package/Progress/svg/circularProgress.svg +0 -3
- package/Radio/README.md +0 -17
- package/Radio/Radio.styles.d.ts +0 -6
- package/Radio/Radio.styles.js +0 -15
- package/Radio/RadioGroup.stories.d.ts +0 -1
- package/Radio/RadioGroup.stories.js +0 -55
- package/RichTextEditor/README.md +0 -10
- package/RichTextEditor/RichTextEditor.stories.d.ts +0 -1
- package/RichTextEditor/RichTextEditor.stories.js +0 -19
- package/RichTextEditor/createPropsFromConfig.d.ts +0 -5
- package/RichTextEditor/createPropsFromConfig.js +0 -18
- package/Ripple/README.md +0 -15
- package/Ripple/Ripple.stories.d.ts +0 -1
- package/Ripple/Ripple.stories.js +0 -71
- package/Ripple/svg/baseline-autorenew-24px.svg +0 -4
- package/Ripple/svg/baseline-cloud_done-24px.svg +0 -4
- package/Ripple/svg/baseline-delete-24px.svg +0 -4
- package/Ripple/svg/baseline-done-24px.svg +0 -4
- package/Scrollbar/README.md +0 -15
- package/Scrollbar/Scrollbar.stories.d.ts +0 -1
- package/Scrollbar/Scrollbar.stories.js +0 -20
- package/Section/README.md +0 -11
- package/Section/Section.stories.d.ts +0 -1
- package/Section/Section.stories.js +0 -25
- package/Select/README.md +0 -15
- package/Select/Select.stories.d.ts +0 -1
- package/Select/Select.stories.js +0 -46
- package/Slider/README.md +0 -15
- package/Slider/Slider.stories.d.ts +0 -1
- package/Slider/Slider.stories.js +0 -44
- package/Snackbar/README.md +0 -15
- package/Snackbar/Snackbar.stories.d.ts +0 -1
- package/Snackbar/Snackbar.stories.js +0 -77
- package/Switch/README.md +0 -15
- package/Switch/Switch.stories.d.ts +0 -1
- package/Switch/Switch.stories.js +0 -32
- package/Tabs/Tabs.stories.d.ts +0 -1
- package/Tabs/Tabs.stories.js +0 -41
- package/Tabs/svg/baseline-autorenew-24px.svg +0 -4
- package/Tabs/svg/baseline-cloud_done-24px.svg +0 -4
- package/Tabs/svg/baseline-delete-24px.svg +0 -4
- package/Tabs/svg/baseline-done-24px.svg +0 -4
- package/Tags/README.md +0 -15
- package/Tags/Tags.stories.d.ts +0 -1
- package/Tags/Tags.stories.js +0 -32
- package/Tags/icons/baseline-close-24px.svg +0 -4
- package/Tooltip/README.md +0 -15
- package/Tooltip/Tooltip.stories.d.ts +0 -1
- package/Tooltip/Tooltip.stories.js +0 -17
- package/Tooltip/style.scss +0 -97
- package/TopAppBar/README.md +0 -20
- package/TopAppBar/TopAppBar.stories.d.ts +0 -1
- package/TopAppBar/TopAppBar.stories.js +0 -56
- package/TopAppBar/icons/baseline-autorenew-24px.svg +0 -4
- package/TopAppBar/icons/baseline-cloud_done-24px.svg +0 -4
- package/TopAppBar/icons/baseline-delete-24px.svg +0 -4
- package/TopAppBar/icons/baseline-email-24px.svg +0 -4
- package/TopAppBar/icons/baseline-menu-24px.svg +0 -4
- package/TopProgressBar/README.md +0 -11
- package/TopProgressBar/TopProgressBar.d.ts +0 -15
- package/TopProgressBar/TopProgressBar.js +0 -9
- package/TopProgressBar/TopProgressBar.stories.d.ts +0 -1
- package/TopProgressBar/TopProgressBar.stories.js +0 -22
- package/TopProgressBar/hoc/index.d.ts +0 -1
- package/TopProgressBar/hoc/index.js +0 -1
- package/TopProgressBar/hoc/withTopProgressBar.d.ts +0 -3
- package/TopProgressBar/hoc/withTopProgressBar.js +0 -23
- package/TopProgressBar/index.d.ts +0 -1
- package/TopProgressBar/index.js +0 -1
- package/TopProgressBar/style.scss +0 -21
- package/Typography/README.md +0 -15
- package/Typography/Typography.stories.d.ts +0 -1
- package/Typography/Typography.stories.js +0 -67
- package/rmwc/textfield/code/index.d.ts +0 -135
- package/rmwc/textfield/code/index.js +0 -571
- package/rmwc/textfield/next/index.d.ts +0 -135
- package/rmwc/textfield/next/index.js +0 -560
- package/rmwc/textfield/package.json +0 -45
package/Snackbar/Snackbar.d.ts
CHANGED
|
@@ -1,15 +1,48 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { ButtonProps } from "@webiny/admin-ui";
|
|
3
|
+
type CustomEventT<T> = CustomEvent<T> & React.SyntheticEvent<EventTarget>;
|
|
4
|
+
type SnackbarActionProps = ButtonProps & {
|
|
5
|
+
/** Content specified as a label prop. */
|
|
6
|
+
label?: React.ReactNode | any;
|
|
7
|
+
/** An action returned in evt.detail.reason to the onClose handler. */
|
|
8
|
+
action?: string;
|
|
9
|
+
};
|
|
10
|
+
type ToastActionWithDataActionProps = ButtonProps & {
|
|
11
|
+
"data-action"?: string;
|
|
12
|
+
};
|
|
13
|
+
type SnackbarProps = {
|
|
14
|
+
open?: boolean;
|
|
15
|
+
/** A callback thats fired when the Snackbar shows. */
|
|
16
|
+
onOpen?: (evt: CustomEventT<any>) => void;
|
|
17
|
+
/** A callback thats fired when the Snackbar hides. evt.detail = { reason?: string } */
|
|
18
|
+
onClose?: (evt: CustomEventT<{
|
|
19
|
+
reason?: string;
|
|
20
|
+
}>) => void;
|
|
21
|
+
/** A string or other renderable JSX to be used as the message body. */
|
|
22
|
+
message?: React.ReactNode;
|
|
23
|
+
/** One or more actions to add to the snackbar. */
|
|
24
|
+
action?: React.ReactElement<ToastActionWithDataActionProps> | React.ReactElement<ToastActionWithDataActionProps>[];
|
|
25
|
+
/** Milliseconds to show the Snackbar for. Set to -1 to show indefinitely. */
|
|
26
|
+
timeout?: number;
|
|
27
|
+
/** Places the action underneath the message text. */
|
|
28
|
+
stacked?: boolean;
|
|
29
|
+
leading?: boolean;
|
|
30
|
+
dismissIcon?: boolean | React.ReactNode;
|
|
31
|
+
/** Whether or not your want clicking an action to close the Snackbar. */
|
|
32
|
+
dismissesOnAction?: boolean;
|
|
33
|
+
/** An icon for the snackbar */
|
|
34
|
+
icon?: React.ReactNode;
|
|
35
|
+
};
|
|
4
36
|
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* @returns {*}
|
|
8
|
-
* @constructor
|
|
37
|
+
* @deprecated This component is deprecated and will be removed in future releases.
|
|
38
|
+
* Please use the `useToast` hook from the `@webiny/admin-ui` to show messages package instead.
|
|
9
39
|
*/
|
|
10
|
-
declare
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
40
|
+
declare const Snackbar: ({ message }: SnackbarProps) => React.JSX.Element;
|
|
41
|
+
/**
|
|
42
|
+
* @deprecated This component is deprecated and will be removed in future releases.
|
|
43
|
+
* Please use the `Button` component from the `@webiny/admin-ui` package instead.
|
|
44
|
+
*/
|
|
45
|
+
declare const SnackbarAction: ({ label, action, onClick }: SnackbarActionProps) => React.ReactElement<ButtonProps & {
|
|
46
|
+
"data-action"?: string;
|
|
47
|
+
}>;
|
|
15
48
|
export { Snackbar, SnackbarAction };
|
package/Snackbar/Snackbar.js
CHANGED
|
@@ -1,54 +1,32 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
|
|
4
|
-
import _inherits from "@babel/runtime/helpers/inherits";
|
|
5
|
-
import _createSuper from "@babel/runtime/helpers/createSuper";
|
|
6
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
7
|
-
import * as React from "react";
|
|
8
|
-
import { Snackbar as RmwcSnackbar, SnackbarAction } from "@rmwc/snackbar";
|
|
9
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Button } from "@webiny/admin-ui";
|
|
10
3
|
/**
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* @returns {*}
|
|
14
|
-
* @constructor
|
|
4
|
+
* @deprecated This component is deprecated and will be removed in future releases.
|
|
5
|
+
* Please use the `useToast` hook from the `@webiny/admin-ui` to show messages package instead.
|
|
15
6
|
*/
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
var _this;
|
|
23
|
-
|
|
24
|
-
_classCallCheck(this, Snackbar);
|
|
25
|
-
|
|
26
|
-
_this = _super.call(this, props);
|
|
27
|
-
|
|
28
|
-
_defineProperty(_assertThisInitialized(_this), "container", void 0);
|
|
29
|
-
|
|
30
|
-
_this.container = document.getElementById("snackbar-container");
|
|
31
|
-
|
|
32
|
-
if (!_this.container) {
|
|
33
|
-
_this.container = document.createElement("div");
|
|
7
|
+
const Snackbar = ({
|
|
8
|
+
message
|
|
9
|
+
}) => {
|
|
10
|
+
console.warn("Snackbar component has been deprecated: use the `useToast` hook from the `@webiny/admin-ui` to show messages package instead.");
|
|
11
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, message);
|
|
12
|
+
};
|
|
34
13
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
export { Snackbar, SnackbarAction };
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated This component is deprecated and will be removed in future releases.
|
|
16
|
+
* Please use the `Button` component from the `@webiny/admin-ui` package instead.
|
|
17
|
+
*/
|
|
18
|
+
const SnackbarAction = ({
|
|
19
|
+
label,
|
|
20
|
+
action,
|
|
21
|
+
onClick
|
|
22
|
+
}) => {
|
|
23
|
+
return /*#__PURE__*/React.createElement(Button, {
|
|
24
|
+
variant: "primary",
|
|
25
|
+
onClick: onClick,
|
|
26
|
+
"data-action": action,
|
|
27
|
+
text: label
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
export { Snackbar, SnackbarAction };
|
|
31
|
+
|
|
32
|
+
//# sourceMappingURL=Snackbar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Button","Snackbar","message","console","warn","createElement","Fragment","SnackbarAction","label","action","onClick","variant","text"],"sources":["Snackbar.tsx"],"sourcesContent":["import React from \"react\";\nimport type { ButtonProps } from \"@webiny/admin-ui\";\nimport { Button } from \"@webiny/admin-ui\";\n\ntype CustomEventT<T> = CustomEvent<T> & React.SyntheticEvent<EventTarget>;\n\ntype SnackbarActionProps = ButtonProps & {\n /** Content specified as a label prop. */\n label?: React.ReactNode | any;\n /** An action returned in evt.detail.reason to the onClose handler. */\n action?: string;\n};\n\ntype ToastActionWithDataActionProps = ButtonProps & {\n \"data-action\"?: string;\n};\n\ntype SnackbarProps = {\n open?: boolean;\n /** A callback thats fired when the Snackbar shows. */\n onOpen?: (evt: CustomEventT<any>) => void;\n /** A callback thats fired when the Snackbar hides. evt.detail = { reason?: string } */\n onClose?: (\n evt: CustomEventT<{\n reason?: string;\n }>\n ) => void;\n /** A string or other renderable JSX to be used as the message body. */\n message?: React.ReactNode;\n /** One or more actions to add to the snackbar. */\n action?:\n | React.ReactElement<ToastActionWithDataActionProps>\n | React.ReactElement<ToastActionWithDataActionProps>[];\n /** Milliseconds to show the Snackbar for. Set to -1 to show indefinitely. */\n timeout?: number;\n /** Places the action underneath the message text. */\n stacked?: boolean;\n leading?: boolean;\n dismissIcon?: boolean | React.ReactNode;\n /** Whether or not your want clicking an action to close the Snackbar. */\n dismissesOnAction?: boolean;\n /** An icon for the snackbar */\n icon?: React.ReactNode;\n};\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `useToast` hook from the `@webiny/admin-ui` to show messages package instead.\n */\nconst Snackbar = ({ message }: SnackbarProps) => {\n console.warn(\n \"Snackbar component has been deprecated: use the `useToast` hook from the `@webiny/admin-ui` to show messages package instead.\"\n );\n return <>{message}</>;\n};\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Button` component from the `@webiny/admin-ui` package instead.\n */\nconst SnackbarAction = ({\n label,\n action,\n onClick\n}: SnackbarActionProps): React.ReactElement<ButtonProps & { \"data-action\"?: string }> => {\n return <Button variant={\"primary\"} onClick={onClick} data-action={action} text={label} />;\n};\n\nexport { Snackbar, SnackbarAction };\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,MAAM,QAAQ,kBAAkB;AA2CzC;AACA;AACA;AACA;AACA,MAAMC,QAAQ,GAAGA,CAAC;EAAEC;AAAuB,CAAC,KAAK;EAC7CC,OAAO,CAACC,IAAI,CACR,+HACJ,CAAC;EACD,oBAAOL,KAAA,CAAAM,aAAA,CAAAN,KAAA,CAAAO,QAAA,QAAGJ,OAAU,CAAC;AACzB,CAAC;;AAED;AACA;AACA;AACA;AACA,MAAMK,cAAc,GAAGA,CAAC;EACpBC,KAAK;EACLC,MAAM;EACNC;AACiB,CAAC,KAAmE;EACrF,oBAAOX,KAAA,CAAAM,aAAA,CAACL,MAAM;IAACW,OAAO,EAAE,SAAU;IAACD,OAAO,EAAEA,OAAQ;IAAC,eAAaD,MAAO;IAACG,IAAI,EAAEJ;EAAM,CAAE,CAAC;AAC7F,CAAC;AAED,SAASP,QAAQ,EAAEM,cAAc","ignoreList":[]}
|
package/Snackbar/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Snackbar","SnackbarAction"],"sources":["index.ts"],"sourcesContent":["export { Snackbar, SnackbarAction } from \"./Snackbar\";\n"],"mappings":"AAAA,SAASA,QAAQ,EAAEC,cAAc","ignoreList":[]}
|
package/Switch/Switch.d.ts
CHANGED
|
@@ -1,21 +1,30 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { FormComponentProps } from "../types";
|
|
3
|
+
type SwitchProps = {
|
|
4
|
+
/** A DOM ID for the toggle. */
|
|
5
|
+
id?: string;
|
|
6
|
+
/** Disables the control. */
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
/** Toggle the control on and off. */
|
|
9
|
+
checked?: boolean;
|
|
10
|
+
/** The value of the control. */
|
|
11
|
+
value?: string | number | string[];
|
|
12
|
+
/** A label for the control. */
|
|
13
|
+
label?: React.ReactNode;
|
|
14
|
+
/** By default, all props except className and style spread to the input. These are additional props for the root of the checkbox. */
|
|
15
|
+
rootProps?: React.HTMLProps<any>;
|
|
16
|
+
/** A reference to the native input. */
|
|
17
|
+
inputRef?: React.Ref<HTMLInputElement>;
|
|
18
|
+
};
|
|
19
|
+
type Props = Omit<SwitchProps, "value"> & FormComponentProps<boolean> & {
|
|
5
20
|
description?: string;
|
|
6
21
|
className?: string;
|
|
7
22
|
};
|
|
8
23
|
/**
|
|
9
|
-
*
|
|
24
|
+
* @deprecated This component is deprecated and will be removed in future releases.
|
|
25
|
+
* Please use the `Switch` component from the `@webiny/admin-ui` package instead.
|
|
10
26
|
*/
|
|
11
27
|
declare class Switch extends React.Component<Props> {
|
|
12
|
-
|
|
13
|
-
validation: {
|
|
14
|
-
isValid: any;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
static rmwcProps: string[];
|
|
18
|
-
onChange: (e: React.SyntheticEvent<HTMLElement>) => void;
|
|
19
|
-
render(): JSX.Element;
|
|
28
|
+
render(): React.JSX.Element;
|
|
20
29
|
}
|
|
21
30
|
export { Switch };
|
package/Switch/Switch.js
CHANGED
|
@@ -1,67 +1,30 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import _createClass from "@babel/runtime/helpers/createClass";
|
|
4
|
-
import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
|
|
5
|
-
import _inherits from "@babel/runtime/helpers/inherits";
|
|
6
|
-
import _createSuper from "@babel/runtime/helpers/createSuper";
|
|
7
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
|
-
import * as React from "react";
|
|
9
|
-
import { Switch as RmwcSwitch } from "@rmwc/switch";
|
|
10
|
-
import pick from "lodash/pick";
|
|
11
|
-
import { FormElementMessage } from "../FormElementMessage";
|
|
12
|
-
import { getClasses } from "../Helpers";
|
|
13
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Switch as AdminSwitch } from "@webiny/admin-ui";
|
|
14
3
|
/**
|
|
15
|
-
*
|
|
4
|
+
* @deprecated This component is deprecated and will be removed in future releases.
|
|
5
|
+
* Please use the `Switch` component from the `@webiny/admin-ui` package instead.
|
|
16
6
|
*/
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
7
|
+
class Switch extends React.Component {
|
|
8
|
+
render() {
|
|
9
|
+
const {
|
|
10
|
+
value,
|
|
11
|
+
description,
|
|
12
|
+
validation,
|
|
13
|
+
label,
|
|
14
|
+
disabled
|
|
15
|
+
} = this.props;
|
|
16
|
+
return /*#__PURE__*/React.createElement(AdminSwitch, {
|
|
17
|
+
label: label,
|
|
18
|
+
note: description,
|
|
19
|
+
validation: validation,
|
|
20
|
+
className: "webiny-ui-switch",
|
|
21
|
+
checked: Boolean(value),
|
|
22
|
+
value: String(value),
|
|
23
|
+
onChange: () => this.props.onChange && this.props.onChange(!value),
|
|
24
|
+
disabled: disabled
|
|
35
25
|
});
|
|
36
|
-
|
|
37
|
-
return _this;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
_createClass(Switch, [{
|
|
41
|
-
key: "render",
|
|
42
|
-
value: function render() {
|
|
43
|
-
var _this$props = this.props,
|
|
44
|
-
value = _this$props.value,
|
|
45
|
-
description = _this$props.description,
|
|
46
|
-
validation = _this$props.validation;
|
|
47
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(RmwcSwitch, Object.assign({}, getClasses(_objectSpread({}, pick(this.props, Switch.rmwcProps)), "webiny-ui-switch"), {
|
|
48
|
-
checked: Boolean(value),
|
|
49
|
-
onChange: this.onChange
|
|
50
|
-
})), validation.isValid === false && /*#__PURE__*/React.createElement(FormElementMessage, {
|
|
51
|
-
error: true
|
|
52
|
-
}, validation.message), validation.isValid !== false && description && /*#__PURE__*/React.createElement(FormElementMessage, null, description));
|
|
53
|
-
}
|
|
54
|
-
}]);
|
|
55
|
-
|
|
56
|
-
return Switch;
|
|
57
|
-
}(React.Component);
|
|
58
|
-
|
|
59
|
-
_defineProperty(Switch, "defaultProps", {
|
|
60
|
-
validation: {
|
|
61
|
-
isValid: null
|
|
62
26
|
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
_defineProperty(Switch, "rmwcProps", ["id", "disabled", "checked", "label", "rootProps", "className"]);
|
|
27
|
+
}
|
|
28
|
+
export { Switch };
|
|
66
29
|
|
|
67
|
-
|
|
30
|
+
//# sourceMappingURL=Switch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Switch","AdminSwitch","Component","render","value","description","validation","label","disabled","props","createElement","note","className","checked","Boolean","String","onChange"],"sources":["Switch.tsx"],"sourcesContent":["import React from \"react\";\nimport type { FormComponentProps } from \"~/types\";\nimport { Switch as AdminSwitch } from \"@webiny/admin-ui\";\n\ntype SwitchProps = {\n /** A DOM ID for the toggle. */\n id?: string;\n /** Disables the control. */\n disabled?: boolean;\n /** Toggle the control on and off. */\n checked?: boolean;\n /** The value of the control. */\n value?: string | number | string[];\n /** A label for the control. */\n label?: React.ReactNode;\n /** By default, all props except className and style spread to the input. These are additional props for the root of the checkbox. */\n rootProps?: React.HTMLProps<any>;\n /** A reference to the native input. */\n inputRef?: React.Ref<HTMLInputElement>;\n};\n\ntype Props = Omit<SwitchProps, \"value\"> &\n FormComponentProps<boolean> & {\n // Description beneath the switch.\n description?: string;\n\n // Optional class name.\n className?: string;\n };\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Switch` component from the `@webiny/admin-ui` package instead.\n */\nclass Switch extends React.Component<Props> {\n public override render() {\n const { value, description, validation, label, disabled } = this.props;\n\n return (\n <AdminSwitch\n label={label}\n note={description}\n validation={validation}\n className={\"webiny-ui-switch\"}\n checked={Boolean(value)}\n value={String(value)}\n onChange={() => this.props.onChange && this.props.onChange(!value)}\n disabled={disabled}\n />\n );\n }\n}\n\nexport { Switch };\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,MAAM,IAAIC,WAAW,QAAQ,kBAAkB;AA4BxD;AACA;AACA;AACA;AACA,MAAMD,MAAM,SAASD,KAAK,CAACG,SAAS,CAAQ;EACxBC,MAAMA,CAAA,EAAG;IACrB,MAAM;MAAEC,KAAK;MAAEC,WAAW;MAAEC,UAAU;MAAEC,KAAK;MAAEC;IAAS,CAAC,GAAG,IAAI,CAACC,KAAK;IAEtE,oBACIV,KAAA,CAAAW,aAAA,CAACT,WAAW;MACRM,KAAK,EAAEA,KAAM;MACbI,IAAI,EAAEN,WAAY;MAClBC,UAAU,EAAEA,UAAW;MACvBM,SAAS,EAAE,kBAAmB;MAC9BC,OAAO,EAAEC,OAAO,CAACV,KAAK,CAAE;MACxBA,KAAK,EAAEW,MAAM,CAACX,KAAK,CAAE;MACrBY,QAAQ,EAAEA,CAAA,KAAM,IAAI,CAACP,KAAK,CAACO,QAAQ,IAAI,IAAI,CAACP,KAAK,CAACO,QAAQ,CAAC,CAACZ,KAAK,CAAE;MACnEI,QAAQ,EAAEA;IAAS,CACtB,CAAC;EAEV;AACJ;AAEA,SAASR,MAAM","ignoreList":[]}
|
package/Switch/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Switch\";\n"],"mappings":"AAAA","ignoreList":[]}
|
package/Tabs/Tab.d.ts
CHANGED
|
@@ -1,6 +1,24 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type TabProps = {
|
|
3
|
+
/**
|
|
4
|
+
* A label for the tab.
|
|
5
|
+
*/
|
|
6
|
+
label?: any;
|
|
7
|
+
/**
|
|
8
|
+
* The label for the tab, passed as children.
|
|
9
|
+
*/
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* The icon to use for the tab.
|
|
13
|
+
*/
|
|
14
|
+
icon?: React.ReactElement;
|
|
15
|
+
/**
|
|
16
|
+
* Is tab visible?
|
|
17
|
+
*/
|
|
18
|
+
visible?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* @deprecated
|
|
21
|
+
*/
|
|
4
22
|
tag?: string;
|
|
5
23
|
/**
|
|
6
24
|
* Is tab disabled?
|
|
@@ -10,5 +28,13 @@ export declare type TabProps = RmwcTabProps & {
|
|
|
10
28
|
* Style object
|
|
11
29
|
*/
|
|
12
30
|
style?: React.CSSProperties;
|
|
31
|
+
/**
|
|
32
|
+
* Tab ID for the testing.
|
|
33
|
+
*/
|
|
34
|
+
"data-testid"?: string;
|
|
13
35
|
};
|
|
14
|
-
|
|
36
|
+
/**
|
|
37
|
+
* @deprecated This component is deprecated and will be removed in future releases.
|
|
38
|
+
* Please find out the new `Tabs` component props from the `@webiny/admin-ui` package instead.
|
|
39
|
+
*/
|
|
40
|
+
export declare const Tab: React.MemoExoticComponent<(props: TabProps) => null>;
|
package/Tabs/Tab.js
CHANGED
|
@@ -1,10 +1,27 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import React, { useContext, useEffect, useRef } from "react";
|
|
2
|
+
import { generateAlphaNumericId } from "@webiny/utils/generateId";
|
|
3
|
+
import { DeprecatedTabsContext } from "./Tabs";
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated This component is deprecated and will be removed in future releases.
|
|
6
|
+
* Please find out the new `Tabs` component props from the `@webiny/admin-ui` package instead.
|
|
7
|
+
*/
|
|
8
|
+
export const Tab = /*#__PURE__*/React.memo(props => {
|
|
9
|
+
const tabsContext = useContext(DeprecatedTabsContext);
|
|
10
|
+
const idRef = useRef(generateAlphaNumericId(12));
|
|
11
|
+
useEffect(() => {
|
|
12
|
+
tabsContext.addTab({
|
|
13
|
+
...props,
|
|
14
|
+
id: idRef.current,
|
|
15
|
+
visible: props.visible ?? true
|
|
16
|
+
});
|
|
17
|
+
}, [props]);
|
|
18
|
+
useEffect(() => {
|
|
19
|
+
return () => {
|
|
20
|
+
return tabsContext.removeTab(idRef.current);
|
|
21
|
+
};
|
|
22
|
+
}, []);
|
|
23
|
+
return null;
|
|
24
|
+
});
|
|
25
|
+
Tab.displayName = "Tab";
|
|
8
26
|
|
|
9
|
-
|
|
10
|
-
};
|
|
27
|
+
//# sourceMappingURL=Tab.js.map
|
package/Tabs/Tab.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useContext","useEffect","useRef","generateAlphaNumericId","DeprecatedTabsContext","Tab","memo","props","tabsContext","idRef","addTab","id","current","visible","removeTab","displayName"],"sources":["Tab.tsx"],"sourcesContent":["import React, { useContext, useEffect, useRef } from \"react\";\nimport { generateAlphaNumericId } from \"@webiny/utils/generateId\";\nimport { DeprecatedTabsContext } from \"./Tabs\";\n\nexport type TabProps = {\n /**\n * A label for the tab.\n */\n label?: any;\n /**\n * The label for the tab, passed as children.\n */\n children?: React.ReactNode;\n /**\n * The icon to use for the tab.\n */\n icon?: React.ReactElement;\n /**\n * Is tab visible?\n */\n visible?: boolean;\n /**\n * @deprecated\n */\n tag?: string;\n /**\n * Is tab disabled?\n */\n disabled?: boolean;\n /**\n * Style object\n */\n style?: React.CSSProperties;\n /**\n * Tab ID for the testing.\n */\n \"data-testid\"?: string;\n};\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please find out the new `Tabs` component props from the `@webiny/admin-ui` package instead.\n */\nexport const Tab = React.memo((props: TabProps) => {\n const tabsContext = useContext(DeprecatedTabsContext);\n const idRef = useRef(generateAlphaNumericId(12));\n\n useEffect(() => {\n tabsContext!.addTab({ ...props, id: idRef.current, visible: props.visible ?? true });\n }, [props]);\n\n useEffect(() => {\n return () => {\n return tabsContext!.removeTab(idRef.current);\n };\n }, []);\n\n return null;\n});\n\nTab.displayName = \"Tab\";\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,UAAU,EAAEC,SAAS,EAAEC,MAAM,QAAQ,OAAO;AAC5D,SAASC,sBAAsB,QAAQ,0BAA0B;AACjE,SAASC,qBAAqB;AAqC9B;AACA;AACA;AACA;AACA,OAAO,MAAMC,GAAG,gBAAGN,KAAK,CAACO,IAAI,CAAEC,KAAe,IAAK;EAC/C,MAAMC,WAAW,GAAGR,UAAU,CAACI,qBAAqB,CAAC;EACrD,MAAMK,KAAK,GAAGP,MAAM,CAACC,sBAAsB,CAAC,EAAE,CAAC,CAAC;EAEhDF,SAAS,CAAC,MAAM;IACZO,WAAW,CAAEE,MAAM,CAAC;MAAE,GAAGH,KAAK;MAAEI,EAAE,EAAEF,KAAK,CAACG,OAAO;MAAEC,OAAO,EAAEN,KAAK,CAACM,OAAO,IAAI;IAAK,CAAC,CAAC;EACxF,CAAC,EAAE,CAACN,KAAK,CAAC,CAAC;EAEXN,SAAS,CAAC,MAAM;IACZ,OAAO,MAAM;MACT,OAAOO,WAAW,CAAEM,SAAS,CAACL,KAAK,CAACG,OAAO,CAAC;IAChD,CAAC;EACL,CAAC,EAAE,EAAE,CAAC;EAEN,OAAO,IAAI;AACf,CAAC,CAAC;AAEFP,GAAG,CAACU,WAAW,GAAG,KAAK","ignoreList":[]}
|
package/Tabs/Tabs.d.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export declare type TabsProps = {
|
|
1
|
+
import type { PropsWithChildren } from "react";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import type { TabProps } from "./Tab";
|
|
4
|
+
export type TabsProps = PropsWithChildren<{
|
|
6
5
|
/**
|
|
7
|
-
*
|
|
6
|
+
* Append an ID.
|
|
8
7
|
*/
|
|
9
|
-
|
|
8
|
+
id?: string;
|
|
10
9
|
/**
|
|
11
10
|
* Append a class name.
|
|
12
11
|
*/
|
|
@@ -20,22 +19,24 @@ export declare type TabsProps = {
|
|
|
20
19
|
*/
|
|
21
20
|
value?: number;
|
|
22
21
|
/**
|
|
23
|
-
*
|
|
22
|
+
* Tab ID for the testing.
|
|
24
23
|
*/
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
24
|
+
"data-testid"?: string;
|
|
25
|
+
}>;
|
|
26
|
+
interface TabItem extends TabProps {
|
|
27
|
+
id: string;
|
|
28
|
+
}
|
|
29
|
+
interface DeprecatedTabsContext {
|
|
30
|
+
addTab(props: TabItem): void;
|
|
31
|
+
removeTab(id: string): void;
|
|
32
|
+
}
|
|
33
|
+
export declare const DeprecatedTabsContext: React.Context<DeprecatedTabsContext | undefined>;
|
|
30
34
|
/**
|
|
31
|
-
*
|
|
35
|
+
* @deprecated This component is deprecated and will be removed in future releases.
|
|
36
|
+
* Please use the `Tabs` component from the `@webiny/admin-ui` package instead.
|
|
32
37
|
*/
|
|
33
|
-
export declare
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
switchTab(activeTabIndex: any): void;
|
|
38
|
-
renderChildren(children: any, activeIndex: any): JSX.Element;
|
|
39
|
-
render(): JSX.Element;
|
|
40
|
-
}
|
|
38
|
+
export declare const Tabs: {
|
|
39
|
+
({ value, onActivate, ...props }: TabsProps): React.JSX.Element;
|
|
40
|
+
displayName: string;
|
|
41
|
+
};
|
|
41
42
|
export {};
|