@janiscommerce/ui-web 0.9.0 → 0.10.0
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/CHANGELOG.md +12 -0
- package/dist/index.umd.js +227 -79
- package/dist/index.umd.js.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('styled-components'), require('react-dom')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define(['exports', 'react', 'styled-components', 'react-dom'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.main = {}, global.React, global.styled$
|
|
5
|
-
})(this, (function (exports, React, styled$
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.main = {}, global.React, global.styled$c, global.require$$1));
|
|
5
|
+
})(this, (function (exports, React, styled$c, require$$1) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
9
9
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
10
|
-
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled$
|
|
10
|
+
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled$c);
|
|
11
11
|
var require$$1__default = /*#__PURE__*/_interopDefaultLegacy(require$$1);
|
|
12
12
|
|
|
13
13
|
function _classCallCheck$2(instance, Constructor) {
|
|
@@ -1779,9 +1779,9 @@
|
|
|
1779
1779
|
accelerate: 'cubic-bezier(0.4, 0.0, 1, 1)'
|
|
1780
1780
|
};
|
|
1781
1781
|
var mixins = {
|
|
1782
|
-
flexCenter: styled$
|
|
1782
|
+
flexCenter: styled$c.css(["display:flex;align-items:center;justify-content:center;"]),
|
|
1783
1783
|
placeholder: function placeholder(styles) {
|
|
1784
|
-
return styled$
|
|
1784
|
+
return styled$c.css(["&::-moz-placeholder{", "}&::-webkit-input-placeholder{", "}&:-moz-placeholder{", "}&:-ms-input-placeholder{", "}&::placeholder{", "}"], styles, styles, styles, styles, styles);
|
|
1785
1785
|
},
|
|
1786
1786
|
transition: function transition() {
|
|
1787
1787
|
var property = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'all';
|
|
@@ -1789,10 +1789,10 @@
|
|
|
1789
1789
|
var transitionProperty;
|
|
1790
1790
|
if (property.includes(',')) transitionProperty = "transition-property: ".concat(property);
|
|
1791
1791
|
var transition = "".concat(property.split(',')[0], " ").concat(time, " ").concat(timingFunctions.standard);
|
|
1792
|
-
return styled$
|
|
1792
|
+
return styled$c.css(["transition:", ";", ";"], transition, transitionProperty);
|
|
1793
1793
|
},
|
|
1794
1794
|
scrollbar: function scrollbar(thumbColor, shadowColor) {
|
|
1795
|
-
return styled$
|
|
1795
|
+
return styled$c.css(["&::-webkit-scrollbar{width:5px;}&::-webkit-scrollbar-track{box-shadow:inset 0 0 6px ", ";}&::-webkit-scrollbar-thumb{height:5px;width:4px;border-radius:50px;background-color:", ";}"], shadowColor || viewsPalette.white, thumbColor);
|
|
1796
1796
|
}
|
|
1797
1797
|
};
|
|
1798
1798
|
|
|
@@ -1824,25 +1824,25 @@
|
|
|
1824
1824
|
};
|
|
1825
1825
|
var mediaBreaks = {
|
|
1826
1826
|
mobile: function mobile() {
|
|
1827
|
-
return styled$
|
|
1827
|
+
return styled$c.css(["", "{", "}"], devices.mobile, styled$c.css.apply(void 0, arguments));
|
|
1828
1828
|
},
|
|
1829
1829
|
tablet: function tablet() {
|
|
1830
|
-
return styled$
|
|
1830
|
+
return styled$c.css(["", "{", "}"], devices.tablet, styled$c.css.apply(void 0, arguments));
|
|
1831
1831
|
},
|
|
1832
1832
|
tabletLg: function tabletLg() {
|
|
1833
|
-
return styled$
|
|
1833
|
+
return styled$c.css(["", "{", "}"], devices.tabletLg, styled$c.css.apply(void 0, arguments));
|
|
1834
1834
|
},
|
|
1835
1835
|
onlyDesktop: function onlyDesktop() {
|
|
1836
|
-
return styled$
|
|
1836
|
+
return styled$c.css(["", "{", "}"], devices.onlyDesktop, styled$c.css.apply(void 0, arguments));
|
|
1837
1837
|
},
|
|
1838
1838
|
desktopSm: function desktopSm() {
|
|
1839
|
-
return styled$
|
|
1839
|
+
return styled$c.css(["", "{", "}"], devices.desktopSm, styled$c.css.apply(void 0, arguments));
|
|
1840
1840
|
},
|
|
1841
1841
|
desktopLg: function desktopLg() {
|
|
1842
|
-
return styled$
|
|
1842
|
+
return styled$c.css(["", "{", "}"], devices.desktopLg, styled$c.css.apply(void 0, arguments));
|
|
1843
1843
|
},
|
|
1844
1844
|
onlyPrint: function onlyPrint() {
|
|
1845
|
-
return styled$
|
|
1845
|
+
return styled$c.css(["@media print{", "}"], styled$c.css.apply(void 0, arguments));
|
|
1846
1846
|
}
|
|
1847
1847
|
};
|
|
1848
1848
|
|
|
@@ -1934,8 +1934,8 @@
|
|
|
1934
1934
|
return isValidColor(color) ? viewsPalette["".concat(color, "Pressed")] : bluePressed;
|
|
1935
1935
|
};
|
|
1936
1936
|
|
|
1937
|
-
var commonStyles = function commonStyles(iconColor, fontColor) {
|
|
1938
|
-
return styled$
|
|
1937
|
+
var commonStyles = function commonStyles(iconColor, fontColor, color) {
|
|
1938
|
+
return styled$c.css(["color:", ";.button-icon{fill:", ";}background:none;&:focus,&:hover{background-color:", ";}&:active{background-color:", ";}&:disabled{color:", ";.button-icon{fill:", ";}}"], getColor(fontColor || color || blue), getColor(iconColor || color || blue), lightGreyHover, lightGrey, grey, grey);
|
|
1939
1939
|
};
|
|
1940
1940
|
|
|
1941
1941
|
var getButtonStyles = function getButtonStyles(_ref) {
|
|
@@ -1945,19 +1945,19 @@
|
|
|
1945
1945
|
iconColor = _ref.iconColor;
|
|
1946
1946
|
var variantStyles = {
|
|
1947
1947
|
contained: function contained() {
|
|
1948
|
-
return styled$
|
|
1948
|
+
return styled$c.css(["color:", ";&:before{background-color:", ";}.button-icon{fill:", ";}&:focus:after,&:hover:after{background-color:", ";}&:active{background-color:", ";}&:disabled{&:before,&:after{background-color:", ";}}"], getColor(fontColor || 'white'), getColor(color), white, getHoverColor(color), getPressedColor(color), grey);
|
|
1949
1949
|
},
|
|
1950
1950
|
outlined: function outlined() {
|
|
1951
|
-
return styled$
|
|
1951
|
+
return styled$c.css(["", ";border:1px solid ", ";"], commonStyles(iconColor, fontColor, color), getColor(grey));
|
|
1952
1952
|
},
|
|
1953
1953
|
cleaned: function cleaned() {
|
|
1954
|
-
return commonStyles(iconColor, fontColor);
|
|
1954
|
+
return commonStyles(iconColor, fontColor, color);
|
|
1955
1955
|
}
|
|
1956
1956
|
};
|
|
1957
1957
|
return variantStyles[variant] || '';
|
|
1958
1958
|
};
|
|
1959
1959
|
|
|
1960
|
-
var styled$
|
|
1960
|
+
var styled$b = {
|
|
1961
1961
|
Button: styled__default["default"].button.withConfig({
|
|
1962
1962
|
displayName: "styles__Button",
|
|
1963
1963
|
componentId: "sc-buf2do-0"
|
|
@@ -2006,7 +2006,7 @@
|
|
|
2006
2006
|
disabled = _ref.disabled,
|
|
2007
2007
|
props = _objectWithoutProperties(_ref, _excluded$6);
|
|
2008
2008
|
|
|
2009
|
-
return /*#__PURE__*/React__default["default"].createElement(styled$
|
|
2009
|
+
return /*#__PURE__*/React__default["default"].createElement(styled$b.Button, _extends$1({
|
|
2010
2010
|
color: color,
|
|
2011
2011
|
iconColor: iconColor || fontColor,
|
|
2012
2012
|
fontColor: fontColor,
|
|
@@ -2031,7 +2031,7 @@
|
|
|
2031
2031
|
disabled: false
|
|
2032
2032
|
};
|
|
2033
2033
|
|
|
2034
|
-
var styled$
|
|
2034
|
+
var styled$a = {
|
|
2035
2035
|
Container: styled__default["default"].label.withConfig({
|
|
2036
2036
|
displayName: "styles__Container",
|
|
2037
2037
|
componentId: "sc-18bfcwf-0"
|
|
@@ -2048,7 +2048,7 @@
|
|
|
2048
2048
|
displayName: "styles__Input",
|
|
2049
2049
|
componentId: "sc-18bfcwf-1"
|
|
2050
2050
|
})(["opacity:0;position:absolute;cursor:pointer;"]),
|
|
2051
|
-
iconCheckStyles: styled$
|
|
2051
|
+
iconCheckStyles: styled$c.css(["transform:translateY(-5%);fill:", ";", ""], getColor('white'), function (props) {
|
|
2052
2052
|
return !!props.rounded && "\n\t\t\tflex-shrink: 0;\n\t\t\tpadding-right: 1px;\n\t\t";
|
|
2053
2053
|
})
|
|
2054
2054
|
};
|
|
@@ -2078,18 +2078,18 @@
|
|
|
2078
2078
|
|
|
2079
2079
|
var _props$checked = props.checked,
|
|
2080
2080
|
conntroledChecked = _props$checked === void 0 ? checked : _props$checked;
|
|
2081
|
-
return /*#__PURE__*/React__default["default"].createElement(styled$
|
|
2081
|
+
return /*#__PURE__*/React__default["default"].createElement(styled$a.Container, {
|
|
2082
2082
|
checked: conntroledChecked,
|
|
2083
2083
|
rounded: rounded,
|
|
2084
2084
|
styles: styles
|
|
2085
|
-
}, /*#__PURE__*/React__default["default"].createElement(styled$
|
|
2085
|
+
}, /*#__PURE__*/React__default["default"].createElement(styled$a.Input, _extends$1({}, props, {
|
|
2086
2086
|
type: "checkbox",
|
|
2087
2087
|
disabled: disabled,
|
|
2088
2088
|
autoComplete: autoComplete ? 'on' : 'off',
|
|
2089
2089
|
onChange: handleChange
|
|
2090
2090
|
})), /*#__PURE__*/React__default["default"].createElement(Icon, {
|
|
2091
2091
|
name: "check_bold",
|
|
2092
|
-
styles: styled$
|
|
2092
|
+
styles: styled$a.iconCheckStyles,
|
|
2093
2093
|
rounded: rounded
|
|
2094
2094
|
}));
|
|
2095
2095
|
};
|
|
@@ -2102,7 +2102,7 @@
|
|
|
2102
2102
|
};
|
|
2103
2103
|
|
|
2104
2104
|
var _templateObject$3;
|
|
2105
|
-
var styled$
|
|
2105
|
+
var styled$9 = {
|
|
2106
2106
|
Chip: styled__default["default"].button.withConfig({
|
|
2107
2107
|
displayName: "styles__Chip",
|
|
2108
2108
|
componentId: "sc-1vnh4co-0"
|
|
@@ -2123,13 +2123,13 @@
|
|
|
2123
2123
|
}, function (props) {
|
|
2124
2124
|
switch (props.variant) {
|
|
2125
2125
|
case 'outlined':
|
|
2126
|
-
return styled$
|
|
2126
|
+
return styled$c.css(["border:1px solid ", ";color:", ";&:hover{background-color:", ";}&:hover .chip-icon,&:hover .delete-button{fill:", ";}&:active{border-color:", ";color:", ";background-color:transparent;}&:active .chip-icon,&:active .delete-button{fill:", ";}"], props.selected ? viewsPalette.blue : '#EAEBED', props.selected ? viewsPalette.blue : viewsPalette.black, viewsPalette.lightGreyHover, props.selected ? viewsPalette.blue : viewsPalette.black, viewsPalette.blue, viewsPalette.blue, viewsPalette.blue);
|
|
2127
2127
|
|
|
2128
2128
|
case 'contained':
|
|
2129
|
-
return styled$
|
|
2129
|
+
return styled$c.css(["background-color:", ";color:", ";.chip-icon{fill:", ";}.delete-button{fill:", ";}&:hover{background-color:", ";}&:hover .delete-button{fill:", ";}&:active{background-color:", ";color:", ";}&:active .chip-icon,&:active .delete-button{fill:", ";}&:disabled{fill:", ";color:", ";}"], props.selected ? viewsPalette.blue : viewsPalette.lightGreyHover, props.selected ? viewsPalette.white : viewsPalette.black, props.selected ? viewsPalette.white : viewsPalette.black, props.selected ? viewsPalette.white : viewsPalette.darkGrey, props.selected ? viewsPalette.blueHover : viewsPalette.lightGrey, props.selected ? viewsPalette.white : viewsPalette.black, viewsPalette.blue, viewsPalette.white, viewsPalette.white, viewsPalette.grey, viewsPalette.grey);
|
|
2130
2130
|
|
|
2131
2131
|
case 'status':
|
|
2132
|
-
return styled$
|
|
2132
|
+
return styled$c.css(["background-color:", ";color:", ";font-weight:700;border:none;height:24px;padding:0 17px;line-height:28px;max-width:170px;"], getColor(props.color || 'grey'), getColor(props.sizeColor || 'white'));
|
|
2133
2133
|
|
|
2134
2134
|
default:
|
|
2135
2135
|
return '';
|
|
@@ -2143,12 +2143,12 @@
|
|
|
2143
2143
|
}, function (props) {
|
|
2144
2144
|
return props.textColor && "color: ".concat(getColor(props.textColor), ";");
|
|
2145
2145
|
}, mediaBreaks.onlyPrint(_templateObject$3 || (_templateObject$3 = _taggedTemplateLiteral(["\n\t\t\tborder: 1px solid ", ";\n\t\t"])), viewsPalette.darkGrey)),
|
|
2146
|
-
iconPathStyles: styled$
|
|
2146
|
+
iconPathStyles: styled$c.css(["", ";"], mixins.transition('fill')),
|
|
2147
2147
|
DeleteButton: styled__default["default"].button.withConfig({
|
|
2148
2148
|
displayName: "styles__DeleteButton",
|
|
2149
2149
|
componentId: "sc-1vnh4co-1"
|
|
2150
2150
|
})(["width:16px;height:16px;margin-left:12px;"]),
|
|
2151
|
-
deleteButtonPathStyles: styled$
|
|
2151
|
+
deleteButtonPathStyles: styled$c.css(["", ";"], mixins.transition('fill')),
|
|
2152
2152
|
Children: styled__default["default"].div.withConfig({
|
|
2153
2153
|
displayName: "styles__Children",
|
|
2154
2154
|
componentId: "sc-1vnh4co-2"
|
|
@@ -2173,7 +2173,7 @@
|
|
|
2173
2173
|
props = _objectWithoutProperties(_ref, _excluded$4);
|
|
2174
2174
|
|
|
2175
2175
|
if (!children && !icon) return null;
|
|
2176
|
-
return /*#__PURE__*/React__default["default"].createElement(styled$
|
|
2176
|
+
return /*#__PURE__*/React__default["default"].createElement(styled$9.Chip, _extends$1({
|
|
2177
2177
|
as: props.onClick ? 'button' : 'div',
|
|
2178
2178
|
backgroundColor: backgroundColor,
|
|
2179
2179
|
borderColor: borderColor,
|
|
@@ -2191,13 +2191,13 @@
|
|
|
2191
2191
|
className: "chip-icon",
|
|
2192
2192
|
name: icon,
|
|
2193
2193
|
color: iconColor,
|
|
2194
|
-
pathStyles: styled$
|
|
2195
|
-
}), children && /*#__PURE__*/React__default["default"].createElement(styled$
|
|
2194
|
+
pathStyles: styled$9.iconPathStyles
|
|
2195
|
+
}), children && /*#__PURE__*/React__default["default"].createElement(styled$9.Children, null, children), onDelete && /*#__PURE__*/React__default["default"].createElement(styled$9.DeleteButton, {
|
|
2196
2196
|
type: "button",
|
|
2197
2197
|
onClick: onDelete
|
|
2198
2198
|
}, /*#__PURE__*/React__default["default"].createElement(Icon, {
|
|
2199
2199
|
color: "black",
|
|
2200
|
-
pathStyles: styled$
|
|
2200
|
+
pathStyles: styled$9.deleteButtonPathStyles,
|
|
2201
2201
|
className: "delete-button",
|
|
2202
2202
|
name: "cross_circle_flat",
|
|
2203
2203
|
size: 16
|
|
@@ -2215,7 +2215,7 @@
|
|
|
2215
2215
|
hasLink: false
|
|
2216
2216
|
};
|
|
2217
2217
|
|
|
2218
|
-
var styled$
|
|
2218
|
+
var styled$8 = {
|
|
2219
2219
|
Wrapper: styled__default["default"].div.withConfig({
|
|
2220
2220
|
displayName: "styles__Wrapper",
|
|
2221
2221
|
componentId: "sc-zbd85t-0"
|
|
@@ -2239,9 +2239,9 @@
|
|
|
2239
2239
|
showLabel = _ref.showLabel;
|
|
2240
2240
|
if (!color) return null;
|
|
2241
2241
|
var colorCode = getColor(color);
|
|
2242
|
-
return /*#__PURE__*/React__default["default"].createElement(styled$
|
|
2242
|
+
return /*#__PURE__*/React__default["default"].createElement(styled$8.Wrapper, null, /*#__PURE__*/React__default["default"].createElement(styled$8.ColorSample, {
|
|
2243
2243
|
color: colorCode
|
|
2244
|
-
}), showLabel && /*#__PURE__*/React__default["default"].createElement(styled$
|
|
2244
|
+
}), showLabel && /*#__PURE__*/React__default["default"].createElement(styled$8.Label, {
|
|
2245
2245
|
color: colorCode
|
|
2246
2246
|
}, colorCode));
|
|
2247
2247
|
};
|
|
@@ -2273,12 +2273,12 @@
|
|
|
2273
2273
|
})(["width:16px;height:16px;border-radius:50%;position:absolute;top:4px;left:4px;background-color:", ";transition:all ", " 0.2s;", ""], viewsPalette.white, timingFunctions$1.standard, function (props) {
|
|
2274
2274
|
return props.checked && "\n\t\t\tleft: 100%;\n\t\t\tmargin-left: -20px;\n\t\t";
|
|
2275
2275
|
});
|
|
2276
|
-
var iconCheckStyles = styled$
|
|
2276
|
+
var iconCheckStyles = styled$c.css(["position:absolute;fill:", ";", ""], function (props) {
|
|
2277
2277
|
return statusColor(props);
|
|
2278
2278
|
}, onlyPrint(_templateObject$2 || (_templateObject$2 = _taggedTemplateLiteral(["\n\t\tfill: ", " !important;\n\t"])), function (props) {
|
|
2279
2279
|
return props.checked ? viewsPalette.black : viewsPalette.darkGrey;
|
|
2280
2280
|
}));
|
|
2281
|
-
var styled$
|
|
2281
|
+
var styled$7 = {
|
|
2282
2282
|
OuterContainer: styled__default["default"].div.withConfig({
|
|
2283
2283
|
displayName: "styles__OuterContainer",
|
|
2284
2284
|
componentId: "sc-rtzdt3-1"
|
|
@@ -2328,10 +2328,10 @@
|
|
|
2328
2328
|
|
|
2329
2329
|
var _props$checked = props.checked,
|
|
2330
2330
|
controledChecked = _props$checked === void 0 ? checked : _props$checked;
|
|
2331
|
-
return /*#__PURE__*/React__default["default"].createElement(styled$
|
|
2331
|
+
return /*#__PURE__*/React__default["default"].createElement(styled$7.OuterContainer, {
|
|
2332
2332
|
disabled: disabled,
|
|
2333
2333
|
checked: checked
|
|
2334
|
-
}, /*#__PURE__*/React__default["default"].createElement(styled$
|
|
2334
|
+
}, /*#__PURE__*/React__default["default"].createElement(styled$7.Input, {
|
|
2335
2335
|
checked: controledChecked,
|
|
2336
2336
|
id: id,
|
|
2337
2337
|
name: name,
|
|
@@ -2339,10 +2339,10 @@
|
|
|
2339
2339
|
disabled: disabled,
|
|
2340
2340
|
autoComplete: autoComplete ? 'on' : 'off',
|
|
2341
2341
|
onChange: handleChange
|
|
2342
|
-
}), /*#__PURE__*/React__default["default"].createElement(styled$
|
|
2342
|
+
}), /*#__PURE__*/React__default["default"].createElement(styled$7.Container, {
|
|
2343
2343
|
checked: controledChecked,
|
|
2344
2344
|
disabled: disabled
|
|
2345
|
-
}, /*#__PURE__*/React__default["default"].createElement(styled$
|
|
2345
|
+
}, /*#__PURE__*/React__default["default"].createElement(styled$7.Ball, {
|
|
2346
2346
|
checked: controledChecked,
|
|
2347
2347
|
disabled: disabled
|
|
2348
2348
|
}, /*#__PURE__*/React__default["default"].createElement(Icon, {
|
|
@@ -2350,7 +2350,7 @@
|
|
|
2350
2350
|
disabled: disabled,
|
|
2351
2351
|
name: "check_bold",
|
|
2352
2352
|
size: 16,
|
|
2353
|
-
styles: styled$
|
|
2353
|
+
styles: styled$7.iconCheckStyles
|
|
2354
2354
|
}))));
|
|
2355
2355
|
};
|
|
2356
2356
|
|
|
@@ -2424,7 +2424,7 @@
|
|
|
2424
2424
|
}
|
|
2425
2425
|
};
|
|
2426
2426
|
|
|
2427
|
-
var styled$
|
|
2427
|
+
var styled$6 = {
|
|
2428
2428
|
Container: styled__default["default"].div.withConfig({
|
|
2429
2429
|
displayName: "styles__Container",
|
|
2430
2430
|
componentId: "sc-1fhkfhs-0"
|
|
@@ -2457,7 +2457,7 @@
|
|
|
2457
2457
|
}, function (_ref4) {
|
|
2458
2458
|
var hasIcon = _ref4.hasIcon;
|
|
2459
2459
|
return hasIcon && "padding-left: 32px;";
|
|
2460
|
-
}, mixins.placeholder(styled$
|
|
2460
|
+
}, mixins.placeholder(styled$c.css(["font-weight:400;color:", ";"], function (_ref5) {
|
|
2461
2461
|
var error = _ref5.error;
|
|
2462
2462
|
return error ? viewsPalette.statusRed : viewsPalette.darkGreyPressed;
|
|
2463
2463
|
})), function (props) {
|
|
@@ -2577,11 +2577,11 @@
|
|
|
2577
2577
|
|
|
2578
2578
|
var autoCompleteOff = props.type === 'password' ? 'new-password' : 'off';
|
|
2579
2579
|
var isFloating = isFocused || !!value.toString();
|
|
2580
|
-
return /*#__PURE__*/React__default["default"].createElement(styled$
|
|
2580
|
+
return /*#__PURE__*/React__default["default"].createElement(styled$6.Container, {
|
|
2581
2581
|
fullWidth: props.fullWidth
|
|
2582
|
-
}, /*#__PURE__*/React__default["default"].createElement(styled$
|
|
2582
|
+
}, /*#__PURE__*/React__default["default"].createElement(styled$6.Container, {
|
|
2583
2583
|
fullWidth: props.fullWidth
|
|
2584
|
-
}, hasFloatingLabel && /*#__PURE__*/React__default["default"].createElement(styled$
|
|
2584
|
+
}, hasFloatingLabel && /*#__PURE__*/React__default["default"].createElement(styled$6.FloatingLabel, {
|
|
2585
2585
|
"data-test": "floatingLabel",
|
|
2586
2586
|
error: error,
|
|
2587
2587
|
onClick: this.handleLabelClick,
|
|
@@ -2590,10 +2590,10 @@
|
|
|
2590
2590
|
isFloating: isFloating,
|
|
2591
2591
|
hasIcon: !!icon,
|
|
2592
2592
|
isTranslateActive: isTranslateActive
|
|
2593
|
-
}, props.label), icon && /*#__PURE__*/React__default["default"].createElement(styled$
|
|
2593
|
+
}, props.label), icon && /*#__PURE__*/React__default["default"].createElement(styled$6.InputIcon, {
|
|
2594
2594
|
name: icon,
|
|
2595
2595
|
color: error ? 'statusRed' : 'black'
|
|
2596
|
-
}), /*#__PURE__*/React__default["default"].createElement(styled$
|
|
2596
|
+
}), /*#__PURE__*/React__default["default"].createElement(styled$6.Input, _extends$1({}, props, {
|
|
2597
2597
|
ref: this.input,
|
|
2598
2598
|
placeholder: hasFloatingLabel && !isFloating ? '' : placeholder,
|
|
2599
2599
|
onBlur: this.handleBlur,
|
|
@@ -2606,7 +2606,7 @@
|
|
|
2606
2606
|
error: error,
|
|
2607
2607
|
hasIcon: !!icon,
|
|
2608
2608
|
onAnimationStart: this.handleFocus
|
|
2609
|
-
}))), error && /*#__PURE__*/React__default["default"].createElement(styled$
|
|
2609
|
+
}))), error && /*#__PURE__*/React__default["default"].createElement(styled$6.ErrorMessage, {
|
|
2610
2610
|
"data-test": "errorMessage"
|
|
2611
2611
|
}, errorMessage));
|
|
2612
2612
|
}
|
|
@@ -2664,7 +2664,7 @@
|
|
|
2664
2664
|
}
|
|
2665
2665
|
};
|
|
2666
2666
|
|
|
2667
|
-
var styled$
|
|
2667
|
+
var styled$5 = {
|
|
2668
2668
|
Container: styled__default["default"].div.withConfig({
|
|
2669
2669
|
displayName: "styles__Container",
|
|
2670
2670
|
componentId: "sc-wtau65-0"
|
|
@@ -2676,7 +2676,7 @@
|
|
|
2676
2676
|
componentId: "sc-wtau65-1"
|
|
2677
2677
|
})(["border:none;border-bottom:1px solid ", ";border-radius:0;height:23px;max-height:350px;padding:0 9px 4px 0;resize:none;font-size:", ";font-weight:400;color:", ";", ";width:", ";", " ", " &:hover{border-color:", ";}&:focus{border-color:", ";caret-color:", ";outline:none;}&:disabled{background-color:", ";color:", ";border-color:", ";cursor:default;}", " ", ""], viewsPalette.grey, fontSize, viewsPalette.black, mixins.transition('color,border-color', '0.2s'), function (props) {
|
|
2678
2678
|
return props.fullWidth ? '100%' : 'auto';
|
|
2679
|
-
}, mixins.placeholder(styled$
|
|
2679
|
+
}, mixins.placeholder(styled$c.css(["opacity:1;color:", ";"], function (props) {
|
|
2680
2680
|
return placeholderColor(props);
|
|
2681
2681
|
})), mixins.scrollbar(viewsPalette.grey, viewsPalette.base), viewsPalette.black, viewsPalette.blue, viewsPalette.blue, viewsPalette.white, viewsPalette.grey, viewsPalette.grey, function (props) {
|
|
2682
2682
|
return props.error && "\n\t\t\t&, &:hover, &:focus {\n\t\t\t\tborder-color: ".concat(viewsPalette.statusRed, "\n\t\t\t}\n\t\t");
|
|
@@ -2803,9 +2803,9 @@
|
|
|
2803
2803
|
var props = _objectWithoutProperties(_this$props, _excluded$1);
|
|
2804
2804
|
|
|
2805
2805
|
var isFloating = isFocused || !!value;
|
|
2806
|
-
return /*#__PURE__*/React__default["default"].createElement(styled$
|
|
2806
|
+
return /*#__PURE__*/React__default["default"].createElement(styled$5.Container, {
|
|
2807
2807
|
fullWidth: props.fullWidth
|
|
2808
|
-
}, hasFloatingLabel && /*#__PURE__*/React__default["default"].createElement(styled$
|
|
2808
|
+
}, hasFloatingLabel && /*#__PURE__*/React__default["default"].createElement(styled$5.FloatingLabel, _extends$1({}, props, {
|
|
2809
2809
|
"data-test": "floatingLabel",
|
|
2810
2810
|
error: error,
|
|
2811
2811
|
onClick: this.handleLabelClick,
|
|
@@ -2813,7 +2813,7 @@
|
|
|
2813
2813
|
isFocused: isFocused,
|
|
2814
2814
|
isFloating: isFloating,
|
|
2815
2815
|
isTranslateActive: isTranslateActive
|
|
2816
|
-
}), label), /*#__PURE__*/React__default["default"].createElement(styled$
|
|
2816
|
+
}), label), /*#__PURE__*/React__default["default"].createElement(styled$5.Textarea, _extends$1({}, props, {
|
|
2817
2817
|
ref: this.textarea,
|
|
2818
2818
|
placeholder: hasFloatingLabel && !isFloating ? '' : placeholder,
|
|
2819
2819
|
onBlur: this.handleBlur,
|
|
@@ -2824,7 +2824,7 @@
|
|
|
2824
2824
|
value: value,
|
|
2825
2825
|
autoComplete: autoComplete ? 'on' : 'off',
|
|
2826
2826
|
disabled: disabled
|
|
2827
|
-
})), error && /*#__PURE__*/React__default["default"].createElement(styled$
|
|
2827
|
+
})), error && /*#__PURE__*/React__default["default"].createElement(styled$5.ErrorMessage, {
|
|
2828
2828
|
"data-test": "errorMessage"
|
|
2829
2829
|
}, errorMessage));
|
|
2830
2830
|
}
|
|
@@ -2860,7 +2860,7 @@
|
|
|
2860
2860
|
return 'initial';
|
|
2861
2861
|
};
|
|
2862
2862
|
|
|
2863
|
-
var styled$
|
|
2863
|
+
var styled$4 = {
|
|
2864
2864
|
ImageWrapper: styled__default["default"].div.withConfig({
|
|
2865
2865
|
displayName: "styles__ImageWrapper",
|
|
2866
2866
|
componentId: "sc-vrvp1c-0"
|
|
@@ -2906,7 +2906,7 @@
|
|
|
2906
2906
|
errorImage = _useState2[0],
|
|
2907
2907
|
setErrorImage = _useState2[1];
|
|
2908
2908
|
|
|
2909
|
-
return errorImage ? /*#__PURE__*/React__default["default"].createElement(styled$
|
|
2909
|
+
return errorImage ? /*#__PURE__*/React__default["default"].createElement(styled$4.ImageWrapper, {
|
|
2910
2910
|
background: background,
|
|
2911
2911
|
width: width || height,
|
|
2912
2912
|
height: height || width
|
|
@@ -2914,7 +2914,7 @@
|
|
|
2914
2914
|
name: errorImage,
|
|
2915
2915
|
size: (width || height) * 0.35 || 20,
|
|
2916
2916
|
color: viewsPalette.lightGreyPressed
|
|
2917
|
-
})) : /*#__PURE__*/React__default["default"].createElement(styled$
|
|
2917
|
+
})) : /*#__PURE__*/React__default["default"].createElement(styled$4.Image, {
|
|
2918
2918
|
src: url,
|
|
2919
2919
|
alt: altText || url,
|
|
2920
2920
|
width: width,
|
|
@@ -3747,7 +3747,7 @@
|
|
|
3747
3747
|
return debounced;
|
|
3748
3748
|
}
|
|
3749
3749
|
|
|
3750
|
-
var styled$
|
|
3750
|
+
var styled$3 = {
|
|
3751
3751
|
ClickableWrapper: styled__default["default"].div.withConfig({
|
|
3752
3752
|
displayName: "styles__ClickableWrapper",
|
|
3753
3753
|
componentId: "sc-lreg3c-0"
|
|
@@ -3812,13 +3812,13 @@
|
|
|
3812
3812
|
var value = colorValue || DEFAULT_COLOR;
|
|
3813
3813
|
|
|
3814
3814
|
if (isCollapsable) {
|
|
3815
|
-
return /*#__PURE__*/React__default["default"].createElement(styled$
|
|
3815
|
+
return /*#__PURE__*/React__default["default"].createElement(styled$3.Wrapper, null, /*#__PURE__*/React__default["default"].createElement(styled$3.ClickableWrapper, {
|
|
3816
3816
|
"data-test": "collapsible-picker",
|
|
3817
3817
|
color: value,
|
|
3818
3818
|
role: "presentation",
|
|
3819
3819
|
onClick: toggleStateVisible,
|
|
3820
3820
|
error: error
|
|
3821
|
-
}, /*#__PURE__*/React__default["default"].createElement(styled$
|
|
3821
|
+
}, /*#__PURE__*/React__default["default"].createElement(styled$3.Input, {
|
|
3822
3822
|
value: colorValue,
|
|
3823
3823
|
fullWidth: true,
|
|
3824
3824
|
onChange: function onChange(_ref2) {
|
|
@@ -3827,10 +3827,10 @@
|
|
|
3827
3827
|
},
|
|
3828
3828
|
errorMessage: errorMessage,
|
|
3829
3829
|
error: error
|
|
3830
|
-
})), pickerVisible && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(styled$
|
|
3830
|
+
})), pickerVisible && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(styled$3.ClosePickerWrapper, {
|
|
3831
3831
|
onClick: handleClosePicker,
|
|
3832
3832
|
role: "presentation"
|
|
3833
|
-
}), /*#__PURE__*/React__default["default"].createElement(styled$
|
|
3833
|
+
}), /*#__PURE__*/React__default["default"].createElement(styled$3.PickerWrapper, null, /*#__PURE__*/React__default["default"].createElement(J, {
|
|
3834
3834
|
color: value,
|
|
3835
3835
|
onChange: change
|
|
3836
3836
|
}))));
|
|
@@ -3888,9 +3888,9 @@
|
|
|
3888
3888
|
Context.FrameContextProvider = FrameContextProvider;
|
|
3889
3889
|
Context.FrameContextConsumer = FrameContextConsumer;
|
|
3890
3890
|
|
|
3891
|
-
var Content$
|
|
3891
|
+
var Content$2 = {};
|
|
3892
3892
|
|
|
3893
|
-
Object.defineProperty(Content$
|
|
3893
|
+
Object.defineProperty(Content$2, "__esModule", {
|
|
3894
3894
|
value: true
|
|
3895
3895
|
});
|
|
3896
3896
|
|
|
@@ -3913,7 +3913,7 @@
|
|
|
3913
3913
|
function _inherits$1(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // eslint-disable-line no-unused-vars
|
|
3914
3914
|
|
|
3915
3915
|
|
|
3916
|
-
var Content = function (_Component) {
|
|
3916
|
+
var Content$1 = function (_Component) {
|
|
3917
3917
|
_inherits$1(Content, _Component);
|
|
3918
3918
|
|
|
3919
3919
|
function Content() {
|
|
@@ -3942,12 +3942,12 @@
|
|
|
3942
3942
|
return Content;
|
|
3943
3943
|
}(_react$1.Component);
|
|
3944
3944
|
|
|
3945
|
-
Content.propTypes = {
|
|
3945
|
+
Content$1.propTypes = {
|
|
3946
3946
|
children: _propTypes2$1.default.element.isRequired,
|
|
3947
3947
|
contentDidMount: _propTypes2$1.default.func.isRequired,
|
|
3948
3948
|
contentDidUpdate: _propTypes2$1.default.func.isRequired
|
|
3949
3949
|
};
|
|
3950
|
-
Content$
|
|
3950
|
+
Content$2.default = Content$1;
|
|
3951
3951
|
|
|
3952
3952
|
Object.defineProperty(Frame$2, "__esModule", {
|
|
3953
3953
|
value: true
|
|
@@ -3972,7 +3972,7 @@
|
|
|
3972
3972
|
|
|
3973
3973
|
var _Context = Context;
|
|
3974
3974
|
|
|
3975
|
-
var _Content = Content$
|
|
3975
|
+
var _Content = Content$2;
|
|
3976
3976
|
|
|
3977
3977
|
var _Content2 = _interopRequireDefault(_Content);
|
|
3978
3978
|
|
|
@@ -4176,7 +4176,7 @@
|
|
|
4176
4176
|
|
|
4177
4177
|
var Frame = /*@__PURE__*/getDefaultExportFromCjs(lib);
|
|
4178
4178
|
|
|
4179
|
-
var styled$
|
|
4179
|
+
var styled$2 = {
|
|
4180
4180
|
Wrapper: styled__default["default"].div.withConfig({
|
|
4181
4181
|
displayName: "styles__Wrapper",
|
|
4182
4182
|
componentId: "sc-3jodl7-0"
|
|
@@ -4189,7 +4189,7 @@
|
|
|
4189
4189
|
|
|
4190
4190
|
var DefaultError = function DefaultError(_ref) {
|
|
4191
4191
|
var message = _ref.message;
|
|
4192
|
-
return /*#__PURE__*/React__default["default"].createElement(styled$
|
|
4192
|
+
return /*#__PURE__*/React__default["default"].createElement(styled$2.Wrapper, null, /*#__PURE__*/React__default["default"].createElement(styled$2.Icon, {
|
|
4193
4193
|
name: "exclamation_circle",
|
|
4194
4194
|
color: "statusRed"
|
|
4195
4195
|
}), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
@@ -4308,7 +4308,7 @@
|
|
|
4308
4308
|
height: 'medium'
|
|
4309
4309
|
};
|
|
4310
4310
|
|
|
4311
|
-
var styled = {
|
|
4311
|
+
var styled$1 = {
|
|
4312
4312
|
LinkWrapper: styled__default["default"].div.withConfig({
|
|
4313
4313
|
displayName: "styles__LinkWrapper",
|
|
4314
4314
|
componentId: "sc-fhfdft-0"
|
|
@@ -4329,12 +4329,12 @@
|
|
|
4329
4329
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
4330
4330
|
|
|
4331
4331
|
var renderIcon = function renderIcon() {
|
|
4332
|
-
return icon ? /*#__PURE__*/React__default["default"].createElement(styled.StyledIcon, {
|
|
4332
|
+
return icon ? /*#__PURE__*/React__default["default"].createElement(styled$1.StyledIcon, {
|
|
4333
4333
|
name: icon
|
|
4334
4334
|
}) : null;
|
|
4335
4335
|
};
|
|
4336
4336
|
|
|
4337
|
-
return /*#__PURE__*/React__default["default"].createElement(styled.LinkWrapper, props, renderIcon(), /*#__PURE__*/React__default["default"].createElement("a", {
|
|
4337
|
+
return /*#__PURE__*/React__default["default"].createElement(styled$1.LinkWrapper, props, renderIcon(), /*#__PURE__*/React__default["default"].createElement("a", {
|
|
4338
4338
|
href: href,
|
|
4339
4339
|
target: target
|
|
4340
4340
|
}, children || href));
|
|
@@ -4345,11 +4345,159 @@
|
|
|
4345
4345
|
target: '_self'
|
|
4346
4346
|
};
|
|
4347
4347
|
|
|
4348
|
+
var ClickAwayListener = function ClickAwayListener(_ref) {
|
|
4349
|
+
var nodeRef = _ref.nodeRef,
|
|
4350
|
+
onClickAway = _ref.onClickAway,
|
|
4351
|
+
className = _ref.className,
|
|
4352
|
+
children = _ref.children;
|
|
4353
|
+
var node = undefined;
|
|
4354
|
+
React.useEffect(function () {
|
|
4355
|
+
var handleClickAway = function handleClickAway(e) {
|
|
4356
|
+
if (node.contains(e.target)) return;
|
|
4357
|
+
if (nodeRef && nodeRef.contains(e.target)) return;
|
|
4358
|
+
if (onClickAway) onClickAway();
|
|
4359
|
+
};
|
|
4360
|
+
|
|
4361
|
+
window.addEventListener('click', handleClickAway, true);
|
|
4362
|
+
return function () {
|
|
4363
|
+
window.removeEventListener('click', handleClickAway, true);
|
|
4364
|
+
};
|
|
4365
|
+
});
|
|
4366
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4367
|
+
ref: function ref(_ref2) {
|
|
4368
|
+
return node = _ref2;
|
|
4369
|
+
},
|
|
4370
|
+
className: className
|
|
4371
|
+
}, children);
|
|
4372
|
+
};
|
|
4373
|
+
ClickAwayListener.defaultProps = {
|
|
4374
|
+
onClickAway: function onClickAway() {},
|
|
4375
|
+
className: ''
|
|
4376
|
+
};
|
|
4377
|
+
|
|
4378
|
+
var getPropertyForTransition = function getPropertyForTransition(position) {
|
|
4379
|
+
return position === 'right' || position === 'left' ? 'max-width' : 'max-height';
|
|
4380
|
+
};
|
|
4381
|
+
|
|
4382
|
+
var verticalCommonStyles = function verticalCommonStyles(open) {
|
|
4383
|
+
return styled$c.css(["width:100%;", ";max-height:", ";left:0;right:0;"], function (_ref) {
|
|
4384
|
+
var fullScreen = _ref.fullScreen;
|
|
4385
|
+
return fullScreen && 'height: 100%';
|
|
4386
|
+
}, open ? '100%' : 0);
|
|
4387
|
+
};
|
|
4388
|
+
|
|
4389
|
+
var horizontalCommonStyles = function horizontalCommonStyles(open) {
|
|
4390
|
+
return styled$c.css(["height:100%;", ";max-width:", ";top:0;"], function (_ref2) {
|
|
4391
|
+
var fullScreen = _ref2.fullScreen;
|
|
4392
|
+
return fullScreen && 'width: 100%';
|
|
4393
|
+
}, open ? '100%' : 0);
|
|
4394
|
+
};
|
|
4395
|
+
|
|
4396
|
+
var setPosition = function setPosition(position, open) {
|
|
4397
|
+
var positions = {
|
|
4398
|
+
top: function top() {
|
|
4399
|
+
return styled$c.css(["", ";top:0;"], verticalCommonStyles(open));
|
|
4400
|
+
},
|
|
4401
|
+
bottom: function bottom() {
|
|
4402
|
+
return styled$c.css(["", ";bottom:0;"], verticalCommonStyles(open));
|
|
4403
|
+
},
|
|
4404
|
+
left: function left() {
|
|
4405
|
+
return styled$c.css(["", ";left:0;"], horizontalCommonStyles(open));
|
|
4406
|
+
},
|
|
4407
|
+
right: function right() {
|
|
4408
|
+
return styled$c.css(["", ";right:0;"], horizontalCommonStyles(open));
|
|
4409
|
+
}
|
|
4410
|
+
};
|
|
4411
|
+
return positions[position];
|
|
4412
|
+
};
|
|
4413
|
+
|
|
4414
|
+
var Drawer$1 = styled__default["default"].div.withConfig({
|
|
4415
|
+
displayName: "styles__Drawer",
|
|
4416
|
+
componentId: "sc-1tz9fgf-0"
|
|
4417
|
+
})(["box-sizing:border-box;background-color:#ffffff;overflow:hidden;position:absolute;box-shadow:0px 2px 5px 0px #27394727;border-radius:3px;", ";z-index:999;"], function (_ref3) {
|
|
4418
|
+
var position = _ref3.position,
|
|
4419
|
+
open = _ref3.open,
|
|
4420
|
+
transitionDuration = _ref3.transitionDuration;
|
|
4421
|
+
var transitionTime = transitionDuration / 1000;
|
|
4422
|
+
return styled$c.css(["", ";", ";"], position && setPosition(position, open), transitionDuration && "transition: ".concat(getPropertyForTransition(position), " ").concat(transitionTime, "s ease"));
|
|
4423
|
+
});
|
|
4424
|
+
var Content = styled__default["default"].div.withConfig({
|
|
4425
|
+
displayName: "styles__Content",
|
|
4426
|
+
componentId: "sc-1tz9fgf-1"
|
|
4427
|
+
})(["min-height:300px;min-width:300px;box-sizing:border-box;padding:16px 28px 32px 32px;"]);
|
|
4428
|
+
var Header = styled__default["default"].div.withConfig({
|
|
4429
|
+
displayName: "styles__Header",
|
|
4430
|
+
componentId: "sc-1tz9fgf-2"
|
|
4431
|
+
})(["display:flex;justify-content:space-between;align-items:center;width:100%;box-sizing:border-box;"]);
|
|
4432
|
+
var CloseBtn = styled__default["default"](Button).withConfig({
|
|
4433
|
+
displayName: "styles__CloseBtn",
|
|
4434
|
+
componentId: "sc-1tz9fgf-3"
|
|
4435
|
+
})(["width:24px;height:24px;padding:0;background-color:transparent;border-radius:0;outline:0;margin-left:auto;"]);
|
|
4436
|
+
var Children = styled__default["default"].div.withConfig({
|
|
4437
|
+
displayName: "styles__Children",
|
|
4438
|
+
componentId: "sc-1tz9fgf-4"
|
|
4439
|
+
})(["width:inherit;"]);
|
|
4440
|
+
var Overlay = styled__default["default"].div.withConfig({
|
|
4441
|
+
displayName: "styles__Overlay",
|
|
4442
|
+
componentId: "sc-1tz9fgf-5"
|
|
4443
|
+
})(["position:absolute;width:100%;height:100%;top:0;left:0;visibility:hidden;pointer-events:none;z-index:998;"]);
|
|
4444
|
+
var styled = {
|
|
4445
|
+
Drawer: Drawer$1,
|
|
4446
|
+
Content: Content,
|
|
4447
|
+
Header: Header,
|
|
4448
|
+
CloseBtn: CloseBtn,
|
|
4449
|
+
Children: Children,
|
|
4450
|
+
Overlay: Overlay
|
|
4451
|
+
};
|
|
4452
|
+
|
|
4453
|
+
var Drawer = function Drawer(_ref) {
|
|
4454
|
+
var open = _ref.open,
|
|
4455
|
+
position = _ref.position,
|
|
4456
|
+
handleClose = _ref.handleClose,
|
|
4457
|
+
transitionDuration = _ref.transitionDuration,
|
|
4458
|
+
fullScreen = _ref.fullScreen,
|
|
4459
|
+
closeOnClickAway = _ref.closeOnClickAway,
|
|
4460
|
+
children = _ref.children;
|
|
4461
|
+
var drawerRef = React.useRef(null);
|
|
4462
|
+
return /*#__PURE__*/React__default["default"].createElement(ClickAwayListener, {
|
|
4463
|
+
onClickAway: closeOnClickAway && open && handleClose
|
|
4464
|
+
}, /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(styled.Drawer, {
|
|
4465
|
+
open: open,
|
|
4466
|
+
position: position,
|
|
4467
|
+
transitionDuration: transitionDuration,
|
|
4468
|
+
fullScreen: fullScreen,
|
|
4469
|
+
className: "drawer",
|
|
4470
|
+
ref: drawerRef
|
|
4471
|
+
}, /*#__PURE__*/React__default["default"].createElement(styled.Content, {
|
|
4472
|
+
className: "drawer__content"
|
|
4473
|
+
}, /*#__PURE__*/React__default["default"].createElement(styled.Header, null, handleClose && typeof handleClose === 'function' && /*#__PURE__*/React__default["default"].createElement(styled.CloseBtn, {
|
|
4474
|
+
onClick: handleClose
|
|
4475
|
+
}, /*#__PURE__*/React__default["default"].createElement(Icon, {
|
|
4476
|
+
className: "close-btn",
|
|
4477
|
+
name: "cross_light",
|
|
4478
|
+
width: 24,
|
|
4479
|
+
height: 24
|
|
4480
|
+
}))), /*#__PURE__*/React__default["default"].createElement(styled.Children, null, children))), /*#__PURE__*/React__default["default"].createElement(styled.Overlay, {
|
|
4481
|
+
className: "drawer__overlay",
|
|
4482
|
+
transitionDuration: transitionDuration
|
|
4483
|
+
})));
|
|
4484
|
+
};
|
|
4485
|
+
Drawer.defaultProps = {
|
|
4486
|
+
open: false,
|
|
4487
|
+
position: 'right',
|
|
4488
|
+
handleClose: function handleClose() {},
|
|
4489
|
+
transitionDuration: 500,
|
|
4490
|
+
fullScreen: false,
|
|
4491
|
+
closeOnClickAway: true
|
|
4492
|
+
};
|
|
4493
|
+
|
|
4348
4494
|
exports.Button = Button;
|
|
4349
4495
|
exports.Checkbox = Checkbox;
|
|
4350
4496
|
exports.Chip = Chip;
|
|
4497
|
+
exports.ClickAwayListener = ClickAwayListener;
|
|
4351
4498
|
exports.Color = Color;
|
|
4352
4499
|
exports.ColorPicker = ColorPicker;
|
|
4500
|
+
exports.Drawer = Drawer;
|
|
4353
4501
|
exports.ErrorBoundary = ErrorBoundary;
|
|
4354
4502
|
exports.HTML = HTML;
|
|
4355
4503
|
exports.Icon = Icon;
|