@helpdice/ui 2.5.8-beta.0 → 2.5.9
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/auto-complete/index.js +549 -491
- package/dist/avatar/index.js +82 -45
- package/dist/badge/index.js +69 -27
- package/dist/breadcrumbs/index.js +107 -56
- package/dist/button/button.icon.d.ts +3 -15
- package/dist/button/button.small.d.ts +3 -15
- package/dist/button/index.js +143 -155
- package/dist/button-dropdown/index.js +96 -83
- package/dist/button-group/index.js +61 -21
- package/dist/capacity/index.js +61 -22
- package/dist/card/index.js +147 -123
- package/dist/carousal/index.js +349 -328
- package/dist/checkbox/index.js +72 -67
- package/dist/circular-progress/CircularProgress.d.ts +17 -0
- package/dist/circular-progress/index.d.ts +3 -4
- package/dist/circular-progress/index.js +713 -336
- package/dist/circular-progress/useCircularProgress.d.ts +12 -0
- package/dist/code/index.js +70 -26
- package/dist/col/index.js +61 -24
- package/dist/collapse/index.js +102 -52
- package/dist/container/index.js +187 -188
- package/dist/copy-to-clipboard/index.js +158 -208
- package/dist/description/index.js +64 -23
- package/dist/display/index.js +64 -23
- package/dist/divider/index.js +62 -22
- package/dist/dot/index.js +63 -23
- package/dist/drawer/index.js +74 -61
- package/dist/fieldset/index.js +127 -63
- package/dist/form/index.js +15 -40
- package/dist/grid/index.js +74 -29
- package/dist/html-renderer/index.js +3 -2
- package/dist/image/index.js +163 -104
- package/dist/index.d.ts +2 -1
- package/dist/index.js +4172 -3745
- package/dist/input/index.js +466 -419
- package/dist/keyboard/index.js +73 -29
- package/dist/linear-progress/index.js +27 -24
- package/dist/link/index.js +78 -36
- package/dist/list/index.js +118 -63
- package/dist/loadable/index.js +76 -27
- package/dist/loading/index.js +70 -29
- package/dist/menu/index.js +53 -47
- package/dist/modal/index.js +225 -178
- package/dist/note/index.js +64 -23
- package/dist/notetip/index.js +54 -45
- package/dist/notetip/note-tip.d.ts +2 -0
- package/dist/page/index.js +102 -51
- package/dist/pagination/index.js +180 -123
- package/dist/placeholder/index.js +545 -534
- package/dist/popover/index.js +94 -81
- package/dist/progress/index.js +66 -27
- package/dist/radio/index.js +94 -48
- package/dist/rating/index.js +78 -38
- package/dist/row/index.js +62 -25
- package/dist/search-bar/index.js +172 -162
- package/dist/select/index.js +364 -327
- package/dist/slider/index.js +91 -47
- package/dist/snippet/index.js +39 -39
- package/dist/spacer/index.js +58 -19
- package/dist/spinner/index.js +69 -28
- package/dist/swipe/index.js +28 -13
- package/dist/table/index.js +2216 -1973
- package/dist/table/table-body.d.ts +4 -2
- package/dist/table/table-cell.d.ts +4 -2
- package/dist/table/table-types.d.ts +2 -0
- package/dist/table/table.d.ts +4 -1
- package/dist/tabs/index.js +61 -59
- package/dist/tag/index.js +16 -20
- package/dist/text/index.js +178 -180
- package/dist/textarea/index.js +220 -214
- package/dist/toggle/index.js +75 -33
- package/dist/tooltip/index.d.ts +1 -2
- package/dist/tooltip/index.js +59 -52
- package/dist/tooltip/tooltip-content.d.ts +1 -1
- package/dist/tooltip/tooltip.d.ts +2 -1
- package/dist/tree/index.js +176 -115
- package/dist/use-scale/index.js +50 -13
- package/dist/user/index.js +146 -96
- package/esm/button/button.icon.d.ts +3 -15
- package/esm/button/button.icon.js +22 -22
- package/esm/button/button.js +4 -4
- package/esm/button/button.small.d.ts +3 -15
- package/esm/button/button.small.js +20 -21
- package/esm/circular-progress/CircularProgress.d.ts +17 -0
- package/esm/circular-progress/CircularProgress.js +110 -0
- package/esm/circular-progress/index.d.ts +3 -4
- package/esm/circular-progress/index.js +3 -4
- package/esm/circular-progress/useCircularProgress.d.ts +12 -0
- package/esm/circular-progress/useCircularProgress.js +35 -0
- package/esm/index.d.ts +2 -1
- package/esm/index.js +1 -1
- package/esm/list/list-item.js +11 -11
- package/esm/notetip/note-tip.d.ts +2 -0
- package/esm/notetip/note-tip.js +8 -5
- package/esm/skeleton/index.js +9 -4
- package/esm/table/table-body.d.ts +4 -2
- package/esm/table/table-body.js +9 -4
- package/esm/table/table-cell.d.ts +4 -2
- package/esm/table/table-cell.js +19 -3
- package/esm/table/table-types.d.ts +2 -0
- package/esm/table/table.d.ts +4 -1
- package/esm/table/table.js +13 -6
- package/esm/tooltip/index.d.ts +1 -2
- package/esm/tooltip/tooltip-content.d.ts +1 -1
- package/esm/tooltip/tooltip-content.js +5 -5
- package/esm/tooltip/tooltip.d.ts +2 -1
- package/esm/tooltip/tooltip.js +6 -5
- package/package.json +3 -3
- package/dist/circular-progress/CircularProgressbar.d.ts +0 -10
- package/dist/circular-progress/CircularProgressbarWithChildren.d.ts +0 -7
- package/dist/circular-progress/Path.d.ts +0 -9
- package/dist/circular-progress/buildStyles.d.ts +0 -12
- package/dist/circular-progress/constants.d.ts +0 -5
- package/dist/circular-progress/types.d.ts +0 -50
- package/esm/circular-progress/CircularProgressbar.d.ts +0 -10
- package/esm/circular-progress/CircularProgressbar.js +0 -118
- package/esm/circular-progress/CircularProgressbarWithChildren.d.ts +0 -7
- package/esm/circular-progress/CircularProgressbarWithChildren.js +0 -32
- package/esm/circular-progress/Path.d.ts +0 -9
- package/esm/circular-progress/Path.js +0 -52
- package/esm/circular-progress/buildStyles.d.ts +0 -12
- package/esm/circular-progress/buildStyles.js +0 -45
- package/esm/circular-progress/constants.d.ts +0 -5
- package/esm/circular-progress/constants.js +0 -5
- package/esm/circular-progress/types.d.ts +0 -50
- package/esm/circular-progress/types.js +0 -1
package/dist/radio/index.js
CHANGED
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var theme = require('@helpdice/theme');
|
|
7
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
7
8
|
|
|
8
9
|
function _arrayLikeToArray(r, a) {
|
|
9
10
|
(null == a || a > r.length) && (a = r.length);
|
|
@@ -61,14 +62,13 @@ function _createForOfIteratorHelper(r, e) {
|
|
|
61
62
|
}
|
|
62
63
|
};
|
|
63
64
|
}
|
|
64
|
-
function
|
|
65
|
-
return
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
}, _extends.apply(null, arguments);
|
|
65
|
+
function _defineProperty(e, r, t) {
|
|
66
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
67
|
+
value: t,
|
|
68
|
+
enumerable: true,
|
|
69
|
+
configurable: true,
|
|
70
|
+
writable: true
|
|
71
|
+
}) : e[r] = t, e;
|
|
72
72
|
}
|
|
73
73
|
function _iterableToArrayLimit(r, l) {
|
|
74
74
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
@@ -97,6 +97,27 @@ function _iterableToArrayLimit(r, l) {
|
|
|
97
97
|
function _nonIterableRest() {
|
|
98
98
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
99
99
|
}
|
|
100
|
+
function ownKeys(e, r) {
|
|
101
|
+
var t = Object.keys(e);
|
|
102
|
+
if (Object.getOwnPropertySymbols) {
|
|
103
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
104
|
+
r && (o = o.filter(function (r) {
|
|
105
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
106
|
+
})), t.push.apply(t, o);
|
|
107
|
+
}
|
|
108
|
+
return t;
|
|
109
|
+
}
|
|
110
|
+
function _objectSpread2(e) {
|
|
111
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
112
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
113
|
+
r % 2 ? ownKeys(Object(t), true).forEach(function (r) {
|
|
114
|
+
_defineProperty(e, r, t[r]);
|
|
115
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
116
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
return e;
|
|
120
|
+
}
|
|
100
121
|
function _objectWithoutProperties(e, t) {
|
|
101
122
|
if (null == e) return {};
|
|
102
123
|
var o,
|
|
@@ -120,6 +141,20 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
120
141
|
function _slicedToArray(r, e) {
|
|
121
142
|
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
122
143
|
}
|
|
144
|
+
function _toPrimitive(t, r) {
|
|
145
|
+
if ("object" != typeof t || !t) return t;
|
|
146
|
+
var e = t[Symbol.toPrimitive];
|
|
147
|
+
if (void 0 !== e) {
|
|
148
|
+
var i = e.call(t, r);
|
|
149
|
+
if ("object" != typeof i) return i;
|
|
150
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
151
|
+
}
|
|
152
|
+
return ("string" === r ? String : Number)(t);
|
|
153
|
+
}
|
|
154
|
+
function _toPropertyKey(t) {
|
|
155
|
+
var i = _toPrimitive(t, "string");
|
|
156
|
+
return "symbol" == typeof i ? i : i + "";
|
|
157
|
+
}
|
|
123
158
|
function _unsupportedIterableToArray(r, a) {
|
|
124
159
|
if (r) {
|
|
125
160
|
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
@@ -867,11 +902,13 @@ var withScale = function withScale(Render) {
|
|
|
867
902
|
getScaleProps: generateGetScaleProps(props),
|
|
868
903
|
getAllScaleProps: generateGetAllScaleProps(props)
|
|
869
904
|
};
|
|
870
|
-
return /*#__PURE__*/
|
|
871
|
-
value: value
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
905
|
+
return /*#__PURE__*/jsxRuntime.jsx(ScaleContext.Provider, {
|
|
906
|
+
value: value,
|
|
907
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Render, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
908
|
+
ref: ref,
|
|
909
|
+
children: children
|
|
910
|
+
}))
|
|
911
|
+
});
|
|
875
912
|
});
|
|
876
913
|
ScaleFC.displayName = "Scale".concat(Render.displayName || 'Wrapper');
|
|
877
914
|
return ScaleFC;
|
|
@@ -886,12 +923,14 @@ var RadioDescriptionComponent = function RadioDescriptionComponent(_ref) {
|
|
|
886
923
|
var theme$1 = theme.useTheme();
|
|
887
924
|
var _useScale = useScale(),
|
|
888
925
|
SCALES = _useScale.SCALES;
|
|
889
|
-
return /*#__PURE__*/
|
|
890
|
-
className: _JSXStyle.dynamic([["2489497926", [theme$1.palette.accents_3, SCALES.font(0.85, 'calc(var(--radio-size) * 0.85)'), SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0, 'calc(var(--radio-size) + var(--radio-size) * 0.375)')]]]) + " " + (props && props.className != null && props.className || className || "")
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
926
|
+
return /*#__PURE__*/jsxRuntime.jsxs("span", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
927
|
+
className: _JSXStyle.dynamic([["2489497926", [theme$1.palette.accents_3, SCALES.font(0.85, 'calc(var(--radio-size) * 0.85)'), SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0, 'calc(var(--radio-size) + var(--radio-size) * 0.375)')]]]) + " " + (props && props.className != null && props.className || className || ""),
|
|
928
|
+
children: [children, /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
929
|
+
id: "2489497926",
|
|
930
|
+
dynamic: [theme$1.palette.accents_3, SCALES.font(0.85, 'calc(var(--radio-size) * 0.85)'), SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0, 'calc(var(--radio-size) + var(--radio-size) * 0.375)')],
|
|
931
|
+
children: "span.__jsx-style-dynamic-selector{color:".concat(theme$1.palette.accents_3, ";font-size:").concat(SCALES.font(0.85, 'calc(var(--radio-size) * 0.85)'), ";width:").concat(SCALES.width(1, 'auto'), ";height:").concat(SCALES.height(1, 'auto'), ";padding:").concat(SCALES.pt(0), " ").concat(SCALES.pr(0), " ").concat(SCALES.pb(0), " ").concat(SCALES.pl(0), ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0, 'calc(var(--radio-size) + var(--radio-size) * 0.375)'), ";}")
|
|
932
|
+
})]
|
|
933
|
+
}));
|
|
895
934
|
};
|
|
896
935
|
RadioDescriptionComponent.displayName = 'RadioDescription';
|
|
897
936
|
var RadioDescription = withScale(RadioDescriptionComponent);
|
|
@@ -1010,27 +1049,31 @@ var RadioComponent = function RadioComponent(_ref) {
|
|
|
1010
1049
|
if (checked === undefined) return;
|
|
1011
1050
|
setSelfChecked(Boolean(checked));
|
|
1012
1051
|
}, [checked]);
|
|
1013
|
-
return /*#__PURE__*/
|
|
1014
|
-
className: _JSXStyle.dynamic([["2664604043", [SCALES.font(1), SCALES.width(1, 'initial'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), isDisabled ? theme$1.palette.accents_4 : label, isDisabled ? 'not-allowed' : 'pointer', border, isDisabled ? theme$1.palette.accents_4 : bg]]]) + " " + (theme.useClasses('radio', className) || "")
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1052
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
1053
|
+
className: _JSXStyle.dynamic([["2664604043", [SCALES.font(1), SCALES.width(1, 'initial'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), isDisabled ? theme$1.palette.accents_4 : label, isDisabled ? 'not-allowed' : 'pointer', border, isDisabled ? theme$1.palette.accents_4 : bg]]]) + " " + (theme.useClasses('radio', className) || ""),
|
|
1054
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs("label", {
|
|
1055
|
+
className: _JSXStyle.dynamic([["2664604043", [SCALES.font(1), SCALES.width(1, 'initial'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), isDisabled ? theme$1.palette.accents_4 : label, isDisabled ? 'not-allowed' : 'pointer', border, isDisabled ? theme$1.palette.accents_4 : bg]]]),
|
|
1056
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("input", _objectSpread2(_objectSpread2({
|
|
1057
|
+
type: "radio",
|
|
1058
|
+
value: radioValue,
|
|
1059
|
+
checked: selfChecked,
|
|
1060
|
+
onChange: changeHandler
|
|
1061
|
+
}, props), {}, {
|
|
1062
|
+
className: _JSXStyle.dynamic([["2664604043", [SCALES.font(1), SCALES.width(1, 'initial'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), isDisabled ? theme$1.palette.accents_4 : label, isDisabled ? 'not-allowed' : 'pointer', border, isDisabled ? theme$1.palette.accents_4 : bg]]]) + " " + (props && props.className != null && props.className || "")
|
|
1063
|
+
})), /*#__PURE__*/jsxRuntime.jsxs("span", {
|
|
1064
|
+
className: _JSXStyle.dynamic([["2664604043", [SCALES.font(1), SCALES.width(1, 'initial'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), isDisabled ? theme$1.palette.accents_4 : label, isDisabled ? 'not-allowed' : 'pointer', border, isDisabled ? theme$1.palette.accents_4 : bg]]]) + " " + "name",
|
|
1065
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("span", {
|
|
1066
|
+
className: _JSXStyle.dynamic([["2664604043", [SCALES.font(1), SCALES.width(1, 'initial'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), isDisabled ? theme$1.palette.accents_4 : label, isDisabled ? 'not-allowed' : 'pointer', border, isDisabled ? theme$1.palette.accents_4 : bg]]]) + " " + (theme.useClasses('point', {
|
|
1067
|
+
active: selfChecked
|
|
1068
|
+
}) || "")
|
|
1069
|
+
}), withoutDescChildren]
|
|
1070
|
+
}), DescChildren && DescChildren]
|
|
1071
|
+
}), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
1072
|
+
id: "2664604043",
|
|
1073
|
+
dynamic: [SCALES.font(1), SCALES.width(1, 'initial'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), isDisabled ? theme$1.palette.accents_4 : label, isDisabled ? 'not-allowed' : 'pointer', border, isDisabled ? theme$1.palette.accents_4 : bg],
|
|
1074
|
+
children: "input.__jsx-style-dynamic-selector{opacity:0;visibility:hidden;overflow:hidden;width:1px;height:1px;top:-1000px;right:-1000px;position:fixed;font-size:0;}.radio.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;position:relative;--radio-size:".concat(SCALES.font(1), ";width:").concat(SCALES.width(1, 'initial'), ";height:").concat(SCALES.height(1, 'auto'), ";padding:").concat(SCALES.pt(0), " ").concat(SCALES.pr(0), " ").concat(SCALES.pb(0), " ").concat(SCALES.pl(0), ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0), ";}label.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;color:").concat(isDisabled ? theme$1.palette.accents_4 : label, ";cursor:").concat(isDisabled ? 'not-allowed' : 'pointer', ";}.name.__jsx-style-dynamic-selector{font-size:var(--radio-size);font-weight:bold;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.point.__jsx-style-dynamic-selector{height:var(--radio-size);width:var(--radio-size);border-radius:50%;border:1px solid ").concat(border, ";-webkit-transition:all 0.2s ease 0s;transition:all 0.2s ease 0s;position:relative;display:inline-block;-webkit-transform:scale(0.875);-ms-transform:scale(0.875);transform:scale(0.875);margin-right:calc(var(--radio-size) * 0.375);}.point.__jsx-style-dynamic-selector:before{content:'';position:absolute;left:-1px;top:-1px;-webkit-transform:scale(0);-ms-transform:scale(0);transform:scale(0);height:var(--radio-size);width:var(--radio-size);border-radius:50%;background-color:").concat(isDisabled ? theme$1.palette.accents_4 : bg, ";}.active.__jsx-style-dynamic-selector:before{-webkit-transform:scale(0.875);-ms-transform:scale(0.875);transform:scale(0.875);-webkit-transition:all 0.2s ease 0s;transition:all 0.2s ease 0s;}")
|
|
1075
|
+
})]
|
|
1076
|
+
});
|
|
1034
1077
|
};
|
|
1035
1078
|
RadioComponent.displayName = 'Radio';
|
|
1036
1079
|
var Radio = withScale(RadioComponent);
|
|
@@ -1070,14 +1113,17 @@ var RadioGroupComponent = function RadioGroupComponent(_ref) {
|
|
|
1070
1113
|
if (value === undefined) return;
|
|
1071
1114
|
setSelfVal(value);
|
|
1072
1115
|
}, [value]);
|
|
1073
|
-
return /*#__PURE__*/
|
|
1074
|
-
value: providerValue
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1116
|
+
return /*#__PURE__*/jsxRuntime.jsxs(RadioContext.Provider, {
|
|
1117
|
+
value: providerValue,
|
|
1118
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("div", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
1119
|
+
className: _JSXStyle.dynamic([["1223822443", [useRow ? 'col' : 'column', SCALES.font(1), SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), useRow ? 0 : 'var(--radio-group-gap)', useRow ? 'var(--radio-group-gap)' : 0, SCALES.font(1)]]]) + " " + (props && props.className != null && props.className || theme.useClasses('radio-group', className) || ""),
|
|
1120
|
+
children: children
|
|
1121
|
+
})), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
1122
|
+
id: "1223822443",
|
|
1123
|
+
dynamic: [useRow ? 'col' : 'column', SCALES.font(1), SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), useRow ? 0 : 'var(--radio-group-gap)', useRow ? 'var(--radio-group-gap)' : 0, SCALES.font(1)],
|
|
1124
|
+
children: ".radio-group.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:".concat(useRow ? 'col' : 'column', ";-ms-flex-direction:").concat(useRow ? 'col' : 'column', ";flex-direction:").concat(useRow ? 'col' : 'column', ";--radio-group-gap:").concat(SCALES.font(1), ";width:").concat(SCALES.width(1, 'auto'), ";height:").concat(SCALES.height(1, 'auto'), ";padding:").concat(SCALES.pt(0), " ").concat(SCALES.pr(0), " ").concat(SCALES.pb(0), " ").concat(SCALES.pl(0), ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0), ";}.radio-group.__jsx-style-dynamic-selector .radio{margin-top:").concat(useRow ? 0 : 'var(--radio-group-gap)', ";margin-left:").concat(useRow ? 'var(--radio-group-gap)' : 0, ";--radio-size:").concat(SCALES.font(1), ";}.radio-group.__jsx-style-dynamic-selector .radio:first-of-type{margin:0;}")
|
|
1125
|
+
})]
|
|
1126
|
+
});
|
|
1081
1127
|
};
|
|
1082
1128
|
RadioGroupComponent.displayName = 'RadioGroup';
|
|
1083
1129
|
var RadioGroup = withScale(RadioGroupComponent);
|
package/dist/rating/index.js
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
6
7
|
var theme = require('@helpdice/theme');
|
|
7
8
|
|
|
8
9
|
function _arrayLikeToArray(r, a) {
|
|
@@ -64,14 +65,13 @@ function _createForOfIteratorHelper(r, e) {
|
|
|
64
65
|
}
|
|
65
66
|
};
|
|
66
67
|
}
|
|
67
|
-
function
|
|
68
|
-
return
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
}, _extends.apply(null, arguments);
|
|
68
|
+
function _defineProperty(e, r, t) {
|
|
69
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
70
|
+
value: t,
|
|
71
|
+
enumerable: true,
|
|
72
|
+
configurable: true,
|
|
73
|
+
writable: true
|
|
74
|
+
}) : e[r] = t, e;
|
|
75
75
|
}
|
|
76
76
|
function _iterableToArray(r) {
|
|
77
77
|
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
@@ -106,6 +106,27 @@ function _nonIterableRest() {
|
|
|
106
106
|
function _nonIterableSpread() {
|
|
107
107
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
108
108
|
}
|
|
109
|
+
function ownKeys(e, r) {
|
|
110
|
+
var t = Object.keys(e);
|
|
111
|
+
if (Object.getOwnPropertySymbols) {
|
|
112
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
113
|
+
r && (o = o.filter(function (r) {
|
|
114
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
115
|
+
})), t.push.apply(t, o);
|
|
116
|
+
}
|
|
117
|
+
return t;
|
|
118
|
+
}
|
|
119
|
+
function _objectSpread2(e) {
|
|
120
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
121
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
122
|
+
r % 2 ? ownKeys(Object(t), true).forEach(function (r) {
|
|
123
|
+
_defineProperty(e, r, t[r]);
|
|
124
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
125
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
return e;
|
|
129
|
+
}
|
|
109
130
|
function _objectWithoutProperties(e, t) {
|
|
110
131
|
if (null == e) return {};
|
|
111
132
|
var o,
|
|
@@ -132,6 +153,20 @@ function _slicedToArray(r, e) {
|
|
|
132
153
|
function _toConsumableArray(r) {
|
|
133
154
|
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
134
155
|
}
|
|
156
|
+
function _toPrimitive(t, r) {
|
|
157
|
+
if ("object" != typeof t || !t) return t;
|
|
158
|
+
var e = t[Symbol.toPrimitive];
|
|
159
|
+
if (void 0 !== e) {
|
|
160
|
+
var i = e.call(t, r);
|
|
161
|
+
if ("object" != typeof i) return i;
|
|
162
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
163
|
+
}
|
|
164
|
+
return ("string" === r ? String : Number)(t);
|
|
165
|
+
}
|
|
166
|
+
function _toPropertyKey(t) {
|
|
167
|
+
var i = _toPrimitive(t, "string");
|
|
168
|
+
return "symbol" == typeof i ? i : i + "";
|
|
169
|
+
}
|
|
135
170
|
function _unsupportedIterableToArray(r, a) {
|
|
136
171
|
if (r) {
|
|
137
172
|
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
@@ -705,7 +740,7 @@ tuple('top', 'topStart', 'topEnd', 'left', 'leftStart', 'leftEnd', 'bottom', 'bo
|
|
|
705
740
|
tuple('start', 'center', 'end', 'left', 'right');
|
|
706
741
|
|
|
707
742
|
var RatingIcon = function RatingIcon() {
|
|
708
|
-
return /*#__PURE__*/
|
|
743
|
+
return /*#__PURE__*/jsxRuntime.jsx("svg", {
|
|
709
744
|
viewBox: "0 0 24 24",
|
|
710
745
|
width: "24",
|
|
711
746
|
height: "24",
|
|
@@ -714,10 +749,11 @@ var RatingIcon = function RatingIcon() {
|
|
|
714
749
|
strokeLinecap: "round",
|
|
715
750
|
strokeLinejoin: "round",
|
|
716
751
|
fill: "none",
|
|
717
|
-
shapeRendering: "geometricPrecision"
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
752
|
+
shapeRendering: "geometricPrecision",
|
|
753
|
+
children: /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
754
|
+
d: "M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"
|
|
755
|
+
})
|
|
756
|
+
});
|
|
721
757
|
};
|
|
722
758
|
RatingIcon.displayName = 'RatingIcon';
|
|
723
759
|
|
|
@@ -893,11 +929,13 @@ var withScale = function withScale(Render) {
|
|
|
893
929
|
getScaleProps: generateGetScaleProps(props),
|
|
894
930
|
getAllScaleProps: generateGetAllScaleProps(props)
|
|
895
931
|
};
|
|
896
|
-
return /*#__PURE__*/
|
|
897
|
-
value: value
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
932
|
+
return /*#__PURE__*/jsxRuntime.jsx(ScaleContext.Provider, {
|
|
933
|
+
value: value,
|
|
934
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Render, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
935
|
+
ref: ref,
|
|
936
|
+
children: children
|
|
937
|
+
}))
|
|
938
|
+
});
|
|
901
939
|
});
|
|
902
940
|
ScaleFC.displayName = "Scale".concat(Render.displayName || 'Wrapper');
|
|
903
941
|
return ScaleFC;
|
|
@@ -921,7 +959,7 @@ var RatingComponent = function RatingComponent(_ref) {
|
|
|
921
959
|
_ref$className = _ref.className,
|
|
922
960
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
923
961
|
_ref$icon = _ref.icon,
|
|
924
|
-
icon = _ref$icon === void 0 ? /*#__PURE__*/
|
|
962
|
+
icon = _ref$icon === void 0 ? /*#__PURE__*/jsxRuntime.jsx(RatingIcon, {}) : _ref$icon,
|
|
925
963
|
_ref$count = _ref.count,
|
|
926
964
|
count = _ref$count === void 0 ? 5 : _ref$count,
|
|
927
965
|
customValue = _ref.value,
|
|
@@ -968,25 +1006,27 @@ var RatingComponent = function RatingComponent(_ref) {
|
|
|
968
1006
|
if (typeof customValue === 'undefined') return;
|
|
969
1007
|
setValue(customValue < 0 ? 0 : customValue);
|
|
970
1008
|
}, [customValue]);
|
|
971
|
-
return /*#__PURE__*/
|
|
972
|
-
className: _JSXStyle.dynamic([["884600549", [SCALES.font(1), SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), color, isLocked ? 'default' : 'pointer', color]]]) + " " + (props && props.className != null && props.className || theme.useClasses('rating', className) || "")
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
1009
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
1010
|
+
className: _JSXStyle.dynamic([["884600549", [SCALES.font(1), SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), color, isLocked ? 'default' : 'pointer', color]]]) + " " + (props && props.className != null && props.className || theme.useClasses('rating', className) || ""),
|
|
1011
|
+
children: [_toConsumableArray(Array(count)).map(function (_, index) {
|
|
1012
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
1013
|
+
onMouseEnter: function onMouseEnter() {
|
|
1014
|
+
return mouseEnterHandler(index + 1);
|
|
1015
|
+
},
|
|
1016
|
+
onClick: function onClick() {
|
|
1017
|
+
return clickHandler(index + 1);
|
|
1018
|
+
},
|
|
1019
|
+
className: _JSXStyle.dynamic([["884600549", [SCALES.font(1), SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), color, isLocked ? 'default' : 'pointer', color]]]) + " " + (theme.useClasses('icon-box', {
|
|
1020
|
+
hovered: index + 1 <= value
|
|
1021
|
+
}) || ""),
|
|
1022
|
+
children: icon
|
|
1023
|
+
}, index);
|
|
1024
|
+
}), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
1025
|
+
id: "884600549",
|
|
1026
|
+
dynamic: [SCALES.font(1), SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), color, isLocked ? 'default' : 'pointer', color],
|
|
1027
|
+
children: ".rating.__jsx-style-dynamic-selector{box-sizing:border-box;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;--rating-font-size:".concat(SCALES.font(1), ";font-size:var(--rating-font-size);width:").concat(SCALES.width(1, 'auto'), ";height:").concat(SCALES.height(1, 'auto'), ";padding:").concat(SCALES.pt(0), " ").concat(SCALES.pr(0), " ").concat(SCALES.pb(0), " ").concat(SCALES.pl(0), ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0), ";}.icon-box.__jsx-style-dynamic-selector{box-sizing:border-box;color:").concat(color, ";width:calc(var(--rating-font-size) * 1.5);height:calc(var(--rating-font-size) * 1.5);margin-right:calc(var(--rating-font-size) * 1 / 5);cursor:").concat(isLocked ? 'default' : 'pointer', ";}.icon-box.__jsx-style-dynamic-selector svg{width:100%;height:100%;fill:transparent;-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1);-webkit-transition:-webkit-transform,color,fill 30ms linear;-webkit-transition:transform,color,fill 30ms linear;transition:transform,color,fill 30ms linear;}.hovered.__jsx-style-dynamic-selector svg{fill:").concat(color, ";-webkit-transform:scale(0.9);-ms-transform:scale(0.9);transform:scale(0.9);}")
|
|
1028
|
+
})]
|
|
1029
|
+
}));
|
|
990
1030
|
};
|
|
991
1031
|
RatingComponent.displayName = 'Rating';
|
|
992
1032
|
var Rating = withScale(RatingComponent);
|
package/dist/row/index.js
CHANGED
|
@@ -2,17 +2,38 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var require$$1 = require('react');
|
|
6
6
|
var theme = require('@helpdice/theme');
|
|
7
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
7
8
|
|
|
8
|
-
function
|
|
9
|
-
return
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
9
|
+
function _defineProperty(e, r, t) {
|
|
10
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
11
|
+
value: t,
|
|
12
|
+
enumerable: true,
|
|
13
|
+
configurable: true,
|
|
14
|
+
writable: true
|
|
15
|
+
}) : e[r] = t, e;
|
|
16
|
+
}
|
|
17
|
+
function ownKeys(e, r) {
|
|
18
|
+
var t = Object.keys(e);
|
|
19
|
+
if (Object.getOwnPropertySymbols) {
|
|
20
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
21
|
+
r && (o = o.filter(function (r) {
|
|
22
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
23
|
+
})), t.push.apply(t, o);
|
|
24
|
+
}
|
|
25
|
+
return t;
|
|
26
|
+
}
|
|
27
|
+
function _objectSpread2(e) {
|
|
28
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
29
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
30
|
+
r % 2 ? ownKeys(Object(t), true).forEach(function (r) {
|
|
31
|
+
_defineProperty(e, r, t[r]);
|
|
32
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
33
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
return e;
|
|
16
37
|
}
|
|
17
38
|
function _objectWithoutProperties(e, t) {
|
|
18
39
|
if (null == e) return {};
|
|
@@ -34,6 +55,20 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
34
55
|
}
|
|
35
56
|
return t;
|
|
36
57
|
}
|
|
58
|
+
function _toPrimitive(t, r) {
|
|
59
|
+
if ("object" != typeof t || !t) return t;
|
|
60
|
+
var e = t[Symbol.toPrimitive];
|
|
61
|
+
if (void 0 !== e) {
|
|
62
|
+
var i = e.call(t, r);
|
|
63
|
+
if ("object" != typeof i) return i;
|
|
64
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
65
|
+
}
|
|
66
|
+
return ("string" === r ? String : Number)(t);
|
|
67
|
+
}
|
|
68
|
+
function _toPropertyKey(t) {
|
|
69
|
+
var i = _toPrimitive(t, "string");
|
|
70
|
+
return "symbol" == typeof i ? i : i + "";
|
|
71
|
+
}
|
|
37
72
|
|
|
38
73
|
function getDefaultExportFromCjs (x) {
|
|
39
74
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
@@ -46,11 +81,11 @@ var hasRequiredIndex;
|
|
|
46
81
|
function requireIndex () {
|
|
47
82
|
if (hasRequiredIndex) return index;
|
|
48
83
|
hasRequiredIndex = 1;
|
|
49
|
-
var React
|
|
84
|
+
var React = require$$1;
|
|
50
85
|
|
|
51
86
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
52
87
|
|
|
53
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React
|
|
88
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
54
89
|
|
|
55
90
|
/*
|
|
56
91
|
Based on Glamor's sheet
|
|
@@ -486,15 +521,15 @@ function requireIndex () {
|
|
|
486
521
|
throw new Error("StyleSheetRegistry: " + message + ".");
|
|
487
522
|
}
|
|
488
523
|
}
|
|
489
|
-
var StyleSheetContext = /*#__PURE__*/ React
|
|
524
|
+
var StyleSheetContext = /*#__PURE__*/ React.createContext(null);
|
|
490
525
|
StyleSheetContext.displayName = "StyleSheetContext";
|
|
491
526
|
function createStyleRegistry() {
|
|
492
527
|
return new StyleSheetRegistry();
|
|
493
528
|
}
|
|
494
529
|
function StyleRegistry(param) {
|
|
495
530
|
var configuredRegistry = param.registry, children = param.children;
|
|
496
|
-
var rootRegistry = React
|
|
497
|
-
var ref = React
|
|
531
|
+
var rootRegistry = React.useContext(StyleSheetContext);
|
|
532
|
+
var ref = React.useState(function() {
|
|
498
533
|
return rootRegistry || configuredRegistry || createStyleRegistry();
|
|
499
534
|
}), registry = ref[0];
|
|
500
535
|
return /*#__PURE__*/ React__default["default"].createElement(StyleSheetContext.Provider, {
|
|
@@ -502,16 +537,16 @@ function requireIndex () {
|
|
|
502
537
|
}, children);
|
|
503
538
|
}
|
|
504
539
|
function useStyleRegistry() {
|
|
505
|
-
return React
|
|
540
|
+
return React.useContext(StyleSheetContext);
|
|
506
541
|
}
|
|
507
542
|
|
|
508
543
|
// Opt-into the new `useInsertionEffect` API in React 18, fallback to `useLayoutEffect`.
|
|
509
544
|
// https://github.com/reactwg/react-18/discussions/110
|
|
510
|
-
var useInsertionEffect = React__default["default"].useInsertionEffect || React
|
|
545
|
+
var useInsertionEffect = React__default["default"].useInsertionEffect || React.useLayoutEffect;
|
|
511
546
|
var defaultRegistry = typeof window !== "undefined" ? createStyleRegistry() : undefined;
|
|
512
547
|
function JSXStyle(props) {
|
|
513
548
|
var registry = defaultRegistry ? defaultRegistry : useStyleRegistry();
|
|
514
|
-
var insertionEffectCalled = React
|
|
549
|
+
var insertionEffectCalled = React.useRef(false);
|
|
515
550
|
// `registry` might not exist while server-side rendering
|
|
516
551
|
if (!registry) {
|
|
517
552
|
return null;
|
|
@@ -535,7 +570,7 @@ function requireIndex () {
|
|
|
535
570
|
props.id,
|
|
536
571
|
String(props.dynamic)
|
|
537
572
|
]);
|
|
538
|
-
React
|
|
573
|
+
React.useLayoutEffect(function() {
|
|
539
574
|
if (!document.head || insertionEffectCalled.current) {
|
|
540
575
|
return;
|
|
541
576
|
}
|
|
@@ -610,17 +645,19 @@ var Container = function Container(_ref) {
|
|
|
610
645
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
611
646
|
var Component = component;
|
|
612
647
|
var theme$1 = theme.useTheme();
|
|
613
|
-
var _useMemo =
|
|
648
|
+
var _useMemo = require$$1.useMemo(function () {
|
|
614
649
|
return getFlexAlignment(justify, align);
|
|
615
650
|
}, [justify, align]),
|
|
616
651
|
justifyValue = _useMemo.justifyValue,
|
|
617
652
|
alignValue = _useMemo.alignValue;
|
|
618
|
-
return /*#__PURE__*/
|
|
619
|
-
className: _JSXStyle.dynamic([["2529451939", [gap, theme$1.layout.gap, gap, theme$1.layout.gap, gap, theme$1.layout.gap, justifyValue, alignValue]]]) + " " + (props && props.className != null && props.className || "row ".concat(className))
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
653
|
+
return /*#__PURE__*/jsxRuntime.jsxs(Component, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
654
|
+
className: _JSXStyle.dynamic([["2529451939", [gap, theme$1.layout.gap, gap, theme$1.layout.gap, gap, theme$1.layout.gap, justifyValue, alignValue]]]) + " " + (props && props.className != null && props.className || "row ".concat(className)),
|
|
655
|
+
children: [children, /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
656
|
+
id: "2529451939",
|
|
657
|
+
dynamic: [gap, theme$1.layout.gap, gap, theme$1.layout.gap, gap, theme$1.layout.gap, justifyValue, alignValue],
|
|
658
|
+
children: ".row.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;position:relative;box-sizing:border-box;margin-left:calc(".concat(gap, " * ").concat(theme$1.layout.gap, " / 2);margin-right:calc(").concat(gap, " * ").concat(theme$1.layout.gap, " / 2);--row-gap:calc(").concat(gap, " * ").concat(theme$1.layout.gap, ");-webkit-box-pack:").concat(justifyValue, ";-webkit-justify-content:").concat(justifyValue, ";-ms-flex-pack:").concat(justifyValue, ";justify-content:").concat(justifyValue, ";-webkit-align-items:").concat(alignValue, ";-webkit-box-align:").concat(alignValue, ";-ms-flex-align:").concat(alignValue, ";align-items:").concat(alignValue, ";}")
|
|
659
|
+
})]
|
|
660
|
+
}));
|
|
624
661
|
};
|
|
625
662
|
Container.displayName = 'Container';
|
|
626
663
|
|