@eclass/ui-kit 1.5.5 → 1.5.6

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.
@@ -19,30 +19,30 @@ var __spreadValues = (a, b2) => {
19
19
  var __spreadProps = (a, b2) => __defProps(a, __getOwnPropDescs(b2));
20
20
  import * as React from "react";
21
21
  import React__default, { forwardRef as forwardRef$1, useContext, createContext as createContext$1, createElement, useRef, useLayoutEffect, useState, useMemo, Fragment as Fragment$1, useEffect, useCallback } from "react";
22
- function sheetForTag(tag) {
23
- if (tag.sheet) {
24
- return tag.sheet;
22
+ function sheetForTag(tag2) {
23
+ if (tag2.sheet) {
24
+ return tag2.sheet;
25
25
  }
26
26
  for (var i = 0; i < document.styleSheets.length; i++) {
27
- if (document.styleSheets[i].ownerNode === tag) {
27
+ if (document.styleSheets[i].ownerNode === tag2) {
28
28
  return document.styleSheets[i];
29
29
  }
30
30
  }
31
31
  }
32
32
  function createStyleElement(options) {
33
- var tag = document.createElement("style");
34
- tag.setAttribute("data-emotion", options.key);
33
+ var tag2 = document.createElement("style");
34
+ tag2.setAttribute("data-emotion", options.key);
35
35
  if (options.nonce !== void 0) {
36
- tag.setAttribute("nonce", options.nonce);
36
+ tag2.setAttribute("nonce", options.nonce);
37
37
  }
38
- tag.appendChild(document.createTextNode(""));
39
- tag.setAttribute("data-s", "");
40
- return tag;
38
+ tag2.appendChild(document.createTextNode(""));
39
+ tag2.setAttribute("data-s", "");
40
+ return tag2;
41
41
  }
42
42
  var StyleSheet = /* @__PURE__ */ function() {
43
43
  function StyleSheet2(options) {
44
44
  var _this = this;
45
- this._insertTag = function(tag) {
45
+ this._insertTag = function(tag2) {
46
46
  var before;
47
47
  if (_this.tags.length === 0) {
48
48
  if (_this.insertionPoint) {
@@ -55,8 +55,8 @@ var StyleSheet = /* @__PURE__ */ function() {
55
55
  } else {
56
56
  before = _this.tags[_this.tags.length - 1].nextSibling;
57
57
  }
58
- _this.container.insertBefore(tag, before);
59
- _this.tags.push(tag);
58
+ _this.container.insertBefore(tag2, before);
59
+ _this.tags.push(tag2);
60
60
  };
61
61
  this.isSpeedy = options.speedy === void 0 ? true : options.speedy;
62
62
  this.tags = [];
@@ -76,21 +76,21 @@ var StyleSheet = /* @__PURE__ */ function() {
76
76
  if (this.ctr % (this.isSpeedy ? 65e3 : 1) === 0) {
77
77
  this._insertTag(createStyleElement(this));
78
78
  }
79
- var tag = this.tags[this.tags.length - 1];
79
+ var tag2 = this.tags[this.tags.length - 1];
80
80
  if (this.isSpeedy) {
81
- var sheet = sheetForTag(tag);
81
+ var sheet = sheetForTag(tag2);
82
82
  try {
83
83
  sheet.insertRule(rule, sheet.cssRules.length);
84
84
  } catch (e2) {
85
85
  }
86
86
  } else {
87
- tag.appendChild(document.createTextNode(rule));
87
+ tag2.appendChild(document.createTextNode(rule));
88
88
  }
89
89
  this.ctr++;
90
90
  };
91
91
  _proto.flush = function flush() {
92
- this.tags.forEach(function(tag) {
93
- return tag.parentNode && tag.parentNode.removeChild(tag);
92
+ this.tags.forEach(function(tag2) {
93
+ return tag2.parentNode && tag2.parentNode.removeChild(tag2);
94
94
  });
95
95
  this.tags = [];
96
96
  this.ctr = 0;
@@ -107,6 +107,7 @@ var IMPORT = "@import";
107
107
  var KEYFRAMES = "@keyframes";
108
108
  var abs = Math.abs;
109
109
  var from = String.fromCharCode;
110
+ var assign = Object.assign;
110
111
  function hash(value, length2) {
111
112
  return (((length2 << 2 ^ charat(value, 0)) << 2 ^ charat(value, 1)) << 2 ^ charat(value, 2)) << 2 ^ charat(value, 3);
112
113
  }
@@ -149,8 +150,8 @@ var characters = "";
149
150
  function node(value, root2, parent, type, props, children, length2) {
150
151
  return { value, root: root2, parent, type, props, children, line, column, length: length2, return: "" };
151
152
  }
152
- function copy(value, root2, type) {
153
- return node(value, root2.root, root2.parent, type, root2.props, root2.children, 0);
153
+ function copy(root2, props) {
154
+ return assign(node("", null, null, "", null, null, 0), root2, { length: -root2.length }, props);
154
155
  }
155
156
  function char() {
156
157
  return character;
@@ -238,7 +239,9 @@ function delimiter(type) {
238
239
  return position$1;
239
240
  case 34:
240
241
  case 39:
241
- return delimiter(type === 34 || type === 39 ? type : character);
242
+ if (type !== 34 && type !== 39)
243
+ delimiter(character);
244
+ break;
242
245
  case 40:
243
246
  if (type === 41)
244
247
  delimiter(type);
@@ -283,10 +286,15 @@ function parse(value, root2, parent, rule, rules, rulesets, pseudo, points, decl
283
286
  var characters2 = type;
284
287
  while (scanning)
285
288
  switch (previous = character2, character2 = next()) {
289
+ case 40:
290
+ if (previous != 108 && characters2.charCodeAt(length2 - 1) == 58) {
291
+ if (indexof(characters2 += replace(delimit(character2), "&", "&\f"), "&\f") != -1)
292
+ ampersand = -1;
293
+ break;
294
+ }
286
295
  case 34:
287
296
  case 39:
288
297
  case 91:
289
- case 40:
290
298
  characters2 += delimit(character2);
291
299
  break;
292
300
  case 9:
@@ -336,7 +344,7 @@ function parse(value, root2, parent, rule, rules, rulesets, pseudo, points, decl
336
344
  parse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length2), children), rules, children, length2, points, rule ? props : children);
337
345
  break;
338
346
  default:
339
- parse(characters2, reference, reference, reference, [""], children, length2, points, children);
347
+ parse(characters2, reference, reference, reference, [""], children, 0, points, children);
340
348
  }
341
349
  }
342
350
  index = offset = property = 0, variable = ampersand = 1, type = characters2 = "", length2 = pseudo;
@@ -360,7 +368,7 @@ function parse(value, root2, parent, rule, rules, rulesets, pseudo, points, decl
360
368
  case 64:
361
369
  if (peek() === 45)
362
370
  characters2 += delimit(next());
363
- atrule = peek(), offset = strlen(type = characters2 += identifier(caret())), character2++;
371
+ atrule = peek(), offset = length2 = strlen(type = characters2 += identifier(caret())), character2++;
364
372
  break;
365
373
  case 45:
366
374
  if (previous === 45 && strlen(characters2) == 2)
@@ -513,6 +521,8 @@ function stringify(element, index, children, callback) {
513
521
  return element.return = element.return || element.value;
514
522
  case COMMENT:
515
523
  return "";
524
+ case KEYFRAMES:
525
+ return element.return = element.value + "{" + serialize(element.children, callback) + "}";
516
526
  case RULESET:
517
527
  element.value = element.props.join(",");
518
528
  }
@@ -536,30 +546,32 @@ function rulesheet(callback) {
536
546
  };
537
547
  }
538
548
  function prefixer(element, index, children, callback) {
539
- if (!element.return)
540
- switch (element.type) {
541
- case DECLARATION:
542
- element.return = prefix(element.value, element.length);
543
- break;
544
- case KEYFRAMES:
545
- return serialize([copy(replace(element.value, "@", "@" + WEBKIT), element, "")], callback);
546
- case RULESET:
547
- if (element.length)
548
- return combine(element.props, function(value) {
549
- switch (match(value, /(::plac\w+|:read-\w+)/)) {
550
- case ":read-only":
551
- case ":read-write":
552
- return serialize([copy(replace(value, /:(read-\w+)/, ":" + MOZ + "$1"), element, "")], callback);
553
- case "::placeholder":
554
- return serialize([
555
- copy(replace(value, /:(plac\w+)/, ":" + WEBKIT + "input-$1"), element, ""),
556
- copy(replace(value, /:(plac\w+)/, ":" + MOZ + "$1"), element, ""),
557
- copy(replace(value, /:(plac\w+)/, MS + "input-$1"), element, "")
558
- ], callback);
559
- }
560
- return "";
561
- });
562
- }
549
+ if (element.length > -1) {
550
+ if (!element.return)
551
+ switch (element.type) {
552
+ case DECLARATION:
553
+ element.return = prefix(element.value, element.length);
554
+ break;
555
+ case KEYFRAMES:
556
+ return serialize([copy(element, { value: replace(element.value, "@", "@" + WEBKIT) })], callback);
557
+ case RULESET:
558
+ if (element.length)
559
+ return combine(element.props, function(value) {
560
+ switch (match(value, /(::plac\w+|:read-\w+)/)) {
561
+ case ":read-only":
562
+ case ":read-write":
563
+ return serialize([copy(element, { props: [replace(value, /:(read-\w+)/, ":" + MOZ + "$1")] })], callback);
564
+ case "::placeholder":
565
+ return serialize([
566
+ copy(element, { props: [replace(value, /:(plac\w+)/, ":" + WEBKIT + "input-$1")] }),
567
+ copy(element, { props: [replace(value, /:(plac\w+)/, ":" + MOZ + "$1")] }),
568
+ copy(element, { props: [replace(value, /:(plac\w+)/, MS + "input-$1")] })
569
+ ], callback);
570
+ }
571
+ return "";
572
+ });
573
+ }
574
+ }
563
575
  }
564
576
  var weakMemoize = function weakMemoize2(func) {
565
577
  var cache = new WeakMap();
@@ -627,7 +639,7 @@ var getRules = function getRules2(value, points) {
627
639
  };
628
640
  var fixedElements = /* @__PURE__ */ new WeakMap();
629
641
  var compat = function compat2(element) {
630
- if (element.type !== "rule" || !element.parent || !element.length) {
642
+ if (element.type !== "rule" || !element.parent || element.length < 1) {
631
643
  return;
632
644
  }
633
645
  var value = element.value, parent = element.parent;
@@ -1991,7 +2003,7 @@ var lodash_mergewith = { exports: {} };
1991
2003
  return baseIsNative(value) ? value : void 0;
1992
2004
  }
1993
2005
  function getRawTag(value) {
1994
- var isOwn = hasOwnProperty2.call(value, symToStringTag), tag = value[symToStringTag];
2006
+ var isOwn = hasOwnProperty2.call(value, symToStringTag), tag2 = value[symToStringTag];
1995
2007
  try {
1996
2008
  value[symToStringTag] = void 0;
1997
2009
  var unmasked = true;
@@ -2000,7 +2012,7 @@ var lodash_mergewith = { exports: {} };
2000
2012
  var result = nativeObjectToString.call(value);
2001
2013
  if (unmasked) {
2002
2014
  if (isOwn) {
2003
- value[symToStringTag] = tag;
2015
+ value[symToStringTag] = tag2;
2004
2016
  } else {
2005
2017
  delete value[symToStringTag];
2006
2018
  }
@@ -2122,8 +2134,8 @@ var lodash_mergewith = { exports: {} };
2122
2134
  if (!isObject2(value)) {
2123
2135
  return false;
2124
2136
  }
2125
- var tag = baseGetTag(value);
2126
- return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
2137
+ var tag2 = baseGetTag(value);
2138
+ return tag2 == funcTag || tag2 == genTag || tag2 == asyncTag || tag2 == proxyTag;
2127
2139
  }
2128
2140
  function isLength(value) {
2129
2141
  return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
@@ -2434,6 +2446,26 @@ var pipe = function pipe2() {
2434
2446
  }, v2);
2435
2447
  };
2436
2448
  };
2449
+ function flatten(target, maxDepth) {
2450
+ if (maxDepth === void 0) {
2451
+ maxDepth = Infinity;
2452
+ }
2453
+ if (!isObject(target) && !Array.isArray(target) || !maxDepth) {
2454
+ return target;
2455
+ }
2456
+ return Object.entries(target).reduce(function(result, _ref) {
2457
+ var key = _ref[0], value = _ref[1];
2458
+ if (isObject(value) || isArray(value)) {
2459
+ Object.entries(flatten(value, maxDepth - 1)).forEach(function(_ref2) {
2460
+ var childKey = _ref2[0], childValue = _ref2[1];
2461
+ result[key + "." + childKey] = childValue;
2462
+ });
2463
+ } else {
2464
+ result[key] = value;
2465
+ }
2466
+ return result;
2467
+ }, {});
2468
+ }
2437
2469
  function valueToPercent(value, min, max) {
2438
2470
  return (value - min) * 100 / (max - min);
2439
2471
  }
@@ -2458,26 +2490,6 @@ function mapResponsive(prop2, mapper) {
2458
2490
  }
2459
2491
  return null;
2460
2492
  }
2461
- function walkObject(target, predicate) {
2462
- function inner(value, path) {
2463
- if (path === void 0) {
2464
- path = [];
2465
- }
2466
- if (isArray(value)) {
2467
- return value.map(function(item, index) {
2468
- return inner(item, [].concat(path, [String(index)]));
2469
- });
2470
- }
2471
- if (isObject(value)) {
2472
- return fromEntries(Object.entries(value).map(function(_ref) {
2473
- var key = _ref[0], child = _ref[1];
2474
- return [key, inner(child, [].concat(path, [key]))];
2475
- }));
2476
- }
2477
- return predicate(value, path);
2478
- }
2479
- return inner(target);
2480
- }
2481
2493
  function createContext(options) {
2482
2494
  if (options === void 0) {
2483
2495
  options = {};
@@ -2504,22 +2516,15 @@ function getValidChildren(children) {
2504
2516
  }
2505
2517
  var useSafeLayoutEffect = isBrowser ? React.useLayoutEffect : React.useEffect;
2506
2518
  var defaultIdContext = {
2507
- prefix: Math.round(Math.random() * 1e10),
2508
- current: 0
2519
+ current: 1
2509
2520
  };
2510
2521
  var IdContext = /* @__PURE__ */ React.createContext(defaultIdContext);
2511
2522
  var IdProvider = /* @__PURE__ */ React.memo(function(_ref) {
2512
2523
  var children = _ref.children;
2513
- var currentContext = React.useContext(IdContext);
2514
- var isRoot = currentContext === defaultIdContext;
2515
- var context = React.useMemo(function() {
2516
- return {
2517
- prefix: isRoot ? 0 : ++currentContext.prefix,
2518
- current: 0
2519
- };
2520
- }, [isRoot, currentContext]);
2521
2524
  return /* @__PURE__ */ React.createElement(IdContext.Provider, {
2522
- value: context
2525
+ value: {
2526
+ current: 1
2527
+ }
2523
2528
  }, children);
2524
2529
  });
2525
2530
  var reactDom_production_min = {};
@@ -9253,11 +9258,12 @@ function addListener(fn) {
9253
9258
  }
9254
9259
  var root = {
9255
9260
  get: function get2() {
9256
- return document.documentElement.style.getPropertyValue("--chakra-ui-color-mode");
9261
+ return document.documentElement.style.getPropertyValue("--chakra-ui-color-mode") || document.documentElement.dataset.theme;
9257
9262
  },
9258
9263
  set: function set(mode2) {
9259
9264
  if (isBrowser) {
9260
9265
  document.documentElement.style.setProperty("--chakra-ui-color-mode", mode2);
9266
+ document.documentElement.setAttribute("data-theme", mode2);
9261
9267
  }
9262
9268
  }
9263
9269
  };
@@ -9591,7 +9597,7 @@ function parseGradient(value, theme2) {
9591
9597
  var _stopOrFunc = isCSSFunction(_stop) ? _stop : _stop && _stop.split(" ");
9592
9598
  var key = "colors." + _color;
9593
9599
  var color2 = key in theme2.__cssMap ? theme2.__cssMap[key].varRef : _color;
9594
- return _stopOrFunc ? [color2, _stopOrFunc].join(" ") : color2;
9600
+ return _stopOrFunc ? [color2].concat(Array.isArray(_stopOrFunc) ? _stopOrFunc : [_stopOrFunc]).join(" ") : color2;
9595
9601
  });
9596
9602
  return _type + "(" + _values.join(", ") + ")";
9597
9603
  }
@@ -9690,12 +9696,12 @@ var transformFunctions = {
9690
9696
  },
9691
9697
  flexDirection: function flexDirection(value) {
9692
9698
  var _flexDirectionTemplat;
9693
- var _ref = (_flexDirectionTemplat = flexDirectionTemplate[value]) != null ? _flexDirectionTemplat : {}, space3 = _ref.space, divide3 = _ref.divide;
9699
+ var _ref = (_flexDirectionTemplat = flexDirectionTemplate[value]) != null ? _flexDirectionTemplat : {}, space2 = _ref.space, divide3 = _ref.divide;
9694
9700
  var result = {
9695
9701
  flexDirection: value
9696
9702
  };
9697
- if (space3)
9698
- result[space3] = 1;
9703
+ if (space2)
9704
+ result[space2] = 1;
9699
9705
  if (divide3)
9700
9706
  result[divide3] = 1;
9701
9707
  return result;
@@ -9971,7 +9977,10 @@ var flexbox = {
9971
9977
  order: true,
9972
9978
  placeItems: true,
9973
9979
  placeContent: true,
9974
- placeSelf: true
9980
+ placeSelf: true,
9981
+ gap: t.space("gap"),
9982
+ rowGap: t.space("rowGap"),
9983
+ columnGap: t.space("columnGap")
9975
9984
  };
9976
9985
  Object.assign(flexbox, {
9977
9986
  flexDir: flexbox.flexDirection
@@ -10049,7 +10058,7 @@ Object.assign(layout, {
10049
10058
  overscrollX: layout.overscrollBehaviorX,
10050
10059
  overscrollY: layout.overscrollBehaviorY
10051
10060
  });
10052
- var list = {
10061
+ var list$1 = {
10053
10062
  listStyleType: true,
10054
10063
  listStylePosition: true,
10055
10064
  listStylePos: t.prop("listStylePosition"),
@@ -10120,7 +10129,7 @@ var position = {
10120
10129
  position: true,
10121
10130
  pos: t.prop("position"),
10122
10131
  zIndex: t.prop("zIndex", "zIndices"),
10123
- inset: t.spaceT(["top", "right", "bottom", "left"]),
10132
+ inset: t.spaceT("inset"),
10124
10133
  insetX: t.spaceT(["left", "right"]),
10125
10134
  insetInline: t.spaceT("insetInline"),
10126
10135
  insetY: t.spaceT(["top", "bottom"]),
@@ -10236,7 +10245,7 @@ var transform8 = {
10236
10245
  scale: t.prop(["--chakra-scale-x", "--chakra-scale-y"]),
10237
10246
  rotate: t.degreeT("--chakra-rotate")
10238
10247
  };
10239
- var transition$2 = {
10248
+ var transition$1 = {
10240
10249
  transition: true,
10241
10250
  transitionDelay: true,
10242
10251
  animation: true,
@@ -10280,6 +10289,26 @@ var typography$2 = {
10280
10289
  }
10281
10290
  }
10282
10291
  };
10292
+ var scroll = {
10293
+ scrollBehavior: true,
10294
+ scrollSnapAlign: true,
10295
+ scrollSnapStop: true,
10296
+ scrollSnapType: true,
10297
+ scrollMargin: t.spaceT("scrollMargin"),
10298
+ scrollMarginTop: t.spaceT("scrollMarginTop"),
10299
+ scrollMarginBottom: t.spaceT("scrollMarginBottom"),
10300
+ scrollMarginLeft: t.spaceT("scrollMarginLeft"),
10301
+ scrollMarginRight: t.spaceT("scrollMarginRight"),
10302
+ scrollMarginX: t.spaceT(["scrollMarginLeft", "scrollMarginRight"]),
10303
+ scrollMarginY: t.spaceT(["scrollMarginTop", "scrollMarginBottom"]),
10304
+ scrollPadding: t.spaceT("scrollPadding"),
10305
+ scrollPaddingTop: t.spaceT("scrollPaddingTop"),
10306
+ scrollPaddingBottom: t.spaceT("scrollPaddingBottom"),
10307
+ scrollPaddingLeft: t.spaceT("scrollPaddingLeft"),
10308
+ scrollPaddingRight: t.spaceT("scrollPaddingRight"),
10309
+ scrollPaddingX: t.spaceT(["scrollPaddingLeft", "scrollPaddingRight"]),
10310
+ scrollPaddingY: t.spaceT(["scrollPaddingTop", "scrollPaddingBottom"])
10311
+ };
10283
10312
  function _arrayLikeToArray(arr, len) {
10284
10313
  if (len == null || len > arr.length)
10285
10314
  len = arr.length;
@@ -10321,40 +10350,53 @@ function _createForOfIteratorHelperLoose(o, allowArrayLike) {
10321
10350
  }
10322
10351
  throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
10323
10352
  }
10324
- var group = {
10325
- hover: function hover(selector2) {
10326
- return selector2 + ":hover &, " + selector2 + "[data-hover] &";
10353
+ var state = {
10354
+ hover: function hover(str, post) {
10355
+ return str + ":hover " + post + ", " + str + "[data-hover] " + post;
10356
+ },
10357
+ focus: function focus(str, post) {
10358
+ return str + ":focus " + post + ", " + str + "[data-focus] " + post;
10359
+ },
10360
+ focusVisible: function focusVisible(str, post) {
10361
+ return str + ":focus-visible " + post;
10327
10362
  },
10328
- focus: function focus(selector2) {
10329
- return selector2 + ":focus &, " + selector2 + "[data-focus] &";
10363
+ focusWithin: function focusWithin(str, post) {
10364
+ return str + ":focus-within " + post;
10330
10365
  },
10331
- focusVisible: function focusVisible(selector2) {
10332
- return selector2 + ":focus-visible &";
10366
+ active: function active(str, post) {
10367
+ return str + ":active " + post + ", " + str + "[data-active] " + post;
10333
10368
  },
10334
- active: function active(selector2) {
10335
- return selector2 + ":active &, " + selector2 + "[data-active] &";
10369
+ disabled: function disabled(str, post) {
10370
+ return str + ":disabled " + post + ", " + str + "[data-disabled] " + post;
10336
10371
  },
10337
- disabled: function disabled(selector2) {
10338
- return selector2 + ":disabled &, " + selector2 + "[data-disabled] &";
10372
+ invalid: function invalid(str, post) {
10373
+ return str + ":invalid " + post + ", " + str + "[data-invalid] " + post;
10339
10374
  },
10340
- invalid: function invalid(selector2) {
10341
- return selector2 + ":invalid &, " + selector2 + "[data-invalid] &";
10375
+ checked: function checked(str, post) {
10376
+ return str + ":checked " + post + ", " + str + "[data-checked] " + post;
10342
10377
  },
10343
- checked: function checked(selector2) {
10344
- return selector2 + ":checked &, " + selector2 + "[data-checked] &";
10378
+ indeterminate: function indeterminate(str, post) {
10379
+ return str + ":indeterminate " + post + ", " + str + "[aria-checked=mixed] " + post + ", " + str + "[data-indeterminate] " + post;
10345
10380
  },
10346
- indeterminate: function indeterminate(selector2) {
10347
- return selector2 + ":indeterminate &, " + selector2 + "[aria-checked=mixed] &, " + selector2 + "[data-indeterminate] &";
10381
+ readOnly: function readOnly(str, post) {
10382
+ return str + ":read-only " + post + ", " + str + "[readonly] " + post + ", " + str + "[data-read-only] " + post;
10348
10383
  },
10349
- readOnly: function readOnly(selector2) {
10350
- return selector2 + ":read-only &, " + selector2 + "[readonly] &, " + selector2 + "[data-read-only] &";
10384
+ expanded: function expanded(str, post) {
10385
+ return str + ":read-only " + post + ", " + str + "[aria-expanded=true] " + post + ", " + str + "[data-expanded] " + post;
10351
10386
  },
10352
- expanded: function expanded(selector2) {
10353
- return selector2 + ":read-only &, " + selector2 + "[aria-expanded=true] &, " + selector2 + "[data-expanded] &";
10387
+ placeholderShown: function placeholderShown(str, post) {
10388
+ return str + ":placeholder-shown " + post;
10354
10389
  }
10355
10390
  };
10356
10391
  var toGroup = function toGroup2(fn) {
10357
- return merge(fn, "[role=group]", "[data-group]", ".group");
10392
+ return merge(function(v2) {
10393
+ return fn(v2, "&");
10394
+ }, "[role=group]", "[data-group]", ".group");
10395
+ };
10396
+ var toPeer = function toPeer2(fn) {
10397
+ return merge(function(v2) {
10398
+ return fn(v2, "~ &");
10399
+ }, "[data-peer]", ".peer");
10358
10400
  };
10359
10401
  var merge = function merge2(fn) {
10360
10402
  for (var _len = arguments.length, selectors = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
@@ -10394,23 +10436,36 @@ var pseudoSelectors = {
10394
10436
  _activeLink: "&[aria-current=page]",
10395
10437
  _activeStep: "&[aria-current=step]",
10396
10438
  _indeterminate: "&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",
10397
- _groupHover: toGroup(group.hover),
10398
- _groupFocus: toGroup(group.focus),
10399
- _groupFocusVisible: toGroup(group.focusVisible),
10400
- _groupActive: toGroup(group.active),
10401
- _groupDisabled: toGroup(group.disabled),
10402
- _groupInvalid: toGroup(group.invalid),
10403
- _groupChecked: toGroup(group.checked),
10439
+ _groupHover: toGroup(state.hover),
10440
+ _peerHover: toPeer(state.hover),
10441
+ _groupFocus: toGroup(state.focus),
10442
+ _peerFocus: toPeer(state.focus),
10443
+ _groupFocusVisible: toGroup(state.focusVisible),
10444
+ _peerFocusVisible: toPeer(state.focusVisible),
10445
+ _groupActive: toGroup(state.active),
10446
+ _peerActive: toPeer(state.active),
10447
+ _groupDisabled: toGroup(state.disabled),
10448
+ _peerDisabled: toPeer(state.disabled),
10449
+ _groupInvalid: toGroup(state.invalid),
10450
+ _peerInvalid: toPeer(state.invalid),
10451
+ _groupChecked: toGroup(state.checked),
10452
+ _peerChecked: toPeer(state.checked),
10453
+ _groupFocusWithin: toGroup(state.focusWithin),
10454
+ _peerFocusWithin: toPeer(state.focusWithin),
10455
+ _peerPlaceholderShown: toPeer(state.placeholderShown),
10404
10456
  _placeholder: "&::placeholder",
10457
+ _placeholderShown: "&:placeholder-shown",
10405
10458
  _fullScreen: "&:fullscreen",
10406
10459
  _selection: "&::selection",
10407
- _rtl: "[dir=rtl] &",
10460
+ _rtl: "[dir=rtl] &, &[dir=rtl]",
10461
+ _ltr: "[dir=ltr] &, &[dir=ltr]",
10408
10462
  _mediaDark: "@media (prefers-color-scheme: dark)",
10463
+ _mediaReduceMotion: "@media (prefers-reduced-motion: reduce)",
10409
10464
  _dark: ".chakra-ui-dark &, [data-theme=dark] &, &[data-theme=dark]",
10410
10465
  _light: ".chakra-ui-light &, [data-theme=light] &, &[data-theme=light]"
10411
10466
  };
10412
10467
  var pseudoPropNames = objectKeys(pseudoSelectors);
10413
- var systemProps = mergeWith({}, background, border, color, flexbox, layout, filter2, ring2, interactivity, grid, others, position, effect, space, typography$2, textDecoration, transform8, list, transition$2);
10468
+ var systemProps = mergeWith({}, background, border, color, flexbox, layout, filter2, ring2, interactivity, grid, others, position, effect, space, scroll, typography$2, textDecoration, transform8, list$1, transition$1);
10414
10469
  Object.assign({}, space, layout, flexbox, grid, position);
10415
10470
  var propNames = [].concat(objectKeys(systemProps), pseudoPropNames);
10416
10471
  var styleProps = _extends$7({}, systemProps, pseudoSelectors);
@@ -10662,55 +10717,77 @@ function cssVar$1(name, fallback, cssVarPrefix) {
10662
10717
  reference: toVarReference(cssVariable, fallback)
10663
10718
  };
10664
10719
  }
10665
- function createThemeVars(target, options) {
10666
- var context = {
10667
- cssMap: {},
10668
- cssVars: {}
10669
- };
10670
- walkObject(target, function(value, path) {
10671
- var _tokenHandlerMap$firs;
10672
- var firstKey = path[0];
10673
- var handler = (_tokenHandlerMap$firs = tokenHandlerMap[firstKey]) != null ? _tokenHandlerMap$firs : tokenHandlerMap.defaultHandler;
10674
- var _handler = handler(path, value, options), cssVars = _handler.cssVars, cssMap = _handler.cssMap;
10675
- Object.assign(context.cssVars, cssVars);
10676
- Object.assign(context.cssMap, cssMap);
10677
- });
10678
- return context;
10679
- }
10680
- var tokenHandlerMap = {
10681
- space: function space2(keys2, value, options) {
10682
- var _extends2;
10683
- var properties = tokenHandlerMap.defaultHandler(keys2, value, options);
10684
- var firstKey = keys2[0], referenceKeys = keys2.slice(1);
10685
- var negativeLookupKey = firstKey + ".-" + referenceKeys.join(".");
10686
- var negativeVarKey = keys2.join("-");
10687
- var _cssVar = cssVar$1(negativeVarKey, void 0, options.cssVarPrefix), variable = _cssVar.variable, reference = _cssVar.reference;
10688
- var negativeValue = calc$1.negate(value);
10689
- var varRef = calc$1.negate(reference);
10690
- return {
10691
- cssVars: properties.cssVars,
10692
- cssMap: _extends$7({}, properties.cssMap, (_extends2 = {}, _extends2[negativeLookupKey] = {
10693
- value: "" + negativeValue,
10694
- "var": "" + variable,
10695
- varRef
10696
- }, _extends2))
10697
- };
10698
- },
10699
- defaultHandler: function defaultHandler(keys2, value, options) {
10700
- var _cssVars, _cssMap;
10701
- var lookupKey = keys2.join(".");
10702
- var varKey = keys2.join("-");
10703
- var _cssVar2 = cssVar$1(varKey, void 0, options.cssVarPrefix), variable = _cssVar2.variable, reference = _cssVar2.reference;
10704
- return {
10705
- cssVars: (_cssVars = {}, _cssVars[variable] = value, _cssVars),
10706
- cssMap: (_cssMap = {}, _cssMap[lookupKey] = {
10720
+ function tokenToCssVar(token2, prefix2) {
10721
+ return cssVar$1(String(token2).replace(/\./g, "-"), void 0, prefix2);
10722
+ }
10723
+ function createThemeVars(flatTokens, options) {
10724
+ var cssVars = {};
10725
+ var cssMap = {};
10726
+ var _loop = function _loop2() {
10727
+ var _Object$entries$_i = _Object$entries[_i], token2 = _Object$entries$_i[0], tokenValue = _Object$entries$_i[1];
10728
+ var isSemantic = tokenValue.isSemantic, value = tokenValue.value;
10729
+ var _tokenToCssVar = tokenToCssVar(token2, options == null ? void 0 : options.cssVarPrefix), variable = _tokenToCssVar.variable, reference = _tokenToCssVar.reference;
10730
+ if (!isSemantic) {
10731
+ if (token2.startsWith("space")) {
10732
+ var keys2 = token2.split(".");
10733
+ var firstKey = keys2[0], referenceKeys = keys2.slice(1);
10734
+ var negativeLookupKey = firstKey + ".-" + referenceKeys.join(".");
10735
+ var negativeValue = calc$1.negate(value);
10736
+ var negatedReference = calc$1.negate(reference);
10737
+ cssMap[negativeLookupKey] = {
10738
+ value: negativeValue,
10739
+ "var": variable,
10740
+ varRef: negatedReference
10741
+ };
10742
+ }
10743
+ cssVars[variable] = value;
10744
+ cssMap[token2] = {
10707
10745
  value,
10708
10746
  "var": variable,
10709
10747
  varRef: reference
10710
- }, _cssMap)
10748
+ };
10749
+ return "continue";
10750
+ }
10751
+ var lookupToken = function lookupToken2(maybeToken) {
10752
+ var scale = String(token2).split(".")[0];
10753
+ var withScale = [scale, maybeToken].join(".");
10754
+ var resolvedTokenValue = flatTokens[withScale];
10755
+ if (!resolvedTokenValue)
10756
+ return maybeToken;
10757
+ var _tokenToCssVar2 = tokenToCssVar(withScale, options == null ? void 0 : options.cssVarPrefix), reference2 = _tokenToCssVar2.reference;
10758
+ return reference2;
10711
10759
  };
10760
+ var normalizedValue = isObject(value) ? value : {
10761
+ "default": value
10762
+ };
10763
+ cssVars = mergeWith(cssVars, Object.entries(normalizedValue).reduce(function(acc, _ref) {
10764
+ var _pseudoSelectors$cond, _acc$conditionSelecto;
10765
+ var conditionAlias = _ref[0], conditionValue = _ref[1];
10766
+ var maybeReference = lookupToken(conditionValue);
10767
+ if (conditionAlias === "default") {
10768
+ acc[variable] = maybeReference;
10769
+ return acc;
10770
+ }
10771
+ var conditionSelector = (_pseudoSelectors$cond = pseudoSelectors == null ? void 0 : pseudoSelectors[conditionAlias]) != null ? _pseudoSelectors$cond : conditionAlias;
10772
+ acc[conditionSelector] = (_acc$conditionSelecto = {}, _acc$conditionSelecto[variable] = maybeReference, _acc$conditionSelecto);
10773
+ return acc;
10774
+ }, {}));
10775
+ cssMap[token2] = {
10776
+ value: reference,
10777
+ "var": variable,
10778
+ varRef: reference
10779
+ };
10780
+ };
10781
+ for (var _i = 0, _Object$entries = Object.entries(flatTokens); _i < _Object$entries.length; _i++) {
10782
+ var _ret = _loop();
10783
+ if (_ret === "continue")
10784
+ continue;
10712
10785
  }
10713
- };
10786
+ return {
10787
+ cssVars,
10788
+ cssMap
10789
+ };
10790
+ }
10714
10791
  function _objectWithoutPropertiesLoose$5(source, excluded) {
10715
10792
  if (source == null)
10716
10793
  return {};
@@ -10731,6 +10808,9 @@ function extractTokens(theme2) {
10731
10808
  var _tokens = tokens;
10732
10809
  return pick(theme2, _tokens);
10733
10810
  }
10811
+ function extractSemanticTokens(theme2) {
10812
+ return theme2.semanticTokens;
10813
+ }
10734
10814
  function omitVars(rawTheme) {
10735
10815
  rawTheme.__cssMap;
10736
10816
  rawTheme.__cssVars;
@@ -10738,12 +10818,38 @@ function omitVars(rawTheme) {
10738
10818
  var cleanTheme = _objectWithoutPropertiesLoose$5(rawTheme, _excluded$b);
10739
10819
  return cleanTheme;
10740
10820
  }
10821
+ function flattenTokens(_ref) {
10822
+ var _flatten, _flatten2;
10823
+ var tokens2 = _ref.tokens, semanticTokens = _ref.semanticTokens;
10824
+ var tokenEntries = Object.entries((_flatten = flatten(tokens2)) != null ? _flatten : {}).map(function(_ref2) {
10825
+ var token2 = _ref2[0], value = _ref2[1];
10826
+ var enhancedToken = {
10827
+ isSemantic: false,
10828
+ value
10829
+ };
10830
+ return [token2, enhancedToken];
10831
+ });
10832
+ var semanticTokenEntries = Object.entries((_flatten2 = flatten(semanticTokens, 1)) != null ? _flatten2 : {}).map(function(_ref3) {
10833
+ var token2 = _ref3[0], value = _ref3[1];
10834
+ var enhancedToken = {
10835
+ isSemantic: true,
10836
+ value
10837
+ };
10838
+ return [token2, enhancedToken];
10839
+ });
10840
+ return fromEntries([].concat(tokenEntries, semanticTokenEntries));
10841
+ }
10741
10842
  function toCSSVar(rawTheme) {
10742
10843
  var _theme$config;
10743
10844
  var theme2 = omitVars(rawTheme);
10744
10845
  var tokens2 = extractTokens(theme2);
10846
+ var semanticTokens = extractSemanticTokens(theme2);
10847
+ var flatTokens = flattenTokens({
10848
+ tokens: tokens2,
10849
+ semanticTokens
10850
+ });
10745
10851
  var cssVarPrefix = (_theme$config = theme2.config) == null ? void 0 : _theme$config.cssVarPrefix;
10746
- var _createThemeVars = createThemeVars(tokens2, {
10852
+ var _createThemeVars = createThemeVars(flatTokens, {
10747
10853
  cssVarPrefix
10748
10854
  }), cssMap = _createThemeVars.cssMap, cssVars = _createThemeVars.cssVars;
10749
10855
  var defaultCssVars = {
@@ -10860,40 +10966,40 @@ var testOmitPropsOnStringTag = isPropValid;
10860
10966
  var testOmitPropsOnComponent = function testOmitPropsOnComponent2(key) {
10861
10967
  return key !== "theme";
10862
10968
  };
10863
- var getDefaultShouldForwardProp = function getDefaultShouldForwardProp2(tag) {
10864
- return typeof tag === "string" && tag.charCodeAt(0) > 96 ? testOmitPropsOnStringTag : testOmitPropsOnComponent;
10969
+ var getDefaultShouldForwardProp = function getDefaultShouldForwardProp2(tag2) {
10970
+ return typeof tag2 === "string" && tag2.charCodeAt(0) > 96 ? testOmitPropsOnStringTag : testOmitPropsOnComponent;
10865
10971
  };
10866
- var composeShouldForwardProps = function composeShouldForwardProps2(tag, options, isReal) {
10972
+ var composeShouldForwardProps = function composeShouldForwardProps2(tag2, options, isReal) {
10867
10973
  var shouldForwardProp3;
10868
10974
  if (options) {
10869
10975
  var optionsShouldForwardProp = options.shouldForwardProp;
10870
- shouldForwardProp3 = tag.__emotion_forwardProp && optionsShouldForwardProp ? function(propName) {
10871
- return tag.__emotion_forwardProp(propName) && optionsShouldForwardProp(propName);
10976
+ shouldForwardProp3 = tag2.__emotion_forwardProp && optionsShouldForwardProp ? function(propName) {
10977
+ return tag2.__emotion_forwardProp(propName) && optionsShouldForwardProp(propName);
10872
10978
  } : optionsShouldForwardProp;
10873
10979
  }
10874
10980
  if (typeof shouldForwardProp3 !== "function" && isReal) {
10875
- shouldForwardProp3 = tag.__emotion_forwardProp;
10981
+ shouldForwardProp3 = tag2.__emotion_forwardProp;
10876
10982
  }
10877
10983
  return shouldForwardProp3;
10878
10984
  };
10879
10985
  var Noop = function Noop2() {
10880
10986
  return null;
10881
10987
  };
10882
- var createStyled = function createStyled2(tag, options) {
10883
- var isReal = tag.__emotion_real === tag;
10884
- var baseTag = isReal && tag.__emotion_base || tag;
10988
+ var createStyled = function createStyled2(tag2, options) {
10989
+ var isReal = tag2.__emotion_real === tag2;
10990
+ var baseTag = isReal && tag2.__emotion_base || tag2;
10885
10991
  var identifierName;
10886
10992
  var targetClassName;
10887
10993
  if (options !== void 0) {
10888
10994
  identifierName = options.label;
10889
10995
  targetClassName = options.target;
10890
10996
  }
10891
- var shouldForwardProp3 = composeShouldForwardProps(tag, options, isReal);
10997
+ var shouldForwardProp3 = composeShouldForwardProps(tag2, options, isReal);
10892
10998
  var defaultShouldForwardProp = shouldForwardProp3 || getDefaultShouldForwardProp(baseTag);
10893
10999
  var shouldUseAs = !defaultShouldForwardProp("as");
10894
11000
  return function() {
10895
11001
  var args = arguments;
10896
- var styles2 = isReal && tag.__emotion_styles !== void 0 ? tag.__emotion_styles.slice(0) : [];
11002
+ var styles2 = isReal && tag2.__emotion_styles !== void 0 ? tag2.__emotion_styles.slice(0) : [];
10897
11003
  if (identifierName !== void 0) {
10898
11004
  styles2.push("label:" + identifierName + ";");
10899
11005
  }
@@ -10946,7 +11052,7 @@ var createStyled = function createStyled2(tag, options) {
10946
11052
  return /* @__PURE__ */ createElement(Fragment$1, null, possiblyStyleElement, ele);
10947
11053
  });
10948
11054
  Styled.displayName = identifierName !== void 0 ? identifierName : "Styled(" + (typeof baseTag === "string" ? baseTag : baseTag.displayName || baseTag.name || "Component") + ")";
10949
- Styled.defaultProps = tag.defaultProps;
11055
+ Styled.defaultProps = tag2.defaultProps;
10950
11056
  Styled.__emotion_real = Styled;
10951
11057
  Styled.__emotion_base = baseTag;
10952
11058
  Styled.__emotion_styles = styles2;
@@ -11122,19 +11228,25 @@ function _extends$6() {
11122
11228
  return _extends$6.apply(this, arguments);
11123
11229
  }
11124
11230
  var ThemeProvider2 = function ThemeProvider3(props) {
11125
- var _props$cssVarsRoot = props.cssVarsRoot, cssVarsRoot = _props$cssVarsRoot === void 0 ? ":host, :root" : _props$cssVarsRoot, theme2 = props.theme, children = props.children;
11231
+ var cssVarsRoot = props.cssVarsRoot, theme2 = props.theme, children = props.children;
11126
11232
  var computedTheme = React.useMemo(function() {
11127
11233
  return toCSSVar(theme2);
11128
11234
  }, [theme2]);
11129
11235
  return /* @__PURE__ */ React.createElement(ThemeProvider$1, {
11130
11236
  theme: computedTheme
11131
- }, /* @__PURE__ */ React.createElement(Global, {
11132
- styles: function styles2(theme3) {
11133
- var _ref;
11134
- return _ref = {}, _ref[cssVarsRoot] = theme3.__cssVars, _ref;
11135
- }
11237
+ }, /* @__PURE__ */ React.createElement(CSSVars, {
11238
+ root: cssVarsRoot
11136
11239
  }), children);
11137
11240
  };
11241
+ var CSSVars = function CSSVars2(_ref) {
11242
+ var _ref$root = _ref.root, root2 = _ref$root === void 0 ? ":host, :root" : _ref$root;
11243
+ return /* @__PURE__ */ React.createElement(Global, {
11244
+ styles: function styles2(theme2) {
11245
+ var _ref2;
11246
+ return _ref2 = {}, _ref2[root2] = theme2.__cssVars, _ref2;
11247
+ }
11248
+ });
11249
+ };
11138
11250
  function useTheme() {
11139
11251
  var theme2 = React.useContext(ThemeContext);
11140
11252
  if (!theme2) {
@@ -11142,10 +11254,10 @@ function useTheme() {
11142
11254
  }
11143
11255
  return theme2;
11144
11256
  }
11145
- var _createContext = createContext({
11257
+ createContext({
11146
11258
  name: "StylesContext",
11147
11259
  errorMessage: "useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "
11148
- }), StylesProvider = _createContext[0], useStyles = _createContext[1];
11260
+ });
11149
11261
  var GlobalStyle = function GlobalStyle2() {
11150
11262
  var _useColorMode = useColorMode(), colorMode = _useColorMode.colorMode;
11151
11263
  return /* @__PURE__ */ React.createElement(Global, {
@@ -11218,8 +11330,8 @@ function styled(component, options) {
11218
11330
  return newStyled(component, styledOptions)(styleObject);
11219
11331
  }
11220
11332
  var chakra = styled;
11221
- domElements.forEach(function(tag) {
11222
- chakra[tag] = chakra(tag);
11333
+ domElements.forEach(function(tag2) {
11334
+ chakra[tag2] = chakra(tag2);
11223
11335
  });
11224
11336
  function forwardRef(component) {
11225
11337
  return /* @__PURE__ */ React.forwardRef(component);
@@ -11281,6 +11393,83 @@ var ChakraProvider$1 = function ChakraProvider(props) {
11281
11393
  zIndex: portalZIndex
11282
11394
  }, _children) : _children)));
11283
11395
  };
11396
+ var spacing = {
11397
+ px: "1px",
11398
+ 0.5: "0.125rem",
11399
+ 1: "0.25rem",
11400
+ 1.5: "0.375rem",
11401
+ 2: "0.5rem",
11402
+ 2.5: "0.625rem",
11403
+ 3: "0.75rem",
11404
+ 3.5: "0.875rem",
11405
+ 4: "1rem",
11406
+ 5: "1.25rem",
11407
+ 6: "1.5rem",
11408
+ 7: "1.75rem",
11409
+ 8: "2rem",
11410
+ 9: "2.25rem",
11411
+ 10: "2.5rem",
11412
+ 12: "3rem",
11413
+ 14: "3.5rem",
11414
+ 16: "4rem",
11415
+ 20: "5rem",
11416
+ 24: "6rem",
11417
+ 28: "7rem",
11418
+ 32: "8rem",
11419
+ 36: "9rem",
11420
+ 40: "10rem",
11421
+ 44: "11rem",
11422
+ 48: "12rem",
11423
+ 52: "13rem",
11424
+ 56: "14rem",
11425
+ 60: "15rem",
11426
+ 64: "16rem",
11427
+ 72: "18rem",
11428
+ 80: "20rem",
11429
+ 96: "24rem"
11430
+ };
11431
+ function _extends$5() {
11432
+ _extends$5 = Object.assign || function(target) {
11433
+ for (var i = 1; i < arguments.length; i++) {
11434
+ var source = arguments[i];
11435
+ for (var key in source) {
11436
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
11437
+ target[key] = source[key];
11438
+ }
11439
+ }
11440
+ }
11441
+ return target;
11442
+ };
11443
+ return _extends$5.apply(this, arguments);
11444
+ }
11445
+ var largeSizes = {
11446
+ max: "max-content",
11447
+ min: "min-content",
11448
+ full: "100%",
11449
+ "3xs": "14rem",
11450
+ "2xs": "16rem",
11451
+ xs: "20rem",
11452
+ sm: "24rem",
11453
+ md: "28rem",
11454
+ lg: "32rem",
11455
+ xl: "36rem",
11456
+ "2xl": "42rem",
11457
+ "3xl": "48rem",
11458
+ "4xl": "56rem",
11459
+ "5xl": "64rem",
11460
+ "6xl": "72rem",
11461
+ "7xl": "80rem",
11462
+ "8xl": "90rem"
11463
+ };
11464
+ var container$1 = {
11465
+ sm: "640px",
11466
+ md: "768px",
11467
+ lg: "1024px",
11468
+ xl: "1280px"
11469
+ };
11470
+ var sizes$l = _extends$5({}, spacing, largeSizes, {
11471
+ container: container$1
11472
+ });
11284
11473
  function bound01(n2, max) {
11285
11474
  if (isOnePointZero(n2)) {
11286
11475
  n2 = "100%";
@@ -12498,8 +12687,8 @@ function orient(options) {
12498
12687
  return {};
12499
12688
  return orientation === "vertical" ? vertical : horizontal;
12500
12689
  }
12501
- function _extends$5() {
12502
- _extends$5 = Object.assign || function(target) {
12690
+ function _extends$4() {
12691
+ _extends$4 = Object.assign || function(target) {
12503
12692
  for (var i = 1; i < arguments.length; i++) {
12504
12693
  var source = arguments[i];
12505
12694
  for (var key in source) {
@@ -12510,14 +12699,14 @@ function _extends$5() {
12510
12699
  }
12511
12700
  return target;
12512
12701
  };
12513
- return _extends$5.apply(this, arguments);
12702
+ return _extends$4.apply(this, arguments);
12514
12703
  }
12515
12704
  var createBreakpoints = function createBreakpoints2(config2) {
12516
12705
  warn({
12517
12706
  condition: true,
12518
12707
  message: ["[chakra-ui]: createBreakpoints(...) will be deprecated pretty soon", "simply pass the breakpoints as an object. Remove the createBreakpoint(..) call"].join("")
12519
12708
  });
12520
- return _extends$5({
12709
+ return _extends$4({
12521
12710
  base: "0em"
12522
12711
  }, config2);
12523
12712
  };
@@ -12769,20 +12958,64 @@ var switchAnatomy = anatomy("switch").parts("container", "track", "thumb");
12769
12958
  var tableAnatomy = anatomy("table").parts("table", "thead", "tbody", "tr", "th", "td", "tfoot", "caption");
12770
12959
  var tabsAnatomy = anatomy("tabs").parts("root", "tab", "tablist", "tabpanel", "tabpanels", "indicator");
12771
12960
  var tagAnatomy = anatomy("tag").parts("container", "label", "closeButton");
12772
- function _extends$4() {
12773
- _extends$4 = Object.assign || function(target) {
12774
- for (var i = 1; i < arguments.length; i++) {
12775
- var source = arguments[i];
12776
- for (var key in source) {
12777
- if (Object.prototype.hasOwnProperty.call(source, key)) {
12778
- target[key] = source[key];
12779
- }
12780
- }
12781
- }
12782
- return target;
12783
- };
12784
- return _extends$4.apply(this, arguments);
12785
- }
12961
+ var typography$1 = {
12962
+ letterSpacings: {
12963
+ tighter: "-0.05em",
12964
+ tight: "-0.025em",
12965
+ normal: "0",
12966
+ wide: "0.025em",
12967
+ wider: "0.05em",
12968
+ widest: "0.1em"
12969
+ },
12970
+ lineHeights: {
12971
+ normal: "normal",
12972
+ none: 1,
12973
+ shorter: 1.25,
12974
+ "short": 1.375,
12975
+ base: 1.5,
12976
+ tall: 1.625,
12977
+ taller: "2",
12978
+ "3": ".75rem",
12979
+ "4": "1rem",
12980
+ "5": "1.25rem",
12981
+ "6": "1.5rem",
12982
+ "7": "1.75rem",
12983
+ "8": "2rem",
12984
+ "9": "2.25rem",
12985
+ "10": "2.5rem"
12986
+ },
12987
+ fontWeights: {
12988
+ hairline: 100,
12989
+ thin: 200,
12990
+ light: 300,
12991
+ normal: 400,
12992
+ medium: 500,
12993
+ semibold: 600,
12994
+ bold: 700,
12995
+ extrabold: 800,
12996
+ black: 900
12997
+ },
12998
+ fonts: {
12999
+ heading: '-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',
13000
+ body: '-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',
13001
+ mono: 'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'
13002
+ },
13003
+ fontSizes: {
13004
+ xs: "0.75rem",
13005
+ sm: "0.875rem",
13006
+ md: "1rem",
13007
+ lg: "1.125rem",
13008
+ xl: "1.25rem",
13009
+ "2xl": "1.5rem",
13010
+ "3xl": "1.875rem",
13011
+ "4xl": "2.25rem",
13012
+ "5xl": "3rem",
13013
+ "6xl": "3.75rem",
13014
+ "7xl": "4.5rem",
13015
+ "8xl": "6rem",
13016
+ "9xl": "8rem"
13017
+ }
13018
+ };
12786
13019
  var baseStyleContainer$3 = {
12787
13020
  borderTopWidth: "1px",
12788
13021
  borderColor: "inherit",
@@ -12821,7 +13054,7 @@ var baseStyle$D = {
12821
13054
  panel: baseStylePanel,
12822
13055
  icon: baseStyleIcon$5
12823
13056
  };
12824
- var Accordion = {
13057
+ var accordion = {
12825
13058
  parts: accordionAnatomy.keys,
12826
13059
  baseStyle: baseStyle$D
12827
13060
  };
@@ -12909,76 +13142,12 @@ var defaultProps$n = {
12909
13142
  variant: "subtle",
12910
13143
  colorScheme: "blue"
12911
13144
  };
12912
- var Alert = {
13145
+ var alert = {
12913
13146
  parts: alertAnatomy.keys,
12914
13147
  baseStyle: baseStyle$C,
12915
13148
  variants: variants$b,
12916
13149
  defaultProps: defaultProps$n
12917
13150
  };
12918
- var spacing = {
12919
- px: "1px",
12920
- 0.5: "0.125rem",
12921
- 1: "0.25rem",
12922
- 1.5: "0.375rem",
12923
- 2: "0.5rem",
12924
- 2.5: "0.625rem",
12925
- 3: "0.75rem",
12926
- 3.5: "0.875rem",
12927
- 4: "1rem",
12928
- 5: "1.25rem",
12929
- 6: "1.5rem",
12930
- 7: "1.75rem",
12931
- 8: "2rem",
12932
- 9: "2.25rem",
12933
- 10: "2.5rem",
12934
- 12: "3rem",
12935
- 14: "3.5rem",
12936
- 16: "4rem",
12937
- 20: "5rem",
12938
- 24: "6rem",
12939
- 28: "7rem",
12940
- 32: "8rem",
12941
- 36: "9rem",
12942
- 40: "10rem",
12943
- 44: "11rem",
12944
- 48: "12rem",
12945
- 52: "13rem",
12946
- 56: "14rem",
12947
- 60: "15rem",
12948
- 64: "16rem",
12949
- 72: "18rem",
12950
- 80: "20rem",
12951
- 96: "24rem"
12952
- };
12953
- var largeSizes = {
12954
- max: "max-content",
12955
- min: "min-content",
12956
- full: "100%",
12957
- "3xs": "14rem",
12958
- "2xs": "16rem",
12959
- xs: "20rem",
12960
- sm: "24rem",
12961
- md: "28rem",
12962
- lg: "32rem",
12963
- xl: "36rem",
12964
- "2xl": "42rem",
12965
- "3xl": "48rem",
12966
- "4xl": "56rem",
12967
- "5xl": "64rem",
12968
- "6xl": "72rem",
12969
- "7xl": "80rem",
12970
- "8xl": "90rem"
12971
- };
12972
- var container = {
12973
- sm: "640px",
12974
- md: "768px",
12975
- lg: "1024px",
12976
- xl: "1280px"
12977
- };
12978
- var sizes$l = _extends$4({}, spacing, largeSizes, {
12979
- container
12980
- });
12981
- var sizes$m = sizes$l;
12982
13151
  var baseStyleBadge = function baseStyleBadge2(props) {
12983
13152
  return {
12984
13153
  transform: "translate(25%, 25%)",
@@ -13017,7 +13186,7 @@ var baseStyle$B = function baseStyle(props) {
13017
13186
  };
13018
13187
  };
13019
13188
  function getSize$3(size2) {
13020
- var themeSize = sizes$m[size2];
13189
+ var themeSize = sizes$l[size2];
13021
13190
  return {
13022
13191
  container: {
13023
13192
  width: size2,
@@ -13047,7 +13216,7 @@ var sizes$k = {
13047
13216
  var defaultProps$m = {
13048
13217
  size: "md"
13049
13218
  };
13050
- var Avatar = {
13219
+ var avatar = {
13051
13220
  parts: avatarAnatomy.keys,
13052
13221
  baseStyle: baseStyle$B,
13053
13222
  sizes: sizes$k,
@@ -13118,7 +13287,7 @@ var baseStyleLink = {
13118
13287
  var baseStyle$z = {
13119
13288
  link: baseStyleLink
13120
13289
  };
13121
- var Breadcrumb = {
13290
+ var breadcrumb = {
13122
13291
  parts: breadcrumbAnatomy.keys,
13123
13292
  baseStyle: baseStyle$z
13124
13293
  };
@@ -13171,7 +13340,7 @@ var variantGhost = function variantGhost2(props) {
13171
13340
  var variantOutline$1 = function variantOutline2(props) {
13172
13341
  var c2 = props.colorScheme;
13173
13342
  var borderColor = mode("gray.200", "whiteAlpha.300")(props);
13174
- return _extends$4({
13343
+ return _extends$5({
13175
13344
  border: "1px solid",
13176
13345
  borderColor: c2 === "gray" ? borderColor : "currentColor"
13177
13346
  }, variantGhost(props));
@@ -13289,7 +13458,7 @@ var defaultProps$k = {
13289
13458
  size: "md",
13290
13459
  colorScheme: "gray"
13291
13460
  };
13292
- var Button = {
13461
+ var button = {
13293
13462
  baseStyle: baseStyle$y,
13294
13463
  variants: variants$9,
13295
13464
  sizes: sizes$j,
@@ -13436,7 +13605,7 @@ var sizes$h = {
13436
13605
  var defaultProps$i = {
13437
13606
  size: "md"
13438
13607
  };
13439
- var CloseButton = {
13608
+ var closeButton = {
13440
13609
  baseStyle: baseStyle$w,
13441
13610
  sizes: sizes$h,
13442
13611
  defaultProps: defaultProps$i
@@ -13448,7 +13617,7 @@ var baseStyle$v = {
13448
13617
  px: "0.2em",
13449
13618
  borderRadius: "sm"
13450
13619
  };
13451
- var Code = {
13620
+ var code = {
13452
13621
  baseStyle: baseStyle$v,
13453
13622
  variants: variants$8,
13454
13623
  defaultProps: defaultProps$h
@@ -13459,7 +13628,7 @@ var baseStyle$u = {
13459
13628
  maxW: "60ch",
13460
13629
  px: "1rem"
13461
13630
  };
13462
- var Container = {
13631
+ var container = {
13463
13632
  baseStyle: baseStyle$u
13464
13633
  };
13465
13634
  var baseStyle$t = {
@@ -13479,7 +13648,7 @@ var variants$7 = {
13479
13648
  var defaultProps$g = {
13480
13649
  variant: "solid"
13481
13650
  };
13482
- var Divider = {
13651
+ var divider = {
13483
13652
  baseStyle: baseStyle$t,
13484
13653
  variants: variants$7,
13485
13654
  defaultProps: defaultProps$g
@@ -13510,7 +13679,7 @@ var baseStyleDialogContainer$1 = {
13510
13679
  };
13511
13680
  var baseStyleDialog$1 = function baseStyleDialog(props) {
13512
13681
  var isFullHeight = props.isFullHeight;
13513
- return _extends$4({}, isFullHeight && {
13682
+ return _extends$5({}, isFullHeight && {
13514
13683
  height: "100vh"
13515
13684
  }, {
13516
13685
  zIndex: "modal",
@@ -13563,7 +13732,7 @@ var sizes$g = {
13563
13732
  var defaultProps$f = {
13564
13733
  size: "xs"
13565
13734
  };
13566
- var Drawer = {
13735
+ var drawer = {
13567
13736
  parts: drawerAnatomy.keys,
13568
13737
  baseStyle: baseStyle$s,
13569
13738
  sizes: sizes$g,
@@ -13592,7 +13761,7 @@ var baseStyle$r = {
13592
13761
  preview: baseStylePreview,
13593
13762
  input: baseStyleInput
13594
13763
  };
13595
- var Editable = {
13764
+ var editable = {
13596
13765
  parts: editableAnatomy.keys,
13597
13766
  baseStyle: baseStyle$r
13598
13767
  };
@@ -13620,11 +13789,35 @@ var baseStyle$q = function baseStyle5(props) {
13620
13789
  helperText: baseStyleHelperText(props)
13621
13790
  };
13622
13791
  };
13623
- var Form = {
13792
+ var form = {
13624
13793
  parts: formAnatomy.keys,
13625
13794
  baseStyle: baseStyle$q
13626
13795
  };
13627
- var baseStyle$p = {
13796
+ var baseStyleText = function baseStyleText2(props) {
13797
+ return {
13798
+ color: mode("red.500", "red.300")(props),
13799
+ mt: 2,
13800
+ fontSize: "sm",
13801
+ lineHeight: "normal"
13802
+ };
13803
+ };
13804
+ var baseStyleIcon$3 = function baseStyleIcon(props) {
13805
+ return {
13806
+ marginEnd: "0.5em",
13807
+ color: mode("red.500", "red.300")(props)
13808
+ };
13809
+ };
13810
+ var baseStyle$p = function baseStyle6(props) {
13811
+ return {
13812
+ text: baseStyleText(props),
13813
+ icon: baseStyleIcon$3(props)
13814
+ };
13815
+ };
13816
+ var formError = {
13817
+ parts: formErrorAnatomy.keys,
13818
+ baseStyle: baseStyle$p
13819
+ };
13820
+ var baseStyle$o = {
13628
13821
  fontSize: "md",
13629
13822
  marginEnd: 3,
13630
13823
  mb: 2,
@@ -13636,10 +13829,10 @@ var baseStyle$p = {
13636
13829
  opacity: 0.4
13637
13830
  }
13638
13831
  };
13639
- var FormLabel = {
13640
- baseStyle: baseStyle$p
13832
+ var formLabel = {
13833
+ baseStyle: baseStyle$o
13641
13834
  };
13642
- var baseStyle$o = {
13835
+ var baseStyle$n = {
13643
13836
  fontFamily: "heading",
13644
13837
  fontWeight: "bold"
13645
13838
  };
@@ -13680,12 +13873,12 @@ var sizes$f = {
13680
13873
  var defaultProps$e = {
13681
13874
  size: "xl"
13682
13875
  };
13683
- var Heading$1 = {
13684
- baseStyle: baseStyle$o,
13876
+ var heading = {
13877
+ baseStyle: baseStyle$n,
13685
13878
  sizes: sizes$f,
13686
13879
  defaultProps: defaultProps$e
13687
13880
  };
13688
- var baseStyle$n = {
13881
+ var baseStyle$m = {
13689
13882
  field: {
13690
13883
  width: "100%",
13691
13884
  minWidth: 0,
@@ -13873,12 +14066,12 @@ var defaultProps$d = {
13873
14066
  };
13874
14067
  var Input = {
13875
14068
  parts: inputAnatomy.keys,
13876
- baseStyle: baseStyle$n,
14069
+ baseStyle: baseStyle$m,
13877
14070
  sizes: sizes$e,
13878
14071
  variants: variants$6,
13879
14072
  defaultProps: defaultProps$d
13880
14073
  };
13881
- var baseStyle$m = function baseStyle6(props) {
14074
+ var baseStyle$l = function baseStyle7(props) {
13882
14075
  return {
13883
14076
  bg: mode("gray.100", "whiteAlpha")(props),
13884
14077
  borderRadius: "md",
@@ -13891,10 +14084,10 @@ var baseStyle$m = function baseStyle6(props) {
13891
14084
  whiteSpace: "nowrap"
13892
14085
  };
13893
14086
  };
13894
- var Kbd = {
13895
- baseStyle: baseStyle$m
14087
+ var kbd = {
14088
+ baseStyle: baseStyle$l
13896
14089
  };
13897
- var baseStyle$l = {
14090
+ var baseStyle$k = {
13898
14091
  transitionProperty: "common",
13899
14092
  transitionDuration: "fast",
13900
14093
  transitionTimingFunction: "ease-out",
@@ -13909,22 +14102,22 @@ var baseStyle$l = {
13909
14102
  boxShadow: "outline"
13910
14103
  }
13911
14104
  };
13912
- var Link$1 = {
13913
- baseStyle: baseStyle$l
14105
+ var link = {
14106
+ baseStyle: baseStyle$k
13914
14107
  };
13915
- var baseStyleIcon$3 = {
14108
+ var baseStyleIcon$2 = {
13916
14109
  marginEnd: "0.5rem",
13917
14110
  display: "inline",
13918
14111
  verticalAlign: "text-bottom"
13919
14112
  };
13920
- var baseStyle$k = {
14113
+ var baseStyle$j = {
13921
14114
  container: {},
13922
14115
  item: {},
13923
- icon: baseStyleIcon$3
14116
+ icon: baseStyleIcon$2
13924
14117
  };
13925
- var List$1 = {
14118
+ var list = {
13926
14119
  parts: listAnatomy.keys,
13927
- baseStyle: baseStyle$k
14120
+ baseStyle: baseStyle$j
13928
14121
  };
13929
14122
  var baseStyleList = function baseStyleList2(props) {
13930
14123
  return {
@@ -13980,7 +14173,7 @@ var baseStyleButton = {
13980
14173
  transitionProperty: "common",
13981
14174
  transitionDuration: "normal"
13982
14175
  };
13983
- var baseStyle$j = function baseStyle7(props) {
14176
+ var baseStyle$i = function baseStyle8(props) {
13984
14177
  return {
13985
14178
  button: baseStyleButton,
13986
14179
  list: baseStyleList(props),
@@ -13990,9 +14183,9 @@ var baseStyle$j = function baseStyle7(props) {
13990
14183
  divider: baseStyleDivider
13991
14184
  };
13992
14185
  };
13993
- var Menu = {
14186
+ var menu = {
13994
14187
  parts: menuAnatomy.keys,
13995
- baseStyle: baseStyle$j
14188
+ baseStyle: baseStyle$i
13996
14189
  };
13997
14190
  var baseStyleOverlay = {
13998
14191
  bg: "blackAlpha.600",
@@ -14044,7 +14237,7 @@ var baseStyleFooter$1 = {
14044
14237
  px: 6,
14045
14238
  py: 4
14046
14239
  };
14047
- var baseStyle$i = function baseStyle8(props) {
14240
+ var baseStyle$h = function baseStyle9(props) {
14048
14241
  return {
14049
14242
  overlay: baseStyleOverlay,
14050
14243
  dialogContainer: baseStyleDialogContainer(props),
@@ -14061,6 +14254,9 @@ function getSize$1(value) {
14061
14254
  dialog: {
14062
14255
  maxW: "100vw",
14063
14256
  minH: "100vh",
14257
+ "@supports(min-height: -webkit-fill-available)": {
14258
+ minH: "-webkit-fill-available"
14259
+ },
14064
14260
  my: 0
14065
14261
  }
14066
14262
  };
@@ -14087,71 +14283,12 @@ var sizes$d = {
14087
14283
  var defaultProps$c = {
14088
14284
  size: "md"
14089
14285
  };
14090
- var Modal = {
14286
+ var modal = {
14091
14287
  parts: modalAnatomy.keys,
14092
- baseStyle: baseStyle$i,
14288
+ baseStyle: baseStyle$h,
14093
14289
  sizes: sizes$d,
14094
14290
  defaultProps: defaultProps$c
14095
14291
  };
14096
- var typography$1 = {
14097
- letterSpacings: {
14098
- tighter: "-0.05em",
14099
- tight: "-0.025em",
14100
- normal: "0",
14101
- wide: "0.025em",
14102
- wider: "0.05em",
14103
- widest: "0.1em"
14104
- },
14105
- lineHeights: {
14106
- normal: "normal",
14107
- none: 1,
14108
- shorter: 1.25,
14109
- "short": 1.375,
14110
- base: 1.5,
14111
- tall: 1.625,
14112
- taller: "2",
14113
- "3": ".75rem",
14114
- "4": "1rem",
14115
- "5": "1.25rem",
14116
- "6": "1.5rem",
14117
- "7": "1.75rem",
14118
- "8": "2rem",
14119
- "9": "2.25rem",
14120
- "10": "2.5rem"
14121
- },
14122
- fontWeights: {
14123
- hairline: 100,
14124
- thin: 200,
14125
- light: 300,
14126
- normal: 400,
14127
- medium: 500,
14128
- semibold: 600,
14129
- bold: 700,
14130
- extrabold: 800,
14131
- black: 900
14132
- },
14133
- fonts: {
14134
- heading: '-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',
14135
- body: '-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',
14136
- mono: 'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'
14137
- },
14138
- fontSizes: {
14139
- xs: "0.75rem",
14140
- sm: "0.875rem",
14141
- md: "1rem",
14142
- lg: "1.125rem",
14143
- xl: "1.25rem",
14144
- "2xl": "1.5rem",
14145
- "3xl": "1.875rem",
14146
- "4xl": "2.25rem",
14147
- "5xl": "3rem",
14148
- "6xl": "3.75rem",
14149
- "7xl": "4.5rem",
14150
- "8xl": "6rem",
14151
- "9xl": "8rem"
14152
- }
14153
- };
14154
- var typography$1$1 = typography$1;
14155
14292
  var _baseStyleRoot, _Input$baseStyle$fiel, _Input$baseStyle;
14156
14293
  var variants$5 = Input.variants, defaultProps$b = Input.defaultProps;
14157
14294
  var $stepperWidth = cssVar("number-input-stepper-width");
@@ -14176,7 +14313,7 @@ var baseStyleStepper = function baseStyleStepper2(props) {
14176
14313
  }
14177
14314
  };
14178
14315
  };
14179
- var baseStyle$h = function baseStyle9(props) {
14316
+ var baseStyle$g = function baseStyle10(props) {
14180
14317
  return {
14181
14318
  root: baseStyleRoot$1,
14182
14319
  field: baseStyleField$1,
@@ -14194,9 +14331,9 @@ function getSize(size2) {
14194
14331
  xs: "sm"
14195
14332
  };
14196
14333
  var _fontSize = (_sizeStyle$field$font = (_sizeStyle$field = sizeStyle.field) == null ? void 0 : _sizeStyle$field.fontSize) != null ? _sizeStyle$field$font : "md";
14197
- var fontSize = typography$1$1.fontSizes[_fontSize.toString()];
14334
+ var fontSize = typography$1.fontSizes[_fontSize.toString()];
14198
14335
  return {
14199
- field: _extends$4({}, sizeStyle.field, {
14336
+ field: _extends$5({}, sizeStyle.field, {
14200
14337
  paddingInlineEnd: $inputPadding.reference,
14201
14338
  verticalAlign: "top"
14202
14339
  }),
@@ -14219,15 +14356,15 @@ var sizes$c = {
14219
14356
  md: getSize("md"),
14220
14357
  lg: getSize("lg")
14221
14358
  };
14222
- var NumberInput = {
14359
+ var numberInput = {
14223
14360
  parts: numberInputAnatomy.keys,
14224
- baseStyle: baseStyle$h,
14361
+ baseStyle: baseStyle$g,
14225
14362
  sizes: sizes$c,
14226
14363
  variants: variants$5,
14227
14364
  defaultProps: defaultProps$b
14228
14365
  };
14229
14366
  var _Input$variants$unsty$1;
14230
- var baseStyle$g = _extends$4({}, Input.baseStyle.field, {
14367
+ var baseStyle$f = _extends$5({}, Input.baseStyle.field, {
14231
14368
  textAlign: "center"
14232
14369
  });
14233
14370
  var sizes$b = {
@@ -14272,8 +14409,8 @@ var variants$4 = {
14272
14409
  unstyled: (_Input$variants$unsty$1 = Input.variants.unstyled.field) != null ? _Input$variants$unsty$1 : {}
14273
14410
  };
14274
14411
  var defaultProps$a = Input.defaultProps;
14275
- var PinInput = {
14276
- baseStyle: baseStyle$g,
14412
+ var pinInput = {
14413
+ baseStyle: baseStyle$f,
14277
14414
  sizes: sizes$b,
14278
14415
  variants: variants$4,
14279
14416
  defaultProps: defaultProps$a
@@ -14314,7 +14451,7 @@ var baseStyleCloseButton$1 = {
14314
14451
  insetEnd: 2,
14315
14452
  padding: 2
14316
14453
  };
14317
- var baseStyle$f = function baseStyle10(props) {
14454
+ var baseStyle$e = function baseStyle11(props) {
14318
14455
  return {
14319
14456
  popper: baseStylePopper,
14320
14457
  content: baseStyleContent(props),
@@ -14325,9 +14462,9 @@ var baseStyle$f = function baseStyle10(props) {
14325
14462
  closeButton: baseStyleCloseButton$1
14326
14463
  };
14327
14464
  };
14328
- var Popover = {
14465
+ var popover = {
14329
14466
  parts: popoverAnatomy.keys,
14330
- baseStyle: baseStyle$f
14467
+ baseStyle: baseStyle$e
14331
14468
  };
14332
14469
  function filledStyle(props) {
14333
14470
  var c2 = props.colorScheme, t2 = props.theme, isIndeterminate = props.isIndeterminate, hasStripe = props.hasStripe;
@@ -14335,7 +14472,7 @@ function filledStyle(props) {
14335
14472
  var bgColor = mode(c2 + ".500", c2 + ".200")(props);
14336
14473
  var gradient = "linear-gradient(\n to right,\n transparent 0%,\n " + getColor(t2, bgColor) + " 50%,\n transparent 100%\n )";
14337
14474
  var addStripe = !isIndeterminate && hasStripe;
14338
- return _extends$4({}, addStripe && stripeStyle, isIndeterminate ? {
14475
+ return _extends$5({}, addStripe && stripeStyle, isIndeterminate ? {
14339
14476
  bgImage: gradient
14340
14477
  } : {
14341
14478
  bgColor
@@ -14353,12 +14490,12 @@ var baseStyleTrack$2 = function baseStyleTrack(props) {
14353
14490
  };
14354
14491
  };
14355
14492
  var baseStyleFilledTrack$1 = function baseStyleFilledTrack(props) {
14356
- return _extends$4({
14493
+ return _extends$5({
14357
14494
  transitionProperty: "common",
14358
14495
  transitionDuration: "slow"
14359
14496
  }, filledStyle(props));
14360
14497
  };
14361
- var baseStyle$e = function baseStyle11(props) {
14498
+ var baseStyle$d = function baseStyle12(props) {
14362
14499
  return {
14363
14500
  label: baseStyleLabel$2,
14364
14501
  filledTrack: baseStyleFilledTrack$1(props),
@@ -14391,17 +14528,17 @@ var defaultProps$9 = {
14391
14528
  size: "md",
14392
14529
  colorScheme: "blue"
14393
14530
  };
14394
- var Progress$1 = {
14531
+ var progress = {
14395
14532
  parts: progressAnatomy.keys,
14396
14533
  sizes: sizes$a,
14397
- baseStyle: baseStyle$e,
14534
+ baseStyle: baseStyle$d,
14398
14535
  defaultProps: defaultProps$9
14399
14536
  };
14400
14537
  var baseStyleControl2 = function baseStyleControl3(props) {
14401
14538
  var _Checkbox$baseStyle = Checkbox.baseStyle(props), _Checkbox$baseStyle$c = _Checkbox$baseStyle.control, control = _Checkbox$baseStyle$c === void 0 ? {} : _Checkbox$baseStyle$c;
14402
- return _extends$4({}, control, {
14539
+ return _extends$5({}, control, {
14403
14540
  borderRadius: "full",
14404
- _checked: _extends$4({}, control["_checked"], {
14541
+ _checked: _extends$5({}, control["_checked"], {
14405
14542
  _before: {
14406
14543
  content: '""',
14407
14544
  display: "inline-block",
@@ -14414,7 +14551,7 @@ var baseStyleControl2 = function baseStyleControl3(props) {
14414
14551
  })
14415
14552
  });
14416
14553
  };
14417
- var baseStyle$d = function baseStyle12(props) {
14554
+ var baseStyle$c = function baseStyle13(props) {
14418
14555
  return {
14419
14556
  label: Checkbox.baseStyle(props).label,
14420
14557
  control: baseStyleControl2(props)
@@ -14453,14 +14590,14 @@ var defaultProps$8 = {
14453
14590
  size: "md",
14454
14591
  colorScheme: "blue"
14455
14592
  };
14456
- var Radio = {
14593
+ var radio = {
14457
14594
  parts: radioAnatomy.keys,
14458
- baseStyle: baseStyle$d,
14595
+ baseStyle: baseStyle$c,
14459
14596
  sizes: sizes$9,
14460
14597
  defaultProps: defaultProps$8
14461
14598
  };
14462
14599
  var baseStyleField = function baseStyleField2(props) {
14463
- return _extends$4({}, Input.baseStyle.field, {
14600
+ return _extends$5({}, Input.baseStyle.field, {
14464
14601
  bg: mode("white", "gray.700")(props),
14465
14602
  appearance: "none",
14466
14603
  paddingBottom: "1px",
@@ -14470,7 +14607,7 @@ var baseStyleField = function baseStyleField2(props) {
14470
14607
  }
14471
14608
  });
14472
14609
  };
14473
- var baseStyleIcon$2 = {
14610
+ var baseStyleIcon$1 = {
14474
14611
  width: "1.5rem",
14475
14612
  height: "100%",
14476
14613
  insetEnd: "0.5rem",
@@ -14481,10 +14618,10 @@ var baseStyleIcon$2 = {
14481
14618
  opacity: 0.5
14482
14619
  }
14483
14620
  };
14484
- var baseStyle$c = function baseStyle13(props) {
14621
+ var baseStyle$b = function baseStyle14(props) {
14485
14622
  return {
14486
14623
  field: baseStyleField(props),
14487
- icon: baseStyleIcon$2
14624
+ icon: baseStyleIcon$1
14488
14625
  };
14489
14626
  };
14490
14627
  var iconSpacing = {
@@ -14507,9 +14644,9 @@ var sizes$8 = mergeWith({}, Input.sizes, {
14507
14644
  }
14508
14645
  }
14509
14646
  });
14510
- var Select = {
14647
+ var select = {
14511
14648
  parts: selectAnatomy.keys,
14512
- baseStyle: baseStyle$c,
14649
+ baseStyle: baseStyle$b,
14513
14650
  sizes: sizes$8,
14514
14651
  variants: Input.variants,
14515
14652
  defaultProps: Input.defaultProps
@@ -14526,7 +14663,7 @@ var fade = function fade2(startColor, endColor) {
14526
14663
  }
14527
14664
  });
14528
14665
  };
14529
- var baseStyle$b = function baseStyle14(props) {
14666
+ var baseStyle$a = function baseStyle15(props) {
14530
14667
  var defaultStartColor = mode("gray.100", "gray.800")(props);
14531
14668
  var defaultEndColor = mode("gray.400", "gray.600")(props);
14532
14669
  var _props$startColor = props.startColor, startColor = _props$startColor === void 0 ? defaultStartColor : _props$startColor, _props$endColor = props.endColor, endColor = _props$endColor === void 0 ? defaultEndColor : _props$endColor, speed = props.speed, theme2 = props.theme;
@@ -14540,10 +14677,10 @@ var baseStyle$b = function baseStyle14(props) {
14540
14677
  animation: speed + "s linear infinite alternate " + fade(start, end)
14541
14678
  };
14542
14679
  };
14543
- var Skeleton = {
14544
- baseStyle: baseStyle$b
14680
+ var skeleton = {
14681
+ baseStyle: baseStyle$a
14545
14682
  };
14546
- var baseStyle$a = function baseStyle15(props) {
14683
+ var baseStyle$9 = function baseStyle16(props) {
14547
14684
  return {
14548
14685
  borderRadius: "md",
14549
14686
  fontWeight: "semibold",
@@ -14557,8 +14694,8 @@ var baseStyle$a = function baseStyle15(props) {
14557
14694
  }
14558
14695
  };
14559
14696
  };
14560
- var SkipLink = {
14561
- baseStyle: baseStyle$a
14697
+ var skipLink = {
14698
+ baseStyle: baseStyle$9
14562
14699
  };
14563
14700
  function thumbOrientation(props) {
14564
14701
  return orient({
@@ -14581,7 +14718,7 @@ function thumbOrientation(props) {
14581
14718
  }
14582
14719
  var baseStyleContainer$1 = function baseStyleContainer2(props) {
14583
14720
  var orientation = props.orientation;
14584
- return _extends$4({
14721
+ return _extends$5({
14585
14722
  display: "inline-block",
14586
14723
  position: "relative",
14587
14724
  cursor: "pointer",
@@ -14611,7 +14748,7 @@ var baseStyleTrack$1 = function baseStyleTrack2(props) {
14611
14748
  };
14612
14749
  };
14613
14750
  var baseStyleThumb$1 = function baseStyleThumb(props) {
14614
- return _extends$4({
14751
+ return _extends$5({
14615
14752
  display: "flex",
14616
14753
  alignItems: "center",
14617
14754
  justifyContent: "center",
@@ -14641,7 +14778,7 @@ var baseStyleFilledTrack2 = function baseStyleFilledTrack3(props) {
14641
14778
  bg: mode(c2 + ".500", c2 + ".200")(props)
14642
14779
  };
14643
14780
  };
14644
- var baseStyle$9 = function baseStyle16(props) {
14781
+ var baseStyle$8 = function baseStyle17(props) {
14645
14782
  return {
14646
14783
  container: baseStyleContainer$1(props),
14647
14784
  track: baseStyleTrack$1(props),
@@ -14709,15 +14846,15 @@ var defaultProps$7 = {
14709
14846
  size: "md",
14710
14847
  colorScheme: "blue"
14711
14848
  };
14712
- var Slider = {
14849
+ var slider = {
14713
14850
  parts: sliderAnatomy.keys,
14714
14851
  sizes: sizes$7,
14715
- baseStyle: baseStyle$9,
14852
+ baseStyle: baseStyle$8,
14716
14853
  defaultProps: defaultProps$7
14717
14854
  };
14718
14855
  var _xs, _sm, _md, _lg, _xl;
14719
14856
  var $size = cssVar("spinner-size");
14720
- var baseStyle$8 = {
14857
+ var baseStyle$7 = {
14721
14858
  width: [$size.reference],
14722
14859
  height: [$size.reference]
14723
14860
  };
@@ -14731,8 +14868,8 @@ var sizes$6 = {
14731
14868
  var defaultProps$6 = {
14732
14869
  size: "md"
14733
14870
  };
14734
- var Spinner = {
14735
- baseStyle: baseStyle$8,
14871
+ var spinner = {
14872
+ baseStyle: baseStyle$7,
14736
14873
  sizes: sizes$6,
14737
14874
  defaultProps: defaultProps$6
14738
14875
  };
@@ -14747,18 +14884,18 @@ var baseStyleNumber = {
14747
14884
  verticalAlign: "baseline",
14748
14885
  fontWeight: "semibold"
14749
14886
  };
14750
- var baseStyleIcon$1 = {
14887
+ var baseStyleIcon2 = {
14751
14888
  marginEnd: 1,
14752
14889
  w: "14px",
14753
14890
  h: "14px",
14754
14891
  verticalAlign: "middle"
14755
14892
  };
14756
- var baseStyle$7 = {
14893
+ var baseStyle$6 = {
14757
14894
  container: {},
14758
14895
  label: baseStyleLabel$1,
14759
14896
  helpText: baseStyleHelpText,
14760
14897
  number: baseStyleNumber,
14761
- icon: baseStyleIcon$1
14898
+ icon: baseStyleIcon2
14762
14899
  };
14763
14900
  var sizes$5 = {
14764
14901
  md: {
@@ -14776,9 +14913,9 @@ var sizes$5 = {
14776
14913
  var defaultProps$5 = {
14777
14914
  size: "md"
14778
14915
  };
14779
- var Stat = {
14916
+ var stat = {
14780
14917
  parts: statAnatomy.keys,
14781
- baseStyle: baseStyle$7,
14918
+ baseStyle: baseStyle$6,
14782
14919
  sizes: sizes$5,
14783
14920
  defaultProps: defaultProps$5
14784
14921
  };
@@ -14821,7 +14958,7 @@ var baseStyleThumb2 = {
14821
14958
  transform: "translateX(" + $translateX.reference + ")"
14822
14959
  }
14823
14960
  };
14824
- var baseStyle$6 = function baseStyle17(props) {
14961
+ var baseStyle$5 = function baseStyle18(props) {
14825
14962
  var _rtl, _container;
14826
14963
  return {
14827
14964
  container: (_container = {}, _container[$diff.variable] = diffValue, _container[$translateX.variable] = $diff.reference, _container._rtl = (_rtl = {}, _rtl[$translateX.variable] = calc($diff).negate().toString(), _rtl), _container),
@@ -14844,13 +14981,13 @@ var defaultProps$4 = {
14844
14981
  size: "md",
14845
14982
  colorScheme: "blue"
14846
14983
  };
14847
- var Switch = {
14984
+ var _switch = {
14848
14985
  parts: switchAnatomy.keys,
14849
- baseStyle: baseStyle$6,
14986
+ baseStyle: baseStyle$5,
14850
14987
  sizes: sizes$4,
14851
14988
  defaultProps: defaultProps$4
14852
14989
  };
14853
- var baseStyle$5 = {
14990
+ var baseStyle$4 = {
14854
14991
  table: {
14855
14992
  fontVariantNumeric: "lining-nums tabular-nums",
14856
14993
  borderCollapse: "collapse",
@@ -14881,12 +15018,12 @@ var numericStyles = {
14881
15018
  var variantSimple = function variantSimple2(props) {
14882
15019
  var c2 = props.colorScheme;
14883
15020
  return {
14884
- th: _extends$4({
15021
+ th: _extends$5({
14885
15022
  color: mode("gray.600", "gray.400")(props),
14886
15023
  borderBottom: "1px",
14887
15024
  borderColor: mode(c2 + ".100", c2 + ".700")(props)
14888
15025
  }, numericStyles),
14889
- td: _extends$4({
15026
+ td: _extends$5({
14890
15027
  borderBottom: "1px",
14891
15028
  borderColor: mode(c2 + ".100", c2 + ".700")(props)
14892
15029
  }, numericStyles),
@@ -14907,12 +15044,12 @@ var variantSimple = function variantSimple2(props) {
14907
15044
  var variantStripe = function variantStripe2(props) {
14908
15045
  var c2 = props.colorScheme;
14909
15046
  return {
14910
- th: _extends$4({
15047
+ th: _extends$5({
14911
15048
  color: mode("gray.600", "gray.400")(props),
14912
15049
  borderBottom: "1px",
14913
15050
  borderColor: mode(c2 + ".100", c2 + ".700")(props)
14914
15051
  }, numericStyles),
14915
- td: _extends$4({
15052
+ td: _extends$5({
14916
15053
  borderBottom: "1px",
14917
15054
  borderColor: mode(c2 + ".100", c2 + ".700")(props)
14918
15055
  }, numericStyles),
@@ -15010,9 +15147,9 @@ var defaultProps$3 = {
15010
15147
  size: "md",
15011
15148
  colorScheme: "gray"
15012
15149
  };
15013
- var Table = {
15150
+ var table = {
15014
15151
  parts: tableAnatomy.keys,
15015
- baseStyle: baseStyle$5,
15152
+ baseStyle: baseStyle$4,
15016
15153
  variants: variants$3,
15017
15154
  sizes: sizes$3,
15018
15155
  defaultProps: defaultProps$3
@@ -15050,7 +15187,7 @@ var baseStyleTablist = function baseStyleTablist2(props) {
15050
15187
  var baseStyleTabpanel = {
15051
15188
  p: 4
15052
15189
  };
15053
- var baseStyle$4 = function baseStyle18(props) {
15190
+ var baseStyle$3 = function baseStyle19(props) {
15054
15191
  return {
15055
15192
  root: baseStyleRoot(props),
15056
15193
  tab: baseStyleTab(props),
@@ -15189,9 +15326,9 @@ var defaultProps$2 = {
15189
15326
  variant: "line",
15190
15327
  colorScheme: "blue"
15191
15328
  };
15192
- var Tabs = {
15329
+ var tabs = {
15193
15330
  parts: tabsAnatomy.keys,
15194
- baseStyle: baseStyle$4,
15331
+ baseStyle: baseStyle$3,
15195
15332
  sizes: sizes$2,
15196
15333
  variants: variants$2,
15197
15334
  defaultProps: defaultProps$2
@@ -15232,7 +15369,7 @@ var baseStyleCloseButton = {
15232
15369
  opacity: 1
15233
15370
  }
15234
15371
  };
15235
- var baseStyle$3 = {
15372
+ var baseStyle$2 = {
15236
15373
  container: baseStyleContainer3,
15237
15374
  label: baseStyleLabel,
15238
15375
  closeButton: baseStyleCloseButton
@@ -15292,15 +15429,15 @@ var defaultProps$1 = {
15292
15429
  variant: "subtle",
15293
15430
  colorScheme: "gray"
15294
15431
  };
15295
- var Tag = {
15432
+ var tag = {
15296
15433
  parts: tagAnatomy.keys,
15297
15434
  variants: variants$1,
15298
- baseStyle: baseStyle$3,
15435
+ baseStyle: baseStyle$2,
15299
15436
  sizes: sizes$1,
15300
15437
  defaultProps: defaultProps$1
15301
15438
  };
15302
15439
  var _Input$variants$unsty, _Input$sizes$xs$field, _Input$sizes$sm$field, _Input$sizes$md$field, _Input$sizes$lg$field;
15303
- var baseStyle$2 = _extends$4({}, Input.baseStyle.field, {
15440
+ var baseStyle$1 = _extends$5({}, Input.baseStyle.field, {
15304
15441
  paddingY: "8px",
15305
15442
  minHeight: "80px",
15306
15443
  lineHeight: "short",
@@ -15331,87 +15468,65 @@ var defaultProps = {
15331
15468
  size: "md",
15332
15469
  variant: "outline"
15333
15470
  };
15334
- var Textarea = {
15335
- baseStyle: baseStyle$2,
15471
+ var textarea = {
15472
+ baseStyle: baseStyle$1,
15336
15473
  sizes,
15337
15474
  variants,
15338
15475
  defaultProps
15339
15476
  };
15340
15477
  var $bg = cssVar("tooltip-bg");
15341
15478
  var $arrowBg = cssVar("popper-arrow-bg");
15342
- var baseStyle$1 = function baseStyle19(props) {
15479
+ var baseStyle20 = function baseStyle21(props) {
15343
15480
  var _ref;
15344
15481
  var bg2 = mode("gray.700", "gray.300")(props);
15345
15482
  return _ref = {}, _ref[$bg.variable] = "colors." + bg2, _ref.px = "8px", _ref.py = "2px", _ref.bg = [$bg.reference], _ref[$arrowBg.variable] = [$bg.reference], _ref.color = mode("whiteAlpha.900", "gray.900")(props), _ref.borderRadius = "sm", _ref.fontWeight = "medium", _ref.fontSize = "sm", _ref.boxShadow = "md", _ref.maxW = "320px", _ref.zIndex = "tooltip", _ref;
15346
15483
  };
15347
- var Tooltip = {
15348
- baseStyle: baseStyle$1
15349
- };
15350
- var baseStyleText = function baseStyleText2(props) {
15351
- return {
15352
- color: mode("red.500", "red.300")(props),
15353
- mt: 2,
15354
- fontSize: "sm"
15355
- };
15356
- };
15357
- var baseStyleIcon = function baseStyleIcon2(props) {
15358
- return {
15359
- marginEnd: "0.5em",
15360
- color: mode("red.500", "red.300")(props)
15361
- };
15362
- };
15363
- var baseStyle20 = function baseStyle21(props) {
15364
- return {
15365
- text: baseStyleText(props),
15366
- icon: baseStyleIcon(props)
15367
- };
15368
- };
15369
- var FormError = {
15370
- parts: formErrorAnatomy.keys,
15484
+ var tooltip = {
15371
15485
  baseStyle: baseStyle20
15372
15486
  };
15373
- var components = {
15374
- Accordion,
15375
- Alert,
15376
- Avatar,
15487
+ var components = /* @__PURE__ */ Object.freeze({
15488
+ __proto__: null,
15489
+ Accordion: accordion,
15490
+ Alert: alert,
15491
+ Avatar: avatar,
15377
15492
  Badge,
15378
- Breadcrumb,
15379
- Button,
15493
+ Breadcrumb: breadcrumb,
15494
+ Button: button,
15380
15495
  Checkbox,
15381
- CloseButton,
15382
- Code,
15383
- Container,
15384
- Divider,
15385
- Drawer,
15386
- Editable,
15387
- Form,
15388
- FormLabel,
15389
- Heading: Heading$1,
15496
+ CloseButton: closeButton,
15497
+ Code: code,
15498
+ Container: container,
15499
+ Divider: divider,
15500
+ Drawer: drawer,
15501
+ Editable: editable,
15502
+ Form: form,
15503
+ FormError: formError,
15504
+ FormLabel: formLabel,
15505
+ Heading: heading,
15390
15506
  Input,
15391
- Kbd,
15392
- Link: Link$1,
15393
- List: List$1,
15394
- Menu,
15395
- Modal,
15396
- NumberInput,
15397
- PinInput,
15398
- Popover,
15399
- Progress: Progress$1,
15400
- Radio,
15401
- Select,
15402
- Skeleton,
15403
- SkipLink,
15404
- Slider,
15405
- Spinner,
15406
- Stat,
15407
- Switch,
15408
- Table,
15409
- Tabs,
15410
- Tag,
15411
- Textarea,
15412
- Tooltip,
15413
- FormError
15414
- };
15507
+ Kbd: kbd,
15508
+ Link: link,
15509
+ List: list,
15510
+ Menu: menu,
15511
+ Modal: modal,
15512
+ NumberInput: numberInput,
15513
+ PinInput: pinInput,
15514
+ Popover: popover,
15515
+ Progress: progress,
15516
+ Radio: radio,
15517
+ Select: select,
15518
+ Skeleton: skeleton,
15519
+ SkipLink: skipLink,
15520
+ Slider: slider,
15521
+ Spinner: spinner,
15522
+ Stat: stat,
15523
+ Switch: _switch,
15524
+ Table: table,
15525
+ Tabs: tabs,
15526
+ Tag: tag,
15527
+ Textarea: textarea,
15528
+ Tooltip: tooltip
15529
+ });
15415
15530
  var borders$1 = {
15416
15531
  none: 0,
15417
15532
  "1px": "1px solid",
@@ -15419,7 +15534,6 @@ var borders$1 = {
15419
15534
  "4px": "4px solid",
15420
15535
  "8px": "8px solid"
15421
15536
  };
15422
- var borders$1$1 = borders$1;
15423
15537
  var breakpoints = createBreakpoints({
15424
15538
  sm: "30em",
15425
15539
  md: "48em",
@@ -15427,7 +15541,6 @@ var breakpoints = createBreakpoints({
15427
15541
  xl: "80em",
15428
15542
  "2xl": "96em"
15429
15543
  });
15430
- var breakpoints$1 = breakpoints;
15431
15544
  var colors$1 = {
15432
15545
  transparent: "transparent",
15433
15546
  current: "currentColor",
@@ -15650,7 +15763,6 @@ var colors$1 = {
15650
15763
  900: "#003F5E"
15651
15764
  }
15652
15765
  };
15653
- var colors$1$1 = colors$1;
15654
15766
  var radii$1 = {
15655
15767
  none: "0",
15656
15768
  sm: "0.125rem",
@@ -15662,7 +15774,6 @@ var radii$1 = {
15662
15774
  "3xl": "1.5rem",
15663
15775
  full: "9999px"
15664
15776
  };
15665
- var radii$1$1 = radii$1;
15666
15777
  var shadows = {
15667
15778
  xs: "0 0 0 1px rgba(0, 0, 0, 0.05)",
15668
15779
  sm: "0 1px 2px 0 rgba(0, 0, 0, 0.05)",
@@ -15676,7 +15787,6 @@ var shadows = {
15676
15787
  none: "none",
15677
15788
  "dark-lg": "rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"
15678
15789
  };
15679
- var shadows$1 = shadows;
15680
15790
  var transitionProperty = {
15681
15791
  common: "background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",
15682
15792
  colors: "background-color, border-color, color, fill, stroke",
@@ -15703,7 +15813,6 @@ var transition = {
15703
15813
  easing: transitionTimingFunction,
15704
15814
  duration: transitionDuration
15705
15815
  };
15706
- var transition$1 = transition;
15707
15816
  var zIndices = {
15708
15817
  hide: -1,
15709
15818
  auto: "auto",
@@ -15719,7 +15828,6 @@ var zIndices = {
15719
15828
  toast: 1700,
15720
15829
  tooltip: 1800
15721
15830
  };
15722
- var zIndices$1 = zIndices;
15723
15831
  var blur2 = {
15724
15832
  none: 0,
15725
15833
  sm: "4px",
@@ -15730,21 +15838,19 @@ var blur2 = {
15730
15838
  "2xl": "40px",
15731
15839
  "3xl": "64px"
15732
15840
  };
15733
- var blur$1 = blur2;
15734
- var foundations = _extends$4({
15735
- breakpoints: breakpoints$1,
15736
- zIndices: zIndices$1,
15737
- radii: radii$1$1,
15738
- blur: blur$1,
15739
- colors: colors$1$1
15740
- }, typography$1$1, {
15741
- sizes: sizes$m,
15742
- shadows: shadows$1,
15841
+ var foundations = _extends$5({
15842
+ breakpoints,
15843
+ zIndices,
15844
+ radii: radii$1,
15845
+ blur: blur2,
15846
+ colors: colors$1
15847
+ }, typography$1, {
15848
+ sizes: sizes$l,
15849
+ shadows,
15743
15850
  space: spacing,
15744
- borders: borders$1$1,
15745
- transition: transition$1
15851
+ borders: borders$1,
15852
+ transition
15746
15853
  });
15747
- var foundations$1 = foundations;
15748
15854
  var styles$1 = {
15749
15855
  global: function global2(props) {
15750
15856
  return {
@@ -15782,9 +15888,9 @@ var config = {
15782
15888
  initialColorMode: "light",
15783
15889
  cssVarPrefix: "chakra"
15784
15890
  };
15785
- var theme$1 = _extends$4({
15891
+ var theme$1 = _extends$5({
15786
15892
  direction
15787
- }, foundations$1, {
15893
+ }, foundations, {
15788
15894
  components,
15789
15895
  styles: styles$1$1,
15790
15896
  config
@@ -16068,6 +16174,10 @@ var Link = /* @__PURE__ */ forwardRef(function(props, ref) {
16068
16174
  }));
16069
16175
  });
16070
16176
  var _excluded$5 = ["children", "styleType", "stylePosition", "spacing"];
16177
+ var _createContext = createContext({
16178
+ name: "StylesContext",
16179
+ errorMessage: "useStyles: `styles` is undefined. Seems you forgot to wrap the components in a `<*List />` "
16180
+ }), StylesProvider = _createContext[0], useStyles = _createContext[1];
16071
16181
  var List = /* @__PURE__ */ forwardRef(function(props, ref) {
16072
16182
  var _ref;
16073
16183
  var styles2 = useMultiStyleConfig("List", props);
@@ -16186,7 +16296,7 @@ var StackItem = function StackItem2(props) {
16186
16296
  };
16187
16297
  var Stack = /* @__PURE__ */ forwardRef(function(props, ref) {
16188
16298
  var _ref;
16189
- var isInline = props.isInline, directionProp = props.direction, align = props.align, justify = props.justify, _props$spacing = props.spacing, spacing2 = _props$spacing === void 0 ? "0.5rem" : _props$spacing, wrap3 = props.wrap, children = props.children, divider = props.divider, className = props.className, shouldWrapChildren = props.shouldWrapChildren, rest = _objectWithoutPropertiesLoose$1(props, _excluded$3);
16299
+ var isInline = props.isInline, directionProp = props.direction, align = props.align, justify = props.justify, _props$spacing = props.spacing, spacing2 = _props$spacing === void 0 ? "0.5rem" : _props$spacing, wrap3 = props.wrap, children = props.children, divider2 = props.divider, className = props.className, shouldWrapChildren = props.shouldWrapChildren, rest = _objectWithoutPropertiesLoose$1(props, _excluded$3);
16190
16300
  var direction2 = isInline ? "row" : directionProp != null ? directionProp : "column";
16191
16301
  var styles2 = React.useMemo(function() {
16192
16302
  return getStackStyles({
@@ -16200,7 +16310,7 @@ var Stack = /* @__PURE__ */ forwardRef(function(props, ref) {
16200
16310
  direction: direction2
16201
16311
  });
16202
16312
  }, [spacing2, direction2]);
16203
- var hasDivider = !!divider;
16313
+ var hasDivider = !!divider2;
16204
16314
  var shouldUseChildren = !shouldWrapChildren && !hasDivider;
16205
16315
  var validChildren = getValidChildren(children);
16206
16316
  var clones = shouldUseChildren ? validChildren : validChildren.map(function(child, index) {
@@ -16212,7 +16322,7 @@ var Stack = /* @__PURE__ */ forwardRef(function(props, ref) {
16212
16322
  var _child = shouldWrapChildren ? wrappedChild : child;
16213
16323
  if (!hasDivider)
16214
16324
  return _child;
16215
- var clonedDivider = /* @__PURE__ */ React.cloneElement(divider, {
16325
+ var clonedDivider = /* @__PURE__ */ React.cloneElement(divider2, {
16216
16326
  __css: dividerStyle
16217
16327
  });
16218
16328
  var _divider = isLast ? null : clonedDivider;
@@ -16461,7 +16571,7 @@ var Shape = function Shape2(props) {
16461
16571
  var CircularProgress = function CircularProgress2(props) {
16462
16572
  var _progress$percent;
16463
16573
  var _props$size = props.size, size2 = _props$size === void 0 ? "48px" : _props$size, _props$max = props.max, max = _props$max === void 0 ? 100 : _props$max, _props$min = props.min, min = _props$min === void 0 ? 0 : _props$min, valueText = props.valueText, getValueText = props.getValueText, value = props.value, capIsRound = props.capIsRound, children = props.children, _props$thickness = props.thickness, thickness = _props$thickness === void 0 ? "10px" : _props$thickness, _props$color = props.color, color2 = _props$color === void 0 ? "#0078d4" : _props$color, _props$trackColor = props.trackColor, trackColor = _props$trackColor === void 0 ? "#edebe9" : _props$trackColor, isIndeterminate = props.isIndeterminate, rest = _objectWithoutPropertiesLoose(props, _excluded2$1);
16464
- var progress = getProgressProps({
16574
+ var progress2 = getProgressProps({
16465
16575
  min,
16466
16576
  max,
16467
16577
  value,
@@ -16469,7 +16579,7 @@ var CircularProgress = function CircularProgress2(props) {
16469
16579
  getValueText,
16470
16580
  isIndeterminate
16471
16581
  });
16472
- var determinant = isIndeterminate ? void 0 : ((_progress$percent = progress.percent) != null ? _progress$percent : 0) * 2.64;
16582
+ var determinant = isIndeterminate ? void 0 : ((_progress$percent = progress2.percent) != null ? _progress$percent : 0) * 2.64;
16473
16583
  var strokeDasharray = isUndefined(determinant) ? void 0 : determinant + " " + (264 - determinant);
16474
16584
  var indicatorProps = isIndeterminate ? {
16475
16585
  css: {
@@ -16490,7 +16600,7 @@ var CircularProgress = function CircularProgress2(props) {
16490
16600
  };
16491
16601
  return /* @__PURE__ */ React.createElement(chakra.div, _extends({
16492
16602
  className: "chakra-progress"
16493
- }, progress.bind, rest, {
16603
+ }, progress2.bind, rest, {
16494
16604
  __css: rootStyles
16495
16605
  }), /* @__PURE__ */ React.createElement(Shape, {
16496
16606
  size: size2,
@@ -16504,7 +16614,7 @@ var CircularProgress = function CircularProgress2(props) {
16504
16614
  strokeWidth: thickness,
16505
16615
  className: "chakra-progress__indicator",
16506
16616
  strokeLinecap: capIsRound ? "round" : void 0,
16507
- opacity: progress.value === 0 && !isIndeterminate ? 0 : void 0
16617
+ opacity: progress2.value === 0 && !isIndeterminate ? 0 : void 0
16508
16618
  }, indicatorProps))), children);
16509
16619
  };
16510
16620
  chakra("div", {
@@ -16756,9 +16866,9 @@ var createRipples = function(defaultProps2) {
16756
16866
  var left = pageX - (rect.left + window.scrollX);
16757
16867
  var top = pageY - (rect.top + window.scrollY);
16758
16868
  var size2 = Math.max(rect.width, rect.height);
16759
- _this.setState(function(state) {
16869
+ _this.setState(function(state2) {
16760
16870
  return {
16761
- rippleStyle: __assign$1({}, state.rippleStyle, {
16871
+ rippleStyle: __assign$1({}, state2.rippleStyle, {
16762
16872
  left,
16763
16873
  top,
16764
16874
  opacity: 1,
@@ -16769,9 +16879,9 @@ var createRipples = function(defaultProps2) {
16769
16879
  };
16770
16880
  }, function() {
16771
16881
  _this.timer = setTimeout(function() {
16772
- _this.setState(function(state) {
16882
+ _this.setState(function(state2) {
16773
16883
  return {
16774
- rippleStyle: __assign$1({}, state.rippleStyle, { opacity: 0, transform: "scale(" + size2 / 9 + ")", transition: "all " + during + "ms" })
16884
+ rippleStyle: __assign$1({}, state2.rippleStyle, { opacity: 0, transform: "scale(" + size2 / 9 + ")", transition: "all " + during + "ms" })
16775
16885
  };
16776
16886
  });
16777
16887
  }, 50);
@@ -17074,10 +17184,10 @@ function Section() {
17074
17184
  name,
17075
17185
  dateStatus,
17076
17186
  information,
17077
- progress,
17187
+ progress: progress2,
17078
17188
  status
17079
17189
  } = React.useContext(CourseBoxContext);
17080
- if (progress == null) {
17190
+ if (progress2 == null) {
17081
17191
  return null;
17082
17192
  }
17083
17193
  return /* @__PURE__ */ jsxs(Box, {
@@ -17109,20 +17219,20 @@ function Section() {
17109
17219
  justify: "space-between",
17110
17220
  children: [/* @__PURE__ */ jsxs(Flex, {
17111
17221
  children: [/* @__PURE__ */ jsx(IconSelection, {
17112
- type: progress.icon,
17113
- progressValue: progress.progress
17222
+ type: progress2.icon,
17223
+ progressValue: progress2.progress
17114
17224
  }), /* @__PURE__ */ jsx(Text, {
17115
17225
  m: "0",
17116
17226
  ml: ".625rem",
17117
17227
  fontSize: ".875rem",
17118
17228
  lineHeight: "1.125rem",
17119
- children: progress == null ? void 0 : progress.label
17229
+ children: progress2 == null ? void 0 : progress2.label
17120
17230
  })]
17121
- }), (status == null ? void 0 : status.id) === ID_QUALIFIED && (progress == null ? void 0 : progress.finalGrade.length) > 0 && /* @__PURE__ */ jsx(Label, {
17231
+ }), (status == null ? void 0 : status.id) === ID_QUALIFIED && (progress2 == null ? void 0 : progress2.finalGrade) && (progress2 == null ? void 0 : progress2.finalGrade.length) > 0 && /* @__PURE__ */ jsx(Label, {
17122
17232
  size: "sm",
17123
- bg: progress.isApproved ? vars("colors-alert-jadeGreen") : vars("colors-alert-red"),
17233
+ bg: progress2.isApproved ? vars("colors-alert-jadeGreen") : vars("colors-alert-red"),
17124
17234
  color: vars("colors-neutral-white"),
17125
- children: progress == null ? void 0 : progress.finalGrade
17235
+ children: progress2 == null ? void 0 : progress2.finalGrade
17126
17236
  })]
17127
17237
  }), information != null && (information == null ? void 0 : information.length) > 0 && /* @__PURE__ */ jsx(List, {
17128
17238
  spacing: ".625rem",
@@ -17874,7 +17984,7 @@ function Footer() {
17874
17984
  href: action.href,
17875
17985
  color: vars("colors-main-deepSkyBlue"),
17876
17986
  fontWeight: "500",
17877
- mr: "1.5rem",
17987
+ mr: action.hasIcon ? "1.5rem" : "0",
17878
17988
  lineHeight: "1.172rem",
17879
17989
  isExternal: action.targetBlank,
17880
17990
  children: action.text