@helpdice/ui 1.4.9 → 1.5.1
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/dist/CircularProgress/index.js +6 -6
- package/dist/Placeholder/index.js +41 -41
- package/dist/auto-complete/index.js +60 -60
- package/dist/avatar/index.js +28 -28
- package/dist/badge/index.js +27 -27
- package/dist/breadcrumbs/index.js +34 -34
- package/dist/button/button.compact.d.ts +2 -2
- package/dist/button/index.js +46 -45
- package/dist/button-dropdown/index.js +34 -34
- package/dist/button-group/index.js +25 -25
- package/dist/capacity/index.js +26 -26
- package/dist/card/index.js +44 -44
- package/dist/checkbox/index.js +30 -30
- package/dist/code/index.js +27 -27
- package/dist/col/index.js +8 -8
- package/dist/collapse/index.js +30 -30
- package/dist/css-baseline/index.js +6 -6
- package/dist/description/index.js +26 -26
- package/dist/display/index.js +26 -26
- package/dist/divider/index.js +26 -26
- package/dist/dot/index.js +25 -25
- package/dist/drawer/index.js +53 -53
- package/dist/fieldset/index.js +33 -33
- package/dist/form/FormWrapper.d.ts +7 -7
- package/dist/form/connect.d.ts +1 -0
- package/dist/grid/index.js +33 -33
- package/dist/html-renderer/index.d.ts +6 -0
- package/dist/image/index.js +37 -37
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1899 -547
- package/dist/input/index.js +40 -40
- package/dist/keyboard/index.js +28 -28
- package/dist/link/index.js +29 -29
- package/dist/loading/index.js +26 -26
- package/dist/modal/index.js +75 -75
- package/dist/note/index.js +27 -27
- package/dist/page/index.js +30 -30
- package/dist/pagination/index.js +27 -27
- package/dist/popover/index.js +57 -57
- package/dist/progress/index.js +29 -29
- package/dist/radio/index.js +30 -30
- package/dist/rating/index.js +29 -29
- package/dist/row/index.js +11 -11
- package/dist/search-bar/index.js +1826 -61
- package/dist/select/index.js +60 -60
- package/dist/slider/index.js +35 -35
- package/dist/snippet/index.js +30 -30
- package/dist/spacer/index.js +25 -25
- package/dist/spinner/index.js +24 -24
- package/dist/table/index.js +224 -211
- package/dist/tabs/index.js +39 -39
- package/dist/tag/index.js +26 -26
- package/dist/text/index.js +40 -40
- package/dist/textarea/index.js +29 -29
- package/dist/themes/index.js +2 -2
- package/dist/toggle/index.js +27 -27
- package/dist/tooltip/index.js +42 -42
- package/dist/tree/index.js +23 -23
- package/dist/ui-provider/index.js +48 -48
- package/dist/use-all-themes/index.js +2 -2
- package/dist/use-body-scroll/index.js +5 -5
- package/dist/use-clipboard/index.js +1 -1
- package/dist/use-current-state/index.js +1 -1
- package/dist/use-input/index.js +1 -1
- package/dist/use-keyboard/index.js +5 -5
- package/dist/use-media-query/index.js +5 -5
- package/dist/use-modal/index.js +1 -1
- package/dist/use-scale/index.js +19 -19
- package/dist/use-tabs/index.js +1 -1
- package/dist/use-theme/index.js +2 -2
- package/dist/use-toasts/index.js +3 -3
- package/dist/user/index.js +36 -36
- package/esm/button/button.compact.d.ts +2 -2
- package/esm/button/button.compact.js +4 -2
- package/esm/form/FastField.js +1 -1
- package/esm/form/FormWrapper.d.ts +7 -7
- package/esm/form/FormWrapper.js +2 -2
- package/esm/form/connect.d.ts +1 -0
- package/esm/form/connect.js +2 -1
- package/esm/html-renderer/index.d.ts +6 -0
- package/esm/html-renderer/index.js +12 -0
- package/esm/index.d.ts +1 -0
- package/esm/index.js +1 -0
- package/esm/link/link.js +2 -0
- package/esm/login-with/LoginSocialAmazon/index.js +162 -134
- package/esm/login-with/index.js +2 -0
- package/esm/search-bar/components/index.js +4 -7
- package/esm/table/data-table.js +6 -4
- package/esm/table/table.js +12 -1
- package/package.json +5 -3
- package/esm/formik-native/src/index.js +0 -12
- package/esm/formik-native/test/blah.test.js +0 -5
package/dist/button/index.js
CHANGED
|
@@ -154,8 +154,8 @@ function _slicedToArray(r, e) {
|
|
|
154
154
|
function _toPrimitive(t, r) {
|
|
155
155
|
if ("object" != typeof t || !t) return t;
|
|
156
156
|
var e = t[Symbol.toPrimitive];
|
|
157
|
-
if (
|
|
158
|
-
var i = e.call(t, r
|
|
157
|
+
if (void 0 !== e) {
|
|
158
|
+
var i = e.call(t, r);
|
|
159
159
|
if ("object" != typeof i) return i;
|
|
160
160
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
161
161
|
}
|
|
@@ -178,7 +178,7 @@ function _unsupportedIterableToArray(r, a) {
|
|
|
178
178
|
if (r) {
|
|
179
179
|
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
180
180
|
var t = {}.toString.call(r).slice(8, -1);
|
|
181
|
-
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) :
|
|
181
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
184
|
|
|
@@ -212,7 +212,7 @@ function requireIndex () {
|
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
214
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
215
|
-
_defineProperties(Constructor.prototype, protoProps);
|
|
215
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
216
216
|
return Constructor;
|
|
217
217
|
}
|
|
218
218
|
var isProd = typeof process !== "undefined" && process.env && process.env.NODE_ENV === "production";
|
|
@@ -221,7 +221,7 @@ function requireIndex () {
|
|
|
221
221
|
};
|
|
222
222
|
var StyleSheet = /*#__PURE__*/ function() {
|
|
223
223
|
function StyleSheet(param) {
|
|
224
|
-
var ref = param ===
|
|
224
|
+
var ref = param === void 0 ? {} : param, _name = ref.name, name = _name === void 0 ? "stylesheet" : _name, _optimizeForSpeed = ref.optimizeForSpeed, optimizeForSpeed = _optimizeForSpeed === void 0 ? isProd : _optimizeForSpeed;
|
|
225
225
|
invariant$1(isString(name), "`name` must be a string");
|
|
226
226
|
this._name = name;
|
|
227
227
|
this._deletedRulePlaceholder = "#" + name + "-deleted-rule____{}";
|
|
@@ -479,7 +479,7 @@ function requireIndex () {
|
|
|
479
479
|
}
|
|
480
480
|
|
|
481
481
|
function mapRulesToStyle(cssRules, options) {
|
|
482
|
-
if (options ===
|
|
482
|
+
if (options === void 0) options = {};
|
|
483
483
|
return cssRules.map(function(args) {
|
|
484
484
|
var id = args[0];
|
|
485
485
|
var css = args[1];
|
|
@@ -496,7 +496,7 @@ function requireIndex () {
|
|
|
496
496
|
}
|
|
497
497
|
var StyleSheetRegistry = /*#__PURE__*/ function() {
|
|
498
498
|
function StyleSheetRegistry(param) {
|
|
499
|
-
var ref = param ===
|
|
499
|
+
var ref = param === void 0 ? {} : param, _styleSheet = ref.styleSheet, styleSheet = _styleSheet === void 0 ? null : _styleSheet, _optimizeForSpeed = ref.optimizeForSpeed, optimizeForSpeed = _optimizeForSpeed === void 0 ? false : _optimizeForSpeed;
|
|
500
500
|
this._sheet = styleSheet || new StyleSheet({
|
|
501
501
|
name: "styled-jsx",
|
|
502
502
|
optimizeForSpeed: optimizeForSpeed
|
|
@@ -1085,9 +1085,9 @@ var withScale = function withScale(Render) {
|
|
|
1085
1085
|
margin = props.margin,
|
|
1086
1086
|
padding = props.padding,
|
|
1087
1087
|
_props$unit = props.unit,
|
|
1088
|
-
unit = _props$unit ===
|
|
1088
|
+
unit = _props$unit === void 0 ? layout.unit : _props$unit,
|
|
1089
1089
|
_props$scale = props.scale,
|
|
1090
|
-
scale = _props$scale ===
|
|
1090
|
+
scale = _props$scale === void 0 ? 1 : _props$scale;
|
|
1091
1091
|
var makeScaleHandler = function makeScaleHandler(attrValue) {
|
|
1092
1092
|
return function (scale1x, defaultValue) {
|
|
1093
1093
|
// 0 means disable scale and the default value is 0
|
|
@@ -1108,20 +1108,20 @@ var withScale = function withScale(Render) {
|
|
|
1108
1108
|
var value = {
|
|
1109
1109
|
unit: unit,
|
|
1110
1110
|
SCALES: {
|
|
1111
|
-
pt: makeScaleHandler((_ref2 = (_ref3 = paddingTop !== null && paddingTop !==
|
|
1112
|
-
pr: makeScaleHandler((_ref4 = (_ref5 = paddingRight !== null && paddingRight !==
|
|
1113
|
-
pb: makeScaleHandler((_ref6 = (_ref7 = paddingBottom !== null && paddingBottom !==
|
|
1114
|
-
pl: makeScaleHandler((_ref8 = (_ref9 = paddingLeft !== null && paddingLeft !==
|
|
1115
|
-
px: makeScaleHandler((_ref10 = (_ref11 = (_ref12 = (_ref13 = px !== null && px !==
|
|
1116
|
-
py: makeScaleHandler((_ref14 = (_ref15 = (_ref16 = (_ref17 = py !== null && py !==
|
|
1117
|
-
mt: makeScaleHandler((_ref18 = (_ref19 = marginTop !== null && marginTop !==
|
|
1118
|
-
mr: makeScaleHandler((_ref20 = (_ref21 = marginRight !== null && marginRight !==
|
|
1119
|
-
mb: makeScaleHandler((_ref22 = (_ref23 = marginBottom !== null && marginBottom !==
|
|
1120
|
-
ml: makeScaleHandler((_ref24 = (_ref25 = marginLeft !== null && marginLeft !==
|
|
1121
|
-
mx: makeScaleHandler((_ref26 = (_ref27 = (_ref28 = (_ref29 = mx !== null && mx !==
|
|
1122
|
-
my: makeScaleHandler((_ref30 = (_ref31 = (_ref32 = (_ref33 = my !== null && my !==
|
|
1123
|
-
width: makeScaleHandler(width !== null && width !==
|
|
1124
|
-
height: makeScaleHandler(height !== null && height !==
|
|
1111
|
+
pt: makeScaleHandler((_ref2 = (_ref3 = paddingTop !== null && paddingTop !== void 0 ? paddingTop : pt) !== null && _ref3 !== void 0 ? _ref3 : py) !== null && _ref2 !== void 0 ? _ref2 : padding),
|
|
1112
|
+
pr: makeScaleHandler((_ref4 = (_ref5 = paddingRight !== null && paddingRight !== void 0 ? paddingRight : pr) !== null && _ref5 !== void 0 ? _ref5 : px) !== null && _ref4 !== void 0 ? _ref4 : padding),
|
|
1113
|
+
pb: makeScaleHandler((_ref6 = (_ref7 = paddingBottom !== null && paddingBottom !== void 0 ? paddingBottom : pb) !== null && _ref7 !== void 0 ? _ref7 : py) !== null && _ref6 !== void 0 ? _ref6 : padding),
|
|
1114
|
+
pl: makeScaleHandler((_ref8 = (_ref9 = paddingLeft !== null && paddingLeft !== void 0 ? paddingLeft : pl) !== null && _ref9 !== void 0 ? _ref9 : px) !== null && _ref8 !== void 0 ? _ref8 : padding),
|
|
1115
|
+
px: makeScaleHandler((_ref10 = (_ref11 = (_ref12 = (_ref13 = px !== null && px !== void 0 ? px : paddingLeft) !== null && _ref13 !== void 0 ? _ref13 : paddingRight) !== null && _ref12 !== void 0 ? _ref12 : pl) !== null && _ref11 !== void 0 ? _ref11 : pr) !== null && _ref10 !== void 0 ? _ref10 : padding),
|
|
1116
|
+
py: makeScaleHandler((_ref14 = (_ref15 = (_ref16 = (_ref17 = py !== null && py !== void 0 ? py : paddingTop) !== null && _ref17 !== void 0 ? _ref17 : paddingBottom) !== null && _ref16 !== void 0 ? _ref16 : pt) !== null && _ref15 !== void 0 ? _ref15 : pb) !== null && _ref14 !== void 0 ? _ref14 : padding),
|
|
1117
|
+
mt: makeScaleHandler((_ref18 = (_ref19 = marginTop !== null && marginTop !== void 0 ? marginTop : mt) !== null && _ref19 !== void 0 ? _ref19 : my) !== null && _ref18 !== void 0 ? _ref18 : margin),
|
|
1118
|
+
mr: makeScaleHandler((_ref20 = (_ref21 = marginRight !== null && marginRight !== void 0 ? marginRight : mr) !== null && _ref21 !== void 0 ? _ref21 : mx) !== null && _ref20 !== void 0 ? _ref20 : margin),
|
|
1119
|
+
mb: makeScaleHandler((_ref22 = (_ref23 = marginBottom !== null && marginBottom !== void 0 ? marginBottom : mb) !== null && _ref23 !== void 0 ? _ref23 : my) !== null && _ref22 !== void 0 ? _ref22 : margin),
|
|
1120
|
+
ml: makeScaleHandler((_ref24 = (_ref25 = marginLeft !== null && marginLeft !== void 0 ? marginLeft : ml) !== null && _ref25 !== void 0 ? _ref25 : mx) !== null && _ref24 !== void 0 ? _ref24 : margin),
|
|
1121
|
+
mx: makeScaleHandler((_ref26 = (_ref27 = (_ref28 = (_ref29 = mx !== null && mx !== void 0 ? mx : marginLeft) !== null && _ref29 !== void 0 ? _ref29 : marginRight) !== null && _ref28 !== void 0 ? _ref28 : ml) !== null && _ref27 !== void 0 ? _ref27 : mr) !== null && _ref26 !== void 0 ? _ref26 : margin),
|
|
1122
|
+
my: makeScaleHandler((_ref30 = (_ref31 = (_ref32 = (_ref33 = my !== null && my !== void 0 ? my : marginTop) !== null && _ref33 !== void 0 ? _ref33 : marginBottom) !== null && _ref32 !== void 0 ? _ref32 : mt) !== null && _ref31 !== void 0 ? _ref31 : mb) !== null && _ref30 !== void 0 ? _ref30 : margin),
|
|
1123
|
+
width: makeScaleHandler(width !== null && width !== void 0 ? width : w),
|
|
1124
|
+
height: makeScaleHandler(height !== null && height !== void 0 ? height : h),
|
|
1125
1125
|
font: makeScaleHandler(font)
|
|
1126
1126
|
},
|
|
1127
1127
|
getScaleProps: generateGetScaleProps(props),
|
|
@@ -1139,9 +1139,9 @@ var withScale = function withScale(Render) {
|
|
|
1139
1139
|
|
|
1140
1140
|
var ButtonDrip = function ButtonDrip(_ref) {
|
|
1141
1141
|
var _ref$x = _ref.x,
|
|
1142
|
-
x = _ref$x ===
|
|
1142
|
+
x = _ref$x === void 0 ? 0 : _ref$x,
|
|
1143
1143
|
_ref$y = _ref.y,
|
|
1144
|
-
y = _ref$y ===
|
|
1144
|
+
y = _ref$y === void 0 ? 0 : _ref$y,
|
|
1145
1145
|
color = _ref.color,
|
|
1146
1146
|
onCompleted = _ref.onCompleted;
|
|
1147
1147
|
var dripRef = React$1.useRef(null);
|
|
@@ -1238,12 +1238,12 @@ var getIconBgColor = function getIconBgColor(type, palette, color) {
|
|
|
1238
1238
|
var LoadingComponent = function LoadingComponent(_ref) {
|
|
1239
1239
|
var children = _ref.children,
|
|
1240
1240
|
_ref$type = _ref.type,
|
|
1241
|
-
type = _ref$type ===
|
|
1241
|
+
type = _ref$type === void 0 ? 'default' : _ref$type,
|
|
1242
1242
|
color = _ref.color,
|
|
1243
1243
|
_ref$className = _ref.className,
|
|
1244
|
-
className = _ref$className ===
|
|
1244
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
1245
1245
|
_ref$spaceRatio = _ref.spaceRatio,
|
|
1246
|
-
spaceRatio = _ref$spaceRatio ===
|
|
1246
|
+
spaceRatio = _ref$spaceRatio === void 0 ? 1 : _ref$spaceRatio,
|
|
1247
1247
|
props = _objectWithoutProperties(_ref, _excluded$2);
|
|
1248
1248
|
var theme = useTheme();
|
|
1249
1249
|
var _useScale = useScale(),
|
|
@@ -1287,11 +1287,11 @@ ButtonLoading.displayName = 'GeistButtonLoading';
|
|
|
1287
1287
|
var _excluded$1 = ["isRight", "isSingle", "children", "className"];
|
|
1288
1288
|
var ButtonIcon = function ButtonIcon(_ref) {
|
|
1289
1289
|
var _ref$isRight = _ref.isRight,
|
|
1290
|
-
isRight = _ref$isRight ===
|
|
1290
|
+
isRight = _ref$isRight === void 0 ? false : _ref$isRight,
|
|
1291
1291
|
isSingle = _ref.isSingle,
|
|
1292
1292
|
children = _ref.children,
|
|
1293
1293
|
_ref$className = _ref.className,
|
|
1294
|
-
className = _ref$className ===
|
|
1294
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
1295
1295
|
props = _objectWithoutProperties(_ref, _excluded$1);
|
|
1296
1296
|
var classes = useClasses('icon', {
|
|
1297
1297
|
right: isRight,
|
|
@@ -1461,7 +1461,7 @@ var getButtonColors = function getButtonColors(palette, props) {
|
|
|
1461
1461
|
* Color['success'] === Color['success-light']
|
|
1462
1462
|
* Color['warning'] === Color['warning-light']
|
|
1463
1463
|
*/
|
|
1464
|
-
var withoutLightType = type === null || type ===
|
|
1464
|
+
var withoutLightType = type === null || type === void 0 ? void 0 : type.replace('-light', '');
|
|
1465
1465
|
var defaultColor = colors["default"];
|
|
1466
1466
|
if (ghost) return getButtonGhostColors(palette, withoutLightType) || defaultColor;
|
|
1467
1467
|
return colors[withoutLightType] || defaultColor;
|
|
@@ -1600,27 +1600,27 @@ var ButtonComponent = /*#__PURE__*/React$1.forwardRef(function (btnProps, ref) {
|
|
|
1600
1600
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
1601
1601
|
var children = filteredProps.children,
|
|
1602
1602
|
_filteredProps$disabl = filteredProps.disabled,
|
|
1603
|
-
disabled = _filteredProps$disabl ===
|
|
1603
|
+
disabled = _filteredProps$disabl === void 0 ? false : _filteredProps$disabl;
|
|
1604
1604
|
filteredProps.type;
|
|
1605
1605
|
var _filteredProps$loadin = filteredProps.loading,
|
|
1606
|
-
loading = _filteredProps$loadin ===
|
|
1606
|
+
loading = _filteredProps$loadin === void 0 ? false : _filteredProps$loadin,
|
|
1607
1607
|
_filteredProps$shadow = filteredProps.shadow,
|
|
1608
|
-
shadow = _filteredProps$shadow ===
|
|
1608
|
+
shadow = _filteredProps$shadow === void 0 ? false : _filteredProps$shadow,
|
|
1609
1609
|
_filteredProps$ghost = filteredProps.ghost,
|
|
1610
|
-
ghost = _filteredProps$ghost ===
|
|
1610
|
+
ghost = _filteredProps$ghost === void 0 ? false : _filteredProps$ghost,
|
|
1611
1611
|
_filteredProps$effect = filteredProps.effect,
|
|
1612
|
-
effect = _filteredProps$effect ===
|
|
1612
|
+
effect = _filteredProps$effect === void 0 ? true : _filteredProps$effect,
|
|
1613
1613
|
_filteredProps$round = filteredProps.round,
|
|
1614
|
-
round = _filteredProps$round ===
|
|
1614
|
+
round = _filteredProps$round === void 0 ? false : _filteredProps$round,
|
|
1615
1615
|
onClick = filteredProps.onClick,
|
|
1616
1616
|
_filteredProps$auto = filteredProps.auto,
|
|
1617
|
-
auto = _filteredProps$auto ===
|
|
1617
|
+
auto = _filteredProps$auto === void 0 ? false : _filteredProps$auto,
|
|
1618
1618
|
icon = filteredProps.icon,
|
|
1619
1619
|
_filteredProps$htmlTy = filteredProps.htmlType,
|
|
1620
|
-
htmlType = _filteredProps$htmlTy ===
|
|
1620
|
+
htmlType = _filteredProps$htmlTy === void 0 ? 'button' : _filteredProps$htmlTy,
|
|
1621
1621
|
iconRight = filteredProps.iconRight,
|
|
1622
1622
|
_filteredProps$classN = filteredProps.className,
|
|
1623
|
-
className = _filteredProps$classN ===
|
|
1623
|
+
className = _filteredProps$classN === void 0 ? '' : _filteredProps$classN;
|
|
1624
1624
|
filteredProps.crossOrigin;
|
|
1625
1625
|
var props = _objectWithoutProperties(filteredProps, _excluded);
|
|
1626
1626
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
@@ -1691,14 +1691,14 @@ var ButtonComponent = /*#__PURE__*/React$1.forwardRef(function (btnProps, ref) {
|
|
|
1691
1691
|
ButtonComponent.displayName = 'Button';
|
|
1692
1692
|
var Button = withScale(ButtonComponent);
|
|
1693
1693
|
|
|
1694
|
-
function CompactButton(_ref) {
|
|
1694
|
+
var CompactButton = function CompactButton(_ref) {
|
|
1695
1695
|
var _ref$to = _ref.to,
|
|
1696
|
-
to = _ref$to ===
|
|
1696
|
+
to = _ref$to === void 0 ? '/' : _ref$to,
|
|
1697
1697
|
children = _ref.children,
|
|
1698
1698
|
iconRight = _ref.iconRight,
|
|
1699
1699
|
icon = _ref.icon,
|
|
1700
1700
|
_ref$scale = _ref.scale,
|
|
1701
|
-
scale = _ref$scale ===
|
|
1701
|
+
scale = _ref$scale === void 0 ? 2 / 3 : _ref$scale,
|
|
1702
1702
|
type = _ref.type,
|
|
1703
1703
|
style = _ref.style,
|
|
1704
1704
|
a = _ref.a,
|
|
@@ -1766,9 +1766,10 @@ function CompactButton(_ref) {
|
|
|
1766
1766
|
px: 0.6,
|
|
1767
1767
|
iconRight: iconRight
|
|
1768
1768
|
}, children);
|
|
1769
|
-
}
|
|
1769
|
+
};
|
|
1770
|
+
var button_compact = /*#__PURE__*/React$1.memo(CompactButton);
|
|
1770
1771
|
|
|
1771
1772
|
/* "use client" */
|
|
1772
1773
|
|
|
1773
|
-
exports.LinkButton =
|
|
1774
|
+
exports.LinkButton = button_compact;
|
|
1774
1775
|
exports.default = Button;
|
|
@@ -151,8 +151,8 @@ function _slicedToArray(r, e) {
|
|
|
151
151
|
function _toPrimitive(t, r) {
|
|
152
152
|
if ("object" != typeof t || !t) return t;
|
|
153
153
|
var e = t[Symbol.toPrimitive];
|
|
154
|
-
if (
|
|
155
|
-
var i = e.call(t, r
|
|
154
|
+
if (void 0 !== e) {
|
|
155
|
+
var i = e.call(t, r);
|
|
156
156
|
if ("object" != typeof i) return i;
|
|
157
157
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
158
158
|
}
|
|
@@ -175,7 +175,7 @@ function _unsupportedIterableToArray(r, a) {
|
|
|
175
175
|
if (r) {
|
|
176
176
|
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
177
177
|
var t = {}.toString.call(r).slice(8, -1);
|
|
178
|
-
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) :
|
|
178
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
181
|
|
|
@@ -209,7 +209,7 @@ function requireIndex () {
|
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
211
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
212
|
-
_defineProperties(Constructor.prototype, protoProps);
|
|
212
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
213
213
|
return Constructor;
|
|
214
214
|
}
|
|
215
215
|
var isProd = typeof process !== "undefined" && process.env && process.env.NODE_ENV === "production";
|
|
@@ -218,7 +218,7 @@ function requireIndex () {
|
|
|
218
218
|
};
|
|
219
219
|
var StyleSheet = /*#__PURE__*/ function() {
|
|
220
220
|
function StyleSheet(param) {
|
|
221
|
-
var ref = param ===
|
|
221
|
+
var ref = param === void 0 ? {} : param, _name = ref.name, name = _name === void 0 ? "stylesheet" : _name, _optimizeForSpeed = ref.optimizeForSpeed, optimizeForSpeed = _optimizeForSpeed === void 0 ? isProd : _optimizeForSpeed;
|
|
222
222
|
invariant$1(isString(name), "`name` must be a string");
|
|
223
223
|
this._name = name;
|
|
224
224
|
this._deletedRulePlaceholder = "#" + name + "-deleted-rule____{}";
|
|
@@ -476,7 +476,7 @@ function requireIndex () {
|
|
|
476
476
|
}
|
|
477
477
|
|
|
478
478
|
function mapRulesToStyle(cssRules, options) {
|
|
479
|
-
if (options ===
|
|
479
|
+
if (options === void 0) options = {};
|
|
480
480
|
return cssRules.map(function(args) {
|
|
481
481
|
var id = args[0];
|
|
482
482
|
var css = args[1];
|
|
@@ -493,7 +493,7 @@ function requireIndex () {
|
|
|
493
493
|
}
|
|
494
494
|
var StyleSheetRegistry = /*#__PURE__*/ function() {
|
|
495
495
|
function StyleSheetRegistry(param) {
|
|
496
|
-
var ref = param ===
|
|
496
|
+
var ref = param === void 0 ? {} : param, _styleSheet = ref.styleSheet, styleSheet = _styleSheet === void 0 ? null : _styleSheet, _optimizeForSpeed = ref.optimizeForSpeed, optimizeForSpeed = _optimizeForSpeed === void 0 ? false : _optimizeForSpeed;
|
|
497
497
|
this._sheet = styleSheet || new StyleSheet({
|
|
498
498
|
name: "styled-jsx",
|
|
499
499
|
optimizeForSpeed: optimizeForSpeed
|
|
@@ -1222,9 +1222,9 @@ var withScale = function withScale(Render) {
|
|
|
1222
1222
|
margin = props.margin,
|
|
1223
1223
|
padding = props.padding,
|
|
1224
1224
|
_props$unit = props.unit,
|
|
1225
|
-
unit = _props$unit ===
|
|
1225
|
+
unit = _props$unit === void 0 ? layout.unit : _props$unit,
|
|
1226
1226
|
_props$scale = props.scale,
|
|
1227
|
-
scale = _props$scale ===
|
|
1227
|
+
scale = _props$scale === void 0 ? 1 : _props$scale;
|
|
1228
1228
|
var makeScaleHandler = function makeScaleHandler(attrValue) {
|
|
1229
1229
|
return function (scale1x, defaultValue) {
|
|
1230
1230
|
// 0 means disable scale and the default value is 0
|
|
@@ -1245,20 +1245,20 @@ var withScale = function withScale(Render) {
|
|
|
1245
1245
|
var value = {
|
|
1246
1246
|
unit: unit,
|
|
1247
1247
|
SCALES: {
|
|
1248
|
-
pt: makeScaleHandler((_ref2 = (_ref3 = paddingTop !== null && paddingTop !==
|
|
1249
|
-
pr: makeScaleHandler((_ref4 = (_ref5 = paddingRight !== null && paddingRight !==
|
|
1250
|
-
pb: makeScaleHandler((_ref6 = (_ref7 = paddingBottom !== null && paddingBottom !==
|
|
1251
|
-
pl: makeScaleHandler((_ref8 = (_ref9 = paddingLeft !== null && paddingLeft !==
|
|
1252
|
-
px: makeScaleHandler((_ref10 = (_ref11 = (_ref12 = (_ref13 = px !== null && px !==
|
|
1253
|
-
py: makeScaleHandler((_ref14 = (_ref15 = (_ref16 = (_ref17 = py !== null && py !==
|
|
1254
|
-
mt: makeScaleHandler((_ref18 = (_ref19 = marginTop !== null && marginTop !==
|
|
1255
|
-
mr: makeScaleHandler((_ref20 = (_ref21 = marginRight !== null && marginRight !==
|
|
1256
|
-
mb: makeScaleHandler((_ref22 = (_ref23 = marginBottom !== null && marginBottom !==
|
|
1257
|
-
ml: makeScaleHandler((_ref24 = (_ref25 = marginLeft !== null && marginLeft !==
|
|
1258
|
-
mx: makeScaleHandler((_ref26 = (_ref27 = (_ref28 = (_ref29 = mx !== null && mx !==
|
|
1259
|
-
my: makeScaleHandler((_ref30 = (_ref31 = (_ref32 = (_ref33 = my !== null && my !==
|
|
1260
|
-
width: makeScaleHandler(width !== null && width !==
|
|
1261
|
-
height: makeScaleHandler(height !== null && height !==
|
|
1248
|
+
pt: makeScaleHandler((_ref2 = (_ref3 = paddingTop !== null && paddingTop !== void 0 ? paddingTop : pt) !== null && _ref3 !== void 0 ? _ref3 : py) !== null && _ref2 !== void 0 ? _ref2 : padding),
|
|
1249
|
+
pr: makeScaleHandler((_ref4 = (_ref5 = paddingRight !== null && paddingRight !== void 0 ? paddingRight : pr) !== null && _ref5 !== void 0 ? _ref5 : px) !== null && _ref4 !== void 0 ? _ref4 : padding),
|
|
1250
|
+
pb: makeScaleHandler((_ref6 = (_ref7 = paddingBottom !== null && paddingBottom !== void 0 ? paddingBottom : pb) !== null && _ref7 !== void 0 ? _ref7 : py) !== null && _ref6 !== void 0 ? _ref6 : padding),
|
|
1251
|
+
pl: makeScaleHandler((_ref8 = (_ref9 = paddingLeft !== null && paddingLeft !== void 0 ? paddingLeft : pl) !== null && _ref9 !== void 0 ? _ref9 : px) !== null && _ref8 !== void 0 ? _ref8 : padding),
|
|
1252
|
+
px: makeScaleHandler((_ref10 = (_ref11 = (_ref12 = (_ref13 = px !== null && px !== void 0 ? px : paddingLeft) !== null && _ref13 !== void 0 ? _ref13 : paddingRight) !== null && _ref12 !== void 0 ? _ref12 : pl) !== null && _ref11 !== void 0 ? _ref11 : pr) !== null && _ref10 !== void 0 ? _ref10 : padding),
|
|
1253
|
+
py: makeScaleHandler((_ref14 = (_ref15 = (_ref16 = (_ref17 = py !== null && py !== void 0 ? py : paddingTop) !== null && _ref17 !== void 0 ? _ref17 : paddingBottom) !== null && _ref16 !== void 0 ? _ref16 : pt) !== null && _ref15 !== void 0 ? _ref15 : pb) !== null && _ref14 !== void 0 ? _ref14 : padding),
|
|
1254
|
+
mt: makeScaleHandler((_ref18 = (_ref19 = marginTop !== null && marginTop !== void 0 ? marginTop : mt) !== null && _ref19 !== void 0 ? _ref19 : my) !== null && _ref18 !== void 0 ? _ref18 : margin),
|
|
1255
|
+
mr: makeScaleHandler((_ref20 = (_ref21 = marginRight !== null && marginRight !== void 0 ? marginRight : mr) !== null && _ref21 !== void 0 ? _ref21 : mx) !== null && _ref20 !== void 0 ? _ref20 : margin),
|
|
1256
|
+
mb: makeScaleHandler((_ref22 = (_ref23 = marginBottom !== null && marginBottom !== void 0 ? marginBottom : mb) !== null && _ref23 !== void 0 ? _ref23 : my) !== null && _ref22 !== void 0 ? _ref22 : margin),
|
|
1257
|
+
ml: makeScaleHandler((_ref24 = (_ref25 = marginLeft !== null && marginLeft !== void 0 ? marginLeft : ml) !== null && _ref25 !== void 0 ? _ref25 : mx) !== null && _ref24 !== void 0 ? _ref24 : margin),
|
|
1258
|
+
mx: makeScaleHandler((_ref26 = (_ref27 = (_ref28 = (_ref29 = mx !== null && mx !== void 0 ? mx : marginLeft) !== null && _ref29 !== void 0 ? _ref29 : marginRight) !== null && _ref28 !== void 0 ? _ref28 : ml) !== null && _ref27 !== void 0 ? _ref27 : mr) !== null && _ref26 !== void 0 ? _ref26 : margin),
|
|
1259
|
+
my: makeScaleHandler((_ref30 = (_ref31 = (_ref32 = (_ref33 = my !== null && my !== void 0 ? my : marginTop) !== null && _ref33 !== void 0 ? _ref33 : marginBottom) !== null && _ref32 !== void 0 ? _ref32 : mt) !== null && _ref31 !== void 0 ? _ref31 : mb) !== null && _ref30 !== void 0 ? _ref30 : margin),
|
|
1260
|
+
width: makeScaleHandler(width !== null && width !== void 0 ? width : w),
|
|
1261
|
+
height: makeScaleHandler(height !== null && height !== void 0 ? height : h),
|
|
1262
1262
|
font: makeScaleHandler(font)
|
|
1263
1263
|
},
|
|
1264
1264
|
getScaleProps: generateGetScaleProps(props),
|
|
@@ -1321,12 +1321,12 @@ var getIconBgColor = function getIconBgColor(type, palette, color) {
|
|
|
1321
1321
|
var LoadingComponent = function LoadingComponent(_ref) {
|
|
1322
1322
|
var children = _ref.children,
|
|
1323
1323
|
_ref$type = _ref.type,
|
|
1324
|
-
type = _ref$type ===
|
|
1324
|
+
type = _ref$type === void 0 ? 'default' : _ref$type,
|
|
1325
1325
|
color = _ref.color,
|
|
1326
1326
|
_ref$className = _ref.className,
|
|
1327
|
-
className = _ref$className ===
|
|
1327
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
1328
1328
|
_ref$spaceRatio = _ref.spaceRatio,
|
|
1329
|
-
spaceRatio = _ref$spaceRatio ===
|
|
1329
|
+
spaceRatio = _ref$spaceRatio === void 0 ? 1 : _ref$spaceRatio,
|
|
1330
1330
|
props = _objectWithoutProperties(_ref, _excluded$2);
|
|
1331
1331
|
var theme = useTheme();
|
|
1332
1332
|
var _useScale = useScale(),
|
|
@@ -1359,11 +1359,11 @@ var _excluded$1 = ["children", "onClick", "className", "main", "icon", "type"];
|
|
|
1359
1359
|
var ButtonDropdownItem = function ButtonDropdownItem(_ref) {
|
|
1360
1360
|
var children = _ref.children,
|
|
1361
1361
|
_ref$onClick = _ref.onClick,
|
|
1362
|
-
onClick = _ref$onClick ===
|
|
1362
|
+
onClick = _ref$onClick === void 0 ? function () {} : _ref$onClick,
|
|
1363
1363
|
_ref$className = _ref.className,
|
|
1364
|
-
className = _ref$className ===
|
|
1364
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
1365
1365
|
_ref$main = _ref.main,
|
|
1366
|
-
main = _ref$main ===
|
|
1366
|
+
main = _ref$main === void 0 ? false : _ref$main,
|
|
1367
1367
|
icon = _ref.icon,
|
|
1368
1368
|
selfType = _ref.type,
|
|
1369
1369
|
props = _objectWithoutProperties(_ref, _excluded$1);
|
|
@@ -1411,15 +1411,15 @@ var stopPropagation = function stopPropagation(event) {
|
|
|
1411
1411
|
var ButtonDropdownComponent = function ButtonDropdownComponent(_ref) {
|
|
1412
1412
|
var children = _ref.children,
|
|
1413
1413
|
_ref$type = _ref.type,
|
|
1414
|
-
type = _ref$type ===
|
|
1414
|
+
type = _ref$type === void 0 ? 'default' : _ref$type,
|
|
1415
1415
|
_ref$auto = _ref.auto,
|
|
1416
|
-
auto = _ref$auto ===
|
|
1416
|
+
auto = _ref$auto === void 0 ? false : _ref$auto,
|
|
1417
1417
|
_ref$className = _ref.className,
|
|
1418
|
-
className = _ref$className ===
|
|
1418
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
1419
1419
|
_ref$disabled = _ref.disabled,
|
|
1420
|
-
disabled = _ref$disabled ===
|
|
1420
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
1421
1421
|
_ref$loading = _ref.loading,
|
|
1422
|
-
loading = _ref$loading ===
|
|
1422
|
+
loading = _ref$loading === void 0 ? false : _ref$loading,
|
|
1423
1423
|
icon = _ref.icon,
|
|
1424
1424
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
1425
1425
|
var _useScale = useScale(),
|
|
@@ -118,8 +118,8 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
118
118
|
function _toPrimitive(t, r) {
|
|
119
119
|
if ("object" != typeof t || !t) return t;
|
|
120
120
|
var e = t[Symbol.toPrimitive];
|
|
121
|
-
if (
|
|
122
|
-
var i = e.call(t, r
|
|
121
|
+
if (void 0 !== e) {
|
|
122
|
+
var i = e.call(t, r);
|
|
123
123
|
if ("object" != typeof i) return i;
|
|
124
124
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
125
125
|
}
|
|
@@ -142,7 +142,7 @@ function _unsupportedIterableToArray(r, a) {
|
|
|
142
142
|
if (r) {
|
|
143
143
|
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
144
144
|
var t = {}.toString.call(r).slice(8, -1);
|
|
145
|
-
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) :
|
|
145
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
148
|
|
|
@@ -176,7 +176,7 @@ function requireIndex () {
|
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
178
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
179
|
-
_defineProperties(Constructor.prototype, protoProps);
|
|
179
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
180
180
|
return Constructor;
|
|
181
181
|
}
|
|
182
182
|
var isProd = typeof process !== "undefined" && process.env && process.env.NODE_ENV === "production";
|
|
@@ -185,7 +185,7 @@ function requireIndex () {
|
|
|
185
185
|
};
|
|
186
186
|
var StyleSheet = /*#__PURE__*/ function() {
|
|
187
187
|
function StyleSheet(param) {
|
|
188
|
-
var ref = param ===
|
|
188
|
+
var ref = param === void 0 ? {} : param, _name = ref.name, name = _name === void 0 ? "stylesheet" : _name, _optimizeForSpeed = ref.optimizeForSpeed, optimizeForSpeed = _optimizeForSpeed === void 0 ? isProd : _optimizeForSpeed;
|
|
189
189
|
invariant$1(isString(name), "`name` must be a string");
|
|
190
190
|
this._name = name;
|
|
191
191
|
this._deletedRulePlaceholder = "#" + name + "-deleted-rule____{}";
|
|
@@ -443,7 +443,7 @@ function requireIndex () {
|
|
|
443
443
|
}
|
|
444
444
|
|
|
445
445
|
function mapRulesToStyle(cssRules, options) {
|
|
446
|
-
if (options ===
|
|
446
|
+
if (options === void 0) options = {};
|
|
447
447
|
return cssRules.map(function(args) {
|
|
448
448
|
var id = args[0];
|
|
449
449
|
var css = args[1];
|
|
@@ -460,7 +460,7 @@ function requireIndex () {
|
|
|
460
460
|
}
|
|
461
461
|
var StyleSheetRegistry = /*#__PURE__*/ function() {
|
|
462
462
|
function StyleSheetRegistry(param) {
|
|
463
|
-
var ref = param ===
|
|
463
|
+
var ref = param === void 0 ? {} : param, _styleSheet = ref.styleSheet, styleSheet = _styleSheet === void 0 ? null : _styleSheet, _optimizeForSpeed = ref.optimizeForSpeed, optimizeForSpeed = _optimizeForSpeed === void 0 ? false : _optimizeForSpeed;
|
|
464
464
|
this._sheet = styleSheet || new StyleSheet({
|
|
465
465
|
name: "styled-jsx",
|
|
466
466
|
optimizeForSpeed: optimizeForSpeed
|
|
@@ -1057,9 +1057,9 @@ var withScale = function withScale(Render) {
|
|
|
1057
1057
|
margin = props.margin,
|
|
1058
1058
|
padding = props.padding,
|
|
1059
1059
|
_props$unit = props.unit,
|
|
1060
|
-
unit = _props$unit ===
|
|
1060
|
+
unit = _props$unit === void 0 ? layout.unit : _props$unit,
|
|
1061
1061
|
_props$scale = props.scale,
|
|
1062
|
-
scale = _props$scale ===
|
|
1062
|
+
scale = _props$scale === void 0 ? 1 : _props$scale;
|
|
1063
1063
|
var makeScaleHandler = function makeScaleHandler(attrValue) {
|
|
1064
1064
|
return function (scale1x, defaultValue) {
|
|
1065
1065
|
// 0 means disable scale and the default value is 0
|
|
@@ -1080,20 +1080,20 @@ var withScale = function withScale(Render) {
|
|
|
1080
1080
|
var value = {
|
|
1081
1081
|
unit: unit,
|
|
1082
1082
|
SCALES: {
|
|
1083
|
-
pt: makeScaleHandler((_ref2 = (_ref3 = paddingTop !== null && paddingTop !==
|
|
1084
|
-
pr: makeScaleHandler((_ref4 = (_ref5 = paddingRight !== null && paddingRight !==
|
|
1085
|
-
pb: makeScaleHandler((_ref6 = (_ref7 = paddingBottom !== null && paddingBottom !==
|
|
1086
|
-
pl: makeScaleHandler((_ref8 = (_ref9 = paddingLeft !== null && paddingLeft !==
|
|
1087
|
-
px: makeScaleHandler((_ref10 = (_ref11 = (_ref12 = (_ref13 = px !== null && px !==
|
|
1088
|
-
py: makeScaleHandler((_ref14 = (_ref15 = (_ref16 = (_ref17 = py !== null && py !==
|
|
1089
|
-
mt: makeScaleHandler((_ref18 = (_ref19 = marginTop !== null && marginTop !==
|
|
1090
|
-
mr: makeScaleHandler((_ref20 = (_ref21 = marginRight !== null && marginRight !==
|
|
1091
|
-
mb: makeScaleHandler((_ref22 = (_ref23 = marginBottom !== null && marginBottom !==
|
|
1092
|
-
ml: makeScaleHandler((_ref24 = (_ref25 = marginLeft !== null && marginLeft !==
|
|
1093
|
-
mx: makeScaleHandler((_ref26 = (_ref27 = (_ref28 = (_ref29 = mx !== null && mx !==
|
|
1094
|
-
my: makeScaleHandler((_ref30 = (_ref31 = (_ref32 = (_ref33 = my !== null && my !==
|
|
1095
|
-
width: makeScaleHandler(width !== null && width !==
|
|
1096
|
-
height: makeScaleHandler(height !== null && height !==
|
|
1083
|
+
pt: makeScaleHandler((_ref2 = (_ref3 = paddingTop !== null && paddingTop !== void 0 ? paddingTop : pt) !== null && _ref3 !== void 0 ? _ref3 : py) !== null && _ref2 !== void 0 ? _ref2 : padding),
|
|
1084
|
+
pr: makeScaleHandler((_ref4 = (_ref5 = paddingRight !== null && paddingRight !== void 0 ? paddingRight : pr) !== null && _ref5 !== void 0 ? _ref5 : px) !== null && _ref4 !== void 0 ? _ref4 : padding),
|
|
1085
|
+
pb: makeScaleHandler((_ref6 = (_ref7 = paddingBottom !== null && paddingBottom !== void 0 ? paddingBottom : pb) !== null && _ref7 !== void 0 ? _ref7 : py) !== null && _ref6 !== void 0 ? _ref6 : padding),
|
|
1086
|
+
pl: makeScaleHandler((_ref8 = (_ref9 = paddingLeft !== null && paddingLeft !== void 0 ? paddingLeft : pl) !== null && _ref9 !== void 0 ? _ref9 : px) !== null && _ref8 !== void 0 ? _ref8 : padding),
|
|
1087
|
+
px: makeScaleHandler((_ref10 = (_ref11 = (_ref12 = (_ref13 = px !== null && px !== void 0 ? px : paddingLeft) !== null && _ref13 !== void 0 ? _ref13 : paddingRight) !== null && _ref12 !== void 0 ? _ref12 : pl) !== null && _ref11 !== void 0 ? _ref11 : pr) !== null && _ref10 !== void 0 ? _ref10 : padding),
|
|
1088
|
+
py: makeScaleHandler((_ref14 = (_ref15 = (_ref16 = (_ref17 = py !== null && py !== void 0 ? py : paddingTop) !== null && _ref17 !== void 0 ? _ref17 : paddingBottom) !== null && _ref16 !== void 0 ? _ref16 : pt) !== null && _ref15 !== void 0 ? _ref15 : pb) !== null && _ref14 !== void 0 ? _ref14 : padding),
|
|
1089
|
+
mt: makeScaleHandler((_ref18 = (_ref19 = marginTop !== null && marginTop !== void 0 ? marginTop : mt) !== null && _ref19 !== void 0 ? _ref19 : my) !== null && _ref18 !== void 0 ? _ref18 : margin),
|
|
1090
|
+
mr: makeScaleHandler((_ref20 = (_ref21 = marginRight !== null && marginRight !== void 0 ? marginRight : mr) !== null && _ref21 !== void 0 ? _ref21 : mx) !== null && _ref20 !== void 0 ? _ref20 : margin),
|
|
1091
|
+
mb: makeScaleHandler((_ref22 = (_ref23 = marginBottom !== null && marginBottom !== void 0 ? marginBottom : mb) !== null && _ref23 !== void 0 ? _ref23 : my) !== null && _ref22 !== void 0 ? _ref22 : margin),
|
|
1092
|
+
ml: makeScaleHandler((_ref24 = (_ref25 = marginLeft !== null && marginLeft !== void 0 ? marginLeft : ml) !== null && _ref25 !== void 0 ? _ref25 : mx) !== null && _ref24 !== void 0 ? _ref24 : margin),
|
|
1093
|
+
mx: makeScaleHandler((_ref26 = (_ref27 = (_ref28 = (_ref29 = mx !== null && mx !== void 0 ? mx : marginLeft) !== null && _ref29 !== void 0 ? _ref29 : marginRight) !== null && _ref28 !== void 0 ? _ref28 : ml) !== null && _ref27 !== void 0 ? _ref27 : mr) !== null && _ref26 !== void 0 ? _ref26 : margin),
|
|
1094
|
+
my: makeScaleHandler((_ref30 = (_ref31 = (_ref32 = (_ref33 = my !== null && my !== void 0 ? my : marginTop) !== null && _ref33 !== void 0 ? _ref33 : marginBottom) !== null && _ref32 !== void 0 ? _ref32 : mt) !== null && _ref31 !== void 0 ? _ref31 : mb) !== null && _ref30 !== void 0 ? _ref30 : margin),
|
|
1095
|
+
width: makeScaleHandler(width !== null && width !== void 0 ? width : w),
|
|
1096
|
+
height: makeScaleHandler(height !== null && height !== void 0 ? height : h),
|
|
1097
1097
|
font: makeScaleHandler(font)
|
|
1098
1098
|
},
|
|
1099
1099
|
getScaleProps: generateGetScaleProps(props),
|
|
@@ -1145,9 +1145,9 @@ var useClasses = function useClasses() {
|
|
|
1145
1145
|
var _excluded = ["disabled", "type", "ghost", "vertical", "children", "className"];
|
|
1146
1146
|
var getGroupBorderColors = function getGroupBorderColors(palette, props) {
|
|
1147
1147
|
var _props$ghost = props.ghost,
|
|
1148
|
-
ghost = _props$ghost ===
|
|
1148
|
+
ghost = _props$ghost === void 0 ? false : _props$ghost,
|
|
1149
1149
|
_props$type = props.type,
|
|
1150
|
-
type = _props$type ===
|
|
1150
|
+
type = _props$type === void 0 ? 'default' : _props$type;
|
|
1151
1151
|
if (!ghost && type !== 'default') return palette.background;
|
|
1152
1152
|
var colors = {
|
|
1153
1153
|
"default": palette.border,
|