@helpdice/ui 2.5.4 → 2.5.8
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 +1273 -404
- package/dist/avatar/index.js +88 -49
- package/dist/badge/index.js +69 -27
- package/dist/breadcrumbs/index.js +107 -56
- package/dist/button/button.icon.d.ts +3 -16
- package/dist/button/button.small.d.ts +3 -16
- package/dist/button/index.js +143 -157
- 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 -330
- 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 -190
- package/dist/copy-to-clipboard/index.js +158 -210
- 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 +5240 -4755
- package/dist/input/index.js +1183 -277
- 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 +181 -124
- package/dist/placeholder/index.js +554 -538
- 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 +1098 -163
- package/dist/select/select.d.ts +2 -0
- 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 +4162 -3863
- package/dist/table/table-body.d.ts +4 -3
- package/dist/table/table-cell.d.ts +4 -2
- package/dist/table/table-types.d.ts +2 -0
- package/dist/table/table.d.ts +5 -1
- package/dist/tabs/index.js +61 -59
- package/dist/tag/index.js +16 -20
- package/dist/text/index.js +187 -184
- package/dist/text/text.d.ts +3 -0
- package/dist/textarea/index.js +916 -36
- package/dist/textarea/textarea.d.ts +3 -0
- package/dist/toggle/index.js +75 -33
- package/dist/tooltip/index.d.ts +1 -2
- package/dist/tooltip/index.js +59 -53
- package/dist/tooltip/tooltip-content.d.ts +1 -1
- package/dist/tooltip/tooltip-small.d.ts +2 -5
- 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 +152 -100
- package/esm/avatar/avatar.js +8 -6
- package/esm/button/button.icon.d.ts +3 -16
- package/esm/button/button.icon.js +22 -22
- package/esm/button/button.js +5 -5
- package/esm/button/button.small.d.ts +3 -16
- package/esm/button/button.small.js +20 -23
- 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/input/input-field.js +11 -9
- 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/pagination/pagination-item.js +6 -6
- package/esm/select/select.d.ts +2 -0
- package/esm/select/select.js +15 -2
- package/esm/skeleton/index.js +9 -4
- package/esm/table/table-body.d.ts +4 -3
- package/esm/table/table-body.js +25 -15
- 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 +5 -1
- package/esm/table/table.js +52 -25
- package/esm/text/text.d.ts +3 -0
- package/esm/text/text.js +9 -2
- package/esm/textarea/textarea.d.ts +3 -0
- package/esm/textarea/textarea.js +19 -2
- 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-small.d.ts +2 -5
- package/esm/tooltip/tooltip-small.js +0 -1
- 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/fieldset/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);
|
|
@@ -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);
|
|
@@ -109,6 +109,27 @@ function _nonIterableRest() {
|
|
|
109
109
|
function _nonIterableSpread() {
|
|
110
110
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
111
111
|
}
|
|
112
|
+
function ownKeys(e, r) {
|
|
113
|
+
var t = Object.keys(e);
|
|
114
|
+
if (Object.getOwnPropertySymbols) {
|
|
115
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
116
|
+
r && (o = o.filter(function (r) {
|
|
117
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
118
|
+
})), t.push.apply(t, o);
|
|
119
|
+
}
|
|
120
|
+
return t;
|
|
121
|
+
}
|
|
122
|
+
function _objectSpread2(e) {
|
|
123
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
124
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
125
|
+
r % 2 ? ownKeys(Object(t), true).forEach(function (r) {
|
|
126
|
+
_defineProperty(e, r, t[r]);
|
|
127
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
128
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
return e;
|
|
132
|
+
}
|
|
112
133
|
function _objectWithoutProperties(e, t) {
|
|
113
134
|
if (null == e) return {};
|
|
114
135
|
var o,
|
|
@@ -135,6 +156,20 @@ function _slicedToArray(r, e) {
|
|
|
135
156
|
function _toConsumableArray(r) {
|
|
136
157
|
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
137
158
|
}
|
|
159
|
+
function _toPrimitive(t, r) {
|
|
160
|
+
if ("object" != typeof t || !t) return t;
|
|
161
|
+
var e = t[Symbol.toPrimitive];
|
|
162
|
+
if (void 0 !== e) {
|
|
163
|
+
var i = e.call(t, r);
|
|
164
|
+
if ("object" != typeof i) return i;
|
|
165
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
166
|
+
}
|
|
167
|
+
return ("string" === r ? String : Number)(t);
|
|
168
|
+
}
|
|
169
|
+
function _toPropertyKey(t) {
|
|
170
|
+
var i = _toPrimitive(t, "string");
|
|
171
|
+
return "symbol" == typeof i ? i : i + "";
|
|
172
|
+
}
|
|
138
173
|
function _unsupportedIterableToArray(r, a) {
|
|
139
174
|
if (r) {
|
|
140
175
|
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
@@ -693,11 +728,15 @@ var FieldsetTitle = function FieldsetTitle(_ref) {
|
|
|
693
728
|
children = _ref.children,
|
|
694
729
|
props = _objectWithoutProperties(_ref, _excluded$6);
|
|
695
730
|
var classes = theme.useClasses('title', className);
|
|
696
|
-
return /*#__PURE__*/
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
731
|
+
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
732
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("div", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
733
|
+
className: "jsx-4105044205" + " " + (props && props.className != null && props.className || classes || ""),
|
|
734
|
+
children: children
|
|
735
|
+
})), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
736
|
+
id: "4105044205",
|
|
737
|
+
children: ".title.jsx-4105044205{line-height:1.5;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;word-break:break-word;font-weight:600;-webkit-letter-spacing:-0.020625em;-moz-letter-spacing:-0.020625em;-ms-letter-spacing:-0.020625em;letter-spacing:-0.020625em;font-size:1.25em;width:auto;}"
|
|
738
|
+
})]
|
|
739
|
+
});
|
|
701
740
|
};
|
|
702
741
|
FieldsetTitle.displayName = 'FieldsetTitle';
|
|
703
742
|
|
|
@@ -707,11 +746,15 @@ var FieldsetSubtitle = function FieldsetSubtitle(_ref) {
|
|
|
707
746
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
708
747
|
children = _ref.children,
|
|
709
748
|
props = _objectWithoutProperties(_ref, _excluded$5);
|
|
710
|
-
return /*#__PURE__*/
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
749
|
+
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
750
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("div", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
751
|
+
className: "jsx-2265168013" + " " + (props && props.className != null && props.className || className || ""),
|
|
752
|
+
children: children
|
|
753
|
+
})), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
754
|
+
id: "2265168013",
|
|
755
|
+
children: "div.jsx-2265168013{font-size:0.875em;line-height:1.6;-webkit-letter-spacing:-0.005625em;-moz-letter-spacing:-0.005625em;-ms-letter-spacing:-0.005625em;letter-spacing:-0.005625em;margin:0.75em 0;}"
|
|
756
|
+
})]
|
|
757
|
+
});
|
|
715
758
|
};
|
|
716
759
|
FieldsetSubtitle.displayName = 'FieldsetSubtitle';
|
|
717
760
|
|
|
@@ -907,11 +950,13 @@ var withScale = function withScale(Render) {
|
|
|
907
950
|
getScaleProps: generateGetScaleProps(props),
|
|
908
951
|
getAllScaleProps: generateGetAllScaleProps(props)
|
|
909
952
|
};
|
|
910
|
-
return /*#__PURE__*/
|
|
911
|
-
value: value
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
953
|
+
return /*#__PURE__*/jsxRuntime.jsx(ScaleContext.Provider, {
|
|
954
|
+
value: value,
|
|
955
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Render, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
956
|
+
ref: ref,
|
|
957
|
+
children: children
|
|
958
|
+
}))
|
|
959
|
+
});
|
|
915
960
|
});
|
|
916
961
|
ScaleFC.displayName = "Scale".concat(Render.displayName || 'Wrapper');
|
|
917
962
|
return ScaleFC;
|
|
@@ -926,12 +971,14 @@ var FieldsetFooterComponent = function FieldsetFooterComponent(_ref) {
|
|
|
926
971
|
var theme$1 = theme.useTheme();
|
|
927
972
|
var _useScale = useScale(),
|
|
928
973
|
SCALES = _useScale.SCALES;
|
|
929
|
-
return /*#__PURE__*/
|
|
930
|
-
className: _JSXStyle.dynamic([["903731644", [theme$1.palette.accents_1, theme$1.palette.border, theme$1.layout.radius, theme$1.layout.radius, theme$1.palette.accents_6, theme$1.layout.gapHalf, theme$1.layout.gap, SCALES.font(0.875), SCALES.width(1, 'auto'), SCALES.height(2.875), SCALES.pt(0.625), SCALES.pr(1.31), SCALES.pb(0.625), SCALES.pl(1.31), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0)]]]) + " " + (props && props.className != null && props.className || className || "")
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
974
|
+
return /*#__PURE__*/jsxRuntime.jsxs("footer", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
975
|
+
className: _JSXStyle.dynamic([["903731644", [theme$1.palette.accents_1, theme$1.palette.border, theme$1.layout.radius, theme$1.layout.radius, theme$1.palette.accents_6, theme$1.layout.gapHalf, theme$1.layout.gap, SCALES.font(0.875), SCALES.width(1, 'auto'), SCALES.height(2.875), SCALES.pt(0.625), SCALES.pr(1.31), SCALES.pb(0.625), SCALES.pl(1.31), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0)]]]) + " " + (props && props.className != null && props.className || className || ""),
|
|
976
|
+
children: [children, /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
977
|
+
id: "903731644",
|
|
978
|
+
dynamic: [theme$1.palette.accents_1, theme$1.palette.border, theme$1.layout.radius, theme$1.layout.radius, theme$1.palette.accents_6, theme$1.layout.gapHalf, theme$1.layout.gap, SCALES.font(0.875), SCALES.width(1, 'auto'), SCALES.height(2.875), SCALES.pt(0.625), SCALES.pr(1.31), SCALES.pb(0.625), SCALES.pl(1.31), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0)],
|
|
979
|
+
children: "footer.__jsx-style-dynamic-selector{background-color:".concat(theme$1.palette.accents_1, ";border-top:1px solid ").concat(theme$1.palette.border, ";border-bottom-left-radius:").concat(theme$1.layout.radius, ";border-bottom-right-radius:").concat(theme$1.layout.radius, ";display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;overflow:hidden;color:").concat(theme$1.palette.accents_6, ";padding:").concat(theme$1.layout.gapHalf, " ").concat(theme$1.layout.gap, ";box-sizing:border-box;font-size:").concat(SCALES.font(0.875), ";width:").concat(SCALES.width(1, 'auto'), ";height:").concat(SCALES.height(2.875), ";padding:").concat(SCALES.pt(0.625), " ").concat(SCALES.pr(1.31), " ").concat(SCALES.pb(0.625), " ").concat(SCALES.pl(1.31), ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0), ";}")
|
|
980
|
+
})]
|
|
981
|
+
}));
|
|
935
982
|
};
|
|
936
983
|
FieldsetFooterComponent.displayName = 'FieldsetFooter';
|
|
937
984
|
var FieldsetFooter = withScale(FieldsetFooterComponent);
|
|
@@ -945,12 +992,14 @@ var FieldsetContentComponent = function FieldsetContentComponent(_ref) {
|
|
|
945
992
|
var _useScale = useScale(),
|
|
946
993
|
SCALES = _useScale.SCALES;
|
|
947
994
|
var classes = theme.useClasses('content', className);
|
|
948
|
-
return /*#__PURE__*/
|
|
949
|
-
className: _JSXStyle.dynamic([["2403982542", [SCALES.width(1, '100%'), SCALES.height(1, 'auto'), SCALES.pt(1.3), SCALES.pr(1.3), SCALES.pb(1.3), SCALES.pl(1.3), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0)]]]) + " " + (props && props.className != null && props.className || classes || "")
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
995
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
996
|
+
className: _JSXStyle.dynamic([["2403982542", [SCALES.width(1, '100%'), SCALES.height(1, 'auto'), SCALES.pt(1.3), SCALES.pr(1.3), SCALES.pb(1.3), SCALES.pl(1.3), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0)]]]) + " " + (props && props.className != null && props.className || classes || ""),
|
|
997
|
+
children: [children, /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
998
|
+
id: "2403982542",
|
|
999
|
+
dynamic: [SCALES.width(1, '100%'), SCALES.height(1, 'auto'), SCALES.pt(1.3), SCALES.pr(1.3), SCALES.pb(1.3), SCALES.pl(1.3), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0)],
|
|
1000
|
+
children: ".content.__jsx-style-dynamic-selector{width:".concat(SCALES.width(1, '100%'), ";height:").concat(SCALES.height(1, 'auto'), ";padding:").concat(SCALES.pt(1.3), " ").concat(SCALES.pr(1.3), " ").concat(SCALES.pb(1.3), " ").concat(SCALES.pl(1.3), ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0), ";}.content.__jsx-style-dynamic-selector > *:first-child{margin-top:0;}.content.__jsx-style-dynamic-selector > *:last-child{margin-bottom:0;}")
|
|
1001
|
+
})]
|
|
1002
|
+
}));
|
|
954
1003
|
};
|
|
955
1004
|
FieldsetContentComponent.displayName = 'FieldsetContent';
|
|
956
1005
|
var FieldsetContent = withScale(FieldsetContentComponent);
|
|
@@ -1034,14 +1083,24 @@ var FieldsetComponent = function FieldsetComponent(_ref) {
|
|
|
1034
1083
|
}, [currentValue]);
|
|
1035
1084
|
}
|
|
1036
1085
|
var content = React.useMemo(function () {
|
|
1037
|
-
return /*#__PURE__*/
|
|
1086
|
+
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
1087
|
+
children: [withoutFooterChildren, !hasTitle && title && /*#__PURE__*/jsxRuntime.jsx(FieldsetTitle, {
|
|
1088
|
+
children: title
|
|
1089
|
+
}), !hasSubtitle && subtitle && /*#__PURE__*/jsxRuntime.jsx(FieldsetSubtitle, {
|
|
1090
|
+
children: subtitle
|
|
1091
|
+
})]
|
|
1092
|
+
});
|
|
1038
1093
|
}, [withoutFooterChildren, hasTitle, hasSubtitle, title, subtitle]);
|
|
1039
|
-
return /*#__PURE__*/
|
|
1040
|
-
className: _JSXStyle.dynamic([["3253250630", [theme$1.palette.background, theme$1.palette.border, theme$1.layout.radius, hidden ? 'none' : 'block', 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)]]]) + " " + (props && props.className != null && props.className || classes || "")
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1094
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
1095
|
+
className: _JSXStyle.dynamic([["3253250630", [theme$1.palette.background, theme$1.palette.border, theme$1.layout.radius, hidden ? 'none' : 'block', 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)]]]) + " " + (props && props.className != null && props.className || classes || ""),
|
|
1096
|
+
children: [hasContent ? content : /*#__PURE__*/jsxRuntime.jsx(FieldsetContent, {
|
|
1097
|
+
children: content
|
|
1098
|
+
}), FooterChildren && FooterChildren, /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
1099
|
+
id: "3253250630",
|
|
1100
|
+
dynamic: [theme$1.palette.background, theme$1.palette.border, theme$1.layout.radius, hidden ? 'none' : 'block', 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)],
|
|
1101
|
+
children: ".fieldset.__jsx-style-dynamic-selector{background-color:".concat(theme$1.palette.background, ";border:1px solid ").concat(theme$1.palette.border, ";border-radius:").concat(theme$1.layout.radius, ";overflow:hidden;display:").concat(hidden ? 'none' : 'block', ";font-size:").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), ";}")
|
|
1102
|
+
})]
|
|
1103
|
+
}));
|
|
1045
1104
|
};
|
|
1046
1105
|
FieldsetComponent.displayName = 'Fieldset';
|
|
1047
1106
|
var Fieldset = withScale(FieldsetComponent);
|
|
@@ -1087,27 +1146,32 @@ var FieldsetGroupComponent = function FieldsetGroupComponent(_ref) {
|
|
|
1087
1146
|
setSelfVal(nextValue);
|
|
1088
1147
|
onChange && onChange(nextValue);
|
|
1089
1148
|
}, [onChange]);
|
|
1090
|
-
return /*#__PURE__*/
|
|
1091
|
-
value: providerValue
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1149
|
+
return /*#__PURE__*/jsxRuntime.jsx(FieldsetContext.Provider, {
|
|
1150
|
+
value: providerValue,
|
|
1151
|
+
children: /*#__PURE__*/jsxRuntime.jsxs("div", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
1152
|
+
className: _JSXStyle.dynamic([["3411776855", [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, 0), SCALES.ml(0), SCALES.font(1), theme$1.palette.accents_3, theme$1.palette.accents_1, theme$1.palette.border, theme$1.palette.background, theme$1.palette.foreground, theme$1.layout.radius, theme$1.layout.radius]]]) + " " + (props && props.className != null && props.className || classes || ""),
|
|
1153
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
1154
|
+
className: _JSXStyle.dynamic([["3411776855", [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, 0), SCALES.ml(0), SCALES.font(1), theme$1.palette.accents_3, theme$1.palette.accents_1, theme$1.palette.border, theme$1.palette.background, theme$1.palette.foreground, theme$1.layout.radius, theme$1.layout.radius]]]) + " " + "group-tabs",
|
|
1155
|
+
children: items.map(function (item) {
|
|
1156
|
+
return /*#__PURE__*/jsxRuntime.jsx("button", {
|
|
1157
|
+
type: "button",
|
|
1158
|
+
onClick: function onClick() {
|
|
1159
|
+
return clickHandle(item.value);
|
|
1160
|
+
},
|
|
1161
|
+
className: _JSXStyle.dynamic([["3411776855", [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, 0), SCALES.ml(0), SCALES.font(1), theme$1.palette.accents_3, theme$1.palette.accents_1, theme$1.palette.border, theme$1.palette.background, theme$1.palette.foreground, theme$1.layout.radius, theme$1.layout.radius]]]) + " " + ((selfVal === item.value ? 'active' : '') || ""),
|
|
1162
|
+
children: item.label
|
|
1163
|
+
}, item.value);
|
|
1164
|
+
})
|
|
1165
|
+
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
1166
|
+
className: _JSXStyle.dynamic([["3411776855", [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, 0), SCALES.ml(0), SCALES.font(1), theme$1.palette.accents_3, theme$1.palette.accents_1, theme$1.palette.border, theme$1.palette.background, theme$1.palette.foreground, theme$1.layout.radius, theme$1.layout.radius]]]) + " " + "group-content",
|
|
1167
|
+
children: children
|
|
1168
|
+
}), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
1169
|
+
id: "3411776855",
|
|
1170
|
+
dynamic: [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, 0), SCALES.ml(0), SCALES.font(1), theme$1.palette.accents_3, theme$1.palette.accents_1, theme$1.palette.border, theme$1.palette.background, theme$1.palette.foreground, theme$1.layout.radius, theme$1.layout.radius],
|
|
1171
|
+
children: ".group.__jsx-style-dynamic-selector{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, 0), " ").concat(SCALES.ml(0), ";}.group-tabs.__jsx-style-dynamic-selector{white-space:nowrap;overflow-y:hidden;overflow-x:auto;font-size:").concat(SCALES.font(1), ";margin-bottom:-1px;}.group-content.__jsx-style-dynamic-selector{border-top-left-radius:0;overflow:hidden;}.group-content.__jsx-style-dynamic-selector .fieldset{border-top-left-radius:0;}button.__jsx-style-dynamic-selector{height:2.7em;line-height:2.7em;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:").concat(theme$1.palette.accents_3, ";background-color:").concat(theme$1.palette.accents_1, ";font-size:0.875em;white-space:nowrap;text-transform:capitalize;-webkit-appearance:none;cursor:pointer;margin:0;padding:0 1.45em;overflow:hidden;-webkit-transition:all 0.2s ease 0s;transition:all 0.2s ease 0s;border-radius:0;border:1px solid ").concat(theme$1.palette.border, ";-webkit-text-decoration:none;text-decoration:none;outline:none;}button.active.__jsx-style-dynamic-selector{border-bottom-color:transparent;background-color:").concat(theme$1.palette.background, ";color:").concat(theme$1.palette.foreground, ";cursor:default;}button.__jsx-style-dynamic-selector:first-of-type{border-top-left-radius:").concat(theme$1.layout.radius, ";}button.__jsx-style-dynamic-selector:last-of-type{border-top-right-radius:").concat(theme$1.layout.radius, ";}button.__jsx-style-dynamic-selector+button.__jsx-style-dynamic-selector{border-left:0;}")
|
|
1172
|
+
})]
|
|
1173
|
+
}))
|
|
1174
|
+
});
|
|
1111
1175
|
};
|
|
1112
1176
|
FieldsetGroupComponent.displayName = 'FieldsetGroup';
|
|
1113
1177
|
var FieldsetGroup = withScale(FieldsetGroupComponent);
|
package/dist/form/index.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
4
|
var require$$0 = require('react-is');
|
|
5
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
5
6
|
var isEqual = require('react-fast-compare');
|
|
6
7
|
|
|
7
8
|
function _interopNamespaceDefault(e) {
|
|
@@ -133,15 +134,6 @@ function _defineProperty$1(e, r, t) {
|
|
|
133
134
|
writable: true
|
|
134
135
|
}) : e[r] = t, e;
|
|
135
136
|
}
|
|
136
|
-
function _extends() {
|
|
137
|
-
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
138
|
-
for (var e = 1; e < arguments.length; e++) {
|
|
139
|
-
var t = arguments[e];
|
|
140
|
-
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
141
|
-
}
|
|
142
|
-
return n;
|
|
143
|
-
}, _extends.apply(null, arguments);
|
|
144
|
-
}
|
|
145
137
|
function _getPrototypeOf(t) {
|
|
146
138
|
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
|
|
147
139
|
return t.__proto__ || Object.getPrototypeOf(t);
|
|
@@ -541,17 +533,15 @@ function useFormikContext() {
|
|
|
541
533
|
return formik;
|
|
542
534
|
}
|
|
543
535
|
|
|
544
|
-
/**
|
|
545
|
-
* Connect any component to Formik context, and inject as a prop called `formik`;
|
|
546
|
-
* @param Comp React Component
|
|
547
|
-
*/
|
|
548
536
|
function connect(Comp) {
|
|
549
537
|
var C = function C(props) {
|
|
550
|
-
return /*#__PURE__*/
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
538
|
+
return /*#__PURE__*/jsxRuntime.jsx(FormikConsumer, {
|
|
539
|
+
children: function children(formik) {
|
|
540
|
+
warning(!!formik, "Formik context is undefined, please verify you are rendering <Form>, <Field>, <FastField>, <FieldArray>, or your custom context-using component as a child of a <Formik> component. Component name: ".concat(Comp.name));
|
|
541
|
+
return /*#__PURE__*/jsxRuntime.jsx(Comp, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
542
|
+
formik: formik
|
|
543
|
+
}));
|
|
544
|
+
}
|
|
555
545
|
});
|
|
556
546
|
};
|
|
557
547
|
var componentDisplayName = Comp.displayName || Comp.name || Comp.constructor && Comp.constructor.name || 'Component';
|
|
@@ -5827,10 +5817,11 @@ function FormWrapper(props) {
|
|
|
5827
5817
|
warning(!props.render, "<Formik render> has been deprecated and will be removed in future versions of Formik. Please use a child callback function instead. To get rid of this warning, replace <Formik render={(props) => ...} /> with <Formik>{(props) => ...}</Formik>");
|
|
5828
5818
|
}, []);
|
|
5829
5819
|
}
|
|
5830
|
-
return /*#__PURE__*/
|
|
5831
|
-
value: formikbag
|
|
5832
|
-
|
|
5833
|
-
|
|
5820
|
+
return /*#__PURE__*/jsxRuntime.jsx(FormikProvider, {
|
|
5821
|
+
value: formikbag,
|
|
5822
|
+
children: component ? /*#__PURE__*/React__namespace.createElement(component, formikbag) : render ? render(formikbag) : children // children come last, always called
|
|
5823
|
+
? isFunction(children) ? children(formikbag) : !isEmptyChildren(children) ? React__namespace.Children.only(children) : null : null
|
|
5824
|
+
});
|
|
5834
5825
|
}
|
|
5835
5826
|
function warnAboutMissingIdentifier(_ref5) {
|
|
5836
5827
|
var htmlContent = _ref5.htmlContent,
|
|
@@ -5993,22 +5984,6 @@ function useEventCallback(fn) {
|
|
|
5993
5984
|
|
|
5994
5985
|
var _excluded$1 = ["mapPropsToValues"],
|
|
5995
5986
|
_excluded2 = ["children"];
|
|
5996
|
-
|
|
5997
|
-
/**
|
|
5998
|
-
* State, handlers, and helpers injected as props into the wrapped form component.
|
|
5999
|
-
* Used with withFormik()
|
|
6000
|
-
*
|
|
6001
|
-
* @deprecated Use `OuterProps & FormikProps<Values>` instead.
|
|
6002
|
-
*/
|
|
6003
|
-
|
|
6004
|
-
/**
|
|
6005
|
-
* Formik helpers + { props }
|
|
6006
|
-
*/
|
|
6007
|
-
|
|
6008
|
-
/**
|
|
6009
|
-
* withFormik() configuration options. Backwards compatible.
|
|
6010
|
-
*/
|
|
6011
|
-
|
|
6012
5987
|
/**
|
|
6013
5988
|
* A public higher-order component to access the imperative API
|
|
6014
5989
|
*/
|
|
@@ -6054,7 +6029,7 @@ function withFormik(_ref) {
|
|
|
6054
6029
|
* Just avoiding a render callback for perf here
|
|
6055
6030
|
*/
|
|
6056
6031
|
_defineProperty$1(_this, "renderFormComponent", function (formikProps) {
|
|
6057
|
-
return /*#__PURE__*/
|
|
6032
|
+
return /*#__PURE__*/jsxRuntime.jsx(Component, _objectSpread2(_objectSpread2({}, _this.props), formikProps));
|
|
6058
6033
|
});
|
|
6059
6034
|
return _this;
|
|
6060
6035
|
}
|
|
@@ -6065,7 +6040,7 @@ function withFormik(_ref) {
|
|
|
6065
6040
|
var _ref2 = this.props;
|
|
6066
6041
|
_ref2.children;
|
|
6067
6042
|
var props = _objectWithoutProperties(_ref2, _excluded2);
|
|
6068
|
-
return /*#__PURE__*/
|
|
6043
|
+
return /*#__PURE__*/jsxRuntime.jsx(FormWrapper, _objectSpread2(_objectSpread2(_objectSpread2({}, props), config), {}, {
|
|
6069
6044
|
validate: config.validate && this.validate,
|
|
6070
6045
|
validationSchema: config.validationSchema && this.validationSchema,
|
|
6071
6046
|
initialValues: mapPropsToValues(this.props),
|
package/dist/grid/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);
|
|
@@ -58,14 +59,34 @@ function _createForOfIteratorHelper(r, e) {
|
|
|
58
59
|
}
|
|
59
60
|
};
|
|
60
61
|
}
|
|
61
|
-
function
|
|
62
|
-
return
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
62
|
+
function _defineProperty(e, r, t) {
|
|
63
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
64
|
+
value: t,
|
|
65
|
+
enumerable: true,
|
|
66
|
+
configurable: true,
|
|
67
|
+
writable: true
|
|
68
|
+
}) : e[r] = t, e;
|
|
69
|
+
}
|
|
70
|
+
function ownKeys(e, r) {
|
|
71
|
+
var t = Object.keys(e);
|
|
72
|
+
if (Object.getOwnPropertySymbols) {
|
|
73
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
74
|
+
r && (o = o.filter(function (r) {
|
|
75
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
76
|
+
})), t.push.apply(t, o);
|
|
77
|
+
}
|
|
78
|
+
return t;
|
|
79
|
+
}
|
|
80
|
+
function _objectSpread2(e) {
|
|
81
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
82
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
83
|
+
r % 2 ? ownKeys(Object(t), true).forEach(function (r) {
|
|
84
|
+
_defineProperty(e, r, t[r]);
|
|
85
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
86
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
return e;
|
|
69
90
|
}
|
|
70
91
|
function _objectWithoutProperties(e, t) {
|
|
71
92
|
if (null == e) return {};
|
|
@@ -87,6 +108,20 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
87
108
|
}
|
|
88
109
|
return t;
|
|
89
110
|
}
|
|
111
|
+
function _toPrimitive(t, r) {
|
|
112
|
+
if ("object" != typeof t || !t) return t;
|
|
113
|
+
var e = t[Symbol.toPrimitive];
|
|
114
|
+
if (void 0 !== e) {
|
|
115
|
+
var i = e.call(t, r);
|
|
116
|
+
if ("object" != typeof i) return i;
|
|
117
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
118
|
+
}
|
|
119
|
+
return ("string" === r ? String : Number)(t);
|
|
120
|
+
}
|
|
121
|
+
function _toPropertyKey(t) {
|
|
122
|
+
var i = _toPrimitive(t, "string");
|
|
123
|
+
return "symbol" == typeof i ? i : i + "";
|
|
124
|
+
}
|
|
90
125
|
function _unsupportedIterableToArray(r, a) {
|
|
91
126
|
if (r) {
|
|
92
127
|
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
@@ -810,11 +845,13 @@ var withScale = function withScale(Render) {
|
|
|
810
845
|
getScaleProps: generateGetScaleProps(props),
|
|
811
846
|
getAllScaleProps: generateGetAllScaleProps(props)
|
|
812
847
|
};
|
|
813
|
-
return /*#__PURE__*/
|
|
814
|
-
value: value
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
848
|
+
return /*#__PURE__*/jsxRuntime.jsx(ScaleContext.Provider, {
|
|
849
|
+
value: value,
|
|
850
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Render, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
851
|
+
ref: ref,
|
|
852
|
+
children: children
|
|
853
|
+
}))
|
|
854
|
+
});
|
|
818
855
|
});
|
|
819
856
|
ScaleFC.displayName = "Scale".concat(Render.displayName || 'Wrapper');
|
|
820
857
|
return ScaleFC;
|
|
@@ -889,12 +926,14 @@ var GridBasicItem = function GridBasicItem(_ref) {
|
|
|
889
926
|
xl: getItemLayout(xl)
|
|
890
927
|
};
|
|
891
928
|
}, [xs, sm, md, lg, xl]);
|
|
892
|
-
return /*#__PURE__*/
|
|
893
|
-
className: _JSXStyle.dynamic([["568430467", [SCALES.font(1, 'inherit'), SCALES.height(1, 'auto'), justify, direction, alignContent, alignItems, layout.xs.grow, layout.xs.width, layout.xs.basis, layout.xs.display, theme$1.breakpoints.sm.min, layout.sm.grow, layout.sm.width, layout.sm.basis, layout.sm.display, theme$1.breakpoints.md.min, layout.md.grow, layout.md.width, layout.md.basis, layout.md.display, theme$1.breakpoints.lg.min, layout.lg.grow, layout.lg.width, layout.lg.basis, layout.lg.display, theme$1.breakpoints.xl.min, layout.xl.grow, layout.xl.width, layout.xl.basis, layout.xl.display]]]) + " " + (props && props.className != null && props.className || theme.useClasses('item', classes, className) || "")
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
929
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
930
|
+
className: _JSXStyle.dynamic([["568430467", [SCALES.font(1, 'inherit'), SCALES.height(1, 'auto'), justify, direction, alignContent, alignItems, layout.xs.grow, layout.xs.width, layout.xs.basis, layout.xs.display, theme$1.breakpoints.sm.min, layout.sm.grow, layout.sm.width, layout.sm.basis, layout.sm.display, theme$1.breakpoints.md.min, layout.md.grow, layout.md.width, layout.md.basis, layout.md.display, theme$1.breakpoints.lg.min, layout.lg.grow, layout.lg.width, layout.lg.basis, layout.lg.display, theme$1.breakpoints.xl.min, layout.xl.grow, layout.xl.width, layout.xl.basis, layout.xl.display]]]) + " " + (props && props.className != null && props.className || theme.useClasses('item', classes, className) || ""),
|
|
931
|
+
children: [children, /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
932
|
+
id: "568430467",
|
|
933
|
+
dynamic: [SCALES.font(1, 'inherit'), SCALES.height(1, 'auto'), justify, direction, alignContent, alignItems, layout.xs.grow, layout.xs.width, layout.xs.basis, layout.xs.display, theme$1.breakpoints.sm.min, layout.sm.grow, layout.sm.width, layout.sm.basis, layout.sm.display, theme$1.breakpoints.md.min, layout.md.grow, layout.md.width, layout.md.basis, layout.md.display, theme$1.breakpoints.lg.min, layout.lg.grow, layout.lg.width, layout.lg.basis, layout.lg.display, theme$1.breakpoints.xl.min, layout.xl.grow, layout.xl.width, layout.xl.basis, layout.xl.display],
|
|
934
|
+
children: ".item.__jsx-style-dynamic-selector{font-size:".concat(SCALES.font(1, 'inherit'), ";height:").concat(SCALES.height(1, 'auto'), ";}.justify.__jsx-style-dynamic-selector{-webkit-box-pack:").concat(justify, ";-webkit-justify-content:").concat(justify, ";-ms-flex-pack:").concat(justify, ";justify-content:").concat(justify, ";}.direction.__jsx-style-dynamic-selector{-webkit-flex-direction:").concat(direction, ";-ms-flex-direction:").concat(direction, ";flex-direction:").concat(direction, ";}.alignContent.__jsx-style-dynamic-selector{-webkit-align-content:").concat(alignContent, ";-ms-flex-line-pack:").concat(alignContent, ";align-content:").concat(alignContent, ";}.alignItems.__jsx-style-dynamic-selector{-webkit-align-items:").concat(alignItems, ";-webkit-box-align:").concat(alignItems, ";-ms-flex-align:").concat(alignItems, ";align-items:").concat(alignItems, ";}.xs.__jsx-style-dynamic-selector{-webkit-box-flex:").concat(layout.xs.grow, ";-webkit-flex-grow:").concat(layout.xs.grow, ";-ms-flex-positive:").concat(layout.xs.grow, ";flex-grow:").concat(layout.xs.grow, ";max-width:").concat(layout.xs.width, ";-webkit-flex-basis:").concat(layout.xs.basis, ";-ms-flex-preferred-size:").concat(layout.xs.basis, ";flex-basis:").concat(layout.xs.basis, ";").concat(layout.xs.display, ";}@media only screen and (min-width:").concat(theme$1.breakpoints.sm.min, "){.sm.__jsx-style-dynamic-selector{-webkit-box-flex:").concat(layout.sm.grow, ";-webkit-flex-grow:").concat(layout.sm.grow, ";-ms-flex-positive:").concat(layout.sm.grow, ";flex-grow:").concat(layout.sm.grow, ";max-width:").concat(layout.sm.width, ";-webkit-flex-basis:").concat(layout.sm.basis, ";-ms-flex-preferred-size:").concat(layout.sm.basis, ";flex-basis:").concat(layout.sm.basis, ";").concat(layout.sm.display, ";}}@media only screen and (min-width:").concat(theme$1.breakpoints.md.min, "){.md.__jsx-style-dynamic-selector{-webkit-box-flex:").concat(layout.md.grow, ";-webkit-flex-grow:").concat(layout.md.grow, ";-ms-flex-positive:").concat(layout.md.grow, ";flex-grow:").concat(layout.md.grow, ";max-width:").concat(layout.md.width, ";-webkit-flex-basis:").concat(layout.md.basis, ";-ms-flex-preferred-size:").concat(layout.md.basis, ";flex-basis:").concat(layout.md.basis, ";").concat(layout.md.display, ";}}@media only screen and (min-width:").concat(theme$1.breakpoints.lg.min, "){.lg.__jsx-style-dynamic-selector{-webkit-box-flex:").concat(layout.lg.grow, ";-webkit-flex-grow:").concat(layout.lg.grow, ";-ms-flex-positive:").concat(layout.lg.grow, ";flex-grow:").concat(layout.lg.grow, ";max-width:").concat(layout.lg.width, ";-webkit-flex-basis:").concat(layout.lg.basis, ";-ms-flex-preferred-size:").concat(layout.lg.basis, ";flex-basis:").concat(layout.lg.basis, ";").concat(layout.lg.display, ";}}@media only screen and (min-width:").concat(theme$1.breakpoints.xl.min, "){.xl.__jsx-style-dynamic-selector{-webkit-box-flex:").concat(layout.xl.grow, ";-webkit-flex-grow:").concat(layout.xl.grow, ";-ms-flex-positive:").concat(layout.xl.grow, ";flex-grow:").concat(layout.xl.grow, ";max-width:").concat(layout.xl.width, ";-webkit-flex-basis:").concat(layout.xl.basis, ";-ms-flex-preferred-size:").concat(layout.xl.basis, ";flex-basis:").concat(layout.xl.basis, ";").concat(layout.xl.display, ";}}")
|
|
935
|
+
})]
|
|
936
|
+
}));
|
|
898
937
|
};
|
|
899
938
|
GridBasicItem.displayName = 'GridBasicItem';
|
|
900
939
|
|
|
@@ -907,18 +946,21 @@ var GridComponent = function GridComponent(_ref) {
|
|
|
907
946
|
var _useScale = useScale(),
|
|
908
947
|
SCALES = _useScale.SCALES;
|
|
909
948
|
var _styles$className = {
|
|
910
|
-
styles: /*#__PURE__*/
|
|
949
|
+
styles: /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
911
950
|
id: "1271839607",
|
|
912
|
-
dynamic: [SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0, 'var(--grid-gap-unit)'), SCALES.pr(0, 'var(--grid-gap-unit)'), SCALES.pb(0, 'var(--grid-gap-unit)'), SCALES.pl(0, 'var(--grid-gap-unit)')]
|
|
913
|
-
|
|
951
|
+
dynamic: [SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0, 'var(--grid-gap-unit)'), SCALES.pr(0, 'var(--grid-gap-unit)'), SCALES.pb(0, 'var(--grid-gap-unit)'), SCALES.pl(0, 'var(--grid-gap-unit)')],
|
|
952
|
+
children: "div.__jsx-style-dynamic-selector{margin:".concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0), ";box-sizing:border-box;padding:").concat(SCALES.pt(0, 'var(--grid-gap-unit)'), " ").concat(SCALES.pr(0, 'var(--grid-gap-unit)'), " ").concat(SCALES.pb(0, 'var(--grid-gap-unit)'), " ").concat(SCALES.pl(0, 'var(--grid-gap-unit)'), ";}")
|
|
953
|
+
}),
|
|
914
954
|
className: _JSXStyle.dynamic([["1271839607", [SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0, 'var(--grid-gap-unit)'), SCALES.pr(0, 'var(--grid-gap-unit)'), SCALES.pb(0, 'var(--grid-gap-unit)'), SCALES.pl(0, 'var(--grid-gap-unit)')]]])
|
|
915
955
|
},
|
|
916
956
|
resolveClassName = _styles$className.className,
|
|
917
957
|
styles = _styles$className.styles;
|
|
918
958
|
var classes = theme.useClasses(resolveClassName, className);
|
|
919
|
-
return /*#__PURE__*/
|
|
959
|
+
return /*#__PURE__*/jsxRuntime.jsxs(GridBasicItem, _objectSpread2(_objectSpread2({
|
|
920
960
|
className: classes
|
|
921
|
-
}, props),
|
|
961
|
+
}, props), {}, {
|
|
962
|
+
children: [children, styles]
|
|
963
|
+
}));
|
|
922
964
|
};
|
|
923
965
|
GridComponent.displayName = 'Grid';
|
|
924
966
|
var Grid = withScale(GridComponent);
|
|
@@ -940,18 +982,21 @@ var GridContainerComponent = function GridContainerComponent(_ref) {
|
|
|
940
982
|
return "calc(".concat(gap, " * ").concat(unit, " * 1/3)");
|
|
941
983
|
}, [gap, unit]);
|
|
942
984
|
var _styles$className = {
|
|
943
|
-
styles: /*#__PURE__*/
|
|
985
|
+
styles: /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
944
986
|
id: "3631618093",
|
|
945
|
-
dynamic: [gapUnit, wrap, SCALES.width(1, 'var(--grid-container-width)'), SCALES.mt(0, 'var(--grid-container-margin)'), SCALES.mr(0, 'var(--grid-container-margin)'), SCALES.mb(0, 'var(--grid-container-margin)'), SCALES.ml(0, 'var(--grid-container-margin)')]
|
|
946
|
-
|
|
987
|
+
dynamic: [gapUnit, wrap, SCALES.width(1, 'var(--grid-container-width)'), SCALES.mt(0, 'var(--grid-container-margin)'), SCALES.mr(0, 'var(--grid-container-margin)'), SCALES.mb(0, 'var(--grid-container-margin)'), SCALES.ml(0, 'var(--grid-container-margin)')],
|
|
988
|
+
children: "div.__jsx-style-dynamic-selector{--grid-gap-unit:".concat(gapUnit, ";--grid-container-margin:calc(-1 * var(--grid-gap-unit));--grid-container-width:calc(100% + var(--grid-gap-unit) * 2);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:").concat(wrap, ";-ms-flex-wrap:").concat(wrap, ";flex-wrap:").concat(wrap, ";box-sizing:border-box;width:").concat(SCALES.width(1, 'var(--grid-container-width)'), ";margin:").concat(SCALES.mt(0, 'var(--grid-container-margin)'), " ").concat(SCALES.mr(0, 'var(--grid-container-margin)'), " ").concat(SCALES.mb(0, 'var(--grid-container-margin)'), " ").concat(SCALES.ml(0, 'var(--grid-container-margin)'), ";}")
|
|
989
|
+
}),
|
|
947
990
|
className: _JSXStyle.dynamic([["3631618093", [gapUnit, wrap, SCALES.width(1, 'var(--grid-container-width)'), SCALES.mt(0, 'var(--grid-container-margin)'), SCALES.mr(0, 'var(--grid-container-margin)'), SCALES.mb(0, 'var(--grid-container-margin)'), SCALES.ml(0, 'var(--grid-container-margin)')]]])
|
|
948
991
|
},
|
|
949
992
|
resolveClassName = _styles$className.className,
|
|
950
993
|
styles = _styles$className.styles;
|
|
951
994
|
var classes = theme.useClasses(resolveClassName, className);
|
|
952
|
-
return /*#__PURE__*/
|
|
995
|
+
return /*#__PURE__*/jsxRuntime.jsxs(GridBasicItem, _objectSpread2(_objectSpread2({
|
|
953
996
|
className: classes
|
|
954
|
-
}, props),
|
|
997
|
+
}, props), {}, {
|
|
998
|
+
children: [children, styles]
|
|
999
|
+
}));
|
|
955
1000
|
};
|
|
956
1001
|
GridContainerComponent.displayName = 'GridContainer';
|
|
957
1002
|
var GridContainer = withScale(GridContainerComponent);
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
require('react');
|
|
6
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
6
7
|
|
|
7
8
|
/*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */
|
|
8
9
|
|
|
@@ -1382,7 +1383,7 @@ var purify = createDOMPurify();
|
|
|
1382
1383
|
var HtmlRenderer = function HtmlRenderer(_ref) {
|
|
1383
1384
|
var htmlString = _ref.htmlString;
|
|
1384
1385
|
var sanitizedHTML = purify.sanitize(htmlString);
|
|
1385
|
-
return /*#__PURE__*/
|
|
1386
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
1386
1387
|
dangerouslySetInnerHTML: {
|
|
1387
1388
|
__html: sanitizedHTML
|
|
1388
1389
|
}
|