@eclass/ui-kit 1.5.6 → 1.6.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.
@@ -574,7 +574,7 @@ function prefixer(element, index, children, callback) {
574
574
  }
575
575
  }
576
576
  var weakMemoize = function weakMemoize2(func) {
577
- var cache = new WeakMap();
577
+ var cache = /* @__PURE__ */ new WeakMap();
578
578
  return function(arg) {
579
579
  if (cache.has(arg)) {
580
580
  return cache.get(arg);
@@ -585,7 +585,7 @@ var weakMemoize = function weakMemoize2(func) {
585
585
  };
586
586
  };
587
587
  function memoize$1(fn) {
588
- var cache = Object.create(null);
588
+ var cache = /* @__PURE__ */ Object.create(null);
589
589
  return function(arg) {
590
590
  if (cache[arg] === void 0)
591
591
  cache[arg] = fn(arg);
@@ -739,8 +739,8 @@ var createCache = function createCache2(options) {
739
739
  cache.sheet.hydrate(nodesToHydrate);
740
740
  return cache;
741
741
  };
742
- function _extends$8() {
743
- _extends$8 = Object.assign || function(target) {
742
+ function _extends$a() {
743
+ _extends$a = Object.assign || function(target) {
744
744
  for (var i = 1; i < arguments.length; i++) {
745
745
  var source = arguments[i];
746
746
  for (var key in source) {
@@ -751,7 +751,7 @@ function _extends$8() {
751
751
  }
752
752
  return target;
753
753
  };
754
- return _extends$8.apply(this, arguments);
754
+ return _extends$a.apply(this, arguments);
755
755
  }
756
756
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
757
757
  var reactIs$1 = { exports: {} };
@@ -886,11 +886,15 @@ function getRegisteredStyles(registered, registeredStyles, classNames2) {
886
886
  });
887
887
  return rawClassName;
888
888
  }
889
- var insertStyles = function insertStyles2(cache, serialized, isStringTag) {
889
+ var registerStyles = function registerStyles2(cache, serialized, isStringTag) {
890
890
  var className = cache.key + "-" + serialized.name;
891
891
  if ((isStringTag === false || isBrowser$1 === false) && cache.registered[className] === void 0) {
892
892
  cache.registered[className] = serialized.styles;
893
893
  }
894
+ };
895
+ var insertStyles = function insertStyles2(cache, serialized, isStringTag) {
896
+ registerStyles(cache, serialized, isStringTag);
897
+ var className = cache.key + "-" + serialized.name;
894
898
  if (cache.inserted[serialized.name] === void 0) {
895
899
  var current = serialized;
896
900
  do {
@@ -1147,7 +1151,7 @@ var getTheme = function getTheme2(outerTheme, theme2) {
1147
1151
  var mergedTheme = theme2(outerTheme);
1148
1152
  return mergedTheme;
1149
1153
  }
1150
- return _extends$8({}, outerTheme, theme2);
1154
+ return _extends$a({}, outerTheme, theme2);
1151
1155
  };
1152
1156
  var createCacheWithTheme = /* @__PURE__ */ weakMemoize(function(outerTheme) {
1153
1157
  return weakMemoize(function(theme2) {
@@ -1163,13 +1167,14 @@ var ThemeProvider$1 = function ThemeProvider(props) {
1163
1167
  value: theme2
1164
1168
  }, props.children);
1165
1169
  };
1170
+ var useInsertionEffect$1 = React["useInsertionEffect"] ? React["useInsertionEffect"] : useLayoutEffect;
1166
1171
  var Global = /* @__PURE__ */ withEmotionCache(function(props, cache) {
1167
1172
  var styles2 = props.styles;
1168
1173
  var serialized = serializeStyles([styles2], void 0, useContext(ThemeContext));
1169
1174
  var sheetRef = useRef();
1170
- useLayoutEffect(function() {
1175
+ useInsertionEffect$1(function() {
1171
1176
  var key = cache.key + "-global";
1172
- var sheet = new StyleSheet({
1177
+ var sheet = new cache.sheet.constructor({
1173
1178
  key,
1174
1179
  nonce: cache.sheet.nonce,
1175
1180
  container: cache.sheet.container,
@@ -1190,7 +1195,7 @@ var Global = /* @__PURE__ */ withEmotionCache(function(props, cache) {
1190
1195
  sheet.flush();
1191
1196
  };
1192
1197
  }, [cache]);
1193
- useLayoutEffect(function() {
1198
+ useInsertionEffect$1(function() {
1194
1199
  var sheetRefCurrent = sheetRef.current;
1195
1200
  var sheet = sheetRefCurrent[0], rehydrating = sheetRefCurrent[1];
1196
1201
  if (rehydrating) {
@@ -2240,13 +2245,13 @@ function get(obj, path, fallback, index) {
2240
2245
  return obj === void 0 ? fallback : obj;
2241
2246
  }
2242
2247
  var memoize = function memoize2(fn) {
2243
- var cache = new WeakMap();
2248
+ var cache = /* @__PURE__ */ new WeakMap();
2244
2249
  var memoizedFn = function memoizedFn2(obj, path, fallback, index) {
2245
2250
  if (typeof obj === "undefined") {
2246
2251
  return fn(obj, path, fallback);
2247
2252
  }
2248
2253
  if (!cache.has(obj)) {
2249
- cache.set(obj, new Map());
2254
+ cache.set(obj, /* @__PURE__ */ new Map());
2250
2255
  }
2251
2256
  var map = cache.get(obj);
2252
2257
  if (map.has(path)) {
@@ -2325,13 +2330,11 @@ function subtract(value) {
2325
2330
  });
2326
2331
  }
2327
2332
  function queryString(min, max) {
2328
- var query = [];
2333
+ var query = ["@media screen"];
2329
2334
  if (min)
2330
- query.push("@media screen and (min-width: " + px(min) + ")");
2331
- if (query.length > 0 && max)
2332
- query.push("and");
2335
+ query.push("and", "(min-width: " + px(min) + ")");
2333
2336
  if (max)
2334
- query.push("@media screen and (max-width: " + px(max) + ")");
2337
+ query.push("and", "(max-width: " + px(max) + ")");
2335
2338
  return query.join(" ");
2336
2339
  }
2337
2340
  function analyzeBreakpoints(breakpoints2) {
@@ -2401,6 +2404,9 @@ function canUseDOM() {
2401
2404
  return !!(typeof window !== "undefined" && window.document && window.document.createElement);
2402
2405
  }
2403
2406
  var isBrowser = canUseDOM();
2407
+ var dataAttr = function dataAttr2(condition) {
2408
+ return condition ? "" : void 0;
2409
+ };
2404
2410
  var cx = function cx2() {
2405
2411
  for (var _len = arguments.length, classNames2 = new Array(_len), _key = 0; _key < _len; _key++) {
2406
2412
  classNames2[_key] = arguments[_key];
@@ -2527,6 +2533,37 @@ var IdProvider = /* @__PURE__ */ React.memo(function(_ref) {
2527
2533
  }
2528
2534
  }, children);
2529
2535
  });
2536
+ function assignRef(ref, value) {
2537
+ if (ref == null)
2538
+ return;
2539
+ if (typeof ref === "function") {
2540
+ ref(value);
2541
+ return;
2542
+ }
2543
+ try {
2544
+ ref.current = value;
2545
+ } catch (error) {
2546
+ throw new Error("Cannot assign value '" + value + "' to ref '" + ref + "'");
2547
+ }
2548
+ }
2549
+ function useMergeRefs() {
2550
+ for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {
2551
+ refs[_key] = arguments[_key];
2552
+ }
2553
+ return React.useMemo(function() {
2554
+ if (refs.every(function(ref) {
2555
+ return ref == null;
2556
+ })) {
2557
+ return null;
2558
+ }
2559
+ return function(node2) {
2560
+ refs.forEach(function(ref) {
2561
+ if (ref)
2562
+ assignRef(ref, node2);
2563
+ });
2564
+ };
2565
+ }, refs);
2566
+ }
2530
2567
  var reactDom_production_min = {};
2531
2568
  /*
2532
2569
  object-assign
@@ -2898,7 +2935,7 @@ function y(a) {
2898
2935
  }
2899
2936
  if (!aa)
2900
2937
  throw Error(y(227));
2901
- var ba = new Set(), ca = {};
2938
+ var ba = /* @__PURE__ */ new Set(), ca = {};
2902
2939
  function da(a, b2) {
2903
2940
  ea(a, b2);
2904
2941
  ea(a + "Capture", b2);
@@ -3758,7 +3795,7 @@ function dc(a, b2) {
3758
3795
  }
3759
3796
  return false;
3760
3797
  }
3761
- var ec, fc, gc, hc, ic = false, jc = [], kc = null, lc = null, mc = null, nc = new Map(), oc = new Map(), pc = [], qc = "mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");
3798
+ var ec, fc, gc, hc, ic = false, jc = [], kc = null, lc = null, mc = null, nc = /* @__PURE__ */ new Map(), oc = /* @__PURE__ */ new Map(), pc = [], qc = "mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");
3762
3799
  function rc(a, b2, c2, d2, e2) {
3763
3800
  return { blockedOn: a, domEventName: b2, eventSystemFlags: c2 | 16, nativeEvent: e2, targetContainers: [d2] };
3764
3801
  }
@@ -3915,7 +3952,7 @@ function Hc(a) {
3915
3952
  return Fc[a] = b2[c2];
3916
3953
  return a;
3917
3954
  }
3918
- var Ic = Hc("animationend"), Jc = Hc("animationiteration"), Kc = Hc("animationstart"), Lc = Hc("transitionend"), Mc = new Map(), Nc = new Map(), Oc = [
3955
+ var Ic = Hc("animationend"), Jc = Hc("animationiteration"), Kc = Hc("animationstart"), Lc = Hc("transitionend"), Mc = /* @__PURE__ */ new Map(), Nc = /* @__PURE__ */ new Map(), Oc = [
3919
3956
  "abort",
3920
3957
  "abort",
3921
3958
  Ic,
@@ -5005,7 +5042,7 @@ function Db(a) {
5005
5042
  }
5006
5043
  function $e(a) {
5007
5044
  var b2 = a[yf];
5008
- b2 === void 0 && (b2 = a[yf] = new Set());
5045
+ b2 === void 0 && (b2 = a[yf] = /* @__PURE__ */ new Set());
5009
5046
  return b2;
5010
5047
  }
5011
5048
  var zf = [], Af = -1;
@@ -5458,7 +5495,7 @@ function Sg(a) {
5458
5495
  return null;
5459
5496
  }
5460
5497
  function d2(a2, b3) {
5461
- for (a2 = new Map(); b3 !== null; )
5498
+ for (a2 = /* @__PURE__ */ new Map(); b3 !== null; )
5462
5499
  b3.key !== null ? a2.set(b3.key, b3) : a2.set(b3.index, b3), b3 = b3.sibling;
5463
5500
  return a2;
5464
5501
  }
@@ -7043,7 +7080,7 @@ function Si(a, b2, c2) {
7043
7080
  }
7044
7081
  var f2 = a.stateNode;
7045
7082
  f2 !== null && typeof f2.componentDidCatch === "function" && (c2.callback = function() {
7046
- typeof d2 !== "function" && (Ti === null ? Ti = new Set([this]) : Ti.add(this), Ni(a, b2));
7083
+ typeof d2 !== "function" && (Ti === null ? Ti = /* @__PURE__ */ new Set([this]) : Ti.add(this), Ni(a, b2));
7047
7084
  var c3 = b2.stack;
7048
7085
  this.componentDidCatch(b2.value, { componentStack: c3 !== null ? c3 : "" });
7049
7086
  });
@@ -7521,7 +7558,7 @@ function Jg(a, b2, c2) {
7521
7558
  $c(a, b2, c2);
7522
7559
  a === U && (Hi |= b2, V === 4 && Ii(a, W));
7523
7560
  var d2 = eg();
7524
- b2 === 1 ? (X & 8) !== 0 && (X & 48) === 0 ? Lj(a) : (Mj(a, c2), X === 0 && (wj(), ig())) : ((X & 4) === 0 || d2 !== 98 && d2 !== 99 || (Cj === null ? Cj = new Set([a]) : Cj.add(a)), Mj(a, c2));
7561
+ b2 === 1 ? (X & 8) !== 0 && (X & 48) === 0 ? Lj(a) : (Mj(a, c2), X === 0 && (wj(), ig())) : ((X & 4) === 0 || d2 !== 98 && d2 !== 99 || (Cj === null ? Cj = /* @__PURE__ */ new Set([a]) : Cj.add(a)), Mj(a, c2));
7525
7562
  vj = a;
7526
7563
  }
7527
7564
  function Kj(a, b2) {
@@ -7819,7 +7856,7 @@ function Sj(a, b2) {
7819
7856
  if (C) {
7820
7857
  var z2 = p2.updateQueue;
7821
7858
  if (z2 === null) {
7822
- var u = new Set();
7859
+ var u = /* @__PURE__ */ new Set();
7823
7860
  u.add(l2);
7824
7861
  p2.updateQueue = u;
7825
7862
  } else
@@ -7842,7 +7879,7 @@ function Sj(a, b2) {
7842
7879
  k2 = void 0;
7843
7880
  h = b2;
7844
7881
  var q2 = f2.pingCache;
7845
- q2 === null ? (q2 = f2.pingCache = new Oi(), k2 = new Set(), q2.set(l2, k2)) : (k2 = q2.get(l2), k2 === void 0 && (k2 = new Set(), q2.set(l2, k2)));
7882
+ q2 === null ? (q2 = f2.pingCache = new Oi(), k2 = /* @__PURE__ */ new Set(), q2.set(l2, k2)) : (k2 = q2.get(l2), k2 === void 0 && (k2 = /* @__PURE__ */ new Set(), q2.set(l2, k2)));
7846
7883
  if (!k2.has(h)) {
7847
7884
  k2.add(h);
7848
7885
  var v2 = Yj.bind(null, f2, l2, h);
@@ -9023,10 +9060,10 @@ function checkDCE() {
9023
9060
  {
9024
9061
  checkDCE();
9025
9062
  }
9026
- var _createContext$1 = createContext({
9063
+ var _createContext$1$1 = createContext({
9027
9064
  strict: false,
9028
9065
  name: "PortalManagerContext"
9029
- }), PortalManagerContextProvider = _createContext$1[0];
9066
+ }), PortalManagerContextProvider = _createContext$1$1[0];
9030
9067
  function PortalManager(props) {
9031
9068
  var children = props.children, zIndex = props.zIndex;
9032
9069
  return /* @__PURE__ */ React.createElement(PortalManagerContextProvider, {
@@ -9366,8 +9403,8 @@ function ColorModeProvider(props) {
9366
9403
  value: context
9367
9404
  }, children);
9368
9405
  }
9369
- function _extends$7() {
9370
- _extends$7 = Object.assign || function(target) {
9406
+ function _extends$9() {
9407
+ _extends$9 = Object.assign || function(target) {
9371
9408
  for (var i = 1; i < arguments.length; i++) {
9372
9409
  var source = arguments[i];
9373
9410
  for (var key in source) {
@@ -9378,7 +9415,7 @@ function _extends$7() {
9378
9415
  }
9379
9416
  return target;
9380
9417
  };
9381
- return _extends$7.apply(this, arguments);
9418
+ return _extends$9.apply(this, arguments);
9382
9419
  }
9383
9420
  var tokenToCSSVar = function tokenToCSSVar2(scale, value) {
9384
9421
  return function(theme2) {
@@ -9515,7 +9552,7 @@ function _wrapRegExp() {
9515
9552
  return new BabelRegExp(re2, void 0, groups);
9516
9553
  };
9517
9554
  var _super = RegExp.prototype;
9518
- var _groups = new WeakMap();
9555
+ var _groups = /* @__PURE__ */ new WeakMap();
9519
9556
  function BabelRegExp(re2, flags, groups) {
9520
9557
  var _this = new RegExp(re2, flags);
9521
9558
  _groups.set(_this, groups || _groups.get(re2));
@@ -9553,7 +9590,7 @@ function _wrapRegExp() {
9553
9590
  return Object.keys(g2).reduce(function(groups, name) {
9554
9591
  groups[name] = result[g2[name]];
9555
9592
  return groups;
9556
- }, Object.create(null));
9593
+ }, /* @__PURE__ */ Object.create(null));
9557
9594
  }
9558
9595
  return _wrapRegExp.apply(this, arguments);
9559
9596
  }
@@ -9568,7 +9605,7 @@ var directionMap = {
9568
9605
  "to-tl": "to top left"
9569
9606
  };
9570
9607
  var valueSet = new Set(Object.values(directionMap));
9571
- var globalSet = new Set(["none", "-moz-initial", "inherit", "initial", "revert", "unset"]);
9608
+ var globalSet = /* @__PURE__ */ new Set(["none", "-moz-initial", "inherit", "initial", "revert", "unset"]);
9572
9609
  var trimSpace = function trimSpace2(str) {
9573
9610
  return str.trim();
9574
9611
  };
@@ -9722,7 +9759,7 @@ var t = {
9722
9759
  };
9723
9760
  },
9724
9761
  prop: function prop(property, scale, transform10) {
9725
- return _extends$7({
9762
+ return _extends$9({
9726
9763
  property,
9727
9764
  scale
9728
9765
  }, scale && {
@@ -10461,14 +10498,14 @@ var pseudoSelectors = {
10461
10498
  _ltr: "[dir=ltr] &, &[dir=ltr]",
10462
10499
  _mediaDark: "@media (prefers-color-scheme: dark)",
10463
10500
  _mediaReduceMotion: "@media (prefers-reduced-motion: reduce)",
10464
- _dark: ".chakra-ui-dark &, [data-theme=dark] &, &[data-theme=dark]",
10465
- _light: ".chakra-ui-light &, [data-theme=light] &, &[data-theme=light]"
10501
+ _dark: ".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",
10502
+ _light: ".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]"
10466
10503
  };
10467
10504
  var pseudoPropNames = objectKeys(pseudoSelectors);
10468
10505
  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);
10469
10506
  Object.assign({}, space, layout, flexbox, grid, position);
10470
10507
  var propNames = [].concat(objectKeys(systemProps), pseudoPropNames);
10471
- var styleProps = _extends$7({}, systemProps, pseudoSelectors);
10508
+ var styleProps = _extends$9({}, systemProps, pseudoSelectors);
10472
10509
  var isStyleProp = function isStyleProp2(prop2) {
10473
10510
  return prop2 in styleProps;
10474
10511
  };
@@ -10788,7 +10825,7 @@ function createThemeVars(flatTokens, options) {
10788
10825
  cssMap
10789
10826
  };
10790
10827
  }
10791
- function _objectWithoutPropertiesLoose$5(source, excluded) {
10828
+ function _objectWithoutPropertiesLoose$7(source, excluded) {
10792
10829
  if (source == null)
10793
10830
  return {};
10794
10831
  var target = {};
@@ -10802,7 +10839,7 @@ function _objectWithoutPropertiesLoose$5(source, excluded) {
10802
10839
  }
10803
10840
  return target;
10804
10841
  }
10805
- var _excluded$b = ["__cssMap", "__cssVars", "__breakpoints"];
10842
+ var _excluded$c = ["__cssMap", "__cssVars", "__breakpoints"];
10806
10843
  var tokens = ["colors", "borders", "borderWidths", "borderStyles", "fonts", "fontSizes", "fontWeights", "letterSpacings", "lineHeights", "radii", "space", "shadows", "sizes", "zIndices", "transition", "blur"];
10807
10844
  function extractTokens(theme2) {
10808
10845
  var _tokens = tokens;
@@ -10815,7 +10852,7 @@ function omitVars(rawTheme) {
10815
10852
  rawTheme.__cssMap;
10816
10853
  rawTheme.__cssVars;
10817
10854
  rawTheme.__breakpoints;
10818
- var cleanTheme = _objectWithoutPropertiesLoose$5(rawTheme, _excluded$b);
10855
+ var cleanTheme = _objectWithoutPropertiesLoose$7(rawTheme, _excluded$c);
10819
10856
  return cleanTheme;
10820
10857
  }
10821
10858
  function flattenTokens(_ref) {
@@ -10863,7 +10900,7 @@ function toCSSVar(rawTheme) {
10863
10900
  "--chakra-space-y-reverse": "0"
10864
10901
  };
10865
10902
  Object.assign(theme2, {
10866
- __cssVars: _extends$7({}, defaultCssVars, cssVars),
10903
+ __cssVars: _extends$9({}, defaultCssVars, cssVars),
10867
10904
  __cssMap: cssMap,
10868
10905
  __breakpoints: analyzeBreakpoints(theme2.breakpoints)
10869
10906
  });
@@ -10958,7 +10995,7 @@ var reactFastCompare = function isEqual(a, b2) {
10958
10995
  throw error;
10959
10996
  }
10960
10997
  };
10961
- var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;
10998
+ var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;
10962
10999
  var isPropValid = /* @__PURE__ */ memoize$1(function(prop2) {
10963
11000
  return reactPropsRegex.test(prop2) || prop2.charCodeAt(0) === 111 && prop2.charCodeAt(1) === 110 && prop2.charCodeAt(2) < 91;
10964
11001
  });
@@ -10982,7 +11019,18 @@ var composeShouldForwardProps = function composeShouldForwardProps2(tag2, option
10982
11019
  }
10983
11020
  return shouldForwardProp3;
10984
11021
  };
10985
- var Noop = function Noop2() {
11022
+ var useInsertionEffect = React["useInsertionEffect"] ? React["useInsertionEffect"] : function useInsertionEffect2(create) {
11023
+ create();
11024
+ };
11025
+ function useInsertionEffectMaybe(create) {
11026
+ useInsertionEffect(create);
11027
+ }
11028
+ var Insertion = function Insertion2(_ref) {
11029
+ var cache = _ref.cache, serialized = _ref.serialized, isStringTag = _ref.isStringTag;
11030
+ registerStyles(cache, serialized, isStringTag);
11031
+ useInsertionEffectMaybe(function() {
11032
+ return insertStyles(cache, serialized, isStringTag);
11033
+ });
10986
11034
  return null;
10987
11035
  };
10988
11036
  var createStyled = function createStyled2(tag2, options) {
@@ -11014,7 +11062,7 @@ var createStyled = function createStyled2(tag2, options) {
11014
11062
  }
11015
11063
  }
11016
11064
  var Styled = withEmotionCache(function(props, cache, ref) {
11017
- var finalTag = shouldUseAs && props.as || baseTag;
11065
+ var FinalTag = shouldUseAs && props.as || baseTag;
11018
11066
  var className = "";
11019
11067
  var classInterpolations = [];
11020
11068
  var mergedProps = props;
@@ -11031,12 +11079,11 @@ var createStyled = function createStyled2(tag2, options) {
11031
11079
  className = props.className + " ";
11032
11080
  }
11033
11081
  var serialized = serializeStyles(styles2.concat(classInterpolations), cache.registered, mergedProps);
11034
- insertStyles(cache, serialized, typeof finalTag === "string");
11035
11082
  className += cache.key + "-" + serialized.name;
11036
11083
  if (targetClassName !== void 0) {
11037
11084
  className += " " + targetClassName;
11038
11085
  }
11039
- var finalShouldForwardProp = shouldUseAs && shouldForwardProp3 === void 0 ? getDefaultShouldForwardProp(finalTag) : defaultShouldForwardProp;
11086
+ var finalShouldForwardProp = shouldUseAs && shouldForwardProp3 === void 0 ? getDefaultShouldForwardProp(FinalTag) : defaultShouldForwardProp;
11040
11087
  var newProps = {};
11041
11088
  for (var _key in props) {
11042
11089
  if (shouldUseAs && _key === "as")
@@ -11047,9 +11094,11 @@ var createStyled = function createStyled2(tag2, options) {
11047
11094
  }
11048
11095
  newProps.className = className;
11049
11096
  newProps.ref = ref;
11050
- var ele = /* @__PURE__ */ createElement(finalTag, newProps);
11051
- var possiblyStyleElement = /* @__PURE__ */ createElement(Noop, null);
11052
- return /* @__PURE__ */ createElement(Fragment$1, null, possiblyStyleElement, ele);
11097
+ return /* @__PURE__ */ createElement(Fragment$1, null, /* @__PURE__ */ createElement(Insertion, {
11098
+ cache,
11099
+ serialized,
11100
+ isStringTag: typeof FinalTag === "string"
11101
+ }), /* @__PURE__ */ createElement(FinalTag, newProps));
11053
11102
  });
11054
11103
  Styled.displayName = identifierName !== void 0 ? identifierName : "Styled(" + (typeof baseTag === "string" ? baseTag : baseTag.displayName || baseTag.name || "Component") + ")";
11055
11104
  Styled.defaultProps = tag2.defaultProps;
@@ -11066,7 +11115,7 @@ var createStyled = function createStyled2(tag2, options) {
11066
11115
  }
11067
11116
  });
11068
11117
  Styled.withComponent = function(nextTag, nextOptions) {
11069
- return createStyled2(nextTag, _extends$8({}, options, nextOptions, {
11118
+ return createStyled2(nextTag, _extends$a({}, options, nextOptions, {
11070
11119
  shouldForwardProp: composeShouldForwardProps(Styled, nextOptions, true)
11071
11120
  })).apply(void 0, styles2);
11072
11121
  };
@@ -11213,8 +11262,8 @@ var newStyled = createStyled.bind();
11213
11262
  tags.forEach(function(tagName) {
11214
11263
  newStyled[tagName] = newStyled(tagName);
11215
11264
  });
11216
- function _extends$6() {
11217
- _extends$6 = Object.assign || function(target) {
11265
+ function _extends$8() {
11266
+ _extends$8 = Object.assign || function(target) {
11218
11267
  for (var i = 1; i < arguments.length; i++) {
11219
11268
  var source = arguments[i];
11220
11269
  for (var key in source) {
@@ -11225,7 +11274,7 @@ function _extends$6() {
11225
11274
  }
11226
11275
  return target;
11227
11276
  };
11228
- return _extends$6.apply(this, arguments);
11277
+ return _extends$8.apply(this, arguments);
11229
11278
  }
11230
11279
  var ThemeProvider2 = function ThemeProvider3(props) {
11231
11280
  var cssVarsRoot = props.cssVarsRoot, theme2 = props.theme, children = props.children;
@@ -11240,10 +11289,11 @@ var ThemeProvider2 = function ThemeProvider3(props) {
11240
11289
  };
11241
11290
  var CSSVars = function CSSVars2(_ref) {
11242
11291
  var _ref$root = _ref.root, root2 = _ref$root === void 0 ? ":host, :root" : _ref$root;
11292
+ var selector2 = [root2, "[data-theme]"].join(",");
11243
11293
  return /* @__PURE__ */ React.createElement(Global, {
11244
11294
  styles: function styles2(theme2) {
11245
11295
  var _ref2;
11246
- return _ref2 = {}, _ref2[root2] = theme2.__cssVars, _ref2;
11296
+ return _ref2 = {}, _ref2[selector2] = theme2.__cssVars, _ref2;
11247
11297
  }
11248
11298
  });
11249
11299
  };
@@ -11274,18 +11324,17 @@ var GlobalStyle = function GlobalStyle2() {
11274
11324
  }
11275
11325
  });
11276
11326
  };
11277
- var domElements = ["a", "b", "article", "aside", "blockquote", "button", "caption", "cite", "circle", "code", "dd", "div", "dl", "dt", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hr", "img", "input", "kbd", "label", "li", "main", "mark", "nav", "ol", "p", "path", "pre", "q", "rect", "s", "svg", "section", "select", "strong", "small", "span", "sub", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "tr", "ul"];
11278
11327
  function omitThemingProps(props) {
11279
11328
  return omit(props, ["styleConfig", "size", "variant", "colorScheme"]);
11280
11329
  }
11281
11330
  function useChakra() {
11282
11331
  var colorModeResult = useColorMode();
11283
11332
  var theme2 = useTheme();
11284
- return _extends$6({}, colorModeResult, {
11333
+ return _extends$8({}, colorModeResult, {
11285
11334
  theme: theme2
11286
11335
  });
11287
11336
  }
11288
- function _objectWithoutPropertiesLoose$4(source, excluded) {
11337
+ function _objectWithoutPropertiesLoose$6(source, excluded) {
11289
11338
  if (source == null)
11290
11339
  return {};
11291
11340
  var target = {};
@@ -11300,16 +11349,16 @@ function _objectWithoutPropertiesLoose$4(source, excluded) {
11300
11349
  return target;
11301
11350
  }
11302
11351
  var allPropNames = new Set([].concat(propNames, ["textStyle", "layerStyle", "apply", "isTruncated", "noOfLines", "focusBorderColor", "errorBorderColor", "as", "__css", "css", "sx"]));
11303
- var validHTMLProps = new Set(["htmlWidth", "htmlHeight", "htmlSize"]);
11352
+ var validHTMLProps = /* @__PURE__ */ new Set(["htmlWidth", "htmlHeight", "htmlSize"]);
11304
11353
  var shouldForwardProp = function shouldForwardProp2(prop2) {
11305
11354
  return validHTMLProps.has(prop2) || !allPropNames.has(prop2);
11306
11355
  };
11307
- var _excluded$1$1 = ["theme", "css", "__css", "sx"], _excluded2$3 = ["baseStyle"];
11356
+ var _excluded$1$2 = ["theme", "css", "__css", "sx"], _excluded2$3 = ["baseStyle"];
11308
11357
  var toCSSObject = function toCSSObject2(_ref) {
11309
11358
  var baseStyle22 = _ref.baseStyle;
11310
11359
  return function(props) {
11311
11360
  props.theme;
11312
- var cssProp = props.css, __css = props.__css, sx = props.sx, rest = _objectWithoutPropertiesLoose$4(props, _excluded$1$1);
11361
+ var cssProp = props.css, __css = props.__css, sx = props.sx, rest = _objectWithoutPropertiesLoose$6(props, _excluded$1$2);
11313
11362
  var styleProps2 = objectFilter(rest, function(_, prop2) {
11314
11363
  return isStyleProp(prop2);
11315
11364
  });
@@ -11320,7 +11369,7 @@ var toCSSObject = function toCSSObject2(_ref) {
11320
11369
  };
11321
11370
  };
11322
11371
  function styled(component, options) {
11323
- var _ref2 = options != null ? options : {}, baseStyle22 = _ref2.baseStyle, styledOptions = _objectWithoutPropertiesLoose$4(_ref2, _excluded2$3);
11372
+ var _ref2 = options != null ? options : {}, baseStyle22 = _ref2.baseStyle, styledOptions = _objectWithoutPropertiesLoose$6(_ref2, _excluded2$3);
11324
11373
  if (!styledOptions.shouldForwardProp) {
11325
11374
  styledOptions.shouldForwardProp = shouldForwardProp;
11326
11375
  }
@@ -11329,14 +11378,10 @@ function styled(component, options) {
11329
11378
  });
11330
11379
  return newStyled(component, styledOptions)(styleObject);
11331
11380
  }
11332
- var chakra = styled;
11333
- domElements.forEach(function(tag2) {
11334
- chakra[tag2] = chakra(tag2);
11335
- });
11336
11381
  function forwardRef(component) {
11337
11382
  return /* @__PURE__ */ React.forwardRef(component);
11338
11383
  }
11339
- var _excluded$9 = ["styleConfig"];
11384
+ var _excluded$b = ["styleConfig"];
11340
11385
  function useStyleConfig(themeKey, props, opts) {
11341
11386
  var _styleConfig$defaultP;
11342
11387
  if (props === void 0) {
@@ -11345,7 +11390,7 @@ function useStyleConfig(themeKey, props, opts) {
11345
11390
  if (opts === void 0) {
11346
11391
  opts = {};
11347
11392
  }
11348
- var _props = props, styleConfigProp = _props.styleConfig, rest = _objectWithoutPropertiesLoose$4(_props, _excluded$9);
11393
+ var _props = props, styleConfigProp = _props.styleConfig, rest = _objectWithoutPropertiesLoose$6(_props, _excluded$b);
11349
11394
  var _useChakra = useChakra(), theme2 = _useChakra.theme, colorMode = _useChakra.colorMode;
11350
11395
  var themeStyleConfig = memoizedGet(theme2, "components." + themeKey);
11351
11396
  var styleConfig = styleConfigProp || themeStyleConfig;
@@ -11378,6 +11423,21 @@ function useMultiStyleConfig(themeKey, props) {
11378
11423
  isMultiPart: true
11379
11424
  });
11380
11425
  }
11426
+ function factory() {
11427
+ var cache = /* @__PURE__ */ new Map();
11428
+ return new Proxy(styled, {
11429
+ apply: function apply(target, thisArg, argArray) {
11430
+ return styled.apply(void 0, argArray);
11431
+ },
11432
+ get: function get4(_, element) {
11433
+ if (!cache.has(element)) {
11434
+ cache.set(element, styled(element));
11435
+ }
11436
+ return cache.get(element);
11437
+ }
11438
+ });
11439
+ }
11440
+ var chakra = factory();
11381
11441
  var ChakraProvider$1 = function ChakraProvider(props) {
11382
11442
  var children = props.children, colorModeManager = props.colorModeManager, portalZIndex = props.portalZIndex, _props$resetCSS = props.resetCSS, resetCSS = _props$resetCSS === void 0 ? true : _props$resetCSS, _props$theme = props.theme, theme2 = _props$theme === void 0 ? {} : _props$theme, environment = props.environment, cssVarsRoot = props.cssVarsRoot;
11383
11443
  var _children = /* @__PURE__ */ React.createElement(EnvironmentProvider, {
@@ -11428,8 +11488,8 @@ var spacing = {
11428
11488
  80: "20rem",
11429
11489
  96: "24rem"
11430
11490
  };
11431
- function _extends$5() {
11432
- _extends$5 = Object.assign || function(target) {
11491
+ function _extends$7() {
11492
+ _extends$7 = Object.assign || function(target) {
11433
11493
  for (var i = 1; i < arguments.length; i++) {
11434
11494
  var source = arguments[i];
11435
11495
  for (var key in source) {
@@ -11440,7 +11500,7 @@ function _extends$5() {
11440
11500
  }
11441
11501
  return target;
11442
11502
  };
11443
- return _extends$5.apply(this, arguments);
11503
+ return _extends$7.apply(this, arguments);
11444
11504
  }
11445
11505
  var largeSizes = {
11446
11506
  max: "max-content",
@@ -11467,7 +11527,7 @@ var container$1 = {
11467
11527
  lg: "1024px",
11468
11528
  xl: "1280px"
11469
11529
  };
11470
- var sizes$l = _extends$5({}, spacing, largeSizes, {
11530
+ var sizes$l = _extends$7({}, spacing, largeSizes, {
11471
11531
  container: container$1
11472
11532
  });
11473
11533
  function bound01(n2, max) {
@@ -12687,8 +12747,8 @@ function orient(options) {
12687
12747
  return {};
12688
12748
  return orientation === "vertical" ? vertical : horizontal;
12689
12749
  }
12690
- function _extends$4() {
12691
- _extends$4 = Object.assign || function(target) {
12750
+ function _extends$6() {
12751
+ _extends$6 = Object.assign || function(target) {
12692
12752
  for (var i = 1; i < arguments.length; i++) {
12693
12753
  var source = arguments[i];
12694
12754
  for (var key in source) {
@@ -12699,14 +12759,14 @@ function _extends$4() {
12699
12759
  }
12700
12760
  return target;
12701
12761
  };
12702
- return _extends$4.apply(this, arguments);
12762
+ return _extends$6.apply(this, arguments);
12703
12763
  }
12704
12764
  var createBreakpoints = function createBreakpoints2(config2) {
12705
12765
  warn({
12706
12766
  condition: true,
12707
12767
  message: ["[chakra-ui]: createBreakpoints(...) will be deprecated pretty soon", "simply pass the breakpoints as an object. Remove the createBreakpoint(..) call"].join("")
12708
12768
  });
12709
- return _extends$4({
12769
+ return _extends$6({
12710
12770
  base: "0em"
12711
12771
  }, config2);
12712
12772
  };
@@ -12931,7 +12991,7 @@ function getFallback(fallback) {
12931
12991
  return fallback;
12932
12992
  return fallback == null ? void 0 : fallback.reference;
12933
12993
  }
12934
- var accordionAnatomy = anatomy("accordion").parts("container", "item", "button", "panel").extend("icon");
12994
+ var accordionAnatomy = anatomy("accordion").parts("root", "container", "button", "panel").extend("icon");
12935
12995
  var alertAnatomy = anatomy("alert").parts("title", "description", "container").extend("icon");
12936
12996
  var avatarAnatomy = anatomy("avatar").parts("label", "badge", "container").extend("excessLabel", "group");
12937
12997
  var breadcrumbAnatomy = anatomy("breadcrumb").parts("link", "item", "container").extend("separator");
@@ -12939,7 +12999,7 @@ anatomy("button").parts();
12939
12999
  var checkboxAnatomy = anatomy("checkbox").parts("control", "icon", "container").extend("label");
12940
13000
  anatomy("progress").parts("track", "filledTrack").extend("label");
12941
13001
  var drawerAnatomy = anatomy("drawer").parts("overlay", "dialogContainer", "dialog").extend("header", "closeButton", "body", "footer");
12942
- var editableAnatomy = anatomy("editable").parts("preview", "input");
13002
+ var editableAnatomy = anatomy("editable").parts("preview", "input", "textarea");
12943
13003
  var formAnatomy = anatomy("form").parts("container", "requiredIndicator", "helperText");
12944
13004
  var formErrorAnatomy = anatomy("formError").parts("text", "icon");
12945
13005
  var inputAnatomy = anatomy("input").parts("addon", "field", "element");
@@ -13049,6 +13109,7 @@ var baseStyleIcon$5 = {
13049
13109
  fontSize: "1.25em"
13050
13110
  };
13051
13111
  var baseStyle$D = {
13112
+ root: {},
13052
13113
  container: baseStyleContainer$3,
13053
13114
  button: baseStyleButton$1,
13054
13115
  panel: baseStylePanel,
@@ -13340,7 +13401,7 @@ var variantGhost = function variantGhost2(props) {
13340
13401
  var variantOutline$1 = function variantOutline2(props) {
13341
13402
  var c2 = props.colorScheme;
13342
13403
  var borderColor = mode("gray.200", "whiteAlpha.300")(props);
13343
- return _extends$5({
13404
+ return _extends$7({
13344
13405
  border: "1px solid",
13345
13406
  borderColor: c2 === "gray" ? borderColor : "currentColor"
13346
13407
  }, variantGhost(props));
@@ -13679,7 +13740,7 @@ var baseStyleDialogContainer$1 = {
13679
13740
  };
13680
13741
  var baseStyleDialog$1 = function baseStyleDialog(props) {
13681
13742
  var isFullHeight = props.isFullHeight;
13682
- return _extends$5({}, isFullHeight && {
13743
+ return _extends$7({}, isFullHeight && {
13683
13744
  height: "100vh"
13684
13745
  }, {
13685
13746
  zIndex: "modal",
@@ -13757,9 +13818,23 @@ var baseStyleInput = {
13757
13818
  opacity: 0.6
13758
13819
  }
13759
13820
  };
13821
+ var baseStyleTextarea = {
13822
+ borderRadius: "md",
13823
+ py: "3px",
13824
+ transitionProperty: "common",
13825
+ transitionDuration: "normal",
13826
+ width: "full",
13827
+ _focus: {
13828
+ boxShadow: "outline"
13829
+ },
13830
+ _placeholder: {
13831
+ opacity: 0.6
13832
+ }
13833
+ };
13760
13834
  var baseStyle$r = {
13761
13835
  preview: baseStylePreview,
13762
- input: baseStyleInput
13836
+ input: baseStyleInput,
13837
+ textarea: baseStyleTextarea
13763
13838
  };
13764
13839
  var editable = {
13765
13840
  parts: editableAnatomy.keys,
@@ -14333,7 +14408,7 @@ function getSize(size2) {
14333
14408
  var _fontSize = (_sizeStyle$field$font = (_sizeStyle$field = sizeStyle.field) == null ? void 0 : _sizeStyle$field.fontSize) != null ? _sizeStyle$field$font : "md";
14334
14409
  var fontSize = typography$1.fontSizes[_fontSize.toString()];
14335
14410
  return {
14336
- field: _extends$5({}, sizeStyle.field, {
14411
+ field: _extends$7({}, sizeStyle.field, {
14337
14412
  paddingInlineEnd: $inputPadding.reference,
14338
14413
  verticalAlign: "top"
14339
14414
  }),
@@ -14364,7 +14439,7 @@ var numberInput = {
14364
14439
  defaultProps: defaultProps$b
14365
14440
  };
14366
14441
  var _Input$variants$unsty$1;
14367
- var baseStyle$f = _extends$5({}, Input.baseStyle.field, {
14442
+ var baseStyle$f = _extends$7({}, Input.baseStyle.field, {
14368
14443
  textAlign: "center"
14369
14444
  });
14370
14445
  var sizes$b = {
@@ -14472,7 +14547,7 @@ function filledStyle(props) {
14472
14547
  var bgColor = mode(c2 + ".500", c2 + ".200")(props);
14473
14548
  var gradient = "linear-gradient(\n to right,\n transparent 0%,\n " + getColor(t2, bgColor) + " 50%,\n transparent 100%\n )";
14474
14549
  var addStripe = !isIndeterminate && hasStripe;
14475
- return _extends$5({}, addStripe && stripeStyle, isIndeterminate ? {
14550
+ return _extends$7({}, addStripe && stripeStyle, isIndeterminate ? {
14476
14551
  bgImage: gradient
14477
14552
  } : {
14478
14553
  bgColor
@@ -14490,7 +14565,7 @@ var baseStyleTrack$2 = function baseStyleTrack(props) {
14490
14565
  };
14491
14566
  };
14492
14567
  var baseStyleFilledTrack$1 = function baseStyleFilledTrack(props) {
14493
- return _extends$5({
14568
+ return _extends$7({
14494
14569
  transitionProperty: "common",
14495
14570
  transitionDuration: "slow"
14496
14571
  }, filledStyle(props));
@@ -14536,9 +14611,9 @@ var progress = {
14536
14611
  };
14537
14612
  var baseStyleControl2 = function baseStyleControl3(props) {
14538
14613
  var _Checkbox$baseStyle = Checkbox.baseStyle(props), _Checkbox$baseStyle$c = _Checkbox$baseStyle.control, control = _Checkbox$baseStyle$c === void 0 ? {} : _Checkbox$baseStyle$c;
14539
- return _extends$5({}, control, {
14614
+ return _extends$7({}, control, {
14540
14615
  borderRadius: "full",
14541
- _checked: _extends$5({}, control["_checked"], {
14616
+ _checked: _extends$7({}, control["_checked"], {
14542
14617
  _before: {
14543
14618
  content: '""',
14544
14619
  display: "inline-block",
@@ -14597,7 +14672,7 @@ var radio = {
14597
14672
  defaultProps: defaultProps$8
14598
14673
  };
14599
14674
  var baseStyleField = function baseStyleField2(props) {
14600
- return _extends$5({}, Input.baseStyle.field, {
14675
+ return _extends$7({}, Input.baseStyle.field, {
14601
14676
  bg: mode("white", "gray.700")(props),
14602
14677
  appearance: "none",
14603
14678
  paddingBottom: "1px",
@@ -14718,7 +14793,7 @@ function thumbOrientation(props) {
14718
14793
  }
14719
14794
  var baseStyleContainer$1 = function baseStyleContainer2(props) {
14720
14795
  var orientation = props.orientation;
14721
- return _extends$5({
14796
+ return _extends$7({
14722
14797
  display: "inline-block",
14723
14798
  position: "relative",
14724
14799
  cursor: "pointer",
@@ -14748,7 +14823,7 @@ var baseStyleTrack$1 = function baseStyleTrack2(props) {
14748
14823
  };
14749
14824
  };
14750
14825
  var baseStyleThumb$1 = function baseStyleThumb(props) {
14751
- return _extends$5({
14826
+ return _extends$7({
14752
14827
  display: "flex",
14753
14828
  alignItems: "center",
14754
14829
  justifyContent: "center",
@@ -15018,12 +15093,12 @@ var numericStyles = {
15018
15093
  var variantSimple = function variantSimple2(props) {
15019
15094
  var c2 = props.colorScheme;
15020
15095
  return {
15021
- th: _extends$5({
15096
+ th: _extends$7({
15022
15097
  color: mode("gray.600", "gray.400")(props),
15023
15098
  borderBottom: "1px",
15024
15099
  borderColor: mode(c2 + ".100", c2 + ".700")(props)
15025
15100
  }, numericStyles),
15026
- td: _extends$5({
15101
+ td: _extends$7({
15027
15102
  borderBottom: "1px",
15028
15103
  borderColor: mode(c2 + ".100", c2 + ".700")(props)
15029
15104
  }, numericStyles),
@@ -15044,12 +15119,12 @@ var variantSimple = function variantSimple2(props) {
15044
15119
  var variantStripe = function variantStripe2(props) {
15045
15120
  var c2 = props.colorScheme;
15046
15121
  return {
15047
- th: _extends$5({
15122
+ th: _extends$7({
15048
15123
  color: mode("gray.600", "gray.400")(props),
15049
15124
  borderBottom: "1px",
15050
15125
  borderColor: mode(c2 + ".100", c2 + ".700")(props)
15051
15126
  }, numericStyles),
15052
- td: _extends$5({
15127
+ td: _extends$7({
15053
15128
  borderBottom: "1px",
15054
15129
  borderColor: mode(c2 + ".100", c2 + ".700")(props)
15055
15130
  }, numericStyles),
@@ -15437,7 +15512,7 @@ var tag = {
15437
15512
  defaultProps: defaultProps$1
15438
15513
  };
15439
15514
  var _Input$variants$unsty, _Input$sizes$xs$field, _Input$sizes$sm$field, _Input$sizes$md$field, _Input$sizes$lg$field;
15440
- var baseStyle$1 = _extends$5({}, Input.baseStyle.field, {
15515
+ var baseStyle$1 = _extends$7({}, Input.baseStyle.field, {
15441
15516
  paddingY: "8px",
15442
15517
  minHeight: "80px",
15443
15518
  lineHeight: "short",
@@ -15838,7 +15913,7 @@ var blur2 = {
15838
15913
  "2xl": "40px",
15839
15914
  "3xl": "64px"
15840
15915
  };
15841
- var foundations = _extends$5({
15916
+ var foundations = _extends$7({
15842
15917
  breakpoints,
15843
15918
  zIndices,
15844
15919
  radii: radii$1,
@@ -15888,15 +15963,15 @@ var config = {
15888
15963
  initialColorMode: "light",
15889
15964
  cssVarPrefix: "chakra"
15890
15965
  };
15891
- var theme$1 = _extends$5({
15966
+ var theme$1 = _extends$7({
15892
15967
  direction
15893
15968
  }, foundations, {
15894
15969
  components,
15895
15970
  styles: styles$1$1,
15896
15971
  config
15897
15972
  });
15898
- function _extends$3() {
15899
- _extends$3 = Object.assign || function(target) {
15973
+ function _extends$5() {
15974
+ _extends$5 = Object.assign || function(target) {
15900
15975
  for (var i = 1; i < arguments.length; i++) {
15901
15976
  var source = arguments[i];
15902
15977
  for (var key in source) {
@@ -15907,9 +15982,9 @@ function _extends$3() {
15907
15982
  }
15908
15983
  return target;
15909
15984
  };
15910
- return _extends$3.apply(this, arguments);
15985
+ return _extends$5.apply(this, arguments);
15911
15986
  }
15912
- function _objectWithoutPropertiesLoose$3(source, excluded) {
15987
+ function _objectWithoutPropertiesLoose$5(source, excluded) {
15913
15988
  if (source == null)
15914
15989
  return {};
15915
15990
  var target = {};
@@ -15923,7 +15998,7 @@ function _objectWithoutPropertiesLoose$3(source, excluded) {
15923
15998
  }
15924
15999
  return target;
15925
16000
  }
15926
- var _excluded$7 = ["as", "viewBox", "color", "focusable", "children", "className", "__css"];
16001
+ var _excluded$9 = ["as", "viewBox", "color", "focusable", "children", "className", "__css"];
15927
16002
  var fallbackIcon = {
15928
16003
  path: /* @__PURE__ */ React.createElement("g", {
15929
16004
  stroke: "currentColor",
@@ -15946,9 +16021,9 @@ var fallbackIcon = {
15946
16021
  viewBox: "0 0 24 24"
15947
16022
  };
15948
16023
  var Icon = /* @__PURE__ */ forwardRef(function(props, ref) {
15949
- var element = props.as, viewBox = props.viewBox, _props$color = props.color, color2 = _props$color === void 0 ? "currentColor" : _props$color, _props$focusable = props.focusable, focusable = _props$focusable === void 0 ? false : _props$focusable, children = props.children, className = props.className, __css = props.__css, rest = _objectWithoutPropertiesLoose$3(props, _excluded$7);
16024
+ var element = props.as, viewBox = props.viewBox, _props$color = props.color, color2 = _props$color === void 0 ? "currentColor" : _props$color, _props$focusable = props.focusable, focusable = _props$focusable === void 0 ? false : _props$focusable, children = props.children, className = props.className, __css = props.__css, rest = _objectWithoutPropertiesLoose$5(props, _excluded$9);
15950
16025
  var _className = cx("chakra-icon", className);
15951
- var styles2 = _extends$3({
16026
+ var styles2 = _extends$5({
15952
16027
  w: "1em",
15953
16028
  h: "1em",
15954
16029
  display: "inline-block",
@@ -15964,18 +16039,18 @@ var Icon = /* @__PURE__ */ forwardRef(function(props, ref) {
15964
16039
  };
15965
16040
  var _viewBox = viewBox != null ? viewBox : fallbackIcon.viewBox;
15966
16041
  if (element && typeof element !== "string") {
15967
- return /* @__PURE__ */ React.createElement(chakra.svg, _extends$3({
16042
+ return /* @__PURE__ */ React.createElement(chakra.svg, _extends$5({
15968
16043
  as: element
15969
16044
  }, shared, rest));
15970
16045
  }
15971
16046
  var _path = children != null ? children : fallbackIcon.path;
15972
- return /* @__PURE__ */ React.createElement(chakra.svg, _extends$3({
16047
+ return /* @__PURE__ */ React.createElement(chakra.svg, _extends$5({
15973
16048
  verticalAlign: "middle",
15974
16049
  viewBox: _viewBox
15975
16050
  }, shared, rest), _path);
15976
16051
  });
15977
- function _extends$2() {
15978
- _extends$2 = Object.assign || function(target) {
16052
+ function _extends$4() {
16053
+ _extends$4 = Object.assign || function(target) {
15979
16054
  for (var i = 1; i < arguments.length; i++) {
15980
16055
  var source = arguments[i];
15981
16056
  for (var key in source) {
@@ -15986,9 +16061,9 @@ function _extends$2() {
15986
16061
  }
15987
16062
  return target;
15988
16063
  };
15989
- return _extends$2.apply(this, arguments);
16064
+ return _extends$4.apply(this, arguments);
15990
16065
  }
15991
- function _objectWithoutPropertiesLoose$2(source, excluded) {
16066
+ function _objectWithoutPropertiesLoose$4(source, excluded) {
15992
16067
  if (source == null)
15993
16068
  return {};
15994
16069
  var target = {};
@@ -16054,10 +16129,10 @@ function useImage(props) {
16054
16129
  }, [status, load, ignoreFallback]);
16055
16130
  return ignoreFallback ? "loaded" : status;
16056
16131
  }
16057
- var _excluded$4 = ["htmlWidth", "htmlHeight", "alt"], _excluded2$2 = ["fallbackSrc", "fallback", "src", "srcSet", "align", "fit", "loading", "ignoreFallback", "crossOrigin"];
16132
+ var _excluded$7 = ["htmlWidth", "htmlHeight", "alt"], _excluded2$2 = ["fallbackSrc", "fallback", "src", "srcSet", "align", "fit", "loading", "ignoreFallback", "crossOrigin"];
16058
16133
  var NativeImage = /* @__PURE__ */ React.forwardRef(function(props, ref) {
16059
- var htmlWidth = props.htmlWidth, htmlHeight = props.htmlHeight, alt = props.alt, rest = _objectWithoutPropertiesLoose$2(props, _excluded$4);
16060
- return /* @__PURE__ */ React.createElement("img", _extends$2({
16134
+ var htmlWidth = props.htmlWidth, htmlHeight = props.htmlHeight, alt = props.alt, rest = _objectWithoutPropertiesLoose$4(props, _excluded$7);
16135
+ return /* @__PURE__ */ React.createElement("img", _extends$4({
16061
16136
  width: htmlWidth,
16062
16137
  height: htmlHeight,
16063
16138
  ref,
@@ -16065,12 +16140,12 @@ var NativeImage = /* @__PURE__ */ React.forwardRef(function(props, ref) {
16065
16140
  }, rest));
16066
16141
  });
16067
16142
  var Image$1 = /* @__PURE__ */ forwardRef(function(props, ref) {
16068
- var fallbackSrc = props.fallbackSrc, fallback = props.fallback, src = props.src, srcSet = props.srcSet, align = props.align, fit = props.fit, loading = props.loading, ignoreFallback = props.ignoreFallback, crossOrigin = props.crossOrigin, rest = _objectWithoutPropertiesLoose$2(props, _excluded2$2);
16143
+ var fallbackSrc = props.fallbackSrc, fallback = props.fallback, src = props.src, srcSet = props.srcSet, align = props.align, fit = props.fit, loading = props.loading, ignoreFallback = props.ignoreFallback, crossOrigin = props.crossOrigin, rest = _objectWithoutPropertiesLoose$4(props, _excluded2$2);
16069
16144
  var shouldIgnore = loading != null || ignoreFallback || fallbackSrc === void 0 && fallback === void 0;
16070
- var status = useImage(_extends$2({}, props, {
16145
+ var status = useImage(_extends$4({}, props, {
16071
16146
  ignoreFallback: shouldIgnore
16072
16147
  }));
16073
- var shared = _extends$2({
16148
+ var shared = _extends$4({
16074
16149
  ref,
16075
16150
  objectFit: fit,
16076
16151
  objectPosition: align
@@ -16078,13 +16153,13 @@ var Image$1 = /* @__PURE__ */ forwardRef(function(props, ref) {
16078
16153
  if (status !== "loaded") {
16079
16154
  if (fallback)
16080
16155
  return fallback;
16081
- return /* @__PURE__ */ React.createElement(chakra.img, _extends$2({
16156
+ return /* @__PURE__ */ React.createElement(chakra.img, _extends$4({
16082
16157
  as: NativeImage,
16083
16158
  className: "chakra-image__placeholder",
16084
16159
  src: fallbackSrc
16085
16160
  }, shared));
16086
16161
  }
16087
- return /* @__PURE__ */ React.createElement(chakra.img, _extends$2({
16162
+ return /* @__PURE__ */ React.createElement(chakra.img, _extends$4({
16088
16163
  as: NativeImage,
16089
16164
  src,
16090
16165
  srcSet,
@@ -16093,6 +16168,227 @@ var Image$1 = /* @__PURE__ */ forwardRef(function(props, ref) {
16093
16168
  className: "chakra-image"
16094
16169
  }, shared));
16095
16170
  });
16171
+ var visuallyHiddenStyle = {
16172
+ border: "0px",
16173
+ clip: "rect(0px, 0px, 0px, 0px)",
16174
+ height: "1px",
16175
+ width: "1px",
16176
+ margin: "-1px",
16177
+ padding: "0px",
16178
+ overflow: "hidden",
16179
+ whiteSpace: "nowrap",
16180
+ position: "absolute"
16181
+ };
16182
+ var VisuallyHidden = chakra("span", {
16183
+ baseStyle: visuallyHiddenStyle
16184
+ });
16185
+ chakra("input", {
16186
+ baseStyle: visuallyHiddenStyle
16187
+ });
16188
+ function _extends$3() {
16189
+ _extends$3 = Object.assign || function(target) {
16190
+ for (var i = 1; i < arguments.length; i++) {
16191
+ var source = arguments[i];
16192
+ for (var key in source) {
16193
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
16194
+ target[key] = source[key];
16195
+ }
16196
+ }
16197
+ }
16198
+ return target;
16199
+ };
16200
+ return _extends$3.apply(this, arguments);
16201
+ }
16202
+ function _objectWithoutPropertiesLoose$3(source, excluded) {
16203
+ if (source == null)
16204
+ return {};
16205
+ var target = {};
16206
+ var sourceKeys = Object.keys(source);
16207
+ var key, i;
16208
+ for (i = 0; i < sourceKeys.length; i++) {
16209
+ key = sourceKeys[i];
16210
+ if (excluded.indexOf(key) >= 0)
16211
+ continue;
16212
+ target[key] = source[key];
16213
+ }
16214
+ return target;
16215
+ }
16216
+ var _excluded$4 = ["label", "thickness", "speed", "emptyColor", "className"];
16217
+ var spin$1 = keyframes({
16218
+ "0%": {
16219
+ transform: "rotate(0deg)"
16220
+ },
16221
+ "100%": {
16222
+ transform: "rotate(360deg)"
16223
+ }
16224
+ });
16225
+ var Spinner = /* @__PURE__ */ forwardRef(function(props, ref) {
16226
+ var styles2 = useStyleConfig("Spinner", props);
16227
+ var _omitThemingProps = omitThemingProps(props), _omitThemingProps$lab = _omitThemingProps.label, label = _omitThemingProps$lab === void 0 ? "Loading..." : _omitThemingProps$lab, _omitThemingProps$thi = _omitThemingProps.thickness, thickness = _omitThemingProps$thi === void 0 ? "2px" : _omitThemingProps$thi, _omitThemingProps$spe = _omitThemingProps.speed, speed = _omitThemingProps$spe === void 0 ? "0.45s" : _omitThemingProps$spe, _omitThemingProps$emp = _omitThemingProps.emptyColor, emptyColor = _omitThemingProps$emp === void 0 ? "transparent" : _omitThemingProps$emp, className = _omitThemingProps.className, rest = _objectWithoutPropertiesLoose$3(_omitThemingProps, _excluded$4);
16228
+ var _className = cx("chakra-spinner", className);
16229
+ var spinnerStyles = _extends$3({
16230
+ display: "inline-block",
16231
+ borderColor: "currentColor",
16232
+ borderStyle: "solid",
16233
+ borderRadius: "99999px",
16234
+ borderWidth: thickness,
16235
+ borderBottomColor: emptyColor,
16236
+ borderLeftColor: emptyColor,
16237
+ animation: spin$1 + " " + speed + " linear infinite"
16238
+ }, styles2);
16239
+ return /* @__PURE__ */ React.createElement(chakra.div, _extends$3({
16240
+ ref,
16241
+ __css: spinnerStyles,
16242
+ className: _className
16243
+ }, rest), label && /* @__PURE__ */ React.createElement(VisuallyHidden, null, label));
16244
+ });
16245
+ function _objectWithoutPropertiesLoose$2(source, excluded) {
16246
+ if (source == null)
16247
+ return {};
16248
+ var target = {};
16249
+ var sourceKeys = Object.keys(source);
16250
+ var key, i;
16251
+ for (i = 0; i < sourceKeys.length; i++) {
16252
+ key = sourceKeys[i];
16253
+ if (excluded.indexOf(key) >= 0)
16254
+ continue;
16255
+ target[key] = source[key];
16256
+ }
16257
+ return target;
16258
+ }
16259
+ function _extends$2() {
16260
+ _extends$2 = Object.assign || function(target) {
16261
+ for (var i = 1; i < arguments.length; i++) {
16262
+ var source = arguments[i];
16263
+ for (var key in source) {
16264
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
16265
+ target[key] = source[key];
16266
+ }
16267
+ }
16268
+ }
16269
+ return target;
16270
+ };
16271
+ return _extends$2.apply(this, arguments);
16272
+ }
16273
+ var _createContext$1 = createContext({
16274
+ strict: false,
16275
+ name: "ButtonGroupContext"
16276
+ }), useButtonGroup = _createContext$1[1];
16277
+ var _excluded$3$1 = ["label", "placement", "spacing", "children", "className", "__css"];
16278
+ var ButtonSpinner = function ButtonSpinner2(props) {
16279
+ var label = props.label, placement = props.placement, _props$spacing = props.spacing, spacing2 = _props$spacing === void 0 ? "0.5rem" : _props$spacing, _props$children = props.children, children = _props$children === void 0 ? /* @__PURE__ */ React.createElement(Spinner, {
16280
+ color: "currentColor",
16281
+ width: "1em",
16282
+ height: "1em"
16283
+ }) : _props$children, className = props.className, __css = props.__css, rest = _objectWithoutPropertiesLoose$2(props, _excluded$3$1);
16284
+ var _className = cx("chakra-button__spinner", className);
16285
+ var marginProp = placement === "start" ? "marginEnd" : "marginStart";
16286
+ var spinnerStyles = React.useMemo(function() {
16287
+ var _extends2;
16288
+ return _extends$2((_extends2 = {
16289
+ display: "flex",
16290
+ alignItems: "center",
16291
+ position: label ? "relative" : "absolute"
16292
+ }, _extends2[marginProp] = label ? spacing2 : 0, _extends2.fontSize = "1em", _extends2.lineHeight = "normal", _extends2), __css);
16293
+ }, [__css, label, marginProp, spacing2]);
16294
+ return /* @__PURE__ */ React.createElement(chakra.div, _extends$2({
16295
+ className: _className
16296
+ }, rest, {
16297
+ __css: spinnerStyles
16298
+ }), children);
16299
+ };
16300
+ var _excluded$2$1 = ["children", "className"];
16301
+ var ButtonIcon = function ButtonIcon2(props) {
16302
+ var children = props.children, className = props.className, rest = _objectWithoutPropertiesLoose$2(props, _excluded$2$1);
16303
+ var _children = /* @__PURE__ */ React.isValidElement(children) ? /* @__PURE__ */ React.cloneElement(children, {
16304
+ "aria-hidden": true,
16305
+ focusable: false
16306
+ }) : children;
16307
+ var _className = cx("chakra-button__icon", className);
16308
+ return /* @__PURE__ */ React.createElement(chakra.span, _extends$2({
16309
+ display: "inline-flex",
16310
+ alignSelf: "center",
16311
+ flexShrink: 0
16312
+ }, rest, {
16313
+ className: _className
16314
+ }), _children);
16315
+ };
16316
+ function useButtonType(value) {
16317
+ var _React$useState = React.useState(!value), isButton = _React$useState[0], setIsButton = _React$useState[1];
16318
+ var refCallback = React.useCallback(function(node2) {
16319
+ if (!node2)
16320
+ return;
16321
+ setIsButton(node2.tagName === "BUTTON");
16322
+ }, []);
16323
+ var type = isButton ? "button" : void 0;
16324
+ return {
16325
+ ref: refCallback,
16326
+ type
16327
+ };
16328
+ }
16329
+ var _excluded$1$1 = ["isDisabled", "isLoading", "isActive", "isFullWidth", "children", "leftIcon", "rightIcon", "loadingText", "iconSpacing", "type", "spinner", "spinnerPlacement", "className", "as"];
16330
+ var Button = /* @__PURE__ */ forwardRef(function(props, ref) {
16331
+ var group = useButtonGroup();
16332
+ var styles2 = useStyleConfig("Button", _extends$2({}, group, props));
16333
+ var _omitThemingProps = omitThemingProps(props), _omitThemingProps$isD = _omitThemingProps.isDisabled, isDisabled = _omitThemingProps$isD === void 0 ? group == null ? void 0 : group.isDisabled : _omitThemingProps$isD, isLoading = _omitThemingProps.isLoading, isActive = _omitThemingProps.isActive, isFullWidth = _omitThemingProps.isFullWidth, children = _omitThemingProps.children, leftIcon = _omitThemingProps.leftIcon, rightIcon = _omitThemingProps.rightIcon, loadingText = _omitThemingProps.loadingText, _omitThemingProps$ico = _omitThemingProps.iconSpacing, iconSpacing2 = _omitThemingProps$ico === void 0 ? "0.5rem" : _omitThemingProps$ico, type = _omitThemingProps.type, spinner2 = _omitThemingProps.spinner, _omitThemingProps$spi = _omitThemingProps.spinnerPlacement, spinnerPlacement = _omitThemingProps$spi === void 0 ? "start" : _omitThemingProps$spi, className = _omitThemingProps.className, as = _omitThemingProps.as, rest = _objectWithoutPropertiesLoose$2(_omitThemingProps, _excluded$1$1);
16334
+ var buttonStyles = React.useMemo(function() {
16335
+ var _styles$_focus;
16336
+ var _focus = mergeWith({}, (_styles$_focus = styles2 == null ? void 0 : styles2["_focus"]) != null ? _styles$_focus : {}, {
16337
+ zIndex: 1
16338
+ });
16339
+ return _extends$2({
16340
+ display: "inline-flex",
16341
+ appearance: "none",
16342
+ alignItems: "center",
16343
+ justifyContent: "center",
16344
+ userSelect: "none",
16345
+ position: "relative",
16346
+ whiteSpace: "nowrap",
16347
+ verticalAlign: "middle",
16348
+ outline: "none",
16349
+ width: isFullWidth ? "100%" : "auto"
16350
+ }, styles2, !!group && {
16351
+ _focus
16352
+ });
16353
+ }, [styles2, group, isFullWidth]);
16354
+ var _useButtonType = useButtonType(as), _ref = _useButtonType.ref, defaultType = _useButtonType.type;
16355
+ var contentProps = {
16356
+ rightIcon,
16357
+ leftIcon,
16358
+ iconSpacing: iconSpacing2,
16359
+ children
16360
+ };
16361
+ return /* @__PURE__ */ React.createElement(chakra.button, _extends$2({
16362
+ disabled: isDisabled || isLoading,
16363
+ ref: useMergeRefs(ref, _ref),
16364
+ as,
16365
+ type: type != null ? type : defaultType,
16366
+ "data-active": dataAttr(isActive),
16367
+ "data-loading": dataAttr(isLoading),
16368
+ __css: buttonStyles,
16369
+ className: cx("chakra-button", className)
16370
+ }, rest), isLoading && spinnerPlacement === "start" && /* @__PURE__ */ React.createElement(ButtonSpinner, {
16371
+ className: "chakra-button__spinner--start",
16372
+ label: loadingText,
16373
+ placement: "start",
16374
+ spacing: iconSpacing2
16375
+ }, spinner2), isLoading ? loadingText || /* @__PURE__ */ React.createElement(chakra.span, {
16376
+ opacity: 0
16377
+ }, /* @__PURE__ */ React.createElement(ButtonContent, contentProps)) : /* @__PURE__ */ React.createElement(ButtonContent, contentProps), isLoading && spinnerPlacement === "end" && /* @__PURE__ */ React.createElement(ButtonSpinner, {
16378
+ className: "chakra-button__spinner--end",
16379
+ label: loadingText,
16380
+ placement: "end",
16381
+ spacing: iconSpacing2
16382
+ }, spinner2));
16383
+ });
16384
+ function ButtonContent(props) {
16385
+ var leftIcon = props.leftIcon, rightIcon = props.rightIcon, children = props.children, iconSpacing2 = props.iconSpacing;
16386
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, leftIcon && /* @__PURE__ */ React.createElement(ButtonIcon, {
16387
+ marginEnd: iconSpacing2
16388
+ }, leftIcon), children, rightIcon && /* @__PURE__ */ React.createElement(ButtonIcon, {
16389
+ marginStart: iconSpacing2
16390
+ }, rightIcon));
16391
+ }
16096
16392
  function _extends$1() {
16097
16393
  _extends$1 = Object.assign || function(target) {
16098
16394
  for (var i = 1; i < arguments.length; i++) {
@@ -16166,7 +16462,7 @@ var Link = /* @__PURE__ */ forwardRef(function(props, ref) {
16166
16462
  var _omitThemingProps = omitThemingProps(props), className = _omitThemingProps.className, isExternal = _omitThemingProps.isExternal, rest = _objectWithoutPropertiesLoose$1(_omitThemingProps, _excluded$6);
16167
16463
  return /* @__PURE__ */ React.createElement(chakra.a, _extends$1({
16168
16464
  target: isExternal ? "_blank" : void 0,
16169
- rel: isExternal ? "noopener noreferrer" : void 0,
16465
+ rel: isExternal ? "noopener" : void 0,
16170
16466
  ref,
16171
16467
  className: cx("chakra-link", className)
16172
16468
  }, rest, {
@@ -16388,7 +16684,7 @@ var LinkOverlay = /* @__PURE__ */ forwardRef(function(props, ref) {
16388
16684
  position: "absolute",
16389
16685
  top: 0,
16390
16686
  left: 0,
16391
- zIndex: 0,
16687
+ zIndex: 1,
16392
16688
  width: "100%",
16393
16689
  height: "100%"
16394
16690
  }
@@ -16403,7 +16699,7 @@ var LinkBox = /* @__PURE__ */ forwardRef(function(props, ref) {
16403
16699
  }, rest, {
16404
16700
  className: cx("chakra-linkbox", className),
16405
16701
  __css: {
16406
- "a[href]:not(.chakra-linkbox__overlay), abbr[title]": {
16702
+ "a[href]:not(.chakra-linkbox__overlay), abbr[title], button": {
16407
16703
  position: "relative",
16408
16704
  zIndex: 1
16409
16705
  }
@@ -17964,12 +18260,17 @@ function maxWidthCoursesList(nCols = 4) {
17964
18260
  remValue: maxWidth
17965
18261
  };
17966
18262
  }
17967
- function Footer() {
18263
+ function Footer({
18264
+ onClick
18265
+ }) {
17968
18266
  var _a;
17969
18267
  const {
17970
18268
  action,
17971
18269
  Profile: Profile2
17972
18270
  } = React.useContext(CourseBoxContext);
18271
+ const cssButton = {
18272
+ backgroundColor: "transparent"
18273
+ };
17973
18274
  if (action == null || (action == null ? void 0 : action.enabled) && ((_a = action.href) == null ? void 0 : _a.length) === 0) {
17974
18275
  return null;
17975
18276
  }
@@ -17980,7 +18281,20 @@ function Footer() {
17980
18281
  borderTop: "1px solid",
17981
18282
  borderTopColor: vars("colors-neutral-platinum"),
17982
18283
  children: isCourseActive(action.enabled, Profile2 == null ? void 0 : Profile2.id) ? /* @__PURE__ */ jsxs(Fragment, {
17983
- children: [/* @__PURE__ */ jsx(LinkOverlay, {
18284
+ children: [onClick ? /* @__PURE__ */ jsx(Button, {
18285
+ color: vars("colors-main-deepSkyBlue"),
18286
+ backgroundColor: "transparent",
18287
+ fontWeight: "500",
18288
+ height: "auto",
18289
+ mr: action.hasIcon ? "1.5rem" : "0",
18290
+ lineHeight: "1.172rem",
18291
+ p: "0",
18292
+ onClick,
18293
+ _hover: cssButton,
18294
+ _focus: cssButton,
18295
+ _active: cssButton,
18296
+ children: action.text
18297
+ }) : /* @__PURE__ */ jsx(LinkOverlay, {
17984
18298
  href: action.href,
17985
18299
  color: vars("colors-main-deepSkyBlue"),
17986
18300
  fontWeight: "500",
@@ -18013,7 +18327,8 @@ function WithRipples({
18013
18327
  });
18014
18328
  }
18015
18329
  function CourseBox({
18016
- data
18330
+ data,
18331
+ onClick
18017
18332
  }) {
18018
18333
  var _a, _b, _c;
18019
18334
  const cssActive = {
@@ -18039,7 +18354,9 @@ function CourseBox({
18039
18354
  h: "100%",
18040
18355
  children: [/* @__PURE__ */ jsxs(Box, {
18041
18356
  children: [/* @__PURE__ */ jsx(Header, {}), /* @__PURE__ */ jsx(Section, {})]
18042
- }), /* @__PURE__ */ jsx(Footer, {})]
18357
+ }), /* @__PURE__ */ jsx(Footer, {
18358
+ onClick
18359
+ })]
18043
18360
  })
18044
18361
  })
18045
18362
  })
@@ -18050,7 +18367,8 @@ const columnGap = 1.25;
18050
18367
  const wCourse = 17.8125;
18051
18368
  function CourseList({
18052
18369
  courses,
18053
- m: m2 = "0 auto"
18370
+ m: m2 = "0 auto",
18371
+ onClick
18054
18372
  }) {
18055
18373
  if (courses === void 0) {
18056
18374
  return null;
@@ -18063,7 +18381,8 @@ function CourseList({
18063
18381
  m: m2,
18064
18382
  w: "100%",
18065
18383
  children: courses == null ? void 0 : courses.map((course) => /* @__PURE__ */ jsx(CourseBox, {
18066
- data: course
18384
+ data: course,
18385
+ onClick
18067
18386
  }, course.id))
18068
18387
  });
18069
18388
  }