akeneo-design-system 0.1.162 → 0.1.166

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 (57) hide show
  1. package/lib/components/Dropdown/Dropdown.d.ts +8 -5
  2. package/lib/components/Dropdown/Dropdown.js.map +1 -1
  3. package/lib/components/Dropdown/ItemCollection/ItemCollection.d.ts +5 -2
  4. package/lib/components/Dropdown/ItemCollection/ItemCollection.js +9 -3
  5. package/lib/components/Dropdown/ItemCollection/ItemCollection.js.map +1 -1
  6. package/lib/components/Helper/Helper.d.ts +1 -0
  7. package/lib/components/Helper/Helper.js +8 -5
  8. package/lib/components/Helper/Helper.js.map +1 -1
  9. package/lib/components/IconButton/IconButton.js +1 -1
  10. package/lib/components/IconButton/IconButton.js.map +1 -1
  11. package/lib/components/Input/ColorInput/Color.d.ts +3 -0
  12. package/lib/components/Input/ColorInput/Color.js +20 -0
  13. package/lib/components/Input/ColorInput/Color.js.map +1 -0
  14. package/lib/components/Input/ColorInput/ColorInput.d.ts +15 -0
  15. package/lib/components/Input/ColorInput/ColorInput.js +93 -0
  16. package/lib/components/Input/ColorInput/ColorInput.js.map +1 -0
  17. package/lib/components/Input/index.d.ts +1 -0
  18. package/lib/components/Input/index.js +1 -0
  19. package/lib/components/Input/index.js.map +1 -1
  20. package/lib/components/Modal/Modal.js +4 -1
  21. package/lib/components/Modal/Modal.js.map +1 -1
  22. package/lib/components/ProgressBar/ProgressBar.d.ts +1 -0
  23. package/lib/components/ProgressBar/ProgressBar.js +5 -8
  24. package/lib/components/ProgressBar/ProgressBar.js.map +1 -1
  25. package/lib/components/Table/Table.d.ts +1 -1
  26. package/lib/components/Table/TableRow/TableRow.d.ts +3 -3
  27. package/lib/components/Table/TableRow/TableRow.js.map +1 -1
  28. package/lib/icons/GroupsIcon.js +2 -1
  29. package/lib/icons/GroupsIcon.js.map +1 -1
  30. package/lib/shared/key.d.ts +1 -0
  31. package/lib/shared/key.js +1 -0
  32. package/lib/shared/key.js.map +1 -1
  33. package/package.json +1 -1
  34. package/src/__image_snapshots__/all-visual-tsx-visual-tests-renders-components-dropdown-no-result-correctly-1-snap.png +0 -0
  35. package/src/__image_snapshots__/all-visual-tsx-visual-tests-renders-components-helper-sticky-correctly-1-snap.png +0 -0
  36. package/src/__image_snapshots__/all-visual-tsx-visual-tests-renders-components-inputs-color-input-invalid-correctly-1-snap.png +0 -0
  37. package/src/__image_snapshots__/all-visual-tsx-visual-tests-renders-components-inputs-color-input-read-only-correctly-1-snap.png +0 -0
  38. package/src/__image_snapshots__/all-visual-tsx-visual-tests-renders-components-inputs-color-input-standard-correctly-1-snap.png +0 -0
  39. package/src/components/Dropdown/Dropdown.stories.mdx +51 -16
  40. package/src/components/Dropdown/Dropdown.tsx +11 -7
  41. package/src/components/Dropdown/Dropdown.unit.tsx +21 -0
  42. package/src/components/Dropdown/ItemCollection/ItemCollection.tsx +37 -5
  43. package/src/components/Helper/Helper.stories.mdx +18 -0
  44. package/src/components/Helper/Helper.tsx +14 -1
  45. package/src/components/IconButton/IconButton.tsx +1 -0
  46. package/src/components/Input/ColorInput/Color.ts +19 -0
  47. package/src/components/Input/ColorInput/Color.unit.ts +17 -0
  48. package/src/components/Input/ColorInput/ColorInput.stories.mdx +77 -0
  49. package/src/components/Input/ColorInput/ColorInput.tsx +146 -0
  50. package/src/components/Input/ColorInput/ColorInput.unit.tsx +69 -0
  51. package/src/components/Input/index.ts +1 -0
  52. package/src/components/Modal/Modal.tsx +6 -2
  53. package/src/components/Modal/Modal.unit.tsx +25 -0
  54. package/src/components/ProgressBar/ProgressBar.tsx +8 -7
  55. package/src/components/Table/TableRow/TableRow.tsx +11 -2
  56. package/src/icons/GroupsIcon.tsx +6 -8
  57. package/src/shared/key.ts +1 -0
@@ -1,7 +1,8 @@
1
- import React, { ReactNode } from 'react';
2
- declare type DropdownProps = {
1
+ import React, { HTMLAttributes, ReactNode } from 'react';
2
+ import { Override } from '../../shared';
3
+ declare type DropdownProps = Override<HTMLAttributes<HTMLDivElement>, {
3
4
  children?: ReactNode;
4
- };
5
+ }>;
5
6
  declare const Dropdown: {
6
7
  ({ children, ...rest }: DropdownProps): JSX.Element;
7
8
  Overlay: {
@@ -27,9 +28,11 @@ declare const Dropdown: {
27
28
  Title: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement>, "children"> & {
28
29
  children: React.ReactNode;
29
30
  } & React.RefAttributes<HTMLDivElement>>;
30
- ItemCollection: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement>, "children" | "onNextPage"> & {
31
+ ItemCollection: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement>, "children" | "onNextPage" | "noResultIllustration" | "noResultTitle"> & {
31
32
  onNextPage?: (() => void) | undefined;
32
- children: React.ReactNode;
33
+ children?: React.ReactNode;
34
+ noResultIllustration?: React.ReactElement<import("../../illustrations/IllustrationProps").IllustrationProps, string | React.JSXElementConstructor<any>> | undefined;
35
+ noResultTitle?: string | undefined;
33
36
  } & React.RefAttributes<HTMLDivElement>>;
34
37
  Surtitle: React.FC<{
35
38
  label: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Dropdown.js","sourceRoot":"","sources":["../../../src/components/Dropdown/Dropdown.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAAuF;AACvF,wEAAuC;AACvC,6CAA0C;AAC1C,oCAAiC;AACjC,kEAA+D;AAC/D,0CAAuC;AACvC,wCAAqC;AACrC,qCAAqC;AACrC,gDAA6C;AAE7C,IAAM,OAAO,GAAG,2BAAM,CAAC,GAAG,0QAAA,kBACV,EAAiB,cACtB,EAAqB,mKAQ/B,KATe,IAAA,gBAAQ,EAAC,OAAO,CAAC,EACtB,IAAA,gBAAQ,EAAC,MAAM,EAAE,GAAG,CAAC,CAQ/B,CAAC;AAEF,IAAM,iBAAiB,GAAG,2BAAM,CAAC,GAAG,uHAA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rC,+BAAc,CAAC,WAAW,GAAG,yBAAyB,CAAC;AACvD,WAAI,CAAC,WAAW,GAAG,eAAe,CAAC;AACnC,OAAO,CAAC,WAAW,GAAG,kBAAkB,CAAC;AAEzC,QAAQ,CAAC,OAAO,GAAG,iBAAO,CAAC;AAC3B,QAAQ,CAAC,MAAM,GAAG,eAAM,CAAC;AACzB,QAAQ,CAAC,IAAI,GAAG,WAAI,CAAC;AACrB,QAAQ,CAAC,OAAO,GAAG,OAAO,CAAC;AAC3B,QAAQ,CAAC,KAAK,GAAG,aAAK,CAAC;AACvB,QAAQ,CAAC,cAAc,GAAG,+BAAc,CAAC;AACzC,QAAQ,CAAC,QAAQ,GAAG,mBAAQ,CAAC"}
@@ -1,6 +1,9 @@
1
1
  import React, { ReactNode } from 'react';
2
- declare const ItemCollection: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement>, "children" | "onNextPage"> & {
2
+ import { IllustrationProps } from '../../../illustrations/IllustrationProps';
3
+ declare const ItemCollection: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement>, "children" | "onNextPage" | "noResultIllustration" | "noResultTitle"> & {
3
4
  onNextPage?: (() => void) | undefined;
4
- children: ReactNode;
5
+ children?: ReactNode;
6
+ noResultIllustration?: React.ReactElement<IllustrationProps, string | React.JSXElementConstructor<any>> | undefined;
7
+ noResultTitle?: string | undefined;
5
8
  } & React.RefAttributes<HTMLDivElement>>;
6
9
  export { ItemCollection };
@@ -54,9 +54,12 @@ var react_1 = __importStar(require("react"));
54
54
  var styled_components_1 = __importDefault(require("styled-components"));
55
55
  var hooks_1 = require("../../../hooks");
56
56
  var usePagination_1 = require("../../../hooks/usePagination");
57
+ var Placeholder_1 = require("../../Placeholder/Placeholder");
58
+ var theme_1 = require("../../../theme");
57
59
  var ItemCollectionContainer = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n max-height: 320px;\n overflow-y: auto;\n overflow-x: hidden;\n"], ["\n max-height: 320px;\n overflow-y: auto;\n overflow-x: hidden;\n"])));
60
+ var NoResultPlaceholderContainer = (0, styled_components_1.default)(Placeholder_1.Placeholder)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n margin: 10px 10px 20px 10px;\n & > div {\n font-size: ", ";\n }\n"], ["\n margin: 10px 10px 20px 10px;\n & > div {\n font-size: ", ";\n }\n"])), (0, theme_1.getFontSize)('default'));
58
61
  var ItemCollection = react_1.default.forwardRef(function (_a, forwardedRef) {
59
- var children = _a.children, onNextPage = _a.onNextPage, rest = __rest(_a, ["children", "onNextPage"]);
62
+ var children = _a.children, onNextPage = _a.onNextPage, noResultTitle = _a.noResultTitle, noResultIllustration = _a.noResultIllustration, rest = __rest(_a, ["children", "onNextPage", "noResultTitle", "noResultIllustration"]);
60
63
  var firstItemRef = (0, react_1.useRef)(null);
61
64
  var lastItemRef = (0, react_1.useRef)(null);
62
65
  var containerRef = (0, hooks_1.useCombinedRefs)(forwardedRef);
@@ -85,8 +88,11 @@ var ItemCollection = react_1.default.forwardRef(function (_a, forwardedRef) {
85
88
  });
86
89
  (0, usePagination_1.usePagination)(containerRef, lastItemRef, onNextPage, true);
87
90
  (0, hooks_1.useAutoFocus)(firstItemRef);
88
- return (react_1.default.createElement(ItemCollectionContainer, __assign({}, rest, { ref: containerRef }), decoratedChildren));
91
+ return (react_1.default.createElement(ItemCollectionContainer, __assign({ role: "listbox" }, rest, { ref: containerRef }), childrenCount
92
+ ? decoratedChildren
93
+ : noResultIllustration &&
94
+ noResultTitle && react_1.default.createElement(NoResultPlaceholderContainer, { illustration: noResultIllustration, title: noResultTitle })));
89
95
  });
90
96
  exports.ItemCollection = ItemCollection;
91
- var templateObject_1;
97
+ var templateObject_1, templateObject_2;
92
98
  //# sourceMappingURL=ItemCollection.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ItemCollection.js","sourceRoot":"","sources":["../../../../src/components/Dropdown/ItemCollection/ItemCollection.tsx"],"names":[],"mappings":";;;;;;;;;;;;;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AAC;SACJ;QAED,OAAO,KAAK,CAAC;IACf,CAAC,CAAC,CAAC;IAEH,IAAA,6BAAa,EAAC,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,IAAI,CAAC,CAAC;IAC3D,IAAA,oBAAY,EAAC,YAAY,CAAC,CAAC;IAE3B,OAAO,CACL,8BAAC,uBAAuB,aAAC,IAAI,EAAC,SAAS,IAAK,IAAI,IAAE,GAAG,EAAE,YAAY,KAChE,aAAa;QACZ,CAAC,CAAC,iBAAiB;QACnB,CAAC,CAAC,oBAAoB;YACpB,aAAa,IAAI,8BAAC,4BAA4B,IAAC,YAAY,EAAE,oBAAoB,EAAE,KAAK,EAAE,aAAa,GAAI,CACvF,CAC3B,CAAC;AACJ,CAAC,CACF,CAAC;AAEM,wCAAc"}
@@ -4,6 +4,7 @@ declare type Level = 'info' | 'warning' | 'error' | 'success';
4
4
  declare type HelperProps = {
5
5
  inline?: boolean;
6
6
  level?: Level;
7
+ sticky?: number;
7
8
  icon?: ReactElement<IconProps>;
8
9
  children: ReactNode;
9
10
  };
@@ -125,17 +125,20 @@ var getLinkColor = function (level, inline) {
125
125
  return (0, theme_1.getColor)('green', inline ? 100 : 120);
126
126
  }
127
127
  };
128
- var Container = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n font-weight: 400;\n padding-right: 20px;\n color: ", ";\n\n ", "\n"], ["\n display: flex;\n font-weight: 400;\n padding-right: 20px;\n color: ", ";\n\n ", "\n"])), function (props) { return getFontColor(props.level, props.inline); }, function (props) {
128
+ var Container = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: flex;\n font-weight: 400;\n padding-right: 20px;\n color: ", ";\n\n ", "\n\n ", "\n"], ["\n display: flex;\n font-weight: 400;\n padding-right: 20px;\n color: ", ";\n\n ", "\n\n ", "\n"])), function (props) { return getFontColor(props.level, props.inline); }, function (props) {
129
129
  return !props.inline && (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n min-height: 44px;\n background-color: ", ";\n "], ["\n min-height: 44px;\n background-color: ", ";\n "])), getBackgroundColor(props.level));
130
+ }, function (_a) {
131
+ var sticky = _a.sticky;
132
+ return undefined !== sticky && (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n position: sticky;\n top: ", "px;\n z-index: 1;\n "], ["\n position: sticky;\n top: ", "px;\n z-index: 1;\n "])), sticky);
130
133
  });
131
- var IconContainer = styled_components_1.default.span(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n height: ", ";\n margin: ", ";\n color: ", ";\n"], ["\n height: ", ";\n margin: ", ";\n color: ", ";\n"])), function (_a) {
134
+ var IconContainer = styled_components_1.default.span(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n height: ", ";\n margin: ", ";\n color: ", ";\n"], ["\n height: ", ";\n margin: ", ";\n color: ", ";\n"])), function (_a) {
132
135
  var inline = _a.inline;
133
136
  return (inline ? '16px' : '20px');
134
137
  }, function (_a) {
135
138
  var inline = _a.inline;
136
139
  return (inline ? '2px 0' : '12px 10px');
137
140
  }, function (props) { return getIconColor(props.level, props.inline); });
138
- var TextContainer = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n padding-left: ", ";\n white-space: break-spaces;\n flex: 1;\n\n a {\n color: ", ";\n }\n\n ", "\n"], ["\n padding-left: ", ";\n white-space: break-spaces;\n flex: 1;\n\n a {\n color: ", ";\n }\n\n ", "\n"])), function (_a) {
141
+ var TextContainer = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n padding-left: ", ";\n white-space: break-spaces;\n flex: 1;\n\n a {\n color: ", ";\n }\n\n ", "\n"], ["\n padding-left: ", ";\n white-space: break-spaces;\n flex: 1;\n\n a {\n color: ", ";\n }\n\n ", "\n"])), function (_a) {
139
142
  var inline = _a.inline;
140
143
  return (inline ? '4px' : '10px');
141
144
  }, function (_a) {
@@ -143,7 +146,7 @@ var TextContainer = styled_components_1.default.div(templateObject_5 || (templat
143
146
  return getLinkColor(level, inline);
144
147
  }, function (_a) {
145
148
  var inline = _a.inline, level = _a.level;
146
- return !inline && (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n margin: 12px 0;\n border-left: 1px solid ", ";\n "], ["\n margin: 12px 0;\n border-left: 1px solid ", ";\n "])), getSeparatorColor(level));
149
+ return !inline && (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n margin: 12px 0;\n border-left: 1px solid ", ";\n "], ["\n margin: 12px 0;\n border-left: 1px solid ", ";\n "])), getSeparatorColor(level));
147
150
  });
148
151
  var Helper = react_1.default.forwardRef(function (_a, forwardedRef) {
149
152
  var _b = _a.level, level = _b === void 0 ? 'info' : _b, _c = _a.inline, inline = _c === void 0 ? false : _c, icon = _a.icon, children = _a.children, rest = __rest(_a, ["level", "inline", "icon", "children"]);
@@ -152,5 +155,5 @@ var Helper = react_1.default.forwardRef(function (_a, forwardedRef) {
152
155
  react_1.default.createElement(TextContainer, { level: level, inline: inline }, children)));
153
156
  });
154
157
  exports.Helper = Helper;
155
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
158
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6;
156
159
  //# sourceMappingURL=Helper.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Helper.js","sourceRoot":"","sources":["../../../src/components/Helper/Helper.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAA0D;AAC1D,qEAA8C;AAC9C,qCAAiF;AACjF,qCAAwD;AAExD,IAAM,kBAAkB,GAAG,UAAC,KAAY;IACtC,QAAQ,KAAK,EAAE;QACb,KAAK,MAAM;YACT,OAAO,IAAA,gBAAQ,EAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QAC9B,KAAK,SAAS;YACZ,OAAO,IAAA,gBAAQ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AChB,8BAAC,aAAa,IAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,IACxC,QAAQ,CACK,CACN,CACb,CAAC;AACJ,CAAC,CACF,CAAC;AAEM,wBAAM"}
@@ -52,7 +52,7 @@ exports.IconButton = void 0;
52
52
  var react_1 = __importDefault(require("react"));
53
53
  var styled_components_1 = __importStar(require("styled-components"));
54
54
  var Button_1 = require("../../components/Button/Button");
55
- var IconButtonContainer = (0, styled_components_1.default)(Button_1.Button)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n width: ", "px;\n border-style: ", ";\n ", ";\n"], ["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n width: ", "px;\n border-style: ", ";\n ", ";\n"])), function (_a) {
55
+ var IconButtonContainer = (0, styled_components_1.default)(Button_1.Button)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n padding: 0;\n width: ", "px;\n border-style: ", ";\n ", ";\n"], ["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n padding: 0;\n width: ", "px;\n border-style: ", ";\n ", ";\n"])), function (_a) {
56
56
  var size = _a.size;
57
57
  return (size === 'small' ? 24 : 32);
58
58
  }, function (_a) {
@@ -1 +1 @@
1
- {"version":3,"file":"IconButton.js","sourceRoot":"","sources":["../../../src/components/IconButton/IconButton.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAA+C;AAC/C,qEAA8C;AAE9C,yDAA+E;AAG/E,IAAM,mBAAmB,GAAG,IAAA,2BAAM,EAAC,eAAM,CAAC,qNAAqC,yGAKpE,EAAwC,uBACjC,EAAkE,OAChF,EAIC,KACJ,KAPU,UAAC,EAAM;QAAL,IAAI,UAAA;IAAM,OAAA,CAAC,IAAI,KAAK,OAAO,CAAC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C;AAEM,gCAAU"}
@@ -0,0 +1,3 @@
1
+ declare const convertColorToLongHexColor: (value: string) => string;
2
+ declare const isValidColor: (value: string) => boolean;
3
+ export { isValidColor, convertColorToLongHexColor };
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.convertColorToLongHexColor = exports.isValidColor = void 0;
4
+ var convertColorToLongHexColor = function (value) {
5
+ if (!isValidShortHexColor(value))
6
+ return value;
7
+ return "#" + value[1] + value[1] + value[2] + value[2] + value[3] + value[3];
8
+ };
9
+ exports.convertColorToLongHexColor = convertColorToLongHexColor;
10
+ var isValidShortHexColor = function (value) {
11
+ return /^#[A-Fa-f0-9]{3}$/.test(value);
12
+ };
13
+ var isValidLongHexColor = function (value) {
14
+ return /^#[A-Fa-f0-9]{6}$/.test(value);
15
+ };
16
+ var isValidColor = function (value) {
17
+ return isValidLongHexColor(value) || isValidShortHexColor(value);
18
+ };
19
+ exports.isValidColor = isValidColor;
20
+ //# sourceMappingURL=Color.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Color.js","sourceRoot":"","sources":["../../../../src/components/Input/ColorInput/Color.ts"],"names":[],"mappings":";;;AAAA,IAAM,0BAA0B,GAAG,UAAC,KAAa;IAC/C,IAAI,CAAC,oBAAoB,CAAC,KAAK,CAAC;QAAE,OAAO,KAAK,CAAC;IAE/C,OAAO,MAAI,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAG,CAAC;AAC/E,CAAC,CAAC;AAcoB,gEAA0B;AAZhD,IAAM,oBAAoB,GAAG,UAAC,KAAa;IACzC,OAAO,mBAAmB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AACzC,CAAC,CAAC;AAEF,IAAM,mBAAmB,GAAG,UAAC,KAAa;IACxC,OAAO,mBAAmB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AACzC,CAAC,CAAC;AAEF,IAAM,YAAY,GAAG,UAAC,KAAa;IACjC,OAAO,mBAAmB,CAAC,KAAK,CAAC,IAAI,oBAAoB,CAAC,KAAK,CAAC,CAAC;AACnE,CAAC,CAAC;AAEM,oCAAY"}
@@ -0,0 +1,15 @@
1
+ import React, { InputHTMLAttributes } from 'react';
2
+ import { InputProps } from '../common/InputProps';
3
+ import { Override } from '../../../shared';
4
+ declare type ColorInputProps = Override<Override<InputHTMLAttributes<HTMLInputElement>, InputProps<string>>, ({
5
+ readOnly?: true;
6
+ } | {
7
+ readOnly?: false;
8
+ onChange: (newValue: string) => void;
9
+ }) & {
10
+ value: string;
11
+ placeholder?: string;
12
+ invalid?: boolean;
13
+ }>;
14
+ declare const ColorInput: React.ForwardRefExoticComponent<ColorInputProps & React.RefAttributes<HTMLInputElement>>;
15
+ export { ColorInput };
@@ -0,0 +1,93 @@
1
+ "use strict";
2
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
+ return cooked;
5
+ };
6
+ var __assign = (this && this.__assign) || function () {
7
+ __assign = Object.assign || function(t) {
8
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
9
+ s = arguments[i];
10
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
11
+ t[p] = s[p];
12
+ }
13
+ return t;
14
+ };
15
+ return __assign.apply(this, arguments);
16
+ };
17
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
18
+ if (k2 === undefined) k2 = k;
19
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
20
+ }) : (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ o[k2] = m[k];
23
+ }));
24
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
26
+ }) : function(o, v) {
27
+ o["default"] = v;
28
+ });
29
+ var __importStar = (this && this.__importStar) || function (mod) {
30
+ if (mod && mod.__esModule) return mod;
31
+ var result = {};
32
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
+ __setModuleDefault(result, mod);
34
+ return result;
35
+ };
36
+ var __rest = (this && this.__rest) || function (s, e) {
37
+ var t = {};
38
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
39
+ t[p] = s[p];
40
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
41
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
42
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
43
+ t[p[i]] = s[p[i]];
44
+ }
45
+ return t;
46
+ };
47
+ Object.defineProperty(exports, "__esModule", { value: true });
48
+ exports.ColorInput = void 0;
49
+ var react_1 = __importStar(require("react"));
50
+ var styled_components_1 = __importStar(require("styled-components"));
51
+ var icons_1 = require("../../../icons");
52
+ var theme_1 = require("../../../theme");
53
+ var Color_1 = require("./Color");
54
+ var ColorInputContainer = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n flex-direction: row;\n align-items: center;\n padding: 12px;\n border: 1px solid ", ";\n border-radius: 2px;\n height: 74px;\n gap: 10px;\n outline-style: none;\n box-sizing: border-box;\n background: ", ";\n cursor: ", ";\n overflow: hidden;\n ", "\n"], ["\n display: flex;\n flex-direction: row;\n align-items: center;\n padding: 12px;\n border: 1px solid ", ";\n border-radius: 2px;\n height: 74px;\n gap: 10px;\n outline-style: none;\n box-sizing: border-box;\n background: ", ";\n cursor: ", ";\n overflow: hidden;\n ", "\n"])), function (_a) {
55
+ var invalid = _a.invalid;
56
+ return (invalid ? (0, theme_1.getColor)('red', 100) : (0, theme_1.getColor)('grey', 80));
57
+ }, function (_a) {
58
+ var readOnly = _a.readOnly;
59
+ return (readOnly ? (0, theme_1.getColor)('grey', 20) : (0, theme_1.getColor)('white'));
60
+ }, function (_a) {
61
+ var readOnly = _a.readOnly;
62
+ return (readOnly ? 'not-allowed' : 'auto');
63
+ }, function (_a) {
64
+ var readOnly = _a.readOnly;
65
+ return !readOnly && (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n &:focus-within {\n box-shadow: 0 0 0 2px ", ";\n }\n "], ["\n &:focus-within {\n box-shadow: 0 0 0 2px ", ";\n }\n "])), (0, theme_1.getColor)('blue', 40));
66
+ });
67
+ var ColorPicker = styled_components_1.default.input(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n width: 47px;\n height: 47px;\n border: none;\n padding: 0;\n ::-moz-color-swatch-wrapper {\n padding: 0;\n }\n ::-webkit-color-swatch-wrapper {\n padding: 0;\n }\n ::-webkit-color-swatch {\n border: none;\n }\n ::-moz-color-swatch {\n border: none;\n }\n"], ["\n width: 47px;\n height: 47px;\n border: none;\n padding: 0;\n ::-moz-color-swatch-wrapper {\n padding: 0;\n }\n ::-webkit-color-swatch-wrapper {\n padding: 0;\n }\n ::-webkit-color-swatch {\n border: none;\n }\n ::-moz-color-swatch {\n border: none;\n }\n"])));
68
+ var TextInput = styled_components_1.default.input(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n border: none;\n flex: 1;\n outline: none;\n color: ", ";\n background: transparent;\n cursor: ", ";\n height: 100%;\n\n &::placeholder {\n opacity: 1;\n color: ", ";\n }\n"], ["\n border: none;\n flex: 1;\n outline: none;\n color: ", ";\n background: transparent;\n cursor: ", ";\n height: 100%;\n\n &::placeholder {\n opacity: 1;\n color: ", ";\n }\n"])), function (_a) {
69
+ var readOnly = _a.readOnly;
70
+ return (readOnly ? (0, theme_1.getColor)('grey', 100) : (0, theme_1.getColor)('grey', 140));
71
+ }, function (_a) {
72
+ var readOnly = _a.readOnly;
73
+ return (readOnly ? 'not-allowed' : 'auto');
74
+ }, (0, theme_1.getColor)('grey', 100));
75
+ var ReadOnlyIcon = (0, styled_components_1.default)(icons_1.LockIcon)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n margin-left: 4px;\n"], ["\n margin-left: 4px;\n"])));
76
+ var ErrorIcon = (0, styled_components_1.default)(icons_1.DangerIcon)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n padding: 0 16px 0 15px;\n"], ["\n padding: 0 16px 0 15px;\n"])));
77
+ var ColorInput = (0, react_1.forwardRef)(function (_a, forwardedRef) {
78
+ var invalid = _a.invalid, onChange = _a.onChange, value = _a.value, readOnly = _a.readOnly, rest = __rest(_a, ["invalid", "onChange", "value", "readOnly"]);
79
+ var handleChange = (0, react_1.useCallback)(function (event) {
80
+ if (!readOnly && onChange)
81
+ onChange(event.currentTarget.value);
82
+ }, [readOnly, onChange]);
83
+ if (!value.startsWith('#')) {
84
+ value = "#" + value;
85
+ }
86
+ return (react_1.default.createElement(ColorInputContainer, { invalid: invalid || !(0, Color_1.isValidColor)(value), readOnly: readOnly },
87
+ (0, Color_1.isValidColor)(value) ? (react_1.default.createElement(ColorPicker, { type: "color", value: (0, Color_1.convertColorToLongHexColor)(value), onChange: handleChange, disabled: readOnly })) : (react_1.default.createElement(ErrorIcon, { role: "alert", size: 16 })),
88
+ react_1.default.createElement(TextInput, __assign({ ref: forwardedRef, value: value, onChange: handleChange, type: "text", readOnly: readOnly, disabled: readOnly, "aria-invalid": invalid || !(0, Color_1.isValidColor)(value) }, rest)),
89
+ readOnly && react_1.default.createElement(ReadOnlyIcon, { size: 16 })));
90
+ });
91
+ exports.ColorInput = ColorInput;
92
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6;
93
+ //# sourceMappingURL=ColorInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ColorInput.js","sourceRoot":"","sources":["../../../../src/components/Input/ColorInput/ColorInput.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,IAAI,EAAC,OAAO,EACZ,KAAK,EAAE,IAAA,kCAA0B,EAAC,KAAK,CAAC,EACxC,QAAQ,EAAE,YAAY,EACtB,QAAQ,EAAE,QAAQ,GAClB,CACH,CAAC,CAAC,CAAC,CACF,8BAAC,SAAS,IAAC,IAAI,EAAC,OAAO,EAAC,IAAI,EAAE,EAAE,GAAI,CACrC;QACD,8BAAC,SAAS,aACR,GAAG,EAAE,YAAY,EACjB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,YAAY,EACtB,IAAI,EAAC,MAAM,EACX,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,kBACJ,OAAO,IAAI,CAAC,IAAA,oBAAY,EAAC,KAAK,CAAC,IACzC,IAAI,EACR;QACD,QAAQ,IAAI,8BAAC,YAAY,IAAC,IAAI,EAAE,EAAE,GAAI,CACnB,CACvB,CAAC;AACJ,CAAC,CACF,CAAC;AAEM,gCAAU"}
@@ -1,5 +1,6 @@
1
1
  export * from './BooleanInput/BooleanInput';
2
2
  export * from './common';
3
+ export * from './ColorInput/ColorInput';
3
4
  export * from './MediaFileInput/FileInfo';
4
5
  export * from './MediaFileInput/MediaFileInput';
5
6
  export * from './MediaLinkInput/MediaLinkInput';
@@ -12,6 +12,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
13
  __exportStar(require("./BooleanInput/BooleanInput"), exports);
14
14
  __exportStar(require("./common"), exports);
15
+ __exportStar(require("./ColorInput/ColorInput"), exports);
15
16
  __exportStar(require("./MediaFileInput/FileInfo"), exports);
16
17
  __exportStar(require("./MediaFileInput/MediaFileInput"), exports);
17
18
  __exportStar(require("./MediaLinkInput/MediaLinkInput"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Input/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8DAA4C;AAC5C,2CAAyB;AACzB,4DAA0C;AAC1C,kEAAgD;AAChD,kEAAgD;AAChD,sEAAoD;AACpD,4DAA0C;AAC1C,4DAA0C;AAC1C,0DAAwC;AACxC,sDAAoC;AACpC,gEAA8C;AAC9C,wDAAsC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Input/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8DAA4C;AAC5C,2CAAyB;AACzB,0DAAwC;AACxC,4DAA0C;AAC1C,kEAAgD;AAChD,kEAAgD;AAChD,sEAAoD;AACpD,4DAA0C;AAC1C,4DAA0C;AAC1C,0DAAwC;AACxC,sDAAoC;AACpC,gEAA8C;AAC9C,wDAAsC"}
@@ -87,8 +87,11 @@ var Modal = function (_a) {
87
87
  document.body.removeChild(containerRef.current);
88
88
  };
89
89
  }, []);
90
+ var stopEventPropagation = function (event) {
91
+ event.stopPropagation();
92
+ };
90
93
  return (0, react_dom_1.createPortal)(react_1.default.createElement(ModalContext_1.ModalContext.Provider, { value: true },
91
- react_1.default.createElement(ModalContainer, __assign({ role: "dialog" }, rest),
94
+ react_1.default.createElement(ModalContainer, __assign({ onClick: stopEventPropagation, role: "dialog" }, rest),
92
95
  react_1.default.createElement(ModalCloseButton, { title: closeTitle, level: "tertiary", ghost: "borderless", icon: react_1.default.createElement(icons_1.CloseIcon, null), onClick: onClose }),
93
96
  undefined === illustration ? (children) : (react_1.default.createElement(ModalContent, null,
94
97
  react_1.default.createElement(IconContainer, null, react_1.default.cloneElement(illustration, { size: 220 })),
@@ -1 +1 @@
1
- {"version":3,"file":"Modal.js","sourceRoot":"","sources":["../../../src/components/Modal/Modal.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAAwE;AACxE,uCAAuC;AACvC,wEAAuC;AACvC,qCAAkF;AAClF,uDAAoD;AACpD,qCAAsC;AAEtC,qCAAwC;AACxC,uCAA2C;AAC3C,+CAAwD;AAkKzC,2FAlKO,yBAAU,OAkK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,CAAC;QAEhD,OAAO;YACL,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;QAClD,CAAC,CAAC;IACJ,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,IAAM,oBAAoB,GAAG,UAAC,KAAqB;QACjD,KAAK,CAAC,eAAe,EAAE,CAAC;IAC1B,CAAC,CAAC;IAEF,OAAO,IAAA,wBAAY,EACjB,8BAAC,2BAAY,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI;QAChC,8BAAC,cAAc,aAAC,OAAO,EAAE,oBAAoB,EAAE,IAAI,EAAC,QAAQ,IAAK,IAAI;YACnE,8BAAC,gBAAgB,IACf,KAAK,EAAE,UAAU,EACjB,KAAK,EAAC,UAAU,EAChB,KAAK,EAAC,YAAY,EAClB,IAAI,EAAE,8BAAC,iBAAS,OAAG,EACnB,OAAO,EAAE,OAAO,GAChB;YACD,SAAS,KAAK,YAAY,CAAC,CAAC,CAAC,CAC5B,QAAQ,CACT,CAAC,CAAC,CAAC,CACF,8BAAC,YAAY;gBACX,8BAAC,aAAa,QAAE,eAAK,CAAC,YAAY,CAAC,YAAY,EAAE,EAAC,IAAI,EAAE,GAAG,EAAC,CAAC,CAAiB;gBAC9E,8BAAC,aAAa,QAAE,QAAQ,CAAiB,CAC5B,CAChB,CACc,CACK,EACxB,YAAY,CAAC,OAAO,CACrB,CAAC;AACJ,CAAC,CAAC;AAQM,sBAAK;AANb,KAAK,CAAC,aAAa,GAAG,aAAa,CAAC;AACpC,KAAK,CAAC,eAAe,GAAG,eAAe,CAAC;AACxC,KAAK,CAAC,cAAc,GAAG,cAAc,CAAC;AACtC,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC;AACpB,KAAK,CAAC,YAAY,GAAG,YAAY,CAAC"}
@@ -11,3 +11,4 @@ declare const ProgressBar: React.ForwardRefExoticComponent<{
11
11
  size?: ProgressBarSize | undefined;
12
12
  } & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
13
13
  export { ProgressBar };
14
+ export type { ProgressBarPercent };
@@ -44,21 +44,18 @@ var __rest = (this && this.__rest) || function (s, e) {
44
44
  }
45
45
  return t;
46
46
  };
47
- var __importDefault = (this && this.__importDefault) || function (mod) {
48
- return (mod && mod.__esModule) ? mod : { "default": mod };
49
- };
50
47
  Object.defineProperty(exports, "__esModule", { value: true });
51
48
  exports.ProgressBar = void 0;
52
- var react_1 = __importDefault(require("react"));
49
+ var react_1 = __importStar(require("react"));
53
50
  var styled_components_1 = __importStar(require("styled-components"));
54
51
  var theme_1 = require("../../theme");
55
52
  var hooks_1 = require("../../hooks");
56
53
  var ProgressBarContainer = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n overflow: hidden;\n"], ["\n overflow: hidden;\n"])));
57
54
  var progressBarAnimation = (0, styled_components_1.keyframes)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n from { background-position: 0 0; }\n to { background-position: 20px 0; }\n"], ["\n from { background-position: 0 0; }\n to { background-position: 20px 0; }\n"])));
58
55
  var Header = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: flex;\n align-items: stretch;\n flex-direction: row;\n font-size: ", ";\n flex-flow: row wrap;\n margin-bottom: -4px;\n"], ["\n display: flex;\n align-items: stretch;\n flex-direction: row;\n font-size: ", ";\n flex-flow: row wrap;\n margin-bottom: -4px;\n"])), (0, theme_1.getFontSize)('default'));
59
- var Title = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n color: ", ";\n padding-right: 20px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n max-width: 100%;\n flex-grow: 1;\n margin-bottom: 4px;\n\n /* When header div is greater than 300px the flex-basic is negative, progress label is on same line */\n /* When header div is lower than 300px the flex-basic is positive, progress label is move to new line */\n flex-basis: calc((301px - 100%) * 999);\n"], ["\n color: ", ";\n padding-right: 20px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n max-width: 100%;\n flex-grow: 1;\n margin-bottom: 4px;\n\n /* When header div is greater than 300px the flex-basic is negative, progress label is on same line */\n /* When header div is lower than 300px the flex-basic is positive, progress label is move to new line */\n flex-basis: calc((301px - 100%) * 999);\n"])), (0, theme_1.getColor)('grey140'));
60
- var ProgressLabel = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n color: ", ";\n flex-grow: 0;\n flex-basis: auto;\n flex-shrink: 1;\n margin-bottom: 4px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n"], ["\n color: ", ";\n flex-grow: 0;\n flex-basis: auto;\n flex-shrink: 1;\n margin-bottom: 4px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n"])), (0, theme_1.getColor)('grey120'));
61
- var ProgressBarBackground = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n background: ", ";\n height: ", ";\n overflow: hidden;\n position: relative;\n"], ["\n background: ", ";\n height: ", ";\n overflow: hidden;\n position: relative;\n"])), (0, theme_1.getColor)('grey60'), function (props) { return getHeightFromSize(props.size); });
56
+ var Title = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n color: ", ";\n padding-right: 20px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n max-width: 100%;\n flex-grow: 1;\n margin-bottom: 4px;\n\n /* When header div is greater than 300px the flex-basic is negative, progress label is on same line */\n /* When header div is lower than 300px the flex-basic is positive, progress label is move to new line */\n flex-basis: calc((301px - 100%) * 999);\n"], ["\n color: ", ";\n padding-right: 20px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n max-width: 100%;\n flex-grow: 1;\n margin-bottom: 4px;\n\n /* When header div is greater than 300px the flex-basic is negative, progress label is on same line */\n /* When header div is lower than 300px the flex-basic is positive, progress label is move to new line */\n flex-basis: calc((301px - 100%) * 999);\n"])), (0, theme_1.getColor)('grey', 140));
57
+ var ProgressLabel = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n color: ", ";\n flex-grow: 0;\n flex-basis: auto;\n flex-shrink: 1;\n margin-bottom: 4px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n"], ["\n color: ", ";\n flex-grow: 0;\n flex-basis: auto;\n flex-shrink: 1;\n margin-bottom: 4px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n"])), (0, theme_1.getColor)('grey', 120));
58
+ var ProgressBarBackground = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n background: ", ";\n height: ", ";\n overflow: hidden;\n position: relative;\n"], ["\n background: ", ";\n height: ", ";\n overflow: hidden;\n position: relative;\n"])), (0, theme_1.getColor)('grey', 60), function (props) { return getHeightFromSize(props.size); });
62
59
  var ProgressBarFill = styled_components_1.default.div.attrs(function (props) { return ({
63
60
  style: { width: props.width + "%" },
64
61
  }); })(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n ", "\n\n height: 100%;\n left: 0;\n position: absolute;\n top: 0;\n transition: width 0.3s;\n\n ", "\n"], ["\n ", "\n\n height: 100%;\n left: 0;\n position: absolute;\n top: 0;\n transition: width 0.3s;\n\n ", "\n"])), function (_a) {
@@ -85,7 +82,7 @@ var computeWidthFromPercent = function (percent) {
85
82
  }
86
83
  return percent;
87
84
  };
88
- var ProgressBar = react_1.default.forwardRef(function (_a, forwardedRef) {
85
+ var ProgressBar = (0, react_1.forwardRef)(function (_a, forwardedRef) {
89
86
  var level = _a.level, percent = _a.percent, title = _a.title, progressLabel = _a.progressLabel, _b = _a.light, light = _b === void 0 ? false : _b, _c = _a.size, size = _c === void 0 ? 'small' : _c, rest = __rest(_a, ["level", "percent", "title", "progressLabel", "light", "size"]);
90
87
  var labelId = (0, hooks_1.useId)('label_');
91
88
  var progressBarId = (0, hooks_1.useId)('progress_');
@@ -1 +1 @@
1
- {"version":3,"file":"ProgressBar.js","sourceRoot":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C,iBAAiB,CAAC,GAAG,OAAO,CAAC;KAC/C;IAED,OAAO,CACL,8BAAC,oBAAoB,aAAC,GAAG,EAAE,YAAY,IAAM,IAAI;QAC9C,CAAC,KAAK,IAAI,aAAa,CAAC,IAAI,CAC3B,8BAAC,MAAM;YACJ,KAAK,IAAI,CACR,8BAAC,KAAK,IAAC,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,aAAa,IACrD,KAAK,CACA,CACT;YACA,aAAa,IAAI,8BAAC,aAAa,IAAC,KAAK,EAAE,aAAa,IAAG,aAAa,CAAiB,CAC/E,CACV;QACD,8BAAC,qBAAqB,aAAC,EAAE,EAAE,aAAa,EAAE,IAAI,EAAC,aAAa,IAAK,gBAAgB,IAAE,IAAI,EAAE,IAAI;YAC3F,8BAAC,eAAe,IACd,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,KAAK,EACZ,aAAa,EAAE,OAAO,KAAK,eAAe,EAC1C,KAAK,EAAE,uBAAuB,CAAC,OAAO,CAAC,GACvC,CACoB,CACH,CACxB,CAAC;AACJ,CAAC,CACF,CAAC;AAEM,kCAAW"}
@@ -25,7 +25,7 @@ declare const Table: {
25
25
  children?: React.ReactNode;
26
26
  onSelectToggle?: ((isSelected: boolean) => void) | undefined;
27
27
  isSelected?: boolean | undefined;
28
- onClick?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined;
28
+ onClick?: ((event: React.MouseEvent<HTMLTableRowElement, MouseEvent>) => void) | undefined;
29
29
  rowIndex?: number | undefined;
30
30
  onDragStart?: ((rowIndex: number) => void) | undefined;
31
31
  onDragEnd?: (() => void) | undefined;
@@ -1,10 +1,10 @@
1
- import React, { ReactNode, SyntheticEvent, HTMLAttributes } from 'react';
1
+ import React, { ReactNode, HTMLAttributes, MouseEvent } from 'react';
2
2
  import { Override } from '../../../shared';
3
3
  declare type TableRowProps = Override<HTMLAttributes<HTMLTableRowElement>, {
4
4
  children?: ReactNode;
5
5
  onSelectToggle?: (isSelected: boolean) => void;
6
6
  isSelected?: boolean;
7
- onClick?: (event: SyntheticEvent) => void;
7
+ onClick?: (event: MouseEvent<HTMLTableRowElement>) => void;
8
8
  rowIndex?: number;
9
9
  onDragStart?: (rowIndex: number) => void;
10
10
  onDragEnd?: () => void;
@@ -13,7 +13,7 @@ declare const TableRow: React.ForwardRefExoticComponent<Omit<React.HTMLAttribute
13
13
  children?: ReactNode;
14
14
  onSelectToggle?: ((isSelected: boolean) => void) | undefined;
15
15
  isSelected?: boolean | undefined;
16
- onClick?: ((event: SyntheticEvent) => void) | undefined;
16
+ onClick?: ((event: MouseEvent<HTMLTableRowElement>) => void) | undefined;
17
17
  rowIndex?: number | undefined;
18
18
  onDragStart?: ((rowIndex: number) => void) | undefined;
19
19
  onDragEnd?: (() => void) | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"TableRow.js","sourceRoot":"","sources":["../../../../src/components/Table/TableRow/TableRow.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA+G;AAC/G,qEAA8C;AAC9C,wCAA2D;AAC3D,kDAA6C;AAE7C,gDAA6C;AAC7C,oDAAiD;AACjD,wCAAuC;AACvC,gFAAkG;AAElG,IAAM,YAAY,GAAG,2BAAM,CAAC,EAAE,4NAO7B,MACG,EAMC,SAED,EAMC,QAED,EAMC,QAED,EAIC,QAED,EAIC,6CAIC,EAIC,yDAMN,KAhDG,UAAC,EAAY;QAAX,UAAU,gBAAA;IACZ,OAAA,UAAU,QACV,uBAAG,oIAAA,4CAEqB,EAAoB,kBAE3C,KAFuB,IAAA,gBAAQ,EAAC,MAAM,EAAE,EAAE,CAAC,CAE3C;AALD,CAKC,EAED,UAAC,EAAa;QAAZ,WAAW,iBAAA;IACb,OAAA,WAAW,QACX,uBAAG,gIAAA,4DAIF,IAAA;AALD,CAKC,EAED,UAAC,EAAoB;QAAnB,kBAAkB,wBAAA;IACpB,OAAA,kBAA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,CAChB,CAAC;AACJ,CAAC,CACF,CAAC;AAEM,4BAAQ"}
@@ -31,7 +31,8 @@ var GroupsIcon = function (_a) {
31
31
  var title = _a.title, _b = _a.size, size = _b === void 0 ? 24 : _b, _c = _a.color, color = _c === void 0 ? 'currentColor' : _c, props = __rest(_a, ["title", "size", "color"]);
32
32
  return (react_1.default.createElement("svg", __assign({ viewBox: "0 0 24 24", width: size, height: size }, props),
33
33
  title && react_1.default.createElement("title", null, title),
34
- react_1.default.createElement("path", { stroke: color, d: "M19 7h3v15H7v-2M17 5h2v15H4v-3M2 2h15v15H2V2z", fill: "none", fillRule: "evenodd", strokeLinecap: "round", strokeLinejoin: "round" })));
34
+ react_1.default.createElement("g", { stroke: "none", strokeWidth: "1", fill: "none", fillRule: "evenodd", strokeLinecap: "round", strokeLinejoin: "round" },
35
+ react_1.default.createElement("path", { stroke: color, d: "M19.5776804,6.5 L21.5,6.5 L21.5,21.5 L6.5,21.5 L6.5,19.6648177 M17.5,4.5 L19.5,4.5 L19.5,19.5 L4.5,19.5 L4.5,17.6087216 M2.5,2.5 L17.5,2.5 L17.5,17.5 L2.5,17.5 L2.5,2.5 Z" }))));
35
36
  };
36
37
  exports.GroupsIcon = GroupsIcon;
37
38
  //# sourceMappingURL=GroupsIcon.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"GroupsIcon.js","sourceRoot":"","sources":["../../src/icons/GroupsIcon.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAA0B;AAG1B,IAAM,UAAU,GAAG,UAAC,EAA+D;IAA9D,IAAA,KAAK,WAAA,EAAE,YAAS,EAAT,IAAI,mBAAG,EAAE,KAAA,EAAE,aAAsB,EAAtB,KAAK,mBAAG,cAAc,KAAA,EAAK,KAAK,cAAnD,0BAAoD,CAAD;IAAiB,OAAA,CACtF,gDAAK,OAAO,EAAC,WAAW,EAAC,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,IAAM,KAAK;QAC1D,KAAK,IAAI,6CAAQ,KAAK,CAAS;QAChC,wCACE,MAAM,EAAE,KAAK,EACb,CAAC,EAAC,+CAA+C,EACjD,IAAI,EAAC,MAAM,EACX,QAAQ,EAAC,SAAS,EAClB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,GACtB,CACE,CACP,CAAA;CAAA,CAAC;AAEM,gCAAU"}
1
+ {"version":3,"file":"GroupsIcon.js","sourceRoot":"","sources":["../../src/icons/GroupsIcon.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAA0B;AAG1B,IAAM,UAAU,GAAG,UAAC,EAA+D;IAA9D,IAAA,KAAK,WAAA,EAAE,YAAS,EAAT,IAAI,mBAAG,EAAE,KAAA,EAAE,aAAsB,EAAtB,KAAK,mBAAG,cAAc,KAAA,EAAK,KAAK,cAAnD,0BAAoD,CAAD;IAAiB,OAAA,CACtF,gDAAK,OAAO,EAAC,WAAW,EAAC,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,IAAM,KAAK;QAC1D,KAAK,IAAI,6CAAQ,KAAK,CAAS;QAChC,qCAAG,MAAM,EAAC,MAAM,EAAC,WAAW,EAAC,GAAG,EAAC,IAAI,EAAC,MAAM,EAAC,QAAQ,EAAC,SAAS,EAAC,aAAa,EAAC,OAAO,EAAC,cAAc,EAAC,OAAO;YAC1G,wCACE,MAAM,EAAE,KAAK,EACb,CAAC,EAAC,4KAA4K,GAC9K,CACA,CACA,CACP,CAAA;CAAA,CAAC;AAEM,gCAAU"}
@@ -1,6 +1,7 @@
1
1
  declare enum Key {
2
2
  Space = " ",
3
3
  Enter = "Enter",
4
+ NumpadEnter = "NumpadEnter",
4
5
  Backspace = "Backspace",
5
6
  Escape = "Escape",
6
7
  ArrowLeft = "ArrowLeft",
package/lib/shared/key.js CHANGED
@@ -5,6 +5,7 @@ var Key;
5
5
  (function (Key) {
6
6
  Key["Space"] = " ";
7
7
  Key["Enter"] = "Enter";
8
+ Key["NumpadEnter"] = "NumpadEnter";
8
9
  Key["Backspace"] = "Backspace";
9
10
  Key["Escape"] = "Escape";
10
11
  Key["ArrowLeft"] = "ArrowLeft";
@@ -1 +1 @@
1
- {"version":3,"file":"key.js","sourceRoot":"","sources":["../../src/shared/key.ts"],"names":[],"mappings":";;;AAAA,IAAK,GAWJ;AAXD,WAAK,GAAG;IACN,kBAAW,CAAA;IACX,sBAAe,CAAA;IACf,8BAAuB,CAAA;IACvB,wBAAiB,CAAA;IACjB,8BAAuB,CAAA;IACvB,gCAAyB,CAAA;IACzB,8BAAuB,CAAA;IACvB,0BAAmB,CAAA;IACnB,wBAAiB,CAAA;IACjB,kBAAW,CAAA;AACb,CAAC,EAXI,GAAG,KAAH,GAAG,QAWP;AAEO,kBAAG"}
1
+ {"version":3,"file":"key.js","sourceRoot":"","sources":["../../src/shared/key.ts"],"names":[],"mappings":";;;AAAA,IAAK,GAYJ;AAZD,WAAK,GAAG;IACN,kBAAW,CAAA;IACX,sBAAe,CAAA;IACf,kCAA2B,CAAA;IAC3B,8BAAuB,CAAA;IACvB,wBAAiB,CAAA;IACjB,8BAAuB,CAAA;IACvB,gCAAyB,CAAA;IACzB,8BAAuB,CAAA;IACvB,0BAAmB,CAAA;IACnB,wBAAiB,CAAA;IACjB,kBAAW,CAAA;AACb,CAAC,EAZI,GAAG,KAAH,GAAG,QAYP;AAEO,kBAAG"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "akeneo-design-system",
3
- "version": "0.1.162",
3
+ "version": "0.1.166",
4
4
  "description": "Akeneo design system",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {