@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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/ui",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-unstable.06b2ede40f",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -14,108 +14,37 @@
|
|
|
14
14
|
],
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@
|
|
18
|
-
"@
|
|
19
|
-
"@
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"@material/textfield": "3.2.0",
|
|
23
|
-
"@rmwc/base": "5.7.2",
|
|
24
|
-
"@rmwc/button": "5.7.2",
|
|
25
|
-
"@rmwc/checkbox": "5.7.2",
|
|
26
|
-
"@rmwc/chip": "5.7.2",
|
|
27
|
-
"@rmwc/dialog": "5.7.2",
|
|
28
|
-
"@rmwc/drawer": "5.7.2",
|
|
29
|
-
"@rmwc/elevation": "5.7.2",
|
|
30
|
-
"@rmwc/fab": "5.7.2",
|
|
31
|
-
"@rmwc/floating-label": "5.7.2",
|
|
32
|
-
"@rmwc/grid": "5.7.2",
|
|
33
|
-
"@rmwc/icon": "5.7.2",
|
|
34
|
-
"@rmwc/icon-button": "5.7.2",
|
|
35
|
-
"@rmwc/line-ripple": "5.7.2",
|
|
36
|
-
"@rmwc/list": "5.7.2",
|
|
37
|
-
"@rmwc/menu": "5.7.2",
|
|
38
|
-
"@rmwc/notched-outline": "5.7.2",
|
|
39
|
-
"@rmwc/radio": "5.7.2",
|
|
40
|
-
"@rmwc/ripple": "5.7.2",
|
|
41
|
-
"@rmwc/select": "5.7.2",
|
|
42
|
-
"@rmwc/slider": "5.7.2",
|
|
43
|
-
"@rmwc/snackbar": "5.7.2",
|
|
44
|
-
"@rmwc/switch": "5.7.2",
|
|
45
|
-
"@rmwc/tabs": "5.7.2",
|
|
46
|
-
"@rmwc/textfield": "file:./rmwc/textfield",
|
|
47
|
-
"@rmwc/top-app-bar": "5.7.2",
|
|
48
|
-
"@rmwc/types": "5.6.0",
|
|
49
|
-
"@rmwc/typography": "5.7.2",
|
|
50
|
-
"@svgr/webpack": "4.3.3",
|
|
51
|
-
"brace": "0.11.1",
|
|
52
|
-
"classnames": "2.3.1",
|
|
53
|
-
"cropperjs": "1.5.12",
|
|
54
|
-
"dot-prop-immutable": "2.1.1",
|
|
55
|
-
"downshift": "2.2.3",
|
|
56
|
-
"emotion": "10.0.17",
|
|
57
|
-
"keycode": "2.2.0",
|
|
58
|
-
"load-script": "1.0.0",
|
|
59
|
-
"lodash": "4.17.21",
|
|
60
|
-
"material-components-web": "3.2.0",
|
|
61
|
-
"nprogress": "0.2.0",
|
|
62
|
-
"nuka-carousel": "4.7.1",
|
|
63
|
-
"rc-tooltip": "3.7.3",
|
|
64
|
-
"react-ace": "6.6.0",
|
|
65
|
-
"react-butterfiles": "1.3.3",
|
|
66
|
-
"react-color": "2.19.3",
|
|
67
|
-
"react-columned": "1.1.3",
|
|
68
|
-
"react-custom-scrollbars": "4.2.1",
|
|
69
|
-
"react-loading-skeleton": "0.5.0",
|
|
70
|
-
"react-spinner-material": "1.1.4",
|
|
71
|
-
"react-transition-group": "4.4.2",
|
|
72
|
-
"shortid": "2.2.16"
|
|
17
|
+
"@svgr/webpack": "6.5.1",
|
|
18
|
+
"@webiny/admin-ui": "0.0.0-unstable.06b2ede40f",
|
|
19
|
+
"@webiny/utils": "0.0.0-unstable.06b2ede40f",
|
|
20
|
+
"classnames": "2.5.1",
|
|
21
|
+
"lodash": "4.17.21"
|
|
73
22
|
},
|
|
74
23
|
"devDependencies": {
|
|
75
|
-
"@babel
|
|
76
|
-
"@
|
|
77
|
-
"@
|
|
78
|
-
"@
|
|
79
|
-
"@
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"@webiny/project-utils": "^0.0.0-mt-2",
|
|
87
|
-
"@webiny/storybook-utils": "^0.0.0-mt-2",
|
|
88
|
-
"@webiny/validation": "^0.0.0-mt-2",
|
|
89
|
-
"babel-loader": "^8.0.0-beta.6",
|
|
90
|
-
"babel-plugin-emotion": "^9.2.8",
|
|
91
|
-
"babel-plugin-named-asset-import": "^1.0.0-next.3e165448",
|
|
92
|
-
"execa": "^5.0.0",
|
|
93
|
-
"jest-dom": "^3.0.0",
|
|
94
|
-
"ncp": "^2.0.0",
|
|
95
|
-
"raw-loader": "^0.5.1",
|
|
96
|
-
"react-docgen": "^5.0.0",
|
|
97
|
-
"react-docgen-typescript-loader": "^3.6.0",
|
|
98
|
-
"react-testing-library": "^8.0.1",
|
|
99
|
-
"regenerator-runtime": "^0.13.2",
|
|
100
|
-
"rimraf": "^3.0.2",
|
|
101
|
-
"sass": "^1.38.0",
|
|
102
|
-
"sass-loader": "^12.1.0",
|
|
103
|
-
"typescript": "^4.1.3",
|
|
104
|
-
"webpack": "^4.46.0"
|
|
24
|
+
"@emotion/babel-plugin": "11.11.0",
|
|
25
|
+
"@testing-library/react": "15.0.7",
|
|
26
|
+
"@webiny/cli": "0.0.0-unstable.06b2ede40f",
|
|
27
|
+
"@webiny/project-utils": "0.0.0-unstable.06b2ede40f",
|
|
28
|
+
"@webiny/validation": "0.0.0-unstable.06b2ede40f",
|
|
29
|
+
"babel-loader": "9.2.1",
|
|
30
|
+
"execa": "5.1.1",
|
|
31
|
+
"ncp": "2.0.0",
|
|
32
|
+
"raw-loader": "4.0.2",
|
|
33
|
+
"rimraf": "6.0.1",
|
|
34
|
+
"typescript": "5.3.3"
|
|
105
35
|
},
|
|
106
36
|
"peerDependencies": {
|
|
107
|
-
"
|
|
108
|
-
"react
|
|
37
|
+
"minimatch": "^5.1.6",
|
|
38
|
+
"react": "18.2.0",
|
|
39
|
+
"react-dom": "18.2.0"
|
|
109
40
|
},
|
|
110
41
|
"publishConfig": {
|
|
111
42
|
"access": "public",
|
|
112
43
|
"directory": "dist"
|
|
113
44
|
},
|
|
114
45
|
"scripts": {
|
|
115
|
-
"build": "
|
|
116
|
-
"watch": "
|
|
117
|
-
"storybook": "start-storybook -p 6006",
|
|
118
|
-
"build-storybook": "build-storybook -c .storybook -o ${OUT:-.out}"
|
|
46
|
+
"build": "node ../cli/bin.js run build",
|
|
47
|
+
"watch": "node ../cli/bin.js run watch"
|
|
119
48
|
},
|
|
120
49
|
"jest": {
|
|
121
50
|
"transform": {
|
|
@@ -123,20 +52,12 @@
|
|
|
123
52
|
},
|
|
124
53
|
"setupTestFrameworkScriptFile": "jest-extended"
|
|
125
54
|
},
|
|
126
|
-
"svgo": {
|
|
127
|
-
"plugins": {
|
|
128
|
-
"removeViewBox": false
|
|
129
|
-
}
|
|
130
|
-
},
|
|
131
55
|
"adio": {
|
|
132
56
|
"ignore": {
|
|
133
57
|
"dependencies": [
|
|
134
|
-
"@svgr/webpack"
|
|
135
|
-
"material-components-web",
|
|
136
|
-
"@emotion/core",
|
|
137
|
-
"@rmwc/base"
|
|
58
|
+
"@svgr/webpack"
|
|
138
59
|
]
|
|
139
60
|
}
|
|
140
61
|
},
|
|
141
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "06b2ede40fc2212a70eeafd74afd50b56fb0ce82"
|
|
142
63
|
}
|
package/styles.scss
CHANGED
|
@@ -1,44 +1,17 @@
|
|
|
1
|
-
//
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
$webiny-theme-light-surface: #fff !default;
|
|
6
|
-
$webiny-theme-light-on-primary: #ffffff !default;
|
|
7
|
-
$webiny-theme-light-on-secondary: #ffffff !default;
|
|
8
|
-
$webiny-theme-light-on-surface: #000000 !default;
|
|
9
|
-
$webiny-theme-light-on-background: rgba(212, 212, 212, 0.5) !default;
|
|
10
|
-
$webiny-theme-light-text-primary-on-background: rgba(0, 0, 0, 0.87);
|
|
11
|
-
$webiny-theme-light-text-secondary-on-background: rgba(0, 0, 0, 0.54);
|
|
12
|
-
$webiny-theme-light-text-hint-on-dark: rgba(255, 255, 255, 0.5);
|
|
13
|
-
$webiny-theme-light-caret-down: url("data:image/svg+xml,%3Csvg%20width%3D%2210px%22%20height%3D%225px%22%20viewBox%3D%227%2010%2010%205%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%0A%20%20%20%20%3Cpolygon%20id%3D%22Shape%22%20stroke%3D%22none%22%20fill%3D%22%23000000%22%20fill-rule%3D%22evenodd%22%20opacity%3D%220.54%22%20points%3D%227%2010%2012%2015%2017%2010%22%3E%3C%2Fpolygon%3E%0A%3C%2Fsvg%3E");
|
|
1
|
+
// ⚠️ DEPRECATED STYLESHEET ⚠️
|
|
2
|
+
// We no longer rely on @material or RMWC for theming or component styling.
|
|
3
|
+
// We still need to support these variables for backward compatibility.
|
|
4
|
+
// Refer to the updated design system and theming approach from @webiny/admin-ui for current styling practices.
|
|
14
5
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
$mdc-theme-text-primary-on-background: $webiny-theme-light-text-primary-on-background !global;
|
|
27
|
-
$mdc-theme-text-secondary-on-background: $webiny-theme-light-text-secondary-on-background;
|
|
28
|
-
$mdc-theme-text-hint-on-dark: $webiny-theme-light-text-hint-on-dark;
|
|
29
|
-
$mdc-typography-font-family: $webiny-theme-typography-font-family;
|
|
30
|
-
|
|
31
|
-
@import "~material-components-web/material-components-web.scss";
|
|
32
|
-
@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600,700");
|
|
33
|
-
|
|
34
|
-
/*
|
|
35
|
-
Fix for select box appearance. For some reason browser prefix css attributes are striped away.
|
|
36
|
-
*/
|
|
37
|
-
.mdc-select__native-control {
|
|
38
|
-
-webkit-appearance: none;
|
|
39
|
-
-moz-appearance: none;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.mdc-select--box .mdc-select__native-control {
|
|
43
|
-
padding-top: 10px;
|
|
6
|
+
:root {
|
|
7
|
+
--mdc-theme-primary: hsl(var(--color-primary-500));
|
|
8
|
+
--mdc-theme-on-primary: hsl(var(--color-neutral-0));
|
|
9
|
+
--mdc-theme-secondary: hsl(var(--color-secondary-500));
|
|
10
|
+
--mdc-theme-on-secondary: hsl(var(--color-neutral-0));
|
|
11
|
+
--mdc-theme-surface: hsl(var(--color-neutral-0));
|
|
12
|
+
--mdc-theme-on-surface: hsl(var(--color-neutral-900));
|
|
13
|
+
--mdc-theme-background: hsl(var(--color-neutral-200));
|
|
14
|
+
--mdc-theme-on-background: hsl(var(--color-neutral-300));
|
|
15
|
+
--mdc-theme-text-primary-on-background: hsl(var(--color-neutral-700));
|
|
16
|
+
--mdc-theme-text-secondary-on-background: hsl(var(--color-neutral-500));
|
|
44
17
|
}
|
package/types.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export
|
|
1
|
+
export interface FormComponentProps<TValue = any> {
|
|
2
2
|
validation?: {
|
|
3
|
-
isValid: boolean;
|
|
4
|
-
message
|
|
3
|
+
isValid: boolean | null;
|
|
4
|
+
message?: string;
|
|
5
5
|
results?: {
|
|
6
6
|
[key: string]: any;
|
|
7
7
|
};
|
|
8
8
|
};
|
|
9
9
|
validate?: () => Promise<boolean | any>;
|
|
10
|
-
value?:
|
|
11
|
-
onChange?: (value:
|
|
12
|
-
}
|
|
10
|
+
value?: TValue;
|
|
11
|
+
onChange?: (value: TValue) => void;
|
|
12
|
+
}
|
package/types.js
CHANGED
package/types.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["types.ts"],"sourcesContent":["export interface FormComponentProps<TValue = any> {\n validation?: {\n /* Is form element's value valid? */\n isValid: boolean | null;\n /* Error message if value is not valid. */\n message?: string;\n /* Any validation result returned by the validator. */\n results?: { [key: string]: any };\n };\n\n /* Provided by <Form> component to perform validation when value has changed. */\n validate?: () => Promise<boolean | any>;\n\n /* Form component's value. */\n value?: TValue;\n\n /* A callback that is executed each time a value is changed. */\n onChange?: (value: TValue) => void;\n}\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { storiesOf } from "@storybook/react";
|
|
3
|
-
import { Story, StoryReadme, StorySandboxCode, StorySandbox, StorySandboxExample } from "@webiny/storybook-utils/Story";
|
|
4
|
-
import readme from "./README.md";
|
|
5
|
-
import { Accordion } from "./Accordion";
|
|
6
|
-
import { AccordionItem } from "./AccordionItem";
|
|
7
|
-
import { ReactComponent as SettingsIcon } from "@svgr/webpack!./icons/round-settings-24px.svg";
|
|
8
|
-
var story = storiesOf("Components/Accordion", module);
|
|
9
|
-
story.add("usage", function () {
|
|
10
|
-
return /*#__PURE__*/React.createElement(Story, null, /*#__PURE__*/React.createElement(StoryReadme, null, readme), /*#__PURE__*/React.createElement(StorySandbox, {
|
|
11
|
-
title: "Accordion"
|
|
12
|
-
}, /*#__PURE__*/React.createElement(StorySandboxExample, null, /*#__PURE__*/React.createElement(Accordion, null, /*#__PURE__*/React.createElement(AccordionItem, {
|
|
13
|
-
icon: /*#__PURE__*/React.createElement(SettingsIcon, null),
|
|
14
|
-
title: "Settings 1",
|
|
15
|
-
description: "Settings description",
|
|
16
|
-
open: true
|
|
17
|
-
}, /*#__PURE__*/React.createElement("div", null, "Inner child 1")), /*#__PURE__*/React.createElement(AccordionItem, {
|
|
18
|
-
icon: /*#__PURE__*/React.createElement(SettingsIcon, null),
|
|
19
|
-
title: "Settings 2",
|
|
20
|
-
description: "Settings description"
|
|
21
|
-
}, /*#__PURE__*/React.createElement("div", null, "Inner child 2")), /*#__PURE__*/React.createElement(AccordionItem, {
|
|
22
|
-
icon: /*#__PURE__*/React.createElement(SettingsIcon, null),
|
|
23
|
-
title: "Settings 3",
|
|
24
|
-
description: "Settings description"
|
|
25
|
-
}, /*#__PURE__*/React.createElement("div", null, "Inner child 3")))), /*#__PURE__*/React.createElement(StorySandboxCode, null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Accordion, null, /*#__PURE__*/React.createElement(AccordionItem, {
|
|
26
|
-
icon: /*#__PURE__*/React.createElement(SettingsIcon, null),
|
|
27
|
-
title: "Settings 1",
|
|
28
|
-
description: "Settings description",
|
|
29
|
-
open: true
|
|
30
|
-
}, /*#__PURE__*/React.createElement("div", null, "Inner child 1")), /*#__PURE__*/React.createElement(AccordionItem, {
|
|
31
|
-
icon: /*#__PURE__*/React.createElement(SettingsIcon, null),
|
|
32
|
-
title: "Settings 2",
|
|
33
|
-
description: "Settings description"
|
|
34
|
-
}, /*#__PURE__*/React.createElement("div", null, "Inner child 2")), /*#__PURE__*/React.createElement(AccordionItem, {
|
|
35
|
-
icon: /*#__PURE__*/React.createElement(SettingsIcon, null),
|
|
36
|
-
title: "Settings 3",
|
|
37
|
-
description: "Settings description"
|
|
38
|
-
}, /*#__PURE__*/React.createElement("div", null, "Inner child 3")))))));
|
|
39
|
-
}, {
|
|
40
|
-
info: {
|
|
41
|
-
propTables: [Accordion, AccordionItem]
|
|
42
|
-
}
|
|
43
|
-
});
|
package/Accordion/README.md
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
-
<!-- Generator: Adobe Illustrator 19.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
3
|
-
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="24px"
|
|
4
|
-
height="24px" viewBox="0 0 24 24" enable-background="new 0 0 24 24" xml:space="preserve">
|
|
5
|
-
<g id="Bounding_Boxes" display="none">
|
|
6
|
-
<g id="ui_x5F_spec_x5F_header_copy_3" display="inline">
|
|
7
|
-
</g>
|
|
8
|
-
<path display="inline" fill="none" d="M0,0h24v24H0V0z"/>
|
|
9
|
-
</g>
|
|
10
|
-
<g id="Rounded">
|
|
11
|
-
<g id="ui_x5F_spec_x5F_header_copy_6">
|
|
12
|
-
</g>
|
|
13
|
-
<path fill="currentColor" d="M8.12,9.29L12,13.17l3.88-3.88c0.39-0.39,1.02-0.39,1.41,0l0,0c0.39,0.39,0.39,1.02,0,1.41l-4.59,4.59
|
|
14
|
-
c-0.39,0.39-1.02,0.39-1.41,0l-4.59-4.59c-0.39-0.39-0.39-1.02,0-1.41l0,0C7.09,8.91,7.73,8.9,8.12,9.29z"/>
|
|
15
|
-
</g>
|
|
16
|
-
</svg>
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
-
<!-- Generator: Adobe Illustrator 19.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
3
|
-
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="24px"
|
|
4
|
-
height="24px" viewBox="0 0 24 24" enable-background="new 0 0 24 24" xml:space="preserve">
|
|
5
|
-
<g id="Bounding_Boxes" display="none">
|
|
6
|
-
<g id="ui_x5F_spec_x5F_header_copy_3" display="inline">
|
|
7
|
-
</g>
|
|
8
|
-
<path display="inline" fill="none" d="M0,0h24v24H0V0z"/>
|
|
9
|
-
</g>
|
|
10
|
-
<g id="Rounded">
|
|
11
|
-
<g id="ui_x5F_spec_x5F_header_copy_6">
|
|
12
|
-
</g>
|
|
13
|
-
<path fill="currentColor" d="M8.12,14.71L12,10.83l3.88,3.88c0.39,0.39,1.02,0.39,1.41,0l0,0c0.39-0.39,0.39-1.02,0-1.41l-4.59-4.59
|
|
14
|
-
c-0.39-0.39-1.02-0.39-1.41,0l-4.59,4.59c-0.39,0.39-0.39,1.02,0,1.41l0,0C7.09,15.09,7.73,15.1,8.12,14.71z"/>
|
|
15
|
-
</g>
|
|
16
|
-
</svg>
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<svg width="20px" height="20px" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
-
<!-- Generator: Sketch 51.1 (57501) - http://www.bohemiancoding.com/sketch -->
|
|
4
|
-
<title>round-settings-24px (2)</title>
|
|
5
|
-
<desc>Created with Sketch.</desc>
|
|
6
|
-
<defs></defs>
|
|
7
|
-
<g id="Webiny---Site-Manager" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
8
|
-
<g id="Site-Settings" transform="translate(-291.000000, -161.000000)">
|
|
9
|
-
<g id="General-settings" transform="translate(264.000000, 151.000000)">
|
|
10
|
-
<g id="round-settings-24px-(2)" transform="translate(25.000000, 8.000000)">
|
|
11
|
-
<g id="Bounding_Boxes">
|
|
12
|
-
<polygon id="Shape" points="0 0 24 0 24 24 0 24"></polygon>
|
|
13
|
-
</g>
|
|
14
|
-
<g id="Rounded" transform="translate(2.000000, 2.000000)" fill="#4A4A4A" fill-rule="nonzero">
|
|
15
|
-
<path d="M17.43,10.98 C17.47,10.66 17.5,10.34 17.5,10 C17.5,9.66 17.47,9.34 17.43,9.02 L19.54,7.37 C19.73,7.22 19.78,6.95 19.66,6.73 L17.66,3.27 C17.54,3.05 17.27,2.97 17.05,3.05 L14.56,4.05 C14.04,3.65 13.48,3.32 12.87,3.07 L12.49,0.42 C12.46,0.18 12.25,0 12,0 L8,0 C7.75,0 7.54,0.18 7.51,0.42 L7.13,3.07 C6.52,3.32 5.96,3.66 5.44,4.05 L2.95,3.05 C2.72,2.96 2.46,3.05 2.34,3.27 L0.34,6.73 C0.21,6.95 0.27,7.22 0.46,7.37 L2.57,9.02 C2.53,9.34 2.5,9.67 2.5,10 C2.5,10.33 2.53,10.66 2.57,10.98 L0.46,12.63 C0.27,12.78 0.22,13.05 0.34,13.27 L2.34,16.73 C2.46,16.95 2.73,17.03 2.95,16.95 L5.44,15.95 C5.96,16.35 6.52,16.68 7.13,16.93 L7.51,19.58 C7.54,19.82 7.75,20 8,20 L12,20 C12.25,20 12.46,19.82 12.49,19.58 L12.87,16.93 C13.48,16.68 14.04,16.34 14.56,15.95 L17.05,16.95 C17.28,17.04 17.54,16.95 17.66,16.73 L19.66,13.27 C19.78,13.05 19.73,12.78 19.54,12.63 L17.43,10.98 Z M10,13.5 C8.07,13.5 6.5,11.93 6.5,10 C6.5,8.07 8.07,6.5 10,6.5 C11.93,6.5 13.5,8.07 13.5,10 C13.5,11.93 11.93,13.5 10,13.5 Z" id="Shape"></path>
|
|
16
|
-
</g>
|
|
17
|
-
</g>
|
|
18
|
-
</g>
|
|
19
|
-
</g>
|
|
20
|
-
</g>
|
|
21
|
-
</svg>
|
package/Alert/Alert.stories.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/Alert/Alert.stories.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { storiesOf } from "@storybook/react";
|
|
3
|
-
import { Story, StoryReadme, StorySandboxCode, StorySandbox, StorySandboxExample } from "@webiny/storybook-utils/Story";
|
|
4
|
-
import readme from "./README.md";
|
|
5
|
-
import { Alert } from "./Alert";
|
|
6
|
-
var story = storiesOf("Components/Alert", module);
|
|
7
|
-
story.add("usage", function () {
|
|
8
|
-
return /*#__PURE__*/React.createElement(Story, null, /*#__PURE__*/React.createElement(StoryReadme, null, readme), /*#__PURE__*/React.createElement(StorySandbox, null, /*#__PURE__*/React.createElement(StorySandboxExample, {
|
|
9
|
-
title: "Info"
|
|
10
|
-
}, /*#__PURE__*/React.createElement(Alert, {
|
|
11
|
-
title: "Something went wrong!",
|
|
12
|
-
type: "info"
|
|
13
|
-
}, "We failed to fetch your data.")), /*#__PURE__*/React.createElement(StorySandboxCode, null, /*#__PURE__*/React.createElement(Alert, {
|
|
14
|
-
title: "Something went wrong!",
|
|
15
|
-
type: "info"
|
|
16
|
-
}, "We failed to fetch your data."))), /*#__PURE__*/React.createElement(StorySandbox, null, /*#__PURE__*/React.createElement(StorySandboxExample, {
|
|
17
|
-
title: "Danger"
|
|
18
|
-
}, /*#__PURE__*/React.createElement(Alert, {
|
|
19
|
-
title: "Something went wrong!",
|
|
20
|
-
type: "danger"
|
|
21
|
-
}, "Please contact support!")), /*#__PURE__*/React.createElement(StorySandboxCode, null, /*#__PURE__*/React.createElement(Alert, {
|
|
22
|
-
title: "Something went wrong!",
|
|
23
|
-
type: "danger"
|
|
24
|
-
}, "Please contact support!"))));
|
|
25
|
-
}, {
|
|
26
|
-
info: {
|
|
27
|
-
propTables: [Alert]
|
|
28
|
-
}
|
|
29
|
-
});
|
package/Alert/README.md
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { storiesOf } from "@storybook/react";
|
|
3
|
-
import { Story, StoryReadme, StorySandboxCode, StorySandbox, StorySandboxExample } from "@webiny/storybook-utils/Story";
|
|
4
|
-
import readme from "./AutoCompleteReadme.md";
|
|
5
|
-
import { Form } from "@webiny/form";
|
|
6
|
-
import { AutoComplete } from "./AutoComplete";
|
|
7
|
-
var story = storiesOf("Components/AutoComplete", module);
|
|
8
|
-
var options = [{
|
|
9
|
-
name: "France",
|
|
10
|
-
id: "france"
|
|
11
|
-
}, {
|
|
12
|
-
name: "Germany",
|
|
13
|
-
id: "germany"
|
|
14
|
-
}, {
|
|
15
|
-
name: "Italy",
|
|
16
|
-
id: "italy"
|
|
17
|
-
}, {
|
|
18
|
-
name: "Spain",
|
|
19
|
-
id: "spain"
|
|
20
|
-
}, {
|
|
21
|
-
name: "UK",
|
|
22
|
-
id: "uk"
|
|
23
|
-
}, {
|
|
24
|
-
name: "US",
|
|
25
|
-
id: "us"
|
|
26
|
-
}, {
|
|
27
|
-
name: "Norway",
|
|
28
|
-
id: "norway"
|
|
29
|
-
}, {
|
|
30
|
-
name: "Finland",
|
|
31
|
-
id: "finland"
|
|
32
|
-
}, {
|
|
33
|
-
name: "Czech Republic",
|
|
34
|
-
id: "czech-republic"
|
|
35
|
-
}];
|
|
36
|
-
story.add("AutoComplete", function () {
|
|
37
|
-
return /*#__PURE__*/React.createElement(Story, null, /*#__PURE__*/React.createElement(StoryReadme, null, readme), /*#__PURE__*/React.createElement(StorySandbox, null, /*#__PURE__*/React.createElement(StorySandboxExample, {
|
|
38
|
-
title: "Single value"
|
|
39
|
-
}, /*#__PURE__*/React.createElement(Form, {
|
|
40
|
-
data: {
|
|
41
|
-
country: {
|
|
42
|
-
id: "italy",
|
|
43
|
-
name: "Italy"
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}, function (_ref) {
|
|
47
|
-
var Bind = _ref.Bind;
|
|
48
|
-
return /*#__PURE__*/React.createElement(Bind, {
|
|
49
|
-
name: "country"
|
|
50
|
-
}, /*#__PURE__*/React.createElement(AutoComplete, {
|
|
51
|
-
options: options,
|
|
52
|
-
label: "Country",
|
|
53
|
-
description: "Choose your country"
|
|
54
|
-
}));
|
|
55
|
-
})), /*#__PURE__*/React.createElement(StorySandboxCode, null, "\n <Form>\n {({ Bind }) => (\n <Bind name=\"country\">\n <AutoComplete\n options={".concat(JSON.stringify(options), "}\n label=\"Country\"\n description=\"Choose your country.\"\n />\n </Bind>\n )}\n </Form>\n "))), /*#__PURE__*/React.createElement(StorySandbox, null, /*#__PURE__*/React.createElement(StorySandboxExample, {
|
|
56
|
-
title: "Single value - use simple strings"
|
|
57
|
-
}, /*#__PURE__*/React.createElement(Form, {
|
|
58
|
-
data: {
|
|
59
|
-
country: "Germany"
|
|
60
|
-
}
|
|
61
|
-
}, function (_ref2) {
|
|
62
|
-
var Bind = _ref2.Bind;
|
|
63
|
-
return /*#__PURE__*/React.createElement(Bind, {
|
|
64
|
-
name: "country"
|
|
65
|
-
}, /*#__PURE__*/React.createElement(AutoComplete, {
|
|
66
|
-
useSimpleValues: true,
|
|
67
|
-
options: ["France", "Germany", "Italy", "Spain"],
|
|
68
|
-
label: "Country",
|
|
69
|
-
description: "Choose your country"
|
|
70
|
-
}));
|
|
71
|
-
})), /*#__PURE__*/React.createElement(StorySandboxCode, null, "\n <Form data={{ country: \"Germany\" }}>\n {({ Bind }) => (\n <Bind name=\"country\">\n <AutoComplete\n useSimpleValues\n options={[\"France\", \"Germany\", \"Italy\", \"Spain\"]}\n label=\"Country\"\n description=\"Choose your country\"\n />\n </Bind>\n )}\n </Form>\n ")));
|
|
72
|
-
}, {
|
|
73
|
-
info: {
|
|
74
|
-
propTables: [AutoComplete]
|
|
75
|
-
}
|
|
76
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|