colibri-ui 0.8.84 → 0.8.86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Accordion/Accordion.module.css +4 -0
- package/Accordion/index.js +15 -23
- package/Autocomplete/Autocomplete.js +101 -132
- package/Avatar/Avatar.module.css +6 -0
- package/Avatar/index.js +102 -89
- package/Badge/Badge.module.css +2 -1
- package/Badge/Control/index.js +5 -3
- package/Badge/index.js +16 -16
- package/Button/index.js +23 -20
- package/Button/tokens.js +2 -2
- package/Calendar/Calendar.js +171 -269
- package/Card/Card.js +26 -32
- package/Checkbox/index.js +46 -43
- package/Chip/Chip.module.css +2 -1
- package/Chip/index.js +15 -15
- package/ClickOutside/index.js +10 -13
- package/CodeField/CodeField.js +113 -170
- package/Counter/Counter.module.css +2 -1
- package/Counter/index.js +21 -20
- package/Datepicker/components/DatePicker/index.js +81 -102
- package/Datepicker/index.js +17 -16
- package/DotsLoader/index.js +23 -15
- package/Drawer/Drawer.js +75 -97
- package/Drawer/Drawer.module.css +2 -1
- package/Dropdown/index.js +55 -68
- package/Dropzone/Dropzone.js +78 -168
- package/Dropzone/Dropzone.module.css +2 -1
- package/Editable/Editable.js +44 -57
- package/Grid/Item/index.js +11 -13
- package/Grid/index.js +15 -21
- package/Icons/ArrowNext.js +7 -8
- package/Icons/Cart.js +7 -8
- package/Icons/Check.js +7 -8
- package/Icons/Chevron.js +7 -8
- package/Icons/Close.js +6 -6
- package/Icons/Copy.js +7 -8
- package/Icons/Cross.js +6 -6
- package/Icons/CrossFill.js +7 -8
- package/Icons/Edit.js +7 -8
- package/Icons/Exit.js +7 -8
- package/Icons/EyeClosed.js +7 -8
- package/Icons/EyeOpen.js +7 -8
- package/Icons/Help.js +6 -6
- package/Icons/Info.js +7 -8
- package/Icons/Minus.js +7 -8
- package/Icons/More.js +7 -8
- package/Icons/Plus.js +7 -8
- package/Icons/Setting.js +7 -8
- package/Icons/Shield.js +7 -8
- package/Icons/Trash.js +7 -8
- package/Icons/User.js +7 -8
- package/Image/Image.module.css +4 -0
- package/Image/index.d.ts +1 -1
- package/Image/index.js +44 -37
- package/Input/index.d.ts +1 -1
- package/Input/index.js +37 -25
- package/Input/index.props.d.ts +1 -1
- package/InputRadio/index.js +32 -24
- package/List/List.js +81 -76
- package/Menu/Menu.module.css +2 -1
- package/Menu/components/MenuItem/index.js +17 -14
- package/Menu/index.js +22 -23
- package/Modal/components/Body/index.js +9 -8
- package/Modal/components/Close/Close.module.css +4 -0
- package/Modal/components/Close/index.js +13 -14
- package/Modal/components/Content/index.js +5 -6
- package/Modal/components/Footer/index.js +5 -3
- package/Modal/components/Header/index.js +13 -12
- package/Modal/components/Title/index.js +10 -9
- package/Modal/context.js +3 -3
- package/Modal/index.js +46 -68
- package/MultiSelect/components/MenuOverlay/index.js +48 -61
- package/MultiSelect/components/MenuOverlayItem/index.js +13 -14
- package/MultiSelect/index.js +72 -100
- package/MultiSelect/index.module.css +2 -1
- package/MultiSelect/utils/index.js +8 -18
- package/NumberInput/NumberInput.js +80 -112
- package/Portal/index.js +6 -10
- package/Progress/Progress.js +45 -58
- package/RadioGroup/Radio.js +29 -32
- package/RadioGroup/index.js +43 -46
- package/Rating/Rating.js +50 -63
- package/Select/components/MenuOverlay/index.js +16 -25
- package/Select/components/MenuOverlayItem/index.js +13 -11
- package/Select/index.js +39 -48
- package/Select/index.module.css +2 -1
- package/Separator/index.js +5 -6
- package/Sheet/Sheet.js +89 -121
- package/Sheet/Sheet.module.css +4 -2
- package/Skeleton/index.js +25 -30
- package/Slider/Slider.js +83 -119
- package/Status/index.js +17 -18
- package/Switch/Switch.module.css +2 -1
- package/Switch/index.js +22 -15
- package/TabsMenu/Tab/Tab.js +14 -10
- package/TabsMenu/Tab/Tab.module.css +2 -1
- package/TabsMenu/index.js +25 -26
- package/TabsPanels/Panel/index.js +6 -4
- package/TabsPanels/index.js +13 -10
- package/TextArea/index.d.ts +1 -1
- package/TextArea/index.js +30 -19
- package/Theme/breakpoints.js +5 -11
- package/Theme/colors/theme_buenos_aires.js +14 -14
- package/Theme/colors/theme_jaipur.js +14 -14
- package/Theme/global.css +0 -1
- package/Theme/index.js +1 -1
- package/TimeSelect/Label/index.js +11 -13
- package/TimeSelect/helpers.js +23 -42
- package/TimeSelect/index.js +32 -38
- package/Tooltip/index.js +36 -42
- package/Typography/index.js +17 -13
- package/Typography/index.props.d.ts +3 -0
- package/base/BaseInput/index.js +10 -8
- package/base/FormField/index.d.ts +1 -1
- package/base/FormField/index.js +27 -22
- package/base/FormField/index.props.d.ts +4 -0
- package/base/InputRoot/index.js +27 -27
- package/esm/Accordion/Accordion.module.css +4 -0
- package/esm/Accordion/index.js +15 -21
- package/esm/Autocomplete/Autocomplete.js +101 -130
- package/esm/Avatar/Avatar.module.css +6 -0
- package/esm/Avatar/index.js +102 -88
- package/esm/Badge/Badge.module.css +2 -1
- package/esm/Badge/Control/index.js +5 -3
- package/esm/Badge/index.js +16 -15
- package/esm/Button/index.js +23 -19
- package/esm/Button/tokens.js +2 -2
- package/esm/Calendar/Calendar.js +171 -267
- package/esm/Card/Card.js +26 -32
- package/esm/Checkbox/index.js +46 -42
- package/esm/Chip/Chip.module.css +2 -1
- package/esm/Chip/index.js +15 -14
- package/esm/ClickOutside/index.js +10 -13
- package/esm/CodeField/CodeField.js +113 -169
- package/esm/Counter/Counter.module.css +2 -1
- package/esm/Counter/index.js +21 -19
- package/esm/Datepicker/components/DatePicker/index.js +81 -101
- package/esm/Datepicker/index.js +17 -16
- package/esm/DotsLoader/index.js +23 -14
- package/esm/Drawer/Drawer.js +75 -96
- package/esm/Drawer/Drawer.module.css +2 -1
- package/esm/Dropdown/index.js +55 -66
- package/esm/Dropzone/Dropzone.js +78 -165
- package/esm/Dropzone/Dropzone.module.css +2 -1
- package/esm/Editable/Editable.js +44 -56
- package/esm/Grid/Item/index.js +11 -12
- package/esm/Grid/index.js +15 -21
- package/esm/Icons/ArrowNext.js +7 -8
- package/esm/Icons/Cart.js +7 -8
- package/esm/Icons/Check.js +7 -8
- package/esm/Icons/Chevron.js +7 -8
- package/esm/Icons/Close.js +6 -6
- package/esm/Icons/Copy.js +7 -8
- package/esm/Icons/Cross.js +6 -6
- package/esm/Icons/CrossFill.js +7 -8
- package/esm/Icons/Edit.js +7 -8
- package/esm/Icons/Exit.js +7 -8
- package/esm/Icons/EyeClosed.js +7 -8
- package/esm/Icons/EyeOpen.js +7 -8
- package/esm/Icons/Help.js +6 -6
- package/esm/Icons/Info.js +7 -8
- package/esm/Icons/Minus.js +7 -8
- package/esm/Icons/More.js +7 -8
- package/esm/Icons/Plus.js +7 -8
- package/esm/Icons/Setting.js +7 -8
- package/esm/Icons/Shield.js +7 -8
- package/esm/Icons/Trash.js +7 -8
- package/esm/Icons/User.js +7 -8
- package/esm/Image/Image.module.css +4 -0
- package/esm/Image/index.d.ts +1 -1
- package/esm/Image/index.js +44 -36
- package/esm/Input/index.d.ts +1 -1
- package/esm/Input/index.js +38 -26
- package/esm/Input/index.props.d.ts +1 -1
- package/esm/InputRadio/index.js +32 -23
- package/esm/List/List.js +81 -75
- package/esm/Menu/Menu.module.css +2 -1
- package/esm/Menu/components/MenuItem/index.js +17 -13
- package/esm/Menu/index.js +22 -23
- package/esm/Modal/components/Body/index.js +9 -7
- package/esm/Modal/components/Close/Close.module.css +4 -0
- package/esm/Modal/components/Close/index.js +13 -14
- package/esm/Modal/components/Content/index.js +5 -6
- package/esm/Modal/components/Footer/index.js +5 -3
- package/esm/Modal/components/Header/index.js +13 -11
- package/esm/Modal/components/Title/index.js +10 -9
- package/esm/Modal/context.js +3 -3
- package/esm/Modal/index.js +50 -70
- package/esm/MultiSelect/components/MenuOverlay/index.js +48 -60
- package/esm/MultiSelect/components/MenuOverlayItem/index.js +13 -14
- package/esm/MultiSelect/index.js +72 -97
- package/esm/MultiSelect/index.module.css +2 -1
- package/esm/MultiSelect/utils/index.js +8 -14
- package/esm/NumberInput/NumberInput.js +80 -111
- package/esm/Portal/index.js +6 -9
- package/esm/Progress/Progress.js +45 -58
- package/esm/RadioGroup/Radio.js +29 -32
- package/esm/RadioGroup/index.js +43 -45
- package/esm/Rating/Rating.js +50 -63
- package/esm/Select/components/MenuOverlay/index.js +16 -24
- package/esm/Select/components/MenuOverlayItem/index.js +13 -11
- package/esm/Select/index.js +39 -46
- package/esm/Select/index.module.css +2 -1
- package/esm/Separator/index.js +5 -6
- package/esm/Sheet/Sheet.js +89 -119
- package/esm/Sheet/Sheet.module.css +4 -2
- package/esm/Skeleton/index.js +25 -30
- package/esm/Slider/Slider.js +83 -119
- package/esm/Status/index.js +17 -17
- package/esm/Switch/Switch.module.css +2 -1
- package/esm/Switch/index.js +22 -14
- package/esm/TabsMenu/Tab/Tab.js +14 -9
- package/esm/TabsMenu/Tab/Tab.module.css +2 -1
- package/esm/TabsMenu/index.js +25 -26
- package/esm/TabsPanels/Panel/index.js +6 -4
- package/esm/TabsPanels/index.js +13 -10
- package/esm/TextArea/index.d.ts +1 -1
- package/esm/TextArea/index.js +31 -20
- package/esm/Theme/breakpoints.js +5 -11
- package/esm/Theme/colors/theme_buenos_aires.js +14 -14
- package/esm/Theme/colors/theme_jaipur.js +14 -14
- package/esm/Theme/global.css +0 -1
- package/esm/Theme/index.js +1 -1
- package/esm/TimeSelect/Label/index.js +11 -13
- package/esm/TimeSelect/helpers.js +22 -37
- package/esm/TimeSelect/index.js +32 -38
- package/esm/Tooltip/index.js +36 -41
- package/esm/Typography/index.js +17 -12
- package/esm/Typography/index.props.d.ts +3 -0
- package/esm/base/BaseInput/index.js +10 -8
- package/esm/base/FormField/index.d.ts +1 -1
- package/esm/base/FormField/index.js +27 -21
- package/esm/base/FormField/index.props.d.ts +4 -0
- package/esm/base/InputRoot/index.js +27 -26
- package/esm/helpers/date/index.js +4 -8
- package/esm/hooks/useMediaSizes/index.js +9 -15
- package/esm/hooks/useModalStack/index.js +6 -9
- package/esm/hooks/useOnClickOutside/index.js +6 -6
- package/esm/hooks/useScrollLock/index.js +10 -9
- package/esm/hooks/useTrapFocus/index.js +8 -10
- package/esm/lib/keyboard.js +2 -4
- package/helpers/date/index.js +21 -32
- package/hooks/useMediaSizes/index.js +9 -15
- package/hooks/useModalStack/index.js +6 -9
- package/hooks/useOnClickOutside/index.js +6 -6
- package/hooks/useScrollLock/index.js +10 -9
- package/hooks/useTrapFocus/index.js +8 -10
- package/lib/keyboard.js +2 -4
- package/package.json +5 -1
package/Editable/Editable.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
|
|
4
3
|
var tslib = require('tslib');
|
|
5
4
|
var React = require('react');
|
|
6
5
|
require('../Icons/index.js');
|
|
@@ -9,81 +8,69 @@ var Edit = require('../Icons/Edit.js');
|
|
|
9
8
|
|
|
10
9
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
10
|
|
|
12
|
-
var _slicedToArray__default = /*#__PURE__*/_interopDefault(_slicedToArray);
|
|
13
11
|
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
14
12
|
var styles__default = /*#__PURE__*/_interopDefault(styles);
|
|
15
13
|
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
const placeCaretAtEnd = element => {
|
|
15
|
+
const selection = window.getSelection();
|
|
18
16
|
if (!selection) return;
|
|
19
|
-
|
|
17
|
+
const range = document.createRange();
|
|
20
18
|
range.selectNodeContents(element);
|
|
21
19
|
range.collapse(false);
|
|
22
20
|
selection.removeAllRanges();
|
|
23
21
|
selection.addRange(range);
|
|
24
22
|
};
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
const insertTextAtSelection = (element, text) => {
|
|
24
|
+
const selection = window.getSelection();
|
|
27
25
|
if (!selection || selection.rangeCount === 0) {
|
|
28
26
|
element.append(document.createTextNode(text));
|
|
29
27
|
placeCaretAtEnd(element);
|
|
30
28
|
return;
|
|
31
29
|
}
|
|
32
|
-
|
|
30
|
+
const range = selection.getRangeAt(0);
|
|
33
31
|
range.deleteContents();
|
|
34
|
-
|
|
32
|
+
const node = document.createTextNode(text);
|
|
35
33
|
range.insertNode(node);
|
|
36
34
|
range.setStartAfter(node);
|
|
37
35
|
range.collapse(true);
|
|
38
36
|
selection.removeAllRanges();
|
|
39
37
|
selection.addRange(range);
|
|
40
38
|
};
|
|
41
|
-
|
|
42
|
-
var
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
onChange = _a.onChange,
|
|
60
|
-
onBlur = _a.onBlur,
|
|
61
|
-
onPaste = _a.onPaste,
|
|
39
|
+
const Editable = /*#__PURE__*/React.forwardRef(function EditableComponent(_a, forwardedRef) {
|
|
40
|
+
var {
|
|
41
|
+
value,
|
|
42
|
+
textComponent: TextComponent = "span",
|
|
43
|
+
icon = /*#__PURE__*/React__default.default.createElement(Edit.Edit, {
|
|
44
|
+
className: styles__default.default.default_icon,
|
|
45
|
+
"aria-hidden": "true"
|
|
46
|
+
}),
|
|
47
|
+
placeholder = "",
|
|
48
|
+
maxLength,
|
|
49
|
+
name,
|
|
50
|
+
disabled = false,
|
|
51
|
+
spellCheck = false,
|
|
52
|
+
className,
|
|
53
|
+
onChange,
|
|
54
|
+
onBlur,
|
|
55
|
+
onPaste
|
|
56
|
+
} = _a,
|
|
62
57
|
rest = tslib.__rest(_a, ["value", "textComponent", "icon", "placeholder", "maxLength", "name", "disabled", "spellCheck", "className", "onChange", "onBlur", "onPaste"]);
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
_useState4 = _slicedToArray__default.default(_useState3, 2),
|
|
70
|
-
isEditing = _useState4[0],
|
|
71
|
-
setIsEditing = _useState4[1];
|
|
72
|
-
var lastValidValue = React.useRef(value !== null && value !== void 0 ? value : "");
|
|
73
|
-
React.useImperativeHandle(forwardedRef, function () {
|
|
74
|
-
return editorRef.current;
|
|
75
|
-
}, []);
|
|
76
|
-
React.useEffect(function () {
|
|
58
|
+
const editorRef = React.useRef(null);
|
|
59
|
+
const [currentValue, setCurrentValue] = React.useState(value !== null && value !== void 0 ? value : "");
|
|
60
|
+
const [isEditing, setIsEditing] = React.useState(false);
|
|
61
|
+
const lastValidValue = React.useRef(value !== null && value !== void 0 ? value : "");
|
|
62
|
+
React.useImperativeHandle(forwardedRef, () => editorRef.current, []);
|
|
63
|
+
React.useEffect(() => {
|
|
77
64
|
if (value === undefined || value === lastValidValue.current) return;
|
|
78
65
|
lastValidValue.current = value;
|
|
79
66
|
setCurrentValue(value);
|
|
80
67
|
if (editorRef.current) editorRef.current.textContent = value;
|
|
81
68
|
}, [value]);
|
|
82
|
-
|
|
69
|
+
const commitInput = React.useCallback(event => {
|
|
83
70
|
var _a;
|
|
84
|
-
|
|
71
|
+
const editor = editorRef.current;
|
|
85
72
|
if (!editor) return;
|
|
86
|
-
|
|
73
|
+
const nextValue = (_a = editor.textContent) !== null && _a !== void 0 ? _a : "";
|
|
87
74
|
if (maxLength !== undefined && nextValue.length > maxLength) {
|
|
88
75
|
editor.textContent = lastValidValue.current;
|
|
89
76
|
placeCaretAtEnd(editor);
|
|
@@ -93,39 +80,39 @@ var Editable = /*#__PURE__*/React.forwardRef(function EditableComponent(_a, forw
|
|
|
93
80
|
setCurrentValue(nextValue);
|
|
94
81
|
onChange === null || onChange === void 0 ? void 0 : onChange(event, nextValue);
|
|
95
82
|
}, [maxLength, onChange]);
|
|
96
|
-
|
|
83
|
+
const handleFocus = event => {
|
|
97
84
|
setIsEditing(true);
|
|
98
|
-
|
|
99
|
-
|
|
85
|
+
const selection = window.getSelection();
|
|
86
|
+
const range = document.createRange();
|
|
100
87
|
range.selectNodeContents(event.currentTarget);
|
|
101
88
|
selection === null || selection === void 0 ? void 0 : selection.removeAllRanges();
|
|
102
89
|
selection === null || selection === void 0 ? void 0 : selection.addRange(range);
|
|
103
90
|
};
|
|
104
|
-
|
|
91
|
+
const handleBlur = event => {
|
|
105
92
|
var _a;
|
|
106
93
|
setIsEditing(false);
|
|
107
94
|
(_a = window.getSelection()) === null || _a === void 0 ? void 0 : _a.removeAllRanges();
|
|
108
95
|
if (event.currentTarget.innerHTML === "<br>") event.currentTarget.innerHTML = "";
|
|
109
96
|
onBlur === null || onBlur === void 0 ? void 0 : onBlur(event);
|
|
110
97
|
};
|
|
111
|
-
|
|
98
|
+
const handleKeyDown = event => {
|
|
112
99
|
if (event.key === "Enter") event.preventDefault();
|
|
113
100
|
if (event.key === "Enter" || event.key === "Escape") event.currentTarget.blur();
|
|
114
101
|
};
|
|
115
|
-
|
|
102
|
+
const handlePaste = event => {
|
|
116
103
|
var _a, _b;
|
|
117
104
|
event.preventDefault();
|
|
118
|
-
|
|
105
|
+
let text = event.clipboardData.getData("text/plain").replace(/[\r\n]+/g, " ");
|
|
119
106
|
if (maxLength !== undefined) {
|
|
120
|
-
|
|
121
|
-
|
|
107
|
+
const selectionLength = (_b = (_a = window.getSelection()) === null || _a === void 0 ? void 0 : _a.toString().length) !== null && _b !== void 0 ? _b : 0;
|
|
108
|
+
const available = Math.max(0, maxLength - currentValue.length + selectionLength);
|
|
122
109
|
text = text.slice(0, available);
|
|
123
110
|
}
|
|
124
111
|
insertTextAtSelection(event.currentTarget, text);
|
|
125
112
|
commitInput(event);
|
|
126
113
|
onPaste === null || onPaste === void 0 ? void 0 : onPaste(event);
|
|
127
114
|
};
|
|
128
|
-
|
|
115
|
+
const focusEditor = () => {
|
|
129
116
|
var _a;
|
|
130
117
|
if (!disabled) (_a = editorRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
131
118
|
};
|
package/Grid/Item/index.js
CHANGED
|
@@ -1,27 +1,25 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
4
3
|
var React = require('react');
|
|
5
4
|
var clsx = require('clsx');
|
|
6
5
|
var styles = require('./Grid-Item.module.css');
|
|
7
6
|
|
|
8
7
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
8
|
|
|
10
|
-
var _defineProperty__default = /*#__PURE__*/_interopDefault(_defineProperty);
|
|
11
9
|
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
12
10
|
var clsx__default = /*#__PURE__*/_interopDefault(clsx);
|
|
13
11
|
var styles__default = /*#__PURE__*/_interopDefault(styles);
|
|
14
12
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
};
|
|
13
|
+
const GridItem = ({
|
|
14
|
+
children,
|
|
15
|
+
fullWidth = false,
|
|
16
|
+
className,
|
|
17
|
+
style
|
|
18
|
+
}) => (/*#__PURE__*/React__default.default.createElement("div", {
|
|
19
|
+
className: clsx__default.default(styles__default.default.item, {
|
|
20
|
+
[styles__default.default.full]: Boolean(fullWidth)
|
|
21
|
+
}, className),
|
|
22
|
+
style: style
|
|
23
|
+
}, children));
|
|
26
24
|
|
|
27
25
|
exports.GridItem = GridItem;
|
package/Grid/index.js
CHANGED
|
@@ -10,26 +10,20 @@ var React__default = /*#__PURE__*/_interopDefault(React);
|
|
|
10
10
|
var clsx__default = /*#__PURE__*/_interopDefault(clsx);
|
|
11
11
|
var styles__default = /*#__PURE__*/_interopDefault(styles);
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
rowGap: "var(--space-".concat(gridRowGap, ")"),
|
|
29
|
-
columnGap: "var(--space-".concat(gridColumnGap, ")"),
|
|
30
|
-
gridTemplateColumns: "repeat(auto-fill, minmax(".concat(toRemLength(gridItemMinWidth), ", 1fr))")
|
|
31
|
-
}
|
|
32
|
-
}, children);
|
|
33
|
-
};
|
|
13
|
+
const toRemLength = value => typeof value === "number" ? `${value / 16}rem` : value;
|
|
14
|
+
const Grid = ({
|
|
15
|
+
children,
|
|
16
|
+
gridRowGap = "6",
|
|
17
|
+
gridColumnGap = "4",
|
|
18
|
+
gridItemMinWidth = "var(--component-grid-item-min-width)",
|
|
19
|
+
className
|
|
20
|
+
}) => (/*#__PURE__*/React__default.default.createElement("div", {
|
|
21
|
+
className: clsx__default.default(styles__default.default.root, className),
|
|
22
|
+
style: {
|
|
23
|
+
rowGap: `var(--space-${gridRowGap})`,
|
|
24
|
+
columnGap: `var(--space-${gridColumnGap})`,
|
|
25
|
+
gridTemplateColumns: `repeat(auto-fill, minmax(${toRemLength(gridItemMinWidth)}, 1fr))`
|
|
26
|
+
}
|
|
27
|
+
}, children));
|
|
34
28
|
|
|
35
29
|
exports.Grid = Grid;
|
package/Icons/ArrowNext.js
CHANGED
|
@@ -7,14 +7,13 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
|
7
7
|
|
|
8
8
|
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
ref = _a.ref,
|
|
10
|
+
const ArrowNext = _a => {
|
|
11
|
+
var {
|
|
12
|
+
fill = "currentColor",
|
|
13
|
+
width = 10,
|
|
14
|
+
height = 16,
|
|
15
|
+
ref
|
|
16
|
+
} = _a,
|
|
18
17
|
props = tslib.__rest(_a, ["fill", "width", "height", "ref"]);
|
|
19
18
|
return /*#__PURE__*/React__default.default.createElement("svg", Object.assign({
|
|
20
19
|
ref: ref,
|
package/Icons/Cart.js
CHANGED
|
@@ -7,14 +7,13 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
|
7
7
|
|
|
8
8
|
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
ref = _a.ref,
|
|
10
|
+
const Cart = _a => {
|
|
11
|
+
var {
|
|
12
|
+
fill = "currentColor",
|
|
13
|
+
width = 24,
|
|
14
|
+
height = 24,
|
|
15
|
+
ref
|
|
16
|
+
} = _a,
|
|
18
17
|
props = tslib.__rest(_a, ["fill", "width", "height", "ref"]);
|
|
19
18
|
return /*#__PURE__*/React__default.default.createElement("svg", Object.assign({
|
|
20
19
|
xmlns: "http://www.w3.org/2000/svg",
|
package/Icons/Check.js
CHANGED
|
@@ -7,14 +7,13 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
|
7
7
|
|
|
8
8
|
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
ref = _a.ref,
|
|
10
|
+
const Check = _a => {
|
|
11
|
+
var {
|
|
12
|
+
fill = "currentColor",
|
|
13
|
+
width = 24,
|
|
14
|
+
height = 24,
|
|
15
|
+
ref
|
|
16
|
+
} = _a,
|
|
18
17
|
props = tslib.__rest(_a, ["fill", "width", "height", "ref"]);
|
|
19
18
|
return /*#__PURE__*/React__default.default.createElement("svg", Object.assign({
|
|
20
19
|
xmlns: "http://www.w3.org/2000/svg",
|
package/Icons/Chevron.js
CHANGED
|
@@ -7,14 +7,13 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
|
7
7
|
|
|
8
8
|
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
ref = _a.ref,
|
|
10
|
+
const Chevron = _a => {
|
|
11
|
+
var {
|
|
12
|
+
fill = "currentColor",
|
|
13
|
+
width = 24,
|
|
14
|
+
height = 24,
|
|
15
|
+
ref
|
|
16
|
+
} = _a,
|
|
18
17
|
props = tslib.__rest(_a, ["fill", "width", "height", "ref"]);
|
|
19
18
|
return /*#__PURE__*/React__default.default.createElement("svg", Object.assign({
|
|
20
19
|
xmlns: "http://www.w3.org/2000/svg",
|
package/Icons/Close.js
CHANGED
|
@@ -7,12 +7,12 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
|
7
7
|
|
|
8
8
|
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
const Close = _a => {
|
|
11
|
+
var {
|
|
12
|
+
width = 24,
|
|
13
|
+
height = 24,
|
|
14
|
+
ref
|
|
15
|
+
} = _a,
|
|
16
16
|
props = tslib.__rest(_a, ["width", "height", "ref"]);
|
|
17
17
|
return /*#__PURE__*/React__default.default.createElement("svg", Object.assign({
|
|
18
18
|
xmlns: "http://www.w3.org/2000/svg",
|
package/Icons/Copy.js
CHANGED
|
@@ -7,14 +7,13 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
|
7
7
|
|
|
8
8
|
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
ref = _a.ref,
|
|
10
|
+
const Copy = _a => {
|
|
11
|
+
var {
|
|
12
|
+
fill = "currentColor",
|
|
13
|
+
width = 24,
|
|
14
|
+
height = 24,
|
|
15
|
+
ref
|
|
16
|
+
} = _a,
|
|
18
17
|
props = tslib.__rest(_a, ["fill", "width", "height", "ref"]);
|
|
19
18
|
return /*#__PURE__*/React__default.default.createElement("svg", Object.assign({
|
|
20
19
|
xmlns: "http://www.w3.org/2000/svg",
|
package/Icons/Cross.js
CHANGED
|
@@ -7,12 +7,12 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
|
7
7
|
|
|
8
8
|
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
const Cross = _a => {
|
|
11
|
+
var {
|
|
12
|
+
width = 24,
|
|
13
|
+
height = 24,
|
|
14
|
+
ref
|
|
15
|
+
} = _a,
|
|
16
16
|
props = tslib.__rest(_a, ["width", "height", "ref"]);
|
|
17
17
|
return /*#__PURE__*/React__default.default.createElement("svg", Object.assign({
|
|
18
18
|
xmlns: "http://www.w3.org/2000/svg",
|
package/Icons/CrossFill.js
CHANGED
|
@@ -7,14 +7,13 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
|
7
7
|
|
|
8
8
|
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
ref = _a.ref,
|
|
10
|
+
const CrossFill = _a => {
|
|
11
|
+
var {
|
|
12
|
+
fill = "currentColor",
|
|
13
|
+
width = 24,
|
|
14
|
+
height = 24,
|
|
15
|
+
ref
|
|
16
|
+
} = _a,
|
|
18
17
|
props = tslib.__rest(_a, ["fill", "width", "height", "ref"]);
|
|
19
18
|
return /*#__PURE__*/React__default.default.createElement("svg", Object.assign({
|
|
20
19
|
xmlns: "http://www.w3.org/2000/svg",
|
package/Icons/Edit.js
CHANGED
|
@@ -7,14 +7,13 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
|
7
7
|
|
|
8
8
|
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
ref = _a.ref,
|
|
10
|
+
const Edit = _a => {
|
|
11
|
+
var {
|
|
12
|
+
fill = "currentColor",
|
|
13
|
+
width = 24,
|
|
14
|
+
height = 24,
|
|
15
|
+
ref
|
|
16
|
+
} = _a,
|
|
18
17
|
props = tslib.__rest(_a, ["fill", "width", "height", "ref"]);
|
|
19
18
|
return /*#__PURE__*/React__default.default.createElement("svg", Object.assign({
|
|
20
19
|
xmlns: "http://www.w3.org/2000/svg",
|
package/Icons/Exit.js
CHANGED
|
@@ -7,14 +7,13 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
|
7
7
|
|
|
8
8
|
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
ref = _a.ref,
|
|
10
|
+
const Exit = _a => {
|
|
11
|
+
var {
|
|
12
|
+
fill = "currentColor",
|
|
13
|
+
width = 24,
|
|
14
|
+
height = 24,
|
|
15
|
+
ref
|
|
16
|
+
} = _a,
|
|
18
17
|
props = tslib.__rest(_a, ["fill", "width", "height", "ref"]);
|
|
19
18
|
return /*#__PURE__*/React__default.default.createElement("svg", Object.assign({
|
|
20
19
|
xmlns: "http://www.w3.org/2000/svg",
|
package/Icons/EyeClosed.js
CHANGED
|
@@ -7,14 +7,13 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
|
7
7
|
|
|
8
8
|
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
ref = _a.ref,
|
|
10
|
+
const EyeClosed = _a => {
|
|
11
|
+
var {
|
|
12
|
+
fill = "currentColor",
|
|
13
|
+
width = 24,
|
|
14
|
+
height = 24,
|
|
15
|
+
ref
|
|
16
|
+
} = _a,
|
|
18
17
|
props = tslib.__rest(_a, ["fill", "width", "height", "ref"]);
|
|
19
18
|
return /*#__PURE__*/React__default.default.createElement("svg", Object.assign({
|
|
20
19
|
xmlns: "http://www.w3.org/2000/svg",
|
package/Icons/EyeOpen.js
CHANGED
|
@@ -7,14 +7,13 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
|
7
7
|
|
|
8
8
|
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
ref = _a.ref,
|
|
10
|
+
const EyeOpen = _a => {
|
|
11
|
+
var {
|
|
12
|
+
fill = "currentColor",
|
|
13
|
+
width = 24,
|
|
14
|
+
height = 24,
|
|
15
|
+
ref
|
|
16
|
+
} = _a,
|
|
18
17
|
props = tslib.__rest(_a, ["fill", "width", "height", "ref"]);
|
|
19
18
|
return /*#__PURE__*/React__default.default.createElement("svg", Object.assign({
|
|
20
19
|
xmlns: "http://www.w3.org/2000/svg",
|
package/Icons/Help.js
CHANGED
|
@@ -7,12 +7,12 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
|
7
7
|
|
|
8
8
|
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
const Help = _a => {
|
|
11
|
+
var {
|
|
12
|
+
width = 24,
|
|
13
|
+
height = 24,
|
|
14
|
+
ref
|
|
15
|
+
} = _a,
|
|
16
16
|
props = tslib.__rest(_a, ["width", "height", "ref"]);
|
|
17
17
|
return /*#__PURE__*/React__default.default.createElement("svg", Object.assign({
|
|
18
18
|
xmlns: "http://www.w3.org/2000/svg",
|
package/Icons/Info.js
CHANGED
|
@@ -7,14 +7,13 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
|
7
7
|
|
|
8
8
|
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
ref = _a.ref,
|
|
10
|
+
const Info = _a => {
|
|
11
|
+
var {
|
|
12
|
+
fill = "currentColor",
|
|
13
|
+
width = 24,
|
|
14
|
+
height = 24,
|
|
15
|
+
ref
|
|
16
|
+
} = _a,
|
|
18
17
|
props = tslib.__rest(_a, ["fill", "width", "height", "ref"]);
|
|
19
18
|
return /*#__PURE__*/React__default.default.createElement("svg", Object.assign({
|
|
20
19
|
width: width,
|
package/Icons/Minus.js
CHANGED
|
@@ -7,14 +7,13 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
|
7
7
|
|
|
8
8
|
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
ref = _a.ref,
|
|
10
|
+
const Minus = _a => {
|
|
11
|
+
var {
|
|
12
|
+
fill = "currentColor",
|
|
13
|
+
width = 24,
|
|
14
|
+
height = 24,
|
|
15
|
+
ref
|
|
16
|
+
} = _a,
|
|
18
17
|
props = tslib.__rest(_a, ["fill", "width", "height", "ref"]);
|
|
19
18
|
return /*#__PURE__*/React__default.default.createElement("svg", Object.assign({
|
|
20
19
|
width: width,
|
package/Icons/More.js
CHANGED
|
@@ -7,14 +7,13 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
|
7
7
|
|
|
8
8
|
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
ref = _a.ref,
|
|
10
|
+
const More = _a => {
|
|
11
|
+
var {
|
|
12
|
+
fill = "currentColor",
|
|
13
|
+
width = 24,
|
|
14
|
+
height = 24,
|
|
15
|
+
ref
|
|
16
|
+
} = _a,
|
|
18
17
|
props = tslib.__rest(_a, ["fill", "width", "height", "ref"]);
|
|
19
18
|
return /*#__PURE__*/React__default.default.createElement("svg", Object.assign({
|
|
20
19
|
xmlns: "http://www.w3.org/2000/svg",
|
package/Icons/Plus.js
CHANGED
|
@@ -7,14 +7,13 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
|
7
7
|
|
|
8
8
|
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
ref = _a.ref,
|
|
10
|
+
const Plus = _a => {
|
|
11
|
+
var {
|
|
12
|
+
fill = "currentColor",
|
|
13
|
+
width = 18,
|
|
14
|
+
height = 18,
|
|
15
|
+
ref
|
|
16
|
+
} = _a,
|
|
18
17
|
props = tslib.__rest(_a, ["fill", "width", "height", "ref"]);
|
|
19
18
|
return /*#__PURE__*/React__default.default.createElement("svg", Object.assign({
|
|
20
19
|
xmlns: "http://www.w3.org/2000/svg",
|