digital-rabbit-cl 1.0.32 → 1.0.34

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.
@@ -1,8 +1,8 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.Button-module__button___2ZuB7{border-width:.15em;border-style:solid;cursor:pointer;font-weight:700;line-height:1.25;outline:none}.Button-module__button___2ZuB7:disabled{cursor:default}.Button-module__sizeSmall___DRT8P{padding:.1em .5em}.Button-module__sizeDefault___iwWOV{padding:.25em .5em}.Checkbox-module__container___aV9qz{display:flex;align-items:center;line-height:1.2}.Checkbox-module__svg___kkluC{flex-shrink:0}.Checkbox-module__label___cwRtI{font-weight:700;margin-left:.35em;-webkit-user-select:none;user-select:none}:root{--font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--font-size: 16px;--line-height: 1.5;--font-weight-header: 700;--primary-color: #000;--background-color: #fff;--accent-color: #0066cc;--font-size-h1: 2.5rem;--font-size-h2: 1.75rem;--font-size-h3: 1.38316rem;--font-size-h4: 1rem;--font-size-h5: .85028rem;--font-size-h6: .78405rem;--breakpoint-xs: 350px;--breakpoint-sm: 475px;--breakpoint-md: 769px;--breakpoint-lg: 1025px;--layout-max-width: 1280px;--layout-wrapper-padding-sm: .5rem;--layout-wrapper-padding: 1rem}html{line-height:var(--line-height);-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;font-size:var(--font-size);font-family:var(--font-family);box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}body{margin:0;font-family:var(--font-family);font-size:var(--font-size);line-height:var(--line-height);color:var(--primary-color);background-color:var(--background-color);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}main{display:block}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5em;font-weight:var(--font-weight-header)}h1{font-size:var(--font-size-h1)}h2{font-size:var(--font-size-h2)}h3{font-size:var(--font-size-h3)}h4{font-size:var(--font-size-h4)}h5{font-size:var(--font-size-h5)}h6{font-size:var(--font-size-h6)}hr{box-sizing:content-box;height:0;overflow:visible;border:0;border-top:1px solid rgba(0,0,0,.1);margin:1em 0}pre{font-family:monospace,monospace;font-size:1em;overflow:auto}a{background-color:transparent;text-decoration:none}a:link{color:var(--accent-color)}a:hover{text-decoration:underline}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none;max-width:100%;height:auto;vertical-align:middle}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:var(--line-height);margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;cursor:pointer}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto;resize:vertical}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item;cursor:pointer}template,[hidden]{display:none}table{border-collapse:collapse;width:100%}ul,ol{padding-left:1.5em}p{margin-top:0;margin-bottom:1em}.FormLabel-module__label___0M-fo{display:inline-block;font-weight:700;padding-bottom:.25em}.FormLabel-module__label___0M-fo.FormLabel-module__disabled___ktIFp{opacity:.5;cursor:not-allowed}.FormLabel-module__label___0M-fo:not(.FormLabel-module__disabled___ktIFp){cursor:default}.Input-module__input___WjT81{background-color:transparent;border-width:.15em;border-style:solid;box-sizing:border-box;display:block;font-weight:700;line-height:1.25;outline:none;width:100%}.Input-module__input___WjT81::placeholder{color:inherit;opacity:var(--placeholder-opacity, .3)}.Input-module__input___WjT81:disabled{opacity:.3}.Input-module__sizeSmall___NFvsi{padding:.1em .25em}.Input-module__sizeDefault___AxPA0{padding:.25em .5em}.Radio-module__container___AQxhk{display:flex;align-items:center;line-height:1.25}.Radio-module__svg___zl5kF{flex-shrink:0}.Radio-module__label___vAFIP{font-weight:700;margin-left:.35em;-webkit-user-select:none;user-select:none}.Select-module__select___cjdcr{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;background-position:right center;background-repeat:no-repeat;background-size:auto 85%;border-width:.15em;border-style:solid;border-radius:0;box-sizing:border-box;display:block;font-weight:700;line-height:1.25;outline:none;width:100%}.Select-module__select___cjdcr:disabled{cursor:default;opacity:.3}.Select-module__select___cjdcr:not(:disabled){cursor:pointer}.Select-module__sizeSmall___i1quj{padding:.1em 1.75em .1em .25em}.Select-module__sizeDefault___EiWvW{padding:.25em 2em .25em .5em}.Textarea-module__textarea___Z-y6g{background-color:transparent;border-width:.15em;border-style:solid;box-sizing:border-box;display:block;font-weight:700;line-height:1.25;outline:none;width:100%}.Textarea-module__textarea___Z-y6g:disabled{opacity:.3}.Textarea-module__sizeSmall___HHFEM{padding:.1em .25em}.Textarea-module__sizeDefault___LL2Uc{padding:.25em .5em}.Header-module__header___RUooH{width:100%}.Header-module__container___t68M9{display:flex;align-items:center;justify-content:space-between;margin:0 auto;font-size:var(--header-font-size);max-width:var(--header-max-width);padding:var(--header-padding)}.ResponsiveNav-module__nav___xOfv5{display:flex}.ResponsiveNav-module__nav___xOfv5>*,.ResponsiveNav-module__nav___xOfv5>a{color:inherit;font-weight:700;text-decoration:none}.ResponsiveNav-module__navMobile___h795P{background:var(--mobile-nav-background, #0066cc);color:var(--mobile-nav-color, #000);flex-direction:column;font-size:2rem;height:100vh;padding-top:4.25rem;position:fixed;top:0;right:0;text-align:left;text-transform:uppercase;transition:transform .3s ease-in-out;width:100%;z-index:10;transform:translate(100%)}.ResponsiveNav-module__navMobile___h795P.ResponsiveNav-module__open___WDCAf{transform:translate(0)}.ResponsiveNav-module__navMobile___h795P>a{padding:.5rem 3rem;text-align:center;width:100%}.ResponsiveNav-module__navMobile___h795P>a.active,.ResponsiveNav-module__navMobile___h795P>a:hover{background:var(--mobile-nav-active-background, #000);color:var(--mobile-nav-active-color, #0066cc)}.ResponsiveNav-module__navMobile___h795P>button{align-self:center;margin:.75rem 2rem}.ResponsiveNav-module__navMobile___h795P>button:hover{color:var(--mobile-nav-button-hover-text-color, #4381c1)!important}.ResponsiveNav-module__navDesktop___9wscZ{align-items:center;flex-direction:row;height:auto}.ResponsiveNav-module__navDesktop___9wscZ>*{margin-left:1.25rem}.ResponsiveNav-module__navDesktop___9wscZ>a.active,.ResponsiveNav-module__navDesktop___9wscZ>a:hover{opacity:.5}.Hamburger-module__hamburger___Tf4-t{background:transparent;border:none;cursor:pointer;display:none;flex-direction:column;justify-content:space-around;height:2em;outline:none;padding:0;position:fixed;right:1em;width:2em;z-index:11}.Hamburger-module__line___gybZM{background:currentColor;border-radius:var(--hamburger-border-radius, 10px);height:.25em;position:relative;transform-origin:1px;transition:all .3s linear;width:2em}.Hamburger-module__line___gybZM:first-child{transform:rotate(0)}.Hamburger-module__line___gybZM:nth-child(2){opacity:1;transform:translate(0)}.Hamburger-module__line___gybZM:nth-child(3){transform:rotate(0)}.Hamburger-module__hamburger___Tf4-t.Hamburger-module__open___gRswh .Hamburger-module__line___gybZM:first-child{transform:rotate(45deg)}.Hamburger-module__hamburger___Tf4-t.Hamburger-module__open___gRswh .Hamburger-module__line___gybZM:nth-child(2){opacity:0;transform:translate(20px)}.Hamburger-module__hamburger___Tf4-t.Hamburger-module__open___gRswh .Hamburger-module__line___gybZM:nth-child(3){transform:rotate(-45deg)}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
2
- import { jsx as _, jsxs as z, Fragment as ee } from "react/jsx-runtime";
3
- import $, { createContext as te, useContext as oe, useState as Z, useLayoutEffect as se, useSyncExternalStore as ne, useMemo as q, useRef as T, useEffect as j } from "react";
4
- const re = "Button-module__button___2ZuB7", ae = "Button-module__sizeSmall___DRT8P", le = "Button-module__sizeDefault___iwWOV", H = {
5
- button: re,
2
+ import { jsx as p, jsxs as z, Fragment as W } from "react/jsx-runtime";
3
+ import N, { createContext as te, useContext as oe, useState as E, useLayoutEffect as se, useSyncExternalStore as re, useMemo as G, useRef as A, useEffect as D } from "react";
4
+ const ne = "Button-module__button___2ZuB7", ae = "Button-module__sizeSmall___DRT8P", le = "Button-module__sizeDefault___iwWOV", $ = {
5
+ button: ne,
6
6
  sizeSmall: ae,
7
7
  sizeDefault: le
8
8
  }, ce = ({
@@ -10,28 +10,28 @@ const re = "Button-module__button___2ZuB7", ae = "Button-module__sizeSmall___DRT
10
10
  disabled: t,
11
11
  buttonColor: o = "#FFF",
12
12
  textColor: s = "#000",
13
- hoverColor: n,
14
- hoverTextColor: r,
13
+ hoverColor: r,
14
+ hoverTextColor: n,
15
15
  outline: l
16
16
  }) => {
17
17
  let a, i, u;
18
- l ? (a = "transparent", i = o, u = o, e && (a = n || o, i = n || o, u = r || s)) : (a = o, i = o, u = s, e && (a = n || o, i = n || o, u = r || s));
19
- let y = 1;
20
- return t ? y = 0.3 : e && (y = n || l ? 1 : 0.75), {
18
+ l ? (a = "transparent", i = o, u = o, e && (a = r || o, i = r || o, u = n || s)) : (a = o, i = o, u = s, e && (a = r || o, i = r || o, u = n || s));
19
+ let f = 1;
20
+ return t ? f = 0.3 : e && (f = r || l ? 1 : 0.75), {
21
21
  backgroundColor: a,
22
22
  borderColor: i,
23
23
  color: u,
24
- opacity: y
24
+ opacity: f
25
25
  };
26
- }, V = {
26
+ }, O = {
27
27
  primary: "#FFF",
28
28
  secondary: "#000",
29
29
  accent: "#4381C1",
30
30
  error: "#F00",
31
31
  success: "#008000",
32
32
  warning: "#FFEB3B"
33
- }, v = {
34
- colors: V,
33
+ }, x = {
34
+ colors: O,
35
35
  fonts: {
36
36
  color: "#000",
37
37
  lineHeight: 1.5,
@@ -49,7 +49,7 @@ const re = "Button-module__button___2ZuB7", ae = "Button-module__sizeSmall___DRT
49
49
  buttons: {
50
50
  textColor: "#FFF",
51
51
  primary: {
52
- textColor: V.secondary
52
+ textColor: O.secondary
53
53
  }
54
54
  },
55
55
  borderRadius: "0px",
@@ -64,78 +64,78 @@ const re = "Button-module__button___2ZuB7", ae = "Button-module__sizeSmall___DRT
64
64
  wrapperPaddingSm: "0.5rem",
65
65
  wrapperPadding: "1rem"
66
66
  }
67
- }, G = te(v), Je = ({ theme: e = {}, children: t }) => {
67
+ }, J = te(x), Ke = ({ theme: e = {}, children: t }) => {
68
68
  var s;
69
69
  const o = {
70
- ...v,
70
+ ...x,
71
71
  ...e,
72
72
  colors: {
73
- ...v.colors,
73
+ ...x.colors,
74
74
  ...e.colors
75
75
  },
76
76
  fonts: {
77
- ...v.fonts,
77
+ ...x.fonts,
78
78
  ...e.fonts
79
79
  },
80
80
  buttons: {
81
- ...v.buttons,
81
+ ...x.buttons,
82
82
  ...e.buttons,
83
83
  primary: {
84
- ...v.buttons.primary,
84
+ ...x.buttons.primary,
85
85
  ...(s = e.buttons) == null ? void 0 : s.primary
86
86
  }
87
87
  },
88
88
  breakpoints: {
89
- ...v.breakpoints,
89
+ ...x.breakpoints,
90
90
  ...e.breakpoints
91
91
  },
92
92
  layout: {
93
- ...v.layout,
93
+ ...x.layout,
94
94
  ...e.layout
95
95
  }
96
96
  };
97
- return /* @__PURE__ */ _(G.Provider, { value: o, children: t });
98
- }, h = () => oe(G), Ke = ({
97
+ return /* @__PURE__ */ p(J.Provider, { value: o, children: t });
98
+ }, _ = () => oe(J), Xe = ({
99
99
  color: e,
100
100
  hoverColor: t,
101
101
  hoverTextColor: o,
102
102
  textColor: s,
103
- outline: n = !1,
104
- size: r,
103
+ outline: r = !1,
104
+ size: n,
105
105
  type: l = "button",
106
106
  buttonProps: a = {},
107
107
  children: i,
108
108
  disabled: u = !1,
109
- onClick: y,
110
- fontSize: d
109
+ onClick: f,
110
+ fontSize: m
111
111
  }) => {
112
- const m = h(), [c, p] = Z(!1);
113
- let f;
114
- s ? f = s : f = e ? m.buttons.textColor : m.buttons.primary.textColor;
112
+ const d = _(), [c, y] = E(!1);
113
+ let h;
114
+ s ? h = s : h = e ? d.buttons.textColor : d.buttons.primary.textColor;
115
115
  const g = {
116
116
  ...ce({
117
117
  isActive: c,
118
118
  disabled: u,
119
- buttonColor: e || m.colors.primary,
120
- textColor: f,
119
+ buttonColor: e || d.colors.primary,
120
+ textColor: h,
121
121
  hoverColor: t,
122
122
  hoverTextColor: o,
123
- outline: n
123
+ outline: r
124
124
  }),
125
- fontSize: d || m.fonts.size
125
+ fontSize: m || d.fonts.size
126
126
  }, S = [
127
- H.button,
128
- r === "small" ? H.sizeSmall : H.sizeDefault,
129
- n ? H.outline : ""
127
+ $.button,
128
+ n === "small" ? $.sizeSmall : $.sizeDefault,
129
+ r ? $.outline : ""
130
130
  ].filter(Boolean).join(" ");
131
- return /* @__PURE__ */ _(
131
+ return /* @__PURE__ */ p(
132
132
  "button",
133
133
  {
134
134
  className: S,
135
135
  disabled: u,
136
- onClick: y,
137
- onMouseEnter: () => p(!0),
138
- onMouseLeave: () => p(!1),
136
+ onClick: f,
137
+ onMouseEnter: () => y(!0),
138
+ onMouseLeave: () => y(!1),
139
139
  type: l,
140
140
  ...a,
141
141
  style: {
@@ -146,30 +146,30 @@ const re = "Button-module__button___2ZuB7", ae = "Button-module__sizeSmall___DRT
146
146
  }
147
147
  );
148
148
  };
149
- var A = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto < "u" && typeof msCrypto.getRandomValues == "function" && msCrypto.getRandomValues.bind(msCrypto), ie = new Uint8Array(16);
149
+ var U = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto < "u" && typeof msCrypto.getRandomValues == "function" && msCrypto.getRandomValues.bind(msCrypto), ie = new Uint8Array(16);
150
150
  function ue() {
151
- if (!A)
151
+ if (!U)
152
152
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
153
- return A(ie);
153
+ return U(ie);
154
154
  }
155
- var J = [];
156
- for (var P = 0; P < 256; ++P)
157
- J[P] = (P + 256).toString(16).substr(1);
158
- function me(e, t) {
159
- var o = 0, s = J;
155
+ var K = [];
156
+ for (var H = 0; H < 256; ++H)
157
+ K[H] = (H + 256).toString(16).substr(1);
158
+ function de(e, t) {
159
+ var o = 0, s = K;
160
160
  return [s[e[o++]], s[e[o++]], s[e[o++]], s[e[o++]], "-", s[e[o++]], s[e[o++]], "-", s[e[o++]], s[e[o++]], "-", s[e[o++]], s[e[o++]], "-", s[e[o++]], s[e[o++]], s[e[o++]], s[e[o++]], s[e[o++]], s[e[o++]]].join("");
161
161
  }
162
- function K(e, t, o) {
162
+ function X(e, t, o) {
163
163
  var s = t && o || 0;
164
164
  typeof e == "string" && (t = e === "binary" ? new Array(16) : null, e = null), e = e || {};
165
- var n = e.random || (e.rng || ue)();
166
- if (n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, t)
167
- for (var r = 0; r < 16; ++r)
168
- t[s + r] = n[r];
169
- return t || me(n);
165
+ var r = e.random || (e.rng || ue)();
166
+ if (r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, t)
167
+ for (var n = 0; n < 16; ++n)
168
+ t[s + n] = r[n];
169
+ return t || de(r);
170
170
  }
171
- const de = "Checkbox-module__container___aV9qz", pe = "Checkbox-module__svg___kkluC", ye = "Checkbox-module__label___cwRtI", R = {
172
- container: de,
171
+ const me = "Checkbox-module__container___aV9qz", pe = "Checkbox-module__svg___kkluC", ye = "Checkbox-module__label___cwRtI", R = {
172
+ container: me,
173
173
  svg: pe,
174
174
  label: ye
175
175
  }, fe = ({
@@ -178,56 +178,56 @@ const de = "Checkbox-module__container___aV9qz", pe = "Checkbox-module__svg___kk
178
178
  disabled: o = !1,
179
179
  inverted: s = !1
180
180
  }) => {
181
- let n = e;
182
- return t ? n = t : s && (n = "white"), {
181
+ let r = e;
182
+ return t ? r = t : s && (r = "white"), {
183
183
  boxColor: e,
184
- checkmarkColor: n,
184
+ checkmarkColor: r,
185
185
  cursor: o ? "default" : "pointer",
186
186
  opacity: o ? 0.3 : 1
187
187
  };
188
- }, Xe = ({
188
+ }, Ye = ({
189
189
  checked: e = !1,
190
190
  checkmarkColor: t,
191
191
  color: o,
192
192
  disabled: s = !1,
193
- fontSize: n,
194
- id: r,
193
+ fontSize: r,
194
+ id: n,
195
195
  inverted: l = !1,
196
196
  label: a,
197
197
  labelStyle: i,
198
198
  name: u,
199
- onChange: y,
200
- style: d,
201
- ...m
199
+ onChange: f,
200
+ style: m,
201
+ ...d
202
202
  }) => {
203
- const c = h(), p = r || K(), f = fe({
203
+ const c = _(), y = n || X(), h = fe({
204
204
  color: o || c.colors.primary,
205
205
  checkmarkColor: t,
206
206
  disabled: s,
207
207
  inverted: l
208
- }), b = (x) => {
209
- s || y(x);
208
+ }), b = (v) => {
209
+ s || f(v);
210
210
  }, g = {
211
- cursor: f.cursor,
212
- fontSize: n || c.fonts.size,
213
- opacity: f.opacity,
214
- ...d
211
+ cursor: h.cursor,
212
+ fontSize: r || c.fonts.size,
213
+ opacity: h.opacity,
214
+ ...m
215
215
  }, S = {
216
- width: n || "1rem"
216
+ width: r || "1rem"
217
217
  }, w = {
218
- color: f.boxColor,
219
- cursor: f.cursor,
220
- fontSize: n || "1rem",
218
+ color: h.boxColor,
219
+ cursor: h.cursor,
220
+ fontSize: r || "1rem",
221
221
  ...i
222
222
  };
223
- return /* @__PURE__ */ z("div", { className: R.container, style: g, ...m, children: [
224
- /* @__PURE__ */ _(
223
+ return /* @__PURE__ */ z("div", { className: R.container, style: g, ...d, children: [
224
+ /* @__PURE__ */ p(
225
225
  "input",
226
226
  {
227
- id: p,
227
+ id: y,
228
228
  checked: e,
229
229
  disabled: s,
230
- onChange: (x) => b({ target: { checked: x.target.checked, name: u, type: "checkbox" } }),
230
+ onChange: (v) => b({ target: { checked: v.target.checked, name: u, type: "checkbox" } }),
231
231
  name: u,
232
232
  style: { display: "none" },
233
233
  type: "checkbox"
@@ -242,7 +242,7 @@ const de = "Checkbox-module__container___aV9qz", pe = "Checkbox-module__svg___kk
242
242
  style: S,
243
243
  className: R.svg,
244
244
  children: [
245
- /* @__PURE__ */ _(
245
+ /* @__PURE__ */ p(
246
246
  "rect",
247
247
  {
248
248
  x: "0",
@@ -250,17 +250,17 @@ const de = "Checkbox-module__container___aV9qz", pe = "Checkbox-module__svg___kk
250
250
  height: "100",
251
251
  width: "100",
252
252
  style: {
253
- fill: l && e ? f.boxColor : "transparent",
253
+ fill: l && e ? h.boxColor : "transparent",
254
254
  strokeWidth: "25",
255
- stroke: f.boxColor
255
+ stroke: h.boxColor
256
256
  }
257
257
  }
258
258
  ),
259
- e && /* @__PURE__ */ _(
259
+ e && /* @__PURE__ */ p(
260
260
  "path",
261
261
  {
262
262
  d: "M 25 45 L 45 65 L 75 30",
263
- stroke: f.checkmarkColor,
263
+ stroke: h.checkmarkColor,
264
264
  strokeWidth: "15",
265
265
  fill: "transparent"
266
266
  }
@@ -268,17 +268,17 @@ const de = "Checkbox-module__container___aV9qz", pe = "Checkbox-module__svg___kk
268
268
  ]
269
269
  }
270
270
  ),
271
- a && /* @__PURE__ */ _("label", { htmlFor: p, className: R.label, style: w, children: a })
271
+ a && /* @__PURE__ */ p("label", { htmlFor: y, className: R.label, style: w, children: a })
272
272
  ] });
273
- }, Ye = () => {
274
- const e = h();
273
+ }, et = () => {
274
+ const e = _();
275
275
  return se(() => {
276
276
  const t = document.documentElement;
277
277
  e.fonts && (e.fonts.fontFamily && t.style.setProperty("--font-family", e.fonts.fontFamily), e.fonts.size && t.style.setProperty("--font-size", e.fonts.size), e.fonts.lineHeight !== void 0 && t.style.setProperty("--line-height", e.fonts.lineHeight.toString()), e.fonts.fontWeightHeader !== void 0 && t.style.setProperty("--font-weight-header", e.fonts.fontWeightHeader.toString()), e.fonts.fontSizeH1 && t.style.setProperty("--font-size-h1", e.fonts.fontSizeH1), e.fonts.fontSizeH2 && t.style.setProperty("--font-size-h2", e.fonts.fontSizeH2), e.fonts.fontSizeH3 && t.style.setProperty("--font-size-h3", e.fonts.fontSizeH3), e.fonts.fontSizeH4 && t.style.setProperty("--font-size-h4", e.fonts.fontSizeH4), e.fonts.fontSizeH5 && t.style.setProperty("--font-size-h5", e.fonts.fontSizeH5), e.fonts.fontSizeH6 && t.style.setProperty("--font-size-h6", e.fonts.fontSizeH6)), e.colors && (e.colors.primary && t.style.setProperty("--primary-color", e.colors.primary), e.colors.secondary && t.style.setProperty("--background-color", e.colors.secondary), e.colors.accent && t.style.setProperty("--accent-color", e.colors.accent)), e.breakpoints && (e.breakpoints.xs && t.style.setProperty("--breakpoint-xs", e.breakpoints.xs), e.breakpoints.sm && t.style.setProperty("--breakpoint-sm", e.breakpoints.sm), e.breakpoints.md && t.style.setProperty("--breakpoint-md", e.breakpoints.md), e.breakpoints.lg && t.style.setProperty("--breakpoint-lg", e.breakpoints.lg)), e.layout && (e.layout.maxWidth && t.style.setProperty("--layout-max-width", e.layout.maxWidth), e.layout.wrapperPaddingSm && t.style.setProperty("--layout-wrapper-padding-sm", e.layout.wrapperPaddingSm), e.layout.wrapperPadding && t.style.setProperty("--layout-wrapper-padding", e.layout.wrapperPadding));
278
278
  }, [e]), null;
279
- }, _e = "FormLabel-module__label___0M-fo", he = "FormLabel-module__disabled___ktIFp", O = {
280
- label: _e,
281
- disabled: he
279
+ }, he = "FormLabel-module__label___0M-fo", _e = "FormLabel-module__disabled___ktIFp", q = {
280
+ label: he,
281
+ disabled: _e
282
282
  }, ge = ({
283
283
  color: e = "#000",
284
284
  disabled: t = !1,
@@ -288,16 +288,16 @@ const de = "Checkbox-module__container___aV9qz", pe = "Checkbox-module__svg___kk
288
288
  fontSize: o,
289
289
  opacity: t ? 0.5 : 1,
290
290
  cursor: t ? "not-allowed" : "default"
291
- }), et = ({
291
+ }), tt = ({
292
292
  children: e,
293
293
  color: t,
294
294
  disabled: o = !1,
295
295
  fontSize: s,
296
- htmlFor: n,
297
- style: r,
296
+ htmlFor: r,
297
+ style: n,
298
298
  ...l
299
299
  }) => {
300
- const a = h(), i = ge({
300
+ const a = _(), i = ge({
301
301
  color: t || a.colors.primary,
302
302
  disabled: o,
303
303
  fontSize: s || ".85em"
@@ -306,26 +306,26 @@ const de = "Checkbox-module__container___aV9qz", pe = "Checkbox-module__svg___kk
306
306
  fontSize: i.fontSize,
307
307
  opacity: i.opacity,
308
308
  cursor: i.cursor,
309
- ...r
310
- }, y = [
311
- O.label,
312
- o ? O.disabled : ""
309
+ ...n
310
+ }, f = [
311
+ q.label,
312
+ o ? q.disabled : ""
313
313
  ].filter(Boolean).join(" ");
314
- return /* @__PURE__ */ _(
314
+ return /* @__PURE__ */ p(
315
315
  "label",
316
316
  {
317
- className: y,
318
- htmlFor: n,
317
+ className: f,
318
+ htmlFor: r,
319
319
  style: u,
320
320
  ...l,
321
321
  children: e
322
322
  }
323
323
  );
324
- }, Se = "Input-module__input___WjT81", be = "Input-module__sizeSmall___NFvsi", xe = "Input-module__sizeDefault___AxPA0", F = {
324
+ }, Se = "Input-module__input___WjT81", be = "Input-module__sizeSmall___NFvsi", ve = "Input-module__sizeDefault___AxPA0", F = {
325
325
  input: Se,
326
326
  sizeSmall: be,
327
- sizeDefault: xe
328
- }, ve = ({
327
+ sizeDefault: ve
328
+ }, xe = ({
329
329
  color: e = "#000",
330
330
  disabled: t = !1,
331
331
  fontSize: o = "1em",
@@ -336,51 +336,51 @@ const de = "Checkbox-module__container___aV9qz", pe = "Checkbox-module__svg___kk
336
336
  fontSize: o,
337
337
  opacity: t ? 0.3 : 1,
338
338
  placeholderOpacity: s
339
- }), tt = ({
339
+ }), ot = ({
340
340
  color: e,
341
341
  disabled: t = !1,
342
342
  fontSize: o,
343
343
  name: s = "",
344
- onChange: n,
345
- placeholder: r,
344
+ onChange: r,
345
+ placeholder: n,
346
346
  placeholderOpacity: l = 0.3,
347
347
  size: a,
348
348
  style: i,
349
349
  type: u = "text",
350
- value: y = "",
351
- ...d
350
+ value: f = "",
351
+ ...m
352
352
  }) => {
353
- const m = h(), c = ve({
354
- color: e || m.colors.primary,
353
+ const d = _(), c = xe({
354
+ color: e || d.colors.primary,
355
355
  disabled: t,
356
- fontSize: o || m.fonts.size,
356
+ fontSize: o || d.fonts.size,
357
357
  placeholderOpacity: l
358
- }), p = {
358
+ }), y = {
359
359
  "--placeholder-opacity": c.placeholderOpacity,
360
360
  borderColor: c.borderColor,
361
361
  color: c.color,
362
362
  fontSize: c.fontSize,
363
363
  opacity: c.opacity,
364
364
  ...i
365
- }, f = [
365
+ }, h = [
366
366
  F.input,
367
367
  a === "small" ? F.sizeSmall : F.sizeDefault
368
368
  ].filter(Boolean).join(" ");
369
- return /* @__PURE__ */ _(
369
+ return /* @__PURE__ */ p(
370
370
  "input",
371
371
  {
372
- className: f,
372
+ className: h,
373
373
  disabled: t,
374
374
  name: s,
375
- onChange: n,
376
- placeholder: r,
377
- style: p,
375
+ onChange: r,
376
+ placeholder: n,
377
+ style: y,
378
378
  type: u,
379
- value: y,
380
- ...d
379
+ value: f,
380
+ ...m
381
381
  }
382
382
  );
383
- }, ze = "Radio-module__container___AQxhk", ke = "Radio-module__svg___zl5kF", we = "Radio-module__label___vAFIP", M = {
383
+ }, ze = "Radio-module__container___AQxhk", ke = "Radio-module__svg___zl5kF", we = "Radio-module__label___vAFIP", I = {
384
384
  container: ze,
385
385
  svg: ke,
386
386
  label: we
@@ -391,31 +391,31 @@ const de = "Checkbox-module__container___aV9qz", pe = "Checkbox-module__svg___kk
391
391
  radioColor: e,
392
392
  cursor: t ? "default" : "pointer",
393
393
  opacity: t ? 0.3 : 1
394
- }), ot = ({
394
+ }), st = ({
395
395
  checked: e = !1,
396
396
  color: t,
397
397
  disabled: o = !1,
398
398
  fontSize: s,
399
- id: n,
400
- label: r,
399
+ id: r,
400
+ label: n,
401
401
  labelStyle: l,
402
402
  name: a,
403
403
  onChange: i,
404
404
  style: u,
405
- ...y
405
+ ...f
406
406
  }) => {
407
- const d = h(), m = n || K(), c = Ce({
408
- color: t || d.colors.primary,
407
+ const m = _(), d = r || X(), c = Ce({
408
+ color: t || m.colors.primary,
409
409
  disabled: o
410
- }), p = (x) => {
411
- o || i(x);
412
- }, f = {
410
+ }), y = (v) => {
411
+ o || i(v);
412
+ }, h = {
413
413
  cursor: c.cursor,
414
- fontSize: s || d.fonts.size,
414
+ fontSize: s || m.fonts.size,
415
415
  opacity: c.opacity,
416
416
  ...u
417
417
  }, b = {
418
- width: s || d.fonts.size
418
+ width: s || m.fonts.size
419
419
  }, g = {
420
420
  fill: "transparent",
421
421
  strokeWidth: "12.5",
@@ -425,18 +425,18 @@ const de = "Checkbox-module__container___aV9qz", pe = "Checkbox-module__svg___kk
425
425
  }, w = {
426
426
  color: c.radioColor,
427
427
  cursor: c.cursor,
428
- fontSize: s || d.fonts.size,
428
+ fontSize: s || m.fonts.size,
429
429
  ...l
430
430
  };
431
- return /* @__PURE__ */ z("div", { className: M.container, style: f, ...y, children: [
432
- /* @__PURE__ */ _(
431
+ return /* @__PURE__ */ z("div", { className: I.container, style: h, ...f, children: [
432
+ /* @__PURE__ */ p(
433
433
  "input",
434
434
  {
435
- id: m,
435
+ id: d,
436
436
  checked: e,
437
437
  disabled: o,
438
438
  name: a,
439
- onChange: (x) => p({ target: { checked: x.target.checked, name: a, type: "radio" } }),
439
+ onChange: (v) => y({ target: { checked: v.target.checked, name: a, type: "radio" } }),
440
440
  style: { display: "none" },
441
441
  type: "radio"
442
442
  }
@@ -446,11 +446,11 @@ const de = "Checkbox-module__container___aV9qz", pe = "Checkbox-module__svg___kk
446
446
  {
447
447
  xmlns: "http://www.w3.org/2000/svg",
448
448
  viewBox: "0 0 100 100",
449
- onClick: () => p({ target: { checked: !e, name: a, type: "radio" } }),
450
- className: M.svg,
449
+ onClick: () => y({ target: { checked: !e, name: a, type: "radio" } }),
450
+ className: I.svg,
451
451
  style: b,
452
452
  children: [
453
- /* @__PURE__ */ _(
453
+ /* @__PURE__ */ p(
454
454
  "circle",
455
455
  {
456
456
  cx: "50",
@@ -460,7 +460,7 @@ const de = "Checkbox-module__container___aV9qz", pe = "Checkbox-module__svg___kk
460
460
  style: g
461
461
  }
462
462
  ),
463
- e && /* @__PURE__ */ _(
463
+ e && /* @__PURE__ */ p(
464
464
  "circle",
465
465
  {
466
466
  cx: "50",
@@ -472,21 +472,21 @@ const de = "Checkbox-module__container___aV9qz", pe = "Checkbox-module__svg___kk
472
472
  ]
473
473
  }
474
474
  ),
475
- r && /* @__PURE__ */ _(
475
+ n && /* @__PURE__ */ p(
476
476
  "label",
477
477
  {
478
- htmlFor: m,
479
- className: M.label,
478
+ htmlFor: d,
479
+ className: I.label,
480
480
  style: w,
481
- children: r
481
+ children: n
482
482
  }
483
483
  )
484
484
  ] });
485
- }, He = "Select-module__select___cjdcr", Pe = "Select-module__sizeSmall___i1quj", Ne = "Select-module__sizeDefault___EiWvW", I = {
486
- select: He,
487
- sizeSmall: Pe,
488
- sizeDefault: Ne
489
- }, $e = ({
485
+ }, $e = "Select-module__select___cjdcr", He = "Select-module__sizeSmall___i1quj", Pe = "Select-module__sizeDefault___EiWvW", M = {
486
+ select: $e,
487
+ sizeSmall: He,
488
+ sizeDefault: Pe
489
+ }, Ne = ({
490
490
  color: e = "#000",
491
491
  disabled: t = !1
492
492
  }) => ({
@@ -494,18 +494,18 @@ const de = "Checkbox-module__container___aV9qz", pe = "Checkbox-module__svg___kk
494
494
  borderColor: e,
495
495
  cursor: t ? "default" : "pointer",
496
496
  opacity: t ? 0.3 : 1,
497
- backgroundImage: ((r) => {
497
+ backgroundImage: ((n) => {
498
498
  const l = `
499
499
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
500
500
  <path
501
501
  d="M 30 42.5 L 50 22.5 L 70 42.5"
502
- stroke="${r}"
502
+ stroke="${n}"
503
503
  stroke-width="11"
504
504
  fill="transparent"
505
505
  />
506
506
  <path
507
507
  d="M 30 58.5 L 50 78.5 L 70 58.5"
508
- stroke="${r}"
508
+ stroke="${n}"
509
509
  stroke-width="11"
510
510
  fill="transparent"
511
511
  />
@@ -513,59 +513,59 @@ const de = "Checkbox-module__container___aV9qz", pe = "Checkbox-module__svg___kk
513
513
  `.trim();
514
514
  return `url("data:image/svg+xml,${encodeURIComponent(l)}")`;
515
515
  })(e)
516
- }), st = ({
516
+ }), rt = ({
517
517
  children: e,
518
518
  color: t,
519
519
  disabled: o = !1,
520
520
  fontSize: s,
521
- name: n = "",
522
- onChange: r,
521
+ name: r = "",
522
+ onChange: n,
523
523
  placeholder: l = "",
524
524
  size: a,
525
525
  style: i,
526
526
  value: u = "",
527
- ...y
527
+ ...f
528
528
  }) => {
529
- const d = h(), m = $e({
530
- color: t || d.colors.primary,
529
+ const m = _(), d = Ne({
530
+ color: t || m.colors.primary,
531
531
  disabled: o
532
532
  }), c = {
533
- backgroundImage: m.backgroundImage,
533
+ backgroundImage: d.backgroundImage,
534
534
  backgroundPosition: "right center",
535
535
  backgroundRepeat: "no-repeat",
536
536
  backgroundSize: "auto 85%",
537
537
  backgroundColor: "transparent",
538
- borderColor: m.borderColor,
539
- color: m.color,
540
- cursor: m.cursor,
541
- fontSize: s || d.fonts.size,
542
- opacity: m.opacity,
538
+ borderColor: d.borderColor,
539
+ color: d.color,
540
+ cursor: d.cursor,
541
+ fontSize: s || m.fonts.size,
542
+ opacity: d.opacity,
543
543
  ...i
544
- }, p = [
545
- I.select,
546
- a === "small" ? I.sizeSmall : I.sizeDefault
544
+ }, y = [
545
+ M.select,
546
+ a === "small" ? M.sizeSmall : M.sizeDefault
547
547
  ].filter(Boolean).join(" ");
548
548
  return /* @__PURE__ */ z(
549
549
  "select",
550
550
  {
551
- className: p,
551
+ className: y,
552
552
  disabled: o,
553
- name: n,
554
- onChange: r,
553
+ name: r,
554
+ onChange: n,
555
555
  style: c,
556
556
  value: u,
557
- ...y,
557
+ ...f,
558
558
  children: [
559
- l !== "" && /* @__PURE__ */ _("option", { disabled: !0, value: "", children: l }),
559
+ l !== "" && /* @__PURE__ */ p("option", { disabled: !0, value: "", children: l }),
560
560
  e
561
561
  ]
562
562
  }
563
563
  );
564
- }, Re = "Textarea-module__textarea___Z-y6g", Fe = "Textarea-module__sizeSmall___HHFEM", Me = "Textarea-module__sizeDefault___LL2Uc", B = {
564
+ }, Re = "Textarea-module__textarea___Z-y6g", Fe = "Textarea-module__sizeSmall___HHFEM", Ie = "Textarea-module__sizeDefault___LL2Uc", B = {
565
565
  textarea: Re,
566
566
  sizeSmall: Fe,
567
- sizeDefault: Me
568
- }, Ie = ({
567
+ sizeDefault: Ie
568
+ }, Me = ({
569
569
  color: e = "#000",
570
570
  disabled: t = !1,
571
571
  placeholderOpacity: o = 0.3
@@ -579,102 +579,102 @@ const de = "Checkbox-module__container___aV9qz", pe = "Checkbox-module__svg___kk
579
579
  disabled: t = !1,
580
580
  fontSize: o,
581
581
  name: s = "",
582
- onChange: n,
583
- placeholder: r,
582
+ onChange: r,
583
+ placeholder: n,
584
584
  placeholderOpacity: l = 0.3,
585
585
  rows: a = 3,
586
586
  size: i,
587
587
  style: u,
588
- value: y = "",
589
- ...d
588
+ value: f = "",
589
+ ...m
590
590
  }) => {
591
- const m = h(), c = Ie({
592
- color: e || m.colors.primary,
591
+ const d = _(), c = Me({
592
+ color: e || d.colors.primary,
593
593
  disabled: t,
594
594
  placeholderOpacity: l
595
- }), p = `textarea-placeholder-${$.useId ? $.useId() : Math.random().toString(36)}`;
596
- $.useEffect(() => {
595
+ }), y = `textarea-placeholder-${N.useId ? N.useId() : Math.random().toString(36)}`;
596
+ N.useEffect(() => {
597
597
  const g = document.createElement("style");
598
- return g.id = p, g.textContent = `
599
- .${p}::placeholder {
598
+ return g.id = y, g.textContent = `
599
+ .${y}::placeholder {
600
600
  color: inherit;
601
601
  opacity: ${c.placeholderOpacity};
602
602
  }
603
603
  `, document.head.appendChild(g), () => {
604
- const S = document.getElementById(p);
604
+ const S = document.getElementById(y);
605
605
  S && S.remove();
606
606
  };
607
- }, [p, c.placeholderOpacity]);
608
- const f = {
607
+ }, [y, c.placeholderOpacity]);
608
+ const h = {
609
609
  borderColor: c.borderColor,
610
610
  color: c.color,
611
- fontSize: o || m.fonts.size,
611
+ fontSize: o || d.fonts.size,
612
612
  opacity: c.opacity,
613
613
  ...u
614
614
  }, b = [
615
615
  B.textarea,
616
616
  i === "small" ? B.sizeSmall : B.sizeDefault,
617
- p
617
+ y
618
618
  ].filter(Boolean).join(" ");
619
- return /* @__PURE__ */ _(
619
+ return /* @__PURE__ */ p(
620
620
  "textarea",
621
621
  {
622
622
  className: b,
623
623
  disabled: t,
624
624
  name: s,
625
- onChange: n,
626
- placeholder: r,
625
+ onChange: r,
626
+ placeholder: n,
627
627
  rows: a,
628
- style: f,
629
- value: y,
630
- ...d
628
+ style: h,
629
+ value: f,
630
+ ...m
631
631
  }
632
632
  );
633
- }, Be = "Header-module__header___RUooH", De = "Header-module__container___t68M9", U = {
633
+ }, Be = "Header-module__header___RUooH", De = "Header-module__container___t68M9", Q = {
634
634
  header: Be,
635
635
  container: De
636
- }, We = ({
636
+ }, Le = ({
637
637
  isSmallScreen: e = !1,
638
638
  maxWidth: t,
639
639
  paddingSm: o,
640
640
  padding: s,
641
- fontSize: n
641
+ fontSize: r
642
642
  } = {}) => {
643
- const r = h();
643
+ const n = _();
644
644
  return {
645
- "--header-max-width": t || r.layout.maxWidth,
646
- "--header-padding": e ? o || r.layout.wrapperPaddingSm : s || r.layout.wrapperPadding,
647
- "--header-font-size": e ? "0.75rem" : n || r.fonts.size
645
+ "--header-max-width": t || n.layout.maxWidth,
646
+ "--header-padding": e ? o || n.layout.wrapperPaddingSm : s || n.layout.wrapperPadding,
647
+ "--header-font-size": e ? "0.75rem" : r || n.fonts.size
648
648
  };
649
- }, D = (e) => {
649
+ }, L = (e) => {
650
650
  const t = typeof window < "u" && typeof window.matchMedia == "function";
651
- return ne((r) => {
651
+ return re((n) => {
652
652
  if (!t) return () => {
653
653
  };
654
654
  const l = window.matchMedia(e);
655
- return l.addEventListener("change", r), () => l.removeEventListener("change", r);
655
+ return l.addEventListener("change", n), () => l.removeEventListener("change", n);
656
656
  }, () => t ? window.matchMedia(e).matches : !1, () => !1);
657
- }, rt = ({
657
+ }, at = ({
658
658
  children: e,
659
659
  breakPointSm: t,
660
660
  maxWidth: o,
661
661
  paddingSm: s,
662
- padding: n,
663
- fontSize: r,
662
+ padding: r,
663
+ fontSize: n,
664
664
  style: l = {},
665
665
  headerProps: a = {},
666
666
  headerRef: i
667
667
  }) => {
668
- const u = h(), d = (t || u.breakpoints.sm).match(/^(\d+(?:\.\d+)?)(px|em|rem)$/), m = d ? parseInt(d[1], 10) - 1 : 474, c = d ? d[2] : "px", p = D(`(max-width: ${m}${c})`), f = We({
669
- isSmallScreen: p,
668
+ const u = _(), m = (t || u.breakpoints.sm).match(/^(\d+(?:\.\d+)?)(px|em|rem)$/), d = m ? parseInt(m[1], 10) - 1 : 474, c = m ? m[2] : "px", y = L(`(max-width: ${d}${c})`), h = Le({
669
+ isSmallScreen: y,
670
670
  maxWidth: o,
671
671
  paddingSm: s,
672
- padding: n,
673
- fontSize: r
672
+ padding: r,
673
+ fontSize: n
674
674
  });
675
- return /* @__PURE__ */ _("header", { ref: i, className: U.header, ...a, children: /* @__PURE__ */ _("div", { className: U.container, style: { ...f, ...l }, children: e }) });
676
- }, Le = "ResponsiveNav-module__nav___xOfv5", Ee = "ResponsiveNav-module__navMobile___h795P", Te = "ResponsiveNav-module__open___WDCAf", je = "ResponsiveNav-module__navDesktop___9wscZ", N = {
677
- nav: Le,
675
+ return /* @__PURE__ */ p("header", { ref: i, className: Q.header, ...a, children: /* @__PURE__ */ p("div", { className: Q.container, style: { ...h, ...l }, children: e }) });
676
+ }, We = "ResponsiveNav-module__nav___xOfv5", Ee = "ResponsiveNav-module__navMobile___h795P", Te = "ResponsiveNav-module__open___WDCAf", je = "ResponsiveNav-module__navDesktop___9wscZ", P = {
677
+ nav: We,
678
678
  navMobile: Ee,
679
679
  open: Te,
680
680
  navDesktop: je
@@ -683,24 +683,24 @@ const de = "Checkbox-module__container___aV9qz", pe = "Checkbox-module__svg___kk
683
683
  isCompact: t,
684
684
  mobileBackground: o,
685
685
  mobileColor: s,
686
- mobileActiveBackground: n,
687
- mobileActiveColor: r,
686
+ mobileActiveBackground: r,
687
+ mobileActiveColor: n,
688
688
  mobileButtonHoverColor: l
689
689
  }) => {
690
- const a = h();
691
- return q(() => ({
690
+ const a = _();
691
+ return G(() => ({
692
692
  ...e ? {
693
693
  "--mobile-nav-background": o || a.colors.accent,
694
694
  "--mobile-nav-color": s || a.colors.primary,
695
- "--mobile-nav-active-background": n || a.colors.primary,
696
- "--mobile-nav-active-color": r || a.colors.accent,
695
+ "--mobile-nav-active-background": r || a.colors.primary,
696
+ "--mobile-nav-active-color": n || a.colors.accent,
697
697
  "--mobile-nav-button-hover-text-color": l || o || a.colors.accent
698
698
  } : {}
699
699
  }), [
700
700
  o,
701
701
  s,
702
- n,
703
702
  r,
703
+ n,
704
704
  l,
705
705
  a.colors.accent,
706
706
  a.colors.primary,
@@ -711,128 +711,177 @@ const de = "Checkbox-module__container___aV9qz", pe = "Checkbox-module__svg___kk
711
711
  hamburger: Ae,
712
712
  line: Oe,
713
713
  open: Ue
714
- }, Qe = ({ compact: e, color: t, visible: o, borderRadius: s }) => {
715
- const n = h();
716
- return q(() => {
717
- const r = e ? { right: ".5em" } : {};
714
+ }, qe = ({ compact: e, color: t, visible: o, borderRadius: s }) => {
715
+ const r = _();
716
+ return G(() => {
717
+ const n = e ? { right: ".5em" } : {};
718
718
  return {
719
- "--hamburger-border-radius": s || n.borderRadius || "10px",
719
+ "--hamburger-border-radius": s || r.borderRadius || "10px",
720
720
  color: t || "inherit",
721
721
  display: o ? "flex" : "none",
722
- ...r
722
+ ...n
723
723
  };
724
- }, [t, o, e, s, n.borderRadius]);
725
- }, Ze = ({
724
+ }, [t, o, e, s, r.borderRadius]);
725
+ }, Qe = ({
726
726
  visible: e,
727
727
  compact: t,
728
728
  color: o,
729
729
  hamburgerRef: s,
730
- open: n = !1,
731
- setOpen: r,
730
+ open: r = !1,
731
+ setOpen: n,
732
732
  buttonProps: l,
733
733
  borderRadius: a
734
734
  }) => {
735
- const i = Qe({
735
+ const i = qe({
736
736
  compact: t,
737
737
  color: o,
738
738
  visible: e,
739
739
  borderRadius: a
740
740
  }), u = [
741
741
  C.hamburger,
742
- n ? C.open : ""
742
+ r ? C.open : ""
743
743
  ].filter(Boolean).join(" ");
744
744
  return /* @__PURE__ */ z(
745
745
  "button",
746
746
  {
747
747
  ref: s,
748
748
  className: u,
749
- onClick: () => r(!n),
749
+ onClick: () => n(!r),
750
750
  style: i,
751
751
  "aria-label": "Toggle menu",
752
- "aria-expanded": n,
752
+ "aria-expanded": r,
753
753
  ...l,
754
754
  children: [
755
- /* @__PURE__ */ _("div", { className: C.line }),
756
- /* @__PURE__ */ _("div", { className: C.line }),
757
- /* @__PURE__ */ _("div", { className: C.line })
755
+ /* @__PURE__ */ p("div", { className: C.line }),
756
+ /* @__PURE__ */ p("div", { className: C.line }),
757
+ /* @__PURE__ */ p("div", { className: C.line })
758
758
  ]
759
759
  }
760
760
  );
761
761
  };
762
- function Q(e) {
762
+ function Z(e) {
763
763
  const o = parseInt(e) - 1, s = e.replace(/[0-9]/g, "");
764
764
  return { maxWidth: o, unit: s };
765
765
  }
766
- const at = ({
766
+ const lt = ({
767
767
  breakPointMd: e,
768
768
  breakPointSm: t,
769
769
  children: o,
770
770
  mobileBackground: s,
771
- mobileColor: n,
772
- mobileActiveBackground: r,
771
+ mobileColor: r,
772
+ mobileActiveBackground: n,
773
773
  mobileActiveColor: l,
774
774
  mobileButtonHoverColor: a,
775
775
  style: i,
776
776
  navProps: u
777
777
  }) => {
778
- const [y, d] = Z(!1), m = T(null), c = T(null), p = h(), f = e || p.breakpoints.md, b = t || p.breakpoints.sm, { maxWidth: g, unit: S } = Q(f), { maxWidth: w, unit: x } = Q(b), k = D(`(max-width: ${g}${S})`), W = D(`(max-width: ${w}${x})`), X = Ve({
778
+ const [f, m] = E(!1), d = A(null), c = A(null), y = _(), h = e || y.breakpoints.md, b = t || y.breakpoints.sm, { maxWidth: g, unit: S } = Z(h), { maxWidth: w, unit: v } = Z(b), k = L(`(max-width: ${g}${S})`), T = L(`(max-width: ${w}${v})`), Y = Ve({
779
779
  isMobile: k,
780
- isCompact: W,
780
+ isCompact: T,
781
781
  mobileBackground: s,
782
- mobileColor: n,
783
- mobileActiveBackground: r,
782
+ mobileColor: r,
783
+ mobileActiveBackground: n,
784
784
  mobileActiveColor: l,
785
785
  mobileButtonHoverColor: a
786
786
  });
787
- j(() => {
788
- k || d(!1);
789
- }, [k]), j(() => {
790
- const L = (E) => {
791
- !c.current || c.current.contains(E.target) || m.current && m.current.contains(E.target) || d(!1);
787
+ D(() => {
788
+ k || m(!1);
789
+ }, [k]), D(() => {
790
+ const j = (V) => {
791
+ !c.current || c.current.contains(V.target) || d.current && d.current.contains(V.target) || m(!1);
792
792
  };
793
- return document.addEventListener("mousedown", L), () => {
794
- document.removeEventListener("mousedown", L);
793
+ return document.addEventListener("mousedown", j), () => {
794
+ document.removeEventListener("mousedown", j);
795
795
  };
796
- }, [m, c, d]);
797
- const Y = [
798
- N.nav,
799
- k ? N.navMobile : N.navDesktop,
800
- k && y ? N.open : ""
796
+ }, [d, c, m]);
797
+ const ee = [
798
+ P.nav,
799
+ k ? P.navMobile : P.navDesktop,
800
+ k && f ? P.open : ""
801
801
  ].filter(Boolean).join(" ");
802
- return /* @__PURE__ */ z(ee, { children: [
803
- /* @__PURE__ */ _(
804
- Ze,
802
+ return /* @__PURE__ */ z(W, { children: [
803
+ /* @__PURE__ */ p(
804
+ Qe,
805
805
  {
806
- hamburgerRef: m,
806
+ hamburgerRef: d,
807
807
  visible: k,
808
- compact: W,
809
- open: y,
810
- setOpen: d
808
+ compact: T,
809
+ open: f,
810
+ setOpen: m
811
811
  }
812
812
  ),
813
- /* @__PURE__ */ _(
813
+ /* @__PURE__ */ p(
814
814
  "nav",
815
815
  {
816
816
  ref: c,
817
- className: Y,
818
- style: { ...X, ...i },
817
+ className: ee,
818
+ style: { ...Y, ...i },
819
819
  ...u,
820
- children: typeof o == "function" ? o({ setOpen: d }) : o
820
+ children: typeof o == "function" ? o({ setOpen: m }) : o
821
821
  }
822
822
  )
823
823
  ] });
824
+ }, Ze = ({
825
+ size: e = 2.5,
826
+ color: t,
827
+ innerColor: o,
828
+ fullScreen: s = !0
829
+ }) => {
830
+ const r = _(), n = t || r.colors.primary, l = o || r.colors.secondary, a = /* @__PURE__ */ z(W, { children: [
831
+ /* @__PURE__ */ p(
832
+ "div",
833
+ {
834
+ style: {
835
+ border: `0.25em solid ${n}`,
836
+ borderTop: `0.25em solid ${l}`,
837
+ borderRadius: "50%",
838
+ width: `${e}em`,
839
+ height: `${e}em`,
840
+ animation: "spin 1s linear infinite"
841
+ }
842
+ }
843
+ ),
844
+ /* @__PURE__ */ p("style", { children: `
845
+ @keyframes spin {
846
+ 0% { transform: rotate(0deg); }
847
+ 100% { transform: rotate(360deg); }
848
+ }
849
+ ` })
850
+ ] });
851
+ return s ? /* @__PURE__ */ p(
852
+ "div",
853
+ {
854
+ style: {
855
+ display: "flex",
856
+ justifyContent: "center",
857
+ alignItems: "center",
858
+ height: "100vh",
859
+ width: "100vw"
860
+ },
861
+ children: a
862
+ }
863
+ ) : a;
864
+ }, ct = ({ children: e, loadingComponent: t }) => {
865
+ const [o, s] = E(!1);
866
+ return D(() => {
867
+ requestAnimationFrame(() => {
868
+ s(!0);
869
+ });
870
+ }, []), o ? /* @__PURE__ */ p(W, { children: e }) : t || /* @__PURE__ */ p(Ze, {});
824
871
  };
825
872
  export {
826
- Ke as Button,
827
- Ye as CSSReset,
828
- Xe as Checkbox,
829
- et as FormLabel,
830
- rt as Header,
831
- tt as Input,
832
- ot as Radio,
833
- at as ResponsiveNav,
834
- st as Select,
873
+ Xe as Button,
874
+ et as CSSReset,
875
+ Ye as Checkbox,
876
+ tt as FormLabel,
877
+ at as Header,
878
+ ot as Input,
879
+ Ze as LoadingSpinner,
880
+ st as Radio,
881
+ lt as ResponsiveNav,
882
+ rt as Select,
883
+ ct as StyleLoader,
835
884
  nt as Textarea,
836
- Je as ThemeProvider,
837
- h as useTheme
885
+ Ke as ThemeProvider,
886
+ _ as useTheme
838
887
  };