@webiny/ui 0.0.0-mt-2 → 0.0.0-unstable.085ff6572f
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 +5 -5
- package/Accordion/Accordion.js +22 -22
- package/Accordion/Accordion.js.map +1 -0
- package/Accordion/Accordion.stories.js +26 -23
- package/Accordion/Accordion.stories.js.map +1 -0
- package/Accordion/AccordionItem.d.ts +27 -8
- package/Accordion/AccordionItem.js +91 -84
- package/Accordion/AccordionItem.js.map +1 -0
- package/Accordion/AccordionItemActions.d.ts +8 -0
- package/Accordion/AccordionItemActions.js +28 -0
- package/Accordion/AccordionItemActions.js.map +1 -0
- package/Accordion/index.js +27 -2
- package/Accordion/index.js.map +1 -0
- package/Alert/Alert.d.ts +4 -4
- package/Alert/Alert.js +19 -15
- package/Alert/Alert.js.map +1 -0
- package/Alert/Alert.stories.js +16 -13
- package/Alert/Alert.stories.js.map +1 -0
- package/Alert/index.js +16 -1
- package/Alert/index.js.map +1 -0
- package/AutoComplete/AutoComplete.d.ts +13 -19
- package/AutoComplete/AutoComplete.js +150 -149
- package/AutoComplete/AutoComplete.js.map +1 -0
- package/AutoComplete/AutoComplete.stories.js +20 -17
- package/AutoComplete/AutoComplete.stories.js.map +1 -0
- package/AutoComplete/MultiAutoComplete.d.ts +44 -40
- package/AutoComplete/MultiAutoComplete.js +304 -311
- package/AutoComplete/MultiAutoComplete.js.map +1 -0
- package/AutoComplete/MultiAutoComplete.stories.js +31 -28
- package/AutoComplete/MultiAutoComplete.stories.js.map +1 -0
- package/AutoComplete/index.js +27 -2
- package/AutoComplete/index.js.map +1 -0
- package/AutoComplete/styles.js +33 -4
- package/AutoComplete/styles.js.map +1 -0
- package/AutoComplete/types.d.ts +4 -3
- package/AutoComplete/types.js +5 -1
- package/AutoComplete/types.js.map +1 -0
- package/AutoComplete/utils.d.ts +11 -5
- package/AutoComplete/utils.js +15 -8
- package/AutoComplete/utils.js.map +1 -0
- package/Avatar/Avatar.d.ts +5 -11
- package/Avatar/Avatar.js +37 -28
- package/Avatar/Avatar.js.map +1 -0
- package/Avatar/Avatar.stories.js +13 -10
- package/Avatar/Avatar.stories.js.map +1 -0
- package/Avatar/index.js +16 -1
- package/Avatar/index.js.map +1 -0
- package/Button/Button.d.ts +39 -24
- package/Button/Button.js +74 -83
- package/Button/Button.js.map +1 -0
- package/Button/Button.stories.js +32 -29
- package/Button/Button.stories.js.map +1 -0
- package/Button/Button.styles.d.ts +6 -0
- package/Button/Button.styles.js +13 -0
- package/Button/Button.styles.js.map +1 -0
- package/Button/CopyButton/CopyButton.d.ts +4 -7
- package/Button/CopyButton/CopyButton.js +18 -18
- package/Button/CopyButton/CopyButton.js.map +1 -0
- package/Button/CopyButton/CopyButton.stories.js +13 -10
- package/Button/CopyButton/CopyButton.stories.js.map +1 -0
- package/Button/IconButton/IconButton.d.ts +4 -7
- package/Button/IconButton/IconButton.js +16 -15
- package/Button/IconButton/IconButton.js.map +1 -0
- package/Button/IconButton/IconButton.stories.js +22 -19
- package/Button/IconButton/IconButton.stories.js.map +1 -0
- package/Button/index.js +38 -3
- package/Button/index.js.map +1 -0
- package/Carousel/Carousel.d.ts +3 -3
- package/Carousel/Carousel.js +24 -25
- package/Carousel/Carousel.js.map +1 -0
- package/Carousel/Carouser.stories.js +20 -17
- package/Carousel/Carouser.stories.js.map +1 -0
- package/Carousel/index.js +13 -1
- package/Carousel/index.js.map +1 -0
- package/Checkbox/Checkbox.d.ts +6 -9
- package/Checkbox/Checkbox.js +40 -44
- package/Checkbox/Checkbox.js.map +1 -0
- package/Checkbox/Checkbox.stories.js +19 -16
- package/Checkbox/Checkbox.stories.js.map +1 -0
- package/Checkbox/Checkbox.styles.js +9 -4
- package/Checkbox/Checkbox.styles.js.map +1 -0
- package/Checkbox/CheckboxGroup.d.ts +2 -2
- package/Checkbox/CheckboxGroup.js +34 -35
- package/Checkbox/CheckboxGroup.js.map +1 -0
- package/Checkbox/CheckboxGroup.stories.js +23 -20
- package/Checkbox/CheckboxGroup.stories.js.map +1 -0
- package/Checkbox/index.js +20 -2
- package/Checkbox/index.js.map +1 -0
- package/Chips/Chip.d.ts +3 -8
- package/Chips/Chip.js +15 -8
- package/Chips/Chip.js.map +1 -0
- package/Chips/Chips.d.ts +4 -4
- package/Chips/Chips.js +21 -14
- package/Chips/Chips.js.map +1 -0
- package/Chips/Chips.stories.js +25 -18
- package/Chips/Chips.stories.js.map +1 -0
- package/Chips/index.d.ts +0 -1
- package/Chips/index.js +27 -3
- package/Chips/index.js.map +1 -0
- package/Chips/styles.js +19 -9
- package/Chips/styles.js.map +1 -0
- package/CodeEditor/CodeEditor.d.ts +5 -8
- package/CodeEditor/CodeEditor.js +42 -49
- package/CodeEditor/CodeEditor.js.map +1 -0
- package/CodeEditor/CodeEditor.stories.js +20 -17
- package/CodeEditor/CodeEditor.stories.js.map +1 -0
- package/CodeEditor/index.js +16 -1
- package/CodeEditor/index.js.map +1 -0
- package/ColorPicker/ColorPicker.d.ts +9 -10
- package/ColorPicker/ColorPicker.js +54 -66
- package/ColorPicker/ColorPicker.js.map +1 -0
- package/ColorPicker/ColorPicker.stories.js +18 -15
- package/ColorPicker/ColorPicker.stories.js.map +1 -0
- package/ColorPicker/index.js +16 -1
- package/ColorPicker/index.js.map +1 -0
- package/ConfirmationDialog/ConfirmationDialog.d.ts +13 -13
- package/ConfirmationDialog/ConfirmationDialog.js +76 -96
- package/ConfirmationDialog/ConfirmationDialog.js.map +1 -0
- package/ConfirmationDialog/ConfirmationDialog.stories.js +15 -12
- package/ConfirmationDialog/ConfirmationDialog.stories.js.map +1 -0
- package/ConfirmationDialog/index.js +27 -2
- package/ConfirmationDialog/index.js.map +1 -0
- package/ConfirmationDialog/withConfirmation.d.ts +2 -2
- package/ConfirmationDialog/withConfirmation.js +14 -6
- package/ConfirmationDialog/withConfirmation.js.map +1 -0
- package/DataTable/DataTable.d.ts +75 -0
- package/DataTable/DataTable.js +198 -0
- package/DataTable/DataTable.js.map +1 -0
- package/DataTable/DataTable.stories.d.ts +1 -0
- package/DataTable/DataTable.stories.js +74 -0
- package/DataTable/DataTable.stories.js.map +1 -0
- package/DataTable/README.md +72 -0
- package/DataTable/index.d.ts +1 -0
- package/DataTable/index.js +16 -0
- package/DataTable/index.js.map +1 -0
- package/DataTable/styled.d.ts +30 -0
- package/DataTable/styled.js +36 -0
- package/DataTable/styled.js.map +1 -0
- package/DelayedOnChange/DelayedOnChange.d.ts +40 -0
- package/DelayedOnChange/DelayedOnChange.js +113 -0
- package/DelayedOnChange/DelayedOnChange.js.map +1 -0
- package/DelayedOnChange/index.d.ts +2 -0
- package/DelayedOnChange/index.js +20 -0
- package/DelayedOnChange/index.js.map +1 -0
- package/DelayedOnChange/withDelayedOnChange.d.ts +3 -0
- package/DelayedOnChange/withDelayedOnChange.js +31 -0
- package/DelayedOnChange/withDelayedOnChange.js.map +1 -0
- package/Dialog/Dialog.d.ts +22 -30
- package/Dialog/Dialog.js +59 -55
- package/Dialog/Dialog.js.map +1 -0
- package/Dialog/Dialog.stories.js +19 -16
- package/Dialog/Dialog.stories.js.map +1 -0
- package/Dialog/index.js +16 -1
- package/Dialog/index.js.map +1 -0
- package/Drawer/Drawer.d.ts +1 -1
- package/Drawer/Drawer.js +14 -9
- package/Drawer/Drawer.js.map +1 -0
- package/Drawer/Drawer.stories.js +18 -15
- package/Drawer/Drawer.stories.js.map +1 -0
- package/Drawer/index.js +16 -1
- package/Drawer/index.js.map +1 -0
- package/DynamicFieldset/Fieldset.d.ts +26 -16
- package/DynamicFieldset/Fieldset.js +69 -74
- package/DynamicFieldset/Fieldset.js.map +1 -0
- package/DynamicFieldset/index.js +13 -1
- package/DynamicFieldset/index.js.map +1 -0
- package/Elevation/Elevation.d.ts +1 -1
- package/Elevation/Elevation.js +12 -6
- package/Elevation/Elevation.js.map +1 -0
- package/Elevation/Elevation.stories.js +19 -16
- package/Elevation/Elevation.stories.js.map +1 -0
- package/Elevation/index.js +16 -1
- package/Elevation/index.js.map +1 -0
- package/FormElementMessage/FormElementMessage.d.ts +1 -1
- package/FormElementMessage/FormElementMessage.js +11 -6
- package/FormElementMessage/FormElementMessage.js.map +1 -0
- package/FormElementMessage/index.js +12 -1
- package/FormElementMessage/index.js.map +1 -0
- package/FullName/FullName.js +7 -7
- package/FullName/FullName.js.map +1 -0
- package/FullName/index.js +16 -1
- package/FullName/index.js.map +1 -0
- package/Grid/Grid.d.ts +1 -1
- package/Grid/Grid.js +19 -10
- package/Grid/Grid.js.map +1 -0
- package/Grid/Grid.stories.js +15 -12
- package/Grid/Grid.stories.js.map +1 -0
- package/Grid/index.js +16 -1
- package/Grid/index.js.map +1 -0
- package/Helpers/ClassNames.d.ts +4 -3
- package/Helpers/ClassNames.js +16 -14
- package/Helpers/ClassNames.js.map +1 -0
- package/Helpers/index.js +12 -2
- package/Helpers/index.js.map +1 -0
- package/Icon/Icon.d.ts +3 -6
- package/Icon/Icon.js +15 -12
- package/Icon/Icon.js.map +1 -0
- package/Icon/Icon.stories.js +23 -20
- package/Icon/Icon.stories.js.map +1 -0
- package/Icon/index.js +16 -1
- package/Icon/index.js.map +1 -0
- package/Image/Image.d.ts +5 -4
- package/Image/Image.js +17 -13
- package/Image/Image.js.map +1 -0
- package/Image/Image.stories.js +14 -11
- package/Image/Image.stories.js.map +1 -0
- package/Image/index.js +16 -1
- package/Image/index.js.map +1 -0
- package/ImageEditor/ImageEditor.d.ts +33 -34
- package/ImageEditor/ImageEditor.js +129 -163
- package/ImageEditor/ImageEditor.js.map +1 -0
- package/ImageEditor/index.js +16 -1
- package/ImageEditor/index.js.map +1 -0
- package/ImageEditor/toolbar/crop.js +26 -22
- package/ImageEditor/toolbar/crop.js.map +1 -0
- package/ImageEditor/toolbar/filter.js +63 -59
- package/ImageEditor/toolbar/filter.js.map +1 -0
- package/ImageEditor/toolbar/flip.js +27 -25
- package/ImageEditor/toolbar/flip.js.map +1 -0
- package/ImageEditor/toolbar/icons/index.js +61 -8
- package/ImageEditor/toolbar/icons/index.js.map +1 -0
- package/ImageEditor/toolbar/index.js +34 -4
- package/ImageEditor/toolbar/index.js.map +1 -0
- package/ImageEditor/toolbar/rotate.js +55 -61
- package/ImageEditor/toolbar/rotate.js.map +1 -0
- package/ImageEditor/toolbar/types.d.ts +23 -12
- package/ImageEditor/toolbar/types.js +5 -1
- package/ImageEditor/toolbar/types.js.map +1 -0
- package/ImageUpload/Image.d.ts +6 -6
- package/ImageUpload/Image.js +52 -54
- package/ImageUpload/Image.js.map +1 -0
- package/ImageUpload/ImageEditorDialog.d.ts +11 -6
- package/ImageUpload/ImageEditorDialog.js +47 -46
- package/ImageUpload/ImageEditorDialog.js.map +1 -0
- package/ImageUpload/MultiImageUpload.d.ts +10 -31
- package/ImageUpload/MultiImageUpload.js +194 -222
- package/ImageUpload/MultiImageUpload.js.map +1 -0
- package/ImageUpload/MultiImageUpload.stories.js +18 -15
- package/ImageUpload/MultiImageUpload.stories.js.map +1 -0
- package/ImageUpload/SingleImageUpload.d.ts +16 -37
- package/ImageUpload/SingleImageUpload.js +96 -106
- package/ImageUpload/SingleImageUpload.js.map +1 -0
- package/ImageUpload/SingleImageUpload.stories.js +19 -16
- package/ImageUpload/SingleImageUpload.stories.js.map +1 -0
- package/ImageUpload/index.js +34 -4
- package/ImageUpload/index.js.map +1 -0
- package/ImageUpload/styled.d.ts +30 -14
- package/ImageUpload/styled.js +25 -16
- package/ImageUpload/styled.js.map +1 -0
- package/Input/Input.d.ts +6 -19
- package/Input/Input.js +102 -141
- package/Input/Input.js.map +1 -0
- package/Input/Input.stories.js +49 -46
- package/Input/Input.stories.js.map +1 -0
- package/Input/__tests__/Input.test.js +54 -63
- package/Input/__tests__/Input.test.js.map +1 -0
- package/Input/index.js +16 -1
- package/Input/index.js.map +1 -0
- package/Input/styled.d.ts +4 -0
- package/Input/styled.js +12 -0
- package/Input/styled.js.map +1 -0
- package/List/CollapsibleList/CollapsibleList.stories.js +19 -16
- package/List/CollapsibleList/CollapsibleList.stories.js.map +1 -0
- package/List/CollapsibleList/index.d.ts +2 -2
- package/List/CollapsibleList/index.js +15 -6
- package/List/CollapsibleList/index.js.map +1 -0
- package/List/DataList/DataList.d.ts +24 -43
- package/List/DataList/DataList.js +87 -122
- package/List/DataList/DataList.js.map +1 -0
- package/List/DataList/DataList.stories.js +30 -26
- package/List/DataList/DataList.stories.js.map +1 -0
- package/List/DataList/DataListModalOverlay/DataListModalOverlay.d.ts +14 -12
- package/List/DataList/DataListModalOverlay/DataListModalOverlay.js +29 -20
- package/List/DataList/DataListModalOverlay/DataListModalOverlay.js.map +1 -0
- package/List/DataList/DataListModalOverlay/DataListModalOverlayAction.d.ts +3 -3
- package/List/DataList/DataListModalOverlay/DataListModalOverlayAction.js +20 -13
- package/List/DataList/DataListModalOverlay/DataListModalOverlayAction.js.map +1 -0
- package/List/DataList/DataListModalOverlay/DataListModalOverlayContext.d.ts +9 -4
- package/List/DataList/DataListModalOverlay/DataListModalOverlayContext.js +24 -12
- package/List/DataList/DataListModalOverlay/DataListModalOverlayContext.js.map +1 -0
- package/List/DataList/DataListModalOverlay/index.js +32 -3
- package/List/DataList/DataListModalOverlay/index.js.map +1 -0
- package/List/DataList/DataListWithSections.d.ts +45 -0
- package/List/DataList/DataListWithSections.js +312 -0
- package/List/DataList/DataListWithSections.js.map +1 -0
- package/List/DataList/Loader.d.ts +2 -2
- package/List/DataList/Loader.js +48 -52
- package/List/DataList/Loader.js.map +1 -0
- package/List/DataList/NoData.d.ts +2 -2
- package/List/DataList/NoData.js +14 -8
- package/List/DataList/NoData.js.map +1 -0
- package/List/DataList/icons/index.d.ts +1 -1
- package/List/DataList/icons/index.js +54 -38
- package/List/DataList/icons/index.js.map +1 -0
- package/List/DataList/index.d.ts +1 -0
- package/List/DataList/index.js +58 -3
- package/List/DataList/index.js.map +1 -0
- package/List/DataList/types.d.ts +1 -1
- package/List/DataList/types.js +5 -1
- package/List/DataList/types.js.map +1 -0
- package/List/List.d.ts +3 -2
- package/List/List.js +66 -62
- package/List/List.js.map +1 -0
- package/List/List.stories.js +40 -37
- package/List/List.stories.js.map +1 -0
- package/List/icons/index.js +20 -3
- package/List/icons/index.js.map +1 -0
- package/List/index.d.ts +1 -1
- package/List/index.js +70 -3
- package/List/index.js.map +1 -0
- package/Menu/Menu.d.ts +14 -21
- package/Menu/Menu.js +49 -62
- package/Menu/Menu.js.map +1 -0
- package/Menu/Menu.stories.js +17 -14
- package/Menu/Menu.stories.js.map +1 -0
- package/Menu/index.js +16 -1
- package/Menu/index.js.map +1 -0
- package/Mosaic/Mosaic.d.ts +4 -14
- package/Mosaic/Mosaic.js +20 -7
- package/Mosaic/Mosaic.js.map +1 -0
- package/Mosaic/Mosaic.stories.js +31 -28
- package/Mosaic/Mosaic.stories.js.map +1 -0
- package/Mosaic/index.js +16 -1
- package/Mosaic/index.js.map +1 -0
- package/Progress/CircularProgress.d.ts +8 -16
- package/Progress/CircularProgress.js +32 -22
- package/Progress/CircularProgress.js.map +1 -0
- package/Progress/index.js +13 -1
- package/Progress/index.js.map +1 -0
- package/Radio/Radio.d.ts +2 -6
- package/Radio/Radio.js +36 -41
- package/Radio/Radio.js.map +1 -0
- package/Radio/Radio.styles.js +9 -4
- package/Radio/Radio.styles.js.map +1 -0
- package/Radio/RadioGroup.d.ts +1 -6
- package/Radio/RadioGroup.js +30 -34
- package/Radio/RadioGroup.js.map +1 -0
- package/Radio/RadioGroup.stories.js +23 -20
- package/Radio/RadioGroup.stories.js.map +1 -0
- package/Radio/index.js +20 -2
- package/Radio/index.js.map +1 -0
- package/RichTextEditor/RichTextEditor.d.ts +13 -9
- package/RichTextEditor/RichTextEditor.js +79 -78
- package/RichTextEditor/RichTextEditor.js.map +1 -0
- package/RichTextEditor/RichTextEditor.stories.js +15 -11
- package/RichTextEditor/RichTextEditor.stories.js.map +1 -0
- package/RichTextEditor/createPropsFromConfig.d.ts +11 -1
- package/RichTextEditor/createPropsFromConfig.js +16 -5
- package/RichTextEditor/createPropsFromConfig.js.map +1 -0
- package/RichTextEditor/index.d.ts +1 -0
- package/RichTextEditor/index.js +27 -2
- package/RichTextEditor/index.js.map +1 -0
- package/Ripple/Ripple.d.ts +4 -5
- package/Ripple/Ripple.js +11 -6
- package/Ripple/Ripple.js.map +1 -0
- package/Ripple/Ripple.stories.js +45 -42
- package/Ripple/Ripple.stories.js.map +1 -0
- package/Ripple/index.js +16 -1
- package/Ripple/index.js.map +1 -0
- package/Scrollbar/Scrollbar.d.ts +5 -5
- package/Scrollbar/Scrollbar.js +10 -5
- package/Scrollbar/Scrollbar.js.map +1 -0
- package/Scrollbar/Scrollbar.stories.js +12 -9
- package/Scrollbar/Scrollbar.stories.js.map +1 -0
- package/Scrollbar/index.js +16 -1
- package/Scrollbar/index.js.map +1 -0
- package/Section/Section.stories.js +15 -12
- package/Section/Section.stories.js.map +1 -0
- package/Section/index.d.ts +4 -5
- package/Section/index.js +23 -18
- package/Section/index.js.map +1 -0
- package/Select/Select.d.ts +8 -10
- package/Select/Select.js +79 -39
- package/Select/Select.js.map +1 -0
- package/Select/Select.stories.js +28 -25
- package/Select/Select.stories.js.map +1 -0
- package/Select/index.js +16 -1
- package/Select/index.js.map +1 -0
- package/Select/styled.d.ts +8 -0
- package/Select/styled.js +18 -0
- package/Select/styled.js.map +1 -0
- package/Skeleton/README.md +21 -0
- package/Skeleton/Skeleton.d.ts +8 -0
- package/Skeleton/Skeleton.js +22 -0
- package/Skeleton/Skeleton.js.map +1 -0
- package/Skeleton/Skeleton.stories.d.ts +1 -0
- package/Skeleton/Skeleton.stories.js +22 -0
- package/Skeleton/Skeleton.stories.js.map +1 -0
- package/Skeleton/index.d.ts +1 -0
- package/Skeleton/index.js +16 -0
- package/Skeleton/index.js.map +1 -0
- package/Slider/Slider.d.ts +1 -6
- package/Slider/Slider.js +39 -47
- package/Slider/Slider.js.map +1 -0
- package/Slider/Slider.stories.js +20 -17
- package/Slider/Slider.stories.js.map +1 -0
- package/Slider/index.js +13 -1
- package/Slider/index.js.map +1 -0
- package/Snackbar/Snackbar.d.ts +5 -7
- package/Snackbar/Snackbar.js +29 -33
- package/Snackbar/Snackbar.js.map +1 -0
- package/Snackbar/Snackbar.stories.js +29 -38
- package/Snackbar/Snackbar.stories.js.map +1 -0
- package/Snackbar/index.js +18 -1
- package/Snackbar/index.js.map +1 -0
- package/Switch/Switch.d.ts +3 -7
- package/Switch/Switch.js +35 -43
- package/Switch/Switch.js.map +1 -0
- package/Switch/Switch.stories.js +19 -16
- package/Switch/Switch.stories.js.map +1 -0
- package/Switch/index.js +16 -1
- package/Switch/index.js.map +1 -0
- package/Tabs/Tab.d.ts +7 -2
- package/Tabs/Tab.js +30 -9
- package/Tabs/Tab.js.map +1 -0
- package/Tabs/Tabs.d.ts +44 -21
- package/Tabs/Tabs.js +128 -129
- package/Tabs/Tabs.js.map +1 -0
- package/Tabs/Tabs.stories.js +25 -23
- package/Tabs/Tabs.stories.js.map +1 -0
- package/Tabs/index.js +27 -2
- package/Tabs/index.js.map +1 -0
- package/Tags/Tags.d.ts +9 -21
- package/Tags/Tags.js +95 -124
- package/Tags/Tags.js.map +1 -0
- package/Tags/Tags.stories.js +19 -16
- package/Tags/Tags.stories.js.map +1 -0
- package/Tags/index.js +16 -1
- package/Tags/index.js.map +1 -0
- package/Tooltip/Tooltip.d.ts +9 -8
- package/Tooltip/Tooltip.js +33 -33
- package/Tooltip/Tooltip.js.map +1 -0
- package/Tooltip/Tooltip.stories.js +14 -11
- package/Tooltip/Tooltip.stories.js.map +1 -0
- package/Tooltip/index.js +16 -1
- package/Tooltip/index.js.map +1 -0
- package/TopAppBar/TopAppBar.d.ts +1 -1
- package/TopAppBar/TopAppBar.js +13 -9
- package/TopAppBar/TopAppBar.js.map +1 -0
- package/TopAppBar/TopAppBar.stories.js +31 -30
- package/TopAppBar/TopAppBar.stories.js.map +1 -0
- package/TopAppBar/TopAppBarActionItem.d.ts +1 -1
- package/TopAppBar/TopAppBarActionItem.js +10 -5
- package/TopAppBar/TopAppBarActionItem.js.map +1 -0
- package/TopAppBar/TopAppBarNavigationIcon.d.ts +1 -1
- package/TopAppBar/TopAppBarNavigationIcon.js +10 -5
- package/TopAppBar/TopAppBarNavigationIcon.js.map +1 -0
- package/TopAppBar/TopAppBarPrimary.js +13 -9
- package/TopAppBar/TopAppBarPrimary.js.map +1 -0
- package/TopAppBar/TopAppBarSecondary.js +15 -11
- package/TopAppBar/TopAppBarSecondary.js.map +1 -0
- package/TopAppBar/TopAppBarSection.d.ts +1 -1
- package/TopAppBar/TopAppBarSection.js +13 -9
- package/TopAppBar/TopAppBarSection.js.map +1 -0
- package/TopAppBar/TopAppBarTitle.d.ts +1 -1
- package/TopAppBar/TopAppBarTitle.js +13 -9
- package/TopAppBar/TopAppBarTitle.js.map +1 -0
- package/TopAppBar/index.js +82 -7
- package/TopAppBar/index.js.map +1 -0
- package/TopProgressBar/TopProgressBar.d.ts +7 -7
- package/TopProgressBar/TopProgressBar.js +15 -7
- package/TopProgressBar/TopProgressBar.js.map +1 -0
- package/TopProgressBar/TopProgressBar.stories.js +16 -13
- package/TopProgressBar/TopProgressBar.stories.js.map +1 -0
- package/TopProgressBar/hoc/index.js +13 -1
- package/TopProgressBar/hoc/index.js.map +1 -0
- package/TopProgressBar/hoc/withTopProgressBar.d.ts +1 -1
- package/TopProgressBar/hoc/withTopProgressBar.js +14 -9
- package/TopProgressBar/hoc/withTopProgressBar.js.map +1 -0
- package/TopProgressBar/index.js +16 -1
- package/TopProgressBar/index.js.map +1 -0
- package/Typography/Typography.d.ts +5 -5
- package/Typography/Typography.js +10 -5
- package/Typography/Typography.js.map +1 -0
- package/Typography/Typography.stories.js +37 -34
- package/Typography/Typography.stories.js.map +1 -0
- package/Typography/index.js +16 -1
- package/Typography/index.js.map +1 -0
- package/package.json +76 -81
- package/styles.scss +3 -4
- package/types.d.ts +4 -4
- package/types.js +5 -1
- package/types.js.map +1 -0
- package/Chips/ChipIcon.d.ts +0 -4
- package/Chips/ChipIcon.js +0 -8
- 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
|
@@ -1,92 +1,69 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
afterEach(cleanup);
|
|
16
|
-
describe("Input tests", function () {
|
|
17
|
-
test("passes expected props to render prop", function () {
|
|
18
|
-
var _setup = setup(),
|
|
19
|
-
renderArg = _setup.renderArg;
|
|
20
|
-
|
|
21
|
-
expect(renderArg).toContainKeys(["value", "validation", "onChange", "onBlur"]);
|
|
22
|
-
});
|
|
23
|
-
test("updates value via onChange", function () {
|
|
24
|
-
var _setup2 = setup(),
|
|
25
|
-
renderArg = _setup2.renderArg;
|
|
26
|
-
|
|
27
|
-
expect(renderArg.value).toBe("init-value");
|
|
28
|
-
renderArg.onChange("new-value");
|
|
29
|
-
expect(renderArg.value).toBe("new-value");
|
|
30
|
-
renderArg.onChange("third-value");
|
|
31
|
-
expect(renderArg.value).toBe("third-value");
|
|
32
|
-
});
|
|
33
|
-
});
|
|
34
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
5
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
6
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
7
|
+
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
|
|
8
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
9
|
+
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
|
|
10
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
|
+
var _react = _interopRequireDefault(require("react"));
|
|
12
|
+
var _index = require("../index");
|
|
13
|
+
require("jest-dom/extend-expect");
|
|
14
|
+
var _react2 = require("@testing-library/react");
|
|
15
|
+
afterEach(_react2.cleanup);
|
|
35
16
|
function setup() {
|
|
36
17
|
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
37
|
-
var renderArg = {
|
|
18
|
+
var renderArg = {
|
|
19
|
+
// eslint-disable-next-line
|
|
20
|
+
onChange: function onChange(_) {},
|
|
21
|
+
value: null
|
|
22
|
+
};
|
|
38
23
|
var renderProp = jest.fn(function (controllerArg) {
|
|
39
24
|
Object.assign(renderArg, controllerArg);
|
|
40
25
|
return null;
|
|
41
26
|
});
|
|
42
|
-
|
|
27
|
+
var onChange = props.onChange ? props.onChange : function () {
|
|
28
|
+
return void 0;
|
|
29
|
+
};
|
|
43
30
|
var Test = /*#__PURE__*/function (_React$Component) {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
var _super = _createSuper(Test);
|
|
47
|
-
|
|
31
|
+
(0, _inherits2.default)(Test, _React$Component);
|
|
32
|
+
var _super = (0, _createSuper2.default)(Test);
|
|
48
33
|
function Test() {
|
|
49
34
|
var _this;
|
|
50
|
-
|
|
51
|
-
_classCallCheck(this, Test);
|
|
52
|
-
|
|
35
|
+
(0, _classCallCheck2.default)(this, Test);
|
|
53
36
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
54
37
|
args[_key] = arguments[_key];
|
|
55
38
|
}
|
|
56
|
-
|
|
57
39
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
58
|
-
|
|
59
|
-
_defineProperty(_assertThisInitialized(_this), "state", {
|
|
40
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "state", {
|
|
60
41
|
value: "init-value"
|
|
61
42
|
});
|
|
62
|
-
|
|
63
|
-
_defineProperty(_assertThisInitialized(_this), "onChange", function (value) {
|
|
43
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "onChange", function (value) {
|
|
64
44
|
_this.setState({
|
|
65
45
|
value: value
|
|
66
46
|
});
|
|
67
47
|
});
|
|
68
|
-
|
|
69
48
|
return _this;
|
|
70
49
|
}
|
|
71
|
-
|
|
72
|
-
_createClass(Test, [{
|
|
50
|
+
(0, _createClass2.default)(Test, [{
|
|
73
51
|
key: "render",
|
|
74
52
|
value: function render() {
|
|
75
|
-
return /*#__PURE__*/
|
|
53
|
+
return /*#__PURE__*/_react.default.createElement(_index.Input, Object.assign({}, props, {
|
|
76
54
|
value: this.state.value,
|
|
77
|
-
onChange: callAll(
|
|
55
|
+
onChange: callAll(onChange, this.onChange)
|
|
78
56
|
}), renderProp);
|
|
79
57
|
}
|
|
80
58
|
}]);
|
|
81
|
-
|
|
82
59
|
return Test;
|
|
83
|
-
}(
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
return _objectSpread({
|
|
60
|
+
}(_react.default.Component);
|
|
61
|
+
var utils = (0, _react2.render)( /*#__PURE__*/_react.default.createElement(Test, null));
|
|
62
|
+
return (0, _objectSpread2.default)({
|
|
87
63
|
renderArg: renderArg
|
|
88
64
|
}, utils);
|
|
89
65
|
}
|
|
66
|
+
|
|
90
67
|
/**
|
|
91
68
|
* This return a function that will call all the given functions with
|
|
92
69
|
* the arguments with which it's called. It does a null-check before
|
|
@@ -94,20 +71,34 @@ function setup() {
|
|
|
94
71
|
* @param {...Function} fns the functions to call
|
|
95
72
|
* @return {Function} the function that calls all the functions
|
|
96
73
|
*/
|
|
97
|
-
|
|
98
|
-
|
|
99
74
|
function callAll() {
|
|
100
75
|
for (var _len2 = arguments.length, fns = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
101
76
|
fns[_key2] = arguments[_key2];
|
|
102
77
|
}
|
|
103
|
-
|
|
104
78
|
return function () {
|
|
105
79
|
for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
|
106
80
|
args[_key3] = arguments[_key3];
|
|
107
81
|
}
|
|
108
|
-
|
|
109
82
|
fns.forEach(function (fn) {
|
|
110
83
|
fn && fn.apply(void 0, args);
|
|
111
84
|
});
|
|
112
85
|
};
|
|
113
|
-
}
|
|
86
|
+
}
|
|
87
|
+
describe("Input tests", function () {
|
|
88
|
+
test("passes expected props to render prop", function () {
|
|
89
|
+
var _setup = setup(),
|
|
90
|
+
renderArg = _setup.renderArg;
|
|
91
|
+
|
|
92
|
+
// @ts-ignore
|
|
93
|
+
expect(renderArg).toContainKeys(["value", "validation", "onChange", "onBlur"]);
|
|
94
|
+
});
|
|
95
|
+
test("updates value via onChange", function () {
|
|
96
|
+
var _setup2 = setup(),
|
|
97
|
+
renderArg = _setup2.renderArg;
|
|
98
|
+
expect(renderArg.value).toBe("init-value");
|
|
99
|
+
renderArg.onChange("new-value");
|
|
100
|
+
expect(renderArg.value).toBe("new-value");
|
|
101
|
+
renderArg.onChange("third-value");
|
|
102
|
+
expect(renderArg.value).toBe("third-value");
|
|
103
|
+
});
|
|
104
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["afterEach","cleanup","setup","props","renderArg","onChange","_","value","renderProp","jest","fn","controllerArg","Object","assign","Test","setState","state","callAll","React","Component","utils","render","fns","args","forEach","describe","test","expect","toContainKeys","toBe"],"sources":["Input.test.tsx"],"sourcesContent":["import React from \"react\";\nimport { Input } from \"../index\";\nimport \"jest-dom/extend-expect\";\nimport { render, cleanup } from \"@testing-library/react\";\n\nafterEach(cleanup);\n\ninterface SetupProps {\n onChange?: () => void;\n}\nfunction setup(props: SetupProps = {}) {\n const renderArg = {\n // eslint-disable-next-line\n onChange: (_: string) => {},\n value: null\n };\n const renderProp = jest.fn(controllerArg => {\n Object.assign(renderArg, controllerArg);\n return null;\n });\n\n const onChange = props.onChange\n ? props.onChange\n : () => {\n return void 0;\n };\n\n class Test extends React.Component {\n public override state = { value: \"init-value\" };\n\n onChange = (value: string) => {\n this.setState({ value });\n };\n\n public override render() {\n return (\n <Input\n {...props}\n value={this.state.value}\n onChange={callAll(onChange, this.onChange)}\n >\n {renderProp}\n </Input>\n );\n }\n }\n\n const utils = render(<Test />);\n\n return { renderArg, ...utils };\n}\n\n/**\n * This return a function that will call all the given functions with\n * the arguments with which it's called. It does a null-check before\n * attempting to call the functions and can take any number of functions.\n * @param {...Function} fns the functions to call\n * @return {Function} the function that calls all the functions\n */\nfunction callAll(...fns: Function[]) {\n return (...args: any) => {\n fns.forEach(fn => {\n fn && fn(...args);\n });\n };\n}\n\ndescribe(\"Input tests\", () => {\n test(\"passes expected props to render prop\", () => {\n const { renderArg } = setup();\n\n // @ts-ignore\n expect(renderArg).toContainKeys([\"value\", \"validation\", \"onChange\", \"onBlur\"]);\n });\n\n test(\"updates value via onChange\", () => {\n const { renderArg } = setup();\n expect(renderArg.value).toBe(\"init-value\");\n renderArg.onChange(\"new-value\");\n expect(renderArg.value).toBe(\"new-value\");\n renderArg.onChange(\"third-value\");\n expect(renderArg.value).toBe(\"third-value\");\n });\n});\n"],"mappings":";;;;;;;;;;AAAA;AACA;AACA;AACA;AAEAA,SAAS,CAACC,eAAO,CAAC;AAKlB,SAASC,KAAK,GAAyB;EAAA,IAAxBC,KAAiB,uEAAG,CAAC,CAAC;EACjC,IAAMC,SAAS,GAAG;IACd;IACAC,QAAQ,EAAE,kBAACC,CAAS,EAAK,CAAC,CAAC;IAC3BC,KAAK,EAAE;EACX,CAAC;EACD,IAAMC,UAAU,GAAGC,IAAI,CAACC,EAAE,CAAC,UAAAC,aAAa,EAAI;IACxCC,MAAM,CAACC,MAAM,CAACT,SAAS,EAAEO,aAAa,CAAC;IACvC,OAAO,IAAI;EACf,CAAC,CAAC;EAEF,IAAMN,QAAQ,GAAGF,KAAK,CAACE,QAAQ,GACzBF,KAAK,CAACE,QAAQ,GACd,YAAM;IACF,OAAO,KAAK,CAAC;EACjB,CAAC;EAAC,IAEFS,IAAI;IAAA;IAAA;IAAA;MAAA;MAAA;MAAA;QAAA;MAAA;MAAA;MAAA,oFACkB;QAAEP,KAAK,EAAE;MAAa,CAAC;MAAA,uFAEpC,UAACA,KAAa,EAAK;QAC1B,MAAKQ,QAAQ,CAAC;UAAER,KAAK,EAALA;QAAM,CAAC,CAAC;MAC5B,CAAC;MAAA;IAAA;IAAA;MAAA;MAAA,OAED,kBAAyB;QACrB,oBACI,6BAAC,YAAK,oBACEJ,KAAK;UACT,KAAK,EAAE,IAAI,CAACa,KAAK,CAACT,KAAM;UACxB,QAAQ,EAAEU,OAAO,CAACZ,QAAQ,EAAE,IAAI,CAACA,QAAQ;QAAE,IAE1CG,UAAU,CACP;MAEhB;IAAC;IAAA;EAAA,EAjBcU,cAAK,CAACC,SAAS;EAoBlC,IAAMC,KAAK,GAAG,IAAAC,cAAM,gBAAC,6BAAC,IAAI,OAAG,CAAC;EAE9B;IAASjB,SAAS,EAATA;EAAS,GAAKgB,KAAK;AAChC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASH,OAAO,GAAqB;EAAA,mCAAjBK,GAAG;IAAHA,GAAG;EAAA;EACnB,OAAO,YAAkB;IAAA,mCAAdC,IAAI;MAAJA,IAAI;IAAA;IACXD,GAAG,CAACE,OAAO,CAAC,UAAAd,EAAE,EAAI;MACdA,EAAE,IAAIA,EAAE,eAAIa,IAAI,CAAC;IACrB,CAAC,CAAC;EACN,CAAC;AACL;AAEAE,QAAQ,CAAC,aAAa,EAAE,YAAM;EAC1BC,IAAI,CAAC,sCAAsC,EAAE,YAAM;IAC/C,aAAsBxB,KAAK,EAAE;MAArBE,SAAS,UAATA,SAAS;;IAEjB;IACAuB,MAAM,CAACvB,SAAS,CAAC,CAACwB,aAAa,CAAC,CAAC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC;EAClF,CAAC,CAAC;EAEFF,IAAI,CAAC,4BAA4B,EAAE,YAAM;IACrC,cAAsBxB,KAAK,EAAE;MAArBE,SAAS,WAATA,SAAS;IACjBuB,MAAM,CAACvB,SAAS,CAACG,KAAK,CAAC,CAACsB,IAAI,CAAC,YAAY,CAAC;IAC1CzB,SAAS,CAACC,QAAQ,CAAC,WAAW,CAAC;IAC/BsB,MAAM,CAACvB,SAAS,CAACG,KAAK,CAAC,CAACsB,IAAI,CAAC,WAAW,CAAC;IACzCzB,SAAS,CAACC,QAAQ,CAAC,aAAa,CAAC;IACjCsB,MAAM,CAACvB,SAAS,CAACG,KAAK,CAAC,CAACsB,IAAI,CAAC,aAAa,CAAC;EAC/C,CAAC,CAAC;AACN,CAAC,CAAC"}
|
package/Input/index.js
CHANGED
|
@@ -1 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _Input = require("./Input");
|
|
7
|
+
Object.keys(_Input).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _Input[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function get() {
|
|
13
|
+
return _Input[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Input\";\n"],"mappings":";;;;;AAAA;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA"}
|
package/Input/styled.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.webinyInputStyles = void 0;
|
|
7
|
+
var _emotion = require("emotion");
|
|
8
|
+
/**
|
|
9
|
+
* @type {string}
|
|
10
|
+
*/
|
|
11
|
+
var webinyInputStyles = /*#__PURE__*/(0, _emotion.css)(".mdc-text-field__input:-webkit-autofill + .mdc-floating-label{transform:translateY(-106%) scale(0.75);}&.webiny-ui-input--size-medium{&.mdc-text-field{height:40px;font-size:0.85em;}}&.webiny-ui-input--size-small{&.mdc-text-field{height:30px;font-size:0.75em;}}label:webinyInputStyles;");
|
|
12
|
+
exports.webinyInputStyles = webinyInputStyles;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["webinyInputStyles","css"],"sources":["styled.tsx"],"sourcesContent":["import { css } from \"emotion\";\n\n/**\n * @type {string}\n */\nexport const webinyInputStyles = css`\n // fix label position when autofilled\n .mdc-text-field__input:-webkit-autofill + .mdc-floating-label {\n transform: translateY(-106%) scale(0.75);\n }\n\n // medium input styles\n &.webiny-ui-input--size-medium {\n &.mdc-text-field {\n height: 40px;\n font-size: 0.85em;\n }\n }\n\n // small input styles\n &.webiny-ui-input--size-small {\n &.mdc-text-field {\n height: 30px;\n font-size: 0.75em;\n }\n }\n`;\n"],"mappings":";;;;;;AAAA;AAEA;AACA;AACA;AACO,IAAMA,iBAAiB,oBAAGC,YAAG,iSAqBnC;AAAC"}
|
|
@@ -1,26 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
var
|
|
9
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
var _react = _interopRequireDefault(require("react"));
|
|
5
|
+
var _react2 = require("@storybook/react");
|
|
6
|
+
var _Story = require("@webiny/storybook-utils/Story");
|
|
7
|
+
var _README = _interopRequireDefault(require("./README.md"));
|
|
8
|
+
var _addonKnobs = require("@storybook/addon-knobs");
|
|
9
|
+
var _index = require("./index");
|
|
10
|
+
var _List = require("./../List");
|
|
11
|
+
var story = (0, _react2.storiesOf)("Components/List", module);
|
|
12
|
+
story.addDecorator(_addonKnobs.withKnobs);
|
|
10
13
|
story.add("collapsible list", function () {
|
|
11
|
-
return /*#__PURE__*/
|
|
12
|
-
handle: /*#__PURE__*/
|
|
14
|
+
return /*#__PURE__*/_react.default.createElement(_Story.Story, null, /*#__PURE__*/_react.default.createElement(_Story.StoryReadme, null, _README.default), /*#__PURE__*/_react.default.createElement(_Story.StorySandbox, null, /*#__PURE__*/_react.default.createElement(_Story.StorySandboxExample, null, /*#__PURE__*/_react.default.createElement(_index.CollapsibleList, {
|
|
15
|
+
handle: /*#__PURE__*/_react.default.createElement(_List.SimpleListItem, {
|
|
13
16
|
text: "Fruits"
|
|
14
17
|
})
|
|
15
|
-
}, /*#__PURE__*/
|
|
18
|
+
}, /*#__PURE__*/_react.default.createElement(_List.SimpleListItem, {
|
|
16
19
|
text: "Bananas"
|
|
17
|
-
}), /*#__PURE__*/
|
|
20
|
+
}), /*#__PURE__*/_react.default.createElement(_List.SimpleListItem, {
|
|
18
21
|
text: "Grapes"
|
|
19
|
-
}), /*#__PURE__*/
|
|
22
|
+
}), /*#__PURE__*/_react.default.createElement(_List.SimpleListItem, {
|
|
20
23
|
text: "Oranges"
|
|
21
|
-
}))), /*#__PURE__*/
|
|
24
|
+
}))), /*#__PURE__*/_react.default.createElement(_Story.StorySandboxCode, null, "\n <CollapsibleList handle={<SimpleListItem text=\"Fruits\" />}>\n <SimpleListItem text=\"Bananas\" />\n <SimpleListItem text=\"Grapes\" />\n <SimpleListItem text=\"Oranges\" />\n </CollapsibleList>\n ")));
|
|
22
25
|
}, {
|
|
23
26
|
info: {
|
|
24
|
-
propTables: [CollapsibleList, SimpleListItem]
|
|
27
|
+
propTables: [_index.CollapsibleList, _List.SimpleListItem]
|
|
25
28
|
}
|
|
26
29
|
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["story","storiesOf","module","addDecorator","withKnobs","add","readme","info","propTables","CollapsibleList","SimpleListItem"],"sources":["CollapsibleList.stories.tsx"],"sourcesContent":["import React from \"react\";\nimport { storiesOf } from \"@storybook/react\";\nimport {\n Story,\n StoryReadme,\n StorySandboxCode,\n StorySandbox,\n StorySandboxExample\n} from \"@webiny/storybook-utils/Story\";\nimport readme from \"./README.md\";\nimport { withKnobs } from \"@storybook/addon-knobs\";\n\nimport { CollapsibleList } from \"./index\";\nimport { SimpleListItem } from \"./../List\";\n\nconst story = storiesOf(\"Components/List\", module);\nstory.addDecorator(withKnobs);\n\nstory.add(\n \"collapsible list\",\n () => {\n return (\n <Story>\n <StoryReadme>{readme}</StoryReadme>\n\n <StorySandbox>\n <StorySandboxExample>\n <CollapsibleList handle={<SimpleListItem text=\"Fruits\" />}>\n <SimpleListItem text=\"Bananas\" />\n <SimpleListItem text=\"Grapes\" />\n <SimpleListItem text=\"Oranges\" />\n </CollapsibleList>\n </StorySandboxExample>\n <StorySandboxCode>\n {`\n <CollapsibleList handle={<SimpleListItem text=\"Fruits\" />}>\n <SimpleListItem text=\"Bananas\" />\n <SimpleListItem text=\"Grapes\" />\n <SimpleListItem text=\"Oranges\" />\n </CollapsibleList>\n `}\n </StorySandboxCode>\n </StorySandbox>\n </Story>\n );\n },\n {\n info: {\n propTables: [CollapsibleList, SimpleListItem]\n }\n }\n);\n"],"mappings":";;;AAAA;AACA;AACA;AAOA;AACA;AAEA;AACA;AAEA,IAAMA,KAAK,GAAG,IAAAC,iBAAS,EAAC,iBAAiB,EAAEC,MAAM,CAAC;AAClDF,KAAK,CAACG,YAAY,CAACC,qBAAS,CAAC;AAE7BJ,KAAK,CAACK,GAAG,CACL,kBAAkB,EAClB,YAAM;EACF,oBACI,6BAAC,YAAK,qBACF,6BAAC,kBAAW,QAAEC,eAAM,CAAe,eAEnC,6BAAC,mBAAY,qBACT,6BAAC,0BAAmB,qBAChB,6BAAC,sBAAe;IAAC,MAAM,eAAE,6BAAC,oBAAc;MAAC,IAAI,EAAC;IAAQ;EAAI,gBACtD,6BAAC,oBAAc;IAAC,IAAI,EAAC;EAAS,EAAG,eACjC,6BAAC,oBAAc;IAAC,IAAI,EAAC;EAAQ,EAAG,eAChC,6BAAC,oBAAc;IAAC,IAAI,EAAC;EAAS,EAAG,CACnB,CACA,eACtB,6BAAC,uBAAgB,yWAQE,CACR,CACX;AAEhB,CAAC,EACD;EACIC,IAAI,EAAE;IACFC,UAAU,EAAE,CAACC,sBAAe,EAAEC,oBAAc;EAChD;AACJ,CAAC,CACJ"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./index.css";
|
|
2
|
-
import
|
|
2
|
+
import React from "react";
|
|
3
3
|
import { CollapsibleListProps as RmwcCollapsibleListProps } from "@rmwc/list";
|
|
4
4
|
export declare type CollapsibleListProps = RmwcCollapsibleListProps & {
|
|
5
5
|
children: React.ReactNode;
|
|
6
6
|
};
|
|
7
|
-
export declare const CollapsibleList:
|
|
7
|
+
export declare const CollapsibleList: React.FC<CollapsibleListProps>;
|
|
8
8
|
export default CollapsibleList;
|
|
@@ -1,7 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = exports.CollapsibleList = void 0;
|
|
8
|
+
require("./index.css");
|
|
9
|
+
var _react = _interopRequireDefault(require("react"));
|
|
10
|
+
var _list = require("@rmwc/list");
|
|
11
|
+
var CollapsibleList = function CollapsibleList(props) {
|
|
12
|
+
return /*#__PURE__*/_react.default.createElement(_list.CollapsibleList, props);
|
|
6
13
|
};
|
|
7
|
-
|
|
14
|
+
exports.CollapsibleList = CollapsibleList;
|
|
15
|
+
var _default = CollapsibleList;
|
|
16
|
+
exports.default = _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["CollapsibleList","props"],"sources":["index.tsx"],"sourcesContent":["import \"./index.css\";\nimport React from \"react\";\nimport {\n CollapsibleList as RmwcCollapsibleList,\n CollapsibleListProps as RmwcCollapsibleListProps\n} from \"@rmwc/list\";\n\nexport type CollapsibleListProps = RmwcCollapsibleListProps & {\n children: React.ReactNode;\n};\n\nexport const CollapsibleList: React.FC<CollapsibleListProps> = props => {\n return <RmwcCollapsibleList {...props} />;\n};\n\nexport default CollapsibleList;\n"],"mappings":";;;;;;;AAAA;AACA;AACA;AASO,IAAMA,eAA+C,GAAG,SAAlDA,eAA+C,CAAGC,KAAK,EAAI;EACpE,oBAAO,6BAAC,qBAAmB,EAAKA,KAAK,CAAI;AAC7C,CAAC;AAAC;AAAA,eAEaD,eAAe;AAAA"}
|
|
@@ -1,61 +1,42 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { ListItem, ListProps } from "..";
|
|
3
3
|
import { PaginationProp, SortersProp } from "./types";
|
|
4
|
-
|
|
5
|
-
children?:
|
|
4
|
+
interface DataListProps {
|
|
5
|
+
children?: ((props: any) => React.ReactNode) | null;
|
|
6
6
|
title?: React.ReactNode;
|
|
7
|
-
data?:
|
|
8
|
-
refresh?:
|
|
7
|
+
data?: Record<string, any>[] | null;
|
|
8
|
+
refresh?: (() => void) | null;
|
|
9
9
|
loading?: boolean;
|
|
10
10
|
loader?: React.ReactNode;
|
|
11
11
|
noData?: React.ReactNode;
|
|
12
12
|
pagination?: PaginationProp;
|
|
13
|
-
setSorters?: Function;
|
|
14
|
-
sorters?: SortersProp;
|
|
13
|
+
setSorters?: Function | null;
|
|
14
|
+
sorters?: SortersProp | null;
|
|
15
15
|
actions?: React.ReactNode;
|
|
16
16
|
filters?: React.ReactNode;
|
|
17
17
|
multiSelectActions?: React.ReactNode;
|
|
18
|
-
multiSelectAll?: (value: boolean, data:
|
|
19
|
-
isAllMultiSelected?: (data:
|
|
20
|
-
isNoneMultiSelected?: (data:
|
|
18
|
+
multiSelectAll?: (value: boolean, data: Record<string, any>[] | null) => void;
|
|
19
|
+
isAllMultiSelected?: (data: Record<string, any>[] | null) => boolean;
|
|
20
|
+
isNoneMultiSelected?: (data: Record<string, any>[] | null) => boolean;
|
|
21
21
|
showOptions?: {
|
|
22
|
+
refresh?: boolean;
|
|
23
|
+
pagination?: boolean;
|
|
24
|
+
filters?: boolean;
|
|
25
|
+
sorters?: boolean;
|
|
22
26
|
[key: string]: any;
|
|
23
27
|
};
|
|
24
28
|
search?: React.ReactElement;
|
|
25
29
|
modalOverlay?: React.ReactElement;
|
|
26
30
|
modalOverlayAction?: React.ReactElement;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
(
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
loading: boolean;
|
|
36
|
-
refresh: any;
|
|
37
|
-
setPage: any;
|
|
38
|
-
setPerPage: any;
|
|
39
|
-
perPageOptions: number[];
|
|
40
|
-
filters: any;
|
|
41
|
-
sorters: any;
|
|
42
|
-
setSorters: any;
|
|
43
|
-
actions: any;
|
|
44
|
-
multiSelectAll: any;
|
|
45
|
-
isAllMultiSelected: () => boolean;
|
|
46
|
-
isNoneMultiSelected: () => boolean;
|
|
47
|
-
loader: JSX.Element;
|
|
48
|
-
noData: JSX.Element;
|
|
49
|
-
showOptions: {
|
|
50
|
-
refresh: boolean;
|
|
51
|
-
pagination: boolean;
|
|
52
|
-
sorters: boolean;
|
|
53
|
-
filters: boolean;
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
export declare type ScrollListProps = ListProps & {
|
|
31
|
+
subHeader?: React.ReactElement;
|
|
32
|
+
meta?: Record<string, any> | null;
|
|
33
|
+
setPage?: ((page: string) => void) | null;
|
|
34
|
+
setPerPage?: ((page: string) => void) | null;
|
|
35
|
+
perPageOptions?: number[];
|
|
36
|
+
}
|
|
37
|
+
export declare const DataList: React.FC<DataListProps>;
|
|
38
|
+
export interface ScrollListProps extends ListProps {
|
|
58
39
|
children: React.ReactElement<typeof ListItem>[];
|
|
59
|
-
}
|
|
60
|
-
export declare const ScrollList:
|
|
40
|
+
}
|
|
41
|
+
export declare const ScrollList: React.FC<ScrollListProps>;
|
|
61
42
|
export {};
|