@helpdice/ui 1.6.9 → 1.7.0

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 (117) hide show
  1. package/dist/Placeholder/index.js +37 -16
  2. package/dist/auto-complete/index.js +37 -15
  3. package/dist/avatar/avatar.d.ts +2 -1
  4. package/dist/avatar/index.js +33 -13
  5. package/dist/badge/index.js +30 -11
  6. package/dist/breadcrumbs/index.js +30 -11
  7. package/dist/button/index.js +32 -12
  8. package/dist/button-dropdown/index.js +30 -11
  9. package/dist/button-group/index.js +30 -11
  10. package/dist/capacity/index.js +30 -11
  11. package/dist/card/index.js +30 -11
  12. package/dist/checkbox/index.js +30 -11
  13. package/dist/code/index.js +30 -11
  14. package/dist/col/index.js +21 -2
  15. package/dist/collapse/index.js +30 -11
  16. package/dist/css-baseline/index.js +24 -5
  17. package/dist/description/index.js +30 -11
  18. package/dist/display/index.js +30 -11
  19. package/dist/divider/index.js +30 -11
  20. package/dist/dot/index.js +30 -11
  21. package/dist/drawer/index.js +30 -11
  22. package/dist/fieldset/index.js +30 -11
  23. package/dist/grid/grid-container.d.ts +3 -3
  24. package/dist/grid/grid.d.ts +3 -3
  25. package/dist/grid/index.js +30 -11
  26. package/dist/image/index.js +30 -11
  27. package/dist/index.d.ts +3 -3
  28. package/dist/index.js +10950 -1486
  29. package/dist/input/index.js +34 -13
  30. package/dist/keyboard/index.js +30 -11
  31. package/dist/link/index.js +30 -11
  32. package/dist/list/index.d.ts +9 -0
  33. package/dist/list/index.js +1287 -0
  34. package/dist/list/list-item.d.ts +53 -0
  35. package/dist/list/list.d.ts +44 -0
  36. package/dist/loading/index.js +30 -11
  37. package/dist/menu/index.d.ts +2 -0
  38. package/dist/menu/index.js +10354 -0
  39. package/dist/menu/menu.d.ts +9 -0
  40. package/dist/modal/index.js +34 -13
  41. package/dist/note/index.js +30 -11
  42. package/dist/page/index.js +30 -11
  43. package/dist/pagination/index.js +30 -11
  44. package/dist/popover/index.js +30 -11
  45. package/dist/progress/index.js +30 -11
  46. package/dist/radio/index.js +30 -11
  47. package/dist/rating/index.js +30 -11
  48. package/dist/row/index.js +21 -2
  49. package/dist/search-bar/index.js +31 -12
  50. package/dist/select/index.js +30 -11
  51. package/dist/slider/index.js +30 -11
  52. package/dist/snippet/index.js +30 -11
  53. package/dist/spacer/index.js +30 -11
  54. package/dist/spinner/index.js +30 -11
  55. package/dist/table/index.d.ts +0 -1
  56. package/dist/table/index.js +1663 -2242
  57. package/dist/tabs/index.js +30 -11
  58. package/dist/tag/index.js +30 -11
  59. package/dist/text/index.js +37 -16
  60. package/dist/text/text.d.ts +1 -0
  61. package/dist/textarea/index.js +30 -11
  62. package/dist/toggle/index.js +30 -11
  63. package/dist/tooltip/index.js +30 -11
  64. package/dist/tree/index.js +21 -2
  65. package/dist/ui-provider/index.js +32 -12
  66. package/dist/use-scale/index.js +9 -9
  67. package/dist/user/index.js +33 -13
  68. package/esm/auto-complete/auto-complete.js +3 -2
  69. package/esm/avatar/avatar.d.ts +2 -1
  70. package/esm/avatar/avatar.js +3 -2
  71. package/esm/button/button.js +2 -1
  72. package/esm/code-block/index.js +17 -12
  73. package/esm/css-baseline/css-baseline.js +3 -3
  74. package/esm/form/FormWrapper.js +4 -4
  75. package/esm/grid/grid-container.d.ts +3 -3
  76. package/esm/grid/grid.d.ts +3 -3
  77. package/esm/index.d.ts +3 -3
  78. package/esm/index.js +3 -3
  79. package/esm/input/input.js +2 -1
  80. package/esm/input/password.js +2 -1
  81. package/esm/link/link.js +2 -2
  82. package/esm/list/index.d.ts +9 -0
  83. package/esm/list/index.js +8 -0
  84. package/esm/list/list-item.d.ts +53 -0
  85. package/esm/list/list-item.js +84 -0
  86. package/esm/list/list.d.ts +44 -0
  87. package/esm/list/list.js +29 -0
  88. package/esm/login-with/LoginSocialApple/index.js +17 -17
  89. package/esm/login-with/LoginSocialGithub/index.js +2 -2
  90. package/esm/login-with/LoginSocialInstagram/index.js +2 -2
  91. package/esm/login-with/LoginSocialLinkedin/index.js +2 -2
  92. package/esm/login-with/LoginSocialMicrosoft/index.js +2 -2
  93. package/esm/login-with/LoginSocialPinterest/index.js +9 -9
  94. package/esm/login-with/LoginSocialTiktok/index.js +2 -2
  95. package/esm/login-with/LoginSocialTwitter/index.js +11 -11
  96. package/esm/menu/index.d.ts +2 -0
  97. package/esm/menu/index.js +2 -0
  98. package/esm/menu/menu.d.ts +9 -0
  99. package/esm/menu/menu.js +92 -0
  100. package/esm/modal/modal-action.js +2 -1
  101. package/esm/table/index.d.ts +0 -1
  102. package/esm/table/index.js +0 -1
  103. package/esm/table/table-body.js +4 -23
  104. package/esm/text/child.js +3 -3
  105. package/esm/text/text.d.ts +1 -0
  106. package/esm/text/text.js +4 -2
  107. package/esm/tooltip/__test__/index.test.js +28 -28
  108. package/package.json +15 -11
  109. package/dist/cart/index.d.ts +0 -72
  110. package/dist/cart/useLocalStorage.d.ts +0 -1
  111. package/dist/table/data-table.d.ts +0 -44
  112. package/esm/cart/index.d.ts +0 -72
  113. package/esm/cart/index.js +0 -265
  114. package/esm/cart/useLocalStorage.d.ts +0 -1
  115. package/esm/cart/useLocalStorage.js +0 -29
  116. package/esm/table/data-table.d.ts +0 -44
  117. package/esm/table/data-table.js +0 -451
@@ -0,0 +1,1287 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var React = require('react');
6
+
7
+ function getDefaultExportFromCjs (x) {
8
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
9
+ }
10
+
11
+ var index = {};
12
+
13
+ var hasRequiredIndex;
14
+
15
+ function requireIndex () {
16
+ if (hasRequiredIndex) return index;
17
+ hasRequiredIndex = 1;
18
+ var React$1 = React;
19
+
20
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
21
+
22
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React$1);
23
+
24
+ /*
25
+ Based on Glamor's sheet
26
+ https://github.com/threepointone/glamor/blob/667b480d31b3721a905021b26e1290ce92ca2879/src/sheet.js
27
+ */ function _defineProperties(target, props) {
28
+ for(var i = 0; i < props.length; i++){
29
+ var descriptor = props[i];
30
+ descriptor.enumerable = descriptor.enumerable || false;
31
+ descriptor.configurable = true;
32
+ if ("value" in descriptor) descriptor.writable = true;
33
+ Object.defineProperty(target, descriptor.key, descriptor);
34
+ }
35
+ }
36
+ function _createClass(Constructor, protoProps, staticProps) {
37
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
38
+ return Constructor;
39
+ }
40
+ var isProd = typeof process !== "undefined" && process.env && process.env.NODE_ENV === "production";
41
+ var isString = function(o) {
42
+ return Object.prototype.toString.call(o) === "[object String]";
43
+ };
44
+ var StyleSheet = /*#__PURE__*/ function() {
45
+ function StyleSheet(param) {
46
+ var ref = param === void 0 ? {} : param, _name = ref.name, name = _name === void 0 ? "stylesheet" : _name, _optimizeForSpeed = ref.optimizeForSpeed, optimizeForSpeed = _optimizeForSpeed === void 0 ? isProd : _optimizeForSpeed;
47
+ invariant$1(isString(name), "`name` must be a string");
48
+ this._name = name;
49
+ this._deletedRulePlaceholder = "#" + name + "-deleted-rule____{}";
50
+ invariant$1(typeof optimizeForSpeed === "boolean", "`optimizeForSpeed` must be a boolean");
51
+ this._optimizeForSpeed = optimizeForSpeed;
52
+ this._serverSheet = undefined;
53
+ this._tags = [];
54
+ this._injected = false;
55
+ this._rulesCount = 0;
56
+ var node = typeof window !== "undefined" && document.querySelector('meta[property="csp-nonce"]');
57
+ this._nonce = node ? node.getAttribute("content") : null;
58
+ }
59
+ var _proto = StyleSheet.prototype;
60
+ _proto.setOptimizeForSpeed = function setOptimizeForSpeed(bool) {
61
+ invariant$1(typeof bool === "boolean", "`setOptimizeForSpeed` accepts a boolean");
62
+ invariant$1(this._rulesCount === 0, "optimizeForSpeed cannot be when rules have already been inserted");
63
+ this.flush();
64
+ this._optimizeForSpeed = bool;
65
+ this.inject();
66
+ };
67
+ _proto.isOptimizeForSpeed = function isOptimizeForSpeed() {
68
+ return this._optimizeForSpeed;
69
+ };
70
+ _proto.inject = function inject() {
71
+ var _this = this;
72
+ invariant$1(!this._injected, "sheet already injected");
73
+ this._injected = true;
74
+ if (typeof window !== "undefined" && this._optimizeForSpeed) {
75
+ this._tags[0] = this.makeStyleTag(this._name);
76
+ this._optimizeForSpeed = "insertRule" in this.getSheet();
77
+ if (!this._optimizeForSpeed) {
78
+ if (!isProd) {
79
+ console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode.");
80
+ }
81
+ this.flush();
82
+ this._injected = true;
83
+ }
84
+ return;
85
+ }
86
+ this._serverSheet = {
87
+ cssRules: [],
88
+ insertRule: function(rule, index) {
89
+ if (typeof index === "number") {
90
+ _this._serverSheet.cssRules[index] = {
91
+ cssText: rule
92
+ };
93
+ } else {
94
+ _this._serverSheet.cssRules.push({
95
+ cssText: rule
96
+ });
97
+ }
98
+ return index;
99
+ },
100
+ deleteRule: function(index) {
101
+ _this._serverSheet.cssRules[index] = null;
102
+ }
103
+ };
104
+ };
105
+ _proto.getSheetForTag = function getSheetForTag(tag) {
106
+ if (tag.sheet) {
107
+ return tag.sheet;
108
+ }
109
+ // this weirdness brought to you by firefox
110
+ for(var i = 0; i < document.styleSheets.length; i++){
111
+ if (document.styleSheets[i].ownerNode === tag) {
112
+ return document.styleSheets[i];
113
+ }
114
+ }
115
+ };
116
+ _proto.getSheet = function getSheet() {
117
+ return this.getSheetForTag(this._tags[this._tags.length - 1]);
118
+ };
119
+ _proto.insertRule = function insertRule(rule, index) {
120
+ invariant$1(isString(rule), "`insertRule` accepts only strings");
121
+ if (typeof window === "undefined") {
122
+ if (typeof index !== "number") {
123
+ index = this._serverSheet.cssRules.length;
124
+ }
125
+ this._serverSheet.insertRule(rule, index);
126
+ return this._rulesCount++;
127
+ }
128
+ if (this._optimizeForSpeed) {
129
+ var sheet = this.getSheet();
130
+ if (typeof index !== "number") {
131
+ index = sheet.cssRules.length;
132
+ }
133
+ // this weirdness for perf, and chrome's weird bug
134
+ // https://stackoverflow.com/questions/20007992/chrome-suddenly-stopped-accepting-insertrule
135
+ try {
136
+ sheet.insertRule(rule, index);
137
+ } catch (error) {
138
+ if (!isProd) {
139
+ console.warn("StyleSheet: illegal rule: \n\n" + rule + "\n\nSee https://stackoverflow.com/q/20007992 for more info");
140
+ }
141
+ return -1;
142
+ }
143
+ } else {
144
+ var insertionPoint = this._tags[index];
145
+ this._tags.push(this.makeStyleTag(this._name, rule, insertionPoint));
146
+ }
147
+ return this._rulesCount++;
148
+ };
149
+ _proto.replaceRule = function replaceRule(index, rule) {
150
+ if (this._optimizeForSpeed || typeof window === "undefined") {
151
+ var sheet = typeof window !== "undefined" ? this.getSheet() : this._serverSheet;
152
+ if (!rule.trim()) {
153
+ rule = this._deletedRulePlaceholder;
154
+ }
155
+ if (!sheet.cssRules[index]) {
156
+ // @TBD Should we throw an error?
157
+ return index;
158
+ }
159
+ sheet.deleteRule(index);
160
+ try {
161
+ sheet.insertRule(rule, index);
162
+ } catch (error) {
163
+ if (!isProd) {
164
+ console.warn("StyleSheet: illegal rule: \n\n" + rule + "\n\nSee https://stackoverflow.com/q/20007992 for more info");
165
+ }
166
+ // In order to preserve the indices we insert a deleteRulePlaceholder
167
+ sheet.insertRule(this._deletedRulePlaceholder, index);
168
+ }
169
+ } else {
170
+ var tag = this._tags[index];
171
+ invariant$1(tag, "old rule at index `" + index + "` not found");
172
+ tag.textContent = rule;
173
+ }
174
+ return index;
175
+ };
176
+ _proto.deleteRule = function deleteRule(index) {
177
+ if (typeof window === "undefined") {
178
+ this._serverSheet.deleteRule(index);
179
+ return;
180
+ }
181
+ if (this._optimizeForSpeed) {
182
+ this.replaceRule(index, "");
183
+ } else {
184
+ var tag = this._tags[index];
185
+ invariant$1(tag, "rule at index `" + index + "` not found");
186
+ tag.parentNode.removeChild(tag);
187
+ this._tags[index] = null;
188
+ }
189
+ };
190
+ _proto.flush = function flush() {
191
+ this._injected = false;
192
+ this._rulesCount = 0;
193
+ if (typeof window !== "undefined") {
194
+ this._tags.forEach(function(tag) {
195
+ return tag && tag.parentNode.removeChild(tag);
196
+ });
197
+ this._tags = [];
198
+ } else {
199
+ // simpler on server
200
+ this._serverSheet.cssRules = [];
201
+ }
202
+ };
203
+ _proto.cssRules = function cssRules() {
204
+ var _this = this;
205
+ if (typeof window === "undefined") {
206
+ return this._serverSheet.cssRules;
207
+ }
208
+ return this._tags.reduce(function(rules, tag) {
209
+ if (tag) {
210
+ rules = rules.concat(Array.prototype.map.call(_this.getSheetForTag(tag).cssRules, function(rule) {
211
+ return rule.cssText === _this._deletedRulePlaceholder ? null : rule;
212
+ }));
213
+ } else {
214
+ rules.push(null);
215
+ }
216
+ return rules;
217
+ }, []);
218
+ };
219
+ _proto.makeStyleTag = function makeStyleTag(name, cssString, relativeToTag) {
220
+ if (cssString) {
221
+ invariant$1(isString(cssString), "makeStyleTag accepts only strings as second parameter");
222
+ }
223
+ var tag = document.createElement("style");
224
+ if (this._nonce) tag.setAttribute("nonce", this._nonce);
225
+ tag.type = "text/css";
226
+ tag.setAttribute("data-" + name, "");
227
+ if (cssString) {
228
+ tag.appendChild(document.createTextNode(cssString));
229
+ }
230
+ var head = document.head || document.getElementsByTagName("head")[0];
231
+ if (relativeToTag) {
232
+ head.insertBefore(tag, relativeToTag);
233
+ } else {
234
+ head.appendChild(tag);
235
+ }
236
+ return tag;
237
+ };
238
+ _createClass(StyleSheet, [
239
+ {
240
+ key: "length",
241
+ get: function get() {
242
+ return this._rulesCount;
243
+ }
244
+ }
245
+ ]);
246
+ return StyleSheet;
247
+ }();
248
+ function invariant$1(condition, message) {
249
+ if (!condition) {
250
+ throw new Error("StyleSheet: " + message + ".");
251
+ }
252
+ }
253
+
254
+ function hash(str) {
255
+ var _$hash = 5381, i = str.length;
256
+ while(i){
257
+ _$hash = _$hash * 33 ^ str.charCodeAt(--i);
258
+ }
259
+ /* JavaScript does bitwise operations (like XOR, above) on 32-bit signed
260
+ * integers. Since we want the results to be always positive, convert the
261
+ * signed int to an unsigned by doing an unsigned bitshift. */ return _$hash >>> 0;
262
+ }
263
+ var stringHash = hash;
264
+
265
+ var sanitize = function(rule) {
266
+ return rule.replace(/\/style/gi, "\\/style");
267
+ };
268
+ var cache = {};
269
+ /**
270
+ * computeId
271
+ *
272
+ * Compute and memoize a jsx id from a basedId and optionally props.
273
+ */ function computeId(baseId, props) {
274
+ if (!props) {
275
+ return "jsx-" + baseId;
276
+ }
277
+ var propsToString = String(props);
278
+ var key = baseId + propsToString;
279
+ if (!cache[key]) {
280
+ cache[key] = "jsx-" + stringHash(baseId + "-" + propsToString);
281
+ }
282
+ return cache[key];
283
+ }
284
+ /**
285
+ * computeSelector
286
+ *
287
+ * Compute and memoize dynamic selectors.
288
+ */ function computeSelector(id, css) {
289
+ var selectoPlaceholderRegexp = /__jsx-style-dynamic-selector/g;
290
+ // Sanitize SSR-ed CSS.
291
+ // Client side code doesn't need to be sanitized since we use
292
+ // document.createTextNode (dev) and the CSSOM api sheet.insertRule (prod).
293
+ if (typeof window === "undefined") {
294
+ css = sanitize(css);
295
+ }
296
+ var idcss = id + css;
297
+ if (!cache[idcss]) {
298
+ cache[idcss] = css.replace(selectoPlaceholderRegexp, id);
299
+ }
300
+ return cache[idcss];
301
+ }
302
+
303
+ function mapRulesToStyle(cssRules, options) {
304
+ if (options === void 0) options = {};
305
+ return cssRules.map(function(args) {
306
+ var id = args[0];
307
+ var css = args[1];
308
+ return /*#__PURE__*/ React__default["default"].createElement("style", {
309
+ id: "__" + id,
310
+ // Avoid warnings upon render with a key
311
+ key: "__" + id,
312
+ nonce: options.nonce ? options.nonce : undefined,
313
+ dangerouslySetInnerHTML: {
314
+ __html: css
315
+ }
316
+ });
317
+ });
318
+ }
319
+ var StyleSheetRegistry = /*#__PURE__*/ function() {
320
+ function StyleSheetRegistry(param) {
321
+ var ref = param === void 0 ? {} : param, _styleSheet = ref.styleSheet, styleSheet = _styleSheet === void 0 ? null : _styleSheet, _optimizeForSpeed = ref.optimizeForSpeed, optimizeForSpeed = _optimizeForSpeed === void 0 ? false : _optimizeForSpeed;
322
+ this._sheet = styleSheet || new StyleSheet({
323
+ name: "styled-jsx",
324
+ optimizeForSpeed: optimizeForSpeed
325
+ });
326
+ this._sheet.inject();
327
+ if (styleSheet && typeof optimizeForSpeed === "boolean") {
328
+ this._sheet.setOptimizeForSpeed(optimizeForSpeed);
329
+ this._optimizeForSpeed = this._sheet.isOptimizeForSpeed();
330
+ }
331
+ this._fromServer = undefined;
332
+ this._indices = {};
333
+ this._instancesCounts = {};
334
+ }
335
+ var _proto = StyleSheetRegistry.prototype;
336
+ _proto.add = function add(props) {
337
+ var _this = this;
338
+ if (undefined === this._optimizeForSpeed) {
339
+ this._optimizeForSpeed = Array.isArray(props.children);
340
+ this._sheet.setOptimizeForSpeed(this._optimizeForSpeed);
341
+ this._optimizeForSpeed = this._sheet.isOptimizeForSpeed();
342
+ }
343
+ if (typeof window !== "undefined" && !this._fromServer) {
344
+ this._fromServer = this.selectFromServer();
345
+ this._instancesCounts = Object.keys(this._fromServer).reduce(function(acc, tagName) {
346
+ acc[tagName] = 0;
347
+ return acc;
348
+ }, {});
349
+ }
350
+ var ref = this.getIdAndRules(props), styleId = ref.styleId, rules = ref.rules;
351
+ // Deduping: just increase the instances count.
352
+ if (styleId in this._instancesCounts) {
353
+ this._instancesCounts[styleId] += 1;
354
+ return;
355
+ }
356
+ var indices = rules.map(function(rule) {
357
+ return _this._sheet.insertRule(rule);
358
+ })// Filter out invalid rules
359
+ .filter(function(index) {
360
+ return index !== -1;
361
+ });
362
+ this._indices[styleId] = indices;
363
+ this._instancesCounts[styleId] = 1;
364
+ };
365
+ _proto.remove = function remove(props) {
366
+ var _this = this;
367
+ var styleId = this.getIdAndRules(props).styleId;
368
+ invariant(styleId in this._instancesCounts, "styleId: `" + styleId + "` not found");
369
+ this._instancesCounts[styleId] -= 1;
370
+ if (this._instancesCounts[styleId] < 1) {
371
+ var tagFromServer = this._fromServer && this._fromServer[styleId];
372
+ if (tagFromServer) {
373
+ tagFromServer.parentNode.removeChild(tagFromServer);
374
+ delete this._fromServer[styleId];
375
+ } else {
376
+ this._indices[styleId].forEach(function(index) {
377
+ return _this._sheet.deleteRule(index);
378
+ });
379
+ delete this._indices[styleId];
380
+ }
381
+ delete this._instancesCounts[styleId];
382
+ }
383
+ };
384
+ _proto.update = function update(props, nextProps) {
385
+ this.add(nextProps);
386
+ this.remove(props);
387
+ };
388
+ _proto.flush = function flush() {
389
+ this._sheet.flush();
390
+ this._sheet.inject();
391
+ this._fromServer = undefined;
392
+ this._indices = {};
393
+ this._instancesCounts = {};
394
+ };
395
+ _proto.cssRules = function cssRules() {
396
+ var _this = this;
397
+ var fromServer = this._fromServer ? Object.keys(this._fromServer).map(function(styleId) {
398
+ return [
399
+ styleId,
400
+ _this._fromServer[styleId]
401
+ ];
402
+ }) : [];
403
+ var cssRules = this._sheet.cssRules();
404
+ return fromServer.concat(Object.keys(this._indices).map(function(styleId) {
405
+ return [
406
+ styleId,
407
+ _this._indices[styleId].map(function(index) {
408
+ return cssRules[index].cssText;
409
+ }).join(_this._optimizeForSpeed ? "" : "\n")
410
+ ];
411
+ })// filter out empty rules
412
+ .filter(function(rule) {
413
+ return Boolean(rule[1]);
414
+ }));
415
+ };
416
+ _proto.styles = function styles(options) {
417
+ return mapRulesToStyle(this.cssRules(), options);
418
+ };
419
+ _proto.getIdAndRules = function getIdAndRules(props) {
420
+ var css = props.children, dynamic = props.dynamic, id = props.id;
421
+ if (dynamic) {
422
+ var styleId = computeId(id, dynamic);
423
+ return {
424
+ styleId: styleId,
425
+ rules: Array.isArray(css) ? css.map(function(rule) {
426
+ return computeSelector(styleId, rule);
427
+ }) : [
428
+ computeSelector(styleId, css)
429
+ ]
430
+ };
431
+ }
432
+ return {
433
+ styleId: computeId(id),
434
+ rules: Array.isArray(css) ? css : [
435
+ css
436
+ ]
437
+ };
438
+ };
439
+ /**
440
+ * selectFromServer
441
+ *
442
+ * Collects style tags from the document with id __jsx-XXX
443
+ */ _proto.selectFromServer = function selectFromServer() {
444
+ var elements = Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]'));
445
+ return elements.reduce(function(acc, element) {
446
+ var id = element.id.slice(2);
447
+ acc[id] = element;
448
+ return acc;
449
+ }, {});
450
+ };
451
+ return StyleSheetRegistry;
452
+ }();
453
+ function invariant(condition, message) {
454
+ if (!condition) {
455
+ throw new Error("StyleSheetRegistry: " + message + ".");
456
+ }
457
+ }
458
+ var StyleSheetContext = /*#__PURE__*/ React$1.createContext(null);
459
+ StyleSheetContext.displayName = "StyleSheetContext";
460
+ function createStyleRegistry() {
461
+ return new StyleSheetRegistry();
462
+ }
463
+ function StyleRegistry(param) {
464
+ var configuredRegistry = param.registry, children = param.children;
465
+ var rootRegistry = React$1.useContext(StyleSheetContext);
466
+ var ref = React$1.useState(function() {
467
+ return rootRegistry || configuredRegistry || createStyleRegistry();
468
+ }), registry = ref[0];
469
+ return /*#__PURE__*/ React__default["default"].createElement(StyleSheetContext.Provider, {
470
+ value: registry
471
+ }, children);
472
+ }
473
+ function useStyleRegistry() {
474
+ return React$1.useContext(StyleSheetContext);
475
+ }
476
+
477
+ // Opt-into the new `useInsertionEffect` API in React 18, fallback to `useLayoutEffect`.
478
+ // https://github.com/reactwg/react-18/discussions/110
479
+ var useInsertionEffect = React__default["default"].useInsertionEffect || React$1.useLayoutEffect;
480
+ var defaultRegistry = typeof window !== "undefined" ? createStyleRegistry() : undefined;
481
+ function JSXStyle(props) {
482
+ var registry = defaultRegistry ? defaultRegistry : useStyleRegistry();
483
+ var insertionEffectCalled = React$1.useRef(false);
484
+ // `registry` might not exist while server-side rendering
485
+ if (!registry) {
486
+ return null;
487
+ }
488
+ if (typeof window === "undefined") {
489
+ registry.add(props);
490
+ return null;
491
+ }
492
+ useInsertionEffect(function() {
493
+ // ReactDOM removes all DOM during hydration in certain cases
494
+ if (!document.head) {
495
+ return;
496
+ }
497
+ registry.add(props);
498
+ insertionEffectCalled.current = true;
499
+ return function() {
500
+ insertionEffectCalled.current = false;
501
+ registry.remove(props);
502
+ };
503
+ }, [
504
+ props.id,
505
+ String(props.dynamic)
506
+ ]);
507
+ React$1.useLayoutEffect(function() {
508
+ if (!document.head || insertionEffectCalled.current) {
509
+ return;
510
+ }
511
+ registry.add(props);
512
+ return function() {
513
+ registry.remove(props);
514
+ };
515
+ // props.children can be string[], will be striped since id is identical
516
+ }, [
517
+ props.id,
518
+ String(props.dynamic)
519
+ ]);
520
+ return null;
521
+ }
522
+ JSXStyle.dynamic = function(info) {
523
+ return info.map(function(tagInfo) {
524
+ var baseId = tagInfo[0];
525
+ var props = tagInfo[1];
526
+ return computeId(baseId, props);
527
+ }).join(" ");
528
+ };
529
+
530
+ index.StyleRegistry = StyleRegistry;
531
+ index.createStyleRegistry = createStyleRegistry;
532
+ index.style = JSXStyle;
533
+ index.useStyleRegistry = useStyleRegistry;
534
+ return index;
535
+ }
536
+
537
+ var style;
538
+ var hasRequiredStyle;
539
+
540
+ function requireStyle () {
541
+ if (hasRequiredStyle) return style;
542
+ hasRequiredStyle = 1;
543
+ style = requireIndex().style;
544
+ return style;
545
+ }
546
+
547
+ var styleExports = requireStyle();
548
+ var _JSXStyle = /*@__PURE__*/getDefaultExportFromCjs(styleExports);
549
+
550
+ function _arrayLikeToArray(r, a) {
551
+ (null == a || a > r.length) && (a = r.length);
552
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
553
+ return n;
554
+ }
555
+ function _createForOfIteratorHelper(r, e) {
556
+ var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
557
+ if (!t) {
558
+ if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e) {
559
+ t && (r = t);
560
+ var n = 0,
561
+ F = function () {};
562
+ return {
563
+ s: F,
564
+ n: function () {
565
+ return n >= r.length ? {
566
+ done: true
567
+ } : {
568
+ done: false,
569
+ value: r[n++]
570
+ };
571
+ },
572
+ e: function (r) {
573
+ throw r;
574
+ },
575
+ f: F
576
+ };
577
+ }
578
+ throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
579
+ }
580
+ var o,
581
+ a = true,
582
+ u = false;
583
+ return {
584
+ s: function () {
585
+ t = t.call(r);
586
+ },
587
+ n: function () {
588
+ var r = t.next();
589
+ return a = r.done, r;
590
+ },
591
+ e: function (r) {
592
+ u = true, o = r;
593
+ },
594
+ f: function () {
595
+ try {
596
+ a || null == t.return || t.return();
597
+ } finally {
598
+ if (u) throw o;
599
+ }
600
+ }
601
+ };
602
+ }
603
+ function _defineProperty(e, r, t) {
604
+ return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
605
+ value: t,
606
+ enumerable: true,
607
+ configurable: true,
608
+ writable: true
609
+ }) : e[r] = t, e;
610
+ }
611
+ function _extends() {
612
+ return _extends = Object.assign ? Object.assign.bind() : function (n) {
613
+ for (var e = 1; e < arguments.length; e++) {
614
+ var t = arguments[e];
615
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
616
+ }
617
+ return n;
618
+ }, _extends.apply(null, arguments);
619
+ }
620
+ function ownKeys(e, r) {
621
+ var t = Object.keys(e);
622
+ if (Object.getOwnPropertySymbols) {
623
+ var o = Object.getOwnPropertySymbols(e);
624
+ r && (o = o.filter(function (r) {
625
+ return Object.getOwnPropertyDescriptor(e, r).enumerable;
626
+ })), t.push.apply(t, o);
627
+ }
628
+ return t;
629
+ }
630
+ function _objectSpread2(e) {
631
+ for (var r = 1; r < arguments.length; r++) {
632
+ var t = null != arguments[r] ? arguments[r] : {};
633
+ r % 2 ? ownKeys(Object(t), true).forEach(function (r) {
634
+ _defineProperty(e, r, t[r]);
635
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
636
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
637
+ });
638
+ }
639
+ return e;
640
+ }
641
+ function _objectWithoutProperties(e, t) {
642
+ if (null == e) return {};
643
+ var o,
644
+ r,
645
+ i = _objectWithoutPropertiesLoose(e, t);
646
+ if (Object.getOwnPropertySymbols) {
647
+ var n = Object.getOwnPropertySymbols(e);
648
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
649
+ }
650
+ return i;
651
+ }
652
+ function _objectWithoutPropertiesLoose(r, e) {
653
+ if (null == r) return {};
654
+ var t = {};
655
+ for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
656
+ if (-1 !== e.indexOf(n)) continue;
657
+ t[n] = r[n];
658
+ }
659
+ return t;
660
+ }
661
+ function _toPrimitive(t, r) {
662
+ if ("object" != typeof t || !t) return t;
663
+ var e = t[Symbol.toPrimitive];
664
+ if (void 0 !== e) {
665
+ var i = e.call(t, r);
666
+ if ("object" != typeof i) return i;
667
+ throw new TypeError("@@toPrimitive must return a primitive value.");
668
+ }
669
+ return ("string" === r ? String : Number)(t);
670
+ }
671
+ function _toPropertyKey(t) {
672
+ var i = _toPrimitive(t, "string");
673
+ return "symbol" == typeof i ? i : i + "";
674
+ }
675
+ function _typeof(o) {
676
+ "@babel/helpers - typeof";
677
+
678
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
679
+ return typeof o;
680
+ } : function (o) {
681
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
682
+ }, _typeof(o);
683
+ }
684
+ function _unsupportedIterableToArray(r, a) {
685
+ if (r) {
686
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
687
+ var t = {}.toString.call(r).slice(8, -1);
688
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
689
+ }
690
+ }
691
+
692
+ var defaultFont = {
693
+ sans: '"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif',
694
+ mono: 'Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace',
695
+ prism: 'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,"Liberation Mono", "Courier New", monospace'
696
+ };
697
+ var defaultBreakpoints = {
698
+ xs: {
699
+ min: '0',
700
+ max: '650px'
701
+ },
702
+ sm: {
703
+ min: '650px',
704
+ max: '900px'
705
+ },
706
+ md: {
707
+ min: '900px',
708
+ max: '1280px'
709
+ },
710
+ lg: {
711
+ min: '1280px',
712
+ max: '1920px'
713
+ },
714
+ xl: {
715
+ min: '1920px',
716
+ max: '10000px'
717
+ }
718
+ };
719
+ var defaultLayout = {
720
+ gap: '16pt',
721
+ gapNegative: '-16pt',
722
+ gapHalf: '8pt',
723
+ gapHalfNegative: '-8pt',
724
+ gapQuarter: '4pt',
725
+ gapQuarterNegative: '-4pt',
726
+ pageMargin: '16pt',
727
+ pageWidth: '750pt',
728
+ pageWidthWithMargin: '782pt',
729
+ breakpointMobile: defaultBreakpoints.xs.max,
730
+ breakpointTablet: defaultBreakpoints.sm.max,
731
+ radius: '6px',
732
+ unit: '16px'
733
+ };
734
+
735
+ var palette$1 = {
736
+ accents_1: '#fafafa',
737
+ accents_2: '#eaeaea',
738
+ accents_3: '#999',
739
+ accents_4: '#888',
740
+ accents_5: '#666',
741
+ accents_6: '#444',
742
+ accents_7: '#333',
743
+ accents_8: '#111',
744
+ background: '#fff',
745
+ foreground: '#000',
746
+ selection: '#79ffe1',
747
+ secondary: '#666',
748
+ code: '#f81ce5',
749
+ border: '#eaeaea',
750
+ error: '#e00',
751
+ errorLight: '#ff1a1a',
752
+ errorLighter: '#f7d4d6',
753
+ errorDark: '#c50000',
754
+ success: '#0070f3',
755
+ successLight: '#3291ff',
756
+ successLighter: '#d3e5ff',
757
+ successDark: '#0761d1',
758
+ warning: '#f5a623',
759
+ warningLight: '#f7b955',
760
+ warningLighter: '#ffefcf',
761
+ warningDark: '#ab570a',
762
+ cyan: '#50e3c2',
763
+ cyanLighter: '#aaffec',
764
+ cyanLight: '#79ffe1',
765
+ cyanDark: '#29bc9b',
766
+ violet: '#7928ca',
767
+ violetLighter: '#e3d7fc',
768
+ violetLight: '#8a63d2',
769
+ violetDark: '#4c2889',
770
+ purple: '#f81ce5',
771
+ alert: '#ff0080',
772
+ magenta: '#eb367f',
773
+ link: '#0070f3'
774
+ };
775
+ var expressiveness$1 = {
776
+ linkStyle: 'none',
777
+ linkHoverStyle: 'none',
778
+ dropdownBoxShadow: '0 4px 4px 0 rgba(0, 0, 0, 0.02)',
779
+ scrollerStart: 'rgba(255, 255, 255, 1)',
780
+ scrollerEnd: 'rgba(255, 255, 255, 0)',
781
+ shadowSmall: '0 5px 10px rgba(0, 0, 0, 0.12)',
782
+ shadowMedium: '0 8px 30px rgba(0, 0, 0, 0.12)',
783
+ shadowLarge: '0 30px 60px rgba(0, 0, 0, 0.12)',
784
+ portalOpacity: 0.25
785
+ };
786
+ var font$1 = defaultFont;
787
+ var breakpoints$1 = defaultBreakpoints;
788
+ var layout$1 = defaultLayout;
789
+ var themes$1 = {
790
+ type: 'light',
791
+ font: font$1,
792
+ layout: layout$1,
793
+ palette: palette$1,
794
+ breakpoints: breakpoints$1,
795
+ expressiveness: expressiveness$1
796
+ };
797
+
798
+ var palette = {
799
+ accents_1: '#111',
800
+ accents_2: '#333',
801
+ accents_3: '#444',
802
+ accents_4: '#666',
803
+ accents_5: '#888',
804
+ accents_6: '#999',
805
+ accents_7: '#eaeaea',
806
+ accents_8: '#fafafa',
807
+ background: '#000',
808
+ foreground: '#fff',
809
+ selection: '#f81ce5',
810
+ secondary: '#888',
811
+ code: '#79ffe1',
812
+ border: '#333',
813
+ error: '#e00',
814
+ errorLighter: '#f7d4d6',
815
+ errorLight: '#ff1a1a',
816
+ errorDark: '#c50000',
817
+ success: '#0070f3',
818
+ successLighter: '#d3e5ff',
819
+ successLight: '#3291ff',
820
+ successDark: '#0761d1',
821
+ warning: '#f5a623',
822
+ warningLighter: '#ffefcf',
823
+ warningLight: '#f7b955',
824
+ warningDark: '#ab570a',
825
+ cyan: '#50e3c2',
826
+ cyanLighter: '#aaffec',
827
+ cyanLight: '#79ffe1',
828
+ cyanDark: '#29bc9b',
829
+ violet: '#7928ca',
830
+ violetLighter: '#e3d7fc',
831
+ violetLight: '#8a63d2',
832
+ violetDark: '#4c2889',
833
+ purple: '#f81ce5',
834
+ alert: '#ff0080',
835
+ magenta: '#eb367f',
836
+ link: '#3291ff'
837
+ };
838
+ var expressiveness = {
839
+ linkStyle: 'none',
840
+ linkHoverStyle: 'none',
841
+ dropdownBoxShadow: '0 0 0 1px #333',
842
+ scrollerStart: 'rgba(255, 255, 255, 1)',
843
+ scrollerEnd: 'rgba(255, 255, 255, 0)',
844
+ shadowSmall: '0 0 0 1px #333',
845
+ shadowMedium: '0 0 0 1px #333',
846
+ shadowLarge: '0 0 0 1px #333',
847
+ portalOpacity: 0.75
848
+ };
849
+ var font = defaultFont;
850
+ var breakpoints = defaultBreakpoints;
851
+ var layout = defaultLayout;
852
+ var themes = {
853
+ type: 'dark',
854
+ font: font,
855
+ layout: layout,
856
+ palette: palette,
857
+ breakpoints: breakpoints,
858
+ expressiveness: expressiveness
859
+ };
860
+
861
+ var isObject = function isObject(target) {
862
+ return target && _typeof(target) === 'object';
863
+ };
864
+ var _deepDuplicable = function deepDuplicable(source, target) {
865
+ if (!isObject(target) || !isObject(source)) return source;
866
+ var sourceKeys = Object.keys(source);
867
+ var result = {};
868
+ for (var _i = 0, _sourceKeys = sourceKeys; _i < _sourceKeys.length; _i++) {
869
+ var key = _sourceKeys[_i];
870
+ var sourceValue = source[key];
871
+ var targetValue = target[key];
872
+ if (Array.isArray(sourceValue) && Array.isArray(targetValue)) {
873
+ result[key] = targetValue.concat(sourceValue);
874
+ } else if (isObject(sourceValue) && isObject(targetValue)) {
875
+ result[key] = _deepDuplicable(sourceValue, _objectSpread2({}, targetValue));
876
+ } else if (targetValue) {
877
+ result[key] = targetValue;
878
+ } else {
879
+ result[key] = sourceValue;
880
+ }
881
+ }
882
+ return result;
883
+ };
884
+ var getPresets = function getPresets() {
885
+ return [themes$1, themes];
886
+ };
887
+ var getPresetStaticTheme = function getPresetStaticTheme() {
888
+ return themes$1;
889
+ };
890
+ var isAvailableThemeType = function isAvailableThemeType(type) {
891
+ if (!type) return false;
892
+ var presetThemes = getPresets();
893
+ var hasType = presetThemes.find(function (theme) {
894
+ return theme.type === type;
895
+ });
896
+ return !hasType;
897
+ };
898
+ var isPresetTheme = function isPresetTheme(themeOrType) {
899
+ if (!themeOrType) return false;
900
+ var isType = typeof themeOrType === 'string';
901
+ var type = isType ? themeOrType : themeOrType.type;
902
+ return !isAvailableThemeType(type);
903
+ };
904
+ var hasUserCustomTheme = function hasUserCustomTheme() {
905
+ var themes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
906
+ return !!themes.find(function (item) {
907
+ return isAvailableThemeType(item.type);
908
+ });
909
+ };
910
+ var create = function create(base, custom) {
911
+ if (!isAvailableThemeType(custom.type)) {
912
+ throw new Error('Duplicate or unavailable theme type');
913
+ }
914
+ return _deepDuplicable(base, custom);
915
+ };
916
+ var createFromDark = function createFromDark(custom) {
917
+ return create(themes, custom);
918
+ };
919
+ var createFromLight = function createFromLight(custom) {
920
+ return create(themes$1, custom);
921
+ };
922
+ var Themes = {
923
+ isPresetTheme: isPresetTheme,
924
+ isAvailableThemeType: isAvailableThemeType,
925
+ hasUserCustomTheme: hasUserCustomTheme,
926
+ getPresets: getPresets,
927
+ getPresetStaticTheme: getPresetStaticTheme,
928
+ create: create,
929
+ createFromDark: createFromDark,
930
+ createFromLight: createFromLight
931
+ };
932
+
933
+ /* "use client" */
934
+
935
+ var defaultTheme = Themes.getPresetStaticTheme();
936
+ var ThemeContext = /*#__PURE__*/React.createContext(defaultTheme);
937
+ var useTheme = function useTheme() {
938
+ return React.useContext(ThemeContext);
939
+ };
940
+
941
+ /* "use client" */
942
+
943
+ var ScalePropKeys = ['width', 'height', 'padding', 'margin', 'w', 'h', 'paddingLeft', 'paddingRight', 'paddingTop', 'paddingBottom', 'pl', 'pr', 'pt', 'pb', 'marginLeft', 'marginRight', 'marginTop', 'marginBottom', 'ml', 'mr', 'mt', 'mb', 'px', 'py', 'mx', 'my', 'font', 'unit', 'scale'];
944
+ var defaultDynamicLayoutPipe = function defaultDynamicLayoutPipe(scale1x) {
945
+ return "".concat(scale1x);
946
+ };
947
+ var defaultContext = {
948
+ getScaleProps: function getScaleProps() {
949
+ return undefined;
950
+ },
951
+ getAllScaleProps: function getAllScaleProps() {
952
+ return {};
953
+ },
954
+ SCALES: {
955
+ pl: defaultDynamicLayoutPipe,
956
+ pr: defaultDynamicLayoutPipe,
957
+ pb: defaultDynamicLayoutPipe,
958
+ pt: defaultDynamicLayoutPipe,
959
+ px: defaultDynamicLayoutPipe,
960
+ py: defaultDynamicLayoutPipe,
961
+ mb: defaultDynamicLayoutPipe,
962
+ ml: defaultDynamicLayoutPipe,
963
+ mr: defaultDynamicLayoutPipe,
964
+ mt: defaultDynamicLayoutPipe,
965
+ mx: defaultDynamicLayoutPipe,
966
+ my: defaultDynamicLayoutPipe,
967
+ width: defaultDynamicLayoutPipe,
968
+ height: defaultDynamicLayoutPipe,
969
+ font: defaultDynamicLayoutPipe
970
+ },
971
+ unit: '16px'
972
+ };
973
+ var ScaleContext = /*#__PURE__*/React.createContext(defaultContext);
974
+ var useScale = function useScale() {
975
+ return React.useContext(ScaleContext);
976
+ };
977
+
978
+ /* "use client" */
979
+
980
+ var isCSSNumberValue = function isCSSNumberValue(value) {
981
+ return value !== undefined && !Number.isNaN(+value);
982
+ };
983
+
984
+ var generateGetScaleProps = function generateGetScaleProps(props) {
985
+ var getScaleProps = function getScaleProps(keyOrKeys) {
986
+ if (!Array.isArray(keyOrKeys)) return props[keyOrKeys];
987
+ var value = undefined;
988
+ var _iterator = _createForOfIteratorHelper(keyOrKeys),
989
+ _step;
990
+ try {
991
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
992
+ var key = _step.value;
993
+ var currentValue = props[key];
994
+ if (typeof currentValue !== 'undefined') {
995
+ value = currentValue;
996
+ }
997
+ }
998
+ } catch (err) {
999
+ _iterator.e(err);
1000
+ } finally {
1001
+ _iterator.f();
1002
+ }
1003
+ return value;
1004
+ };
1005
+ return getScaleProps;
1006
+ };
1007
+ var generateGetAllScaleProps = function generateGetAllScaleProps(props) {
1008
+ var getAllScaleProps = function getAllScaleProps() {
1009
+ var scaleProps = {};
1010
+ var _iterator2 = _createForOfIteratorHelper(ScalePropKeys),
1011
+ _step2;
1012
+ try {
1013
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
1014
+ var key = _step2.value;
1015
+ var value = props[key];
1016
+ if (typeof value !== 'undefined') {
1017
+ scaleProps[key] = value;
1018
+ }
1019
+ }
1020
+ } catch (err) {
1021
+ _iterator2.e(err);
1022
+ } finally {
1023
+ _iterator2.f();
1024
+ }
1025
+ return scaleProps;
1026
+ };
1027
+ return getAllScaleProps;
1028
+ };
1029
+
1030
+ var _excluded$2 = ["children"];
1031
+ var reduceScaleCoefficient = function reduceScaleCoefficient(scale) {
1032
+ if (scale === 1) return scale;
1033
+ var diff = Math.abs((scale - 1) / 2);
1034
+ return scale > 1 ? 1 + diff : 1 - diff;
1035
+ };
1036
+ var withScale = function withScale(Render) {
1037
+ var ScaleFC = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
1038
+ var _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref0, _ref1, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15, _ref16, _ref17, _ref18, _ref19, _ref20, _ref21, _ref22, _ref23, _ref24, _ref25, _ref26, _ref27, _ref28, _ref29, _ref30, _ref31;
1039
+ var children = _ref.children,
1040
+ props = _objectWithoutProperties(_ref, _excluded$2);
1041
+ var _useTheme = useTheme(),
1042
+ layout = _useTheme.layout;
1043
+ var paddingLeft = props.paddingLeft,
1044
+ pl = props.pl,
1045
+ paddingRight = props.paddingRight,
1046
+ pr = props.pr,
1047
+ paddingTop = props.paddingTop,
1048
+ pt = props.pt,
1049
+ paddingBottom = props.paddingBottom,
1050
+ pb = props.pb,
1051
+ marginTop = props.marginTop,
1052
+ mt = props.mt,
1053
+ marginRight = props.marginRight,
1054
+ mr = props.mr,
1055
+ marginBottom = props.marginBottom,
1056
+ mb = props.mb,
1057
+ marginLeft = props.marginLeft,
1058
+ ml = props.ml,
1059
+ px = props.px,
1060
+ py = props.py,
1061
+ mx = props.mx,
1062
+ my = props.my,
1063
+ width = props.width,
1064
+ height = props.height,
1065
+ font = props.font,
1066
+ w = props.w,
1067
+ h = props.h,
1068
+ margin = props.margin,
1069
+ padding = props.padding,
1070
+ _props$unit = props.unit,
1071
+ unit = _props$unit === void 0 ? layout.unit : _props$unit,
1072
+ _props$scale = props.scale,
1073
+ scale = _props$scale === void 0 ? 1 : _props$scale;
1074
+ var makeScaleHandler = function makeScaleHandler(attrValue) {
1075
+ return function (scale1x, defaultValue) {
1076
+ // 0 means disable scale and the default value is 0
1077
+ if (scale1x === 0) {
1078
+ scale1x = 1;
1079
+ defaultValue = defaultValue || 0;
1080
+ }
1081
+ var factor = reduceScaleCoefficient(scale) * scale1x;
1082
+ if (typeof attrValue === 'undefined') {
1083
+ if (typeof defaultValue !== 'undefined') return "".concat(defaultValue);
1084
+ return "calc(".concat(factor, " * ").concat(unit, ")");
1085
+ }
1086
+ if (!isCSSNumberValue(attrValue)) return "".concat(attrValue);
1087
+ var customFactor = factor * Number(attrValue);
1088
+ return "calc(".concat(customFactor, " * ").concat(unit, ")");
1089
+ };
1090
+ };
1091
+ var value = {
1092
+ unit: unit,
1093
+ SCALES: {
1094
+ pt: makeScaleHandler((_ref2 = (_ref3 = paddingTop !== null && paddingTop !== void 0 ? paddingTop : pt) !== null && _ref3 !== void 0 ? _ref3 : py) !== null && _ref2 !== void 0 ? _ref2 : padding),
1095
+ pr: makeScaleHandler((_ref4 = (_ref5 = paddingRight !== null && paddingRight !== void 0 ? paddingRight : pr) !== null && _ref5 !== void 0 ? _ref5 : px) !== null && _ref4 !== void 0 ? _ref4 : padding),
1096
+ pb: makeScaleHandler((_ref6 = (_ref7 = paddingBottom !== null && paddingBottom !== void 0 ? paddingBottom : pb) !== null && _ref7 !== void 0 ? _ref7 : py) !== null && _ref6 !== void 0 ? _ref6 : padding),
1097
+ pl: makeScaleHandler((_ref8 = (_ref9 = paddingLeft !== null && paddingLeft !== void 0 ? paddingLeft : pl) !== null && _ref9 !== void 0 ? _ref9 : px) !== null && _ref8 !== void 0 ? _ref8 : padding),
1098
+ px: makeScaleHandler((_ref0 = (_ref1 = (_ref10 = (_ref11 = px !== null && px !== void 0 ? px : paddingLeft) !== null && _ref11 !== void 0 ? _ref11 : paddingRight) !== null && _ref10 !== void 0 ? _ref10 : pl) !== null && _ref1 !== void 0 ? _ref1 : pr) !== null && _ref0 !== void 0 ? _ref0 : padding),
1099
+ py: makeScaleHandler((_ref12 = (_ref13 = (_ref14 = (_ref15 = py !== null && py !== void 0 ? py : paddingTop) !== null && _ref15 !== void 0 ? _ref15 : paddingBottom) !== null && _ref14 !== void 0 ? _ref14 : pt) !== null && _ref13 !== void 0 ? _ref13 : pb) !== null && _ref12 !== void 0 ? _ref12 : padding),
1100
+ mt: makeScaleHandler((_ref16 = (_ref17 = marginTop !== null && marginTop !== void 0 ? marginTop : mt) !== null && _ref17 !== void 0 ? _ref17 : my) !== null && _ref16 !== void 0 ? _ref16 : margin),
1101
+ mr: makeScaleHandler((_ref18 = (_ref19 = marginRight !== null && marginRight !== void 0 ? marginRight : mr) !== null && _ref19 !== void 0 ? _ref19 : mx) !== null && _ref18 !== void 0 ? _ref18 : margin),
1102
+ mb: makeScaleHandler((_ref20 = (_ref21 = marginBottom !== null && marginBottom !== void 0 ? marginBottom : mb) !== null && _ref21 !== void 0 ? _ref21 : my) !== null && _ref20 !== void 0 ? _ref20 : margin),
1103
+ ml: makeScaleHandler((_ref22 = (_ref23 = marginLeft !== null && marginLeft !== void 0 ? marginLeft : ml) !== null && _ref23 !== void 0 ? _ref23 : mx) !== null && _ref22 !== void 0 ? _ref22 : margin),
1104
+ mx: makeScaleHandler((_ref24 = (_ref25 = (_ref26 = (_ref27 = mx !== null && mx !== void 0 ? mx : marginLeft) !== null && _ref27 !== void 0 ? _ref27 : marginRight) !== null && _ref26 !== void 0 ? _ref26 : ml) !== null && _ref25 !== void 0 ? _ref25 : mr) !== null && _ref24 !== void 0 ? _ref24 : margin),
1105
+ my: makeScaleHandler((_ref28 = (_ref29 = (_ref30 = (_ref31 = my !== null && my !== void 0 ? my : marginTop) !== null && _ref31 !== void 0 ? _ref31 : marginBottom) !== null && _ref30 !== void 0 ? _ref30 : mt) !== null && _ref29 !== void 0 ? _ref29 : mb) !== null && _ref28 !== void 0 ? _ref28 : margin),
1106
+ width: makeScaleHandler(width !== null && width !== void 0 ? width : w),
1107
+ height: makeScaleHandler(height !== null && height !== void 0 ? height : h),
1108
+ font: makeScaleHandler(font)
1109
+ },
1110
+ getScaleProps: generateGetScaleProps(props),
1111
+ getAllScaleProps: generateGetAllScaleProps(props)
1112
+ };
1113
+ return /*#__PURE__*/React.createElement(ScaleContext.Provider, {
1114
+ value: value
1115
+ }, /*#__PURE__*/React.createElement(Render, _extends({}, props, {
1116
+ ref: ref
1117
+ }), children));
1118
+ });
1119
+ ScaleFC.displayName = "Scale".concat(Render.displayName || 'Wrapper');
1120
+ return ScaleFC;
1121
+ };
1122
+
1123
+ /* "use client" */
1124
+
1125
+ var classObjectToString = function classObjectToString(className) {
1126
+ var keys = Object.keys(className);
1127
+ var len = keys.length;
1128
+ var str = '';
1129
+ for (var index = 0; index < len; index++) {
1130
+ var key = keys[index];
1131
+ var val = className[keys[index]];
1132
+ if (!val) continue;
1133
+ str = str ? "".concat(str, " ").concat(String(key)) : String(key);
1134
+ }
1135
+ return str;
1136
+ };
1137
+ var isObjectClassName = function isObjectClassName(value) {
1138
+ return _typeof(value) === 'object' && !Array.isArray(value);
1139
+ };
1140
+ var useClasses = function useClasses() {
1141
+ var len = arguments.length;
1142
+ var classes = '';
1143
+ if (len === 0) return classes;
1144
+ for (var index = 0; index < len; index++) {
1145
+ var val = index < 0 || arguments.length <= index ? undefined : arguments[index];
1146
+ if (!val) continue;
1147
+ if (isObjectClassName(val)) {
1148
+ classes += " ".concat(classObjectToString(val));
1149
+ } else {
1150
+ classes += " ".concat(String(val).trim());
1151
+ }
1152
+ }
1153
+ return classes.trim();
1154
+ };
1155
+
1156
+ var _excluded$1 = ["title", "content", "className"];
1157
+ var DescriptionComponent = function DescriptionComponent(_ref) {
1158
+ var _ref$title = _ref.title,
1159
+ title = _ref$title === void 0 ? 'Title' : _ref$title,
1160
+ _ref$content = _ref.content,
1161
+ content = _ref$content === void 0 ? '' : _ref$content,
1162
+ _ref$className = _ref.className,
1163
+ className = _ref$className === void 0 ? '' : _ref$className,
1164
+ props = _objectWithoutProperties(_ref, _excluded$1);
1165
+ var theme = useTheme();
1166
+ var _useScale = useScale(),
1167
+ SCALES = _useScale.SCALES;
1168
+ var classes = useClasses('description', className);
1169
+ return /*#__PURE__*/React.createElement("dl", _extends({}, props, {
1170
+ className: _JSXStyle.dynamic([["2323318745", [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), theme.palette.accents_5, theme.palette.foreground]]]) + " " + (props && props.className != null && props.className || classes || "")
1171
+ }), /*#__PURE__*/React.createElement("dt", {
1172
+ className: _JSXStyle.dynamic([["2323318745", [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), theme.palette.accents_5, theme.palette.foreground]]])
1173
+ }, title), /*#__PURE__*/React.createElement("dd", {
1174
+ className: _JSXStyle.dynamic([["2323318745", [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), theme.palette.accents_5, theme.palette.foreground]]])
1175
+ }, content), /*#__PURE__*/React.createElement(_JSXStyle, {
1176
+ id: "2323318745",
1177
+ dynamic: [SCALES.font(1), SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), theme.palette.accents_5, theme.palette.foreground]
1178
+ }, ".description.__jsx-style-dynamic-selector{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), ";}dt.__jsx-style-dynamic-selector{font-size:0.75em;line-height:1em;margin-bottom:0.5em;text-transform:uppercase;white-space:nowrap;color:").concat(theme.palette.accents_5, ";font-weight:500;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}dd.__jsx-style-dynamic-selector{font-size:0.875em;margin:0;line-height:1.1em;color:").concat(theme.palette.foreground, ";font-weight:500;}dd.__jsx-style-dynamic-selector p,dt.__jsx-style-dynamic-selector p{margin:0;}")));
1179
+ };
1180
+ DescriptionComponent.displayName = 'Description';
1181
+ var Description = withScale(DescriptionComponent);
1182
+
1183
+ var ListComponent = function ListComponent(_ref) {
1184
+ var heading = _ref.heading,
1185
+ _ref$showHeading = _ref.showHeading,
1186
+ showHeading = _ref$showHeading === void 0 ? true : _ref$showHeading,
1187
+ secondary = _ref.secondary,
1188
+ children = _ref.children;
1189
+ var _useScale = useScale(),
1190
+ SCALES = _useScale.SCALES;
1191
+ return /*#__PURE__*/React.createElement("div", {
1192
+ className: _JSXStyle.dynamic([["2885341068", [SCALES.pt(0.9), SCALES.pr(0), SCALES.pb(0.9), SCALES.pl(0)]]])
1193
+ }, showHeading && /*#__PURE__*/React.createElement(Description, {
1194
+ mb: 1,
1195
+ mt: 1,
1196
+ title: heading,
1197
+ content: secondary
1198
+ }), /*#__PURE__*/React.createElement("ul", {
1199
+ className: _JSXStyle.dynamic([["2885341068", [SCALES.pt(0.9), SCALES.pr(0), SCALES.pb(0.9), SCALES.pl(0)]]]) + " " + "helpdice-ui-list"
1200
+ }, children), /*#__PURE__*/React.createElement(_JSXStyle, {
1201
+ id: "2885341068",
1202
+ dynamic: [SCALES.pt(0.9), SCALES.pr(0), SCALES.pb(0.9), SCALES.pl(0)]
1203
+ }, ".helpdice-ui-list.__jsx-style-dynamic-selector{all:unset;padding:".concat(SCALES.pt(0.9), " ").concat(SCALES.pr(0), " ").concat(SCALES.pb(0.9), " ").concat(SCALES.pl(0), ";}")));
1204
+ };
1205
+ ListComponent.displayName = 'List';
1206
+ var List = withScale(ListComponent);
1207
+
1208
+ var _excluded = ["children", "direction", "justify", "alignItems", "line", "showTitle", "className", "onClick", "leading", "primary", "secondary", "trailing", "selected", "disableAutoClose"];
1209
+ var ListItemComponent = function ListItemComponent(_ref) {
1210
+ var children = _ref.children,
1211
+ _ref$direction = _ref.direction,
1212
+ direction = _ref$direction === void 0 ? 'row' : _ref$direction,
1213
+ _ref$justify = _ref.justify,
1214
+ justify = _ref$justify === void 0 ? 'flex-start' : _ref$justify,
1215
+ _ref$alignItems = _ref.alignItems,
1216
+ alignItems = _ref$alignItems === void 0 ? 'center' : _ref$alignItems,
1217
+ _ref$line = _ref.line,
1218
+ line = _ref$line === void 0 ? false : _ref$line,
1219
+ _ref$showTitle = _ref.showTitle,
1220
+ showTitle = _ref$showTitle === void 0 ? false : _ref$showTitle,
1221
+ _ref$className = _ref.className,
1222
+ className = _ref$className === void 0 ? '' : _ref$className,
1223
+ onClick = _ref.onClick,
1224
+ leading = _ref.leading,
1225
+ primary = _ref.primary,
1226
+ secondary = _ref.secondary,
1227
+ trailing = _ref.trailing,
1228
+ _ref$selected = _ref.selected,
1229
+ selected = _ref$selected === void 0 ? false : _ref$selected;
1230
+ _ref.disableAutoClose;
1231
+ var props = _objectWithoutProperties(_ref, _excluded);
1232
+ var theme = useTheme();
1233
+ var _useScale = useScale(),
1234
+ SCALES = _useScale.SCALES;
1235
+ // const { disableItemsAutoClose, onItemClick } = usePopoverContext()
1236
+ var hasHandler = Boolean(onClick);
1237
+ // const dontCloseByClick = disableAutoClose || disableItemsAutoClose || showTitle || line
1238
+ var classes = useClasses('item', {
1239
+ line: line,
1240
+ showTitle: showTitle
1241
+ }, className);
1242
+ var clickHandler = function clickHandler(event) {
1243
+ onClick && onClick(event);
1244
+ // if (dontCloseByClick) {
1245
+ // return event.stopPropagation()
1246
+ // }
1247
+ // onItemClick(event)
1248
+ };
1249
+ return /*#__PURE__*/React.createElement("li", {
1250
+ style: {
1251
+ all: 'unset',
1252
+ listStyle: 'none'
1253
+ }
1254
+ }, /*#__PURE__*/React.createElement("div", _extends({
1255
+ style: {
1256
+ backgroundColor: selected ? '#efefef' : ''
1257
+ },
1258
+ onClick: clickHandler
1259
+ }, props, {
1260
+ className: _JSXStyle.dynamic([["937997701", [direction, justify, alignItems, theme.palette.accents_5, SCALES.font(0.875), SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0.5), SCALES.pr(0.75), SCALES.pb(0.5), SCALES.pl(0.75), hasHandler ? 'pointer' : 'default', theme.palette.foreground, theme.palette.border, SCALES.height(0.0625), SCALES.mt(0.35), SCALES.mr(0), SCALES.mb(0.35), SCALES.ml(0), SCALES.width(1, '100%'), SCALES.font(0.925), theme.palette.foreground]]]) + " " + (props && props.className != null && props.className || classes || "")
1261
+ }), children ? children : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
1262
+ className: _JSXStyle.dynamic([["937997701", [direction, justify, alignItems, theme.palette.accents_5, SCALES.font(0.875), SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0.5), SCALES.pr(0.75), SCALES.pb(0.5), SCALES.pl(0.75), hasHandler ? 'pointer' : 'default', theme.palette.foreground, theme.palette.border, SCALES.height(0.0625), SCALES.mt(0.35), SCALES.mr(0), SCALES.mb(0.35), SCALES.ml(0), SCALES.width(1, '100%'), SCALES.font(0.925), theme.palette.foreground]]]) + " " + "item-left"
1263
+ }, /*#__PURE__*/React.createElement("span", {
1264
+ className: _JSXStyle.dynamic([["937997701", [direction, justify, alignItems, theme.palette.accents_5, SCALES.font(0.875), SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0.5), SCALES.pr(0.75), SCALES.pb(0.5), SCALES.pl(0.75), hasHandler ? 'pointer' : 'default', theme.palette.foreground, theme.palette.border, SCALES.height(0.0625), SCALES.mt(0.35), SCALES.mr(0), SCALES.mb(0.35), SCALES.ml(0), SCALES.width(1, '100%'), SCALES.font(0.925), theme.palette.foreground]]])
1265
+ }, leading), /*#__PURE__*/React.createElement("div", {
1266
+ className: _JSXStyle.dynamic([["937997701", [direction, justify, alignItems, theme.palette.accents_5, SCALES.font(0.875), SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0.5), SCALES.pr(0.75), SCALES.pb(0.5), SCALES.pl(0.75), hasHandler ? 'pointer' : 'default', theme.palette.foreground, theme.palette.border, SCALES.height(0.0625), SCALES.mt(0.35), SCALES.mr(0), SCALES.mb(0.35), SCALES.ml(0), SCALES.width(1, '100%'), SCALES.font(0.925), theme.palette.foreground]]]) + " " + "item-description"
1267
+ }, /*#__PURE__*/React.createElement("p", {
1268
+ className: _JSXStyle.dynamic([["937997701", [direction, justify, alignItems, theme.palette.accents_5, SCALES.font(0.875), SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0.5), SCALES.pr(0.75), SCALES.pb(0.5), SCALES.pl(0.75), hasHandler ? 'pointer' : 'default', theme.palette.foreground, theme.palette.border, SCALES.height(0.0625), SCALES.mt(0.35), SCALES.mr(0), SCALES.mb(0.35), SCALES.ml(0), SCALES.width(1, '100%'), SCALES.font(0.925), theme.palette.foreground]]]) + " " + "item-description-primary"
1269
+ }, primary), secondary && /*#__PURE__*/React.createElement("small", {
1270
+ className: _JSXStyle.dynamic([["937997701", [direction, justify, alignItems, theme.palette.accents_5, SCALES.font(0.875), SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0.5), SCALES.pr(0.75), SCALES.pb(0.5), SCALES.pl(0.75), hasHandler ? 'pointer' : 'default', theme.palette.foreground, theme.palette.border, SCALES.height(0.0625), SCALES.mt(0.35), SCALES.mr(0), SCALES.mb(0.35), SCALES.ml(0), SCALES.width(1, '100%'), SCALES.font(0.925), theme.palette.foreground]]]) + " " + "item-description-secondary"
1271
+ }, secondary))), /*#__PURE__*/React.createElement("div", {
1272
+ className: _JSXStyle.dynamic([["937997701", [direction, justify, alignItems, theme.palette.accents_5, SCALES.font(0.875), SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0.5), SCALES.pr(0.75), SCALES.pb(0.5), SCALES.pl(0.75), hasHandler ? 'pointer' : 'default', theme.palette.foreground, theme.palette.border, SCALES.height(0.0625), SCALES.mt(0.35), SCALES.mr(0), SCALES.mb(0.35), SCALES.ml(0), SCALES.width(1, '100%'), SCALES.font(0.925), theme.palette.foreground]]]) + " " + "item-right"
1273
+ }, trailing)), /*#__PURE__*/React.createElement(_JSXStyle, {
1274
+ id: "937997701",
1275
+ dynamic: [direction, justify, alignItems, theme.palette.accents_5, SCALES.font(0.875), SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0.5), SCALES.pr(0.75), SCALES.pb(0.5), SCALES.pl(0.75), hasHandler ? 'pointer' : 'default', theme.palette.foreground, theme.palette.border, SCALES.height(0.0625), SCALES.mt(0.35), SCALES.mr(0), SCALES.mb(0.35), SCALES.ml(0), SCALES.width(1, '100%'), SCALES.font(0.925), theme.palette.foreground]
1276
+ }, ".item.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:".concat(direction, ";-ms-flex-direction:").concat(direction, ";flex-direction:").concat(direction, ";box-sizing:border-box;-webkit-box-pack:").concat(justify, ";-webkit-justify-content:").concat(justify, ";-ms-flex-pack:").concat(justify, ";justify-content:").concat(justify, ";-webkit-align-items:").concat(alignItems, ";-webkit-box-align:").concat(alignItems, ";-ms-flex-align:").concat(alignItems, ";align-items:").concat(alignItems, ";color:").concat(theme.palette.accents_5, ";-webkit-transition:color,background-color 150ms linear;transition:color,background-color 150ms linear;line-height:1.25em;font-size:").concat(SCALES.font(0.875), ";width:").concat(SCALES.width(1, 'auto'), ";height:").concat(SCALES.height(1, 'auto'), ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0), ";padding:").concat(SCALES.pt(0.5), " ").concat(SCALES.pr(0.75), " ").concat(SCALES.pb(0.5), " ").concat(SCALES.pl(0.75), ";cursor:").concat(hasHandler ? 'pointer' : 'default', ";}.item-description.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:5px;}.item-description-primary.__jsx-style-dynamic-selector{margin:0;}.item-description-secondary.__jsx-style-dynamic-selector{margin:0;}.item-left.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:0.7rem;}.item.__jsx-style-dynamic-selector:hover{color:").concat(theme.palette.foreground, ";}.item.line.__jsx-style-dynamic-selector{line-height:0;padding:0;background-color:").concat(theme.palette.border, ";height:").concat(SCALES.height(0.0625), ";margin:").concat(SCALES.mt(0.35), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0.35), " ").concat(SCALES.ml(0), ";width:").concat(SCALES.width(1, '100%'), ";}.item.title.__jsx-style-dynamic-selector{font-weight:500;font-size:").concat(SCALES.font(0.925), ";color:").concat(theme.palette.foreground, ";}"))), line && /*#__PURE__*/React.createElement(ListItem, {
1277
+ line: true,
1278
+ showTitle: false
1279
+ }));
1280
+ };
1281
+ ListItemComponent.displayName = 'ListItem';
1282
+ var ListItem = withScale(ListItemComponent);
1283
+
1284
+ List.Item = ListItem;
1285
+ List.Option = ListItem;
1286
+
1287
+ exports.default = List;