@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.
Files changed (141) hide show
  1. package/dist/auto-complete/index.js +1273 -404
  2. package/dist/avatar/index.js +88 -49
  3. package/dist/badge/index.js +69 -27
  4. package/dist/breadcrumbs/index.js +107 -56
  5. package/dist/button/button.icon.d.ts +3 -16
  6. package/dist/button/button.small.d.ts +3 -16
  7. package/dist/button/index.js +143 -157
  8. package/dist/button-dropdown/index.js +96 -83
  9. package/dist/button-group/index.js +61 -21
  10. package/dist/capacity/index.js +61 -22
  11. package/dist/card/index.js +147 -123
  12. package/dist/carousal/index.js +349 -330
  13. package/dist/checkbox/index.js +72 -67
  14. package/dist/circular-progress/CircularProgress.d.ts +17 -0
  15. package/dist/circular-progress/index.d.ts +3 -4
  16. package/dist/circular-progress/index.js +713 -336
  17. package/dist/circular-progress/useCircularProgress.d.ts +12 -0
  18. package/dist/code/index.js +70 -26
  19. package/dist/col/index.js +61 -24
  20. package/dist/collapse/index.js +102 -52
  21. package/dist/container/index.js +187 -190
  22. package/dist/copy-to-clipboard/index.js +158 -210
  23. package/dist/description/index.js +64 -23
  24. package/dist/display/index.js +64 -23
  25. package/dist/divider/index.js +62 -22
  26. package/dist/dot/index.js +63 -23
  27. package/dist/drawer/index.js +74 -61
  28. package/dist/fieldset/index.js +127 -63
  29. package/dist/form/index.js +15 -40
  30. package/dist/grid/index.js +74 -29
  31. package/dist/html-renderer/index.js +3 -2
  32. package/dist/image/index.js +163 -104
  33. package/dist/index.d.ts +2 -1
  34. package/dist/index.js +5240 -4755
  35. package/dist/input/index.js +1183 -277
  36. package/dist/keyboard/index.js +73 -29
  37. package/dist/linear-progress/index.js +27 -24
  38. package/dist/link/index.js +78 -36
  39. package/dist/list/index.js +118 -63
  40. package/dist/loadable/index.js +76 -27
  41. package/dist/loading/index.js +70 -29
  42. package/dist/menu/index.js +53 -47
  43. package/dist/modal/index.js +225 -178
  44. package/dist/note/index.js +64 -23
  45. package/dist/notetip/index.js +54 -45
  46. package/dist/notetip/note-tip.d.ts +2 -0
  47. package/dist/page/index.js +102 -51
  48. package/dist/pagination/index.js +181 -124
  49. package/dist/placeholder/index.js +554 -538
  50. package/dist/popover/index.js +94 -81
  51. package/dist/progress/index.js +66 -27
  52. package/dist/radio/index.js +94 -48
  53. package/dist/rating/index.js +78 -38
  54. package/dist/row/index.js +62 -25
  55. package/dist/search-bar/index.js +172 -162
  56. package/dist/select/index.js +1098 -163
  57. package/dist/select/select.d.ts +2 -0
  58. package/dist/slider/index.js +91 -47
  59. package/dist/snippet/index.js +39 -39
  60. package/dist/spacer/index.js +58 -19
  61. package/dist/spinner/index.js +69 -28
  62. package/dist/swipe/index.js +28 -13
  63. package/dist/table/index.js +4162 -3863
  64. package/dist/table/table-body.d.ts +4 -3
  65. package/dist/table/table-cell.d.ts +4 -2
  66. package/dist/table/table-types.d.ts +2 -0
  67. package/dist/table/table.d.ts +5 -1
  68. package/dist/tabs/index.js +61 -59
  69. package/dist/tag/index.js +16 -20
  70. package/dist/text/index.js +187 -184
  71. package/dist/text/text.d.ts +3 -0
  72. package/dist/textarea/index.js +916 -36
  73. package/dist/textarea/textarea.d.ts +3 -0
  74. package/dist/toggle/index.js +75 -33
  75. package/dist/tooltip/index.d.ts +1 -2
  76. package/dist/tooltip/index.js +59 -53
  77. package/dist/tooltip/tooltip-content.d.ts +1 -1
  78. package/dist/tooltip/tooltip-small.d.ts +2 -5
  79. package/dist/tooltip/tooltip.d.ts +2 -1
  80. package/dist/tree/index.js +176 -115
  81. package/dist/use-scale/index.js +50 -13
  82. package/dist/user/index.js +152 -100
  83. package/esm/avatar/avatar.js +8 -6
  84. package/esm/button/button.icon.d.ts +3 -16
  85. package/esm/button/button.icon.js +22 -22
  86. package/esm/button/button.js +5 -5
  87. package/esm/button/button.small.d.ts +3 -16
  88. package/esm/button/button.small.js +20 -23
  89. package/esm/circular-progress/CircularProgress.d.ts +17 -0
  90. package/esm/circular-progress/CircularProgress.js +110 -0
  91. package/esm/circular-progress/index.d.ts +3 -4
  92. package/esm/circular-progress/index.js +3 -4
  93. package/esm/circular-progress/useCircularProgress.d.ts +12 -0
  94. package/esm/circular-progress/useCircularProgress.js +35 -0
  95. package/esm/index.d.ts +2 -1
  96. package/esm/index.js +1 -1
  97. package/esm/input/input-field.js +11 -9
  98. package/esm/list/list-item.js +11 -11
  99. package/esm/notetip/note-tip.d.ts +2 -0
  100. package/esm/notetip/note-tip.js +8 -5
  101. package/esm/pagination/pagination-item.js +6 -6
  102. package/esm/select/select.d.ts +2 -0
  103. package/esm/select/select.js +15 -2
  104. package/esm/skeleton/index.js +9 -4
  105. package/esm/table/table-body.d.ts +4 -3
  106. package/esm/table/table-body.js +25 -15
  107. package/esm/table/table-cell.d.ts +4 -2
  108. package/esm/table/table-cell.js +19 -3
  109. package/esm/table/table-types.d.ts +2 -0
  110. package/esm/table/table.d.ts +5 -1
  111. package/esm/table/table.js +52 -25
  112. package/esm/text/text.d.ts +3 -0
  113. package/esm/text/text.js +9 -2
  114. package/esm/textarea/textarea.d.ts +3 -0
  115. package/esm/textarea/textarea.js +19 -2
  116. package/esm/tooltip/index.d.ts +1 -2
  117. package/esm/tooltip/tooltip-content.d.ts +1 -1
  118. package/esm/tooltip/tooltip-content.js +5 -5
  119. package/esm/tooltip/tooltip-small.d.ts +2 -5
  120. package/esm/tooltip/tooltip-small.js +0 -1
  121. package/esm/tooltip/tooltip.d.ts +2 -1
  122. package/esm/tooltip/tooltip.js +6 -5
  123. package/package.json +3 -3
  124. package/dist/circular-progress/CircularProgressbar.d.ts +0 -10
  125. package/dist/circular-progress/CircularProgressbarWithChildren.d.ts +0 -7
  126. package/dist/circular-progress/Path.d.ts +0 -9
  127. package/dist/circular-progress/buildStyles.d.ts +0 -12
  128. package/dist/circular-progress/constants.d.ts +0 -5
  129. package/dist/circular-progress/types.d.ts +0 -50
  130. package/esm/circular-progress/CircularProgressbar.d.ts +0 -10
  131. package/esm/circular-progress/CircularProgressbar.js +0 -118
  132. package/esm/circular-progress/CircularProgressbarWithChildren.d.ts +0 -7
  133. package/esm/circular-progress/CircularProgressbarWithChildren.js +0 -32
  134. package/esm/circular-progress/Path.d.ts +0 -9
  135. package/esm/circular-progress/Path.js +0 -52
  136. package/esm/circular-progress/buildStyles.d.ts +0 -12
  137. package/esm/circular-progress/buildStyles.js +0 -45
  138. package/esm/circular-progress/constants.d.ts +0 -5
  139. package/esm/circular-progress/constants.js +0 -5
  140. package/esm/circular-progress/types.d.ts +0 -50
  141. 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 {};
@@ -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 _extends() {
65
- return _extends = Object.assign ? Object.assign.bind() : function (n) {
66
- for (var e = 1; e < arguments.length; e++) {
67
- var t = arguments[e];
68
- for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
69
- }
70
- return n;
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__*/React.createElement(ScaleContext.Provider, {
847
- value: value
848
- }, /*#__PURE__*/React.createElement(Render, _extends({}, props, {
849
- ref: ref
850
- }), children));
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__*/React.createElement("code", props, children);
919
- return /*#__PURE__*/React.createElement("div", {
920
- 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"
921
- }, name && /*#__PURE__*/React.createElement("header", {
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
- }, /*#__PURE__*/React.createElement("div", {
924
- 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"
925
- }, name)), /*#__PURE__*/React.createElement("pre", _extends({}, props, {
926
- 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 || "")
927
- }), children), /*#__PURE__*/React.createElement(_JSXStyle, {
928
- id: "2383620185",
929
- 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]
930
- }, ".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, ";}")));
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 React = require('react');
5
+ var require$$1 = require('react');
6
+ var jsxRuntime = require('react/jsx-runtime');
6
7
 
7
- function _extends() {
8
- return _extends = Object.assign ? Object.assign.bind() : function (n) {
9
- for (var e = 1; e < arguments.length; e++) {
10
- var t = arguments[e];
11
- for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
12
- }
13
- return n;
14
- }, _extends.apply(null, arguments);
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$1 = 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$1);
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$1.createContext(null);
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$1.useContext(StyleSheetContext);
496
- var ref = React$1.useState(function() {
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$1.useContext(StyleSheetContext);
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$1.useLayoutEffect;
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$1.useRef(false);
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$1.useLayoutEffect(function() {
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__*/React.createElement(Component, _extends({}, props, {
594
- className: _JSXStyle.dynamic([["540733280", [100 / 24 * span, 100 / 24 * offset]]]) + " " + (props && props.className != null && props.className || "col ".concat(className))
595
- }), children, /*#__PURE__*/React.createElement(_JSXStyle, {
596
- id: "540733280",
597
- dynamic: [100 / 24 * span, 100 / 24 * offset]
598
- }, ".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, "%;}")));
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
 
@@ -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 _extends() {
68
- return _extends = Object.assign ? Object.assign.bind() : function (n) {
69
- for (var e = 1; e < arguments.length; e++) {
70
- var t = arguments[e];
71
- for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
72
- }
73
- return n;
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__*/React.createElement("svg", {
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
- }, /*#__PURE__*/React.createElement("path", {
701
- d: "M6 9l6 6 6-6",
702
- className: _JSXStyle.dynamic([["2249786880", [active ? '-180deg' : '0']]])
703
- }), /*#__PURE__*/React.createElement(_JSXStyle, {
704
- id: "2249786880",
705
- dynamic: [active ? '-180deg' : '0']
706
- }, "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;}")));
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__*/React.createElement(ScaleContext.Provider, {
931
- value: value
932
- }, /*#__PURE__*/React.createElement(Render, _extends({}, props, {
933
- ref: ref
934
- }), children));
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__*/React.createElement("div", _extends({}, props, {
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
- }), /*#__PURE__*/React.createElement("div", {
985
- role: "button",
986
- onClick: clickHandler,
987
- 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"
988
- }, /*#__PURE__*/React.createElement("div", {
989
- 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"
990
- }, /*#__PURE__*/React.createElement("h3", {
991
- 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)]]])
992
- }, title), " ", /*#__PURE__*/React.createElement(MemoCollapseIcon, {
993
- active: visible
994
- })), subtitle && /*#__PURE__*/React.createElement("div", {
995
- 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"
996
- }, subtitle)), /*#__PURE__*/React.createElement(theme.Expand, {
997
- isExpanded: visible
998
- }, /*#__PURE__*/React.createElement("div", {
999
- 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"
1000
- }, children)), /*#__PURE__*/React.createElement(_JSXStyle, {
1001
- id: "3106940587",
1002
- 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)]
1003
- }, ".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;}")));
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__*/React.createElement(CollapseContext.Provider, {
1053
- value: initialValue
1054
- }, /*#__PURE__*/React.createElement("div", _extends({}, props, {
1055
- 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 || "")
1056
- }), hasIndexChildren, /*#__PURE__*/React.createElement(_JSXStyle, {
1057
- id: "2415399140",
1058
- 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)]
1059
- }, ".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;}"))));
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);