@festo-ui/react 7.2.0-dev.422 → 7.2.0-dev.426

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.
Files changed (56) hide show
  1. package/index.css +1 -1
  2. package/lib/components/buttons/button/Button.d.ts +1 -1
  3. package/lib/components/buttons/button/Button.js +3 -2
  4. package/lib/components/buttons/button/Button.stories.js +27 -19
  5. package/lib/components/card/CardNotification.d.ts +1 -2
  6. package/lib/components/card/CardNotification.js +3 -3
  7. package/lib/components/chips/chip/Chip.d.ts +2 -3
  8. package/lib/components/chips/chip/Chip.js +4 -4
  9. package/lib/components/icon-wrapper/IconWrapper.d.ts +4 -0
  10. package/lib/components/icon-wrapper/IconWrapper.js +17 -0
  11. package/lib/components/icons/check-small.d.ts +7 -0
  12. package/lib/components/icons/check-small.js +72 -0
  13. package/lib/components/icons/collapse.d.ts +7 -0
  14. package/lib/components/icons/collapse.js +71 -0
  15. package/lib/components/icons/expand.d.ts +7 -0
  16. package/lib/components/icons/expand.js +71 -0
  17. package/lib/components/icons/right-2.d.ts +7 -0
  18. package/lib/components/icons/right-2.js +68 -0
  19. package/lib/components/icons/warning.d.ts +7 -0
  20. package/lib/components/icons/warning.js +71 -0
  21. package/lib/components/link-button/LinkButton.js +6 -11
  22. package/lib/components/mobile-flyout/mobile-flyout-item/MobileFlyoutItem.d.ts +1 -1
  23. package/lib/components/mobile-flyout/mobile-flyout-item/MobileFlyoutItem.js +7 -5
  24. package/lib/components/mobile-flyout/mobile-flyout-page/MobileFlyoutPage.js +3 -3
  25. package/lib/components/modals/imageGallery/ImageGallery.js +6 -15
  26. package/lib/components/popovers/popover-menu/PopoverMenu.d.ts +3 -4
  27. package/lib/components/popovers/popover-menu/PopoverMenu.js +6 -8
  28. package/lib/components/tab/Tabs.js +3 -2
  29. package/lib/components/tab/interfaces.d.ts +2 -1
  30. package/lib/forms/color-picker/ColorPicker.js +9 -13
  31. package/lib/forms/segment/segment-control/SegmentControl.d.ts +2 -2
  32. package/lib/forms/segment/segment-control/SegmentControl.js +11 -14
  33. package/lib/forms/time-picker/time-picker-dropdown/TimePickerDropdown.js +14 -24
  34. package/node/lib/components/buttons/button/Button.js +3 -2
  35. package/node/lib/components/buttons/button/Button.stories.js +27 -19
  36. package/node/lib/components/card/CardNotification.js +3 -3
  37. package/node/lib/components/chips/chip/Chip.js +4 -4
  38. package/node/lib/components/icon-wrapper/IconWrapper.js +23 -0
  39. package/node/lib/components/icons/check-small.js +77 -0
  40. package/node/lib/components/icons/collapse.js +76 -0
  41. package/node/lib/components/icons/expand.js +76 -0
  42. package/node/lib/components/icons/right-2.js +73 -0
  43. package/node/lib/components/icons/warning.js +76 -0
  44. package/node/lib/components/link-button/LinkButton.js +6 -11
  45. package/node/lib/components/mobile-flyout/mobile-flyout-item/MobileFlyoutItem.js +7 -5
  46. package/node/lib/components/mobile-flyout/mobile-flyout-page/MobileFlyoutPage.js +3 -3
  47. package/node/lib/components/modals/imageGallery/ImageGallery.js +6 -15
  48. package/node/lib/components/popovers/popover-menu/PopoverMenu.js +6 -8
  49. package/node/lib/components/tab/Tabs.js +3 -2
  50. package/node/lib/forms/color-picker/ColorPicker.js +9 -13
  51. package/node/lib/forms/segment/segment-control/SegmentControl.js +11 -14
  52. package/node/lib/forms/time-picker/time-picker-dropdown/TimePickerDropdown.js +14 -24
  53. package/package.json +1 -1
  54. package/lib/components/chips/chip/DeleteIcon.d.ts +0 -2
  55. package/lib/components/chips/chip/DeleteIcon.js +0 -7
  56. package/node/lib/components/chips/chip/DeleteIcon.js +0 -13
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = exports.Sizes = exports.Secondary = exports.Primary = exports.Overview = exports.IconOnly = exports.Icon = void 0;
7
+ var _reactIcons = require("@festo-ui/react-icons");
7
8
  var _Button = _interopRequireDefault(require("./Button"));
8
9
  var _jsxRuntime = require("react/jsx-runtime");
9
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -14,25 +15,32 @@ const meta = {
14
15
  var _default = exports.default = meta;
15
16
  const Overview = exports.Overview = {
16
17
  render: () => /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
17
- className: "fwe-d-flex fwe-justify-content-space-between fwe-align-items-end",
18
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, {
19
- children: "Secondary"
20
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, {
21
- disabled: true,
22
- children: "Disabled"
23
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, {
24
- primary: true,
25
- children: "Hero"
26
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, {
27
- large: true,
28
- children: "Large"
29
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, {
30
- icon: "ecommerce-core-range-product",
31
- children: "Icon"
32
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, {
33
- icon: "ecommerce-core-range-product",
34
- iconOnly: true,
35
- children: "Icon"
18
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
19
+ className: "fwe-d-flex fwe-justify-content-space-between fwe-align-items-end",
20
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, {
21
+ children: "Secondary"
22
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, {
23
+ disabled: true,
24
+ children: "Disabled"
25
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, {
26
+ primary: true,
27
+ children: "Hero"
28
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, {
29
+ large: true,
30
+ children: "Large"
31
+ })]
32
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
33
+ className: "fwe-mt-m fwe-d-flex fwe-justify-content-space-between fwe-align-items-end",
34
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, {
35
+ icon: "ecommerce-core-range-product",
36
+ children: "Icon from iconfont"
37
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, {
38
+ icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIcons.IconCoreRangeProduct, {}),
39
+ children: "Icon from react icons"
40
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, {
41
+ icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIcons.IconCoreRangeProduct, {}),
42
+ iconOnly: true
43
+ })]
36
44
  })]
37
45
  })
38
46
  };
@@ -5,11 +5,11 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  var _classnames = _interopRequireDefault(require("classnames"));
8
+ var _warning = _interopRequireDefault(require("../icons/warning"));
8
9
  var _jsxRuntime = require("react/jsx-runtime");
9
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
11
  function CardNotification(_ref) {
11
12
  let {
12
- iconName,
13
13
  className,
14
14
  title,
15
15
  message
@@ -17,8 +17,8 @@ function CardNotification(_ref) {
17
17
  const classes = (0, _classnames.default)('fwe-card-notification', className);
18
18
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
19
19
  className: classes,
20
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
21
- className: `fwe-icon fwe-icon-${iconName} fwe-icon-lg`
20
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_warning.default, {
21
+ size: 24
22
22
  }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
23
23
  className: "fwe-card-title",
24
24
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("h6", {
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = exports.ChipType = void 0;
7
7
  var _classnames = _interopRequireDefault(require("classnames"));
8
+ var _IconWrapper = _interopRequireDefault(require("../../icon-wrapper/IconWrapper"));
8
9
  var _jsxRuntime = require("react/jsx-runtime");
9
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
11
  let ChipType = exports.ChipType = void 0;
@@ -12,8 +13,7 @@ let ChipType = exports.ChipType = void 0;
12
13
  ChipType[ChipType["Choice"] = 0] = "Choice";
13
14
  ChipType[ChipType["Category"] = 1] = "Category";
14
15
  ChipType[ChipType["Filter"] = 2] = "Filter";
15
- ChipType[ChipType["Action"] = 3] = "Action";
16
- ChipType[ChipType["Readonly"] = 4] = "Readonly";
16
+ ChipType[ChipType["Readonly"] = 3] = "Readonly";
17
17
  })(ChipType || (exports.ChipType = ChipType = {}));
18
18
  function Chip(_ref) {
19
19
  let {
@@ -45,8 +45,8 @@ function Chip(_ref) {
45
45
  (0, _jsxRuntime.jsxs)("div", {
46
46
  className: classes,
47
47
  onClick: onClick,
48
- children: [icon && /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
49
- className: `fwe-icon fwe-icon-${icon}`
48
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_IconWrapper.default, {
49
+ icon: icon
50
50
  }), children]
51
51
  })
52
52
  );
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = IconWrapper;
7
+ var _jsxRuntime = require("react/jsx-runtime");
8
+ function IconWrapper(_ref) {
9
+ let {
10
+ icon
11
+ } = _ref;
12
+ if (!icon) return null;
13
+ if (typeof icon === 'string') {
14
+ let iconName = icon;
15
+ if (!icon.startsWith('fwe-icon-')) {
16
+ iconName = `fwe-icon-${icon}`;
17
+ }
18
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
19
+ className: `fwe-icon ${iconName}`
20
+ });
21
+ }
22
+ return icon;
23
+ }
@@ -0,0 +1,77 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = IconCheckSmall;
7
+ var _jsxRuntime = require("react/jsx-runtime");
8
+ function IconCheckSmall(_ref) {
9
+ let {
10
+ className,
11
+ svgProps,
12
+ festoColor,
13
+ size = 16
14
+ } = _ref;
15
+ if (size < 24) {
16
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("svg", {
17
+ xmlns: "http://www.w3.org/2000/svg",
18
+ viewBox: "0 0 16 16",
19
+ width: size,
20
+ height: size,
21
+ ...svgProps,
22
+ className: `fwe-svg-icon${className ? ` ${className}` : ''}`,
23
+ "aria-label": "check-small",
24
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
25
+ fill: "none",
26
+ d: "M0 0h16v16H0z",
27
+ "data-name": "white background"
28
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
29
+ fill: festoColor ? '#0091dc' : 'currentColor',
30
+ d: "M6.141 12.814 1.934 8.607l1.414-1.414 2.793 2.793 6.793-6.793 1.414 1.414z",
31
+ "data-name": "content"
32
+ })]
33
+ });
34
+ }
35
+ if (size < 32 || size === 48) {
36
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("svg", {
37
+ xmlns: "http://www.w3.org/2000/svg",
38
+ viewBox: "0 0 24 24",
39
+ width: size,
40
+ height: size,
41
+ ...svgProps,
42
+ className: `fwe-svg-icon${className ? ` ${className}` : ''}`,
43
+ "aria-label": "check-small",
44
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
45
+ fill: "none",
46
+ d: "M0 0h24v24H0z",
47
+ "data-name": "white background"
48
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
49
+ fill: festoColor ? '#0091dc' : 'currentColor',
50
+ d: "m10.141 16.814-4.207-4.207 1.414-1.414 2.793 2.793 6.793-6.793 1.414 1.414z",
51
+ "data-name": "content"
52
+ })]
53
+ });
54
+ }
55
+ if (size >= 32) {
56
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("svg", {
57
+ xmlns: "http://www.w3.org/2000/svg",
58
+ viewBox: "0 0 32 32",
59
+ width: size,
60
+ height: size,
61
+ ...svgProps,
62
+ className: `fwe-svg-icon${className ? ` ${className}` : ''}`,
63
+ "aria-label": "check-small",
64
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("g", {
65
+ "data-name": "content",
66
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
67
+ fill: "none",
68
+ d: "M0 0h32v32H0z"
69
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
70
+ fill: festoColor ? '#0091dc' : 'currentColor',
71
+ d: "m13.172 22.485-5.657-5.657 1.414-1.414 4.243 4.243 9.899-9.9 1.414 1.415z"
72
+ })]
73
+ })
74
+ });
75
+ }
76
+ return null;
77
+ }
@@ -0,0 +1,76 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = IconCollapse;
7
+ var _jsxRuntime = require("react/jsx-runtime");
8
+ function IconCollapse(_ref) {
9
+ let {
10
+ className,
11
+ svgProps,
12
+ festoColor,
13
+ size = 16
14
+ } = _ref;
15
+ if (size < 24) {
16
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("svg", {
17
+ xmlns: "http://www.w3.org/2000/svg",
18
+ viewBox: "0 0 16 16",
19
+ width: size,
20
+ height: size,
21
+ ...svgProps,
22
+ className: `fwe-svg-icon${className ? ` ${className}` : ''}`,
23
+ "aria-label": "collapse",
24
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
25
+ fill: "none",
26
+ d: "M0 0h16v16H0z",
27
+ "data-name": "white background"
28
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
29
+ fill: festoColor ? '#0091dc' : 'currentColor',
30
+ d: "M8 10.707 3.646 6.354l.708-.708L8 9.293l3.646-3.647.708.708z",
31
+ "data-name": "content"
32
+ })]
33
+ });
34
+ }
35
+ if (size < 32 || size === 48) {
36
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("svg", {
37
+ xmlns: "http://www.w3.org/2000/svg",
38
+ viewBox: "0 0 24 24",
39
+ width: size,
40
+ height: size,
41
+ ...svgProps,
42
+ className: `fwe-svg-icon${className ? ` ${className}` : ''}`,
43
+ "aria-label": "collapse",
44
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
45
+ fill: "none",
46
+ d: "M0 0h24v24H0z",
47
+ "data-name": "white background"
48
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
49
+ fill: festoColor ? '#0091dc' : 'currentColor',
50
+ d: "M5.636 9.172 12 15.536l6.364-6.364-.707-.708L12 14.121 6.343 8.464z",
51
+ "data-name": "content"
52
+ })]
53
+ });
54
+ }
55
+ if (size >= 32) {
56
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("svg", {
57
+ xmlns: "http://www.w3.org/2000/svg",
58
+ viewBox: "0 0 32 32",
59
+ width: size,
60
+ height: size,
61
+ ...svgProps,
62
+ className: `fwe-svg-icon${className ? ` ${className}` : ''}`,
63
+ "aria-label": "collapse",
64
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
65
+ fill: "none",
66
+ d: "M0 0h32v32H0z",
67
+ "data-name": "white background"
68
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
69
+ fill: festoColor ? '#0091dc' : 'currentColor',
70
+ d: "m16 22-8.707-8.707 1.414-1.414L16 19.172l7.293-7.293 1.414 1.414z",
71
+ "data-name": "content"
72
+ })]
73
+ });
74
+ }
75
+ return null;
76
+ }
@@ -0,0 +1,76 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = IconExpand;
7
+ var _jsxRuntime = require("react/jsx-runtime");
8
+ function IconExpand(_ref) {
9
+ let {
10
+ className,
11
+ svgProps,
12
+ festoColor,
13
+ size = 16
14
+ } = _ref;
15
+ if (size < 24) {
16
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("svg", {
17
+ xmlns: "http://www.w3.org/2000/svg",
18
+ viewBox: "0 0 16 16",
19
+ width: size,
20
+ height: size,
21
+ ...svgProps,
22
+ className: `fwe-svg-icon${className ? ` ${className}` : ''}`,
23
+ "aria-label": "expand",
24
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
25
+ fill: "none",
26
+ d: "M0 0h16v16H0z",
27
+ "data-name": "white background"
28
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
29
+ fill: festoColor ? '#0091dc' : 'currentColor',
30
+ d: "M11.646 10.354 8 6.707l-3.646 3.647-.708-.708L8 5.293l4.354 4.353z",
31
+ "data-name": "content"
32
+ })]
33
+ });
34
+ }
35
+ if (size < 32 || size === 48) {
36
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("svg", {
37
+ xmlns: "http://www.w3.org/2000/svg",
38
+ viewBox: "0 0 24 24",
39
+ width: size,
40
+ height: size,
41
+ ...svgProps,
42
+ className: `fwe-svg-icon${className ? ` ${className}` : ''}`,
43
+ "aria-label": "expand",
44
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
45
+ fill: "none",
46
+ d: "M0 0h24v24H0z",
47
+ "data-name": "white background"
48
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
49
+ fill: festoColor ? '#0091dc' : 'currentColor',
50
+ d: "M18.364 14.828 12 8.464l-6.364 6.364.707.708L12 9.879l5.657 5.657z",
51
+ "data-name": "content"
52
+ })]
53
+ });
54
+ }
55
+ if (size >= 32) {
56
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("svg", {
57
+ xmlns: "http://www.w3.org/2000/svg",
58
+ viewBox: "0 0 32 32",
59
+ width: size,
60
+ height: size,
61
+ ...svgProps,
62
+ className: `fwe-svg-icon${className ? ` ${className}` : ''}`,
63
+ "aria-label": "expand",
64
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
65
+ fill: "none",
66
+ d: "M0 0h32v32H0z",
67
+ "data-name": "white background"
68
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
69
+ fill: festoColor ? '#0091dc' : 'currentColor',
70
+ d: "M23.293 21.354 16 14.061l-7.293 7.293-1.414-1.415L16 11.232l8.707 8.707z",
71
+ "data-name": "content"
72
+ })]
73
+ });
74
+ }
75
+ return null;
76
+ }
@@ -0,0 +1,73 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = IconRight2;
7
+ var _jsxRuntime = require("react/jsx-runtime");
8
+ function IconRight2(_ref) {
9
+ let {
10
+ className,
11
+ svgProps,
12
+ festoColor,
13
+ size = 16
14
+ } = _ref;
15
+ if (size < 24) {
16
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("svg", {
17
+ xmlns: "http://www.w3.org/2000/svg",
18
+ "data-name": "white background",
19
+ viewBox: "0 0 16 16",
20
+ width: size,
21
+ height: size,
22
+ ...svgProps,
23
+ className: `fwe-svg-icon${className ? ` ${className}` : ''}`,
24
+ "aria-label": "right-2",
25
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
26
+ fill: "none",
27
+ d: "M0 16V0h16v16z"
28
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
29
+ fill: festoColor ? '#0091dc' : 'currentColor',
30
+ d: "m10.707 8-4.353 4.354-.708-.708L9.293 8 5.646 4.354l.708-.708z"
31
+ })]
32
+ });
33
+ }
34
+ if (size < 32 || size === 48) {
35
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("svg", {
36
+ xmlns: "http://www.w3.org/2000/svg",
37
+ "data-name": "white background",
38
+ viewBox: "0 0 24 24",
39
+ width: size,
40
+ height: size,
41
+ ...svgProps,
42
+ className: `fwe-svg-icon${className ? ` ${className}` : ''}`,
43
+ "aria-label": "right-2",
44
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
45
+ fill: "none",
46
+ d: "M0 24V0h24v24z"
47
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
48
+ fill: festoColor ? '#0091dc' : 'currentColor',
49
+ d: "M9.172 18.364 15.536 12 9.172 5.636l-.708.707L14.121 12l-5.657 5.657z"
50
+ })]
51
+ });
52
+ }
53
+ if (size >= 32) {
54
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("svg", {
55
+ xmlns: "http://www.w3.org/2000/svg",
56
+ "data-name": "white background",
57
+ viewBox: "0 0 32 32",
58
+ width: size,
59
+ height: size,
60
+ ...svgProps,
61
+ className: `fwe-svg-icon${className ? ` ${className}` : ''}`,
62
+ "aria-label": "right-2",
63
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
64
+ fill: "none",
65
+ d: "M0 32V0h32v32z"
66
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
67
+ fill: festoColor ? '#0091dc' : 'currentColor',
68
+ d: "m22 16-8.707 8.707-1.414-1.414L19.172 16l-7.293-7.293 1.414-1.414z"
69
+ })]
70
+ });
71
+ }
72
+ return null;
73
+ }
@@ -0,0 +1,76 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = IconWarning;
7
+ var _jsxRuntime = require("react/jsx-runtime");
8
+ function IconWarning(_ref) {
9
+ let {
10
+ className,
11
+ svgProps,
12
+ festoColor,
13
+ size = 16
14
+ } = _ref;
15
+ if (size < 24) {
16
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("svg", {
17
+ xmlns: "http://www.w3.org/2000/svg",
18
+ viewBox: "0 0 16 16",
19
+ width: size,
20
+ height: size,
21
+ ...svgProps,
22
+ className: `fwe-svg-icon${className ? ` ${className}` : ''}`,
23
+ "aria-label": "warning",
24
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
25
+ fill: "none",
26
+ d: "M0 0h16v16H0z",
27
+ "data-name": "white background"
28
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
29
+ fill: festoColor ? '#ff9600' : 'currentColor',
30
+ d: "M15.216 13.53 8.882 1.653a1 1 0 0 0-1.764 0L.784 13.53A1 1 0 0 0 1.667 15h12.666a1 1 0 0 0 .883-1.47M9 13H7v-2h2Zm0-3H7V5h2Z",
31
+ "data-name": "content"
32
+ })]
33
+ });
34
+ }
35
+ if (size < 32 || size === 48) {
36
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("svg", {
37
+ xmlns: "http://www.w3.org/2000/svg",
38
+ viewBox: "0 0 24 24",
39
+ width: size,
40
+ height: size,
41
+ ...svgProps,
42
+ className: `fwe-svg-icon${className ? ` ${className}` : ''}`,
43
+ "aria-label": "warning",
44
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
45
+ fill: "none",
46
+ d: "M0 0h24v24H0z",
47
+ "data-name": "white background"
48
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
49
+ fill: festoColor ? '#ff9600' : 'currentColor',
50
+ d: "M22.4 19.86 13.273 2.743a1.441 1.441 0 0 0-2.544 0L1.6 19.86a1.44 1.44 0 0 0 1.272 2.12H21.13a1.44 1.44 0 0 0 1.272-2.12M11 7h2v8h-2Zm2.005 11.965h-2.01v-2.01h2.01Z",
51
+ "data-name": "content"
52
+ })]
53
+ });
54
+ }
55
+ if (size >= 32) {
56
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("svg", {
57
+ xmlns: "http://www.w3.org/2000/svg",
58
+ viewBox: "0 0 32 32",
59
+ width: size,
60
+ height: size,
61
+ ...svgProps,
62
+ className: `fwe-svg-icon${className ? ` ${className}` : ''}`,
63
+ "aria-label": "warning",
64
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
65
+ fill: "none",
66
+ d: "M0 0h32v32H0z",
67
+ "data-name": "white background"
68
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
69
+ fill: festoColor ? '#ff9600' : 'currentColor',
70
+ d: "M30.431 26.059 17.765 2.309a2 2 0 0 0-3.53 0L1.57 26.059A2 2 0 0 0 3.333 29h25.334a2 2 0 0 0 1.764-2.941M17 25h-2v-2h2Zm0-5h-2V10h2Z",
71
+ "data-name": "content"
72
+ })]
73
+ });
74
+ }
75
+ return null;
76
+ }
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _classnames = _interopRequireDefault(require("classnames"));
8
8
  var _react = require("react");
9
+ var _IconWrapper = _interopRequireDefault(require("../icon-wrapper/IconWrapper"));
9
10
  var _jsxRuntime = require("react/jsx-runtime");
10
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
12
  const LinkButton = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
@@ -20,17 +21,9 @@ const LinkButton = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
20
21
  } = _ref;
21
22
  const classes = (0, _classnames.default)('fwe-btn', 'fwe-btn-link', {
22
23
  'fwe-disabled': disabled
24
+ }, {
25
+ 'fwe-btn-icon': iconOnly
23
26
  }, className);
24
- let innerIcon;
25
- if (icon) {
26
- if (typeof icon === 'string') {
27
- innerIcon = /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
28
- className: `fwe-icon fwe-icon-${icon}`
29
- });
30
- } else {
31
- innerIcon = icon;
32
- }
33
- }
34
27
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("button", {
35
28
  onClick: onClick,
36
29
  type: "button",
@@ -38,7 +31,9 @@ const LinkButton = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
38
31
  disabled: disabled,
39
32
  ref: ref,
40
33
  ...props,
41
- children: [innerIcon, !iconOnly && children]
34
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_IconWrapper.default, {
35
+ icon: icon
36
+ }), !iconOnly && children]
42
37
  });
43
38
  });
44
39
  var _default = exports.default = LinkButton;
@@ -7,6 +7,8 @@ exports.default = void 0;
7
7
  var _classnames = _interopRequireDefault(require("classnames"));
8
8
  var _react = require("react");
9
9
  var _MobileFlyoutContext = _interopRequireDefault(require("../MobileFlyoutContext"));
10
+ var _right = _interopRequireDefault(require("../../icons/right-2"));
11
+ var _IconWrapper = _interopRequireDefault(require("../../icon-wrapper/IconWrapper"));
10
12
  var _jsxRuntime = require("react/jsx-runtime");
11
13
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
14
  /*
@@ -44,16 +46,16 @@ const MobileFlyoutItem = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
44
46
  ...props,
45
47
  ref: ref,
46
48
  onClick: handleClick,
47
- children: [icon && /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
48
- className: `fwe-mr-xs fwe-icon fwe-icon-${icon}`
49
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_IconWrapper.default, {
50
+ icon: icon
49
51
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
50
52
  className: (0, _classnames.default)('fwe-flex-grow-1', {
51
53
  'fwe-color-hero': active
54
+ }, {
55
+ 'fwe-ml-xxs': !!icon
52
56
  }),
53
57
  children: children
54
- }), pageLink && /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
55
- className: "fwe-icon fwe-icon-arrows-right-2"
56
- })]
58
+ }), pageLink && /*#__PURE__*/(0, _jsxRuntime.jsx)(_right.default, {})]
57
59
  });
58
60
  });
59
61
  var _default = exports.default = MobileFlyoutItem;
@@ -35,15 +35,15 @@ const MobileFlyoutPage = exports.MobileFlyoutPage = /*#__PURE__*/(0, _react.forw
35
35
  }),
36
36
  ref: ref,
37
37
  ...props,
38
- children: [!root && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
38
+ children: [!root && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
39
39
  tabIndex: 0,
40
40
  role: "button",
41
41
  className: "fwe-page-back",
42
42
  onClick: handleChange,
43
43
  onKeyUp: handleChange,
44
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("i", {}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
44
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
45
45
  children: innerBack
46
- })]
46
+ })
47
47
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
48
48
  className: "fwe-mobile-flyout-item-container",
49
49
  children: children
@@ -59,27 +59,18 @@ const ImageGallery = exports.ImageGallery = /*#__PURE__*/(0, _react.forwardRef)(
59
59
  length: images.length,
60
60
  pagination: pagination
61
61
  }), showScaleButton ? /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
62
- "aria-label": "scale up",
63
62
  type: "button",
64
- className: "fwe-btn fwe-btn-link fwe-ml-auto",
65
- onClick: handleScale,
66
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
67
- className: (0, _classnames.default)('fwe-icon fwe-icon-lg fwe-color-white fwe-modal-image-gallery-scale', {
68
- 'fwe-icon-arrows-scale-down': isScaled,
69
- 'fwe-icon-arrows-scale-up': !isScaled
70
- })
71
- })
63
+ "aria-label": "scale up",
64
+ className: "fwe-image-gallery-scale-btn fwe-ml-auto",
65
+ onClick: handleScale
72
66
  }) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
73
- "aria-label": "close",
74
67
  type: "button",
75
- className: (0, _classnames.default)('fwe-btn fwe-btn-link', {
68
+ "aria-label": "close",
69
+ className: (0, _classnames.default)('fwe-image-gallery-close-btn', {
76
70
  'fwe-ml-auto': !showScaleButton,
77
71
  'fwe-ml-3': showScaleButton
78
72
  }),
79
- onClick: onClose,
80
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
81
- className: "fwe-icon fwe-icon-2x fwe-color-white fwe-icon-menu-close fwe-modal-image-gallery-close"
82
- })
73
+ onClick: onClose
83
74
  })]
84
75
  }), descriptiveContent ? /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
85
76
  className: "fwe-image-gallery-container",