@webiny/ui 5.21.0-beta.0 → 5.22.0-beta.2
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.stories.js +1 -1
- package/Accordion/AccordionItem.js +2 -2
- package/AutoComplete/AutoComplete.d.ts +1 -0
- package/AutoComplete/AutoComplete.js +1 -1
- package/AutoComplete/MultiAutoComplete.d.ts +1 -0
- package/AutoComplete/MultiAutoComplete.js +8 -8
- package/Button/Button.stories.js +1 -1
- package/Button/CopyButton/CopyButton.js +1 -1
- package/Button/IconButton/IconButton.stories.js +2 -2
- package/Chips/Chips.stories.js +2 -2
- package/Icon/Icon.stories.js +4 -4
- package/ImageEditor/toolbar/crop.js +1 -1
- package/ImageEditor/toolbar/filter.js +1 -1
- package/ImageEditor/toolbar/flip.js +1 -1
- package/ImageEditor/toolbar/rotate.js +1 -1
- package/ImageUpload/Image.js +3 -3
- package/Input/Input.stories.js +4 -4
- package/List/DataList/icons/index.js +8 -8
- package/List/List.stories.js +4 -4
- package/RichTextEditor/RichTextEditor.js +6 -21
- package/Ripple/Ripple.stories.js +4 -4
- package/Select/Select.d.ts +1 -1
- package/Tabs/Tabs.stories.js +2 -2
- package/Tags/Tags.js +1 -1
- package/TopAppBar/TopAppBar.stories.js +4 -4
- package/package.json +18 -24
- package/rmwc/textfield/code/index.d.ts +2 -2
- package/rmwc/textfield/next/index.d.ts +2 -2
- package/rmwc/textfield/package.json +2 -2
|
@@ -4,7 +4,7 @@ import { Story, StoryReadme, StorySandboxCode, StorySandbox, StorySandboxExample
|
|
|
4
4
|
import readme from "./README.md";
|
|
5
5
|
import { Accordion } from "./Accordion";
|
|
6
6
|
import { AccordionItem } from "./AccordionItem";
|
|
7
|
-
import { ReactComponent as SettingsIcon } from "
|
|
7
|
+
import { ReactComponent as SettingsIcon } from "./icons/round-settings-24px.svg";
|
|
8
8
|
var story = storiesOf("Components/Accordion", module);
|
|
9
9
|
story.add("usage", function () {
|
|
10
10
|
return /*#__PURE__*/React.createElement(Story, null, /*#__PURE__*/React.createElement(StoryReadme, null, readme), /*#__PURE__*/React.createElement(StorySandbox, {
|
|
@@ -8,8 +8,8 @@ import { Icon } from "../Icon";
|
|
|
8
8
|
import styled from "@emotion/styled";
|
|
9
9
|
import { css } from "emotion";
|
|
10
10
|
import { Typography } from "../Typography";
|
|
11
|
-
import { ReactComponent as UpArrow } from "
|
|
12
|
-
import { ReactComponent as DownArrow } from "
|
|
11
|
+
import { ReactComponent as UpArrow } from "./icons/round-keyboard_arrow_up-24px.svg";
|
|
12
|
+
import { ReactComponent as DownArrow } from "./icons/round-keyboard_arrow_down-24px.svg";
|
|
13
13
|
import classNames from "classnames";
|
|
14
14
|
var Content = /*#__PURE__*/styled("div", {
|
|
15
15
|
target: "eypjd5u0",
|
|
@@ -144,7 +144,7 @@ var AutoComplete = /*#__PURE__*/function (_React$Component) {
|
|
|
144
144
|
className: classNames("autocomplete__options-list", listStyles)
|
|
145
145
|
}, getMenuProps()), /*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement(Typography, {
|
|
146
146
|
use: "body2"
|
|
147
|
-
}, "No results."))));
|
|
147
|
+
}, "No results."), this.props.noResultFound)));
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
return /*#__PURE__*/React.createElement(Elevation, {
|
|
@@ -22,13 +22,13 @@ import { Elevation } from "../Elevation";
|
|
|
22
22
|
import { Typography } from "../Typography";
|
|
23
23
|
import { autoCompleteStyle, suggestionList } from "./styles";
|
|
24
24
|
import { FormElementMessage } from "../FormElementMessage";
|
|
25
|
-
import { ReactComponent as BaselineCloseIcon } from "
|
|
26
|
-
import { ReactComponent as PrevIcon } from "
|
|
27
|
-
import { ReactComponent as NextIcon } from "
|
|
28
|
-
import { ReactComponent as PrevAllIcon } from "
|
|
29
|
-
import { ReactComponent as NextAllIcon } from "
|
|
30
|
-
import { ReactComponent as DeleteIcon } from "
|
|
31
|
-
import { ReactComponent as ReorderIcon } from "
|
|
25
|
+
import { ReactComponent as BaselineCloseIcon } from "./icons/baseline-close-24px.svg";
|
|
26
|
+
import { ReactComponent as PrevIcon } from "./icons/navigate_before-24px.svg";
|
|
27
|
+
import { ReactComponent as NextIcon } from "./icons/navigate_next-24px.svg";
|
|
28
|
+
import { ReactComponent as PrevAllIcon } from "./icons/skip_previous-24px.svg";
|
|
29
|
+
import { ReactComponent as NextAllIcon } from "./icons/skip_next-24px.svg";
|
|
30
|
+
import { ReactComponent as DeleteIcon } from "./icons/baseline-close-24px.svg";
|
|
31
|
+
import { ReactComponent as ReorderIcon } from "./icons/reorder_black_24dp.svg";
|
|
32
32
|
import { css } from "emotion";
|
|
33
33
|
import { ListItemGraphic } from "../List";
|
|
34
34
|
var style = {
|
|
@@ -260,7 +260,7 @@ export var MultiAutoComplete = /*#__PURE__*/function (_React$Component) {
|
|
|
260
260
|
className: classNames("multi-autocomplete__options-list", listStyles)
|
|
261
261
|
}, getMenuProps()), /*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement(Typography, {
|
|
262
262
|
use: "body2"
|
|
263
|
-
}, "No results."))));
|
|
263
|
+
}, "No results."), this.props.noResultFound)));
|
|
264
264
|
}
|
|
265
265
|
|
|
266
266
|
var renderItem = this.props.renderItem;
|
package/Button/Button.stories.js
CHANGED
|
@@ -3,7 +3,7 @@ import { storiesOf } from "@storybook/react";
|
|
|
3
3
|
import { withKnobs, text, boolean } from "@storybook/addon-knobs";
|
|
4
4
|
import { Story, StoryReadme, StorySandbox } from "@webiny/storybook-utils/Story";
|
|
5
5
|
import readme from "./../Button/README.md";
|
|
6
|
-
import { ReactComponent as CloudIcon } from "
|
|
6
|
+
import { ReactComponent as CloudIcon } from "./assets/baseline-cloud_done-24px.svg";
|
|
7
7
|
import { ButtonPrimary, ButtonSecondary, ButtonDefault, ButtonFloating, ButtonIcon } from "./Button";
|
|
8
8
|
var story = storiesOf("Components/Button", module);
|
|
9
9
|
story.addDecorator(withKnobs);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
2
2
|
var _excluded = ["value", "onCopy"];
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import { ReactComponent as CopyToClipboardIcon } from "
|
|
4
|
+
import { ReactComponent as CopyToClipboardIcon } from "../assets/file_copy-24px.svg";
|
|
5
5
|
import { IconButton } from "../index";
|
|
6
6
|
import { useCallback } from "react";
|
|
7
7
|
|
|
@@ -2,8 +2,8 @@ import React from "react";
|
|
|
2
2
|
import { storiesOf } from "@storybook/react";
|
|
3
3
|
import { Story, StoryReadme, StorySandbox } from "@webiny/storybook-utils/Story";
|
|
4
4
|
import readme from "./README.md";
|
|
5
|
-
import { ReactComponent as CloudIcon } from "
|
|
6
|
-
import { ReactComponent as MoreIcon } from "
|
|
5
|
+
import { ReactComponent as CloudIcon } from "./../assets/baseline-cloud_done-24px.svg";
|
|
6
|
+
import { ReactComponent as MoreIcon } from "./../assets/round-more_vert-24px.svg";
|
|
7
7
|
import { Menu, MenuItem } from "./../../Menu/index";
|
|
8
8
|
import { IconButton } from "./IconButton";
|
|
9
9
|
var story = storiesOf("Components/Button", module);
|
package/Chips/Chips.stories.js
CHANGED
|
@@ -2,8 +2,8 @@ import React from "react";
|
|
|
2
2
|
import { storiesOf } from "@storybook/react";
|
|
3
3
|
import { Story, StoryReadme, StorySandboxCode, StorySandbox, StorySandboxExample } from "@webiny/storybook-utils/Story";
|
|
4
4
|
import readme from "./README.md";
|
|
5
|
-
import { ReactComponent as BaselineDoneIcon } from "
|
|
6
|
-
import { ReactComponent as BaselineEmailIcon } from "
|
|
5
|
+
import { ReactComponent as BaselineDoneIcon } from "./icons/baseline-done-24px.svg";
|
|
6
|
+
import { ReactComponent as BaselineEmailIcon } from "./icons/baseline-email-24px.svg";
|
|
7
7
|
import { Chip, ChipIcon, Chips } from "./index";
|
|
8
8
|
var story = storiesOf("Components/Chips", module);
|
|
9
9
|
story.add("usage", function () {
|
package/Icon/Icon.stories.js
CHANGED
|
@@ -2,10 +2,10 @@ import React from "react";
|
|
|
2
2
|
import { storiesOf } from "@storybook/react";
|
|
3
3
|
import { Story, StoryReadme, StorySandbox } from "@webiny/storybook-utils/Story";
|
|
4
4
|
import readme from "./../Icon/README.md";
|
|
5
|
-
import { ReactComponent as AutoRenewIcon } from "
|
|
6
|
-
import { ReactComponent as CloudDoneIcon } from "
|
|
7
|
-
import { ReactComponent as BaselineDeleteIcon } from "
|
|
8
|
-
import { ReactComponent as BaselineDoneIcon } from "
|
|
5
|
+
import { ReactComponent as AutoRenewIcon } from "./svg/baseline-autorenew-24px.svg";
|
|
6
|
+
import { ReactComponent as CloudDoneIcon } from "./svg/baseline-cloud_done-24px.svg";
|
|
7
|
+
import { ReactComponent as BaselineDeleteIcon } from "./svg/baseline-delete-24px.svg";
|
|
8
|
+
import { ReactComponent as BaselineDoneIcon } from "./svg/baseline-done-24px.svg";
|
|
9
9
|
import { Icon } from "./Icon";
|
|
10
10
|
var story = storiesOf("Components/Icon", module);
|
|
11
11
|
story.add("usage", function () {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { ReactComponent as CropIcon } from "
|
|
2
|
+
import { ReactComponent as CropIcon } from "./icons/crop.svg";
|
|
3
3
|
import { IconButton } from "../../Button";
|
|
4
4
|
import { Tooltip } from "../../Tooltip";
|
|
5
5
|
import Cropper from "cropperjs";
|
|
@@ -7,7 +7,7 @@ import _createSuper from "@babel/runtime/helpers/createSuper";
|
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
8
|
import _debounce from "lodash/debounce";
|
|
9
9
|
import React from "react";
|
|
10
|
-
import { ReactComponent as FilterIcon } from "
|
|
10
|
+
import { ReactComponent as FilterIcon } from "./icons/filter.svg";
|
|
11
11
|
import { Slider } from "../../Slider";
|
|
12
12
|
import { IconButton, ButtonDefault } from "../../Button";
|
|
13
13
|
import { Tooltip } from "../../Tooltip";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { ReactComponent as FlipIcon } from "
|
|
2
|
+
import { ReactComponent as FlipIcon } from "./icons/flip.svg";
|
|
3
3
|
import Cropper from "cropperjs";
|
|
4
4
|
import "cropperjs/dist/cropper.css";
|
|
5
5
|
import { IconButton, ButtonDefault } from "../../Button";
|
|
@@ -7,7 +7,7 @@ import _createSuper from "@babel/runtime/helpers/createSuper";
|
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
8
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
9
9
|
import React from "react";
|
|
10
|
-
import { ReactComponent as RotateRight } from "
|
|
10
|
+
import { ReactComponent as RotateRight } from "./icons/rotateRight.svg";
|
|
11
11
|
import { Slider } from "../../Slider";
|
|
12
12
|
import { Tooltip } from "../../Tooltip";
|
|
13
13
|
import { IconButton } from "../../Button";
|
package/ImageUpload/Image.js
CHANGED
|
@@ -5,9 +5,9 @@ import _createSuper from "@babel/runtime/helpers/createSuper";
|
|
|
5
5
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
6
6
|
import * as React from "react";
|
|
7
7
|
import classNames from "classnames";
|
|
8
|
-
import { ReactComponent as AddImageIcon } from "
|
|
9
|
-
import { ReactComponent as RemoveImageIcon } from "
|
|
10
|
-
import { ReactComponent as EditImageIcon } from "
|
|
8
|
+
import { ReactComponent as AddImageIcon } from "./icons/round-add_photo_alternate-24px.svg";
|
|
9
|
+
import { ReactComponent as RemoveImageIcon } from "./icons/round-close-24px.svg";
|
|
10
|
+
import { ReactComponent as EditImageIcon } from "./icons/round-edit-24px.svg";
|
|
11
11
|
import { Typography } from "../Typography";
|
|
12
12
|
import { CircularProgress } from "../Progress";
|
|
13
13
|
import { AddImageIconWrapper, AddImageWrapper, AddImageWrapperRound, EditImage, ImagePreviewWrapper, RemoveImage } from "./styled";
|
package/Input/Input.stories.js
CHANGED
|
@@ -3,10 +3,10 @@ import { storiesOf } from "@storybook/react";
|
|
|
3
3
|
import { Story, StoryReadme, StorySandboxCode, StorySandbox, StorySandboxExample } from "@webiny/storybook-utils/Story";
|
|
4
4
|
import { withKnobs, boolean } from "@storybook/addon-knobs";
|
|
5
5
|
import readme from "./../Input/README.md";
|
|
6
|
-
import { ReactComponent as AutoRenewIcon } from "
|
|
7
|
-
import { ReactComponent as CloudDoneIcon } from "
|
|
8
|
-
import { ReactComponent as BaselineDeleteIcon } from "
|
|
9
|
-
import { ReactComponent as BaselineDoneIcon } from "
|
|
6
|
+
import { ReactComponent as AutoRenewIcon } from "./svg/baseline-autorenew-24px.svg";
|
|
7
|
+
import { ReactComponent as CloudDoneIcon } from "./svg/baseline-cloud_done-24px.svg";
|
|
8
|
+
import { ReactComponent as BaselineDeleteIcon } from "./svg/baseline-delete-24px.svg";
|
|
9
|
+
import { ReactComponent as BaselineDoneIcon } from "./svg/baseline-done-24px.svg";
|
|
10
10
|
import { Form } from "@webiny/form";
|
|
11
11
|
import { Input } from "./Input";
|
|
12
12
|
import { validation } from "@webiny/validation";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { IconButton } from "../../../Button";
|
|
3
|
-
import { ReactComponent as AutoRenew } from "
|
|
4
|
-
import { ReactComponent as Pen } from "
|
|
5
|
-
import { ReactComponent as Delete } from "
|
|
6
|
-
import { ReactComponent as Sort } from "
|
|
7
|
-
import { ReactComponent as Filter } from "
|
|
8
|
-
import { ReactComponent as NavigateBefore } from "
|
|
9
|
-
import { ReactComponent as NavigateNext } from "
|
|
10
|
-
import { ReactComponent as TuneIcon } from "
|
|
3
|
+
import { ReactComponent as AutoRenew } from "./baseline-autorenew-24px.svg";
|
|
4
|
+
import { ReactComponent as Pen } from "./baseline-edit-24px.svg";
|
|
5
|
+
import { ReactComponent as Delete } from "./baseline-delete-24px.svg";
|
|
6
|
+
import { ReactComponent as Sort } from "./baseline-sort-24px.svg";
|
|
7
|
+
import { ReactComponent as Filter } from "./filter_alt-24px.svg";
|
|
8
|
+
import { ReactComponent as NavigateBefore } from "./baseline-navigate_before-24px.svg";
|
|
9
|
+
import { ReactComponent as NavigateNext } from "./baseline-navigate_next-24px.svg";
|
|
10
|
+
import { ReactComponent as TuneIcon } from "./baseline-tune-24px.svg";
|
|
11
11
|
export var RefreshIcon = function RefreshIcon(props) {
|
|
12
12
|
return /*#__PURE__*/React.createElement(IconButton, Object.assign({
|
|
13
13
|
icon: /*#__PURE__*/React.createElement(AutoRenew, null)
|
package/List/List.stories.js
CHANGED
|
@@ -4,10 +4,10 @@ import { Story, StoryReadme, StorySandboxCode, StorySandbox, StorySandboxExample
|
|
|
4
4
|
import readme from "./../List/README.md";
|
|
5
5
|
import { Icon } from "./../Icon";
|
|
6
6
|
import { ButtonPrimary } from "./../Button";
|
|
7
|
-
import { ReactComponent as AutoRenewIcon } from "
|
|
8
|
-
import { ReactComponent as CloudDoneIcon } from "
|
|
9
|
-
import { ReactComponent as BaselineDeleteIcon } from "
|
|
10
|
-
import { ReactComponent as BaselineDoneIcon } from "
|
|
7
|
+
import { ReactComponent as AutoRenewIcon } from "./icons/baseline-autorenew-24px.svg";
|
|
8
|
+
import { ReactComponent as CloudDoneIcon } from "./icons/baseline-cloud_done-24px.svg";
|
|
9
|
+
import { ReactComponent as BaselineDeleteIcon } from "./icons/baseline-delete-24px.svg";
|
|
10
|
+
import { ReactComponent as BaselineDoneIcon } from "./icons/baseline-done-24px.svg";
|
|
11
11
|
import { List, ListItem, ListItemText, ListItemTextSecondary, ListItemMeta, ListItemGraphic, ListItemTextPrimary } from "./List";
|
|
12
12
|
var story = storiesOf("Components/List", module);
|
|
13
13
|
story.add("simple list", function () {
|
|
@@ -100,28 +100,13 @@ export var RichTextEditor = function RichTextEditor(props) {
|
|
|
100
100
|
return tools;
|
|
101
101
|
}, {})
|
|
102
102
|
}));
|
|
103
|
-
return
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
case 0:
|
|
108
|
-
if (!(!editorRef.current || typeof editorRef.current.destroy !== "function")) {
|
|
109
|
-
_context2.next = 2;
|
|
110
|
-
break;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
return _context2.abrupt("return");
|
|
114
|
-
|
|
115
|
-
case 2:
|
|
116
|
-
editorRef.current.destroy();
|
|
103
|
+
return function () {
|
|
104
|
+
if (!editorRef.current || typeof editorRef.current.destroy !== "function") {
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
117
107
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
return _context2.stop();
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
}, _callee2);
|
|
124
|
-
}));
|
|
108
|
+
editorRef.current.destroy();
|
|
109
|
+
};
|
|
125
110
|
}, []);
|
|
126
111
|
var label = props.label,
|
|
127
112
|
description = props.description,
|
package/Ripple/Ripple.stories.js
CHANGED
|
@@ -4,10 +4,10 @@ import { Story, StoryReadme, StorySandboxCode, StorySandbox, StorySandboxExample
|
|
|
4
4
|
import readme from "./../Ripple/README.md";
|
|
5
5
|
import { Icon } from "./../Icon";
|
|
6
6
|
import { withKnobs, boolean } from "@storybook/addon-knobs";
|
|
7
|
-
import { ReactComponent as AutoRenewIcon } from "
|
|
8
|
-
import { ReactComponent as CloudDoneIcon } from "
|
|
9
|
-
import { ReactComponent as BaselineDeleteIcon } from "
|
|
10
|
-
import { ReactComponent as BaselineDoneIcon } from "
|
|
7
|
+
import { ReactComponent as AutoRenewIcon } from "./svg/baseline-autorenew-24px.svg";
|
|
8
|
+
import { ReactComponent as CloudDoneIcon } from "./svg/baseline-cloud_done-24px.svg";
|
|
9
|
+
import { ReactComponent as BaselineDeleteIcon } from "./svg/baseline-delete-24px.svg";
|
|
10
|
+
import { ReactComponent as BaselineDoneIcon } from "./svg/baseline-done-24px.svg";
|
|
11
11
|
import { Ripple } from "./Ripple";
|
|
12
12
|
var story = storiesOf("Components/Ripple", module);
|
|
13
13
|
story.addDecorator(withKnobs);
|
package/Select/Select.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { SelectProps as RmwcSelectProps } from "@rmwc/select";
|
|
3
3
|
import { FormComponentProps } from "../types";
|
|
4
|
-
declare type SelectProps = FormComponentProps & RmwcSelectProps & {
|
|
4
|
+
export declare type SelectProps = FormComponentProps & RmwcSelectProps & {
|
|
5
5
|
label?: string;
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
description?: string;
|
package/Tabs/Tabs.stories.js
CHANGED
|
@@ -2,8 +2,8 @@ import * as React from "react";
|
|
|
2
2
|
import { storiesOf } from "@storybook/react";
|
|
3
3
|
import { Story, StoryReadme, StorySandboxCode, StorySandbox, StorySandboxExample } from "@webiny/storybook-utils/Story";
|
|
4
4
|
import readme from "./../Tabs/README.md";
|
|
5
|
-
import { ReactComponent as DeleteIcon } from "
|
|
6
|
-
import { ReactComponent as DoneIcon } from "
|
|
5
|
+
import { ReactComponent as DeleteIcon } from "./svg/baseline-delete-24px.svg";
|
|
6
|
+
import { ReactComponent as DoneIcon } from "./svg/baseline-done-24px.svg";
|
|
7
7
|
import { withKnobs } from "@storybook/addon-knobs";
|
|
8
8
|
import { Tabs, Tab } from "./index";
|
|
9
9
|
var story = storiesOf("Components/Tabs", module);
|
package/Tags/Tags.js
CHANGED
|
@@ -13,7 +13,7 @@ import { Input } from "../Input";
|
|
|
13
13
|
import { Chips, Chip } from "../Chips";
|
|
14
14
|
import { css } from "emotion";
|
|
15
15
|
import keycode from "keycode";
|
|
16
|
-
import { ReactComponent as BaselineCloseIcon } from "
|
|
16
|
+
import { ReactComponent as BaselineCloseIcon } from "./icons/baseline-close-24px.svg";
|
|
17
17
|
import { FormElementMessage } from "../FormElementMessage";
|
|
18
18
|
var tagsStyle = /*#__PURE__*/css({
|
|
19
19
|
position: "relative",
|
|
@@ -3,10 +3,10 @@ import { storiesOf } from "@storybook/react";
|
|
|
3
3
|
import { Story, StoryReadme, StorySandbox } from "@webiny/storybook-utils/Story";
|
|
4
4
|
import readme from "./../TopAppBar/README.md";
|
|
5
5
|
import { withKnobs, text } from "@storybook/addon-knobs";
|
|
6
|
-
import { ReactComponent as AutoRenewIcon } from "
|
|
7
|
-
import { ReactComponent as CloudDoneIcon } from "
|
|
8
|
-
import { ReactComponent as EnvelopeIcon } from "
|
|
9
|
-
import { ReactComponent as MenuIcon } from "
|
|
6
|
+
import { ReactComponent as AutoRenewIcon } from "./icons/baseline-autorenew-24px.svg";
|
|
7
|
+
import { ReactComponent as CloudDoneIcon } from "./icons/baseline-cloud_done-24px.svg";
|
|
8
|
+
import { ReactComponent as EnvelopeIcon } from "./icons/baseline-email-24px.svg";
|
|
9
|
+
import { ReactComponent as MenuIcon } from "./icons/baseline-menu-24px.svg";
|
|
10
10
|
import { TopAppBar, TopAppBarSection, TopAppBarNavigationIcon, TopAppBarTitle, TopAppBarActionItem } from "./index";
|
|
11
11
|
var story = storiesOf("Components/TopAppBar", module);
|
|
12
12
|
story.addDecorator(withKnobs);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/ui",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.22.0-beta.2",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
],
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@babel/runtime": "7.16.
|
|
17
|
+
"@babel/runtime": "7.16.7",
|
|
18
18
|
"@editorjs/editorjs": "2.22.3",
|
|
19
|
-
"@emotion/core": "10.
|
|
20
|
-
"@emotion/styled": "10.0
|
|
19
|
+
"@emotion/core": "10.3.1",
|
|
20
|
+
"@emotion/styled": "10.3.0",
|
|
21
21
|
"@material/base": "3.1.0",
|
|
22
22
|
"@material/textfield": "3.2.0",
|
|
23
23
|
"@rmwc/base": "5.7.2",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@rmwc/top-app-bar": "5.7.2",
|
|
48
48
|
"@rmwc/types": "5.6.0",
|
|
49
49
|
"@rmwc/typography": "5.7.2",
|
|
50
|
-
"@svgr/webpack": "
|
|
50
|
+
"@svgr/webpack": "6.2.0",
|
|
51
51
|
"brace": "0.11.1",
|
|
52
52
|
"classnames": "2.3.1",
|
|
53
53
|
"cropperjs": "1.5.12",
|
|
@@ -72,23 +72,22 @@
|
|
|
72
72
|
"shortid": "2.2.16"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
|
-
"@babel/cli": "^7.
|
|
76
|
-
"@babel/core": "^7.
|
|
77
|
-
"@babel/plugin-proposal-class-properties": "^7.
|
|
78
|
-
"@babel/preset-env": "^7.
|
|
79
|
-
"@babel/preset-typescript": "^7.
|
|
75
|
+
"@babel/cli": "^7.16.0",
|
|
76
|
+
"@babel/core": "^7.16.0",
|
|
77
|
+
"@babel/plugin-proposal-class-properties": "^7.16.0",
|
|
78
|
+
"@babel/preset-env": "^7.16.4",
|
|
79
|
+
"@babel/preset-typescript": "^7.16.0",
|
|
80
80
|
"@storybook/addon-info": "^5.2.8",
|
|
81
81
|
"@storybook/addon-knobs": "^5.0.5",
|
|
82
82
|
"@storybook/addon-links": "^5.0.5",
|
|
83
83
|
"@storybook/react": "^5.2.8",
|
|
84
|
-
"@webiny/cli": "^5.
|
|
85
|
-
"@webiny/form": "^5.
|
|
86
|
-
"@webiny/project-utils": "^5.
|
|
87
|
-
"@webiny/storybook-utils": "^5.
|
|
88
|
-
"@webiny/validation": "^5.
|
|
84
|
+
"@webiny/cli": "^5.22.0-beta.2",
|
|
85
|
+
"@webiny/form": "^5.22.0-beta.2",
|
|
86
|
+
"@webiny/project-utils": "^5.22.0-beta.2",
|
|
87
|
+
"@webiny/storybook-utils": "^5.22.0-beta.2",
|
|
88
|
+
"@webiny/validation": "^5.22.0-beta.2",
|
|
89
89
|
"babel-loader": "^8.0.0-beta.6",
|
|
90
90
|
"babel-plugin-emotion": "^9.2.8",
|
|
91
|
-
"babel-plugin-named-asset-import": "^1.0.0-next.3e165448",
|
|
92
91
|
"execa": "^5.0.0",
|
|
93
92
|
"jest-dom": "^3.0.0",
|
|
94
93
|
"ncp": "^2.0.0",
|
|
@@ -104,8 +103,8 @@
|
|
|
104
103
|
"webpack": "^4.46.0"
|
|
105
104
|
},
|
|
106
105
|
"peerDependencies": {
|
|
107
|
-
"react": "16.14.0",
|
|
108
|
-
"react-dom": "16.14.0"
|
|
106
|
+
"react": "^16.14.0",
|
|
107
|
+
"react-dom": "^16.14.0"
|
|
109
108
|
},
|
|
110
109
|
"publishConfig": {
|
|
111
110
|
"access": "public",
|
|
@@ -123,11 +122,6 @@
|
|
|
123
122
|
},
|
|
124
123
|
"setupTestFrameworkScriptFile": "jest-extended"
|
|
125
124
|
},
|
|
126
|
-
"svgo": {
|
|
127
|
-
"plugins": {
|
|
128
|
-
"removeViewBox": false
|
|
129
|
-
}
|
|
130
|
-
},
|
|
131
125
|
"adio": {
|
|
132
126
|
"ignore": {
|
|
133
127
|
"dependencies": [
|
|
@@ -138,5 +132,5 @@
|
|
|
138
132
|
]
|
|
139
133
|
}
|
|
140
134
|
},
|
|
141
|
-
"gitHead": "
|
|
135
|
+
"gitHead": "c472d20682885fb538354c206a148deaae14bfe8"
|
|
142
136
|
}
|
|
@@ -81,8 +81,8 @@ export declare class TextField extends FoundationComponent<MDCTextFieldFoundatio
|
|
|
81
81
|
hasOutline: () => boolean;
|
|
82
82
|
};
|
|
83
83
|
getInputAdapterMethods(): {
|
|
84
|
-
registerInputInteractionHandler: <K
|
|
85
|
-
deregisterInputInteractionHandler: <K
|
|
84
|
+
registerInputInteractionHandler: <K>(evtType: K, handler: SpecificEventListener<any>) => void;
|
|
85
|
+
deregisterInputInteractionHandler: <K>(evtType: K, handler: SpecificEventListener<any>) => void;
|
|
86
86
|
getNativeInput: () => (HTMLInputElement & HTMLTextAreaElement) | null;
|
|
87
87
|
};
|
|
88
88
|
getFoundationMap(): {
|
|
@@ -81,8 +81,8 @@ export declare class TextField extends FoundationComponent<MDCTextFieldFoundatio
|
|
|
81
81
|
hasOutline: () => boolean;
|
|
82
82
|
};
|
|
83
83
|
getInputAdapterMethods(): {
|
|
84
|
-
registerInputInteractionHandler: <K
|
|
85
|
-
deregisterInputInteractionHandler: <K
|
|
84
|
+
registerInputInteractionHandler: <K>(evtType: K, handler: SpecificEventListener<any>) => void;
|
|
85
|
+
deregisterInputInteractionHandler: <K>(evtType: K, handler: SpecificEventListener<any>) => void;
|
|
86
86
|
getNativeInput: () => (HTMLInputElement & HTMLTextAreaElement) | null;
|
|
87
87
|
};
|
|
88
88
|
getFoundationMap(): {
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
},
|
|
29
29
|
"homepage": "https://github.com/jamesmfriedman/rmwc/tree/master/src/textfield#readme",
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"react": "
|
|
32
|
-
"react-dom": "
|
|
31
|
+
"react": "16.14.0",
|
|
32
|
+
"react-dom": "16.14.0"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@material/textfield": "^3.1.0",
|