@webiny/ui 5.43.2 → 6.0.0-alpha.0
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 +7 -3
- package/Accordion/Accordion.js +9 -30
- package/Accordion/Accordion.js.map +1 -1
- package/Accordion/AccordionItem.d.ts +116 -37
- package/Accordion/AccordionItem.js +33 -188
- package/Accordion/AccordionItem.js.map +1 -1
- package/Accordion/AccordionItemActions.d.ts +8 -0
- package/Accordion/AccordionItemActions.js +30 -28
- package/Accordion/AccordionItemActions.js.map +1 -1
- package/Accordion/index.js +2 -27
- package/Accordion/index.js.map +1 -1
- package/Alert/Alert.d.ts +2 -1
- package/Alert/Alert.js +16 -52
- package/Alert/Alert.js.map +1 -1
- package/Alert/index.js +1 -16
- package/Alert/index.js.map +1 -1
- package/AutoComplete/AutoComplete.d.ts +6 -18
- package/AutoComplete/AutoComplete.js +61 -289
- package/AutoComplete/AutoComplete.js.map +1 -1
- package/AutoComplete/MultiAutoComplete.d.ts +12 -46
- package/AutoComplete/MultiAutoComplete.js +78 -563
- package/AutoComplete/MultiAutoComplete.js.map +1 -1
- package/AutoComplete/index.js +2 -27
- package/AutoComplete/index.js.map +1 -1
- package/AutoComplete/types.d.ts +4 -4
- package/AutoComplete/types.js +1 -5
- package/AutoComplete/types.js.map +1 -1
- package/AutoComplete/utils.d.ts +1 -1
- package/AutoComplete/utils.js +4 -10
- package/AutoComplete/utils.js.map +1 -1
- package/Avatar/Avatar.d.ts +2 -1
- package/Avatar/Avatar.js +30 -81
- package/Avatar/Avatar.js.map +1 -1
- package/Avatar/index.js +1 -16
- package/Avatar/index.js.map +1 -1
- package/Button/Button.d.ts +8 -27
- package/Button/Button.js +12 -121
- 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 +16 -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 +8 -38
- 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 +10 -42
- package/Carousel/Carousel.js.map +1 -1
- package/Carousel/index.js +1 -13
- package/Carousel/index.js.map +1 -1
- package/Checkbox/Checkbox.d.ts +3 -5
- package/Checkbox/Checkbox.js +32 -64
- package/Checkbox/Checkbox.js.map +1 -1
- package/Checkbox/CheckboxGroup.d.ts +5 -1
- package/Checkbox/CheckboxGroup.js +46 -58
- package/Checkbox/CheckboxGroup.js.map +1 -1
- package/Checkbox/index.js +2 -20
- package/Checkbox/index.js.map +1 -1
- package/Chips/Chip.d.ts +31 -2
- package/Chips/Chip.js +44 -27
- package/Chips/Chip.js.map +1 -1
- package/Chips/Chips.d.ts +4 -0
- package/Chips/Chips.js +14 -21
- package/Chips/Chips.js.map +1 -1
- package/Chips/index.js +2 -27
- package/Chips/index.js.map +1 -1
- package/CodeEditor/CodeEditor.d.ts +4 -12
- package/CodeEditor/CodeEditor.js +12 -82
- package/CodeEditor/CodeEditor.js.map +1 -1
- package/CodeEditor/index.js +1 -16
- package/CodeEditor/index.js.map +1 -1
- package/ColorPicker/ColorPicker.d.ts +4 -19
- package/ColorPicker/ColorPicker.js +25 -150
- package/ColorPicker/ColorPicker.js.map +1 -1
- package/ColorPicker/index.js +1 -16
- package/ColorPicker/index.js.map +1 -1
- package/ConfirmationDialog/ConfirmationDialog.js +78 -102
- package/ConfirmationDialog/ConfirmationDialog.js.map +1 -1
- package/ConfirmationDialog/index.js +2 -27
- package/ConfirmationDialog/index.js.map +1 -1
- package/ConfirmationDialog/withConfirmation.js +10 -18
- package/ConfirmationDialog/withConfirmation.js.map +1 -1
- package/DataTable/DataTable.d.ts +54 -91
- package/DataTable/DataTable.js +56 -324
- package/DataTable/DataTable.js.map +1 -1
- package/DataTable/index.js +1 -16
- package/DataTable/index.js.map +1 -1
- package/DateTime/Date.js +14 -21
- package/DateTime/Date.js.map +1 -1
- package/DateTime/index.js +1 -12
- package/DateTime/index.js.map +1 -1
- package/DelayedOnChange/index.d.ts +7 -1
- package/DelayedOnChange/index.js +7 -16
- package/DelayedOnChange/index.js.map +1 -1
- package/Dialog/Dialog.d.ts +47 -59
- package/Dialog/Dialog.js +69 -79
- package/Dialog/Dialog.js.map +1 -1
- package/Dialog/index.js +1 -16
- package/Dialog/index.js.map +1 -1
- package/Drawer/Drawer.d.ts +28 -21
- package/Drawer/Drawer.js +42 -52
- package/Drawer/Drawer.js.map +1 -1
- package/Drawer/index.js +1 -16
- package/Drawer/index.js.map +1 -1
- package/DynamicFieldset/index.d.ts +7 -1
- package/DynamicFieldset/index.js +7 -13
- package/DynamicFieldset/index.js.map +1 -1
- package/Elevation/Elevation.d.ts +6 -2
- package/Elevation/Elevation.js +13 -15
- package/Elevation/Elevation.js.map +1 -1
- package/Elevation/index.js +1 -16
- package/Elevation/index.js.map +1 -1
- package/FormElementMessage/FormElementMessage.d.ts +6 -2
- package/FormElementMessage/FormElementMessage.js +21 -16
- package/FormElementMessage/FormElementMessage.js.map +1 -1
- package/FormElementMessage/index.js +1 -12
- package/FormElementMessage/index.js.map +1 -1
- package/FullName/FullName.d.ts +4 -0
- package/FullName/FullName.js +11 -9
- package/FullName/FullName.js.map +1 -1
- package/FullName/index.js +1 -16
- package/FullName/index.js.map +1 -1
- package/Grid/Grid.d.ts +32 -8
- package/Grid/Grid.js +37 -16
- package/Grid/Grid.js.map +1 -1
- package/Grid/index.js +1 -16
- package/Grid/index.js.map +1 -1
- package/Helpers/ClassNames.d.ts +3 -3
- package/Helpers/ClassNames.js +13 -19
- package/Helpers/ClassNames.js.map +1 -1
- package/Helpers/index.js +2 -12
- package/Helpers/index.js.map +1 -1
- package/Icon/Icon.d.ts +7 -2
- package/Icon/Icon.js +9 -25
- package/Icon/Icon.js.map +1 -1
- package/Icon/index.js +1 -16
- package/Icon/index.js.map +1 -1
- package/Image/index.d.ts +6 -1
- package/Image/index.js +6 -15
- package/Image/index.js.map +1 -1
- package/ImageEditor/ImageEditor.d.ts +8 -23
- package/ImageEditor/ImageEditor.js +11 -266
- package/ImageEditor/ImageEditor.js.map +1 -1
- package/ImageEditor/index.js +1 -16
- package/ImageEditor/index.js.map +1 -1
- package/ImageUpload/Image.d.ts +8 -15
- package/ImageUpload/Image.js +12 -114
- package/ImageUpload/Image.js.map +1 -1
- package/ImageUpload/ImageEditorDialog.d.ts +5 -1
- package/ImageUpload/ImageEditorDialog.js +11 -79
- package/ImageUpload/ImageEditorDialog.js.map +1 -1
- package/ImageUpload/MultiImageUpload.d.ts +6 -21
- package/ImageUpload/MultiImageUpload.js +12 -278
- package/ImageUpload/MultiImageUpload.js.map +1 -1
- package/ImageUpload/SingleImageUpload.d.ts +5 -22
- package/ImageUpload/SingleImageUpload.js +12 -189
- package/ImageUpload/SingleImageUpload.js.map +1 -1
- package/ImageUpload/index.d.ts +1 -1
- package/ImageUpload/index.js +4 -34
- package/ImageUpload/index.js.map +1 -1
- package/Input/Input.d.ts +59 -8
- package/Input/Input.js +70 -73
- package/Input/Input.js.map +1 -1
- package/Input/index.js +1 -16
- package/Input/index.js.map +1 -1
- package/List/CollapsibleList/index.d.ts +18 -4
- package/List/CollapsibleList/index.js +9 -13
- package/List/CollapsibleList/index.js.map +1 -1
- package/List/DataList/DataList.d.ts +12 -38
- package/List/DataList/DataList.js +15 -305
- package/List/DataList/DataList.js.map +1 -1
- package/List/DataList/DataListModalOverlay/index.d.ts +12 -3
- package/List/DataList/DataListModalOverlay/index.js +13 -31
- package/List/DataList/DataListModalOverlay/index.js.map +1 -1
- package/List/DataList/DataListWithSections.d.ts +12 -36
- package/List/DataList/DataListWithSections.js +15 -323
- package/List/DataList/DataListWithSections.js.map +1 -1
- package/List/DataList/icons/index.d.ts +1 -15
- package/List/DataList/icons/index.js +1 -62
- package/List/DataList/icons/index.js.map +1 -1
- package/List/DataList/index.d.ts +0 -1
- package/List/DataList/index.js +3 -58
- package/List/DataList/index.js.map +1 -1
- package/List/DataList/types.d.ts +1 -28
- package/List/DataList/types.js +1 -5
- 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 +4 -70
- package/List/index.js.map +1 -1
- package/Menu/Menu.d.ts +40 -4
- package/Menu/Menu.js +74 -100
- package/Menu/Menu.js.map +1 -1
- package/Menu/index.js +1 -16
- package/Menu/index.js.map +1 -1
- package/Mosaic/Mosaic.d.ts +5 -5
- package/Mosaic/Mosaic.js +6 -26
- package/Mosaic/Mosaic.js.map +1 -1
- package/Mosaic/index.js +1 -16
- package/Mosaic/index.js.map +1 -1
- package/Progress/CircularProgress.d.ts +10 -2
- package/Progress/CircularProgress.js +16 -67
- package/Progress/CircularProgress.js.map +1 -1
- package/Progress/index.d.ts +1 -1
- package/Progress/index.js +1 -13
- package/Progress/index.js.map +1 -1
- package/Radio/Radio.d.ts +3 -3
- package/Radio/Radio.js +34 -54
- package/Radio/Radio.js.map +1 -1
- package/Radio/RadioGroup.d.ts +6 -2
- package/Radio/RadioGroup.js +37 -48
- package/Radio/RadioGroup.js.map +1 -1
- package/Radio/index.js +2 -20
- package/Radio/index.js.map +1 -1
- package/RichTextEditor/RichTextEditor.d.ts +10 -29
- package/RichTextEditor/RichTextEditor.js +14 -131
- package/RichTextEditor/RichTextEditor.js.map +1 -1
- package/RichTextEditor/index.d.ts +3 -2
- package/RichTextEditor/index.js +2 -27
- package/RichTextEditor/index.js.map +1 -1
- package/Ripple/Ripple.d.ts +1 -1
- package/Ripple/Ripple.js +6 -15
- package/Ripple/Ripple.js.map +1 -1
- package/Ripple/index.js +1 -16
- package/Ripple/index.js.map +1 -1
- package/Scrollbar/Scrollbar.d.ts +5 -8
- package/Scrollbar/Scrollbar.js +7 -11
- package/Scrollbar/Scrollbar.js.map +1 -1
- package/Scrollbar/index.js +1 -16
- package/Scrollbar/index.js.map +1 -1
- package/Section/index.d.ts +4 -0
- package/Section/index.js +13 -66
- package/Section/index.js.map +1 -1
- package/Select/Select.d.ts +36 -3
- package/Select/Select.js +91 -90
- package/Select/Select.js.map +1 -1
- package/Select/index.js +1 -16
- package/Select/index.js.map +1 -1
- package/Skeleton/Skeleton.d.ts +24 -6
- package/Skeleton/Skeleton.js +16 -20
- package/Skeleton/Skeleton.js.map +1 -1
- package/Skeleton/index.js +1 -16
- package/Skeleton/index.js.map +1 -1
- package/Slider/Slider.d.ts +7 -13
- package/Slider/Slider.js +47 -81
- package/Slider/Slider.js.map +1 -1
- package/Slider/index.js +1 -13
- package/Slider/index.js.map +1 -1
- package/Snackbar/Snackbar.d.ts +44 -8
- package/Snackbar/Snackbar.js +27 -44
- package/Snackbar/Snackbar.js.map +1 -1
- package/Snackbar/index.js +1 -18
- package/Snackbar/index.js.map +1 -1
- package/Switch/Switch.d.ts +18 -3
- package/Switch/Switch.js +25 -47
- package/Switch/Switch.js.map +1 -1
- package/Switch/index.js +1 -16
- package/Switch/index.js.map +1 -1
- package/Tabs/Tab.d.ts +23 -2
- package/Tabs/Tab.js +16 -20
- package/Tabs/Tab.js.map +1 -1
- package/Tabs/Tabs.d.ts +12 -7
- package/Tabs/Tabs.js +56 -110
- package/Tabs/Tabs.js.map +1 -1
- package/Tabs/index.js +2 -27
- package/Tabs/index.js.map +1 -1
- package/Tags/Tags.d.ts +1 -1
- package/Tags/Tags.js +31 -83
- package/Tags/Tags.js.map +1 -1
- package/Tags/index.js +1 -16
- package/Tags/index.js.map +1 -1
- package/TimeAgo/index.d.ts +6 -2
- package/TimeAgo/index.js +6 -13
- package/TimeAgo/index.js.map +1 -1
- package/Tooltip/Tooltip.d.ts +4 -16
- package/Tooltip/Tooltip.js +61 -49
- package/Tooltip/Tooltip.js.map +1 -1
- package/Tooltip/index.js +1 -16
- package/Tooltip/index.js.map +1 -1
- package/TopAppBar/TopAppBar.d.ts +25 -1
- package/TopAppBar/TopAppBar.js +34 -14
- package/TopAppBar/TopAppBar.js.map +1 -1
- package/TopAppBar/TopAppBarActionItem.d.ts +5 -3
- package/TopAppBar/TopAppBarActionItem.js +10 -11
- package/TopAppBar/TopAppBarActionItem.js.map +1 -1
- package/TopAppBar/TopAppBarNavigationIcon.d.ts +5 -3
- package/TopAppBar/TopAppBarNavigationIcon.js +10 -11
- package/TopAppBar/TopAppBarNavigationIcon.js.map +1 -1
- package/TopAppBar/TopAppBarPrimary.d.ts +4 -0
- package/TopAppBar/TopAppBarPrimary.js +13 -15
- package/TopAppBar/TopAppBarPrimary.js.map +1 -1
- package/TopAppBar/TopAppBarSecondary.d.ts +4 -0
- package/TopAppBar/TopAppBarSecondary.js +14 -17
- package/TopAppBar/TopAppBarSecondary.js.map +1 -1
- package/TopAppBar/TopAppBarSection.d.ts +10 -1
- package/TopAppBar/TopAppBarSection.js +8 -15
- package/TopAppBar/TopAppBarSection.js.map +1 -1
- package/TopAppBar/TopAppBarTitle.d.ts +6 -3
- package/TopAppBar/TopAppBarTitle.js +9 -15
- package/TopAppBar/TopAppBarTitle.js.map +1 -1
- package/TopAppBar/index.js +7 -82
- package/TopAppBar/index.js.map +1 -1
- package/Typography/Typography.d.ts +8 -3
- package/Typography/Typography.js +32 -12
- package/Typography/Typography.js.map +1 -1
- package/Typography/index.js +1 -16
- package/Typography/index.js.map +1 -1
- package/package.json +9 -63
- package/styles.scss +15 -41
- package/types.js +1 -5
- 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/README.md +0 -11
- package/AutoComplete/AutoCompleteReadme.md +0 -11
- 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 -66
- package/AutoComplete/styles.js.map +0 -1
- package/Avatar/README.md +0 -11
- package/Button/Button.styles.d.ts +0 -6
- package/Button/Button.styles.js +0 -17
- package/Button/Button.styles.js.map +0 -1
- package/Button/CopyButton/CopyButton.d.ts +0 -11
- package/Button/CopyButton/CopyButton.js +0 -33
- package/Button/CopyButton/CopyButton.js.map +0 -1
- package/Button/CopyButton/README.md +0 -11
- package/Button/IconButton/IconButton.d.ts +0 -37
- package/Button/IconButton/IconButton.js +0 -49
- package/Button/IconButton/IconButton.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/README.md +0 -15
- package/Checkbox/Checkbox.styles.d.ts +0 -6
- package/Checkbox/Checkbox.styles.js +0 -21
- package/Checkbox/Checkbox.styles.js.map +0 -1
- package/Checkbox/README_Checkbox.md +0 -15
- package/Checkbox/README_CheckboxGroup.md +0 -19
- 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 -25
- package/Chips/styles.js.map +0 -1
- package/CodeEditor/README.md +0 -21
- package/ColorPicker/README.md +0 -11
- package/ConfirmationDialog/README.md +0 -11
- package/DataTable/ColumnDirection.d.ts +0 -5
- package/DataTable/ColumnDirection.js +0 -19
- package/DataTable/ColumnDirection.js.map +0 -1
- package/DataTable/ColumnsVisibility.d.ts +0 -7
- package/DataTable/ColumnsVisibility.js +0 -64
- package/DataTable/ColumnsVisibility.js.map +0 -1
- package/DataTable/README.md +0 -72
- package/DataTable/styled.d.ts +0 -41
- package/DataTable/styled.js +0 -126
- package/DataTable/styled.js.map +0 -1
- package/DelayedOnChange/DelayedOnChange.d.ts +0 -39
- package/DelayedOnChange/DelayedOnChange.js +0 -132
- package/DelayedOnChange/DelayedOnChange.js.map +0 -1
- package/Dialog/README.md +0 -23
- package/Drawer/README.md +0 -15
- package/DynamicFieldset/Fieldset.d.ts +0 -51
- package/DynamicFieldset/Fieldset.js +0 -139
- package/DynamicFieldset/Fieldset.js.map +0 -1
- package/Elevation/README.md +0 -15
- package/FullName/README.md +0 -11
- package/Grid/README.md +0 -15
- package/Icon/README.md +0 -11
- package/Icon/svg/baseline-autorenew-24px.svg +0 -4
- package/Icon/svg/baseline-cloud_done-24px.svg +0 -4
- package/Icon/svg/baseline-delete-24px.svg +0 -4
- package/Icon/svg/baseline-done-24px.svg +0 -4
- package/Image/Image.d.ts +0 -6
- package/Image/Image.js +0 -25
- package/Image/Image.js.map +0 -1
- package/Image/README.md +0 -12
- package/ImageEditor/toolbar/crop.d.ts +0 -4
- package/ImageEditor/toolbar/crop.js +0 -74
- package/ImageEditor/toolbar/crop.js.map +0 -1
- package/ImageEditor/toolbar/filter.d.ts +0 -3
- package/ImageEditor/toolbar/filter.js +0 -208
- package/ImageEditor/toolbar/filter.js.map +0 -1
- package/ImageEditor/toolbar/flip.d.ts +0 -4
- package/ImageEditor/toolbar/flip.js +0 -99
- 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 -63
- 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 -36
- package/ImageEditor/toolbar/index.js.map +0 -1
- package/ImageEditor/toolbar/rotate.d.ts +0 -4
- package/ImageEditor/toolbar/rotate.js +0 -127
- package/ImageEditor/toolbar/rotate.js.map +0 -1
- package/ImageEditor/toolbar/types.d.ts +0 -32
- package/ImageEditor/toolbar/types.js +0 -7
- package/ImageEditor/toolbar/types.js.map +0 -1
- package/ImageUpload/README.md +0 -11
- 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 -27
- package/ImageUpload/styled.js +0 -120
- package/ImageUpload/styled.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 -103
- package/Input/__tests__/Input.test.js.map +0 -1
- package/Input/styled.d.ts +0 -4
- package/Input/styled.js +0 -16
- package/Input/styled.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/README.md +0 -11
- package/List/CollapsibleList/index.css +0 -31
- package/List/DataList/DataListModalOverlay/DataListModalOverlay.d.ts +0 -20
- package/List/DataList/DataListModalOverlay/DataListModalOverlay.js +0 -99
- 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 -29
- 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 -30
- package/List/DataList/DataListModalOverlay/DataListModalOverlayContext.js.map +0 -1
- package/List/DataList/Loader.d.ts +0 -3
- package/List/DataList/Loader.js +0 -105
- package/List/DataList/Loader.js.map +0 -1
- package/List/DataList/NoData.d.ts +0 -3
- package/List/DataList/NoData.js +0 -33
- 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 -131
- package/List/List.js +0 -148
- package/List/List.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 -22
- package/List/icons/index.js.map +0 -1
- package/List/styled.d.ts +0 -6
- package/List/styled.js +0 -29
- package/List/styled.js.map +0 -1
- package/Menu/README.md +0 -15
- 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 -21
- package/Radio/Radio.styles.js.map +0 -1
- package/RichTextEditor/README.md +0 -10
- package/RichTextEditor/createPropsFromConfig.d.ts +0 -15
- package/RichTextEditor/createPropsFromConfig.js +0 -30
- package/RichTextEditor/createPropsFromConfig.js.map +0 -1
- package/Ripple/README.md +0 -15
- 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/Section/README.md +0 -11
- package/Select/README.md +0 -15
- package/Select/styled.d.ts +0 -8
- package/Select/styled.js +0 -21
- package/Select/styled.js.map +0 -1
- package/Skeleton/README.md +0 -21
- package/Slider/README.md +0 -15
- package/Snackbar/README.md +0 -15
- package/Switch/README.md +0 -15
- 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/icons/baseline-close-24px.svg +0 -4
- package/Tooltip/README.md +0 -15
- package/Tooltip/style.scss +0 -97
- package/TopAppBar/README.md +0 -20
- 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 -18
- package/TopProgressBar/TopProgressBar.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 -29
- 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
|
@@ -1,64 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.SortIcon = exports.RefreshIcon = exports.PreviousPageIcon = exports.OptionsIcon = exports.NextPageIcon = exports.FilterIcon = exports.EditIcon = exports.DeleteIcon = exports.CreateIcon = void 0;
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _Button = require("../../../Button");
|
|
10
|
-
var _baselineAutorenew24px = require("./baseline-autorenew-24px.svg");
|
|
11
|
-
var _baselineEdit24px = require("./baseline-edit-24px.svg");
|
|
12
|
-
var _baselineDelete24px = require("./baseline-delete-24px.svg");
|
|
13
|
-
var _baselineSort24px = require("./baseline-sort-24px.svg");
|
|
14
|
-
var _filter_alt24px = require("./filter_alt-24px.svg");
|
|
15
|
-
var _baselineNavigate_before24px = require("./baseline-navigate_before-24px.svg");
|
|
16
|
-
var _baselineNavigate_next24px = require("./baseline-navigate_next-24px.svg");
|
|
17
|
-
var _baselineTune24px = require("./baseline-tune-24px.svg");
|
|
18
|
-
var RefreshIcon = exports.RefreshIcon = function RefreshIcon(props) {
|
|
19
|
-
return /*#__PURE__*/_react.default.createElement(_Button.IconButton, Object.assign({
|
|
20
|
-
icon: /*#__PURE__*/_react.default.createElement(_baselineAutorenew24px.ReactComponent, null)
|
|
21
|
-
}, props));
|
|
22
|
-
};
|
|
23
|
-
var DeleteIcon = exports.DeleteIcon = function DeleteIcon(props) {
|
|
24
|
-
return /*#__PURE__*/_react.default.createElement(_Button.IconButton, Object.assign({
|
|
25
|
-
icon: /*#__PURE__*/_react.default.createElement(_baselineDelete24px.ReactComponent, null)
|
|
26
|
-
}, props));
|
|
27
|
-
};
|
|
28
|
-
var CreateIcon = exports.CreateIcon = function CreateIcon(props) {
|
|
29
|
-
return /*#__PURE__*/_react.default.createElement(_Button.IconButton, Object.assign({
|
|
30
|
-
icon: /*#__PURE__*/_react.default.createElement(_baselineEdit24px.ReactComponent, null)
|
|
31
|
-
}, props));
|
|
32
|
-
};
|
|
33
|
-
var EditIcon = exports.EditIcon = function EditIcon(props) {
|
|
34
|
-
return /*#__PURE__*/_react.default.createElement(_Button.IconButton, Object.assign({
|
|
35
|
-
icon: /*#__PURE__*/_react.default.createElement(_baselineEdit24px.ReactComponent, null)
|
|
36
|
-
}, props));
|
|
37
|
-
};
|
|
38
|
-
var SortIcon = exports.SortIcon = function SortIcon(props) {
|
|
39
|
-
return /*#__PURE__*/_react.default.createElement(_Button.IconButton, Object.assign({
|
|
40
|
-
icon: /*#__PURE__*/_react.default.createElement(_baselineSort24px.ReactComponent, null)
|
|
41
|
-
}, props));
|
|
42
|
-
};
|
|
43
|
-
var FilterIcon = exports.FilterIcon = function FilterIcon(props) {
|
|
44
|
-
return /*#__PURE__*/_react.default.createElement(_Button.IconButton, Object.assign({
|
|
45
|
-
icon: /*#__PURE__*/_react.default.createElement(_filter_alt24px.ReactComponent, null)
|
|
46
|
-
}, props));
|
|
47
|
-
};
|
|
48
|
-
var PreviousPageIcon = exports.PreviousPageIcon = function PreviousPageIcon(props) {
|
|
49
|
-
return /*#__PURE__*/_react.default.createElement(_Button.IconButton, Object.assign({
|
|
50
|
-
icon: /*#__PURE__*/_react.default.createElement(_baselineNavigate_before24px.ReactComponent, null)
|
|
51
|
-
}, props));
|
|
52
|
-
};
|
|
53
|
-
var NextPageIcon = exports.NextPageIcon = function NextPageIcon(props) {
|
|
54
|
-
return /*#__PURE__*/_react.default.createElement(_Button.IconButton, Object.assign({
|
|
55
|
-
icon: /*#__PURE__*/_react.default.createElement(_baselineNavigate_next24px.ReactComponent, null)
|
|
56
|
-
}, props));
|
|
57
|
-
};
|
|
58
|
-
var OptionsIcon = exports.OptionsIcon = function OptionsIcon(props) {
|
|
59
|
-
return /*#__PURE__*/_react.default.createElement(_Button.IconButton, Object.assign({
|
|
60
|
-
icon: /*#__PURE__*/_react.default.createElement(_baselineTune24px.ReactComponent, null)
|
|
61
|
-
}, props));
|
|
62
|
-
};
|
|
1
|
+
export * from "@webiny/admin-ui/DataList/DataListIcons";
|
|
63
2
|
|
|
64
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[
|
|
1
|
+
{"version":3,"names":[],"sources":["index.tsx"],"sourcesContent":["export * from \"@webiny/admin-ui/DataList/DataListIcons\";\n"],"mappings":"AAAA,cAAc,yCAAyC","ignoreList":[]}
|
package/List/DataList/index.d.ts
CHANGED
package/List/DataList/index.js
CHANGED
|
@@ -1,60 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
var _exportNames = {
|
|
8
|
-
DataList: true,
|
|
9
|
-
ScrollList: true,
|
|
10
|
-
DataListWithSections: true,
|
|
11
|
-
ScrollListWithSections: true,
|
|
12
|
-
NoData: true
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "DataList", {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: function get() {
|
|
17
|
-
return _DataList.DataList;
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
Object.defineProperty(exports, "DataListWithSections", {
|
|
21
|
-
enumerable: true,
|
|
22
|
-
get: function get() {
|
|
23
|
-
return _DataListWithSections.DataListWithSections;
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
Object.defineProperty(exports, "NoData", {
|
|
27
|
-
enumerable: true,
|
|
28
|
-
get: function get() {
|
|
29
|
-
return _NoData.default;
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
Object.defineProperty(exports, "ScrollList", {
|
|
33
|
-
enumerable: true,
|
|
34
|
-
get: function get() {
|
|
35
|
-
return _DataList.ScrollList;
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
Object.defineProperty(exports, "ScrollListWithSections", {
|
|
39
|
-
enumerable: true,
|
|
40
|
-
get: function get() {
|
|
41
|
-
return _DataListWithSections.ScrollListWithSections;
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
var _DataList = require("./DataList");
|
|
45
|
-
var _DataListWithSections = require("./DataListWithSections");
|
|
46
|
-
var _NoData = _interopRequireDefault(require("./NoData"));
|
|
47
|
-
var _DataListModalOverlay = require("./DataListModalOverlay");
|
|
48
|
-
Object.keys(_DataListModalOverlay).forEach(function (key) {
|
|
49
|
-
if (key === "default" || key === "__esModule") return;
|
|
50
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
51
|
-
if (key in exports && exports[key] === _DataListModalOverlay[key]) return;
|
|
52
|
-
Object.defineProperty(exports, key, {
|
|
53
|
-
enumerable: true,
|
|
54
|
-
get: function get() {
|
|
55
|
-
return _DataListModalOverlay[key];
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
});
|
|
1
|
+
export { DataList, ScrollList } from "./DataList";
|
|
2
|
+
export { DataListWithSections, ScrollListWithSections } from "./DataListWithSections";
|
|
3
|
+
export * from "./DataListModalOverlay";
|
|
59
4
|
|
|
60
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["DataList","ScrollList","DataListWithSections","ScrollListWithSections"],"sources":["index.ts"],"sourcesContent":["export { DataList, ScrollList } from \"./DataList\";\nexport { DataListWithSections, ScrollListWithSections } from \"./DataListWithSections\";\nexport * from \"./DataListModalOverlay\";\n"],"mappings":"AAAA,SAASA,QAAQ,EAAEC,UAAU;AAC7B,SAASC,oBAAoB,EAAEC,sBAAsB;AACrD","ignoreList":[]}
|
package/List/DataList/types.d.ts
CHANGED
|
@@ -1,28 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export type PaginationProp = {
|
|
3
|
-
setPage?: (page: number) => void;
|
|
4
|
-
setPreviousPage?: () => void;
|
|
5
|
-
setNextPage?: () => void;
|
|
6
|
-
hasNextPage?: boolean;
|
|
7
|
-
hasPreviousPage?: boolean;
|
|
8
|
-
setPerPage?: (amount: number) => void;
|
|
9
|
-
perPageOptions?: number[];
|
|
10
|
-
};
|
|
11
|
-
export type SortersProp = Array<{
|
|
12
|
-
label: string;
|
|
13
|
-
value: any;
|
|
14
|
-
}>;
|
|
15
|
-
export type Props = {
|
|
16
|
-
children?: <T = Record<string, any>>(props: T) => React.ReactNode;
|
|
17
|
-
title?: React.ReactNode;
|
|
18
|
-
data?: Record<string, any>[];
|
|
19
|
-
refresh?: () => void;
|
|
20
|
-
loading?: boolean;
|
|
21
|
-
loader?: React.ReactNode;
|
|
22
|
-
pagination?: PaginationProp;
|
|
23
|
-
setPage?: (page: string) => void;
|
|
24
|
-
setSorters?: (sorter: any) => void;
|
|
25
|
-
setFilters?: (filters: any) => void;
|
|
26
|
-
sorters?: SortersProp;
|
|
27
|
-
multiActions?: any[];
|
|
28
|
-
};
|
|
1
|
+
export * from "@webiny/admin-ui/DataList/types";
|
package/List/DataList/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["types.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"names":[],"sources":["types.ts"],"sourcesContent":["export * from \"@webiny/admin-ui/DataList/types\";\n"],"mappings":"AAAA,cAAc,iCAAiC","ignoreList":[]}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
/** A List Component */
|
|
3
|
+
export type ListProps = {
|
|
4
|
+
/** Reduces the padding on List items. */
|
|
5
|
+
dense?: boolean;
|
|
6
|
+
/** Gives more space for dual lined list items. */
|
|
7
|
+
twoLine?: boolean;
|
|
8
|
+
/** Makes the list start detail circular for avatars. */
|
|
9
|
+
avatarList?: boolean;
|
|
10
|
+
/** Makes the list non interactive. In addition, you'll have to set `ripple={false}` on the individual ListItems. */
|
|
11
|
+
nonInteractive?: boolean;
|
|
12
|
+
/** A callback for when a list item is interacted with. evt.detail = number */
|
|
13
|
+
onAction?: (evt: CustomEvent<{
|
|
14
|
+
index: number;
|
|
15
|
+
}> & React.SyntheticEvent<EventTarget>) => void;
|
|
16
|
+
/** An internal api used for cross component communication */
|
|
17
|
+
apiRef?: (api: ListApi | null) => void;
|
|
18
|
+
/** Advanced: A reference to the MDCFoundation. */
|
|
19
|
+
foundationRef?: any;
|
|
20
|
+
/** Sets the list to allow the up arrow on the first element to focus the
|
|
21
|
+
* last element of the list and vice versa. Defaults to true */
|
|
22
|
+
wrapFocus?: boolean;
|
|
23
|
+
/** Sets the lists vertical orientation. Defaults to true */
|
|
24
|
+
vertical?: boolean;
|
|
25
|
+
/** Sets the selectedIndex for singleSelection, radiogroup, or checkboxlist variants. Only supply number[] to checkboxlists */
|
|
26
|
+
selectedIndex?: number[] | number;
|
|
27
|
+
/** Custom */
|
|
28
|
+
children?: React.ReactNode;
|
|
29
|
+
className?: string;
|
|
30
|
+
style?: React.CSSProperties;
|
|
31
|
+
onClick?: (e: React.MouseEvent) => void;
|
|
32
|
+
};
|
|
33
|
+
export interface ListApi {
|
|
34
|
+
listElements: () => HTMLLIElement[];
|
|
35
|
+
focusRoot: () => void;
|
|
36
|
+
getClasses: () => string;
|
|
37
|
+
addClassToElementIndex: (index: number, className: string) => void;
|
|
38
|
+
removeClassFromElementAtIndex: (index: number, className: string) => void;
|
|
39
|
+
setAttributeForElementIndex: (index: number, attr: string, value: any) => void;
|
|
40
|
+
getListItemCount: () => number;
|
|
41
|
+
focusItemAtIndex: (index: number) => void;
|
|
42
|
+
selectedIndex: number | number[];
|
|
43
|
+
setSelectedIndex: (index: number) => void;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* @deprecated This component is deprecated and will be removed in future releases.
|
|
47
|
+
* Please use the `List` component from the `@webiny/admin-ui` package instead.
|
|
48
|
+
*/
|
|
49
|
+
export declare class List extends React.Component<ListProps> {
|
|
50
|
+
render(): React.JSX.Element;
|
|
51
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { List as AdminList } from "@webiny/admin-ui";
|
|
3
|
+
|
|
4
|
+
/** A List Component */
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated This component is deprecated and will be removed in future releases.
|
|
8
|
+
* Please use the `List` component from the `@webiny/admin-ui` package instead.
|
|
9
|
+
*/
|
|
10
|
+
export class List extends React.Component {
|
|
11
|
+
render() {
|
|
12
|
+
return /*#__PURE__*/React.createElement(AdminList, null, this.props.children);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=List.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","List","AdminList","Component","render","createElement","props","children"],"sources":["List.tsx"],"sourcesContent":["import React from \"react\";\nimport { List as AdminList } from \"@webiny/admin-ui\";\n\n/** A List Component */\nexport type ListProps = {\n /** Reduces the padding on List items. */\n dense?: boolean;\n /** Gives more space for dual lined list items. */\n twoLine?: boolean;\n /** Makes the list start detail circular for avatars. */\n avatarList?: boolean;\n /** Makes the list non interactive. In addition, you'll have to set `ripple={false}` on the individual ListItems. */\n nonInteractive?: boolean;\n /** A callback for when a list item is interacted with. evt.detail = number */\n onAction?: (evt: CustomEvent<{ index: number }> & React.SyntheticEvent<EventTarget>) => void;\n /** An internal api used for cross component communication */\n apiRef?: (api: ListApi | null) => void;\n /** Advanced: A reference to the MDCFoundation. */\n foundationRef?: any;\n /** Sets the list to allow the up arrow on the first element to focus the\n * last element of the list and vice versa. Defaults to true */\n wrapFocus?: boolean;\n /** Sets the lists vertical orientation. Defaults to true */\n vertical?: boolean;\n /** Sets the selectedIndex for singleSelection, radiogroup, or checkboxlist variants. Only supply number[] to checkboxlists */\n selectedIndex?: number[] | number;\n\n /** Custom */\n children?: React.ReactNode;\n className?: string;\n style?: React.CSSProperties;\n onClick?: (e: React.MouseEvent) => void;\n};\n\nexport interface ListApi {\n listElements: () => HTMLLIElement[];\n focusRoot: () => void;\n getClasses: () => string;\n addClassToElementIndex: (index: number, className: string) => void;\n removeClassFromElementAtIndex: (index: number, className: string) => void;\n setAttributeForElementIndex: (index: number, attr: string, value: any) => void;\n getListItemCount: () => number;\n focusItemAtIndex: (index: number) => void;\n selectedIndex: number | number[];\n setSelectedIndex: (index: number) => void;\n}\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `List` component from the `@webiny/admin-ui` package instead.\n */\nexport class List extends React.Component<ListProps> {\n public override render() {\n return <AdminList>{this.props.children}</AdminList>;\n }\n}\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,IAAIC,SAAS,QAAQ,kBAAkB;;AAEpD;;AA4CA;AACA;AACA;AACA;AACA,OAAO,MAAMD,IAAI,SAASD,KAAK,CAACG,SAAS,CAAY;EACjCC,MAAMA,CAAA,EAAG;IACrB,oBAAOJ,KAAA,CAAAK,aAAA,CAACH,SAAS,QAAE,IAAI,CAACI,KAAK,CAACC,QAAoB,CAAC;EACvD;AACJ","ignoreList":[]}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Ripples
|
|
4
|
+
*/
|
|
5
|
+
export declare type RipplePropT = boolean | {
|
|
6
|
+
accent?: boolean;
|
|
7
|
+
surface?: boolean;
|
|
8
|
+
unbounded?: boolean;
|
|
9
|
+
};
|
|
10
|
+
/** A ListItem component. */
|
|
11
|
+
export type ListItemProps = {
|
|
12
|
+
/** A modifier for a selected state. */
|
|
13
|
+
selected?: boolean;
|
|
14
|
+
/** A modifier for an active state. */
|
|
15
|
+
activated?: boolean;
|
|
16
|
+
/** A modifier for a disabled state. */
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
/** Adds a ripple effect to the component */
|
|
19
|
+
ripple?: RipplePropT;
|
|
20
|
+
/** Custom */
|
|
21
|
+
children: React.ReactNode;
|
|
22
|
+
className?: string;
|
|
23
|
+
style?: React.CSSProperties;
|
|
24
|
+
onClick?: (e: React.MouseEvent) => void;
|
|
25
|
+
};
|
|
26
|
+
interface DeprecatedListItemContext {
|
|
27
|
+
addTitle(value: React.ReactNode): void;
|
|
28
|
+
addDescription(value?: React.ReactNode): void;
|
|
29
|
+
addIcon(value: React.ReactNode): void;
|
|
30
|
+
addActions(value?: React.ReactNode): void;
|
|
31
|
+
addOnClickCallback(callback: React.MouseEventHandler<HTMLDivElement>): void;
|
|
32
|
+
}
|
|
33
|
+
export declare const DeprecatedListItemContext: React.Context<DeprecatedListItemContext | undefined>;
|
|
34
|
+
/**
|
|
35
|
+
* @deprecated This component is deprecated and will be removed in future releases.
|
|
36
|
+
* Please use the `List.Item` component from the `@webiny/admin-ui` package instead.
|
|
37
|
+
*/
|
|
38
|
+
export declare const ListItem: (props: ListItemProps) => React.JSX.Element;
|
|
39
|
+
/** A simple list item template. */
|
|
40
|
+
export interface SimpleListItemProps extends ListItemProps {
|
|
41
|
+
/** Text for the ListItem. */
|
|
42
|
+
text?: React.ReactNode;
|
|
43
|
+
/** Secondary Text for the ListItem. */
|
|
44
|
+
secondaryText?: React.ReactNode;
|
|
45
|
+
/** A graphic icon for the ListItem. */
|
|
46
|
+
graphic?: any;
|
|
47
|
+
/** A meta icon for the ListItem */
|
|
48
|
+
metaIcon?: any;
|
|
49
|
+
/** Meta content for the ListItem instead of an icon. */
|
|
50
|
+
meta?: React.ReactNode;
|
|
51
|
+
/** Children to render */
|
|
52
|
+
children: React.ReactNode;
|
|
53
|
+
/** Custom */
|
|
54
|
+
onClick?: any;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* @deprecated This component is deprecated and will be removed in future releases.
|
|
58
|
+
* Please use the `List.Item` component from the `@webiny/admin-ui` package instead.
|
|
59
|
+
*/
|
|
60
|
+
export declare const SimpleListItem: (props: SimpleListItemProps) => React.JSX.Element;
|
|
61
|
+
export {};
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import React, { createContext, useMemo, useState } from "react";
|
|
2
|
+
import { List as AdminList } from "@webiny/admin-ui";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Ripples
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/** A ListItem component. */
|
|
9
|
+
|
|
10
|
+
const initializeListItemState = () => {
|
|
11
|
+
return {
|
|
12
|
+
title: undefined,
|
|
13
|
+
description: undefined,
|
|
14
|
+
actions: undefined,
|
|
15
|
+
icon: undefined,
|
|
16
|
+
onClick: undefined
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export const DeprecatedListItemContext = /*#__PURE__*/createContext(undefined);
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* @deprecated This component is deprecated and will be removed in future releases.
|
|
23
|
+
* Please use the `List.Item` component from the `@webiny/admin-ui` package instead.
|
|
24
|
+
*/
|
|
25
|
+
export const ListItem = props => {
|
|
26
|
+
const [item, setItem] = useState(initializeListItemState());
|
|
27
|
+
const context = useMemo(() => ({
|
|
28
|
+
addTitle(value) {
|
|
29
|
+
setItem(state => ({
|
|
30
|
+
...state,
|
|
31
|
+
title: value
|
|
32
|
+
}));
|
|
33
|
+
},
|
|
34
|
+
addDescription(value) {
|
|
35
|
+
setItem(state => ({
|
|
36
|
+
...state,
|
|
37
|
+
description: value
|
|
38
|
+
}));
|
|
39
|
+
},
|
|
40
|
+
addIcon(value) {
|
|
41
|
+
setItem(state => ({
|
|
42
|
+
...state,
|
|
43
|
+
icon: value
|
|
44
|
+
}));
|
|
45
|
+
},
|
|
46
|
+
addActions(value) {
|
|
47
|
+
setItem(state => ({
|
|
48
|
+
...state,
|
|
49
|
+
actions: value
|
|
50
|
+
}));
|
|
51
|
+
},
|
|
52
|
+
addOnClickCallback(callback) {
|
|
53
|
+
setItem(state => ({
|
|
54
|
+
...state,
|
|
55
|
+
onClick: callback
|
|
56
|
+
}));
|
|
57
|
+
}
|
|
58
|
+
}), [setItem, props]);
|
|
59
|
+
return /*#__PURE__*/React.createElement(AdminList.Item, {
|
|
60
|
+
activated: props.activated,
|
|
61
|
+
disabled: props.disabled,
|
|
62
|
+
selected: props.selected,
|
|
63
|
+
onClick: item.onClick ?? props.onClick,
|
|
64
|
+
className: props.className,
|
|
65
|
+
style: props.style,
|
|
66
|
+
title: item.title,
|
|
67
|
+
description: item.description,
|
|
68
|
+
actions: item.actions,
|
|
69
|
+
icon: item.icon
|
|
70
|
+
}, /*#__PURE__*/React.createElement(DeprecatedListItemContext.Provider, {
|
|
71
|
+
value: context
|
|
72
|
+
}, props.children));
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
/** A simple list item template. */
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* @deprecated This component is deprecated and will be removed in future releases.
|
|
79
|
+
* Please use the `List.Item` component from the `@webiny/admin-ui` package instead.
|
|
80
|
+
*/
|
|
81
|
+
export const SimpleListItem = props => {
|
|
82
|
+
return /*#__PURE__*/React.createElement(AdminList.Item, {
|
|
83
|
+
title: props.text,
|
|
84
|
+
description: props.secondaryText,
|
|
85
|
+
icon: props.graphic,
|
|
86
|
+
actions: props.meta ?? props.metaIcon,
|
|
87
|
+
onClick: props.onClick
|
|
88
|
+
});
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
//# sourceMappingURL=ListItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","createContext","useMemo","useState","List","AdminList","initializeListItemState","title","undefined","description","actions","icon","onClick","DeprecatedListItemContext","ListItem","props","item","setItem","context","addTitle","value","state","addDescription","addIcon","addActions","addOnClickCallback","callback","createElement","Item","activated","disabled","selected","className","style","Provider","children","SimpleListItem","text","secondaryText","graphic","meta","metaIcon"],"sources":["ListItem.tsx"],"sourcesContent":["import React, { createContext, useMemo, useState } from \"react\";\nimport { List as AdminList, ListItemProps as AdminListItemProps } from \"@webiny/admin-ui\";\n\n/**\n * Ripples\n */\nexport declare type RipplePropT =\n | boolean\n | {\n accent?: boolean;\n surface?: boolean;\n unbounded?: boolean;\n };\n\n/** A ListItem component. */\nexport type ListItemProps = {\n /** A modifier for a selected state. */\n selected?: boolean;\n /** A modifier for an active state. */\n activated?: boolean;\n /** A modifier for a disabled state. */\n disabled?: boolean;\n /** Adds a ripple effect to the component */\n ripple?: RipplePropT;\n\n /** Custom */\n children: React.ReactNode;\n className?: string;\n style?: React.CSSProperties;\n onClick?: (e: React.MouseEvent) => void;\n};\n\ninterface DeprecatedListItemContext {\n addTitle(value: React.ReactNode): void;\n addDescription(value?: React.ReactNode): void;\n addIcon(value: React.ReactNode): void;\n addActions(value?: React.ReactNode): void;\n addOnClickCallback(callback: React.MouseEventHandler<HTMLDivElement>): void;\n}\n\nconst initializeListItemState = (): AdminListItemProps => {\n return {\n title: undefined,\n description: undefined,\n actions: undefined,\n icon: undefined,\n onClick: undefined\n };\n};\n\nexport const DeprecatedListItemContext = createContext<DeprecatedListItemContext | undefined>(\n undefined\n);\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `List.Item` component from the `@webiny/admin-ui` package instead.\n */\nexport const ListItem = (props: ListItemProps) => {\n const [item, setItem] = useState<AdminListItemProps>(initializeListItemState());\n\n const context: DeprecatedListItemContext = useMemo(\n () => ({\n addTitle(value: React.ReactNode) {\n setItem(state => ({\n ...state,\n title: value\n }));\n },\n addDescription(value: React.ReactNode) {\n setItem(state => ({\n ...state,\n description: value\n }));\n },\n addIcon(value: React.ReactNode) {\n setItem(state => ({\n ...state,\n icon: value\n }));\n },\n addActions(value?: React.ReactNode) {\n setItem(state => ({\n ...state,\n actions: value\n }));\n },\n addOnClickCallback(callback: React.MouseEventHandler<HTMLDivElement>) {\n setItem(state => ({\n ...state,\n onClick: callback\n }));\n }\n }),\n [setItem, props]\n );\n\n return (\n <AdminList.Item\n activated={props.activated}\n disabled={props.disabled}\n selected={props.selected}\n onClick={item.onClick ?? props.onClick}\n className={props.className}\n style={props.style}\n title={item.title}\n description={item.description}\n actions={item.actions}\n icon={item.icon}\n >\n <DeprecatedListItemContext.Provider value={context}>\n {props.children}\n </DeprecatedListItemContext.Provider>\n </AdminList.Item>\n );\n};\n\n/** A simple list item template. */\nexport interface SimpleListItemProps extends ListItemProps {\n /** Text for the ListItem. */\n text?: React.ReactNode;\n /** Secondary Text for the ListItem. */\n secondaryText?: React.ReactNode;\n /** A graphic icon for the ListItem. */\n graphic?: any;\n /** A meta icon for the ListItem */\n metaIcon?: any;\n /** Meta content for the ListItem instead of an icon. */\n meta?: React.ReactNode;\n /** Children to render */\n children: React.ReactNode;\n\n /** Custom */\n onClick?: any;\n}\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `List.Item` component from the `@webiny/admin-ui` package instead.\n */\nexport const SimpleListItem = (props: SimpleListItemProps) => {\n return (\n <AdminList.Item\n title={props.text}\n description={props.secondaryText}\n icon={props.graphic}\n actions={props.meta ?? props.metaIcon}\n onClick={props.onClick}\n />\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,aAAa,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AAC/D,SAASC,IAAI,IAAIC,SAAS,QAA6C,kBAAkB;;AAEzF;AACA;AACA;;AASA;;AA0BA,MAAMC,uBAAuB,GAAGA,CAAA,KAA0B;EACtD,OAAO;IACHC,KAAK,EAAEC,SAAS;IAChBC,WAAW,EAAED,SAAS;IACtBE,OAAO,EAAEF,SAAS;IAClBG,IAAI,EAAEH,SAAS;IACfI,OAAO,EAAEJ;EACb,CAAC;AACL,CAAC;AAED,OAAO,MAAMK,yBAAyB,gBAAGZ,aAAa,CAClDO,SACJ,CAAC;;AAED;AACA;AACA;AACA;AACA,OAAO,MAAMM,QAAQ,GAAIC,KAAoB,IAAK;EAC9C,MAAM,CAACC,IAAI,EAAEC,OAAO,CAAC,GAAGd,QAAQ,CAAqBG,uBAAuB,CAAC,CAAC,CAAC;EAE/E,MAAMY,OAAkC,GAAGhB,OAAO,CAC9C,OAAO;IACHiB,QAAQA,CAACC,KAAsB,EAAE;MAC7BH,OAAO,CAACI,KAAK,KAAK;QACd,GAAGA,KAAK;QACRd,KAAK,EAAEa;MACX,CAAC,CAAC,CAAC;IACP,CAAC;IACDE,cAAcA,CAACF,KAAsB,EAAE;MACnCH,OAAO,CAACI,KAAK,KAAK;QACd,GAAGA,KAAK;QACRZ,WAAW,EAAEW;MACjB,CAAC,CAAC,CAAC;IACP,CAAC;IACDG,OAAOA,CAACH,KAAsB,EAAE;MAC5BH,OAAO,CAACI,KAAK,KAAK;QACd,GAAGA,KAAK;QACRV,IAAI,EAAES;MACV,CAAC,CAAC,CAAC;IACP,CAAC;IACDI,UAAUA,CAACJ,KAAuB,EAAE;MAChCH,OAAO,CAACI,KAAK,KAAK;QACd,GAAGA,KAAK;QACRX,OAAO,EAAEU;MACb,CAAC,CAAC,CAAC;IACP,CAAC;IACDK,kBAAkBA,CAACC,QAAiD,EAAE;MAClET,OAAO,CAACI,KAAK,KAAK;QACd,GAAGA,KAAK;QACRT,OAAO,EAAEc;MACb,CAAC,CAAC,CAAC;IACP;EACJ,CAAC,CAAC,EACF,CAACT,OAAO,EAAEF,KAAK,CACnB,CAAC;EAED,oBACIf,KAAA,CAAA2B,aAAA,CAACtB,SAAS,CAACuB,IAAI;IACXC,SAAS,EAAEd,KAAK,CAACc,SAAU;IAC3BC,QAAQ,EAAEf,KAAK,CAACe,QAAS;IACzBC,QAAQ,EAAEhB,KAAK,CAACgB,QAAS;IACzBnB,OAAO,EAAEI,IAAI,CAACJ,OAAO,IAAIG,KAAK,CAACH,OAAQ;IACvCoB,SAAS,EAAEjB,KAAK,CAACiB,SAAU;IAC3BC,KAAK,EAAElB,KAAK,CAACkB,KAAM;IACnB1B,KAAK,EAAES,IAAI,CAACT,KAAM;IAClBE,WAAW,EAAEO,IAAI,CAACP,WAAY;IAC9BC,OAAO,EAAEM,IAAI,CAACN,OAAQ;IACtBC,IAAI,EAAEK,IAAI,CAACL;EAAK,gBAEhBX,KAAA,CAAA2B,aAAA,CAACd,yBAAyB,CAACqB,QAAQ;IAACd,KAAK,EAAEF;EAAQ,GAC9CH,KAAK,CAACoB,QACyB,CACxB,CAAC;AAEzB,CAAC;;AAED;;AAmBA;AACA;AACA;AACA;AACA,OAAO,MAAMC,cAAc,GAAIrB,KAA0B,IAAK;EAC1D,oBACIf,KAAA,CAAA2B,aAAA,CAACtB,SAAS,CAACuB,IAAI;IACXrB,KAAK,EAAEQ,KAAK,CAACsB,IAAK;IAClB5B,WAAW,EAAEM,KAAK,CAACuB,aAAc;IACjC3B,IAAI,EAAEI,KAAK,CAACwB,OAAQ;IACpB7B,OAAO,EAAEK,KAAK,CAACyB,IAAI,IAAIzB,KAAK,CAAC0B,QAAS;IACtC7B,OAAO,EAAEG,KAAK,CAACH;EAAQ,CAC1B,CAAC;AAEV,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type ListActionsProps = {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated This component is deprecated and will be removed in future releases.
|
|
7
|
+
* Please find out the new `ListItem` component props from the `@webiny/admin-ui` package instead.
|
|
8
|
+
*/
|
|
9
|
+
export declare const ListActions: (props: ListActionsProps) => null;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { useContext, useEffect } from "react";
|
|
2
|
+
import { DeprecatedListItemContext } from "./..";
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated This component is deprecated and will be removed in future releases.
|
|
5
|
+
* Please find out the new `ListItem` component props from the `@webiny/admin-ui` package instead.
|
|
6
|
+
*/
|
|
7
|
+
export const ListActions = props => {
|
|
8
|
+
const listItemContext = useContext(DeprecatedListItemContext);
|
|
9
|
+
useEffect(() => {
|
|
10
|
+
listItemContext.addActions(props.children);
|
|
11
|
+
}, [props]);
|
|
12
|
+
return null;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=ListItemAction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useContext","useEffect","DeprecatedListItemContext","ListActions","props","listItemContext","addActions","children"],"sources":["ListItemAction.tsx"],"sourcesContent":["import React, { useContext, useEffect } from \"react\";\nimport { DeprecatedListItemContext } from \"~/List\";\n\nexport type ListActionsProps = {\n children: React.ReactNode;\n};\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please find out the new `ListItem` component props from the `@webiny/admin-ui` package instead.\n */\nexport const ListActions = (props: ListActionsProps) => {\n const listItemContext = useContext(DeprecatedListItemContext);\n\n useEffect(() => {\n listItemContext!.addActions(props.children);\n }, [props]);\n\n return null;\n};\n"],"mappings":"AAAA,SAAgBA,UAAU,EAAEC,SAAS,QAAQ,OAAO;AACpD,SAASC,yBAAyB;AAMlC;AACA;AACA;AACA;AACA,OAAO,MAAMC,WAAW,GAAIC,KAAuB,IAAK;EACpD,MAAMC,eAAe,GAAGL,UAAU,CAACE,yBAAyB,CAAC;EAE7DD,SAAS,CAAC,MAAM;IACZI,eAAe,CAAEC,UAAU,CAACF,KAAK,CAACG,QAAQ,CAAC;EAC/C,CAAC,EAAE,CAACH,KAAK,CAAC,CAAC;EAEX,OAAO,IAAI;AACf,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type ListItemGraphicProps = {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated This component is deprecated and will be removed in future releases.
|
|
8
|
+
* Please find out the new `ListItem` component props from the `@webiny/admin-ui` package instead.
|
|
9
|
+
*/
|
|
10
|
+
export declare const ListItemGraphic: (props: ListItemGraphicProps) => null;
|
|
11
|
+
export type ListSelectBoxProps = {
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated This component is deprecated and will be removed in future releases.
|
|
16
|
+
* Please find out the new `ListItem` component props from the `@webiny/admin-ui` package instead.
|
|
17
|
+
*/
|
|
18
|
+
export declare const ListSelectBox: (props: ListSelectBoxProps) => null;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { useContext, useEffect } from "react";
|
|
2
|
+
import { DeprecatedListItemContext } from "./..";
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated This component is deprecated and will be removed in future releases.
|
|
5
|
+
* Please find out the new `ListItem` component props from the `@webiny/admin-ui` package instead.
|
|
6
|
+
*/
|
|
7
|
+
export const ListItemGraphic = props => {
|
|
8
|
+
const listItemContext = useContext(DeprecatedListItemContext);
|
|
9
|
+
useEffect(() => {
|
|
10
|
+
listItemContext.addIcon(props.children);
|
|
11
|
+
}, [props]);
|
|
12
|
+
return null;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated This component is deprecated and will be removed in future releases.
|
|
16
|
+
* Please find out the new `ListItem` component props from the `@webiny/admin-ui` package instead.
|
|
17
|
+
*/
|
|
18
|
+
export const ListSelectBox = props => {
|
|
19
|
+
const listItemContext = useContext(DeprecatedListItemContext);
|
|
20
|
+
useEffect(() => {
|
|
21
|
+
listItemContext.addIcon(props.children);
|
|
22
|
+
}, [props]);
|
|
23
|
+
return null;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
//# sourceMappingURL=ListItemGraphic.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useContext","useEffect","DeprecatedListItemContext","ListItemGraphic","props","listItemContext","addIcon","children","ListSelectBox"],"sources":["ListItemGraphic.tsx"],"sourcesContent":["import React, { useContext, useEffect } from \"react\";\nimport { DeprecatedListItemContext } from \"~/List\";\n\nexport type ListItemGraphicProps = { children: React.ReactNode; className?: string };\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please find out the new `ListItem` component props from the `@webiny/admin-ui` package instead.\n */\nexport const ListItemGraphic = (props: ListItemGraphicProps) => {\n const listItemContext = useContext(DeprecatedListItemContext);\n\n useEffect(() => {\n listItemContext!.addIcon(props.children);\n }, [props]);\n\n return null;\n};\n\nexport type ListSelectBoxProps = {\n children: React.ReactNode;\n};\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please find out the new `ListItem` component props from the `@webiny/admin-ui` package instead.\n */\nexport const ListSelectBox = (props: ListSelectBoxProps) => {\n const listItemContext = useContext(DeprecatedListItemContext);\n\n useEffect(() => {\n listItemContext!.addIcon(props.children);\n }, [props]);\n\n return null;\n};\n"],"mappings":"AAAA,SAAgBA,UAAU,EAAEC,SAAS,QAAQ,OAAO;AACpD,SAASC,yBAAyB;AAIlC;AACA;AACA;AACA;AACA,OAAO,MAAMC,eAAe,GAAIC,KAA2B,IAAK;EAC5D,MAAMC,eAAe,GAAGL,UAAU,CAACE,yBAAyB,CAAC;EAE7DD,SAAS,CAAC,MAAM;IACZI,eAAe,CAAEC,OAAO,CAACF,KAAK,CAACG,QAAQ,CAAC;EAC5C,CAAC,EAAE,CAACH,KAAK,CAAC,CAAC;EAEX,OAAO,IAAI;AACf,CAAC;AAMD;AACA;AACA;AACA;AACA,OAAO,MAAMI,aAAa,GAAIJ,KAAyB,IAAK;EACxD,MAAMC,eAAe,GAAGL,UAAU,CAACE,yBAAyB,CAAC;EAE7DD,SAAS,CAAC,MAAM;IACZI,eAAe,CAAEC,OAAO,CAACF,KAAK,CAACG,QAAQ,CAAC;EAC5C,CAAC,EAAE,CAACH,KAAK,CAAC,CAAC;EAEX,OAAO,IAAI;AACf,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type ListItemMetaProps = {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated This component is deprecated and will be removed in future releases.
|
|
8
|
+
* Please find out the new `ListItem` component props from the `@webiny/admin-ui` package instead.
|
|
9
|
+
*/
|
|
10
|
+
export declare const ListItemMeta: (props: ListItemMetaProps) => React.JSX.Element;
|
|
11
|
+
export type ListTopCaptionProps = {
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated This component is deprecated and will be removed in future releases.
|
|
16
|
+
* Please find out the new `ListItem` component props from the `@webiny/admin-ui` package instead.
|
|
17
|
+
*/
|
|
18
|
+
export declare const ListTopCaption: ({}: ListTopCaptionProps) => null;
|
|
19
|
+
export type ListBottomCaptionProps = {
|
|
20
|
+
children: React.ReactNode;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* @deprecated This component is deprecated and will be removed in future releases.
|
|
24
|
+
* Please find out the new `ListItem` component props from the `@webiny/admin-ui` package instead.
|
|
25
|
+
*/
|
|
26
|
+
export declare const ListBottomCaption: ({}: ListBottomCaptionProps) => null;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated This component is deprecated and will be removed in future releases.
|
|
4
|
+
* Please find out the new `ListItem` component props from the `@webiny/admin-ui` package instead.
|
|
5
|
+
*/
|
|
6
|
+
export const ListItemMeta = props => {
|
|
7
|
+
return /*#__PURE__*/React.createElement("span", props, props.children);
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated This component is deprecated and will be removed in future releases.
|
|
11
|
+
* Please find out the new `ListItem` component props from the `@webiny/admin-ui` package instead.
|
|
12
|
+
*/
|
|
13
|
+
export const ListTopCaption = ({}) => {
|
|
14
|
+
return null;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* @deprecated This component is deprecated and will be removed in future releases.
|
|
18
|
+
* Please find out the new `ListItem` component props from the `@webiny/admin-ui` package instead.
|
|
19
|
+
*/
|
|
20
|
+
export const ListBottomCaption = ({}) => {
|
|
21
|
+
return null;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=ListItemMeta.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","ListItemMeta","props","createElement","children","ListTopCaption","ListBottomCaption"],"sources":["ListItemMeta.tsx"],"sourcesContent":["import React from \"react\";\n\nexport type ListItemMetaProps = { children: React.ReactNode; className?: string };\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please find out the new `ListItem` component props from the `@webiny/admin-ui` package instead.\n */\nexport const ListItemMeta = (props: ListItemMetaProps) => {\n return <span {...props}>{props.children}</span>;\n};\n\nexport type ListTopCaptionProps = {\n children: React.ReactNode;\n};\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please find out the new `ListItem` component props from the `@webiny/admin-ui` package instead.\n */\nexport const ListTopCaption = ({}: ListTopCaptionProps) => {\n return null;\n};\n\nexport type ListBottomCaptionProps = {\n children: React.ReactNode;\n};\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please find out the new `ListItem` component props from the `@webiny/admin-ui` package instead.\n */\nexport const ListBottomCaption = ({}: ListBottomCaptionProps) => {\n return null;\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAIzB;AACA;AACA;AACA;AACA,OAAO,MAAMC,YAAY,GAAIC,KAAwB,IAAK;EACtD,oBAAOF,KAAA,CAAAG,aAAA,SAAUD,KAAK,EAAGA,KAAK,CAACE,QAAe,CAAC;AACnD,CAAC;AAMD;AACA;AACA;AACA;AACA,OAAO,MAAMC,cAAc,GAAGA,CAAC,CAAsB,CAAC,KAAK;EACvD,OAAO,IAAI;AACf,CAAC;AAMD;AACA;AACA;AACA;AACA,OAAO,MAAMC,iBAAiB,GAAGA,CAAC,CAAyB,CAAC,KAAK;EAC7D,OAAO,IAAI;AACf,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
/** Text Wrapper for the ListItem */
|
|
3
|
+
export type ListItemTextProps = {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
onClick?: (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated This component is deprecated and will be removed in future releases.
|
|
10
|
+
* Please find out the new `ListItem` component props from the `@webiny/admin-ui` package instead.
|
|
11
|
+
*/
|
|
12
|
+
export declare const ListItemText: (props: ListItemTextProps) => React.ReactNode;
|
|
13
|
+
export type ListItemTextPrimaryProps = {
|
|
14
|
+
/**
|
|
15
|
+
* Text content
|
|
16
|
+
*/
|
|
17
|
+
children: React.ReactNode;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* @deprecated This component is deprecated and will be removed in future releases.
|
|
21
|
+
* Please find out the new `ListItem` component props from the `@webiny/admin-ui` package instead.
|
|
22
|
+
*/
|
|
23
|
+
export declare const ListItemTextPrimary: (props: ListItemTextPrimaryProps) => null;
|
|
24
|
+
export type ListItemTextSecondaryProps = {
|
|
25
|
+
/**
|
|
26
|
+
* Text content
|
|
27
|
+
*/
|
|
28
|
+
children: React.ReactNode;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* @deprecated This component is deprecated and will be removed in future releases.
|
|
32
|
+
* Please find out the new `ListItem` component props from the `@webiny/admin-ui` package instead.
|
|
33
|
+
*/
|
|
34
|
+
export declare const ListItemTextSecondary: (props: ListItemTextSecondaryProps) => null;
|
|
35
|
+
export type ListTextOverlineProps = {
|
|
36
|
+
children: React.ReactNode;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* @deprecated This component is deprecated and will be removed in future releases.
|
|
40
|
+
* Please find out the new `ListItem` component props from the `@webiny/admin-ui` package instead.
|
|
41
|
+
*/
|
|
42
|
+
export declare const ListTextOverline: (props: ListTextOverlineProps) => null;
|