@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/avatar/index.js
CHANGED
|
@@ -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
|
|
@@ -1049,9 +1049,9 @@ var withScale = function withScale(Render) {
|
|
|
1049
1049
|
margin = props.margin,
|
|
1050
1050
|
padding = props.padding,
|
|
1051
1051
|
_props$unit = props.unit,
|
|
1052
|
-
unit = _props$unit ===
|
|
1052
|
+
unit = _props$unit === void 0 ? layout.unit : _props$unit,
|
|
1053
1053
|
_props$scale = props.scale,
|
|
1054
|
-
scale = _props$scale ===
|
|
1054
|
+
scale = _props$scale === void 0 ? 1 : _props$scale;
|
|
1055
1055
|
var makeScaleHandler = function makeScaleHandler(attrValue) {
|
|
1056
1056
|
return function (scale1x, defaultValue) {
|
|
1057
1057
|
// 0 means disable scale and the default value is 0
|
|
@@ -1072,20 +1072,20 @@ var withScale = function withScale(Render) {
|
|
|
1072
1072
|
var value = {
|
|
1073
1073
|
unit: unit,
|
|
1074
1074
|
SCALES: {
|
|
1075
|
-
pt: makeScaleHandler((_ref2 = (_ref3 = paddingTop !== null && paddingTop !==
|
|
1076
|
-
pr: makeScaleHandler((_ref4 = (_ref5 = paddingRight !== null && paddingRight !==
|
|
1077
|
-
pb: makeScaleHandler((_ref6 = (_ref7 = paddingBottom !== null && paddingBottom !==
|
|
1078
|
-
pl: makeScaleHandler((_ref8 = (_ref9 = paddingLeft !== null && paddingLeft !==
|
|
1079
|
-
px: makeScaleHandler((_ref10 = (_ref11 = (_ref12 = (_ref13 = px !== null && px !==
|
|
1080
|
-
py: makeScaleHandler((_ref14 = (_ref15 = (_ref16 = (_ref17 = py !== null && py !==
|
|
1081
|
-
mt: makeScaleHandler((_ref18 = (_ref19 = marginTop !== null && marginTop !==
|
|
1082
|
-
mr: makeScaleHandler((_ref20 = (_ref21 = marginRight !== null && marginRight !==
|
|
1083
|
-
mb: makeScaleHandler((_ref22 = (_ref23 = marginBottom !== null && marginBottom !==
|
|
1084
|
-
ml: makeScaleHandler((_ref24 = (_ref25 = marginLeft !== null && marginLeft !==
|
|
1085
|
-
mx: makeScaleHandler((_ref26 = (_ref27 = (_ref28 = (_ref29 = mx !== null && mx !==
|
|
1086
|
-
my: makeScaleHandler((_ref30 = (_ref31 = (_ref32 = (_ref33 = my !== null && my !==
|
|
1087
|
-
width: makeScaleHandler(width !== null && width !==
|
|
1088
|
-
height: makeScaleHandler(height !== null && height !==
|
|
1075
|
+
pt: makeScaleHandler((_ref2 = (_ref3 = paddingTop !== null && paddingTop !== void 0 ? paddingTop : pt) !== null && _ref3 !== void 0 ? _ref3 : py) !== null && _ref2 !== void 0 ? _ref2 : padding),
|
|
1076
|
+
pr: makeScaleHandler((_ref4 = (_ref5 = paddingRight !== null && paddingRight !== void 0 ? paddingRight : pr) !== null && _ref5 !== void 0 ? _ref5 : px) !== null && _ref4 !== void 0 ? _ref4 : padding),
|
|
1077
|
+
pb: makeScaleHandler((_ref6 = (_ref7 = paddingBottom !== null && paddingBottom !== void 0 ? paddingBottom : pb) !== null && _ref7 !== void 0 ? _ref7 : py) !== null && _ref6 !== void 0 ? _ref6 : padding),
|
|
1078
|
+
pl: makeScaleHandler((_ref8 = (_ref9 = paddingLeft !== null && paddingLeft !== void 0 ? paddingLeft : pl) !== null && _ref9 !== void 0 ? _ref9 : px) !== null && _ref8 !== void 0 ? _ref8 : padding),
|
|
1079
|
+
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),
|
|
1080
|
+
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),
|
|
1081
|
+
mt: makeScaleHandler((_ref18 = (_ref19 = marginTop !== null && marginTop !== void 0 ? marginTop : mt) !== null && _ref19 !== void 0 ? _ref19 : my) !== null && _ref18 !== void 0 ? _ref18 : margin),
|
|
1082
|
+
mr: makeScaleHandler((_ref20 = (_ref21 = marginRight !== null && marginRight !== void 0 ? marginRight : mr) !== null && _ref21 !== void 0 ? _ref21 : mx) !== null && _ref20 !== void 0 ? _ref20 : margin),
|
|
1083
|
+
mb: makeScaleHandler((_ref22 = (_ref23 = marginBottom !== null && marginBottom !== void 0 ? marginBottom : mb) !== null && _ref23 !== void 0 ? _ref23 : my) !== null && _ref22 !== void 0 ? _ref22 : margin),
|
|
1084
|
+
ml: makeScaleHandler((_ref24 = (_ref25 = marginLeft !== null && marginLeft !== void 0 ? marginLeft : ml) !== null && _ref25 !== void 0 ? _ref25 : mx) !== null && _ref24 !== void 0 ? _ref24 : margin),
|
|
1085
|
+
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),
|
|
1086
|
+
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),
|
|
1087
|
+
width: makeScaleHandler(width !== null && width !== void 0 ? width : w),
|
|
1088
|
+
height: makeScaleHandler(height !== null && height !== void 0 ? height : h),
|
|
1089
1089
|
font: makeScaleHandler(font)
|
|
1090
1090
|
},
|
|
1091
1091
|
getScaleProps: generateGetScaleProps(props),
|
|
@@ -1148,13 +1148,13 @@ var safeText = function safeText(text) {
|
|
|
1148
1148
|
var AvatarComponent = function AvatarComponent(_ref) {
|
|
1149
1149
|
var src = _ref.src,
|
|
1150
1150
|
_ref$stacked = _ref.stacked,
|
|
1151
|
-
stacked = _ref$stacked ===
|
|
1151
|
+
stacked = _ref$stacked === void 0 ? false : _ref$stacked,
|
|
1152
1152
|
_ref$text = _ref.text,
|
|
1153
|
-
text = _ref$text ===
|
|
1153
|
+
text = _ref$text === void 0 ? '' : _ref$text,
|
|
1154
1154
|
_ref$isSquare = _ref.isSquare,
|
|
1155
|
-
isSquare = _ref$isSquare ===
|
|
1155
|
+
isSquare = _ref$isSquare === void 0 ? false : _ref$isSquare,
|
|
1156
1156
|
_ref$className = _ref.className,
|
|
1157
|
-
className = _ref$className ===
|
|
1157
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
1158
1158
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
1159
1159
|
var theme = useTheme();
|
|
1160
1160
|
var _useScale = useScale(),
|
|
@@ -1184,7 +1184,7 @@ var Avatar = withScale(AvatarComponent);
|
|
|
1184
1184
|
var AvatarGroupComponent = function AvatarGroupComponent(_ref) {
|
|
1185
1185
|
var count = _ref.count,
|
|
1186
1186
|
_ref$className = _ref.className,
|
|
1187
|
-
className = _ref$className ===
|
|
1187
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
1188
1188
|
children = _ref.children;
|
|
1189
1189
|
var theme = useTheme();
|
|
1190
1190
|
var _useScale = useScale(),
|
package/dist/badge/index.js
CHANGED
|
@@ -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
|
|
@@ -1095,9 +1095,9 @@ var withScale = function withScale(Render) {
|
|
|
1095
1095
|
margin = props.margin,
|
|
1096
1096
|
padding = props.padding,
|
|
1097
1097
|
_props$unit = props.unit,
|
|
1098
|
-
unit = _props$unit ===
|
|
1098
|
+
unit = _props$unit === void 0 ? layout.unit : _props$unit,
|
|
1099
1099
|
_props$scale = props.scale,
|
|
1100
|
-
scale = _props$scale ===
|
|
1100
|
+
scale = _props$scale === void 0 ? 1 : _props$scale;
|
|
1101
1101
|
var makeScaleHandler = function makeScaleHandler(attrValue) {
|
|
1102
1102
|
return function (scale1x, defaultValue) {
|
|
1103
1103
|
// 0 means disable scale and the default value is 0
|
|
@@ -1118,20 +1118,20 @@ var withScale = function withScale(Render) {
|
|
|
1118
1118
|
var value = {
|
|
1119
1119
|
unit: unit,
|
|
1120
1120
|
SCALES: {
|
|
1121
|
-
pt: makeScaleHandler((_ref2 = (_ref3 = paddingTop !== null && paddingTop !==
|
|
1122
|
-
pr: makeScaleHandler((_ref4 = (_ref5 = paddingRight !== null && paddingRight !==
|
|
1123
|
-
pb: makeScaleHandler((_ref6 = (_ref7 = paddingBottom !== null && paddingBottom !==
|
|
1124
|
-
pl: makeScaleHandler((_ref8 = (_ref9 = paddingLeft !== null && paddingLeft !==
|
|
1125
|
-
px: makeScaleHandler((_ref10 = (_ref11 = (_ref12 = (_ref13 = px !== null && px !==
|
|
1126
|
-
py: makeScaleHandler((_ref14 = (_ref15 = (_ref16 = (_ref17 = py !== null && py !==
|
|
1127
|
-
mt: makeScaleHandler((_ref18 = (_ref19 = marginTop !== null && marginTop !==
|
|
1128
|
-
mr: makeScaleHandler((_ref20 = (_ref21 = marginRight !== null && marginRight !==
|
|
1129
|
-
mb: makeScaleHandler((_ref22 = (_ref23 = marginBottom !== null && marginBottom !==
|
|
1130
|
-
ml: makeScaleHandler((_ref24 = (_ref25 = marginLeft !== null && marginLeft !==
|
|
1131
|
-
mx: makeScaleHandler((_ref26 = (_ref27 = (_ref28 = (_ref29 = mx !== null && mx !==
|
|
1132
|
-
my: makeScaleHandler((_ref30 = (_ref31 = (_ref32 = (_ref33 = my !== null && my !==
|
|
1133
|
-
width: makeScaleHandler(width !== null && width !==
|
|
1134
|
-
height: makeScaleHandler(height !== null && height !==
|
|
1121
|
+
pt: makeScaleHandler((_ref2 = (_ref3 = paddingTop !== null && paddingTop !== void 0 ? paddingTop : pt) !== null && _ref3 !== void 0 ? _ref3 : py) !== null && _ref2 !== void 0 ? _ref2 : padding),
|
|
1122
|
+
pr: makeScaleHandler((_ref4 = (_ref5 = paddingRight !== null && paddingRight !== void 0 ? paddingRight : pr) !== null && _ref5 !== void 0 ? _ref5 : px) !== null && _ref4 !== void 0 ? _ref4 : padding),
|
|
1123
|
+
pb: makeScaleHandler((_ref6 = (_ref7 = paddingBottom !== null && paddingBottom !== void 0 ? paddingBottom : pb) !== null && _ref7 !== void 0 ? _ref7 : py) !== null && _ref6 !== void 0 ? _ref6 : padding),
|
|
1124
|
+
pl: makeScaleHandler((_ref8 = (_ref9 = paddingLeft !== null && paddingLeft !== void 0 ? paddingLeft : pl) !== null && _ref9 !== void 0 ? _ref9 : px) !== null && _ref8 !== void 0 ? _ref8 : padding),
|
|
1125
|
+
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),
|
|
1126
|
+
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),
|
|
1127
|
+
mt: makeScaleHandler((_ref18 = (_ref19 = marginTop !== null && marginTop !== void 0 ? marginTop : mt) !== null && _ref19 !== void 0 ? _ref19 : my) !== null && _ref18 !== void 0 ? _ref18 : margin),
|
|
1128
|
+
mr: makeScaleHandler((_ref20 = (_ref21 = marginRight !== null && marginRight !== void 0 ? marginRight : mr) !== null && _ref21 !== void 0 ? _ref21 : mx) !== null && _ref20 !== void 0 ? _ref20 : margin),
|
|
1129
|
+
mb: makeScaleHandler((_ref22 = (_ref23 = marginBottom !== null && marginBottom !== void 0 ? marginBottom : mb) !== null && _ref23 !== void 0 ? _ref23 : my) !== null && _ref22 !== void 0 ? _ref22 : margin),
|
|
1130
|
+
ml: makeScaleHandler((_ref24 = (_ref25 = marginLeft !== null && marginLeft !== void 0 ? marginLeft : ml) !== null && _ref25 !== void 0 ? _ref25 : mx) !== null && _ref24 !== void 0 ? _ref24 : margin),
|
|
1131
|
+
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),
|
|
1132
|
+
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),
|
|
1133
|
+
width: makeScaleHandler(width !== null && width !== void 0 ? width : w),
|
|
1134
|
+
height: makeScaleHandler(height !== null && height !== void 0 ? height : h),
|
|
1135
1135
|
font: makeScaleHandler(font)
|
|
1136
1136
|
},
|
|
1137
1137
|
getScaleProps: generateGetScaleProps(props),
|
|
@@ -1193,12 +1193,12 @@ var getBgColor = function getBgColor(type, palette) {
|
|
|
1193
1193
|
};
|
|
1194
1194
|
var BadgeComponent = function BadgeComponent(_ref) {
|
|
1195
1195
|
var _ref$type = _ref.type,
|
|
1196
|
-
type = _ref$type ===
|
|
1196
|
+
type = _ref$type === void 0 ? 'default' : _ref$type,
|
|
1197
1197
|
_ref$className = _ref.className,
|
|
1198
|
-
className = _ref$className ===
|
|
1198
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
1199
1199
|
children = _ref.children,
|
|
1200
1200
|
_ref$dot = _ref.dot,
|
|
1201
|
-
dot = _ref$dot ===
|
|
1201
|
+
dot = _ref$dot === void 0 ? false : _ref$dot,
|
|
1202
1202
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
1203
1203
|
var theme = useTheme();
|
|
1204
1204
|
var _useScale = useScale(),
|
|
@@ -1271,7 +1271,7 @@ var getTransform = function getTransform(placement) {
|
|
|
1271
1271
|
var BadgeAnchor = function BadgeAnchor(_ref) {
|
|
1272
1272
|
var children = _ref.children,
|
|
1273
1273
|
_ref$placement = _ref.placement,
|
|
1274
|
-
placement = _ref$placement ===
|
|
1274
|
+
placement = _ref$placement === void 0 ? 'topRight' : _ref$placement;
|
|
1275
1275
|
var _pickChild = pickChild(children, Badge),
|
|
1276
1276
|
_pickChild2 = _slicedToArray(_pickChild, 2),
|
|
1277
1277
|
withoutBadgeChildren = _pickChild2[0],
|
|
@@ -34,7 +34,7 @@ function requireIndex () {
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
37
|
-
_defineProperties(Constructor.prototype, protoProps);
|
|
37
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
38
38
|
return Constructor;
|
|
39
39
|
}
|
|
40
40
|
var isProd = typeof process !== "undefined" && process.env && process.env.NODE_ENV === "production";
|
|
@@ -43,7 +43,7 @@ function requireIndex () {
|
|
|
43
43
|
};
|
|
44
44
|
var StyleSheet = /*#__PURE__*/ function() {
|
|
45
45
|
function StyleSheet(param) {
|
|
46
|
-
var ref = param ===
|
|
46
|
+
var ref = param === void 0 ? {} : param, _name = ref.name, name = _name === void 0 ? "stylesheet" : _name, _optimizeForSpeed = ref.optimizeForSpeed, optimizeForSpeed = _optimizeForSpeed === void 0 ? isProd : _optimizeForSpeed;
|
|
47
47
|
invariant$1(isString(name), "`name` must be a string");
|
|
48
48
|
this._name = name;
|
|
49
49
|
this._deletedRulePlaceholder = "#" + name + "-deleted-rule____{}";
|
|
@@ -301,7 +301,7 @@ function requireIndex () {
|
|
|
301
301
|
}
|
|
302
302
|
|
|
303
303
|
function mapRulesToStyle(cssRules, options) {
|
|
304
|
-
if (options ===
|
|
304
|
+
if (options === void 0) options = {};
|
|
305
305
|
return cssRules.map(function(args) {
|
|
306
306
|
var id = args[0];
|
|
307
307
|
var css = args[1];
|
|
@@ -318,7 +318,7 @@ function requireIndex () {
|
|
|
318
318
|
}
|
|
319
319
|
var StyleSheetRegistry = /*#__PURE__*/ function() {
|
|
320
320
|
function StyleSheetRegistry(param) {
|
|
321
|
-
var ref = param ===
|
|
321
|
+
var ref = param === void 0 ? {} : param, _styleSheet = ref.styleSheet, styleSheet = _styleSheet === void 0 ? null : _styleSheet, _optimizeForSpeed = ref.optimizeForSpeed, optimizeForSpeed = _optimizeForSpeed === void 0 ? false : _optimizeForSpeed;
|
|
322
322
|
this._sheet = styleSheet || new StyleSheet({
|
|
323
323
|
name: "styled-jsx",
|
|
324
324
|
optimizeForSpeed: optimizeForSpeed
|
|
@@ -678,8 +678,8 @@ function _slicedToArray(r, e) {
|
|
|
678
678
|
function _toPrimitive(t, r) {
|
|
679
679
|
if ("object" != typeof t || !t) return t;
|
|
680
680
|
var e = t[Symbol.toPrimitive];
|
|
681
|
-
if (
|
|
682
|
-
var i = e.call(t, r
|
|
681
|
+
if (void 0 !== e) {
|
|
682
|
+
var i = e.call(t, r);
|
|
683
683
|
if ("object" != typeof i) return i;
|
|
684
684
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
685
685
|
}
|
|
@@ -702,7 +702,7 @@ function _unsupportedIterableToArray(r, a) {
|
|
|
702
702
|
if (r) {
|
|
703
703
|
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
704
704
|
var t = {}.toString.call(r).slice(8, -1);
|
|
705
|
-
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) :
|
|
705
|
+
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;
|
|
706
706
|
}
|
|
707
707
|
}
|
|
708
708
|
|
|
@@ -1098,9 +1098,9 @@ var withScale = function withScale(Render) {
|
|
|
1098
1098
|
margin = props.margin,
|
|
1099
1099
|
padding = props.padding,
|
|
1100
1100
|
_props$unit = props.unit,
|
|
1101
|
-
unit = _props$unit ===
|
|
1101
|
+
unit = _props$unit === void 0 ? layout.unit : _props$unit,
|
|
1102
1102
|
_props$scale = props.scale,
|
|
1103
|
-
scale = _props$scale ===
|
|
1103
|
+
scale = _props$scale === void 0 ? 1 : _props$scale;
|
|
1104
1104
|
var makeScaleHandler = function makeScaleHandler(attrValue) {
|
|
1105
1105
|
return function (scale1x, defaultValue) {
|
|
1106
1106
|
// 0 means disable scale and the default value is 0
|
|
@@ -1121,20 +1121,20 @@ var withScale = function withScale(Render) {
|
|
|
1121
1121
|
var value = {
|
|
1122
1122
|
unit: unit,
|
|
1123
1123
|
SCALES: {
|
|
1124
|
-
pt: makeScaleHandler((_ref2 = (_ref3 = paddingTop !== null && paddingTop !==
|
|
1125
|
-
pr: makeScaleHandler((_ref4 = (_ref5 = paddingRight !== null && paddingRight !==
|
|
1126
|
-
pb: makeScaleHandler((_ref6 = (_ref7 = paddingBottom !== null && paddingBottom !==
|
|
1127
|
-
pl: makeScaleHandler((_ref8 = (_ref9 = paddingLeft !== null && paddingLeft !==
|
|
1128
|
-
px: makeScaleHandler((_ref10 = (_ref11 = (_ref12 = (_ref13 = px !== null && px !==
|
|
1129
|
-
py: makeScaleHandler((_ref14 = (_ref15 = (_ref16 = (_ref17 = py !== null && py !==
|
|
1130
|
-
mt: makeScaleHandler((_ref18 = (_ref19 = marginTop !== null && marginTop !==
|
|
1131
|
-
mr: makeScaleHandler((_ref20 = (_ref21 = marginRight !== null && marginRight !==
|
|
1132
|
-
mb: makeScaleHandler((_ref22 = (_ref23 = marginBottom !== null && marginBottom !==
|
|
1133
|
-
ml: makeScaleHandler((_ref24 = (_ref25 = marginLeft !== null && marginLeft !==
|
|
1134
|
-
mx: makeScaleHandler((_ref26 = (_ref27 = (_ref28 = (_ref29 = mx !== null && mx !==
|
|
1135
|
-
my: makeScaleHandler((_ref30 = (_ref31 = (_ref32 = (_ref33 = my !== null && my !==
|
|
1136
|
-
width: makeScaleHandler(width !== null && width !==
|
|
1137
|
-
height: makeScaleHandler(height !== null && height !==
|
|
1124
|
+
pt: makeScaleHandler((_ref2 = (_ref3 = paddingTop !== null && paddingTop !== void 0 ? paddingTop : pt) !== null && _ref3 !== void 0 ? _ref3 : py) !== null && _ref2 !== void 0 ? _ref2 : padding),
|
|
1125
|
+
pr: makeScaleHandler((_ref4 = (_ref5 = paddingRight !== null && paddingRight !== void 0 ? paddingRight : pr) !== null && _ref5 !== void 0 ? _ref5 : px) !== null && _ref4 !== void 0 ? _ref4 : padding),
|
|
1126
|
+
pb: makeScaleHandler((_ref6 = (_ref7 = paddingBottom !== null && paddingBottom !== void 0 ? paddingBottom : pb) !== null && _ref7 !== void 0 ? _ref7 : py) !== null && _ref6 !== void 0 ? _ref6 : padding),
|
|
1127
|
+
pl: makeScaleHandler((_ref8 = (_ref9 = paddingLeft !== null && paddingLeft !== void 0 ? paddingLeft : pl) !== null && _ref9 !== void 0 ? _ref9 : px) !== null && _ref8 !== void 0 ? _ref8 : padding),
|
|
1128
|
+
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),
|
|
1129
|
+
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),
|
|
1130
|
+
mt: makeScaleHandler((_ref18 = (_ref19 = marginTop !== null && marginTop !== void 0 ? marginTop : mt) !== null && _ref19 !== void 0 ? _ref19 : my) !== null && _ref18 !== void 0 ? _ref18 : margin),
|
|
1131
|
+
mr: makeScaleHandler((_ref20 = (_ref21 = marginRight !== null && marginRight !== void 0 ? marginRight : mr) !== null && _ref21 !== void 0 ? _ref21 : mx) !== null && _ref20 !== void 0 ? _ref20 : margin),
|
|
1132
|
+
mb: makeScaleHandler((_ref22 = (_ref23 = marginBottom !== null && marginBottom !== void 0 ? marginBottom : mb) !== null && _ref23 !== void 0 ? _ref23 : my) !== null && _ref22 !== void 0 ? _ref22 : margin),
|
|
1133
|
+
ml: makeScaleHandler((_ref24 = (_ref25 = marginLeft !== null && marginLeft !== void 0 ? marginLeft : ml) !== null && _ref25 !== void 0 ? _ref25 : mx) !== null && _ref24 !== void 0 ? _ref24 : margin),
|
|
1134
|
+
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),
|
|
1135
|
+
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),
|
|
1136
|
+
width: makeScaleHandler(width !== null && width !== void 0 ? width : w),
|
|
1137
|
+
height: makeScaleHandler(height !== null && height !== void 0 ? height : h),
|
|
1138
1138
|
font: makeScaleHandler(font)
|
|
1139
1139
|
},
|
|
1140
1140
|
getScaleProps: generateGetScaleProps(props),
|
|
@@ -1186,7 +1186,7 @@ var useClasses = function useClasses() {
|
|
|
1186
1186
|
var Separator = function Separator(_ref) {
|
|
1187
1187
|
var children = _ref.children,
|
|
1188
1188
|
_ref$className = _ref.className,
|
|
1189
|
-
className = _ref$className ===
|
|
1189
|
+
className = _ref$className === void 0 ? '' : _ref$className;
|
|
1190
1190
|
var _useScale = useScale(),
|
|
1191
1191
|
SCALES = _useScale.SCALES;
|
|
1192
1192
|
var classes = useClasses('separator', className);
|
|
@@ -1237,10 +1237,10 @@ var addColorAlpha = function addColorAlpha(color, alpha) {
|
|
|
1237
1237
|
|
|
1238
1238
|
var BreadcrumbsComponent = function BreadcrumbsComponent(_ref) {
|
|
1239
1239
|
var _ref$separator = _ref.separator,
|
|
1240
|
-
separator = _ref$separator ===
|
|
1240
|
+
separator = _ref$separator === void 0 ? '/' : _ref$separator,
|
|
1241
1241
|
children = _ref.children,
|
|
1242
1242
|
_ref$className = _ref.className,
|
|
1243
|
-
className = _ref$className ===
|
|
1243
|
+
className = _ref$className === void 0 ? '' : _ref$className;
|
|
1244
1244
|
var theme = useTheme();
|
|
1245
1245
|
var _useScale = useScale(),
|
|
1246
1246
|
SCALES = _useScale.SCALES;
|
|
@@ -1301,18 +1301,18 @@ var LinkIcon = /*#__PURE__*/React.memo(LinkIconComponent);
|
|
|
1301
1301
|
var _excluded$1 = ["href", "showColor", "underline", "children", "className", "block", "icon"];
|
|
1302
1302
|
var LinkComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
1303
1303
|
var _ref$href = _ref.href,
|
|
1304
|
-
href = _ref$href ===
|
|
1304
|
+
href = _ref$href === void 0 ? '' : _ref$href,
|
|
1305
1305
|
_ref$showColor = _ref.showColor,
|
|
1306
|
-
showColor = _ref$showColor ===
|
|
1306
|
+
showColor = _ref$showColor === void 0 ? false : _ref$showColor,
|
|
1307
1307
|
_ref$underline = _ref.underline,
|
|
1308
|
-
underline = _ref$underline ===
|
|
1308
|
+
underline = _ref$underline === void 0 ? false : _ref$underline,
|
|
1309
1309
|
children = _ref.children,
|
|
1310
1310
|
_ref$className = _ref.className,
|
|
1311
|
-
className = _ref$className ===
|
|
1311
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
1312
1312
|
_ref$block = _ref.block,
|
|
1313
|
-
block = _ref$block ===
|
|
1313
|
+
block = _ref$block === void 0 ? false : _ref$block,
|
|
1314
1314
|
_ref$icon = _ref.icon,
|
|
1315
|
-
icon = _ref$icon ===
|
|
1315
|
+
icon = _ref$icon === void 0 ? false : _ref$icon,
|
|
1316
1316
|
props = _objectWithoutProperties(_ref, _excluded$1);
|
|
1317
1317
|
var theme = useTheme();
|
|
1318
1318
|
var _useScale = useScale(),
|
|
@@ -1340,11 +1340,11 @@ var _excluded = ["href", "nextLink", "onClick", "children", "className"];
|
|
|
1340
1340
|
var BreadcrumbsItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
1341
1341
|
var href = _ref.href,
|
|
1342
1342
|
_ref$nextLink = _ref.nextLink,
|
|
1343
|
-
nextLink = _ref$nextLink ===
|
|
1343
|
+
nextLink = _ref$nextLink === void 0 ? false : _ref$nextLink,
|
|
1344
1344
|
onClick = _ref.onClick,
|
|
1345
1345
|
children = _ref.children,
|
|
1346
1346
|
_ref$className = _ref.className,
|
|
1347
|
-
className = _ref$className ===
|
|
1347
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
1348
1348
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
1349
1349
|
var isLink = React.useMemo(function () {
|
|
1350
1350
|
return href !== undefined || nextLink;
|
|
@@ -11,5 +11,5 @@ type CompactButtonProps = {
|
|
|
11
11
|
target?: string;
|
|
12
12
|
onClick?: () => void;
|
|
13
13
|
};
|
|
14
|
-
|
|
15
|
-
export
|
|
14
|
+
declare const _default: import("react").NamedExoticComponent<CompactButtonProps>;
|
|
15
|
+
export default _default;
|