@humu-tech/ui 0.1.16 → 0.1.17

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.mjs CHANGED
@@ -5021,13 +5021,44 @@ var Tooltip = Object.assign(TooltipRoot, {
5021
5021
  });
5022
5022
 
5023
5023
  // src/primitives/Toast/Toaster.tsx
5024
- import * as ToastPrimitive from "@radix-ui/react-toast";
5024
+ import { Toaster as SonnerToaster } from "sonner";
5025
+ import { jsx as jsx55 } from "react/jsx-runtime";
5026
+ function Toaster({
5027
+ duration = 5e3,
5028
+ visibleToasts = 3,
5029
+ expand = false,
5030
+ position = "bottom-right",
5031
+ className
5032
+ }) {
5033
+ return /* @__PURE__ */ jsx55(
5034
+ SonnerToaster,
5035
+ {
5036
+ position,
5037
+ duration,
5038
+ visibleToasts,
5039
+ expand,
5040
+ gap: 8,
5041
+ offset: 16,
5042
+ toastOptions: {
5043
+ unstyled: true,
5044
+ className: cn("w-full sm:w-[22rem]", className)
5045
+ }
5046
+ }
5047
+ );
5048
+ }
5049
+
5050
+ // src/primitives/Toast/toast-store.ts
5051
+ import { createElement } from "react";
5052
+ import { toast as sonnerToast2 } from "sonner";
5053
+
5054
+ // src/primitives/Toast/ToastCard.tsx
5025
5055
  import { X as X9 } from "@phosphor-icons/react";
5056
+ import { toast as sonnerToast } from "sonner";
5026
5057
 
5027
5058
  // src/primitives/Toast/Toast.styles.ts
5028
5059
  import { cva as cva17 } from "class-variance-authority";
5029
- var toastStyles = cva17(
5030
- "pointer-events-auto relative flex w-full items-start gap-3 overflow-hidden rounded-v2-md border p-4 shadow-v2-3 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-80 data-[state=open]:slide-in-from-right-full data-[state=closed]:slide-out-to-right-full data-[swipe=end]:animate-out motion-reduce:animate-none",
5060
+ var toastCardStyles = cva17(
5061
+ "pointer-events-auto relative flex w-full items-start gap-3 overflow-hidden rounded-v2-md border p-4 shadow-v2-3",
5031
5062
  {
5032
5063
  variants: {
5033
5064
  variant: {
@@ -5042,113 +5073,67 @@ var toastStyles = cva17(
5042
5073
  }
5043
5074
  );
5044
5075
 
5045
- // src/primitives/Toast/toast-store.ts
5046
- import { useSyncExternalStore } from "react";
5047
- var toasts = [];
5048
- var counter = 0;
5049
- var listeners = /* @__PURE__ */ new Set();
5050
- function emit() {
5051
- for (const listener of listeners) listener();
5052
- }
5053
- function subscribe(listener) {
5054
- listeners.add(listener);
5055
- return () => {
5056
- listeners.delete(listener);
5057
- };
5058
- }
5059
- function getSnapshot() {
5060
- return toasts;
5076
+ // src/primitives/Toast/ToastCard.tsx
5077
+ import { jsx as jsx56, jsxs as jsxs34 } from "react/jsx-runtime";
5078
+ function ToastCard({
5079
+ id,
5080
+ title,
5081
+ description,
5082
+ variant,
5083
+ action
5084
+ }) {
5085
+ return /* @__PURE__ */ jsxs34("div", { className: cn(toastCardStyles({ variant })), children: [
5086
+ /* @__PURE__ */ jsxs34("div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
5087
+ title && /* @__PURE__ */ jsx56("div", { className: "text-v2-sm font-semibold", children: title }),
5088
+ description && /* @__PURE__ */ jsx56("div", { className: "text-v2-sm opacity-90", children: description })
5089
+ ] }),
5090
+ action,
5091
+ /* @__PURE__ */ jsx56(
5092
+ "button",
5093
+ {
5094
+ type: "button",
5095
+ "aria-label": "Fechar",
5096
+ onClick: () => sonnerToast.dismiss(id),
5097
+ className: "shrink-0 rounded-v2-sm p-1 text-v2-fg-muted transition-colors hover:text-v2-fg-default focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-v2-focus-ring/30",
5098
+ children: /* @__PURE__ */ jsx56(X9, { size: 16, "aria-hidden": "true" })
5099
+ }
5100
+ )
5101
+ ] });
5061
5102
  }
5103
+
5104
+ // src/primitives/Toast/toast-store.ts
5062
5105
  function normalize(input) {
5063
5106
  return typeof input === "string" ? { title: input } : input;
5064
5107
  }
5065
- function addToast(input) {
5066
- counter += 1;
5067
- const id = `toast-${counter}`;
5068
- toasts = [...toasts, { ...normalize(input), id, open: true }];
5069
- emit();
5070
- return id;
5071
- }
5072
- function dismissToast(id) {
5073
- toasts = toasts.map(
5074
- (item) => item.id === id ? { ...item, open: false } : item
5108
+ function show(input, variant) {
5109
+ const options = normalize(input);
5110
+ const resolved = variant ? { ...options, variant } : options;
5111
+ const id = sonnerToast2.custom(
5112
+ (toastId) => createElement(ToastCard, {
5113
+ id: String(toastId),
5114
+ title: resolved.title,
5115
+ description: resolved.description,
5116
+ variant: resolved.variant,
5117
+ action: resolved.action
5118
+ }),
5119
+ { duration: resolved.duration }
5075
5120
  );
5076
- emit();
5077
- }
5078
- function removeToast(id) {
5079
- toasts = toasts.filter((item) => item.id !== id);
5080
- emit();
5081
- }
5082
- function withVariant(input, variant) {
5083
- return addToast({ ...normalize(input), variant });
5121
+ return String(id);
5084
5122
  }
5085
5123
  var toast = Object.assign(
5086
- (input) => addToast(input),
5124
+ (input) => show(input),
5087
5125
  {
5088
- success: (input) => withVariant(input, "success"),
5089
- warning: (input) => withVariant(input, "warning"),
5090
- danger: (input) => withVariant(input, "danger"),
5091
- info: (input) => withVariant(input, "info")
5126
+ success: (input) => show(input, "success"),
5127
+ warning: (input) => show(input, "warning"),
5128
+ danger: (input) => show(input, "danger"),
5129
+ info: (input) => show(input, "info")
5092
5130
  }
5093
5131
  );
5094
- function useToast() {
5095
- const snapshot = useSyncExternalStore(subscribe, getSnapshot, getSnapshot);
5096
- return { toasts: snapshot, toast, dismiss: dismissToast };
5132
+ function dismissToast(id) {
5133
+ sonnerToast2.dismiss(id);
5097
5134
  }
5098
-
5099
- // src/primitives/Toast/Toaster.tsx
5100
- import { jsx as jsx55, jsxs as jsxs34 } from "react/jsx-runtime";
5101
- function Toaster({
5102
- duration = 5e3,
5103
- swipeDirection = "right",
5104
- viewportClassName
5105
- }) {
5106
- const { toasts: toasts2 } = useToast();
5107
- return /* @__PURE__ */ jsxs34(
5108
- ToastPrimitive.Provider,
5109
- {
5110
- duration,
5111
- swipeDirection,
5112
- children: [
5113
- toasts2.map((item) => /* @__PURE__ */ jsxs34(
5114
- ToastPrimitive.Root,
5115
- {
5116
- open: item.open,
5117
- duration: item.duration,
5118
- onOpenChange: (open) => {
5119
- if (!open) removeToast(item.id);
5120
- },
5121
- className: cn(toastStyles({ variant: item.variant })),
5122
- children: [
5123
- /* @__PURE__ */ jsxs34("div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
5124
- item.title && /* @__PURE__ */ jsx55(ToastPrimitive.Title, { className: "text-v2-sm font-semibold", children: item.title }),
5125
- item.description && /* @__PURE__ */ jsx55(ToastPrimitive.Description, { className: "text-v2-sm opacity-90", children: item.description })
5126
- ] }),
5127
- item.action && /* @__PURE__ */ jsx55(ToastPrimitive.Action, { altText: "a\xE7\xE3o", asChild: true, children: item.action }),
5128
- /* @__PURE__ */ jsx55(
5129
- ToastPrimitive.Close,
5130
- {
5131
- "aria-label": "Fechar",
5132
- className: "shrink-0 rounded-v2-sm p-1 text-v2-fg-muted transition-colors hover:text-v2-fg-default focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-v2-focus-ring/30",
5133
- children: /* @__PURE__ */ jsx55(X9, { size: 16, "aria-hidden": "true" })
5134
- }
5135
- )
5136
- ]
5137
- },
5138
- item.id
5139
- )),
5140
- /* @__PURE__ */ jsx55(
5141
- ToastPrimitive.Viewport,
5142
- {
5143
- className: cn(
5144
- "fixed bottom-0 right-0 z-[100] flex max-h-screen w-full flex-col gap-2 p-4 outline-none sm:max-w-sm",
5145
- viewportClassName
5146
- )
5147
- }
5148
- )
5149
- ]
5150
- }
5151
- );
5135
+ function useToast() {
5136
+ return { toast, dismiss: dismissToast };
5152
5137
  }
5153
5138
 
5154
5139
  // src/patterns/AppShell/AppShell.tsx
@@ -5170,7 +5155,7 @@ import {
5170
5155
  import { CaretDoubleLeft, CaretDoubleRight } from "@phosphor-icons/react";
5171
5156
  import { forwardRef as forwardRef39, useCallback as useCallback2, useEffect as useEffect11, useState as useState17 } from "react";
5172
5157
  import "./Sidebar-4ILVFQI5.css";
5173
- import { Fragment as Fragment5, jsx as jsx56, jsxs as jsxs35 } from "react/jsx-runtime";
5158
+ import { Fragment as Fragment5, jsx as jsx57, jsxs as jsxs35 } from "react/jsx-runtime";
5174
5159
  var LINK_BASE_CLASS = "flex h-full w-full items-center";
5175
5160
  function isActive(currentPath, to) {
5176
5161
  if (!currentPath) return false;
@@ -5184,7 +5169,7 @@ function ItemLink({
5184
5169
  linkComponent
5185
5170
  }) {
5186
5171
  if (item.external) {
5187
- return /* @__PURE__ */ jsx56(
5172
+ return /* @__PURE__ */ jsx57(
5188
5173
  "a",
5189
5174
  {
5190
5175
  href: item.to,
@@ -5196,7 +5181,7 @@ function ItemLink({
5196
5181
  );
5197
5182
  }
5198
5183
  const LinkComponent = linkComponent ?? DefaultLink;
5199
- return /* @__PURE__ */ jsx56(LinkComponent, { to: item.to, className, children });
5184
+ return /* @__PURE__ */ jsx57(LinkComponent, { to: item.to, className, children });
5200
5185
  }
5201
5186
  function ItemContent({
5202
5187
  item,
@@ -5214,7 +5199,7 @@ function ItemContent({
5214
5199
  active ? "bg-v2-brand-primary font-semibold text-v2-brand-on-primary" : "text-v2-fg-default hover:bg-v2-bg-subtle"
5215
5200
  ),
5216
5201
  children: [
5217
- /* @__PURE__ */ jsx56(
5202
+ /* @__PURE__ */ jsx57(
5218
5203
  "span",
5219
5204
  {
5220
5205
  className: cn(
@@ -5225,8 +5210,8 @@ function ItemContent({
5225
5210
  }
5226
5211
  ),
5227
5212
  !collapsed ? /* @__PURE__ */ jsxs35(Fragment5, { children: [
5228
- /* @__PURE__ */ jsx56("span", { className: "flex-1 truncate", children: item.label }),
5229
- item.badge !== void 0 && /* @__PURE__ */ jsx56(
5213
+ /* @__PURE__ */ jsx57("span", { className: "flex-1 truncate", children: item.label }),
5214
+ item.badge !== void 0 && /* @__PURE__ */ jsx57(
5230
5215
  "span",
5231
5216
  {
5232
5217
  className: cn(
@@ -5236,7 +5221,7 @@ function ItemContent({
5236
5221
  children: item.badge
5237
5222
  }
5238
5223
  )
5239
- ] }) : item.badge !== void 0 && /* @__PURE__ */ jsx56(
5224
+ ] }) : item.badge !== void 0 && /* @__PURE__ */ jsx57(
5240
5225
  "span",
5241
5226
  {
5242
5227
  "aria-label": `${item.badge} pendentes`,
@@ -5256,15 +5241,15 @@ function GroupItems({
5256
5241
  showTopDivider
5257
5242
  }) {
5258
5243
  return /* @__PURE__ */ jsxs35("div", { className: "flex flex-col gap-1", children: [
5259
- group.label && !collapsed && /* @__PURE__ */ jsx56("h3", { className: "pb-1 pl-4 pt-2 text-v2-xs font-bold uppercase tracking-[0.08em] text-v2-fg-muted", children: group.label }),
5260
- group.label && collapsed && /* @__PURE__ */ jsx56(
5244
+ group.label && !collapsed && /* @__PURE__ */ jsx57("h3", { className: "pb-1 pl-4 pt-2 text-v2-xs font-bold uppercase tracking-[0.08em] text-v2-fg-muted", children: group.label }),
5245
+ group.label && collapsed && /* @__PURE__ */ jsx57(
5261
5246
  "div",
5262
5247
  {
5263
5248
  "aria-hidden": "true",
5264
5249
  className: "mx-2 my-1 h-px bg-v2-border-default"
5265
5250
  }
5266
5251
  ),
5267
- !group.label && showTopDivider && /* @__PURE__ */ jsx56(
5252
+ !group.label && showTopDivider && /* @__PURE__ */ jsx57(
5268
5253
  "div",
5269
5254
  {
5270
5255
  "aria-hidden": "true",
@@ -5274,9 +5259,9 @@ function GroupItems({
5274
5259
  )
5275
5260
  }
5276
5261
  ),
5277
- /* @__PURE__ */ jsx56("ul", { className: "flex flex-col gap-0.5", children: group.items.map((item) => {
5262
+ /* @__PURE__ */ jsx57("ul", { className: "flex flex-col gap-0.5", children: group.items.map((item) => {
5278
5263
  const active = isActive(currentPath, item.to);
5279
- const itemContent = /* @__PURE__ */ jsx56(
5264
+ const itemContent = /* @__PURE__ */ jsx57(
5280
5265
  ItemContent,
5281
5266
  {
5282
5267
  item,
@@ -5285,7 +5270,7 @@ function GroupItems({
5285
5270
  title: collapsed ? item.label : void 0
5286
5271
  }
5287
5272
  );
5288
- return /* @__PURE__ */ jsx56(
5273
+ return /* @__PURE__ */ jsx57(
5289
5274
  "li",
5290
5275
  {
5291
5276
  "aria-current": active ? "page" : void 0,
@@ -5293,7 +5278,7 @@ function GroupItems({
5293
5278
  "ml-1.5 h-12 rounded-l-v2-pill p-1 transition-colors",
5294
5279
  active && "ds-v2-sidebar-item--active"
5295
5280
  ),
5296
- children: renderLink ? renderLink(item, itemContent) : /* @__PURE__ */ jsx56(
5281
+ children: renderLink ? renderLink(item, itemContent) : /* @__PURE__ */ jsx57(
5297
5282
  ItemLink,
5298
5283
  {
5299
5284
  item,
@@ -5318,7 +5303,7 @@ function NavGroups({
5318
5303
  const topGroups = groups.filter((g) => g.pin !== "bottom");
5319
5304
  const bottomGroups = groups.filter((g) => g.pin === "bottom");
5320
5305
  return /* @__PURE__ */ jsxs35("nav", { className: "ds-v2-sidebar-nav flex flex-1 flex-col gap-3 py-3", children: [
5321
- topGroups.map((group, idx) => /* @__PURE__ */ jsx56(
5306
+ topGroups.map((group, idx) => /* @__PURE__ */ jsx57(
5322
5307
  GroupItems,
5323
5308
  {
5324
5309
  group,
@@ -5330,7 +5315,7 @@ function NavGroups({
5330
5315
  },
5331
5316
  group.label ?? `top-${idx}`
5332
5317
  )),
5333
- bottomGroups.length > 0 && /* @__PURE__ */ jsx56("div", { className: "mt-auto flex flex-col gap-1 pt-3", children: bottomGroups.map((group, idx) => /* @__PURE__ */ jsx56(
5318
+ bottomGroups.length > 0 && /* @__PURE__ */ jsx57("div", { className: "mt-auto flex flex-col gap-1 pt-3", children: bottomGroups.map((group, idx) => /* @__PURE__ */ jsx57(
5334
5319
  GroupItems,
5335
5320
  {
5336
5321
  group,
@@ -5417,16 +5402,16 @@ var Sidebar = forwardRef39(function Sidebar2({
5417
5402
  collapsed ? "justify-center px-0" : "justify-between"
5418
5403
  ),
5419
5404
  children: [
5420
- headerSlot && !collapsed && /* @__PURE__ */ jsx56("div", { children: headerSlot }),
5421
- /* @__PURE__ */ jsx56(
5405
+ headerSlot && !collapsed && /* @__PURE__ */ jsx57("div", { children: headerSlot }),
5406
+ /* @__PURE__ */ jsx57(
5422
5407
  Tooltip,
5423
5408
  {
5424
5409
  side: "right",
5425
5410
  content: /* @__PURE__ */ jsxs35("span", { children: [
5426
5411
  collapsed ? "Expandir menu" : "Recolher menu",
5427
- enableShortcut && /* @__PURE__ */ jsx56("span", { className: "ml-1 text-v2-fg-muted", children: getShortcutLabel("B") })
5412
+ enableShortcut && /* @__PURE__ */ jsx57("span", { className: "ml-1 text-v2-fg-muted", children: getShortcutLabel("B") })
5428
5413
  ] }),
5429
- children: /* @__PURE__ */ jsx56(
5414
+ children: /* @__PURE__ */ jsx57(
5430
5415
  "button",
5431
5416
  {
5432
5417
  type: "button",
@@ -5436,7 +5421,7 @@ var Sidebar = forwardRef39(function Sidebar2({
5436
5421
  className: cn(
5437
5422
  "inline-flex size-8 shrink-0 items-center justify-center rounded-v2-md text-current transition-colors hover:bg-v2-bg-subtle"
5438
5423
  ),
5439
- children: collapsed ? /* @__PURE__ */ jsx56(CaretDoubleRight, { size: 16 }) : /* @__PURE__ */ jsx56(CaretDoubleLeft, { size: 16 })
5424
+ children: collapsed ? /* @__PURE__ */ jsx57(CaretDoubleRight, { size: 16 }) : /* @__PURE__ */ jsx57(CaretDoubleLeft, { size: 16 })
5440
5425
  }
5441
5426
  )
5442
5427
  }
@@ -5444,7 +5429,7 @@ var Sidebar = forwardRef39(function Sidebar2({
5444
5429
  ]
5445
5430
  }
5446
5431
  ),
5447
- /* @__PURE__ */ jsx56(
5432
+ /* @__PURE__ */ jsx57(
5448
5433
  NavGroups,
5449
5434
  {
5450
5435
  groups,
@@ -5461,7 +5446,7 @@ var Sidebar = forwardRef39(function Sidebar2({
5461
5446
 
5462
5447
  // src/patterns/Topbar/Topbar.tsx
5463
5448
  import { forwardRef as forwardRef40 } from "react";
5464
- import { jsx as jsx57, jsxs as jsxs36 } from "react/jsx-runtime";
5449
+ import { jsx as jsx58, jsxs as jsxs36 } from "react/jsx-runtime";
5465
5450
  var Topbar = forwardRef40(function Topbar2({
5466
5451
  pageTitle,
5467
5452
  searchTrigger,
@@ -5485,8 +5470,8 @@ var Topbar = forwardRef40(function Topbar2({
5485
5470
  ),
5486
5471
  ...props,
5487
5472
  children: [
5488
- /* @__PURE__ */ jsx57("div", { className: "flex min-w-0 flex-1 items-center gap-3", children: pageTitle && /* @__PURE__ */ jsx57("h2", { className: "truncate text-v2-sm font-bold", children: pageTitle }) }),
5489
- searchTrigger && /* @__PURE__ */ jsx57("div", { className: "flex flex-1 items-center justify-center", children: searchTrigger }),
5473
+ /* @__PURE__ */ jsx58("div", { className: "flex min-w-0 flex-1 items-center gap-3", children: pageTitle && /* @__PURE__ */ jsx58("h2", { className: "truncate text-v2-sm font-bold", children: pageTitle }) }),
5474
+ searchTrigger && /* @__PURE__ */ jsx58("div", { className: "flex flex-1 items-center justify-center", children: searchTrigger }),
5490
5475
  /* @__PURE__ */ jsxs36("div", { className: "flex flex-1 items-center justify-end gap-2", children: [
5491
5476
  notificationCenter,
5492
5477
  themeToggle,
@@ -5499,7 +5484,7 @@ var Topbar = forwardRef40(function Topbar2({
5499
5484
  Topbar.displayName = "Topbar";
5500
5485
 
5501
5486
  // src/patterns/AppShell/AppShell.tsx
5502
- import { jsx as jsx58, jsxs as jsxs37 } from "react/jsx-runtime";
5487
+ import { jsx as jsx59, jsxs as jsxs37 } from "react/jsx-runtime";
5503
5488
  var DEFAULT_GROUPS = [
5504
5489
  {
5505
5490
  label: null,
@@ -5507,55 +5492,55 @@ var DEFAULT_GROUPS = [
5507
5492
  {
5508
5493
  id: "home",
5509
5494
  label: "P\xE1gina inicial",
5510
- icon: /* @__PURE__ */ jsx58(House, { size: 20 }),
5495
+ icon: /* @__PURE__ */ jsx59(House, { size: 20 }),
5511
5496
  to: "/"
5512
5497
  },
5513
5498
  {
5514
5499
  id: "users",
5515
5500
  label: "Usu\xE1rios",
5516
- icon: /* @__PURE__ */ jsx58(Users, { size: 20 }),
5501
+ icon: /* @__PURE__ */ jsx59(Users, { size: 20 }),
5517
5502
  to: "/users"
5518
5503
  },
5519
5504
  {
5520
5505
  id: "orgs",
5521
5506
  label: "Organiza\xE7\xF5es",
5522
- icon: /* @__PURE__ */ jsx58(Buildings, { size: 20 }),
5507
+ icon: /* @__PURE__ */ jsx59(Buildings, { size: 20 }),
5523
5508
  to: "/organizations"
5524
5509
  },
5525
5510
  {
5526
5511
  id: "configs-op",
5527
5512
  label: "Configs Opera\xE7\xE3o",
5528
- icon: /* @__PURE__ */ jsx58(Briefcase, { size: 20 }),
5513
+ icon: /* @__PURE__ */ jsx59(Briefcase, { size: 20 }),
5529
5514
  to: "/configs/operation"
5530
5515
  },
5531
5516
  {
5532
5517
  id: "clients",
5533
5518
  label: "Clientes",
5534
- icon: /* @__PURE__ */ jsx58(UsersThree, { size: 20 }),
5519
+ icon: /* @__PURE__ */ jsx59(UsersThree, { size: 20 }),
5535
5520
  to: "/clients"
5536
5521
  },
5537
5522
  {
5538
5523
  id: "requests",
5539
5524
  label: "Requisi\xE7\xF5es",
5540
- icon: /* @__PURE__ */ jsx58(PaperPlaneTilt, { size: 20 }),
5525
+ icon: /* @__PURE__ */ jsx59(PaperPlaneTilt, { size: 20 }),
5541
5526
  to: "/requests"
5542
5527
  },
5543
5528
  {
5544
5529
  id: "operations",
5545
5530
  label: "Opera\xE7\xF5es",
5546
- icon: /* @__PURE__ */ jsx58(Receipt, { size: 20 }),
5531
+ icon: /* @__PURE__ */ jsx59(Receipt, { size: 20 }),
5547
5532
  to: "/operations"
5548
5533
  },
5549
5534
  {
5550
5535
  id: "finance",
5551
5536
  label: "Financeiro",
5552
- icon: /* @__PURE__ */ jsx58(Coins, { size: 20 }),
5537
+ icon: /* @__PURE__ */ jsx59(Coins, { size: 20 }),
5553
5538
  to: "/finance"
5554
5539
  },
5555
5540
  {
5556
5541
  id: "configurations",
5557
5542
  label: "Configura\xE7\xF5es",
5558
- icon: /* @__PURE__ */ jsx58(Gear, { size: 20 }),
5543
+ icon: /* @__PURE__ */ jsx59(Gear, { size: 20 }),
5559
5544
  to: "/configurations"
5560
5545
  }
5561
5546
  ]
@@ -5566,15 +5551,15 @@ var DEFAULT_GROUPS = [
5566
5551
  {
5567
5552
  id: "tutorials",
5568
5553
  label: "Tutoriais",
5569
- icon: /* @__PURE__ */ jsx58(GraduationCap, { size: 20 }),
5554
+ icon: /* @__PURE__ */ jsx59(GraduationCap, { size: 20 }),
5570
5555
  to: "/tutorials"
5571
5556
  }
5572
5557
  ]
5573
5558
  }
5574
5559
  ];
5575
5560
  var DEFAULT_HEADER_SLOT = /* @__PURE__ */ jsxs37("span", { className: "flex items-center gap-1.5", children: [
5576
- /* @__PURE__ */ jsx58(Bank, { size: 20, "aria-hidden": "true" }),
5577
- /* @__PURE__ */ jsx58("span", { className: "text-v2-base font-bold text-v2-fg-default", children: "HUMU" })
5561
+ /* @__PURE__ */ jsx59(Bank, { size: 20, "aria-hidden": "true" }),
5562
+ /* @__PURE__ */ jsx59("span", { className: "text-v2-base font-bold text-v2-fg-default", children: "HUMU" })
5578
5563
  ] });
5579
5564
  function AppShell({
5580
5565
  children,
@@ -5590,7 +5575,7 @@ function AppShell({
5590
5575
  defaultSidebarCollapsed = false
5591
5576
  }) {
5592
5577
  return /* @__PURE__ */ jsxs37("div", { className: "flex h-screen overflow-hidden bg-v2-canvas text-v2-fg-default", children: [
5593
- /* @__PURE__ */ jsx58(
5578
+ /* @__PURE__ */ jsx59(
5594
5579
  "a",
5595
5580
  {
5596
5581
  href: "#main-content",
@@ -5598,7 +5583,7 @@ function AppShell({
5598
5583
  children: "Pular para o conte\xFAdo"
5599
5584
  }
5600
5585
  ),
5601
- /* @__PURE__ */ jsx58(
5586
+ /* @__PURE__ */ jsx59(
5602
5587
  Sidebar,
5603
5588
  {
5604
5589
  groups: sidebarGroups,
@@ -5609,7 +5594,7 @@ function AppShell({
5609
5594
  }
5610
5595
  ),
5611
5596
  /* @__PURE__ */ jsxs37("div", { className: "flex min-h-0 min-w-0 flex-1 flex-col", children: [
5612
- /* @__PURE__ */ jsx58(
5597
+ /* @__PURE__ */ jsx59(
5613
5598
  Topbar,
5614
5599
  {
5615
5600
  pageTitle,
@@ -5619,14 +5604,14 @@ function AppShell({
5619
5604
  userMenu
5620
5605
  }
5621
5606
  ),
5622
- /* @__PURE__ */ jsx58(
5607
+ /* @__PURE__ */ jsx59(
5623
5608
  "main",
5624
5609
  {
5625
5610
  id: "main-content",
5626
5611
  role: "main",
5627
5612
  tabIndex: -1,
5628
5613
  className: "flex min-h-0 min-w-0 flex-1 flex-col overflow-y-auto overflow-x-hidden overscroll-contain bg-v2-app p-4 focus:outline-none sm:p-6",
5629
- children: /* @__PURE__ */ jsx58("div", { className: "flex-1 rounded-v2-lg border border-v2-border-default bg-v2-shell p-4 shadow-sm sm:p-6", children })
5614
+ children: /* @__PURE__ */ jsx59("div", { className: "flex-1 rounded-v2-lg border border-v2-border-default bg-v2-shell p-4 shadow-sm sm:p-6", children })
5630
5615
  }
5631
5616
  )
5632
5617
  ] })
@@ -5637,7 +5622,7 @@ AppShell.displayName = "AppShell";
5637
5622
  // src/patterns/KpiHero/KpiHero.tsx
5638
5623
  import { useId as useId15 } from "react";
5639
5624
  import { ArrowUp as ArrowUp2, ArrowDown as ArrowDown2, Minus as Minus3 } from "@phosphor-icons/react";
5640
- import { Fragment as Fragment6, jsx as jsx59, jsxs as jsxs38 } from "react/jsx-runtime";
5625
+ import { Fragment as Fragment6, jsx as jsx60, jsxs as jsxs38 } from "react/jsx-runtime";
5641
5626
  var iconBgClass = {
5642
5627
  brand: "bg-v2-brand-bg-soft text-v2-brand-text-dark",
5643
5628
  info: "bg-v2-info-soft text-v2-info-500",
@@ -5658,9 +5643,9 @@ var trendToneClass = {
5658
5643
  flat: "bg-v2-bg-subtle text-v2-fg-muted"
5659
5644
  };
5660
5645
  var arrowIcon2 = {
5661
- up: /* @__PURE__ */ jsx59(ArrowUp2, { size: 11, weight: "bold", "aria-hidden": "true" }),
5662
- down: /* @__PURE__ */ jsx59(ArrowDown2, { size: 11, weight: "bold", "aria-hidden": "true" }),
5663
- flat: /* @__PURE__ */ jsx59(Minus3, { size: 11, weight: "bold", "aria-hidden": "true" })
5646
+ up: /* @__PURE__ */ jsx60(ArrowUp2, { size: 11, weight: "bold", "aria-hidden": "true" }),
5647
+ down: /* @__PURE__ */ jsx60(ArrowDown2, { size: 11, weight: "bold", "aria-hidden": "true" }),
5648
+ flat: /* @__PURE__ */ jsx60(Minus3, { size: 11, weight: "bold", "aria-hidden": "true" })
5664
5649
  };
5665
5650
  function buildSparklinePaths(data) {
5666
5651
  const width = 100;
@@ -5697,7 +5682,7 @@ function KpiHero({
5697
5682
  const sparkPaths = sparkline !== void 0 && hasSparkline ? buildSparklinePaths(sparkline) : null;
5698
5683
  const inner = /* @__PURE__ */ jsxs38(Fragment6, { children: [
5699
5684
  /* @__PURE__ */ jsxs38("div", { className: "flex items-start justify-between", children: [
5700
- /* @__PURE__ */ jsx59(
5685
+ /* @__PURE__ */ jsx60(
5701
5686
  "span",
5702
5687
  {
5703
5688
  className: cn(
@@ -5721,10 +5706,10 @@ function KpiHero({
5721
5706
  }
5722
5707
  )
5723
5708
  ] }),
5724
- /* @__PURE__ */ jsx59("span", { className: "text-v2-xs font-semibold uppercase tracking-wide text-v2-fg-muted", children: label }),
5725
- /* @__PURE__ */ jsx59("span", { className: "text-[30px] font-extrabold tabular-nums leading-none text-v2-fg-default", children: value }),
5726
- sub && /* @__PURE__ */ jsx59("span", { className: "text-v2-xs text-v2-fg-muted", children: sub }),
5727
- hasSparkline && sparkPaths && /* @__PURE__ */ jsx59("div", { className: cn("-mt-0.5 h-9 w-full", sparkColorClass[tone]), children: /* @__PURE__ */ jsxs38(
5709
+ /* @__PURE__ */ jsx60("span", { className: "text-v2-xs font-semibold uppercase tracking-wide text-v2-fg-muted", children: label }),
5710
+ /* @__PURE__ */ jsx60("span", { className: "text-[30px] font-extrabold tabular-nums leading-none text-v2-fg-default", children: value }),
5711
+ sub && /* @__PURE__ */ jsx60("span", { className: "text-v2-xs text-v2-fg-muted", children: sub }),
5712
+ hasSparkline && sparkPaths && /* @__PURE__ */ jsx60("div", { className: cn("-mt-0.5 h-9 w-full", sparkColorClass[tone]), children: /* @__PURE__ */ jsxs38(
5728
5713
  "svg",
5729
5714
  {
5730
5715
  viewBox: "0 0 100 36",
@@ -5732,11 +5717,11 @@ function KpiHero({
5732
5717
  className: "size-full",
5733
5718
  "aria-hidden": "true",
5734
5719
  children: [
5735
- /* @__PURE__ */ jsx59("defs", { children: /* @__PURE__ */ jsxs38("linearGradient", { id: gradientId, x1: "0", y1: "0", x2: "0", y2: "1", children: [
5736
- /* @__PURE__ */ jsx59("stop", { offset: "0%", stopColor: "currentColor", stopOpacity: "0.3" }),
5737
- /* @__PURE__ */ jsx59("stop", { offset: "100%", stopColor: "currentColor", stopOpacity: "0" })
5720
+ /* @__PURE__ */ jsx60("defs", { children: /* @__PURE__ */ jsxs38("linearGradient", { id: gradientId, x1: "0", y1: "0", x2: "0", y2: "1", children: [
5721
+ /* @__PURE__ */ jsx60("stop", { offset: "0%", stopColor: "currentColor", stopOpacity: "0.3" }),
5722
+ /* @__PURE__ */ jsx60("stop", { offset: "100%", stopColor: "currentColor", stopOpacity: "0" })
5738
5723
  ] }) }),
5739
- /* @__PURE__ */ jsx59(
5724
+ /* @__PURE__ */ jsx60(
5740
5725
  "path",
5741
5726
  {
5742
5727
  d: sparkPaths.area,
@@ -5744,7 +5729,7 @@ function KpiHero({
5744
5729
  stroke: "none"
5745
5730
  }
5746
5731
  ),
5747
- /* @__PURE__ */ jsx59(
5732
+ /* @__PURE__ */ jsx60(
5748
5733
  "path",
5749
5734
  {
5750
5735
  d: sparkPaths.line,
@@ -5757,17 +5742,17 @@ function KpiHero({
5757
5742
  ]
5758
5743
  }
5759
5744
  ) }),
5760
- to && cta && /* @__PURE__ */ jsx59("span", { className: "text-v2-xs font-bold text-v2-action-primary opacity-0 transition-opacity group-hover:opacity-100", children: cta })
5745
+ to && cta && /* @__PURE__ */ jsx60("span", { className: "text-v2-xs font-bold text-v2-action-primary opacity-0 transition-opacity group-hover:opacity-100", children: cta })
5761
5746
  ] });
5762
5747
  if (to) {
5763
5748
  const LinkComponent = linkComponent ?? DefaultLink;
5764
- return /* @__PURE__ */ jsx59(LinkComponent, { to, className: containerClass, children: inner });
5749
+ return /* @__PURE__ */ jsx60(LinkComponent, { to, className: containerClass, children: inner });
5765
5750
  }
5766
- return /* @__PURE__ */ jsx59("div", { className: containerClass, children: inner });
5751
+ return /* @__PURE__ */ jsx60("div", { className: containerClass, children: inner });
5767
5752
  }
5768
5753
 
5769
5754
  // src/patterns/DashboardBlock/DashboardBlock.tsx
5770
- import { Fragment as Fragment7, jsx as jsx60, jsxs as jsxs39 } from "react/jsx-runtime";
5755
+ import { Fragment as Fragment7, jsx as jsx61, jsxs as jsxs39 } from "react/jsx-runtime";
5771
5756
  function DashboardBlock({
5772
5757
  available,
5773
5758
  reason,
@@ -5778,7 +5763,7 @@ function DashboardBlock({
5778
5763
  children
5779
5764
  }) {
5780
5765
  if (loading) {
5781
- return /* @__PURE__ */ jsx60(
5766
+ return /* @__PURE__ */ jsx61(
5782
5767
  "div",
5783
5768
  {
5784
5769
  "data-testid": "dashboard-block-skeleton",
@@ -5789,8 +5774,8 @@ function DashboardBlock({
5789
5774
  if (!available) {
5790
5775
  if (reason === "source_data_missing") {
5791
5776
  return /* @__PURE__ */ jsxs39("div", { className: "flex min-h-40 flex-col items-center justify-center gap-2 rounded-v2-lg border border-v2-border-default bg-v2-panel p-5 text-center", children: [
5792
- /* @__PURE__ */ jsx60(Text, { size: "sm", weight: "semibold", children: "Fonte de dados indispon\xEDvel no momento" }),
5793
- onRetry && /* @__PURE__ */ jsx60(
5777
+ /* @__PURE__ */ jsx61(Text, { size: "sm", weight: "semibold", children: "Fonte de dados indispon\xEDvel no momento" }),
5778
+ onRetry && /* @__PURE__ */ jsx61(
5794
5779
  Button,
5795
5780
  {
5796
5781
  type: "button",
@@ -5805,15 +5790,15 @@ function DashboardBlock({
5805
5790
  return null;
5806
5791
  }
5807
5792
  if (isEmpty) {
5808
- return /* @__PURE__ */ jsx60("div", { className: "flex min-h-40 items-center justify-center rounded-v2-lg border border-v2-border-default bg-v2-panel p-5 text-center", children: /* @__PURE__ */ jsx60(Text, { size: "sm", color: "muted", children: emptyLabel }) });
5793
+ return /* @__PURE__ */ jsx61("div", { className: "flex min-h-40 items-center justify-center rounded-v2-lg border border-v2-border-default bg-v2-panel p-5 text-center", children: /* @__PURE__ */ jsx61(Text, { size: "sm", color: "muted", children: emptyLabel }) });
5809
5794
  }
5810
- return /* @__PURE__ */ jsx60(Fragment7, { children });
5795
+ return /* @__PURE__ */ jsx61(Fragment7, { children });
5811
5796
  }
5812
5797
 
5813
5798
  // src/patterns/LegalDocumentRenderer/LegalDocumentRenderer.tsx
5814
5799
  import ReactMarkdown from "react-markdown";
5815
5800
  import remarkGfm from "remark-gfm";
5816
- import { Fragment as Fragment8, jsx as jsx61, jsxs as jsxs40 } from "react/jsx-runtime";
5801
+ import { Fragment as Fragment8, jsx as jsx62, jsxs as jsxs40 } from "react/jsx-runtime";
5817
5802
  function formatLastUpdated(iso) {
5818
5803
  if (!iso) return "";
5819
5804
  const date = new Date(iso);
@@ -5824,16 +5809,16 @@ function formatLastUpdated(iso) {
5824
5809
  }).format(date);
5825
5810
  }
5826
5811
  var markdownComponents = {
5827
- h1: ({ children }) => /* @__PURE__ */ jsx61(Heading, { level: 2, size: "xl", children }),
5828
- h2: ({ children }) => /* @__PURE__ */ jsx61(Heading, { level: 3, size: "lg", children }),
5829
- h3: ({ children }) => /* @__PURE__ */ jsx61(Heading, { level: 4, size: "md", children }),
5830
- p: ({ children }) => /* @__PURE__ */ jsx61(Text, { size: "base", color: "default", className: "leading-relaxed", children }),
5831
- ul: ({ children }) => /* @__PURE__ */ jsx61("ul", { className: "ml-6 flex list-disc flex-col gap-1 text-v2-base text-v2-fg-default", children }),
5832
- ol: ({ children }) => /* @__PURE__ */ jsx61("ol", { className: "ml-6 flex list-decimal flex-col gap-1 text-v2-base text-v2-fg-default", children }),
5833
- li: ({ children }) => /* @__PURE__ */ jsx61("li", { children }),
5812
+ h1: ({ children }) => /* @__PURE__ */ jsx62(Heading, { level: 2, size: "xl", children }),
5813
+ h2: ({ children }) => /* @__PURE__ */ jsx62(Heading, { level: 3, size: "lg", children }),
5814
+ h3: ({ children }) => /* @__PURE__ */ jsx62(Heading, { level: 4, size: "md", children }),
5815
+ p: ({ children }) => /* @__PURE__ */ jsx62(Text, { size: "base", color: "default", className: "leading-relaxed", children }),
5816
+ ul: ({ children }) => /* @__PURE__ */ jsx62("ul", { className: "ml-6 flex list-disc flex-col gap-1 text-v2-base text-v2-fg-default", children }),
5817
+ ol: ({ children }) => /* @__PURE__ */ jsx62("ol", { className: "ml-6 flex list-decimal flex-col gap-1 text-v2-base text-v2-fg-default", children }),
5818
+ li: ({ children }) => /* @__PURE__ */ jsx62("li", { children }),
5834
5819
  a: ({ href, children }) => {
5835
5820
  const isExternal = href == null ? void 0 : href.startsWith("http");
5836
- return /* @__PURE__ */ jsx61(
5821
+ return /* @__PURE__ */ jsx62(
5837
5822
  "a",
5838
5823
  {
5839
5824
  href,
@@ -5844,14 +5829,14 @@ var markdownComponents = {
5844
5829
  }
5845
5830
  );
5846
5831
  },
5847
- strong: ({ children }) => /* @__PURE__ */ jsx61("strong", { className: "font-semibold text-v2-fg-default", children }),
5848
- em: ({ children }) => /* @__PURE__ */ jsx61("em", { className: "italic", children }),
5849
- hr: () => /* @__PURE__ */ jsx61("hr", { className: "my-2 border-t border-v2-border-default" }),
5850
- table: ({ children }) => /* @__PURE__ */ jsx61("div", { className: "overflow-x-auto", children: /* @__PURE__ */ jsx61("table", { className: "w-full border-collapse text-v2-sm", children }) }),
5851
- th: ({ children }) => /* @__PURE__ */ jsx61("th", { className: "border-b border-v2-border-default bg-v2-bg-subtle px-3 py-2 text-left font-semibold", children }),
5852
- td: ({ children }) => /* @__PURE__ */ jsx61("td", { className: "border-b border-v2-border-subtle px-3 py-2", children }),
5853
- blockquote: ({ children }) => /* @__PURE__ */ jsx61("blockquote", { className: "border-l-4 border-v2-border-default pl-4 italic text-v2-fg-muted", children }),
5854
- code: ({ children }) => /* @__PURE__ */ jsx61("code", { className: "rounded-v2-sm bg-v2-bg-subtle px-1 py-0.5 font-mono text-v2-xs", children })
5832
+ strong: ({ children }) => /* @__PURE__ */ jsx62("strong", { className: "font-semibold text-v2-fg-default", children }),
5833
+ em: ({ children }) => /* @__PURE__ */ jsx62("em", { className: "italic", children }),
5834
+ hr: () => /* @__PURE__ */ jsx62("hr", { className: "my-2 border-t border-v2-border-default" }),
5835
+ table: ({ children }) => /* @__PURE__ */ jsx62("div", { className: "overflow-x-auto", children: /* @__PURE__ */ jsx62("table", { className: "w-full border-collapse text-v2-sm", children }) }),
5836
+ th: ({ children }) => /* @__PURE__ */ jsx62("th", { className: "border-b border-v2-border-default bg-v2-bg-subtle px-3 py-2 text-left font-semibold", children }),
5837
+ td: ({ children }) => /* @__PURE__ */ jsx62("td", { className: "border-b border-v2-border-subtle px-3 py-2", children }),
5838
+ blockquote: ({ children }) => /* @__PURE__ */ jsx62("blockquote", { className: "border-l-4 border-v2-border-default pl-4 italic text-v2-fg-muted", children }),
5839
+ code: ({ children }) => /* @__PURE__ */ jsx62("code", { className: "rounded-v2-sm bg-v2-bg-subtle px-1 py-0.5 font-mono text-v2-xs", children })
5855
5840
  };
5856
5841
  function LegalDocumentRenderer({
5857
5842
  document: document2,
@@ -5864,16 +5849,16 @@ function LegalDocumentRenderer({
5864
5849
  className
5865
5850
  }) {
5866
5851
  if (isLoading) {
5867
- return /* @__PURE__ */ jsx61("div", { className: cn("flex flex-col gap-3", className), children: loadingState ?? /* @__PURE__ */ jsxs40(Fragment8, { children: [
5868
- /* @__PURE__ */ jsx61(Skeleton, { shape: "text", style: { width: "60%", height: 24 } }),
5869
- /* @__PURE__ */ jsx61(Skeleton, { shape: "text", style: { width: "100%", height: 14 } }),
5870
- /* @__PURE__ */ jsx61(Skeleton, { shape: "text", style: { width: "95%", height: 14 } }),
5871
- /* @__PURE__ */ jsx61(Skeleton, { shape: "text", style: { width: "90%", height: 14 } }),
5872
- /* @__PURE__ */ jsx61(Skeleton, { shape: "text", style: { width: "85%", height: 14 } })
5852
+ return /* @__PURE__ */ jsx62("div", { className: cn("flex flex-col gap-3", className), children: loadingState ?? /* @__PURE__ */ jsxs40(Fragment8, { children: [
5853
+ /* @__PURE__ */ jsx62(Skeleton, { shape: "text", style: { width: "60%", height: 24 } }),
5854
+ /* @__PURE__ */ jsx62(Skeleton, { shape: "text", style: { width: "100%", height: 14 } }),
5855
+ /* @__PURE__ */ jsx62(Skeleton, { shape: "text", style: { width: "95%", height: 14 } }),
5856
+ /* @__PURE__ */ jsx62(Skeleton, { shape: "text", style: { width: "90%", height: 14 } }),
5857
+ /* @__PURE__ */ jsx62(Skeleton, { shape: "text", style: { width: "85%", height: 14 } })
5873
5858
  ] }) });
5874
5859
  }
5875
5860
  if (error || !document2) {
5876
- return /* @__PURE__ */ jsx61(
5861
+ return /* @__PURE__ */ jsx62(
5877
5862
  "div",
5878
5863
  {
5879
5864
  className: cn(
@@ -5881,18 +5866,18 @@ function LegalDocumentRenderer({
5881
5866
  className
5882
5867
  ),
5883
5868
  role: "alert",
5884
- children: errorState ?? /* @__PURE__ */ jsx61(Text, { size: "sm", color: "default", children: "N\xE3o foi poss\xEDvel carregar o documento." })
5869
+ children: errorState ?? /* @__PURE__ */ jsx62(Text, { size: "sm", color: "default", children: "N\xE3o foi poss\xEDvel carregar o documento." })
5885
5870
  }
5886
5871
  );
5887
5872
  }
5888
5873
  return /* @__PURE__ */ jsxs40("article", { className: cn("flex flex-col gap-4", className), children: [
5889
- title && /* @__PURE__ */ jsx61(Heading, { level: 1, size: "2xl", children: title }),
5874
+ title && /* @__PURE__ */ jsx62(Heading, { level: 1, size: "2xl", children: title }),
5890
5875
  document2.lastUpdated && /* @__PURE__ */ jsxs40(Text, { size: "xs", color: "muted", children: [
5891
5876
  lastUpdatedLabel,
5892
5877
  ": ",
5893
5878
  formatLastUpdated(document2.lastUpdated)
5894
5879
  ] }),
5895
- /* @__PURE__ */ jsx61("div", { className: "flex flex-col gap-4 text-v2-base text-v2-fg-default", children: /* @__PURE__ */ jsx61(
5880
+ /* @__PURE__ */ jsx62("div", { className: "flex flex-col gap-4 text-v2-base text-v2-fg-default", children: /* @__PURE__ */ jsx62(
5896
5881
  ReactMarkdown,
5897
5882
  {
5898
5883
  remarkPlugins: [remarkGfm],
@@ -5910,7 +5895,7 @@ import { forwardRef as forwardRef42 } from "react";
5910
5895
  // src/patterns/SortableColumnHeader/SortableColumnHeader.tsx
5911
5896
  import { forwardRef as forwardRef41 } from "react";
5912
5897
  import { CaretDown as CaretDown5, CaretUp, CaretUpDown } from "@phosphor-icons/react";
5913
- import { jsx as jsx62, jsxs as jsxs41 } from "react/jsx-runtime";
5898
+ import { jsx as jsx63, jsxs as jsxs41 } from "react/jsx-runtime";
5914
5899
  function nextDirection(current, cycleMode) {
5915
5900
  if (cycleMode === "asc-desc") {
5916
5901
  return current === "asc" ? "desc" : "asc";
@@ -5954,8 +5939,8 @@ var SortableColumnHeader = forwardRef41(
5954
5939
  },
5955
5940
  ...props,
5956
5941
  children: [
5957
- /* @__PURE__ */ jsx62("span", { children: label }),
5958
- direction === "asc" ? /* @__PURE__ */ jsx62(CaretUp, { size: 12, weight: "bold", "aria-hidden": "true" }) : direction === "desc" ? /* @__PURE__ */ jsx62(CaretDown5, { size: 12, weight: "bold", "aria-hidden": "true" }) : /* @__PURE__ */ jsx62(CaretUpDown, { size: 12, "aria-hidden": "true", className: "opacity-60" })
5942
+ /* @__PURE__ */ jsx63("span", { children: label }),
5943
+ direction === "asc" ? /* @__PURE__ */ jsx63(CaretUp, { size: 12, weight: "bold", "aria-hidden": "true" }) : direction === "desc" ? /* @__PURE__ */ jsx63(CaretDown5, { size: 12, weight: "bold", "aria-hidden": "true" }) : /* @__PURE__ */ jsx63(CaretUpDown, { size: 12, "aria-hidden": "true", className: "opacity-60" })
5959
5944
  ]
5960
5945
  }
5961
5946
  );
@@ -5964,7 +5949,7 @@ var SortableColumnHeader = forwardRef41(
5964
5949
  SortableColumnHeader.displayName = "SortableColumnHeader";
5965
5950
 
5966
5951
  // src/patterns/DataTable/DataTable.tsx
5967
- import { jsx as jsx63, jsxs as jsxs42 } from "react/jsx-runtime";
5952
+ import { jsx as jsx64, jsxs as jsxs42 } from "react/jsx-runtime";
5968
5953
  var densityCellClass = {
5969
5954
  compact: "px-3 py-1.5",
5970
5955
  comfortable: "px-3 py-3"
@@ -6001,7 +5986,7 @@ function DataTableInner({
6001
5986
  }, ref) {
6002
5987
  const cellPadding = densityCellClass[density];
6003
5988
  const seenRowKeys = /* @__PURE__ */ new Set();
6004
- return /* @__PURE__ */ jsx63("div", { className: "overflow-x-auto", children: /* @__PURE__ */ jsxs42(
5989
+ return /* @__PURE__ */ jsx64("div", { className: "overflow-x-auto", children: /* @__PURE__ */ jsxs42(
6005
5990
  "table",
6006
5991
  {
6007
5992
  ref,
@@ -6009,14 +5994,14 @@ function DataTableInner({
6009
5994
  className: cn("w-full border-collapse text-v2-sm", className),
6010
5995
  ...props,
6011
5996
  children: [
6012
- /* @__PURE__ */ jsx63(
5997
+ /* @__PURE__ */ jsx64(
6013
5998
  "thead",
6014
5999
  {
6015
6000
  className: cn(
6016
6001
  "border-b border-v2-border-default bg-v2-bg-subtle",
6017
6002
  stickyHeader && "sticky top-0 z-10"
6018
6003
  ),
6019
- children: /* @__PURE__ */ jsx63("tr", { children: columns.map((col) => /* @__PURE__ */ jsx63(
6004
+ children: /* @__PURE__ */ jsx64("tr", { children: columns.map((col) => /* @__PURE__ */ jsx64(
6020
6005
  "th",
6021
6006
  {
6022
6007
  scope: "col",
@@ -6031,7 +6016,7 @@ function DataTableInner({
6031
6016
  col.align === "center" && "text-center",
6032
6017
  col.align !== "right" && col.align !== "center" && "text-left"
6033
6018
  ),
6034
- children: col.sortable && onSortChange ? /* @__PURE__ */ jsx63(
6019
+ children: col.sortable && onSortChange ? /* @__PURE__ */ jsx64(
6035
6020
  SortableColumnHeader,
6036
6021
  {
6037
6022
  label: col.label,
@@ -6054,18 +6039,18 @@ function DataTableInner({
6054
6039
  )) })
6055
6040
  }
6056
6041
  ),
6057
- /* @__PURE__ */ jsx63("tbody", { children: loading ? Array.from({ length: loadingRowCount }).map((_, idx) => /* @__PURE__ */ jsx63(
6042
+ /* @__PURE__ */ jsx64("tbody", { children: loading ? Array.from({ length: loadingRowCount }).map((_, idx) => /* @__PURE__ */ jsx64(
6058
6043
  "tr",
6059
6044
  {
6060
6045
  className: "border-b border-v2-border-default",
6061
- children: columns.map((col) => /* @__PURE__ */ jsx63("td", { className: cellPadding, children: /* @__PURE__ */ jsx63(Skeleton, { className: "h-4 w-full" }) }, col.key))
6046
+ children: columns.map((col) => /* @__PURE__ */ jsx64("td", { className: cellPadding, children: /* @__PURE__ */ jsx64(Skeleton, { className: "h-4 w-full" }) }, col.key))
6062
6047
  },
6063
6048
  `skeleton-${idx}`
6064
- )) : rows.length === 0 ? /* @__PURE__ */ jsx63("tr", { children: /* @__PURE__ */ jsx63("td", { colSpan: columns.length, className: "py-12 text-center", children: emptyState ?? /* @__PURE__ */ jsx63("span", { className: "text-v2-sm text-v2-fg-muted", children: "Nenhum item." }) }) }) : rows.map((row, index) => {
6049
+ )) : rows.length === 0 ? /* @__PURE__ */ jsx64("tr", { children: /* @__PURE__ */ jsx64("td", { colSpan: columns.length, className: "py-12 text-center", children: emptyState ?? /* @__PURE__ */ jsx64("span", { className: "text-v2-sm text-v2-fg-muted", children: "Nenhum item." }) }) }) : rows.map((row, index) => {
6065
6050
  const baseKey = rowKey(row);
6066
6051
  const uniqueKey = seenRowKeys.has(baseKey) ? `${baseKey}__${index}` : baseKey;
6067
6052
  seenRowKeys.add(baseKey);
6068
- return /* @__PURE__ */ jsx63(
6053
+ return /* @__PURE__ */ jsx64(
6069
6054
  "tr",
6070
6055
  {
6071
6056
  className: cn(
@@ -6073,7 +6058,7 @@ function DataTableInner({
6073
6058
  zebra && index % 2 === 1 && "bg-v2-bg-subtle/50",
6074
6059
  rowClassName == null ? void 0 : rowClassName(row, index)
6075
6060
  ),
6076
- children: columns.map((col) => /* @__PURE__ */ jsx63(
6061
+ children: columns.map((col) => /* @__PURE__ */ jsx64(
6077
6062
  "td",
6078
6063
  {
6079
6064
  className: cn(
@@ -6100,7 +6085,7 @@ var DataTable = forwardRef42(
6100
6085
  // src/patterns/DataTablePagination/DataTablePagination.tsx
6101
6086
  import { forwardRef as forwardRef43, useState as useState18 } from "react";
6102
6087
  import { CaretDown as CaretDown6, CaretLeft, CaretRight as CaretRight2, Check as Check5 } from "@phosphor-icons/react";
6103
- import { jsx as jsx64, jsxs as jsxs43 } from "react/jsx-runtime";
6088
+ import { jsx as jsx65, jsxs as jsxs43 } from "react/jsx-runtime";
6104
6089
  var DEFAULT_PER_PAGE_OPTIONS = [5, 10, 20, 30, 50, 70, 100];
6105
6090
  function buildPageNumbers(page, totalPages, siblingCount) {
6106
6091
  if (totalPages <= 7) {
@@ -6164,13 +6149,13 @@ var DataTablePagination = forwardRef43(
6164
6149
  " ",
6165
6150
  ofLabel,
6166
6151
  " ",
6167
- /* @__PURE__ */ jsx64("strong", { className: "tabular-nums text-v2-fg-default", children: total })
6152
+ /* @__PURE__ */ jsx65("strong", { className: "tabular-nums text-v2-fg-default", children: total })
6168
6153
  ] }),
6169
6154
  /* @__PURE__ */ jsxs43("div", { className: "flex items-center gap-3", children: [
6170
6155
  onPerPageChange && /* @__PURE__ */ jsxs43("div", { className: "flex items-center gap-2", children: [
6171
- /* @__PURE__ */ jsx64("span", { className: "text-v2-sm text-v2-fg-muted", children: perPageLabel }),
6156
+ /* @__PURE__ */ jsx65("span", { className: "text-v2-sm text-v2-fg-muted", children: perPageLabel }),
6172
6157
  /* @__PURE__ */ jsxs43(Popover, { open: perPageOpen, onOpenChange: setPerPageOpen, children: [
6173
- /* @__PURE__ */ jsx64(Popover.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs43(
6158
+ /* @__PURE__ */ jsx65(Popover.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs43(
6174
6159
  "button",
6175
6160
  {
6176
6161
  type: "button",
@@ -6179,14 +6164,14 @@ var DataTablePagination = forwardRef43(
6179
6164
  "aria-expanded": perPageOpen,
6180
6165
  className: "inline-flex h-9 items-center gap-1.5 rounded-v2-md border border-v2-border-default bg-v2-panel px-3 text-v2-sm text-v2-fg-default transition-colors hover:bg-v2-bg-subtle focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-v2-focus-ring/30",
6181
6166
  children: [
6182
- /* @__PURE__ */ jsx64("span", { className: "tabular-nums", children: perPage }),
6183
- /* @__PURE__ */ jsx64(CaretDown6, { size: 12, weight: "bold", "aria-hidden": "true" })
6167
+ /* @__PURE__ */ jsx65("span", { className: "tabular-nums", children: perPage }),
6168
+ /* @__PURE__ */ jsx65(CaretDown6, { size: 12, weight: "bold", "aria-hidden": "true" })
6184
6169
  ]
6185
6170
  }
6186
6171
  ) }),
6187
- /* @__PURE__ */ jsx64(Popover.Content, { align: "end", className: "w-24 p-1", children: /* @__PURE__ */ jsx64("ul", { role: "listbox", className: "flex flex-col gap-0.5", children: perPageOptions.map((opt) => {
6172
+ /* @__PURE__ */ jsx65(Popover.Content, { align: "end", className: "w-24 p-1", children: /* @__PURE__ */ jsx65("ul", { role: "listbox", className: "flex flex-col gap-0.5", children: perPageOptions.map((opt) => {
6188
6173
  const selected = opt === perPage;
6189
- return /* @__PURE__ */ jsx64("li", { children: /* @__PURE__ */ jsxs43(
6174
+ return /* @__PURE__ */ jsx65("li", { children: /* @__PURE__ */ jsxs43(
6190
6175
  "button",
6191
6176
  {
6192
6177
  type: "button",
@@ -6202,7 +6187,7 @@ var DataTablePagination = forwardRef43(
6202
6187
  ),
6203
6188
  children: [
6204
6189
  opt,
6205
- selected && /* @__PURE__ */ jsx64(
6190
+ selected && /* @__PURE__ */ jsx65(
6206
6191
  Check5,
6207
6192
  {
6208
6193
  size: 12,
@@ -6217,7 +6202,7 @@ var DataTablePagination = forwardRef43(
6217
6202
  ] })
6218
6203
  ] }),
6219
6204
  /* @__PURE__ */ jsxs43("ul", { className: "flex items-center gap-1", children: [
6220
- /* @__PURE__ */ jsx64("li", { children: /* @__PURE__ */ jsx64(
6205
+ /* @__PURE__ */ jsx65("li", { children: /* @__PURE__ */ jsx65(
6221
6206
  "button",
6222
6207
  {
6223
6208
  type: "button",
@@ -6228,11 +6213,11 @@ var DataTablePagination = forwardRef43(
6228
6213
  "inline-flex size-8 items-center justify-center rounded-v2-md border border-v2-border-default text-v2-fg-default transition-colors hover:bg-v2-bg-subtle",
6229
6214
  "disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:bg-transparent"
6230
6215
  ),
6231
- children: /* @__PURE__ */ jsx64(CaretLeft, { size: 14, weight: "bold", "aria-hidden": "true" })
6216
+ children: /* @__PURE__ */ jsx65(CaretLeft, { size: 14, weight: "bold", "aria-hidden": "true" })
6232
6217
  }
6233
6218
  ) }),
6234
6219
  pages.map(
6235
- (p, idx) => p === "ellipsis" ? /* @__PURE__ */ jsx64(
6220
+ (p, idx) => p === "ellipsis" ? /* @__PURE__ */ jsx65(
6236
6221
  "li",
6237
6222
  {
6238
6223
  "aria-hidden": "true",
@@ -6240,7 +6225,7 @@ var DataTablePagination = forwardRef43(
6240
6225
  children: "\u2026"
6241
6226
  },
6242
6227
  `ellipsis-${idx}`
6243
- ) : /* @__PURE__ */ jsx64("li", { children: /* @__PURE__ */ jsx64(
6228
+ ) : /* @__PURE__ */ jsx65("li", { children: /* @__PURE__ */ jsx65(
6244
6229
  "button",
6245
6230
  {
6246
6231
  type: "button",
@@ -6255,7 +6240,7 @@ var DataTablePagination = forwardRef43(
6255
6240
  }
6256
6241
  ) }, p)
6257
6242
  ),
6258
- /* @__PURE__ */ jsx64("li", { children: /* @__PURE__ */ jsx64(
6243
+ /* @__PURE__ */ jsx65("li", { children: /* @__PURE__ */ jsx65(
6259
6244
  "button",
6260
6245
  {
6261
6246
  type: "button",
@@ -6266,7 +6251,7 @@ var DataTablePagination = forwardRef43(
6266
6251
  "inline-flex size-8 items-center justify-center rounded-v2-md border border-v2-border-default text-v2-fg-default transition-colors hover:bg-v2-bg-subtle",
6267
6252
  "disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:bg-transparent"
6268
6253
  ),
6269
- children: /* @__PURE__ */ jsx64(CaretRight2, { size: 14, weight: "bold", "aria-hidden": "true" })
6254
+ children: /* @__PURE__ */ jsx65(CaretRight2, { size: 14, weight: "bold", "aria-hidden": "true" })
6270
6255
  }
6271
6256
  ) })
6272
6257
  ] })
@@ -6281,7 +6266,7 @@ DataTablePagination.displayName = "DataTablePagination";
6281
6266
  // src/patterns/ReadOnlyDataView/ReadOnlyDataView.tsx
6282
6267
  import { useState as useState19 } from "react";
6283
6268
  import { CaretDown as CaretDown7, CaretUp as CaretUp2, CaretUpDown as CaretUpDown2 } from "@phosphor-icons/react";
6284
- import { Fragment as Fragment9, jsx as jsx65, jsxs as jsxs44 } from "react/jsx-runtime";
6269
+ import { Fragment as Fragment9, jsx as jsx66, jsxs as jsxs44 } from "react/jsx-runtime";
6285
6270
  function formatDate(value, format3) {
6286
6271
  if (!value) return "\u2014";
6287
6272
  const date = value instanceof Date ? value : new Date(String(value));
@@ -6336,18 +6321,18 @@ function ReadOnlyDataView({
6336
6321
  };
6337
6322
  const hasTriggerColumn = (column) => column.type !== "action" && Boolean(detailsDialogs == null ? void 0 : detailsDialogs.some((d) => d.triggerColumn === column.key));
6338
6323
  return /* @__PURE__ */ jsxs44(Fragment9, { children: [
6339
- /* @__PURE__ */ jsx65(
6324
+ /* @__PURE__ */ jsx66(
6340
6325
  Card,
6341
6326
  {
6342
6327
  padding: "none",
6343
6328
  variant: "default",
6344
6329
  className: cn("overflow-hidden", className),
6345
- children: /* @__PURE__ */ jsx65("div", { className: "overflow-x-auto", children: /* @__PURE__ */ jsxs44("table", { className: "w-full border-collapse", children: [
6346
- caption && /* @__PURE__ */ jsx65("caption", { className: "sr-only", children: caption }),
6347
- /* @__PURE__ */ jsx65("thead", { className: "bg-v2-bg-subtle", children: /* @__PURE__ */ jsx65("tr", { children: columns.map((column) => {
6330
+ children: /* @__PURE__ */ jsx66("div", { className: "overflow-x-auto", children: /* @__PURE__ */ jsxs44("table", { className: "w-full border-collapse", children: [
6331
+ caption && /* @__PURE__ */ jsx66("caption", { className: "sr-only", children: caption }),
6332
+ /* @__PURE__ */ jsx66("thead", { className: "bg-v2-bg-subtle", children: /* @__PURE__ */ jsx66("tr", { children: columns.map((column) => {
6348
6333
  const isSortable = column.type !== "action" && Boolean(column.sortable);
6349
6334
  const isSorted = column.type !== "action" && (sortValue == null ? void 0 : sortValue.column) === column.key;
6350
- return /* @__PURE__ */ jsx65(
6335
+ return /* @__PURE__ */ jsx66(
6351
6336
  "th",
6352
6337
  {
6353
6338
  scope: "col",
@@ -6367,21 +6352,21 @@ function ReadOnlyDataView({
6367
6352
  className: "inline-flex items-center gap-1 text-v2-fg-muted hover:text-v2-fg-default focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-v2-focus-ring/30 motion-reduce:transition-none",
6368
6353
  children: [
6369
6354
  column.label,
6370
- isSorted ? (sortValue == null ? void 0 : sortValue.direction) === "asc" ? /* @__PURE__ */ jsx65(
6355
+ isSorted ? (sortValue == null ? void 0 : sortValue.direction) === "asc" ? /* @__PURE__ */ jsx66(
6371
6356
  CaretUp2,
6372
6357
  {
6373
6358
  size: 12,
6374
6359
  weight: "bold",
6375
6360
  "aria-hidden": "true"
6376
6361
  }
6377
- ) : /* @__PURE__ */ jsx65(
6362
+ ) : /* @__PURE__ */ jsx66(
6378
6363
  CaretDown7,
6379
6364
  {
6380
6365
  size: 12,
6381
6366
  weight: "bold",
6382
6367
  "aria-hidden": "true"
6383
6368
  }
6384
- ) : /* @__PURE__ */ jsx65(CaretUpDown2, { size: 12, "aria-hidden": "true" })
6369
+ ) : /* @__PURE__ */ jsx66(CaretUpDown2, { size: 12, "aria-hidden": "true" })
6385
6370
  ]
6386
6371
  }
6387
6372
  ) : column.label
@@ -6389,27 +6374,27 @@ function ReadOnlyDataView({
6389
6374
  column.key ?? column.label
6390
6375
  );
6391
6376
  }) }) }),
6392
- /* @__PURE__ */ jsx65("tbody", { children: loading ? Array.from({ length: loadingRows }).map((_, i) => /* @__PURE__ */ jsx65(
6377
+ /* @__PURE__ */ jsx66("tbody", { children: loading ? Array.from({ length: loadingRows }).map((_, i) => /* @__PURE__ */ jsx66(
6393
6378
  "tr",
6394
6379
  {
6395
6380
  className: "border-t border-v2-border-subtle",
6396
- children: columns.map((column) => /* @__PURE__ */ jsx65(
6381
+ children: columns.map((column) => /* @__PURE__ */ jsx66(
6397
6382
  "td",
6398
6383
  {
6399
6384
  className: cn(cellPadding),
6400
- children: /* @__PURE__ */ jsx65(Skeleton, { shape: "text", style: { width: "80%" } })
6385
+ children: /* @__PURE__ */ jsx66(Skeleton, { shape: "text", style: { width: "80%" } })
6401
6386
  },
6402
6387
  column.key ?? column.label
6403
6388
  ))
6404
6389
  },
6405
6390
  `skeleton-${i}`
6406
- )) : list.length === 0 ? /* @__PURE__ */ jsx65("tr", { children: /* @__PURE__ */ jsx65("td", { colSpan: columns.length, className: "p-0", children: /* @__PURE__ */ jsx65("div", { className: "flex flex-col items-center justify-center gap-2 p-8 text-center", children: emptyState ?? /* @__PURE__ */ jsx65(Text, { size: "sm", color: "muted", children: "Nenhum registro encontrado" }) }) }) }) : list.map((row, rowIndex) => /* @__PURE__ */ jsx65(
6391
+ )) : list.length === 0 ? /* @__PURE__ */ jsx66("tr", { children: /* @__PURE__ */ jsx66("td", { colSpan: columns.length, className: "p-0", children: /* @__PURE__ */ jsx66("div", { className: "flex flex-col items-center justify-center gap-2 p-8 text-center", children: emptyState ?? /* @__PURE__ */ jsx66(Text, { size: "sm", color: "muted", children: "Nenhum registro encontrado" }) }) }) }) : list.map((row, rowIndex) => /* @__PURE__ */ jsx66(
6407
6392
  "tr",
6408
6393
  {
6409
6394
  className: "border-t border-v2-border-subtle hover:bg-v2-bg-subtle motion-reduce:transition-none",
6410
6395
  children: columns.map((column) => {
6411
6396
  const clickable = hasTriggerColumn(column);
6412
- return /* @__PURE__ */ jsx65(
6397
+ return /* @__PURE__ */ jsx66(
6413
6398
  "td",
6414
6399
  {
6415
6400
  className: cn(
@@ -6434,7 +6419,7 @@ function ReadOnlyDataView({
6434
6419
  ] }) })
6435
6420
  }
6436
6421
  ),
6437
- activeDialog && /* @__PURE__ */ jsx65(
6422
+ activeDialog && /* @__PURE__ */ jsx66(
6438
6423
  DialogRoot,
6439
6424
  {
6440
6425
  open: true,
@@ -6447,8 +6432,8 @@ function ReadOnlyDataView({
6447
6432
  size: activeDialog.dialog.size ?? "md",
6448
6433
  "aria-describedby": void 0,
6449
6434
  children: [
6450
- /* @__PURE__ */ jsx65(DialogRoot.Header, { children: /* @__PURE__ */ jsx65(DialogRoot.Title, { children: activeDialog.dialog.title }) }),
6451
- /* @__PURE__ */ jsx65(DialogRoot.Body, { children: activeDialog.details !== null ? activeDialog.dialog.renderDetails(activeDialog.details) : null })
6435
+ /* @__PURE__ */ jsx66(DialogRoot.Header, { children: /* @__PURE__ */ jsx66(DialogRoot.Title, { children: activeDialog.dialog.title }) }),
6436
+ /* @__PURE__ */ jsx66(DialogRoot.Body, { children: activeDialog.details !== null ? activeDialog.dialog.renderDetails(activeDialog.details) : null })
6452
6437
  ]
6453
6438
  }
6454
6439
  )
@@ -6471,7 +6456,7 @@ function renderCell(column, row) {
6471
6456
  const value = String(raw);
6472
6457
  const variant = column.variantMap[value] ?? "default";
6473
6458
  const display = ((_a = column.labelMap) == null ? void 0 : _a[value]) ?? value;
6474
- return /* @__PURE__ */ jsx65(Badge, { variant, children: display });
6459
+ return /* @__PURE__ */ jsx66(Badge, { variant, children: display });
6475
6460
  }
6476
6461
  if (column.type === "date") {
6477
6462
  return formatDate(raw, column.format);
@@ -6485,7 +6470,7 @@ function renderCell(column, row) {
6485
6470
  // src/patterns/NotificationCenter/NotificationCenter.tsx
6486
6471
  import { forwardRef as forwardRef44, useState as useState20 } from "react";
6487
6472
  import { Bell } from "@phosphor-icons/react";
6488
- import { jsx as jsx66, jsxs as jsxs45 } from "react/jsx-runtime";
6473
+ import { jsx as jsx67, jsxs as jsxs45 } from "react/jsx-runtime";
6489
6474
  var severityDotClass = {
6490
6475
  info: "bg-v2-info-500",
6491
6476
  success: "bg-v2-success-500",
@@ -6522,7 +6507,7 @@ var NotificationCenter = forwardRef44(
6522
6507
  const relativeTimeFn = relativeTime ?? defaultRelativeTime;
6523
6508
  const filteredNotifs = filter === "unread" ? notifications.filter((n) => !n.read) : notifications;
6524
6509
  return /* @__PURE__ */ jsxs45(Popover, { children: [
6525
- /* @__PURE__ */ jsx66(Popover.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs45(
6510
+ /* @__PURE__ */ jsx67(Popover.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs45(
6526
6511
  "button",
6527
6512
  {
6528
6513
  ref,
@@ -6530,15 +6515,15 @@ var NotificationCenter = forwardRef44(
6530
6515
  "aria-label": `${triggerAriaLabel}${unreadCount > 0 ? ` (${unreadCount} n\xE3o lidas)` : ""}`,
6531
6516
  className: "relative inline-flex size-9 items-center justify-center rounded-v2-pill border border-v2-border-default bg-v2-panel text-v2-fg-default transition-colors hover:bg-v2-bg-subtle",
6532
6517
  children: [
6533
- /* @__PURE__ */ jsx66(Bell, { size: 18, "aria-hidden": "true" }),
6534
- unreadCount > 0 && /* @__PURE__ */ jsx66("span", { className: "absolute -right-0.5 -top-0.5 inline-flex min-w-4 items-center justify-center rounded-v2-pill bg-v2-danger-500 px-1 text-v2-xs font-bold text-v2-action-on-primary", children: unreadCount > 99 ? "99+" : unreadCount })
6518
+ /* @__PURE__ */ jsx67(Bell, { size: 18, "aria-hidden": "true" }),
6519
+ unreadCount > 0 && /* @__PURE__ */ jsx67("span", { className: "absolute -right-0.5 -top-0.5 inline-flex min-w-4 items-center justify-center rounded-v2-pill bg-v2-danger-500 px-1 text-v2-xs font-bold text-v2-action-on-primary", children: unreadCount > 99 ? "99+" : unreadCount })
6535
6520
  ]
6536
6521
  }
6537
6522
  ) }),
6538
- /* @__PURE__ */ jsx66(Popover.Content, { size: "auto", align: "end", className: "p-0", children: /* @__PURE__ */ jsxs45("div", { className: "flex w-[min(360px,calc(100vw-2rem))] flex-col", children: [
6523
+ /* @__PURE__ */ jsx67(Popover.Content, { size: "auto", align: "end", className: "p-0", children: /* @__PURE__ */ jsxs45("div", { className: "flex w-[min(360px,calc(100vw-2rem))] flex-col", children: [
6539
6524
  /* @__PURE__ */ jsxs45("div", { className: "flex items-center justify-between border-b border-v2-border-default px-4 py-3", children: [
6540
- /* @__PURE__ */ jsx66(Heading, { level: 3, size: "sm", children: "Notifica\xE7\xF5es" }),
6541
- unreadCount > 0 && onMarkAllRead && /* @__PURE__ */ jsx66(Button, { variant: "secondary", size: "sm", onClick: onMarkAllRead, children: "Marcar todas como lidas" })
6525
+ /* @__PURE__ */ jsx67(Heading, { level: 3, size: "sm", children: "Notifica\xE7\xF5es" }),
6526
+ unreadCount > 0 && onMarkAllRead && /* @__PURE__ */ jsx67(Button, { variant: "secondary", size: "sm", onClick: onMarkAllRead, children: "Marcar todas como lidas" })
6542
6527
  ] }),
6543
6528
  /* @__PURE__ */ jsxs45(
6544
6529
  "div",
@@ -6585,13 +6570,13 @@ var NotificationCenter = forwardRef44(
6585
6570
  ]
6586
6571
  }
6587
6572
  ),
6588
- /* @__PURE__ */ jsx66(
6573
+ /* @__PURE__ */ jsx67(
6589
6574
  "ul",
6590
6575
  {
6591
6576
  role: "status",
6592
6577
  "aria-live": "polite",
6593
6578
  className: "max-h-[400px] overflow-y-auto",
6594
- children: filteredNotifs.length === 0 ? /* @__PURE__ */ jsx66("li", { className: "px-4 py-6 text-center", children: /* @__PURE__ */ jsx66(Text, { size: "sm", color: "muted", children: emptyMessage }) }) : filteredNotifs.map((n) => /* @__PURE__ */ jsx66("li", { children: /* @__PURE__ */ jsxs45(
6579
+ children: filteredNotifs.length === 0 ? /* @__PURE__ */ jsx67("li", { className: "px-4 py-6 text-center", children: /* @__PURE__ */ jsx67(Text, { size: "sm", color: "muted", children: emptyMessage }) }) : filteredNotifs.map((n) => /* @__PURE__ */ jsx67("li", { children: /* @__PURE__ */ jsxs45(
6595
6580
  "button",
6596
6581
  {
6597
6582
  type: "button",
@@ -6601,7 +6586,7 @@ var NotificationCenter = forwardRef44(
6601
6586
  !n.read && "bg-v2-brand-bg-soft/30"
6602
6587
  ),
6603
6588
  children: [
6604
- /* @__PURE__ */ jsx66(
6589
+ /* @__PURE__ */ jsx67(
6605
6590
  "span",
6606
6591
  {
6607
6592
  "aria-hidden": "true",
@@ -6612,11 +6597,11 @@ var NotificationCenter = forwardRef44(
6612
6597
  }
6613
6598
  ),
6614
6599
  /* @__PURE__ */ jsxs45("div", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
6615
- /* @__PURE__ */ jsx66(Text, { size: "sm", weight: "semibold", children: n.title }),
6616
- n.description && /* @__PURE__ */ jsx66(Text, { size: "xs", color: "muted", children: n.description }),
6617
- /* @__PURE__ */ jsx66(Text, { size: "xs", color: "subtle", children: relativeTimeFn(n.timestamp) })
6600
+ /* @__PURE__ */ jsx67(Text, { size: "sm", weight: "semibold", children: n.title }),
6601
+ n.description && /* @__PURE__ */ jsx67(Text, { size: "xs", color: "muted", children: n.description }),
6602
+ /* @__PURE__ */ jsx67(Text, { size: "xs", color: "subtle", children: relativeTimeFn(n.timestamp) })
6618
6603
  ] }),
6619
- !n.read && /* @__PURE__ */ jsx66(
6604
+ !n.read && /* @__PURE__ */ jsx67(
6620
6605
  "span",
6621
6606
  {
6622
6607
  "aria-label": "N\xE3o lida",
@@ -6637,7 +6622,7 @@ NotificationCenter.displayName = "NotificationCenter";
6637
6622
  // src/patterns/NavigatorTile/NavigatorTile.tsx
6638
6623
  import { forwardRef as forwardRef45 } from "react";
6639
6624
  import { CaretRight as CaretRight3 } from "@phosphor-icons/react";
6640
- import { Fragment as Fragment10, jsx as jsx67, jsxs as jsxs46 } from "react/jsx-runtime";
6625
+ import { Fragment as Fragment10, jsx as jsx68, jsxs as jsxs46 } from "react/jsx-runtime";
6641
6626
  var NavigatorTile = forwardRef45(
6642
6627
  ({
6643
6628
  icon,
@@ -6650,7 +6635,7 @@ var NavigatorTile = forwardRef45(
6650
6635
  className,
6651
6636
  children,
6652
6637
  ...props
6653
- }, ref) => /* @__PURE__ */ jsx67(
6638
+ }, ref) => /* @__PURE__ */ jsx68(
6654
6639
  Card,
6655
6640
  {
6656
6641
  ref,
@@ -6666,14 +6651,14 @@ var NavigatorTile = forwardRef45(
6666
6651
  ...props,
6667
6652
  children: asChild ? children : /* @__PURE__ */ jsxs46(Fragment10, { children: [
6668
6653
  /* @__PURE__ */ jsxs46("div", { className: "flex items-start justify-between gap-3", children: [
6669
- icon && /* @__PURE__ */ jsx67("span", { className: "inline-flex size-10 shrink-0 items-center justify-center rounded-v2-pill bg-v2-brand-bg-soft text-v2-brand-text-dark", children: icon }),
6670
- badge && /* @__PURE__ */ jsx67("span", { className: "shrink-0", children: badge })
6654
+ icon && /* @__PURE__ */ jsx68("span", { className: "inline-flex size-10 shrink-0 items-center justify-center rounded-v2-pill bg-v2-brand-bg-soft text-v2-brand-text-dark", children: icon }),
6655
+ badge && /* @__PURE__ */ jsx68("span", { className: "shrink-0", children: badge })
6671
6656
  ] }),
6672
6657
  /* @__PURE__ */ jsxs46("div", { className: "flex flex-col gap-1", children: [
6673
- /* @__PURE__ */ jsx67(Heading, { level: 3, size: "xs", children: title }),
6674
- description && /* @__PURE__ */ jsx67(Text, { size: "sm", color: "muted", children: description })
6658
+ /* @__PURE__ */ jsx68(Heading, { level: 3, size: "xs", children: title }),
6659
+ description && /* @__PURE__ */ jsx68(Text, { size: "sm", color: "muted", children: description })
6675
6660
  ] }),
6676
- showChevron && /* @__PURE__ */ jsx67("div", { className: "flex justify-end", children: /* @__PURE__ */ jsx67(
6661
+ showChevron && /* @__PURE__ */ jsx68("div", { className: "flex justify-end", children: /* @__PURE__ */ jsx68(
6677
6662
  CaretRight3,
6678
6663
  {
6679
6664
  size: 16,
@@ -6696,7 +6681,7 @@ var columnClass = {
6696
6681
  var NavigatorTileGrid = forwardRef45(
6697
6682
  ({ columns = 3, emptyState, isEmpty = false, className, children, ...props }, ref) => {
6698
6683
  if (isEmpty && emptyState) {
6699
- return /* @__PURE__ */ jsx67(
6684
+ return /* @__PURE__ */ jsx68(
6700
6685
  "div",
6701
6686
  {
6702
6687
  ref,
@@ -6709,7 +6694,7 @@ var NavigatorTileGrid = forwardRef45(
6709
6694
  }
6710
6695
  );
6711
6696
  }
6712
- return /* @__PURE__ */ jsx67(
6697
+ return /* @__PURE__ */ jsx68(
6713
6698
  "div",
6714
6699
  {
6715
6700
  ref,
@@ -6724,7 +6709,7 @@ NavigatorTileGrid.displayName = "NavigatorTileGrid";
6724
6709
 
6725
6710
  // src/patterns/PublicPageLayout/PublicPageLayout.tsx
6726
6711
  import { forwardRef as forwardRef46 } from "react";
6727
- import { jsx as jsx68, jsxs as jsxs47 } from "react/jsx-runtime";
6712
+ import { jsx as jsx69, jsxs as jsxs47 } from "react/jsx-runtime";
6728
6713
  var maxWidthClass = {
6729
6714
  sm: "max-w-md",
6730
6715
  md: "max-w-2xl",
@@ -6753,7 +6738,7 @@ var PublicPageLayout = forwardRef46(
6753
6738
  ),
6754
6739
  ...props,
6755
6740
  children: [
6756
- /* @__PURE__ */ jsx68(
6741
+ /* @__PURE__ */ jsx69(
6757
6742
  "a",
6758
6743
  {
6759
6744
  href: `#${mainId}`,
@@ -6761,21 +6746,21 @@ var PublicPageLayout = forwardRef46(
6761
6746
  children: skipToMainLabel
6762
6747
  }
6763
6748
  ),
6764
- header && /* @__PURE__ */ jsx68("header", { className: "border-b border-v2-border-default bg-v2-panel", children: /* @__PURE__ */ jsx68(
6749
+ header && /* @__PURE__ */ jsx69("header", { className: "border-b border-v2-border-default bg-v2-panel", children: /* @__PURE__ */ jsx69(
6765
6750
  "div",
6766
6751
  {
6767
6752
  className: cn("mx-auto w-full px-6 py-4", maxWidthClass[maxWidth]),
6768
6753
  children: header
6769
6754
  }
6770
6755
  ) }),
6771
- /* @__PURE__ */ jsx68("main", { id: mainId, className: "flex-1", children: /* @__PURE__ */ jsx68(
6756
+ /* @__PURE__ */ jsx69("main", { id: mainId, className: "flex-1", children: /* @__PURE__ */ jsx69(
6772
6757
  "div",
6773
6758
  {
6774
6759
  className: cn("mx-auto w-full px-6 py-8", maxWidthClass[maxWidth]),
6775
6760
  children
6776
6761
  }
6777
6762
  ) }),
6778
- footer && /* @__PURE__ */ jsx68("footer", { className: "border-t border-v2-border-default bg-v2-panel", children: /* @__PURE__ */ jsx68(
6763
+ footer && /* @__PURE__ */ jsx69("footer", { className: "border-t border-v2-border-default bg-v2-panel", children: /* @__PURE__ */ jsx69(
6779
6764
  "div",
6780
6765
  {
6781
6766
  className: cn("mx-auto w-full px-6 py-4", maxWidthClass[maxWidth]),
@@ -6791,30 +6776,30 @@ PublicPageLayout.displayName = "PublicPageLayout";
6791
6776
  // src/patterns/ErrorPageLayout/ErrorPageLayout.tsx
6792
6777
  import { forwardRef as forwardRef47 } from "react";
6793
6778
  import { ArrowLeft } from "@phosphor-icons/react";
6794
- import { jsx as jsx69, jsxs as jsxs48 } from "react/jsx-runtime";
6779
+ import { jsx as jsx70, jsxs as jsxs48 } from "react/jsx-runtime";
6795
6780
  function isHrefAction(action) {
6796
6781
  return Boolean(action && "href" in action);
6797
6782
  }
6798
6783
  var ErrorPageLayout = forwardRef47(
6799
- ({ code, title, description, primaryAction, illustration, ...layoutProps }, ref) => /* @__PURE__ */ jsx69(PublicPageLayout, { ref, ...layoutProps, children: /* @__PURE__ */ jsxs48("div", { className: "flex flex-col items-center justify-center gap-6 py-12 text-center", children: [
6800
- code && /* @__PURE__ */ jsx69("div", { className: "text-v2-6xl font-bold leading-none text-v2-action-primary", children: code }),
6784
+ ({ code, title, description, primaryAction, illustration, ...layoutProps }, ref) => /* @__PURE__ */ jsx70(PublicPageLayout, { ref, ...layoutProps, children: /* @__PURE__ */ jsxs48("div", { className: "flex flex-col items-center justify-center gap-6 py-12 text-center", children: [
6785
+ code && /* @__PURE__ */ jsx70("div", { className: "text-v2-6xl font-bold leading-none text-v2-action-primary", children: code }),
6801
6786
  illustration,
6802
6787
  /* @__PURE__ */ jsxs48("div", { className: "flex flex-col gap-2", children: [
6803
- /* @__PURE__ */ jsx69(Heading, { level: 1, size: "xl", children: title }),
6804
- description && /* @__PURE__ */ jsx69(Text, { size: "base", color: "muted", className: "max-w-md", children: description })
6788
+ /* @__PURE__ */ jsx70(Heading, { level: 1, size: "xl", children: title }),
6789
+ description && /* @__PURE__ */ jsx70(Text, { size: "base", color: "muted", className: "max-w-md", children: description })
6805
6790
  ] }),
6806
- primaryAction && (isHrefAction(primaryAction) ? /* @__PURE__ */ jsx69(
6791
+ primaryAction && (isHrefAction(primaryAction) ? /* @__PURE__ */ jsx70(
6807
6792
  Button,
6808
6793
  {
6809
6794
  asChild: true,
6810
- leftIcon: /* @__PURE__ */ jsx69(ArrowLeft, { size: 16, weight: "bold", "aria-hidden": "true" }),
6811
- children: /* @__PURE__ */ jsx69("a", { href: primaryAction.href, children: primaryAction.label })
6795
+ leftIcon: /* @__PURE__ */ jsx70(ArrowLeft, { size: 16, weight: "bold", "aria-hidden": "true" }),
6796
+ children: /* @__PURE__ */ jsx70("a", { href: primaryAction.href, children: primaryAction.label })
6812
6797
  }
6813
- ) : /* @__PURE__ */ jsx69(
6798
+ ) : /* @__PURE__ */ jsx70(
6814
6799
  Button,
6815
6800
  {
6816
6801
  onClick: primaryAction.onClick,
6817
- leftIcon: /* @__PURE__ */ jsx69(ArrowLeft, { size: 16, weight: "bold", "aria-hidden": "true" }),
6802
+ leftIcon: /* @__PURE__ */ jsx70(ArrowLeft, { size: 16, weight: "bold", "aria-hidden": "true" }),
6818
6803
  children: primaryAction.label
6819
6804
  }
6820
6805
  ))
@@ -6824,7 +6809,7 @@ ErrorPageLayout.displayName = "ErrorPageLayout";
6824
6809
 
6825
6810
  // src/patterns/TutorialCard/TutorialCard.tsx
6826
6811
  import { forwardRef as forwardRef48 } from "react";
6827
- import { Fragment as Fragment11, jsx as jsx70, jsxs as jsxs49 } from "react/jsx-runtime";
6812
+ import { Fragment as Fragment11, jsx as jsx71, jsxs as jsxs49 } from "react/jsx-runtime";
6828
6813
  var TutorialCard = forwardRef48(
6829
6814
  ({
6830
6815
  title,
@@ -6836,7 +6821,7 @@ var TutorialCard = forwardRef48(
6836
6821
  className,
6837
6822
  children,
6838
6823
  ...props
6839
- }, ref) => /* @__PURE__ */ jsx70(
6824
+ }, ref) => /* @__PURE__ */ jsx71(
6840
6825
  Card,
6841
6826
  {
6842
6827
  ref,
@@ -6848,12 +6833,12 @@ var TutorialCard = forwardRef48(
6848
6833
  children: asChild ? children : /* @__PURE__ */ jsxs49(Fragment11, { children: [
6849
6834
  media && /* @__PURE__ */ jsxs49("div", { className: "relative aspect-video w-full overflow-hidden bg-v2-bg-subtle", children: [
6850
6835
  media,
6851
- category && /* @__PURE__ */ jsx70("div", { className: "absolute left-3 top-3", children: /* @__PURE__ */ jsx70(Badge, { variant: "default", size: "sm", children: category }) })
6836
+ category && /* @__PURE__ */ jsx71("div", { className: "absolute left-3 top-3", children: /* @__PURE__ */ jsx71(Badge, { variant: "default", size: "sm", children: category }) })
6852
6837
  ] }),
6853
6838
  /* @__PURE__ */ jsxs49("div", { className: "flex flex-1 flex-col gap-2 p-4", children: [
6854
- /* @__PURE__ */ jsx70(Heading, { level: 3, size: "sm", children: title }),
6855
- description && /* @__PURE__ */ jsx70(Text, { size: "sm", color: "muted", children: description }),
6856
- duration && /* @__PURE__ */ jsx70("div", { className: "mt-auto pt-2", children: /* @__PURE__ */ jsx70(Badge, { variant: "info", size: "sm", children: duration }) })
6839
+ /* @__PURE__ */ jsx71(Heading, { level: 3, size: "sm", children: title }),
6840
+ description && /* @__PURE__ */ jsx71(Text, { size: "sm", color: "muted", children: description }),
6841
+ duration && /* @__PURE__ */ jsx71("div", { className: "mt-auto pt-2", children: /* @__PURE__ */ jsx71(Badge, { variant: "info", size: "sm", children: duration }) })
6857
6842
  ] })
6858
6843
  ] })
6859
6844
  }
@@ -6863,7 +6848,7 @@ TutorialCard.displayName = "TutorialCard";
6863
6848
 
6864
6849
  // src/patterns/KpiCard/KpiCard.tsx
6865
6850
  import { forwardRef as forwardRef49 } from "react";
6866
- import { jsx as jsx71, jsxs as jsxs50 } from "react/jsx-runtime";
6851
+ import { jsx as jsx72, jsxs as jsxs50 } from "react/jsx-runtime";
6867
6852
  var variantAccent = {
6868
6853
  neutral: "",
6869
6854
  success: "border-l-4 border-l-v2-success-500",
@@ -6882,11 +6867,11 @@ var KpiCard = forwardRef49(
6882
6867
  ...props,
6883
6868
  children: [
6884
6869
  /* @__PURE__ */ jsxs50("div", { className: "flex items-start justify-between gap-2", children: [
6885
- /* @__PURE__ */ jsx71(Heading, { level: 2, size: "sm", children: label }),
6886
- icon && /* @__PURE__ */ jsx71("span", { "aria-hidden": "true", children: icon })
6870
+ /* @__PURE__ */ jsx72(Heading, { level: 2, size: "sm", children: label }),
6871
+ icon && /* @__PURE__ */ jsx72("span", { "aria-hidden": "true", children: icon })
6887
6872
  ] }),
6888
- /* @__PURE__ */ jsx71(Text, { size: "lg", weight: "semibold", className: "mt-2", children: value }),
6889
- sublabel && /* @__PURE__ */ jsx71(Text, { size: "sm", color: "muted", children: sublabel })
6873
+ /* @__PURE__ */ jsx72(Text, { size: "lg", weight: "semibold", className: "mt-2", children: value }),
6874
+ sublabel && /* @__PURE__ */ jsx72(Text, { size: "sm", color: "muted", children: sublabel })
6890
6875
  ]
6891
6876
  }
6892
6877
  )
@@ -6897,7 +6882,7 @@ KpiCard.displayName = "KpiCard";
6897
6882
  import { useEffect as useEffect12, useRef as useRef10, useState as useState21 } from "react";
6898
6883
  import { createPortal } from "react-dom";
6899
6884
  import { MagnifyingGlass as MagnifyingGlass3 } from "@phosphor-icons/react";
6900
- import { Fragment as Fragment12, jsx as jsx72, jsxs as jsxs51 } from "react/jsx-runtime";
6885
+ import { Fragment as Fragment12, jsx as jsx73, jsxs as jsxs51 } from "react/jsx-runtime";
6901
6886
  function CommandPalette({
6902
6887
  open,
6903
6888
  onOpenChange,
@@ -6978,7 +6963,7 @@ function CommandPalette({
6978
6963
  "aria-label": ariaLabel,
6979
6964
  className: "fixed inset-0 z-50 flex items-start justify-center p-4 pt-[10vh]",
6980
6965
  children: [
6981
- /* @__PURE__ */ jsx72(
6966
+ /* @__PURE__ */ jsx73(
6982
6967
  "button",
6983
6968
  {
6984
6969
  type: "button",
@@ -6989,7 +6974,7 @@ function CommandPalette({
6989
6974
  ),
6990
6975
  /* @__PURE__ */ jsxs51("div", { className: "relative z-10 flex w-full max-w-2xl flex-col overflow-hidden rounded-v2-lg border border-v2-border-default bg-v2-panel shadow-xl", children: [
6991
6976
  /* @__PURE__ */ jsxs51("div", { className: "flex items-center gap-3 border-b border-v2-border-default px-4 py-3", children: [
6992
- /* @__PURE__ */ jsx72(
6977
+ /* @__PURE__ */ jsx73(
6993
6978
  MagnifyingGlass3,
6994
6979
  {
6995
6980
  size: 18,
@@ -6997,7 +6982,7 @@ function CommandPalette({
6997
6982
  className: "text-v2-fg-muted"
6998
6983
  }
6999
6984
  ),
7000
- /* @__PURE__ */ jsx72(
6985
+ /* @__PURE__ */ jsx73(
7001
6986
  "input",
7002
6987
  {
7003
6988
  ref: inputRef,
@@ -7017,24 +7002,24 @@ function CommandPalette({
7017
7002
  className: "flex-1 bg-transparent text-v2-base font-medium text-v2-fg-default placeholder:font-normal placeholder:text-v2-fg-subtle focus:outline-none"
7018
7003
  }
7019
7004
  ),
7020
- /* @__PURE__ */ jsx72("kbd", { className: "hidden rounded-v2-sm border border-v2-border-default px-1.5 py-0.5 text-v2-xs font-semibold text-v2-fg-muted md:inline-block", children: "ESC" })
7005
+ /* @__PURE__ */ jsx73("kbd", { className: "hidden rounded-v2-sm border border-v2-border-default px-1.5 py-0.5 text-v2-xs font-semibold text-v2-fg-muted md:inline-block", children: "ESC" })
7021
7006
  ] }),
7022
- /* @__PURE__ */ jsx72(
7007
+ /* @__PURE__ */ jsx73(
7023
7008
  "div",
7024
7009
  {
7025
7010
  id: "command-palette-listbox",
7026
7011
  role: "listbox",
7027
7012
  className: "max-h-[60vh] overflow-y-auto",
7028
- children: filteredGroups.length === 0 ? /* @__PURE__ */ jsx72("p", { className: "px-4 py-3 text-v2-sm text-v2-fg-muted", children: emptyMessage }) : filteredGroups.map((group) => /* @__PURE__ */ jsxs51(
7013
+ children: filteredGroups.length === 0 ? /* @__PURE__ */ jsx73("p", { className: "px-4 py-3 text-v2-sm text-v2-fg-muted", children: emptyMessage }) : filteredGroups.map((group) => /* @__PURE__ */ jsxs51(
7029
7014
  "section",
7030
7015
  {
7031
7016
  "aria-label": group.label,
7032
7017
  className: "border-b border-v2-border-default last:border-b-0",
7033
7018
  children: [
7034
- group.label && /* @__PURE__ */ jsx72("h3", { className: "px-4 pb-1 pt-3 text-v2-xs font-semibold uppercase tracking-wider text-v2-fg-muted", children: group.label }),
7035
- group.loading ? /* @__PURE__ */ jsx72("p", { className: "px-4 py-2 text-v2-xs text-v2-fg-muted", children: "Buscando\u2026" }) : group.items.length === 0 ? /* @__PURE__ */ jsx72("p", { className: "px-4 py-2 text-v2-xs text-v2-fg-muted", children: group.emptyMessage ?? emptyMessage }) : /* @__PURE__ */ jsx72("ul", { children: group.items.map((item) => {
7019
+ group.label && /* @__PURE__ */ jsx73("h3", { className: "px-4 pb-1 pt-3 text-v2-xs font-semibold uppercase tracking-wider text-v2-fg-muted", children: group.label }),
7020
+ group.loading ? /* @__PURE__ */ jsx73("p", { className: "px-4 py-2 text-v2-xs text-v2-fg-muted", children: "Buscando\u2026" }) : group.items.length === 0 ? /* @__PURE__ */ jsx73("p", { className: "px-4 py-2 text-v2-xs text-v2-fg-muted", children: group.emptyMessage ?? emptyMessage }) : /* @__PURE__ */ jsx73("ul", { children: group.items.map((item) => {
7036
7021
  const isHighlighted = highlightedId === item.id;
7037
- return /* @__PURE__ */ jsx72(
7022
+ return /* @__PURE__ */ jsx73(
7038
7023
  "li",
7039
7024
  {
7040
7025
  id: `command-palette-option-${item.id}`,
@@ -7049,8 +7034,8 @@ function CommandPalette({
7049
7034
  ),
7050
7035
  children: renderItem ? renderItem(item, isHighlighted) : /* @__PURE__ */ jsxs51(Fragment12, { children: [
7051
7036
  /* @__PURE__ */ jsxs51("div", { className: "flex min-w-0 flex-1 flex-col", children: [
7052
- /* @__PURE__ */ jsx72("span", { className: "truncate font-medium", children: item.label }),
7053
- item.description && /* @__PURE__ */ jsx72(
7037
+ /* @__PURE__ */ jsx73("span", { className: "truncate font-medium", children: item.label }),
7038
+ item.description && /* @__PURE__ */ jsx73(
7054
7039
  "span",
7055
7040
  {
7056
7041
  className: cn(
@@ -7061,7 +7046,7 @@ function CommandPalette({
7061
7046
  }
7062
7047
  )
7063
7048
  ] }),
7064
- item.meta && /* @__PURE__ */ jsx72(
7049
+ item.meta && /* @__PURE__ */ jsx73(
7065
7050
  "span",
7066
7051
  {
7067
7052
  className: cn(
@@ -7071,7 +7056,7 @@ function CommandPalette({
7071
7056
  children: item.meta
7072
7057
  }
7073
7058
  ),
7074
- item.shortcut && /* @__PURE__ */ jsx72("kbd", { className: "ml-2 inline-flex rounded-v2-sm border border-v2-border-default px-1.5 py-0.5 text-v2-xs font-semibold text-v2-fg-muted", children: item.shortcut })
7059
+ item.shortcut && /* @__PURE__ */ jsx73("kbd", { className: "ml-2 inline-flex rounded-v2-sm border border-v2-border-default px-1.5 py-0.5 text-v2-xs font-semibold text-v2-fg-muted", children: item.shortcut })
7075
7060
  ] })
7076
7061
  },
7077
7062
  item.id
@@ -7093,7 +7078,7 @@ function CommandPalette({
7093
7078
 
7094
7079
  // src/patterns/ChartTimeSeries/ChartTimeSeries.tsx
7095
7080
  import { forwardRef as forwardRef50, useId as useId16, useState as useState22 } from "react";
7096
- import { Fragment as Fragment13, jsx as jsx73, jsxs as jsxs52 } from "react/jsx-runtime";
7081
+ import { Fragment as Fragment13, jsx as jsx74, jsxs as jsxs52 } from "react/jsx-runtime";
7097
7082
  var DEFAULT_RANGES = ["3m", "6m", "12m", "YTD"];
7098
7083
  var DEFAULT_EMPTY_MESSAGE = "Sem dados no per\xEDodo.";
7099
7084
  function buildChartPaths(data) {
@@ -7171,12 +7156,12 @@ var ChartTimeSeries = forwardRef50(
7171
7156
  children: [
7172
7157
  /* @__PURE__ */ jsxs52("div", { className: "flex items-start justify-between gap-3", children: [
7173
7158
  /* @__PURE__ */ jsxs52("div", { className: "flex flex-col", children: [
7174
- /* @__PURE__ */ jsx73("h3", { className: "text-v2-sm font-bold text-v2-fg-default", children: title }),
7175
- subtitle && /* @__PURE__ */ jsx73("span", { className: "text-v2-xs text-v2-fg-muted", children: subtitle })
7159
+ /* @__PURE__ */ jsx74("h3", { className: "text-v2-sm font-bold text-v2-fg-default", children: title }),
7160
+ subtitle && /* @__PURE__ */ jsx74("span", { className: "text-v2-xs text-v2-fg-muted", children: subtitle })
7176
7161
  ] }),
7177
- /* @__PURE__ */ jsx73("div", { role: "tablist", className: "flex items-center gap-1", children: ranges.map((r) => {
7162
+ /* @__PURE__ */ jsx74("div", { role: "tablist", className: "flex items-center gap-1", children: ranges.map((r) => {
7178
7163
  const isActive2 = r === activeRange;
7179
- return /* @__PURE__ */ jsx73(
7164
+ return /* @__PURE__ */ jsx74(
7180
7165
  "button",
7181
7166
  {
7182
7167
  type: "button",
@@ -7193,7 +7178,7 @@ var ChartTimeSeries = forwardRef50(
7193
7178
  );
7194
7179
  }) })
7195
7180
  ] }),
7196
- !hasData ? /* @__PURE__ */ jsx73("div", { className: "flex h-[220px] items-center justify-center text-v2-sm text-v2-fg-muted", children: emptyMessage }) : /* @__PURE__ */ jsxs52(
7181
+ !hasData ? /* @__PURE__ */ jsx74("div", { className: "flex h-[220px] items-center justify-center text-v2-sm text-v2-fg-muted", children: emptyMessage }) : /* @__PURE__ */ jsxs52(
7197
7182
  "svg",
7198
7183
  {
7199
7184
  viewBox: "0 0 720 200",
@@ -7202,11 +7187,11 @@ var ChartTimeSeries = forwardRef50(
7202
7187
  "aria-label": typeof title === "string" ? title : "Gr\xE1fico de s\xE9rie temporal",
7203
7188
  role: "img",
7204
7189
  children: [
7205
- /* @__PURE__ */ jsx73("defs", { children: /* @__PURE__ */ jsxs52("linearGradient", { id: gradientId, x1: "0", y1: "0", x2: "0", y2: "1", children: [
7206
- /* @__PURE__ */ jsx73("stop", { offset: "0%", stopColor: "currentColor", stopOpacity: "0.3" }),
7207
- /* @__PURE__ */ jsx73("stop", { offset: "100%", stopColor: "currentColor", stopOpacity: "0" })
7190
+ /* @__PURE__ */ jsx74("defs", { children: /* @__PURE__ */ jsxs52("linearGradient", { id: gradientId, x1: "0", y1: "0", x2: "0", y2: "1", children: [
7191
+ /* @__PURE__ */ jsx74("stop", { offset: "0%", stopColor: "currentColor", stopOpacity: "0.3" }),
7192
+ /* @__PURE__ */ jsx74("stop", { offset: "100%", stopColor: "currentColor", stopOpacity: "0" })
7208
7193
  ] }) }),
7209
- [40, 90, 140].map((y) => /* @__PURE__ */ jsx73(
7194
+ [40, 90, 140].map((y) => /* @__PURE__ */ jsx74(
7210
7195
  "line",
7211
7196
  {
7212
7197
  x1: "0",
@@ -7220,7 +7205,7 @@ var ChartTimeSeries = forwardRef50(
7220
7205
  y
7221
7206
  )),
7222
7207
  paths && /* @__PURE__ */ jsxs52(Fragment13, { children: [
7223
- /* @__PURE__ */ jsx73(
7208
+ /* @__PURE__ */ jsx74(
7224
7209
  "path",
7225
7210
  {
7226
7211
  d: paths.area,
@@ -7228,7 +7213,7 @@ var ChartTimeSeries = forwardRef50(
7228
7213
  stroke: "none"
7229
7214
  }
7230
7215
  ),
7231
- /* @__PURE__ */ jsx73(
7216
+ /* @__PURE__ */ jsx74(
7232
7217
  "path",
7233
7218
  {
7234
7219
  d: paths.line,
@@ -7239,7 +7224,7 @@ var ChartTimeSeries = forwardRef50(
7239
7224
  strokeLinejoin: "round"
7240
7225
  }
7241
7226
  ),
7242
- /* @__PURE__ */ jsx73(
7227
+ /* @__PURE__ */ jsx74(
7243
7228
  "circle",
7244
7229
  {
7245
7230
  cx: paths.lastX,
@@ -7251,7 +7236,7 @@ var ChartTimeSeries = forwardRef50(
7251
7236
  }
7252
7237
  )
7253
7238
  ] }),
7254
- /* @__PURE__ */ jsx73("g", { style: { fontSize: 10 }, fill: "currentColor", opacity: "0.6", children: axisLabels.map((tick) => /* @__PURE__ */ jsx73(
7239
+ /* @__PURE__ */ jsx74("g", { style: { fontSize: 10 }, fill: "currentColor", opacity: "0.6", children: axisLabels.map((tick) => /* @__PURE__ */ jsx74(
7255
7240
  "text",
7256
7241
  {
7257
7242
  x: tick.x,
@@ -7273,7 +7258,7 @@ var ChartTimeSeries = forwardRef50(
7273
7258
  // src/patterns/DonutChart/DonutChart.tsx
7274
7259
  import { forwardRef as forwardRef51, useState as useState23 } from "react";
7275
7260
  import { Cell, Pie, PieChart, ResponsiveContainer, Tooltip as Tooltip2 } from "recharts";
7276
- import { jsx as jsx74, jsxs as jsxs53 } from "react/jsx-runtime";
7261
+ import { jsx as jsx75, jsxs as jsxs53 } from "react/jsx-runtime";
7277
7262
  var DEFAULT_COLORS = [
7278
7263
  "var(--v2-chart-cat-1)",
7279
7264
  "var(--v2-chart-cat-2)",
@@ -7322,7 +7307,7 @@ function ChartTooltip({
7322
7307
  if (!active || !slice) return null;
7323
7308
  return /* @__PURE__ */ jsxs53("div", { className: "rounded-v2-md border border-v2-border-default bg-v2-panel px-3 py-2 text-v2-xs shadow-lg", children: [
7324
7309
  /* @__PURE__ */ jsxs53("div", { className: "flex items-center gap-2", children: [
7325
- /* @__PURE__ */ jsx74(
7310
+ /* @__PURE__ */ jsx75(
7326
7311
  "span",
7327
7312
  {
7328
7313
  className: "size-2 rounded-full",
@@ -7330,10 +7315,10 @@ function ChartTooltip({
7330
7315
  "aria-hidden": "true"
7331
7316
  }
7332
7317
  ),
7333
- /* @__PURE__ */ jsx74("p", { className: "font-semibold text-v2-fg-default", children: slice.label })
7318
+ /* @__PURE__ */ jsx75("p", { className: "font-semibold text-v2-fg-default", children: slice.label })
7334
7319
  ] }),
7335
- /* @__PURE__ */ jsx74("p", { className: "mt-1 font-semibold text-v2-fg-default", children: valueFormatter(slice.value) }),
7336
- typeof slice.secondaryValue === "number" && /* @__PURE__ */ jsx74("p", { className: "text-v2-fg-muted", children: secondaryFormatter(slice.secondaryValue) })
7320
+ /* @__PURE__ */ jsx75("p", { className: "mt-1 font-semibold text-v2-fg-default", children: valueFormatter(slice.value) }),
7321
+ typeof slice.secondaryValue === "number" && /* @__PURE__ */ jsx75("p", { className: "text-v2-fg-muted", children: secondaryFormatter(slice.secondaryValue) })
7337
7322
  ] });
7338
7323
  }
7339
7324
  var DonutChart = forwardRef51(
@@ -7363,8 +7348,8 @@ var DonutChart = forwardRef51(
7363
7348
  className: cn("flex flex-col gap-3.5", className),
7364
7349
  ...props,
7365
7350
  children: [
7366
- /* @__PURE__ */ jsx74("h3", { className: "text-v2-sm font-bold text-v2-fg-default", children: title }),
7367
- isEmpty ? /* @__PURE__ */ jsx74("div", { className: "flex h-[160px] items-center justify-center text-v2-sm text-v2-fg-muted", children: emptyMessage }) : /* @__PURE__ */ jsxs53(
7351
+ /* @__PURE__ */ jsx75("h3", { className: "text-v2-sm font-bold text-v2-fg-default", children: title }),
7352
+ isEmpty ? /* @__PURE__ */ jsx75("div", { className: "flex h-[160px] items-center justify-center text-v2-sm text-v2-fg-muted", children: emptyMessage }) : /* @__PURE__ */ jsxs53(
7368
7353
  "div",
7369
7354
  {
7370
7355
  className: "flex items-center gap-4",
@@ -7372,8 +7357,8 @@ var DonutChart = forwardRef51(
7372
7357
  "aria-label": typeof title === "string" ? title : "Donut chart",
7373
7358
  children: [
7374
7359
  /* @__PURE__ */ jsxs53("div", { className: "relative size-[160px] shrink-0", children: [
7375
- /* @__PURE__ */ jsx74(ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ jsxs53(PieChart, { children: [
7376
- /* @__PURE__ */ jsx74(
7360
+ /* @__PURE__ */ jsx75(ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ jsxs53(PieChart, { children: [
7361
+ /* @__PURE__ */ jsx75(
7377
7362
  Pie,
7378
7363
  {
7379
7364
  data: slices,
@@ -7386,7 +7371,7 @@ var DonutChart = forwardRef51(
7386
7371
  strokeWidth: 2,
7387
7372
  onMouseEnter: (_, idx) => setActiveIdx(idx),
7388
7373
  onMouseLeave: () => setActiveIdx(null),
7389
- children: slices.map((slice, idx) => /* @__PURE__ */ jsx74(
7374
+ children: slices.map((slice, idx) => /* @__PURE__ */ jsx75(
7390
7375
  Cell,
7391
7376
  {
7392
7377
  fill: slice.color,
@@ -7397,12 +7382,12 @@ var DonutChart = forwardRef51(
7397
7382
  ))
7398
7383
  }
7399
7384
  ),
7400
- /* @__PURE__ */ jsx74(
7385
+ /* @__PURE__ */ jsx75(
7401
7386
  Tooltip2,
7402
7387
  {
7403
7388
  allowEscapeViewBox: { x: false, y: true },
7404
7389
  position: { y: -56 },
7405
- content: /* @__PURE__ */ jsx74(
7390
+ content: /* @__PURE__ */ jsx75(
7406
7391
  ChartTooltip,
7407
7392
  {
7408
7393
  valueFormatter,
@@ -7413,11 +7398,11 @@ var DonutChart = forwardRef51(
7413
7398
  )
7414
7399
  ] }) }),
7415
7400
  /* @__PURE__ */ jsxs53("div", { className: "pointer-events-none absolute inset-0 flex flex-col items-center justify-center", children: [
7416
- /* @__PURE__ */ jsx74("span", { className: "text-v2-xl font-extrabold text-v2-fg-default", children: centerValue ?? valueFormatter(total) }),
7417
- /* @__PURE__ */ jsx74("span", { className: "text-v2-xs text-v2-fg-muted", children: centerLabel })
7401
+ /* @__PURE__ */ jsx75("span", { className: "text-v2-xl font-extrabold text-v2-fg-default", children: centerValue ?? valueFormatter(total) }),
7402
+ /* @__PURE__ */ jsx75("span", { className: "text-v2-xs text-v2-fg-muted", children: centerLabel })
7418
7403
  ] })
7419
7404
  ] }),
7420
- /* @__PURE__ */ jsx74("ul", { className: "flex flex-1 flex-col gap-2", children: slices.map((slice, idx) => /* @__PURE__ */ jsxs53(
7405
+ /* @__PURE__ */ jsx75("ul", { className: "flex flex-1 flex-col gap-2", children: slices.map((slice, idx) => /* @__PURE__ */ jsxs53(
7421
7406
  "li",
7422
7407
  {
7423
7408
  onMouseEnter: () => setActiveIdx(idx),
@@ -7427,7 +7412,7 @@ var DonutChart = forwardRef51(
7427
7412
  activeIdx === idx && "bg-v2-bg-subtle"
7428
7413
  ),
7429
7414
  children: [
7430
- /* @__PURE__ */ jsx74(
7415
+ /* @__PURE__ */ jsx75(
7431
7416
  "span",
7432
7417
  {
7433
7418
  "aria-hidden": "true",
@@ -7435,8 +7420,8 @@ var DonutChart = forwardRef51(
7435
7420
  style: { backgroundColor: slice.color }
7436
7421
  }
7437
7422
  ),
7438
- /* @__PURE__ */ jsx74("span", { className: "flex-1 truncate", children: slice.label }),
7439
- /* @__PURE__ */ jsx74("span", { className: "font-bold tabular-nums", children: valueFormatter(slice.value) })
7423
+ /* @__PURE__ */ jsx75("span", { className: "flex-1 truncate", children: slice.label }),
7424
+ /* @__PURE__ */ jsx75("span", { className: "font-bold tabular-nums", children: valueFormatter(slice.value) })
7440
7425
  ]
7441
7426
  },
7442
7427
  slice.label
@@ -7453,16 +7438,16 @@ var DonutChart = forwardRef51(
7453
7438
  // src/patterns/EmptyState/EmptyState.tsx
7454
7439
  import { forwardRef as forwardRef52 } from "react";
7455
7440
  import { MagnifyingGlass as MagnifyingGlass4, Tray, WarningCircle as WarningCircle3 } from "@phosphor-icons/react";
7456
- import { jsx as jsx75, jsxs as jsxs54 } from "react/jsx-runtime";
7441
+ import { jsx as jsx76, jsxs as jsxs54 } from "react/jsx-runtime";
7457
7442
  var variantIconBg = {
7458
7443
  "no-data": "bg-v2-bg-subtle text-v2-fg-muted",
7459
7444
  "no-results": "bg-v2-info-soft text-v2-info-500",
7460
7445
  error: "bg-v2-danger-soft text-v2-danger-500"
7461
7446
  };
7462
7447
  var variantIcon2 = {
7463
- "no-data": /* @__PURE__ */ jsx75(Tray, { size: 28, "aria-hidden": "true" }),
7464
- "no-results": /* @__PURE__ */ jsx75(MagnifyingGlass4, { size: 28, "aria-hidden": "true" }),
7465
- error: /* @__PURE__ */ jsx75(WarningCircle3, { size: 28, "aria-hidden": "true" })
7448
+ "no-data": /* @__PURE__ */ jsx76(Tray, { size: 28, "aria-hidden": "true" }),
7449
+ "no-results": /* @__PURE__ */ jsx76(MagnifyingGlass4, { size: 28, "aria-hidden": "true" }),
7450
+ error: /* @__PURE__ */ jsx76(WarningCircle3, { size: 28, "aria-hidden": "true" })
7466
7451
  };
7467
7452
  var EmptyState = forwardRef52(
7468
7453
  ({
@@ -7486,7 +7471,7 @@ var EmptyState = forwardRef52(
7486
7471
  ),
7487
7472
  ...props,
7488
7473
  children: [
7489
- /* @__PURE__ */ jsx75(
7474
+ /* @__PURE__ */ jsx76(
7490
7475
  "span",
7491
7476
  {
7492
7477
  "aria-hidden": "true",
@@ -7497,9 +7482,9 @@ var EmptyState = forwardRef52(
7497
7482
  children: icon ?? variantIcon2[variant]
7498
7483
  }
7499
7484
  ),
7500
- /* @__PURE__ */ jsx75("h3", { className: "text-v2-base font-semibold text-v2-fg-default", children: title }),
7501
- description && /* @__PURE__ */ jsx75("p", { className: "max-w-md text-v2-sm text-v2-fg-muted", children: description }),
7502
- action && /* @__PURE__ */ jsx75("div", { className: "mt-1 flex items-center gap-2", children: action })
7485
+ /* @__PURE__ */ jsx76("h3", { className: "text-v2-base font-semibold text-v2-fg-default", children: title }),
7486
+ description && /* @__PURE__ */ jsx76("p", { className: "max-w-md text-v2-sm text-v2-fg-muted", children: description }),
7487
+ action && /* @__PURE__ */ jsx76("div", { className: "mt-1 flex items-center gap-2", children: action })
7503
7488
  ]
7504
7489
  }
7505
7490
  );
@@ -7509,7 +7494,7 @@ EmptyState.displayName = "EmptyState";
7509
7494
 
7510
7495
  // src/patterns/WizardShell/WizardShell.tsx
7511
7496
  import { Check as Check6, WarningCircle as WarningCircle4, X as X10 } from "@phosphor-icons/react";
7512
- import { Fragment as Fragment14, jsx as jsx76, jsxs as jsxs55 } from "react/jsx-runtime";
7497
+ import { Fragment as Fragment14, jsx as jsx77, jsxs as jsxs55 } from "react/jsx-runtime";
7513
7498
  var stepIndicatorClass = {
7514
7499
  completed: "bg-v2-success-500 text-v2-action-on-primary border-v2-success-500",
7515
7500
  active: "bg-v2-action-primary text-v2-action-on-primary border-v2-action-primary",
@@ -7523,7 +7508,7 @@ function StepIndicator({
7523
7508
  onStepChange
7524
7509
  }) {
7525
7510
  const inner = /* @__PURE__ */ jsxs55(Fragment14, { children: [
7526
- /* @__PURE__ */ jsx76(
7511
+ /* @__PURE__ */ jsx77(
7527
7512
  "span",
7528
7513
  {
7529
7514
  "data-state": step.state,
@@ -7532,7 +7517,7 @@ function StepIndicator({
7532
7517
  "flex size-8 shrink-0 items-center justify-center rounded-v2-pill border-2 text-v2-sm font-semibold",
7533
7518
  stepIndicatorClass[step.state]
7534
7519
  ),
7535
- children: step.state === "completed" ? /* @__PURE__ */ jsx76(Check6, { size: 16, weight: "bold" }) : step.state === "blocked" ? /* @__PURE__ */ jsx76(X10, { size: 16, weight: "bold" }) : step.state === "error" ? /* @__PURE__ */ jsx76(WarningCircle4, { size: 16, weight: "bold" }) : index + 1
7520
+ children: step.state === "completed" ? /* @__PURE__ */ jsx77(Check6, { size: 16, weight: "bold" }) : step.state === "blocked" ? /* @__PURE__ */ jsx77(X10, { size: 16, weight: "bold" }) : step.state === "error" ? /* @__PURE__ */ jsx77(WarningCircle4, { size: 16, weight: "bold" }) : index + 1
7536
7521
  }
7537
7522
  ),
7538
7523
  /* @__PURE__ */ jsxs55("div", { className: "flex flex-col", children: [
@@ -7552,11 +7537,11 @@ function StepIndicator({
7552
7537
  ]
7553
7538
  }
7554
7539
  ),
7555
- step.description && /* @__PURE__ */ jsx76(Text, { tag: "p", size: "xs", color: "muted", children: step.description })
7540
+ step.description && /* @__PURE__ */ jsx77(Text, { tag: "p", size: "xs", color: "muted", children: step.description })
7556
7541
  ] })
7557
7542
  ] });
7558
7543
  if (onStepChange) {
7559
- return /* @__PURE__ */ jsx76(
7544
+ return /* @__PURE__ */ jsx77(
7560
7545
  "button",
7561
7546
  {
7562
7547
  type: "button",
@@ -7567,7 +7552,7 @@ function StepIndicator({
7567
7552
  }
7568
7553
  );
7569
7554
  }
7570
- return /* @__PURE__ */ jsx76(
7555
+ return /* @__PURE__ */ jsx77(
7571
7556
  "div",
7572
7557
  {
7573
7558
  className: "flex items-center gap-2",
@@ -7596,9 +7581,9 @@ function WizardShell(props) {
7596
7581
  ),
7597
7582
  children: [
7598
7583
  /* @__PURE__ */ jsxs55("div", { className: "border-b border-v2-border-default p-5", children: [
7599
- /* @__PURE__ */ jsx76("h1", { className: "text-v2-lg font-extrabold tracking-tight text-v2-fg-default", children: title }),
7600
- subtitle && /* @__PURE__ */ jsx76(Text, { tag: "p", size: "sm", color: "muted", className: "mt-0.5", children: subtitle }),
7601
- /* @__PURE__ */ jsx76("ol", { className: "mt-4 flex items-start gap-2", "aria-label": "Passos", children: steps.map((step, idx) => /* @__PURE__ */ jsx76("li", { className: "flex-1", children: /* @__PURE__ */ jsx76(
7584
+ /* @__PURE__ */ jsx77("h1", { className: "text-v2-lg font-extrabold tracking-tight text-v2-fg-default", children: title }),
7585
+ subtitle && /* @__PURE__ */ jsx77(Text, { tag: "p", size: "sm", color: "muted", className: "mt-0.5", children: subtitle }),
7586
+ /* @__PURE__ */ jsx77("ol", { className: "mt-4 flex items-start gap-2", "aria-label": "Passos", children: steps.map((step, idx) => /* @__PURE__ */ jsx77("li", { className: "flex-1", children: /* @__PURE__ */ jsx77(
7602
7587
  StepIndicator,
7603
7588
  {
7604
7589
  step,
@@ -7615,12 +7600,12 @@ function WizardShell(props) {
7615
7600
  aside ? "lg:grid-cols-[1fr_320px]" : "grid-cols-1"
7616
7601
  ),
7617
7602
  children: [
7618
- /* @__PURE__ */ jsx76("div", { children }),
7619
- aside && /* @__PURE__ */ jsx76("div", { className: "lg:sticky lg:top-4", children: aside })
7603
+ /* @__PURE__ */ jsx77("div", { children }),
7604
+ aside && /* @__PURE__ */ jsx77("div", { className: "lg:sticky lg:top-4", children: aside })
7620
7605
  ]
7621
7606
  }
7622
7607
  ),
7623
- footer && /* @__PURE__ */ jsx76("div", { className: "border-t border-v2-border-default bg-v2-bg-subtle p-4", children: footer })
7608
+ footer && /* @__PURE__ */ jsx77("div", { className: "border-t border-v2-border-default bg-v2-bg-subtle p-4", children: footer })
7624
7609
  ]
7625
7610
  }
7626
7611
  );
@@ -7633,8 +7618,8 @@ import {
7633
7618
  } from "react";
7634
7619
  import * as AccordionPrimitive from "@radix-ui/react-accordion";
7635
7620
  import { CaretDown as CaretDown8 } from "@phosphor-icons/react";
7636
- import { jsx as jsx77, jsxs as jsxs56 } from "react/jsx-runtime";
7637
- var SingleRoot = forwardRef53(({ className, ...props }, ref) => /* @__PURE__ */ jsx77(
7621
+ import { jsx as jsx78, jsxs as jsxs56 } from "react/jsx-runtime";
7622
+ var SingleRoot = forwardRef53(({ className, ...props }, ref) => /* @__PURE__ */ jsx78(
7638
7623
  AccordionPrimitive.Root,
7639
7624
  {
7640
7625
  ref,
@@ -7643,7 +7628,7 @@ var SingleRoot = forwardRef53(({ className, ...props }, ref) => /* @__PURE__ */
7643
7628
  }
7644
7629
  ));
7645
7630
  SingleRoot.displayName = "DSAccordion.Root";
7646
- var MultipleRoot = forwardRef53(({ className, ...props }, ref) => /* @__PURE__ */ jsx77(
7631
+ var MultipleRoot = forwardRef53(({ className, ...props }, ref) => /* @__PURE__ */ jsx78(
7647
7632
  AccordionPrimitive.Root,
7648
7633
  {
7649
7634
  ref,
@@ -7652,8 +7637,8 @@ var MultipleRoot = forwardRef53(({ className, ...props }, ref) => /* @__PURE__ *
7652
7637
  }
7653
7638
  ));
7654
7639
  MultipleRoot.displayName = "DSAccordion.MultipleRoot";
7655
- var Root15 = AccordionPrimitive.Root;
7656
- var Item7 = forwardRef53(({ className, ...props }, ref) => /* @__PURE__ */ jsx77(
7640
+ var Root14 = AccordionPrimitive.Root;
7641
+ var Item7 = forwardRef53(({ className, ...props }, ref) => /* @__PURE__ */ jsx78(
7657
7642
  AccordionPrimitive.Item,
7658
7643
  {
7659
7644
  ref,
@@ -7666,7 +7651,7 @@ var Item7 = forwardRef53(({ className, ...props }, ref) => /* @__PURE__ */ jsx77
7666
7651
  ));
7667
7652
  Item7.displayName = "DSAccordion.Item";
7668
7653
  var Trigger16 = forwardRef53(
7669
- ({ className, children, icon, meta, ...props }, ref) => /* @__PURE__ */ jsx77(AccordionPrimitive.Header, { className: "flex", children: /* @__PURE__ */ jsxs56(
7654
+ ({ className, children, icon, meta, ...props }, ref) => /* @__PURE__ */ jsx78(AccordionPrimitive.Header, { className: "flex", children: /* @__PURE__ */ jsxs56(
7670
7655
  AccordionPrimitive.Trigger,
7671
7656
  {
7672
7657
  ref,
@@ -7677,7 +7662,7 @@ var Trigger16 = forwardRef53(
7677
7662
  ...props,
7678
7663
  children: [
7679
7664
  /* @__PURE__ */ jsxs56("span", { className: "flex min-w-0 items-center gap-2", children: [
7680
- icon && /* @__PURE__ */ jsx77(
7665
+ icon && /* @__PURE__ */ jsx78(
7681
7666
  "span",
7682
7667
  {
7683
7668
  className: "shrink-0 text-v2-fg-muted",
@@ -7685,11 +7670,11 @@ var Trigger16 = forwardRef53(
7685
7670
  children: icon
7686
7671
  }
7687
7672
  ),
7688
- /* @__PURE__ */ jsx77("span", { className: "truncate text-v2-base font-semibold text-v2-fg-default", children })
7673
+ /* @__PURE__ */ jsx78("span", { className: "truncate text-v2-base font-semibold text-v2-fg-default", children })
7689
7674
  ] }),
7690
7675
  /* @__PURE__ */ jsxs56("span", { className: "flex shrink-0 items-center gap-3", children: [
7691
7676
  meta,
7692
- /* @__PURE__ */ jsx77(
7677
+ /* @__PURE__ */ jsx78(
7693
7678
  CaretDown8,
7694
7679
  {
7695
7680
  size: 16,
@@ -7704,7 +7689,7 @@ var Trigger16 = forwardRef53(
7704
7689
  ) })
7705
7690
  );
7706
7691
  Trigger16.displayName = "DSAccordion.Trigger";
7707
- var Content16 = forwardRef53(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx77(
7692
+ var Content16 = forwardRef53(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx78(
7708
7693
  AccordionPrimitive.Content,
7709
7694
  {
7710
7695
  ref,
@@ -7713,18 +7698,18 @@ var Content16 = forwardRef53(({ className, children, ...props }, ref) => /* @__P
7713
7698
  className
7714
7699
  ),
7715
7700
  ...props,
7716
- children: /* @__PURE__ */ jsx77("div", { className: "border-t border-v2-border-default p-5", children })
7701
+ children: /* @__PURE__ */ jsx78("div", { className: "border-t border-v2-border-default p-5", children })
7717
7702
  }
7718
7703
  ));
7719
7704
  Content16.displayName = "DSAccordion.Content";
7720
- var DSAccordion = Object.assign(Root15, {
7705
+ var DSAccordion = Object.assign(Root14, {
7721
7706
  Item: Item7,
7722
7707
  Trigger: Trigger16,
7723
7708
  Content: Content16
7724
7709
  });
7725
7710
 
7726
7711
  // src/patterns/DataField/DataField.tsx
7727
- import { jsx as jsx78, jsxs as jsxs57 } from "react/jsx-runtime";
7712
+ import { jsx as jsx79, jsxs as jsxs57 } from "react/jsx-runtime";
7728
7713
  function DataField({
7729
7714
  label,
7730
7715
  value,
@@ -7748,15 +7733,15 @@ function DataField({
7748
7733
  ]
7749
7734
  }
7750
7735
  ),
7751
- /* @__PURE__ */ jsx78(Text, { size: "sm", weight: "semibold", children: value ?? "\u2014" }),
7752
- hint && /* @__PURE__ */ jsx78(Text, { size: "xs", color: "subtle", children: hint })
7736
+ /* @__PURE__ */ jsx79(Text, { size: "sm", weight: "semibold", children: value ?? "\u2014" }),
7737
+ hint && /* @__PURE__ */ jsx79(Text, { size: "xs", color: "subtle", children: hint })
7753
7738
  ] });
7754
7739
  }
7755
7740
 
7756
7741
  // src/patterns/FilterBarV2/FilterBarV2.tsx
7757
7742
  import { useEffect as useEffect13, useState as useState24 } from "react";
7758
7743
  import { CheckSquare, FunnelSimple, Square } from "@phosphor-icons/react";
7759
- import { Fragment as Fragment15, jsx as jsx79, jsxs as jsxs58 } from "react/jsx-runtime";
7744
+ import { Fragment as Fragment15, jsx as jsx80, jsxs as jsxs58 } from "react/jsx-runtime";
7760
7745
  function isStringValue(v) {
7761
7746
  return typeof v === "string";
7762
7747
  }
@@ -7794,9 +7779,9 @@ function MultiSelectField({
7794
7779
  const selectedLabels = field.options.filter((opt) => selected.includes(opt.value)).map((opt) => opt.label);
7795
7780
  const triggerLabel = selectedLabels.length === 0 ? field.placeholder ?? "Selecione..." : selectedLabels.length === 1 ? selectedLabels[0] : `${selectedLabels.length} selecionados`;
7796
7781
  return /* @__PURE__ */ jsxs58("div", { className: "relative w-full", children: [
7797
- field.label && /* @__PURE__ */ jsx79(Label, { className: "absolute -top-2 left-3 z-10 bg-v2-raised px-1 text-v2-xs font-medium text-v2-fg-muted", children: field.label }),
7782
+ field.label && /* @__PURE__ */ jsx80(Label, { className: "absolute -top-2 left-3 z-10 bg-v2-raised px-1 text-v2-xs font-medium text-v2-fg-muted", children: field.label }),
7798
7783
  /* @__PURE__ */ jsxs58(Popover, { open, onOpenChange: setOpen, children: [
7799
- /* @__PURE__ */ jsx79(Popover.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs58(
7784
+ /* @__PURE__ */ jsx80(Popover.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs58(
7800
7785
  "button",
7801
7786
  {
7802
7787
  type: "button",
@@ -7807,12 +7792,12 @@ function MultiSelectField({
7807
7792
  selected.length === 0 && "text-v2-fg-muted"
7808
7793
  ),
7809
7794
  children: [
7810
- /* @__PURE__ */ jsx79("span", { className: "truncate", children: triggerLabel }),
7811
- selected.length > 0 && /* @__PURE__ */ jsx79(Badge, { variant: "info", size: "sm", children: selected.length })
7795
+ /* @__PURE__ */ jsx80("span", { className: "truncate", children: triggerLabel }),
7796
+ selected.length > 0 && /* @__PURE__ */ jsx80(Badge, { variant: "info", size: "sm", children: selected.length })
7812
7797
  ]
7813
7798
  }
7814
7799
  ) }),
7815
- /* @__PURE__ */ jsx79(
7800
+ /* @__PURE__ */ jsx80(
7816
7801
  Popover.Content,
7817
7802
  {
7818
7803
  size: "md",
@@ -7825,10 +7810,10 @@ function MultiSelectField({
7825
7810
  "aria-multiselectable": "true",
7826
7811
  className: "flex flex-col",
7827
7812
  children: [
7828
- field.options.length === 0 && /* @__PURE__ */ jsx79("li", { className: "px-3 py-2 text-v2-sm text-v2-fg-muted", children: "Nenhuma op\xE7\xE3o dispon\xEDvel" }),
7813
+ field.options.length === 0 && /* @__PURE__ */ jsx80("li", { className: "px-3 py-2 text-v2-sm text-v2-fg-muted", children: "Nenhuma op\xE7\xE3o dispon\xEDvel" }),
7829
7814
  field.options.map((option) => {
7830
7815
  const checked = selected.includes(option.value);
7831
- return /* @__PURE__ */ jsx79("li", { children: /* @__PURE__ */ jsxs58(
7816
+ return /* @__PURE__ */ jsx80("li", { children: /* @__PURE__ */ jsxs58(
7832
7817
  "button",
7833
7818
  {
7834
7819
  type: "button",
@@ -7840,14 +7825,14 @@ function MultiSelectField({
7840
7825
  "hover:bg-v2-bg-subtle focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-v2-focus-ring/30"
7841
7826
  ),
7842
7827
  children: [
7843
- checked ? /* @__PURE__ */ jsx79(
7828
+ checked ? /* @__PURE__ */ jsx80(
7844
7829
  CheckSquare,
7845
7830
  {
7846
7831
  size: 18,
7847
7832
  weight: "fill",
7848
7833
  className: "shrink-0 text-v2-action-primary"
7849
7834
  }
7850
- ) : /* @__PURE__ */ jsx79(
7835
+ ) : /* @__PURE__ */ jsx80(
7851
7836
  Square,
7852
7837
  {
7853
7838
  size: 18,
@@ -7855,7 +7840,7 @@ function MultiSelectField({
7855
7840
  className: "shrink-0 text-v2-fg-muted"
7856
7841
  }
7857
7842
  ),
7858
- /* @__PURE__ */ jsx79("span", { className: "truncate", children: option.label })
7843
+ /* @__PURE__ */ jsx80("span", { className: "truncate", children: option.label })
7859
7844
  ]
7860
7845
  }
7861
7846
  ) }, option.value);
@@ -7874,7 +7859,7 @@ function DateRangeField({
7874
7859
  onChange
7875
7860
  }) {
7876
7861
  const range = asDateRange(value);
7877
- return /* @__PURE__ */ jsx79(
7862
+ return /* @__PURE__ */ jsx80(
7878
7863
  DateRangeInput,
7879
7864
  {
7880
7865
  label: field.label,
@@ -7897,7 +7882,7 @@ function NumberRangeField({
7897
7882
  const maxLabel = field.maxLabel ?? `${field.label} (menor ou igual)`;
7898
7883
  if (field.format === "money") {
7899
7884
  return /* @__PURE__ */ jsxs58(Fragment15, { children: [
7900
- /* @__PURE__ */ jsx79(
7885
+ /* @__PURE__ */ jsx80(
7901
7886
  MoneyInput,
7902
7887
  {
7903
7888
  label: minLabel,
@@ -7905,7 +7890,7 @@ function NumberRangeField({
7905
7890
  onValueChange: (_f, raw) => setMin(raw)
7906
7891
  }
7907
7892
  ),
7908
- /* @__PURE__ */ jsx79(
7893
+ /* @__PURE__ */ jsx80(
7909
7894
  MoneyInput,
7910
7895
  {
7911
7896
  label: maxLabel,
@@ -7917,7 +7902,7 @@ function NumberRangeField({
7917
7902
  }
7918
7903
  if (field.format === "percent") {
7919
7904
  return /* @__PURE__ */ jsxs58(Fragment15, { children: [
7920
- /* @__PURE__ */ jsx79(
7905
+ /* @__PURE__ */ jsx80(
7921
7906
  PercentInput,
7922
7907
  {
7923
7908
  label: minLabel,
@@ -7925,7 +7910,7 @@ function NumberRangeField({
7925
7910
  onValueChange: (_f, raw) => setMin(raw)
7926
7911
  }
7927
7912
  ),
7928
- /* @__PURE__ */ jsx79(
7913
+ /* @__PURE__ */ jsx80(
7929
7914
  PercentInput,
7930
7915
  {
7931
7916
  label: maxLabel,
@@ -7936,7 +7921,7 @@ function NumberRangeField({
7936
7921
  ] });
7937
7922
  }
7938
7923
  return /* @__PURE__ */ jsxs58(Fragment15, { children: [
7939
- /* @__PURE__ */ jsx79(
7924
+ /* @__PURE__ */ jsx80(
7940
7925
  Input,
7941
7926
  {
7942
7927
  label: minLabel,
@@ -7945,7 +7930,7 @@ function NumberRangeField({
7945
7930
  onChange: (e) => setMin(e.target.value)
7946
7931
  }
7947
7932
  ),
7948
- /* @__PURE__ */ jsx79(
7933
+ /* @__PURE__ */ jsx80(
7949
7934
  Input,
7950
7935
  {
7951
7936
  label: maxLabel,
@@ -7958,7 +7943,7 @@ function NumberRangeField({
7958
7943
  }
7959
7944
  function renderField(field, value, onChange) {
7960
7945
  if (field.type === "text") {
7961
- return /* @__PURE__ */ jsx79(
7946
+ return /* @__PURE__ */ jsx80(
7962
7947
  Input,
7963
7948
  {
7964
7949
  label: field.label,
@@ -7970,7 +7955,7 @@ function renderField(field, value, onChange) {
7970
7955
  );
7971
7956
  }
7972
7957
  if (field.type === "mask") {
7973
- return /* @__PURE__ */ jsx79(
7958
+ return /* @__PURE__ */ jsx80(
7974
7959
  DocumentInput,
7975
7960
  {
7976
7961
  label: field.label,
@@ -7982,7 +7967,7 @@ function renderField(field, value, onChange) {
7982
7967
  );
7983
7968
  }
7984
7969
  if (field.type === "select") {
7985
- return /* @__PURE__ */ jsx79(
7970
+ return /* @__PURE__ */ jsx80(
7986
7971
  Combobox,
7987
7972
  {
7988
7973
  label: field.label,
@@ -7996,13 +7981,13 @@ function renderField(field, value, onChange) {
7996
7981
  );
7997
7982
  }
7998
7983
  if (field.type === "multiSelect") {
7999
- return /* @__PURE__ */ jsx79(MultiSelectField, { field, value, onChange });
7984
+ return /* @__PURE__ */ jsx80(MultiSelectField, { field, value, onChange });
8000
7985
  }
8001
7986
  if (field.type === "dateRange") {
8002
- return /* @__PURE__ */ jsx79(DateRangeField, { field, value, onChange });
7987
+ return /* @__PURE__ */ jsx80(DateRangeField, { field, value, onChange });
8003
7988
  }
8004
7989
  if (field.type === "numberRange") {
8005
- return /* @__PURE__ */ jsx79(NumberRangeField, { field, value, onChange });
7990
+ return /* @__PURE__ */ jsx80(NumberRangeField, { field, value, onChange });
8006
7991
  }
8007
7992
  return null;
8008
7993
  }
@@ -8052,7 +8037,7 @@ function FilterBarV2({
8052
8037
  };
8053
8038
  const triggerLabel = activeCount > 0 ? `Filtros (${activeCount})` : title ?? "Filtros avan\xE7ados";
8054
8039
  return /* @__PURE__ */ jsxs58(DrawerRoot, { open, onOpenChange: setOpen, children: [
8055
- !hideTrigger && /* @__PURE__ */ jsx79(DrawerRoot.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs58(
8040
+ !hideTrigger && /* @__PURE__ */ jsx80(DrawerRoot.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs58(
8056
8041
  "button",
8057
8042
  {
8058
8043
  type: "button",
@@ -8063,17 +8048,17 @@ function FilterBarV2({
8063
8048
  ),
8064
8049
  children: [
8065
8050
  /* @__PURE__ */ jsxs58("span", { className: "inline-flex items-center gap-2", children: [
8066
- /* @__PURE__ */ jsx79(FunnelSimple, { size: 18, weight: "bold", "aria-hidden": "true" }),
8051
+ /* @__PURE__ */ jsx80(FunnelSimple, { size: 18, weight: "bold", "aria-hidden": "true" }),
8067
8052
  triggerLabel
8068
8053
  ] }),
8069
- activeCount > 0 ? /* @__PURE__ */ jsx79(Badge, { variant: "info", size: "sm", children: activeCount }) : null
8054
+ activeCount > 0 ? /* @__PURE__ */ jsx80(Badge, { variant: "info", size: "sm", children: activeCount }) : null
8070
8055
  ]
8071
8056
  }
8072
8057
  ) }),
8073
8058
  /* @__PURE__ */ jsxs58(DrawerRoot.Content, { side: "right", size: "md", children: [
8074
8059
  /* @__PURE__ */ jsxs58(DrawerRoot.Header, { children: [
8075
- /* @__PURE__ */ jsx79(DrawerRoot.Title, { children: title ?? "Filtros avan\xE7ados" }),
8076
- /* @__PURE__ */ jsx79(DrawerRoot.Description, { children: activeCount > 0 ? `${activeCount} ${activeCount === 1 ? "filtro aplicado" : "filtros aplicados"}` : "Refine sua busca por campos espec\xEDficos." })
8060
+ /* @__PURE__ */ jsx80(DrawerRoot.Title, { children: title ?? "Filtros avan\xE7ados" }),
8061
+ /* @__PURE__ */ jsx80(DrawerRoot.Description, { children: activeCount > 0 ? `${activeCount} ${activeCount === 1 ? "filtro aplicado" : "filtros aplicados"}` : "Refine sua busca por campos espec\xEDficos." })
8077
8062
  ] }),
8078
8063
  /* @__PURE__ */ jsxs58(
8079
8064
  "form",
@@ -8081,7 +8066,7 @@ function FilterBarV2({
8081
8066
  onSubmit: handleApply,
8082
8067
  className: "flex flex-1 flex-col overflow-hidden",
8083
8068
  children: [
8084
- /* @__PURE__ */ jsx79(DrawerRoot.Body, { className: "flex flex-col gap-4", children: fields.map((field) => /* @__PURE__ */ jsx79(
8069
+ /* @__PURE__ */ jsx80(DrawerRoot.Body, { className: "flex flex-col gap-4", children: fields.map((field) => /* @__PURE__ */ jsx80(
8085
8070
  "div",
8086
8071
  {
8087
8072
  className: cn(
@@ -8097,7 +8082,7 @@ function FilterBarV2({
8097
8082
  field.name
8098
8083
  )) }),
8099
8084
  /* @__PURE__ */ jsxs58(DrawerRoot.Footer, { className: "sm:justify-between", children: [
8100
- activeCount > 0 ? /* @__PURE__ */ jsx79(Button, { type: "button", variant: "secondary", onClick: handleClear, children: clearLabel }) : /* @__PURE__ */ jsx79(
8085
+ activeCount > 0 ? /* @__PURE__ */ jsx80(Button, { type: "button", variant: "secondary", onClick: handleClear, children: clearLabel }) : /* @__PURE__ */ jsx80(
8101
8086
  Button,
8102
8087
  {
8103
8088
  type: "button",
@@ -8106,7 +8091,7 @@ function FilterBarV2({
8106
8091
  children: "Cancelar"
8107
8092
  }
8108
8093
  ),
8109
- /* @__PURE__ */ jsx79(Button, { type: "submit", children: applyLabel })
8094
+ /* @__PURE__ */ jsx80(Button, { type: "submit", children: applyLabel })
8110
8095
  ] })
8111
8096
  ]
8112
8097
  }
@@ -8116,7 +8101,7 @@ function FilterBarV2({
8116
8101
  }
8117
8102
 
8118
8103
  // src/patterns/FormSection/FormSection.tsx
8119
- import { jsx as jsx80, jsxs as jsxs59 } from "react/jsx-runtime";
8104
+ import { jsx as jsx81, jsxs as jsxs59 } from "react/jsx-runtime";
8120
8105
  function FormSection({
8121
8106
  id,
8122
8107
  icon,
@@ -8134,7 +8119,7 @@ function FormSection({
8134
8119
  className: "scroll-mt-4 rounded-v2-lg border border-v2-border-default bg-v2-panel p-5 shadow-sm",
8135
8120
  children: [
8136
8121
  /* @__PURE__ */ jsxs59("header", { className: "mb-5 flex items-start gap-3", children: [
8137
- /* @__PURE__ */ jsx80(
8122
+ /* @__PURE__ */ jsx81(
8138
8123
  "span",
8139
8124
  {
8140
8125
  "aria-hidden": "true",
@@ -8143,10 +8128,10 @@ function FormSection({
8143
8128
  }
8144
8129
  ),
8145
8130
  /* @__PURE__ */ jsxs59("div", { className: "flex flex-1 flex-col", children: [
8146
- /* @__PURE__ */ jsx80("h2", { className: "text-v2-base font-bold text-v2-fg-default", children: title }),
8147
- /* @__PURE__ */ jsx80("p", { className: "text-v2-sm text-v2-fg-muted", children: description })
8131
+ /* @__PURE__ */ jsx81("h2", { className: "text-v2-base font-bold text-v2-fg-default", children: title }),
8132
+ /* @__PURE__ */ jsx81("p", { className: "text-v2-sm text-v2-fg-muted", children: description })
8148
8133
  ] }),
8149
- meta && /* @__PURE__ */ jsx80("div", { className: "shrink-0", children: meta })
8134
+ meta && /* @__PURE__ */ jsx81("div", { className: "shrink-0", children: meta })
8150
8135
  ] }),
8151
8136
  children
8152
8137
  ]
@@ -8162,7 +8147,7 @@ import {
8162
8147
  CheckCircle as CheckCircle2,
8163
8148
  Circle
8164
8149
  } from "@phosphor-icons/react";
8165
- import { Fragment as Fragment16, jsx as jsx81, jsxs as jsxs60 } from "react/jsx-runtime";
8150
+ import { Fragment as Fragment16, jsx as jsx82, jsxs as jsxs60 } from "react/jsx-runtime";
8166
8151
  function ProgressRing({
8167
8152
  percent,
8168
8153
  size = 36
@@ -8181,7 +8166,7 @@ function ProgressRing({
8181
8166
  "aria-hidden": "true",
8182
8167
  className: "shrink-0",
8183
8168
  children: [
8184
- /* @__PURE__ */ jsx81(
8169
+ /* @__PURE__ */ jsx82(
8185
8170
  "circle",
8186
8171
  {
8187
8172
  cx: size / 2,
@@ -8192,7 +8177,7 @@ function ProgressRing({
8192
8177
  fill: "none"
8193
8178
  }
8194
8179
  ),
8195
- /* @__PURE__ */ jsx81(
8180
+ /* @__PURE__ */ jsx82(
8196
8181
  "circle",
8197
8182
  {
8198
8183
  cx: size / 2,
@@ -8242,7 +8227,7 @@ function FormWithAside({
8242
8227
  sections.reduce((sum, s) => sum + (s.percent ?? 0), 0) / sections.length
8243
8228
  ) : 0);
8244
8229
  return /* @__PURE__ */ jsxs60("div", { className: "flex flex-col gap-4 lg:flex-row", children: [
8245
- /* @__PURE__ */ jsx81("div", { className: "min-w-0 flex-1", children }),
8230
+ /* @__PURE__ */ jsx82("div", { className: "min-w-0 flex-1", children }),
8246
8231
  /* @__PURE__ */ jsxs60(
8247
8232
  "aside",
8248
8233
  {
@@ -8260,8 +8245,8 @@ function FormWithAside({
8260
8245
  collapsed ? "justify-center" : "justify-between"
8261
8246
  ),
8262
8247
  children: [
8263
- !collapsed && /* @__PURE__ */ jsx81("h2", { className: "text-v2-xs font-bold uppercase tracking-wide text-v2-fg-muted", children: title }),
8264
- /* @__PURE__ */ jsx81(
8248
+ !collapsed && /* @__PURE__ */ jsx82("h2", { className: "text-v2-xs font-bold uppercase tracking-wide text-v2-fg-muted", children: title }),
8249
+ /* @__PURE__ */ jsx82(
8265
8250
  "button",
8266
8251
  {
8267
8252
  type: "button",
@@ -8270,17 +8255,17 @@ function FormWithAside({
8270
8255
  "aria-label": collapsed ? "Expandir resumo" : "Recolher resumo",
8271
8256
  title: collapsed ? "Expandir resumo" : "Recolher resumo",
8272
8257
  className: "inline-flex size-7 shrink-0 items-center justify-center rounded-v2-md text-v2-fg-muted transition-colors hover:bg-v2-raised hover:text-v2-fg-default focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-v2-border-strong",
8273
- children: collapsed ? /* @__PURE__ */ jsx81(CaretDoubleLeft2, { size: 14, weight: "bold", "aria-hidden": "true" }) : /* @__PURE__ */ jsx81(CaretDoubleRight2, { size: 14, weight: "bold", "aria-hidden": "true" })
8258
+ children: collapsed ? /* @__PURE__ */ jsx82(CaretDoubleLeft2, { size: 14, weight: "bold", "aria-hidden": "true" }) : /* @__PURE__ */ jsx82(CaretDoubleRight2, { size: 14, weight: "bold", "aria-hidden": "true" })
8274
8259
  }
8275
8260
  )
8276
8261
  ]
8277
8262
  }
8278
8263
  ),
8279
8264
  collapsed ? /* @__PURE__ */ jsxs60("div", { className: "flex flex-col items-center gap-3", children: [
8280
- /* @__PURE__ */ jsx81(ProgressRing, { percent: computedOverall, size: 36 }),
8265
+ /* @__PURE__ */ jsx82(ProgressRing, { percent: computedOverall, size: 36 }),
8281
8266
  sections.map((s) => {
8282
8267
  const done = (s.percent ?? 0) >= 100;
8283
- return /* @__PURE__ */ jsx81(
8268
+ return /* @__PURE__ */ jsx82(
8284
8269
  "button",
8285
8270
  {
8286
8271
  type: "button",
@@ -8297,9 +8282,9 @@ function FormWithAside({
8297
8282
  })
8298
8283
  ] }) : /* @__PURE__ */ jsxs60(Fragment16, { children: [
8299
8284
  /* @__PURE__ */ jsxs60("div", { className: "flex items-center gap-3 rounded-v2-md bg-v2-raised px-3 py-2", children: [
8300
- /* @__PURE__ */ jsx81(ProgressRing, { percent: computedOverall, size: 40 }),
8285
+ /* @__PURE__ */ jsx82(ProgressRing, { percent: computedOverall, size: 40 }),
8301
8286
  /* @__PURE__ */ jsxs60("div", { className: "flex min-w-0 flex-col", children: [
8302
- /* @__PURE__ */ jsx81("span", { className: "text-v2-xs font-semibold text-v2-fg-default", children: "Progresso geral" }),
8287
+ /* @__PURE__ */ jsx82("span", { className: "text-v2-xs font-semibold text-v2-fg-default", children: "Progresso geral" }),
8303
8288
  /* @__PURE__ */ jsxs60("span", { className: "text-v2-xs text-v2-fg-muted", children: [
8304
8289
  sections.filter((s) => (s.percent ?? 0) >= 100).length,
8305
8290
  " de",
@@ -8309,37 +8294,37 @@ function FormWithAside({
8309
8294
  ] })
8310
8295
  ] })
8311
8296
  ] }),
8312
- /* @__PURE__ */ jsx81("nav", { "aria-label": "Navega\xE7\xE3o por se\xE7\xF5es", children: /* @__PURE__ */ jsx81("ul", { className: "flex flex-col gap-0.5", children: sections.map((s) => {
8297
+ /* @__PURE__ */ jsx82("nav", { "aria-label": "Navega\xE7\xE3o por se\xE7\xF5es", children: /* @__PURE__ */ jsx82("ul", { className: "flex flex-col gap-0.5", children: sections.map((s) => {
8313
8298
  const done = (s.percent ?? 0) >= 100;
8314
- return /* @__PURE__ */ jsx81("li", { children: /* @__PURE__ */ jsxs60(
8299
+ return /* @__PURE__ */ jsx82("li", { children: /* @__PURE__ */ jsxs60(
8315
8300
  "button",
8316
8301
  {
8317
8302
  type: "button",
8318
8303
  onClick: () => scrollToId(s.id),
8319
8304
  className: "group flex w-full items-start gap-2 rounded-v2-md p-2 text-left transition-colors hover:bg-v2-raised focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-v2-border-strong",
8320
8305
  children: [
8321
- /* @__PURE__ */ jsx81("span", { "aria-hidden": "true", className: "mt-0.5 shrink-0", children: done ? /* @__PURE__ */ jsx81(
8306
+ /* @__PURE__ */ jsx82("span", { "aria-hidden": "true", className: "mt-0.5 shrink-0", children: done ? /* @__PURE__ */ jsx82(
8322
8307
  CheckCircle2,
8323
8308
  {
8324
8309
  size: 14,
8325
8310
  weight: "fill",
8326
8311
  className: "text-v2-success-500"
8327
8312
  }
8328
- ) : /* @__PURE__ */ jsx81(Circle, { size: 14, className: "text-v2-fg-muted" }) }),
8313
+ ) : /* @__PURE__ */ jsx82(Circle, { size: 14, className: "text-v2-fg-muted" }) }),
8329
8314
  /* @__PURE__ */ jsxs60("span", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
8330
8315
  /* @__PURE__ */ jsxs60("span", { className: "flex items-center justify-between gap-2", children: [
8331
- /* @__PURE__ */ jsx81("span", { className: "truncate text-v2-sm font-medium text-v2-fg-default", children: s.label }),
8316
+ /* @__PURE__ */ jsx82("span", { className: "truncate text-v2-sm font-medium text-v2-fg-default", children: s.label }),
8332
8317
  typeof s.percent === "number" && /* @__PURE__ */ jsxs60("span", { className: "shrink-0 text-v2-xs font-semibold tabular-nums text-v2-fg-muted", children: [
8333
8318
  s.percent,
8334
8319
  "%"
8335
8320
  ] })
8336
8321
  ] }),
8337
- typeof s.percent === "number" && /* @__PURE__ */ jsx81(
8322
+ typeof s.percent === "number" && /* @__PURE__ */ jsx82(
8338
8323
  "span",
8339
8324
  {
8340
8325
  "aria-hidden": "true",
8341
8326
  className: "block h-1 overflow-hidden rounded-v2-pill bg-v2-bg-subtle",
8342
- children: /* @__PURE__ */ jsx81(
8327
+ children: /* @__PURE__ */ jsx82(
8343
8328
  "span",
8344
8329
  {
8345
8330
  className: "block h-full bg-v2-action-primary transition-all",
@@ -8358,7 +8343,7 @@ function FormWithAside({
8358
8343
  }
8359
8344
  ) }, s.id);
8360
8345
  }) }) }),
8361
- asideExtra && /* @__PURE__ */ jsx81("div", { className: "border-t border-v2-border-default pt-3", children: asideExtra })
8346
+ asideExtra && /* @__PURE__ */ jsx82("div", { className: "border-t border-v2-border-default pt-3", children: asideExtra })
8362
8347
  ] })
8363
8348
  ]
8364
8349
  }
@@ -8367,7 +8352,7 @@ function FormWithAside({
8367
8352
  }
8368
8353
 
8369
8354
  // src/patterns/HorizontalBarChart/HorizontalBarChart.tsx
8370
- import { jsx as jsx82, jsxs as jsxs61 } from "react/jsx-runtime";
8355
+ import { jsx as jsx83, jsxs as jsxs61 } from "react/jsx-runtime";
8371
8356
  var PALETTE = [
8372
8357
  "var(--v2-chart-cat-1)",
8373
8358
  "var(--v2-chart-cat-2)",
@@ -8386,7 +8371,7 @@ function HorizontalBarChart({
8386
8371
  showSecondary = false
8387
8372
  }) {
8388
8373
  const max = Math.max(1, ...items.map((i) => i.value));
8389
- return /* @__PURE__ */ jsx82(
8374
+ return /* @__PURE__ */ jsx83(
8390
8375
  "div",
8391
8376
  {
8392
8377
  role: "img",
@@ -8403,13 +8388,13 @@ function HorizontalBarChart({
8403
8388
  title: hasSecondary ? `${item.label}: ${valueFormatter(item.value)} \xB7 ${secondaryFormatter(item.secondaryValue ?? 0)}` : `${item.label}: ${valueFormatter(item.value)}`,
8404
8389
  children: [
8405
8390
  /* @__PURE__ */ jsxs61("div", { className: "flex items-baseline justify-between gap-3", children: [
8406
- /* @__PURE__ */ jsx82("span", { className: "truncate text-v2-xs font-semibold text-v2-fg-muted", children: item.label }),
8391
+ /* @__PURE__ */ jsx83("span", { className: "truncate text-v2-xs font-semibold text-v2-fg-muted", children: item.label }),
8407
8392
  /* @__PURE__ */ jsxs61("span", { className: "flex items-baseline gap-2", children: [
8408
- /* @__PURE__ */ jsx82("span", { className: "font-bold text-v2-fg-default", children: valueFormatter(item.value) }),
8409
- hasSecondary && /* @__PURE__ */ jsx82("span", { className: "text-v2-xs text-v2-fg-subtle", children: item.secondaryLabel ? `${item.secondaryLabel} ${secondaryFormatter(item.secondaryValue ?? 0)}` : secondaryFormatter(item.secondaryValue ?? 0) })
8393
+ /* @__PURE__ */ jsx83("span", { className: "font-bold text-v2-fg-default", children: valueFormatter(item.value) }),
8394
+ hasSecondary && /* @__PURE__ */ jsx83("span", { className: "text-v2-xs text-v2-fg-subtle", children: item.secondaryLabel ? `${item.secondaryLabel} ${secondaryFormatter(item.secondaryValue ?? 0)}` : secondaryFormatter(item.secondaryValue ?? 0) })
8410
8395
  ] })
8411
8396
  ] }),
8412
- /* @__PURE__ */ jsx82("div", { className: "h-2.5 w-full overflow-hidden rounded-v2-pill bg-v2-bg-subtle", children: /* @__PURE__ */ jsx82(
8397
+ /* @__PURE__ */ jsx83("div", { className: "h-2.5 w-full overflow-hidden rounded-v2-pill bg-v2-bg-subtle", children: /* @__PURE__ */ jsx83(
8413
8398
  "div",
8414
8399
  {
8415
8400
  className: "h-full rounded-v2-pill transition-all duration-300 group-hover:brightness-110",
@@ -8442,7 +8427,7 @@ import {
8442
8427
  XAxis,
8443
8428
  YAxis
8444
8429
  } from "recharts";
8445
- import { jsx as jsx83, jsxs as jsxs62 } from "react/jsx-runtime";
8430
+ import { jsx as jsx84, jsxs as jsxs62 } from "react/jsx-runtime";
8446
8431
  function toRows(labels, series) {
8447
8432
  return labels.map((label, i) => {
8448
8433
  const row = { x: label };
@@ -8464,9 +8449,9 @@ function ChartTooltip2({
8464
8449
  }) {
8465
8450
  if (!active || !(payload == null ? void 0 : payload.length)) return null;
8466
8451
  return /* @__PURE__ */ jsxs62("div", { className: "rounded-v2-md border border-v2-border-default bg-v2-panel px-3 py-2 text-v2-xs shadow-lg", children: [
8467
- /* @__PURE__ */ jsx83("p", { className: "font-semibold text-v2-fg-default", children: formatLabel(label ?? "") }),
8468
- /* @__PURE__ */ jsx83("div", { className: "mt-1 flex flex-col gap-0.5", children: payload.map((p) => /* @__PURE__ */ jsxs62("div", { className: "flex items-center gap-2", children: [
8469
- /* @__PURE__ */ jsx83(
8452
+ /* @__PURE__ */ jsx84("p", { className: "font-semibold text-v2-fg-default", children: formatLabel(label ?? "") }),
8453
+ /* @__PURE__ */ jsx84("div", { className: "mt-1 flex flex-col gap-0.5", children: payload.map((p) => /* @__PURE__ */ jsxs62("div", { className: "flex items-center gap-2", children: [
8454
+ /* @__PURE__ */ jsx84(
8470
8455
  "span",
8471
8456
  {
8472
8457
  className: "size-2 rounded-full",
@@ -8478,7 +8463,7 @@ function ChartTooltip2({
8478
8463
  p.name,
8479
8464
  ":"
8480
8465
  ] }),
8481
- /* @__PURE__ */ jsx83("span", { className: "font-semibold text-v2-fg-default", children: formatValue(typeof p.value === "number" ? p.value : 0) })
8466
+ /* @__PURE__ */ jsx84("span", { className: "font-semibold text-v2-fg-default", children: formatValue(typeof p.value === "number" ? p.value : 0) })
8482
8467
  ] }, p.name)) })
8483
8468
  ] });
8484
8469
  }
@@ -8494,15 +8479,15 @@ function LineChart({
8494
8479
  }) {
8495
8480
  const rows = toRows(labels, series);
8496
8481
  const Chart = variant === "area" ? RechartsAreaChart : RechartsLineChart;
8497
- return /* @__PURE__ */ jsx83(
8482
+ return /* @__PURE__ */ jsx84(
8498
8483
  "div",
8499
8484
  {
8500
8485
  role: "img",
8501
8486
  "aria-label": ariaLabel,
8502
8487
  className: cn("w-full", className),
8503
8488
  style: { height },
8504
- children: /* @__PURE__ */ jsx83(ResponsiveContainer2, { width: "100%", height: "100%", children: /* @__PURE__ */ jsxs62(Chart, { data: rows, margin: { top: 8, right: 12, left: 0, bottom: 0 }, children: [
8505
- /* @__PURE__ */ jsx83("defs", { children: series.map((s, i) => /* @__PURE__ */ jsxs62(
8489
+ children: /* @__PURE__ */ jsx84(ResponsiveContainer2, { width: "100%", height: "100%", children: /* @__PURE__ */ jsxs62(Chart, { data: rows, margin: { top: 8, right: 12, left: 0, bottom: 0 }, children: [
8490
+ /* @__PURE__ */ jsx84("defs", { children: series.map((s, i) => /* @__PURE__ */ jsxs62(
8506
8491
  "linearGradient",
8507
8492
  {
8508
8493
  id: `v2-line-grad-${i}`,
@@ -8511,13 +8496,13 @@ function LineChart({
8511
8496
  x2: "0",
8512
8497
  y2: "1",
8513
8498
  children: [
8514
- /* @__PURE__ */ jsx83("stop", { offset: "0%", stopColor: s.color, stopOpacity: 0.35 }),
8515
- /* @__PURE__ */ jsx83("stop", { offset: "95%", stopColor: s.color, stopOpacity: 0 })
8499
+ /* @__PURE__ */ jsx84("stop", { offset: "0%", stopColor: s.color, stopOpacity: 0.35 }),
8500
+ /* @__PURE__ */ jsx84("stop", { offset: "95%", stopColor: s.color, stopOpacity: 0 })
8516
8501
  ]
8517
8502
  },
8518
8503
  `grad-${s.name}-${i}`
8519
8504
  )) }),
8520
- /* @__PURE__ */ jsx83(
8505
+ /* @__PURE__ */ jsx84(
8521
8506
  CartesianGrid,
8522
8507
  {
8523
8508
  strokeDasharray: "3 4",
@@ -8525,7 +8510,7 @@ function LineChart({
8525
8510
  vertical: false
8526
8511
  }
8527
8512
  ),
8528
- /* @__PURE__ */ jsx83(
8513
+ /* @__PURE__ */ jsx84(
8529
8514
  XAxis,
8530
8515
  {
8531
8516
  dataKey: "x",
@@ -8534,7 +8519,7 @@ function LineChart({
8534
8519
  axisLine: { stroke: "var(--v2-border-default)" }
8535
8520
  }
8536
8521
  ),
8537
- /* @__PURE__ */ jsx83(
8522
+ /* @__PURE__ */ jsx84(
8538
8523
  YAxis,
8539
8524
  {
8540
8525
  tick: { fill: "var(--v2-fg-subtle)", fontSize: 11 },
@@ -8544,14 +8529,14 @@ function LineChart({
8544
8529
  width: 70
8545
8530
  }
8546
8531
  ),
8547
- /* @__PURE__ */ jsx83(
8532
+ /* @__PURE__ */ jsx84(
8548
8533
  Tooltip3,
8549
8534
  {
8550
8535
  cursor: {
8551
8536
  stroke: "var(--v2-border-default)",
8552
8537
  strokeDasharray: "3 4"
8553
8538
  },
8554
- content: /* @__PURE__ */ jsx83(
8539
+ content: /* @__PURE__ */ jsx84(
8555
8540
  ChartTooltip2,
8556
8541
  {
8557
8542
  formatValue,
@@ -8560,7 +8545,7 @@ function LineChart({
8560
8545
  )
8561
8546
  }
8562
8547
  ),
8563
- /* @__PURE__ */ jsx83(
8548
+ /* @__PURE__ */ jsx84(
8564
8549
  Legend,
8565
8550
  {
8566
8551
  verticalAlign: "top",
@@ -8570,7 +8555,7 @@ function LineChart({
8570
8555
  }
8571
8556
  ),
8572
8557
  series.map(
8573
- (s, i) => variant === "area" ? /* @__PURE__ */ jsx83(
8558
+ (s, i) => variant === "area" ? /* @__PURE__ */ jsx84(
8574
8559
  Area,
8575
8560
  {
8576
8561
  type: "monotone",
@@ -8585,7 +8570,7 @@ function LineChart({
8585
8570
  }
8586
8571
  },
8587
8572
  s.name
8588
- ) : /* @__PURE__ */ jsx83(
8573
+ ) : /* @__PURE__ */ jsx84(
8589
8574
  Line,
8590
8575
  {
8591
8576
  type: "monotone",
@@ -8609,7 +8594,7 @@ function LineChart({
8609
8594
 
8610
8595
  // src/patterns/PanelCard/PanelCard.tsx
8611
8596
  import { forwardRef as forwardRef54 } from "react";
8612
- import { jsx as jsx84, jsxs as jsxs63 } from "react/jsx-runtime";
8597
+ import { jsx as jsx85, jsxs as jsxs63 } from "react/jsx-runtime";
8613
8598
  var PanelCard = forwardRef54(
8614
8599
  ({
8615
8600
  icon,
@@ -8649,18 +8634,18 @@ var PanelCard = forwardRef54(
8649
8634
  ),
8650
8635
  children: [
8651
8636
  /* @__PURE__ */ jsxs63("div", { className: "flex min-w-0 items-start gap-3", children: [
8652
- icon && /* @__PURE__ */ jsx84("span", { className: "inline-flex size-9 shrink-0 items-center justify-center rounded-v2-md bg-v2-brand-bg-soft text-v2-brand-text-dark", children: icon }),
8637
+ icon && /* @__PURE__ */ jsx85("span", { className: "inline-flex size-9 shrink-0 items-center justify-center rounded-v2-md bg-v2-brand-bg-soft text-v2-brand-text-dark", children: icon }),
8653
8638
  (title || subtitle) && /* @__PURE__ */ jsxs63("div", { className: "flex min-w-0 flex-col gap-0.5", children: [
8654
- title && /* @__PURE__ */ jsx84("h2", { className: "m-0 text-v2-base font-semibold text-v2-fg-default", children: title }),
8655
- subtitle && /* @__PURE__ */ jsx84("p", { className: "m-0 text-v2-sm text-v2-fg-muted", children: subtitle })
8639
+ title && /* @__PURE__ */ jsx85("h2", { className: "m-0 text-v2-base font-semibold text-v2-fg-default", children: title }),
8640
+ subtitle && /* @__PURE__ */ jsx85("p", { className: "m-0 text-v2-sm text-v2-fg-muted", children: subtitle })
8656
8641
  ] })
8657
8642
  ] }),
8658
- actions && /* @__PURE__ */ jsx84("div", { className: "flex shrink-0 items-center gap-2", children: actions })
8643
+ actions && /* @__PURE__ */ jsx85("div", { className: "flex shrink-0 items-center gap-2", children: actions })
8659
8644
  ]
8660
8645
  }
8661
8646
  ),
8662
- children !== void 0 && /* @__PURE__ */ jsx84("div", { className: cn(padding, bodyClassName), children }),
8663
- footer && /* @__PURE__ */ jsx84(
8647
+ children !== void 0 && /* @__PURE__ */ jsx85("div", { className: cn(padding, bodyClassName), children }),
8648
+ footer && /* @__PURE__ */ jsx85(
8664
8649
  "footer",
8665
8650
  {
8666
8651
  className: cn(
@@ -8679,7 +8664,7 @@ PanelCard.displayName = "PanelCard";
8679
8664
 
8680
8665
  // src/patterns/SectionCard/SectionCard.tsx
8681
8666
  import { WarningCircle as WarningCircle5 } from "@phosphor-icons/react";
8682
- import { jsx as jsx85, jsxs as jsxs64 } from "react/jsx-runtime";
8667
+ import { jsx as jsx86, jsxs as jsxs64 } from "react/jsx-runtime";
8683
8668
  function SectionCard({
8684
8669
  title,
8685
8670
  icon,
@@ -8701,7 +8686,7 @@ function SectionCard({
8701
8686
  children: [
8702
8687
  /* @__PURE__ */ jsxs64("div", { className: "flex flex-wrap items-center justify-between gap-x-3 gap-y-2 border-b border-v2-border-subtle pb-3", children: [
8703
8688
  /* @__PURE__ */ jsxs64("div", { className: "flex items-center gap-2", children: [
8704
- icon && /* @__PURE__ */ jsx85(
8689
+ icon && /* @__PURE__ */ jsx86(
8705
8690
  "span",
8706
8691
  {
8707
8692
  "aria-hidden": "true",
@@ -8709,9 +8694,9 @@ function SectionCard({
8709
8694
  children: icon
8710
8695
  }
8711
8696
  ),
8712
- /* @__PURE__ */ jsx85(Heading, { level: 3, size: "sm", children: title }),
8697
+ /* @__PURE__ */ jsx86(Heading, { level: 3, size: "sm", children: title }),
8713
8698
  highlight && /* @__PURE__ */ jsxs64("span", { className: "inline-flex items-center gap-1 rounded-v2-pill bg-v2-warn-soft px-2 py-0.5 text-[11px] font-bold text-v2-warn-fg", children: [
8714
- /* @__PURE__ */ jsx85(WarningCircle5, { size: 11, weight: "fill", "aria-hidden": "true" }),
8699
+ /* @__PURE__ */ jsx86(WarningCircle5, { size: 11, weight: "fill", "aria-hidden": "true" }),
8715
8700
  "Pendente"
8716
8701
  ] })
8717
8702
  ] }),
@@ -8734,7 +8719,7 @@ import {
8734
8719
  XAxis as XAxis2,
8735
8720
  YAxis as YAxis2
8736
8721
  } from "recharts";
8737
- import { jsx as jsx86, jsxs as jsxs65 } from "react/jsx-runtime";
8722
+ import { jsx as jsx87, jsxs as jsxs65 } from "react/jsx-runtime";
8738
8723
  function toRows2(labels, stacks) {
8739
8724
  return labels.map((label, i) => {
8740
8725
  const row = { x: label };
@@ -8760,10 +8745,10 @@ function ChartTooltip3({
8760
8745
  0
8761
8746
  );
8762
8747
  return /* @__PURE__ */ jsxs65("div", { className: "rounded-v2-md border border-v2-border-default bg-v2-panel px-3 py-2 text-v2-xs shadow-lg", children: [
8763
- /* @__PURE__ */ jsx86("p", { className: "font-semibold text-v2-fg-default", children: formatLabel(label ?? "") }),
8748
+ /* @__PURE__ */ jsx87("p", { className: "font-semibold text-v2-fg-default", children: formatLabel(label ?? "") }),
8764
8749
  /* @__PURE__ */ jsxs65("div", { className: "mt-1 flex flex-col gap-0.5", children: [
8765
8750
  payload.map((p) => /* @__PURE__ */ jsxs65("div", { className: "flex items-center gap-2", children: [
8766
- /* @__PURE__ */ jsx86(
8751
+ /* @__PURE__ */ jsx87(
8767
8752
  "span",
8768
8753
  {
8769
8754
  className: "size-2 rounded-sm",
@@ -8775,11 +8760,11 @@ function ChartTooltip3({
8775
8760
  p.name,
8776
8761
  ":"
8777
8762
  ] }),
8778
- /* @__PURE__ */ jsx86("span", { className: "font-semibold text-v2-fg-default", children: formatValue(typeof p.value === "number" ? p.value : 0) })
8763
+ /* @__PURE__ */ jsx87("span", { className: "font-semibold text-v2-fg-default", children: formatValue(typeof p.value === "number" ? p.value : 0) })
8779
8764
  ] }, p.name)),
8780
8765
  /* @__PURE__ */ jsxs65("div", { className: "mt-1 flex items-center justify-between gap-2 border-t border-v2-border-default pt-1", children: [
8781
- /* @__PURE__ */ jsx86("span", { className: "text-v2-fg-muted", children: "Total:" }),
8782
- /* @__PURE__ */ jsx86("span", { className: "font-semibold text-v2-fg-default", children: formatValue(total) })
8766
+ /* @__PURE__ */ jsx87("span", { className: "text-v2-fg-muted", children: "Total:" }),
8767
+ /* @__PURE__ */ jsx87("span", { className: "font-semibold text-v2-fg-default", children: formatValue(total) })
8783
8768
  ] })
8784
8769
  ] })
8785
8770
  ] });
@@ -8794,20 +8779,20 @@ function StackedBarChart({
8794
8779
  formatLabel = (l) => l
8795
8780
  }) {
8796
8781
  const rows = toRows2(labels, stacks);
8797
- return /* @__PURE__ */ jsx86(
8782
+ return /* @__PURE__ */ jsx87(
8798
8783
  "div",
8799
8784
  {
8800
8785
  role: "img",
8801
8786
  "aria-label": ariaLabel,
8802
8787
  className: cn("w-full", className),
8803
8788
  style: { height },
8804
- children: /* @__PURE__ */ jsx86(ResponsiveContainer3, { width: "100%", height: "100%", children: /* @__PURE__ */ jsxs65(
8789
+ children: /* @__PURE__ */ jsx87(ResponsiveContainer3, { width: "100%", height: "100%", children: /* @__PURE__ */ jsxs65(
8805
8790
  BarChart,
8806
8791
  {
8807
8792
  data: rows,
8808
8793
  margin: { top: 8, right: 12, left: 0, bottom: 0 },
8809
8794
  children: [
8810
- /* @__PURE__ */ jsx86(
8795
+ /* @__PURE__ */ jsx87(
8811
8796
  CartesianGrid2,
8812
8797
  {
8813
8798
  strokeDasharray: "3 4",
@@ -8815,7 +8800,7 @@ function StackedBarChart({
8815
8800
  vertical: false
8816
8801
  }
8817
8802
  ),
8818
- /* @__PURE__ */ jsx86(
8803
+ /* @__PURE__ */ jsx87(
8819
8804
  XAxis2,
8820
8805
  {
8821
8806
  dataKey: "x",
@@ -8824,7 +8809,7 @@ function StackedBarChart({
8824
8809
  axisLine: { stroke: "var(--v2-border-default)" }
8825
8810
  }
8826
8811
  ),
8827
- /* @__PURE__ */ jsx86(
8812
+ /* @__PURE__ */ jsx87(
8828
8813
  YAxis2,
8829
8814
  {
8830
8815
  tick: { fill: "var(--v2-fg-subtle)", fontSize: 11 },
@@ -8834,11 +8819,11 @@ function StackedBarChart({
8834
8819
  width: 70
8835
8820
  }
8836
8821
  ),
8837
- /* @__PURE__ */ jsx86(
8822
+ /* @__PURE__ */ jsx87(
8838
8823
  Tooltip4,
8839
8824
  {
8840
8825
  cursor: { fill: "var(--v2-bg-subtle)" },
8841
- content: /* @__PURE__ */ jsx86(
8826
+ content: /* @__PURE__ */ jsx87(
8842
8827
  ChartTooltip3,
8843
8828
  {
8844
8829
  formatValue,
@@ -8847,7 +8832,7 @@ function StackedBarChart({
8847
8832
  )
8848
8833
  }
8849
8834
  ),
8850
- /* @__PURE__ */ jsx86(
8835
+ /* @__PURE__ */ jsx87(
8851
8836
  Legend2,
8852
8837
  {
8853
8838
  verticalAlign: "top",
@@ -8856,7 +8841,7 @@ function StackedBarChart({
8856
8841
  wrapperStyle: { fontSize: 11, paddingBottom: 8 }
8857
8842
  }
8858
8843
  ),
8859
- stacks.map((s) => /* @__PURE__ */ jsx86(
8844
+ stacks.map((s) => /* @__PURE__ */ jsx87(
8860
8845
  Bar,
8861
8846
  {
8862
8847
  dataKey: s.name,
@@ -8875,11 +8860,11 @@ function StackedBarChart({
8875
8860
 
8876
8861
  // src/patterns/WorkflowDesigner/WorkflowDesigner.tsx
8877
8862
  import { Lightning, Hand, Gear as Gear2 } from "@phosphor-icons/react";
8878
- import { jsx as jsx87, jsxs as jsxs66 } from "react/jsx-runtime";
8863
+ import { jsx as jsx88, jsxs as jsxs66 } from "react/jsx-runtime";
8879
8864
  var kindIconMap = {
8880
- automatic: /* @__PURE__ */ jsx87(Lightning, { size: 14, "aria-hidden": "true" }),
8881
- manual: /* @__PURE__ */ jsx87(Hand, { size: 14, "aria-hidden": "true" }),
8882
- system: /* @__PURE__ */ jsx87(Gear2, { size: 14, "aria-hidden": "true" })
8865
+ automatic: /* @__PURE__ */ jsx88(Lightning, { size: 14, "aria-hidden": "true" }),
8866
+ manual: /* @__PURE__ */ jsx88(Hand, { size: 14, "aria-hidden": "true" }),
8867
+ system: /* @__PURE__ */ jsx88(Gear2, { size: 14, "aria-hidden": "true" })
8883
8868
  };
8884
8869
  function NodeCard({
8885
8870
  node,
@@ -8900,8 +8885,8 @@ function NodeCard({
8900
8885
  ),
8901
8886
  children: [
8902
8887
  /* @__PURE__ */ jsxs66("div", { className: "mb-1 flex items-center gap-1.5", children: [
8903
- /* @__PURE__ */ jsx87("span", { className: "text-v2-fg-muted", children: kindIconMap[node.kind] }),
8904
- /* @__PURE__ */ jsx87("span", { className: "truncate text-v2-sm font-semibold text-v2-fg-default", children: node.label })
8888
+ /* @__PURE__ */ jsx88("span", { className: "text-v2-fg-muted", children: kindIconMap[node.kind] }),
8889
+ /* @__PURE__ */ jsx88("span", { className: "truncate text-v2-sm font-semibold text-v2-fg-default", children: node.label })
8905
8890
  ] }),
8906
8891
  (rulesCount > 0 || actionsCount > 0) && /* @__PURE__ */ jsxs66("div", { className: "mt-1.5 flex flex-wrap items-center gap-1", children: [
8907
8892
  rulesCount > 0 && /* @__PURE__ */ jsxs66(Badge, { size: "sm", variant: "default", children: [
@@ -8925,11 +8910,11 @@ function SidePanel({
8925
8910
  }) {
8926
8911
  const selected = nodes.find((n) => n.id === selectedNodeId);
8927
8912
  return /* @__PURE__ */ jsxs66("div", { className: "w-72 shrink-0 rounded-v2-lg border border-v2-border-default bg-v2-panel p-4 shadow-sm", children: [
8928
- /* @__PURE__ */ jsx87(Heading, { level: 3, size: "xs", className: "mb-3", children: "Regras e a\xE7\xF5es" }),
8929
- !selected ? /* @__PURE__ */ jsx87(Text, { size: "sm", color: "muted", children: "Selecione um n\xF3 para configurar" }) : /* @__PURE__ */ jsxs66("div", { className: "flex flex-col gap-4", children: [
8930
- /* @__PURE__ */ jsx87(Text, { size: "base", weight: "semibold", children: selected.label }),
8913
+ /* @__PURE__ */ jsx88(Heading, { level: 3, size: "xs", className: "mb-3", children: "Regras e a\xE7\xF5es" }),
8914
+ !selected ? /* @__PURE__ */ jsx88(Text, { size: "sm", color: "muted", children: "Selecione um n\xF3 para configurar" }) : /* @__PURE__ */ jsxs66("div", { className: "flex flex-col gap-4", children: [
8915
+ /* @__PURE__ */ jsx88(Text, { size: "base", weight: "semibold", children: selected.label }),
8931
8916
  /* @__PURE__ */ jsxs66("section", { children: [
8932
- /* @__PURE__ */ jsx87(
8917
+ /* @__PURE__ */ jsx88(
8933
8918
  Text,
8934
8919
  {
8935
8920
  size: "xs",
@@ -8939,13 +8924,13 @@ function SidePanel({
8939
8924
  children: "Regras"
8940
8925
  }
8941
8926
  ),
8942
- !selected.rules || selected.rules.length === 0 ? /* @__PURE__ */ jsx87(Text, { size: "sm", color: "muted", children: "Nenhuma regra" }) : /* @__PURE__ */ jsx87("ul", { className: "flex flex-col gap-1.5", children: selected.rules.map((rule, idx) => /* @__PURE__ */ jsxs66("li", { className: "flex flex-col gap-0.5", children: [
8943
- /* @__PURE__ */ jsx87(Text, { size: "xs", color: "muted", children: rule.type }),
8944
- /* @__PURE__ */ jsx87("code", { className: "rounded-v2-sm bg-v2-bg-subtle px-1.5 py-0.5 font-mono text-v2-xs text-v2-fg-default", children: rule.value })
8927
+ !selected.rules || selected.rules.length === 0 ? /* @__PURE__ */ jsx88(Text, { size: "sm", color: "muted", children: "Nenhuma regra" }) : /* @__PURE__ */ jsx88("ul", { className: "flex flex-col gap-1.5", children: selected.rules.map((rule, idx) => /* @__PURE__ */ jsxs66("li", { className: "flex flex-col gap-0.5", children: [
8928
+ /* @__PURE__ */ jsx88(Text, { size: "xs", color: "muted", children: rule.type }),
8929
+ /* @__PURE__ */ jsx88("code", { className: "rounded-v2-sm bg-v2-bg-subtle px-1.5 py-0.5 font-mono text-v2-xs text-v2-fg-default", children: rule.value })
8945
8930
  ] }, idx)) })
8946
8931
  ] }),
8947
8932
  /* @__PURE__ */ jsxs66("section", { children: [
8948
- /* @__PURE__ */ jsx87(
8933
+ /* @__PURE__ */ jsx88(
8949
8934
  Text,
8950
8935
  {
8951
8936
  size: "xs",
@@ -8955,9 +8940,9 @@ function SidePanel({
8955
8940
  children: "A\xE7\xF5es"
8956
8941
  }
8957
8942
  ),
8958
- !selected.actions || selected.actions.length === 0 ? /* @__PURE__ */ jsx87(Text, { size: "sm", color: "muted", children: "Nenhuma a\xE7\xE3o" }) : /* @__PURE__ */ jsx87("ul", { className: "flex flex-col gap-1.5", children: selected.actions.map((action, idx) => /* @__PURE__ */ jsxs66("li", { className: "flex flex-col gap-0.5", children: [
8959
- /* @__PURE__ */ jsx87(Text, { size: "xs", color: "muted", children: action.type }),
8960
- /* @__PURE__ */ jsx87("code", { className: "rounded-v2-sm bg-v2-bg-subtle px-1.5 py-0.5 font-mono text-v2-xs text-v2-fg-default", children: action.event })
8943
+ !selected.actions || selected.actions.length === 0 ? /* @__PURE__ */ jsx88(Text, { size: "sm", color: "muted", children: "Nenhuma a\xE7\xE3o" }) : /* @__PURE__ */ jsx88("ul", { className: "flex flex-col gap-1.5", children: selected.actions.map((action, idx) => /* @__PURE__ */ jsxs66("li", { className: "flex flex-col gap-0.5", children: [
8944
+ /* @__PURE__ */ jsx88(Text, { size: "xs", color: "muted", children: action.type }),
8945
+ /* @__PURE__ */ jsx88("code", { className: "rounded-v2-sm bg-v2-bg-subtle px-1.5 py-0.5 font-mono text-v2-xs text-v2-fg-default", children: action.event })
8961
8946
  ] }, idx)) })
8962
8947
  ] })
8963
8948
  ] })
@@ -8980,12 +8965,12 @@ function WorkflowDesigner({
8980
8965
  const colCount = phases.length;
8981
8966
  return /* @__PURE__ */ jsxs66("div", { className: cn("flex gap-4", className), ...props, children: [
8982
8967
  /* @__PURE__ */ jsxs66("div", { className: "min-h-[480px] flex-1 rounded-v2-lg border border-v2-border-default bg-v2-bg-subtle p-4", children: [
8983
- /* @__PURE__ */ jsx87(
8968
+ /* @__PURE__ */ jsx88(
8984
8969
  "div",
8985
8970
  {
8986
8971
  className: "mb-3 grid gap-3 border-b border-v2-border-default pb-2",
8987
8972
  style: { gridTemplateColumns: `repeat(${colCount}, minmax(0, 1fr))` },
8988
- children: phases.map((phase) => /* @__PURE__ */ jsx87(
8973
+ children: phases.map((phase) => /* @__PURE__ */ jsx88(
8989
8974
  "div",
8990
8975
  {
8991
8976
  className: "text-v2-xs font-bold uppercase tracking-wide text-v2-fg-muted",
@@ -8995,14 +8980,14 @@ function WorkflowDesigner({
8995
8980
  ))
8996
8981
  }
8997
8982
  ),
8998
- /* @__PURE__ */ jsx87(
8983
+ /* @__PURE__ */ jsx88(
8999
8984
  "div",
9000
8985
  {
9001
8986
  className: "grid gap-3",
9002
8987
  style: { gridTemplateColumns: `repeat(${colCount}, minmax(0, 1fr))` },
9003
8988
  children: phases.map((phase) => {
9004
8989
  const phaseNodes = nodes.filter((n) => n.phase === phase);
9005
- return /* @__PURE__ */ jsx87("div", { className: "flex flex-col gap-2", children: phaseNodes.map((node) => /* @__PURE__ */ jsx87(
8990
+ return /* @__PURE__ */ jsx88("div", { className: "flex flex-col gap-2", children: phaseNodes.map((node) => /* @__PURE__ */ jsx88(
9006
8991
  NodeCard,
9007
8992
  {
9008
8993
  node,
@@ -9014,21 +8999,21 @@ function WorkflowDesigner({
9014
8999
  })
9015
9000
  }
9016
9001
  ),
9017
- edges.length > 0 && /* @__PURE__ */ jsx87(
9002
+ edges.length > 0 && /* @__PURE__ */ jsx88(
9018
9003
  "div",
9019
9004
  {
9020
9005
  className: "mt-4 border-t border-v2-border-default pt-3",
9021
9006
  "aria-label": "Transi\xE7\xF5es",
9022
- children: /* @__PURE__ */ jsx87("div", { className: "flex flex-wrap gap-2", children: edges.map((edge, idx) => /* @__PURE__ */ jsxs66(
9007
+ children: /* @__PURE__ */ jsx88("div", { className: "flex flex-wrap gap-2", children: edges.map((edge, idx) => /* @__PURE__ */ jsxs66(
9023
9008
  "div",
9024
9009
  {
9025
9010
  className: "flex items-center gap-1 rounded-v2-sm border border-v2-border-default bg-v2-panel px-2 py-0.5",
9026
9011
  title: `${edge.from} \u2192 ${edge.to}`,
9027
9012
  children: [
9028
- /* @__PURE__ */ jsx87("span", { className: "font-mono text-v2-xs text-v2-fg-subtle", children: edge.from }),
9029
- /* @__PURE__ */ jsx87("span", { className: "text-v2-xs text-v2-fg-subtle", children: "\u2192" }),
9030
- /* @__PURE__ */ jsx87("span", { className: "font-mono text-v2-xs text-v2-fg-subtle", children: edge.to }),
9031
- edge.trigger && /* @__PURE__ */ jsx87(Badge, { size: "sm", variant: "default", className: "ml-1", children: edge.trigger })
9013
+ /* @__PURE__ */ jsx88("span", { className: "font-mono text-v2-xs text-v2-fg-subtle", children: edge.from }),
9014
+ /* @__PURE__ */ jsx88("span", { className: "text-v2-xs text-v2-fg-subtle", children: "\u2192" }),
9015
+ /* @__PURE__ */ jsx88("span", { className: "font-mono text-v2-xs text-v2-fg-subtle", children: edge.to }),
9016
+ edge.trigger && /* @__PURE__ */ jsx88(Badge, { size: "sm", variant: "default", className: "ml-1", children: edge.trigger })
9032
9017
  ]
9033
9018
  },
9034
9019
  idx
@@ -9036,8 +9021,8 @@ function WorkflowDesigner({
9036
9021
  }
9037
9022
  )
9038
9023
  ] }),
9039
- showPanel && /* @__PURE__ */ jsx87(SidePanel, { nodes, selectedNodeId }),
9040
- showSidePanel !== false && !selectedNodeId && /* @__PURE__ */ jsx87(SidePanel, { nodes, selectedNodeId: void 0 })
9024
+ showPanel && /* @__PURE__ */ jsx88(SidePanel, { nodes, selectedNodeId }),
9025
+ showSidePanel !== false && !selectedNodeId && /* @__PURE__ */ jsx88(SidePanel, { nodes, selectedNodeId: void 0 })
9041
9026
  ] });
9042
9027
  }
9043
9028
  export {