jynko-kit 1.0.1 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,14 +1,15 @@
1
1
  import { useEffect as e, useId as t, useRef as n, useState as r } from "react";
2
2
  import { ThemeProvider as i, createGlobalStyle as a, css as o, styled as s } from "styled-components";
3
3
  import { jsx as c, jsxs as l } from "react/jsx-runtime";
4
- import { createPortal as u } from "react-dom";
5
- import { Link as d, NavLink as f } from "react-router-dom";
4
+ import { ChevronDown as u, ChevronLeft as d, ChevronRight as f, Eye as p, EyeOff as m, Mic as h, MicOff as g, Search as _, Video as v, VideoOff as y, X as b } from "lucide-react";
5
+ import { createPortal as x } from "react-dom";
6
+ import { Link as S, NavLink as C } from "react-router-dom";
6
7
  // src/shared/utils/color.ts
7
- function p(e, t) {
8
+ function w(e, t) {
8
9
  return `color-mix(in srgb, ${e} 88%, ${t})`;
9
10
  }
10
11
  // src/shared/styles/theme.ts
11
- var m = {
12
+ var T = {
12
13
  bg: "#0f172a",
13
14
  surface: "#1e293b",
14
15
  background: "#edf7f6",
@@ -23,16 +24,16 @@ var m = {
23
24
  error: "#dc2626",
24
25
  success: "#16a34a",
25
26
  warning: "#d97706"
26
- }, h = "30px", g = {
27
+ }, E = "30px", D = {
27
28
  width: "3px",
28
29
  offset: "2px",
29
30
  colorMix: "45%"
30
- }, _ = {
31
+ }, O = {
31
32
  regular: 400,
32
33
  semibold: 600,
33
34
  bold: 700
34
- }, v = {
35
- colors: m,
35
+ }, k = {
36
+ colors: T,
36
37
  opacity: {
37
38
  disabled: .6,
38
39
  disabledButton: .55
@@ -79,7 +80,7 @@ var m = {
79
80
  },
80
81
  font: {
81
82
  sans: "'Segoe UI', system-ui, -apple-system, sans-serif",
82
- weight: _
83
+ weight: O
83
84
  },
84
85
  typography: {
85
86
  fallback: "1rem",
@@ -94,9 +95,9 @@ var m = {
94
95
  sup: "0.75rem"
95
96
  },
96
97
  avatar: {
97
- border: `2px solid ${m.ink}`,
98
+ border: `2px solid ${T.ink}`,
98
99
  borderRadius: "50%",
99
- fontWeight: _.semibold,
100
+ fontWeight: O.semibold,
100
101
  sizes: {
101
102
  sm: {
102
103
  diameter: "32px",
@@ -120,7 +121,7 @@ var m = {
120
121
  logo: {
121
122
  size: "36px",
122
123
  fontSize: "1rem",
123
- fontWeight: _.bold,
124
+ fontWeight: O.bold,
124
125
  whiteSpace: "nowrap"
125
126
  },
126
127
  sidebar: {
@@ -132,65 +133,65 @@ var m = {
132
133
  fallback: "100vh",
133
134
  dynamic: "100dvh"
134
135
  },
135
- border: `2px solid ${m.ink}`,
136
+ border: `2px solid ${T.ink}`,
136
137
  borderRadius: "16px"
137
138
  },
138
139
  camera: {
139
- border: `2px solid ${m.ink}`,
140
+ border: `2px solid ${T.ink}`,
140
141
  borderRadius: "12px",
141
142
  nameBorderRadius: "4px",
142
143
  nameMaxWidthOffset: "64px",
143
144
  fallbackFontSize: "clamp(2rem, 8vw, 5rem)",
144
- fallbackFontWeight: _.bold
145
+ fallbackFontWeight: O.bold
145
146
  },
146
147
  shadow: {
147
148
  offsetX: "2px",
148
149
  offsetY: "3px",
149
- button: `2px 3px 0 0 ${m.ink}`,
150
- link: `2px 3px 0 0 ${m.ink}`,
151
- navLinks: `2px 3px 0 0 ${m.ink}`,
152
- section: `3px 5px 0 0 ${m.ink}`,
153
- modal: `3px 5px 0 0 ${m.ink}`,
154
- sidebar: `3px 5px 0 0 ${m.ink}`
150
+ button: `2px 3px 0 0 ${T.ink}`,
151
+ link: `2px 3px 0 0 ${T.ink}`,
152
+ navLinks: `2px 3px 0 0 ${T.ink}`,
153
+ section: `3px 5px 0 0 ${T.ink}`,
154
+ modal: `3px 5px 0 0 ${T.ink}`,
155
+ sidebar: `3px 5px 0 0 ${T.ink}`
155
156
  },
156
157
  button: {
157
- border: `2px solid ${m.ink}`,
158
+ border: `2px solid ${T.ink}`,
158
159
  borderRadius: "8px",
159
- focus: g,
160
+ focus: D,
160
161
  padding: "16px",
161
162
  fontSize: "14px",
162
163
  textDecoration: "none",
163
164
  textTransform: "uppercase"
164
165
  },
165
166
  iconButton: {
166
- border: `2px solid ${m.ink}`,
167
+ border: `2px solid ${T.ink}`,
167
168
  borderRadius: "8px",
168
- focus: g
169
+ focus: D
169
170
  },
170
171
  iconLink: {
171
- border: `2px solid ${m.ink}`,
172
+ border: `2px solid ${T.ink}`,
172
173
  borderRadius: "8px",
173
- focus: g
174
+ focus: D
174
175
  },
175
176
  badge: {
176
- border: `2px solid ${m.ink}`,
177
+ border: `2px solid ${T.ink}`,
177
178
  borderRadius: "8px",
178
179
  fontSize: "14px",
179
180
  textTransform: "uppercase"
180
181
  },
181
182
  link: {
182
- border: `2px solid ${m.ink}`,
183
+ border: `2px solid ${T.ink}`,
183
184
  borderRadius: "8px",
184
- focus: g,
185
+ focus: D,
185
186
  padding: "16px",
186
187
  fontSize: "14px",
187
188
  textDecoration: "none",
188
189
  textTransform: "uppercase"
189
190
  },
190
191
  navLinks: {
191
- border: `2px solid ${m.ink}`,
192
+ border: `2px solid ${T.ink}`,
192
193
  borderRadius: "8px",
193
- focus: g,
194
+ focus: D,
194
195
  padding: "0",
195
196
  fontSize: "14px",
196
197
  textDecoration: "none",
@@ -198,60 +199,59 @@ var m = {
198
199
  itemPadding: "16px"
199
200
  },
200
201
  formControl: {
201
- border: `2px solid ${m.ink}`,
202
+ border: `2px solid ${T.ink}`,
202
203
  borderRadius: "8px",
203
- padding: "16px",
204
- height: "3.5rem",
204
+ padding: "8px",
205
205
  textareaHeight: "3rem",
206
- dropdownBorder: `2px solid ${m.ink}`,
206
+ dropdownBorder: `2px solid ${T.ink}`,
207
207
  optionListMaxHeight: "16rem",
208
- focus: g,
208
+ focus: D,
209
209
  trailingActionPadding: "3.25rem",
210
210
  fontSize: "14px",
211
211
  optionTextTransform: "none"
212
212
  },
213
213
  userBadge: {
214
- focus: g,
214
+ focus: D,
215
215
  textDecoration: "none"
216
216
  },
217
217
  section: {
218
- border: `2px solid ${m.ink}`,
218
+ border: `2px solid ${T.ink}`,
219
219
  borderRadius: "16px",
220
- padding: h
220
+ padding: E
221
221
  },
222
222
  modal: {
223
- padding: h,
223
+ padding: E,
224
224
  maxWidth: "720px",
225
225
  maxHeight: "80vh",
226
- border: `2px solid ${m.ink}`,
226
+ border: `2px solid ${T.ink}`,
227
227
  borderRadius: "16px",
228
228
  title: {
229
229
  fontSize: "1.25rem",
230
- fontWeight: _.semibold
230
+ fontWeight: O.semibold
231
231
  },
232
232
  body: { fontSize: "1rem" }
233
233
  }
234
234
  };
235
235
  // src/shared/utils/tokens.ts
236
- function y(e) {
237
- return e?.colors ? e : v;
236
+ function A(e) {
237
+ return e?.colors ? e : k;
238
238
  }
239
239
  // src/components/atoms/AAvatar/AAvatar.styles.ts
240
- var b = s.span`
240
+ var j = s.span`
241
241
  display: inline-flex;
242
242
  flex: 0 0 auto;
243
243
  align-items: center;
244
244
  justify-content: center;
245
245
  overflow: hidden;
246
- border: ${({ theme: e }) => y(e).avatar.border};
247
- border-radius: ${({ theme: e }) => y(e).avatar.borderRadius};
248
- background: ${({ theme: e }) => y(e).colors.secondary};
249
- color: ${({ theme: e }) => y(e).colors.text};
250
- font-family: ${({ theme: e }) => y(e).font.sans};
251
- font-weight: ${({ theme: e }) => y(e).avatar.fontWeight};
252
- width: ${({ $size: e, theme: t }) => y(t).avatar.sizes[e].diameter};
253
- height: ${({ $size: e, theme: t }) => y(t).avatar.sizes[e].diameter};
254
- font-size: ${({ $size: e, theme: t }) => y(t).avatar.sizes[e].fontSize};
246
+ border: ${({ theme: e }) => A(e).avatar.border};
247
+ border-radius: ${({ theme: e }) => A(e).avatar.borderRadius};
248
+ background: ${({ theme: e }) => A(e).colors.secondary};
249
+ color: ${({ theme: e }) => A(e).colors.text};
250
+ font-family: ${({ theme: e }) => A(e).font.sans};
251
+ font-weight: ${({ theme: e }) => A(e).avatar.fontWeight};
252
+ width: ${({ $size: e, theme: t }) => A(t).avatar.sizes[e].diameter};
253
+ height: ${({ $size: e, theme: t }) => A(t).avatar.sizes[e].diameter};
254
+ font-size: ${({ $size: e, theme: t }) => A(t).avatar.sizes[e].fontSize};
255
255
 
256
256
  & > img {
257
257
  width: 100%;
@@ -260,9 +260,9 @@ var b = s.span`
260
260
  }
261
261
  `;
262
262
  // src/components/atoms/AAvatar/AAvatar.tsx
263
- function x({ firstName: e, lastName: t, src: n, alt: i, size: a = "md", ...o }) {
263
+ function M({ firstName: e, lastName: t, src: n, alt: i, size: a = "md", ...o }) {
264
264
  let [s, l] = r(), u = `${e} ${t}`.trim(), d = i ?? u, f = `${e.charAt(0)}${t.charAt(0)}`.toUpperCase(), p = !!(n && s !== n);
265
- return /* @__PURE__ */ c(b, {
265
+ return /* @__PURE__ */ c(j, {
266
266
  $size: a,
267
267
  role: p ? void 0 : "img",
268
268
  "aria-label": p ? void 0 : d,
@@ -277,66 +277,66 @@ function x({ firstName: e, lastName: t, src: n, alt: i, size: a = "md", ...o })
277
277
  });
278
278
  }
279
279
  // src/shared/styles/componentMetrics.ts
280
- var S = o`
280
+ var N = o`
281
281
  display: grid;
282
- gap: ${({ theme: e }) => y(e).space.sm};
282
+ gap: ${({ theme: e }) => A(e).space.sm};
283
283
  width: 100%;
284
- `, C = (e) => ({
284
+ `, P = (e) => ({
285
285
  sm: o`
286
- padding: ${({ theme: t }) => y(t).space.components[e].sm};
286
+ padding: ${({ theme: t }) => A(t).space.components[e].sm};
287
287
  `,
288
288
  md: o`
289
- padding: ${({ theme: t }) => y(t).space.components[e].md};
289
+ padding: ${({ theme: t }) => A(t).space.components[e].md};
290
290
  `,
291
291
  lg: o`
292
- padding: ${({ theme: t }) => y(t).space.components[e].lg};
292
+ padding: ${({ theme: t }) => A(t).space.components[e].lg};
293
293
  `
294
- }), w = o`
295
- padding: ${({ theme: e }) => `${y(e).space.md} ${y(e).space.lg}`};
296
- `, T = (e) => o`
294
+ }), F = o`
295
+ padding: ${({ theme: e }) => A(e).formControl.padding};
296
+ `, I = (e) => o`
297
297
  &:focus-visible {
298
- outline: ${({ theme: t }) => `${y(t)[e].focus.width} solid color-mix(in srgb, ${y(t).colors.primary} ${y(t)[e].focus.colorMix}, transparent)`};
299
- outline-offset: ${({ theme: t }) => y(t)[e].focus.offset};
298
+ outline: ${({ theme: t }) => `${A(t)[e].focus.width} solid color-mix(in srgb, ${A(t).colors.primary} ${A(t)[e].focus.colorMix}, transparent)`};
299
+ outline-offset: ${({ theme: t }) => A(t)[e].focus.offset};
300
300
  }
301
- `, E = C("badge"), D = {
301
+ `, L = P("badge"), R = {
302
302
  default: o`
303
- background: ${({ theme: e }) => y(e).colors.secondary};
304
- color: ${({ theme: e }) => y(e).colors.text};
303
+ background: ${({ theme: e }) => A(e).colors.secondary};
304
+ color: ${({ theme: e }) => A(e).colors.text};
305
305
  `,
306
306
  info: o`
307
- background: ${({ theme: e }) => y(e).colors.primary};
308
- color: ${({ theme: e }) => y(e).colors.primaryText};
307
+ background: ${({ theme: e }) => A(e).colors.primary};
308
+ color: ${({ theme: e }) => A(e).colors.primaryText};
309
309
  `,
310
310
  success: o`
311
- background: ${({ theme: e }) => y(e).colors.success};
312
- color: ${({ theme: e }) => y(e).colors.text};
311
+ background: ${({ theme: e }) => A(e).colors.success};
312
+ color: ${({ theme: e }) => A(e).colors.text};
313
313
  `,
314
314
  warning: o`
315
- background: ${({ theme: e }) => y(e).colors.warning};
316
- color: ${({ theme: e }) => y(e).colors.text};
315
+ background: ${({ theme: e }) => A(e).colors.warning};
316
+ color: ${({ theme: e }) => A(e).colors.text};
317
317
  `,
318
318
  error: o`
319
- background: ${({ theme: e }) => y(e).colors.error};
320
- color: ${({ theme: e }) => y(e).colors.text};
319
+ background: ${({ theme: e }) => A(e).colors.error};
320
+ color: ${({ theme: e }) => A(e).colors.text};
321
321
  `
322
- }, O = s.span`
322
+ }, z = s.span`
323
323
  display: inline-flex;
324
324
  align-items: center;
325
325
  justify-content: center;
326
- gap: ${({ theme: e }) => y(e).space.sm};
327
- border: ${({ theme: e }) => y(e).badge.border};
328
- border-radius: ${({ theme: e }) => y(e).badge.borderRadius};
329
- font-family: ${({ theme: e }) => y(e).font.sans};
330
- font-size: ${({ theme: e }) => y(e).badge.fontSize};
331
- font-weight: ${({ theme: e }) => y(e).font.weight.semibold};
332
- text-transform: ${({ theme: e }) => y(e).badge.textTransform};
333
-
334
- ${({ $size: e }) => E[e]}
335
- ${({ $variant: e }) => D[e]}
326
+ gap: ${({ theme: e }) => A(e).space.sm};
327
+ border: ${({ theme: e }) => A(e).badge.border};
328
+ border-radius: ${({ theme: e }) => A(e).badge.borderRadius};
329
+ font-family: ${({ theme: e }) => A(e).font.sans};
330
+ font-size: ${({ theme: e }) => A(e).badge.fontSize};
331
+ font-weight: ${({ theme: e }) => A(e).font.weight.semibold};
332
+ text-transform: ${({ theme: e }) => A(e).badge.textTransform};
333
+
334
+ ${({ $size: e }) => L[e]}
335
+ ${({ $variant: e }) => R[e]}
336
336
  `;
337
337
  // src/components/atoms/ABadge/ABadge.tsx
338
- function k({ children: e, size: t = "md", variant: n = "default", ...r }) {
339
- return /* @__PURE__ */ c(O, {
338
+ function B({ children: e, size: t = "md", variant: n = "default", ...r }) {
339
+ return /* @__PURE__ */ c(z, {
340
340
  $size: t,
341
341
  $variant: n,
342
342
  ...r,
@@ -344,8 +344,8 @@ function k({ children: e, size: t = "md", variant: n = "default", ...r }) {
344
344
  });
345
345
  }
346
346
  // src/shared/hooks/usePressState.ts
347
- var A = 150;
348
- function j({ disabled: t, onPointerDown: i, onPointerUp: a, onPointerCancel: o, onLostPointerCapture: s }) {
347
+ var V = 150;
348
+ function H({ disabled: t, onPointerDown: i, onPointerUp: a, onPointerCancel: o, onLostPointerCapture: s }) {
349
349
  let [c, l] = r(!1), u = n(0), d = n(null);
350
350
  e(() => () => {
351
351
  d.current && clearTimeout(d.current);
@@ -354,7 +354,7 @@ function j({ disabled: t, onPointerDown: i, onPointerUp: a, onPointerCancel: o,
354
354
  d.current && clearTimeout(d.current);
355
355
  }, p = () => {
356
356
  if (!u.current) return;
357
- let e = performance.now() - u.current, t = Math.max(0, A - e);
357
+ let e = performance.now() - u.current, t = Math.max(0, V - e);
358
358
  f(), d.current = setTimeout(() => {
359
359
  l(!1), u.current = 0, d.current = null;
360
360
  }, t);
@@ -378,32 +378,32 @@ function j({ disabled: t, onPointerDown: i, onPointerUp: a, onPointerCancel: o,
378
378
  };
379
379
  }
380
380
  // src/components/atoms/AButton/AButton.styles.ts
381
- var M = C("button"), N = {
381
+ var U = P("button"), W = {
382
382
  primary: o`
383
- background: ${({ theme: e }) => y(e).colors.primary};
384
- color: ${({ theme: e }) => y(e).colors.primaryText};
383
+ background: ${({ theme: e }) => A(e).colors.primary};
384
+ color: ${({ theme: e }) => A(e).colors.primaryText};
385
385
 
386
386
  &:hover:not(:disabled) {
387
- background: ${({ theme: e }) => p(y(e).colors.primary, y(e).colors.ink)};
387
+ background: ${({ theme: e }) => w(A(e).colors.primary, A(e).colors.ink)};
388
388
  }
389
389
  `,
390
390
  secondary: o`
391
- background: ${({ theme: e }) => y(e).colors.secondary};
392
- color: ${({ theme: e }) => y(e).colors.text};
391
+ background: ${({ theme: e }) => A(e).colors.secondary};
392
+ color: ${({ theme: e }) => A(e).colors.text};
393
393
 
394
394
  &:hover:not(:disabled) {
395
- background: ${({ theme: e }) => p(y(e).colors.secondary, y(e).colors.ink)};
395
+ background: ${({ theme: e }) => w(A(e).colors.secondary, A(e).colors.ink)};
396
396
  }
397
397
  `
398
- }, P = o`
398
+ }, ee = o`
399
399
  display: inline-flex;
400
400
  align-items: center;
401
401
  justify-content: center;
402
- gap: ${({ theme: e }) => y(e).space.sm};
403
- font-family: ${({ theme: e }) => y(e).font.sans};
404
- font-size: ${({ theme: e }) => y(e).button.fontSize};
405
- font-weight: ${({ theme: e }) => y(e).font.weight.semibold};
406
- text-transform: ${({ theme: e }) => y(e).button.textTransform};
402
+ gap: ${({ theme: e }) => A(e).space.sm};
403
+ font-family: ${({ theme: e }) => A(e).font.sans};
404
+ font-size: ${({ theme: e }) => A(e).button.fontSize};
405
+ font-weight: ${({ theme: e }) => A(e).font.weight.semibold};
406
+ text-transform: ${({ theme: e }) => A(e).button.textTransform};
407
407
  cursor: pointer;
408
408
  transition:
409
409
  background-color 0.15s ease,
@@ -411,44 +411,44 @@ var M = C("button"), N = {
411
411
  box-shadow 0.15s ease;
412
412
  white-space: nowrap;
413
413
 
414
- ${T("button")}
414
+ ${I("button")}
415
415
 
416
416
  &:disabled {
417
- opacity: ${({ theme: e }) => y(e).opacity.disabledButton};
417
+ opacity: ${({ theme: e }) => A(e).opacity.disabledButton};
418
418
  cursor: not-allowed;
419
419
  }
420
- `, F = o`
421
- border: ${({ theme: e }) => y(e).button.border};
422
- box-shadow: ${({ theme: e }) => y(e).shadow.button};
420
+ `, te = o`
421
+ border: ${({ theme: e }) => A(e).button.border};
422
+ box-shadow: ${({ theme: e }) => A(e).shadow.button};
423
423
 
424
424
  &:active:not(:disabled),
425
425
  &[data-pressed='true']:not(:disabled),
426
426
  &:disabled {
427
- transform: ${({ theme: e }) => `translate(${y(e).shadow.offsetX}, ${y(e).shadow.offsetY})`};
427
+ transform: ${({ theme: e }) => `translate(${A(e).shadow.offsetX}, ${A(e).shadow.offsetY})`};
428
428
  box-shadow: none;
429
429
  }
430
- `, I = o`
431
- border-radius: ${({ theme: e }) => y(e).button.borderRadius};
432
- `, L = o`
433
- padding: ${({ theme: e }) => y(e).button.padding};
434
- `, R = s.button`
435
- ${P}
436
- ${F}
437
- ${I}
438
- ${L}
439
- ${({ $variant: e }) => N[e]}
440
- ${({ $size: e }) => M[e]}
430
+ `, ne = o`
431
+ border-radius: ${({ theme: e }) => A(e).button.borderRadius};
432
+ `, re = o`
433
+ padding: ${({ theme: e }) => A(e).button.padding};
434
+ `, ie = s.button`
435
+ ${ee}
436
+ ${te}
437
+ ${ne}
438
+ ${re}
439
+ ${({ $variant: e }) => W[e]}
440
+ ${({ $size: e }) => U[e]}
441
441
  `;
442
442
  // src/components/atoms/AButton/AButton.tsx
443
- function z({ children: e, variant: t = "primary", size: n = "md", type: r = "button", disabled: i, onPointerDown: a, onPointerUp: o, onPointerCancel: s, onLostPointerCapture: l, ...u }) {
444
- let { pressed: d, pressHandlers: f } = j({
443
+ function ae({ children: e, variant: t = "primary", size: n = "md", type: r = "button", disabled: i, onPointerDown: a, onPointerUp: o, onPointerCancel: s, onLostPointerCapture: l, ...u }) {
444
+ let { pressed: d, pressHandlers: f } = H({
445
445
  disabled: i,
446
446
  onPointerDown: a,
447
447
  onPointerUp: o,
448
448
  onPointerCancel: s,
449
449
  onLostPointerCapture: l
450
450
  });
451
- return /* @__PURE__ */ c(R, {
451
+ return /* @__PURE__ */ c(ie, {
452
452
  $size: n,
453
453
  $variant: t,
454
454
  type: r,
@@ -460,19 +460,19 @@ function z({ children: e, variant: t = "primary", size: n = "md", type: r = "but
460
460
  });
461
461
  }
462
462
  // src/components/atoms/AIcon/AIcon.styles.ts
463
- var B = {
464
- default: (e) => y(e).colors.text,
465
- error: (e) => y(e).colors.error,
466
- success: (e) => y(e).colors.success,
467
- warning: (e) => y(e).colors.warning
468
- }, V = s.span`
463
+ var oe = {
464
+ default: (e) => A(e).colors.text,
465
+ error: (e) => A(e).colors.error,
466
+ success: (e) => A(e).colors.success,
467
+ warning: (e) => A(e).colors.warning
468
+ }, se = s.span`
469
469
  display: inline-flex;
470
- width: ${({ $size: e, theme: t }) => y(t).icon.sizes[e]};
471
- height: ${({ $size: e, theme: t }) => y(t).icon.sizes[e]};
470
+ width: ${({ $size: e, theme: t }) => A(t).icon.sizes[e]};
471
+ height: ${({ $size: e, theme: t }) => A(t).icon.sizes[e]};
472
472
  flex: 0 0 auto;
473
473
  align-items: center;
474
474
  justify-content: center;
475
- color: ${({ $type: e, theme: t }) => B[e](t)};
475
+ color: ${({ $type: e, theme: t }) => oe[e](t)};
476
476
 
477
477
  & > svg {
478
478
  display: block;
@@ -481,76 +481,79 @@ var B = {
481
481
  }
482
482
  `;
483
483
  // src/components/atoms/AIcon/AIcon.tsx
484
- function H({ children: e, size: t = "md", type: n = "default", title: r, "aria-label": i, ...a }) {
485
- let o = r ?? i;
486
- return /* @__PURE__ */ c(V, {
487
- $size: t,
488
- $type: n,
489
- "aria-hidden": !o || void 0,
490
- "aria-label": o,
491
- role: o ? "img" : void 0,
492
- title: r,
493
- ...a,
494
- children: e
484
+ function G({ icon: e, children: t, size: n = "md", type: r = "default", title: i, "aria-label": a, ...o }) {
485
+ let s = i ?? a;
486
+ return /* @__PURE__ */ c(se, {
487
+ $size: n,
488
+ $type: r,
489
+ "aria-hidden": !s || void 0,
490
+ "aria-label": s,
491
+ role: s ? "img" : void 0,
492
+ title: i,
493
+ ...o,
494
+ children: e ? /* @__PURE__ */ c(e, {
495
+ "aria-hidden": !0,
496
+ focusable: !1
497
+ }) : t
495
498
  });
496
499
  }
497
500
  // src/components/atoms/AIconButton/AIconButton.styles.ts
498
- var U = C("iconButton"), ee = {
501
+ var ce = P("iconButton"), le = {
499
502
  primary: o`
500
- background: ${({ theme: e }) => y(e).colors.primary};
501
- color: ${({ theme: e }) => y(e).colors.primaryText};
503
+ background: ${({ theme: e }) => A(e).colors.primary};
504
+ color: ${({ theme: e }) => A(e).colors.primaryText};
502
505
 
503
506
  &:hover:not(:disabled) {
504
- background: ${({ theme: e }) => p(y(e).colors.primary, y(e).colors.ink)};
507
+ background: ${({ theme: e }) => w(A(e).colors.primary, A(e).colors.ink)};
505
508
  }
506
509
  `,
507
510
  secondary: o`
508
- background: ${({ theme: e }) => y(e).colors.secondary};
509
- color: ${({ theme: e }) => y(e).colors.text};
511
+ background: ${({ theme: e }) => A(e).colors.secondary};
512
+ color: ${({ theme: e }) => A(e).colors.text};
510
513
 
511
514
  &:hover:not(:disabled) {
512
- background: ${({ theme: e }) => p(y(e).colors.secondary, y(e).colors.ink)};
515
+ background: ${({ theme: e }) => w(A(e).colors.secondary, A(e).colors.ink)};
513
516
  }
514
517
  `
515
- }, te = o`
518
+ }, ue = o`
516
519
  display: inline-flex;
517
520
  align-items: center;
518
521
  justify-content: center;
519
- gap: ${({ theme: e }) => y(e).space.sm};
520
- font-family: ${({ theme: e }) => y(e).font.sans};
521
- font-size: ${({ theme: e }) => y(e).button.fontSize};
522
- font-weight: ${({ theme: e }) => y(e).font.weight.semibold};
523
- text-transform: ${({ theme: e }) => y(e).button.textTransform};
522
+ gap: ${({ theme: e }) => A(e).space.sm};
523
+ font-family: ${({ theme: e }) => A(e).font.sans};
524
+ font-size: ${({ theme: e }) => A(e).button.fontSize};
525
+ font-weight: ${({ theme: e }) => A(e).font.weight.semibold};
526
+ text-transform: ${({ theme: e }) => A(e).button.textTransform};
524
527
  cursor: pointer;
525
528
  transition:
526
529
  background-color 0.15s ease,
527
530
  transform 0.15s ease,
528
531
  box-shadow 0.15s ease;
529
532
 
530
- ${T("iconButton")}
533
+ ${I("iconButton")}
531
534
 
532
535
  &:disabled {
533
- opacity: ${({ theme: e }) => y(e).opacity.disabledButton};
536
+ opacity: ${({ theme: e }) => A(e).opacity.disabledButton};
534
537
  cursor: not-allowed;
535
538
  }
536
- `, ne = o`
537
- border: ${({ theme: e }) => y(e).iconButton.border};
538
- box-shadow: ${({ theme: e }) => y(e).shadow.button};
539
+ `, de = o`
540
+ border: ${({ theme: e }) => A(e).iconButton.border};
541
+ box-shadow: ${({ theme: e }) => A(e).shadow.button};
539
542
 
540
543
  &:active:not(:disabled),
541
544
  &[data-pressed='true']:not(:disabled),
542
545
  &:disabled {
543
- transform: ${({ theme: e }) => `translate(${y(e).shadow.offsetX}, ${y(e).shadow.offsetY})`};
546
+ transform: ${({ theme: e }) => `translate(${A(e).shadow.offsetX}, ${A(e).shadow.offsetY})`};
544
547
  box-shadow: none;
545
548
  }
546
- `, re = {
549
+ `, fe = {
547
550
  square: o`
548
- border-radius: ${({ theme: e }) => y(e).iconButton.borderRadius};
551
+ border-radius: ${({ theme: e }) => A(e).iconButton.borderRadius};
549
552
  `,
550
553
  rounded: o`
551
- border-radius: ${({ theme: e }) => y(e).radius.full};
554
+ border-radius: ${({ theme: e }) => A(e).radius.full};
552
555
  `
553
- }, ie = o`
556
+ }, pe = o`
554
557
  background: transparent;
555
558
  border: none;
556
559
  box-shadow: none;
@@ -562,102 +565,103 @@ var U = C("iconButton"), ee = {
562
565
  box-shadow: none;
563
566
  }
564
567
  `;
565
- function W(e, t) {
568
+ function K(e, t) {
566
569
  return `color-mix(in srgb, ${e} ${t}, transparent)`;
567
570
  }
568
- var ae = {
571
+ var me = {
569
572
  primary: o`
570
- color: ${({ theme: e }) => y(e).colors.primary};
573
+ color: ${({ theme: e }) => A(e).colors.primary};
571
574
 
572
575
  &:hover:not(:disabled) {
573
- background: ${({ theme: e }) => W(y(e).colors.primary, "18%")};
576
+ background: ${({ theme: e }) => K(A(e).colors.primary, "18%")};
574
577
  }
575
578
 
576
579
  &:active:not(:disabled),
577
580
  &[data-pressed='true']:not(:disabled) {
578
- background: ${({ theme: e }) => p(W(y(e).colors.primary, "18%"), y(e).colors.ink)};
581
+ background: ${({ theme: e }) => w(K(A(e).colors.primary, "18%"), A(e).colors.ink)};
579
582
  }
580
583
  `,
581
584
  secondary: o`
582
- color: ${({ theme: e }) => y(e).colors.text};
585
+ color: ${({ theme: e }) => A(e).colors.text};
583
586
 
584
587
  &:hover:not(:disabled) {
585
- background: ${({ theme: e }) => W(y(e).colors.text, "12%")};
588
+ background: ${({ theme: e }) => K(A(e).colors.text, "12%")};
586
589
  }
587
590
 
588
591
  &:active:not(:disabled),
589
592
  &[data-pressed='true']:not(:disabled) {
590
- background: ${({ theme: e }) => p(W(y(e).colors.text, "12%"), y(e).colors.ink)};
593
+ background: ${({ theme: e }) => w(K(A(e).colors.text, "12%"), A(e).colors.ink)};
591
594
  }
592
595
  `
593
- }, oe = s.button`
594
- ${te}
596
+ }, he = s.button`
597
+ ${ue}
595
598
  padding: 0;
596
599
  flex-shrink: 0;
597
600
 
598
- ${({ $size: e }) => U[e]}
599
- ${({ $shape: e }) => re[e]}
601
+ ${({ $size: e }) => ce[e]}
602
+ ${({ $shape: e }) => fe[e]}
600
603
  ${({ $ghost: e, $variant: t }) => e ? o`
601
- ${ie}
602
- ${ae[t]}
604
+ ${pe}
605
+ ${me[t]}
603
606
  ` : o`
604
- ${ne}
605
- ${ee[t]}
607
+ ${de}
608
+ ${le[t]}
606
609
  `}
607
610
  `;
608
611
  // src/components/atoms/AIconButton/AIconButton.tsx
609
- function G({ children: e, variant: t = "primary", size: n = "md", shape: r = "square", ghost: i = !1, type: a = "button", disabled: o, ref: s, onPointerDown: l, onPointerUp: u, onPointerCancel: d, onLostPointerCapture: f, ...p }) {
610
- let { pressed: m, pressHandlers: h } = j({
611
- disabled: o,
612
- onPointerDown: l,
613
- onPointerUp: u,
614
- onPointerCancel: d,
615
- onLostPointerCapture: f
612
+ function q({ children: e, icon: t, variant: n = "primary", size: r = "md", shape: i = "square", ghost: a = !1, type: o = "button", disabled: s, ref: l, onPointerDown: u, onPointerUp: d, onPointerCancel: f, onLostPointerCapture: p, ...m }) {
613
+ let { pressed: h, pressHandlers: g } = H({
614
+ disabled: s,
615
+ onPointerDown: u,
616
+ onPointerUp: d,
617
+ onPointerCancel: f,
618
+ onLostPointerCapture: p
616
619
  });
617
- return /* @__PURE__ */ c(oe, {
618
- $ghost: i,
619
- $shape: r,
620
- $size: n,
621
- $variant: t,
622
- type: a,
623
- disabled: o,
624
- "data-pressed": m ? "true" : void 0,
625
- ref: s,
626
- ...p,
627
- ...h,
628
- children: /* @__PURE__ */ c(H, {
629
- size: n,
620
+ return /* @__PURE__ */ c(he, {
621
+ $ghost: a,
622
+ $shape: i,
623
+ $size: r,
624
+ $variant: n,
625
+ type: o,
626
+ disabled: s,
627
+ "data-pressed": h ? "true" : void 0,
628
+ ref: l,
629
+ ...m,
630
+ ...g,
631
+ children: /* @__PURE__ */ c(G, {
632
+ icon: t,
633
+ size: r,
630
634
  style: { color: "inherit" },
631
635
  children: e
632
636
  })
633
637
  });
634
638
  }
635
639
  // src/components/atoms/AIconLink/AIconLink.styles.ts
636
- var se = C("iconLink"), ce = {
640
+ var ge = P("iconLink"), _e = {
637
641
  primary: o`
638
- background: ${({ theme: e }) => y(e).colors.primary};
639
- color: ${({ theme: e }) => y(e).colors.primaryText};
642
+ background: ${({ theme: e }) => A(e).colors.primary};
643
+ color: ${({ theme: e }) => A(e).colors.primaryText};
640
644
 
641
645
  &:hover {
642
- background: ${({ theme: e }) => p(y(e).colors.primary, y(e).colors.ink)};
646
+ background: ${({ theme: e }) => w(A(e).colors.primary, A(e).colors.ink)};
643
647
  }
644
648
  `,
645
649
  secondary: o`
646
- background: ${({ theme: e }) => y(e).colors.secondary};
647
- color: ${({ theme: e }) => y(e).colors.text};
650
+ background: ${({ theme: e }) => A(e).colors.secondary};
651
+ color: ${({ theme: e }) => A(e).colors.text};
648
652
 
649
653
  &:hover {
650
- background: ${({ theme: e }) => p(y(e).colors.secondary, y(e).colors.ink)};
654
+ background: ${({ theme: e }) => w(A(e).colors.secondary, A(e).colors.ink)};
651
655
  }
652
656
  `
653
- }, le = {
657
+ }, ve = {
654
658
  square: o`
655
- border-radius: ${({ theme: e }) => y(e).iconLink.borderRadius};
659
+ border-radius: ${({ theme: e }) => A(e).iconLink.borderRadius};
656
660
  `,
657
661
  rounded: o`
658
- border-radius: ${({ theme: e }) => y(e).radius.full};
662
+ border-radius: ${({ theme: e }) => A(e).radius.full};
659
663
  `
660
- }, ue = o`
664
+ }, ye = o`
661
665
  background: transparent;
662
666
  border: none;
663
667
  box-shadow: none;
@@ -669,293 +673,264 @@ var se = C("iconLink"), ce = {
669
673
  box-shadow: none;
670
674
  }
671
675
  `;
672
- function K(e, t) {
676
+ function J(e, t) {
673
677
  return `color-mix(in srgb, ${e} ${t}, transparent)`;
674
678
  }
675
- var de = {
679
+ var be = {
676
680
  primary: o`
677
- color: ${({ theme: e }) => y(e).colors.primary};
681
+ color: ${({ theme: e }) => A(e).colors.primary};
678
682
 
679
683
  &:hover {
680
- background: ${({ theme: e }) => K(y(e).colors.primary, "18%")};
684
+ background: ${({ theme: e }) => J(A(e).colors.primary, "18%")};
681
685
  }
682
686
 
683
687
  &:active,
684
688
  &[data-pressed='true'] {
685
- background: ${({ theme: e }) => p(K(y(e).colors.primary, "18%"), y(e).colors.ink)};
689
+ background: ${({ theme: e }) => w(J(A(e).colors.primary, "18%"), A(e).colors.ink)};
686
690
  }
687
691
  `,
688
692
  secondary: o`
689
- color: ${({ theme: e }) => y(e).colors.text};
693
+ color: ${({ theme: e }) => A(e).colors.text};
690
694
 
691
695
  &:hover {
692
- background: ${({ theme: e }) => K(y(e).colors.text, "12%")};
696
+ background: ${({ theme: e }) => J(A(e).colors.text, "12%")};
693
697
  }
694
698
 
695
699
  &:active,
696
700
  &[data-pressed='true'] {
697
- background: ${({ theme: e }) => p(K(y(e).colors.text, "12%"), y(e).colors.ink)};
701
+ background: ${({ theme: e }) => w(J(A(e).colors.text, "12%"), A(e).colors.ink)};
698
702
  }
699
703
  `
700
- }, fe = s.a`
704
+ }, xe = s.a`
701
705
  display: inline-flex;
702
706
  align-items: center;
703
707
  justify-content: center;
704
- gap: ${({ theme: e }) => y(e).space.sm};
705
- font-family: ${({ theme: e }) => y(e).font.sans};
706
- font-size: ${({ theme: e }) => y(e).button.fontSize};
707
- font-weight: ${({ theme: e }) => y(e).font.weight.semibold};
708
- text-transform: ${({ theme: e }) => y(e).button.textTransform};
709
- text-decoration: ${({ theme: e }) => y(e).button.textDecoration};
708
+ gap: ${({ theme: e }) => A(e).space.sm};
709
+ font-family: ${({ theme: e }) => A(e).font.sans};
710
+ font-size: ${({ theme: e }) => A(e).button.fontSize};
711
+ font-weight: ${({ theme: e }) => A(e).font.weight.semibold};
712
+ text-transform: ${({ theme: e }) => A(e).button.textTransform};
713
+ text-decoration: ${({ theme: e }) => A(e).button.textDecoration};
710
714
  cursor: pointer;
711
715
  transition:
712
716
  background-color 0.15s ease,
713
717
  transform 0.15s ease,
714
718
  box-shadow 0.15s ease;
715
719
 
716
- ${T("iconLink")}
720
+ ${I("iconLink")}
717
721
 
718
- border: ${({ theme: e }) => y(e).iconLink.border};
719
- box-shadow: ${({ theme: e }) => y(e).shadow.button};
722
+ border: ${({ theme: e }) => A(e).iconLink.border};
723
+ box-shadow: ${({ theme: e }) => A(e).shadow.button};
720
724
 
721
725
  &:active,
722
726
  &[data-pressed='true'] {
723
- transform: ${({ theme: e }) => `translate(${y(e).shadow.offsetX}, ${y(e).shadow.offsetY})`};
727
+ transform: ${({ theme: e }) => `translate(${A(e).shadow.offsetX}, ${A(e).shadow.offsetY})`};
724
728
  box-shadow: none;
725
729
  }
726
730
 
727
- ${({ $size: e }) => se[e]}
728
- ${({ $shape: e }) => le[e]}
731
+ ${({ $size: e }) => ge[e]}
732
+ ${({ $shape: e }) => ve[e]}
729
733
  ${({ $ghost: e, $variant: t }) => e ? o`
730
- ${ue}
731
- ${de[t]}
732
- ` : ce[t]}
734
+ ${ye}
735
+ ${be[t]}
736
+ ` : _e[t]}
733
737
  `;
734
738
  // src/components/atoms/AIconLink/AIconLink.tsx
735
- function q({ children: e, variant: t = "primary", size: n = "md", shape: r = "square", ghost: i = !1, onPointerDown: a, onPointerUp: o, onPointerCancel: s, onLostPointerCapture: l, ...u }) {
736
- let { pressed: d, pressHandlers: f } = j({
737
- onPointerDown: a,
738
- onPointerUp: o,
739
- onPointerCancel: s,
740
- onLostPointerCapture: l
739
+ function Y({ children: e, icon: t, variant: n = "primary", size: r = "md", shape: i = "square", ghost: a = !1, onPointerDown: o, onPointerUp: s, onPointerCancel: l, onLostPointerCapture: u, ...d }) {
740
+ let { pressed: f, pressHandlers: p } = H({
741
+ onPointerDown: o,
742
+ onPointerUp: s,
743
+ onPointerCancel: l,
744
+ onLostPointerCapture: u
741
745
  });
742
- return /* @__PURE__ */ c(fe, {
743
- $ghost: i,
744
- $shape: r,
745
- $size: n,
746
- $variant: t,
747
- "data-pressed": d ? "true" : void 0,
748
- ...u,
749
- ...f,
750
- children: /* @__PURE__ */ c(H, {
751
- size: n,
746
+ return /* @__PURE__ */ c(xe, {
747
+ $ghost: a,
748
+ $shape: i,
749
+ $size: r,
750
+ $variant: n,
751
+ "data-pressed": f ? "true" : void 0,
752
+ ...d,
753
+ ...p,
754
+ children: /* @__PURE__ */ c(G, {
755
+ icon: t,
756
+ size: r,
752
757
  style: { color: "inherit" },
753
758
  children: e
754
759
  })
755
760
  });
756
761
  }
757
762
  // src/components/atoms/AInput/AInput.styles.ts
758
- var pe = o`
759
- color: ${({ theme: e }) => y(e).colors.text};
760
- font-size: ${({ theme: e }) => y(e).typography.small};
761
- font-weight: ${({ theme: e }) => y(e).font.weight.semibold};
762
- `, me = o`
763
+ var Se = o`
764
+ color: ${({ theme: e }) => A(e).colors.text};
765
+ font-size: ${({ theme: e }) => A(e).typography.small};
766
+ font-weight: ${({ theme: e }) => A(e).font.weight.semibold};
767
+ `, Ce = o`
763
768
  box-sizing: border-box;
764
769
  width: 100%;
765
- height: ${({ theme: e }) => y(e).formControl.height};
766
- border: ${({ theme: e }) => y(e).formControl.border};
767
- border-radius: ${({ theme: e }) => y(e).formControl.borderRadius};
768
- padding: ${({ theme: e, $hasTrailingAction: t }) => t ? `${y(e).formControl.padding} ${y(e).formControl.trailingActionPadding} ${y(e).formControl.padding} ${y(e).formControl.padding}` : y(e).formControl.padding};
769
- background: ${({ theme: e }) => y(e).colors.background};
770
- color: ${({ theme: e }) => y(e).colors.text};
770
+ border: ${({ theme: e }) => A(e).formControl.border};
771
+ border-radius: ${({ theme: e }) => A(e).formControl.borderRadius};
772
+ padding: ${({ theme: e, $hasTrailingAction: t }) => t ? `${A(e).formControl.padding} ${A(e).formControl.trailingActionPadding} ${A(e).formControl.padding} ${A(e).formControl.padding}` : A(e).formControl.padding};
773
+ background: ${({ theme: e }) => A(e).colors.background};
774
+ color: ${({ theme: e }) => A(e).colors.text};
771
775
  font: inherit;
772
- font-size: ${({ theme: e }) => y(e).formControl.fontSize};
776
+ font-size: ${({ theme: e }) => A(e).formControl.fontSize};
773
777
 
774
- ${T("formControl")}
778
+ ${I("formControl")}
775
779
 
776
780
  &:disabled {
777
781
  cursor: not-allowed;
778
- opacity: ${({ theme: e }) => y(e).opacity.disabled};
782
+ opacity: ${({ theme: e }) => A(e).opacity.disabled};
779
783
  }
780
784
 
781
785
  ${({ $invalid: e, theme: t }) => e && o`
782
- border-color: ${y(t).colors.error};
786
+ border-color: ${A(t).colors.error};
783
787
  `}
784
788
 
785
789
  ${({ $invalid: e, $warning: t, theme: n }) => !e && t && o`
786
- border-color: ${y(n).colors.warning};
790
+ border-color: ${A(n).colors.warning};
787
791
  `}
788
- `, he = o`
789
- color: ${({ theme: e, $type: t }) => y(e).colors[t]};
790
- font-size: ${({ theme: e }) => y(e).typography.small};
791
- `, ge = s.div`
792
- ${S}
793
- `, _e = s.label`
794
- ${pe}
795
- `, ve = s.div`
792
+ `, we = o`
793
+ color: ${({ theme: e, $type: t }) => A(e).colors[t]};
794
+ font-size: ${({ theme: e }) => A(e).typography.small};
795
+ `, Te = s.div`
796
+ ${N}
797
+ `, Ee = s.label`
798
+ ${Se}
799
+ `, De = s.div`
796
800
  position: relative;
797
- `, ye = s.input`
798
- ${me}
801
+ `, Oe = s.input`
802
+ ${Ce}
799
803
 
800
804
  &:focus,
801
805
  &:focus-visible {
802
806
  ${({ $invalid: e, $warning: t, theme: n }) => e ? o`
803
- border-color: ${y(n).colors.error};
807
+ border-color: ${A(n).colors.error};
804
808
  ` : t ? o`
805
- border-color: ${y(n).colors.warning};
809
+ border-color: ${A(n).colors.warning};
806
810
  ` : ""}
807
811
  /* TODO: This prevents the outline from appearing when navigating with the Tab key */
808
812
  outline: none;
809
813
  }
810
- `, be = s(G)`
814
+ `, ke = s(q)`
811
815
  position: absolute;
812
816
  top: 50%;
813
- right: ${({ theme: e }) => y(e).space.md};
817
+ right: ${({ theme: e }) => A(e).space.md};
814
818
  translate: 0 -50%;
815
- `, J = s.div`
816
- ${he}
819
+ `, X = s.div`
820
+ ${we}
817
821
  `;
818
822
  // src/components/atoms/AInput/AInput.tsx
819
- function xe({ visible: e }) {
820
- return /* @__PURE__ */ l("svg", {
821
- fill: "none",
822
- viewBox: "0 0 24 24",
823
- children: [/* @__PURE__ */ c("path", {
824
- d: "M2.5 12s3.25-6 9.5-6 9.5 6 9.5 6-3.25 6-9.5 6-9.5-6-9.5-6Z",
825
- stroke: "currentColor",
826
- strokeLinecap: "round",
827
- strokeLinejoin: "round",
828
- strokeWidth: "1.8"
829
- }), e ? /* @__PURE__ */ c("path", {
830
- d: "m3 3 18 18M10.6 10.6a2 2 0 0 0 2.8 2.8",
831
- stroke: "currentColor",
832
- strokeLinecap: "round",
833
- strokeWidth: "1.8"
834
- }) : /* @__PURE__ */ c("circle", {
835
- cx: "12",
836
- cy: "12",
837
- r: "2.5",
838
- stroke: "currentColor",
839
- strokeWidth: "1.8"
840
- })]
841
- });
842
- }
843
- function Se({ type: e = "text", id: n, label: i, error: a, warning: o, disabled: s, ref: u, "aria-describedby": d, "aria-invalid": f, ...p }) {
844
- let m = t(), h = n ?? m, g = `${h}-error`, _ = `${h}-warning`, [v, y] = r(!1), b = !!a || f === !0 || f === "true", x = [
823
+ function Ae({ type: e = "text", id: n, label: i, error: a, warning: o, disabled: s, ref: u, "aria-describedby": d, "aria-invalid": f, ...h }) {
824
+ let g = t(), _ = n ?? g, v = `${_}-error`, y = `${_}-warning`, [b, x] = r(!1), S = !!a || f === !0 || f === "true", C = [
845
825
  d,
846
- a ? g : void 0,
847
- o ? _ : void 0
826
+ a ? v : void 0,
827
+ o ? y : void 0
848
828
  ].filter(Boolean).join(" ") || void 0;
849
- return /* @__PURE__ */ l(ge, { children: [
850
- i ? /* @__PURE__ */ c(_e, {
851
- htmlFor: h,
829
+ return /* @__PURE__ */ l(Te, { children: [
830
+ i ? /* @__PURE__ */ c(Ee, {
831
+ htmlFor: _,
852
832
  children: i
853
833
  }) : null,
854
- /* @__PURE__ */ l(ve, { children: [/* @__PURE__ */ c(ye, {
855
- ...p,
834
+ /* @__PURE__ */ l(De, { children: [/* @__PURE__ */ c(Oe, {
835
+ ...h,
856
836
  $hasTrailingAction: e === "password",
857
- $invalid: b,
837
+ $invalid: S,
858
838
  $warning: !!o,
859
- "aria-describedby": x,
860
- "aria-invalid": b || void 0,
839
+ "aria-describedby": C,
840
+ "aria-invalid": S || void 0,
861
841
  disabled: s,
862
- id: h,
842
+ id: _,
863
843
  ref: u,
864
- type: e === "password" && v ? "text" : e
865
- }), e === "password" ? /* @__PURE__ */ c(be, {
866
- "aria-label": v ? "Hide password" : "Show password",
867
- "aria-pressed": v,
844
+ type: e === "password" && b ? "text" : e
845
+ }), e === "password" ? /* @__PURE__ */ c(ke, {
846
+ "aria-label": b ? "Hide password" : "Show password",
847
+ "aria-pressed": b,
868
848
  disabled: s,
869
849
  ghost: !0,
870
850
  onClick: () => {
871
- y((e) => !e);
851
+ x((e) => !e);
872
852
  },
873
853
  shape: "rounded",
874
- size: "md",
854
+ size: "sm",
875
855
  type: "button",
876
856
  variant: "primary",
877
- children: /* @__PURE__ */ c(H, {
878
- size: "md",
879
- style: { color: "inherit" },
880
- title: v ? "Hide password" : "Show password",
881
- children: /* @__PURE__ */ c(xe, { visible: v })
882
- })
857
+ icon: b ? m : p
883
858
  }) : null] }),
884
- a ? /* @__PURE__ */ c(J, {
859
+ a ? /* @__PURE__ */ c(X, {
885
860
  $type: "error",
886
- id: g,
861
+ id: v,
887
862
  role: "alert",
888
863
  children: a
889
864
  }) : null,
890
- o ? /* @__PURE__ */ c(J, {
865
+ o ? /* @__PURE__ */ c(X, {
891
866
  $type: "warning",
892
- id: _,
867
+ id: y,
893
868
  role: "status",
894
869
  children: o
895
870
  }) : null
896
871
  ] });
897
872
  }
898
873
  // src/components/atoms/ALink/ALink.styles.ts
899
- var Ce = C("link"), we = {
874
+ var je = P("link"), Me = {
900
875
  primary: o`
901
- background: ${({ theme: e }) => y(e).colors.primary};
902
- color: ${({ theme: e }) => y(e).colors.primaryText};
876
+ background: ${({ theme: e }) => A(e).colors.primary};
877
+ color: ${({ theme: e }) => A(e).colors.primaryText};
903
878
 
904
879
  &:hover:not(:disabled) {
905
- background: ${({ theme: e }) => p(y(e).colors.primary, y(e).colors.ink)};
880
+ background: ${({ theme: e }) => w(A(e).colors.primary, A(e).colors.ink)};
906
881
  }
907
882
  `,
908
883
  secondary: o`
909
- background: ${({ theme: e }) => y(e).colors.secondary};
910
- color: ${({ theme: e }) => y(e).colors.text};
884
+ background: ${({ theme: e }) => A(e).colors.secondary};
885
+ color: ${({ theme: e }) => A(e).colors.text};
911
886
 
912
887
  &:hover:not(:disabled) {
913
- background: ${({ theme: e }) => p(y(e).colors.secondary, y(e).colors.ink)};
888
+ background: ${({ theme: e }) => w(A(e).colors.secondary, A(e).colors.ink)};
914
889
  }
915
890
  `
916
- }, Te = s.a`
891
+ }, Ne = s.a`
917
892
  display: inline-flex;
918
893
  align-items: center;
919
894
  justify-content: center;
920
- gap: ${({ theme: e }) => y(e).space.sm};
921
- font-family: ${({ theme: e }) => y(e).font.sans};
922
- font-size: ${({ theme: e }) => y(e).link.fontSize};
923
- font-weight: ${({ theme: e }) => y(e).font.weight.semibold};
924
- text-transform: ${({ theme: e }) => y(e).link.textTransform};
925
- text-decoration: ${({ theme: e }) => y(e).link.textDecoration};
895
+ gap: ${({ theme: e }) => A(e).space.sm};
896
+ font-family: ${({ theme: e }) => A(e).font.sans};
897
+ font-size: ${({ theme: e }) => A(e).link.fontSize};
898
+ font-weight: ${({ theme: e }) => A(e).font.weight.semibold};
899
+ text-transform: ${({ theme: e }) => A(e).link.textTransform};
900
+ text-decoration: ${({ theme: e }) => A(e).link.textDecoration};
926
901
  cursor: pointer;
927
902
  transition:
928
903
  background-color 0.15s ease,
929
904
  transform 0.15s ease,
930
905
  box-shadow 0.15s ease;
931
906
 
932
- ${T("link")}
907
+ ${I("link")}
933
908
 
934
- border: ${({ theme: e }) => y(e).link.border};
935
- box-shadow: ${({ theme: e }) => y(e).shadow.link};
936
- border-radius: ${({ theme: e }) => y(e).link.borderRadius};
937
- padding: ${({ theme: e }) => y(e).link.padding};
909
+ border: ${({ theme: e }) => A(e).link.border};
910
+ box-shadow: ${({ theme: e }) => A(e).shadow.link};
911
+ border-radius: ${({ theme: e }) => A(e).link.borderRadius};
912
+ padding: ${({ theme: e }) => A(e).link.padding};
938
913
 
939
914
  white-space: nowrap;
940
915
 
941
916
  &:active,
942
917
  &[data-pressed='true'] {
943
- transform: ${({ theme: e }) => `translate(${y(e).shadow.offsetX}, ${y(e).shadow.offsetY})`};
918
+ transform: ${({ theme: e }) => `translate(${A(e).shadow.offsetX}, ${A(e).shadow.offsetY})`};
944
919
  box-shadow: none;
945
920
  }
946
921
 
947
- ${({ $variant: e }) => we[e]}
948
- ${({ $size: e }) => Ce[e]}
922
+ ${({ $variant: e }) => Me[e]}
923
+ ${({ $size: e }) => je[e]}
949
924
  `;
950
925
  // src/components/atoms/ALink/ALink.tsx
951
- function Y({ children: e, variant: t = "primary", size: n = "md", onPointerDown: r, onPointerUp: i, onPointerCancel: a, onLostPointerCapture: o, ...s }) {
952
- let { pressed: l, pressHandlers: u } = j({
926
+ function Z({ children: e, variant: t = "primary", size: n = "md", onPointerDown: r, onPointerUp: i, onPointerCancel: a, onLostPointerCapture: o, ...s }) {
927
+ let { pressed: l, pressHandlers: u } = H({
953
928
  onPointerDown: r,
954
929
  onPointerUp: i,
955
930
  onPointerCancel: a,
956
931
  onLostPointerCapture: o
957
932
  });
958
- return /* @__PURE__ */ c(Te, {
933
+ return /* @__PURE__ */ c(Ne, {
959
934
  $size: n,
960
935
  $variant: t,
961
936
  "data-pressed": l ? "true" : void 0,
@@ -965,19 +940,19 @@ function Y({ children: e, variant: t = "primary", size: n = "md", onPointerDown:
965
940
  });
966
941
  }
967
942
  // src/components/atoms/ALogo/ALogo.styles.ts
968
- var Ee = s.div`
969
- --logo-size: ${({ theme: e }) => y(e).logo.size};
943
+ var Pe = s.div`
944
+ --logo-size: ${({ theme: e }) => A(e).logo.size};
970
945
 
971
946
  display: inline-flex;
972
947
  align-items: center;
973
948
  justify-content: center;
974
- gap: ${({ theme: e }) => y(e).space.sm};
949
+ gap: ${({ theme: e }) => A(e).space.sm};
975
950
  min-width: 0;
976
- color: ${({ theme: e }) => y(e).colors.text};
977
- font-family: ${({ theme: e }) => y(e).font.sans};
978
- font-size: ${({ theme: e }) => y(e).logo.fontSize};
979
- font-weight: ${({ theme: e }) => y(e).logo.fontWeight};
980
- white-space: ${({ theme: e }) => y(e).logo.whiteSpace};
951
+ color: ${({ theme: e }) => A(e).colors.text};
952
+ font-family: ${({ theme: e }) => A(e).font.sans};
953
+ font-size: ${({ theme: e }) => A(e).logo.fontSize};
954
+ font-weight: ${({ theme: e }) => A(e).logo.fontWeight};
955
+ white-space: ${({ theme: e }) => A(e).logo.whiteSpace};
981
956
 
982
957
  & > span:first-child > svg,
983
958
  & > span:first-child img {
@@ -989,16 +964,16 @@ var Ee = s.div`
989
964
  }
990
965
 
991
966
  ${({ $variant: e, theme: t }) => e === "icon" && o`
992
- width: ${y(t).logo.size};
993
- height: ${y(t).logo.size};
967
+ width: ${A(t).logo.size};
968
+ height: ${A(t).logo.size};
994
969
  `}
995
- `, De = s.span`
970
+ `, Fe = s.span`
996
971
  overflow: hidden;
997
972
  text-overflow: ellipsis;
998
973
  `;
999
974
  // src/components/atoms/ALogo/ALogo.tsx
1000
- function Oe({ logo: e, name: t, variant: n = "full", ...r }) {
1001
- return /* @__PURE__ */ l(Ee, {
975
+ function Ie({ logo: e, name: t, variant: n = "full", ...r }) {
976
+ return /* @__PURE__ */ l(Pe, {
1002
977
  ...r,
1003
978
  $variant: n,
1004
979
  role: n === "icon" ? "img" : void 0,
@@ -1006,162 +981,138 @@ function Oe({ logo: e, name: t, variant: n = "full", ...r }) {
1006
981
  children: [/* @__PURE__ */ c("span", {
1007
982
  "aria-hidden": "true",
1008
983
  children: e
1009
- }), n === "full" ? /* @__PURE__ */ c(De, { children: t }) : null]
984
+ }), n === "full" ? /* @__PURE__ */ c(Fe, { children: t }) : null]
1010
985
  });
1011
986
  }
1012
987
  // src/components/atoms/ASearchInput/ASearchInput.styles.ts
1013
- var ke = o`
988
+ var Le = o`
1014
989
  box-sizing: border-box;
1015
990
  width: 100%;
1016
- height: ${({ theme: e }) => y(e).formControl.height};
1017
- border: ${({ theme: e }) => y(e).formControl.border};
1018
- border-radius: ${({ theme: e }) => y(e).formControl.borderRadius};
1019
- padding: ${({ theme: e }) => y(e).formControl.padding};
1020
- background: ${({ theme: e }) => y(e).colors.background};
1021
- color: ${({ theme: e }) => y(e).colors.text};
991
+ border: ${({ theme: e }) => A(e).formControl.border};
992
+ border-radius: ${({ theme: e }) => A(e).formControl.borderRadius};
993
+ padding: ${({ theme: e }) => A(e).formControl.padding};
994
+ background: ${({ theme: e }) => A(e).colors.background};
995
+ color: ${({ theme: e }) => A(e).colors.text};
1022
996
  font: inherit;
1023
- font-size: ${({ theme: e }) => y(e).formControl.fontSize};
1024
- `, Ae = s.div`
1025
- ${S}
1026
- `, je = s.div`
997
+ font-size: ${({ theme: e }) => A(e).formControl.fontSize};
998
+ `, Re = s.div`
999
+ ${N}
1000
+ `, ze = s.div`
1027
1001
  position: relative;
1028
- `, Me = s.input`
1029
- ${ke}
1030
- padding-right: ${({ theme: e }) => y(e).formControl.trailingActionPadding};
1002
+ `, Be = s.input`
1003
+ ${Le}
1004
+ padding-right: ${({ theme: e }) => A(e).formControl.trailingActionPadding};
1031
1005
 
1032
1006
  /* TODO: Outline styles should be implemented for each form ui elements */
1033
1007
 
1034
1008
  &:disabled {
1035
1009
  cursor: not-allowed;
1036
- opacity: ${({ theme: e }) => y(e).opacity.disabled};
1010
+ opacity: ${({ theme: e }) => A(e).opacity.disabled};
1037
1011
  }
1038
- `, Ne = s(G)`
1012
+ `, Ve = s(q)`
1039
1013
  position: absolute;
1040
1014
  top: 50%;
1041
- right: ${({ theme: e }) => y(e).space.md};
1015
+ right: ${({ theme: e }) => A(e).space.md};
1042
1016
  translate: 0 -50%;
1043
- `, Pe = s.ul`
1017
+ `, He = s.ul`
1044
1018
  position: absolute;
1045
1019
  z-index: 10;
1046
1020
  top: 100%;
1047
1021
  right: 0;
1048
1022
  left: 0;
1049
- max-height: ${({ theme: e }) => y(e).formControl.optionListMaxHeight};
1023
+ max-height: ${({ theme: e }) => A(e).formControl.optionListMaxHeight};
1050
1024
  margin: 0;
1051
1025
  padding: 0;
1052
1026
  overflow: auto;
1053
- border: ${({ theme: e }) => y(e).formControl.dropdownBorder};
1054
- border-radius: ${({ theme: e }) => y(e).formControl.borderRadius};
1055
- background: ${({ theme: e }) => y(e).colors.background};
1027
+ border: ${({ theme: e }) => A(e).formControl.dropdownBorder};
1028
+ border-radius: ${({ theme: e }) => A(e).formControl.borderRadius};
1029
+ background: ${({ theme: e }) => A(e).colors.background};
1056
1030
  list-style: none;
1057
- `, Fe = s.li`
1058
- ${w}
1059
- background: ${({ theme: e, $active: t }) => t ? y(e).colors.secondaryHover : "transparent"};
1060
- color: ${({ theme: e }) => y(e).colors.text};
1031
+ `, Ue = s.li`
1032
+ ${F}
1033
+ background: ${({ theme: e, $active: t }) => t ? A(e).colors.secondaryHover : "transparent"};
1034
+ color: ${({ theme: e }) => A(e).colors.text};
1061
1035
  cursor: pointer;
1062
1036
  `;
1063
1037
  // src/components/atoms/ASearchInput/ASearchInput.tsx
1064
- function Ie() {
1065
- return /* @__PURE__ */ l("svg", {
1066
- fill: "none",
1067
- viewBox: "0 0 24 24",
1068
- children: [/* @__PURE__ */ c("circle", {
1069
- cx: "10.8",
1070
- cy: "10.8",
1071
- r: "6.3",
1072
- stroke: "currentColor",
1073
- strokeWidth: "1.8"
1074
- }), /* @__PURE__ */ c("path", {
1075
- d: "m15.5 15.5 4 4",
1076
- stroke: "currentColor",
1077
- strokeLinecap: "round",
1078
- strokeWidth: "1.8"
1079
- })]
1080
- });
1081
- }
1082
- function Le({ options: i, value: a, defaultValue: o = "", debounceMs: s = 300, onSearch: u, onSelect: d, onChange: f, onFocus: p, onBlur: m, id: h, disabled: g, ref: _, ...v }) {
1083
- let y = t(), b = h ?? y, x = `${b}-options`, S = n(null), C = n(!1), w = n(null), [T, E] = r(o), [D, O] = r(!1), [k, A] = r(-1), j = a ?? T, M = a !== void 0, N = j.trim().toLocaleLowerCase(), P = N ? i.filter((e) => e.label.toLocaleLowerCase().includes(N) || String(e.value).toLocaleLowerCase().includes(N)) : [], F = D && P.length > 0;
1038
+ function We({ options: i, value: a, defaultValue: o = "", debounceMs: s = 300, onSearch: u, onSelect: d, onChange: f, onFocus: p, onBlur: m, id: h, disabled: g, ref: v, ...y }) {
1039
+ let b = t(), x = h ?? b, S = `${x}-options`, C = n(null), w = n(!1), T = n(null), [E, D] = r(o), [O, k] = r(!1), [A, j] = r(-1), M = a ?? E, N = a !== void 0, P = M.trim().toLocaleLowerCase(), F = P ? i.filter((e) => e.label.toLocaleLowerCase().includes(P) || String(e.value).toLocaleLowerCase().includes(P)) : [], I = O && F.length > 0;
1084
1040
  e(() => {
1085
- if (!C.current) {
1086
- C.current = !0;
1041
+ if (!w.current) {
1042
+ w.current = !0;
1087
1043
  return;
1088
1044
  }
1089
1045
  if (!u) return;
1090
1046
  let e = setTimeout(() => {
1091
- w.current = null, u(j);
1047
+ T.current = null, u(M);
1092
1048
  }, s);
1093
- return w.current = e, () => {
1094
- clearTimeout(e), w.current === e && (w.current = null);
1049
+ return T.current = e, () => {
1050
+ clearTimeout(e), T.current === e && (T.current = null);
1095
1051
  };
1096
1052
  }, [
1097
1053
  s,
1098
1054
  u,
1099
- j
1055
+ M
1100
1056
  ]);
1101
- let I = (e) => {
1102
- M || E(e.currentTarget.value), A(-1), f?.(e);
1103
- }, L = (e) => {
1104
- e.relatedTarget instanceof Node && S.current?.querySelector("[role=\"listbox\"]")?.contains(e.relatedTarget) || (O(!1), A(-1), m?.(e));
1057
+ let L = (e) => {
1058
+ N || D(e.currentTarget.value), j(-1), f?.(e);
1105
1059
  }, R = (e) => {
1106
- M || E(e.label), d?.(e), O(!1);
1060
+ e.relatedTarget instanceof Node && C.current?.querySelector("[role=\"listbox\"]")?.contains(e.relatedTarget) || (k(!1), j(-1), m?.(e));
1107
1061
  }, z = (e) => {
1108
- e.key === "ArrowDown" && P.length > 0 ? (e.preventDefault(), O(!0), A((e) => (e + 1) % P.length)) : e.key === "ArrowUp" && P.length > 0 ? (e.preventDefault(), O(!0), A((e) => e <= 0 ? P.length - 1 : e - 1)) : e.key === "Enter" && F && P[k] ? (e.preventDefault(), R(P[k])) : e.key === "Escape" && (O(!1), A(-1)), v.onKeyDown?.(e);
1062
+ N || D(e.label), d?.(e), k(!1);
1063
+ }, B = (e) => {
1064
+ e.key === "ArrowDown" && F.length > 0 ? (e.preventDefault(), k(!0), j((e) => (e + 1) % F.length)) : e.key === "ArrowUp" && F.length > 0 ? (e.preventDefault(), k(!0), j((e) => e <= 0 ? F.length - 1 : e - 1)) : e.key === "Enter" && I && F[A] ? (e.preventDefault(), z(F[A])) : e.key === "Escape" && (k(!1), j(-1)), y.onKeyDown?.(e);
1109
1065
  };
1110
- return /* @__PURE__ */ c(Ae, {
1111
- ref: S,
1112
- children: /* @__PURE__ */ l(je, { children: [
1113
- /* @__PURE__ */ c(Me, {
1114
- ...v,
1115
- "aria-activedescendant": F && k >= 0 ? `${x}-option-${String(k)}` : void 0,
1066
+ return /* @__PURE__ */ c(Re, {
1067
+ ref: C,
1068
+ children: /* @__PURE__ */ l(ze, { children: [
1069
+ /* @__PURE__ */ c(Be, {
1070
+ ...y,
1071
+ "aria-activedescendant": I && A >= 0 ? `${S}-option-${String(A)}` : void 0,
1116
1072
  "aria-autocomplete": "list",
1117
- "aria-controls": F ? x : void 0,
1118
- "aria-expanded": F,
1073
+ "aria-controls": I ? S : void 0,
1074
+ "aria-expanded": I,
1119
1075
  "aria-haspopup": "listbox",
1120
1076
  autoComplete: "off",
1121
1077
  disabled: g,
1122
- id: b,
1123
- onBlur: L,
1124
- onChange: I,
1078
+ id: x,
1079
+ onBlur: R,
1080
+ onChange: L,
1125
1081
  onFocus: (e) => {
1126
- O(!0), p && p(e);
1082
+ k(!0), p && p(e);
1127
1083
  },
1128
- onKeyDown: z,
1129
- ref: _,
1084
+ onKeyDown: B,
1085
+ ref: v,
1130
1086
  role: "combobox",
1131
- value: j
1087
+ value: M
1132
1088
  }),
1133
- /* @__PURE__ */ c(Ne, {
1089
+ /* @__PURE__ */ c(Ve, {
1134
1090
  "aria-label": "Search",
1135
1091
  disabled: g,
1136
1092
  ghost: !0,
1137
1093
  onClick: () => {
1138
- w.current &&= (clearTimeout(w.current), null), u?.(j);
1094
+ T.current &&= (clearTimeout(T.current), null), u?.(M);
1139
1095
  },
1140
1096
  shape: "rounded",
1141
- size: "md",
1097
+ size: "sm",
1142
1098
  type: "button",
1143
1099
  variant: "primary",
1144
- children: /* @__PURE__ */ c(H, {
1145
- size: "md",
1146
- style: { color: "inherit" },
1147
- title: "Search",
1148
- children: /* @__PURE__ */ c(Ie, {})
1149
- })
1100
+ icon: _
1150
1101
  }),
1151
- F ? /* @__PURE__ */ c(Pe, {
1152
- id: x,
1102
+ I ? /* @__PURE__ */ c(He, {
1103
+ id: S,
1153
1104
  role: "listbox",
1154
- children: P.map((e, t) => /* @__PURE__ */ c(Fe, {
1155
- "aria-selected": t === k,
1156
- id: `${x}-option-${String(t)}`,
1105
+ children: F.map((e, t) => /* @__PURE__ */ c(Ue, {
1106
+ "aria-selected": t === A,
1107
+ id: `${S}-option-${String(t)}`,
1157
1108
  onClick: () => {
1158
- R(e);
1109
+ z(e);
1159
1110
  },
1160
1111
  onMouseDown: (e) => {
1161
1112
  e.preventDefault();
1162
1113
  },
1163
1114
  role: "option",
1164
- $active: t === k,
1115
+ $active: t === A,
1165
1116
  children: e.label
1166
1117
  }, `${String(e.value)}-${e.label}`))
1167
1118
  }) : null
@@ -1169,103 +1120,111 @@ function Le({ options: i, value: a, defaultValue: o = "", debounceMs: s = 300, o
1169
1120
  });
1170
1121
  }
1171
1122
  // src/components/atoms/ASection/ASection.styles.ts
1172
- var Re = s.section`
1173
- border: ${({ theme: e }) => y(e).section.border};
1174
- border-radius: ${({ theme: e }) => y(e).section.borderRadius};
1175
- padding: ${({ theme: e }) => y(e).section.padding};
1176
- background-color: ${({ theme: e }) => y(e).colors.surface};
1177
- box-shadow: ${({ $shadow: e, theme: t }) => e ? y(t).shadow.section : "none"};
1123
+ var Ge = s.section`
1124
+ border: ${({ theme: e }) => A(e).section.border};
1125
+ border-radius: ${({ theme: e }) => A(e).section.borderRadius};
1126
+ padding: ${({ theme: e }) => A(e).section.padding};
1127
+ background-color: ${({ theme: e }) => A(e).colors.surface};
1128
+ box-shadow: ${({ $shadow: e, theme: t }) => e ? A(t).shadow.section : "none"};
1178
1129
  `;
1179
1130
  // src/components/atoms/ASection/ASection.tsx
1180
- function ze({ children: e, shadow: t = !1, ...n }) {
1181
- return /* @__PURE__ */ c(Re, {
1131
+ function Ke({ children: e, shadow: t = !1, ...n }) {
1132
+ return /* @__PURE__ */ c(Ge, {
1182
1133
  $shadow: t,
1183
1134
  ...n,
1184
1135
  children: e
1185
1136
  });
1186
1137
  }
1187
1138
  // src/components/atoms/ASelect/ASelect.styles.ts
1188
- var Be = o`
1189
- color: ${({ theme: e }) => y(e).colors.text};
1190
- font-size: ${({ theme: e }) => y(e).typography.small};
1191
- font-weight: ${({ theme: e }) => y(e).font.weight.semibold};
1192
- `, Ve = o`
1139
+ var qe = o`
1140
+ color: ${({ theme: e }) => A(e).colors.text};
1141
+ font-size: ${({ theme: e }) => A(e).typography.small};
1142
+ font-weight: ${({ theme: e }) => A(e).font.weight.semibold};
1143
+ `, Je = o`
1193
1144
  box-sizing: border-box;
1194
1145
  width: 100%;
1195
- height: ${({ theme: e }) => y(e).formControl.height};
1196
- border: ${({ theme: e }) => y(e).formControl.border};
1197
- border-radius: ${({ theme: e }) => y(e).formControl.borderRadius};
1198
- padding: ${({ theme: e, $hasTrailingAction: t }) => t ? `${y(e).formControl.padding} ${y(e).formControl.trailingActionPadding} ${y(e).formControl.padding} ${y(e).formControl.padding}` : y(e).formControl.padding};
1199
- background: ${({ theme: e }) => y(e).colors.background};
1200
- color: ${({ theme: e }) => y(e).colors.text};
1146
+ border: ${({ theme: e }) => A(e).formControl.border};
1147
+ border-radius: ${({ theme: e }) => A(e).formControl.borderRadius};
1148
+ padding: ${({ theme: e, $hasTrailingAction: t }) => t ? `${A(e).formControl.padding} ${A(e).formControl.trailingActionPadding} ${A(e).formControl.padding} ${A(e).formControl.padding}` : A(e).formControl.padding};
1149
+ background: ${({ theme: e }) => A(e).colors.background};
1150
+ color: ${({ theme: e }) => A(e).colors.text};
1201
1151
  font: inherit;
1202
- font-size: ${({ theme: e }) => y(e).formControl.fontSize};
1152
+ font-size: ${({ theme: e }) => A(e).formControl.fontSize};
1203
1153
 
1204
- ${T("formControl")}
1154
+ ${I("formControl")}
1205
1155
 
1206
1156
  &:disabled {
1207
1157
  cursor: not-allowed;
1208
- opacity: ${({ theme: e }) => y(e).opacity.disabled};
1158
+ opacity: ${({ theme: e }) => A(e).opacity.disabled};
1209
1159
  }
1210
1160
 
1211
1161
  ${({ $invalid: e, theme: t }) => e && o`
1212
- border-color: ${y(t).colors.error};
1162
+ border-color: ${A(t).colors.error};
1213
1163
  `}
1214
1164
 
1215
1165
  ${({ $invalid: e, $warning: t, theme: n }) => !e && t && o`
1216
- border-color: ${y(n).colors.warning};
1166
+ border-color: ${A(n).colors.warning};
1217
1167
  `}
1218
- `, He = o`
1219
- color: ${({ theme: e, $type: t }) => y(e).colors[t]};
1220
- font-size: ${({ theme: e }) => y(e).typography.small};
1221
- `, Ue = s.div`
1222
- ${S}
1223
- `, We = s.div`
1168
+ `, Ye = o`
1169
+ color: ${({ theme: e, $type: t }) => A(e).colors[t]};
1170
+ font-size: ${({ theme: e }) => A(e).typography.small};
1171
+ `, Xe = s.div`
1172
+ ${N}
1173
+ `, Ze = s.div`
1174
+ position: relative;
1175
+ `, Qe = s.label`
1176
+ ${qe}
1177
+ `, $e = s.div`
1178
+ ${Je}
1224
1179
  position: relative;
1225
- `, Ge = s.label`
1226
- ${Be}
1227
- `, Ke = s.div`
1228
- ${Ve}
1229
1180
  display: flex;
1230
1181
  align-items: center;
1231
- justify-content: space-between;
1232
- gap: ${({ theme: e }) => y(e).space.lg};
1233
1182
  text-align: left;
1234
1183
  cursor: ${({ $disabled: e }) => e ? "not-allowed" : "pointer"};
1235
1184
 
1236
1185
  ${({ $disabled: e }) => e && o`
1237
- opacity: ${({ theme: e }) => y(e).opacity.disabled};
1186
+ opacity: ${({ theme: e }) => A(e).opacity.disabled};
1238
1187
  `}
1239
- `, qe = s.div`
1188
+ `, et = s.div`
1240
1189
  position: absolute;
1241
1190
  z-index: 10;
1242
1191
  top: 100%;
1243
1192
  right: 0;
1244
1193
  left: 0;
1245
- max-height: ${({ theme: e }) => y(e).formControl.optionListMaxHeight};
1194
+ max-height: ${({ theme: e }) => A(e).formControl.optionListMaxHeight};
1246
1195
  overflow: auto;
1247
- border: ${({ theme: e }) => y(e).formControl.dropdownBorder};
1248
- border-radius: ${({ theme: e }) => y(e).formControl.borderRadius};
1249
- background: ${({ theme: e }) => y(e).colors.background};
1250
- `, Je = s.button`
1196
+ border: ${({ theme: e }) => A(e).formControl.dropdownBorder};
1197
+ border-radius: ${({ theme: e }) => A(e).formControl.borderRadius};
1198
+ background: ${({ theme: e }) => A(e).colors.background};
1199
+ `, tt = s.button`
1251
1200
  display: block;
1252
1201
  width: 100%;
1253
- ${w}
1202
+ ${F}
1254
1203
  border: 0;
1255
1204
  border-radius: 0;
1256
- background: ${({ theme: e, $selected: t }) => t ? y(e).colors.secondary : "transparent"};
1257
- color: ${({ theme: e }) => y(e).colors.text};
1205
+ background: ${({ theme: e, $selected: t }) => t ? A(e).colors.secondary : "transparent"};
1206
+ color: ${({ theme: e }) => A(e).colors.text};
1258
1207
  font: inherit;
1259
1208
  text-align: left;
1260
- text-transform: ${({ theme: e }) => y(e).formControl.optionTextTransform};
1209
+ text-transform: ${({ theme: e }) => A(e).formControl.optionTextTransform};
1261
1210
  cursor: pointer;
1262
1211
 
1263
1212
  &:hover,
1264
1213
  &:focus-visible {
1265
- background: ${({ theme: e }) => y(e).colors.secondaryHover};
1214
+ background: ${({ theme: e }) => A(e).colors.secondaryHover};
1266
1215
  outline: none;
1267
1216
  }
1268
- `, Ye = s.select`
1217
+ `, nt = s(q)`
1218
+ position: absolute;
1219
+ top: 50%;
1220
+ right: ${({ theme: e }) => A(e).space.md};
1221
+ translate: 0 -50%;
1222
+
1223
+ svg {
1224
+ transform: ${({ $open: e }) => e ? "rotate(180deg)" : "none"};
1225
+ transition: transform 120ms ease;
1226
+ }
1227
+ `, rt = s.select`
1269
1228
  position: absolute;
1270
1229
  width: 1px;
1271
1230
  height: 1px;
@@ -1274,138 +1233,126 @@ var Be = o`
1274
1233
  clip: rect(0, 0, 0, 0);
1275
1234
  white-space: nowrap;
1276
1235
  border: 0;
1277
- `, Xe = s.span`
1236
+ `, it = s.span`
1278
1237
  overflow: hidden;
1279
- color: ${({ theme: e, $placeholder: t }) => t ? y(e).colors.muted : "inherit"};
1238
+ color: ${({ theme: e, $placeholder: t }) => t ? A(e).colors.muted : "inherit"};
1280
1239
  text-overflow: ellipsis;
1281
1240
  white-space: nowrap;
1282
- `, X = s.div`
1283
- ${He}
1241
+ `, Q = s.div`
1242
+ ${Ye}
1284
1243
  `;
1285
1244
  // src/components/atoms/ASelect/ASelect.tsx
1286
- function Ze({ options: i, value: a, defaultValue: o, onChange: s, onValueChange: u, onBlur: d, id: f, name: p, label: m, placeholder: h = "Select an option", error: g, warning: _, disabled: v, required: y, ref: b, "aria-describedby": x, "aria-invalid": S, ...C }) {
1287
- let w = t(), T = f ?? w, E = `${T}-options`, D = `${T}-error`, O = `${T}-warning`, k = n(null), A = n(null), j = n(null), [M, N] = r(o), [P, F] = r(!1), I = a ?? M, L = i.find((e) => String(e.value) === String(I)), R = !!g || S === !0 || S === "true", z = [
1288
- x,
1289
- g ? D : void 0,
1290
- _ ? O : void 0
1291
- ].filter(Boolean).join(" ") || void 0, B = (e) => {
1245
+ function at({ options: i, value: a, defaultValue: o, onChange: s, onValueChange: d, onBlur: f, id: p, name: m, label: h, placeholder: g = "Select an option", error: _, warning: v, disabled: y, required: b, ref: x, "aria-describedby": S, "aria-invalid": C, ...w }) {
1246
+ let T = t(), E = p ?? T, D = `${E}-options`, O = `${E}-error`, k = `${E}-warning`, A = n(null), j = n(null), M = n(null), [N, P] = r(o), [F, I] = r(!1), L = a ?? N, R = i.find((e) => String(e.value) === String(L)), z = !!_ || C === !0 || C === "true", B = [
1247
+ S,
1248
+ _ ? O : void 0,
1249
+ v ? k : void 0
1250
+ ].filter(Boolean).join(" ") || void 0, V = (e) => {
1292
1251
  s?.(e);
1293
1252
  };
1294
1253
  e(() => {
1295
- if (!P) return;
1254
+ if (!F) return;
1296
1255
  let e = (e) => {
1297
- e.target instanceof Node && k.current?.contains(e.target) || F(!1);
1256
+ e.target instanceof Node && A.current?.contains(e.target) || I(!1);
1298
1257
  };
1299
1258
  return document.addEventListener("pointerdown", e), () => {
1300
1259
  document.removeEventListener("pointerdown", e);
1301
1260
  };
1302
- }, [P]), e(() => {
1303
- P && (k.current?.querySelector("[role=\"option\"][aria-selected=\"true\"]") ?? k.current?.querySelector("[role=\"option\"]"))?.focus();
1304
- }, [P]);
1305
- let V = (e) => {
1306
- a === void 0 && N(e), u?.(e);
1307
- let t = A.current;
1261
+ }, [F]), e(() => {
1262
+ F && (A.current?.querySelector("[role=\"option\"][aria-selected=\"true\"]") ?? A.current?.querySelector("[role=\"option\"]"))?.focus();
1263
+ }, [F]);
1264
+ let H = (e) => {
1265
+ a === void 0 && P(e), d?.(e);
1266
+ let t = j.current;
1308
1267
  t && (t.value = String(e), t.dispatchEvent(new Event("change", { bubbles: !0 })));
1309
- }, H = (e) => {
1310
- k.current?.contains(e.relatedTarget) || (F(!1), A.current?.dispatchEvent(new FocusEvent("focusout", { bubbles: !0 })));
1311
- }, U = (e, t) => {
1268
+ }, U = (e) => {
1269
+ A.current?.contains(e.relatedTarget) || (I(!1), j.current?.dispatchEvent(new FocusEvent("focusout", { bubbles: !0 })));
1270
+ }, W = (e, t) => {
1312
1271
  let n;
1313
- e.key === "ArrowDown" && (n = (t + 1) % i.length), e.key === "ArrowUp" && (n = (t - 1 + i.length) % i.length), e.key === "Home" && (n = 0), e.key === "End" && (n = i.length - 1), e.key === "Escape" ? (e.preventDefault(), F(!1), j.current?.focus()) : n !== void 0 && (e.preventDefault(), k.current?.querySelectorAll("[role=\"option\"]")[n]?.focus());
1272
+ e.key === "ArrowDown" && (n = (t + 1) % i.length), e.key === "ArrowUp" && (n = (t - 1 + i.length) % i.length), e.key === "Home" && (n = 0), e.key === "End" && (n = i.length - 1), e.key === "Escape" ? (e.preventDefault(), I(!1), M.current?.focus()) : n !== void 0 && (e.preventDefault(), A.current?.querySelectorAll("[role=\"option\"]")[n]?.focus());
1314
1273
  };
1315
- return /* @__PURE__ */ l(Ue, {
1316
- ref: k,
1274
+ return /* @__PURE__ */ l(Xe, {
1275
+ ref: A,
1317
1276
  children: [
1318
- m ? /* @__PURE__ */ c(Ge, {
1319
- htmlFor: T,
1320
- children: m
1277
+ h ? /* @__PURE__ */ c(Qe, {
1278
+ htmlFor: E,
1279
+ children: h
1321
1280
  }) : null,
1322
- /* @__PURE__ */ l(We, { children: [
1323
- /* @__PURE__ */ l(Ye, {
1324
- ...C,
1281
+ /* @__PURE__ */ l(Ze, { children: [
1282
+ /* @__PURE__ */ l(rt, {
1283
+ ...w,
1325
1284
  "aria-hidden": "true",
1326
- "aria-invalid": R || void 0,
1327
- disabled: v,
1328
- id: `${T}-native`,
1329
- name: p,
1330
- onBlur: d,
1331
- onChange: B,
1285
+ "aria-invalid": z || void 0,
1286
+ disabled: y,
1287
+ id: `${E}-native`,
1288
+ name: m,
1289
+ onBlur: f,
1290
+ onChange: V,
1332
1291
  ref: (e) => {
1333
- A.current = e, typeof b == "function" ? b(e) : b && (b.current = e);
1292
+ j.current = e, typeof x == "function" ? x(e) : x && (x.current = e);
1334
1293
  },
1335
- required: y,
1294
+ required: b,
1336
1295
  tabIndex: -1,
1337
- value: I === void 0 ? "" : String(I),
1296
+ value: L === void 0 ? "" : String(L),
1338
1297
  children: [/* @__PURE__ */ c("option", {
1339
1298
  value: "",
1340
- children: h
1299
+ children: g
1341
1300
  }), i.map((e) => /* @__PURE__ */ c("option", {
1342
1301
  value: String(e.value),
1343
1302
  children: e.label
1344
1303
  }, String(e.value)))]
1345
1304
  }),
1346
- /* @__PURE__ */ l(Ke, {
1305
+ /* @__PURE__ */ l($e, {
1347
1306
  onClick: () => {
1348
- v || F((e) => !e);
1307
+ y || I((e) => !e);
1349
1308
  },
1350
- $disabled: !!v,
1351
- $invalid: R,
1352
- $warning: !!_,
1353
- children: [/* @__PURE__ */ c(Xe, {
1354
- $placeholder: !L,
1355
- children: L?.label ?? h
1356
- }), /* @__PURE__ */ c(G, {
1357
- "aria-controls": E,
1358
- "aria-describedby": z,
1359
- "aria-expanded": P,
1309
+ $disabled: !!y,
1310
+ $hasTrailingAction: !0,
1311
+ $invalid: z,
1312
+ $warning: !!v,
1313
+ children: [/* @__PURE__ */ c(it, {
1314
+ $placeholder: !R,
1315
+ children: R?.label ?? g
1316
+ }), /* @__PURE__ */ c(nt, {
1317
+ "aria-controls": D,
1318
+ "aria-describedby": B,
1319
+ "aria-expanded": F,
1360
1320
  "aria-haspopup": "listbox",
1361
- "aria-invalid": R || void 0,
1362
- "aria-label": m ?? h,
1363
- disabled: v,
1321
+ "aria-invalid": z || void 0,
1322
+ "aria-label": h ?? g,
1323
+ disabled: y,
1364
1324
  ghost: !0,
1365
- id: T,
1366
- onBlur: H,
1325
+ id: E,
1326
+ onBlur: U,
1367
1327
  onClick: (e) => {
1368
- e.stopPropagation(), F((e) => !e);
1328
+ e.stopPropagation(), I((e) => !e);
1369
1329
  },
1370
1330
  onKeyDown: (e) => {
1371
- e.key === "Escape" ? F(!1) : P || e.key !== "ArrowDown" && e.key !== "Enter" && e.key !== " " || (e.preventDefault(), F(!0));
1331
+ e.key === "Escape" ? I(!1) : F || e.key !== "ArrowDown" && e.key !== "Enter" && e.key !== " " || (e.preventDefault(), I(!0));
1372
1332
  },
1373
- ref: j,
1333
+ ref: M,
1374
1334
  shape: "rounded",
1375
- size: "md",
1335
+ size: "sm",
1376
1336
  type: "button",
1377
1337
  variant: "primary",
1378
- children: /* @__PURE__ */ c("svg", {
1379
- fill: "none",
1380
- style: {
1381
- transform: P ? "rotate(180deg)" : "rotate(0)",
1382
- transition: "transform 120ms ease"
1383
- },
1384
- viewBox: "0 0 24 24",
1385
- children: /* @__PURE__ */ c("path", {
1386
- d: "m6 9 6 6 6-6",
1387
- stroke: "currentColor",
1388
- strokeLinecap: "round",
1389
- strokeLinejoin: "round",
1390
- strokeWidth: "2"
1391
- })
1392
- })
1338
+ $open: F,
1339
+ icon: u
1393
1340
  })]
1394
1341
  }),
1395
- P ? /* @__PURE__ */ c(qe, {
1396
- id: E,
1342
+ F ? /* @__PURE__ */ c(et, {
1343
+ id: D,
1397
1344
  role: "listbox",
1398
- "aria-label": m,
1345
+ "aria-label": h,
1399
1346
  children: i.map((e, t) => {
1400
- let n = String(e.value) === String(I ?? "");
1401
- return /* @__PURE__ */ c(Je, {
1347
+ let n = String(e.value) === String(L ?? "");
1348
+ return /* @__PURE__ */ c(tt, {
1402
1349
  "aria-selected": n,
1403
1350
  onClick: () => {
1404
- V(e.value), F(!1), j.current?.focus();
1351
+ H(e.value), I(!1), M.current?.focus();
1405
1352
  },
1406
- onBlur: H,
1353
+ onBlur: U,
1407
1354
  onKeyDown: (e) => {
1408
- U(e, t);
1355
+ W(e, t);
1409
1356
  },
1410
1357
  role: "option",
1411
1358
  tabIndex: -1,
@@ -1416,83 +1363,83 @@ function Ze({ options: i, value: a, defaultValue: o, onChange: s, onValueChange:
1416
1363
  })
1417
1364
  }) : null
1418
1365
  ] }),
1419
- g ? /* @__PURE__ */ c(X, {
1366
+ _ ? /* @__PURE__ */ c(Q, {
1420
1367
  $type: "error",
1421
- id: D,
1368
+ id: O,
1422
1369
  role: "alert",
1423
- children: g
1370
+ children: _
1424
1371
  }) : null,
1425
- _ ? /* @__PURE__ */ c(X, {
1372
+ v ? /* @__PURE__ */ c(Q, {
1426
1373
  $type: "warning",
1427
- id: O,
1374
+ id: k,
1428
1375
  role: "status",
1429
- children: _
1376
+ children: v
1430
1377
  }) : null
1431
1378
  ]
1432
1379
  });
1433
1380
  }
1434
1381
  // src/components/atoms/ATextarea/ATextarea.styles.ts
1435
- var Qe = s.div`
1436
- ${S}
1437
- `, $e = s.label`
1438
- color: ${({ theme: e }) => y(e).colors.text};
1439
- font-size: ${({ theme: e }) => y(e).typography.small};
1440
- font-weight: ${({ theme: e }) => y(e).font.weight.semibold};
1441
- `, et = s.textarea`
1382
+ var ot = s.div`
1383
+ ${N}
1384
+ `, st = s.label`
1385
+ color: ${({ theme: e }) => A(e).colors.text};
1386
+ font-size: ${({ theme: e }) => A(e).typography.small};
1387
+ font-weight: ${({ theme: e }) => A(e).font.weight.semibold};
1388
+ `, ct = s.textarea`
1442
1389
  box-sizing: border-box;
1443
1390
  width: 100%;
1444
- height: ${({ $height: e, theme: t }) => e == null ? y(t).formControl.textareaHeight : typeof e == "number" ? `${e.toString()}px` : e};
1445
- min-height: ${({ theme: e }) => y(e).formControl.textareaHeight};
1446
- border: ${({ theme: e }) => y(e).formControl.border};
1447
- border-radius: ${({ theme: e }) => y(e).formControl.borderRadius};
1448
- padding: ${({ theme: e }) => y(e).formControl.padding};
1449
- background: ${({ theme: e }) => y(e).colors.background};
1450
- color: ${({ theme: e }) => y(e).colors.text};
1391
+ height: ${({ $height: e, theme: t }) => e == null ? A(t).formControl.textareaHeight : typeof e == "number" ? `${e.toString()}px` : e};
1392
+ min-height: ${({ theme: e }) => A(e).formControl.textareaHeight};
1393
+ border: ${({ theme: e }) => A(e).formControl.border};
1394
+ border-radius: ${({ theme: e }) => A(e).formControl.borderRadius};
1395
+ padding: ${({ theme: e }) => A(e).formControl.padding};
1396
+ background: ${({ theme: e }) => A(e).colors.background};
1397
+ color: ${({ theme: e }) => A(e).colors.text};
1451
1398
  font: inherit;
1452
- font-size: ${({ theme: e }) => y(e).formControl.fontSize};
1399
+ font-size: ${({ theme: e }) => A(e).formControl.fontSize};
1453
1400
  resize: ${({ $resizable: e }) => e ? "vertical" : "none"};
1454
1401
 
1455
- ${T("formControl")}
1402
+ ${I("formControl")}
1456
1403
 
1457
1404
  &:disabled {
1458
1405
  cursor: not-allowed;
1459
- opacity: ${({ theme: e }) => y(e).opacity.disabled};
1406
+ opacity: ${({ theme: e }) => A(e).opacity.disabled};
1460
1407
  }
1461
1408
 
1462
1409
  ${({ $invalid: e, theme: t }) => e && o`
1463
- border-color: ${y(t).colors.error};
1410
+ border-color: ${A(t).colors.error};
1464
1411
  `}
1465
1412
 
1466
1413
  ${({ $invalid: e, $warning: t, theme: n }) => !e && t && o`
1467
- border-color: ${y(n).colors.warning};
1414
+ border-color: ${A(n).colors.warning};
1468
1415
  `}
1469
1416
 
1470
1417
  &:focus,
1471
1418
  &:focus-visible {
1472
1419
  ${({ $invalid: e, $warning: t, theme: n }) => e ? o`
1473
- border-color: ${y(n).colors.error};
1420
+ border-color: ${A(n).colors.error};
1474
1421
  ` : t ? o`
1475
- border-color: ${y(n).colors.warning};
1422
+ border-color: ${A(n).colors.warning};
1476
1423
  ` : ""}
1477
1424
  outline: none;
1478
1425
  }
1479
- `, Z = s.div`
1480
- color: ${({ theme: e, $type: t }) => y(e).colors[t]};
1481
- font-size: ${({ theme: e }) => y(e).typography.small};
1426
+ `, $ = s.div`
1427
+ color: ${({ theme: e, $type: t }) => A(e).colors[t]};
1428
+ font-size: ${({ theme: e }) => A(e).typography.small};
1482
1429
  `;
1483
1430
  // src/components/atoms/ATextarea/ATextarea.tsx
1484
- function tt({ id: e, label: n, error: r, warning: i, height: a, resizable: o = !1, ref: s, "aria-describedby": u, "aria-invalid": d, ...f }) {
1431
+ function lt({ id: e, label: n, error: r, warning: i, height: a, resizable: o = !1, ref: s, "aria-describedby": u, "aria-invalid": d, ...f }) {
1485
1432
  let p = t(), m = e ?? p, h = `${m}-error`, g = `${m}-warning`, _ = !!r || d === !0 || d === "true", v = [
1486
1433
  u,
1487
1434
  r ? h : void 0,
1488
1435
  i ? g : void 0
1489
1436
  ].filter(Boolean).join(" ") || void 0;
1490
- return /* @__PURE__ */ l(Qe, { children: [
1491
- n ? /* @__PURE__ */ c($e, {
1437
+ return /* @__PURE__ */ l(ot, { children: [
1438
+ n ? /* @__PURE__ */ c(st, {
1492
1439
  htmlFor: m,
1493
1440
  children: n
1494
1441
  }) : null,
1495
- /* @__PURE__ */ c(et, {
1442
+ /* @__PURE__ */ c(ct, {
1496
1443
  ...f,
1497
1444
  $height: a,
1498
1445
  $invalid: _,
@@ -1503,13 +1450,13 @@ function tt({ id: e, label: n, error: r, warning: i, height: a, resizable: o = !
1503
1450
  id: m,
1504
1451
  ref: s
1505
1452
  }),
1506
- r ? /* @__PURE__ */ c(Z, {
1453
+ r ? /* @__PURE__ */ c($, {
1507
1454
  $type: "error",
1508
1455
  id: h,
1509
1456
  role: "alert",
1510
1457
  children: r
1511
1458
  }) : null,
1512
- i ? /* @__PURE__ */ c(Z, {
1459
+ i ? /* @__PURE__ */ c($, {
1513
1460
  $type: "warning",
1514
1461
  id: g,
1515
1462
  role: "status",
@@ -1518,19 +1465,20 @@ function tt({ id: e, label: n, error: r, warning: i, height: a, resizable: o = !
1518
1465
  ] });
1519
1466
  }
1520
1467
  // src/components/atoms/ATypography/ATypography.styles.ts
1521
- var nt = s.p`
1522
- color: ${({ theme: e }) => y(e).colors.text};
1523
- font-family: ${({ theme: e }) => y(e).font.sans};
1468
+ var ut = s.p`
1469
+ color: ${({ theme: e }) => A(e).colors.text};
1470
+ font-family: ${({ theme: e }) => A(e).font.sans};
1471
+ margin: 0;
1524
1472
  font-size: ${({ theme: e, $fontSize: t, $tag: n }) => {
1525
1473
  if (t !== void 0) return t;
1526
- let r = y(e).typography;
1474
+ let r = A(e).typography;
1527
1475
  return n && Object.hasOwn(r, n) ? r[n] : r.fallback;
1528
1476
  }};
1529
1477
  `;
1530
1478
  // src/components/atoms/ATypography/ATypography.tsx
1531
- function rt({ tag: e, as: t, fontSize: n, ...r }) {
1479
+ function dt({ tag: e, as: t, fontSize: n, ...r }) {
1532
1480
  let i = e ?? t ?? "p";
1533
- return /* @__PURE__ */ c(nt, {
1481
+ return /* @__PURE__ */ c(ut, {
1534
1482
  $tag: typeof i == "string" ? i : void 0,
1535
1483
  $fontSize: n,
1536
1484
  as: i,
@@ -1538,15 +1486,15 @@ function rt({ tag: e, as: t, fontSize: n, ...r }) {
1538
1486
  });
1539
1487
  }
1540
1488
  // src/components/molecules/MModal/MModal.styles.ts
1541
- var it = o`
1489
+ var ft = o`
1542
1490
  position: fixed;
1543
1491
  inset: 0;
1544
1492
  z-index: 1000;
1545
1493
  display: flex;
1546
1494
  align-items: center;
1547
1495
  justify-content: center;
1548
- padding: ${({ theme: e }) => y(e).space.lg};
1549
- `, at = o`
1496
+ padding: ${({ theme: e }) => A(e).space.lg};
1497
+ `, pt = o`
1550
1498
  position: absolute;
1551
1499
  inset: 0;
1552
1500
  border: none;
@@ -1554,75 +1502,66 @@ var it = o`
1554
1502
  cursor: pointer;
1555
1503
  background: color-mix(
1556
1504
  in srgb,
1557
- ${({ theme: e }) => y(e).colors.bg} 25%,
1505
+ ${({ theme: e }) => A(e).colors.bg} 25%,
1558
1506
  transparent
1559
1507
  );
1560
- `, ot = o`
1508
+ `, mt = o`
1561
1509
  position: relative;
1562
1510
  z-index: 1;
1563
1511
  box-sizing: border-box;
1564
1512
  display: flex;
1565
1513
  flex-direction: column;
1566
1514
  width: 100%;
1567
- max-width: ${({ theme: e }) => y(e).modal.maxWidth};
1568
- max-height: ${({ theme: e }) => y(e).modal.maxHeight};
1569
- padding: ${({ theme: e }) => y(e).modal.padding};
1515
+ max-width: ${({ theme: e }) => A(e).modal.maxWidth};
1516
+ max-height: ${({ theme: e }) => A(e).modal.maxHeight};
1517
+ padding: ${({ theme: e }) => A(e).modal.padding};
1570
1518
  overflow: hidden;
1571
- background-color: ${({ theme: e }) => y(e).colors.surface};
1572
- border: ${({ theme: e }) => y(e).modal.border};
1573
- border-radius: ${({ theme: e }) => y(e).modal.borderRadius};
1574
- box-shadow: ${({ theme: e }) => y(e).shadow.modal};
1575
- `, st = o`
1519
+ background-color: ${({ theme: e }) => A(e).colors.surface};
1520
+ border: ${({ theme: e }) => A(e).modal.border};
1521
+ border-radius: ${({ theme: e }) => A(e).modal.borderRadius};
1522
+ box-shadow: ${({ theme: e }) => A(e).shadow.modal};
1523
+ `, ht = o`
1576
1524
  display: flex;
1577
1525
  align-items: center;
1578
1526
  justify-content: space-between;
1579
- gap: ${({ theme: e }) => y(e).space.md};
1527
+ gap: ${({ theme: e }) => A(e).space.md};
1580
1528
  flex-shrink: 0;
1581
- `, ct = o`
1529
+ `, gt = o`
1582
1530
  margin: 0;
1583
1531
  min-width: 0;
1584
1532
  flex: 1;
1585
- font-family: ${({ theme: e }) => y(e).font.sans};
1586
- font-size: ${({ theme: e }) => y(e).modal.title.fontSize};
1587
- font-weight: ${({ theme: e }) => y(e).modal.title.fontWeight};
1588
- color: ${({ theme: e }) => y(e).colors.text};
1589
- `, lt = o`
1533
+ font-family: ${({ theme: e }) => A(e).font.sans};
1534
+ font-size: ${({ theme: e }) => A(e).modal.title.fontSize};
1535
+ font-weight: ${({ theme: e }) => A(e).modal.title.fontWeight};
1536
+ color: ${({ theme: e }) => A(e).colors.text};
1537
+ `, _t = o`
1590
1538
  flex: 1;
1591
1539
  min-height: 0;
1592
- margin-top: ${({ theme: e }) => y(e).space.lg};
1540
+ margin-top: ${({ theme: e }) => A(e).space.lg};
1593
1541
  overflow-x: hidden;
1594
1542
  overflow-y: auto;
1595
- font-family: ${({ theme: e }) => y(e).font.sans};
1596
- font-size: ${({ theme: e }) => y(e).modal.body.fontSize};
1597
- color: ${({ theme: e }) => y(e).colors.text};
1598
- `, ut = s.div`
1599
- ${it}
1600
- `, dt = s.button`
1601
- ${at}
1602
- `, ft = s.div`
1603
- ${ot}
1604
- `, pt = s.div`
1605
- ${st}
1606
- `, mt = s.h2`
1607
- ${ct}
1608
- `, ht = s.div`
1609
- ${lt}
1543
+ font-family: ${({ theme: e }) => A(e).font.sans};
1544
+ font-size: ${({ theme: e }) => A(e).modal.body.fontSize};
1545
+ color: ${({ theme: e }) => A(e).colors.text};
1546
+ `, vt = s.div`
1547
+ ${ft}
1548
+ `, yt = s.button`
1549
+ ${pt}
1550
+ `, bt = s.div`
1551
+ ${mt}
1552
+ `, xt = s.div`
1553
+ ${ht}
1554
+ `, St = s.h2`
1555
+ ${gt}
1556
+ `, Ct = s.div`
1557
+ ${_t}
1610
1558
  `;
1611
1559
  // src/components/molecules/MModal/MModal.tsx
1612
- function gt() {
1613
- return /* @__PURE__ */ c("svg", {
1614
- viewBox: "0 0 24 24",
1615
- children: /* @__PURE__ */ c("path", {
1616
- fill: "currentColor",
1617
- d: "M18.3 5.71a1 1 0 0 0-1.41 0L12 10.59 7.11 5.7A1 1 0 0 0 5.7 7.11L10.59 12l-4.9 4.89a1 1 0 1 0 1.42 1.42L12 13.41l4.89 4.9a1 1 0 0 0 1.42-1.42L13.41 12l4.9-4.89a1 1 0 0 0-.01-1.4Z"
1618
- })
1619
- });
1620
- }
1621
- function _t({ open: r, onClose: i, title: a, children: o, closeLabel: s = "Close" }) {
1622
- let d = t(), f = n(null);
1560
+ function wt({ open: r, onClose: i, title: a, children: o, closeLabel: s = "Close" }) {
1561
+ let u = t(), d = n(null);
1623
1562
  return e(() => {
1624
1563
  if (!r) return;
1625
- f.current?.focus();
1564
+ d.current?.focus();
1626
1565
  let e = document.body.style.overflow;
1627
1566
  document.body.style.overflow = "hidden";
1628
1567
  let t = (e) => {
@@ -1631,45 +1570,45 @@ function _t({ open: r, onClose: i, title: a, children: o, closeLabel: s = "Close
1631
1570
  return document.addEventListener("keydown", t), () => {
1632
1571
  document.body.style.overflow = e, document.removeEventListener("keydown", t);
1633
1572
  };
1634
- }, [r, i]), !r || typeof document > "u" ? null : u(/* @__PURE__ */ l(ut, { children: [/* @__PURE__ */ c(dt, {
1573
+ }, [r, i]), !r || typeof document > "u" ? null : x(/* @__PURE__ */ l(vt, { children: [/* @__PURE__ */ c(yt, {
1635
1574
  type: "button",
1636
1575
  "aria-label": "Close overlay",
1637
1576
  onClick: i
1638
- }), /* @__PURE__ */ l(ft, {
1639
- ref: f,
1577
+ }), /* @__PURE__ */ l(bt, {
1578
+ ref: d,
1640
1579
  role: "dialog",
1641
1580
  "aria-modal": "true",
1642
- "aria-labelledby": d,
1581
+ "aria-labelledby": u,
1643
1582
  tabIndex: -1,
1644
- children: [/* @__PURE__ */ l(pt, { children: [/* @__PURE__ */ c(mt, {
1645
- id: d,
1583
+ children: [/* @__PURE__ */ l(xt, { children: [/* @__PURE__ */ c(St, {
1584
+ id: u,
1646
1585
  children: a
1647
- }), /* @__PURE__ */ c(G, {
1586
+ }), /* @__PURE__ */ c(q, {
1648
1587
  "aria-label": s,
1649
1588
  ghost: !0,
1650
1589
  onClick: i,
1651
1590
  shape: "rounded",
1652
1591
  size: "md",
1653
1592
  variant: "primary",
1654
- children: /* @__PURE__ */ c(gt, {})
1655
- })] }), o == null ? null : /* @__PURE__ */ c(ht, { children: o })]
1593
+ icon: b
1594
+ })] }), o == null ? null : /* @__PURE__ */ c(Ct, { children: o })]
1656
1595
  })] }), document.body);
1657
1596
  }
1658
1597
  // src/components/molecules/MNavLinks/MNavLinks.styles.ts
1659
- var Q = o`
1598
+ var Tt = o`
1660
1599
  display: inline-flex;
1661
1600
  align-items: center;
1662
1601
  justify-content: center;
1663
1602
  border: 0;
1664
- padding: ${({ theme: e }) => y(e).navLinks.itemPadding};
1665
- box-shadow: ${({ theme: e }) => y(e).shadow.link};
1666
- background: ${({ theme: e }) => y(e).colors.primary};
1667
- color: ${({ theme: e }) => y(e).colors.primaryText};
1668
- font-family: ${({ theme: e }) => y(e).font.sans};
1669
- font-size: ${({ theme: e }) => y(e).navLinks.fontSize};
1670
- font-weight: ${({ theme: e }) => y(e).font.weight.semibold};
1671
- text-decoration: ${({ theme: e }) => y(e).navLinks.textDecoration};
1672
- text-transform: ${({ theme: e }) => y(e).navLinks.textTransform};
1603
+ padding: ${({ theme: e }) => A(e).navLinks.itemPadding};
1604
+ box-shadow: ${({ theme: e }) => A(e).shadow.link};
1605
+ background: ${({ theme: e }) => A(e).colors.primary};
1606
+ color: ${({ theme: e }) => A(e).colors.primaryText};
1607
+ font-family: ${({ theme: e }) => A(e).font.sans};
1608
+ font-size: ${({ theme: e }) => A(e).navLinks.fontSize};
1609
+ font-weight: ${({ theme: e }) => A(e).font.weight.semibold};
1610
+ text-decoration: ${({ theme: e }) => A(e).navLinks.textDecoration};
1611
+ text-transform: ${({ theme: e }) => A(e).navLinks.textTransform};
1673
1612
  cursor: pointer;
1674
1613
  position: relative;
1675
1614
  z-index: 1;
@@ -1680,65 +1619,65 @@ var Q = o`
1680
1619
  transform 0.15s ease;
1681
1620
 
1682
1621
  &:hover:not(:disabled) {
1683
- background: ${({ theme: e }) => p(y(e).colors.primary, y(e).colors.ink)};
1622
+ background: ${({ theme: e }) => w(A(e).colors.primary, A(e).colors.ink)};
1684
1623
  }
1685
1624
 
1686
1625
  &:first-child {
1687
- border-top-left-radius: ${({ theme: e }) => y(e).navLinks.borderRadius};
1688
- border-bottom-left-radius: ${({ theme: e }) => y(e).navLinks.borderRadius};
1626
+ border-top-left-radius: ${({ theme: e }) => A(e).navLinks.borderRadius};
1627
+ border-bottom-left-radius: ${({ theme: e }) => A(e).navLinks.borderRadius};
1689
1628
  }
1690
1629
 
1691
1630
  &:last-child {
1692
- border-top-right-radius: ${({ theme: e }) => y(e).navLinks.borderRadius};
1693
- border-bottom-right-radius: ${({ theme: e }) => y(e).navLinks.borderRadius};
1631
+ border-top-right-radius: ${({ theme: e }) => A(e).navLinks.borderRadius};
1632
+ border-bottom-right-radius: ${({ theme: e }) => A(e).navLinks.borderRadius};
1694
1633
  }
1695
1634
 
1696
- ${T("navLinks")}
1635
+ ${I("navLinks")}
1697
1636
 
1698
1637
  &:disabled {
1699
- opacity: ${({ theme: e }) => y(e).opacity.disabledButton};
1638
+ opacity: ${({ theme: e }) => A(e).opacity.disabledButton};
1700
1639
  cursor: not-allowed;
1701
1640
  }
1702
- `, vt = s.nav`
1641
+ `, Et = s.nav`
1703
1642
  display: inline-flex;
1704
1643
  align-items: center;
1705
- border-radius: ${({ theme: e }) => y(e).navLinks.borderRadius};
1644
+ border-radius: ${({ theme: e }) => A(e).navLinks.borderRadius};
1706
1645
  padding: 0;
1707
- box-shadow: ${({ theme: e }) => y(e).shadow.navLinks};
1708
- font-family: ${({ theme: e }) => y(e).font.sans};
1709
- font-size: ${({ theme: e }) => y(e).navLinks.fontSize};
1710
- text-transform: ${({ theme: e }) => y(e).navLinks.textTransform};
1646
+ box-shadow: ${({ theme: e }) => A(e).shadow.navLinks};
1647
+ font-family: ${({ theme: e }) => A(e).font.sans};
1648
+ font-size: ${({ theme: e }) => A(e).navLinks.fontSize};
1649
+ text-transform: ${({ theme: e }) => A(e).navLinks.textTransform};
1711
1650
 
1712
1651
  & > a {
1713
- ${Q}
1652
+ ${Tt}
1714
1653
 
1715
- border: ${({ theme: e }) => y(e).navLinks.border};
1654
+ border: ${({ theme: e }) => A(e).navLinks.border};
1716
1655
 
1717
1656
  &:active,
1718
1657
  &[aria-current='page'] {
1719
1658
  z-index: 0;
1720
1659
  box-shadow: none;
1721
1660
  transform: translate(
1722
- calc(0px + ${({ theme: e }) => y(e).shadow.offsetX}),
1723
- ${({ theme: e }) => y(e).shadow.offsetY}
1661
+ calc(0px + ${({ theme: e }) => A(e).shadow.offsetX}),
1662
+ ${({ theme: e }) => A(e).shadow.offsetY}
1724
1663
  );
1725
1664
  }
1726
1665
  }
1727
- `, yt = s.button`
1728
- ${Q}
1666
+ `, Dt = s.button`
1667
+ ${Tt}
1729
1668
  `;
1730
1669
  // src/components/molecules/MNavLinks/MNavLinks.tsx
1731
- function bt({ links: e, ...t }) {
1732
- return /* @__PURE__ */ c(vt, {
1670
+ function Ot({ links: e, ...t }) {
1671
+ return /* @__PURE__ */ c(Et, {
1733
1672
  ...t,
1734
- children: e.map((e) => "href" in e && e.href !== void 0 ? /* @__PURE__ */ c(f, {
1673
+ children: e.map((e) => "href" in e && e.href !== void 0 ? /* @__PURE__ */ c(C, {
1735
1674
  to: e.href,
1736
1675
  className: e.className,
1737
1676
  style: e.style,
1738
1677
  end: e.end,
1739
1678
  caseSensitive: e.caseSensitive,
1740
1679
  children: e.label
1741
- }, e.id) : /* @__PURE__ */ c(yt, {
1680
+ }, e.id) : /* @__PURE__ */ c(Dt, {
1742
1681
  type: "button",
1743
1682
  disabled: e.disabled,
1744
1683
  onClick: e.onClick,
@@ -1747,24 +1686,24 @@ function bt({ links: e, ...t }) {
1747
1686
  });
1748
1687
  }
1749
1688
  // src/components/molecules/MUserBadge/MUserBadge.styles.ts
1750
- var xt = s.a`
1689
+ var kt = s.a`
1751
1690
  display: inline-flex;
1752
1691
  align-items: center;
1753
- gap: ${({ theme: e }) => y(e).space.sm};
1692
+ gap: ${({ theme: e }) => A(e).space.sm};
1754
1693
  color: inherit;
1755
- font-family: ${({ theme: e }) => y(e).font.sans};
1756
- text-decoration: ${({ theme: e }) => y(e).userBadge.textDecoration};
1694
+ font-family: ${({ theme: e }) => A(e).font.sans};
1695
+ text-decoration: ${({ theme: e }) => A(e).userBadge.textDecoration};
1757
1696
 
1758
- ${T("userBadge")}
1697
+ ${I("userBadge")}
1759
1698
  `;
1760
1699
  // src/components/molecules/MUserBadge/MUserBadge.tsx
1761
- function St({ to: e, firstName: t, lastName: n, avatarSrc: r, size: i = "md", showName: a = !0, ...o }) {
1700
+ function At({ to: e, firstName: t, lastName: n, avatarSrc: r, size: i = "md", showName: a = !0, ...o }) {
1762
1701
  let s = `${t} ${n}`.trim();
1763
- return /* @__PURE__ */ l(xt, {
1764
- as: d,
1702
+ return /* @__PURE__ */ l(kt, {
1703
+ as: S,
1765
1704
  to: e,
1766
1705
  ...o,
1767
- children: [/* @__PURE__ */ c(x, {
1706
+ children: [/* @__PURE__ */ c(M, {
1768
1707
  firstName: t,
1769
1708
  lastName: n,
1770
1709
  src: r,
@@ -1775,44 +1714,44 @@ function St({ to: e, firstName: t, lastName: n, avatarSrc: r, size: i = "md", sh
1775
1714
  });
1776
1715
  }
1777
1716
  // src/components/organisms/OSidebar/OSidebar.styles.ts
1778
- var Ct = s.aside`
1717
+ var jt = s.aside`
1779
1718
  box-sizing: border-box;
1780
1719
  display: flex;
1781
1720
  flex: 0 0
1782
- ${({ $extended: e, theme: t }) => e ? y(t).sidebar.width.extended : y(t).sidebar.width.compact};
1721
+ ${({ $extended: e, theme: t }) => e ? A(t).sidebar.width.extended : A(t).sidebar.width.compact};
1783
1722
  flex-direction: column;
1784
- gap: ${({ theme: e }) => y(e).space.sm};
1785
- width: ${({ $extended: e, theme: t }) => e ? y(t).sidebar.width.extended : y(t).sidebar.width.compact};
1786
- height: ${({ theme: e }) => y(e).sidebar.height.fallback};
1787
- height: ${({ theme: e }) => y(e).sidebar.height.dynamic};
1723
+ gap: ${({ theme: e }) => A(e).space.sm};
1724
+ width: ${({ $extended: e, theme: t }) => e ? A(t).sidebar.width.extended : A(t).sidebar.width.compact};
1725
+ height: ${({ theme: e }) => A(e).sidebar.height.fallback};
1726
+ height: ${({ theme: e }) => A(e).sidebar.height.dynamic};
1788
1727
  min-height: 0;
1789
1728
  overflow: hidden;
1790
- padding: ${({ theme: e }) => y(e).space.inset};
1791
- border: ${({ theme: e }) => y(e).sidebar.border};
1792
- border-radius: ${({ theme: e }) => y(e).sidebar.borderRadius};
1793
- background: ${({ theme: e }) => y(e).colors.surface};
1794
- box-shadow: ${({ theme: e }) => y(e).shadow.sidebar};
1729
+ padding: ${({ theme: e }) => A(e).space.inset};
1730
+ border: ${({ theme: e }) => A(e).sidebar.border};
1731
+ border-radius: ${({ theme: e }) => A(e).sidebar.borderRadius};
1732
+ background: ${({ theme: e }) => A(e).colors.surface};
1733
+ box-shadow: ${({ theme: e }) => A(e).shadow.sidebar};
1795
1734
  transition:
1796
1735
  width 0.2s ease,
1797
1736
  flex-basis 0.2s ease;
1798
- `, wt = s.div`
1737
+ `, Mt = s.div`
1799
1738
  display: flex;
1800
1739
  flex-direction: column;
1801
1740
  align-items: center;
1802
- gap: ${({ theme: e }) => y(e).space.sm};
1741
+ gap: ${({ theme: e }) => A(e).space.sm};
1803
1742
  align-items: ${({ $extended: e }) => e ? "flex-end" : "center"};
1804
- `, Tt = s.nav`
1743
+ `, Nt = s.nav`
1805
1744
  display: flex;
1806
1745
  min-height: 0;
1807
1746
  flex: 1;
1808
1747
  flex-direction: column;
1809
1748
  align-items: stretch;
1810
- gap: ${({ theme: e }) => y(e).space.sm};
1811
- margin-inline: ${({ theme: e }) => `-${y(e).space.xs}`};
1812
- padding-inline: ${({ theme: e }) => y(e).space.xs};
1749
+ gap: ${({ theme: e }) => A(e).space.sm};
1750
+ margin-inline: ${({ theme: e }) => `-${A(e).space.xs}`};
1751
+ padding-inline: ${({ theme: e }) => A(e).space.xs};
1813
1752
  overflow-y: auto;
1814
1753
  overflow-x: hidden;
1815
- `, Et = s.div`
1754
+ `, Pt = s.div`
1816
1755
  display: flex;
1817
1756
  width: 100%;
1818
1757
  min-width: 0;
@@ -1823,52 +1762,32 @@ var Ct = s.aside`
1823
1762
  min-width: 0;
1824
1763
  justify-content: ${({ $extended: e }) => e ? "flex-start" : "center"};
1825
1764
  }
1826
- `, Dt = s.div`
1765
+ `, Ft = s.div`
1827
1766
  display: flex;
1828
1767
  flex-direction: column;
1829
- gap: ${({ theme: e }) => y(e).space.sm};
1768
+ gap: ${({ theme: e }) => A(e).space.sm};
1830
1769
  `;
1831
1770
  // src/components/organisms/OSidebar/OSidebar.tsx
1832
- function Ot({ extended: e }) {
1833
- return /* @__PURE__ */ c("svg", {
1834
- viewBox: "0 0 24 24",
1835
- fill: "none",
1836
- "aria-hidden": "true",
1837
- children: e ? /* @__PURE__ */ c("path", {
1838
- d: "m15 18-6-6 6-6",
1839
- stroke: "currentColor",
1840
- strokeWidth: "2",
1841
- strokeLinecap: "round",
1842
- strokeLinejoin: "round"
1843
- }) : /* @__PURE__ */ c("path", {
1844
- d: "m9 18 6-6-6-6",
1845
- stroke: "currentColor",
1846
- strokeWidth: "2",
1847
- strokeLinecap: "round",
1848
- strokeLinejoin: "round"
1849
- })
1850
- });
1851
- }
1852
- function kt({ links: e, logout: t, extended: n, defaultExtended: i = !1, onExtendedChange: a, navigationLabel: o = "Primary navigation", "aria-label": s = "Application sidebar", ...u }) {
1853
- let [d, f] = r(i), p = n ?? d, [m, h] = r(p);
1854
- function g() {
1855
- let e = !p;
1856
- e || h(!0), n === void 0 && f(e), a?.(e);
1771
+ function It({ links: e, logout: t, extended: n, defaultExtended: i = !1, onExtendedChange: a, navigationLabel: o = "Primary navigation", "aria-label": s = "Application sidebar", ...u }) {
1772
+ let [p, m] = r(i), h = n ?? p, [g, _] = r(h);
1773
+ function v() {
1774
+ let e = !h;
1775
+ e || _(!0), n === void 0 && m(e), a?.(e);
1857
1776
  }
1858
- function _(e) {
1859
- e.target === e.currentTarget && e.propertyName === "width" && h(p);
1777
+ function y(e) {
1778
+ e.target === e.currentTarget && e.propertyName === "width" && _(h);
1860
1779
  }
1861
- function v(e) {
1862
- return /* @__PURE__ */ c(Et, {
1863
- $extended: m,
1864
- children: m ? /* @__PURE__ */ l(Y, {
1780
+ function b(e) {
1781
+ return /* @__PURE__ */ c(Pt, {
1782
+ $extended: g,
1783
+ children: g ? /* @__PURE__ */ l(Z, {
1865
1784
  href: e.href,
1866
- children: [/* @__PURE__ */ c(H, {
1785
+ children: [/* @__PURE__ */ c(G, {
1867
1786
  size: "md",
1868
1787
  style: { color: "inherit" },
1869
1788
  children: e.icon
1870
1789
  }), e.label]
1871
- }) : /* @__PURE__ */ c(q, {
1790
+ }) : /* @__PURE__ */ c(Y, {
1872
1791
  href: e.href,
1873
1792
  "aria-label": e.label,
1874
1793
  title: e.label,
@@ -1876,34 +1795,34 @@ function kt({ links: e, logout: t, extended: n, defaultExtended: i = !1, onExten
1876
1795
  })
1877
1796
  }, e.id);
1878
1797
  }
1879
- return /* @__PURE__ */ l(Ct, {
1798
+ return /* @__PURE__ */ l(jt, {
1880
1799
  ...u,
1881
- $extended: p,
1800
+ $extended: h,
1882
1801
  "aria-label": s,
1883
- "data-extended": p,
1884
- onTransitionEnd: _,
1802
+ "data-extended": h,
1803
+ onTransitionEnd: y,
1885
1804
  children: [
1886
- /* @__PURE__ */ c(wt, {
1887
- $extended: p,
1888
- children: /* @__PURE__ */ c(G, {
1889
- "aria-label": p ? "Collapse sidebar" : "Expand sidebar",
1890
- "aria-expanded": p,
1891
- onClick: g,
1805
+ /* @__PURE__ */ c(Mt, {
1806
+ $extended: h,
1807
+ children: /* @__PURE__ */ c(q, {
1808
+ "aria-label": h ? "Collapse sidebar" : "Expand sidebar",
1809
+ "aria-expanded": h,
1810
+ onClick: v,
1892
1811
  size: "sm",
1893
1812
  ghost: !0,
1894
- children: /* @__PURE__ */ c(Ot, { extended: p })
1813
+ icon: h ? d : f
1895
1814
  })
1896
1815
  }),
1897
- /* @__PURE__ */ c(Tt, {
1816
+ /* @__PURE__ */ c(Nt, {
1898
1817
  "aria-label": o,
1899
- children: e.map((e) => v(e))
1818
+ children: e.map((e) => b(e))
1900
1819
  }),
1901
- /* @__PURE__ */ c(Dt, { children: v(t) })
1820
+ /* @__PURE__ */ c(Ft, { children: b(t) })
1902
1821
  ]
1903
1822
  });
1904
1823
  }
1905
1824
  // src/components/organisms/OUserCamera/OUserCamera.styles.ts
1906
- var At = s.div`
1825
+ var Lt = s.div`
1907
1826
  position: relative;
1908
1827
  display: block;
1909
1828
  width: 100%;
@@ -1911,118 +1830,80 @@ var At = s.div`
1911
1830
  aspect-ratio: ${({ $aspectRatio: e }) => e};
1912
1831
  box-sizing: border-box;
1913
1832
  overflow: hidden;
1914
- padding: ${({ theme: e }) => y(e).space.inset};
1915
- border: ${({ theme: e }) => y(e).camera.border};
1916
- border-radius: ${({ theme: e }) => y(e).camera.borderRadius};
1917
- background: ${({ theme: e }) => y(e).colors.surface};
1918
- color: ${({ theme: e }) => y(e).colors.text};
1919
- `, jt = s.video`
1833
+ padding: ${({ theme: e }) => A(e).space.inset};
1834
+ border: ${({ theme: e }) => A(e).camera.border};
1835
+ border-radius: ${({ theme: e }) => A(e).camera.borderRadius};
1836
+ background: ${({ theme: e }) => A(e).colors.surface};
1837
+ color: ${({ theme: e }) => A(e).colors.text};
1838
+ `, Rt = s.video`
1920
1839
  position: absolute;
1921
1840
  inset: 0;
1922
1841
  width: 100%;
1923
1842
  height: 100%;
1924
1843
  object-fit: cover;
1925
- `, Mt = s.div`
1844
+ `, zt = s.div`
1926
1845
  position: absolute;
1927
1846
  inset: 0;
1928
1847
  display: flex;
1929
1848
  align-items: center;
1930
1849
  justify-content: center;
1931
- background: ${({ theme: e }) => y(e).colors.secondary};
1932
- color: ${({ theme: e }) => y(e).colors.primary};
1933
- font-family: ${({ theme: e }) => y(e).font.sans};
1934
- font-size: ${({ theme: e }) => y(e).camera.fallbackFontSize};
1935
- font-weight: ${({ theme: e }) => y(e).camera.fallbackFontWeight};
1936
- `, $ = s.div`
1850
+ background: ${({ theme: e }) => A(e).colors.secondary};
1851
+ color: ${({ theme: e }) => A(e).colors.primary};
1852
+ font-family: ${({ theme: e }) => A(e).font.sans};
1853
+ font-size: ${({ theme: e }) => A(e).camera.fallbackFontSize};
1854
+ font-weight: ${({ theme: e }) => A(e).camera.fallbackFontWeight};
1855
+ `, Bt = s.div`
1937
1856
  position: absolute;
1938
1857
  z-index: 1;
1939
1858
  ${({ $placement: e }) => e === "top-right" ? o`
1940
- top: ${({ theme: e }) => y(e).space.inset};
1941
- right: ${({ theme: e }) => y(e).space.inset};
1859
+ top: ${({ theme: e }) => A(e).space.inset};
1860
+ right: ${({ theme: e }) => A(e).space.inset};
1942
1861
  ` : o`
1943
- right: ${({ theme: e }) => y(e).space.inset};
1944
- bottom: ${({ theme: e }) => y(e).space.inset};
1862
+ right: ${({ theme: e }) => A(e).space.inset};
1863
+ bottom: ${({ theme: e }) => A(e).space.inset};
1945
1864
  `}
1946
- `, Nt = s.span`
1865
+ `, Vt = s.span`
1947
1866
  position: absolute;
1948
1867
  z-index: 1;
1949
- bottom: ${({ theme: e }) => y(e).space.inset};
1950
- left: ${({ theme: e }) => y(e).space.inset};
1951
- max-width: ${({ theme: e }) => `calc(100% - ${y(e).camera.nameMaxWidthOffset})`};
1868
+ bottom: ${({ theme: e }) => A(e).space.inset};
1869
+ left: ${({ theme: e }) => A(e).space.inset};
1870
+ max-width: ${({ theme: e }) => `calc(100% - ${A(e).camera.nameMaxWidthOffset})`};
1952
1871
  overflow: hidden;
1953
- padding: ${({ theme: e }) => `${y(e).space.xs} ${y(e).space.sm}`};
1954
- border-radius: ${({ theme: e }) => y(e).camera.nameBorderRadius};
1955
- background: ${({ theme: e }) => `color-mix(in srgb, ${y(e).colors.ink} 65%, transparent)`};
1956
- color: ${({ theme: e }) => y(e).colors.muted};
1957
- font-family: ${({ theme: e }) => y(e).font.sans};
1958
- font-size: ${({ theme: e }) => y(e).typography.small};
1872
+ padding: ${({ theme: e }) => `${A(e).space.xs} ${A(e).space.sm}`};
1873
+ border-radius: ${({ theme: e }) => A(e).camera.nameBorderRadius};
1874
+ background: ${({ theme: e }) => `color-mix(in srgb, ${A(e).colors.ink} 65%, transparent)`};
1875
+ color: ${({ theme: e }) => A(e).colors.muted};
1876
+ font-family: ${({ theme: e }) => A(e).font.sans};
1877
+ font-size: ${({ theme: e }) => A(e).typography.small};
1959
1878
  text-overflow: ellipsis;
1960
1879
  white-space: nowrap;
1961
1880
  `;
1962
1881
  // src/components/organisms/OUserCamera/OUserCamera.tsx
1963
- function Pt({ disabled: e }) {
1964
- return /* @__PURE__ */ l("svg", {
1965
- viewBox: "0 0 24 24",
1966
- fill: "none",
1967
- "aria-hidden": "true",
1968
- children: [/* @__PURE__ */ c("path", {
1969
- d: "M4 7.5h11.5A1.5 1.5 0 0 1 17 9v1.5l4-2.5v8l-4-2.5V15a1.5 1.5 0 0 1-1.5 1.5H5.5A1.5 1.5 0 0 1 4 15V7.5Z",
1970
- stroke: "currentColor",
1971
- strokeWidth: "2",
1972
- strokeLinecap: "round",
1973
- strokeLinejoin: "round"
1974
- }), e ? /* @__PURE__ */ c("path", {
1975
- d: "m3 3 18 18",
1976
- stroke: "currentColor",
1977
- strokeWidth: "2",
1978
- strokeLinecap: "round"
1979
- }) : null]
1980
- });
1981
- }
1982
- function Ft({ disabled: e }) {
1983
- return /* @__PURE__ */ l("svg", {
1984
- viewBox: "0 0 24 24",
1985
- fill: "none",
1986
- "aria-hidden": "true",
1987
- children: [/* @__PURE__ */ c("path", {
1988
- d: "M12 15a3 3 0 0 0 3-3V6a3 3 0 0 0-6 0v6a3 3 0 0 0 3 3Zm0 0v5m-4 0h8m-11-8a7 7 0 0 0 14 0",
1989
- stroke: "currentColor",
1990
- strokeWidth: "2",
1991
- strokeLinecap: "round",
1992
- strokeLinejoin: "round"
1993
- }), e ? /* @__PURE__ */ c("path", {
1994
- d: "m3 3 18 18",
1995
- stroke: "currentColor",
1996
- strokeWidth: "2",
1997
- strokeLinecap: "round"
1998
- }) : null]
1999
- });
2000
- }
2001
- function It({ firstName: t, lastName: r, stream: i, cameraEnabled: a, audioEnabled: o, onCameraToggle: s, onAudioToggle: u, aspectRatio: d = 16 / 9, ...f }) {
2002
- let p = n(null), m = `${t} ${r}`.trim(), h = `${t.charAt(0)}${r.charAt(0)}`.toUpperCase(), g = a && !!i;
1882
+ function Ht({ firstName: t, lastName: r, stream: i, cameraEnabled: a, audioEnabled: o, onCameraToggle: s, onAudioToggle: u, aspectRatio: d = 16 / 9, ...f }) {
1883
+ let p = n(null), m = `${t} ${r}`.trim(), _ = `${t.charAt(0)}${r.charAt(0)}`.toUpperCase(), b = a && !!i;
2003
1884
  return e(() => {
2004
1885
  let e = p.current;
2005
- if (e) return e.srcObject = g ? i ?? null : null, () => {
1886
+ if (e) return e.srcObject = b ? i ?? null : null, () => {
2006
1887
  e.srcObject = null;
2007
1888
  };
2008
- }, [g, i]), /* @__PURE__ */ l(At, {
1889
+ }, [b, i]), /* @__PURE__ */ l(Lt, {
2009
1890
  ...f,
2010
1891
  $aspectRatio: Number.isFinite(d) && d > 0 ? d : 16 / 9,
2011
1892
  role: "group",
2012
1893
  "aria-label": `${m} camera`,
2013
1894
  children: [
2014
- g ? /* @__PURE__ */ c(jt, {
1895
+ b ? /* @__PURE__ */ c(Rt, {
2015
1896
  ref: p,
2016
1897
  autoPlay: !0,
2017
1898
  muted: !0,
2018
1899
  playsInline: !0
2019
- }) : /* @__PURE__ */ c(Mt, {
1900
+ }) : /* @__PURE__ */ c(zt, {
2020
1901
  "aria-hidden": "true",
2021
- children: h
1902
+ children: _
2022
1903
  }),
2023
- /* @__PURE__ */ c($, {
1904
+ /* @__PURE__ */ c(Bt, {
2024
1905
  $placement: "top-right",
2025
- children: /* @__PURE__ */ c(G, {
1906
+ children: /* @__PURE__ */ c(q, {
2026
1907
  "aria-label": `Turn camera ${a ? "off" : "on"}`,
2027
1908
  "aria-pressed": a,
2028
1909
  variant: "primary",
@@ -2030,12 +1911,12 @@ function It({ firstName: t, lastName: r, stream: i, cameraEnabled: a, audioEnabl
2030
1911
  shape: "rounded",
2031
1912
  ghost: !0,
2032
1913
  onClick: s,
2033
- children: /* @__PURE__ */ c(Pt, { disabled: !a })
1914
+ icon: a ? v : y
2034
1915
  })
2035
1916
  }),
2036
- /* @__PURE__ */ c($, {
1917
+ /* @__PURE__ */ c(Bt, {
2037
1918
  $placement: "bottom-right",
2038
- children: /* @__PURE__ */ c(G, {
1919
+ children: /* @__PURE__ */ c(q, {
2039
1920
  "aria-label": `Turn audio ${o ? "off" : "on"}`,
2040
1921
  "aria-pressed": o,
2041
1922
  variant: "primary",
@@ -2043,39 +1924,39 @@ function It({ firstName: t, lastName: r, stream: i, cameraEnabled: a, audioEnabl
2043
1924
  shape: "rounded",
2044
1925
  ghost: !0,
2045
1926
  onClick: u,
2046
- children: /* @__PURE__ */ c(Ft, { disabled: !o })
1927
+ icon: o ? h : g
2047
1928
  })
2048
1929
  }),
2049
- /* @__PURE__ */ c(Nt, { children: m })
1930
+ /* @__PURE__ */ c(Vt, { children: m })
2050
1931
  ]
2051
1932
  });
2052
1933
  }
2053
1934
  // src/shared/styles/GlobalStyles.ts
2054
- var Lt = a`
1935
+ var Ut = a`
2055
1936
  :root {
2056
- --jynko-shadow-solid: ${({ theme: e }) => y(e).shadow.button};
2057
- --jynko-modal-padding: ${({ theme: e }) => y(e).modal.padding};
2058
- --jynko-modal-max-width: ${({ theme: e }) => y(e).modal.maxWidth};
2059
- --jynko-modal-max-height: ${({ theme: e }) => y(e).modal.maxHeight};
2060
- --jynko-modal-border-radius: ${({ theme: e }) => y(e).modal.borderRadius};
2061
- --jynko-modal-box-shadow: ${({ theme: e }) => y(e).shadow.modal};
1937
+ --jynko-shadow-solid: ${({ theme: e }) => A(e).shadow.button};
1938
+ --jynko-modal-padding: ${({ theme: e }) => A(e).modal.padding};
1939
+ --jynko-modal-max-width: ${({ theme: e }) => A(e).modal.maxWidth};
1940
+ --jynko-modal-max-height: ${({ theme: e }) => A(e).modal.maxHeight};
1941
+ --jynko-modal-border-radius: ${({ theme: e }) => A(e).modal.borderRadius};
1942
+ --jynko-modal-box-shadow: ${({ theme: e }) => A(e).shadow.modal};
2062
1943
  }
2063
1944
 
2064
1945
  button {
2065
- border: ${({ theme: e }) => y(e).button.border};
2066
- border-radius: ${({ theme: e }) => y(e).button.borderRadius};
2067
- padding: ${({ theme: e }) => y(e).button.padding};
2068
- font-size: ${({ theme: e }) => y(e).button.fontSize};
2069
- text-transform: ${({ theme: e }) => y(e).button.textTransform};
1946
+ border: ${({ theme: e }) => A(e).button.border};
1947
+ border-radius: ${({ theme: e }) => A(e).button.borderRadius};
1948
+ padding: ${({ theme: e }) => A(e).button.padding};
1949
+ font-size: ${({ theme: e }) => A(e).button.fontSize};
1950
+ text-transform: ${({ theme: e }) => A(e).button.textTransform};
2070
1951
  }
2071
1952
  `;
2072
1953
  // src/providers/JynkoProvider/JynkoProvider.tsx
2073
- function Rt({ children: e, theme: t = v }) {
1954
+ function Wt({ children: e, theme: t = k }) {
2074
1955
  return /* @__PURE__ */ l(i, {
2075
1956
  theme: t,
2076
- children: [/* @__PURE__ */ c(Lt, {}), e]
1957
+ children: [/* @__PURE__ */ c(Ut, {}), e]
2077
1958
  });
2078
1959
  }
2079
- export { x as AAvatar, k as ABadge, z as AButton, H as AIcon, G as AIconButton, q as AIconLink, Se as AInput, Y as ALink, Oe as ALogo, Le as ASearchInput, ze as ASection, Ze as ASelect, tt as ATextarea, rt as ATypography, Rt as JynkoProvider, _t as MModal, bt as MNavLinks, St as MUserBadge, kt as OSidebar, It as OUserCamera, v as theme };
1960
+ export { M as AAvatar, B as ABadge, ae as AButton, G as AIcon, q as AIconButton, Y as AIconLink, Ae as AInput, Z as ALink, Ie as ALogo, We as ASearchInput, Ke as ASection, at as ASelect, lt as ATextarea, dt as ATypography, Wt as JynkoProvider, wt as MModal, Ot as MNavLinks, At as MUserBadge, It as OSidebar, Ht as OUserCamera, k as theme };
2080
1961
 
2081
1962
  //# sourceMappingURL=index.js.map