@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
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type ProgressVariant = "determinate" | "indeterminate";
|
|
2
|
+
interface UseCircularProgressProps {
|
|
3
|
+
value?: number;
|
|
4
|
+
min?: number;
|
|
5
|
+
max?: number;
|
|
6
|
+
variant?: ProgressVariant;
|
|
7
|
+
}
|
|
8
|
+
export declare function useCircularProgress({ value, min, max, variant, }: UseCircularProgressProps): {
|
|
9
|
+
percentage: number;
|
|
10
|
+
displayValue: number;
|
|
11
|
+
};
|
|
12
|
+
export {};
|
package/dist/code/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);
|
|
@@ -843,11 +878,13 @@ var withScale = function withScale(Render) {
|
|
|
843
878
|
getScaleProps: generateGetScaleProps(props),
|
|
844
879
|
getAllScaleProps: generateGetAllScaleProps(props)
|
|
845
880
|
};
|
|
846
|
-
return /*#__PURE__*/
|
|
847
|
-
value: value
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
881
|
+
return /*#__PURE__*/jsxRuntime.jsx(ScaleContext.Provider, {
|
|
882
|
+
value: value,
|
|
883
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Render, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
884
|
+
ref: ref,
|
|
885
|
+
children: children
|
|
886
|
+
}))
|
|
887
|
+
});
|
|
851
888
|
});
|
|
852
889
|
ScaleFC.displayName = "Scale".concat(Render.displayName || 'Wrapper');
|
|
853
890
|
return ScaleFC;
|
|
@@ -915,19 +952,26 @@ var CodeComponent = function CodeComponent(_ref) {
|
|
|
915
952
|
}, [classic, theme$1.palette]),
|
|
916
953
|
background = _useMemo.background,
|
|
917
954
|
border = _useMemo.border;
|
|
918
|
-
if (!block) return /*#__PURE__*/
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
className: _JSXStyle.dynamic([["2383620185", [border, SCALES.font(0.875), SCALES.width(1, 'initial'), SCALES.height(1, 'auto'), SCALES.mt(1.3), SCALES.mr(0), SCALES.mb(1.3), SCALES.ml(0), theme$1.layout.radius, background, SCALES.pt(1.1), SCALES.pr(1), SCALES.pb(1.1), SCALES.pl(1), theme$1.layout.radius, theme$1.palette.accents_2, theme$1.palette.accents_2, theme$1.palette.accents_5, SCALES.font(0.8125), SCALES.font(0.32), SCALES.font(0.5), SCALES.font(0.32), SCALES.font(0.5), theme$1.layout.radius, theme$1.layout.radius]]])
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
955
|
+
if (!block) return /*#__PURE__*/jsxRuntime.jsx("code", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
956
|
+
children: children
|
|
957
|
+
}));
|
|
958
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
959
|
+
className: _JSXStyle.dynamic([["2383620185", [border, SCALES.font(0.875), SCALES.width(1, 'initial'), SCALES.height(1, 'auto'), SCALES.mt(1.3), SCALES.mr(0), SCALES.mb(1.3), SCALES.ml(0), theme$1.layout.radius, background, SCALES.pt(1.1), SCALES.pr(1), SCALES.pb(1.1), SCALES.pl(1), theme$1.layout.radius, theme$1.palette.accents_2, theme$1.palette.accents_2, theme$1.palette.accents_5, SCALES.font(0.8125), SCALES.font(0.32), SCALES.font(0.5), SCALES.font(0.32), SCALES.font(0.5), theme$1.layout.radius, theme$1.layout.radius]]]) + " " + "pre",
|
|
960
|
+
children: [name && /*#__PURE__*/jsxRuntime.jsx("header", {
|
|
961
|
+
className: _JSXStyle.dynamic([["2383620185", [border, SCALES.font(0.875), SCALES.width(1, 'initial'), SCALES.height(1, 'auto'), SCALES.mt(1.3), SCALES.mr(0), SCALES.mb(1.3), SCALES.ml(0), theme$1.layout.radius, background, SCALES.pt(1.1), SCALES.pr(1), SCALES.pb(1.1), SCALES.pl(1), theme$1.layout.radius, theme$1.palette.accents_2, theme$1.palette.accents_2, theme$1.palette.accents_5, SCALES.font(0.8125), SCALES.font(0.32), SCALES.font(0.5), SCALES.font(0.32), SCALES.font(0.5), theme$1.layout.radius, theme$1.layout.radius]]]),
|
|
962
|
+
children: /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
963
|
+
className: _JSXStyle.dynamic([["2383620185", [border, SCALES.font(0.875), SCALES.width(1, 'initial'), SCALES.height(1, 'auto'), SCALES.mt(1.3), SCALES.mr(0), SCALES.mb(1.3), SCALES.ml(0), theme$1.layout.radius, background, SCALES.pt(1.1), SCALES.pr(1), SCALES.pb(1.1), SCALES.pl(1), theme$1.layout.radius, theme$1.palette.accents_2, theme$1.palette.accents_2, theme$1.palette.accents_5, SCALES.font(0.8125), SCALES.font(0.32), SCALES.font(0.5), SCALES.font(0.32), SCALES.font(0.5), theme$1.layout.radius, theme$1.layout.radius]]]) + " " + "name",
|
|
964
|
+
children: name
|
|
965
|
+
})
|
|
966
|
+
}), /*#__PURE__*/jsxRuntime.jsx("pre", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
967
|
+
className: _JSXStyle.dynamic([["2383620185", [border, SCALES.font(0.875), SCALES.width(1, 'initial'), SCALES.height(1, 'auto'), SCALES.mt(1.3), SCALES.mr(0), SCALES.mb(1.3), SCALES.ml(0), theme$1.layout.radius, background, SCALES.pt(1.1), SCALES.pr(1), SCALES.pb(1.1), SCALES.pl(1), theme$1.layout.radius, theme$1.palette.accents_2, theme$1.palette.accents_2, theme$1.palette.accents_5, SCALES.font(0.8125), SCALES.font(0.32), SCALES.font(0.5), SCALES.font(0.32), SCALES.font(0.5), theme$1.layout.radius, theme$1.layout.radius]]]) + " " + (props && props.className != null && props.className || className || ""),
|
|
968
|
+
children: children
|
|
969
|
+
})), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
970
|
+
id: "2383620185",
|
|
971
|
+
dynamic: [border, SCALES.font(0.875), SCALES.width(1, 'initial'), SCALES.height(1, 'auto'), SCALES.mt(1.3), SCALES.mr(0), SCALES.mb(1.3), SCALES.ml(0), theme$1.layout.radius, background, SCALES.pt(1.1), SCALES.pr(1), SCALES.pb(1.1), SCALES.pl(1), theme$1.layout.radius, theme$1.palette.accents_2, theme$1.palette.accents_2, theme$1.palette.accents_5, SCALES.font(0.8125), SCALES.font(0.32), SCALES.font(0.5), SCALES.font(0.32), SCALES.font(0.5), theme$1.layout.radius, theme$1.layout.radius],
|
|
972
|
+
children: ".pre.__jsx-style-dynamic-selector{max-width:100%;border:1px solid ".concat(border, ";font-size:").concat(SCALES.font(0.875), ";width:").concat(SCALES.width(1, 'initial'), ";height:").concat(SCALES.height(1, 'auto'), ";margin:").concat(SCALES.mt(1.3), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(1.3), " ").concat(SCALES.ml(0), ";border-radius:").concat(theme$1.layout.radius, ";background-color:").concat(background, ";}pre.__jsx-style-dynamic-selector{max-width:100%;font-size:inherit;border:none;margin:0;line-height:1.5em;padding:").concat(SCALES.pt(1.1), " ").concat(SCALES.pr(1), " ").concat(SCALES.pb(1.1), " ").concat(SCALES.pl(1), ";}.dark.__jsx-style-dynamic-selector{color:white;background:black;}.dark.__jsx-style-dynamic-selector code.__jsx-style-dynamic-selector{color:white;}header.__jsx-style-dynamic-selector{height:auto;width:100%;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;border-radius:").concat(theme$1.layout.radius, ";background-color:transparent;}.name.__jsx-style-dynamic-selector{border:1px solid ").concat(theme$1.palette.accents_2, ";background-color:").concat(theme$1.palette.accents_2, ";color:").concat(theme$1.palette.accents_5, ";height:auto;line-height:1.35em;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;font-size:").concat(SCALES.font(0.8125), ";padding:").concat(SCALES.font(0.32), " ").concat(SCALES.font(0.5), " ").concat(SCALES.font(0.32), " ").concat(SCALES.font(0.5), ";width:auto;border-top-left-radius:calc(").concat(theme$1.layout.radius, " - 1px);border-bottom-right-radius:").concat(theme$1.layout.radius, ";}")
|
|
973
|
+
})]
|
|
974
|
+
});
|
|
931
975
|
};
|
|
932
976
|
CodeComponent.displayName = 'Code';
|
|
933
977
|
var Code = withScale(CodeComponent);
|
package/dist/col/index.js
CHANGED
|
@@ -2,16 +2,37 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var require$$1 = require('react');
|
|
6
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
6
7
|
|
|
7
|
-
function
|
|
8
|
-
return
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
function _defineProperty(e, r, t) {
|
|
9
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
10
|
+
value: t,
|
|
11
|
+
enumerable: true,
|
|
12
|
+
configurable: true,
|
|
13
|
+
writable: true
|
|
14
|
+
}) : e[r] = t, e;
|
|
15
|
+
}
|
|
16
|
+
function ownKeys(e, r) {
|
|
17
|
+
var t = Object.keys(e);
|
|
18
|
+
if (Object.getOwnPropertySymbols) {
|
|
19
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
20
|
+
r && (o = o.filter(function (r) {
|
|
21
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
22
|
+
})), t.push.apply(t, o);
|
|
23
|
+
}
|
|
24
|
+
return t;
|
|
25
|
+
}
|
|
26
|
+
function _objectSpread2(e) {
|
|
27
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
28
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
29
|
+
r % 2 ? ownKeys(Object(t), true).forEach(function (r) {
|
|
30
|
+
_defineProperty(e, r, t[r]);
|
|
31
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
32
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
return e;
|
|
15
36
|
}
|
|
16
37
|
function _objectWithoutProperties(e, t) {
|
|
17
38
|
if (null == e) return {};
|
|
@@ -33,6 +54,20 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
33
54
|
}
|
|
34
55
|
return t;
|
|
35
56
|
}
|
|
57
|
+
function _toPrimitive(t, r) {
|
|
58
|
+
if ("object" != typeof t || !t) return t;
|
|
59
|
+
var e = t[Symbol.toPrimitive];
|
|
60
|
+
if (void 0 !== e) {
|
|
61
|
+
var i = e.call(t, r);
|
|
62
|
+
if ("object" != typeof i) return i;
|
|
63
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
64
|
+
}
|
|
65
|
+
return ("string" === r ? String : Number)(t);
|
|
66
|
+
}
|
|
67
|
+
function _toPropertyKey(t) {
|
|
68
|
+
var i = _toPrimitive(t, "string");
|
|
69
|
+
return "symbol" == typeof i ? i : i + "";
|
|
70
|
+
}
|
|
36
71
|
|
|
37
72
|
function getDefaultExportFromCjs (x) {
|
|
38
73
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
@@ -45,11 +80,11 @@ var hasRequiredIndex;
|
|
|
45
80
|
function requireIndex () {
|
|
46
81
|
if (hasRequiredIndex) return index;
|
|
47
82
|
hasRequiredIndex = 1;
|
|
48
|
-
var React
|
|
83
|
+
var React = require$$1;
|
|
49
84
|
|
|
50
85
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
51
86
|
|
|
52
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React
|
|
87
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
53
88
|
|
|
54
89
|
/*
|
|
55
90
|
Based on Glamor's sheet
|
|
@@ -485,15 +520,15 @@ function requireIndex () {
|
|
|
485
520
|
throw new Error("StyleSheetRegistry: " + message + ".");
|
|
486
521
|
}
|
|
487
522
|
}
|
|
488
|
-
var StyleSheetContext = /*#__PURE__*/ React
|
|
523
|
+
var StyleSheetContext = /*#__PURE__*/ React.createContext(null);
|
|
489
524
|
StyleSheetContext.displayName = "StyleSheetContext";
|
|
490
525
|
function createStyleRegistry() {
|
|
491
526
|
return new StyleSheetRegistry();
|
|
492
527
|
}
|
|
493
528
|
function StyleRegistry(param) {
|
|
494
529
|
var configuredRegistry = param.registry, children = param.children;
|
|
495
|
-
var rootRegistry = React
|
|
496
|
-
var ref = React
|
|
530
|
+
var rootRegistry = React.useContext(StyleSheetContext);
|
|
531
|
+
var ref = React.useState(function() {
|
|
497
532
|
return rootRegistry || configuredRegistry || createStyleRegistry();
|
|
498
533
|
}), registry = ref[0];
|
|
499
534
|
return /*#__PURE__*/ React__default["default"].createElement(StyleSheetContext.Provider, {
|
|
@@ -501,16 +536,16 @@ function requireIndex () {
|
|
|
501
536
|
}, children);
|
|
502
537
|
}
|
|
503
538
|
function useStyleRegistry() {
|
|
504
|
-
return React
|
|
539
|
+
return React.useContext(StyleSheetContext);
|
|
505
540
|
}
|
|
506
541
|
|
|
507
542
|
// Opt-into the new `useInsertionEffect` API in React 18, fallback to `useLayoutEffect`.
|
|
508
543
|
// https://github.com/reactwg/react-18/discussions/110
|
|
509
|
-
var useInsertionEffect = React__default["default"].useInsertionEffect || React
|
|
544
|
+
var useInsertionEffect = React__default["default"].useInsertionEffect || React.useLayoutEffect;
|
|
510
545
|
var defaultRegistry = typeof window !== "undefined" ? createStyleRegistry() : undefined;
|
|
511
546
|
function JSXStyle(props) {
|
|
512
547
|
var registry = defaultRegistry ? defaultRegistry : useStyleRegistry();
|
|
513
|
-
var insertionEffectCalled = React
|
|
548
|
+
var insertionEffectCalled = React.useRef(false);
|
|
514
549
|
// `registry` might not exist while server-side rendering
|
|
515
550
|
if (!registry) {
|
|
516
551
|
return null;
|
|
@@ -534,7 +569,7 @@ function requireIndex () {
|
|
|
534
569
|
props.id,
|
|
535
570
|
String(props.dynamic)
|
|
536
571
|
]);
|
|
537
|
-
React
|
|
572
|
+
React.useLayoutEffect(function() {
|
|
538
573
|
if (!document.head || insertionEffectCalled.current) {
|
|
539
574
|
return;
|
|
540
575
|
}
|
|
@@ -590,12 +625,14 @@ var Col = function Col(_ref) {
|
|
|
590
625
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
591
626
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
592
627
|
var Component = component;
|
|
593
|
-
return /*#__PURE__*/
|
|
594
|
-
className: _JSXStyle.dynamic([["540733280", [100 / 24 * span, 100 / 24 * offset]]]) + " " + (props && props.className != null && props.className || "col ".concat(className))
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
628
|
+
return /*#__PURE__*/jsxRuntime.jsxs(Component, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
629
|
+
className: _JSXStyle.dynamic([["540733280", [100 / 24 * span, 100 / 24 * offset]]]) + " " + (props && props.className != null && props.className || "col ".concat(className)),
|
|
630
|
+
children: [children, /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
631
|
+
id: "540733280",
|
|
632
|
+
dynamic: [100 / 24 * span, 100 / 24 * offset],
|
|
633
|
+
children: ".col.__jsx-style-dynamic-selector{float:left;box-sizing:border-box;padding-left:calc(var(--row-gap) / 2);padding-right:calc(var(--row-gap) / 2);width:".concat(100 / 24 * span, "%;margin-left:").concat(100 / 24 * offset, "%;}")
|
|
634
|
+
})]
|
|
635
|
+
}));
|
|
599
636
|
};
|
|
600
637
|
Col.displayName = 'Col';
|
|
601
638
|
|
package/dist/collapse/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);
|
|
@@ -685,7 +720,7 @@ var _JSXStyle = /*@__PURE__*/getDefaultExportFromCjs(styleExports);
|
|
|
685
720
|
|
|
686
721
|
var CollapseIcon = function CollapseIcon(_ref) {
|
|
687
722
|
var active = _ref.active;
|
|
688
|
-
return /*#__PURE__*/
|
|
723
|
+
return /*#__PURE__*/jsxRuntime.jsxs("svg", {
|
|
689
724
|
viewBox: "0 0 24 24",
|
|
690
725
|
stroke: "currentColor",
|
|
691
726
|
strokeWidth: "1.5",
|
|
@@ -696,14 +731,16 @@ var CollapseIcon = function CollapseIcon(_ref) {
|
|
|
696
731
|
style: {
|
|
697
732
|
color: 'currentColor'
|
|
698
733
|
},
|
|
699
|
-
className: _JSXStyle.dynamic([["2249786880", [active ? '-180deg' : '0']]])
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
734
|
+
className: _JSXStyle.dynamic([["2249786880", [active ? '-180deg' : '0']]]),
|
|
735
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("path", {
|
|
736
|
+
d: "M6 9l6 6 6-6",
|
|
737
|
+
className: _JSXStyle.dynamic([["2249786880", [active ? '-180deg' : '0']]])
|
|
738
|
+
}), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
739
|
+
id: "2249786880",
|
|
740
|
+
dynamic: [active ? '-180deg' : '0'],
|
|
741
|
+
children: "svg.__jsx-style-dynamic-selector{-webkit-transition:-webkit-transform 200ms ease;-webkit-transition:transform 200ms ease;transition:transform 200ms ease;-webkit-transform:rotateZ(".concat(active ? '-180deg' : '0', ");-ms-transform:rotateZ(").concat(active ? '-180deg' : '0', ");transform:rotateZ(").concat(active ? '-180deg' : '0', ");width:1.5em;height:1.5em;}")
|
|
742
|
+
})]
|
|
743
|
+
});
|
|
707
744
|
};
|
|
708
745
|
var MemoCollapseIcon = /*#__PURE__*/React.memo(CollapseIcon);
|
|
709
746
|
|
|
@@ -927,11 +964,13 @@ var withScale = function withScale(Render) {
|
|
|
927
964
|
getScaleProps: generateGetScaleProps(props),
|
|
928
965
|
getAllScaleProps: generateGetAllScaleProps(props)
|
|
929
966
|
};
|
|
930
|
-
return /*#__PURE__*/
|
|
931
|
-
value: value
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
967
|
+
return /*#__PURE__*/jsxRuntime.jsx(ScaleContext.Provider, {
|
|
968
|
+
value: value,
|
|
969
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Render, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
970
|
+
ref: ref,
|
|
971
|
+
children: children
|
|
972
|
+
}))
|
|
973
|
+
});
|
|
935
974
|
});
|
|
936
975
|
ScaleFC.displayName = "Scale".concat(Render.displayName || 'Wrapper');
|
|
937
976
|
return ScaleFC;
|
|
@@ -979,28 +1018,36 @@ var CollapseComponent = function CollapseComponent(_ref) {
|
|
|
979
1018
|
setVisible(next);
|
|
980
1019
|
updateValues && updateValues(index, next);
|
|
981
1020
|
};
|
|
982
|
-
return /*#__PURE__*/
|
|
983
|
-
className: _JSXStyle.dynamic([["3106940587", [theme$1.palette.border, theme$1.palette.border, SCALES.font(1), SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.pt(1.2), SCALES.pr(0), SCALES.pb(1.2), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), theme$1.expressiveness.shadowSmall, theme$1.layout.radius, theme$1.layout.gap, theme$1.palette.foreground, theme$1.palette.accents_5, SCALES.pt(1.2), SCALES.pr(0), SCALES.pb(1.2), SCALES.pl(0)]]]) + " " + (props && props.className != null && props.className || classes || "")
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1021
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
1022
|
+
className: _JSXStyle.dynamic([["3106940587", [theme$1.palette.border, theme$1.palette.border, SCALES.font(1), SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.pt(1.2), SCALES.pr(0), SCALES.pb(1.2), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), theme$1.expressiveness.shadowSmall, theme$1.layout.radius, theme$1.layout.gap, theme$1.palette.foreground, theme$1.palette.accents_5, SCALES.pt(1.2), SCALES.pr(0), SCALES.pb(1.2), SCALES.pl(0)]]]) + " " + (props && props.className != null && props.className || classes || ""),
|
|
1023
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
1024
|
+
role: "button",
|
|
1025
|
+
onClick: clickHandler,
|
|
1026
|
+
className: _JSXStyle.dynamic([["3106940587", [theme$1.palette.border, theme$1.palette.border, SCALES.font(1), SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.pt(1.2), SCALES.pr(0), SCALES.pb(1.2), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), theme$1.expressiveness.shadowSmall, theme$1.layout.radius, theme$1.layout.gap, theme$1.palette.foreground, theme$1.palette.accents_5, SCALES.pt(1.2), SCALES.pr(0), SCALES.pb(1.2), SCALES.pl(0)]]]) + " " + "view",
|
|
1027
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
1028
|
+
className: _JSXStyle.dynamic([["3106940587", [theme$1.palette.border, theme$1.palette.border, SCALES.font(1), SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.pt(1.2), SCALES.pr(0), SCALES.pb(1.2), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), theme$1.expressiveness.shadowSmall, theme$1.layout.radius, theme$1.layout.gap, theme$1.palette.foreground, theme$1.palette.accents_5, SCALES.pt(1.2), SCALES.pr(0), SCALES.pb(1.2), SCALES.pl(0)]]]) + " " + "title",
|
|
1029
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("h3", {
|
|
1030
|
+
className: _JSXStyle.dynamic([["3106940587", [theme$1.palette.border, theme$1.palette.border, SCALES.font(1), SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.pt(1.2), SCALES.pr(0), SCALES.pb(1.2), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), theme$1.expressiveness.shadowSmall, theme$1.layout.radius, theme$1.layout.gap, theme$1.palette.foreground, theme$1.palette.accents_5, SCALES.pt(1.2), SCALES.pr(0), SCALES.pb(1.2), SCALES.pl(0)]]]),
|
|
1031
|
+
children: title
|
|
1032
|
+
}), " ", /*#__PURE__*/jsxRuntime.jsx(MemoCollapseIcon, {
|
|
1033
|
+
active: visible
|
|
1034
|
+
})]
|
|
1035
|
+
}), subtitle && /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
1036
|
+
className: _JSXStyle.dynamic([["3106940587", [theme$1.palette.border, theme$1.palette.border, SCALES.font(1), SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.pt(1.2), SCALES.pr(0), SCALES.pb(1.2), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), theme$1.expressiveness.shadowSmall, theme$1.layout.radius, theme$1.layout.gap, theme$1.palette.foreground, theme$1.palette.accents_5, SCALES.pt(1.2), SCALES.pr(0), SCALES.pb(1.2), SCALES.pl(0)]]]) + " " + "subtitle",
|
|
1037
|
+
children: subtitle
|
|
1038
|
+
})]
|
|
1039
|
+
}), /*#__PURE__*/jsxRuntime.jsx(theme.Expand, {
|
|
1040
|
+
isExpanded: visible,
|
|
1041
|
+
children: /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
1042
|
+
className: _JSXStyle.dynamic([["3106940587", [theme$1.palette.border, theme$1.palette.border, SCALES.font(1), SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.pt(1.2), SCALES.pr(0), SCALES.pb(1.2), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), theme$1.expressiveness.shadowSmall, theme$1.layout.radius, theme$1.layout.gap, theme$1.palette.foreground, theme$1.palette.accents_5, SCALES.pt(1.2), SCALES.pr(0), SCALES.pb(1.2), SCALES.pl(0)]]]) + " " + "content",
|
|
1043
|
+
children: children
|
|
1044
|
+
})
|
|
1045
|
+
}), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
1046
|
+
id: "3106940587",
|
|
1047
|
+
dynamic: [theme$1.palette.border, theme$1.palette.border, SCALES.font(1), SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.pt(1.2), SCALES.pr(0), SCALES.pb(1.2), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), theme$1.expressiveness.shadowSmall, theme$1.layout.radius, theme$1.layout.gap, theme$1.palette.foreground, theme$1.palette.accents_5, SCALES.pt(1.2), SCALES.pr(0), SCALES.pb(1.2), SCALES.pl(0)],
|
|
1048
|
+
children: ".collapse.__jsx-style-dynamic-selector{border-top:1px solid ".concat(theme$1.palette.border, ";border-bottom:1px solid ").concat(theme$1.palette.border, ";font-size:").concat(SCALES.font(1), ";width:").concat(SCALES.width(1, 'auto'), ";height:").concat(SCALES.height(1, 'auto'), ";padding:").concat(SCALES.pt(1.2), " ").concat(SCALES.pr(0), " ").concat(SCALES.pb(1.2), " ").concat(SCALES.pl(0), ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0), ";}.shadow.__jsx-style-dynamic-selector{box-shadow:").concat(theme$1.expressiveness.shadowSmall, ";border:none;border-radius:").concat(theme$1.layout.radius, ";padding:").concat(theme$1.layout.gap, ";}.view.__jsx-style-dynamic-selector{cursor:pointer;outline:none;}.title.__jsx-style-dynamic-selector{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;color:").concat(theme$1.palette.foreground, ";}.title.__jsx-style-dynamic-selector h3.__jsx-style-dynamic-selector{margin:0;font-size:1.5em;}.subtitle.__jsx-style-dynamic-selector{color:").concat(theme$1.palette.accents_5, ";margin:0;}.subtitle.__jsx-style-dynamic-selector>*{margin:0;}.content.__jsx-style-dynamic-selector{font-size:inherit;line-height:1.6em;padding:").concat(SCALES.pt(1.2), " ").concat(SCALES.pr(0), " ").concat(SCALES.pb(1.2), " ").concat(SCALES.pl(0), ";}.content.__jsx-style-dynamic-selector>*:first-child{margin-top:0;}.content.__jsx-style-dynamic-selector>*:last-child{margin-bottom:0;}")
|
|
1049
|
+
})]
|
|
1050
|
+
}));
|
|
1004
1051
|
};
|
|
1005
1052
|
CollapseComponent.displayName = 'Collapse';
|
|
1006
1053
|
var Collapse = withScale(CollapseComponent);
|
|
@@ -1049,14 +1096,17 @@ var CollapseGroupComponent = function CollapseGroupComponent(_ref) {
|
|
|
1049
1096
|
var hasIndexChildren = React.useMemo(function () {
|
|
1050
1097
|
return setChildrenIndex(children, [Collapse]);
|
|
1051
1098
|
}, [children]);
|
|
1052
|
-
return /*#__PURE__*/
|
|
1053
|
-
value: initialValue
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1099
|
+
return /*#__PURE__*/jsxRuntime.jsx(CollapseContext.Provider, {
|
|
1100
|
+
value: initialValue,
|
|
1101
|
+
children: /*#__PURE__*/jsxRuntime.jsxs("div", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
1102
|
+
className: _JSXStyle.dynamic([["2415399140", [SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0.6), SCALES.pb(0), SCALES.pl(0.6), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0)]]]) + " " + (props && props.className != null && props.className || classes || ""),
|
|
1103
|
+
children: [hasIndexChildren, /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
1104
|
+
id: "2415399140",
|
|
1105
|
+
dynamic: [SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0.6), SCALES.pb(0), SCALES.pl(0.6), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0)],
|
|
1106
|
+
children: ".collapse-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.6), " ").concat(SCALES.pb(0), " ").concat(SCALES.pl(0.6), ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0), ";}.collapse-group.__jsx-style-dynamic-selector>div + div{border-top:none;}")
|
|
1107
|
+
})]
|
|
1108
|
+
}))
|
|
1109
|
+
});
|
|
1060
1110
|
};
|
|
1061
1111
|
CollapseGroupComponent.displayName = 'CollapseGroup';
|
|
1062
1112
|
var CollapseGroup = withScale(CollapseGroupComponent);
|