@shopgate/pwa-ui-ios 7.30.0-alpha.10 → 7.30.0-alpha.12

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.
@@ -7,18 +7,20 @@ import { APP_BAR_BELOW, APP_BAR_BELOW_BEFORE, APP_BAR_BELOW_AFTER } from '@shopg
7
7
  * @param {Object} props The component props.
8
8
  * @returns {JSX}
9
9
  */
10
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
10
11
  function Below({
11
12
  elements
12
13
  }) {
13
- return /*#__PURE__*/React.createElement(Fragment, {
14
- key: "below"
15
- }, /*#__PURE__*/React.createElement(Portal, {
16
- name: APP_BAR_BELOW_BEFORE
17
- }), /*#__PURE__*/React.createElement(Portal, {
18
- name: APP_BAR_BELOW
19
- }, elements), /*#__PURE__*/React.createElement(Portal, {
20
- name: APP_BAR_BELOW_AFTER
21
- }));
14
+ return /*#__PURE__*/_jsxs(Fragment, {
15
+ children: [/*#__PURE__*/_jsx(Portal, {
16
+ name: APP_BAR_BELOW_BEFORE
17
+ }), /*#__PURE__*/_jsx(Portal, {
18
+ name: APP_BAR_BELOW,
19
+ children: elements
20
+ }), /*#__PURE__*/_jsx(Portal, {
21
+ name: APP_BAR_BELOW_AFTER
22
+ })]
23
+ }, "below");
22
24
  }
23
25
  Below.defaultProps = {
24
26
  elements: null
@@ -7,18 +7,20 @@ import { APP_BAR_CENTER, APP_BAR_CENTER_BEFORE, APP_BAR_CENTER_AFTER } from '@sh
7
7
  * @param {Object} props The component props.
8
8
  * @returns {JSX}
9
9
  */
10
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
10
11
  function Center({
11
12
  elements
12
13
  }) {
13
- return /*#__PURE__*/React.createElement(Fragment, {
14
- key: "center"
15
- }, /*#__PURE__*/React.createElement(Portal, {
16
- name: APP_BAR_CENTER_BEFORE
17
- }), /*#__PURE__*/React.createElement(Portal, {
18
- name: APP_BAR_CENTER
19
- }, elements), /*#__PURE__*/React.createElement(Portal, {
20
- name: APP_BAR_CENTER_AFTER
21
- }));
14
+ return /*#__PURE__*/_jsxs(Fragment, {
15
+ children: [/*#__PURE__*/_jsx(Portal, {
16
+ name: APP_BAR_CENTER_BEFORE
17
+ }), /*#__PURE__*/_jsx(Portal, {
18
+ name: APP_BAR_CENTER,
19
+ children: elements
20
+ }), /*#__PURE__*/_jsx(Portal, {
21
+ name: APP_BAR_CENTER_AFTER
22
+ })]
23
+ }, "center");
22
24
  }
23
25
  Center.defaultProps = {
24
26
  elements: null
@@ -1,3 +1,4 @@
1
+ import _inheritsLoose from "@babel/runtime/helpers/inheritsLoose";
1
2
  import React, { PureComponent } from 'react';
2
3
  import PropTypes from 'prop-types';
3
4
  import styles from "./style";
@@ -5,11 +6,17 @@ import styles from "./style";
5
6
  /**
6
7
  * The AppBarField component.
7
8
  */
8
- class AppBarField extends PureComponent {
9
+ import { jsx as _jsx } from "react/jsx-runtime";
10
+ let AppBarField = /*#__PURE__*/function (_PureComponent) {
11
+ function AppBarField() {
12
+ return _PureComponent.apply(this, arguments) || this;
13
+ }
14
+ _inheritsLoose(AppBarField, _PureComponent);
15
+ var _proto = AppBarField.prototype;
9
16
  /**
10
17
  * @returns {JSX}
11
18
  */
12
- render() {
19
+ _proto.render = function render() {
13
20
  const {
14
21
  fieldRef,
15
22
  onChange,
@@ -18,17 +25,19 @@ class AppBarField extends PureComponent {
18
25
  const {
19
26
  __
20
27
  } = this.context.i18n();
21
- return /*#__PURE__*/React.createElement("form", {
28
+ return /*#__PURE__*/_jsx("form", {
22
29
  className: styles.form,
23
- onSubmit: onSubmit
24
- }, /*#__PURE__*/React.createElement("input", {
25
- className: styles.field,
26
- onChange: onChange,
27
- placeholder: __('search.placeholder'),
28
- ref: fieldRef
29
- }));
30
- }
31
- }
30
+ onSubmit: onSubmit,
31
+ children: /*#__PURE__*/_jsx("input", {
32
+ className: styles.field,
33
+ onChange: onChange,
34
+ placeholder: __('search.placeholder'),
35
+ ref: fieldRef
36
+ })
37
+ });
38
+ };
39
+ return AppBarField;
40
+ }(PureComponent);
32
41
  AppBarField.defaultProps = {
33
42
  fieldRef: null,
34
43
  onChange: null,
@@ -1,4 +1,4 @@
1
- import _extends from "@babel/runtime/helpers/extends";
1
+ import _inheritsLoose from "@babel/runtime/helpers/inheritsLoose";
2
2
  import React, { PureComponent } from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import styles from "./style";
@@ -6,11 +6,17 @@ import styles from "./style";
6
6
  /**
7
7
  * The AppBarIcon component.
8
8
  */
9
- class AppBarIcon extends PureComponent {
9
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
10
+ let AppBarIcon = /*#__PURE__*/function (_PureComponent) {
11
+ function AppBarIcon() {
12
+ return _PureComponent.apply(this, arguments) || this;
13
+ }
14
+ _inheritsLoose(AppBarIcon, _PureComponent);
15
+ var _proto = AppBarIcon.prototype;
10
16
  /**
11
17
  * @returns {JSX}
12
18
  */
13
- render() {
19
+ _proto.render = function render() {
14
20
  const {
15
21
  background,
16
22
  badge: Badge,
@@ -22,7 +28,7 @@ class AppBarIcon extends PureComponent {
22
28
  'aria-label': ariaLabel,
23
29
  ...iconProps
24
30
  } = this.props;
25
- return /*#__PURE__*/React.createElement("div", {
31
+ return /*#__PURE__*/_jsxs("div", {
26
32
  onKeyDown: onClick,
27
33
  tabIndex: 0,
28
34
  role: "button",
@@ -34,14 +40,14 @@ class AppBarIcon extends PureComponent {
34
40
  background,
35
41
  color
36
42
  },
37
- "data-test-id": testId
38
- }, /*#__PURE__*/React.createElement(Icon, _extends({
39
- key: "icon"
40
- }, iconProps)), Badge && /*#__PURE__*/React.createElement(Badge, {
41
- key: "badge"
42
- }));
43
- }
44
- }
43
+ "data-test-id": testId,
44
+ children: [/*#__PURE__*/_jsx(Icon, {
45
+ ...iconProps
46
+ }, "icon"), Badge && /*#__PURE__*/_jsx(Badge, {}, "badge")]
47
+ });
48
+ };
49
+ return AppBarIcon;
50
+ }(PureComponent);
45
51
  AppBarIcon.defaultProps = {
46
52
  'aria-hidden': false,
47
53
  'aria-label': null,
@@ -7,18 +7,20 @@ import { APP_BAR_LEFT, APP_BAR_LEFT_BEFORE, APP_BAR_LEFT_AFTER } from '@shopgate
7
7
  * @param {Object} props The component props.
8
8
  * @returns {JSX}
9
9
  */
10
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
10
11
  function Left({
11
12
  elements
12
13
  }) {
13
- return /*#__PURE__*/React.createElement(Fragment, {
14
- key: "left"
15
- }, /*#__PURE__*/React.createElement(Portal, {
16
- name: APP_BAR_LEFT_BEFORE
17
- }), /*#__PURE__*/React.createElement(Portal, {
18
- name: APP_BAR_LEFT
19
- }, elements), /*#__PURE__*/React.createElement(Portal, {
20
- name: APP_BAR_LEFT_AFTER
21
- }));
14
+ return /*#__PURE__*/_jsxs(Fragment, {
15
+ children: [/*#__PURE__*/_jsx(Portal, {
16
+ name: APP_BAR_LEFT_BEFORE
17
+ }), /*#__PURE__*/_jsx(Portal, {
18
+ name: APP_BAR_LEFT,
19
+ children: elements
20
+ }), /*#__PURE__*/_jsx(Portal, {
21
+ name: APP_BAR_LEFT_AFTER
22
+ })]
23
+ }, "left");
22
24
  }
23
25
  Left.defaultProps = {
24
26
  elements: null
@@ -7,18 +7,20 @@ import { APP_BAR_RIGHT, APP_BAR_RIGHT_BEFORE, APP_BAR_RIGHT_AFTER } from '@shopg
7
7
  * @param {Object} props The component props.
8
8
  * @returns {JSX}
9
9
  */
10
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
10
11
  function Right({
11
12
  elements
12
13
  }) {
13
- return /*#__PURE__*/React.createElement(Fragment, {
14
- key: "right"
15
- }, /*#__PURE__*/React.createElement(Portal, {
16
- name: APP_BAR_RIGHT_BEFORE
17
- }), /*#__PURE__*/React.createElement(Portal, {
18
- name: APP_BAR_RIGHT
19
- }, elements), /*#__PURE__*/React.createElement(Portal, {
20
- name: APP_BAR_RIGHT_AFTER
21
- }));
14
+ return /*#__PURE__*/_jsxs(Fragment, {
15
+ children: [/*#__PURE__*/_jsx(Portal, {
16
+ name: APP_BAR_RIGHT_BEFORE
17
+ }), /*#__PURE__*/_jsx(Portal, {
18
+ name: APP_BAR_RIGHT,
19
+ children: elements
20
+ }), /*#__PURE__*/_jsx(Portal, {
21
+ name: APP_BAR_RIGHT_AFTER
22
+ })]
23
+ }, "right");
22
24
  }
23
25
  Right.defaultProps = {
24
26
  elements: null
@@ -1,3 +1,4 @@
1
+ import _inheritsLoose from "@babel/runtime/helpers/inheritsLoose";
1
2
  import React, { PureComponent } from 'react';
2
3
  import PropTypes from 'prop-types';
3
4
  import classNames from 'classnames';
@@ -6,16 +7,22 @@ import styles from "./style";
6
7
  /**
7
8
  * The AppBarTitle component.
8
9
  */
9
- class AppBarTitle extends PureComponent {
10
+ import { jsx as _jsx } from "react/jsx-runtime";
11
+ let AppBarTitle = /*#__PURE__*/function (_PureComponent) {
12
+ function AppBarTitle() {
13
+ return _PureComponent.apply(this, arguments) || this;
14
+ }
15
+ _inheritsLoose(AppBarTitle, _PureComponent);
16
+ var _proto = AppBarTitle.prototype;
10
17
  /**
11
18
  * @returns {JSX.Element}
12
19
  */
13
- render() {
20
+ _proto.render = function render() {
14
21
  const {
15
22
  title
16
23
  } = this.props;
17
24
  if (!title) return null;
18
- return /*#__PURE__*/React.createElement("div", {
25
+ return /*#__PURE__*/_jsx("div", {
19
26
  className: classNames(styles, 'theme__app-bar__title'),
20
27
  role: "heading",
21
28
  "aria-level": "1",
@@ -26,6 +33,7 @@ class AppBarTitle extends PureComponent {
26
33
  __html: title
27
34
  }
28
35
  });
29
- }
30
- }
36
+ };
37
+ return AppBarTitle;
38
+ }(PureComponent);
31
39
  export default AppBarTitle;
package/AppBar/index.js CHANGED
@@ -19,6 +19,7 @@ import styles from "./style";
19
19
  * Updates the --app-bar-height custom property
20
20
  * @param {Object} ref The app bar ref.
21
21
  */
22
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
22
23
  const updateAppBarHeight = ref => {
23
24
  if (!ref.current) {
24
25
  return;
@@ -59,25 +60,28 @@ const AppBar = ({
59
60
  };
60
61
  }, [contentRef, observer]);
61
62
  const sectionClasses = classnames(styles.outer, classes.outer, 'ui-ios__app-bar');
62
- return /*#__PURE__*/React.createElement("section", {
63
+ return /*#__PURE__*/_jsxs("section", {
63
64
  className: sectionClasses,
64
65
  "data-test-id": "Navigator",
65
66
  style: style,
66
67
  "aria-hidden": ariaHidden,
67
- ref: contentRef
68
- }, /*#__PURE__*/React.createElement(SurroundPortals, {
69
- portalName: APP_BAR_CONTENT
70
- }, /*#__PURE__*/React.createElement("div", {
71
- className: classnames(styles.inner, classes.inner)
72
- }, /*#__PURE__*/React.createElement(Left, {
73
- elements: left
74
- }), /*#__PURE__*/React.createElement(Center, {
75
- elements: center
76
- }), /*#__PURE__*/React.createElement(Right, {
77
- elements: right
78
- }))), /*#__PURE__*/React.createElement(Below, {
79
- elements: below
80
- }));
68
+ ref: contentRef,
69
+ children: [/*#__PURE__*/_jsx(SurroundPortals, {
70
+ portalName: APP_BAR_CONTENT,
71
+ children: /*#__PURE__*/_jsxs("div", {
72
+ className: classnames(styles.inner, classes.inner),
73
+ children: [/*#__PURE__*/_jsx(Left, {
74
+ elements: left
75
+ }), /*#__PURE__*/_jsx(Center, {
76
+ elements: center
77
+ }), /*#__PURE__*/_jsx(Right, {
78
+ elements: right
79
+ })]
80
+ })
81
+ }), /*#__PURE__*/_jsx(Below, {
82
+ elements: below
83
+ })]
84
+ });
81
85
  };
82
86
  AppBar.defaultProps = {
83
87
  'aria-hidden': null,
@@ -8,6 +8,7 @@ import styles from "../../style";
8
8
  * @param {Object} props The component props.
9
9
  * @returns {JSX}
10
10
  */
11
+ import { jsx as _jsx } from "react/jsx-runtime";
11
12
  const Buttons = ({
12
13
  actions
13
14
  }) => actions.map(({
@@ -15,17 +16,17 @@ const Buttons = ({
15
16
  action,
16
17
  type = 'normal',
17
18
  disabled = false
18
- }) => /*#__PURE__*/React.createElement(Button, {
19
- key: label,
19
+ }) => /*#__PURE__*/_jsx(Button, {
20
20
  className: `${styles.button} ${type === 'primary' ? styles.buttonPrimary : ''}`,
21
21
  type: "primary",
22
22
  onClick: action,
23
23
  disabled: disabled,
24
- flat: true
25
- }, /*#__PURE__*/React.createElement(I18n.Text, {
26
- className: styles.buttonText,
27
- string: label
28
- })));
24
+ flat: true,
25
+ children: /*#__PURE__*/_jsx(I18n.Text, {
26
+ className: styles.buttonText,
27
+ string: label
28
+ })
29
+ }, label));
29
30
  Buttons.defaultProps = {
30
31
  actions: []
31
32
  };
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import { shallow } from 'enzyme';
3
3
  import Button from '@shopgate/pwa-ui-shared/Button';
4
4
  import Buttons from "./index";
5
+ import { jsx as _jsx } from "react/jsx-runtime";
5
6
  const actions = [{
6
7
  label: 'action0',
7
8
  action: jest.fn()
@@ -14,12 +15,12 @@ const actions = [{
14
15
  }];
15
16
  describe('<Buttons />', () => {
16
17
  it('should not render if no actions are passed', () => {
17
- const wrapper = shallow(/*#__PURE__*/React.createElement(Buttons, null));
18
+ const wrapper = shallow(/*#__PURE__*/_jsx(Buttons, {}));
18
19
  expect(wrapper).toMatchSnapshot();
19
20
  expect(wrapper.instance()).toEqual(null);
20
21
  });
21
22
  it('should render buttons', () => {
22
- const wrapper = shallow(/*#__PURE__*/React.createElement(Buttons, {
23
+ const wrapper = shallow(/*#__PURE__*/_jsx(Buttons, {
23
24
  actions: actions
24
25
  }));
25
26
  expect(wrapper).toMatchSnapshot();
@@ -6,16 +6,18 @@ import styles from "../../style";
6
6
  * @param {Object} props The component props.
7
7
  * @returns {JSX}
8
8
  */
9
+ import { jsx as _jsx } from "react/jsx-runtime";
9
10
  const Content = ({
10
11
  content
11
12
  }) => {
12
13
  if (!content) {
13
14
  return null;
14
15
  }
15
- return /*#__PURE__*/React.createElement("div", {
16
+ return /*#__PURE__*/_jsx("div", {
16
17
  className: styles.body,
17
- id: "basicDialogDesc"
18
- }, content);
18
+ id: "basicDialogDesc",
19
+ children: content
20
+ });
19
21
  };
20
22
  Content.defaultProps = {
21
23
  content: null
@@ -1,14 +1,15 @@
1
1
  import React from 'react';
2
2
  import { shallow } from 'enzyme';
3
3
  import Content from "./index";
4
+ import { jsx as _jsx } from "react/jsx-runtime";
4
5
  describe('<Content />', () => {
5
6
  it('should not render if no content is passed', () => {
6
- const wrapper = shallow(/*#__PURE__*/React.createElement(Content, null));
7
+ const wrapper = shallow(/*#__PURE__*/_jsx(Content, {}));
7
8
  expect(wrapper).toMatchSnapshot();
8
9
  expect(wrapper.instance()).toEqual(null);
9
10
  });
10
11
  it('should render content components', () => {
11
- const wrapper = shallow(/*#__PURE__*/React.createElement(Content, {
12
+ const wrapper = shallow(/*#__PURE__*/_jsx(Content, {
12
13
  content: "Hello World"
13
14
  }));
14
15
  expect(wrapper).toMatchSnapshot();
@@ -8,22 +8,25 @@ import styles from "../../style";
8
8
  * @param {Object} props The component props.
9
9
  * @returns {JSX}
10
10
  */
11
+ import { jsx as _jsx } from "react/jsx-runtime";
11
12
  const Title = ({
12
13
  title
13
14
  }) => {
14
15
  if (!title) {
15
16
  return null;
16
17
  }
17
- return /*#__PURE__*/React.createElement("div", {
18
+ return /*#__PURE__*/_jsx("div", {
18
19
  className: styles.title,
19
20
  id: "basicDialogTitle",
20
21
  role: "heading",
21
- "aria-level": "2"
22
- }, /*#__PURE__*/React.createElement(Ellipsis, {
23
- rows: 3
24
- }, typeof title === 'string' ? /*#__PURE__*/React.createElement(I18n.Text, {
25
- string: title
26
- }) : title));
22
+ "aria-level": "2",
23
+ children: /*#__PURE__*/_jsx(Ellipsis, {
24
+ rows: 3,
25
+ children: typeof title === 'string' ? /*#__PURE__*/_jsx(I18n.Text, {
26
+ string: title
27
+ }) : title
28
+ })
29
+ });
27
30
  };
28
31
  Title.defaultProps = {
29
32
  title: null
@@ -1,14 +1,15 @@
1
1
  import React from 'react';
2
2
  import { shallow } from 'enzyme';
3
3
  import Title from "./index";
4
+ import { jsx as _jsx } from "react/jsx-runtime";
4
5
  describe('<Title />', () => {
5
6
  it('should not render without a title', () => {
6
- const wrapper = shallow(/*#__PURE__*/React.createElement(Title, null));
7
+ const wrapper = shallow(/*#__PURE__*/_jsx(Title, {}));
7
8
  expect(wrapper).toMatchSnapshot();
8
9
  expect(wrapper.instance()).toEqual(null);
9
10
  });
10
11
  it('should render with a title', () => {
11
- const wrapper = shallow(/*#__PURE__*/React.createElement(Title, {
12
+ const wrapper = shallow(/*#__PURE__*/_jsx(Title, {
12
13
  title: "Some test title"
13
14
  }));
14
15
  expect(wrapper).toMatchSnapshot();
@@ -15,27 +15,33 @@ import styles from "./style";
15
15
  * @param {string | ReactNode} props.title The title of the dialog.
16
16
  * @return {JSX.Element} The rendered dialog.
17
17
  */
18
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
18
19
  const BasicDialog = ({
19
20
  children,
20
21
  actions,
21
22
  title
22
- }) => /*#__PURE__*/React.createElement(FocusTrap, null, /*#__PURE__*/React.createElement("div", {
23
- className: `${styles.container} ui-ios__base-dialog`,
24
- "data-test-id": "basicDialog",
25
- role: "alertdialog",
26
- "aria-modal": true,
27
- "aria-labelledby": "basicDialogTitle basicDialogDesc"
28
- }, /*#__PURE__*/React.createElement("div", {
29
- className: styles.content
30
- }, /*#__PURE__*/React.createElement(Title, {
31
- title: title
32
- }), /*#__PURE__*/React.createElement(Content, {
33
- content: children
34
- })), /*#__PURE__*/React.createElement("div", {
35
- className: styles.actions
36
- }, /*#__PURE__*/React.createElement(Buttons, {
37
- actions: actions
38
- }))));
23
+ }) => /*#__PURE__*/_jsx(FocusTrap, {
24
+ children: /*#__PURE__*/_jsxs("div", {
25
+ className: `${styles.container} ui-ios__base-dialog`,
26
+ "data-test-id": "basicDialog",
27
+ role: "alertdialog",
28
+ "aria-modal": true,
29
+ "aria-labelledby": "basicDialogTitle basicDialogDesc",
30
+ children: [/*#__PURE__*/_jsxs("div", {
31
+ className: styles.content,
32
+ children: [/*#__PURE__*/_jsx(Title, {
33
+ title: title
34
+ }), /*#__PURE__*/_jsx(Content, {
35
+ content: children
36
+ })]
37
+ }), /*#__PURE__*/_jsx("div", {
38
+ className: styles.actions,
39
+ children: /*#__PURE__*/_jsx(Buttons, {
40
+ actions: actions
41
+ })
42
+ })]
43
+ })
44
+ });
39
45
  BasicDialog.defaultProps = {
40
46
  children: null,
41
47
  actions: [],
@@ -4,9 +4,12 @@ import Title from "./components/Title";
4
4
  import Content from "./components/Content";
5
5
  import Buttons from "./components/Buttons";
6
6
  import BasicDialog from "./index";
7
+ import { jsx as _jsx } from "react/jsx-runtime";
7
8
  const props = {
8
9
  title: 'Hello World',
9
- children: /*#__PURE__*/React.createElement("div", null, "Hello World"),
10
+ children: /*#__PURE__*/_jsx("div", {
11
+ children: "Hello World"
12
+ }),
10
13
  actions: [{
11
14
  label: 'action0',
12
15
  action: jest.fn()
@@ -21,13 +24,15 @@ const props = {
21
24
  jest.mock('@shopgate/engage/a11y/components');
22
25
  describe('<BasicDialog />', () => {
23
26
  it('should render with minimal props', () => {
24
- const wrapper = shallow(/*#__PURE__*/React.createElement(BasicDialog, {
27
+ const wrapper = shallow(/*#__PURE__*/_jsx(BasicDialog, {
25
28
  actions: []
26
29
  }));
27
30
  expect(wrapper).toMatchSnapshot();
28
31
  });
29
32
  it('should render as expected', () => {
30
- const wrapper = shallow(/*#__PURE__*/React.createElement(BasicDialog, props));
33
+ const wrapper = shallow(/*#__PURE__*/_jsx(BasicDialog, {
34
+ ...props
35
+ }));
31
36
  expect(wrapper).toMatchSnapshot();
32
37
  expect(wrapper.find(Title).length).toBe(1);
33
38
  expect(wrapper.find(Title).props().title).toEqual(props.title);
package/icons/CartIcon.js CHANGED
@@ -1,4 +1,3 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
1
  import React from 'react';
3
2
  import Icon from '@shopgate/pwa-common/components/Icon';
4
3
  import { themeConfig } from '@shopgate/pwa-common/helpers/config';
@@ -8,7 +7,9 @@ import { themeConfig } from '@shopgate/pwa-common/helpers/config';
8
7
  * @param {Object} props The icon component properties.
9
8
  * @returns {JSX}
10
9
  */
11
- const CartIcon = props => /*#__PURE__*/React.createElement(Icon, _extends({
12
- content: themeConfig.icons.cart
13
- }, props));
10
+ import { jsx as _jsx } from "react/jsx-runtime";
11
+ const CartIcon = props => /*#__PURE__*/_jsx(Icon, {
12
+ content: themeConfig.icons.cart,
13
+ ...props
14
+ });
14
15
  export default CartIcon;
@@ -1,4 +1,3 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
1
  import React from 'react';
3
2
  import Icon from '@shopgate/pwa-common/components/Icon';
4
3
  import { themeConfig } from '@shopgate/pwa-common/helpers/config';
@@ -8,7 +7,9 @@ import { themeConfig } from '@shopgate/pwa-common/helpers/config';
8
7
  * @param {Object} props The icon component properties.
9
8
  * @returns {JSX}
10
9
  */
11
- const Filter = props => /*#__PURE__*/React.createElement(Icon, _extends({
12
- content: themeConfig.icons.filter
13
- }, props));
10
+ import { jsx as _jsx } from "react/jsx-runtime";
11
+ const Filter = props => /*#__PURE__*/_jsx(Icon, {
12
+ content: themeConfig.icons.filter,
13
+ ...props
14
+ });
14
15
  export default Filter;
package/icons/HomeIcon.js CHANGED
@@ -1,4 +1,3 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
1
  import React from 'react';
3
2
  import Icon from '@shopgate/pwa-common/components/Icon';
4
3
  import { themeConfig } from '@shopgate/pwa-common/helpers/config';
@@ -8,7 +7,9 @@ import { themeConfig } from '@shopgate/pwa-common/helpers/config';
8
7
  * @param {Object} props The icon component properties.
9
8
  * @returns {JSX}
10
9
  */
11
- const Home = props => /*#__PURE__*/React.createElement(Icon, _extends({
12
- content: themeConfig.icons.home
13
- }, props));
10
+ import { jsx as _jsx } from "react/jsx-runtime";
11
+ const Home = props => /*#__PURE__*/_jsx(Icon, {
12
+ content: themeConfig.icons.home,
13
+ ...props
14
+ });
14
15
  export default Home;
@@ -1,4 +1,3 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
1
  import React from 'react';
3
2
  import Icon from '@shopgate/pwa-common/components/Icon';
4
3
  import { themeConfig } from '@shopgate/pwa-common/helpers/config';
@@ -8,7 +7,9 @@ import { themeConfig } from '@shopgate/pwa-common/helpers/config';
8
7
  * @param {Object} props The icon component properties.
9
8
  * @returns {JSX}
10
9
  */
11
- const ShareIcon = props => /*#__PURE__*/React.createElement(Icon, _extends({
12
- content: themeConfig.icons.share
13
- }, props));
10
+ import { jsx as _jsx } from "react/jsx-runtime";
11
+ const ShareIcon = props => /*#__PURE__*/_jsx(Icon, {
12
+ content: themeConfig.icons.share,
13
+ ...props
14
+ });
14
15
  export default ShareIcon;
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@shopgate/pwa-ui-ios",
3
- "version": "7.30.0-alpha.10",
3
+ "version": "7.30.0-alpha.12",
4
4
  "description": "Shopgate's iOS UI components.",
5
5
  "main": "index.js",
6
6
  "license": "Apache-2.0",
7
7
  "devDependencies": {
8
- "@shopgate/pwa-common": "7.30.0-alpha.10",
9
- "react": "~16.14.0"
8
+ "@shopgate/pwa-common": "7.30.0-alpha.12",
9
+ "react": "^17.0.2"
10
10
  },
11
11
  "peerDependencies": {
12
- "react": "~16.14.0"
12
+ "react": "^16.0.0 || ^17.0.0"
13
13
  }
14
14
  }