@webiny/ui 0.0.0-unstable.fcdad0bc61 → 0.0.0-unstable.fdd9228b5d
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 +10 -6
- package/Accordion/Accordion.js +10 -42
- package/Accordion/Accordion.js.map +1 -1
- package/Accordion/AccordionItem.d.ts +98 -18
- package/Accordion/AccordionItem.js +32 -148
- package/Accordion/AccordionItem.js.map +1 -1
- 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 -30
- package/Accordion/index.js.map +1 -1
- package/Alert/Alert.d.ts +5 -4
- package/Alert/Alert.js +17 -59
- package/Alert/Alert.js.map +1 -1
- package/Alert/index.js +2 -17
- package/Alert/index.js.map +1 -1
- package/AutoComplete/AutoComplete.d.ts +8 -19
- package/AutoComplete/AutoComplete.js +64 -340
- package/AutoComplete/AutoComplete.js.map +1 -1
- package/AutoComplete/MultiAutoComplete.d.ts +18 -48
- package/AutoComplete/MultiAutoComplete.js +79 -630
- package/AutoComplete/MultiAutoComplete.js.map +1 -1
- package/AutoComplete/index.js +3 -30
- package/AutoComplete/index.js.map +1 -1
- package/AutoComplete/types.d.ts +8 -8
- package/AutoComplete/types.js +2 -4
- package/AutoComplete/types.js.map +1 -1
- package/AutoComplete/utils.d.ts +1 -1
- package/AutoComplete/utils.js +5 -20
- package/AutoComplete/utils.js.map +1 -1
- package/Avatar/Avatar.d.ts +3 -2
- package/Avatar/Avatar.js +31 -94
- package/Avatar/Avatar.js.map +1 -1
- package/Avatar/index.js +2 -17
- package/Avatar/index.js.map +1 -1
- package/Button/Button.d.ts +38 -29
- package/Button/Button.js +13 -149
- package/Button/Button.js.map +1 -1
- 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 +10 -44
- package/Button/index.js.map +1 -1
- 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 +6 -15
- package/Carousel/Carousel.js +12 -59
- package/Carousel/Carousel.js.map +1 -1
- package/Carousel/index.js +2 -14
- package/Carousel/index.js.map +1 -1
- package/Checkbox/Checkbox.d.ts +9 -9
- package/Checkbox/Checkbox.js +33 -85
- package/Checkbox/Checkbox.js.map +1 -1
- package/Checkbox/CheckboxGroup.d.ts +7 -3
- package/Checkbox/CheckboxGroup.js +47 -77
- package/Checkbox/CheckboxGroup.js.map +1 -1
- package/Checkbox/index.js +3 -22
- package/Checkbox/index.js.map +1 -1
- package/Chips/Chip.d.ts +35 -3
- package/Chips/Chip.js +49 -22
- package/Chips/Chip.js.map +1 -1
- package/Chips/Chips.d.ts +6 -2
- package/Chips/Chips.js +16 -32
- package/Chips/Chips.js.map +1 -1
- package/Chips/index.js +3 -30
- package/Chips/index.js.map +1 -1
- package/CodeEditor/CodeEditor.d.ts +6 -9
- package/CodeEditor/CodeEditor.js +14 -103
- package/CodeEditor/CodeEditor.js.map +1 -1
- package/CodeEditor/index.js +2 -17
- package/CodeEditor/index.js.map +1 -1
- package/ColorPicker/ColorPicker.d.ts +6 -16
- package/ColorPicker/ColorPicker.js +26 -147
- package/ColorPicker/ColorPicker.js.map +1 -1
- package/ColorPicker/index.js +2 -17
- package/ColorPicker/index.js.map +1 -1
- package/ConfirmationDialog/ConfirmationDialog.d.ts +2 -2
- package/ConfirmationDialog/ConfirmationDialog.js +81 -166
- package/ConfirmationDialog/ConfirmationDialog.js.map +1 -1
- package/ConfirmationDialog/index.js +3 -30
- package/ConfirmationDialog/index.js.map +1 -1
- package/ConfirmationDialog/withConfirmation.d.ts +5 -5
- package/ConfirmationDialog/withConfirmation.js +11 -23
- package/ConfirmationDialog/withConfirmation.js.map +1 -1
- package/DataTable/DataTable.d.ts +56 -19
- package/DataTable/DataTable.js +63 -155
- package/DataTable/DataTable.js.map +1 -1
- package/DataTable/index.js +2 -17
- package/DataTable/index.js.map +1 -1
- 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 -2
- package/DelayedOnChange/index.js +9 -23
- package/DelayedOnChange/index.js.map +1 -1
- package/Dialog/Dialog.d.ts +47 -60
- package/Dialog/Dialog.js +71 -117
- package/Dialog/Dialog.js.map +1 -1
- package/Dialog/index.js +2 -17
- package/Dialog/index.js.map +1 -1
- package/Drawer/Drawer.d.ts +31 -22
- package/Drawer/Drawer.js +44 -26
- package/Drawer/Drawer.js.map +1 -1
- package/Drawer/index.js +2 -17
- package/Drawer/index.js.map +1 -1
- package/DynamicFieldset/index.d.ts +7 -1
- package/DynamicFieldset/index.js +8 -14
- package/DynamicFieldset/index.js.map +1 -1
- package/Elevation/Elevation.d.ts +7 -3
- package/Elevation/Elevation.js +15 -21
- package/Elevation/Elevation.js.map +1 -1
- package/Elevation/index.js +2 -17
- package/Elevation/index.js.map +1 -1
- package/FormElementMessage/FormElementMessage.d.ts +6 -2
- package/FormElementMessage/FormElementMessage.js +22 -21
- package/FormElementMessage/FormElementMessage.js.map +1 -1
- package/FormElementMessage/index.js +2 -12
- package/FormElementMessage/index.js.map +1 -1
- package/FullName/FullName.d.ts +5 -1
- package/FullName/FullName.js +12 -16
- package/FullName/FullName.js.map +1 -1
- package/FullName/index.js +2 -17
- package/FullName/index.js.map +1 -1
- package/Grid/Grid.d.ts +36 -11
- package/Grid/Grid.js +38 -26
- package/Grid/Grid.js.map +1 -1
- package/Grid/index.js +2 -17
- package/Grid/index.js.map +1 -1
- package/Helpers/ClassNames.d.ts +3 -3
- package/Helpers/ClassNames.js +14 -28
- package/Helpers/ClassNames.js.map +1 -1
- package/Helpers/index.js +3 -12
- package/Helpers/index.js.map +1 -1
- package/Icon/Icon.d.ts +9 -4
- package/Icon/Icon.js +10 -31
- package/Icon/Icon.js.map +1 -1
- package/Icon/index.js +2 -17
- package/Icon/index.js.map +1 -1
- package/Image/index.d.ts +6 -1
- package/Image/index.js +7 -16
- package/Image/index.js.map +1 -1
- package/ImageEditor/ImageEditor.d.ts +11 -27
- package/ImageEditor/ImageEditor.js +10 -358
- package/ImageEditor/ImageEditor.js.map +1 -1
- package/ImageEditor/index.js +2 -17
- package/ImageEditor/index.js.map +1 -1
- package/ImageUpload/Image.d.ts +8 -14
- package/ImageUpload/Image.js +14 -141
- package/ImageUpload/Image.js.map +1 -1
- package/ImageUpload/ImageEditorDialog.d.ts +7 -10
- package/ImageUpload/ImageEditorDialog.js +14 -117
- package/ImageUpload/ImageEditorDialog.js.map +1 -1
- package/ImageUpload/MultiImageUpload.d.ts +11 -24
- package/ImageUpload/MultiImageUpload.js +14 -419
- package/ImageUpload/MultiImageUpload.js.map +1 -1
- package/ImageUpload/SingleImageUpload.d.ts +10 -25
- package/ImageUpload/SingleImageUpload.js +14 -255
- package/ImageUpload/SingleImageUpload.js.map +1 -1
- package/ImageUpload/index.d.ts +2 -2
- package/ImageUpload/index.js +5 -38
- package/ImageUpload/index.js.map +1 -1
- package/Input/Input.d.ts +62 -16
- package/Input/Input.js +81 -173
- package/Input/Input.js.map +1 -1
- package/Input/index.js +2 -17
- package/Input/index.js.map +1 -1
- package/List/CollapsibleList/index.d.ts +19 -5
- package/List/CollapsibleList/index.js +10 -20
- package/List/CollapsibleList/index.js.map +1 -1
- package/List/DataList/DataList.d.ts +13 -39
- package/List/DataList/DataList.js +18 -356
- package/List/DataList/DataList.js.map +1 -1
- package/List/DataList/DataListModalOverlay/index.d.ts +12 -3
- package/List/DataList/DataListModalOverlay/index.js +13 -32
- package/List/DataList/DataListModalOverlay/index.js.map +1 -1
- package/List/DataList/DataListWithSections.d.ts +13 -37
- package/List/DataList/DataListWithSections.js +18 -356
- package/List/DataList/DataListWithSections.js.map +1 -1
- package/List/DataList/icons/index.d.ts +1 -15
- package/List/DataList/icons/index.js +2 -99
- package/List/DataList/icons/index.js.map +1 -1
- package/List/DataList/index.d.ts +0 -1
- package/List/DataList/index.js +4 -63
- package/List/DataList/index.js.map +1 -1
- package/List/DataList/types.d.ts +1 -28
- package/List/DataList/types.js +2 -4
- package/List/DataList/types.js.map +1 -1
- 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 +1 -0
- package/List/index.js +5 -73
- package/List/index.js.map +1 -1
- package/Menu/Menu.d.ts +57 -20
- package/Menu/Menu.js +74 -127
- package/Menu/Menu.js.map +1 -1
- package/Menu/index.js +2 -17
- package/Menu/index.js.map +1 -1
- package/Mosaic/Mosaic.d.ts +7 -6
- package/Mosaic/Mosaic.js +7 -32
- package/Mosaic/Mosaic.js.map +1 -1
- package/Mosaic/index.js +2 -17
- package/Mosaic/index.js.map +1 -1
- package/Progress/CircularProgress.d.ts +10 -2
- package/Progress/CircularProgress.js +17 -79
- package/Progress/CircularProgress.js.map +1 -1
- package/Progress/index.d.ts +1 -1
- package/Progress/index.js +2 -14
- package/Progress/index.js.map +1 -1
- package/README.md +1 -3
- package/Radio/Radio.d.ts +7 -8
- package/Radio/Radio.js +35 -78
- package/Radio/Radio.js.map +1 -1
- package/Radio/RadioGroup.d.ts +9 -5
- package/Radio/RadioGroup.js +38 -66
- package/Radio/RadioGroup.js.map +1 -1
- package/Radio/index.js +3 -22
- package/Radio/index.js.map +1 -1
- package/RichTextEditor/RichTextEditor.d.ts +10 -29
- package/RichTextEditor/RichTextEditor.js +15 -169
- package/RichTextEditor/RichTextEditor.js.map +1 -1
- package/RichTextEditor/index.d.ts +3 -2
- package/RichTextEditor/index.js +3 -29
- package/RichTextEditor/index.js.map +1 -1
- package/Ripple/Ripple.d.ts +3 -2
- package/Ripple/Ripple.js +7 -21
- package/Ripple/Ripple.js.map +1 -1
- package/Ripple/index.js +2 -17
- package/Ripple/index.js.map +1 -1
- package/Scrollbar/Scrollbar.d.ts +5 -8
- package/Scrollbar/Scrollbar.js +8 -16
- package/Scrollbar/Scrollbar.js.map +1 -1
- package/Scrollbar/index.js +2 -17
- package/Scrollbar/index.js.map +1 -1
- package/Section/index.d.ts +7 -2
- package/Section/index.js +14 -61
- package/Section/index.js.map +1 -1
- package/Select/Select.d.ts +44 -8
- package/Select/Select.js +102 -109
- package/Select/Select.js.map +1 -1
- package/Select/index.js +2 -17
- package/Select/index.js.map +1 -1
- package/Skeleton/Skeleton.d.ts +27 -4
- package/Skeleton/Skeleton.js +17 -23
- package/Skeleton/Skeleton.js.map +1 -1
- package/Skeleton/index.js +2 -17
- package/Skeleton/index.js.map +1 -1
- package/Slider/Slider.d.ts +12 -17
- package/Slider/Slider.js +47 -95
- package/Slider/Slider.js.map +1 -1
- package/Slider/index.js +2 -14
- package/Slider/index.js.map +1 -1
- package/Snackbar/Snackbar.d.ts +44 -9
- package/Snackbar/Snackbar.js +29 -66
- package/Snackbar/Snackbar.js.map +1 -1
- package/Snackbar/index.js +2 -18
- package/Snackbar/index.js.map +1 -1
- package/Switch/Switch.d.ts +21 -8
- package/Switch/Switch.js +25 -77
- package/Switch/Switch.js.map +1 -1
- package/Switch/index.js +2 -17
- package/Switch/index.js.map +1 -1
- package/Tabs/Tab.d.ts +25 -3
- package/Tabs/Tab.js +20 -30
- package/Tabs/Tab.js.map +1 -1
- package/Tabs/Tabs.d.ts +16 -37
- package/Tabs/Tabs.js +56 -139
- package/Tabs/Tabs.js.map +1 -1
- package/Tabs/index.js +3 -30
- package/Tabs/index.js.map +1 -1
- package/Tags/Tags.d.ts +12 -19
- package/Tags/Tags.js +63 -168
- package/Tags/Tags.js.map +1 -1
- package/Tags/index.js +2 -17
- package/Tags/index.js.map +1 -1
- 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 +4 -16
- package/Tooltip/Tooltip.js +63 -77
- package/Tooltip/Tooltip.js.map +1 -1
- package/Tooltip/index.js +2 -17
- package/Tooltip/index.js.map +1 -1
- package/TopAppBar/TopAppBar.d.ts +27 -3
- package/TopAppBar/TopAppBar.js +36 -22
- package/TopAppBar/TopAppBar.js.map +1 -1
- package/TopAppBar/TopAppBarActionItem.d.ts +6 -4
- package/TopAppBar/TopAppBarActionItem.js +11 -16
- package/TopAppBar/TopAppBarActionItem.js.map +1 -1
- package/TopAppBar/TopAppBarNavigationIcon.d.ts +6 -4
- package/TopAppBar/TopAppBarNavigationIcon.js +11 -16
- package/TopAppBar/TopAppBarNavigationIcon.js.map +1 -1
- package/TopAppBar/TopAppBarPrimary.d.ts +8 -4
- package/TopAppBar/TopAppBarPrimary.js +14 -22
- package/TopAppBar/TopAppBarPrimary.js.map +1 -1
- package/TopAppBar/TopAppBarSecondary.d.ts +8 -4
- package/TopAppBar/TopAppBarSecondary.js +15 -24
- package/TopAppBar/TopAppBarSecondary.js.map +1 -1
- package/TopAppBar/TopAppBarSection.d.ts +12 -3
- package/TopAppBar/TopAppBarSection.js +9 -22
- package/TopAppBar/TopAppBarSection.js.map +1 -1
- package/TopAppBar/TopAppBarTitle.d.ts +7 -4
- package/TopAppBar/TopAppBarTitle.js +10 -22
- package/TopAppBar/TopAppBarTitle.js.map +1 -1
- package/TopAppBar/index.js +9 -96
- package/TopAppBar/index.js.map +1 -1
- package/Typography/Typography.d.ts +10 -5
- package/Typography/Typography.js +33 -17
- package/Typography/Typography.js.map +1 -1
- package/Typography/index.js +2 -17
- package/Typography/index.js.map +1 -1
- package/package.json +24 -95
- package/styles.scss +15 -41
- package/types.d.ts +5 -5
- package/types.js +2 -4
- package/types.js.map +1 -1
- package/Accordion/Accordion.stories.d.ts +0 -1
- package/Accordion/Accordion.stories.js +0 -54
- package/Accordion/Accordion.stories.js.map +0 -1
- 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 -38
- package/Alert/Alert.stories.js.map +0 -1
- package/Alert/README.md +0 -11
- package/AutoComplete/AutoComplete.stories.d.ts +0 -1
- package/AutoComplete/AutoComplete.stories.js +0 -86
- package/AutoComplete/AutoComplete.stories.js.map +0 -1
- package/AutoComplete/AutoCompleteReadme.md +0 -11
- package/AutoComplete/MultiAutoComplete.stories.d.ts +0 -1
- package/AutoComplete/MultiAutoComplete.stories.js +0 -143
- package/AutoComplete/MultiAutoComplete.stories.js.map +0 -1
- 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 -47
- package/AutoComplete/styles.js.map +0 -1
- package/Avatar/Avatar.stories.d.ts +0 -1
- package/Avatar/Avatar.stories.js +0 -36
- package/Avatar/Avatar.stories.js.map +0 -1
- package/Avatar/README.md +0 -11
- package/Button/Button.stories.d.ts +0 -1
- package/Button/Button.stories.js +0 -66
- package/Button/Button.stories.js.map +0 -1
- package/Button/Button.styles.d.ts +0 -6
- package/Button/Button.styles.js +0 -15
- package/Button/Button.styles.js.map +0 -1
- package/Button/CopyButton/CopyButton.d.ts +0 -11
- package/Button/CopyButton/CopyButton.js +0 -42
- package/Button/CopyButton/CopyButton.js.map +0 -1
- package/Button/CopyButton/CopyButton.stories.d.ts +0 -1
- package/Button/CopyButton/CopyButton.stories.js +0 -28
- package/Button/CopyButton/CopyButton.stories.js.map +0 -1
- package/Button/CopyButton/README.md +0 -11
- package/Button/IconButton/IconButton.d.ts +0 -36
- package/Button/IconButton/IconButton.js +0 -38
- package/Button/IconButton/IconButton.js.map +0 -1
- package/Button/IconButton/IconButton.stories.d.ts +0 -1
- package/Button/IconButton/IconButton.stories.js +0 -50
- package/Button/IconButton/IconButton.stories.js.map +0 -1
- 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 -39
- package/Carousel/Carouser.stories.js.map +0 -1
- package/Carousel/README.md +0 -15
- package/Checkbox/Checkbox.stories.d.ts +0 -1
- package/Checkbox/Checkbox.stories.js +0 -39
- package/Checkbox/Checkbox.stories.js.map +0 -1
- package/Checkbox/Checkbox.styles.d.ts +0 -6
- package/Checkbox/Checkbox.styles.js +0 -22
- package/Checkbox/Checkbox.styles.js.map +0 -1
- package/Checkbox/CheckboxGroup.stories.d.ts +0 -1
- package/Checkbox/CheckboxGroup.stories.js +0 -66
- package/Checkbox/CheckboxGroup.stories.js.map +0 -1
- package/Checkbox/README_Checkbox.md +0 -15
- package/Checkbox/README_CheckboxGroup.md +0 -19
- package/Chips/Chips.stories.d.ts +0 -1
- package/Chips/Chips.stories.js +0 -40
- package/Chips/Chips.stories.js.map +0 -1
- 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 -29
- package/Chips/styles.js.map +0 -1
- package/CodeEditor/CodeEditor.stories.d.ts +0 -2
- package/CodeEditor/CodeEditor.stories.js +0 -45
- package/CodeEditor/CodeEditor.stories.js.map +0 -1
- package/CodeEditor/README.md +0 -21
- package/ColorPicker/ColorPicker.stories.d.ts +0 -1
- package/ColorPicker/ColorPicker.stories.js +0 -41
- package/ColorPicker/ColorPicker.stories.js.map +0 -1
- package/ColorPicker/README.md +0 -11
- package/ConfirmationDialog/ConfirmationDialog.stories.d.ts +0 -1
- package/ConfirmationDialog/ConfirmationDialog.stories.js +0 -40
- package/ConfirmationDialog/ConfirmationDialog.stories.js.map +0 -1
- package/ConfirmationDialog/README.md +0 -11
- package/DataTable/DataTable.stories.d.ts +0 -1
- package/DataTable/DataTable.stories.js +0 -77
- package/DataTable/DataTable.stories.js.map +0 -1
- package/DataTable/README.md +0 -72
- package/DataTable/styled.d.ts +0 -1
- package/DataTable/styled.js +0 -18
- package/DataTable/styled.js.map +0 -1
- package/DelayedOnChange/DelayedOnChange.d.ts +0 -40
- package/DelayedOnChange/DelayedOnChange.js +0 -129
- package/DelayedOnChange/DelayedOnChange.js.map +0 -1
- package/DelayedOnChange/withDelayedOnChange.d.ts +0 -3
- package/DelayedOnChange/withDelayedOnChange.js +0 -37
- package/DelayedOnChange/withDelayedOnChange.js.map +0 -1
- package/Dialog/Dialog.stories.d.ts +0 -1
- package/Dialog/Dialog.stories.js +0 -40
- package/Dialog/Dialog.stories.js.map +0 -1
- package/Dialog/README.md +0 -23
- package/Drawer/Drawer.stories.d.ts +0 -1
- package/Drawer/Drawer.stories.js +0 -34
- package/Drawer/Drawer.stories.js.map +0 -1
- package/Drawer/README.md +0 -15
- package/DynamicFieldset/Fieldset.d.ts +0 -51
- package/DynamicFieldset/Fieldset.js +0 -165
- package/DynamicFieldset/Fieldset.js.map +0 -1
- package/Elevation/Elevation.stories.d.ts +0 -1
- package/Elevation/Elevation.stories.js +0 -40
- package/Elevation/Elevation.stories.js.map +0 -1
- 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 -40
- package/Grid/Grid.stories.js.map +0 -1
- package/Grid/README.md +0 -15
- package/Icon/Icon.stories.d.ts +0 -1
- package/Icon/Icon.stories.js +0 -40
- package/Icon/Icon.stories.js.map +0 -1
- 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 -7
- package/Image/Image.js +0 -30
- package/Image/Image.js.map +0 -1
- package/Image/Image.stories.d.ts +0 -1
- package/Image/Image.stories.js +0 -31
- package/Image/Image.stories.js.map +0 -1
- package/Image/README.md +0 -12
- package/ImageEditor/toolbar/crop.d.ts +0 -4
- package/ImageEditor/toolbar/crop.js +0 -88
- package/ImageEditor/toolbar/crop.js.map +0 -1
- package/ImageEditor/toolbar/filter.d.ts +0 -3
- package/ImageEditor/toolbar/filter.js +0 -238
- package/ImageEditor/toolbar/filter.js.map +0 -1
- package/ImageEditor/toolbar/flip.d.ts +0 -4
- package/ImageEditor/toolbar/flip.js +0 -115
- package/ImageEditor/toolbar/flip.js.map +0 -1
- 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 -69
- package/ImageEditor/toolbar/icons/index.js.map +0 -1
- 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 -39
- package/ImageEditor/toolbar/index.js.map +0 -1
- package/ImageEditor/toolbar/rotate.d.ts +0 -4
- package/ImageEditor/toolbar/rotate.js +0 -174
- package/ImageEditor/toolbar/rotate.js.map +0 -1
- package/ImageEditor/toolbar/types.d.ts +0 -33
- package/ImageEditor/toolbar/types.js +0 -5
- package/ImageEditor/toolbar/types.js.map +0 -1
- package/ImageUpload/MultiImageUpload.stories.d.ts +0 -1
- package/ImageUpload/MultiImageUpload.stories.js +0 -77
- package/ImageUpload/MultiImageUpload.stories.js.map +0 -1
- package/ImageUpload/README.md +0 -11
- package/ImageUpload/SingleImageUpload.stories.d.ts +0 -1
- package/ImageUpload/SingleImageUpload.stories.js +0 -54
- package/ImageUpload/SingleImageUpload.stories.js.map +0 -1
- 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 -21
- package/ImageUpload/styled.js +0 -136
- package/ImageUpload/styled.js.map +0 -1
- package/Input/Input.stories.d.ts +0 -1
- package/Input/Input.stories.js +0 -120
- package/Input/Input.stories.js.map +0 -1
- package/Input/README.md +0 -16
- package/Input/__tests__/Input.test.d.ts +0 -1
- package/Input/__tests__/Input.test.js +0 -130
- package/Input/__tests__/Input.test.js.map +0 -1
- 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 -37
- package/List/CollapsibleList/CollapsibleList.stories.js.map +0 -1
- 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 -119
- package/List/DataList/DataList.stories.js.map +0 -1
- package/List/DataList/DataListModalOverlay/DataListModalOverlay.d.ts +0 -18
- package/List/DataList/DataListModalOverlay/DataListModalOverlay.js +0 -106
- package/List/DataList/DataListModalOverlay/DataListModalOverlay.js.map +0 -1
- package/List/DataList/DataListModalOverlay/DataListModalOverlayAction.d.ts +0 -6
- package/List/DataList/DataListModalOverlay/DataListModalOverlayAction.js +0 -39
- package/List/DataList/DataListModalOverlay/DataListModalOverlayAction.js.map +0 -1
- package/List/DataList/DataListModalOverlay/DataListModalOverlayContext.d.ts +0 -11
- package/List/DataList/DataListModalOverlay/DataListModalOverlayContext.js +0 -39
- package/List/DataList/DataListModalOverlay/DataListModalOverlayContext.js.map +0 -1
- package/List/DataList/Loader.d.ts +0 -3
- package/List/DataList/Loader.js +0 -60
- package/List/DataList/Loader.js.map +0 -1
- package/List/DataList/NoData.d.ts +0 -3
- package/List/DataList/NoData.js +0 -32
- package/List/DataList/NoData.js.map +0 -1
- 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 -132
- package/List/List.js +0 -210
- package/List/List.js.map +0 -1
- package/List/List.stories.d.ts +0 -1
- package/List/List.stories.js +0 -62
- package/List/List.stories.js.map +0 -1
- 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 -23
- package/List/icons/index.js.map +0 -1
- package/Menu/Menu.stories.d.ts +0 -1
- package/Menu/Menu.stories.js +0 -39
- package/Menu/Menu.stories.js.map +0 -1
- package/Menu/README.md +0 -15
- package/Mosaic/Mosaic.stories.d.ts +0 -1
- package/Mosaic/Mosaic.stories.js +0 -84
- package/Mosaic/Mosaic.stories.js.map +0 -1
- 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 -22
- package/Radio/Radio.styles.js.map +0 -1
- package/Radio/RadioGroup.stories.d.ts +0 -1
- package/Radio/RadioGroup.stories.js +0 -66
- package/Radio/RadioGroup.stories.js.map +0 -1
- package/RichTextEditor/README.md +0 -10
- package/RichTextEditor/RichTextEditor.stories.d.ts +0 -1
- package/RichTextEditor/RichTextEditor.stories.js +0 -30
- package/RichTextEditor/RichTextEditor.stories.js.map +0 -1
- package/RichTextEditor/createPropsFromConfig.d.ts +0 -15
- package/RichTextEditor/createPropsFromConfig.js +0 -33
- package/RichTextEditor/createPropsFromConfig.js.map +0 -1
- package/Ripple/README.md +0 -15
- package/Ripple/Ripple.stories.d.ts +0 -1
- package/Ripple/Ripple.stories.js +0 -86
- package/Ripple/Ripple.stories.js.map +0 -1
- 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 -29
- package/Scrollbar/Scrollbar.stories.js.map +0 -1
- package/Section/README.md +0 -11
- package/Section/Section.stories.d.ts +0 -1
- package/Section/Section.stories.js +0 -35
- package/Section/Section.stories.js.map +0 -1
- package/Select/README.md +0 -15
- package/Select/Select.stories.d.ts +0 -1
- package/Select/Select.stories.js +0 -57
- package/Select/Select.stories.js.map +0 -1
- package/Skeleton/README.md +0 -21
- package/Skeleton/Skeleton.stories.d.ts +0 -1
- package/Skeleton/Skeleton.stories.js +0 -28
- package/Skeleton/Skeleton.stories.js.map +0 -1
- package/Slider/README.md +0 -15
- package/Slider/Slider.stories.d.ts +0 -1
- package/Slider/Slider.stories.js +0 -55
- package/Slider/Slider.stories.js.map +0 -1
- package/Snackbar/README.md +0 -15
- package/Snackbar/Snackbar.stories.d.ts +0 -1
- package/Snackbar/Snackbar.stories.js +0 -91
- package/Snackbar/Snackbar.stories.js.map +0 -1
- package/Switch/README.md +0 -15
- package/Switch/Switch.stories.d.ts +0 -1
- package/Switch/Switch.stories.js +0 -43
- package/Switch/Switch.stories.js.map +0 -1
- package/Tabs/Tabs.stories.d.ts +0 -1
- package/Tabs/Tabs.stories.js +0 -53
- package/Tabs/Tabs.stories.js.map +0 -1
- 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 -43
- package/Tags/Tags.stories.js.map +0 -1
- 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 -26
- package/Tooltip/Tooltip.stories.js.map +0 -1
- 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 -70
- package/TopAppBar/TopAppBar.stories.js.map +0 -1
- 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 -22
- package/TopProgressBar/TopProgressBar.js.map +0 -1
- package/TopProgressBar/TopProgressBar.stories.d.ts +0 -1
- package/TopProgressBar/TopProgressBar.stories.js +0 -32
- package/TopProgressBar/TopProgressBar.stories.js.map +0 -1
- package/TopProgressBar/hoc/index.d.ts +0 -1
- package/TopProgressBar/hoc/index.js +0 -15
- package/TopProgressBar/hoc/index.js.map +0 -1
- package/TopProgressBar/hoc/withTopProgressBar.d.ts +0 -3
- package/TopProgressBar/hoc/withTopProgressBar.js +0 -34
- package/TopProgressBar/hoc/withTopProgressBar.js.map +0 -1
- package/TopProgressBar/index.d.ts +0 -1
- package/TopProgressBar/index.js +0 -18
- package/TopProgressBar/index.js.map +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 -76
- package/Typography/Typography.stories.js.map +0 -1
package/Tags/Tags.js
CHANGED
|
@@ -1,172 +1,67 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
var _baselineClose24px = require("./icons/baseline-close-24px.svg");
|
|
39
|
-
|
|
40
|
-
var _FormElementMessage = require("../FormElementMessage");
|
|
41
|
-
|
|
42
|
-
var _excluded = ["validation", "value", "disabled", "onChange", "description"];
|
|
43
|
-
var tagsStyle = /*#__PURE__*/(0, _emotion.css)({
|
|
44
|
-
position: "relative",
|
|
45
|
-
".mdc-elevation--z1": {
|
|
46
|
-
position: "absolute",
|
|
47
|
-
width: "calc(100% - 2px)",
|
|
48
|
-
left: 1,
|
|
49
|
-
top: 56,
|
|
50
|
-
zIndex: 10,
|
|
51
|
-
maxHeight: 200,
|
|
52
|
-
overflowY: "scroll",
|
|
53
|
-
backgroundColor: "var(--mdc-theme-surface)"
|
|
54
|
-
},
|
|
55
|
-
ul: {
|
|
56
|
-
listStyle: "none",
|
|
57
|
-
width: "100%",
|
|
58
|
-
padding: 0,
|
|
59
|
-
li: {
|
|
60
|
-
padding: 10
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}, "label:tagsStyle;");
|
|
64
|
-
|
|
65
|
-
var Tags = /*#__PURE__*/function (_React$Component) {
|
|
66
|
-
(0, _inherits2.default)(Tags, _React$Component);
|
|
67
|
-
|
|
68
|
-
var _super = (0, _createSuper2.default)(Tags);
|
|
69
|
-
|
|
70
|
-
function Tags() {
|
|
71
|
-
var _this;
|
|
72
|
-
|
|
73
|
-
(0, _classCallCheck2.default)(this, Tags);
|
|
74
|
-
|
|
75
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
76
|
-
args[_key] = arguments[_key];
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
80
|
-
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "state", {
|
|
81
|
-
inputValue: ""
|
|
82
|
-
});
|
|
83
|
-
return _this;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
(0, _createClass2.default)(Tags, [{
|
|
87
|
-
key: "render",
|
|
88
|
-
value: function render() {
|
|
89
|
-
var _this2 = this;
|
|
90
|
-
|
|
91
|
-
var _this$props = this.props,
|
|
92
|
-
validation = _this$props.validation,
|
|
93
|
-
value = _this$props.value,
|
|
94
|
-
disabled = _this$props.disabled,
|
|
95
|
-
onChange = _this$props.onChange,
|
|
96
|
-
description = _this$props.description,
|
|
97
|
-
otherInputProps = (0, _objectWithoutProperties2.default)(_this$props, _excluded);
|
|
98
|
-
var inputProps = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, otherInputProps), {}, {
|
|
99
|
-
value: this.state.inputValue,
|
|
100
|
-
onChange: function onChange(inputValue) {
|
|
101
|
-
_this2.setState({
|
|
102
|
-
inputValue: inputValue
|
|
103
|
-
});
|
|
104
|
-
},
|
|
105
|
-
onKeyDown: function onKeyDown(ev) {
|
|
106
|
-
if (!onChange) {
|
|
107
|
-
return;
|
|
1
|
+
import React, { useCallback, useState } from "react";
|
|
2
|
+
import keycode from "keycode";
|
|
3
|
+
import minimatch from "minimatch";
|
|
4
|
+
import { Input } from "../Input";
|
|
5
|
+
import { Chips, Chip } from "../Chips";
|
|
6
|
+
export const Tags = props => {
|
|
7
|
+
const [inputValue, setInputValue] = useState("");
|
|
8
|
+
const {
|
|
9
|
+
value,
|
|
10
|
+
disabled,
|
|
11
|
+
onChange,
|
|
12
|
+
protectedTags = [],
|
|
13
|
+
...otherInputProps
|
|
14
|
+
} = props;
|
|
15
|
+
const isProtected = useCallback(tag => protectedTags.some(pattern => minimatch(tag, pattern)), [protectedTags]);
|
|
16
|
+
const inputProps = {
|
|
17
|
+
...otherInputProps,
|
|
18
|
+
value: inputValue,
|
|
19
|
+
onChange: inputValue => {
|
|
20
|
+
setInputValue(inputValue);
|
|
21
|
+
},
|
|
22
|
+
onKeyDown: ev => {
|
|
23
|
+
if (!onChange) {
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
const newValue = Array.isArray(value) ? [...value] : [];
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* We must cast as keycode only works with Event | string type.
|
|
30
|
+
*/
|
|
31
|
+
switch (keycode(ev)) {
|
|
32
|
+
case "enter":
|
|
33
|
+
if (inputValue) {
|
|
34
|
+
newValue.push(inputValue);
|
|
35
|
+
onChange(newValue);
|
|
36
|
+
setInputValue("");
|
|
108
37
|
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
switch ((0, _keycode.default)(ev)) {
|
|
117
|
-
case "enter":
|
|
118
|
-
if (inputValue) {
|
|
119
|
-
newValue.push(inputValue);
|
|
120
|
-
onChange(newValue);
|
|
121
|
-
|
|
122
|
-
_this2.setState({
|
|
123
|
-
inputValue: ""
|
|
124
|
-
});
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
break;
|
|
128
|
-
|
|
129
|
-
case "backspace":
|
|
130
|
-
if (newValue.length && !inputValue) {
|
|
131
|
-
newValue.splice(-1, 1);
|
|
132
|
-
onChange(newValue);
|
|
133
|
-
break;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
});
|
|
139
|
-
|
|
140
|
-
var _ref = validation || {},
|
|
141
|
-
validationIsValid = _ref.isValid,
|
|
142
|
-
validationMessage = _ref.message;
|
|
143
|
-
|
|
144
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
145
|
-
className: tagsStyle
|
|
146
|
-
}, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_Input.Input, inputProps), validationIsValid === false && /*#__PURE__*/_react.default.createElement(_FormElementMessage.FormElementMessage, {
|
|
147
|
-
error: true
|
|
148
|
-
}, validationMessage), validationIsValid !== false && description && /*#__PURE__*/_react.default.createElement(_FormElementMessage.FormElementMessage, null, description), Array.isArray(value) && value.length ? /*#__PURE__*/_react.default.createElement(_Chips.Chips, {
|
|
149
|
-
disabled: disabled
|
|
150
|
-
}, value.map(function (item, index) {
|
|
151
|
-
return /*#__PURE__*/_react.default.createElement(_Chips.Chip, {
|
|
152
|
-
label: item,
|
|
153
|
-
trailingIcon: /*#__PURE__*/_react.default.createElement(_baselineClose24px.ReactComponent, null),
|
|
154
|
-
key: "".concat(item, "-").concat(index),
|
|
155
|
-
onRemove: function onRemove() {
|
|
156
|
-
// On removal, let's update the value and call "onChange" callback.
|
|
157
|
-
if (onChange) {
|
|
158
|
-
var newValue = (0, _toConsumableArray2.default)(value);
|
|
159
|
-
newValue.splice(index, 1);
|
|
160
|
-
onChange(newValue);
|
|
161
|
-
}
|
|
38
|
+
break;
|
|
39
|
+
case "backspace":
|
|
40
|
+
if (newValue.length && !inputValue) {
|
|
41
|
+
newValue.splice(-1, 1);
|
|
42
|
+
onChange(newValue);
|
|
43
|
+
break;
|
|
162
44
|
}
|
|
163
|
-
|
|
164
|
-
})) : null));
|
|
45
|
+
}
|
|
165
46
|
}
|
|
166
|
-
}
|
|
167
|
-
return
|
|
168
|
-
|
|
47
|
+
};
|
|
48
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Input, inputProps), Array.isArray(value) && value.length ? /*#__PURE__*/React.createElement(Chips, {
|
|
49
|
+
disabled: disabled
|
|
50
|
+
}, value.map((item, index) => {
|
|
51
|
+
return /*#__PURE__*/React.createElement(Chip, {
|
|
52
|
+
label: item,
|
|
53
|
+
key: `${item}-${index}`,
|
|
54
|
+
onRemove: !isProtected(item) ? () => {
|
|
55
|
+
// On removal, let's update the value and call "onChange" callback.
|
|
56
|
+
if (onChange) {
|
|
57
|
+
const newValue = [...value];
|
|
58
|
+
newValue.splice(index, 1);
|
|
59
|
+
onChange(newValue);
|
|
60
|
+
}
|
|
61
|
+
} : undefined
|
|
62
|
+
});
|
|
63
|
+
})) : null);
|
|
64
|
+
};
|
|
65
|
+
export default Tags;
|
|
169
66
|
|
|
170
|
-
|
|
171
|
-
var _default = Tags;
|
|
172
|
-
exports.default = _default;
|
|
67
|
+
//# sourceMappingURL=Tags.js.map
|
package/Tags/Tags.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["React","useCallback","useState","keycode","minimatch","Input","Chips","Chip","Tags","props","inputValue","setInputValue","value","disabled","onChange","protectedTags","otherInputProps","isProtected","tag","some","pattern","inputProps","onKeyDown","ev","newValue","Array","isArray","push","length","splice","createElement","map","item","index","label","key","onRemove","undefined"],"sources":["Tags.tsx"],"sourcesContent":["import type { SyntheticEvent } from \"react\";\nimport React, { useCallback, useState } from \"react\";\nimport keycode from \"keycode\";\nimport minimatch from \"minimatch\";\nimport type { InputProps } from \"~/Input\";\nimport { Input } from \"~/Input\";\nimport { Chips, Chip } from \"~/Chips\";\nimport type { FormComponentProps } from \"~/types\";\n\ninterface TagsProps extends FormComponentProps {\n /**\n * Component label.\n */\n label?: React.ReactNode;\n\n /**\n * Are input and chosen tags disabled?\n */\n disabled?: boolean;\n\n /**\n * Placeholder text for the form control. Set to a blank string to create a non-floating placeholder label.\n */\n placeholder?: string;\n\n /**\n * Description beneath the input.\n */\n description?: string;\n\n /**\n * A className for the root element.\n */\n className?: string;\n\n /**\n * A list of tags.\n */\n value?: string[];\n\n /**\n * Callback that gets executed on change of input value.\n */\n onInput?: <T = unknown>(value: T) => void;\n\n /**\n * Callback that gets executed when the input is focused.\n */\n onFocus?: (ev: Event) => void;\n\n /**\n * Automatically focus on the tags input.\n */\n autoFocus?: boolean;\n\n /**\n * Protected tags cannot be removed by the user.\n */\n protectedTags?: string[];\n}\n\nexport const Tags = (props: TagsProps) => {\n const [inputValue, setInputValue] = useState(\"\");\n\n const { value, disabled, onChange, protectedTags = [], ...otherInputProps } = props;\n\n const isProtected = useCallback(\n (tag: string) => protectedTags.some(pattern => minimatch(tag, pattern)),\n [protectedTags]\n );\n\n const inputProps: InputProps<string> = {\n ...otherInputProps,\n value: inputValue,\n onChange: inputValue => {\n setInputValue(inputValue);\n },\n onKeyDown: (ev: SyntheticEvent) => {\n if (!onChange) {\n return;\n }\n\n const newValue = Array.isArray(value) ? [...value] : [];\n\n /**\n * We must cast as keycode only works with Event | string type.\n */\n switch (keycode(ev as unknown as Event)) {\n case \"enter\":\n if (inputValue) {\n newValue.push(inputValue);\n onChange(newValue);\n setInputValue(\"\");\n }\n break;\n case \"backspace\":\n if (newValue.length && !inputValue) {\n newValue.splice(-1, 1);\n onChange(newValue);\n break;\n }\n }\n }\n };\n\n return (\n <div>\n <Input {...inputProps} />\n {Array.isArray(value) && value.length ? (\n <Chips disabled={disabled}>\n {value.map((item, index) => {\n return (\n <Chip\n label={item}\n key={`${item}-${index}`}\n onRemove={\n !isProtected(item)\n ? () => {\n // On removal, let's update the value and call \"onChange\" callback.\n if (onChange) {\n const newValue = [...value];\n newValue.splice(index, 1);\n onChange(newValue);\n }\n }\n : undefined\n }\n />\n );\n })}\n </Chips>\n ) : null}\n </div>\n );\n};\n\nexport default Tags;\n"],"mappings":"AACA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,QAAQ,QAAQ,OAAO;AACpD,OAAOC,OAAO,MAAM,SAAS;AAC7B,OAAOC,SAAS,MAAM,WAAW;AAEjC,SAASC,KAAK;AACd,SAASC,KAAK,EAAEC,IAAI;AAuDpB,OAAO,MAAMC,IAAI,GAAIC,KAAgB,IAAK;EACtC,MAAM,CAACC,UAAU,EAAEC,aAAa,CAAC,GAAGT,QAAQ,CAAC,EAAE,CAAC;EAEhD,MAAM;IAAEU,KAAK;IAAEC,QAAQ;IAAEC,QAAQ;IAAEC,aAAa,GAAG,EAAE;IAAE,GAAGC;EAAgB,CAAC,GAAGP,KAAK;EAEnF,MAAMQ,WAAW,GAAGhB,WAAW,CAC1BiB,GAAW,IAAKH,aAAa,CAACI,IAAI,CAACC,OAAO,IAAIhB,SAAS,CAACc,GAAG,EAAEE,OAAO,CAAC,CAAC,EACvE,CAACL,aAAa,CAClB,CAAC;EAED,MAAMM,UAA8B,GAAG;IACnC,GAAGL,eAAe;IAClBJ,KAAK,EAAEF,UAAU;IACjBI,QAAQ,EAAEJ,UAAU,IAAI;MACpBC,aAAa,CAACD,UAAU,CAAC;IAC7B,CAAC;IACDY,SAAS,EAAGC,EAAkB,IAAK;MAC/B,IAAI,CAACT,QAAQ,EAAE;QACX;MACJ;MAEA,MAAMU,QAAQ,GAAGC,KAAK,CAACC,OAAO,CAACd,KAAK,CAAC,GAAG,CAAC,GAAGA,KAAK,CAAC,GAAG,EAAE;;MAEvD;AACZ;AACA;MACY,QAAQT,OAAO,CAACoB,EAAsB,CAAC;QACnC,KAAK,OAAO;UACR,IAAIb,UAAU,EAAE;YACZc,QAAQ,CAACG,IAAI,CAACjB,UAAU,CAAC;YACzBI,QAAQ,CAACU,QAAQ,CAAC;YAClBb,aAAa,CAAC,EAAE,CAAC;UACrB;UACA;QACJ,KAAK,WAAW;UACZ,IAAIa,QAAQ,CAACI,MAAM,IAAI,CAAClB,UAAU,EAAE;YAChCc,QAAQ,CAACK,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;YACtBf,QAAQ,CAACU,QAAQ,CAAC;YAClB;UACJ;MACR;IACJ;EACJ,CAAC;EAED,oBACIxB,KAAA,CAAA8B,aAAA,2BACI9B,KAAA,CAAA8B,aAAA,CAACzB,KAAK,EAAKgB,UAAa,CAAC,EACxBI,KAAK,CAACC,OAAO,CAACd,KAAK,CAAC,IAAIA,KAAK,CAACgB,MAAM,gBACjC5B,KAAA,CAAA8B,aAAA,CAACxB,KAAK;IAACO,QAAQ,EAAEA;EAAS,GACrBD,KAAK,CAACmB,GAAG,CAAC,CAACC,IAAI,EAAEC,KAAK,KAAK;IACxB,oBACIjC,KAAA,CAAA8B,aAAA,CAACvB,IAAI;MACD2B,KAAK,EAAEF,IAAK;MACZG,GAAG,EAAE,GAAGH,IAAI,IAAIC,KAAK,EAAG;MACxBG,QAAQ,EACJ,CAACnB,WAAW,CAACe,IAAI,CAAC,GACZ,MAAM;QACF;QACA,IAAIlB,QAAQ,EAAE;UACV,MAAMU,QAAQ,GAAG,CAAC,GAAGZ,KAAK,CAAC;UAC3BY,QAAQ,CAACK,MAAM,CAACI,KAAK,EAAE,CAAC,CAAC;UACzBnB,QAAQ,CAACU,QAAQ,CAAC;QACtB;MACJ,CAAC,GACDa;IACT,CACJ,CAAC;EAEV,CAAC,CACE,CAAC,GACR,IACH,CAAC;AAEd,CAAC;AAED,eAAe7B,IAAI","ignoreList":[]}
|
package/Tags/index.js
CHANGED
|
@@ -1,18 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
export * from "./Tags";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
|
|
7
|
-
var _Tags = require("./Tags");
|
|
8
|
-
|
|
9
|
-
Object.keys(_Tags).forEach(function (key) {
|
|
10
|
-
if (key === "default" || key === "__esModule") return;
|
|
11
|
-
if (key in exports && exports[key] === _Tags[key]) return;
|
|
12
|
-
Object.defineProperty(exports, key, {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function get() {
|
|
15
|
-
return _Tags[key];
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
});
|
|
3
|
+
//# sourceMappingURL=index.js.map
|
package/Tags/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Tags\";\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Tags\";\n"],"mappings":"AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TimeAgo } from "@webiny/admin-ui";
|
|
2
|
+
export type { TimeAgoProps, Opts, TDate } from "@webiny/admin-ui";
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated This component is deprecated and will be removed in future releases.
|
|
5
|
+
* Please use the `TimeAgo` component from the `@webiny/admin-ui` package instead.
|
|
6
|
+
*/
|
|
7
|
+
export { TimeAgo };
|
package/TimeAgo/index.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TimeAgo } from "@webiny/admin-ui";
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated This component is deprecated and will be removed in future releases.
|
|
4
|
+
* Please use the `TimeAgo` component from the `@webiny/admin-ui` package instead.
|
|
5
|
+
*/
|
|
6
|
+
export { TimeAgo };
|
|
7
|
+
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["TimeAgo"],"sources":["index.ts"],"sourcesContent":["import { TimeAgo } from \"@webiny/admin-ui\";\nexport type { TimeAgoProps, Opts, TDate } from \"@webiny/admin-ui\";\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `TimeAgo` component from the `@webiny/admin-ui` package instead.\n */\nexport { TimeAgo };\n"],"mappings":"AAAA,SAASA,OAAO,QAAQ,kBAAkB;AAG1C;AACA;AACA;AACA;AACA,SAASA,OAAO","ignoreList":[]}
|
package/Tooltip/Tooltip.d.ts
CHANGED
|
@@ -1,25 +1,13 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import "rc-tooltip/assets/bootstrap_white.css";
|
|
3
|
-
import "./style.scss";
|
|
4
|
-
declare type TooltipPropsContent = (() => React.ReactChild) | React.ReactChild | React.ReactFragment | React.ReactPortal;
|
|
5
2
|
export interface TooltipProps {
|
|
6
3
|
children: React.ReactNode;
|
|
7
|
-
content:
|
|
4
|
+
content: React.ReactNode;
|
|
8
5
|
trigger?: string;
|
|
9
6
|
placement?: "left" | "right" | "top" | "bottom" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
|
|
10
7
|
className?: string;
|
|
11
8
|
}
|
|
12
|
-
interface State {
|
|
13
|
-
tooltipIsOpen: boolean;
|
|
14
|
-
}
|
|
15
9
|
/**
|
|
16
|
-
*
|
|
10
|
+
* @deprecated This component is deprecated and will be removed in future releases.
|
|
11
|
+
* Please use the `Tooltip` component from the `@webiny/admin-ui` package instead.
|
|
17
12
|
*/
|
|
18
|
-
declare
|
|
19
|
-
state: {
|
|
20
|
-
tooltipIsOpen: boolean;
|
|
21
|
-
};
|
|
22
|
-
onVisibleChange: (visible?: boolean) => void;
|
|
23
|
-
render(): JSX.Element;
|
|
24
|
-
}
|
|
25
|
-
export { Tooltip };
|
|
13
|
+
export declare const Tooltip: ({ children, content, placement, className }: TooltipProps) => React.JSX.Element;
|
package/Tooltip/Tooltip.js
CHANGED
|
@@ -1,79 +1,65 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.Tooltip = void 0;
|
|
9
|
-
|
|
10
|
-
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
11
|
-
|
|
12
|
-
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
13
|
-
|
|
14
|
-
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
|
|
15
|
-
|
|
16
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
17
|
-
|
|
18
|
-
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
|
|
19
|
-
|
|
20
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
21
|
-
|
|
22
|
-
var _react = _interopRequireDefault(require("react"));
|
|
23
|
-
|
|
24
|
-
var _rcTooltip = _interopRequireDefault(require("rc-tooltip"));
|
|
25
|
-
|
|
26
|
-
require("rc-tooltip/assets/bootstrap_white.css");
|
|
27
|
-
|
|
28
|
-
require("./style.scss");
|
|
29
|
-
|
|
1
|
+
import React, { useMemo } from "react";
|
|
2
|
+
import { Tooltip as TooltipBase } from "@webiny/admin-ui";
|
|
30
3
|
/**
|
|
31
|
-
*
|
|
4
|
+
* @deprecated This component is deprecated and will be removed in future releases.
|
|
5
|
+
* Please use the `Tooltip` component from the `@webiny/admin-ui` package instead.
|
|
32
6
|
*/
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
,
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
},
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
7
|
+
export const Tooltip = ({
|
|
8
|
+
children,
|
|
9
|
+
content,
|
|
10
|
+
placement,
|
|
11
|
+
className = "webiny-ui-tooltip"
|
|
12
|
+
}) => {
|
|
13
|
+
const {
|
|
14
|
+
side,
|
|
15
|
+
align
|
|
16
|
+
} = useMemo(() => {
|
|
17
|
+
const placementMapping = {
|
|
18
|
+
left: {
|
|
19
|
+
side: "left",
|
|
20
|
+
align: undefined
|
|
21
|
+
},
|
|
22
|
+
right: {
|
|
23
|
+
side: "right",
|
|
24
|
+
align: undefined
|
|
25
|
+
},
|
|
26
|
+
top: {
|
|
27
|
+
side: "top",
|
|
28
|
+
align: undefined
|
|
29
|
+
},
|
|
30
|
+
bottom: {
|
|
31
|
+
side: "bottom",
|
|
32
|
+
align: undefined
|
|
33
|
+
},
|
|
34
|
+
topLeft: {
|
|
35
|
+
side: "top",
|
|
36
|
+
align: "start"
|
|
37
|
+
},
|
|
38
|
+
topRight: {
|
|
39
|
+
side: "top",
|
|
40
|
+
align: "end"
|
|
41
|
+
},
|
|
42
|
+
bottomLeft: {
|
|
43
|
+
side: "bottom",
|
|
44
|
+
align: "start"
|
|
45
|
+
},
|
|
46
|
+
bottomRight: {
|
|
47
|
+
side: "bottom",
|
|
48
|
+
align: "end"
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
return placementMapping[placement ?? ""] || {
|
|
52
|
+
side: undefined,
|
|
53
|
+
align: undefined
|
|
54
|
+
};
|
|
55
|
+
}, [placement]);
|
|
56
|
+
return /*#__PURE__*/React.createElement(TooltipBase, {
|
|
57
|
+
trigger: children,
|
|
58
|
+
content: content,
|
|
59
|
+
className: className,
|
|
60
|
+
side: side,
|
|
61
|
+
align: align
|
|
62
|
+
});
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
//# sourceMappingURL=Tooltip.js.map
|
package/Tooltip/Tooltip.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Tooltip","
|
|
1
|
+
{"version":3,"names":["React","useMemo","Tooltip","TooltipBase","children","content","placement","className","side","align","placementMapping","left","undefined","right","top","bottom","topLeft","topRight","bottomLeft","bottomRight","createElement","trigger"],"sources":["Tooltip.tsx"],"sourcesContent":["import React, { useMemo } from \"react\";\nimport type { TooltipProps as TooltipPropsBase } from \"@webiny/admin-ui\";\nimport { Tooltip as TooltipBase } from \"@webiny/admin-ui\";\n\nexport interface TooltipProps {\n // A component (eg. button) which will trigger the tooltip.\n children: React.ReactNode;\n\n // Content which will be shown inside the tooltip.\n content: React.ReactNode;\n\n // Defines which action will trigger the tooltip: \"hover\", \"click\" or \"focus\".\n trigger?: string;\n\n // Can be \"left\",\"right\",\"top\",\"bottom\", \"topLeft\", \"topRight\", \"bottomLeft\" or \"bottomRight\".\n placement?:\n | \"left\"\n | \"right\"\n | \"top\"\n | \"bottom\"\n | \"topLeft\"\n | \"topRight\"\n | \"bottomLeft\"\n | \"bottomRight\";\n\n // CSS class name\n className?: string;\n}\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Tooltip` component from the `@webiny/admin-ui` package instead.\n */\nexport const Tooltip = ({\n children,\n content,\n placement,\n className = \"webiny-ui-tooltip\"\n}: TooltipProps) => {\n const { side, align } = useMemo(() => {\n const placementMapping: Record<\n string,\n { side: TooltipPropsBase[\"side\"]; align: TooltipPropsBase[\"align\"] }\n > = {\n left: { side: \"left\", align: undefined },\n right: { side: \"right\", align: undefined },\n top: { side: \"top\", align: undefined },\n bottom: { side: \"bottom\", align: undefined },\n topLeft: { side: \"top\", align: \"start\" },\n topRight: { side: \"top\", align: \"end\" },\n bottomLeft: { side: \"bottom\", align: \"start\" },\n bottomRight: { side: \"bottom\", align: \"end\" }\n };\n\n return placementMapping[placement ?? \"\"] || { side: undefined, align: undefined };\n }, [placement]);\n\n return (\n <TooltipBase\n trigger={children}\n content={content}\n className={className}\n side={side}\n align={align}\n />\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,OAAO,QAAQ,OAAO;AAEtC,SAASC,OAAO,IAAIC,WAAW,QAAQ,kBAAkB;AA2BzD;AACA;AACA;AACA;AACA,OAAO,MAAMD,OAAO,GAAGA,CAAC;EACpBE,QAAQ;EACRC,OAAO;EACPC,SAAS;EACTC,SAAS,GAAG;AACF,CAAC,KAAK;EAChB,MAAM;IAAEC,IAAI;IAAEC;EAAM,CAAC,GAAGR,OAAO,CAAC,MAAM;IAClC,MAAMS,gBAGL,GAAG;MACAC,IAAI,EAAE;QAAEH,IAAI,EAAE,MAAM;QAAEC,KAAK,EAAEG;MAAU,CAAC;MACxCC,KAAK,EAAE;QAAEL,IAAI,EAAE,OAAO;QAAEC,KAAK,EAAEG;MAAU,CAAC;MAC1CE,GAAG,EAAE;QAAEN,IAAI,EAAE,KAAK;QAAEC,KAAK,EAAEG;MAAU,CAAC;MACtCG,MAAM,EAAE;QAAEP,IAAI,EAAE,QAAQ;QAAEC,KAAK,EAAEG;MAAU,CAAC;MAC5CI,OAAO,EAAE;QAAER,IAAI,EAAE,KAAK;QAAEC,KAAK,EAAE;MAAQ,CAAC;MACxCQ,QAAQ,EAAE;QAAET,IAAI,EAAE,KAAK;QAAEC,KAAK,EAAE;MAAM,CAAC;MACvCS,UAAU,EAAE;QAAEV,IAAI,EAAE,QAAQ;QAAEC,KAAK,EAAE;MAAQ,CAAC;MAC9CU,WAAW,EAAE;QAAEX,IAAI,EAAE,QAAQ;QAAEC,KAAK,EAAE;MAAM;IAChD,CAAC;IAED,OAAOC,gBAAgB,CAACJ,SAAS,IAAI,EAAE,CAAC,IAAI;MAAEE,IAAI,EAAEI,SAAS;MAAEH,KAAK,EAAEG;IAAU,CAAC;EACrF,CAAC,EAAE,CAACN,SAAS,CAAC,CAAC;EAEf,oBACIN,KAAA,CAAAoB,aAAA,CAACjB,WAAW;IACRkB,OAAO,EAAEjB,QAAS;IAClBC,OAAO,EAAEA,OAAQ;IACjBE,SAAS,EAAEA,SAAU;IACrBC,IAAI,EAAEA,IAAK;IACXC,KAAK,EAAEA;EAAM,CAChB,CAAC;AAEV,CAAC","ignoreList":[]}
|
package/Tooltip/index.js
CHANGED
|
@@ -1,18 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
export * from "./Tooltip";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
|
|
7
|
-
var _Tooltip = require("./Tooltip");
|
|
8
|
-
|
|
9
|
-
Object.keys(_Tooltip).forEach(function (key) {
|
|
10
|
-
if (key === "default" || key === "__esModule") return;
|
|
11
|
-
if (key in exports && exports[key] === _Tooltip[key]) return;
|
|
12
|
-
Object.defineProperty(exports, key, {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function get() {
|
|
15
|
-
return _Tooltip[key];
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
});
|
|
3
|
+
//# sourceMappingURL=index.js.map
|
package/Tooltip/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Tooltip\";\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Tooltip\";\n"],"mappings":"AAAA","ignoreList":[]}
|
package/TopAppBar/TopAppBar.d.ts
CHANGED
|
@@ -1,6 +1,26 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
/*********************************************************************
|
|
3
|
+
* TopAppBar
|
|
4
|
+
*********************************************************************/
|
|
5
|
+
export interface RmwcTopAppBarProps {
|
|
6
|
+
/** Emits when the navigation icon is clicked. */
|
|
7
|
+
onNav?: (evt: any) => void;
|
|
8
|
+
/** Styles the top app bar as a fixed top app bar. */
|
|
9
|
+
fixed?: boolean;
|
|
10
|
+
/** Styles the top app bar as a prominent top app bar. */
|
|
11
|
+
prominent?: boolean;
|
|
12
|
+
/** Styles the top app bar as a short top app bar. */
|
|
13
|
+
short?: boolean;
|
|
14
|
+
/** Styles the top app bar to always be collapsed. */
|
|
15
|
+
shortCollapsed?: boolean;
|
|
16
|
+
/** Styles the top app bar to be dense. */
|
|
17
|
+
dense?: boolean;
|
|
18
|
+
/** Set a scrollTarget other than the window when you are using the TopAppBar inside of a nested scrolling DOM Element. Please note that you should store your scrollTarget in a stateful variable. See example https://codesandbox.io/s/reverent-austin-16zzi.*/
|
|
19
|
+
scrollTarget?: Element | null;
|
|
20
|
+
/** Advanced: A reference to the MDCFoundation. */
|
|
21
|
+
foundationRef?: any;
|
|
22
|
+
}
|
|
23
|
+
export type TopAppBarProps = RmwcTopAppBarProps & {
|
|
4
24
|
/**
|
|
5
25
|
* Element children
|
|
6
26
|
*/
|
|
@@ -14,5 +34,9 @@ export declare type TopAppBarProps = RmwcTopAppBarProps & {
|
|
|
14
34
|
*/
|
|
15
35
|
style?: React.CSSProperties;
|
|
16
36
|
};
|
|
17
|
-
|
|
37
|
+
/**
|
|
38
|
+
* @deprecated This component is deprecated and will be removed in future releases.
|
|
39
|
+
* Please use the `HeaderBar` component from the `@webiny/admin-ui` package instead.
|
|
40
|
+
*/
|
|
41
|
+
declare const TopAppBar: (props: TopAppBarProps) => React.JSX.Element;
|
|
18
42
|
export { TopAppBar };
|