@webiny/ui 5.27.0 → 5.29.0-beta.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.js +27 -13
- package/Accordion/Accordion.js.map +1 -1
- package/Accordion/Accordion.stories.js +34 -23
- package/Accordion/Accordion.stories.js.map +1 -1
- package/Accordion/AccordionItem.js +60 -36
- package/Accordion/AccordionItem.js.map +1 -1
- package/Accordion/index.js +31 -2
- package/Accordion/index.js.map +1 -1
- package/Alert/Alert.js +21 -10
- package/Alert/Alert.js.map +1 -1
- package/Alert/Alert.stories.js +22 -13
- package/Alert/Alert.stories.js.map +1 -1
- package/Alert/index.js +18 -1
- package/Alert/index.js.map +1 -1
- package/AutoComplete/AutoComplete.js +100 -77
- package/AutoComplete/AutoComplete.js.map +1 -1
- package/AutoComplete/AutoComplete.stories.js +27 -17
- package/AutoComplete/AutoComplete.stories.js.map +1 -1
- package/AutoComplete/MultiAutoComplete.js +164 -139
- package/AutoComplete/MultiAutoComplete.js.map +1 -1
- package/AutoComplete/MultiAutoComplete.stories.js +39 -28
- package/AutoComplete/MultiAutoComplete.stories.js.map +1 -1
- package/AutoComplete/index.js +31 -2
- package/AutoComplete/index.js.map +1 -1
- package/AutoComplete/styles.js +14 -4
- package/AutoComplete/styles.js.map +1 -1
- package/AutoComplete/types.js +5 -1
- package/AutoComplete/types.js.map +1 -1
- package/AutoComplete/utils.js +19 -4
- package/AutoComplete/utils.js.map +1 -1
- package/Avatar/Avatar.js +30 -15
- package/Avatar/Avatar.js.map +1 -1
- package/Avatar/Avatar.stories.js +19 -10
- package/Avatar/Avatar.stories.js.map +1 -1
- package/Avatar/index.js +18 -1
- package/Avatar/index.js.map +1 -1
- package/Button/Button.js +52 -23
- package/Button/Button.js.map +1 -1
- package/Button/Button.stories.js +42 -29
- package/Button/Button.stories.js.map +1 -1
- package/Button/CopyButton/CopyButton.js +24 -11
- package/Button/CopyButton/CopyButton.js.map +1 -1
- package/Button/CopyButton/CopyButton.stories.js +20 -10
- package/Button/CopyButton/CopyButton.stories.js.map +1 -1
- package/Button/IconButton/IconButton.js +14 -4
- package/Button/IconButton/IconButton.js.map +1 -1
- package/Button/IconButton/IconButton.stories.js +31 -19
- package/Button/IconButton/IconButton.stories.js.map +1 -1
- package/Button/index.js +44 -3
- package/Button/index.js.map +1 -1
- package/Carousel/Carousel.js +34 -21
- package/Carousel/Carousel.js.map +1 -1
- package/Carousel/Carouser.stories.js +27 -17
- package/Carousel/Carouser.stories.js.map +1 -1
- package/Carousel/index.js +15 -1
- package/Carousel/index.js.map +1 -1
- package/Checkbox/Checkbox.js +37 -22
- package/Checkbox/Checkbox.js.map +1 -1
- package/Checkbox/Checkbox.stories.js +27 -16
- package/Checkbox/Checkbox.stories.js.map +1 -1
- package/Checkbox/Checkbox.styles.js +11 -4
- package/Checkbox/Checkbox.styles.js.map +1 -1
- package/Checkbox/CheckboxGroup.js +36 -21
- package/Checkbox/CheckboxGroup.js.map +1 -1
- package/Checkbox/CheckboxGroup.stories.js +29 -18
- package/Checkbox/CheckboxGroup.stories.js.map +1 -1
- package/Checkbox/index.js +23 -2
- package/Checkbox/index.js.map +1 -1
- package/Chips/Chip.js +21 -7
- package/Chips/Chip.js.map +1 -1
- package/Chips/ChipIcon.js +21 -7
- package/Chips/ChipIcon.js.map +1 -1
- package/Chips/Chips.js +29 -12
- package/Chips/Chips.js.map +1 -1
- package/Chips/Chips.stories.js +27 -16
- package/Chips/Chips.stories.js.map +1 -1
- package/Chips/index.js +44 -3
- package/Chips/index.js.map +1 -1
- package/Chips/styles.js +14 -4
- package/Chips/styles.js.map +1 -1
- package/CodeEditor/CodeEditor.js +48 -29
- package/CodeEditor/CodeEditor.js.map +1 -1
- package/CodeEditor/CodeEditor.stories.js +30 -17
- package/CodeEditor/CodeEditor.stories.js.map +1 -1
- package/CodeEditor/index.js +18 -1
- package/CodeEditor/index.js.map +1 -1
- package/ColorPicker/ColorPicker.js +58 -44
- package/ColorPicker/ColorPicker.js.map +1 -1
- package/ColorPicker/ColorPicker.stories.js +26 -15
- package/ColorPicker/ColorPicker.stories.js.map +1 -1
- package/ColorPicker/index.js +18 -1
- package/ColorPicker/index.js.map +1 -1
- package/ConfirmationDialog/ConfirmationDialog.js +51 -42
- package/ConfirmationDialog/ConfirmationDialog.js.map +1 -1
- package/ConfirmationDialog/ConfirmationDialog.stories.js +22 -12
- package/ConfirmationDialog/ConfirmationDialog.stories.js.map +1 -1
- package/ConfirmationDialog/index.js +31 -2
- package/ConfirmationDialog/index.js.map +1 -1
- package/ConfirmationDialog/withConfirmation.js +19 -6
- package/ConfirmationDialog/withConfirmation.js.map +1 -1
- package/Dialog/Dialog.js +68 -37
- package/Dialog/Dialog.js.map +1 -1
- package/Dialog/Dialog.stories.js +26 -16
- package/Dialog/Dialog.stories.js.map +1 -1
- package/Dialog/index.js +18 -1
- package/Dialog/index.js.map +1 -1
- package/Drawer/Drawer.js +20 -6
- package/Drawer/Drawer.js.map +1 -1
- package/Drawer/Drawer.stories.js +26 -15
- package/Drawer/Drawer.stories.js.map +1 -1
- package/Drawer/index.js +18 -1
- package/Drawer/index.js.map +1 -1
- package/DynamicFieldset/Fieldset.js +56 -47
- package/DynamicFieldset/Fieldset.js.map +1 -1
- package/DynamicFieldset/index.js +15 -1
- package/DynamicFieldset/index.js.map +1 -1
- package/Elevation/Elevation.js +17 -6
- package/Elevation/Elevation.js.map +1 -1
- package/Elevation/Elevation.stories.js +27 -16
- package/Elevation/Elevation.stories.js.map +1 -1
- package/Elevation/index.js +18 -1
- package/Elevation/index.js.map +1 -1
- package/FormElementMessage/FormElementMessage.js +15 -5
- package/FormElementMessage/FormElementMessage.js.map +1 -1
- package/FormElementMessage/index.js +13 -1
- package/FormElementMessage/index.js.map +1 -1
- package/FullName/FullName.js +8 -1
- package/FullName/FullName.js.map +1 -1
- package/FullName/index.js +18 -1
- package/FullName/index.js.map +1 -1
- package/Grid/Grid.js +26 -9
- package/Grid/Grid.js.map +1 -1
- package/Grid/Grid.stories.js +21 -12
- package/Grid/Grid.stories.js.map +1 -1
- package/Grid/index.js +18 -1
- package/Grid/index.js.map +1 -1
- package/Helpers/ClassNames.js +16 -7
- package/Helpers/ClassNames.js.map +1 -1
- package/Helpers/index.js +13 -2
- package/Helpers/index.js.map +1 -1
- package/Icon/Icon.js +19 -7
- package/Icon/Icon.js.map +1 -1
- package/Icon/Icon.stories.js +33 -20
- package/Icon/Icon.stories.js.map +1 -1
- package/Icon/index.js +18 -1
- package/Icon/index.js.map +1 -1
- package/Image/Image.js +15 -7
- package/Image/Image.js.map +1 -1
- package/Image/Image.stories.js +21 -11
- package/Image/Image.stories.js.map +1 -1
- package/Image/index.js +18 -1
- package/Image/index.js.map +1 -1
- package/ImageEditor/ImageEditor.js +75 -65
- package/ImageEditor/ImageEditor.js.map +1 -1
- package/ImageEditor/index.js +18 -1
- package/ImageEditor/index.js.map +1 -1
- package/ImageEditor/toolbar/crop.js +30 -13
- package/ImageEditor/toolbar/crop.js.map +1 -1
- package/ImageEditor/toolbar/filter.js +61 -44
- package/ImageEditor/toolbar/filter.js.map +1 -1
- package/ImageEditor/toolbar/flip.js +32 -15
- package/ImageEditor/toolbar/flip.js.map +1 -1
- package/ImageEditor/toolbar/icons/index.js +69 -8
- package/ImageEditor/toolbar/icons/index.js.map +1 -1
- package/ImageEditor/toolbar/index.js +39 -4
- package/ImageEditor/toolbar/index.js.map +1 -1
- package/ImageEditor/toolbar/rotate.js +58 -35
- package/ImageEditor/toolbar/rotate.js.map +1 -1
- package/ImageEditor/toolbar/types.js +5 -1
- package/ImageEditor/toolbar/types.js.map +1 -1
- package/ImageUpload/Image.js +57 -35
- package/ImageUpload/Image.js.map +1 -1
- package/ImageUpload/ImageEditorDialog.js +48 -30
- package/ImageUpload/ImageEditorDialog.js.map +1 -1
- package/ImageUpload/MultiImageUpload.js +88 -70
- package/ImageUpload/MultiImageUpload.js.map +1 -1
- package/ImageUpload/MultiImageUpload.stories.js +26 -15
- package/ImageUpload/MultiImageUpload.stories.js.map +1 -1
- package/ImageUpload/SingleImageUpload.js +68 -45
- package/ImageUpload/SingleImageUpload.js.map +1 -1
- package/ImageUpload/SingleImageUpload.stories.js +27 -16
- package/ImageUpload/SingleImageUpload.stories.js.map +1 -1
- package/ImageUpload/index.js +39 -4
- package/ImageUpload/index.js.map +1 -1
- package/ImageUpload/styled.d.ts +2 -2
- package/ImageUpload/styled.js +29 -15
- package/ImageUpload/styled.js.map +1 -1
- package/Input/Input.js +52 -35
- package/Input/Input.js.map +1 -1
- package/Input/Input.stories.js +62 -46
- package/Input/Input.stories.js.map +1 -1
- package/Input/__tests__/Input.test.js +37 -26
- package/Input/__tests__/Input.test.js.map +1 -1
- package/Input/index.js +18 -1
- package/Input/index.js.map +1 -1
- package/List/CollapsibleList/CollapsibleList.stories.js +27 -16
- package/List/CollapsibleList/CollapsibleList.stories.js.map +1 -1
- package/List/CollapsibleList/index.js +21 -6
- package/List/CollapsibleList/index.js.map +1 -1
- package/List/DataList/DataList.js +89 -60
- package/List/DataList/DataList.js.map +1 -1
- package/List/DataList/DataList.stories.js +37 -25
- package/List/DataList/DataList.stories.js.map +1 -1
- package/List/DataList/DataListModalOverlay/DataListModalOverlay.js +29 -10
- package/List/DataList/DataListModalOverlay/DataListModalOverlay.js.map +1 -1
- package/List/DataList/DataListModalOverlay/DataListModalOverlayAction.js +27 -9
- package/List/DataList/DataListModalOverlay/DataListModalOverlayAction.js.map +1 -1
- package/List/DataList/DataListModalOverlay/DataListModalOverlayContext.js +24 -8
- package/List/DataList/DataListModalOverlay/DataListModalOverlayContext.js.map +1 -1
- package/List/DataList/DataListModalOverlay/index.js +35 -3
- package/List/DataList/DataListModalOverlay/index.js.map +1 -1
- package/List/DataList/Loader.js +25 -13
- package/List/DataList/Loader.js.map +1 -1
- package/List/DataList/NoData.js +19 -6
- package/List/DataList/NoData.js.map +1 -1
- package/List/DataList/icons/index.js +83 -38
- package/List/DataList/icons/index.js.map +1 -1
- package/List/DataList/index.js +48 -3
- package/List/DataList/index.js.map +1 -1
- package/List/DataList/types.js +5 -1
- package/List/DataList/types.js.map +1 -1
- package/List/List.js +92 -49
- package/List/List.js.map +1 -1
- package/List/List.stories.js +52 -37
- package/List/List.stories.js.map +1 -1
- package/List/icons/index.js +23 -3
- package/List/icons/index.js.map +1 -1
- package/List/index.js +60 -3
- package/List/index.js.map +1 -1
- package/Menu/Menu.js +58 -46
- package/Menu/Menu.js.map +1 -1
- package/Menu/Menu.stories.js +24 -14
- package/Menu/Menu.stories.js.map +1 -1
- package/Menu/index.js +18 -1
- package/Menu/index.js.map +1 -1
- package/Mosaic/Mosaic.js +16 -7
- package/Mosaic/Mosaic.js.map +1 -1
- package/Mosaic/Mosaic.stories.js +37 -28
- package/Mosaic/Mosaic.stories.js.map +1 -1
- package/Mosaic/index.js +18 -1
- package/Mosaic/index.js.map +1 -1
- package/Progress/CircularProgress.js +25 -11
- package/Progress/CircularProgress.js.map +1 -1
- package/Progress/index.js +15 -1
- package/Progress/index.js.map +1 -1
- package/Radio/Radio.js +37 -22
- package/Radio/Radio.js.map +1 -1
- package/Radio/Radio.styles.js +11 -4
- package/Radio/Radio.styles.js.map +1 -1
- package/Radio/RadioGroup.js +33 -19
- package/Radio/RadioGroup.js.map +1 -1
- package/Radio/RadioGroup.stories.js +29 -18
- package/Radio/RadioGroup.stories.js.map +1 -1
- package/Radio/index.js +23 -2
- package/Radio/index.js.map +1 -1
- package/RichTextEditor/RichTextEditor.js +56 -32
- package/RichTextEditor/RichTextEditor.js.map +1 -1
- package/RichTextEditor/RichTextEditor.stories.js +21 -10
- package/RichTextEditor/RichTextEditor.stories.js.map +1 -1
- package/RichTextEditor/createPropsFromConfig.js +15 -4
- package/RichTextEditor/createPropsFromConfig.js.map +1 -1
- package/RichTextEditor/index.js +30 -2
- package/RichTextEditor/index.js.map +1 -1
- package/Ripple/Ripple.js +16 -5
- package/Ripple/Ripple.js.map +1 -1
- package/Ripple/Ripple.stories.js +57 -42
- package/Ripple/Ripple.stories.js.map +1 -1
- package/Ripple/index.js +18 -1
- package/Ripple/index.js.map +1 -1
- package/Scrollbar/Scrollbar.js +14 -4
- package/Scrollbar/Scrollbar.js.map +1 -1
- package/Scrollbar/Scrollbar.stories.js +18 -9
- package/Scrollbar/Scrollbar.stories.js.map +1 -1
- package/Scrollbar/index.js +18 -1
- package/Scrollbar/index.js.map +1 -1
- package/Section/Section.stories.js +22 -12
- package/Section/Section.stories.js.map +1 -1
- package/Section/index.js +30 -15
- package/Section/index.js.map +1 -1
- package/Select/Select.js +37 -18
- package/Select/Select.js.map +1 -1
- package/Select/Select.stories.js +36 -25
- package/Select/Select.stories.js.map +1 -1
- package/Select/index.js +18 -1
- package/Select/index.js.map +1 -1
- package/Slider/Slider.js +43 -27
- package/Slider/Slider.js.map +1 -1
- package/Slider/Slider.stories.js +27 -16
- package/Slider/Slider.stories.js.map +1 -1
- package/Slider/index.js +15 -1
- package/Slider/index.js.map +1 -1
- package/Snackbar/Snackbar.js +38 -20
- package/Snackbar/Snackbar.js.map +1 -1
- package/Snackbar/Snackbar.stories.js +44 -30
- package/Snackbar/Snackbar.stories.js.map +1 -1
- package/Snackbar/index.js +19 -1
- package/Snackbar/index.js.map +1 -1
- package/Switch/Switch.js +43 -27
- package/Switch/Switch.js.map +1 -1
- package/Switch/Switch.stories.js +27 -16
- package/Switch/Switch.stories.js.map +1 -1
- package/Switch/index.js +18 -1
- package/Switch/index.js.map +1 -1
- package/Tabs/Tab.js +21 -7
- package/Tabs/Tab.js.map +1 -1
- package/Tabs/Tabs.js +49 -28
- package/Tabs/Tabs.js.map +1 -1
- package/Tabs/Tabs.stories.js +34 -22
- package/Tabs/Tabs.stories.js.map +1 -1
- package/Tabs/index.js +31 -2
- package/Tabs/index.js.map +1 -1
- package/Tags/Tags.js +64 -40
- package/Tags/Tags.js.map +1 -1
- package/Tags/Tags.stories.js +27 -16
- package/Tags/Tags.stories.js.map +1 -1
- package/Tags/index.js +18 -1
- package/Tags/index.js.map +1 -1
- package/Tooltip/Tooltip.js +38 -24
- package/Tooltip/Tooltip.js.map +1 -1
- package/Tooltip/Tooltip.stories.js +20 -11
- package/Tooltip/Tooltip.stories.js.map +1 -1
- package/Tooltip/index.js +18 -1
- package/Tooltip/index.js.map +1 -1
- package/TopAppBar/TopAppBar.js +18 -7
- package/TopAppBar/TopAppBar.js.map +1 -1
- package/TopAppBar/TopAppBar.stories.js +39 -25
- package/TopAppBar/TopAppBar.stories.js.map +1 -1
- package/TopAppBar/TopAppBarActionItem.js +14 -4
- package/TopAppBar/TopAppBarActionItem.js.map +1 -1
- package/TopAppBar/TopAppBarNavigationIcon.js +14 -4
- package/TopAppBar/TopAppBarNavigationIcon.js.map +1 -1
- package/TopAppBar/TopAppBarPrimary.js +18 -7
- package/TopAppBar/TopAppBarPrimary.js.map +1 -1
- package/TopAppBar/TopAppBarSecondary.js +18 -7
- package/TopAppBar/TopAppBarSecondary.js.map +1 -1
- package/TopAppBar/TopAppBarSection.js +18 -7
- package/TopAppBar/TopAppBarSection.js.map +1 -1
- package/TopAppBar/TopAppBarTitle.js +18 -7
- package/TopAppBar/TopAppBarTitle.js.map +1 -1
- package/TopAppBar/index.js +96 -7
- package/TopAppBar/index.js.map +1 -1
- package/TopProgressBar/TopProgressBar.js +20 -7
- package/TopProgressBar/TopProgressBar.js.map +1 -1
- package/TopProgressBar/TopProgressBar.stories.js +22 -12
- package/TopProgressBar/TopProgressBar.stories.js.map +1 -1
- package/TopProgressBar/hoc/index.js +15 -1
- package/TopProgressBar/hoc/index.js.map +1 -1
- package/TopProgressBar/hoc/withTopProgressBar.js +16 -5
- package/TopProgressBar/hoc/withTopProgressBar.js.map +1 -1
- package/TopProgressBar/index.js +18 -1
- package/TopProgressBar/index.js.map +1 -1
- package/Typography/Typography.js +14 -4
- package/Typography/Typography.js.map +1 -1
- package/Typography/Typography.stories.js +43 -34
- package/Typography/Typography.stories.js.map +1 -1
- package/Typography/index.js +18 -1
- package/Typography/index.js.map +1 -1
- package/package.json +9 -9
- package/types.js +5 -1
- package/types.js.map +1 -1
|
@@ -1,55 +1,100 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.SortIcon = exports.RefreshIcon = exports.PreviousPageIcon = exports.OptionsIcon = exports.NextPageIcon = exports.FilterIcon = exports.EditIcon = exports.DeleteIcon = exports.CreateIcon = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
|
|
12
|
+
var _Button = require("../../../Button");
|
|
13
|
+
|
|
14
|
+
var _baselineAutorenew24px = require("./baseline-autorenew-24px.svg");
|
|
15
|
+
|
|
16
|
+
var _baselineEdit24px = require("./baseline-edit-24px.svg");
|
|
17
|
+
|
|
18
|
+
var _baselineDelete24px = require("./baseline-delete-24px.svg");
|
|
19
|
+
|
|
20
|
+
var _baselineSort24px = require("./baseline-sort-24px.svg");
|
|
21
|
+
|
|
22
|
+
var _filter_alt24px = require("./filter_alt-24px.svg");
|
|
23
|
+
|
|
24
|
+
var _baselineNavigate_before24px = require("./baseline-navigate_before-24px.svg");
|
|
25
|
+
|
|
26
|
+
var _baselineNavigate_next24px = require("./baseline-navigate_next-24px.svg");
|
|
27
|
+
|
|
28
|
+
var _baselineTune24px = require("./baseline-tune-24px.svg");
|
|
29
|
+
|
|
30
|
+
var RefreshIcon = function RefreshIcon(props) {
|
|
31
|
+
return /*#__PURE__*/_react.default.createElement(_Button.IconButton, Object.assign({
|
|
32
|
+
icon: /*#__PURE__*/_react.default.createElement(_baselineAutorenew24px.ReactComponent, null)
|
|
14
33
|
}, props));
|
|
15
34
|
};
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
35
|
+
|
|
36
|
+
exports.RefreshIcon = RefreshIcon;
|
|
37
|
+
|
|
38
|
+
var DeleteIcon = function DeleteIcon(props) {
|
|
39
|
+
return /*#__PURE__*/_react.default.createElement(_Button.IconButton, Object.assign({
|
|
40
|
+
icon: /*#__PURE__*/_react.default.createElement(_baselineDelete24px.ReactComponent, null)
|
|
19
41
|
}, props));
|
|
20
42
|
};
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
43
|
+
|
|
44
|
+
exports.DeleteIcon = DeleteIcon;
|
|
45
|
+
|
|
46
|
+
var CreateIcon = function CreateIcon(props) {
|
|
47
|
+
return /*#__PURE__*/_react.default.createElement(_Button.IconButton, Object.assign({
|
|
48
|
+
icon: /*#__PURE__*/_react.default.createElement(_baselineEdit24px.ReactComponent, null)
|
|
24
49
|
}, props));
|
|
25
50
|
};
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
51
|
+
|
|
52
|
+
exports.CreateIcon = CreateIcon;
|
|
53
|
+
|
|
54
|
+
var EditIcon = function EditIcon(props) {
|
|
55
|
+
return /*#__PURE__*/_react.default.createElement(_Button.IconButton, Object.assign({
|
|
56
|
+
icon: /*#__PURE__*/_react.default.createElement(_baselineEdit24px.ReactComponent, null)
|
|
29
57
|
}, props));
|
|
30
58
|
};
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
59
|
+
|
|
60
|
+
exports.EditIcon = EditIcon;
|
|
61
|
+
|
|
62
|
+
var SortIcon = function SortIcon(props) {
|
|
63
|
+
return /*#__PURE__*/_react.default.createElement(_Button.IconButton, Object.assign({
|
|
64
|
+
icon: /*#__PURE__*/_react.default.createElement(_baselineSort24px.ReactComponent, null)
|
|
34
65
|
}, props));
|
|
35
66
|
};
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
67
|
+
|
|
68
|
+
exports.SortIcon = SortIcon;
|
|
69
|
+
|
|
70
|
+
var FilterIcon = function FilterIcon(props) {
|
|
71
|
+
return /*#__PURE__*/_react.default.createElement(_Button.IconButton, Object.assign({
|
|
72
|
+
icon: /*#__PURE__*/_react.default.createElement(_filter_alt24px.ReactComponent, null)
|
|
39
73
|
}, props));
|
|
40
74
|
};
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
75
|
+
|
|
76
|
+
exports.FilterIcon = FilterIcon;
|
|
77
|
+
|
|
78
|
+
var PreviousPageIcon = function PreviousPageIcon(props) {
|
|
79
|
+
return /*#__PURE__*/_react.default.createElement(_Button.IconButton, Object.assign({
|
|
80
|
+
icon: /*#__PURE__*/_react.default.createElement(_baselineNavigate_before24px.ReactComponent, null)
|
|
44
81
|
}, props));
|
|
45
82
|
};
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
83
|
+
|
|
84
|
+
exports.PreviousPageIcon = PreviousPageIcon;
|
|
85
|
+
|
|
86
|
+
var NextPageIcon = function NextPageIcon(props) {
|
|
87
|
+
return /*#__PURE__*/_react.default.createElement(_Button.IconButton, Object.assign({
|
|
88
|
+
icon: /*#__PURE__*/_react.default.createElement(_baselineNavigate_next24px.ReactComponent, null)
|
|
49
89
|
}, props));
|
|
50
90
|
};
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
91
|
+
|
|
92
|
+
exports.NextPageIcon = NextPageIcon;
|
|
93
|
+
|
|
94
|
+
var OptionsIcon = function OptionsIcon(props) {
|
|
95
|
+
return /*#__PURE__*/_react.default.createElement(_Button.IconButton, Object.assign({
|
|
96
|
+
icon: /*#__PURE__*/_react.default.createElement(_baselineTune24px.ReactComponent, null)
|
|
54
97
|
}, props));
|
|
55
|
-
};
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
exports.OptionsIcon = OptionsIcon;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["RefreshIcon","props","DeleteIcon","CreateIcon","EditIcon","SortIcon","FilterIcon","PreviousPageIcon","NextPageIcon","OptionsIcon"],"sources":["index.tsx"],"sourcesContent":["import React from \"react\";\nimport { IconButton, IconButtonProps as BaseIconProps } from \"../../../Button\";\nimport { ReactComponent as AutoRenew } from \"./baseline-autorenew-24px.svg\";\nimport { ReactComponent as Pen } from \"./baseline-edit-24px.svg\";\nimport { ReactComponent as Delete } from \"./baseline-delete-24px.svg\";\nimport { ReactComponent as Sort } from \"./baseline-sort-24px.svg\";\nimport { ReactComponent as Filter } from \"./filter_alt-24px.svg\";\nimport { ReactComponent as NavigateBefore } from \"./baseline-navigate_before-24px.svg\";\nimport { ReactComponent as NavigateNext } from \"./baseline-navigate_next-24px.svg\";\nimport { ReactComponent as TuneIcon } from \"./baseline-tune-24px.svg\";\n\ntype IconButtonProps = Omit<BaseIconProps, \"icon\"> & {\n icon?: React.ReactElement<any>;\n};\n\nexport const RefreshIcon = (props: IconButtonProps) => {\n return <IconButton icon={<AutoRenew />} {...props} />;\n};\n\nexport const DeleteIcon = (props: IconButtonProps) => {\n return <IconButton icon={<Delete />} {...props} />;\n};\n\nexport const CreateIcon = (props: IconButtonProps) => {\n return <IconButton icon={<Pen />} {...props} />;\n};\n\nexport const EditIcon = (props: IconButtonProps) => {\n return <IconButton icon={<Pen />} {...props} />;\n};\n\nexport const SortIcon = (props: IconButtonProps) => {\n return <IconButton icon={<Sort />} {...props} />;\n};\n\nexport const FilterIcon = (props: IconButtonProps) => {\n return <IconButton icon={<Filter />} {...props} />;\n};\n\nexport const PreviousPageIcon = (props: IconButtonProps) => {\n return <IconButton icon={<NavigateBefore />} {...props} />;\n};\n\nexport const NextPageIcon = (props: IconButtonProps) => {\n return <IconButton icon={<NavigateNext />} {...props} />;\n};\n\nexport const OptionsIcon = (props: IconButtonProps) => {\n return <IconButton icon={<TuneIcon />} {...props} />;\n};\n"],"mappings":";;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAMO,IAAMA,WAAW,GAAG,SAAdA,WAAc,CAACC,KAAD,EAA4B;EACnD,oBAAO,6BAAC,kBAAD;IAAY,IAAI,eAAE,6BAAC,qCAAD;EAAlB,GAAqCA,KAArC,EAAP;AACH,CAFM;;;;AAIA,IAAMC,UAAU,GAAG,SAAbA,UAAa,CAACD,KAAD,EAA4B;EAClD,oBAAO,6BAAC,kBAAD;IAAY,IAAI,eAAE,6BAAC,kCAAD;EAAlB,GAAkCA,KAAlC,EAAP;AACH,CAFM;;;;AAIA,IAAME,UAAU,GAAG,SAAbA,UAAa,CAACF,KAAD,EAA4B;EAClD,oBAAO,6BAAC,kBAAD;IAAY,IAAI,eAAE,6BAAC,gCAAD;EAAlB,GAA+BA,KAA/B,EAAP;AACH,CAFM;;;;AAIA,IAAMG,QAAQ,GAAG,SAAXA,QAAW,CAACH,KAAD,EAA4B;EAChD,oBAAO,6BAAC,kBAAD;IAAY,IAAI,eAAE,6BAAC,gCAAD;EAAlB,GAA+BA,KAA/B,EAAP;AACH,CAFM;;;;AAIA,IAAMI,QAAQ,GAAG,SAAXA,QAAW,CAACJ,KAAD,EAA4B;EAChD,oBAAO,6BAAC,kBAAD;IAAY,IAAI,eAAE,6BAAC,gCAAD;EAAlB,GAAgCA,KAAhC,EAAP;AACH,CAFM;;;;AAIA,IAAMK,UAAU,GAAG,SAAbA,UAAa,CAACL,KAAD,EAA4B;EAClD,oBAAO,6BAAC,kBAAD;IAAY,IAAI,eAAE,6BAAC,8BAAD;EAAlB,GAAkCA,KAAlC,EAAP;AACH,CAFM;;;;AAIA,IAAMM,gBAAgB,GAAG,SAAnBA,gBAAmB,CAACN,KAAD,EAA4B;EACxD,oBAAO,6BAAC,kBAAD;IAAY,IAAI,eAAE,6BAAC,2CAAD;EAAlB,GAA0CA,KAA1C,EAAP;AACH,CAFM;;;;AAIA,IAAMO,YAAY,GAAG,SAAfA,YAAe,CAACP,KAAD,EAA4B;EACpD,oBAAO,6BAAC,kBAAD;IAAY,IAAI,eAAE,6BAAC,yCAAD;EAAlB,GAAwCA,KAAxC,EAAP;AACH,CAFM;;;;AAIA,IAAMQ,WAAW,GAAG,SAAdA,WAAc,CAACR,KAAD,EAA4B;EACnD,oBAAO,6BAAC,kBAAD;IAAY,IAAI,eAAE,6BAAC,gCAAD;EAAlB,GAAoCA,KAApC,EAAP;AACH,CAFM"}
|
package/List/DataList/index.js
CHANGED
|
@@ -1,3 +1,48 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
var _exportNames = {
|
|
9
|
+
DataList: true,
|
|
10
|
+
ScrollList: true,
|
|
11
|
+
NoData: true
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "DataList", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function get() {
|
|
16
|
+
return _DataList.DataList;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports, "NoData", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function get() {
|
|
22
|
+
return _NoData.default;
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
Object.defineProperty(exports, "ScrollList", {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
get: function get() {
|
|
28
|
+
return _DataList.ScrollList;
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
var _DataList = require("./DataList");
|
|
33
|
+
|
|
34
|
+
var _NoData = _interopRequireDefault(require("./NoData"));
|
|
35
|
+
|
|
36
|
+
var _DataListModalOverlay = require("./DataListModalOverlay");
|
|
37
|
+
|
|
38
|
+
Object.keys(_DataListModalOverlay).forEach(function (key) {
|
|
39
|
+
if (key === "default" || key === "__esModule") return;
|
|
40
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
41
|
+
if (key in exports && exports[key] === _DataListModalOverlay[key]) return;
|
|
42
|
+
Object.defineProperty(exports, key, {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function get() {
|
|
45
|
+
return _DataListModalOverlay[key];
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { DataList, ScrollList } from \"./DataList\";\nexport { default as NoData } from \"./NoData\";\nexport * from \"./DataListModalOverlay\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AAAA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA"}
|
package/List/DataList/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":[],"sources":["types.ts"],"sourcesContent":["import React from \"react\";\n\nexport type PaginationProp = {\n // Triggered when a page is about to be changed.\n setPage?: (page: number) => void;\n\n // Triggered when previous page is requested.\n setPreviousPage?: () => void;\n\n // Triggered when next page is requested.\n setNextPage?: () => void;\n\n // Triggered internally when in need to determine if there is a next page and apply UI changes accordingly.\n hasNextPage?: boolean;\n\n // Triggered internally when in need to determine if there is a previous page and apply UI changes accordingly.\n hasPreviousPage?: boolean;\n\n // Triggered when number of entries per page has been changed.\n setPerPage?: (amount: number) => void;\n\n // By default, users can choose from 10, 25 or 50 entries per page.\n perPageOptions?: number[];\n};\n\nexport type SortersProp = Array<{ label: string; value: any }>;\n\nexport type Props = {\n // Pass a function to take full control of list render.\n children?: Function;\n\n // A title of paginated list.\n title?: React.ReactNode;\n\n // FormData that needs to be shown in the list.\n data?: Object[];\n\n // A callback that must refresh current view by repeating the previous query.\n refresh?: Function;\n\n // If true, Loader component will be shown, disallowing any interaction.\n loading?: boolean;\n\n // Provide a custom loader. Shown while the content is being loaded.\n loader?: React.ReactNode;\n\n // Provide all pagination data, options and callbacks here.\n pagination?: PaginationProp;\n\n // Triggered once the page has been selected.\n setPage?: Function;\n\n // Triggered once a sorter has been selected.\n setSorters?: Function;\n\n // Triggered once selected filters are submitted.\n setFilters?: Function;\n\n // Provide all sorters options and callbacks here.\n sorters?: SortersProp;\n\n multiActions?: any[]; // TODO: define\n};\n"],"mappings":""}
|
package/List/List.js
CHANGED
|
@@ -1,12 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.SimpleListItem = exports.ListTopCaption = exports.ListTextOverline = exports.ListSelectBox = exports.ListItemTextSecondary = exports.ListItemTextPrimary = exports.ListItemText = exports.ListItemMeta = exports.ListItemGraphic = exports.ListItem = exports.ListBottomCaption = exports.ListActions = exports.List = 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 _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
15
|
+
|
|
16
|
+
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
|
|
17
|
+
|
|
18
|
+
var _react = _interopRequireDefault(require("react"));
|
|
19
|
+
|
|
20
|
+
var _list = require("@rmwc/list");
|
|
21
|
+
|
|
22
|
+
var _Typography = require("../Typography");
|
|
23
|
+
|
|
24
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
25
|
+
|
|
26
|
+
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
10
27
|
|
|
11
28
|
/**
|
|
12
29
|
* ListItem components are placed as direct children to List component.
|
|
@@ -14,33 +31,35 @@ import styled from "@emotion/styled";
|
|
|
14
31
|
* @returns {*}
|
|
15
32
|
* @constructor
|
|
16
33
|
*/
|
|
17
|
-
|
|
18
|
-
return /*#__PURE__*/
|
|
34
|
+
var ListItem = function ListItem(props) {
|
|
35
|
+
return /*#__PURE__*/_react.default.createElement(_list.ListItem, props);
|
|
19
36
|
};
|
|
20
37
|
|
|
38
|
+
exports.ListItem = ListItem;
|
|
39
|
+
|
|
21
40
|
/**
|
|
22
41
|
* Use List component to display data and offer additional actions if needed.
|
|
23
42
|
*/
|
|
24
|
-
|
|
25
|
-
|
|
43
|
+
var List = /*#__PURE__*/function (_React$Component) {
|
|
44
|
+
(0, _inherits2.default)(List, _React$Component);
|
|
26
45
|
|
|
27
|
-
var _super =
|
|
46
|
+
var _super = (0, _createSuper2.default)(List);
|
|
28
47
|
|
|
29
48
|
function List() {
|
|
30
|
-
|
|
31
|
-
|
|
49
|
+
(0, _classCallCheck2.default)(this, List);
|
|
32
50
|
return _super.apply(this, arguments);
|
|
33
51
|
}
|
|
34
52
|
|
|
35
|
-
|
|
53
|
+
(0, _createClass2.default)(List, [{
|
|
36
54
|
key: "render",
|
|
37
55
|
value: function render() {
|
|
38
|
-
return /*#__PURE__*/
|
|
56
|
+
return /*#__PURE__*/_react.default.createElement(_list.List, this.props, this.props.children);
|
|
39
57
|
}
|
|
40
58
|
}]);
|
|
41
|
-
|
|
42
59
|
return List;
|
|
43
|
-
}(
|
|
60
|
+
}(_react.default.Component);
|
|
61
|
+
|
|
62
|
+
exports.List = List;
|
|
44
63
|
|
|
45
64
|
/**
|
|
46
65
|
* Used to show regular text in list items.
|
|
@@ -48,101 +67,120 @@ export var List = /*#__PURE__*/function (_React$Component) {
|
|
|
48
67
|
* @returns {*}
|
|
49
68
|
* @constructor
|
|
50
69
|
*/
|
|
51
|
-
|
|
52
|
-
return /*#__PURE__*/
|
|
70
|
+
var ListItemText = function ListItemText(props) {
|
|
71
|
+
return /*#__PURE__*/_react.default.createElement(_list.ListItemText, props, props.children);
|
|
53
72
|
};
|
|
54
|
-
|
|
55
|
-
|
|
73
|
+
|
|
74
|
+
exports.ListItemText = ListItemText;
|
|
75
|
+
|
|
76
|
+
var ListItemTextPrimary = function ListItemTextPrimary(props) {
|
|
77
|
+
return /*#__PURE__*/_react.default.createElement(_list.ListItemPrimaryText, null, props.children);
|
|
56
78
|
};
|
|
57
79
|
|
|
80
|
+
exports.ListItemTextPrimary = ListItemTextPrimary;
|
|
81
|
+
|
|
58
82
|
/**
|
|
59
83
|
* Used to show secondary text in list items.
|
|
60
84
|
* @param props
|
|
61
85
|
* @returns {*}
|
|
62
86
|
* @constructor
|
|
63
87
|
*/
|
|
64
|
-
|
|
65
|
-
return /*#__PURE__*/
|
|
88
|
+
var ListItemTextSecondary = function ListItemTextSecondary(props) {
|
|
89
|
+
return /*#__PURE__*/_react.default.createElement(_list.ListItemSecondaryText, null, props.children);
|
|
66
90
|
};
|
|
67
91
|
|
|
92
|
+
exports.ListItemTextSecondary = ListItemTextSecondary;
|
|
93
|
+
|
|
68
94
|
/**
|
|
69
95
|
* Can be used to show an icon or any other custom element. Rendered on the left side.
|
|
70
96
|
* @param props
|
|
71
97
|
* @returns {*}
|
|
72
98
|
* @constructor
|
|
73
99
|
*/
|
|
74
|
-
|
|
75
|
-
return /*#__PURE__*/
|
|
76
|
-
className:
|
|
100
|
+
var ListItemGraphic = function ListItemGraphic(props) {
|
|
101
|
+
return /*#__PURE__*/_react.default.createElement("div", Object.assign({}, props, {
|
|
102
|
+
className: (0, _classnames.default)("mdc-list-item__graphic", props.className)
|
|
77
103
|
}), props.children);
|
|
78
104
|
};
|
|
79
105
|
|
|
106
|
+
exports.ListItemGraphic = ListItemGraphic;
|
|
107
|
+
|
|
80
108
|
/**
|
|
81
109
|
* Can be used to show an icon or any other custom element. Rendered on the right side.
|
|
82
110
|
* @param props
|
|
83
111
|
* @returns {*}
|
|
84
112
|
* @constructor
|
|
85
113
|
*/
|
|
86
|
-
|
|
87
|
-
return /*#__PURE__*/
|
|
88
|
-
className:
|
|
114
|
+
var ListItemMeta = function ListItemMeta(props) {
|
|
115
|
+
return /*#__PURE__*/_react.default.createElement("span", Object.assign({}, props, {
|
|
116
|
+
className: (0, _classnames.default)("mdc-list-item__meta", props.className)
|
|
89
117
|
}), props.children);
|
|
90
118
|
};
|
|
91
119
|
|
|
120
|
+
exports.ListItemMeta = ListItemMeta;
|
|
121
|
+
|
|
92
122
|
/**
|
|
93
123
|
* Can be used to show a top caption inside ListItemMeta component.
|
|
94
124
|
* @param props
|
|
95
125
|
* @returns {*}
|
|
96
126
|
* @constructor
|
|
97
127
|
*/
|
|
98
|
-
|
|
99
|
-
return /*#__PURE__*/
|
|
128
|
+
var ListTopCaption = function ListTopCaption(props) {
|
|
129
|
+
return /*#__PURE__*/_react.default.createElement("span", Object.assign({}, props, {
|
|
100
130
|
className: "webiny-list-top-caption"
|
|
101
|
-
}), /*#__PURE__*/
|
|
131
|
+
}), /*#__PURE__*/_react.default.createElement(_Typography.Typography, {
|
|
102
132
|
use: "overline"
|
|
103
133
|
}, props.children));
|
|
104
134
|
};
|
|
105
135
|
|
|
136
|
+
exports.ListTopCaption = ListTopCaption;
|
|
137
|
+
|
|
106
138
|
/**
|
|
107
139
|
* Can be used to show a bottom caption inside ListItemMeta component.
|
|
108
140
|
* @param props
|
|
109
141
|
* @returns {*}
|
|
110
142
|
* @constructor
|
|
111
143
|
*/
|
|
112
|
-
|
|
113
|
-
return /*#__PURE__*/
|
|
144
|
+
var ListBottomCaption = function ListBottomCaption(props) {
|
|
145
|
+
return /*#__PURE__*/_react.default.createElement("span", Object.assign({}, props, {
|
|
114
146
|
className: "webiny-list-bottom-caption"
|
|
115
|
-
}), /*#__PURE__*/
|
|
147
|
+
}), /*#__PURE__*/_react.default.createElement(_Typography.Typography, {
|
|
116
148
|
use: "overline"
|
|
117
149
|
}, props.children));
|
|
118
150
|
};
|
|
119
151
|
|
|
152
|
+
exports.ListBottomCaption = ListBottomCaption;
|
|
153
|
+
|
|
120
154
|
/**
|
|
121
155
|
* Can be used to show an overline text inside ListItem component.
|
|
122
156
|
* @param props
|
|
123
157
|
* @returns {*}
|
|
124
158
|
* @constructor
|
|
125
159
|
*/
|
|
126
|
-
|
|
127
|
-
return /*#__PURE__*/
|
|
160
|
+
var ListTextOverline = function ListTextOverline(props) {
|
|
161
|
+
return /*#__PURE__*/_react.default.createElement("span", Object.assign({}, props, {
|
|
128
162
|
className: "webiny-list-text-overline"
|
|
129
|
-
}), /*#__PURE__*/
|
|
163
|
+
}), /*#__PURE__*/_react.default.createElement(_Typography.Typography, {
|
|
130
164
|
use: "overline"
|
|
131
165
|
}, props.children));
|
|
132
166
|
};
|
|
133
167
|
|
|
168
|
+
exports.ListTextOverline = ListTextOverline;
|
|
169
|
+
|
|
134
170
|
/**
|
|
135
171
|
* Used to contain the actions inside ListItemMate component.
|
|
136
172
|
* @param props
|
|
137
173
|
* @returns {*}
|
|
138
174
|
* @constructor
|
|
139
175
|
*/
|
|
140
|
-
|
|
141
|
-
return /*#__PURE__*/
|
|
176
|
+
var ListActions = function ListActions(props) {
|
|
177
|
+
return /*#__PURE__*/_react.default.createElement("span", Object.assign({}, props, {
|
|
142
178
|
className: "webiny-list-actions"
|
|
143
179
|
}), props.children);
|
|
144
180
|
};
|
|
145
|
-
|
|
181
|
+
|
|
182
|
+
exports.ListActions = ListActions;
|
|
183
|
+
var SelectBoxWrapper = /*#__PURE__*/(0, _styled.default)("div", {
|
|
146
184
|
target: "entzw6n0",
|
|
147
185
|
label: "SelectBoxWrapper"
|
|
148
186
|
})({
|
|
@@ -159,9 +197,14 @@ var SelectBoxWrapper = /*#__PURE__*/styled("div", {
|
|
|
159
197
|
* Used to hold the Checkbox element for multi-select options.
|
|
160
198
|
* @param {*} props
|
|
161
199
|
*/
|
|
162
|
-
|
|
163
|
-
return /*#__PURE__*/
|
|
200
|
+
var ListSelectBox = function ListSelectBox(props) {
|
|
201
|
+
return /*#__PURE__*/_react.default.createElement(ListItemGraphic, null, /*#__PURE__*/_react.default.createElement(SelectBoxWrapper, null, props.children));
|
|
164
202
|
};
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
203
|
+
|
|
204
|
+
exports.ListSelectBox = ListSelectBox;
|
|
205
|
+
|
|
206
|
+
var SimpleListItem = function SimpleListItem(props) {
|
|
207
|
+
return /*#__PURE__*/_react.default.createElement(_list.SimpleListItem, props);
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
exports.SimpleListItem = SimpleListItem;
|
package/List/List.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["ListItem","props","List","children","React","Component","ListItemText","ListItemTextPrimary","ListItemTextSecondary","ListItemGraphic","classNames","className","ListItemMeta","ListTopCaption","ListBottomCaption","ListTextOverline","ListActions","SelectBoxWrapper","styled","overflow","width","height","display","position","alignItems","justifyContent","ListSelectBox","SimpleListItem"],"sources":["List.tsx"],"sourcesContent":["import React from \"react\";\nimport {\n List as RmwcList,\n ListProps as RmwcListProps,\n ListItem as RmwcListItem,\n ListItemProps as RmwcListItemProps,\n ListItemText as RmwcListItemText,\n ListItemTextProps as RmwcListItemTextProps,\n ListItemPrimaryText as RmwcListItemPrimaryText,\n ListItemSecondaryText as RmwcListItemSecondaryText,\n SimpleListItem as RmwcSimpleListItem,\n SimpleListItemProps as RmwcSimpleListItemProps\n} from \"@rmwc/list\";\nimport { Typography } from \"~/Typography\";\nimport classNames from \"classnames\";\nimport styled from \"@emotion/styled\";\n\nexport type ListItemProps = RmwcListItemProps & {\n children: React.ReactNode;\n className?: string;\n style?: React.CSSProperties;\n onClick?: (e: React.MouseEvent) => void;\n};\n\n/**\n * ListItem components are placed as direct children to List component.\n * @param props\n * @returns {*}\n * @constructor\n */\nexport const ListItem = (props: ListItemProps) => {\n return <RmwcListItem {...props} />;\n};\n\nexport type ListProps = RmwcListProps & {\n children?: any;\n\n className?: string;\n\n style?: React.CSSProperties;\n};\n\n/**\n * Use List component to display data and offer additional actions if needed.\n */\nexport class List extends React.Component<ListProps> {\n public override render() {\n return <RmwcList {...this.props}>{this.props.children}</RmwcList>;\n }\n}\n\nexport type ListItemTextProps = RmwcListItemTextProps & {\n children: React.ReactNode;\n className?: string;\n onClick?: (e: React.SyntheticEvent<MouseEvent>) => void;\n};\n\n/**\n * Used to show regular text in list items.\n * @param props\n * @returns {*}\n * @constructor\n */\nexport const ListItemText = (props: ListItemTextProps) => {\n return <RmwcListItemText {...props}>{props.children}</RmwcListItemText>;\n};\n\nexport type ListItemTextPrimaryProps = {\n /**\n * Text content\n */\n children: React.ReactNode;\n};\n\nexport const ListItemTextPrimary = (props: ListItemTextPrimaryProps) => {\n return <RmwcListItemPrimaryText>{props.children}</RmwcListItemPrimaryText>;\n};\n\nexport type ListItemTextSecondaryProps = {\n /**\n * Text content\n */\n children: React.ReactNode;\n};\n\n/**\n * Used to show secondary text in list items.\n * @param props\n * @returns {*}\n * @constructor\n */\nexport const ListItemTextSecondary = (props: ListItemTextSecondaryProps) => {\n return <RmwcListItemSecondaryText>{props.children}</RmwcListItemSecondaryText>;\n};\n\nexport type ListItemGraphicProps = { children: React.ReactNode; className?: string };\n\n/**\n * Can be used to show an icon or any other custom element. Rendered on the left side.\n * @param props\n * @returns {*}\n * @constructor\n */\nexport const ListItemGraphic = (props: ListItemGraphicProps) => {\n return (\n <div {...props} className={classNames(\"mdc-list-item__graphic\", props.className)}>\n {props.children}\n </div>\n );\n};\n\nexport type ListItemMetaProps = { children: React.ReactNode; className?: string };\n\n/**\n * Can be used to show an icon or any other custom element. Rendered on the right side.\n * @param props\n * @returns {*}\n * @constructor\n */\nexport const ListItemMeta = (props: ListItemMetaProps) => {\n return (\n <span {...props} className={classNames(\"mdc-list-item__meta\", props.className)}>\n {props.children}\n </span>\n );\n};\n\nexport type ListTopCaptionProps = {\n children: React.ReactNode;\n};\n\n/**\n * Can be used to show a top caption inside ListItemMeta component.\n * @param props\n * @returns {*}\n * @constructor\n */\nexport const ListTopCaption = (props: ListTopCaptionProps) => {\n return (\n <span {...props} className={\"webiny-list-top-caption\"}>\n <Typography use=\"overline\">{props.children}</Typography>\n </span>\n );\n};\n\nexport type ListBottomCaptionProps = {\n children: React.ReactNode;\n};\n\n/**\n * Can be used to show a bottom caption inside ListItemMeta component.\n * @param props\n * @returns {*}\n * @constructor\n */\nexport const ListBottomCaption = (props: ListBottomCaptionProps) => {\n return (\n <span {...props} className={\"webiny-list-bottom-caption\"}>\n <Typography use=\"overline\">{props.children}</Typography>\n </span>\n );\n};\n\nexport type ListTextOverlineProps = {\n children: React.ReactNode;\n};\n\n/**\n * Can be used to show an overline text inside ListItem component.\n * @param props\n * @returns {*}\n * @constructor\n */\nexport const ListTextOverline = (props: ListTextOverlineProps) => {\n return (\n <span {...props} className={\"webiny-list-text-overline\"}>\n <Typography use=\"overline\">{props.children}</Typography>\n </span>\n );\n};\n\nexport type ListActionsProps = {\n children: React.ReactNode;\n};\n\n/**\n * Used to contain the actions inside ListItemMate component.\n * @param props\n * @returns {*}\n * @constructor\n */\nexport const ListActions = (props: ListActionsProps) => {\n return (\n <span {...props} className={\"webiny-list-actions\"}>\n {props.children}\n </span>\n );\n};\n\nconst SelectBoxWrapper = styled(\"div\")({\n overflow: \"hidden\",\n width: 25,\n height: 25,\n display: \"flex\",\n position: \"relative\",\n alignItems: \"center\",\n justifyContent: \"center\"\n});\n\nexport type ListSelectBoxProps = {\n children: React.ReactNode;\n};\n\n/**\n * Used to hold the Checkbox element for multi-select options.\n * @param {*} props\n */\nexport const ListSelectBox = (props: ListSelectBoxProps) => {\n return (\n <ListItemGraphic>\n <SelectBoxWrapper>{props.children}</SelectBoxWrapper>\n </ListItemGraphic>\n );\n};\n\nexport const SimpleListItem = (props: RmwcSimpleListItemProps & { onClick?: any }) => {\n return <RmwcSimpleListItem {...props} />;\n};\n"],"mappings":"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"}
|