@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/progress/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
|
|
@@ -1078,9 +1078,9 @@ var withScale = function withScale(Render) {
|
|
|
1078
1078
|
margin = props.margin,
|
|
1079
1079
|
padding = props.padding,
|
|
1080
1080
|
_props$unit = props.unit,
|
|
1081
|
-
unit = _props$unit ===
|
|
1081
|
+
unit = _props$unit === void 0 ? layout.unit : _props$unit,
|
|
1082
1082
|
_props$scale = props.scale,
|
|
1083
|
-
scale = _props$scale ===
|
|
1083
|
+
scale = _props$scale === void 0 ? 1 : _props$scale;
|
|
1084
1084
|
var makeScaleHandler = function makeScaleHandler(attrValue) {
|
|
1085
1085
|
return function (scale1x, defaultValue) {
|
|
1086
1086
|
// 0 means disable scale and the default value is 0
|
|
@@ -1101,20 +1101,20 @@ var withScale = function withScale(Render) {
|
|
|
1101
1101
|
var value = {
|
|
1102
1102
|
unit: unit,
|
|
1103
1103
|
SCALES: {
|
|
1104
|
-
pt: makeScaleHandler((_ref2 = (_ref3 = paddingTop !== null && paddingTop !==
|
|
1105
|
-
pr: makeScaleHandler((_ref4 = (_ref5 = paddingRight !== null && paddingRight !==
|
|
1106
|
-
pb: makeScaleHandler((_ref6 = (_ref7 = paddingBottom !== null && paddingBottom !==
|
|
1107
|
-
pl: makeScaleHandler((_ref8 = (_ref9 = paddingLeft !== null && paddingLeft !==
|
|
1108
|
-
px: makeScaleHandler((_ref10 = (_ref11 = (_ref12 = (_ref13 = px !== null && px !==
|
|
1109
|
-
py: makeScaleHandler((_ref14 = (_ref15 = (_ref16 = (_ref17 = py !== null && py !==
|
|
1110
|
-
mt: makeScaleHandler((_ref18 = (_ref19 = marginTop !== null && marginTop !==
|
|
1111
|
-
mr: makeScaleHandler((_ref20 = (_ref21 = marginRight !== null && marginRight !==
|
|
1112
|
-
mb: makeScaleHandler((_ref22 = (_ref23 = marginBottom !== null && marginBottom !==
|
|
1113
|
-
ml: makeScaleHandler((_ref24 = (_ref25 = marginLeft !== null && marginLeft !==
|
|
1114
|
-
mx: makeScaleHandler((_ref26 = (_ref27 = (_ref28 = (_ref29 = mx !== null && mx !==
|
|
1115
|
-
my: makeScaleHandler((_ref30 = (_ref31 = (_ref32 = (_ref33 = my !== null && my !==
|
|
1116
|
-
width: makeScaleHandler(width !== null && width !==
|
|
1117
|
-
height: makeScaleHandler(height !== null && height !==
|
|
1104
|
+
pt: makeScaleHandler((_ref2 = (_ref3 = paddingTop !== null && paddingTop !== void 0 ? paddingTop : pt) !== null && _ref3 !== void 0 ? _ref3 : py) !== null && _ref2 !== void 0 ? _ref2 : padding),
|
|
1105
|
+
pr: makeScaleHandler((_ref4 = (_ref5 = paddingRight !== null && paddingRight !== void 0 ? paddingRight : pr) !== null && _ref5 !== void 0 ? _ref5 : px) !== null && _ref4 !== void 0 ? _ref4 : padding),
|
|
1106
|
+
pb: makeScaleHandler((_ref6 = (_ref7 = paddingBottom !== null && paddingBottom !== void 0 ? paddingBottom : pb) !== null && _ref7 !== void 0 ? _ref7 : py) !== null && _ref6 !== void 0 ? _ref6 : padding),
|
|
1107
|
+
pl: makeScaleHandler((_ref8 = (_ref9 = paddingLeft !== null && paddingLeft !== void 0 ? paddingLeft : pl) !== null && _ref9 !== void 0 ? _ref9 : px) !== null && _ref8 !== void 0 ? _ref8 : padding),
|
|
1108
|
+
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),
|
|
1109
|
+
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),
|
|
1110
|
+
mt: makeScaleHandler((_ref18 = (_ref19 = marginTop !== null && marginTop !== void 0 ? marginTop : mt) !== null && _ref19 !== void 0 ? _ref19 : my) !== null && _ref18 !== void 0 ? _ref18 : margin),
|
|
1111
|
+
mr: makeScaleHandler((_ref20 = (_ref21 = marginRight !== null && marginRight !== void 0 ? marginRight : mr) !== null && _ref21 !== void 0 ? _ref21 : mx) !== null && _ref20 !== void 0 ? _ref20 : margin),
|
|
1112
|
+
mb: makeScaleHandler((_ref22 = (_ref23 = marginBottom !== null && marginBottom !== void 0 ? marginBottom : mb) !== null && _ref23 !== void 0 ? _ref23 : my) !== null && _ref22 !== void 0 ? _ref22 : margin),
|
|
1113
|
+
ml: makeScaleHandler((_ref24 = (_ref25 = marginLeft !== null && marginLeft !== void 0 ? marginLeft : ml) !== null && _ref25 !== void 0 ? _ref25 : mx) !== null && _ref24 !== void 0 ? _ref24 : margin),
|
|
1114
|
+
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),
|
|
1115
|
+
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),
|
|
1116
|
+
width: makeScaleHandler(width !== null && width !== void 0 ? width : w),
|
|
1117
|
+
height: makeScaleHandler(height !== null && height !== void 0 ? height : h),
|
|
1118
1118
|
font: makeScaleHandler(font)
|
|
1119
1119
|
},
|
|
1120
1120
|
getScaleProps: generateGetScaleProps(props),
|
|
@@ -1183,18 +1183,18 @@ var getCurrentColor = function getCurrentColor(ratio, palette, type) {
|
|
|
1183
1183
|
};
|
|
1184
1184
|
var ProgressComponent = function ProgressComponent(_ref) {
|
|
1185
1185
|
var _ref$value = _ref.value,
|
|
1186
|
-
value = _ref$value ===
|
|
1186
|
+
value = _ref$value === void 0 ? 0 : _ref$value,
|
|
1187
1187
|
_ref$max = _ref.max,
|
|
1188
|
-
max = _ref$max ===
|
|
1188
|
+
max = _ref$max === void 0 ? 100 : _ref$max,
|
|
1189
1189
|
_ref$className = _ref.className,
|
|
1190
|
-
className = _ref$className ===
|
|
1190
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
1191
1191
|
_ref$type = _ref.type,
|
|
1192
|
-
type = _ref$type ===
|
|
1192
|
+
type = _ref$type === void 0 ? 'default' : _ref$type,
|
|
1193
1193
|
colors = _ref.colors,
|
|
1194
1194
|
_ref$fixedTop = _ref.fixedTop,
|
|
1195
|
-
fixedTop = _ref$fixedTop ===
|
|
1195
|
+
fixedTop = _ref$fixedTop === void 0 ? false : _ref$fixedTop,
|
|
1196
1196
|
_ref$fixedBottom = _ref.fixedBottom,
|
|
1197
|
-
fixedBottom = _ref$fixedBottom ===
|
|
1197
|
+
fixedBottom = _ref$fixedBottom === void 0 ? false : _ref$fixedBottom,
|
|
1198
1198
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
1199
1199
|
var theme = useTheme();
|
|
1200
1200
|
var _useScale = useScale(),
|
package/dist/radio/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
|
|
@@ -1106,9 +1106,9 @@ var withScale = function withScale(Render) {
|
|
|
1106
1106
|
margin = props.margin,
|
|
1107
1107
|
padding = props.padding,
|
|
1108
1108
|
_props$unit = props.unit,
|
|
1109
|
-
unit = _props$unit ===
|
|
1109
|
+
unit = _props$unit === void 0 ? layout.unit : _props$unit,
|
|
1110
1110
|
_props$scale = props.scale,
|
|
1111
|
-
scale = _props$scale ===
|
|
1111
|
+
scale = _props$scale === void 0 ? 1 : _props$scale;
|
|
1112
1112
|
var makeScaleHandler = function makeScaleHandler(attrValue) {
|
|
1113
1113
|
return function (scale1x, defaultValue) {
|
|
1114
1114
|
// 0 means disable scale and the default value is 0
|
|
@@ -1129,20 +1129,20 @@ var withScale = function withScale(Render) {
|
|
|
1129
1129
|
var value = {
|
|
1130
1130
|
unit: unit,
|
|
1131
1131
|
SCALES: {
|
|
1132
|
-
pt: makeScaleHandler((_ref2 = (_ref3 = paddingTop !== null && paddingTop !==
|
|
1133
|
-
pr: makeScaleHandler((_ref4 = (_ref5 = paddingRight !== null && paddingRight !==
|
|
1134
|
-
pb: makeScaleHandler((_ref6 = (_ref7 = paddingBottom !== null && paddingBottom !==
|
|
1135
|
-
pl: makeScaleHandler((_ref8 = (_ref9 = paddingLeft !== null && paddingLeft !==
|
|
1136
|
-
px: makeScaleHandler((_ref10 = (_ref11 = (_ref12 = (_ref13 = px !== null && px !==
|
|
1137
|
-
py: makeScaleHandler((_ref14 = (_ref15 = (_ref16 = (_ref17 = py !== null && py !==
|
|
1138
|
-
mt: makeScaleHandler((_ref18 = (_ref19 = marginTop !== null && marginTop !==
|
|
1139
|
-
mr: makeScaleHandler((_ref20 = (_ref21 = marginRight !== null && marginRight !==
|
|
1140
|
-
mb: makeScaleHandler((_ref22 = (_ref23 = marginBottom !== null && marginBottom !==
|
|
1141
|
-
ml: makeScaleHandler((_ref24 = (_ref25 = marginLeft !== null && marginLeft !==
|
|
1142
|
-
mx: makeScaleHandler((_ref26 = (_ref27 = (_ref28 = (_ref29 = mx !== null && mx !==
|
|
1143
|
-
my: makeScaleHandler((_ref30 = (_ref31 = (_ref32 = (_ref33 = my !== null && my !==
|
|
1144
|
-
width: makeScaleHandler(width !== null && width !==
|
|
1145
|
-
height: makeScaleHandler(height !== null && height !==
|
|
1132
|
+
pt: makeScaleHandler((_ref2 = (_ref3 = paddingTop !== null && paddingTop !== void 0 ? paddingTop : pt) !== null && _ref3 !== void 0 ? _ref3 : py) !== null && _ref2 !== void 0 ? _ref2 : padding),
|
|
1133
|
+
pr: makeScaleHandler((_ref4 = (_ref5 = paddingRight !== null && paddingRight !== void 0 ? paddingRight : pr) !== null && _ref5 !== void 0 ? _ref5 : px) !== null && _ref4 !== void 0 ? _ref4 : padding),
|
|
1134
|
+
pb: makeScaleHandler((_ref6 = (_ref7 = paddingBottom !== null && paddingBottom !== void 0 ? paddingBottom : pb) !== null && _ref7 !== void 0 ? _ref7 : py) !== null && _ref6 !== void 0 ? _ref6 : padding),
|
|
1135
|
+
pl: makeScaleHandler((_ref8 = (_ref9 = paddingLeft !== null && paddingLeft !== void 0 ? paddingLeft : pl) !== null && _ref9 !== void 0 ? _ref9 : px) !== null && _ref8 !== void 0 ? _ref8 : padding),
|
|
1136
|
+
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),
|
|
1137
|
+
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),
|
|
1138
|
+
mt: makeScaleHandler((_ref18 = (_ref19 = marginTop !== null && marginTop !== void 0 ? marginTop : mt) !== null && _ref19 !== void 0 ? _ref19 : my) !== null && _ref18 !== void 0 ? _ref18 : margin),
|
|
1139
|
+
mr: makeScaleHandler((_ref20 = (_ref21 = marginRight !== null && marginRight !== void 0 ? marginRight : mr) !== null && _ref21 !== void 0 ? _ref21 : mx) !== null && _ref20 !== void 0 ? _ref20 : margin),
|
|
1140
|
+
mb: makeScaleHandler((_ref22 = (_ref23 = marginBottom !== null && marginBottom !== void 0 ? marginBottom : mb) !== null && _ref23 !== void 0 ? _ref23 : my) !== null && _ref22 !== void 0 ? _ref22 : margin),
|
|
1141
|
+
ml: makeScaleHandler((_ref24 = (_ref25 = marginLeft !== null && marginLeft !== void 0 ? marginLeft : ml) !== null && _ref25 !== void 0 ? _ref25 : mx) !== null && _ref24 !== void 0 ? _ref24 : margin),
|
|
1142
|
+
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),
|
|
1143
|
+
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),
|
|
1144
|
+
width: makeScaleHandler(width !== null && width !== void 0 ? width : w),
|
|
1145
|
+
height: makeScaleHandler(height !== null && height !== void 0 ? height : h),
|
|
1146
1146
|
font: makeScaleHandler(font)
|
|
1147
1147
|
},
|
|
1148
1148
|
getScaleProps: generateGetScaleProps(props),
|
|
@@ -1161,7 +1161,7 @@ var withScale = function withScale(Render) {
|
|
|
1161
1161
|
var _excluded$2 = ["className", "children"];
|
|
1162
1162
|
var RadioDescriptionComponent = function RadioDescriptionComponent(_ref) {
|
|
1163
1163
|
var _ref$className = _ref.className,
|
|
1164
|
-
className = _ref$className ===
|
|
1164
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
1165
1165
|
children = _ref.children,
|
|
1166
1166
|
props = _objectWithoutProperties(_ref, _excluded$2);
|
|
1167
1167
|
var theme = useTheme();
|
|
@@ -1258,13 +1258,13 @@ var useClasses = function useClasses() {
|
|
|
1258
1258
|
var _excluded$1 = ["className", "checked", "onChange", "disabled", "type", "value", "children"];
|
|
1259
1259
|
var RadioComponent = function RadioComponent(_ref) {
|
|
1260
1260
|
var _ref$className = _ref.className,
|
|
1261
|
-
className = _ref$className ===
|
|
1261
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
1262
1262
|
checked = _ref.checked,
|
|
1263
1263
|
onChange = _ref.onChange,
|
|
1264
1264
|
_ref$disabled = _ref.disabled,
|
|
1265
|
-
disabled = _ref$disabled ===
|
|
1265
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
1266
1266
|
_ref$type = _ref.type,
|
|
1267
|
-
type = _ref$type ===
|
|
1267
|
+
type = _ref$type === void 0 ? 'default' : _ref$type,
|
|
1268
1268
|
radioValue = _ref.value,
|
|
1269
1269
|
children = _ref.children,
|
|
1270
1270
|
props = _objectWithoutProperties(_ref, _excluded$1);
|
|
@@ -1352,15 +1352,15 @@ var Radio = withScale(RadioComponent);
|
|
|
1352
1352
|
var _excluded = ["disabled", "onChange", "value", "children", "className", "initialValue", "useRow"];
|
|
1353
1353
|
var RadioGroupComponent = function RadioGroupComponent(_ref) {
|
|
1354
1354
|
var _ref$disabled = _ref.disabled,
|
|
1355
|
-
disabled = _ref$disabled ===
|
|
1355
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
1356
1356
|
onChange = _ref.onChange,
|
|
1357
1357
|
value = _ref.value,
|
|
1358
1358
|
children = _ref.children,
|
|
1359
1359
|
_ref$className = _ref.className,
|
|
1360
|
-
className = _ref$className ===
|
|
1360
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
1361
1361
|
initialValue = _ref.initialValue,
|
|
1362
1362
|
_ref$useRow = _ref.useRow,
|
|
1363
|
-
useRow = _ref$useRow ===
|
|
1363
|
+
useRow = _ref$useRow === void 0 ? false : _ref$useRow,
|
|
1364
1364
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
1365
1365
|
var _useScale = useScale(),
|
|
1366
1366
|
SCALES = _useScale.SCALES;
|
package/dist/rating/index.js
CHANGED
|
@@ -163,8 +163,8 @@ function _toConsumableArray(r) {
|
|
|
163
163
|
function _toPrimitive(t, r) {
|
|
164
164
|
if ("object" != typeof t || !t) return t;
|
|
165
165
|
var e = t[Symbol.toPrimitive];
|
|
166
|
-
if (
|
|
167
|
-
var i = e.call(t, r
|
|
166
|
+
if (void 0 !== e) {
|
|
167
|
+
var i = e.call(t, r);
|
|
168
168
|
if ("object" != typeof i) return i;
|
|
169
169
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
170
170
|
}
|
|
@@ -187,7 +187,7 @@ function _unsupportedIterableToArray(r, a) {
|
|
|
187
187
|
if (r) {
|
|
188
188
|
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
189
189
|
var t = {}.toString.call(r).slice(8, -1);
|
|
190
|
-
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) :
|
|
190
|
+
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;
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
193
|
|
|
@@ -221,7 +221,7 @@ function requireIndex () {
|
|
|
221
221
|
}
|
|
222
222
|
}
|
|
223
223
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
224
|
-
_defineProperties(Constructor.prototype, protoProps);
|
|
224
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
225
225
|
return Constructor;
|
|
226
226
|
}
|
|
227
227
|
var isProd = typeof process !== "undefined" && process.env && process.env.NODE_ENV === "production";
|
|
@@ -230,7 +230,7 @@ function requireIndex () {
|
|
|
230
230
|
};
|
|
231
231
|
var StyleSheet = /*#__PURE__*/ function() {
|
|
232
232
|
function StyleSheet(param) {
|
|
233
|
-
var ref = param ===
|
|
233
|
+
var ref = param === void 0 ? {} : param, _name = ref.name, name = _name === void 0 ? "stylesheet" : _name, _optimizeForSpeed = ref.optimizeForSpeed, optimizeForSpeed = _optimizeForSpeed === void 0 ? isProd : _optimizeForSpeed;
|
|
234
234
|
invariant$1(isString(name), "`name` must be a string");
|
|
235
235
|
this._name = name;
|
|
236
236
|
this._deletedRulePlaceholder = "#" + name + "-deleted-rule____{}";
|
|
@@ -488,7 +488,7 @@ function requireIndex () {
|
|
|
488
488
|
}
|
|
489
489
|
|
|
490
490
|
function mapRulesToStyle(cssRules, options) {
|
|
491
|
-
if (options ===
|
|
491
|
+
if (options === void 0) options = {};
|
|
492
492
|
return cssRules.map(function(args) {
|
|
493
493
|
var id = args[0];
|
|
494
494
|
var css = args[1];
|
|
@@ -505,7 +505,7 @@ function requireIndex () {
|
|
|
505
505
|
}
|
|
506
506
|
var StyleSheetRegistry = /*#__PURE__*/ function() {
|
|
507
507
|
function StyleSheetRegistry(param) {
|
|
508
|
-
var ref = param ===
|
|
508
|
+
var ref = param === void 0 ? {} : param, _styleSheet = ref.styleSheet, styleSheet = _styleSheet === void 0 ? null : _styleSheet, _optimizeForSpeed = ref.optimizeForSpeed, optimizeForSpeed = _optimizeForSpeed === void 0 ? false : _optimizeForSpeed;
|
|
509
509
|
this._sheet = styleSheet || new StyleSheet({
|
|
510
510
|
name: "styled-jsx",
|
|
511
511
|
optimizeForSpeed: optimizeForSpeed
|
|
@@ -1132,9 +1132,9 @@ var withScale = function withScale(Render) {
|
|
|
1132
1132
|
margin = props.margin,
|
|
1133
1133
|
padding = props.padding,
|
|
1134
1134
|
_props$unit = props.unit,
|
|
1135
|
-
unit = _props$unit ===
|
|
1135
|
+
unit = _props$unit === void 0 ? layout.unit : _props$unit,
|
|
1136
1136
|
_props$scale = props.scale,
|
|
1137
|
-
scale = _props$scale ===
|
|
1137
|
+
scale = _props$scale === void 0 ? 1 : _props$scale;
|
|
1138
1138
|
var makeScaleHandler = function makeScaleHandler(attrValue) {
|
|
1139
1139
|
return function (scale1x, defaultValue) {
|
|
1140
1140
|
// 0 means disable scale and the default value is 0
|
|
@@ -1155,20 +1155,20 @@ var withScale = function withScale(Render) {
|
|
|
1155
1155
|
var value = {
|
|
1156
1156
|
unit: unit,
|
|
1157
1157
|
SCALES: {
|
|
1158
|
-
pt: makeScaleHandler((_ref2 = (_ref3 = paddingTop !== null && paddingTop !==
|
|
1159
|
-
pr: makeScaleHandler((_ref4 = (_ref5 = paddingRight !== null && paddingRight !==
|
|
1160
|
-
pb: makeScaleHandler((_ref6 = (_ref7 = paddingBottom !== null && paddingBottom !==
|
|
1161
|
-
pl: makeScaleHandler((_ref8 = (_ref9 = paddingLeft !== null && paddingLeft !==
|
|
1162
|
-
px: makeScaleHandler((_ref10 = (_ref11 = (_ref12 = (_ref13 = px !== null && px !==
|
|
1163
|
-
py: makeScaleHandler((_ref14 = (_ref15 = (_ref16 = (_ref17 = py !== null && py !==
|
|
1164
|
-
mt: makeScaleHandler((_ref18 = (_ref19 = marginTop !== null && marginTop !==
|
|
1165
|
-
mr: makeScaleHandler((_ref20 = (_ref21 = marginRight !== null && marginRight !==
|
|
1166
|
-
mb: makeScaleHandler((_ref22 = (_ref23 = marginBottom !== null && marginBottom !==
|
|
1167
|
-
ml: makeScaleHandler((_ref24 = (_ref25 = marginLeft !== null && marginLeft !==
|
|
1168
|
-
mx: makeScaleHandler((_ref26 = (_ref27 = (_ref28 = (_ref29 = mx !== null && mx !==
|
|
1169
|
-
my: makeScaleHandler((_ref30 = (_ref31 = (_ref32 = (_ref33 = my !== null && my !==
|
|
1170
|
-
width: makeScaleHandler(width !== null && width !==
|
|
1171
|
-
height: makeScaleHandler(height !== null && height !==
|
|
1158
|
+
pt: makeScaleHandler((_ref2 = (_ref3 = paddingTop !== null && paddingTop !== void 0 ? paddingTop : pt) !== null && _ref3 !== void 0 ? _ref3 : py) !== null && _ref2 !== void 0 ? _ref2 : padding),
|
|
1159
|
+
pr: makeScaleHandler((_ref4 = (_ref5 = paddingRight !== null && paddingRight !== void 0 ? paddingRight : pr) !== null && _ref5 !== void 0 ? _ref5 : px) !== null && _ref4 !== void 0 ? _ref4 : padding),
|
|
1160
|
+
pb: makeScaleHandler((_ref6 = (_ref7 = paddingBottom !== null && paddingBottom !== void 0 ? paddingBottom : pb) !== null && _ref7 !== void 0 ? _ref7 : py) !== null && _ref6 !== void 0 ? _ref6 : padding),
|
|
1161
|
+
pl: makeScaleHandler((_ref8 = (_ref9 = paddingLeft !== null && paddingLeft !== void 0 ? paddingLeft : pl) !== null && _ref9 !== void 0 ? _ref9 : px) !== null && _ref8 !== void 0 ? _ref8 : padding),
|
|
1162
|
+
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),
|
|
1163
|
+
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),
|
|
1164
|
+
mt: makeScaleHandler((_ref18 = (_ref19 = marginTop !== null && marginTop !== void 0 ? marginTop : mt) !== null && _ref19 !== void 0 ? _ref19 : my) !== null && _ref18 !== void 0 ? _ref18 : margin),
|
|
1165
|
+
mr: makeScaleHandler((_ref20 = (_ref21 = marginRight !== null && marginRight !== void 0 ? marginRight : mr) !== null && _ref21 !== void 0 ? _ref21 : mx) !== null && _ref20 !== void 0 ? _ref20 : margin),
|
|
1166
|
+
mb: makeScaleHandler((_ref22 = (_ref23 = marginBottom !== null && marginBottom !== void 0 ? marginBottom : mb) !== null && _ref23 !== void 0 ? _ref23 : my) !== null && _ref22 !== void 0 ? _ref22 : margin),
|
|
1167
|
+
ml: makeScaleHandler((_ref24 = (_ref25 = marginLeft !== null && marginLeft !== void 0 ? marginLeft : ml) !== null && _ref25 !== void 0 ? _ref25 : mx) !== null && _ref24 !== void 0 ? _ref24 : margin),
|
|
1168
|
+
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),
|
|
1169
|
+
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),
|
|
1170
|
+
width: makeScaleHandler(width !== null && width !== void 0 ? width : w),
|
|
1171
|
+
height: makeScaleHandler(height !== null && height !== void 0 ? height : h),
|
|
1172
1172
|
font: makeScaleHandler(font)
|
|
1173
1173
|
},
|
|
1174
1174
|
getScaleProps: generateGetScaleProps(props),
|
|
@@ -1231,19 +1231,19 @@ var getColor = function getColor(type, palette) {
|
|
|
1231
1231
|
};
|
|
1232
1232
|
var RatingComponent = function RatingComponent(_ref) {
|
|
1233
1233
|
var _ref$type = _ref.type,
|
|
1234
|
-
type = _ref$type ===
|
|
1234
|
+
type = _ref$type === void 0 ? 'default' : _ref$type,
|
|
1235
1235
|
_ref$className = _ref.className,
|
|
1236
|
-
className = _ref$className ===
|
|
1236
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
1237
1237
|
_ref$icon = _ref.icon,
|
|
1238
|
-
icon = _ref$icon ===
|
|
1238
|
+
icon = _ref$icon === void 0 ? /*#__PURE__*/React.createElement(RatingIcon, null) : _ref$icon,
|
|
1239
1239
|
_ref$count = _ref.count,
|
|
1240
|
-
count = _ref$count ===
|
|
1240
|
+
count = _ref$count === void 0 ? 5 : _ref$count,
|
|
1241
1241
|
customValue = _ref.value,
|
|
1242
1242
|
_ref$initialValue = _ref.initialValue,
|
|
1243
|
-
initialValue = _ref$initialValue ===
|
|
1243
|
+
initialValue = _ref$initialValue === void 0 ? 1 : _ref$initialValue,
|
|
1244
1244
|
onValueChange = _ref.onValueChange,
|
|
1245
1245
|
_ref$locked = _ref.locked,
|
|
1246
|
-
locked = _ref$locked ===
|
|
1246
|
+
locked = _ref$locked === void 0 ? false : _ref$locked,
|
|
1247
1247
|
onLockedChange = _ref.onLockedChange,
|
|
1248
1248
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
1249
1249
|
var theme = useTheme();
|
package/dist/row/index.js
CHANGED
|
@@ -65,8 +65,8 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
65
65
|
function _toPrimitive(t, r) {
|
|
66
66
|
if ("object" != typeof t || !t) return t;
|
|
67
67
|
var e = t[Symbol.toPrimitive];
|
|
68
|
-
if (
|
|
69
|
-
var i = e.call(t, r
|
|
68
|
+
if (void 0 !== e) {
|
|
69
|
+
var i = e.call(t, r);
|
|
70
70
|
if ("object" != typeof i) return i;
|
|
71
71
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
72
72
|
}
|
|
@@ -116,7 +116,7 @@ function requireIndex () {
|
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
119
|
-
_defineProperties(Constructor.prototype, protoProps);
|
|
119
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
120
120
|
return Constructor;
|
|
121
121
|
}
|
|
122
122
|
var isProd = typeof process !== "undefined" && process.env && process.env.NODE_ENV === "production";
|
|
@@ -125,7 +125,7 @@ function requireIndex () {
|
|
|
125
125
|
};
|
|
126
126
|
var StyleSheet = /*#__PURE__*/ function() {
|
|
127
127
|
function StyleSheet(param) {
|
|
128
|
-
var ref = param ===
|
|
128
|
+
var ref = param === void 0 ? {} : param, _name = ref.name, name = _name === void 0 ? "stylesheet" : _name, _optimizeForSpeed = ref.optimizeForSpeed, optimizeForSpeed = _optimizeForSpeed === void 0 ? isProd : _optimizeForSpeed;
|
|
129
129
|
invariant$1(isString(name), "`name` must be a string");
|
|
130
130
|
this._name = name;
|
|
131
131
|
this._deletedRulePlaceholder = "#" + name + "-deleted-rule____{}";
|
|
@@ -383,7 +383,7 @@ function requireIndex () {
|
|
|
383
383
|
}
|
|
384
384
|
|
|
385
385
|
function mapRulesToStyle(cssRules, options) {
|
|
386
|
-
if (options ===
|
|
386
|
+
if (options === void 0) options = {};
|
|
387
387
|
return cssRules.map(function(args) {
|
|
388
388
|
var id = args[0];
|
|
389
389
|
var css = args[1];
|
|
@@ -400,7 +400,7 @@ function requireIndex () {
|
|
|
400
400
|
}
|
|
401
401
|
var StyleSheetRegistry = /*#__PURE__*/ function() {
|
|
402
402
|
function StyleSheetRegistry(param) {
|
|
403
|
-
var ref = param ===
|
|
403
|
+
var ref = param === void 0 ? {} : param, _styleSheet = ref.styleSheet, styleSheet = _styleSheet === void 0 ? null : _styleSheet, _optimizeForSpeed = ref.optimizeForSpeed, optimizeForSpeed = _optimizeForSpeed === void 0 ? false : _optimizeForSpeed;
|
|
404
404
|
this._sheet = styleSheet || new StyleSheet({
|
|
405
405
|
name: "styled-jsx",
|
|
406
406
|
optimizeForSpeed: optimizeForSpeed
|
|
@@ -879,15 +879,15 @@ var getFlexAlignment = function getFlexAlignment(justify, align) {
|
|
|
879
879
|
var Container = function Container(_ref) {
|
|
880
880
|
var children = _ref.children,
|
|
881
881
|
_ref$component = _ref.component,
|
|
882
|
-
component = _ref$component ===
|
|
882
|
+
component = _ref$component === void 0 ? 'div' : _ref$component,
|
|
883
883
|
_ref$gap = _ref.gap,
|
|
884
|
-
gap = _ref$gap ===
|
|
884
|
+
gap = _ref$gap === void 0 ? 0 : _ref$gap,
|
|
885
885
|
_ref$justify = _ref.justify,
|
|
886
|
-
justify = _ref$justify ===
|
|
886
|
+
justify = _ref$justify === void 0 ? 'start' : _ref$justify,
|
|
887
887
|
_ref$align = _ref.align,
|
|
888
|
-
align = _ref$align ===
|
|
888
|
+
align = _ref$align === void 0 ? 'top' : _ref$align,
|
|
889
889
|
_ref$className = _ref.className,
|
|
890
|
-
className = _ref$className ===
|
|
890
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
891
891
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
892
892
|
var Component = component;
|
|
893
893
|
var theme = useTheme();
|