@everlywell/ui-kit 1.11.3 → 1.11.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/package.json +1 -1
  2. package/index.d.mts +0 -42
  3. package/index.d.ts +0 -42
  4. package/index.js +0 -111
  5. package/index.mjs +0 -4127
  6. package/lib/components/Fonts/Fonts.d.ts +0 -2
  7. package/lib/components/Fonts/index.d.ts +0 -1
  8. package/lib/components/ThemeProvider/ThemeProvider.d.ts +0 -5
  9. package/lib/components/ThemeProvider/index.d.ts +0 -1
  10. package/lib/theme/accessibility/VisuallyHidden/VisuallyHidden.d.ts +0 -2
  11. package/lib/theme/actions/Button/Button.config.d.ts +0 -106
  12. package/lib/theme/actions/Button/Button.d.ts +0 -3
  13. package/lib/theme/actions/Checkbox/Checkbox.config.d.ts +0 -74
  14. package/lib/theme/actions/Checkbox/Checkbox.d.ts +0 -6
  15. package/lib/theme/actions/FormControl/FormControl.config.d.ts +0 -91
  16. package/lib/theme/actions/FormControl/FormControl.d.ts +0 -4
  17. package/lib/theme/actions/FormControl/FormError.config.d.ts +0 -31
  18. package/lib/theme/actions/FormControl/FormLabel.config.d.ts +0 -24
  19. package/lib/theme/actions/IconButton/IconButton.config.d.ts +0 -0
  20. package/lib/theme/actions/IconButton/IconButton.d.ts +0 -3
  21. package/lib/theme/actions/Input/Input.config.d.ts +0 -49
  22. package/lib/theme/actions/Input/Input.d.ts +0 -4
  23. package/lib/theme/actions/Menu/Menu.config.d.ts +0 -98
  24. package/lib/theme/actions/Menu/Menu.d.ts +0 -3
  25. package/lib/theme/actions/Radio/Radio.d.ts +0 -10
  26. package/lib/theme/actions/Select/Select.config.d.ts +0 -61
  27. package/lib/theme/actions/Select/Select.d.ts +0 -3
  28. package/lib/theme/actions/Slider/Slider.config.d.ts +0 -19
  29. package/lib/theme/actions/Slider/Slider.d.ts +0 -3
  30. package/lib/theme/data-display/Accordion/Accordion.config.d.ts +0 -57
  31. package/lib/theme/data-display/Accordion/Accordion.d.ts +0 -3
  32. package/lib/theme/data-display/List/List.d.ts +0 -4
  33. package/lib/theme/data-display/Table/Table.config.d.ts +0 -57
  34. package/lib/theme/data-display/Table/Table.d.ts +0 -3
  35. package/lib/theme/data-display/Tabs/Tabs.config.d.ts +0 -68
  36. package/lib/theme/data-display/Tabs/Tabs.d.ts +0 -3
  37. package/lib/theme/data-display/Tag/Tag.config.d.ts +0 -491
  38. package/lib/theme/data-display/Tag/Tag.d.ts +0 -3
  39. package/lib/theme/data-display/index.d.ts +0 -2
  40. package/lib/theme/feedback/Progress/Progress.config.d.ts +0 -51
  41. package/lib/theme/feedback/Progress/Progress.d.ts +0 -12
  42. package/lib/theme/feedback/Progress/Progress.utils.d.ts +0 -8
  43. package/lib/theme/feedback/Skeleton/Skeleton.config.d.ts +0 -15
  44. package/lib/theme/feedback/Skeleton/Skeleton.d.ts +0 -4
  45. package/lib/theme/feedback/Spinner/Spinner.config.d.ts +0 -27
  46. package/lib/theme/feedback/Spinner/Spinner.d.ts +0 -3
  47. package/lib/theme/foundations/colors.d.ts +0 -213
  48. package/lib/theme/hooks/UseMediaQuery/UseMediaQuery.d.ts +0 -3
  49. package/lib/theme/hooks/UseRadioGroup/UseRadioGroup.d.ts +0 -3
  50. package/lib/theme/index.d.ts +0 -3946
  51. package/lib/theme/layout/Box/Box.d.ts +0 -3
  52. package/lib/theme/layout/Container/Container.config.d.ts +0 -33
  53. package/lib/theme/layout/Container/Container.d.ts +0 -3
  54. package/lib/theme/layout/Flex/Flex.d.ts +0 -1
  55. package/lib/theme/layout/Grid/Grid.d.ts +0 -49
  56. package/lib/theme/layout/Grid/GridItem.d.ts +0 -5
  57. package/lib/theme/layout/Grid/index.d.ts +0 -2
  58. package/lib/theme/layout/Show-Hide/Show-Hide.config.d.ts +0 -11
  59. package/lib/theme/layout/Show-Hide/Show-Hide.d.ts +0 -5
  60. package/lib/theme/layout/Stack/Stack.d.ts +0 -1
  61. package/lib/theme/media/Icon/Icon.config.d.ts +0 -21
  62. package/lib/theme/media/Icon/Icon.d.ts +0 -3
  63. package/lib/theme/media/Image/Image.d.ts +0 -3
  64. package/lib/theme/navigation/Breadcrumb/Breadcrumb.d.ts +0 -4
  65. package/lib/theme/navigation/Link/Link.config.d.ts +0 -31
  66. package/lib/theme/navigation/Link/Link.d.ts +0 -3
  67. package/lib/theme/navigation/Stepper/Stepper.config.d.ts +0 -26
  68. package/lib/theme/navigation/Stepper/Stepper.d.ts +0 -4
  69. package/lib/theme/overlay/Drawer/Drawer.config.d.ts +0 -72
  70. package/lib/theme/overlay/Drawer/Drawer.d.ts +0 -3
  71. package/lib/theme/overlay/Drawer/index.d.ts +0 -2
  72. package/lib/theme/overlay/Modal/Modal.config.d.ts +0 -106
  73. package/lib/theme/overlay/Modal/Modal.d.ts +0 -3
  74. package/lib/theme/overlay/Tooltip/Tooltip.config.d.ts +0 -17
  75. package/lib/theme/overlay/Tooltip/Tooltip.d.ts +0 -3
  76. package/lib/theme/typography/Heading/Heading.config.d.ts +0 -48
  77. package/lib/theme/typography/Heading/Heading.d.ts +0 -3
  78. package/lib/theme/typography/Text/Text.config.d.ts +0 -37
  79. package/lib/theme/typography/Text/Text.d.ts +0 -3
  80. package/lib/utils/utils.storybook.d.ts +0 -24
package/index.mjs DELETED
@@ -1,4127 +0,0 @@
1
- import { defineStyleConfig as te, createMultiStyleConfigHelpers as Ae, cssVar as Qe, baseTheme as At, useTheme as Eo, Box as Je, Flex as Fo, Show as Bo, Hide as Io, Checkbox as zo, Icon as Wt, Progress as Po, forwardRef as $o, useRadioGroupContext as Mo, useRadio as Oo, chakra as Do, ChakraBaseProvider as Ao } from "@chakra-ui/react";
2
- import { Accordion as li, AccordionButton as di, AccordionIcon as ci, AccordionItem as ui, AccordionPanel as fi, Box as pi, Breadcrumb as gi, BreadcrumbItem as hi, BreadcrumbLink as bi, BreadcrumbSeparator as mi, Button as yi, CheckboxGroup as vi, Container as Si, Drawer as xi, DrawerBody as ki, DrawerCloseButton as wi, DrawerContent as _i, DrawerFooter as Ci, DrawerHeader as Ti, DrawerOverlay as Ri, Flex as Ei, FormControl as Fi, FormErrorMessage as Bi, FormHelperText as Ii, FormLabel as zi, HStack as Pi, Heading as $i, Icon as Mi, IconButton as Oi, Image as Di, Input as Ai, InputGroup as Wi, InputLeftElement as ji, InputRightElement as Li, Link as Gi, List as Yi, ListIcon as Hi, ListItem as Xi, Menu as Vi, MenuButton as Ni, MenuCommand as Ui, MenuDivider as qi, MenuGroup as Ki, MenuItem as Ji, MenuItemOption as Zi, MenuList as Qi, MenuOptionGroup as es, Modal as rs, ModalBody as ts, ModalCloseButton as os, ModalContent as ns, ModalFooter as as, ModalHeader as is, ModalOverlay as ss, OrderedList as ls, RadioGroup as ds, Select as cs, Skeleton as us, SkeletonCircle as fs, SkeletonText as ps, Slider as gs, SliderFilledTrack as hs, SliderMark as bs, SliderThumb as ms, SliderTrack as ys, Spacer as vs, Spinner as Ss, Stack as xs, Step as ks, StepDescription as ws, StepIcon as _s, StepIndicator as Cs, StepNumber as Ts, StepSeparator as Rs, StepStatus as Es, StepTitle as Fs, Stepper as Bs, Tab as Is, TabList as zs, TabPanel as Ps, TabPanels as $s, Table as Ms, TableCaption as Os, TableContainer as Ds, Tabs as As, Tag as Ws, TagCloseButton as js, TagLabel as Ls, TagLeftIcon as Gs, TagRightIcon as Ys, Tbody as Hs, Td as Xs, Text as Vs, Tfoot as Ns, Th as Us, Thead as qs, Tooltip as Ks, Tr as Js, UnorderedList as Zs, VStack as Qs, VisuallyHidden as el, extendBaseTheme as rl, useDisclosure as tl, useMediaQuery as ol, useRadioGroup as nl, useSteps as al, useTab as il, useToken as sl } from "@chakra-ui/react";
3
- import zr, { createContext as Wo, useContext as jo, forwardRef as Lo } from "react";
4
- import { Check as jt } from "@phosphor-icons/react";
5
- import { Global as Go } from "@emotion/react";
6
- import { default as dl } from "@emotion/styled";
7
- var Tr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
8
- function Yo(e) {
9
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
10
- }
11
- var lt = { exports: {} }, Ue = {};
12
- /**
13
- * @license React
14
- * react-jsx-runtime.production.min.js
15
- *
16
- * Copyright (c) Facebook, Inc. and its affiliates.
17
- *
18
- * This source code is licensed under the MIT license found in the
19
- * LICENSE file in the root directory of this source tree.
20
- */
21
- var Ct;
22
- function Ho() {
23
- if (Ct)
24
- return Ue;
25
- Ct = 1;
26
- var e = zr, a = Symbol.for("react.element"), l = Symbol.for("react.fragment"), u = Object.prototype.hasOwnProperty, f = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, y = { key: !0, ref: !0, __self: !0, __source: !0 };
27
- function C(k, g, z) {
28
- var w, S = {}, D = null, Y = null;
29
- z !== void 0 && (D = "" + z), g.key !== void 0 && (D = "" + g.key), g.ref !== void 0 && (Y = g.ref);
30
- for (w in g)
31
- u.call(g, w) && !y.hasOwnProperty(w) && (S[w] = g[w]);
32
- if (k && k.defaultProps)
33
- for (w in g = k.defaultProps, g)
34
- S[w] === void 0 && (S[w] = g[w]);
35
- return { $$typeof: a, type: k, key: D, ref: Y, props: S, _owner: f.current };
36
- }
37
- return Ue.Fragment = l, Ue.jsx = C, Ue.jsxs = C, Ue;
38
- }
39
- var qe = {};
40
- /**
41
- * @license React
42
- * react-jsx-runtime.development.js
43
- *
44
- * Copyright (c) Facebook, Inc. and its affiliates.
45
- *
46
- * This source code is licensed under the MIT license found in the
47
- * LICENSE file in the root directory of this source tree.
48
- */
49
- var Tt;
50
- function Xo() {
51
- return Tt || (Tt = 1, process.env.NODE_ENV !== "production" && function() {
52
- var e = zr, a = Symbol.for("react.element"), l = Symbol.for("react.portal"), u = Symbol.for("react.fragment"), f = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), C = Symbol.for("react.provider"), k = Symbol.for("react.context"), g = Symbol.for("react.forward_ref"), z = Symbol.for("react.suspense"), w = Symbol.for("react.suspense_list"), S = Symbol.for("react.memo"), D = Symbol.for("react.lazy"), Y = Symbol.for("react.offscreen"), V = Symbol.iterator, oe = "@@iterator";
53
- function ne(t) {
54
- if (t === null || typeof t != "object")
55
- return null;
56
- var s = V && t[V] || t[oe];
57
- return typeof s == "function" ? s : null;
58
- }
59
- var N = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
60
- function P(t) {
61
- {
62
- for (var s = arguments.length, d = new Array(s > 1 ? s - 1 : 0), p = 1; p < s; p++)
63
- d[p - 1] = arguments[p];
64
- Ce("error", t, d);
65
- }
66
- }
67
- function Ce(t, s, d) {
68
- {
69
- var p = N.ReactDebugCurrentFrame, h = p.getStackAddendum();
70
- h !== "" && (s += "%s", d = d.concat([h]));
71
- var F = d.map(function(m) {
72
- return String(m);
73
- });
74
- F.unshift("Warning: " + s), Function.prototype.apply.call(console[t], console, F);
75
- }
76
- }
77
- var Te = !1, $r = !1, Mr = !1, Or = !1, Dr = !1, er;
78
- er = Symbol.for("react.module.reference");
79
- function Ar(t) {
80
- return !!(typeof t == "string" || typeof t == "function" || t === u || t === y || Dr || t === f || t === z || t === w || Or || t === Y || Te || $r || Mr || typeof t == "object" && t !== null && (t.$$typeof === D || t.$$typeof === S || t.$$typeof === C || t.$$typeof === k || t.$$typeof === g || // This needs to include all possible module reference object
81
- // types supported by any Flight configuration anywhere since
82
- // we don't know which Flight build this will end up being used
83
- // with.
84
- t.$$typeof === er || t.getModuleId !== void 0));
85
- }
86
- function Wr(t, s, d) {
87
- var p = t.displayName;
88
- if (p)
89
- return p;
90
- var h = s.displayName || s.name || "";
91
- return h !== "" ? d + "(" + h + ")" : d;
92
- }
93
- function rr(t) {
94
- return t.displayName || "Context";
95
- }
96
- function q(t) {
97
- if (t == null)
98
- return null;
99
- if (typeof t.tag == "number" && P("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof t == "function")
100
- return t.displayName || t.name || null;
101
- if (typeof t == "string")
102
- return t;
103
- switch (t) {
104
- case u:
105
- return "Fragment";
106
- case l:
107
- return "Portal";
108
- case y:
109
- return "Profiler";
110
- case f:
111
- return "StrictMode";
112
- case z:
113
- return "Suspense";
114
- case w:
115
- return "SuspenseList";
116
- }
117
- if (typeof t == "object")
118
- switch (t.$$typeof) {
119
- case k:
120
- var s = t;
121
- return rr(s) + ".Consumer";
122
- case C:
123
- var d = t;
124
- return rr(d._context) + ".Provider";
125
- case g:
126
- return Wr(t, t.render, "ForwardRef");
127
- case S:
128
- var p = t.displayName || null;
129
- return p !== null ? p : q(t.type) || "Memo";
130
- case D: {
131
- var h = t, F = h._payload, m = h._init;
132
- try {
133
- return q(m(F));
134
- } catch {
135
- return null;
136
- }
137
- }
138
- }
139
- return null;
140
- }
141
- var le = Object.assign, ve = 0, tr, or, nr, ar, ir, sr, lr;
142
- function B() {
143
- }
144
- B.__reactDisabledLog = !0;
145
- function dr() {
146
- {
147
- if (ve === 0) {
148
- tr = console.log, or = console.info, nr = console.warn, ar = console.error, ir = console.group, sr = console.groupCollapsed, lr = console.groupEnd;
149
- var t = {
150
- configurable: !0,
151
- enumerable: !0,
152
- value: B,
153
- writable: !0
154
- };
155
- Object.defineProperties(console, {
156
- info: t,
157
- log: t,
158
- warn: t,
159
- error: t,
160
- group: t,
161
- groupCollapsed: t,
162
- groupEnd: t
163
- });
164
- }
165
- ve++;
166
- }
167
- }
168
- function jr() {
169
- {
170
- if (ve--, ve === 0) {
171
- var t = {
172
- configurable: !0,
173
- enumerable: !0,
174
- writable: !0
175
- };
176
- Object.defineProperties(console, {
177
- log: le({}, t, {
178
- value: tr
179
- }),
180
- info: le({}, t, {
181
- value: or
182
- }),
183
- warn: le({}, t, {
184
- value: nr
185
- }),
186
- error: le({}, t, {
187
- value: ar
188
- }),
189
- group: le({}, t, {
190
- value: ir
191
- }),
192
- groupCollapsed: le({}, t, {
193
- value: sr
194
- }),
195
- groupEnd: le({}, t, {
196
- value: lr
197
- })
198
- });
199
- }
200
- ve < 0 && P("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
201
- }
202
- }
203
- var de = N.ReactCurrentDispatcher, Re;
204
- function ae(t, s, d) {
205
- {
206
- if (Re === void 0)
207
- try {
208
- throw Error();
209
- } catch (h) {
210
- var p = h.stack.trim().match(/\n( *(at )?)/);
211
- Re = p && p[1] || "";
212
- }
213
- return `
214
- ` + Re + t;
215
- }
216
- }
217
- var Ee = !1, ge;
218
- {
219
- var cr = typeof WeakMap == "function" ? WeakMap : Map;
220
- ge = new cr();
221
- }
222
- function We(t, s) {
223
- if (!t || Ee)
224
- return "";
225
- {
226
- var d = ge.get(t);
227
- if (d !== void 0)
228
- return d;
229
- }
230
- var p;
231
- Ee = !0;
232
- var h = Error.prepareStackTrace;
233
- Error.prepareStackTrace = void 0;
234
- var F;
235
- F = de.current, de.current = null, dr();
236
- try {
237
- if (s) {
238
- var m = function() {
239
- throw Error();
240
- };
241
- if (Object.defineProperty(m.prototype, "props", {
242
- set: function() {
243
- throw Error();
244
- }
245
- }), typeof Reflect == "object" && Reflect.construct) {
246
- try {
247
- Reflect.construct(m, []);
248
- } catch (j) {
249
- p = j;
250
- }
251
- Reflect.construct(t, [], m);
252
- } else {
253
- try {
254
- m.call();
255
- } catch (j) {
256
- p = j;
257
- }
258
- t.call(m.prototype);
259
- }
260
- } else {
261
- try {
262
- throw Error();
263
- } catch (j) {
264
- p = j;
265
- }
266
- t();
267
- }
268
- } catch (j) {
269
- if (j && p && typeof j.stack == "string") {
270
- for (var b = j.stack.split(`
271
- `), L = p.stack.split(`
272
- `), A = b.length - 1, W = L.length - 1; A >= 1 && W >= 0 && b[A] !== L[W]; )
273
- W--;
274
- for (; A >= 1 && W >= 0; A--, W--)
275
- if (b[A] !== L[W]) {
276
- if (A !== 1 || W !== 1)
277
- do
278
- if (A--, W--, W < 0 || b[A] !== L[W]) {
279
- var H = `
280
- ` + b[A].replace(" at new ", " at ");
281
- return t.displayName && H.includes("<anonymous>") && (H = H.replace("<anonymous>", t.displayName)), typeof t == "function" && ge.set(t, H), H;
282
- }
283
- while (A >= 1 && W >= 0);
284
- break;
285
- }
286
- }
287
- } finally {
288
- Ee = !1, de.current = F, jr(), Error.prepareStackTrace = h;
289
- }
290
- var me = t ? t.displayName || t.name : "", K = me ? ae(me) : "";
291
- return typeof t == "function" && ge.set(t, K), K;
292
- }
293
- function Lr(t, s, d) {
294
- return We(t, !1);
295
- }
296
- function Gr(t) {
297
- var s = t.prototype;
298
- return !!(s && s.isReactComponent);
299
- }
300
- function Fe(t, s, d) {
301
- if (t == null)
302
- return "";
303
- if (typeof t == "function")
304
- return We(t, Gr(t));
305
- if (typeof t == "string")
306
- return ae(t);
307
- switch (t) {
308
- case z:
309
- return ae("Suspense");
310
- case w:
311
- return ae("SuspenseList");
312
- }
313
- if (typeof t == "object")
314
- switch (t.$$typeof) {
315
- case g:
316
- return Lr(t.render);
317
- case S:
318
- return Fe(t.type, s, d);
319
- case D: {
320
- var p = t, h = p._payload, F = p._init;
321
- try {
322
- return Fe(F(h), s, d);
323
- } catch {
324
- }
325
- }
326
- }
327
- return "";
328
- }
329
- var Se = Object.prototype.hasOwnProperty, ur = {}, fr = N.ReactDebugCurrentFrame;
330
- function Be(t) {
331
- if (t) {
332
- var s = t._owner, d = Fe(t.type, t._source, s ? s.type : null);
333
- fr.setExtraStackFrame(d);
334
- } else
335
- fr.setExtraStackFrame(null);
336
- }
337
- function Ie(t, s, d, p, h) {
338
- {
339
- var F = Function.call.bind(Se);
340
- for (var m in t)
341
- if (F(t, m)) {
342
- var b = void 0;
343
- try {
344
- if (typeof t[m] != "function") {
345
- var L = Error((p || "React class") + ": " + d + " type `" + m + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[m] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
346
- throw L.name = "Invariant Violation", L;
347
- }
348
- b = t[m](s, m, p, d, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
349
- } catch (A) {
350
- b = A;
351
- }
352
- b && !(b instanceof Error) && (Be(h), P("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", p || "React class", d, m, typeof b), Be(null)), b instanceof Error && !(b.message in ur) && (ur[b.message] = !0, Be(h), P("Failed %s type: %s", d, b.message), Be(null));
353
- }
354
- }
355
- }
356
- var je = Array.isArray;
357
- function he(t) {
358
- return je(t);
359
- }
360
- function ee(t) {
361
- {
362
- var s = typeof Symbol == "function" && Symbol.toStringTag, d = s && t[Symbol.toStringTag] || t.constructor.name || "Object";
363
- return d;
364
- }
365
- }
366
- function pr(t) {
367
- try {
368
- return Le(t), !1;
369
- } catch {
370
- return !0;
371
- }
372
- }
373
- function Le(t) {
374
- return "" + t;
375
- }
376
- function gr(t) {
377
- if (pr(t))
378
- return P("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ee(t)), Le(t);
379
- }
380
- var xe = N.ReactCurrentOwner, ze = {
381
- key: !0,
382
- ref: !0,
383
- __self: !0,
384
- __source: !0
385
- }, Ge, Ye, Pe;
386
- Pe = {};
387
- function hr(t) {
388
- if (Se.call(t, "ref")) {
389
- var s = Object.getOwnPropertyDescriptor(t, "ref").get;
390
- if (s && s.isReactWarning)
391
- return !1;
392
- }
393
- return t.ref !== void 0;
394
- }
395
- function br(t) {
396
- if (Se.call(t, "key")) {
397
- var s = Object.getOwnPropertyDescriptor(t, "key").get;
398
- if (s && s.isReactWarning)
399
- return !1;
400
- }
401
- return t.key !== void 0;
402
- }
403
- function Yr(t, s) {
404
- if (typeof t.ref == "string" && xe.current && s && xe.current.stateNode !== s) {
405
- var d = q(xe.current.type);
406
- Pe[d] || (P('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', q(xe.current.type), t.ref), Pe[d] = !0);
407
- }
408
- }
409
- function Hr(t, s) {
410
- {
411
- var d = function() {
412
- Ge || (Ge = !0, P("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", s));
413
- };
414
- d.isReactWarning = !0, Object.defineProperty(t, "key", {
415
- get: d,
416
- configurable: !0
417
- });
418
- }
419
- }
420
- function ce(t, s) {
421
- {
422
- var d = function() {
423
- Ye || (Ye = !0, P("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", s));
424
- };
425
- d.isReactWarning = !0, Object.defineProperty(t, "ref", {
426
- get: d,
427
- configurable: !0
428
- });
429
- }
430
- }
431
- var $e = function(t, s, d, p, h, F, m) {
432
- var b = {
433
- // This tag allows us to uniquely identify this as a React Element
434
- $$typeof: a,
435
- // Built-in properties that belong on the element
436
- type: t,
437
- key: s,
438
- ref: d,
439
- props: m,
440
- // Record the component responsible for creating this element.
441
- _owner: F
442
- };
443
- return b._store = {}, Object.defineProperty(b._store, "validated", {
444
- configurable: !1,
445
- enumerable: !1,
446
- writable: !0,
447
- value: !1
448
- }), Object.defineProperty(b, "_self", {
449
- configurable: !1,
450
- enumerable: !1,
451
- writable: !1,
452
- value: p
453
- }), Object.defineProperty(b, "_source", {
454
- configurable: !1,
455
- enumerable: !1,
456
- writable: !1,
457
- value: h
458
- }), Object.freeze && (Object.freeze(b.props), Object.freeze(b)), b;
459
- };
460
- function Xr(t, s, d, p, h) {
461
- {
462
- var F, m = {}, b = null, L = null;
463
- d !== void 0 && (gr(d), b = "" + d), br(s) && (gr(s.key), b = "" + s.key), hr(s) && (L = s.ref, Yr(s, h));
464
- for (F in s)
465
- Se.call(s, F) && !ze.hasOwnProperty(F) && (m[F] = s[F]);
466
- if (t && t.defaultProps) {
467
- var A = t.defaultProps;
468
- for (F in A)
469
- m[F] === void 0 && (m[F] = A[F]);
470
- }
471
- if (b || L) {
472
- var W = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
473
- b && Hr(m, W), L && ce(m, W);
474
- }
475
- return $e(t, b, L, h, p, xe.current, m);
476
- }
477
- }
478
- var Me = N.ReactCurrentOwner, mr = N.ReactDebugCurrentFrame;
479
- function ue(t) {
480
- if (t) {
481
- var s = t._owner, d = Fe(t.type, t._source, s ? s.type : null);
482
- mr.setExtraStackFrame(d);
483
- } else
484
- mr.setExtraStackFrame(null);
485
- }
486
- var fe;
487
- fe = !1;
488
- function He(t) {
489
- return typeof t == "object" && t !== null && t.$$typeof === a;
490
- }
491
- function ie() {
492
- {
493
- if (Me.current) {
494
- var t = q(Me.current.type);
495
- if (t)
496
- return `
497
-
498
- Check the render method of \`` + t + "`.";
499
- }
500
- return "";
501
- }
502
- }
503
- function Vr(t) {
504
- {
505
- if (t !== void 0) {
506
- var s = t.fileName.replace(/^.*[\\\/]/, ""), d = t.lineNumber;
507
- return `
508
-
509
- Check your code at ` + s + ":" + d + ".";
510
- }
511
- return "";
512
- }
513
- }
514
- var yr = {};
515
- function Nr(t) {
516
- {
517
- var s = ie();
518
- if (!s) {
519
- var d = typeof t == "string" ? t : t.displayName || t.name;
520
- d && (s = `
521
-
522
- Check the top-level render call using <` + d + ">.");
523
- }
524
- return s;
525
- }
526
- }
527
- function vr(t, s) {
528
- {
529
- if (!t._store || t._store.validated || t.key != null)
530
- return;
531
- t._store.validated = !0;
532
- var d = Nr(s);
533
- if (yr[d])
534
- return;
535
- yr[d] = !0;
536
- var p = "";
537
- t && t._owner && t._owner !== Me.current && (p = " It was passed a child from " + q(t._owner.type) + "."), ue(t), P('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', d, p), ue(null);
538
- }
539
- }
540
- function Sr(t, s) {
541
- {
542
- if (typeof t != "object")
543
- return;
544
- if (he(t))
545
- for (var d = 0; d < t.length; d++) {
546
- var p = t[d];
547
- He(p) && vr(p, s);
548
- }
549
- else if (He(t))
550
- t._store && (t._store.validated = !0);
551
- else if (t) {
552
- var h = ne(t);
553
- if (typeof h == "function" && h !== t.entries)
554
- for (var F = h.call(t), m; !(m = F.next()).done; )
555
- He(m.value) && vr(m.value, s);
556
- }
557
- }
558
- }
559
- function re(t) {
560
- {
561
- var s = t.type;
562
- if (s == null || typeof s == "string")
563
- return;
564
- var d;
565
- if (typeof s == "function")
566
- d = s.propTypes;
567
- else if (typeof s == "object" && (s.$$typeof === g || // Note: Memo only checks outer props here.
568
- // Inner props are checked in the reconciler.
569
- s.$$typeof === S))
570
- d = s.propTypes;
571
- else
572
- return;
573
- if (d) {
574
- var p = q(s);
575
- Ie(d, t.props, "prop", p, t);
576
- } else if (s.PropTypes !== void 0 && !fe) {
577
- fe = !0;
578
- var h = q(s);
579
- P("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", h || "Unknown");
580
- }
581
- typeof s.getDefaultProps == "function" && !s.getDefaultProps.isReactClassApproved && P("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
582
- }
583
- }
584
- function Ur(t) {
585
- {
586
- for (var s = Object.keys(t.props), d = 0; d < s.length; d++) {
587
- var p = s[d];
588
- if (p !== "children" && p !== "key") {
589
- ue(t), P("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", p), ue(null);
590
- break;
591
- }
592
- }
593
- t.ref !== null && (ue(t), P("Invalid attribute `ref` supplied to `React.Fragment`."), ue(null));
594
- }
595
- }
596
- var xr = {};
597
- function kr(t, s, d, p, h, F) {
598
- {
599
- var m = Ar(t);
600
- if (!m) {
601
- var b = "";
602
- (t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (b += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
603
- var L = Vr(h);
604
- L ? b += L : b += ie();
605
- var A;
606
- t === null ? A = "null" : he(t) ? A = "array" : t !== void 0 && t.$$typeof === a ? (A = "<" + (q(t.type) || "Unknown") + " />", b = " Did you accidentally export a JSX literal instead of a component?") : A = typeof t, P("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", A, b);
607
- }
608
- var W = Xr(t, s, d, h, F);
609
- if (W == null)
610
- return W;
611
- if (m) {
612
- var H = s.children;
613
- if (H !== void 0)
614
- if (p)
615
- if (he(H)) {
616
- for (var me = 0; me < H.length; me++)
617
- Sr(H[me], t);
618
- Object.freeze && Object.freeze(H);
619
- } else
620
- P("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
621
- else
622
- Sr(H, t);
623
- }
624
- if (Se.call(s, "key")) {
625
- var K = q(t), j = Object.keys(s).filter(function(wr) {
626
- return wr !== "key";
627
- }), Xe = j.length > 0 ? "{key: someKey, " + j.join(": ..., ") + ": ...}" : "{key: someKey}";
628
- if (!xr[K + Xe]) {
629
- var Oe = j.length > 0 ? "{" + j.join(": ..., ") + ": ...}" : "{}";
630
- P(`A props object containing a "key" prop is being spread into JSX:
631
- let props = %s;
632
- <%s {...props} />
633
- React keys must be passed directly to JSX without using spread:
634
- let props = %s;
635
- <%s key={someKey} {...props} />`, Xe, K, Oe, K), xr[K + Xe] = !0;
636
- }
637
- }
638
- return t === u ? Ur(W) : re(W), W;
639
- }
640
- }
641
- function qr(t, s, d) {
642
- return kr(t, s, d, !0);
643
- }
644
- function Kr(t, s, d) {
645
- return kr(t, s, d, !1);
646
- }
647
- var be = Kr, Jr = qr;
648
- qe.Fragment = u, qe.jsx = be, qe.jsxs = Jr;
649
- }()), qe;
650
- }
651
- process.env.NODE_ENV === "production" ? lt.exports = Ho() : lt.exports = Xo();
652
- var X = lt.exports;
653
- const Rt = ["redCS", "greenCS"], Vo = te({
654
- // The styles all button have in common
655
- baseStyle: {
656
- fontFamily: "body",
657
- fontWeight: "medium",
658
- lineHeight: "body",
659
- letterSpacing: "normal",
660
- borderRadius: "50px",
661
- // <-- border radius is same for all variants and sizes
662
- border: "none",
663
- _disabled: {
664
- _hover: { cursor: "not-allowed" },
665
- // This will keep the same height when the button has an icon while disabled
666
- span: {
667
- display: "inline-flex"
668
- }
669
- },
670
- _focusVisible: {
671
- outlineColor: "moonlight.light",
672
- outlineWidth: "2px",
673
- outlineStyle: "solid",
674
- outlineOffset: "1px"
675
- }
676
- },
677
- // Two sizes: sm and md
678
- sizes: {
679
- sm: {
680
- fontSize: ["md", "lg"],
681
- px: [3, 4],
682
- // <-- px is short for paddingLeft and paddingRight
683
- py: [1, 2],
684
- // <-- py is short for paddingTop and paddingBottom
685
- // keep padding uniform for icon buttons that share this config
686
- "&:has(> svg:only-child)": {
687
- px: 3,
688
- py: 3,
689
- svg: {
690
- fontSize: "1rem"
691
- }
692
- },
693
- svg: {
694
- fontSize: "1.5rem"
695
- }
696
- },
697
- md: {
698
- fontSize: ["lg", "xl"],
699
- px: [4, 6],
700
- // <-- px is short for paddingLeft and paddingRight
701
- py: [3, 4],
702
- // <-- py is short for paddingTop and paddingBottom
703
- // keep padding uniform for icon buttons that share this config
704
- "&:has(> svg:only-child)": {
705
- px: [3, 4],
706
- py: [3, 4]
707
- },
708
- svg: {
709
- fontSize: ["1.25rem", "1.5rem"]
710
- }
711
- },
712
- wide: {
713
- fontSize: "xl",
714
- px: 12,
715
- // <-- these values are tokens from the design system
716
- py: 4,
717
- // <-- these values are tokens from the design system
718
- width: "100%",
719
- // keep padding uniform for icon buttons that share this config
720
- "&:has(> svg:only-child)": {
721
- px: 4,
722
- py: 4
723
- },
724
- svg: {
725
- fontSize: "1.5rem"
726
- }
727
- }
728
- },
729
- // Two variants: primary and secondary
730
- variants: {
731
- // solid
732
- primary: (e) => {
733
- const { colorScheme: a } = e;
734
- return Rt.includes(a) ? {
735
- bg: `${a}.500`,
736
- color: "tints.white",
737
- ":hover, &.hover": {
738
- bg: `${a}.900`
739
- },
740
- ":active, &.active": {
741
- bg: `${a}.900`
742
- },
743
- ":disabled": {
744
- bg: "tints.lightGrey",
745
- color: "tints.medGrey"
746
- }
747
- } : {
748
- bg: "tints.white",
749
- color: "tints.black",
750
- ":hover, &.hover": {
751
- bg: "greenCS.50"
752
- },
753
- ":active, &.active": {
754
- bg: "greenCS.50"
755
- },
756
- ":disabled": {
757
- bg: "tints.lightGrey",
758
- color: "tints.medGrey"
759
- }
760
- };
761
- },
762
- //outline
763
- secondary: (e) => {
764
- const { colorScheme: a } = e;
765
- return Rt.includes(a) ? {
766
- color: `${a}.500`,
767
- boxShadow: (l) => `inset 0 0 0 2px ${l.colors[a][500]}`,
768
- ":hover, &.hover": {
769
- color: `${a}.900`,
770
- boxShadow: (l) => `inset 0 0 0 2px ${l.colors[a][900]}`
771
- },
772
- ":active, &.active": {
773
- color: `${a}.900`,
774
- boxShadow: (l) => `inset 0 0 0 2px ${l.colors[a][900]}`
775
- },
776
- ":disabled": {
777
- color: "tints.lightGrey",
778
- boxShadow: (l) => `inset 0 0 0 2px ${l.colors.tints.lightGrey}`,
779
- opacity: 0.7
780
- }
781
- } : {
782
- color: "tints.white",
783
- boxShadow: (l) => `inset 0 0 0 2px ${l.colors.tints.white}`,
784
- ":hover, &.hover": {
785
- color: "tints.white",
786
- boxShadow: (l) => `inset 0 0 0 2px ${l.colors.greenCS[50]}`
787
- },
788
- ":active, &.active": {
789
- color: "tints.white",
790
- boxShadow: (l) => `inset 0 0 0 2px ${l.colors.greenCS[50]}`
791
- },
792
- ":disabled": {
793
- color: "tints.lightGrey",
794
- boxShadow: (l) => `inset 0 0 0 2px ${l.colors.tints.lightGrey}`,
795
- opacity: 0.7
796
- }
797
- };
798
- }
799
- // tertiary = text/link button
800
- },
801
- // The default size and variant values
802
- defaultProps: {
803
- size: "md",
804
- variant: "primary",
805
- colorScheme: "greenCS"
806
- }
807
- });
808
- function E(e, a = {}) {
809
- let l = !1;
810
- function u() {
811
- if (!l) {
812
- l = !0;
813
- return;
814
- }
815
- throw new Error(
816
- "[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?"
817
- );
818
- }
819
- function f(...w) {
820
- u();
821
- for (const S of w)
822
- a[S] = g(S);
823
- return E(e, a);
824
- }
825
- function y(...w) {
826
- for (const S of w)
827
- S in a || (a[S] = g(S));
828
- return E(e, a);
829
- }
830
- function C() {
831
- return Object.fromEntries(
832
- Object.entries(a).map(([S, D]) => [S, D.selector])
833
- );
834
- }
835
- function k() {
836
- return Object.fromEntries(
837
- Object.entries(a).map(([S, D]) => [S, D.className])
838
- );
839
- }
840
- function g(w) {
841
- const Y = `chakra-${(["container", "root"].includes(w ?? "") ? [e] : [e, w]).filter(Boolean).join("__")}`;
842
- return {
843
- className: Y,
844
- selector: `.${Y}`,
845
- toString: () => w
846
- };
847
- }
848
- return {
849
- parts: f,
850
- toPart: g,
851
- extend: y,
852
- selectors: C,
853
- classnames: k,
854
- get keys() {
855
- return Object.keys(a);
856
- },
857
- __type: {}
858
- };
859
- }
860
- var No = E("accordion").parts("root", "container", "button", "panel").extend("icon");
861
- E("alert").parts("title", "description", "container").extend("icon", "spinner");
862
- E("avatar").parts("label", "badge", "container").extend("excessLabel", "group");
863
- E("breadcrumb").parts("link", "item", "container").extend("separator");
864
- E("button").parts();
865
- var Uo = E("checkbox").parts("control", "icon", "container").extend("label");
866
- E("progress").parts("track", "filledTrack").extend("label");
867
- var qo = E("drawer").parts("overlay", "dialogContainer", "dialog").extend("header", "closeButton", "body", "footer");
868
- E("editable").parts(
869
- "preview",
870
- "input",
871
- "textarea"
872
- );
873
- var Ko = E("form").parts(
874
- "container",
875
- "requiredIndicator",
876
- "helperText"
877
- ), Jo = E("formError").parts("text", "icon");
878
- E("input").parts(
879
- "addon",
880
- "field",
881
- "element",
882
- "group"
883
- );
884
- E("list").parts("container", "item", "icon");
885
- E("menu").parts("button", "list", "item").extend("groupTitle", "icon", "command", "divider");
886
- var Zo = E("modal").parts("overlay", "dialogContainer", "dialog").extend("header", "closeButton", "body", "footer");
887
- E("numberinput").parts(
888
- "root",
889
- "field",
890
- "stepperGroup",
891
- "stepper"
892
- );
893
- E("pininput").parts("field");
894
- E("popover").parts("content", "header", "body", "footer").extend("popper", "arrow", "closeButton");
895
- var Qo = E("progress").parts(
896
- "label",
897
- "filledTrack",
898
- "track"
899
- );
900
- E("radio").parts(
901
- "container",
902
- "control",
903
- "label"
904
- );
905
- var en = E("select").parts("field", "icon");
906
- E("slider").parts(
907
- "container",
908
- "track",
909
- "thumb",
910
- "filledTrack",
911
- "mark"
912
- );
913
- E("stat").parts(
914
- "container",
915
- "label",
916
- "helpText",
917
- "number",
918
- "icon"
919
- );
920
- E("switch").parts(
921
- "container",
922
- "track",
923
- "thumb"
924
- );
925
- var rn = E("table").parts(
926
- "table",
927
- "thead",
928
- "tbody",
929
- "tr",
930
- "th",
931
- "td",
932
- "tfoot",
933
- "caption"
934
- ), tn = E("tabs").parts(
935
- "root",
936
- "tab",
937
- "tablist",
938
- "tabpanel",
939
- "tabpanels",
940
- "indicator"
941
- ), on = E("tag").parts(
942
- "container",
943
- "label",
944
- "closeButton"
945
- );
946
- E("card").parts(
947
- "container",
948
- "header",
949
- "body",
950
- "footer"
951
- );
952
- const { definePartsStyle: nn, defineMultiStyleConfig: an } = Ae(Uo.keys), sn = an({
953
- baseStyle: nn({
954
- container: {},
955
- control: {
956
- boxSize: 24,
957
- padding: 0.5,
958
- borderRadius: "6px",
959
- borderStyle: "solid",
960
- borderWidth: 1,
961
- borderColor: "tints.uiGrey",
962
- color: "transparent",
963
- fontSize: "sm",
964
- bg: "tints.white",
965
- _focusVisible: {
966
- outlineColor: "moonlight.light",
967
- outlineWidth: "2px",
968
- outlineStyle: "solid",
969
- outlineOffset: "0"
970
- },
971
- _checked: {
972
- borderColor: "viridian.base",
973
- bg: "viridian.base",
974
- color: "tints.white",
975
- _hover: {
976
- borderColor: "viridian.base",
977
- bg: "viridian.base"
978
- },
979
- _disabled: {
980
- borderColor: "viridian.base",
981
- bg: "viridian.base"
982
- }
983
- },
984
- _hover: {
985
- borderColor: "tints.medGrey",
986
- bg: "viridian.wash"
987
- },
988
- _disabled: {
989
- borderColor: "tints.medGrey",
990
- bg: "tints.lightGrey",
991
- cursor: "not-allowed"
992
- },
993
- _invalid: {
994
- borderColor: "utility.warning"
995
- }
996
- },
997
- icon: {
998
- boxSize: "100%"
999
- },
1000
- // define the part you're going to style
1001
- label: {
1002
- fontSize: ["sm", "md"],
1003
- color: "tints.darkGrey"
1004
- }
1005
- }),
1006
- sizes: {
1007
- sm: {
1008
- control: {
1009
- boxSize: 24
1010
- }
1011
- },
1012
- md: {
1013
- control: {
1014
- boxSize: 32
1015
- }
1016
- }
1017
- },
1018
- variants: {},
1019
- defaultProps: {
1020
- size: "sm"
1021
- }
1022
- });
1023
- function Lt(e) {
1024
- const a = typeof e;
1025
- return e != null && (a === "object" || a === "function") && !Array.isArray(e);
1026
- }
1027
- var Br = { exports: {} };
1028
- Br.exports;
1029
- (function(e, a) {
1030
- var l = 200, u = "__lodash_hash_undefined__", f = 800, y = 16, C = 9007199254740991, k = "[object Arguments]", g = "[object Array]", z = "[object AsyncFunction]", w = "[object Boolean]", S = "[object Date]", D = "[object Error]", Y = "[object Function]", V = "[object GeneratorFunction]", oe = "[object Map]", ne = "[object Number]", N = "[object Null]", P = "[object Object]", Ce = "[object Proxy]", Te = "[object RegExp]", $r = "[object Set]", Mr = "[object String]", Or = "[object Undefined]", Dr = "[object WeakMap]", er = "[object ArrayBuffer]", Ar = "[object DataView]", Wr = "[object Float32Array]", rr = "[object Float64Array]", q = "[object Int8Array]", le = "[object Int16Array]", ve = "[object Int32Array]", tr = "[object Uint8Array]", or = "[object Uint8ClampedArray]", nr = "[object Uint16Array]", ar = "[object Uint32Array]", ir = /[\\^$.*+?()[\]{}|]/g, sr = /^\[object .+?Constructor\]$/, lr = /^(?:0|[1-9]\d*)$/, B = {};
1031
- B[Wr] = B[rr] = B[q] = B[le] = B[ve] = B[tr] = B[or] = B[nr] = B[ar] = !0, B[k] = B[g] = B[er] = B[w] = B[Ar] = B[S] = B[D] = B[Y] = B[oe] = B[ne] = B[P] = B[Te] = B[$r] = B[Mr] = B[Dr] = !1;
1032
- var dr = typeof Tr == "object" && Tr && Tr.Object === Object && Tr, jr = typeof self == "object" && self && self.Object === Object && self, de = dr || jr || Function("return this")(), Re = a && !a.nodeType && a, ae = Re && !0 && e && !e.nodeType && e, Ee = ae && ae.exports === Re, ge = Ee && dr.process, cr = function() {
1033
- try {
1034
- var r = ae && ae.require && ae.require("util").types;
1035
- return r || ge && ge.binding && ge.binding("util");
1036
- } catch {
1037
- }
1038
- }(), We = cr && cr.isTypedArray;
1039
- function Lr(r, o, i) {
1040
- switch (i.length) {
1041
- case 0:
1042
- return r.call(o);
1043
- case 1:
1044
- return r.call(o, i[0]);
1045
- case 2:
1046
- return r.call(o, i[0], i[1]);
1047
- case 3:
1048
- return r.call(o, i[0], i[1], i[2]);
1049
- }
1050
- return r.apply(o, i);
1051
- }
1052
- function Gr(r, o) {
1053
- for (var i = -1, c = Array(r); ++i < r; )
1054
- c[i] = o(i);
1055
- return c;
1056
- }
1057
- function Fe(r) {
1058
- return function(o) {
1059
- return r(o);
1060
- };
1061
- }
1062
- function Se(r, o) {
1063
- return r == null ? void 0 : r[o];
1064
- }
1065
- function ur(r, o) {
1066
- return function(i) {
1067
- return r(o(i));
1068
- };
1069
- }
1070
- var fr = Array.prototype, Be = Function.prototype, Ie = Object.prototype, je = de["__core-js_shared__"], he = Be.toString, ee = Ie.hasOwnProperty, pr = function() {
1071
- var r = /[^.]+$/.exec(je && je.keys && je.keys.IE_PROTO || "");
1072
- return r ? "Symbol(src)_1." + r : "";
1073
- }(), Le = Ie.toString, gr = he.call(Object), xe = RegExp(
1074
- "^" + he.call(ee).replace(ir, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
1075
- ), ze = Ee ? de.Buffer : void 0, Ge = de.Symbol, Ye = de.Uint8Array, Pe = ze ? ze.allocUnsafe : void 0, hr = ur(Object.getPrototypeOf, Object), br = Object.create, Yr = Ie.propertyIsEnumerable, Hr = fr.splice, ce = Ge ? Ge.toStringTag : void 0, $e = function() {
1076
- try {
1077
- var r = Zr(Object, "defineProperty");
1078
- return r({}, "", {}), r;
1079
- } catch {
1080
- }
1081
- }(), Xr = ze ? ze.isBuffer : void 0, Me = Math.max, mr = Date.now, ue = Zr(de, "Map"), fe = Zr(Object, "create"), He = /* @__PURE__ */ function() {
1082
- function r() {
1083
- }
1084
- return function(o) {
1085
- if (!ke(o))
1086
- return {};
1087
- if (br)
1088
- return br(o);
1089
- r.prototype = o;
1090
- var i = new r();
1091
- return r.prototype = void 0, i;
1092
- };
1093
- }();
1094
- function ie(r) {
1095
- var o = -1, i = r == null ? 0 : r.length;
1096
- for (this.clear(); ++o < i; ) {
1097
- var c = r[o];
1098
- this.set(c[0], c[1]);
1099
- }
1100
- }
1101
- function Vr() {
1102
- this.__data__ = fe ? fe(null) : {}, this.size = 0;
1103
- }
1104
- function yr(r) {
1105
- var o = this.has(r) && delete this.__data__[r];
1106
- return this.size -= o ? 1 : 0, o;
1107
- }
1108
- function Nr(r) {
1109
- var o = this.__data__;
1110
- if (fe) {
1111
- var i = o[r];
1112
- return i === u ? void 0 : i;
1113
- }
1114
- return ee.call(o, r) ? o[r] : void 0;
1115
- }
1116
- function vr(r) {
1117
- var o = this.__data__;
1118
- return fe ? o[r] !== void 0 : ee.call(o, r);
1119
- }
1120
- function Sr(r, o) {
1121
- var i = this.__data__;
1122
- return this.size += this.has(r) ? 0 : 1, i[r] = fe && o === void 0 ? u : o, this;
1123
- }
1124
- ie.prototype.clear = Vr, ie.prototype.delete = yr, ie.prototype.get = Nr, ie.prototype.has = vr, ie.prototype.set = Sr;
1125
- function re(r) {
1126
- var o = -1, i = r == null ? 0 : r.length;
1127
- for (this.clear(); ++o < i; ) {
1128
- var c = r[o];
1129
- this.set(c[0], c[1]);
1130
- }
1131
- }
1132
- function Ur() {
1133
- this.__data__ = [], this.size = 0;
1134
- }
1135
- function xr(r) {
1136
- var o = this.__data__, i = K(o, r);
1137
- if (i < 0)
1138
- return !1;
1139
- var c = o.length - 1;
1140
- return i == c ? o.pop() : Hr.call(o, i, 1), --this.size, !0;
1141
- }
1142
- function kr(r) {
1143
- var o = this.__data__, i = K(o, r);
1144
- return i < 0 ? void 0 : o[i][1];
1145
- }
1146
- function qr(r) {
1147
- return K(this.__data__, r) > -1;
1148
- }
1149
- function Kr(r, o) {
1150
- var i = this.__data__, c = K(i, r);
1151
- return c < 0 ? (++this.size, i.push([r, o])) : i[c][1] = o, this;
1152
- }
1153
- re.prototype.clear = Ur, re.prototype.delete = xr, re.prototype.get = kr, re.prototype.has = qr, re.prototype.set = Kr;
1154
- function be(r) {
1155
- var o = -1, i = r == null ? 0 : r.length;
1156
- for (this.clear(); ++o < i; ) {
1157
- var c = r[o];
1158
- this.set(c[0], c[1]);
1159
- }
1160
- }
1161
- function Jr() {
1162
- this.size = 0, this.__data__ = {
1163
- hash: new ie(),
1164
- map: new (ue || re)(),
1165
- string: new ie()
1166
- };
1167
- }
1168
- function t(r) {
1169
- var o = _r(this, r).delete(r);
1170
- return this.size -= o ? 1 : 0, o;
1171
- }
1172
- function s(r) {
1173
- return _r(this, r).get(r);
1174
- }
1175
- function d(r) {
1176
- return _r(this, r).has(r);
1177
- }
1178
- function p(r, o) {
1179
- var i = _r(this, r), c = i.size;
1180
- return i.set(r, o), this.size += i.size == c ? 0 : 1, this;
1181
- }
1182
- be.prototype.clear = Jr, be.prototype.delete = t, be.prototype.get = s, be.prototype.has = d, be.prototype.set = p;
1183
- function h(r) {
1184
- var o = this.__data__ = new re(r);
1185
- this.size = o.size;
1186
- }
1187
- function F() {
1188
- this.__data__ = new re(), this.size = 0;
1189
- }
1190
- function m(r) {
1191
- var o = this.__data__, i = o.delete(r);
1192
- return this.size = o.size, i;
1193
- }
1194
- function b(r) {
1195
- return this.__data__.get(r);
1196
- }
1197
- function L(r) {
1198
- return this.__data__.has(r);
1199
- }
1200
- function A(r, o) {
1201
- var i = this.__data__;
1202
- if (i instanceof re) {
1203
- var c = i.__data__;
1204
- if (!ue || c.length < l - 1)
1205
- return c.push([r, o]), this.size = ++i.size, this;
1206
- i = this.__data__ = new be(c);
1207
- }
1208
- return i.set(r, o), this.size = i.size, this;
1209
- }
1210
- h.prototype.clear = F, h.prototype.delete = m, h.prototype.get = b, h.prototype.has = L, h.prototype.set = A;
1211
- function W(r, o) {
1212
- var i = rt(r), c = !i && et(r), x = !i && !c && vt(r), I = !i && !c && !x && xt(r), M = i || c || x || I, v = M ? Gr(r.length, String) : [], O = v.length;
1213
- for (var J in r)
1214
- (o || ee.call(r, J)) && !(M && // Safari 9 has enumerable `arguments.length` in strict mode.
1215
- (J == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
1216
- x && (J == "offset" || J == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
1217
- I && (J == "buffer" || J == "byteLength" || J == "byteOffset") || // Skip index properties.
1218
- mt(J, O))) && v.push(J);
1219
- return v;
1220
- }
1221
- function H(r, o, i) {
1222
- (i !== void 0 && !Cr(r[o], i) || i === void 0 && !(o in r)) && j(r, o, i);
1223
- }
1224
- function me(r, o, i) {
1225
- var c = r[o];
1226
- (!(ee.call(r, o) && Cr(c, i)) || i === void 0 && !(o in r)) && j(r, o, i);
1227
- }
1228
- function K(r, o) {
1229
- for (var i = r.length; i--; )
1230
- if (Cr(r[i][0], o))
1231
- return i;
1232
- return -1;
1233
- }
1234
- function j(r, o, i) {
1235
- o == "__proto__" && $e ? $e(r, o, {
1236
- configurable: !0,
1237
- enumerable: !0,
1238
- value: i,
1239
- writable: !0
1240
- }) : r[o] = i;
1241
- }
1242
- var Xe = co();
1243
- function Oe(r) {
1244
- return r == null ? r === void 0 ? Or : N : ce && ce in Object(r) ? uo(r) : mo(r);
1245
- }
1246
- function wr(r) {
1247
- return Ve(r) && Oe(r) == k;
1248
- }
1249
- function Jt(r) {
1250
- if (!ke(r) || ho(r))
1251
- return !1;
1252
- var o = ot(r) ? xe : sr;
1253
- return o.test(xo(r));
1254
- }
1255
- function Zt(r) {
1256
- return Ve(r) && St(r.length) && !!B[Oe(r)];
1257
- }
1258
- function Qt(r) {
1259
- if (!ke(r))
1260
- return bo(r);
1261
- var o = yt(r), i = [];
1262
- for (var c in r)
1263
- c == "constructor" && (o || !ee.call(r, c)) || i.push(c);
1264
- return i;
1265
- }
1266
- function bt(r, o, i, c, x) {
1267
- r !== o && Xe(o, function(I, M) {
1268
- if (x || (x = new h()), ke(I))
1269
- eo(r, o, M, i, bt, c, x);
1270
- else {
1271
- var v = c ? c(Qr(r, M), I, M + "", r, o, x) : void 0;
1272
- v === void 0 && (v = I), H(r, M, v);
1273
- }
1274
- }, kt);
1275
- }
1276
- function eo(r, o, i, c, x, I, M) {
1277
- var v = Qr(r, i), O = Qr(o, i), J = M.get(O);
1278
- if (J) {
1279
- H(r, i, J);
1280
- return;
1281
- }
1282
- var U = I ? I(v, O, i + "", r, o, M) : void 0, Ne = U === void 0;
1283
- if (Ne) {
1284
- var nt = rt(O), at = !nt && vt(O), _t = !nt && !at && xt(O);
1285
- U = O, nt || at || _t ? rt(v) ? U = v : ko(v) ? U = io(v) : at ? (Ne = !1, U = oo(O, !0)) : _t ? (Ne = !1, U = ao(O, !0)) : U = [] : wo(O) || et(O) ? (U = v, et(v) ? U = _o(v) : (!ke(v) || ot(v)) && (U = fo(O))) : Ne = !1;
1286
- }
1287
- Ne && (M.set(O, U), x(U, O, c, I, M), M.delete(O)), H(r, i, U);
1288
- }
1289
- function ro(r, o) {
1290
- return vo(yo(r, o, wt), r + "");
1291
- }
1292
- var to = $e ? function(r, o) {
1293
- return $e(r, "toString", {
1294
- configurable: !0,
1295
- enumerable: !1,
1296
- value: To(o),
1297
- writable: !0
1298
- });
1299
- } : wt;
1300
- function oo(r, o) {
1301
- if (o)
1302
- return r.slice();
1303
- var i = r.length, c = Pe ? Pe(i) : new r.constructor(i);
1304
- return r.copy(c), c;
1305
- }
1306
- function no(r) {
1307
- var o = new r.constructor(r.byteLength);
1308
- return new Ye(o).set(new Ye(r)), o;
1309
- }
1310
- function ao(r, o) {
1311
- var i = o ? no(r.buffer) : r.buffer;
1312
- return new r.constructor(i, r.byteOffset, r.length);
1313
- }
1314
- function io(r, o) {
1315
- var i = -1, c = r.length;
1316
- for (o || (o = Array(c)); ++i < c; )
1317
- o[i] = r[i];
1318
- return o;
1319
- }
1320
- function so(r, o, i, c) {
1321
- var x = !i;
1322
- i || (i = {});
1323
- for (var I = -1, M = o.length; ++I < M; ) {
1324
- var v = o[I], O = c ? c(i[v], r[v], v, i, r) : void 0;
1325
- O === void 0 && (O = r[v]), x ? j(i, v, O) : me(i, v, O);
1326
- }
1327
- return i;
1328
- }
1329
- function lo(r) {
1330
- return ro(function(o, i) {
1331
- var c = -1, x = i.length, I = x > 1 ? i[x - 1] : void 0, M = x > 2 ? i[2] : void 0;
1332
- for (I = r.length > 3 && typeof I == "function" ? (x--, I) : void 0, M && po(i[0], i[1], M) && (I = x < 3 ? void 0 : I, x = 1), o = Object(o); ++c < x; ) {
1333
- var v = i[c];
1334
- v && r(o, v, c, I);
1335
- }
1336
- return o;
1337
- });
1338
- }
1339
- function co(r) {
1340
- return function(o, i, c) {
1341
- for (var x = -1, I = Object(o), M = c(o), v = M.length; v--; ) {
1342
- var O = M[r ? v : ++x];
1343
- if (i(I[O], O, I) === !1)
1344
- break;
1345
- }
1346
- return o;
1347
- };
1348
- }
1349
- function _r(r, o) {
1350
- var i = r.__data__;
1351
- return go(o) ? i[typeof o == "string" ? "string" : "hash"] : i.map;
1352
- }
1353
- function Zr(r, o) {
1354
- var i = Se(r, o);
1355
- return Jt(i) ? i : void 0;
1356
- }
1357
- function uo(r) {
1358
- var o = ee.call(r, ce), i = r[ce];
1359
- try {
1360
- r[ce] = void 0;
1361
- var c = !0;
1362
- } catch {
1363
- }
1364
- var x = Le.call(r);
1365
- return c && (o ? r[ce] = i : delete r[ce]), x;
1366
- }
1367
- function fo(r) {
1368
- return typeof r.constructor == "function" && !yt(r) ? He(hr(r)) : {};
1369
- }
1370
- function mt(r, o) {
1371
- var i = typeof r;
1372
- return o = o ?? C, !!o && (i == "number" || i != "symbol" && lr.test(r)) && r > -1 && r % 1 == 0 && r < o;
1373
- }
1374
- function po(r, o, i) {
1375
- if (!ke(i))
1376
- return !1;
1377
- var c = typeof o;
1378
- return (c == "number" ? tt(i) && mt(o, i.length) : c == "string" && o in i) ? Cr(i[o], r) : !1;
1379
- }
1380
- function go(r) {
1381
- var o = typeof r;
1382
- return o == "string" || o == "number" || o == "symbol" || o == "boolean" ? r !== "__proto__" : r === null;
1383
- }
1384
- function ho(r) {
1385
- return !!pr && pr in r;
1386
- }
1387
- function yt(r) {
1388
- var o = r && r.constructor, i = typeof o == "function" && o.prototype || Ie;
1389
- return r === i;
1390
- }
1391
- function bo(r) {
1392
- var o = [];
1393
- if (r != null)
1394
- for (var i in Object(r))
1395
- o.push(i);
1396
- return o;
1397
- }
1398
- function mo(r) {
1399
- return Le.call(r);
1400
- }
1401
- function yo(r, o, i) {
1402
- return o = Me(o === void 0 ? r.length - 1 : o, 0), function() {
1403
- for (var c = arguments, x = -1, I = Me(c.length - o, 0), M = Array(I); ++x < I; )
1404
- M[x] = c[o + x];
1405
- x = -1;
1406
- for (var v = Array(o + 1); ++x < o; )
1407
- v[x] = c[x];
1408
- return v[o] = i(M), Lr(r, this, v);
1409
- };
1410
- }
1411
- function Qr(r, o) {
1412
- if (!(o === "constructor" && typeof r[o] == "function") && o != "__proto__")
1413
- return r[o];
1414
- }
1415
- var vo = So(to);
1416
- function So(r) {
1417
- var o = 0, i = 0;
1418
- return function() {
1419
- var c = mr(), x = y - (c - i);
1420
- if (i = c, x > 0) {
1421
- if (++o >= f)
1422
- return arguments[0];
1423
- } else
1424
- o = 0;
1425
- return r.apply(void 0, arguments);
1426
- };
1427
- }
1428
- function xo(r) {
1429
- if (r != null) {
1430
- try {
1431
- return he.call(r);
1432
- } catch {
1433
- }
1434
- try {
1435
- return r + "";
1436
- } catch {
1437
- }
1438
- }
1439
- return "";
1440
- }
1441
- function Cr(r, o) {
1442
- return r === o || r !== r && o !== o;
1443
- }
1444
- var et = wr(/* @__PURE__ */ function() {
1445
- return arguments;
1446
- }()) ? wr : function(r) {
1447
- return Ve(r) && ee.call(r, "callee") && !Yr.call(r, "callee");
1448
- }, rt = Array.isArray;
1449
- function tt(r) {
1450
- return r != null && St(r.length) && !ot(r);
1451
- }
1452
- function ko(r) {
1453
- return Ve(r) && tt(r);
1454
- }
1455
- var vt = Xr || Ro;
1456
- function ot(r) {
1457
- if (!ke(r))
1458
- return !1;
1459
- var o = Oe(r);
1460
- return o == Y || o == V || o == z || o == Ce;
1461
- }
1462
- function St(r) {
1463
- return typeof r == "number" && r > -1 && r % 1 == 0 && r <= C;
1464
- }
1465
- function ke(r) {
1466
- var o = typeof r;
1467
- return r != null && (o == "object" || o == "function");
1468
- }
1469
- function Ve(r) {
1470
- return r != null && typeof r == "object";
1471
- }
1472
- function wo(r) {
1473
- if (!Ve(r) || Oe(r) != P)
1474
- return !1;
1475
- var o = hr(r);
1476
- if (o === null)
1477
- return !0;
1478
- var i = ee.call(o, "constructor") && o.constructor;
1479
- return typeof i == "function" && i instanceof i && he.call(i) == gr;
1480
- }
1481
- var xt = We ? Fe(We) : Zt;
1482
- function _o(r) {
1483
- return so(r, kt(r));
1484
- }
1485
- function kt(r) {
1486
- return tt(r) ? W(r, !0) : Qt(r);
1487
- }
1488
- var Co = lo(function(r, o, i, c) {
1489
- bt(r, o, i, c);
1490
- });
1491
- function To(r) {
1492
- return function() {
1493
- return r;
1494
- };
1495
- }
1496
- function wt(r) {
1497
- return r;
1498
- }
1499
- function Ro() {
1500
- return !1;
1501
- }
1502
- e.exports = Co;
1503
- })(Br, Br.exports);
1504
- var ln = Br.exports;
1505
- const dn = /* @__PURE__ */ Yo(ln);
1506
- var cn = (e) => /!(important)?$/.test(e), Et = (e) => typeof e == "string" ? e.replace(/!(important)?$/, "").trim() : e, un = (e, a) => (l) => {
1507
- const u = String(a), f = cn(u), y = Et(u), C = e ? `${e}.${y}` : y;
1508
- let k = Lt(l.__cssMap) && C in l.__cssMap ? l.__cssMap[C].varRef : a;
1509
- return k = Et(k), f ? `${k} !important` : k;
1510
- };
1511
- function ht(e) {
1512
- const { scale: a, transform: l, compose: u } = e;
1513
- return (y, C) => {
1514
- var k;
1515
- const g = un(a, y)(C);
1516
- let z = (k = l == null ? void 0 : l(g, C)) != null ? k : g;
1517
- return u && (z = u(z, C)), z;
1518
- };
1519
- }
1520
- var Rr = (...e) => (a) => e.reduce((l, u) => u(l), a);
1521
- function Z(e, a) {
1522
- return (l) => {
1523
- const u = { property: l, scale: e };
1524
- return u.transform = ht({
1525
- scale: e,
1526
- transform: a
1527
- }), u;
1528
- };
1529
- }
1530
- var fn = ({ rtl: e, ltr: a }) => (l) => l.direction === "rtl" ? e : a;
1531
- function pn(e) {
1532
- const { property: a, scale: l, transform: u } = e;
1533
- return {
1534
- scale: l,
1535
- property: fn(a),
1536
- transform: l ? ht({
1537
- scale: l,
1538
- compose: u
1539
- }) : u
1540
- };
1541
- }
1542
- var Gt = [
1543
- "rotate(var(--chakra-rotate, 0))",
1544
- "scaleX(var(--chakra-scale-x, 1))",
1545
- "scaleY(var(--chakra-scale-y, 1))",
1546
- "skewX(var(--chakra-skew-x, 0))",
1547
- "skewY(var(--chakra-skew-y, 0))"
1548
- ];
1549
- function gn() {
1550
- return [
1551
- "translateX(var(--chakra-translate-x, 0))",
1552
- "translateY(var(--chakra-translate-y, 0))",
1553
- ...Gt
1554
- ].join(" ");
1555
- }
1556
- function hn() {
1557
- return [
1558
- "translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",
1559
- ...Gt
1560
- ].join(" ");
1561
- }
1562
- var bn = {
1563
- "--chakra-blur": "var(--chakra-empty,/*!*/ /*!*/)",
1564
- "--chakra-brightness": "var(--chakra-empty,/*!*/ /*!*/)",
1565
- "--chakra-contrast": "var(--chakra-empty,/*!*/ /*!*/)",
1566
- "--chakra-grayscale": "var(--chakra-empty,/*!*/ /*!*/)",
1567
- "--chakra-hue-rotate": "var(--chakra-empty,/*!*/ /*!*/)",
1568
- "--chakra-invert": "var(--chakra-empty,/*!*/ /*!*/)",
1569
- "--chakra-saturate": "var(--chakra-empty,/*!*/ /*!*/)",
1570
- "--chakra-sepia": "var(--chakra-empty,/*!*/ /*!*/)",
1571
- "--chakra-drop-shadow": "var(--chakra-empty,/*!*/ /*!*/)",
1572
- filter: [
1573
- "var(--chakra-blur)",
1574
- "var(--chakra-brightness)",
1575
- "var(--chakra-contrast)",
1576
- "var(--chakra-grayscale)",
1577
- "var(--chakra-hue-rotate)",
1578
- "var(--chakra-invert)",
1579
- "var(--chakra-saturate)",
1580
- "var(--chakra-sepia)",
1581
- "var(--chakra-drop-shadow)"
1582
- ].join(" ")
1583
- }, mn = {
1584
- backdropFilter: [
1585
- "var(--chakra-backdrop-blur)",
1586
- "var(--chakra-backdrop-brightness)",
1587
- "var(--chakra-backdrop-contrast)",
1588
- "var(--chakra-backdrop-grayscale)",
1589
- "var(--chakra-backdrop-hue-rotate)",
1590
- "var(--chakra-backdrop-invert)",
1591
- "var(--chakra-backdrop-opacity)",
1592
- "var(--chakra-backdrop-saturate)",
1593
- "var(--chakra-backdrop-sepia)"
1594
- ].join(" "),
1595
- "--chakra-backdrop-blur": "var(--chakra-empty,/*!*/ /*!*/)",
1596
- "--chakra-backdrop-brightness": "var(--chakra-empty,/*!*/ /*!*/)",
1597
- "--chakra-backdrop-contrast": "var(--chakra-empty,/*!*/ /*!*/)",
1598
- "--chakra-backdrop-grayscale": "var(--chakra-empty,/*!*/ /*!*/)",
1599
- "--chakra-backdrop-hue-rotate": "var(--chakra-empty,/*!*/ /*!*/)",
1600
- "--chakra-backdrop-invert": "var(--chakra-empty,/*!*/ /*!*/)",
1601
- "--chakra-backdrop-opacity": "var(--chakra-empty,/*!*/ /*!*/)",
1602
- "--chakra-backdrop-saturate": "var(--chakra-empty,/*!*/ /*!*/)",
1603
- "--chakra-backdrop-sepia": "var(--chakra-empty,/*!*/ /*!*/)"
1604
- };
1605
- function yn(e) {
1606
- return {
1607
- "--chakra-ring-offset-shadow": "var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)",
1608
- "--chakra-ring-shadow": "var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)",
1609
- "--chakra-ring-width": e,
1610
- boxShadow: [
1611
- "var(--chakra-ring-offset-shadow)",
1612
- "var(--chakra-ring-shadow)",
1613
- "var(--chakra-shadow, 0 0 #0000)"
1614
- ].join(", ")
1615
- };
1616
- }
1617
- var vn = {
1618
- "row-reverse": {
1619
- space: "--chakra-space-x-reverse",
1620
- divide: "--chakra-divide-x-reverse"
1621
- },
1622
- "column-reverse": {
1623
- space: "--chakra-space-y-reverse",
1624
- divide: "--chakra-divide-y-reverse"
1625
- }
1626
- }, dt = {
1627
- "to-t": "to top",
1628
- "to-tr": "to top right",
1629
- "to-r": "to right",
1630
- "to-br": "to bottom right",
1631
- "to-b": "to bottom",
1632
- "to-bl": "to bottom left",
1633
- "to-l": "to left",
1634
- "to-tl": "to top left"
1635
- }, Sn = new Set(Object.values(dt)), ct = /* @__PURE__ */ new Set([
1636
- "none",
1637
- "-moz-initial",
1638
- "inherit",
1639
- "initial",
1640
- "revert",
1641
- "unset"
1642
- ]), xn = (e) => e.trim();
1643
- function kn(e, a) {
1644
- if (e == null || ct.has(e))
1645
- return e;
1646
- if (!(ut(e) || ct.has(e)))
1647
- return `url('${e}')`;
1648
- const f = /(^[a-z-A-Z]+)\((.*)\)/g.exec(e), y = f == null ? void 0 : f[1], C = f == null ? void 0 : f[2];
1649
- if (!y || !C)
1650
- return e;
1651
- const k = y.includes("-gradient") ? y : `${y}-gradient`, [g, ...z] = C.split(",").map(xn).filter(Boolean);
1652
- if ((z == null ? void 0 : z.length) === 0)
1653
- return e;
1654
- const w = g in dt ? dt[g] : g;
1655
- z.unshift(w);
1656
- const S = z.map((D) => {
1657
- if (Sn.has(D))
1658
- return D;
1659
- const Y = D.indexOf(" "), [V, oe] = Y !== -1 ? [D.substr(0, Y), D.substr(Y + 1)] : [D], ne = ut(oe) ? oe : oe && oe.split(" "), N = `colors.${V}`, P = N in a.__cssMap ? a.__cssMap[N].varRef : V;
1660
- return ne ? [
1661
- P,
1662
- ...Array.isArray(ne) ? ne : [ne]
1663
- ].join(" ") : P;
1664
- });
1665
- return `${k}(${S.join(", ")})`;
1666
- }
1667
- var ut = (e) => typeof e == "string" && e.includes("(") && e.includes(")"), wn = (e, a) => kn(e, a ?? {});
1668
- function _n(e) {
1669
- return /^var\(--.+\)$/.test(e);
1670
- }
1671
- var Cn = (e) => {
1672
- const a = parseFloat(e.toString()), l = e.toString().replace(String(a), "");
1673
- return { unitless: !l, value: a, unit: l };
1674
- }, se = (e) => (a) => `${e}(${a})`, _ = {
1675
- filter(e) {
1676
- return e !== "auto" ? e : bn;
1677
- },
1678
- backdropFilter(e) {
1679
- return e !== "auto" ? e : mn;
1680
- },
1681
- ring(e) {
1682
- return yn(_.px(e));
1683
- },
1684
- bgClip(e) {
1685
- return e === "text" ? { color: "transparent", backgroundClip: "text" } : { backgroundClip: e };
1686
- },
1687
- transform(e) {
1688
- return e === "auto" ? gn() : e === "auto-gpu" ? hn() : e;
1689
- },
1690
- vh(e) {
1691
- return e === "$100vh" ? "var(--chakra-vh)" : e;
1692
- },
1693
- px(e) {
1694
- if (e == null)
1695
- return e;
1696
- const { unitless: a } = Cn(e);
1697
- return a || typeof e == "number" ? `${e}px` : e;
1698
- },
1699
- fraction(e) {
1700
- return typeof e != "number" || e > 1 ? e : `${e * 100}%`;
1701
- },
1702
- float(e, a) {
1703
- const l = { left: "right", right: "left" };
1704
- return a.direction === "rtl" ? l[e] : e;
1705
- },
1706
- degree(e) {
1707
- if (_n(e) || e == null)
1708
- return e;
1709
- const a = typeof e == "string" && !e.endsWith("deg");
1710
- return typeof e == "number" || a ? `${e}deg` : e;
1711
- },
1712
- gradient: wn,
1713
- blur: se("blur"),
1714
- opacity: se("opacity"),
1715
- brightness: se("brightness"),
1716
- contrast: se("contrast"),
1717
- dropShadow: se("drop-shadow"),
1718
- grayscale: se("grayscale"),
1719
- hueRotate: se("hue-rotate"),
1720
- invert: se("invert"),
1721
- saturate: se("saturate"),
1722
- sepia: se("sepia"),
1723
- bgImage(e) {
1724
- return e == null || ut(e) || ct.has(e) ? e : `url(${e})`;
1725
- },
1726
- outline(e) {
1727
- const a = String(e) === "0" || String(e) === "none";
1728
- return e !== null && a ? { outline: "2px solid transparent", outlineOffset: "2px" } : { outline: e };
1729
- },
1730
- flexDirection(e) {
1731
- var a;
1732
- const { space: l, divide: u } = (a = vn[e]) != null ? a : {}, f = { flexDirection: e };
1733
- return l && (f[l] = 1), u && (f[u] = 1), f;
1734
- }
1735
- }, n = {
1736
- borderWidths: Z("borderWidths"),
1737
- borderStyles: Z("borderStyles"),
1738
- colors: Z("colors"),
1739
- borders: Z("borders"),
1740
- gradients: Z("gradients", _.gradient),
1741
- radii: Z("radii", _.px),
1742
- space: Z("space", Rr(_.vh, _.px)),
1743
- spaceT: Z("space", Rr(_.vh, _.px)),
1744
- degreeT(e) {
1745
- return { property: e, transform: _.degree };
1746
- },
1747
- prop(e, a, l) {
1748
- return {
1749
- property: e,
1750
- scale: a,
1751
- ...a && {
1752
- transform: ht({ scale: a, transform: l })
1753
- }
1754
- };
1755
- },
1756
- propT(e, a) {
1757
- return { property: e, transform: a };
1758
- },
1759
- sizes: Z("sizes", Rr(_.vh, _.px)),
1760
- sizesT: Z("sizes", Rr(_.vh, _.fraction)),
1761
- shadows: Z("shadows"),
1762
- logical: pn,
1763
- blur: Z("blur", _.blur)
1764
- }, Fr = {
1765
- background: n.colors("background"),
1766
- backgroundColor: n.colors("backgroundColor"),
1767
- backgroundImage: n.gradients("backgroundImage"),
1768
- backgroundSize: !0,
1769
- backgroundPosition: !0,
1770
- backgroundRepeat: !0,
1771
- backgroundAttachment: !0,
1772
- backgroundClip: { transform: _.bgClip },
1773
- bgSize: n.prop("backgroundSize"),
1774
- bgPosition: n.prop("backgroundPosition"),
1775
- bg: n.colors("background"),
1776
- bgColor: n.colors("backgroundColor"),
1777
- bgPos: n.prop("backgroundPosition"),
1778
- bgRepeat: n.prop("backgroundRepeat"),
1779
- bgAttachment: n.prop("backgroundAttachment"),
1780
- bgGradient: n.gradients("backgroundImage"),
1781
- bgClip: { transform: _.bgClip }
1782
- };
1783
- Object.assign(Fr, {
1784
- bgImage: Fr.backgroundImage,
1785
- bgImg: Fr.backgroundImage
1786
- });
1787
- var T = {
1788
- border: n.borders("border"),
1789
- borderWidth: n.borderWidths("borderWidth"),
1790
- borderStyle: n.borderStyles("borderStyle"),
1791
- borderColor: n.colors("borderColor"),
1792
- borderRadius: n.radii("borderRadius"),
1793
- borderTop: n.borders("borderTop"),
1794
- borderBlockStart: n.borders("borderBlockStart"),
1795
- borderTopLeftRadius: n.radii("borderTopLeftRadius"),
1796
- borderStartStartRadius: n.logical({
1797
- scale: "radii",
1798
- property: {
1799
- ltr: "borderTopLeftRadius",
1800
- rtl: "borderTopRightRadius"
1801
- }
1802
- }),
1803
- borderEndStartRadius: n.logical({
1804
- scale: "radii",
1805
- property: {
1806
- ltr: "borderBottomLeftRadius",
1807
- rtl: "borderBottomRightRadius"
1808
- }
1809
- }),
1810
- borderTopRightRadius: n.radii("borderTopRightRadius"),
1811
- borderStartEndRadius: n.logical({
1812
- scale: "radii",
1813
- property: {
1814
- ltr: "borderTopRightRadius",
1815
- rtl: "borderTopLeftRadius"
1816
- }
1817
- }),
1818
- borderEndEndRadius: n.logical({
1819
- scale: "radii",
1820
- property: {
1821
- ltr: "borderBottomRightRadius",
1822
- rtl: "borderBottomLeftRadius"
1823
- }
1824
- }),
1825
- borderRight: n.borders("borderRight"),
1826
- borderInlineEnd: n.borders("borderInlineEnd"),
1827
- borderBottom: n.borders("borderBottom"),
1828
- borderBlockEnd: n.borders("borderBlockEnd"),
1829
- borderBottomLeftRadius: n.radii("borderBottomLeftRadius"),
1830
- borderBottomRightRadius: n.radii("borderBottomRightRadius"),
1831
- borderLeft: n.borders("borderLeft"),
1832
- borderInlineStart: {
1833
- property: "borderInlineStart",
1834
- scale: "borders"
1835
- },
1836
- borderInlineStartRadius: n.logical({
1837
- scale: "radii",
1838
- property: {
1839
- ltr: ["borderTopLeftRadius", "borderBottomLeftRadius"],
1840
- rtl: ["borderTopRightRadius", "borderBottomRightRadius"]
1841
- }
1842
- }),
1843
- borderInlineEndRadius: n.logical({
1844
- scale: "radii",
1845
- property: {
1846
- ltr: ["borderTopRightRadius", "borderBottomRightRadius"],
1847
- rtl: ["borderTopLeftRadius", "borderBottomLeftRadius"]
1848
- }
1849
- }),
1850
- borderX: n.borders(["borderLeft", "borderRight"]),
1851
- borderInline: n.borders("borderInline"),
1852
- borderY: n.borders(["borderTop", "borderBottom"]),
1853
- borderBlock: n.borders("borderBlock"),
1854
- borderTopWidth: n.borderWidths("borderTopWidth"),
1855
- borderBlockStartWidth: n.borderWidths("borderBlockStartWidth"),
1856
- borderTopColor: n.colors("borderTopColor"),
1857
- borderBlockStartColor: n.colors("borderBlockStartColor"),
1858
- borderTopStyle: n.borderStyles("borderTopStyle"),
1859
- borderBlockStartStyle: n.borderStyles("borderBlockStartStyle"),
1860
- borderBottomWidth: n.borderWidths("borderBottomWidth"),
1861
- borderBlockEndWidth: n.borderWidths("borderBlockEndWidth"),
1862
- borderBottomColor: n.colors("borderBottomColor"),
1863
- borderBlockEndColor: n.colors("borderBlockEndColor"),
1864
- borderBottomStyle: n.borderStyles("borderBottomStyle"),
1865
- borderBlockEndStyle: n.borderStyles("borderBlockEndStyle"),
1866
- borderLeftWidth: n.borderWidths("borderLeftWidth"),
1867
- borderInlineStartWidth: n.borderWidths("borderInlineStartWidth"),
1868
- borderLeftColor: n.colors("borderLeftColor"),
1869
- borderInlineStartColor: n.colors("borderInlineStartColor"),
1870
- borderLeftStyle: n.borderStyles("borderLeftStyle"),
1871
- borderInlineStartStyle: n.borderStyles("borderInlineStartStyle"),
1872
- borderRightWidth: n.borderWidths("borderRightWidth"),
1873
- borderInlineEndWidth: n.borderWidths("borderInlineEndWidth"),
1874
- borderRightColor: n.colors("borderRightColor"),
1875
- borderInlineEndColor: n.colors("borderInlineEndColor"),
1876
- borderRightStyle: n.borderStyles("borderRightStyle"),
1877
- borderInlineEndStyle: n.borderStyles("borderInlineEndStyle"),
1878
- borderTopRadius: n.radii(["borderTopLeftRadius", "borderTopRightRadius"]),
1879
- borderBottomRadius: n.radii([
1880
- "borderBottomLeftRadius",
1881
- "borderBottomRightRadius"
1882
- ]),
1883
- borderLeftRadius: n.radii(["borderTopLeftRadius", "borderBottomLeftRadius"]),
1884
- borderRightRadius: n.radii([
1885
- "borderTopRightRadius",
1886
- "borderBottomRightRadius"
1887
- ])
1888
- };
1889
- Object.assign(T, {
1890
- rounded: T.borderRadius,
1891
- roundedTop: T.borderTopRadius,
1892
- roundedTopLeft: T.borderTopLeftRadius,
1893
- roundedTopRight: T.borderTopRightRadius,
1894
- roundedTopStart: T.borderStartStartRadius,
1895
- roundedTopEnd: T.borderStartEndRadius,
1896
- roundedBottom: T.borderBottomRadius,
1897
- roundedBottomLeft: T.borderBottomLeftRadius,
1898
- roundedBottomRight: T.borderBottomRightRadius,
1899
- roundedBottomStart: T.borderEndStartRadius,
1900
- roundedBottomEnd: T.borderEndEndRadius,
1901
- roundedLeft: T.borderLeftRadius,
1902
- roundedRight: T.borderRightRadius,
1903
- roundedStart: T.borderInlineStartRadius,
1904
- roundedEnd: T.borderInlineEndRadius,
1905
- borderStart: T.borderInlineStart,
1906
- borderEnd: T.borderInlineEnd,
1907
- borderTopStartRadius: T.borderStartStartRadius,
1908
- borderTopEndRadius: T.borderStartEndRadius,
1909
- borderBottomStartRadius: T.borderEndStartRadius,
1910
- borderBottomEndRadius: T.borderEndEndRadius,
1911
- borderStartRadius: T.borderInlineStartRadius,
1912
- borderEndRadius: T.borderInlineEndRadius,
1913
- borderStartWidth: T.borderInlineStartWidth,
1914
- borderEndWidth: T.borderInlineEndWidth,
1915
- borderStartColor: T.borderInlineStartColor,
1916
- borderEndColor: T.borderInlineEndColor,
1917
- borderStartStyle: T.borderInlineStartStyle,
1918
- borderEndStyle: T.borderInlineEndStyle
1919
- });
1920
- var Tn = {
1921
- color: n.colors("color"),
1922
- textColor: n.colors("color"),
1923
- fill: n.colors("fill"),
1924
- stroke: n.colors("stroke")
1925
- }, ft = {
1926
- boxShadow: n.shadows("boxShadow"),
1927
- mixBlendMode: !0,
1928
- blendMode: n.prop("mixBlendMode"),
1929
- backgroundBlendMode: !0,
1930
- bgBlendMode: n.prop("backgroundBlendMode"),
1931
- opacity: !0
1932
- };
1933
- Object.assign(ft, {
1934
- shadow: ft.boxShadow
1935
- });
1936
- var Rn = {
1937
- filter: { transform: _.filter },
1938
- blur: n.blur("--chakra-blur"),
1939
- brightness: n.propT("--chakra-brightness", _.brightness),
1940
- contrast: n.propT("--chakra-contrast", _.contrast),
1941
- hueRotate: n.degreeT("--chakra-hue-rotate"),
1942
- invert: n.propT("--chakra-invert", _.invert),
1943
- saturate: n.propT("--chakra-saturate", _.saturate),
1944
- dropShadow: n.propT("--chakra-drop-shadow", _.dropShadow),
1945
- backdropFilter: { transform: _.backdropFilter },
1946
- backdropBlur: n.blur("--chakra-backdrop-blur"),
1947
- backdropBrightness: n.propT(
1948
- "--chakra-backdrop-brightness",
1949
- _.brightness
1950
- ),
1951
- backdropContrast: n.propT("--chakra-backdrop-contrast", _.contrast),
1952
- backdropHueRotate: n.degreeT("--chakra-backdrop-hue-rotate"),
1953
- backdropInvert: n.propT("--chakra-backdrop-invert", _.invert),
1954
- backdropSaturate: n.propT("--chakra-backdrop-saturate", _.saturate)
1955
- }, Ir = {
1956
- alignItems: !0,
1957
- alignContent: !0,
1958
- justifyItems: !0,
1959
- justifyContent: !0,
1960
- flexWrap: !0,
1961
- flexDirection: { transform: _.flexDirection },
1962
- flex: !0,
1963
- flexFlow: !0,
1964
- flexGrow: !0,
1965
- flexShrink: !0,
1966
- flexBasis: n.sizes("flexBasis"),
1967
- justifySelf: !0,
1968
- alignSelf: !0,
1969
- order: !0,
1970
- placeItems: !0,
1971
- placeContent: !0,
1972
- placeSelf: !0,
1973
- gap: n.space("gap"),
1974
- rowGap: n.space("rowGap"),
1975
- columnGap: n.space("columnGap")
1976
- };
1977
- Object.assign(Ir, {
1978
- flexDir: Ir.flexDirection
1979
- });
1980
- var Yt = {
1981
- gridGap: n.space("gridGap"),
1982
- gridColumnGap: n.space("gridColumnGap"),
1983
- gridRowGap: n.space("gridRowGap"),
1984
- gridColumn: !0,
1985
- gridRow: !0,
1986
- gridAutoFlow: !0,
1987
- gridAutoColumns: !0,
1988
- gridColumnStart: !0,
1989
- gridColumnEnd: !0,
1990
- gridRowStart: !0,
1991
- gridRowEnd: !0,
1992
- gridAutoRows: !0,
1993
- gridTemplate: !0,
1994
- gridTemplateColumns: !0,
1995
- gridTemplateRows: !0,
1996
- gridTemplateAreas: !0,
1997
- gridArea: !0
1998
- }, En = {
1999
- appearance: !0,
2000
- cursor: !0,
2001
- resize: !0,
2002
- userSelect: !0,
2003
- pointerEvents: !0,
2004
- outline: { transform: _.outline },
2005
- outlineOffset: !0,
2006
- outlineColor: n.colors("outlineColor")
2007
- }, Q = {
2008
- width: n.sizesT("width"),
2009
- inlineSize: n.sizesT("inlineSize"),
2010
- height: n.sizes("height"),
2011
- blockSize: n.sizes("blockSize"),
2012
- boxSize: n.sizes(["width", "height"]),
2013
- minWidth: n.sizes("minWidth"),
2014
- minInlineSize: n.sizes("minInlineSize"),
2015
- minHeight: n.sizes("minHeight"),
2016
- minBlockSize: n.sizes("minBlockSize"),
2017
- maxWidth: n.sizes("maxWidth"),
2018
- maxInlineSize: n.sizes("maxInlineSize"),
2019
- maxHeight: n.sizes("maxHeight"),
2020
- maxBlockSize: n.sizes("maxBlockSize"),
2021
- overflow: !0,
2022
- overflowX: !0,
2023
- overflowY: !0,
2024
- overscrollBehavior: !0,
2025
- overscrollBehaviorX: !0,
2026
- overscrollBehaviorY: !0,
2027
- display: !0,
2028
- aspectRatio: !0,
2029
- hideFrom: {
2030
- scale: "breakpoints",
2031
- transform: (e, a) => {
2032
- var l, u, f;
2033
- return { [`@media screen and (min-width: ${(f = (u = (l = a.__breakpoints) == null ? void 0 : l.get(e)) == null ? void 0 : u.minW) != null ? f : e})`]: { display: "none" } };
2034
- }
2035
- },
2036
- hideBelow: {
2037
- scale: "breakpoints",
2038
- transform: (e, a) => {
2039
- var l, u, f;
2040
- return { [`@media screen and (max-width: ${(f = (u = (l = a.__breakpoints) == null ? void 0 : l.get(e)) == null ? void 0 : u._minW) != null ? f : e})`]: { display: "none" } };
2041
- }
2042
- },
2043
- verticalAlign: !0,
2044
- boxSizing: !0,
2045
- boxDecorationBreak: !0,
2046
- float: n.propT("float", _.float),
2047
- objectFit: !0,
2048
- objectPosition: !0,
2049
- visibility: !0,
2050
- isolation: !0
2051
- };
2052
- Object.assign(Q, {
2053
- w: Q.width,
2054
- h: Q.height,
2055
- minW: Q.minWidth,
2056
- maxW: Q.maxWidth,
2057
- minH: Q.minHeight,
2058
- maxH: Q.maxHeight,
2059
- overscroll: Q.overscrollBehavior,
2060
- overscrollX: Q.overscrollBehaviorX,
2061
- overscrollY: Q.overscrollBehaviorY
2062
- });
2063
- var Fn = {
2064
- listStyleType: !0,
2065
- listStylePosition: !0,
2066
- listStylePos: n.prop("listStylePosition"),
2067
- listStyleImage: !0,
2068
- listStyleImg: n.prop("listStyleImage")
2069
- };
2070
- function Bn(e, a, l, u) {
2071
- const f = typeof a == "string" ? a.split(".") : [a];
2072
- for (u = 0; u < f.length && e; u += 1)
2073
- e = e[f[u]];
2074
- return e === void 0 ? l : e;
2075
- }
2076
- var In = (e) => {
2077
- const a = /* @__PURE__ */ new WeakMap();
2078
- return (u, f, y, C) => {
2079
- if (typeof u > "u")
2080
- return e(u, f, y);
2081
- a.has(u) || a.set(u, /* @__PURE__ */ new Map());
2082
- const k = a.get(u);
2083
- if (k.has(f))
2084
- return k.get(f);
2085
- const g = e(u, f, y, C);
2086
- return k.set(f, g), g;
2087
- };
2088
- }, zn = In(Bn), Pn = {
2089
- border: "0px",
2090
- clip: "rect(0, 0, 0, 0)",
2091
- width: "1px",
2092
- height: "1px",
2093
- margin: "-1px",
2094
- padding: "0px",
2095
- overflow: "hidden",
2096
- whiteSpace: "nowrap",
2097
- position: "absolute"
2098
- }, $n = {
2099
- position: "static",
2100
- width: "auto",
2101
- height: "auto",
2102
- clip: "auto",
2103
- padding: "0",
2104
- margin: "0",
2105
- overflow: "visible",
2106
- whiteSpace: "normal"
2107
- }, it = (e, a, l) => {
2108
- const u = {}, f = zn(e, a, {});
2109
- for (const y in f)
2110
- y in l && l[y] != null || (u[y] = f[y]);
2111
- return u;
2112
- }, Mn = {
2113
- srOnly: {
2114
- transform(e) {
2115
- return e === !0 ? Pn : e === "focusable" ? $n : {};
2116
- }
2117
- },
2118
- layerStyle: {
2119
- processResult: !0,
2120
- transform: (e, a, l) => it(a, `layerStyles.${e}`, l)
2121
- },
2122
- textStyle: {
2123
- processResult: !0,
2124
- transform: (e, a, l) => it(a, `textStyles.${e}`, l)
2125
- },
2126
- apply: {
2127
- processResult: !0,
2128
- transform: (e, a, l) => it(a, e, l)
2129
- }
2130
- }, Ze = {
2131
- position: !0,
2132
- pos: n.prop("position"),
2133
- zIndex: n.prop("zIndex", "zIndices"),
2134
- inset: n.spaceT("inset"),
2135
- insetX: n.spaceT(["left", "right"]),
2136
- insetInline: n.spaceT("insetInline"),
2137
- insetY: n.spaceT(["top", "bottom"]),
2138
- insetBlock: n.spaceT("insetBlock"),
2139
- top: n.spaceT("top"),
2140
- insetBlockStart: n.spaceT("insetBlockStart"),
2141
- bottom: n.spaceT("bottom"),
2142
- insetBlockEnd: n.spaceT("insetBlockEnd"),
2143
- left: n.spaceT("left"),
2144
- insetInlineStart: n.logical({
2145
- scale: "space",
2146
- property: { ltr: "left", rtl: "right" }
2147
- }),
2148
- right: n.spaceT("right"),
2149
- insetInlineEnd: n.logical({
2150
- scale: "space",
2151
- property: { ltr: "right", rtl: "left" }
2152
- })
2153
- };
2154
- Object.assign(Ze, {
2155
- insetStart: Ze.insetInlineStart,
2156
- insetEnd: Ze.insetInlineEnd
2157
- });
2158
- var On = {
2159
- ring: { transform: _.ring },
2160
- ringColor: n.colors("--chakra-ring-color"),
2161
- ringOffset: n.prop("--chakra-ring-offset-width"),
2162
- ringOffsetColor: n.colors("--chakra-ring-offset-color"),
2163
- ringInset: n.prop("--chakra-ring-inset")
2164
- }, $ = {
2165
- margin: n.spaceT("margin"),
2166
- marginTop: n.spaceT("marginTop"),
2167
- marginBlockStart: n.spaceT("marginBlockStart"),
2168
- marginRight: n.spaceT("marginRight"),
2169
- marginInlineEnd: n.spaceT("marginInlineEnd"),
2170
- marginBottom: n.spaceT("marginBottom"),
2171
- marginBlockEnd: n.spaceT("marginBlockEnd"),
2172
- marginLeft: n.spaceT("marginLeft"),
2173
- marginInlineStart: n.spaceT("marginInlineStart"),
2174
- marginX: n.spaceT(["marginInlineStart", "marginInlineEnd"]),
2175
- marginInline: n.spaceT("marginInline"),
2176
- marginY: n.spaceT(["marginTop", "marginBottom"]),
2177
- marginBlock: n.spaceT("marginBlock"),
2178
- padding: n.space("padding"),
2179
- paddingTop: n.space("paddingTop"),
2180
- paddingBlockStart: n.space("paddingBlockStart"),
2181
- paddingRight: n.space("paddingRight"),
2182
- paddingBottom: n.space("paddingBottom"),
2183
- paddingBlockEnd: n.space("paddingBlockEnd"),
2184
- paddingLeft: n.space("paddingLeft"),
2185
- paddingInlineStart: n.space("paddingInlineStart"),
2186
- paddingInlineEnd: n.space("paddingInlineEnd"),
2187
- paddingX: n.space(["paddingInlineStart", "paddingInlineEnd"]),
2188
- paddingInline: n.space("paddingInline"),
2189
- paddingY: n.space(["paddingTop", "paddingBottom"]),
2190
- paddingBlock: n.space("paddingBlock")
2191
- };
2192
- Object.assign($, {
2193
- m: $.margin,
2194
- mt: $.marginTop,
2195
- mr: $.marginRight,
2196
- me: $.marginInlineEnd,
2197
- marginEnd: $.marginInlineEnd,
2198
- mb: $.marginBottom,
2199
- ml: $.marginLeft,
2200
- ms: $.marginInlineStart,
2201
- marginStart: $.marginInlineStart,
2202
- mx: $.marginX,
2203
- my: $.marginY,
2204
- p: $.padding,
2205
- pt: $.paddingTop,
2206
- py: $.paddingY,
2207
- px: $.paddingX,
2208
- pb: $.paddingBottom,
2209
- pl: $.paddingLeft,
2210
- ps: $.paddingInlineStart,
2211
- paddingStart: $.paddingInlineStart,
2212
- pr: $.paddingRight,
2213
- pe: $.paddingInlineEnd,
2214
- paddingEnd: $.paddingInlineEnd
2215
- });
2216
- var Dn = {
2217
- textDecorationColor: n.colors("textDecorationColor"),
2218
- textDecoration: !0,
2219
- textDecor: { property: "textDecoration" },
2220
- textDecorationLine: !0,
2221
- textDecorationStyle: !0,
2222
- textDecorationThickness: !0,
2223
- textUnderlineOffset: !0,
2224
- textShadow: n.shadows("textShadow")
2225
- }, An = {
2226
- clipPath: !0,
2227
- transform: n.propT("transform", _.transform),
2228
- transformOrigin: !0,
2229
- translateX: n.spaceT("--chakra-translate-x"),
2230
- translateY: n.spaceT("--chakra-translate-y"),
2231
- skewX: n.degreeT("--chakra-skew-x"),
2232
- skewY: n.degreeT("--chakra-skew-y"),
2233
- scaleX: n.prop("--chakra-scale-x"),
2234
- scaleY: n.prop("--chakra-scale-y"),
2235
- scale: n.prop(["--chakra-scale-x", "--chakra-scale-y"]),
2236
- rotate: n.degreeT("--chakra-rotate")
2237
- }, Wn = {
2238
- transition: !0,
2239
- transitionDelay: !0,
2240
- animation: !0,
2241
- willChange: !0,
2242
- transitionDuration: n.prop("transitionDuration", "transition.duration"),
2243
- transitionProperty: n.prop("transitionProperty", "transition.property"),
2244
- transitionTimingFunction: n.prop(
2245
- "transitionTimingFunction",
2246
- "transition.easing"
2247
- )
2248
- }, jn = {
2249
- fontFamily: n.prop("fontFamily", "fonts"),
2250
- fontSize: n.prop("fontSize", "fontSizes", _.px),
2251
- fontWeight: n.prop("fontWeight", "fontWeights"),
2252
- lineHeight: n.prop("lineHeight", "lineHeights"),
2253
- letterSpacing: n.prop("letterSpacing", "letterSpacings"),
2254
- textAlign: !0,
2255
- fontStyle: !0,
2256
- textIndent: !0,
2257
- wordBreak: !0,
2258
- overflowWrap: !0,
2259
- textOverflow: !0,
2260
- textTransform: !0,
2261
- whiteSpace: !0,
2262
- isTruncated: {
2263
- transform(e) {
2264
- if (e === !0)
2265
- return {
2266
- overflow: "hidden",
2267
- textOverflow: "ellipsis",
2268
- whiteSpace: "nowrap"
2269
- };
2270
- }
2271
- },
2272
- noOfLines: {
2273
- static: {
2274
- overflow: "hidden",
2275
- textOverflow: "ellipsis",
2276
- display: "-webkit-box",
2277
- WebkitBoxOrient: "vertical",
2278
- WebkitLineClamp: "var(--chakra-line-clamp)"
2279
- },
2280
- property: "--chakra-line-clamp"
2281
- }
2282
- }, Ln = {
2283
- scrollBehavior: !0,
2284
- scrollSnapAlign: !0,
2285
- scrollSnapStop: !0,
2286
- scrollSnapType: !0,
2287
- scrollMargin: n.spaceT("scrollMargin"),
2288
- scrollMarginTop: n.spaceT("scrollMarginTop"),
2289
- scrollMarginBottom: n.spaceT("scrollMarginBottom"),
2290
- scrollMarginLeft: n.spaceT("scrollMarginLeft"),
2291
- scrollMarginRight: n.spaceT("scrollMarginRight"),
2292
- scrollMarginX: n.spaceT(["scrollMarginLeft", "scrollMarginRight"]),
2293
- scrollMarginY: n.spaceT(["scrollMarginTop", "scrollMarginBottom"]),
2294
- scrollPadding: n.spaceT("scrollPadding"),
2295
- scrollPaddingTop: n.spaceT("scrollPaddingTop"),
2296
- scrollPaddingBottom: n.spaceT("scrollPaddingBottom"),
2297
- scrollPaddingLeft: n.spaceT("scrollPaddingLeft"),
2298
- scrollPaddingRight: n.spaceT("scrollPaddingRight"),
2299
- scrollPaddingX: n.spaceT(["scrollPaddingLeft", "scrollPaddingRight"]),
2300
- scrollPaddingY: n.spaceT(["scrollPaddingTop", "scrollPaddingBottom"])
2301
- };
2302
- function Ht(e) {
2303
- return Lt(e) && e.reference ? e.reference : String(e);
2304
- }
2305
- var Pr = (e, ...a) => a.map(Ht).join(` ${e} `).replace(/calc/g, ""), Ft = (...e) => `calc(${Pr("+", ...e)})`, Bt = (...e) => `calc(${Pr("-", ...e)})`, pt = (...e) => `calc(${Pr("*", ...e)})`, It = (...e) => `calc(${Pr("/", ...e)})`, zt = (e) => {
2306
- const a = Ht(e);
2307
- return a != null && !Number.isNaN(parseFloat(a)) ? String(a).startsWith("-") ? String(a).slice(1) : `-${a}` : pt(a, -1);
2308
- }, Ke = Object.assign(
2309
- (e) => ({
2310
- add: (...a) => Ke(Ft(e, ...a)),
2311
- subtract: (...a) => Ke(Bt(e, ...a)),
2312
- multiply: (...a) => Ke(pt(e, ...a)),
2313
- divide: (...a) => Ke(It(e, ...a)),
2314
- negate: () => Ke(zt(e)),
2315
- toString: () => e.toString()
2316
- }),
2317
- {
2318
- add: Ft,
2319
- subtract: Bt,
2320
- multiply: pt,
2321
- divide: It,
2322
- negate: zt
2323
- }
2324
- ), G = {
2325
- hover: (e, a) => `${e}:hover ${a}, ${e}[data-hover] ${a}`,
2326
- focus: (e, a) => `${e}:focus ${a}, ${e}[data-focus] ${a}`,
2327
- focusVisible: (e, a) => `${e}:focus-visible ${a}`,
2328
- focusWithin: (e, a) => `${e}:focus-within ${a}`,
2329
- active: (e, a) => `${e}:active ${a}, ${e}[data-active] ${a}`,
2330
- disabled: (e, a) => `${e}:disabled ${a}, ${e}[data-disabled] ${a}`,
2331
- invalid: (e, a) => `${e}:invalid ${a}, ${e}[data-invalid] ${a}`,
2332
- checked: (e, a) => `${e}:checked ${a}, ${e}[data-checked] ${a}`,
2333
- indeterminate: (e, a) => `${e}:indeterminate ${a}, ${e}[aria-checked=mixed] ${a}, ${e}[data-indeterminate] ${a}`,
2334
- readOnly: (e, a) => `${e}:read-only ${a}, ${e}[readonly] ${a}, ${e}[data-read-only] ${a}`,
2335
- expanded: (e, a) => `${e}:read-only ${a}, ${e}[aria-expanded=true] ${a}, ${e}[data-expanded] ${a}`,
2336
- placeholderShown: (e, a) => `${e}:placeholder-shown ${a}`
2337
- }, ye = (e) => Xt((a) => e(a, "&"), "[role=group]", "[data-group]", ".group"), pe = (e) => Xt((a) => e(a, "~ &"), "[data-peer]", ".peer"), Xt = (e, ...a) => a.map(e).join(", "), Vt = {
2338
- _hover: "&:hover, &[data-hover]",
2339
- _active: "&:active, &[data-active]",
2340
- _focus: "&:focus, &[data-focus]",
2341
- _highlighted: "&[data-highlighted]",
2342
- _focusWithin: "&:focus-within",
2343
- _focusVisible: "&:focus-visible, &[data-focus-visible]",
2344
- _disabled: "&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",
2345
- _readOnly: "&[aria-readonly=true], &[readonly], &[data-readonly]",
2346
- _before: "&::before",
2347
- _after: "&::after",
2348
- _empty: "&:empty",
2349
- _expanded: "&[aria-expanded=true], &[data-expanded]",
2350
- _checked: "&[aria-checked=true], &[data-checked]",
2351
- _grabbed: "&[aria-grabbed=true], &[data-grabbed]",
2352
- _pressed: "&[aria-pressed=true], &[data-pressed]",
2353
- _invalid: "&[aria-invalid=true], &[data-invalid]",
2354
- _valid: "&[data-valid], &[data-state=valid]",
2355
- _loading: "&[data-loading], &[aria-busy=true]",
2356
- _selected: "&[aria-selected=true], &[data-selected]",
2357
- _hidden: "&[hidden], &[data-hidden]",
2358
- _autofill: "&:-webkit-autofill",
2359
- _even: "&:nth-of-type(even)",
2360
- _odd: "&:nth-of-type(odd)",
2361
- _first: "&:first-of-type",
2362
- _firstLetter: "&::first-letter",
2363
- _last: "&:last-of-type",
2364
- _notFirst: "&:not(:first-of-type)",
2365
- _notLast: "&:not(:last-of-type)",
2366
- _visited: "&:visited",
2367
- _activeLink: "&[aria-current=page]",
2368
- _activeStep: "&[aria-current=step]",
2369
- _indeterminate: "&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",
2370
- _groupHover: ye(G.hover),
2371
- _peerHover: pe(G.hover),
2372
- _groupFocus: ye(G.focus),
2373
- _peerFocus: pe(G.focus),
2374
- _groupFocusVisible: ye(G.focusVisible),
2375
- _peerFocusVisible: pe(G.focusVisible),
2376
- _groupActive: ye(G.active),
2377
- _peerActive: pe(G.active),
2378
- _groupDisabled: ye(G.disabled),
2379
- _peerDisabled: pe(G.disabled),
2380
- _groupInvalid: ye(G.invalid),
2381
- _peerInvalid: pe(G.invalid),
2382
- _groupChecked: ye(G.checked),
2383
- _peerChecked: pe(G.checked),
2384
- _groupFocusWithin: ye(G.focusWithin),
2385
- _peerFocusWithin: pe(G.focusWithin),
2386
- _peerPlaceholderShown: pe(G.placeholderShown),
2387
- _placeholder: "&::placeholder",
2388
- _placeholderShown: "&:placeholder-shown",
2389
- _fullScreen: "&:fullscreen",
2390
- _selection: "&::selection",
2391
- _rtl: "[dir=rtl] &, &[dir=rtl]",
2392
- _ltr: "[dir=ltr] &, &[dir=ltr]",
2393
- _mediaDark: "@media (prefers-color-scheme: dark)",
2394
- _mediaReduceMotion: "@media (prefers-reduced-motion: reduce)",
2395
- _dark: ".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",
2396
- _light: ".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",
2397
- _horizontal: "&[data-orientation=horizontal]",
2398
- _vertical: "&[data-orientation=vertical]"
2399
- }, Gn = Object.keys(
2400
- Vt
2401
- ), Nt = dn(
2402
- {},
2403
- Fr,
2404
- T,
2405
- Tn,
2406
- Ir,
2407
- Q,
2408
- Rn,
2409
- On,
2410
- En,
2411
- Yt,
2412
- Mn,
2413
- Ze,
2414
- ft,
2415
- $,
2416
- Ln,
2417
- jn,
2418
- Dn,
2419
- An,
2420
- Fn,
2421
- Wn
2422
- );
2423
- Object.assign({}, $, Q, Ir, Yt, Ze);
2424
- [...Object.keys(Nt), ...Gn];
2425
- ({ ...Nt, ...Vt });
2426
- function _e(e) {
2427
- return {
2428
- definePartsStyle(a) {
2429
- return a;
2430
- },
2431
- defineMultiStyleConfig(a) {
2432
- return { parts: e, ...a };
2433
- }
2434
- };
2435
- }
2436
- const { defineMultiStyleConfig: Yn, definePartsStyle: Hn } = _e(Ko.keys), De = ["52px", "56px"], Pt = {
2437
- transform: [
2438
- "translateY(0%) translateX(1px)",
2439
- "translateY(0%) translateX(1px)"
2440
- ],
2441
- fontSize: "xs",
2442
- top: ["8px"],
2443
- color: "viridian.base",
2444
- _invalid: {
2445
- color: "utility.warning"
2446
- }
2447
- }, Xn = Yn({
2448
- baseStyle: Hn({
2449
- container: {
2450
- width: "100%",
2451
- position: "relative",
2452
- display: "flex",
2453
- flexDirection: "column",
2454
- gap: 2
2455
- },
2456
- requiredIndicator: {
2457
- color: "utility.warning"
2458
- },
2459
- helperText: {
2460
- _dark: {},
2461
- color: "tints.darkGrey",
2462
- fontSize: ["sm", "md"]
2463
- }
2464
- }),
2465
- sizes: {},
2466
- variants: {
2467
- floating: {
2468
- container: {
2469
- _focusWithin: {
2470
- // label styles when input is focused (not select fields)
2471
- "*:not(.chakra-select__wrapper) + label": {
2472
- ...Pt
2473
- }
2474
- },
2475
- // label styles when input is not empty or focused
2476
- 'input:not(:placeholder-shown) + label, .chakra-input__group:has(input:not(:placeholder-shown)) + label, .chakra-select__wrapper:not(:has(option[value=""]:checked)) + label, textarea:not(:placeholder-shown) ~ label': {
2477
- ...Pt
2478
- },
2479
- // hide select "placeholder" value text when no option is selected
2480
- '.chakra-select__wrapper:has(option[value=""]:checked) select': {
2481
- color: "transparent !important"
2482
- },
2483
- label: {
2484
- transition: "0.2s ease-in-out",
2485
- transformOrigin: "top left",
2486
- position: "absolute",
2487
- pointerEvents: "none",
2488
- zIndex: 2,
2489
- ml: 4,
2490
- mr: 4,
2491
- top: [4, "16px"],
2492
- fontSize: ["md", "lg"],
2493
- color: "tints.uiGrey",
2494
- fontWeight: "medium"
2495
- },
2496
- // give label left spacing when input has left icon
2497
- ":has(.chakra-input__left-element) label": {
2498
- ml: De
2499
- },
2500
- input: {
2501
- pt: 3,
2502
- h: De,
2503
- // <-- the height is necessary in Chakra to calculate the spacing for left and right icons
2504
- // placeholder is needed to work on Safari
2505
- // hiding placeholder to not clash with floating label
2506
- _placeholder: {
2507
- color: "transparent",
2508
- visibility: "hidden"
2509
- }
2510
- },
2511
- select: {
2512
- pt: 3,
2513
- h: De
2514
- // <-- the height is necessary in Chakra to calculate the spacing for left and right icons
2515
- },
2516
- // override chakra internal spacing calculation for left and right icon inputs
2517
- ":has(.chakra-input__left-element) input, :has(.chakra-input__left-element) select": {
2518
- pl: De
2519
- },
2520
- ".chakra-input__right-element, .chakra-input__left-element": {
2521
- w: De,
2522
- h: De
2523
- }
2524
- }
2525
- }
2526
- },
2527
- defaultProps: {}
2528
- }), { defineMultiStyleConfig: Vn, definePartsStyle: Nn } = _e(Jo.keys), Un = Vn({
2529
- baseStyle: Nn({
2530
- text: {
2531
- color: "utility.warning",
2532
- fontSize: ["sm", "md"]
2533
- },
2534
- icon: {
2535
- color: "utility.warning",
2536
- height: "0.5em",
2537
- width: "0.5em",
2538
- mr: 1
2539
- }
2540
- })
2541
- }), qn = {
2542
- fontSize: ["sm", "md"],
2543
- color: "tints.black",
2544
- transitionProperty: "common",
2545
- transitionDuration: "normal",
2546
- opacity: 1,
2547
- _disabled: {
2548
- opacity: 0.4
2549
- }
2550
- }, Kn = {
2551
- baseStyle: qn
2552
- }, Jn = _e(["addon", "field", "element"]), $t = {
2553
- borderColor: "tints.lightGrey",
2554
- color: "tints.medGrey"
2555
- }, we = Jn.defineMultiStyleConfig({
2556
- baseStyle: {
2557
- field: {
2558
- fontWeight: "medium",
2559
- fontSize: ["md", "lg"],
2560
- bg: "tints.white",
2561
- color: "tints.black",
2562
- px: 4,
2563
- borderStyle: "solid ",
2564
- borderWidth: "1.5px",
2565
- borderColor: "tints.uiGrey",
2566
- borderRadius: "8px",
2567
- w: "100%",
2568
- h: ["44px", "52px"],
2569
- // <-- the height is necessary in Chakra to calculate the spacing for left and right icons
2570
- ":focus, &.focus": {
2571
- borderColor: "viridian.base",
2572
- outline: "none"
2573
- },
2574
- ":disabled": {
2575
- ...$t
2576
- },
2577
- // same styles as disabled, keep it separated for Select config to override
2578
- ":read-only": {
2579
- ...$t
2580
- },
2581
- _placeholder: {
2582
- color: "tints.uiGrey"
2583
- },
2584
- _invalid: {
2585
- borderColor: "utility.warning"
2586
- }
2587
- },
2588
- element: {
2589
- px: 4,
2590
- py: 2,
2591
- color: "tints.uiGrey"
2592
- }
2593
- },
2594
- sizes: {},
2595
- variants: {},
2596
- defaultProps: {}
2597
- }), Zn = _e([
2598
- "button",
2599
- "list",
2600
- "item",
2601
- "groupTitle",
2602
- "command",
2603
- "divider"
2604
- ]), Qn = Zn.defineMultiStyleConfig({
2605
- baseStyle: {
2606
- button: {},
2607
- list: {
2608
- boxShadow: "lg",
2609
- backgroundColor: "tints.white",
2610
- border: "1.5px solid",
2611
- borderColor: "viridian.base",
2612
- borderRadius: "lg"
2613
- },
2614
- item: {
2615
- fontWeight: "medium",
2616
- lineHeight: "normal",
2617
- color: "tints.darkGrey",
2618
- _hover: {
2619
- backgroundColor: "viridian.wash"
2620
- },
2621
- _active: {
2622
- backgroundColor: "viridian.wash"
2623
- },
2624
- _focus: {
2625
- backgroundColor: "viridian.wash"
2626
- },
2627
- _disabled: {
2628
- backgroundColor: "tints.lightCream",
2629
- color: "tints.medGrey",
2630
- cursor: "not-allowed"
2631
- },
2632
- _first: {
2633
- borderTopRadius: "lg"
2634
- },
2635
- _last: {
2636
- borderBottomRadius: "lg"
2637
- }
2638
- },
2639
- groupTitle: {
2640
- color: "viridian.600",
2641
- letterSpacing: "wider"
2642
- },
2643
- command: {
2644
- color: "tints.uiGrey"
2645
- },
2646
- divider: {
2647
- borderColor: "viridian.base",
2648
- borderBottom: "xs solid"
2649
- }
2650
- },
2651
- sizes: {
2652
- sm: {
2653
- button: {},
2654
- item: {
2655
- fontSize: ["2xs", "sm"],
2656
- paddingX: "3",
2657
- paddingY: "3"
2658
- },
2659
- groupTitle: {
2660
- fontSize: ["md", "lg"],
2661
- paddingX: "2",
2662
- paddingY: "3"
2663
- },
2664
- divider: {
2665
- marginY: "2"
2666
- }
2667
- },
2668
- md: {
2669
- item: {
2670
- fontSize: ["3xs", "lg"],
2671
- paddingX: "4",
2672
- paddingY: "3"
2673
- },
2674
- groupTitle: {
2675
- fontSize: ["lg", "xl"],
2676
- paddingX: "2",
2677
- paddingY: "3"
2678
- }
2679
- },
2680
- lg: {
2681
- item: {
2682
- fontSize: ["xl", "2xl"],
2683
- paddingX: "3",
2684
- paddingY: "4"
2685
- },
2686
- groupTitle: {
2687
- fontSize: ["3xl", "4xl"],
2688
- paddingX: "5",
2689
- paddingY: "4"
2690
- }
2691
- }
2692
- },
2693
- variants: {},
2694
- defaultProps: {
2695
- size: "md"
2696
- }
2697
- }), { definePartsStyle: ea, defineMultiStyleConfig: ra } = Ae(en.keys);
2698
- var Mt, Ot, Dt;
2699
- const ta = ea({
2700
- field: {
2701
- ...(Mt = we == null ? void 0 : we.baseStyle) == null ? void 0 : Mt.field,
2702
- // Apply grey color to the placeholder when the value is empty
2703
- ':has(option[value=""]:checked)': {
2704
- ...(Dt = (Ot = we == null ? void 0 : we.baseStyle) == null ? void 0 : Ot.field) == null ? void 0 : Dt._placeholder
2705
- },
2706
- ":read-only": void 0,
2707
- // Remove the default caret from the browser styles
2708
- WebkitAppearance: "none",
2709
- MozAppearance: "none"
2710
- },
2711
- icon: {
2712
- color: "viridian.base",
2713
- right: 4,
2714
- _disabled: {
2715
- color: "tints.medGrey"
2716
- }
2717
- }
2718
- }), oa = ra({ baseStyle: ta }), na = te({
2719
- baseStyle: {
2720
- thumb: {
2721
- cursor: "grab",
2722
- boxShadow: "md"
2723
- },
2724
- track: {
2725
- h: "4px"
2726
- }
2727
- },
2728
- sizes: {},
2729
- variants: {},
2730
- defaultProps: {}
2731
- }), aa = te({
2732
- baseStyle: {
2733
- color: "viridian.base",
2734
- fontWeight: "normal",
2735
- _hover: {
2736
- textDecoration: "underline",
2737
- cursor: "pointer"
2738
- }
2739
- },
2740
- variants: {},
2741
- sizes: {
2742
- sm: {
2743
- fontSize: ["xs", "sm"],
2744
- lineHeight: "150%"
2745
- },
2746
- md: {
2747
- fontSize: ["sm", "md"],
2748
- lineHeight: "150%"
2749
- },
2750
- lg: {
2751
- fontSize: ["md", "lg"],
2752
- lineHeight: "150%"
2753
- }
2754
- },
2755
- // The default size and variant values
2756
- defaultProps: {
2757
- size: "md"
2758
- }
2759
- }), ia = te({
2760
- baseStyle: {
2761
- stepper: {
2762
- width: "100%",
2763
- backgroundColor: ""
2764
- },
2765
- step: {},
2766
- title: {},
2767
- description: {},
2768
- indicator: {},
2769
- separator: {
2770
- backgroundColor: "eggplant.base",
2771
- height: "4px"
2772
- },
2773
- icon: {},
2774
- number: {}
2775
- },
2776
- sizes: {},
2777
- variants: {},
2778
- defaultProps: {}
2779
- }), sa = te({
2780
- baseStyle: {
2781
- fontFamily: "heading",
2782
- fontWeight: "normal",
2783
- color: "tints.black"
2784
- },
2785
- sizes: {
2786
- "3xl": {
2787
- // Home header
2788
- fontSize: ["6xl", "10xl"],
2789
- // 40px / 56px
2790
- lineHeight: "shorter"
2791
- },
2792
- "2xl": {
2793
- // Section header
2794
- fontSize: ["5xl", "8xl"],
2795
- // 32px / 40px
2796
- lineHeight: "shorter"
2797
- },
2798
- xl: {
2799
- // Product header
2800
- fontSize: ["4xl", "6xl"],
2801
- // 28px / 36px
2802
- lineHeight: "shorter"
2803
- },
2804
- lg: {
2805
- // Large title
2806
- fontFamily: "body",
2807
- fontWeight: "medium",
2808
- fontSize: ["3xl", "5xl"],
2809
- // 24px / 32px
2810
- lineHeight: "short"
2811
- },
2812
- md: {
2813
- // Medium title
2814
- fontFamily: "body",
2815
- fontWeight: "medium",
2816
- fontSize: ["2xl", "3xl"],
2817
- // 20px / 24px
2818
- lineHeight: "short"
2819
- },
2820
- sm: {
2821
- // Small title
2822
- fontFamily: "body",
2823
- fontWeight: "medium",
2824
- fontSize: ["lg", "2xl"],
2825
- // 16px / 20px
2826
- lineHeight: "140%"
2827
- }
2828
- },
2829
- defaultProps: {
2830
- size: "md"
2831
- }
2832
- }), la = te({
2833
- baseStyle: {
2834
- fontFamily: "body",
2835
- fontWeight: "normal",
2836
- lineHeight: "base",
2837
- letterSpacing: "normal",
2838
- fontSize: "md",
2839
- p: 0
2840
- },
2841
- sizes: {
2842
- xs: {
2843
- fontSize: ["2xs", "xs"]
2844
- },
2845
- sm: {
2846
- fontSize: ["xs", "sm"]
2847
- },
2848
- md: {
2849
- fontSize: ["sm", "md"]
2850
- },
2851
- lg: {
2852
- fontSize: ["md", "lg"]
2853
- },
2854
- xl: {
2855
- fontSize: ["lg", "2xl"],
2856
- lineHeight: ["short", "shorter"]
2857
- }
2858
- },
2859
- defaultProps: {
2860
- size: "lg"
2861
- }
2862
- }), da = te({
2863
- baseStyle: {},
2864
- sizes: {
2865
- sm: {
2866
- fontSize: "1rem"
2867
- },
2868
- md: {
2869
- fontSize: "1.5rem"
2870
- },
2871
- lg: {
2872
- fontSize: "2rem"
2873
- }
2874
- },
2875
- variants: {},
2876
- defaultProps: {
2877
- size: "md"
2878
- }
2879
- }), { defineMultiStyleConfig: ca, definePartsStyle: gt } = _e(qo.keys), ua = {
2880
- partial: gt({
2881
- dialog: {
2882
- maxW: 560
2883
- }
2884
- }),
2885
- full: gt({
2886
- dialog: {
2887
- maxW: "100vw",
2888
- minH: "100vh",
2889
- borderRadius: 0
2890
- }
2891
- })
2892
- }, fa = gt({
2893
- overlay: {
2894
- zIndex: "overlay",
2895
- bg: (e) => `${e.colors.tints.black}66`
2896
- // tint black with 40% opacity
2897
- },
2898
- dialogContainer: {
2899
- zIndex: "modal"
2900
- },
2901
- dialog: {
2902
- bg: "white",
2903
- pt: [6],
2904
- display: "flex",
2905
- flexDirection: "column",
2906
- alignItems: "stretch",
2907
- gap: 6,
2908
- boxShadow: "dialog"
2909
- },
2910
- header: {
2911
- px: 8,
2912
- display: "flex",
2913
- flexDirection: "row",
2914
- justifyContent: "space-between",
2915
- alignItems: "center"
2916
- },
2917
- closeButton: {
2918
- bg: "tints.cream",
2919
- borderRadius: "50%",
2920
- p: 3,
2921
- _hover: {
2922
- bg: "tints.darkCream"
2923
- },
2924
- "& .chakra-icon": {
2925
- fontSize: "0.75rem"
2926
- }
2927
- },
2928
- body: {
2929
- px: 8,
2930
- flexGrow: 1
2931
- },
2932
- footer: {
2933
- py: 6,
2934
- px: 8
2935
- }
2936
- }), pa = ca({
2937
- baseStyle: fa,
2938
- sizes: ua,
2939
- defaultProps: { size: "partial" }
2940
- }), ga = te({
2941
- baseStyle: {
2942
- // adding a background color and/or font color to the tooltip causes the arrow to disappear
2943
- // not including these properties for now
2944
- padding: 4,
2945
- borderRadius: 12,
2946
- zIndex: "tooltip"
2947
- },
2948
- sizes: {},
2949
- defaultProps: {}
2950
- }), { defineMultiStyleConfig: ha } = Ae(
2951
- Zo.keys
2952
- ), ba = ha({
2953
- baseStyle: {
2954
- overlay: {
2955
- background: "rgba(0, 0, 0, 0.8)",
2956
- zIndex: "overlay"
2957
- },
2958
- dialogContainer: {
2959
- display: "flex",
2960
- zIndex: "modal",
2961
- justifyContent: "center",
2962
- alignItems: "center",
2963
- overflow: "hidden"
2964
- },
2965
- dialog: {
2966
- borderRadius: "md",
2967
- backgroundColor: "tints.cream",
2968
- color: "inherit",
2969
- marginY: "12",
2970
- zIndex: "modal",
2971
- maxHeight: "100vh",
2972
- boxShadow: "lg"
2973
- },
2974
- header: {
2975
- paddingX: "6",
2976
- paddingY: "4",
2977
- fontSize: "xl",
2978
- fontWeight: "bold"
2979
- },
2980
- closeButton: {
2981
- position: "absolute",
2982
- top: "2",
2983
- insetEnd: "4",
2984
- width: "44px",
2985
- height: "44px",
2986
- backgroundColor: "white",
2987
- borderRadius: "full",
2988
- "&:has(> svg:only-child)": {
2989
- svg: {
2990
- fontSize: "lg"
2991
- }
2992
- },
2993
- ":hover, &.hover": {
2994
- backgroundColor: "tints.darkCream"
2995
- },
2996
- ":active, &.active": {
2997
- backgroundColor: "tints.darkCream"
2998
- },
2999
- ":disabled, &.disabled": {
3000
- backgroundColor: "tints.lightGrey",
3001
- color: "tints.medGrey",
3002
- cursor: "not-allowed"
3003
- }
3004
- },
3005
- body: {
3006
- paddingX: "6",
3007
- paddingY: "2",
3008
- flex: 1,
3009
- overflow: "auto"
3010
- },
3011
- footer: {
3012
- paddingX: "6",
3013
- paddingY: "4"
3014
- }
3015
- },
3016
- sizes: {
3017
- xs: {
3018
- dialog: {
3019
- maxWidth: "20rem"
3020
- }
3021
- },
3022
- sm: {
3023
- dialog: {
3024
- maxWidth: "24rem"
3025
- }
3026
- },
3027
- md: {
3028
- dialog: {
3029
- maxWidth: "28rem"
3030
- }
3031
- },
3032
- lg: {
3033
- dialog: {
3034
- maxWidth: "32rem"
3035
- }
3036
- },
3037
- xl: {
3038
- dialog: {
3039
- maxWidth: "36rem"
3040
- }
3041
- },
3042
- full: {
3043
- dialog: {
3044
- maxWidth: "100vw",
3045
- height: "100dvh"
3046
- }
3047
- }
3048
- },
3049
- variants: {},
3050
- defaultProps: {
3051
- size: "md"
3052
- }
3053
- }), Ut = Qe("progress-background"), qt = Qe("progress-filled-background"), { defineMultiStyleConfig: ma, definePartsStyle: ya } = _e(Qo.keys), va = ma({
3054
- baseStyle: ya({
3055
- label: {
3056
- lineHeight: "1",
3057
- fontSize: "0.25em",
3058
- fontWeight: "bold",
3059
- color: "white"
3060
- },
3061
- track: {
3062
- background: Ut.reference
3063
- },
3064
- filledTrack: {
3065
- transition: "300ms",
3066
- background: qt.reference
3067
- }
3068
- }),
3069
- sizes: {
3070
- xs: {
3071
- track: {
3072
- height: "2px",
3073
- borderRadius: "2px"
3074
- }
3075
- },
3076
- sm: {
3077
- track: {
3078
- height: "4px",
3079
- borderRadius: "4px"
3080
- }
3081
- },
3082
- md: {
3083
- track: {
3084
- height: "8px",
3085
- borderRadius: "8px"
3086
- }
3087
- },
3088
- lg: {
3089
- track: {
3090
- height: "12px",
3091
- borderRadius: "12px"
3092
- }
3093
- }
3094
- },
3095
- variants: {},
3096
- defaultProps: {
3097
- size: "xs"
3098
- }
3099
- }), Sa = te({
3100
- baseStyle: {},
3101
- sizes: {
3102
- sm: {
3103
- width: "1.25rem",
3104
- height: "1.25rem",
3105
- borderWidth: "2px "
3106
- },
3107
- md: {
3108
- width: "2rem",
3109
- height: "2rem",
3110
- borderWidth: "3px "
3111
- },
3112
- lg: {
3113
- width: "3rem",
3114
- height: "3rem",
3115
- borderWidth: "4px "
3116
- }
3117
- },
3118
- variants: {},
3119
- defaultProps: {
3120
- size: "md"
3121
- }
3122
- }), xa = Qe("skeleton-start-color"), ka = Qe("skeleton-end-color"), wa = Qe("skeleton-speed"), _a = te({
3123
- baseStyle: {
3124
- [xa.variable]: "colors.tints.lightGrey",
3125
- [ka.variable]: "colors.tints.medGrey",
3126
- [wa.variable]: "0.8",
3127
- borderRadius: "sm",
3128
- p: "4"
3129
- },
3130
- sizes: {},
3131
- variants: {},
3132
- defaultProps: {}
3133
- }), { defineMultiStyleConfig: Ca } = Ae(
3134
- tn.keys
3135
- ), Ta = Ca({
3136
- baseStyle: {
3137
- tab: {
3138
- color: "tints.darkGrey",
3139
- border: "1px solid",
3140
- borderColor: "tints.lightGrey",
3141
- _selected: {
3142
- backgroundColor: "viridian.dark",
3143
- color: "tints.white",
3144
- borderColor: "inherit"
3145
- },
3146
- _disabled: {
3147
- color: "tints.medGrey",
3148
- backgroundColor: "tints.lightGrey",
3149
- cursor: "not-allowed"
3150
- },
3151
- _focusVisible: {
3152
- outline: "1px solid auto"
3153
- }
3154
- }
3155
- },
3156
- sizes: {
3157
- md: {
3158
- tab: {
3159
- fontSize: "md",
3160
- fontWeight: "normal",
3161
- lineHeight: "xl",
3162
- paddingY: 3,
3163
- paddingX: 4,
3164
- _first: {
3165
- borderLeftRadius: "xl"
3166
- },
3167
- _last: {
3168
- borderRightRadius: "xl"
3169
- }
3170
- },
3171
- tablist: {
3172
- marginBottom: 4
3173
- }
3174
- },
3175
- lg: {
3176
- tab: {
3177
- fontSize: "lg",
3178
- fontWeight: "medium",
3179
- lineHeight: "3xl",
3180
- paddingY: 4,
3181
- paddingX: 5,
3182
- _first: {
3183
- borderLeftRadius: "xl"
3184
- },
3185
- _last: {
3186
- borderRightRadius: "xl"
3187
- }
3188
- },
3189
- tablist: {
3190
- marginBottom: 6
3191
- }
3192
- }
3193
- },
3194
- variants: {},
3195
- defaultProps: {
3196
- size: "lg"
3197
- }
3198
- }), { defineMultiStyleConfig: Ra } = Ae(
3199
- on.keys
3200
- ), Ea = {
3201
- sm: {
3202
- paddingX: ["2", "2"],
3203
- paddingY: ["0.5", "2"]
3204
- },
3205
- md: {
3206
- paddingX: ["2", "3"],
3207
- paddingY: ["0.5", "3"]
3208
- }
3209
- }, Fa = Ra({
3210
- baseStyle: {
3211
- container: {
3212
- fontWeight: "medium",
3213
- borderRadius: "20px"
3214
- },
3215
- label: {},
3216
- closeButton: {}
3217
- },
3218
- sizes: {
3219
- sm: {
3220
- container: {
3221
- paddingX: ["2", "3"],
3222
- paddingY: ["1", "5px"],
3223
- fontSize: ["xs", "sm"]
3224
- },
3225
- label: {
3226
- fontSize: ["xs", "sm"]
3227
- },
3228
- closeButton: {}
3229
- },
3230
- md: {
3231
- container: {
3232
- paddingX: ["3", "4"],
3233
- paddingY: ["5px", "6px"],
3234
- fontSize: ["sm", "md"]
3235
- },
3236
- label: {
3237
- fontSize: ["sm", "md"]
3238
- },
3239
- closeButton: {}
3240
- }
3241
- // We don't have a large size for tags
3242
- },
3243
- variants: {
3244
- primary: {
3245
- container: {
3246
- backgroundColor: "viridian.dark",
3247
- color: "tints.white"
3248
- },
3249
- label: {
3250
- backgroundColor: "viridian.dark",
3251
- color: "tints.white"
3252
- },
3253
- closeButton: {
3254
- color: "viridian.lighter",
3255
- _hover: {
3256
- color: "tints.white"
3257
- }
3258
- }
3259
- },
3260
- secondary: {
3261
- container: {
3262
- backgroundColor: "viridian.wash",
3263
- color: "viridian.dark"
3264
- },
3265
- label: {
3266
- backgroundColor: "viridian.wash",
3267
- color: "viridian.dark"
3268
- },
3269
- closeButton: {
3270
- color: "viridian.lighter",
3271
- _hover: {
3272
- color: "viridian.light"
3273
- }
3274
- }
3275
- },
3276
- tertiary: {
3277
- container: {
3278
- backgroundColor: "utility.sale",
3279
- color: "tints.white"
3280
- },
3281
- label: {
3282
- backgroundColor: "utility.sale",
3283
- color: "tints.white"
3284
- },
3285
- closeButton: {
3286
- color: "tints.medGrey",
3287
- _hover: {
3288
- color: "tints.white"
3289
- }
3290
- }
3291
- },
3292
- callout: {
3293
- container: {
3294
- backgroundColor: "eggplant.base",
3295
- color: "tints.white"
3296
- },
3297
- label: {
3298
- backgroundColor: "eggplant.base",
3299
- color: "tints.white"
3300
- },
3301
- closeButton: {
3302
- color: "tints.medGrey",
3303
- _hover: {
3304
- color: "tints.white"
3305
- }
3306
- }
3307
- },
3308
- disabled: {
3309
- container: {
3310
- backgroundColor: "tints.darkGrey",
3311
- color: "tints.white"
3312
- },
3313
- label: {
3314
- backgroundColor: "tints.darkGrey",
3315
- color: "tints.white"
3316
- },
3317
- closeButton: {
3318
- color: "tints.medGrey",
3319
- _hover: {
3320
- color: "tints.white"
3321
- }
3322
- }
3323
- },
3324
- /* This is a special variant, that has a different style
3325
- for the container (a different shape, border and padding) */
3326
- cluster: ({ size: e }) => ({
3327
- container: {
3328
- backgroundColor: "tints.white",
3329
- color: "tints.black",
3330
- borderRadius: "8px",
3331
- ...Ea[e]
3332
- },
3333
- label: {
3334
- backgroundColor: "tints.white",
3335
- color: "tints.black"
3336
- },
3337
- closeButton: {
3338
- color: "viridian.lighter",
3339
- _hover: {
3340
- color: "viridian.light"
3341
- }
3342
- }
3343
- })
3344
- },
3345
- defaultProps: {
3346
- size: "md",
3347
- variant: "primary"
3348
- }
3349
- }), { defineMultiStyleConfig: Ba } = _e(
3350
- No.keys
3351
- ), Ia = Ba({
3352
- baseStyle: {
3353
- container: {
3354
- width: "100%"
3355
- },
3356
- panel: {
3357
- paddingBottom: "6",
3358
- fontSize: "lg",
3359
- fontWeight: "normal"
3360
- },
3361
- button: {
3362
- width: "100%",
3363
- display: "flex",
3364
- justifyContent: "space-between",
3365
- textAlign: "left"
3366
- },
3367
- icon: {
3368
- color: "viridian.base"
3369
- }
3370
- },
3371
- sizes: {
3372
- md: {
3373
- button: {
3374
- paddingY: "3"
3375
- }
3376
- },
3377
- lg: {
3378
- button: {
3379
- paddingY: "6"
3380
- }
3381
- }
3382
- },
3383
- variants: {
3384
- primary: {
3385
- container: {
3386
- borderBottom: "1px solid",
3387
- borderColor: "tints.lightGrey"
3388
- }
3389
- },
3390
- secondary: {
3391
- button: {
3392
- border: "1px solid",
3393
- borderColor: "tints.lightGrey",
3394
- marginBottom: "3",
3395
- borderRadius: "xl",
3396
- paddingX: "3"
3397
- }
3398
- }
3399
- },
3400
- defaultProps: {
3401
- size: "lg",
3402
- variant: "primary"
3403
- }
3404
- }), { defineMultiStyleConfig: za } = Ae(
3405
- rn.keys
3406
- ), Pa = za({
3407
- baseStyle: {
3408
- table: {
3409
- width: "full",
3410
- borderCollapse: "collapse",
3411
- color: "tints.black",
3412
- textAlign: "left"
3413
- },
3414
- thead: {},
3415
- tbody: {},
3416
- tfoot: {},
3417
- tr: {
3418
- borderBottomWidth: "2px",
3419
- borderColor: "tints.white",
3420
- fontSize: "lg",
3421
- backgroundColor: "tints.lightCream"
3422
- },
3423
- th: {
3424
- padding: 4,
3425
- borderBottomWidth: "2px",
3426
- borderColor: "tints.white",
3427
- backgroundColor: "tints.darkCream",
3428
- fontWeight: "medium",
3429
- fontSize: "2xl"
3430
- },
3431
- td: {
3432
- padding: 4,
3433
- fontWeight: "medium"
3434
- },
3435
- caption: {},
3436
- sizes: {}
3437
- },
3438
- variants: {
3439
- simple: {},
3440
- striped: {
3441
- tbody: {
3442
- tr: {
3443
- _even: {
3444
- backgroundColor: "tints.cream"
3445
- }
3446
- }
3447
- }
3448
- }
3449
- },
3450
- defaultProps: {
3451
- variant: "simple"
3452
- }
3453
- }), $a = te({
3454
- baseStyle: {
3455
- w: "100%",
3456
- paddingX: "48px"
3457
- },
3458
- sizes: {
3459
- sm: {
3460
- paddingX: "24px"
3461
- },
3462
- md: {
3463
- maxW: "768px"
3464
- },
3465
- lg: {
3466
- maxW: "1024px"
3467
- },
3468
- xl: {
3469
- maxW: "1440px"
3470
- },
3471
- ultra: {
3472
- maxW: "1920px"
3473
- },
3474
- fluid: {
3475
- paddingX: "0"
3476
- }
3477
- },
3478
- variants: {},
3479
- defaultProps: {
3480
- size: "lg"
3481
- }
3482
- }), Ma = {
3483
- tints: {
3484
- black: "#0F0F0F",
3485
- darkGrey: "#545454",
3486
- uiGrey: "#949494",
3487
- medGrey: "#A9A9A9",
3488
- lightGrey: "#EEEEEE",
3489
- darkCream: "#E8E8E2",
3490
- cream: "#F2F2ED",
3491
- lightCream: "#F9F9F6",
3492
- white: "#FFFFFF"
3493
- },
3494
- viridian: {
3495
- dark: "#143927",
3496
- base: "#28724F",
3497
- light: "#68CA9C",
3498
- lighter: "#A1DEC1",
3499
- wash: "#EFF9F5"
3500
- },
3501
- sunshine: {
3502
- dark: "#5C5300",
3503
- base: "#FFEC42",
3504
- light: "#FFF386",
3505
- lighter: "#FFF8BC",
3506
- wash: "#FFFEF2"
3507
- },
3508
- terracotta: {
3509
- dark: "#650500",
3510
- base: "#FF6B62",
3511
- light: "#FF9E99",
3512
- lighter: "#FFC9C7",
3513
- wash: "#FFF4F4"
3514
- },
3515
- violet: {
3516
- dark: "#380050",
3517
- base: "#B917FF",
3518
- light: "#D36BFF",
3519
- lighter: "#E6ADFF",
3520
- wash: "#FAEFFF"
3521
- },
3522
- eggplant: {
3523
- dark: "#210C21",
3524
- base: "#742974",
3525
- light: "#C458C4",
3526
- lighter: "#DEA2DE",
3527
- wash: "#FBF4FB"
3528
- },
3529
- moonlight: {
3530
- dark: "#000C11",
3531
- base: "#012B3B",
3532
- light: "#0387BB",
3533
- lighter: "#61D1FD",
3534
- wash: "#DFF6FF"
3535
- },
3536
- sky: {
3537
- dark: "#073243",
3538
- base: "#6BCAEF",
3539
- light: "#A1DDF5",
3540
- lighter: "#CBECF9",
3541
- wash: "#F5FBFE"
3542
- }
3543
- }, Oa = {
3544
- redCS: {
3545
- 50: "#CC0F05",
3546
- // wash
3547
- 100: "#CC0F05",
3548
- // lighter
3549
- 200: "#CC0F05",
3550
- // light
3551
- 300: "#CC0F05",
3552
- // base
3553
- 400: "#CC0F05",
3554
- // base
3555
- 500: "#CC0F05",
3556
- // base
3557
- 600: "#CC0F05",
3558
- // base
3559
- 700: "#CC0F05",
3560
- // base
3561
- 800: "#CC0F05",
3562
- // base
3563
- 900: "#650500"
3564
- // dark
3565
- },
3566
- greenCS: {
3567
- 50: "#EFF9F5",
3568
- // wash
3569
- 100: "#A1DEC1",
3570
- // lighter
3571
- 200: "#68CA9C",
3572
- // light
3573
- 300: "#28724F",
3574
- // base
3575
- 400: "#28724F",
3576
- // base
3577
- 500: "#28724F",
3578
- // base
3579
- 600: "#28724F",
3580
- // base
3581
- 700: "#28724F",
3582
- // base
3583
- 800: "#28724F",
3584
- // base
3585
- 900: "#143927"
3586
- // dark
3587
- },
3588
- whiteCS: { ...At.colors.whiteAlpha, base: "#FFFFFF" }
3589
- }, Da = {
3590
- warning: "#CC0F05",
3591
- sale: "#DF2B17",
3592
- success: "#28724F",
3593
- rating: "#F5A623"
3594
- }, Aa = {
3595
- ...Ma,
3596
- // color schemes
3597
- ...Oa,
3598
- // contextual colors
3599
- utility: {
3600
- ...Da
3601
- }
3602
- }, { semanticTokens: Za, sizes: Qa, space: ei, ...Wa } = At, R = (e) => `${e / 16}rem`, ja = (e) => e, ri = ja({
3603
- ...Wa,
3604
- //To fix: https://github.com/chakra-ui/chakra-ui/issues/8671
3605
- styles: {
3606
- global: {
3607
- "html:has(body[data-scroll-locked])": {
3608
- overflow: "hidden"
3609
- }
3610
- }
3611
- },
3612
- breakpoints: {
3613
- // Chakra relies on the initial breakpoint being `base`
3614
- base: "0em",
3615
- // starts at 0px - mobile
3616
- tablet: "37.5em",
3617
- // 600px
3618
- largeTablet: "56.25em",
3619
- // 900px
3620
- desktop: "75em",
3621
- // 1200px
3622
- largeDesktop: "112.5em"
3623
- // 1800px
3624
- },
3625
- fonts: {
3626
- body: "'DM Sans', sans-serif",
3627
- heading: "PP Agrandir, sans-serif",
3628
- mono: "DM Mono, monospace"
3629
- },
3630
- fontWeights: {
3631
- thin: "100",
3632
- xlight: "200",
3633
- light: "300",
3634
- normal: "400",
3635
- medium: "500",
3636
- semiBold: "600",
3637
- bold: "700",
3638
- xbold: "800",
3639
- black: "900"
3640
- },
3641
- fontSizes: {
3642
- "3xs": R(6),
3643
- "2xs": R(8),
3644
- xs: R(10),
3645
- sm: R(12),
3646
- md: R(14),
3647
- lg: R(16),
3648
- xl: R(18),
3649
- "2xl": R(20),
3650
- "3xl": R(24),
3651
- "4xl": R(28),
3652
- "5xl": R(32),
3653
- "6xl": R(36),
3654
- "7xl": R(40),
3655
- "8xl": R(44),
3656
- "9xl": R(48),
3657
- "10xl": R(56),
3658
- "11xl": R(68)
3659
- },
3660
- letterSpacings: {
3661
- // TODO: redefine letter spacings with design
3662
- tighter: "-0.05em",
3663
- tight: "-0.025em",
3664
- normal: "0",
3665
- wide: "0.025em",
3666
- wider: "0.05em",
3667
- widest: "0.1em"
3668
- },
3669
- lineHeights: {
3670
- // TODO: redefine line heights with design
3671
- body: 1.5,
3672
- normal: "normal",
3673
- none: 1,
3674
- shorter: 1.1,
3675
- short: 1.3,
3676
- base: 1.5,
3677
- tall: 1.5
3678
- },
3679
- sizes: {
3680
- max: "max-content",
3681
- min: "min-content",
3682
- full: "100%"
3683
- },
3684
- space: {
3685
- /**
3686
- * Base unit: 4px
3687
- * 1 rem = 16px
3688
- *
3689
- * Mental model:
3690
- *
3691
- * If you need a spacing of 40px, divide it by 4.
3692
- * That'll give you 10. Then use it in your component.
3693
- */
3694
- 0: 0,
3695
- 0.5: R(2),
3696
- 1: R(4),
3697
- 1.5: R(6),
3698
- 2: R(8),
3699
- 3: R(12),
3700
- 4: R(16),
3701
- 5: R(20),
3702
- 6: R(24),
3703
- 8: R(32),
3704
- 10: R(40),
3705
- 12: R(48),
3706
- 16: R(64),
3707
- 20: R(80)
3708
- },
3709
- shadows: {
3710
- xs: "0 0 0 1px rgba(0, 0, 0, 0.05)",
3711
- sm: "0 1px 2px 0 rgba(0, 0, 0, 0.05)",
3712
- base: "0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",
3713
- md: "0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",
3714
- lg: "0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",
3715
- xl: "0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)",
3716
- "2xl": "0 25px 50px -12px rgba(0, 0, 0, 0.25)",
3717
- outline: "0 0 0 3px rgba(66, 153, 225, 0.6)",
3718
- inner: "inset 0 2px 4px 0 rgba(0,0,0,0.06)",
3719
- none: "none",
3720
- "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",
3721
- dialog: "15px 0px 75.2px 0px rgba(0, 0, 0, 0.35)",
3722
- tooltip: "0px 4px 35px 0px rgba(0, 0, 0, 0.08)"
3723
- },
3724
- zIndices: {
3725
- hide: -1,
3726
- auto: "auto",
3727
- base: 0,
3728
- docked: 10,
3729
- dropdown: 1e3,
3730
- sticky: 1100,
3731
- banner: 1200,
3732
- overlay: 1300,
3733
- modal: 1400,
3734
- popover: 1500,
3735
- skipLink: 1600,
3736
- toast: 1700,
3737
- tooltip: 1800
3738
- },
3739
- colors: Aa,
3740
- components: {
3741
- Accordion: Ia,
3742
- Button: Vo,
3743
- Checkbox: sn,
3744
- Container: $a,
3745
- Drawer: pa,
3746
- Form: Xn,
3747
- // Not sure why chakra does not follow their naming convention for this theme, but this is the way that it works
3748
- FormError: Un,
3749
- FormLabel: Kn,
3750
- Select: oa,
3751
- Heading: sa,
3752
- Icon: da,
3753
- Input: we,
3754
- Link: aa,
3755
- Stepper: ia,
3756
- Menu: Qn,
3757
- Progress: va,
3758
- Slider: na,
3759
- Spinner: Sa,
3760
- Skeleton: _a,
3761
- Tabs: Ta,
3762
- Table: Pa,
3763
- Tag: Fa,
3764
- Text: la,
3765
- Tooltip: ga,
3766
- Modal: ba
3767
- }
3768
- }), La = () => Eo(), Kt = Wo({
3769
- spacing: 0,
3770
- columns: 1
3771
- }), Ga = zr.forwardRef(
3772
- ({
3773
- children: e,
3774
- alignEdges: a = !0,
3775
- width: l,
3776
- columns: u = 1,
3777
- spacing: f,
3778
- ...y
3779
- }, C) => {
3780
- const k = La(), g = f ?? k.space[4], z = (S) => typeof S == "number" ? -1 * S : `-${S}`, w = Array.isArray(g) ? g.map((S) => S && z(S)) : g && z(g);
3781
- return /* @__PURE__ */ X.jsx(Kt.Provider, { value: { spacing: g, columns: u }, children: /* @__PURE__ */ X.jsx(Je, { m: a ? w : void 0, children: /* @__PURE__ */ X.jsx(
3782
- Fo,
3783
- {
3784
- flexWrap: "wrap",
3785
- pl: g,
3786
- pt: g,
3787
- width: l ?? "100%",
3788
- ...y,
3789
- ref: C,
3790
- children: e
3791
- }
3792
- ) }) });
3793
- }
3794
- );
3795
- Ga.displayName = "Grid";
3796
- const Ya = zr.forwardRef(
3797
- ({ children: e, width: a, ...l }, u) => {
3798
- const { columns: f, spacing: y } = jo(Kt), C = Array.isArray(a) ? a.map((g) => g === "auto" ? 1 : 0) : a === "auto" ? 1 : 0, k = () => (Array.isArray(f) ? f : [f]).map(
3799
- (z) => `${100 / z}%`
3800
- );
3801
- return /* @__PURE__ */ X.jsx(
3802
- Je,
3803
- {
3804
- width: a ?? k() ?? "100%",
3805
- pr: y,
3806
- pb: y,
3807
- ...l,
3808
- sx: {
3809
- flexGrow: C,
3810
- ...l.sx
3811
- },
3812
- ref: u,
3813
- children: e
3814
- }
3815
- );
3816
- }
3817
- );
3818
- Ya.displayName = "GridItem";
3819
- const ti = Bo, oi = Io, Ha = (e) => /* @__PURE__ */ X.jsx(zo, { icon: /* @__PURE__ */ X.jsx(Wt, { as: jt }), ...e });
3820
- Ha.displayName = "Checkbox";
3821
- function Xa(e, a) {
3822
- const { background: l, filledBackground: u, ...f } = e;
3823
- return /* @__PURE__ */ X.jsx(
3824
- Po,
3825
- {
3826
- ...f,
3827
- ref: a,
3828
- sx: {
3829
- [Ut.variable]: l ?? "colors.tints.lightGrey",
3830
- [qt.variable]: u ?? "colors.utility.rating"
3831
- }
3832
- }
3833
- );
3834
- }
3835
- const ni = Lo(Xa), st = "32px", Er = (e) => e == null, Va = $o((e, a) => {
3836
- const l = Mo(), u = {
3837
- isDisabled: l == null ? void 0 : l.isDisabled,
3838
- isFocusable: l == null ? void 0 : l.isFocusable,
3839
- isChecked: !Er(l == null ? void 0 : l.value) && !Er(e.value) ? l.value === e.value : e.isChecked,
3840
- onChange: !Er(l == null ? void 0 : l.value) && !Er(e.value) ? (P) => {
3841
- var Ce, Te;
3842
- (Ce = e.onChange) == null || Ce.call(e, P), (Te = l == null ? void 0 : l.onChange) == null || Te.call(l, P);
3843
- } : e.onChange,
3844
- name: (e == null ? void 0 : e.name) ?? (l == null ? void 0 : l.name)
3845
- }, {
3846
- getInputProps: f,
3847
- getRadioProps: y,
3848
- htmlProps: C,
3849
- getLabelProps: k,
3850
- state: g,
3851
- getRootProps: z
3852
- } = Oo({
3853
- ...e,
3854
- ...u
3855
- }), w = f({}, a), S = y(), D = k(), Y = z(), V = g.isChecked, oe = () => e.isDisabled ? "tints.lightGrey" : V ? "viridian.base" : "tints.white", ne = () => e.isDisabled ? "tints.lightGrey" : V ? "viridian.base" : "tints.uiGrey", N = () => e.isDisabled ? "not-allowed" : "pointer";
3856
- return /* @__PURE__ */ X.jsxs(
3857
- Do.label,
3858
- {
3859
- ...C,
3860
- ...Y,
3861
- cursor: "pointer",
3862
- display: "flex",
3863
- flexDirection: "row",
3864
- alignItems: "flex-start",
3865
- width: "100%",
3866
- gap: 3,
3867
- children: [
3868
- /* @__PURE__ */ X.jsx("input", { ...w, ref: a }),
3869
- e.removeCircle ? (
3870
- // Icon size is 32px, so we need to add a box to keep the layout consistent
3871
- /* @__PURE__ */ X.jsx(Je, { width: "32px" })
3872
- ) : /* @__PURE__ */ X.jsx(
3873
- Je,
3874
- {
3875
- ...S,
3876
- display: "flex",
3877
- alignItems: "center",
3878
- justifyContent: "center",
3879
- backgroundColor: oe(),
3880
- color: V ? "tints.white" : "transparent",
3881
- borderColor: ne(),
3882
- borderStyle: "solid",
3883
- flexShrink: 0,
3884
- borderWidth: "1.5px",
3885
- height: st,
3886
- width: st,
3887
- rounded: "full",
3888
- cursor: N(),
3889
- sx: {
3890
- _focusVisible: {
3891
- outlineColor: "moonlight.light",
3892
- outlineWidth: "2px",
3893
- outlineStyle: "solid",
3894
- outlineOffset: "1px"
3895
- }
3896
- },
3897
- children: V && /* @__PURE__ */ X.jsx(Wt, { as: jt })
3898
- }
3899
- ),
3900
- /* @__PURE__ */ X.jsx(
3901
- Je,
3902
- {
3903
- ...D,
3904
- flex: 1,
3905
- display: "flex",
3906
- alignItems: "center",
3907
- minHeight: st,
3908
- children: e.children
3909
- }
3910
- )
3911
- ]
3912
- }
3913
- );
3914
- });
3915
- Va.displayName = "Radio";
3916
- const Na = () => /* @__PURE__ */ X.jsx(
3917
- Go,
3918
- {
3919
- styles: `
3920
- /* PP Agrandir */
3921
- /* Agrandir is used for page headers, section titles, brand moments and quotations. */
3922
- @font-face {
3923
- font-family: 'PP Agrandir';
3924
- /* We need to keep the "+" in the font path for the font to load correctly. */
3925
- src: url('https://cdn.everlywell.com/fonts/PP+Agrandir/PPAgrandir-Variable.woff2') format('woff2');
3926
- font-style: normal;
3927
- font-display: swap;
3928
- }
3929
-
3930
- /* DM Sans */
3931
- /* Used for: Body copy, button copy and smaller sizes. */
3932
- @font-face {
3933
- font-family: 'DM Sans';
3934
- /* We need to keep the "<space>" in the font path for the font to load correctly. */
3935
- src: url('https://cdn.everlywell.com/fonts/DM Sans/DMSans-Italic-VariableFont_opsz,wght.woff2') format('woff2');
3936
- font-style: italic;
3937
- font-stretch: normal;
3938
- font-display: swap;
3939
- }
3940
- @font-face {
3941
- font-family: 'DM Sans';
3942
- src: url('https://cdn.everlywell.com/fonts/DM Sans/DMSans-VariableFont_opsz,wght.woff2') format('woff2');
3943
- font-style: normal;
3944
- font-stretch: normal;
3945
- font-display: swap;
3946
- }
3947
-
3948
- /* DM Mono */
3949
- /* Used for: Body copy, button copy and smaller sizes. */
3950
- @font-face {
3951
- font-family: 'DM Mono';
3952
- src: url('https://cdn.everlywell.com/fonts/DM Mono/DMMono-Light.woff2') format('woff2');
3953
- font-style: normal;
3954
- font-weight: 300;
3955
- font-stretch: normal;
3956
- font-display: swap;
3957
- }
3958
- @font-face {
3959
- font-family: 'DM Mono';
3960
- src: url('https://cdn.everlywell.com/fonts/DM Mono/DMMono-LightItalic.woff2') format('woff2');
3961
- font-style: italic;
3962
- font-weight: 300;
3963
- font-stretch: normal;
3964
- font-display: swap;
3965
- }
3966
- @font-face {
3967
- font-family: 'DM Mono';
3968
- src: url('https://cdn.everlywell.com/fonts/DM Mono/DMMono-Regular.woff2') format('woff2');
3969
- font-style: normal;
3970
- font-weight: 400;
3971
- font-stretch: normal;
3972
- font-display: swap;
3973
- }
3974
- @font-face {
3975
- font-family: 'DM Mono';
3976
- src: url('https://cdn.everlywell.com/fonts/DM Mono/DMMono-Italic.woff2') format('woff2');
3977
- font-style: italic;
3978
- font-weight: 400;
3979
- font-stretch: normal;
3980
- font-display: swap;
3981
- }
3982
- @font-face {
3983
- font-family: 'DM Mono';
3984
- src: url('https://cdn.everlywell.com/fonts/DM Mono/DMMono-Medium.woff2') format('woff2');
3985
- font-style: normal;
3986
- font-weight: 500;
3987
- font-stretch: normal;
3988
- font-display: swap;
3989
- }
3990
- @font-face {
3991
- font-family: 'DM Mono';
3992
- src: url('https://cdn.everlywell.com/fonts/DM Mono/DMMono-MediumItalic.woff2') format('woff2');
3993
- font-style: italic;
3994
- font-weight: 500;
3995
- font-stretch: normal;
3996
- font-display: swap;
3997
- }
3998
- `
3999
- }
4000
- ), ai = ({
4001
- children: e,
4002
- ...a
4003
- }) => /* @__PURE__ */ X.jsxs(Ao, { ...a, children: [
4004
- /* @__PURE__ */ X.jsx(Na, {}),
4005
- e
4006
- ] });
4007
- export {
4008
- li as Accordion,
4009
- di as AccordionButton,
4010
- ci as AccordionIcon,
4011
- ui as AccordionItem,
4012
- fi as AccordionPanel,
4013
- pi as Box,
4014
- gi as Breadcrumb,
4015
- hi as BreadcrumbItem,
4016
- bi as BreadcrumbLink,
4017
- mi as BreadcrumbSeparator,
4018
- yi as Button,
4019
- Ha as Checkbox,
4020
- vi as CheckboxGroup,
4021
- Si as Container,
4022
- xi as Drawer,
4023
- ki as DrawerBody,
4024
- wi as DrawerCloseButton,
4025
- _i as DrawerContent,
4026
- Ci as DrawerFooter,
4027
- Ti as DrawerHeader,
4028
- Ri as DrawerOverlay,
4029
- Ei as Flex,
4030
- Fi as FormControl,
4031
- Bi as FormErrorMessage,
4032
- Ii as FormHelperText,
4033
- zi as FormLabel,
4034
- Ga as Grid,
4035
- Ya as GridItem,
4036
- Pi as HStack,
4037
- $i as Heading,
4038
- oi as Hide,
4039
- Mi as Icon,
4040
- Oi as IconButton,
4041
- Di as Image,
4042
- Ai as Input,
4043
- Wi as InputGroup,
4044
- ji as InputLeftElement,
4045
- Li as InputRightElement,
4046
- Gi as Link,
4047
- Yi as List,
4048
- Hi as ListIcon,
4049
- Xi as ListItem,
4050
- Vi as Menu,
4051
- Ni as MenuButton,
4052
- Ui as MenuCommand,
4053
- qi as MenuDivider,
4054
- Ki as MenuGroup,
4055
- Ji as MenuItem,
4056
- Zi as MenuItemOption,
4057
- Qi as MenuList,
4058
- es as MenuOptionGroup,
4059
- rs as Modal,
4060
- ts as ModalBody,
4061
- os as ModalCloseButton,
4062
- ns as ModalContent,
4063
- as as ModalFooter,
4064
- is as ModalHeader,
4065
- ss as ModalOverlay,
4066
- ls as OrderedList,
4067
- ni as Progress,
4068
- Va as Radio,
4069
- ds as RadioGroup,
4070
- cs as Select,
4071
- ti as Show,
4072
- us as Skeleton,
4073
- fs as SkeletonCircle,
4074
- ps as SkeletonText,
4075
- gs as Slider,
4076
- hs as SliderFilledTrack,
4077
- bs as SliderMark,
4078
- ms as SliderThumb,
4079
- ys as SliderTrack,
4080
- vs as Spacer,
4081
- Ss as Spinner,
4082
- xs as Stack,
4083
- ks as Step,
4084
- ws as StepDescription,
4085
- _s as StepIcon,
4086
- Cs as StepIndicator,
4087
- Ts as StepNumber,
4088
- Rs as StepSeparator,
4089
- Es as StepStatus,
4090
- Fs as StepTitle,
4091
- Bs as Stepper,
4092
- Is as Tab,
4093
- zs as TabList,
4094
- Ps as TabPanel,
4095
- $s as TabPanels,
4096
- Ms as Table,
4097
- Os as TableCaption,
4098
- Ds as TableContainer,
4099
- As as Tabs,
4100
- Ws as Tag,
4101
- js as TagCloseButton,
4102
- Ls as TagLabel,
4103
- Gs as TagLeftIcon,
4104
- Ys as TagRightIcon,
4105
- Hs as Tbody,
4106
- Xs as Td,
4107
- Vs as Text,
4108
- Ns as Tfoot,
4109
- Us as Th,
4110
- qs as Thead,
4111
- ai as ThemeProvider,
4112
- Ks as Tooltip,
4113
- Js as Tr,
4114
- Zs as UnorderedList,
4115
- Qs as VStack,
4116
- el as VisuallyHidden,
4117
- rl as extendTheme,
4118
- dl as styled,
4119
- ri as theme,
4120
- tl as useDisclosure,
4121
- ol as useMediaQuery,
4122
- nl as useRadioGroup,
4123
- al as useSteps,
4124
- il as useTab,
4125
- La as useTheme,
4126
- sl as useToken
4127
- };