@agilys-system/design-system 1.0.12 → 1.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  import { jsxs as v, jsx as o } from "react/jsx-runtime";
2
2
  import W, { forwardRef as S, createElement as Ae, useId as xe, useRef as Ee, useState as Le, useEffect as ce } from "react";
3
- import { createPortal as Pe } from "react-dom";
3
+ import { createPortal as Ve } from "react-dom";
4
4
  function ye(e) {
5
5
  var t, r, n = "";
6
6
  if (typeof e == "string" || typeof e == "number") n += e;
@@ -43,7 +43,7 @@ const de = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, ue = ve, T
43
43
  ] : c;
44
44
  }, []);
45
45
  return ue(e, l, d, r == null ? void 0 : r.class, r == null ? void 0 : r.className);
46
- }, oe = "-", Ve = (e) => {
46
+ }, oe = "-", Pe = (e) => {
47
47
  const t = Re(e), {
48
48
  conflictingClassGroups: r,
49
49
  conflictingClassGroupModifiers: n
@@ -189,7 +189,7 @@ const de = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, ue = ve, T
189
189
  }, Fe = (e) => ({
190
190
  cache: Be(e.cacheSize),
191
191
  parseClassName: $e(e),
192
- ...Ve(e)
192
+ ...Pe(e)
193
193
  }), Ue = /\s+/, qe = (e, t) => {
194
194
  const {
195
195
  parseClassName: r,
@@ -263,26 +263,26 @@ function Je(e, ...t) {
263
263
  const x = (e) => {
264
264
  const t = (r) => r[e] || [];
265
265
  return t.isThemeGetter = !0, t;
266
- }, ze = /^\[(?:([a-z-]+):)?(.+)\]$/i, Xe = /^\d+\/\d+$/, Ze = /* @__PURE__ */ new Set(["px", "full", "screen"]), Qe = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Ye = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, De = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, et = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, tt = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, E = (e) => G(e) || Ze.has(e) || Xe.test(e), L = (e) => B(e, "length", ct), G = (e) => !!e && !Number.isNaN(Number(e)), ee = (e) => B(e, "number", G), F = (e) => !!e && Number.isInteger(Number(e)), rt = (e) => e.endsWith("%") && G(e.slice(0, -1)), u = (e) => ze.test(e), P = (e) => Qe.test(e), nt = /* @__PURE__ */ new Set(["length", "size", "percentage"]), ot = (e) => B(e, nt, Ce), st = (e) => B(e, "position", Ce), at = /* @__PURE__ */ new Set(["image", "url"]), it = (e) => B(e, at, ut), lt = (e) => B(e, "", dt), U = () => !0, B = (e, t, r) => {
267
- const n = ze.exec(e);
266
+ }, Ce = /^\[(?:([a-z-]+):)?(.+)\]$/i, Xe = /^\d+\/\d+$/, Ze = /* @__PURE__ */ new Set(["px", "full", "screen"]), Qe = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Ye = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, De = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, et = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, tt = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, E = (e) => G(e) || Ze.has(e) || Xe.test(e), L = (e) => B(e, "length", ct), G = (e) => !!e && !Number.isNaN(Number(e)), ee = (e) => B(e, "number", G), F = (e) => !!e && Number.isInteger(Number(e)), rt = (e) => e.endsWith("%") && G(e.slice(0, -1)), u = (e) => Ce.test(e), V = (e) => Qe.test(e), nt = /* @__PURE__ */ new Set(["length", "size", "percentage"]), ot = (e) => B(e, nt, ze), st = (e) => B(e, "position", ze), at = /* @__PURE__ */ new Set(["image", "url"]), it = (e) => B(e, at, ut), lt = (e) => B(e, "", dt), U = () => !0, B = (e, t, r) => {
267
+ const n = Ce.exec(e);
268
268
  return n ? n[1] ? typeof t == "string" ? n[1] === t : t.has(n[1]) : r(n[2]) : !1;
269
269
  }, ct = (e) => (
270
270
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
271
271
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
272
272
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
273
273
  Ye.test(e) && !De.test(e)
274
- ), Ce = () => !1, dt = (e) => et.test(e), ut = (e) => tt.test(e), pt = () => {
275
- const e = x("colors"), t = x("spacing"), r = x("blur"), n = x("brightness"), a = x("borderColor"), s = x("borderRadius"), l = x("borderSpacing"), i = x("borderWidth"), d = x("contrast"), c = x("grayscale"), p = x("hueRotate"), b = x("invert"), f = x("gap"), j = x("gradientColorStops"), N = x("gradientColorStopPositions"), g = x("inset"), m = x("margin"), w = x("opacity"), z = x("padding"), M = x("saturate"), I = x("scale"), R = x("sepia"), K = x("skew"), k = x("space"), _ = x("translate"), V = () => ["auto", "contain", "none"], O = () => ["auto", "hidden", "clip", "visible", "scroll"], $ = () => ["auto", u, t], y = () => [u, t], se = () => ["", E, L], J = () => ["auto", G, u], ae = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], X = () => ["solid", "dashed", "dotted", "double", "none"], ie = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], D = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], H = () => ["", "0", u], le = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], A = () => [G, u];
274
+ ), ze = () => !1, dt = (e) => et.test(e), ut = (e) => tt.test(e), pt = () => {
275
+ const e = x("colors"), t = x("spacing"), r = x("blur"), n = x("brightness"), a = x("borderColor"), s = x("borderRadius"), l = x("borderSpacing"), i = x("borderWidth"), d = x("contrast"), c = x("grayscale"), p = x("hueRotate"), b = x("invert"), f = x("gap"), j = x("gradientColorStops"), N = x("gradientColorStopPositions"), g = x("inset"), m = x("margin"), w = x("opacity"), z = x("padding"), M = x("saturate"), I = x("scale"), R = x("sepia"), K = x("skew"), k = x("space"), _ = x("translate"), P = () => ["auto", "contain", "none"], O = () => ["auto", "hidden", "clip", "visible", "scroll"], $ = () => ["auto", u, t], y = () => [u, t], se = () => ["", E, L], J = () => ["auto", G, u], ae = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], X = () => ["solid", "dashed", "dotted", "double", "none"], ie = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], D = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], H = () => ["", "0", u], le = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], A = () => [G, u];
276
276
  return {
277
277
  cacheSize: 500,
278
278
  separator: ":",
279
279
  theme: {
280
280
  colors: [U],
281
281
  spacing: [E, L],
282
- blur: ["none", "", P, u],
282
+ blur: ["none", "", V, u],
283
283
  brightness: A(),
284
284
  borderColor: [e],
285
- borderRadius: ["none", "", "full", P, u],
285
+ borderRadius: ["none", "", "full", V, u],
286
286
  borderSpacing: y(),
287
287
  borderWidth: se(),
288
288
  contrast: A(),
@@ -322,7 +322,7 @@ const x = (e) => {
322
322
  * @see https://tailwindcss.com/docs/columns
323
323
  */
324
324
  columns: [{
325
- columns: [P]
325
+ columns: [V]
326
326
  }],
327
327
  /**
328
328
  * Break After
@@ -423,21 +423,21 @@ const x = (e) => {
423
423
  * @see https://tailwindcss.com/docs/overscroll-behavior
424
424
  */
425
425
  overscroll: [{
426
- overscroll: V()
426
+ overscroll: P()
427
427
  }],
428
428
  /**
429
429
  * Overscroll Behavior X
430
430
  * @see https://tailwindcss.com/docs/overscroll-behavior
431
431
  */
432
432
  "overscroll-x": [{
433
- "overscroll-x": V()
433
+ "overscroll-x": P()
434
434
  }],
435
435
  /**
436
436
  * Overscroll Behavior Y
437
437
  * @see https://tailwindcss.com/docs/overscroll-behavior
438
438
  */
439
439
  "overscroll-y": [{
440
- "overscroll-y": V()
440
+ "overscroll-y": P()
441
441
  }],
442
442
  /**
443
443
  * Position
@@ -906,8 +906,8 @@ const x = (e) => {
906
906
  */
907
907
  "max-w": [{
908
908
  "max-w": [u, t, "none", "full", "min", "max", "fit", "prose", {
909
- screen: [P]
910
- }, P]
909
+ screen: [V]
910
+ }, V]
911
911
  }],
912
912
  /**
913
913
  * Height
@@ -943,7 +943,7 @@ const x = (e) => {
943
943
  * @see https://tailwindcss.com/docs/font-size
944
944
  */
945
945
  "font-size": [{
946
- text: ["base", P, L]
946
+ text: ["base", V, L]
947
947
  }],
948
948
  /**
949
949
  * Font Smoothing
@@ -1645,7 +1645,7 @@ const x = (e) => {
1645
1645
  * @see https://tailwindcss.com/docs/box-shadow
1646
1646
  */
1647
1647
  shadow: [{
1648
- shadow: ["", "inner", "none", P, lt]
1648
+ shadow: ["", "inner", "none", V, lt]
1649
1649
  }],
1650
1650
  /**
1651
1651
  * Box Shadow Color
@@ -1710,7 +1710,7 @@ const x = (e) => {
1710
1710
  * @see https://tailwindcss.com/docs/drop-shadow
1711
1711
  */
1712
1712
  "drop-shadow": [{
1713
- "drop-shadow": ["", "none", P, u]
1713
+ "drop-shadow": ["", "none", V, u]
1714
1714
  }],
1715
1715
  /**
1716
1716
  * Grayscale
@@ -2304,19 +2304,67 @@ const x = (e) => {
2304
2304
  function h(...e) {
2305
2305
  return ft(ve(e));
2306
2306
  }
2307
- const bt = T(
2308
- "inline-flex items-center justify-center gap-2 rounded-lg font-sans font-normal transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-agilys-primary disabled:pointer-events-none disabled:opacity-50",
2307
+ const bt = T("font-sans text-gray-900", {
2308
+ variants: {
2309
+ variant: {
2310
+ h1: "text-3xl leading-tight font-bold",
2311
+ h2: "text-2xl leading-tight font-bold",
2312
+ h3: "text-xl leading-snug font-semibold",
2313
+ h4: "text-lg leading-snug font-semibold",
2314
+ h5: "text-base leading-snug font-medium",
2315
+ h6: "text-sm leading-snug font-medium",
2316
+ body: "text-sm leading-relaxed font-normal",
2317
+ bodySm: "text-xs leading-relaxed font-normal",
2318
+ caption: "text-[11px] leading-normal font-normal"
2319
+ },
2320
+ weight: {
2321
+ regular: "font-normal",
2322
+ medium: "font-medium",
2323
+ semibold: "font-semibold",
2324
+ bold: "font-bold"
2325
+ }
2326
+ },
2327
+ defaultVariants: {
2328
+ variant: "body"
2329
+ }
2330
+ }), mt = {
2331
+ h1: "h1",
2332
+ h2: "h2",
2333
+ h3: "h3",
2334
+ h4: "h4",
2335
+ h5: "h5",
2336
+ h6: "h6",
2337
+ body: "p",
2338
+ bodySm: "p",
2339
+ caption: "span"
2340
+ }, C = S(
2341
+ ({ className: e, variant: t = "body", weight: r, as: n, children: a, ...s }, l) => {
2342
+ const i = n ?? mt[t ?? "body"];
2343
+ return Ae(
2344
+ i,
2345
+ {
2346
+ ref: l,
2347
+ className: h(bt({ variant: t, weight: r }), e),
2348
+ ...s
2349
+ },
2350
+ a
2351
+ );
2352
+ }
2353
+ );
2354
+ C.displayName = "Text";
2355
+ const gt = T(
2356
+ "inline-flex items-center justify-center gap-2 rounded-lg transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-agilys-primary disabled:pointer-events-none disabled:opacity-50",
2309
2357
  {
2310
2358
  variants: {
2311
2359
  variant: {
2312
- primary: "bg-agilys-primary text-white text-sm shadow-[0px_2px_6px_0px_rgba(71,71,245,0.16),inset_0px_0px_10px_0px_rgba(255,255,255,0.3)] hover:bg-agilys-primary/90",
2313
- secondary: "bg-white text-neutral-secondary text-base shadow-[0px_0px_2px_0px_rgba(66,74,98,0.04),0px_3px_8px_0px_rgba(66,74,98,0.09)] hover:bg-gray-50",
2314
- destructive: "bg-danger-light text-danger-dark text-sm shadow-[0px_2px_6px_0px_rgba(243,22,22,0.16)] hover:bg-danger-light/80"
2360
+ primary: "bg-agilys-primary text-white shadow-[0px_2px_6px_0px_rgba(71,71,245,0.16),inset_0px_0px_10px_0px_rgba(255,255,255,0.3)] hover:bg-agilys-primary/90",
2361
+ secondary: "bg-white text-neutral-secondary shadow-[0px_0px_2px_0px_rgba(66,74,98,0.04),0px_3px_8px_0px_rgba(66,74,98,0.09)] hover:bg-gray-50",
2362
+ destructive: "bg-danger-light text-danger-dark shadow-[0px_2px_6px_0px_rgba(243,22,22,0.16)] hover:bg-danger-light/80"
2315
2363
  },
2316
2364
  size: {
2317
- sm: "h-9 px-3 text-sm",
2365
+ sm: "h-9 px-3",
2318
2366
  md: "h-10 px-4",
2319
- lg: "h-11 px-6 text-base",
2367
+ lg: "h-11 px-6",
2320
2368
  icon: "size-10 p-0 shrink-0"
2321
2369
  },
2322
2370
  fullWidth: {
@@ -2328,7 +2376,12 @@ const bt = T(
2328
2376
  size: "md"
2329
2377
  }
2330
2378
  }
2331
- ), mt = S(
2379
+ ), ht = {
2380
+ sm: "bodySm",
2381
+ md: "body",
2382
+ lg: "body",
2383
+ icon: "body"
2384
+ }, xt = S(
2332
2385
  ({
2333
2386
  className: e,
2334
2387
  variant: t,
@@ -2340,12 +2393,12 @@ const bt = T(
2340
2393
  children: i,
2341
2394
  ...d
2342
2395
  }, c) => {
2343
- const p = r === "icon";
2396
+ const p = r === "icon", b = ht[r ?? "md"];
2344
2397
  return /* @__PURE__ */ v(
2345
2398
  "button",
2346
2399
  {
2347
2400
  ref: c,
2348
- className: h(bt({ variant: t, size: r, fullWidth: n }), e),
2401
+ className: h(gt({ variant: t, size: r, fullWidth: n }), e),
2349
2402
  disabled: l || a,
2350
2403
  "aria-busy": a,
2351
2404
  ...d,
@@ -2380,70 +2433,15 @@ const bt = T(
2380
2433
  ]
2381
2434
  }
2382
2435
  ),
2383
- !a && s && /* @__PURE__ */ o(
2384
- "span",
2385
- {
2386
- className: "size-6 shrink-0 [&>svg]:size-full",
2387
- "aria-hidden": "true",
2388
- children: s
2389
- }
2390
- ),
2391
- p ? /* @__PURE__ */ o("span", { className: "size-5 shrink-0 [&>svg]:size-full", children: i }) : i
2436
+ !a && s && /* @__PURE__ */ o("span", { className: "inline-flex shrink-0", "aria-hidden": "true", children: s }),
2437
+ p ? /* @__PURE__ */ o("span", { className: "inline-flex shrink-0", children: i }) : /* @__PURE__ */ o(C, { as: "span", variant: b, className: "text-inherit", children: i })
2392
2438
  ]
2393
2439
  }
2394
2440
  );
2395
2441
  }
2396
2442
  );
2397
- mt.displayName = "Button";
2398
- const gt = T("font-sans text-gray-900", {
2399
- variants: {
2400
- variant: {
2401
- h1: "text-3xl leading-tight font-bold",
2402
- h2: "text-2xl leading-tight font-bold",
2403
- h3: "text-xl leading-snug font-semibold",
2404
- h4: "text-lg leading-snug font-semibold",
2405
- h5: "text-base leading-snug font-medium",
2406
- h6: "text-sm leading-snug font-medium",
2407
- body: "text-sm leading-relaxed font-normal",
2408
- bodySm: "text-xs leading-relaxed font-normal",
2409
- caption: "text-[11px] leading-normal font-normal"
2410
- },
2411
- weight: {
2412
- regular: "font-normal",
2413
- medium: "font-medium",
2414
- semibold: "font-semibold",
2415
- bold: "font-bold"
2416
- }
2417
- },
2418
- defaultVariants: {
2419
- variant: "body"
2420
- }
2421
- }), ht = {
2422
- h1: "h1",
2423
- h2: "h2",
2424
- h3: "h3",
2425
- h4: "h4",
2426
- h5: "h5",
2427
- h6: "h6",
2428
- body: "p",
2429
- bodySm: "p",
2430
- caption: "span"
2431
- }, C = S(
2432
- ({ className: e, variant: t = "body", weight: r, as: n, children: a, ...s }, l) => {
2433
- const i = n ?? ht[t ?? "body"];
2434
- return Ae(
2435
- i,
2436
- {
2437
- ref: l,
2438
- className: h(gt({ variant: t, weight: r }), e),
2439
- ...s
2440
- },
2441
- a
2442
- );
2443
- }
2444
- );
2445
- C.displayName = "Text";
2446
- const xt = T(
2443
+ xt.displayName = "Button";
2444
+ const yt = T(
2447
2445
  "inline-flex items-center justify-center h-6 whitespace-nowrap",
2448
2446
  {
2449
2447
  variants: {
@@ -2473,23 +2471,23 @@ const xt = T(
2473
2471
  status: "default"
2474
2472
  }
2475
2473
  }
2476
- ), yt = {
2474
+ ), vt = {
2477
2475
  default: "bg-agilys-primary",
2478
2476
  success: "bg-success-60",
2479
2477
  alert: "bg-warning-accent",
2480
2478
  error: "bg-danger-60"
2481
- }, vt = S(
2479
+ }, wt = S(
2482
2480
  ({ className: e, variant: t = "filled", status: r = "default", children: n, ...a }, s) => /* @__PURE__ */ v(
2483
2481
  "span",
2484
2482
  {
2485
2483
  ref: s,
2486
- className: h(xt({ variant: t, status: r }), e),
2484
+ className: h(yt({ variant: t, status: r }), e),
2487
2485
  ...a,
2488
2486
  children: [
2489
2487
  t === "dot" && /* @__PURE__ */ o(
2490
2488
  "span",
2491
2489
  {
2492
- className: h("size-2 shrink-0 rounded-full", yt[r ?? "default"]),
2490
+ className: h("size-2 shrink-0 rounded-full", vt[r ?? "default"]),
2493
2491
  "aria-hidden": "true"
2494
2492
  }
2495
2493
  ),
@@ -2498,8 +2496,8 @@ const xt = T(
2498
2496
  }
2499
2497
  )
2500
2498
  );
2501
- vt.displayName = "Badge";
2502
- const wt = T("flex items-start gap-2 rounded-lg p-5 font-sans", {
2499
+ wt.displayName = "Badge";
2500
+ const kt = T("flex items-start gap-2 rounded-lg p-5 font-sans", {
2503
2501
  variants: {
2504
2502
  variant: {
2505
2503
  default: "border border-neutral-divider-secondary bg-white shadow-[0px_0px_1px_0px_rgba(66,74,98,0.09),0px_2px_2px_0px_rgba(66,74,98,0.04)]",
@@ -2512,14 +2510,14 @@ const wt = T("flex items-start gap-2 rounded-lg p-5 font-sans", {
2512
2510
  defaultVariants: {
2513
2511
  variant: "default"
2514
2512
  }
2515
- }), kt = {
2513
+ }), Nt = {
2516
2514
  default: "text-neutral-text-primary",
2517
2515
  success: "text-success-60",
2518
2516
  warning: "text-warning-dark",
2519
2517
  error: "text-danger-dark",
2520
2518
  info: "text-primary-700"
2521
2519
  };
2522
- function Nt() {
2520
+ function Ct() {
2523
2521
  return /* @__PURE__ */ v("svg", { className: "size-full", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: [
2524
2522
  /* @__PURE__ */ o("circle", { cx: "12", cy: "12", r: "9", stroke: "currentColor", strokeWidth: "2" }),
2525
2523
  /* @__PURE__ */ o("path", { d: "M12 11v5", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" }),
@@ -2541,7 +2539,7 @@ function zt() {
2541
2539
  )
2542
2540
  ] });
2543
2541
  }
2544
- function Ct() {
2542
+ function jt() {
2545
2543
  return /* @__PURE__ */ v("svg", { className: "size-full", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: [
2546
2544
  /* @__PURE__ */ o(
2547
2545
  "path",
@@ -2556,7 +2554,7 @@ function Ct() {
2556
2554
  /* @__PURE__ */ o("circle", { cx: "12", cy: "17", r: "1", fill: "currentColor" })
2557
2555
  ] });
2558
2556
  }
2559
- function jt() {
2557
+ function _t() {
2560
2558
  return /* @__PURE__ */ v("svg", { className: "size-full", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: [
2561
2559
  /* @__PURE__ */ o("circle", { cx: "12", cy: "12", r: "9", stroke: "currentColor", strokeWidth: "2" }),
2562
2560
  /* @__PURE__ */ o(
@@ -2570,7 +2568,7 @@ function jt() {
2570
2568
  )
2571
2569
  ] });
2572
2570
  }
2573
- function _t() {
2571
+ function St() {
2574
2572
  return /* @__PURE__ */ o("svg", { className: "size-full", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ o(
2575
2573
  "path",
2576
2574
  {
@@ -2581,11 +2579,11 @@ function _t() {
2581
2579
  }
2582
2580
  ) });
2583
2581
  }
2584
- const St = {
2582
+ const Mt = {
2585
2583
  success: /* @__PURE__ */ o(zt, {}),
2586
- warning: /* @__PURE__ */ o(Ct, {}),
2587
- error: /* @__PURE__ */ o(jt, {}),
2588
- info: /* @__PURE__ */ o(Nt, {})
2584
+ warning: /* @__PURE__ */ o(jt, {}),
2585
+ error: /* @__PURE__ */ o(_t, {}),
2586
+ info: /* @__PURE__ */ o(Ct, {})
2589
2587
  }, je = S(
2590
2588
  ({
2591
2589
  className: e,
@@ -2598,8 +2596,8 @@ const St = {
2598
2596
  children: i,
2599
2597
  ...d
2600
2598
  }, c) => {
2601
- const p = t ?? "default", b = r === void 0 ? St[p] : r, f = kt[p];
2602
- return /* @__PURE__ */ v("div", { ref: c, className: h(wt({ variant: t }), e), ...d, children: [
2599
+ const p = t ?? "default", b = r === void 0 ? Mt[p] : r, f = Nt[p];
2600
+ return /* @__PURE__ */ v("div", { ref: c, className: h(kt({ variant: t }), e), ...d, children: [
2603
2601
  b && /* @__PURE__ */ o("span", { className: h("size-6 shrink-0", f), "aria-hidden": "true", children: b }),
2604
2602
  /* @__PURE__ */ v("div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
2605
2603
  n && /* @__PURE__ */ o(C, { as: "div", variant: "body", weight: "semibold", className: f, children: n }),
@@ -2617,7 +2615,7 @@ const St = {
2617
2615
  "flex size-5 shrink-0 items-center justify-center rounded-md transition-colors hover:opacity-70 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-agilys-primary",
2618
2616
  f
2619
2617
  ),
2620
- children: /* @__PURE__ */ o(_t, {})
2618
+ children: /* @__PURE__ */ o(St, {})
2621
2619
  }
2622
2620
  )
2623
2621
  ] });
@@ -2630,17 +2628,17 @@ var _e = {
2630
2628
  className: void 0,
2631
2629
  style: void 0,
2632
2630
  attr: void 0
2633
- }, be = W.createContext && /* @__PURE__ */ W.createContext(_e), Mt = ["attr", "size", "title"];
2634
- function It(e, t) {
2631
+ }, be = W.createContext && /* @__PURE__ */ W.createContext(_e), It = ["attr", "size", "title"];
2632
+ function Ot(e, t) {
2635
2633
  if (e == null) return {};
2636
- var r, n, a = Ot(e, t);
2634
+ var r, n, a = At(e, t);
2637
2635
  if (Object.getOwnPropertySymbols) {
2638
2636
  var s = Object.getOwnPropertySymbols(e);
2639
2637
  for (n = 0; n < s.length; n++) r = s[n], t.indexOf(r) === -1 && {}.propertyIsEnumerable.call(e, r) && (a[r] = e[r]);
2640
2638
  }
2641
2639
  return a;
2642
2640
  }
2643
- function Ot(e, t) {
2641
+ function At(e, t) {
2644
2642
  if (e == null) return {};
2645
2643
  var r = {};
2646
2644
  for (var n in e) if ({}.hasOwnProperty.call(e, n)) {
@@ -2672,21 +2670,21 @@ function Y(e) {
2672
2670
  for (var t = 1; t < arguments.length; t++) {
2673
2671
  var r = arguments[t] != null ? arguments[t] : {};
2674
2672
  t % 2 ? me(Object(r), !0).forEach(function(n) {
2675
- At(e, n, r[n]);
2673
+ Et(e, n, r[n]);
2676
2674
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : me(Object(r)).forEach(function(n) {
2677
2675
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
2678
2676
  });
2679
2677
  }
2680
2678
  return e;
2681
2679
  }
2682
- function At(e, t, r) {
2683
- return (t = Et(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
2680
+ function Et(e, t, r) {
2681
+ return (t = Lt(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
2684
2682
  }
2685
- function Et(e) {
2686
- var t = Lt(e, "string");
2683
+ function Lt(e) {
2684
+ var t = Vt(e, "string");
2687
2685
  return typeof t == "symbol" ? t : t + "";
2688
2686
  }
2689
- function Lt(e, t) {
2687
+ function Vt(e, t) {
2690
2688
  if (typeof e != "object" || !e) return e;
2691
2689
  var r = e[Symbol.toPrimitive];
2692
2690
  if (r !== void 0) {
@@ -2708,7 +2706,7 @@ function Me(e) {
2708
2706
  }
2709
2707
  function Pt(e) {
2710
2708
  var t = (r) => {
2711
- var n = e.attr, a = e.size, s = e.title, l = It(e, Mt), i = a || r.size || "1em", d;
2709
+ var n = e.attr, a = e.size, s = e.title, l = Ot(e, It), i = a || r.size || "1em", d;
2712
2710
  return r.className && (d = r.className), e.className && (d = (d ? d + " " : "") + e.className), /* @__PURE__ */ W.createElement("svg", Q({
2713
2711
  stroke: "currentColor",
2714
2712
  fill: "currentColor",
@@ -2725,13 +2723,13 @@ function Pt(e) {
2725
2723
  };
2726
2724
  return be !== void 0 ? /* @__PURE__ */ W.createElement(be.Consumer, null, (r) => t(r)) : t(_e);
2727
2725
  }
2728
- function Vt(e) {
2726
+ function Wt(e) {
2729
2727
  return Me({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { fill: "none", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "32", d: "M80 152v256a40.12 40.12 0 0 0 40 40h272a40.12 40.12 0 0 0 40-40V152" }, child: [] }, { tag: "rect", attr: { width: "416", height: "80", x: "48", y: "64", fill: "none", strokeLinejoin: "round", strokeWidth: "32", rx: "28", ry: "28" }, child: [] }, { tag: "path", attr: { fill: "none", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "32", d: "m320 304-64 64-64-64m64 41.89V224" }, child: [] }] })(e);
2730
2728
  }
2731
- function Wt(e) {
2729
+ function Rt(e) {
2732
2730
  return Me({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M16 9v10H8V9zm-1.5-6h-5l-1 1H5v2h14V4h-3.5zM18 7H6v12c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2z" }, child: [] }] })(e);
2733
2731
  }
2734
- const Rt = S(
2732
+ const Gt = S(
2735
2733
  ({ className: e, title: t, body: r, timestamp: n, read: a = !1, onArchive: s, onDelete: l, ...i }, d) => /* @__PURE__ */ v(
2736
2734
  je,
2737
2735
  {
@@ -2771,7 +2769,7 @@ const Rt = S(
2771
2769
  onClick: s,
2772
2770
  "aria-label": "Arquivar",
2773
2771
  className: "flex size-7 shrink-0 items-center justify-center rounded-md text-neutral-text-secondary transition-colors hover:bg-neutral-surface-selected hover:text-neutral-text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-agilys-primary",
2774
- children: /* @__PURE__ */ o(Vt, { className: "size-4", "aria-hidden": "true" })
2772
+ children: /* @__PURE__ */ o(Wt, { className: "size-4", "aria-hidden": "true" })
2775
2773
  }
2776
2774
  ),
2777
2775
  /* @__PURE__ */ o(
@@ -2781,7 +2779,7 @@ const Rt = S(
2781
2779
  onClick: l,
2782
2780
  "aria-label": "Excluir",
2783
2781
  className: "flex size-7 shrink-0 items-center justify-center rounded-md text-neutral-text-secondary transition-colors hover:bg-danger-10 hover:text-danger-60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-agilys-primary",
2784
- children: /* @__PURE__ */ o(Wt, { className: "size-4", "aria-hidden": "true" })
2782
+ children: /* @__PURE__ */ o(Rt, { className: "size-4", "aria-hidden": "true" })
2785
2783
  }
2786
2784
  )
2787
2785
  ] })
@@ -2789,17 +2787,17 @@ const Rt = S(
2789
2787
  }
2790
2788
  )
2791
2789
  );
2792
- Rt.displayName = "NotificationCard";
2793
- function Gt(e, t) {
2790
+ Gt.displayName = "NotificationCard";
2791
+ function Tt(e, t) {
2794
2792
  return t.split(".").reduce(
2795
2793
  (r, n) => r == null ? void 0 : r[n],
2796
2794
  e
2797
2795
  );
2798
2796
  }
2799
- function Tt(e, t) {
2797
+ function Bt(e, t) {
2800
2798
  if (t.callback) return t.callback(e);
2801
2799
  if (!t.key) return null;
2802
- const r = Gt(e, t.key);
2800
+ const r = Tt(e, t.key);
2803
2801
  return r == null || r === "" ? null : /* @__PURE__ */ o(
2804
2802
  C,
2805
2803
  {
@@ -2850,7 +2848,7 @@ const Ie = {
2850
2848
  ] })
2851
2849
  );
2852
2850
  re.displayName = "TableCheckbox";
2853
- function Bt({ className: e }) {
2851
+ function $t({ className: e }) {
2854
2852
  return /* @__PURE__ */ o(
2855
2853
  "svg",
2856
2854
  {
@@ -2901,7 +2899,7 @@ const ne = S(
2901
2899
  children: s
2902
2900
  }
2903
2901
  ),
2904
- r && /* @__PURE__ */ o(Bt, { className: h(n && "text-agilys-primary") })
2902
+ r && /* @__PURE__ */ o($t, { className: h(n && "text-agilys-primary") })
2905
2903
  ]
2906
2904
  }
2907
2905
  )
@@ -2933,12 +2931,12 @@ function ge({
2933
2931
  }
2934
2932
  );
2935
2933
  }
2936
- function $t(e, t, r) {
2934
+ function Ht(e, t, r) {
2937
2935
  if (typeof r == "function") return r(e);
2938
2936
  const n = e;
2939
2937
  return r ? n[r] ?? t : n.id ?? t;
2940
2938
  }
2941
- function tr({
2939
+ function rr({
2942
2940
  keys: e,
2943
2941
  data: t,
2944
2942
  rowKey: r,
@@ -2957,7 +2955,7 @@ function tr({
2957
2955
  className: g,
2958
2956
  ...m
2959
2957
  }) {
2960
- const w = e.length + (l ? 1 : 0), z = i ?? [], M = t.map((k, _) => $t(k, _, r)), I = M.length > 0 && M.every((k) => z.includes(k)), R = () => {
2958
+ const w = e.length + (l ? 1 : 0), z = i ?? [], M = t.map((k, _) => Ht(k, _, r)), I = M.length > 0 && M.every((k) => z.includes(k)), R = () => {
2961
2959
  d && d(I ? [] : M);
2962
2960
  }, K = (k) => {
2963
2961
  d && d(
@@ -3030,7 +3028,7 @@ function tr({
3030
3028
  )
3031
3029
  }
3032
3030
  ) }) : t.map((k, _) => {
3033
- const V = M[_];
3031
+ const P = M[_];
3034
3032
  return /* @__PURE__ */ v(
3035
3033
  "tr",
3036
3034
  {
@@ -3048,8 +3046,8 @@ function tr({
3048
3046
  children: /* @__PURE__ */ o(
3049
3047
  re,
3050
3048
  {
3051
- checked: z.includes(V),
3052
- onChange: () => K(V),
3049
+ checked: z.includes(P),
3050
+ onChange: () => K(P),
3053
3051
  "aria-label": "Selecionar linha"
3054
3052
  }
3055
3053
  )
@@ -3060,13 +3058,13 @@ function tr({
3060
3058
  {
3061
3059
  align: O.align,
3062
3060
  className: O.className,
3063
- children: Tt(k, O)
3061
+ children: Bt(k, O)
3064
3062
  },
3065
3063
  O.key ?? `column-${$}`
3066
3064
  ))
3067
3065
  ]
3068
3066
  },
3069
- V
3067
+ P
3070
3068
  );
3071
3069
  }) })
3072
3070
  ]
@@ -3075,7 +3073,7 @@ function tr({
3075
3073
  }
3076
3074
  );
3077
3075
  }
3078
- const Ht = T(
3076
+ const Ft = T(
3079
3077
  "relative inline-flex shrink-0 items-center justify-center overflow-hidden rounded-full bg-neutral-surface-lightest font-sans font-medium text-neutral-text-secondary",
3080
3078
  {
3081
3079
  variants: {
@@ -3090,32 +3088,32 @@ const Ht = T(
3090
3088
  }
3091
3089
  }
3092
3090
  );
3093
- function Ft(e) {
3091
+ function Ut(e) {
3094
3092
  var n;
3095
3093
  const t = e.trim().split(/\s+/), r = t.length > 1 ? `${t[0][0]}${t[t.length - 1][0]}` : (n = t[0]) == null ? void 0 : n.slice(0, 2);
3096
3094
  return r == null ? void 0 : r.toUpperCase();
3097
3095
  }
3098
- const Ut = {
3096
+ const qt = {
3099
3097
  sm: "caption",
3100
3098
  md: "bodySm",
3101
3099
  lg: "body"
3102
3100
  }, Oe = S(
3103
3101
  ({ className: e, size: t, src: r, alt: n = "", name: a, ...s }, l) => {
3104
3102
  const i = t ?? "md";
3105
- return /* @__PURE__ */ o("span", { ref: l, className: h(Ht({ size: t }), e), ...s, children: r ? /* @__PURE__ */ o("img", { src: r, alt: n, className: "size-full object-cover" }) : a && /* @__PURE__ */ o(
3103
+ return /* @__PURE__ */ o("span", { ref: l, className: h(Ft({ size: t }), e), ...s, children: r ? /* @__PURE__ */ o("img", { src: r, alt: n, className: "size-full object-cover" }) : a && /* @__PURE__ */ o(
3106
3104
  C,
3107
3105
  {
3108
3106
  as: "span",
3109
- variant: Ut[i],
3107
+ variant: qt[i],
3110
3108
  weight: "medium",
3111
3109
  className: "text-inherit leading-none",
3112
- children: Ft(a)
3110
+ children: Ut(a)
3113
3111
  }
3114
3112
  ) });
3115
3113
  }
3116
3114
  );
3117
3115
  Oe.displayName = "Avatar";
3118
- function rr({
3116
+ function nr({
3119
3117
  src: e,
3120
3118
  name: t,
3121
3119
  description: r,
@@ -3142,7 +3140,7 @@ const q = "ellipsis";
3142
3140
  function Z(e, t) {
3143
3141
  return Array.from({ length: t - e + 1 }, (r, n) => e + n);
3144
3142
  }
3145
- function qt(e, t, r) {
3143
+ function Kt(e, t, r) {
3146
3144
  if (r * 2 + 5 >= t) return Z(1, t);
3147
3145
  const a = Math.max(e - r, 1), s = Math.min(e + r, t), l = a > 2, i = s < t - 1;
3148
3146
  return !l && i ? [...Z(1, 3 + r * 2), q, t] : l && !i ? [1, q, ...Z(t - (2 + r * 2), t)] : [1, q, ...Z(a, s), q, t];
@@ -3168,10 +3166,10 @@ function he({ direction: e, className: t }) {
3168
3166
  }
3169
3167
  );
3170
3168
  }
3171
- const Kt = S(
3169
+ const Jt = S(
3172
3170
  ({ currentPage: e, totalPages: t, onPageChange: r, siblingCount: n = 1, className: a, ...s }, l) => {
3173
3171
  if (t <= 1) return null;
3174
- const i = qt(e, t, n), d = (c) => {
3172
+ const i = Kt(e, t, n), d = (c) => {
3175
3173
  c < 1 || c > t || c === e || r(c);
3176
3174
  };
3177
3175
  return /* @__PURE__ */ v(
@@ -3232,8 +3230,8 @@ const Kt = S(
3232
3230
  );
3233
3231
  }
3234
3232
  );
3235
- Kt.displayName = "Pagination";
3236
- const Jt = T(
3233
+ Jt.displayName = "Pagination";
3234
+ const Xt = T(
3237
3235
  "flex h-11 w-full min-w-0 items-center gap-2 rounded-lg bg-white px-3 shadow-[0px_1px_2px_0px_rgba(0,0,0,0.25)] transition-shadow focus-within:ring-2 focus-within:ring-agilys-primary",
3238
3236
  {
3239
3237
  variants: {
@@ -3246,7 +3244,7 @@ const Jt = T(
3246
3244
  hasError: !1
3247
3245
  }
3248
3246
  }
3249
- ), Xt = S(
3247
+ ), Zt = S(
3250
3248
  ({
3251
3249
  className: e,
3252
3250
  containerClassName: t,
@@ -3282,7 +3280,7 @@ const Jt = T(
3282
3280
  "div",
3283
3281
  {
3284
3282
  className: h(
3285
- Jt({ hasError: N }),
3283
+ Xt({ hasError: N }),
3286
3284
  i && "pointer-events-none opacity-50"
3287
3285
  ),
3288
3286
  children: [
@@ -3339,8 +3337,8 @@ const Jt = T(
3339
3337
  );
3340
3338
  }
3341
3339
  );
3342
- Xt.displayName = "Input";
3343
- function Zt() {
3340
+ Zt.displayName = "Input";
3341
+ function Qt() {
3344
3342
  return /* @__PURE__ */ o("svg", { className: "size-5", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ o(
3345
3343
  "path",
3346
3344
  {
@@ -3351,7 +3349,7 @@ function Zt() {
3351
3349
  }
3352
3350
  ) });
3353
3351
  }
3354
- const Qt = S(
3352
+ const Yt = S(
3355
3353
  ({
3356
3354
  open: e,
3357
3355
  onClose: t,
@@ -3376,7 +3374,7 @@ const Qt = S(
3376
3374
  return document.addEventListener("keydown", m), () => {
3377
3375
  document.body.style.overflow = g, document.removeEventListener("keydown", m);
3378
3376
  };
3379
- }, [e, t]), !e || !j ? null : Pe(
3377
+ }, [e, t]), !e || !j ? null : Ve(
3380
3378
  /* @__PURE__ */ o(
3381
3379
  "div",
3382
3380
  {
@@ -3404,7 +3402,7 @@ const Qt = S(
3404
3402
  onClick: t,
3405
3403
  "aria-label": "Fechar",
3406
3404
  className: "absolute right-4 top-4 flex size-6 shrink-0 items-center justify-center rounded-md text-neutral-text-secondary transition-colors hover:text-neutral-text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-agilys-primary sm:right-5 sm:top-5",
3407
- children: /* @__PURE__ */ o(Zt, {})
3405
+ children: /* @__PURE__ */ o(Qt, {})
3408
3406
  }
3409
3407
  ),
3410
3408
  r && /* @__PURE__ */ o("div", { className: "pr-8", children: /* @__PURE__ */ o(
@@ -3438,28 +3436,28 @@ const Qt = S(
3438
3436
  );
3439
3437
  }
3440
3438
  );
3441
- Qt.displayName = "Modal";
3439
+ Yt.displayName = "Modal";
3442
3440
  export {
3443
3441
  Oe as Avatar,
3444
- rr as AvatarColumn,
3445
- vt as Badge,
3446
- mt as Button,
3442
+ nr as AvatarColumn,
3443
+ wt as Badge,
3444
+ xt as Button,
3447
3445
  je as Card,
3448
- Xt as Input,
3449
- Qt as Modal,
3450
- Rt as NotificationCard,
3451
- Kt as Pagination,
3452
- tr as Table,
3446
+ Zt as Input,
3447
+ Yt as Modal,
3448
+ Gt as NotificationCard,
3449
+ Jt as Pagination,
3450
+ rr as Table,
3453
3451
  ge as TableCell,
3454
3452
  re as TableCheckbox,
3455
3453
  ne as TableHeadCell,
3456
3454
  C as Text,
3457
- Ht as avatarVariants,
3458
- xt as badgeVariants,
3459
- bt as buttonVariants,
3460
- wt as cardVariants,
3455
+ Ft as avatarVariants,
3456
+ yt as badgeVariants,
3457
+ gt as buttonVariants,
3458
+ kt as cardVariants,
3461
3459
  h as cn,
3462
- Jt as inputVariants,
3463
- gt as textVariants
3460
+ Xt as inputVariants,
3461
+ bt as textVariants
3464
3462
  };
3465
3463
  //# sourceMappingURL=agilys-design-system.js.map