@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.js CHANGED
@@ -5101,13 +5101,44 @@ var Tooltip = Object.assign(TooltipRoot, {
5101
5101
  });
5102
5102
 
5103
5103
  // src/primitives/Toast/Toaster.tsx
5104
- var ToastPrimitive = __toESM(require("@radix-ui/react-toast"));
5105
- var import_react69 = require("@phosphor-icons/react");
5104
+ var import_sonner = require("sonner");
5105
+ var import_jsx_runtime55 = require("react/jsx-runtime");
5106
+ function Toaster({
5107
+ duration = 5e3,
5108
+ visibleToasts = 3,
5109
+ expand = false,
5110
+ position = "bottom-right",
5111
+ className
5112
+ }) {
5113
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
5114
+ import_sonner.Toaster,
5115
+ {
5116
+ position,
5117
+ duration,
5118
+ visibleToasts,
5119
+ expand,
5120
+ gap: 8,
5121
+ offset: 16,
5122
+ toastOptions: {
5123
+ unstyled: true,
5124
+ className: cn("w-full sm:w-[22rem]", className)
5125
+ }
5126
+ }
5127
+ );
5128
+ }
5129
+
5130
+ // src/primitives/Toast/toast-store.ts
5131
+ var import_react69 = require("react");
5132
+ var import_sonner3 = require("sonner");
5133
+
5134
+ // src/primitives/Toast/ToastCard.tsx
5135
+ var import_react68 = require("@phosphor-icons/react");
5136
+ var import_sonner2 = require("sonner");
5106
5137
 
5107
5138
  // src/primitives/Toast/Toast.styles.ts
5108
5139
  var import_class_variance_authority17 = require("class-variance-authority");
5109
- var toastStyles = (0, import_class_variance_authority17.cva)(
5110
- "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",
5140
+ var toastCardStyles = (0, import_class_variance_authority17.cva)(
5141
+ "pointer-events-auto relative flex w-full items-start gap-3 overflow-hidden rounded-v2-md border p-4 shadow-v2-3",
5111
5142
  {
5112
5143
  variants: {
5113
5144
  variant: {
@@ -5122,113 +5153,67 @@ var toastStyles = (0, import_class_variance_authority17.cva)(
5122
5153
  }
5123
5154
  );
5124
5155
 
5125
- // src/primitives/Toast/toast-store.ts
5126
- var import_react68 = require("react");
5127
- var toasts = [];
5128
- var counter = 0;
5129
- var listeners = /* @__PURE__ */ new Set();
5130
- function emit() {
5131
- for (const listener of listeners) listener();
5132
- }
5133
- function subscribe(listener) {
5134
- listeners.add(listener);
5135
- return () => {
5136
- listeners.delete(listener);
5137
- };
5138
- }
5139
- function getSnapshot() {
5140
- return toasts;
5156
+ // src/primitives/Toast/ToastCard.tsx
5157
+ var import_jsx_runtime56 = require("react/jsx-runtime");
5158
+ function ToastCard({
5159
+ id,
5160
+ title,
5161
+ description,
5162
+ variant,
5163
+ action
5164
+ }) {
5165
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: cn(toastCardStyles({ variant })), children: [
5166
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
5167
+ title && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "text-v2-sm font-semibold", children: title }),
5168
+ description && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "text-v2-sm opacity-90", children: description })
5169
+ ] }),
5170
+ action,
5171
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
5172
+ "button",
5173
+ {
5174
+ type: "button",
5175
+ "aria-label": "Fechar",
5176
+ onClick: () => import_sonner2.toast.dismiss(id),
5177
+ 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",
5178
+ children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_react68.X, { size: 16, "aria-hidden": "true" })
5179
+ }
5180
+ )
5181
+ ] });
5141
5182
  }
5183
+
5184
+ // src/primitives/Toast/toast-store.ts
5142
5185
  function normalize(input) {
5143
5186
  return typeof input === "string" ? { title: input } : input;
5144
5187
  }
5145
- function addToast(input) {
5146
- counter += 1;
5147
- const id = `toast-${counter}`;
5148
- toasts = [...toasts, { ...normalize(input), id, open: true }];
5149
- emit();
5150
- return id;
5151
- }
5152
- function dismissToast(id) {
5153
- toasts = toasts.map(
5154
- (item) => item.id === id ? { ...item, open: false } : item
5188
+ function show(input, variant) {
5189
+ const options = normalize(input);
5190
+ const resolved = variant ? { ...options, variant } : options;
5191
+ const id = import_sonner3.toast.custom(
5192
+ (toastId) => (0, import_react69.createElement)(ToastCard, {
5193
+ id: String(toastId),
5194
+ title: resolved.title,
5195
+ description: resolved.description,
5196
+ variant: resolved.variant,
5197
+ action: resolved.action
5198
+ }),
5199
+ { duration: resolved.duration }
5155
5200
  );
5156
- emit();
5157
- }
5158
- function removeToast(id) {
5159
- toasts = toasts.filter((item) => item.id !== id);
5160
- emit();
5161
- }
5162
- function withVariant(input, variant) {
5163
- return addToast({ ...normalize(input), variant });
5201
+ return String(id);
5164
5202
  }
5165
5203
  var toast = Object.assign(
5166
- (input) => addToast(input),
5204
+ (input) => show(input),
5167
5205
  {
5168
- success: (input) => withVariant(input, "success"),
5169
- warning: (input) => withVariant(input, "warning"),
5170
- danger: (input) => withVariant(input, "danger"),
5171
- info: (input) => withVariant(input, "info")
5206
+ success: (input) => show(input, "success"),
5207
+ warning: (input) => show(input, "warning"),
5208
+ danger: (input) => show(input, "danger"),
5209
+ info: (input) => show(input, "info")
5172
5210
  }
5173
5211
  );
5174
- function useToast() {
5175
- const snapshot = (0, import_react68.useSyncExternalStore)(subscribe, getSnapshot, getSnapshot);
5176
- return { toasts: snapshot, toast, dismiss: dismissToast };
5212
+ function dismissToast(id) {
5213
+ import_sonner3.toast.dismiss(id);
5177
5214
  }
5178
-
5179
- // src/primitives/Toast/Toaster.tsx
5180
- var import_jsx_runtime55 = require("react/jsx-runtime");
5181
- function Toaster({
5182
- duration = 5e3,
5183
- swipeDirection = "right",
5184
- viewportClassName
5185
- }) {
5186
- const { toasts: toasts2 } = useToast();
5187
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
5188
- ToastPrimitive.Provider,
5189
- {
5190
- duration,
5191
- swipeDirection,
5192
- children: [
5193
- toasts2.map((item) => /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
5194
- ToastPrimitive.Root,
5195
- {
5196
- open: item.open,
5197
- duration: item.duration,
5198
- onOpenChange: (open) => {
5199
- if (!open) removeToast(item.id);
5200
- },
5201
- className: cn(toastStyles({ variant: item.variant })),
5202
- children: [
5203
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
5204
- item.title && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(ToastPrimitive.Title, { className: "text-v2-sm font-semibold", children: item.title }),
5205
- item.description && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(ToastPrimitive.Description, { className: "text-v2-sm opacity-90", children: item.description })
5206
- ] }),
5207
- item.action && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(ToastPrimitive.Action, { altText: "a\xE7\xE3o", asChild: true, children: item.action }),
5208
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
5209
- ToastPrimitive.Close,
5210
- {
5211
- "aria-label": "Fechar",
5212
- 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",
5213
- children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_react69.X, { size: 16, "aria-hidden": "true" })
5214
- }
5215
- )
5216
- ]
5217
- },
5218
- item.id
5219
- )),
5220
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
5221
- ToastPrimitive.Viewport,
5222
- {
5223
- className: cn(
5224
- "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",
5225
- viewportClassName
5226
- )
5227
- }
5228
- )
5229
- ]
5230
- }
5231
- );
5215
+ function useToast() {
5216
+ return { toast, dismiss: dismissToast };
5232
5217
  }
5233
5218
 
5234
5219
  // src/patterns/AppShell/AppShell.tsx
@@ -5238,7 +5223,7 @@ var import_react73 = require("@phosphor-icons/react");
5238
5223
  var import_react70 = require("@phosphor-icons/react");
5239
5224
  var import_react71 = require("react");
5240
5225
  var import_Sidebar = require("./Sidebar-4ILVFQI5.css");
5241
- var import_jsx_runtime56 = require("react/jsx-runtime");
5226
+ var import_jsx_runtime57 = require("react/jsx-runtime");
5242
5227
  var LINK_BASE_CLASS = "flex h-full w-full items-center";
5243
5228
  function isActive(currentPath, to) {
5244
5229
  if (!currentPath) return false;
@@ -5252,7 +5237,7 @@ function ItemLink({
5252
5237
  linkComponent
5253
5238
  }) {
5254
5239
  if (item.external) {
5255
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
5240
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
5256
5241
  "a",
5257
5242
  {
5258
5243
  href: item.to,
@@ -5264,7 +5249,7 @@ function ItemLink({
5264
5249
  );
5265
5250
  }
5266
5251
  const LinkComponent = linkComponent ?? DefaultLink;
5267
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(LinkComponent, { to: item.to, className, children });
5252
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(LinkComponent, { to: item.to, className, children });
5268
5253
  }
5269
5254
  function ItemContent({
5270
5255
  item,
@@ -5272,7 +5257,7 @@ function ItemContent({
5272
5257
  active,
5273
5258
  title
5274
5259
  }) {
5275
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
5260
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
5276
5261
  "span",
5277
5262
  {
5278
5263
  title,
@@ -5282,7 +5267,7 @@ function ItemContent({
5282
5267
  active ? "bg-v2-brand-primary font-semibold text-v2-brand-on-primary" : "text-v2-fg-default hover:bg-v2-bg-subtle"
5283
5268
  ),
5284
5269
  children: [
5285
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
5270
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
5286
5271
  "span",
5287
5272
  {
5288
5273
  className: cn(
@@ -5292,9 +5277,9 @@ function ItemContent({
5292
5277
  children: item.icon
5293
5278
  }
5294
5279
  ),
5295
- !collapsed ? /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_jsx_runtime56.Fragment, { children: [
5296
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: "flex-1 truncate", children: item.label }),
5297
- item.badge !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
5280
+ !collapsed ? /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_jsx_runtime57.Fragment, { children: [
5281
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "flex-1 truncate", children: item.label }),
5282
+ item.badge !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
5298
5283
  "span",
5299
5284
  {
5300
5285
  className: cn(
@@ -5304,7 +5289,7 @@ function ItemContent({
5304
5289
  children: item.badge
5305
5290
  }
5306
5291
  )
5307
- ] }) : item.badge !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
5292
+ ] }) : item.badge !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
5308
5293
  "span",
5309
5294
  {
5310
5295
  "aria-label": `${item.badge} pendentes`,
@@ -5323,16 +5308,16 @@ function GroupItems({
5323
5308
  linkComponent,
5324
5309
  showTopDivider
5325
5310
  }) {
5326
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "flex flex-col gap-1", children: [
5327
- group.label && !collapsed && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("h3", { className: "pb-1 pl-4 pt-2 text-v2-xs font-bold uppercase tracking-[0.08em] text-v2-fg-muted", children: group.label }),
5328
- group.label && collapsed && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
5311
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "flex flex-col gap-1", children: [
5312
+ group.label && !collapsed && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("h3", { className: "pb-1 pl-4 pt-2 text-v2-xs font-bold uppercase tracking-[0.08em] text-v2-fg-muted", children: group.label }),
5313
+ group.label && collapsed && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
5329
5314
  "div",
5330
5315
  {
5331
5316
  "aria-hidden": "true",
5332
5317
  className: "mx-2 my-1 h-px bg-v2-border-default"
5333
5318
  }
5334
5319
  ),
5335
- !group.label && showTopDivider && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
5320
+ !group.label && showTopDivider && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
5336
5321
  "div",
5337
5322
  {
5338
5323
  "aria-hidden": "true",
@@ -5342,9 +5327,9 @@ function GroupItems({
5342
5327
  )
5343
5328
  }
5344
5329
  ),
5345
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("ul", { className: "flex flex-col gap-0.5", children: group.items.map((item) => {
5330
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("ul", { className: "flex flex-col gap-0.5", children: group.items.map((item) => {
5346
5331
  const active = isActive(currentPath, item.to);
5347
- const itemContent = /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
5332
+ const itemContent = /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
5348
5333
  ItemContent,
5349
5334
  {
5350
5335
  item,
@@ -5353,7 +5338,7 @@ function GroupItems({
5353
5338
  title: collapsed ? item.label : void 0
5354
5339
  }
5355
5340
  );
5356
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
5341
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
5357
5342
  "li",
5358
5343
  {
5359
5344
  "aria-current": active ? "page" : void 0,
@@ -5361,7 +5346,7 @@ function GroupItems({
5361
5346
  "ml-1.5 h-12 rounded-l-v2-pill p-1 transition-colors",
5362
5347
  active && "ds-v2-sidebar-item--active"
5363
5348
  ),
5364
- children: renderLink ? renderLink(item, itemContent) : /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
5349
+ children: renderLink ? renderLink(item, itemContent) : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
5365
5350
  ItemLink,
5366
5351
  {
5367
5352
  item,
@@ -5385,8 +5370,8 @@ function NavGroups({
5385
5370
  }) {
5386
5371
  const topGroups = groups.filter((g) => g.pin !== "bottom");
5387
5372
  const bottomGroups = groups.filter((g) => g.pin === "bottom");
5388
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("nav", { className: "ds-v2-sidebar-nav flex flex-1 flex-col gap-3 py-3", children: [
5389
- topGroups.map((group, idx) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
5373
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("nav", { className: "ds-v2-sidebar-nav flex flex-1 flex-col gap-3 py-3", children: [
5374
+ topGroups.map((group, idx) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
5390
5375
  GroupItems,
5391
5376
  {
5392
5377
  group,
@@ -5398,7 +5383,7 @@ function NavGroups({
5398
5383
  },
5399
5384
  group.label ?? `top-${idx}`
5400
5385
  )),
5401
- bottomGroups.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "mt-auto flex flex-col gap-1 pt-3", children: bottomGroups.map((group, idx) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
5386
+ bottomGroups.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "mt-auto flex flex-col gap-1 pt-3", children: bottomGroups.map((group, idx) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
5402
5387
  GroupItems,
5403
5388
  {
5404
5389
  group,
@@ -5465,7 +5450,7 @@ var Sidebar = (0, import_react71.forwardRef)(function Sidebar2({
5465
5450
  window.addEventListener("keydown", handler);
5466
5451
  return () => window.removeEventListener("keydown", handler);
5467
5452
  }, [enableShortcut, toggleCollapse]);
5468
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
5453
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
5469
5454
  "aside",
5470
5455
  {
5471
5456
  ref,
@@ -5477,7 +5462,7 @@ var Sidebar = (0, import_react71.forwardRef)(function Sidebar2({
5477
5462
  style: { width: collapsed ? collapsedWidth : expandedWidth, ...style },
5478
5463
  ...rest,
5479
5464
  children: [
5480
- /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
5465
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
5481
5466
  "div",
5482
5467
  {
5483
5468
  className: cn(
@@ -5485,16 +5470,16 @@ var Sidebar = (0, import_react71.forwardRef)(function Sidebar2({
5485
5470
  collapsed ? "justify-center px-0" : "justify-between"
5486
5471
  ),
5487
5472
  children: [
5488
- headerSlot && !collapsed && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { children: headerSlot }),
5489
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
5473
+ headerSlot && !collapsed && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { children: headerSlot }),
5474
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
5490
5475
  Tooltip,
5491
5476
  {
5492
5477
  side: "right",
5493
- content: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("span", { children: [
5478
+ content: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("span", { children: [
5494
5479
  collapsed ? "Expandir menu" : "Recolher menu",
5495
- enableShortcut && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: "ml-1 text-v2-fg-muted", children: getShortcutLabel("B") })
5480
+ enableShortcut && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "ml-1 text-v2-fg-muted", children: getShortcutLabel("B") })
5496
5481
  ] }),
5497
- children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
5482
+ children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
5498
5483
  "button",
5499
5484
  {
5500
5485
  type: "button",
@@ -5504,7 +5489,7 @@ var Sidebar = (0, import_react71.forwardRef)(function Sidebar2({
5504
5489
  className: cn(
5505
5490
  "inline-flex size-8 shrink-0 items-center justify-center rounded-v2-md text-current transition-colors hover:bg-v2-bg-subtle"
5506
5491
  ),
5507
- children: collapsed ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_react70.CaretDoubleRight, { size: 16 }) : /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_react70.CaretDoubleLeft, { size: 16 })
5492
+ children: collapsed ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_react70.CaretDoubleRight, { size: 16 }) : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_react70.CaretDoubleLeft, { size: 16 })
5508
5493
  }
5509
5494
  )
5510
5495
  }
@@ -5512,7 +5497,7 @@ var Sidebar = (0, import_react71.forwardRef)(function Sidebar2({
5512
5497
  ]
5513
5498
  }
5514
5499
  ),
5515
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
5500
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
5516
5501
  NavGroups,
5517
5502
  {
5518
5503
  groups,
@@ -5529,7 +5514,7 @@ var Sidebar = (0, import_react71.forwardRef)(function Sidebar2({
5529
5514
 
5530
5515
  // src/patterns/Topbar/Topbar.tsx
5531
5516
  var import_react72 = require("react");
5532
- var import_jsx_runtime57 = require("react/jsx-runtime");
5517
+ var import_jsx_runtime58 = require("react/jsx-runtime");
5533
5518
  var Topbar = (0, import_react72.forwardRef)(function Topbar2({
5534
5519
  pageTitle,
5535
5520
  searchTrigger,
@@ -5540,7 +5525,7 @@ var Topbar = (0, import_react72.forwardRef)(function Topbar2({
5540
5525
  className,
5541
5526
  ...props
5542
5527
  }, ref) {
5543
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
5528
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
5544
5529
  "header",
5545
5530
  {
5546
5531
  ref,
@@ -5553,9 +5538,9 @@ var Topbar = (0, import_react72.forwardRef)(function Topbar2({
5553
5538
  ),
5554
5539
  ...props,
5555
5540
  children: [
5556
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "flex min-w-0 flex-1 items-center gap-3", children: pageTitle && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("h2", { className: "truncate text-v2-sm font-bold", children: pageTitle }) }),
5557
- searchTrigger && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "flex flex-1 items-center justify-center", children: searchTrigger }),
5558
- /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "flex flex-1 items-center justify-end gap-2", children: [
5541
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "flex min-w-0 flex-1 items-center gap-3", children: pageTitle && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("h2", { className: "truncate text-v2-sm font-bold", children: pageTitle }) }),
5542
+ searchTrigger && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "flex flex-1 items-center justify-center", children: searchTrigger }),
5543
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "flex flex-1 items-center justify-end gap-2", children: [
5559
5544
  notificationCenter,
5560
5545
  themeToggle,
5561
5546
  userMenu
@@ -5567,7 +5552,7 @@ var Topbar = (0, import_react72.forwardRef)(function Topbar2({
5567
5552
  Topbar.displayName = "Topbar";
5568
5553
 
5569
5554
  // src/patterns/AppShell/AppShell.tsx
5570
- var import_jsx_runtime58 = require("react/jsx-runtime");
5555
+ var import_jsx_runtime59 = require("react/jsx-runtime");
5571
5556
  var DEFAULT_GROUPS = [
5572
5557
  {
5573
5558
  label: null,
@@ -5575,55 +5560,55 @@ var DEFAULT_GROUPS = [
5575
5560
  {
5576
5561
  id: "home",
5577
5562
  label: "P\xE1gina inicial",
5578
- icon: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react73.House, { size: 20 }),
5563
+ icon: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react73.House, { size: 20 }),
5579
5564
  to: "/"
5580
5565
  },
5581
5566
  {
5582
5567
  id: "users",
5583
5568
  label: "Usu\xE1rios",
5584
- icon: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react73.Users, { size: 20 }),
5569
+ icon: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react73.Users, { size: 20 }),
5585
5570
  to: "/users"
5586
5571
  },
5587
5572
  {
5588
5573
  id: "orgs",
5589
5574
  label: "Organiza\xE7\xF5es",
5590
- icon: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react73.Buildings, { size: 20 }),
5575
+ icon: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react73.Buildings, { size: 20 }),
5591
5576
  to: "/organizations"
5592
5577
  },
5593
5578
  {
5594
5579
  id: "configs-op",
5595
5580
  label: "Configs Opera\xE7\xE3o",
5596
- icon: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react73.Briefcase, { size: 20 }),
5581
+ icon: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react73.Briefcase, { size: 20 }),
5597
5582
  to: "/configs/operation"
5598
5583
  },
5599
5584
  {
5600
5585
  id: "clients",
5601
5586
  label: "Clientes",
5602
- icon: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react73.UsersThree, { size: 20 }),
5587
+ icon: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react73.UsersThree, { size: 20 }),
5603
5588
  to: "/clients"
5604
5589
  },
5605
5590
  {
5606
5591
  id: "requests",
5607
5592
  label: "Requisi\xE7\xF5es",
5608
- icon: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react73.PaperPlaneTilt, { size: 20 }),
5593
+ icon: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react73.PaperPlaneTilt, { size: 20 }),
5609
5594
  to: "/requests"
5610
5595
  },
5611
5596
  {
5612
5597
  id: "operations",
5613
5598
  label: "Opera\xE7\xF5es",
5614
- icon: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react73.Receipt, { size: 20 }),
5599
+ icon: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react73.Receipt, { size: 20 }),
5615
5600
  to: "/operations"
5616
5601
  },
5617
5602
  {
5618
5603
  id: "finance",
5619
5604
  label: "Financeiro",
5620
- icon: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react73.Coins, { size: 20 }),
5605
+ icon: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react73.Coins, { size: 20 }),
5621
5606
  to: "/finance"
5622
5607
  },
5623
5608
  {
5624
5609
  id: "configurations",
5625
5610
  label: "Configura\xE7\xF5es",
5626
- icon: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react73.Gear, { size: 20 }),
5611
+ icon: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react73.Gear, { size: 20 }),
5627
5612
  to: "/configurations"
5628
5613
  }
5629
5614
  ]
@@ -5634,15 +5619,15 @@ var DEFAULT_GROUPS = [
5634
5619
  {
5635
5620
  id: "tutorials",
5636
5621
  label: "Tutoriais",
5637
- icon: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react73.GraduationCap, { size: 20 }),
5622
+ icon: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react73.GraduationCap, { size: 20 }),
5638
5623
  to: "/tutorials"
5639
5624
  }
5640
5625
  ]
5641
5626
  }
5642
5627
  ];
5643
- var DEFAULT_HEADER_SLOT = /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("span", { className: "flex items-center gap-1.5", children: [
5644
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react73.Bank, { size: 20, "aria-hidden": "true" }),
5645
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "text-v2-base font-bold text-v2-fg-default", children: "HUMU" })
5628
+ var DEFAULT_HEADER_SLOT = /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("span", { className: "flex items-center gap-1.5", children: [
5629
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react73.Bank, { size: 20, "aria-hidden": "true" }),
5630
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "text-v2-base font-bold text-v2-fg-default", children: "HUMU" })
5646
5631
  ] });
5647
5632
  function AppShell({
5648
5633
  children,
@@ -5657,8 +5642,8 @@ function AppShell({
5657
5642
  headerSlot = DEFAULT_HEADER_SLOT,
5658
5643
  defaultSidebarCollapsed = false
5659
5644
  }) {
5660
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "flex h-screen overflow-hidden bg-v2-canvas text-v2-fg-default", children: [
5661
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
5645
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "flex h-screen overflow-hidden bg-v2-canvas text-v2-fg-default", children: [
5646
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
5662
5647
  "a",
5663
5648
  {
5664
5649
  href: "#main-content",
@@ -5666,7 +5651,7 @@ function AppShell({
5666
5651
  children: "Pular para o conte\xFAdo"
5667
5652
  }
5668
5653
  ),
5669
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
5654
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
5670
5655
  Sidebar,
5671
5656
  {
5672
5657
  groups: sidebarGroups,
@@ -5676,8 +5661,8 @@ function AppShell({
5676
5661
  headerSlot
5677
5662
  }
5678
5663
  ),
5679
- /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "flex min-h-0 min-w-0 flex-1 flex-col", children: [
5680
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
5664
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "flex min-h-0 min-w-0 flex-1 flex-col", children: [
5665
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
5681
5666
  Topbar,
5682
5667
  {
5683
5668
  pageTitle,
@@ -5687,14 +5672,14 @@ function AppShell({
5687
5672
  userMenu
5688
5673
  }
5689
5674
  ),
5690
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
5675
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
5691
5676
  "main",
5692
5677
  {
5693
5678
  id: "main-content",
5694
5679
  role: "main",
5695
5680
  tabIndex: -1,
5696
5681
  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",
5697
- children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "flex-1 rounded-v2-lg border border-v2-border-default bg-v2-shell p-4 shadow-sm sm:p-6", children })
5682
+ children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "flex-1 rounded-v2-lg border border-v2-border-default bg-v2-shell p-4 shadow-sm sm:p-6", children })
5698
5683
  }
5699
5684
  )
5700
5685
  ] })
@@ -5705,7 +5690,7 @@ AppShell.displayName = "AppShell";
5705
5690
  // src/patterns/KpiHero/KpiHero.tsx
5706
5691
  var import_react74 = require("react");
5707
5692
  var import_react75 = require("@phosphor-icons/react");
5708
- var import_jsx_runtime59 = require("react/jsx-runtime");
5693
+ var import_jsx_runtime60 = require("react/jsx-runtime");
5709
5694
  var iconBgClass = {
5710
5695
  brand: "bg-v2-brand-bg-soft text-v2-brand-text-dark",
5711
5696
  info: "bg-v2-info-soft text-v2-info-500",
@@ -5726,9 +5711,9 @@ var trendToneClass = {
5726
5711
  flat: "bg-v2-bg-subtle text-v2-fg-muted"
5727
5712
  };
5728
5713
  var arrowIcon2 = {
5729
- up: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react75.ArrowUp, { size: 11, weight: "bold", "aria-hidden": "true" }),
5730
- down: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react75.ArrowDown, { size: 11, weight: "bold", "aria-hidden": "true" }),
5731
- flat: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react75.Minus, { size: 11, weight: "bold", "aria-hidden": "true" })
5714
+ up: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react75.ArrowUp, { size: 11, weight: "bold", "aria-hidden": "true" }),
5715
+ down: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react75.ArrowDown, { size: 11, weight: "bold", "aria-hidden": "true" }),
5716
+ flat: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react75.Minus, { size: 11, weight: "bold", "aria-hidden": "true" })
5732
5717
  };
5733
5718
  function buildSparklinePaths(data) {
5734
5719
  const width = 100;
@@ -5763,9 +5748,9 @@ function KpiHero({
5763
5748
  const gradientId = `spark-${rawId.replace(/[:]/g, "")}`;
5764
5749
  const hasSparkline = sparkline !== void 0 && sparkline.length >= 2;
5765
5750
  const sparkPaths = sparkline !== void 0 && hasSparkline ? buildSparklinePaths(sparkline) : null;
5766
- const inner = /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_jsx_runtime59.Fragment, { children: [
5767
- /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "flex items-start justify-between", children: [
5768
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
5751
+ const inner = /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_jsx_runtime60.Fragment, { children: [
5752
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "flex items-start justify-between", children: [
5753
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
5769
5754
  "span",
5770
5755
  {
5771
5756
  className: cn(
@@ -5775,7 +5760,7 @@ function KpiHero({
5775
5760
  children: icon
5776
5761
  }
5777
5762
  ),
5778
- trend && /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
5763
+ trend && /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
5779
5764
  "span",
5780
5765
  {
5781
5766
  className: cn(
@@ -5789,10 +5774,10 @@ function KpiHero({
5789
5774
  }
5790
5775
  )
5791
5776
  ] }),
5792
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "text-v2-xs font-semibold uppercase tracking-wide text-v2-fg-muted", children: label }),
5793
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "text-[30px] font-extrabold tabular-nums leading-none text-v2-fg-default", children: value }),
5794
- sub && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "text-v2-xs text-v2-fg-muted", children: sub }),
5795
- hasSparkline && sparkPaths && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: cn("-mt-0.5 h-9 w-full", sparkColorClass[tone]), children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
5777
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("span", { className: "text-v2-xs font-semibold uppercase tracking-wide text-v2-fg-muted", children: label }),
5778
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("span", { className: "text-[30px] font-extrabold tabular-nums leading-none text-v2-fg-default", children: value }),
5779
+ sub && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("span", { className: "text-v2-xs text-v2-fg-muted", children: sub }),
5780
+ hasSparkline && sparkPaths && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: cn("-mt-0.5 h-9 w-full", sparkColorClass[tone]), children: /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
5796
5781
  "svg",
5797
5782
  {
5798
5783
  viewBox: "0 0 100 36",
@@ -5800,11 +5785,11 @@ function KpiHero({
5800
5785
  className: "size-full",
5801
5786
  "aria-hidden": "true",
5802
5787
  children: [
5803
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("linearGradient", { id: gradientId, x1: "0", y1: "0", x2: "0", y2: "1", children: [
5804
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("stop", { offset: "0%", stopColor: "currentColor", stopOpacity: "0.3" }),
5805
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("stop", { offset: "100%", stopColor: "currentColor", stopOpacity: "0" })
5788
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("linearGradient", { id: gradientId, x1: "0", y1: "0", x2: "0", y2: "1", children: [
5789
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("stop", { offset: "0%", stopColor: "currentColor", stopOpacity: "0.3" }),
5790
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("stop", { offset: "100%", stopColor: "currentColor", stopOpacity: "0" })
5806
5791
  ] }) }),
5807
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
5792
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
5808
5793
  "path",
5809
5794
  {
5810
5795
  d: sparkPaths.area,
@@ -5812,7 +5797,7 @@ function KpiHero({
5812
5797
  stroke: "none"
5813
5798
  }
5814
5799
  ),
5815
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
5800
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
5816
5801
  "path",
5817
5802
  {
5818
5803
  d: sparkPaths.line,
@@ -5825,17 +5810,17 @@ function KpiHero({
5825
5810
  ]
5826
5811
  }
5827
5812
  ) }),
5828
- to && cta && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "text-v2-xs font-bold text-v2-action-primary opacity-0 transition-opacity group-hover:opacity-100", children: cta })
5813
+ to && cta && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("span", { className: "text-v2-xs font-bold text-v2-action-primary opacity-0 transition-opacity group-hover:opacity-100", children: cta })
5829
5814
  ] });
5830
5815
  if (to) {
5831
5816
  const LinkComponent = linkComponent ?? DefaultLink;
5832
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(LinkComponent, { to, className: containerClass, children: inner });
5817
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(LinkComponent, { to, className: containerClass, children: inner });
5833
5818
  }
5834
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: containerClass, children: inner });
5819
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: containerClass, children: inner });
5835
5820
  }
5836
5821
 
5837
5822
  // src/patterns/DashboardBlock/DashboardBlock.tsx
5838
- var import_jsx_runtime60 = require("react/jsx-runtime");
5823
+ var import_jsx_runtime61 = require("react/jsx-runtime");
5839
5824
  function DashboardBlock({
5840
5825
  available,
5841
5826
  reason,
@@ -5846,7 +5831,7 @@ function DashboardBlock({
5846
5831
  children
5847
5832
  }) {
5848
5833
  if (loading) {
5849
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
5834
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5850
5835
  "div",
5851
5836
  {
5852
5837
  "data-testid": "dashboard-block-skeleton",
@@ -5856,9 +5841,9 @@ function DashboardBlock({
5856
5841
  }
5857
5842
  if (!available) {
5858
5843
  if (reason === "source_data_missing") {
5859
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("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: [
5860
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Text, { size: "sm", weight: "semibold", children: "Fonte de dados indispon\xEDvel no momento" }),
5861
- onRetry && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
5844
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("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: [
5845
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Text, { size: "sm", weight: "semibold", children: "Fonte de dados indispon\xEDvel no momento" }),
5846
+ onRetry && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5862
5847
  Button,
5863
5848
  {
5864
5849
  type: "button",
@@ -5873,15 +5858,15 @@ function DashboardBlock({
5873
5858
  return null;
5874
5859
  }
5875
5860
  if (isEmpty) {
5876
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("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__ */ (0, import_jsx_runtime60.jsx)(Text, { size: "sm", color: "muted", children: emptyLabel }) });
5861
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("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__ */ (0, import_jsx_runtime61.jsx)(Text, { size: "sm", color: "muted", children: emptyLabel }) });
5877
5862
  }
5878
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_jsx_runtime60.Fragment, { children });
5863
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_jsx_runtime61.Fragment, { children });
5879
5864
  }
5880
5865
 
5881
5866
  // src/patterns/LegalDocumentRenderer/LegalDocumentRenderer.tsx
5882
5867
  var import_react_markdown = __toESM(require("react-markdown"));
5883
5868
  var import_remark_gfm = __toESM(require("remark-gfm"));
5884
- var import_jsx_runtime61 = require("react/jsx-runtime");
5869
+ var import_jsx_runtime62 = require("react/jsx-runtime");
5885
5870
  function formatLastUpdated(iso) {
5886
5871
  if (!iso) return "";
5887
5872
  const date = new Date(iso);
@@ -5892,16 +5877,16 @@ function formatLastUpdated(iso) {
5892
5877
  }).format(date);
5893
5878
  }
5894
5879
  var markdownComponents = {
5895
- h1: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Heading, { level: 2, size: "xl", children }),
5896
- h2: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Heading, { level: 3, size: "lg", children }),
5897
- h3: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Heading, { level: 4, size: "md", children }),
5898
- p: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Text, { size: "base", color: "default", className: "leading-relaxed", children }),
5899
- ul: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("ul", { className: "ml-6 flex list-disc flex-col gap-1 text-v2-base text-v2-fg-default", children }),
5900
- ol: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("ol", { className: "ml-6 flex list-decimal flex-col gap-1 text-v2-base text-v2-fg-default", children }),
5901
- li: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("li", { children }),
5880
+ h1: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Heading, { level: 2, size: "xl", children }),
5881
+ h2: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Heading, { level: 3, size: "lg", children }),
5882
+ h3: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Heading, { level: 4, size: "md", children }),
5883
+ p: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Text, { size: "base", color: "default", className: "leading-relaxed", children }),
5884
+ ul: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("ul", { className: "ml-6 flex list-disc flex-col gap-1 text-v2-base text-v2-fg-default", children }),
5885
+ ol: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("ol", { className: "ml-6 flex list-decimal flex-col gap-1 text-v2-base text-v2-fg-default", children }),
5886
+ li: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("li", { children }),
5902
5887
  a: ({ href, children }) => {
5903
5888
  const isExternal = href == null ? void 0 : href.startsWith("http");
5904
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5889
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
5905
5890
  "a",
5906
5891
  {
5907
5892
  href,
@@ -5912,14 +5897,14 @@ var markdownComponents = {
5912
5897
  }
5913
5898
  );
5914
5899
  },
5915
- strong: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("strong", { className: "font-semibold text-v2-fg-default", children }),
5916
- em: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("em", { className: "italic", children }),
5917
- hr: () => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("hr", { className: "my-2 border-t border-v2-border-default" }),
5918
- table: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "overflow-x-auto", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("table", { className: "w-full border-collapse text-v2-sm", children }) }),
5919
- th: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("th", { className: "border-b border-v2-border-default bg-v2-bg-subtle px-3 py-2 text-left font-semibold", children }),
5920
- td: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("td", { className: "border-b border-v2-border-subtle px-3 py-2", children }),
5921
- blockquote: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("blockquote", { className: "border-l-4 border-v2-border-default pl-4 italic text-v2-fg-muted", children }),
5922
- code: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("code", { className: "rounded-v2-sm bg-v2-bg-subtle px-1 py-0.5 font-mono text-v2-xs", children })
5900
+ strong: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("strong", { className: "font-semibold text-v2-fg-default", children }),
5901
+ em: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("em", { className: "italic", children }),
5902
+ hr: () => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("hr", { className: "my-2 border-t border-v2-border-default" }),
5903
+ table: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "overflow-x-auto", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("table", { className: "w-full border-collapse text-v2-sm", children }) }),
5904
+ th: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("th", { className: "border-b border-v2-border-default bg-v2-bg-subtle px-3 py-2 text-left font-semibold", children }),
5905
+ td: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("td", { className: "border-b border-v2-border-subtle px-3 py-2", children }),
5906
+ blockquote: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("blockquote", { className: "border-l-4 border-v2-border-default pl-4 italic text-v2-fg-muted", children }),
5907
+ code: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("code", { className: "rounded-v2-sm bg-v2-bg-subtle px-1 py-0.5 font-mono text-v2-xs", children })
5923
5908
  };
5924
5909
  function LegalDocumentRenderer({
5925
5910
  document: document2,
@@ -5932,16 +5917,16 @@ function LegalDocumentRenderer({
5932
5917
  className
5933
5918
  }) {
5934
5919
  if (isLoading) {
5935
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: cn("flex flex-col gap-3", className), children: loadingState ?? /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_jsx_runtime61.Fragment, { children: [
5936
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Skeleton, { shape: "text", style: { width: "60%", height: 24 } }),
5937
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Skeleton, { shape: "text", style: { width: "100%", height: 14 } }),
5938
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Skeleton, { shape: "text", style: { width: "95%", height: 14 } }),
5939
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Skeleton, { shape: "text", style: { width: "90%", height: 14 } }),
5940
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Skeleton, { shape: "text", style: { width: "85%", height: 14 } })
5920
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: cn("flex flex-col gap-3", className), children: loadingState ?? /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_jsx_runtime62.Fragment, { children: [
5921
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Skeleton, { shape: "text", style: { width: "60%", height: 24 } }),
5922
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Skeleton, { shape: "text", style: { width: "100%", height: 14 } }),
5923
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Skeleton, { shape: "text", style: { width: "95%", height: 14 } }),
5924
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Skeleton, { shape: "text", style: { width: "90%", height: 14 } }),
5925
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Skeleton, { shape: "text", style: { width: "85%", height: 14 } })
5941
5926
  ] }) });
5942
5927
  }
5943
5928
  if (error || !document2) {
5944
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5929
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
5945
5930
  "div",
5946
5931
  {
5947
5932
  className: cn(
@@ -5949,18 +5934,18 @@ function LegalDocumentRenderer({
5949
5934
  className
5950
5935
  ),
5951
5936
  role: "alert",
5952
- children: errorState ?? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Text, { size: "sm", color: "default", children: "N\xE3o foi poss\xEDvel carregar o documento." })
5937
+ children: errorState ?? /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Text, { size: "sm", color: "default", children: "N\xE3o foi poss\xEDvel carregar o documento." })
5953
5938
  }
5954
5939
  );
5955
5940
  }
5956
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("article", { className: cn("flex flex-col gap-4", className), children: [
5957
- title && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Heading, { level: 1, size: "2xl", children: title }),
5958
- document2.lastUpdated && /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(Text, { size: "xs", color: "muted", children: [
5941
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("article", { className: cn("flex flex-col gap-4", className), children: [
5942
+ title && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Heading, { level: 1, size: "2xl", children: title }),
5943
+ document2.lastUpdated && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(Text, { size: "xs", color: "muted", children: [
5959
5944
  lastUpdatedLabel,
5960
5945
  ": ",
5961
5946
  formatLastUpdated(document2.lastUpdated)
5962
5947
  ] }),
5963
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "flex flex-col gap-4 text-v2-base text-v2-fg-default", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5948
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "flex flex-col gap-4 text-v2-base text-v2-fg-default", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
5964
5949
  import_react_markdown.default,
5965
5950
  {
5966
5951
  remarkPlugins: [import_remark_gfm.default],
@@ -5978,7 +5963,7 @@ var import_react78 = require("react");
5978
5963
  // src/patterns/SortableColumnHeader/SortableColumnHeader.tsx
5979
5964
  var import_react76 = require("react");
5980
5965
  var import_react77 = require("@phosphor-icons/react");
5981
- var import_jsx_runtime62 = require("react/jsx-runtime");
5966
+ var import_jsx_runtime63 = require("react/jsx-runtime");
5982
5967
  function nextDirection(current, cycleMode) {
5983
5968
  if (cycleMode === "asc-desc") {
5984
5969
  return current === "asc" ? "desc" : "asc";
@@ -6004,7 +5989,7 @@ var SortableColumnHeader = (0, import_react76.forwardRef)(
6004
5989
  type = "button",
6005
5990
  ...props
6006
5991
  }, ref) => {
6007
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
5992
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
6008
5993
  "button",
6009
5994
  {
6010
5995
  ref,
@@ -6022,8 +6007,8 @@ var SortableColumnHeader = (0, import_react76.forwardRef)(
6022
6007
  },
6023
6008
  ...props,
6024
6009
  children: [
6025
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { children: label }),
6026
- direction === "asc" ? /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_react77.CaretUp, { size: 12, weight: "bold", "aria-hidden": "true" }) : direction === "desc" ? /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_react77.CaretDown, { size: 12, weight: "bold", "aria-hidden": "true" }) : /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_react77.CaretUpDown, { size: 12, "aria-hidden": "true", className: "opacity-60" })
6010
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { children: label }),
6011
+ direction === "asc" ? /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_react77.CaretUp, { size: 12, weight: "bold", "aria-hidden": "true" }) : direction === "desc" ? /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_react77.CaretDown, { size: 12, weight: "bold", "aria-hidden": "true" }) : /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_react77.CaretUpDown, { size: 12, "aria-hidden": "true", className: "opacity-60" })
6027
6012
  ]
6028
6013
  }
6029
6014
  );
@@ -6032,7 +6017,7 @@ var SortableColumnHeader = (0, import_react76.forwardRef)(
6032
6017
  SortableColumnHeader.displayName = "SortableColumnHeader";
6033
6018
 
6034
6019
  // src/patterns/DataTable/DataTable.tsx
6035
- var import_jsx_runtime63 = require("react/jsx-runtime");
6020
+ var import_jsx_runtime64 = require("react/jsx-runtime");
6036
6021
  var densityCellClass = {
6037
6022
  compact: "px-3 py-1.5",
6038
6023
  comfortable: "px-3 py-3"
@@ -6069,7 +6054,7 @@ function DataTableInner({
6069
6054
  }, ref) {
6070
6055
  const cellPadding = densityCellClass[density];
6071
6056
  const seenRowKeys = /* @__PURE__ */ new Set();
6072
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "overflow-x-auto", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
6057
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "overflow-x-auto", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
6073
6058
  "table",
6074
6059
  {
6075
6060
  ref,
@@ -6077,14 +6062,14 @@ function DataTableInner({
6077
6062
  className: cn("w-full border-collapse text-v2-sm", className),
6078
6063
  ...props,
6079
6064
  children: [
6080
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
6065
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6081
6066
  "thead",
6082
6067
  {
6083
6068
  className: cn(
6084
6069
  "border-b border-v2-border-default bg-v2-bg-subtle",
6085
6070
  stickyHeader && "sticky top-0 z-10"
6086
6071
  ),
6087
- children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("tr", { children: columns.map((col) => /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
6072
+ children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("tr", { children: columns.map((col) => /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6088
6073
  "th",
6089
6074
  {
6090
6075
  scope: "col",
@@ -6099,7 +6084,7 @@ function DataTableInner({
6099
6084
  col.align === "center" && "text-center",
6100
6085
  col.align !== "right" && col.align !== "center" && "text-left"
6101
6086
  ),
6102
- children: col.sortable && onSortChange ? /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
6087
+ children: col.sortable && onSortChange ? /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6103
6088
  SortableColumnHeader,
6104
6089
  {
6105
6090
  label: col.label,
@@ -6122,18 +6107,18 @@ function DataTableInner({
6122
6107
  )) })
6123
6108
  }
6124
6109
  ),
6125
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("tbody", { children: loading ? Array.from({ length: loadingRowCount }).map((_, idx) => /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
6110
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("tbody", { children: loading ? Array.from({ length: loadingRowCount }).map((_, idx) => /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6126
6111
  "tr",
6127
6112
  {
6128
6113
  className: "border-b border-v2-border-default",
6129
- children: columns.map((col) => /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("td", { className: cellPadding, children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Skeleton, { className: "h-4 w-full" }) }, col.key))
6114
+ children: columns.map((col) => /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("td", { className: cellPadding, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Skeleton, { className: "h-4 w-full" }) }, col.key))
6130
6115
  },
6131
6116
  `skeleton-${idx}`
6132
- )) : rows.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("tr", { children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("td", { colSpan: columns.length, className: "py-12 text-center", children: emptyState ?? /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { className: "text-v2-sm text-v2-fg-muted", children: "Nenhum item." }) }) }) : rows.map((row, index) => {
6117
+ )) : rows.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("tr", { children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("td", { colSpan: columns.length, className: "py-12 text-center", children: emptyState ?? /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: "text-v2-sm text-v2-fg-muted", children: "Nenhum item." }) }) }) : rows.map((row, index) => {
6133
6118
  const baseKey = rowKey(row);
6134
6119
  const uniqueKey = seenRowKeys.has(baseKey) ? `${baseKey}__${index}` : baseKey;
6135
6120
  seenRowKeys.add(baseKey);
6136
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
6121
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6137
6122
  "tr",
6138
6123
  {
6139
6124
  className: cn(
@@ -6141,7 +6126,7 @@ function DataTableInner({
6141
6126
  zebra && index % 2 === 1 && "bg-v2-bg-subtle/50",
6142
6127
  rowClassName == null ? void 0 : rowClassName(row, index)
6143
6128
  ),
6144
- children: columns.map((col) => /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
6129
+ children: columns.map((col) => /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6145
6130
  "td",
6146
6131
  {
6147
6132
  className: cn(
@@ -6168,7 +6153,7 @@ var DataTable = (0, import_react78.forwardRef)(
6168
6153
  // src/patterns/DataTablePagination/DataTablePagination.tsx
6169
6154
  var import_react79 = require("react");
6170
6155
  var import_react80 = require("@phosphor-icons/react");
6171
- var import_jsx_runtime64 = require("react/jsx-runtime");
6156
+ var import_jsx_runtime65 = require("react/jsx-runtime");
6172
6157
  var DEFAULT_PER_PAGE_OPTIONS = [5, 10, 20, 30, 50, 70, 100];
6173
6158
  function buildPageNumbers(page, totalPages, siblingCount) {
6174
6159
  if (totalPages <= 7) {
@@ -6210,7 +6195,7 @@ var DataTablePagination = (0, import_react79.forwardRef)(
6210
6195
  const last = Math.min(page * perPage, total);
6211
6196
  const totalPages = Math.max(1, Math.ceil(total / perPage));
6212
6197
  const pages = buildPageNumbers(page, totalPages, siblingCount);
6213
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
6198
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
6214
6199
  "nav",
6215
6200
  {
6216
6201
  ref,
@@ -6221,10 +6206,10 @@ var DataTablePagination = (0, import_react79.forwardRef)(
6221
6206
  ),
6222
6207
  ...props,
6223
6208
  children: [
6224
- /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("p", { className: "text-v2-sm text-v2-fg-muted", children: [
6209
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("p", { className: "text-v2-sm text-v2-fg-muted", children: [
6225
6210
  showingLabel,
6226
6211
  " ",
6227
- /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("strong", { className: "tabular-nums text-v2-fg-default", children: [
6212
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("strong", { className: "tabular-nums text-v2-fg-default", children: [
6228
6213
  first,
6229
6214
  "-",
6230
6215
  last
@@ -6232,13 +6217,13 @@ var DataTablePagination = (0, import_react79.forwardRef)(
6232
6217
  " ",
6233
6218
  ofLabel,
6234
6219
  " ",
6235
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("strong", { className: "tabular-nums text-v2-fg-default", children: total })
6220
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("strong", { className: "tabular-nums text-v2-fg-default", children: total })
6236
6221
  ] }),
6237
- /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "flex items-center gap-3", children: [
6238
- onPerPageChange && /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "flex items-center gap-2", children: [
6239
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: "text-v2-sm text-v2-fg-muted", children: perPageLabel }),
6240
- /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(Popover, { open: perPageOpen, onOpenChange: setPerPageOpen, children: [
6241
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Popover.Trigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
6222
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "flex items-center gap-3", children: [
6223
+ onPerPageChange && /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "flex items-center gap-2", children: [
6224
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { className: "text-v2-sm text-v2-fg-muted", children: perPageLabel }),
6225
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(Popover, { open: perPageOpen, onOpenChange: setPerPageOpen, children: [
6226
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Popover.Trigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
6242
6227
  "button",
6243
6228
  {
6244
6229
  type: "button",
@@ -6247,14 +6232,14 @@ var DataTablePagination = (0, import_react79.forwardRef)(
6247
6232
  "aria-expanded": perPageOpen,
6248
6233
  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",
6249
6234
  children: [
6250
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: "tabular-nums", children: perPage }),
6251
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_react80.CaretDown, { size: 12, weight: "bold", "aria-hidden": "true" })
6235
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { className: "tabular-nums", children: perPage }),
6236
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react80.CaretDown, { size: 12, weight: "bold", "aria-hidden": "true" })
6252
6237
  ]
6253
6238
  }
6254
6239
  ) }),
6255
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Popover.Content, { align: "end", className: "w-24 p-1", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("ul", { role: "listbox", className: "flex flex-col gap-0.5", children: perPageOptions.map((opt) => {
6240
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Popover.Content, { align: "end", className: "w-24 p-1", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("ul", { role: "listbox", className: "flex flex-col gap-0.5", children: perPageOptions.map((opt) => {
6256
6241
  const selected = opt === perPage;
6257
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
6242
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
6258
6243
  "button",
6259
6244
  {
6260
6245
  type: "button",
@@ -6270,7 +6255,7 @@ var DataTablePagination = (0, import_react79.forwardRef)(
6270
6255
  ),
6271
6256
  children: [
6272
6257
  opt,
6273
- selected && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6258
+ selected && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6274
6259
  import_react80.Check,
6275
6260
  {
6276
6261
  size: 12,
@@ -6284,8 +6269,8 @@ var DataTablePagination = (0, import_react79.forwardRef)(
6284
6269
  }) }) })
6285
6270
  ] })
6286
6271
  ] }),
6287
- /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("ul", { className: "flex items-center gap-1", children: [
6288
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6272
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("ul", { className: "flex items-center gap-1", children: [
6273
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6289
6274
  "button",
6290
6275
  {
6291
6276
  type: "button",
@@ -6296,11 +6281,11 @@ var DataTablePagination = (0, import_react79.forwardRef)(
6296
6281
  "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",
6297
6282
  "disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:bg-transparent"
6298
6283
  ),
6299
- children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_react80.CaretLeft, { size: 14, weight: "bold", "aria-hidden": "true" })
6284
+ children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react80.CaretLeft, { size: 14, weight: "bold", "aria-hidden": "true" })
6300
6285
  }
6301
6286
  ) }),
6302
6287
  pages.map(
6303
- (p, idx) => p === "ellipsis" ? /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6288
+ (p, idx) => p === "ellipsis" ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6304
6289
  "li",
6305
6290
  {
6306
6291
  "aria-hidden": "true",
@@ -6308,7 +6293,7 @@ var DataTablePagination = (0, import_react79.forwardRef)(
6308
6293
  children: "\u2026"
6309
6294
  },
6310
6295
  `ellipsis-${idx}`
6311
- ) : /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6296
+ ) : /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6312
6297
  "button",
6313
6298
  {
6314
6299
  type: "button",
@@ -6323,7 +6308,7 @@ var DataTablePagination = (0, import_react79.forwardRef)(
6323
6308
  }
6324
6309
  ) }, p)
6325
6310
  ),
6326
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6311
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6327
6312
  "button",
6328
6313
  {
6329
6314
  type: "button",
@@ -6334,7 +6319,7 @@ var DataTablePagination = (0, import_react79.forwardRef)(
6334
6319
  "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",
6335
6320
  "disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:bg-transparent"
6336
6321
  ),
6337
- children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_react80.CaretRight, { size: 14, weight: "bold", "aria-hidden": "true" })
6322
+ children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react80.CaretRight, { size: 14, weight: "bold", "aria-hidden": "true" })
6338
6323
  }
6339
6324
  ) })
6340
6325
  ] })
@@ -6349,7 +6334,7 @@ DataTablePagination.displayName = "DataTablePagination";
6349
6334
  // src/patterns/ReadOnlyDataView/ReadOnlyDataView.tsx
6350
6335
  var import_react81 = require("react");
6351
6336
  var import_react82 = require("@phosphor-icons/react");
6352
- var import_jsx_runtime65 = require("react/jsx-runtime");
6337
+ var import_jsx_runtime66 = require("react/jsx-runtime");
6353
6338
  function formatDate(value, format3) {
6354
6339
  if (!value) return "\u2014";
6355
6340
  const date = value instanceof Date ? value : new Date(String(value));
@@ -6403,19 +6388,19 @@ function ReadOnlyDataView({
6403
6388
  setActiveDialog({ dialog, row, details: result });
6404
6389
  };
6405
6390
  const hasTriggerColumn = (column) => column.type !== "action" && Boolean(detailsDialogs == null ? void 0 : detailsDialogs.some((d) => d.triggerColumn === column.key));
6406
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx_runtime65.Fragment, { children: [
6407
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6391
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_jsx_runtime66.Fragment, { children: [
6392
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6408
6393
  Card,
6409
6394
  {
6410
6395
  padding: "none",
6411
6396
  variant: "default",
6412
6397
  className: cn("overflow-hidden", className),
6413
- children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "overflow-x-auto", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("table", { className: "w-full border-collapse", children: [
6414
- caption && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("caption", { className: "sr-only", children: caption }),
6415
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("thead", { className: "bg-v2-bg-subtle", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("tr", { children: columns.map((column) => {
6398
+ children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "overflow-x-auto", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("table", { className: "w-full border-collapse", children: [
6399
+ caption && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("caption", { className: "sr-only", children: caption }),
6400
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("thead", { className: "bg-v2-bg-subtle", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("tr", { children: columns.map((column) => {
6416
6401
  const isSortable = column.type !== "action" && Boolean(column.sortable);
6417
6402
  const isSorted = column.type !== "action" && (sortValue == null ? void 0 : sortValue.column) === column.key;
6418
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6403
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6419
6404
  "th",
6420
6405
  {
6421
6406
  scope: "col",
@@ -6427,7 +6412,7 @@ function ReadOnlyDataView({
6427
6412
  )
6428
6413
  ),
6429
6414
  "aria-sort": isSorted ? (sortValue == null ? void 0 : sortValue.direction) === "asc" ? "ascending" : "descending" : isSortable ? "none" : void 0,
6430
- children: isSortable ? /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
6415
+ children: isSortable ? /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
6431
6416
  "button",
6432
6417
  {
6433
6418
  type: "button",
@@ -6435,21 +6420,21 @@ function ReadOnlyDataView({
6435
6420
  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",
6436
6421
  children: [
6437
6422
  column.label,
6438
- isSorted ? (sortValue == null ? void 0 : sortValue.direction) === "asc" ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6423
+ isSorted ? (sortValue == null ? void 0 : sortValue.direction) === "asc" ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6439
6424
  import_react82.CaretUp,
6440
6425
  {
6441
6426
  size: 12,
6442
6427
  weight: "bold",
6443
6428
  "aria-hidden": "true"
6444
6429
  }
6445
- ) : /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6430
+ ) : /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6446
6431
  import_react82.CaretDown,
6447
6432
  {
6448
6433
  size: 12,
6449
6434
  weight: "bold",
6450
6435
  "aria-hidden": "true"
6451
6436
  }
6452
- ) : /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react82.CaretUpDown, { size: 12, "aria-hidden": "true" })
6437
+ ) : /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react82.CaretUpDown, { size: 12, "aria-hidden": "true" })
6453
6438
  ]
6454
6439
  }
6455
6440
  ) : column.label
@@ -6457,27 +6442,27 @@ function ReadOnlyDataView({
6457
6442
  column.key ?? column.label
6458
6443
  );
6459
6444
  }) }) }),
6460
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("tbody", { children: loading ? Array.from({ length: loadingRows }).map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6445
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("tbody", { children: loading ? Array.from({ length: loadingRows }).map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6461
6446
  "tr",
6462
6447
  {
6463
6448
  className: "border-t border-v2-border-subtle",
6464
- children: columns.map((column) => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6449
+ children: columns.map((column) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6465
6450
  "td",
6466
6451
  {
6467
6452
  className: cn(cellPadding),
6468
- children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Skeleton, { shape: "text", style: { width: "80%" } })
6453
+ children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Skeleton, { shape: "text", style: { width: "80%" } })
6469
6454
  },
6470
6455
  column.key ?? column.label
6471
6456
  ))
6472
6457
  },
6473
6458
  `skeleton-${i}`
6474
- )) : list.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("tr", { children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("td", { colSpan: columns.length, className: "p-0", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "flex flex-col items-center justify-center gap-2 p-8 text-center", children: emptyState ?? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Text, { size: "sm", color: "muted", children: "Nenhum registro encontrado" }) }) }) }) : list.map((row, rowIndex) => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6459
+ )) : list.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("tr", { children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("td", { colSpan: columns.length, className: "p-0", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "flex flex-col items-center justify-center gap-2 p-8 text-center", children: emptyState ?? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Text, { size: "sm", color: "muted", children: "Nenhum registro encontrado" }) }) }) }) : list.map((row, rowIndex) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6475
6460
  "tr",
6476
6461
  {
6477
6462
  className: "border-t border-v2-border-subtle hover:bg-v2-bg-subtle motion-reduce:transition-none",
6478
6463
  children: columns.map((column) => {
6479
6464
  const clickable = hasTriggerColumn(column);
6480
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6465
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6481
6466
  "td",
6482
6467
  {
6483
6468
  className: cn(
@@ -6502,21 +6487,21 @@ function ReadOnlyDataView({
6502
6487
  ] }) })
6503
6488
  }
6504
6489
  ),
6505
- activeDialog && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6490
+ activeDialog && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6506
6491
  DialogRoot,
6507
6492
  {
6508
6493
  open: true,
6509
6494
  onOpenChange: (open) => {
6510
6495
  if (!open) setActiveDialog(null);
6511
6496
  },
6512
- children: /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
6497
+ children: /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
6513
6498
  DialogRoot.Content,
6514
6499
  {
6515
6500
  size: activeDialog.dialog.size ?? "md",
6516
6501
  "aria-describedby": void 0,
6517
6502
  children: [
6518
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(DialogRoot.Header, { children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(DialogRoot.Title, { children: activeDialog.dialog.title }) }),
6519
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(DialogRoot.Body, { children: activeDialog.details !== null ? activeDialog.dialog.renderDetails(activeDialog.details) : null })
6503
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(DialogRoot.Header, { children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(DialogRoot.Title, { children: activeDialog.dialog.title }) }),
6504
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(DialogRoot.Body, { children: activeDialog.details !== null ? activeDialog.dialog.renderDetails(activeDialog.details) : null })
6520
6505
  ]
6521
6506
  }
6522
6507
  )
@@ -6539,7 +6524,7 @@ function renderCell(column, row) {
6539
6524
  const value = String(raw);
6540
6525
  const variant = column.variantMap[value] ?? "default";
6541
6526
  const display = ((_a = column.labelMap) == null ? void 0 : _a[value]) ?? value;
6542
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Badge, { variant, children: display });
6527
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Badge, { variant, children: display });
6543
6528
  }
6544
6529
  if (column.type === "date") {
6545
6530
  return formatDate(raw, column.format);
@@ -6553,7 +6538,7 @@ function renderCell(column, row) {
6553
6538
  // src/patterns/NotificationCenter/NotificationCenter.tsx
6554
6539
  var import_react83 = require("react");
6555
6540
  var import_react84 = require("@phosphor-icons/react");
6556
- var import_jsx_runtime66 = require("react/jsx-runtime");
6541
+ var import_jsx_runtime67 = require("react/jsx-runtime");
6557
6542
  var severityDotClass = {
6558
6543
  info: "bg-v2-info-500",
6559
6544
  success: "bg-v2-success-500",
@@ -6589,8 +6574,8 @@ var NotificationCenter = (0, import_react83.forwardRef)(
6589
6574
  const [filter, setFilter] = (0, import_react83.useState)("unread");
6590
6575
  const relativeTimeFn = relativeTime ?? defaultRelativeTime;
6591
6576
  const filteredNotifs = filter === "unread" ? notifications.filter((n) => !n.read) : notifications;
6592
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(Popover, { children: [
6593
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Popover.Trigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
6577
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(Popover, { children: [
6578
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Popover.Trigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
6594
6579
  "button",
6595
6580
  {
6596
6581
  ref,
@@ -6598,23 +6583,23 @@ var NotificationCenter = (0, import_react83.forwardRef)(
6598
6583
  "aria-label": `${triggerAriaLabel}${unreadCount > 0 ? ` (${unreadCount} n\xE3o lidas)` : ""}`,
6599
6584
  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",
6600
6585
  children: [
6601
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react84.Bell, { size: 18, "aria-hidden": "true" }),
6602
- unreadCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("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 })
6586
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_react84.Bell, { size: 18, "aria-hidden": "true" }),
6587
+ unreadCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("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 })
6603
6588
  ]
6604
6589
  }
6605
6590
  ) }),
6606
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Popover.Content, { size: "auto", align: "end", className: "p-0", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "flex w-[min(360px,calc(100vw-2rem))] flex-col", children: [
6607
- /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "flex items-center justify-between border-b border-v2-border-default px-4 py-3", children: [
6608
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Heading, { level: 3, size: "sm", children: "Notifica\xE7\xF5es" }),
6609
- unreadCount > 0 && onMarkAllRead && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Button, { variant: "secondary", size: "sm", onClick: onMarkAllRead, children: "Marcar todas como lidas" })
6591
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Popover.Content, { size: "auto", align: "end", className: "p-0", children: /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex w-[min(360px,calc(100vw-2rem))] flex-col", children: [
6592
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex items-center justify-between border-b border-v2-border-default px-4 py-3", children: [
6593
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Heading, { level: 3, size: "sm", children: "Notifica\xE7\xF5es" }),
6594
+ unreadCount > 0 && onMarkAllRead && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Button, { variant: "secondary", size: "sm", onClick: onMarkAllRead, children: "Marcar todas como lidas" })
6610
6595
  ] }),
6611
- /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
6596
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
6612
6597
  "div",
6613
6598
  {
6614
6599
  role: "tablist",
6615
6600
  className: "flex items-center gap-1 border-b border-v2-border-default px-4 pt-2",
6616
6601
  children: [
6617
- /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
6602
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
6618
6603
  "button",
6619
6604
  {
6620
6605
  type: "button",
@@ -6632,7 +6617,7 @@ var NotificationCenter = (0, import_react83.forwardRef)(
6632
6617
  ]
6633
6618
  }
6634
6619
  ),
6635
- /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
6620
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
6636
6621
  "button",
6637
6622
  {
6638
6623
  type: "button",
@@ -6653,13 +6638,13 @@ var NotificationCenter = (0, import_react83.forwardRef)(
6653
6638
  ]
6654
6639
  }
6655
6640
  ),
6656
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6641
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6657
6642
  "ul",
6658
6643
  {
6659
6644
  role: "status",
6660
6645
  "aria-live": "polite",
6661
6646
  className: "max-h-[400px] overflow-y-auto",
6662
- children: filteredNotifs.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("li", { className: "px-4 py-6 text-center", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Text, { size: "sm", color: "muted", children: emptyMessage }) }) : filteredNotifs.map((n) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
6647
+ children: filteredNotifs.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("li", { className: "px-4 py-6 text-center", children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Text, { size: "sm", color: "muted", children: emptyMessage }) }) : filteredNotifs.map((n) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
6663
6648
  "button",
6664
6649
  {
6665
6650
  type: "button",
@@ -6669,7 +6654,7 @@ var NotificationCenter = (0, import_react83.forwardRef)(
6669
6654
  !n.read && "bg-v2-brand-bg-soft/30"
6670
6655
  ),
6671
6656
  children: [
6672
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6657
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6673
6658
  "span",
6674
6659
  {
6675
6660
  "aria-hidden": "true",
@@ -6679,12 +6664,12 @@ var NotificationCenter = (0, import_react83.forwardRef)(
6679
6664
  )
6680
6665
  }
6681
6666
  ),
6682
- /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
6683
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Text, { size: "sm", weight: "semibold", children: n.title }),
6684
- n.description && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Text, { size: "xs", color: "muted", children: n.description }),
6685
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Text, { size: "xs", color: "subtle", children: relativeTimeFn(n.timestamp) })
6667
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
6668
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Text, { size: "sm", weight: "semibold", children: n.title }),
6669
+ n.description && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Text, { size: "xs", color: "muted", children: n.description }),
6670
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Text, { size: "xs", color: "subtle", children: relativeTimeFn(n.timestamp) })
6686
6671
  ] }),
6687
- !n.read && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6672
+ !n.read && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6688
6673
  "span",
6689
6674
  {
6690
6675
  "aria-label": "N\xE3o lida",
@@ -6705,7 +6690,7 @@ NotificationCenter.displayName = "NotificationCenter";
6705
6690
  // src/patterns/NavigatorTile/NavigatorTile.tsx
6706
6691
  var import_react85 = require("react");
6707
6692
  var import_react86 = require("@phosphor-icons/react");
6708
- var import_jsx_runtime67 = require("react/jsx-runtime");
6693
+ var import_jsx_runtime68 = require("react/jsx-runtime");
6709
6694
  var NavigatorTile = (0, import_react85.forwardRef)(
6710
6695
  ({
6711
6696
  icon,
@@ -6718,7 +6703,7 @@ var NavigatorTile = (0, import_react85.forwardRef)(
6718
6703
  className,
6719
6704
  children,
6720
6705
  ...props
6721
- }, ref) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6706
+ }, ref) => /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
6722
6707
  Card,
6723
6708
  {
6724
6709
  ref,
@@ -6732,16 +6717,16 @@ var NavigatorTile = (0, import_react85.forwardRef)(
6732
6717
  className
6733
6718
  ),
6734
6719
  ...props,
6735
- children: asChild ? children : /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(import_jsx_runtime67.Fragment, { children: [
6736
- /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex items-start justify-between gap-3", children: [
6737
- icon && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("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 }),
6738
- badge && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "shrink-0", children: badge })
6720
+ children: asChild ? children : /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(import_jsx_runtime68.Fragment, { children: [
6721
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "flex items-start justify-between gap-3", children: [
6722
+ icon && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("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 }),
6723
+ badge && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: "shrink-0", children: badge })
6739
6724
  ] }),
6740
- /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex flex-col gap-1", children: [
6741
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Heading, { level: 3, size: "xs", children: title }),
6742
- description && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Text, { size: "sm", color: "muted", children: description })
6725
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "flex flex-col gap-1", children: [
6726
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Heading, { level: 3, size: "xs", children: title }),
6727
+ description && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Text, { size: "sm", color: "muted", children: description })
6743
6728
  ] }),
6744
- showChevron && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "flex justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6729
+ showChevron && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "flex justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
6745
6730
  import_react86.CaretRight,
6746
6731
  {
6747
6732
  size: 16,
@@ -6764,7 +6749,7 @@ var columnClass = {
6764
6749
  var NavigatorTileGrid = (0, import_react85.forwardRef)(
6765
6750
  ({ columns = 3, emptyState, isEmpty = false, className, children, ...props }, ref) => {
6766
6751
  if (isEmpty && emptyState) {
6767
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6752
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
6768
6753
  "div",
6769
6754
  {
6770
6755
  ref,
@@ -6777,7 +6762,7 @@ var NavigatorTileGrid = (0, import_react85.forwardRef)(
6777
6762
  }
6778
6763
  );
6779
6764
  }
6780
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6765
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
6781
6766
  "div",
6782
6767
  {
6783
6768
  ref,
@@ -6792,7 +6777,7 @@ NavigatorTileGrid.displayName = "NavigatorTileGrid";
6792
6777
 
6793
6778
  // src/patterns/PublicPageLayout/PublicPageLayout.tsx
6794
6779
  var import_react87 = require("react");
6795
- var import_jsx_runtime68 = require("react/jsx-runtime");
6780
+ var import_jsx_runtime69 = require("react/jsx-runtime");
6796
6781
  var maxWidthClass = {
6797
6782
  sm: "max-w-md",
6798
6783
  md: "max-w-2xl",
@@ -6811,7 +6796,7 @@ var PublicPageLayout = (0, import_react87.forwardRef)(
6811
6796
  className,
6812
6797
  children,
6813
6798
  ...props
6814
- }, ref) => /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
6799
+ }, ref) => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6815
6800
  "div",
6816
6801
  {
6817
6802
  ref,
@@ -6821,7 +6806,7 @@ var PublicPageLayout = (0, import_react87.forwardRef)(
6821
6806
  ),
6822
6807
  ...props,
6823
6808
  children: [
6824
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
6809
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6825
6810
  "a",
6826
6811
  {
6827
6812
  href: `#${mainId}`,
@@ -6829,21 +6814,21 @@ var PublicPageLayout = (0, import_react87.forwardRef)(
6829
6814
  children: skipToMainLabel
6830
6815
  }
6831
6816
  ),
6832
- header && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("header", { className: "border-b border-v2-border-default bg-v2-panel", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
6817
+ header && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("header", { className: "border-b border-v2-border-default bg-v2-panel", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6833
6818
  "div",
6834
6819
  {
6835
6820
  className: cn("mx-auto w-full px-6 py-4", maxWidthClass[maxWidth]),
6836
6821
  children: header
6837
6822
  }
6838
6823
  ) }),
6839
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("main", { id: mainId, className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
6824
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("main", { id: mainId, className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6840
6825
  "div",
6841
6826
  {
6842
6827
  className: cn("mx-auto w-full px-6 py-8", maxWidthClass[maxWidth]),
6843
6828
  children
6844
6829
  }
6845
6830
  ) }),
6846
- footer && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("footer", { className: "border-t border-v2-border-default bg-v2-panel", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
6831
+ footer && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("footer", { className: "border-t border-v2-border-default bg-v2-panel", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6847
6832
  "div",
6848
6833
  {
6849
6834
  className: cn("mx-auto w-full px-6 py-4", maxWidthClass[maxWidth]),
@@ -6859,30 +6844,30 @@ PublicPageLayout.displayName = "PublicPageLayout";
6859
6844
  // src/patterns/ErrorPageLayout/ErrorPageLayout.tsx
6860
6845
  var import_react88 = require("react");
6861
6846
  var import_react89 = require("@phosphor-icons/react");
6862
- var import_jsx_runtime69 = require("react/jsx-runtime");
6847
+ var import_jsx_runtime70 = require("react/jsx-runtime");
6863
6848
  function isHrefAction(action) {
6864
6849
  return Boolean(action && "href" in action);
6865
6850
  }
6866
6851
  var ErrorPageLayout = (0, import_react88.forwardRef)(
6867
- ({ code, title, description, primaryAction, illustration, ...layoutProps }, ref) => /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(PublicPageLayout, { ref, ...layoutProps, children: /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "flex flex-col items-center justify-center gap-6 py-12 text-center", children: [
6868
- code && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "text-v2-6xl font-bold leading-none text-v2-action-primary", children: code }),
6852
+ ({ code, title, description, primaryAction, illustration, ...layoutProps }, ref) => /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(PublicPageLayout, { ref, ...layoutProps, children: /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "flex flex-col items-center justify-center gap-6 py-12 text-center", children: [
6853
+ code && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: "text-v2-6xl font-bold leading-none text-v2-action-primary", children: code }),
6869
6854
  illustration,
6870
- /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "flex flex-col gap-2", children: [
6871
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Heading, { level: 1, size: "xl", children: title }),
6872
- description && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Text, { size: "base", color: "muted", className: "max-w-md", children: description })
6855
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "flex flex-col gap-2", children: [
6856
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Heading, { level: 1, size: "xl", children: title }),
6857
+ description && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Text, { size: "base", color: "muted", className: "max-w-md", children: description })
6873
6858
  ] }),
6874
- primaryAction && (isHrefAction(primaryAction) ? /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6859
+ primaryAction && (isHrefAction(primaryAction) ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
6875
6860
  Button,
6876
6861
  {
6877
6862
  asChild: true,
6878
- leftIcon: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_react89.ArrowLeft, { size: 16, weight: "bold", "aria-hidden": "true" }),
6879
- children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("a", { href: primaryAction.href, children: primaryAction.label })
6863
+ leftIcon: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_react89.ArrowLeft, { size: 16, weight: "bold", "aria-hidden": "true" }),
6864
+ children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("a", { href: primaryAction.href, children: primaryAction.label })
6880
6865
  }
6881
- ) : /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6866
+ ) : /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
6882
6867
  Button,
6883
6868
  {
6884
6869
  onClick: primaryAction.onClick,
6885
- leftIcon: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_react89.ArrowLeft, { size: 16, weight: "bold", "aria-hidden": "true" }),
6870
+ leftIcon: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_react89.ArrowLeft, { size: 16, weight: "bold", "aria-hidden": "true" }),
6886
6871
  children: primaryAction.label
6887
6872
  }
6888
6873
  ))
@@ -6892,7 +6877,7 @@ ErrorPageLayout.displayName = "ErrorPageLayout";
6892
6877
 
6893
6878
  // src/patterns/TutorialCard/TutorialCard.tsx
6894
6879
  var import_react90 = require("react");
6895
- var import_jsx_runtime70 = require("react/jsx-runtime");
6880
+ var import_jsx_runtime71 = require("react/jsx-runtime");
6896
6881
  var TutorialCard = (0, import_react90.forwardRef)(
6897
6882
  ({
6898
6883
  title,
@@ -6904,7 +6889,7 @@ var TutorialCard = (0, import_react90.forwardRef)(
6904
6889
  className,
6905
6890
  children,
6906
6891
  ...props
6907
- }, ref) => /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
6892
+ }, ref) => /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
6908
6893
  Card,
6909
6894
  {
6910
6895
  ref,
@@ -6913,15 +6898,15 @@ var TutorialCard = (0, import_react90.forwardRef)(
6913
6898
  padding: "none",
6914
6899
  className: cn("flex flex-col overflow-hidden", className),
6915
6900
  ...props,
6916
- children: asChild ? children : /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(import_jsx_runtime70.Fragment, { children: [
6917
- media && /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "relative aspect-video w-full overflow-hidden bg-v2-bg-subtle", children: [
6901
+ children: asChild ? children : /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(import_jsx_runtime71.Fragment, { children: [
6902
+ media && /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "relative aspect-video w-full overflow-hidden bg-v2-bg-subtle", children: [
6918
6903
  media,
6919
- category && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: "absolute left-3 top-3", children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Badge, { variant: "default", size: "sm", children: category }) })
6904
+ category && /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "absolute left-3 top-3", children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Badge, { variant: "default", size: "sm", children: category }) })
6920
6905
  ] }),
6921
- /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "flex flex-1 flex-col gap-2 p-4", children: [
6922
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Heading, { level: 3, size: "sm", children: title }),
6923
- description && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Text, { size: "sm", color: "muted", children: description }),
6924
- duration && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: "mt-auto pt-2", children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Badge, { variant: "info", size: "sm", children: duration }) })
6906
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "flex flex-1 flex-col gap-2 p-4", children: [
6907
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Heading, { level: 3, size: "sm", children: title }),
6908
+ description && /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Text, { size: "sm", color: "muted", children: description }),
6909
+ duration && /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "mt-auto pt-2", children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Badge, { variant: "info", size: "sm", children: duration }) })
6925
6910
  ] })
6926
6911
  ] })
6927
6912
  }
@@ -6931,7 +6916,7 @@ TutorialCard.displayName = "TutorialCard";
6931
6916
 
6932
6917
  // src/patterns/KpiCard/KpiCard.tsx
6933
6918
  var import_react91 = require("react");
6934
- var import_jsx_runtime71 = require("react/jsx-runtime");
6919
+ var import_jsx_runtime72 = require("react/jsx-runtime");
6935
6920
  var variantAccent = {
6936
6921
  neutral: "",
6937
6922
  success: "border-l-4 border-l-v2-success-500",
@@ -6940,7 +6925,7 @@ var variantAccent = {
6940
6925
  info: "border-l-4 border-l-v2-info-500"
6941
6926
  };
6942
6927
  var KpiCard = (0, import_react91.forwardRef)(
6943
- ({ label, value, sublabel, variant = "neutral", icon, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
6928
+ ({ label, value, sublabel, variant = "neutral", icon, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
6944
6929
  Card,
6945
6930
  {
6946
6931
  padding: "md",
@@ -6949,12 +6934,12 @@ var KpiCard = (0, import_react91.forwardRef)(
6949
6934
  "data-variant": variant,
6950
6935
  ...props,
6951
6936
  children: [
6952
- /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "flex items-start justify-between gap-2", children: [
6953
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Heading, { level: 2, size: "sm", children: label }),
6954
- icon && /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("span", { "aria-hidden": "true", children: icon })
6937
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { className: "flex items-start justify-between gap-2", children: [
6938
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Heading, { level: 2, size: "sm", children: label }),
6939
+ icon && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { "aria-hidden": "true", children: icon })
6955
6940
  ] }),
6956
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Text, { size: "lg", weight: "semibold", className: "mt-2", children: value }),
6957
- sublabel && /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Text, { size: "sm", color: "muted", children: sublabel })
6941
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Text, { size: "lg", weight: "semibold", className: "mt-2", children: value }),
6942
+ sublabel && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Text, { size: "sm", color: "muted", children: sublabel })
6958
6943
  ]
6959
6944
  }
6960
6945
  )
@@ -6965,7 +6950,7 @@ KpiCard.displayName = "KpiCard";
6965
6950
  var import_react92 = require("react");
6966
6951
  var import_react_dom = require("react-dom");
6967
6952
  var import_react93 = require("@phosphor-icons/react");
6968
- var import_jsx_runtime72 = require("react/jsx-runtime");
6953
+ var import_jsx_runtime73 = require("react/jsx-runtime");
6969
6954
  function CommandPalette({
6970
6955
  open,
6971
6956
  onOpenChange,
@@ -7038,7 +7023,7 @@ function CommandPalette({
7038
7023
  };
7039
7024
  if (typeof document === "undefined" || !open) return null;
7040
7025
  return (0, import_react_dom.createPortal)(
7041
- /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
7026
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
7042
7027
  "div",
7043
7028
  {
7044
7029
  role: "dialog",
@@ -7046,7 +7031,7 @@ function CommandPalette({
7046
7031
  "aria-label": ariaLabel,
7047
7032
  className: "fixed inset-0 z-50 flex items-start justify-center p-4 pt-[10vh]",
7048
7033
  children: [
7049
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
7034
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
7050
7035
  "button",
7051
7036
  {
7052
7037
  type: "button",
@@ -7055,9 +7040,9 @@ function CommandPalette({
7055
7040
  onClick: () => onOpenChange(false)
7056
7041
  }
7057
7042
  ),
7058
- /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("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: [
7059
- /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { className: "flex items-center gap-3 border-b border-v2-border-default px-4 py-3", children: [
7060
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
7043
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("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: [
7044
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "flex items-center gap-3 border-b border-v2-border-default px-4 py-3", children: [
7045
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
7061
7046
  import_react93.MagnifyingGlass,
7062
7047
  {
7063
7048
  size: 18,
@@ -7065,7 +7050,7 @@ function CommandPalette({
7065
7050
  className: "text-v2-fg-muted"
7066
7051
  }
7067
7052
  ),
7068
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
7053
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
7069
7054
  "input",
7070
7055
  {
7071
7056
  ref: inputRef,
@@ -7085,24 +7070,24 @@ function CommandPalette({
7085
7070
  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"
7086
7071
  }
7087
7072
  ),
7088
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("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" })
7073
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("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" })
7089
7074
  ] }),
7090
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
7075
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
7091
7076
  "div",
7092
7077
  {
7093
7078
  id: "command-palette-listbox",
7094
7079
  role: "listbox",
7095
7080
  className: "max-h-[60vh] overflow-y-auto",
7096
- children: filteredGroups.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("p", { className: "px-4 py-3 text-v2-sm text-v2-fg-muted", children: emptyMessage }) : filteredGroups.map((group) => /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
7081
+ children: filteredGroups.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("p", { className: "px-4 py-3 text-v2-sm text-v2-fg-muted", children: emptyMessage }) : filteredGroups.map((group) => /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
7097
7082
  "section",
7098
7083
  {
7099
7084
  "aria-label": group.label,
7100
7085
  className: "border-b border-v2-border-default last:border-b-0",
7101
7086
  children: [
7102
- group.label && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("h3", { className: "px-4 pb-1 pt-3 text-v2-xs font-semibold uppercase tracking-wider text-v2-fg-muted", children: group.label }),
7103
- group.loading ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("p", { className: "px-4 py-2 text-v2-xs text-v2-fg-muted", children: "Buscando\u2026" }) : group.items.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("p", { className: "px-4 py-2 text-v2-xs text-v2-fg-muted", children: group.emptyMessage ?? emptyMessage }) : /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("ul", { children: group.items.map((item) => {
7087
+ group.label && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("h3", { className: "px-4 pb-1 pt-3 text-v2-xs font-semibold uppercase tracking-wider text-v2-fg-muted", children: group.label }),
7088
+ group.loading ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("p", { className: "px-4 py-2 text-v2-xs text-v2-fg-muted", children: "Buscando\u2026" }) : group.items.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("p", { className: "px-4 py-2 text-v2-xs text-v2-fg-muted", children: group.emptyMessage ?? emptyMessage }) : /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("ul", { children: group.items.map((item) => {
7104
7089
  const isHighlighted = highlightedId === item.id;
7105
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
7090
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
7106
7091
  "li",
7107
7092
  {
7108
7093
  id: `command-palette-option-${item.id}`,
@@ -7115,10 +7100,10 @@ function CommandPalette({
7115
7100
  isHighlighted ? "bg-v2-brand-bg-soft text-v2-brand-text-dark" : "text-v2-fg-default hover:bg-v2-bg-subtle",
7116
7101
  item.disabled && "pointer-events-none opacity-50"
7117
7102
  ),
7118
- children: renderItem ? renderItem(item, isHighlighted) : /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(import_jsx_runtime72.Fragment, { children: [
7119
- /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col", children: [
7120
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { className: "truncate font-medium", children: item.label }),
7121
- item.description && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
7103
+ children: renderItem ? renderItem(item, isHighlighted) : /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(import_jsx_runtime73.Fragment, { children: [
7104
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col", children: [
7105
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { className: "truncate font-medium", children: item.label }),
7106
+ item.description && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
7122
7107
  "span",
7123
7108
  {
7124
7109
  className: cn(
@@ -7129,7 +7114,7 @@ function CommandPalette({
7129
7114
  }
7130
7115
  )
7131
7116
  ] }),
7132
- item.meta && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
7117
+ item.meta && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
7133
7118
  "span",
7134
7119
  {
7135
7120
  className: cn(
@@ -7139,7 +7124,7 @@ function CommandPalette({
7139
7124
  children: item.meta
7140
7125
  }
7141
7126
  ),
7142
- item.shortcut && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("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 })
7127
+ item.shortcut && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("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 })
7143
7128
  ] })
7144
7129
  },
7145
7130
  item.id
@@ -7161,7 +7146,7 @@ function CommandPalette({
7161
7146
 
7162
7147
  // src/patterns/ChartTimeSeries/ChartTimeSeries.tsx
7163
7148
  var import_react94 = require("react");
7164
- var import_jsx_runtime73 = require("react/jsx-runtime");
7149
+ var import_jsx_runtime74 = require("react/jsx-runtime");
7165
7150
  var DEFAULT_RANGES = ["3m", "6m", "12m", "YTD"];
7166
7151
  var DEFAULT_EMPTY_MESSAGE = "Sem dados no per\xEDodo.";
7167
7152
  function buildChartPaths(data) {
@@ -7230,21 +7215,21 @@ var ChartTimeSeries = (0, import_react94.forwardRef)(
7230
7215
  const hasData = data.length > 0;
7231
7216
  const paths = hasData ? buildChartPaths(data) : null;
7232
7217
  const axisLabels = hasData ? buildAxisLabels(data) : [];
7233
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
7218
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
7234
7219
  "div",
7235
7220
  {
7236
7221
  ref,
7237
7222
  className: cn("flex flex-col gap-3.5", className),
7238
7223
  ...props,
7239
7224
  children: [
7240
- /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "flex items-start justify-between gap-3", children: [
7241
- /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "flex flex-col", children: [
7242
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("h3", { className: "text-v2-sm font-bold text-v2-fg-default", children: title }),
7243
- subtitle && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { className: "text-v2-xs text-v2-fg-muted", children: subtitle })
7225
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "flex items-start justify-between gap-3", children: [
7226
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "flex flex-col", children: [
7227
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("h3", { className: "text-v2-sm font-bold text-v2-fg-default", children: title }),
7228
+ subtitle && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: "text-v2-xs text-v2-fg-muted", children: subtitle })
7244
7229
  ] }),
7245
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { role: "tablist", className: "flex items-center gap-1", children: ranges.map((r) => {
7230
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { role: "tablist", className: "flex items-center gap-1", children: ranges.map((r) => {
7246
7231
  const isActive2 = r === activeRange;
7247
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
7232
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
7248
7233
  "button",
7249
7234
  {
7250
7235
  type: "button",
@@ -7261,7 +7246,7 @@ var ChartTimeSeries = (0, import_react94.forwardRef)(
7261
7246
  );
7262
7247
  }) })
7263
7248
  ] }),
7264
- !hasData ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "flex h-[220px] items-center justify-center text-v2-sm text-v2-fg-muted", children: emptyMessage }) : /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
7249
+ !hasData ? /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "flex h-[220px] items-center justify-center text-v2-sm text-v2-fg-muted", children: emptyMessage }) : /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
7265
7250
  "svg",
7266
7251
  {
7267
7252
  viewBox: "0 0 720 200",
@@ -7270,11 +7255,11 @@ var ChartTimeSeries = (0, import_react94.forwardRef)(
7270
7255
  "aria-label": typeof title === "string" ? title : "Gr\xE1fico de s\xE9rie temporal",
7271
7256
  role: "img",
7272
7257
  children: [
7273
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("linearGradient", { id: gradientId, x1: "0", y1: "0", x2: "0", y2: "1", children: [
7274
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("stop", { offset: "0%", stopColor: "currentColor", stopOpacity: "0.3" }),
7275
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("stop", { offset: "100%", stopColor: "currentColor", stopOpacity: "0" })
7258
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("linearGradient", { id: gradientId, x1: "0", y1: "0", x2: "0", y2: "1", children: [
7259
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("stop", { offset: "0%", stopColor: "currentColor", stopOpacity: "0.3" }),
7260
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("stop", { offset: "100%", stopColor: "currentColor", stopOpacity: "0" })
7276
7261
  ] }) }),
7277
- [40, 90, 140].map((y) => /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
7262
+ [40, 90, 140].map((y) => /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
7278
7263
  "line",
7279
7264
  {
7280
7265
  x1: "0",
@@ -7287,8 +7272,8 @@ var ChartTimeSeries = (0, import_react94.forwardRef)(
7287
7272
  },
7288
7273
  y
7289
7274
  )),
7290
- paths && /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(import_jsx_runtime73.Fragment, { children: [
7291
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
7275
+ paths && /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(import_jsx_runtime74.Fragment, { children: [
7276
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
7292
7277
  "path",
7293
7278
  {
7294
7279
  d: paths.area,
@@ -7296,7 +7281,7 @@ var ChartTimeSeries = (0, import_react94.forwardRef)(
7296
7281
  stroke: "none"
7297
7282
  }
7298
7283
  ),
7299
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
7284
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
7300
7285
  "path",
7301
7286
  {
7302
7287
  d: paths.line,
@@ -7307,7 +7292,7 @@ var ChartTimeSeries = (0, import_react94.forwardRef)(
7307
7292
  strokeLinejoin: "round"
7308
7293
  }
7309
7294
  ),
7310
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
7295
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
7311
7296
  "circle",
7312
7297
  {
7313
7298
  cx: paths.lastX,
@@ -7319,7 +7304,7 @@ var ChartTimeSeries = (0, import_react94.forwardRef)(
7319
7304
  }
7320
7305
  )
7321
7306
  ] }),
7322
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("g", { style: { fontSize: 10 }, fill: "currentColor", opacity: "0.6", children: axisLabels.map((tick) => /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
7307
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("g", { style: { fontSize: 10 }, fill: "currentColor", opacity: "0.6", children: axisLabels.map((tick) => /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
7323
7308
  "text",
7324
7309
  {
7325
7310
  x: tick.x,
@@ -7341,7 +7326,7 @@ var ChartTimeSeries = (0, import_react94.forwardRef)(
7341
7326
  // src/patterns/DonutChart/DonutChart.tsx
7342
7327
  var import_react95 = require("react");
7343
7328
  var import_recharts = require("recharts");
7344
- var import_jsx_runtime74 = require("react/jsx-runtime");
7329
+ var import_jsx_runtime75 = require("react/jsx-runtime");
7345
7330
  var DEFAULT_COLORS = [
7346
7331
  "var(--v2-chart-cat-1)",
7347
7332
  "var(--v2-chart-cat-2)",
@@ -7388,9 +7373,9 @@ function ChartTooltip({
7388
7373
  var _a;
7389
7374
  const slice = (_a = payload == null ? void 0 : payload[0]) == null ? void 0 : _a.payload;
7390
7375
  if (!active || !slice) return null;
7391
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "rounded-v2-md border border-v2-border-default bg-v2-panel px-3 py-2 text-v2-xs shadow-lg", children: [
7392
- /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "flex items-center gap-2", children: [
7393
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
7376
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "rounded-v2-md border border-v2-border-default bg-v2-panel px-3 py-2 text-v2-xs shadow-lg", children: [
7377
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "flex items-center gap-2", children: [
7378
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
7394
7379
  "span",
7395
7380
  {
7396
7381
  className: "size-2 rounded-full",
@@ -7398,10 +7383,10 @@ function ChartTooltip({
7398
7383
  "aria-hidden": "true"
7399
7384
  }
7400
7385
  ),
7401
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("p", { className: "font-semibold text-v2-fg-default", children: slice.label })
7386
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("p", { className: "font-semibold text-v2-fg-default", children: slice.label })
7402
7387
  ] }),
7403
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("p", { className: "mt-1 font-semibold text-v2-fg-default", children: valueFormatter(slice.value) }),
7404
- typeof slice.secondaryValue === "number" && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("p", { className: "text-v2-fg-muted", children: secondaryFormatter(slice.secondaryValue) })
7388
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("p", { className: "mt-1 font-semibold text-v2-fg-default", children: valueFormatter(slice.value) }),
7389
+ typeof slice.secondaryValue === "number" && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("p", { className: "text-v2-fg-muted", children: secondaryFormatter(slice.secondaryValue) })
7405
7390
  ] });
7406
7391
  }
7407
7392
  var DonutChart = (0, import_react95.forwardRef)(
@@ -7424,24 +7409,24 @@ var DonutChart = (0, import_react95.forwardRef)(
7424
7409
  const slices = buildSlices(data, topN, othersLabel, defaultColors);
7425
7410
  const isEmpty = data.length === 0 || total === 0;
7426
7411
  const [activeIdx, setActiveIdx] = (0, import_react95.useState)(null);
7427
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
7412
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
7428
7413
  "div",
7429
7414
  {
7430
7415
  ref,
7431
7416
  className: cn("flex flex-col gap-3.5", className),
7432
7417
  ...props,
7433
7418
  children: [
7434
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("h3", { className: "text-v2-sm font-bold text-v2-fg-default", children: title }),
7435
- isEmpty ? /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "flex h-[160px] items-center justify-center text-v2-sm text-v2-fg-muted", children: emptyMessage }) : /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
7419
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("h3", { className: "text-v2-sm font-bold text-v2-fg-default", children: title }),
7420
+ isEmpty ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: "flex h-[160px] items-center justify-center text-v2-sm text-v2-fg-muted", children: emptyMessage }) : /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
7436
7421
  "div",
7437
7422
  {
7438
7423
  className: "flex items-center gap-4",
7439
7424
  role: "img",
7440
7425
  "aria-label": typeof title === "string" ? title : "Donut chart",
7441
7426
  children: [
7442
- /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "relative size-[160px] shrink-0", children: [
7443
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_recharts.ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(import_recharts.PieChart, { children: [
7444
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
7427
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "relative size-[160px] shrink-0", children: [
7428
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_recharts.ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(import_recharts.PieChart, { children: [
7429
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
7445
7430
  import_recharts.Pie,
7446
7431
  {
7447
7432
  data: slices,
@@ -7454,7 +7439,7 @@ var DonutChart = (0, import_react95.forwardRef)(
7454
7439
  strokeWidth: 2,
7455
7440
  onMouseEnter: (_, idx) => setActiveIdx(idx),
7456
7441
  onMouseLeave: () => setActiveIdx(null),
7457
- children: slices.map((slice, idx) => /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
7442
+ children: slices.map((slice, idx) => /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
7458
7443
  import_recharts.Cell,
7459
7444
  {
7460
7445
  fill: slice.color,
@@ -7465,12 +7450,12 @@ var DonutChart = (0, import_react95.forwardRef)(
7465
7450
  ))
7466
7451
  }
7467
7452
  ),
7468
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
7453
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
7469
7454
  import_recharts.Tooltip,
7470
7455
  {
7471
7456
  allowEscapeViewBox: { x: false, y: true },
7472
7457
  position: { y: -56 },
7473
- content: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
7458
+ content: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
7474
7459
  ChartTooltip,
7475
7460
  {
7476
7461
  valueFormatter,
@@ -7480,12 +7465,12 @@ var DonutChart = (0, import_react95.forwardRef)(
7480
7465
  }
7481
7466
  )
7482
7467
  ] }) }),
7483
- /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "pointer-events-none absolute inset-0 flex flex-col items-center justify-center", children: [
7484
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: "text-v2-xl font-extrabold text-v2-fg-default", children: centerValue ?? valueFormatter(total) }),
7485
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: "text-v2-xs text-v2-fg-muted", children: centerLabel })
7468
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "pointer-events-none absolute inset-0 flex flex-col items-center justify-center", children: [
7469
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { className: "text-v2-xl font-extrabold text-v2-fg-default", children: centerValue ?? valueFormatter(total) }),
7470
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { className: "text-v2-xs text-v2-fg-muted", children: centerLabel })
7486
7471
  ] })
7487
7472
  ] }),
7488
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("ul", { className: "flex flex-1 flex-col gap-2", children: slices.map((slice, idx) => /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
7473
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("ul", { className: "flex flex-1 flex-col gap-2", children: slices.map((slice, idx) => /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
7489
7474
  "li",
7490
7475
  {
7491
7476
  onMouseEnter: () => setActiveIdx(idx),
@@ -7495,7 +7480,7 @@ var DonutChart = (0, import_react95.forwardRef)(
7495
7480
  activeIdx === idx && "bg-v2-bg-subtle"
7496
7481
  ),
7497
7482
  children: [
7498
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
7483
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
7499
7484
  "span",
7500
7485
  {
7501
7486
  "aria-hidden": "true",
@@ -7503,8 +7488,8 @@ var DonutChart = (0, import_react95.forwardRef)(
7503
7488
  style: { backgroundColor: slice.color }
7504
7489
  }
7505
7490
  ),
7506
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: "flex-1 truncate", children: slice.label }),
7507
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: "font-bold tabular-nums", children: valueFormatter(slice.value) })
7491
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { className: "flex-1 truncate", children: slice.label }),
7492
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { className: "font-bold tabular-nums", children: valueFormatter(slice.value) })
7508
7493
  ]
7509
7494
  },
7510
7495
  slice.label
@@ -7521,16 +7506,16 @@ var DonutChart = (0, import_react95.forwardRef)(
7521
7506
  // src/patterns/EmptyState/EmptyState.tsx
7522
7507
  var import_react96 = require("react");
7523
7508
  var import_react97 = require("@phosphor-icons/react");
7524
- var import_jsx_runtime75 = require("react/jsx-runtime");
7509
+ var import_jsx_runtime76 = require("react/jsx-runtime");
7525
7510
  var variantIconBg = {
7526
7511
  "no-data": "bg-v2-bg-subtle text-v2-fg-muted",
7527
7512
  "no-results": "bg-v2-info-soft text-v2-info-500",
7528
7513
  error: "bg-v2-danger-soft text-v2-danger-500"
7529
7514
  };
7530
7515
  var variantIcon2 = {
7531
- "no-data": /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_react97.Tray, { size: 28, "aria-hidden": "true" }),
7532
- "no-results": /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_react97.MagnifyingGlass, { size: 28, "aria-hidden": "true" }),
7533
- error: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_react97.WarningCircle, { size: 28, "aria-hidden": "true" })
7516
+ "no-data": /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_react97.Tray, { size: 28, "aria-hidden": "true" }),
7517
+ "no-results": /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_react97.MagnifyingGlass, { size: 28, "aria-hidden": "true" }),
7518
+ error: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_react97.WarningCircle, { size: 28, "aria-hidden": "true" })
7534
7519
  };
7535
7520
  var EmptyState = (0, import_react96.forwardRef)(
7536
7521
  ({
@@ -7542,7 +7527,7 @@ var EmptyState = (0, import_react96.forwardRef)(
7542
7527
  className,
7543
7528
  ...props
7544
7529
  }, ref) => {
7545
- return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
7530
+ return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
7546
7531
  "div",
7547
7532
  {
7548
7533
  ref,
@@ -7554,7 +7539,7 @@ var EmptyState = (0, import_react96.forwardRef)(
7554
7539
  ),
7555
7540
  ...props,
7556
7541
  children: [
7557
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
7542
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
7558
7543
  "span",
7559
7544
  {
7560
7545
  "aria-hidden": "true",
@@ -7565,9 +7550,9 @@ var EmptyState = (0, import_react96.forwardRef)(
7565
7550
  children: icon ?? variantIcon2[variant]
7566
7551
  }
7567
7552
  ),
7568
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("h3", { className: "text-v2-base font-semibold text-v2-fg-default", children: title }),
7569
- description && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("p", { className: "max-w-md text-v2-sm text-v2-fg-muted", children: description }),
7570
- action && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: "mt-1 flex items-center gap-2", children: action })
7553
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("h3", { className: "text-v2-base font-semibold text-v2-fg-default", children: title }),
7554
+ description && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("p", { className: "max-w-md text-v2-sm text-v2-fg-muted", children: description }),
7555
+ action && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "mt-1 flex items-center gap-2", children: action })
7571
7556
  ]
7572
7557
  }
7573
7558
  );
@@ -7577,7 +7562,7 @@ EmptyState.displayName = "EmptyState";
7577
7562
 
7578
7563
  // src/patterns/WizardShell/WizardShell.tsx
7579
7564
  var import_react98 = require("@phosphor-icons/react");
7580
- var import_jsx_runtime76 = require("react/jsx-runtime");
7565
+ var import_jsx_runtime77 = require("react/jsx-runtime");
7581
7566
  var stepIndicatorClass = {
7582
7567
  completed: "bg-v2-success-500 text-v2-action-on-primary border-v2-success-500",
7583
7568
  active: "bg-v2-action-primary text-v2-action-on-primary border-v2-action-primary",
@@ -7590,8 +7575,8 @@ function StepIndicator({
7590
7575
  index,
7591
7576
  onStepChange
7592
7577
  }) {
7593
- const inner = /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(import_jsx_runtime76.Fragment, { children: [
7594
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
7578
+ const inner = /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(import_jsx_runtime77.Fragment, { children: [
7579
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
7595
7580
  "span",
7596
7581
  {
7597
7582
  "data-state": step.state,
@@ -7600,11 +7585,11 @@ function StepIndicator({
7600
7585
  "flex size-8 shrink-0 items-center justify-center rounded-v2-pill border-2 text-v2-sm font-semibold",
7601
7586
  stepIndicatorClass[step.state]
7602
7587
  ),
7603
- children: step.state === "completed" ? /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_react98.Check, { size: 16, weight: "bold" }) : step.state === "blocked" ? /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_react98.X, { size: 16, weight: "bold" }) : step.state === "error" ? /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_react98.WarningCircle, { size: 16, weight: "bold" }) : index + 1
7588
+ children: step.state === "completed" ? /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_react98.Check, { size: 16, weight: "bold" }) : step.state === "blocked" ? /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_react98.X, { size: 16, weight: "bold" }) : step.state === "error" ? /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_react98.WarningCircle, { size: 16, weight: "bold" }) : index + 1
7604
7589
  }
7605
7590
  ),
7606
- /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "flex flex-col", children: [
7607
- /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
7591
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "flex flex-col", children: [
7592
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(
7608
7593
  Text,
7609
7594
  {
7610
7595
  tag: "p",
@@ -7613,18 +7598,18 @@ function StepIndicator({
7613
7598
  color: step.state === "pending" ? "muted" : "default",
7614
7599
  children: [
7615
7600
  step.label,
7616
- step.optional && /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(Text, { tag: "span", size: "xs", color: "muted", children: [
7601
+ step.optional && /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(Text, { tag: "span", size: "xs", color: "muted", children: [
7617
7602
  " ",
7618
7603
  "\xB7 opcional"
7619
7604
  ] })
7620
7605
  ]
7621
7606
  }
7622
7607
  ),
7623
- step.description && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Text, { tag: "p", size: "xs", color: "muted", children: step.description })
7608
+ step.description && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(Text, { tag: "p", size: "xs", color: "muted", children: step.description })
7624
7609
  ] })
7625
7610
  ] });
7626
7611
  if (onStepChange) {
7627
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
7612
+ return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
7628
7613
  "button",
7629
7614
  {
7630
7615
  type: "button",
@@ -7635,7 +7620,7 @@ function StepIndicator({
7635
7620
  }
7636
7621
  );
7637
7622
  }
7638
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
7623
+ return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
7639
7624
  "div",
7640
7625
  {
7641
7626
  className: "flex items-center gap-2",
@@ -7655,7 +7640,7 @@ function WizardShell(props) {
7655
7640
  footer,
7656
7641
  className
7657
7642
  } = props;
7658
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
7643
+ return /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(
7659
7644
  "div",
7660
7645
  {
7661
7646
  className: cn(
@@ -7663,10 +7648,10 @@ function WizardShell(props) {
7663
7648
  className
7664
7649
  ),
7665
7650
  children: [
7666
- /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "border-b border-v2-border-default p-5", children: [
7667
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("h1", { className: "text-v2-lg font-extrabold tracking-tight text-v2-fg-default", children: title }),
7668
- subtitle && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Text, { tag: "p", size: "sm", color: "muted", className: "mt-0.5", children: subtitle }),
7669
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("ol", { className: "mt-4 flex items-start gap-2", "aria-label": "Passos", children: steps.map((step, idx) => /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("li", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
7651
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "border-b border-v2-border-default p-5", children: [
7652
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("h1", { className: "text-v2-lg font-extrabold tracking-tight text-v2-fg-default", children: title }),
7653
+ subtitle && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(Text, { tag: "p", size: "sm", color: "muted", className: "mt-0.5", children: subtitle }),
7654
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("ol", { className: "mt-4 flex items-start gap-2", "aria-label": "Passos", children: steps.map((step, idx) => /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("li", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
7670
7655
  StepIndicator,
7671
7656
  {
7672
7657
  step,
@@ -7675,7 +7660,7 @@ function WizardShell(props) {
7675
7660
  }
7676
7661
  ) }, step.id)) })
7677
7662
  ] }),
7678
- /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
7663
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(
7679
7664
  "div",
7680
7665
  {
7681
7666
  className: cn(
@@ -7683,12 +7668,12 @@ function WizardShell(props) {
7683
7668
  aside ? "lg:grid-cols-[1fr_320px]" : "grid-cols-1"
7684
7669
  ),
7685
7670
  children: [
7686
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { children }),
7687
- aside && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "lg:sticky lg:top-4", children: aside })
7671
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { children }),
7672
+ aside && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "lg:sticky lg:top-4", children: aside })
7688
7673
  ]
7689
7674
  }
7690
7675
  ),
7691
- footer && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "border-t border-v2-border-default bg-v2-bg-subtle p-4", children: footer })
7676
+ footer && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "border-t border-v2-border-default bg-v2-bg-subtle p-4", children: footer })
7692
7677
  ]
7693
7678
  }
7694
7679
  );
@@ -7699,8 +7684,8 @@ WizardShell.displayName = "WizardShell";
7699
7684
  var import_react99 = require("react");
7700
7685
  var AccordionPrimitive = __toESM(require("@radix-ui/react-accordion"));
7701
7686
  var import_react100 = require("@phosphor-icons/react");
7702
- var import_jsx_runtime77 = require("react/jsx-runtime");
7703
- var SingleRoot = (0, import_react99.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
7687
+ var import_jsx_runtime78 = require("react/jsx-runtime");
7688
+ var SingleRoot = (0, import_react99.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
7704
7689
  AccordionPrimitive.Root,
7705
7690
  {
7706
7691
  ref,
@@ -7709,7 +7694,7 @@ var SingleRoot = (0, import_react99.forwardRef)(({ className, ...props }, ref) =
7709
7694
  }
7710
7695
  ));
7711
7696
  SingleRoot.displayName = "DSAccordion.Root";
7712
- var MultipleRoot = (0, import_react99.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
7697
+ var MultipleRoot = (0, import_react99.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
7713
7698
  AccordionPrimitive.Root,
7714
7699
  {
7715
7700
  ref,
@@ -7718,8 +7703,8 @@ var MultipleRoot = (0, import_react99.forwardRef)(({ className, ...props }, ref)
7718
7703
  }
7719
7704
  ));
7720
7705
  MultipleRoot.displayName = "DSAccordion.MultipleRoot";
7721
- var Root15 = AccordionPrimitive.Root;
7722
- var Item7 = (0, import_react99.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
7706
+ var Root14 = AccordionPrimitive.Root;
7707
+ var Item7 = (0, import_react99.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
7723
7708
  AccordionPrimitive.Item,
7724
7709
  {
7725
7710
  ref,
@@ -7732,7 +7717,7 @@ var Item7 = (0, import_react99.forwardRef)(({ className, ...props }, ref) => /*
7732
7717
  ));
7733
7718
  Item7.displayName = "DSAccordion.Item";
7734
7719
  var Trigger16 = (0, import_react99.forwardRef)(
7735
- ({ className, children, icon, meta, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(AccordionPrimitive.Header, { className: "flex", children: /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(
7720
+ ({ className, children, icon, meta, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(AccordionPrimitive.Header, { className: "flex", children: /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
7736
7721
  AccordionPrimitive.Trigger,
7737
7722
  {
7738
7723
  ref,
@@ -7742,8 +7727,8 @@ var Trigger16 = (0, import_react99.forwardRef)(
7742
7727
  ),
7743
7728
  ...props,
7744
7729
  children: [
7745
- /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("span", { className: "flex min-w-0 items-center gap-2", children: [
7746
- icon && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
7730
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("span", { className: "flex min-w-0 items-center gap-2", children: [
7731
+ icon && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
7747
7732
  "span",
7748
7733
  {
7749
7734
  className: "shrink-0 text-v2-fg-muted",
@@ -7751,11 +7736,11 @@ var Trigger16 = (0, import_react99.forwardRef)(
7751
7736
  children: icon
7752
7737
  }
7753
7738
  ),
7754
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("span", { className: "truncate text-v2-base font-semibold text-v2-fg-default", children })
7739
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { className: "truncate text-v2-base font-semibold text-v2-fg-default", children })
7755
7740
  ] }),
7756
- /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("span", { className: "flex shrink-0 items-center gap-3", children: [
7741
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("span", { className: "flex shrink-0 items-center gap-3", children: [
7757
7742
  meta,
7758
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
7743
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
7759
7744
  import_react100.CaretDown,
7760
7745
  {
7761
7746
  size: 16,
@@ -7770,7 +7755,7 @@ var Trigger16 = (0, import_react99.forwardRef)(
7770
7755
  ) })
7771
7756
  );
7772
7757
  Trigger16.displayName = "DSAccordion.Trigger";
7773
- var Content16 = (0, import_react99.forwardRef)(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
7758
+ var Content16 = (0, import_react99.forwardRef)(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
7774
7759
  AccordionPrimitive.Content,
7775
7760
  {
7776
7761
  ref,
@@ -7779,18 +7764,18 @@ var Content16 = (0, import_react99.forwardRef)(({ className, children, ...props
7779
7764
  className
7780
7765
  ),
7781
7766
  ...props,
7782
- children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "border-t border-v2-border-default p-5", children })
7767
+ children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "border-t border-v2-border-default p-5", children })
7783
7768
  }
7784
7769
  ));
7785
7770
  Content16.displayName = "DSAccordion.Content";
7786
- var DSAccordion = Object.assign(Root15, {
7771
+ var DSAccordion = Object.assign(Root14, {
7787
7772
  Item: Item7,
7788
7773
  Trigger: Trigger16,
7789
7774
  Content: Content16
7790
7775
  });
7791
7776
 
7792
7777
  // src/patterns/DataField/DataField.tsx
7793
- var import_jsx_runtime78 = require("react/jsx-runtime");
7778
+ var import_jsx_runtime79 = require("react/jsx-runtime");
7794
7779
  function DataField({
7795
7780
  label,
7796
7781
  value,
@@ -7798,8 +7783,8 @@ function DataField({
7798
7783
  hint,
7799
7784
  className
7800
7785
  }) {
7801
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: cn("flex flex-col gap-0.5", className), children: [
7802
- /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
7786
+ return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: cn("flex flex-col gap-0.5", className), children: [
7787
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
7803
7788
  Text,
7804
7789
  {
7805
7790
  size: "xs",
@@ -7814,15 +7799,15 @@ function DataField({
7814
7799
  ]
7815
7800
  }
7816
7801
  ),
7817
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(Text, { size: "sm", weight: "semibold", children: value ?? "\u2014" }),
7818
- hint && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(Text, { size: "xs", color: "subtle", children: hint })
7802
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Text, { size: "sm", weight: "semibold", children: value ?? "\u2014" }),
7803
+ hint && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Text, { size: "xs", color: "subtle", children: hint })
7819
7804
  ] });
7820
7805
  }
7821
7806
 
7822
7807
  // src/patterns/FilterBarV2/FilterBarV2.tsx
7823
7808
  var import_react101 = require("react");
7824
7809
  var import_react102 = require("@phosphor-icons/react");
7825
- var import_jsx_runtime79 = require("react/jsx-runtime");
7810
+ var import_jsx_runtime80 = require("react/jsx-runtime");
7826
7811
  function isStringValue(v) {
7827
7812
  return typeof v === "string";
7828
7813
  }
@@ -7859,10 +7844,10 @@ function MultiSelectField({
7859
7844
  };
7860
7845
  const selectedLabels = field.options.filter((opt) => selected.includes(opt.value)).map((opt) => opt.label);
7861
7846
  const triggerLabel = selectedLabels.length === 0 ? field.placeholder ?? "Selecione..." : selectedLabels.length === 1 ? selectedLabels[0] : `${selectedLabels.length} selecionados`;
7862
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: "relative w-full", children: [
7863
- field.label && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(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 }),
7864
- /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(Popover, { open, onOpenChange: setOpen, children: [
7865
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Popover.Trigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
7847
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "relative w-full", children: [
7848
+ field.label && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(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 }),
7849
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(Popover, { open, onOpenChange: setOpen, children: [
7850
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Popover.Trigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
7866
7851
  "button",
7867
7852
  {
7868
7853
  type: "button",
@@ -7873,28 +7858,28 @@ function MultiSelectField({
7873
7858
  selected.length === 0 && "text-v2-fg-muted"
7874
7859
  ),
7875
7860
  children: [
7876
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("span", { className: "truncate", children: triggerLabel }),
7877
- selected.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Badge, { variant: "info", size: "sm", children: selected.length })
7861
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("span", { className: "truncate", children: triggerLabel }),
7862
+ selected.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Badge, { variant: "info", size: "sm", children: selected.length })
7878
7863
  ]
7879
7864
  }
7880
7865
  ) }),
7881
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7866
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
7882
7867
  Popover.Content,
7883
7868
  {
7884
7869
  size: "md",
7885
7870
  align: "start",
7886
7871
  className: "max-h-72 overflow-y-auto p-1",
7887
- children: /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
7872
+ children: /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
7888
7873
  "ul",
7889
7874
  {
7890
7875
  role: "listbox",
7891
7876
  "aria-multiselectable": "true",
7892
7877
  className: "flex flex-col",
7893
7878
  children: [
7894
- field.options.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("li", { className: "px-3 py-2 text-v2-sm text-v2-fg-muted", children: "Nenhuma op\xE7\xE3o dispon\xEDvel" }),
7879
+ field.options.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("li", { className: "px-3 py-2 text-v2-sm text-v2-fg-muted", children: "Nenhuma op\xE7\xE3o dispon\xEDvel" }),
7895
7880
  field.options.map((option) => {
7896
7881
  const checked = selected.includes(option.value);
7897
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
7882
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
7898
7883
  "button",
7899
7884
  {
7900
7885
  type: "button",
@@ -7906,14 +7891,14 @@ function MultiSelectField({
7906
7891
  "hover:bg-v2-bg-subtle focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-v2-focus-ring/30"
7907
7892
  ),
7908
7893
  children: [
7909
- checked ? /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7894
+ checked ? /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
7910
7895
  import_react102.CheckSquare,
7911
7896
  {
7912
7897
  size: 18,
7913
7898
  weight: "fill",
7914
7899
  className: "shrink-0 text-v2-action-primary"
7915
7900
  }
7916
- ) : /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7901
+ ) : /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
7917
7902
  import_react102.Square,
7918
7903
  {
7919
7904
  size: 18,
@@ -7921,7 +7906,7 @@ function MultiSelectField({
7921
7906
  className: "shrink-0 text-v2-fg-muted"
7922
7907
  }
7923
7908
  ),
7924
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("span", { className: "truncate", children: option.label })
7909
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("span", { className: "truncate", children: option.label })
7925
7910
  ]
7926
7911
  }
7927
7912
  ) }, option.value);
@@ -7940,7 +7925,7 @@ function DateRangeField({
7940
7925
  onChange
7941
7926
  }) {
7942
7927
  const range = asDateRange(value);
7943
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7928
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
7944
7929
  DateRangeInput,
7945
7930
  {
7946
7931
  label: field.label,
@@ -7962,8 +7947,8 @@ function NumberRangeField({
7962
7947
  const minLabel = field.minLabel ?? `${field.label} (maior ou igual)`;
7963
7948
  const maxLabel = field.maxLabel ?? `${field.label} (menor ou igual)`;
7964
7949
  if (field.format === "money") {
7965
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(import_jsx_runtime79.Fragment, { children: [
7966
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7950
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(import_jsx_runtime80.Fragment, { children: [
7951
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
7967
7952
  MoneyInput,
7968
7953
  {
7969
7954
  label: minLabel,
@@ -7971,7 +7956,7 @@ function NumberRangeField({
7971
7956
  onValueChange: (_f, raw) => setMin(raw)
7972
7957
  }
7973
7958
  ),
7974
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7959
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
7975
7960
  MoneyInput,
7976
7961
  {
7977
7962
  label: maxLabel,
@@ -7982,8 +7967,8 @@ function NumberRangeField({
7982
7967
  ] });
7983
7968
  }
7984
7969
  if (field.format === "percent") {
7985
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(import_jsx_runtime79.Fragment, { children: [
7986
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7970
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(import_jsx_runtime80.Fragment, { children: [
7971
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
7987
7972
  PercentInput,
7988
7973
  {
7989
7974
  label: minLabel,
@@ -7991,7 +7976,7 @@ function NumberRangeField({
7991
7976
  onValueChange: (_f, raw) => setMin(raw)
7992
7977
  }
7993
7978
  ),
7994
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7979
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
7995
7980
  PercentInput,
7996
7981
  {
7997
7982
  label: maxLabel,
@@ -8001,8 +7986,8 @@ function NumberRangeField({
8001
7986
  )
8002
7987
  ] });
8003
7988
  }
8004
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(import_jsx_runtime79.Fragment, { children: [
8005
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7989
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(import_jsx_runtime80.Fragment, { children: [
7990
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
8006
7991
  Input,
8007
7992
  {
8008
7993
  label: minLabel,
@@ -8011,7 +7996,7 @@ function NumberRangeField({
8011
7996
  onChange: (e) => setMin(e.target.value)
8012
7997
  }
8013
7998
  ),
8014
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7999
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
8015
8000
  Input,
8016
8001
  {
8017
8002
  label: maxLabel,
@@ -8024,7 +8009,7 @@ function NumberRangeField({
8024
8009
  }
8025
8010
  function renderField(field, value, onChange) {
8026
8011
  if (field.type === "text") {
8027
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
8012
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
8028
8013
  Input,
8029
8014
  {
8030
8015
  label: field.label,
@@ -8036,7 +8021,7 @@ function renderField(field, value, onChange) {
8036
8021
  );
8037
8022
  }
8038
8023
  if (field.type === "mask") {
8039
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
8024
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
8040
8025
  DocumentInput,
8041
8026
  {
8042
8027
  label: field.label,
@@ -8048,7 +8033,7 @@ function renderField(field, value, onChange) {
8048
8033
  );
8049
8034
  }
8050
8035
  if (field.type === "select") {
8051
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
8036
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
8052
8037
  Combobox,
8053
8038
  {
8054
8039
  label: field.label,
@@ -8062,13 +8047,13 @@ function renderField(field, value, onChange) {
8062
8047
  );
8063
8048
  }
8064
8049
  if (field.type === "multiSelect") {
8065
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(MultiSelectField, { field, value, onChange });
8050
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(MultiSelectField, { field, value, onChange });
8066
8051
  }
8067
8052
  if (field.type === "dateRange") {
8068
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(DateRangeField, { field, value, onChange });
8053
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(DateRangeField, { field, value, onChange });
8069
8054
  }
8070
8055
  if (field.type === "numberRange") {
8071
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(NumberRangeField, { field, value, onChange });
8056
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(NumberRangeField, { field, value, onChange });
8072
8057
  }
8073
8058
  return null;
8074
8059
  }
@@ -8117,8 +8102,8 @@ function FilterBarV2({
8117
8102
  setOpen(false);
8118
8103
  };
8119
8104
  const triggerLabel = activeCount > 0 ? `Filtros (${activeCount})` : title ?? "Filtros avan\xE7ados";
8120
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(DrawerRoot, { open, onOpenChange: setOpen, children: [
8121
- !hideTrigger && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(DrawerRoot.Trigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
8105
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(DrawerRoot, { open, onOpenChange: setOpen, children: [
8106
+ !hideTrigger && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(DrawerRoot.Trigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
8122
8107
  "button",
8123
8108
  {
8124
8109
  type: "button",
@@ -8128,26 +8113,26 @@ function FilterBarV2({
8128
8113
  className
8129
8114
  ),
8130
8115
  children: [
8131
- /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("span", { className: "inline-flex items-center gap-2", children: [
8132
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_react102.FunnelSimple, { size: 18, weight: "bold", "aria-hidden": "true" }),
8116
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("span", { className: "inline-flex items-center gap-2", children: [
8117
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_react102.FunnelSimple, { size: 18, weight: "bold", "aria-hidden": "true" }),
8133
8118
  triggerLabel
8134
8119
  ] }),
8135
- activeCount > 0 ? /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Badge, { variant: "info", size: "sm", children: activeCount }) : null
8120
+ activeCount > 0 ? /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Badge, { variant: "info", size: "sm", children: activeCount }) : null
8136
8121
  ]
8137
8122
  }
8138
8123
  ) }),
8139
- /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(DrawerRoot.Content, { side: "right", size: "md", children: [
8140
- /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(DrawerRoot.Header, { children: [
8141
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(DrawerRoot.Title, { children: title ?? "Filtros avan\xE7ados" }),
8142
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(DrawerRoot.Description, { children: activeCount > 0 ? `${activeCount} ${activeCount === 1 ? "filtro aplicado" : "filtros aplicados"}` : "Refine sua busca por campos espec\xEDficos." })
8124
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(DrawerRoot.Content, { side: "right", size: "md", children: [
8125
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(DrawerRoot.Header, { children: [
8126
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(DrawerRoot.Title, { children: title ?? "Filtros avan\xE7ados" }),
8127
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(DrawerRoot.Description, { children: activeCount > 0 ? `${activeCount} ${activeCount === 1 ? "filtro aplicado" : "filtros aplicados"}` : "Refine sua busca por campos espec\xEDficos." })
8143
8128
  ] }),
8144
- /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
8129
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
8145
8130
  "form",
8146
8131
  {
8147
8132
  onSubmit: handleApply,
8148
8133
  className: "flex flex-1 flex-col overflow-hidden",
8149
8134
  children: [
8150
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(DrawerRoot.Body, { className: "flex flex-col gap-4", children: fields.map((field) => /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
8135
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(DrawerRoot.Body, { className: "flex flex-col gap-4", children: fields.map((field) => /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
8151
8136
  "div",
8152
8137
  {
8153
8138
  className: cn(
@@ -8162,8 +8147,8 @@ function FilterBarV2({
8162
8147
  },
8163
8148
  field.name
8164
8149
  )) }),
8165
- /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(DrawerRoot.Footer, { className: "sm:justify-between", children: [
8166
- activeCount > 0 ? /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Button, { type: "button", variant: "secondary", onClick: handleClear, children: clearLabel }) : /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
8150
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(DrawerRoot.Footer, { className: "sm:justify-between", children: [
8151
+ activeCount > 0 ? /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Button, { type: "button", variant: "secondary", onClick: handleClear, children: clearLabel }) : /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
8167
8152
  Button,
8168
8153
  {
8169
8154
  type: "button",
@@ -8172,7 +8157,7 @@ function FilterBarV2({
8172
8157
  children: "Cancelar"
8173
8158
  }
8174
8159
  ),
8175
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Button, { type: "submit", children: applyLabel })
8160
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Button, { type: "submit", children: applyLabel })
8176
8161
  ] })
8177
8162
  ]
8178
8163
  }
@@ -8182,7 +8167,7 @@ function FilterBarV2({
8182
8167
  }
8183
8168
 
8184
8169
  // src/patterns/FormSection/FormSection.tsx
8185
- var import_jsx_runtime80 = require("react/jsx-runtime");
8170
+ var import_jsx_runtime81 = require("react/jsx-runtime");
8186
8171
  function FormSection({
8187
8172
  id,
8188
8173
  icon,
@@ -8192,15 +8177,15 @@ function FormSection({
8192
8177
  children,
8193
8178
  ariaLabel
8194
8179
  }) {
8195
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
8180
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
8196
8181
  "section",
8197
8182
  {
8198
8183
  id,
8199
8184
  "aria-label": ariaLabel ?? title,
8200
8185
  className: "scroll-mt-4 rounded-v2-lg border border-v2-border-default bg-v2-panel p-5 shadow-sm",
8201
8186
  children: [
8202
- /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("header", { className: "mb-5 flex items-start gap-3", children: [
8203
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
8187
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("header", { className: "mb-5 flex items-start gap-3", children: [
8188
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
8204
8189
  "span",
8205
8190
  {
8206
8191
  "aria-hidden": "true",
@@ -8208,11 +8193,11 @@ function FormSection({
8208
8193
  children: icon
8209
8194
  }
8210
8195
  ),
8211
- /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "flex flex-1 flex-col", children: [
8212
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("h2", { className: "text-v2-base font-bold text-v2-fg-default", children: title }),
8213
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("p", { className: "text-v2-sm text-v2-fg-muted", children: description })
8196
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "flex flex-1 flex-col", children: [
8197
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("h2", { className: "text-v2-base font-bold text-v2-fg-default", children: title }),
8198
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("p", { className: "text-v2-sm text-v2-fg-muted", children: description })
8214
8199
  ] }),
8215
- meta && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "shrink-0", children: meta })
8200
+ meta && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "shrink-0", children: meta })
8216
8201
  ] }),
8217
8202
  children
8218
8203
  ]
@@ -8223,7 +8208,7 @@ function FormSection({
8223
8208
  // src/patterns/FormWithAside/FormWithAside.tsx
8224
8209
  var import_react103 = require("react");
8225
8210
  var import_react104 = require("@phosphor-icons/react");
8226
- var import_jsx_runtime81 = require("react/jsx-runtime");
8211
+ var import_jsx_runtime82 = require("react/jsx-runtime");
8227
8212
  function ProgressRing({
8228
8213
  percent,
8229
8214
  size = 36
@@ -8233,7 +8218,7 @@ function ProgressRing({
8233
8218
  const circumference = 2 * Math.PI * radius;
8234
8219
  const clamped = Math.min(100, Math.max(0, percent));
8235
8220
  const offset = circumference - clamped / 100 * circumference;
8236
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
8221
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
8237
8222
  "svg",
8238
8223
  {
8239
8224
  width: size,
@@ -8242,7 +8227,7 @@ function ProgressRing({
8242
8227
  "aria-hidden": "true",
8243
8228
  className: "shrink-0",
8244
8229
  children: [
8245
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
8230
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
8246
8231
  "circle",
8247
8232
  {
8248
8233
  cx: size / 2,
@@ -8253,7 +8238,7 @@ function ProgressRing({
8253
8238
  fill: "none"
8254
8239
  }
8255
8240
  ),
8256
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
8241
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
8257
8242
  "circle",
8258
8243
  {
8259
8244
  cx: size / 2,
@@ -8268,7 +8253,7 @@ function ProgressRing({
8268
8253
  transform: `rotate(-90 ${size / 2} ${size / 2})`
8269
8254
  }
8270
8255
  ),
8271
- /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
8256
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
8272
8257
  "text",
8273
8258
  {
8274
8259
  x: "50%",
@@ -8302,9 +8287,9 @@ function FormWithAside({
8302
8287
  const computedOverall = overallPercent ?? (sections.length > 0 ? Math.round(
8303
8288
  sections.reduce((sum, s) => sum + (s.percent ?? 0), 0) / sections.length
8304
8289
  ) : 0);
8305
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "flex flex-col gap-4 lg:flex-row", children: [
8306
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "min-w-0 flex-1", children }),
8307
- /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
8290
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: "flex flex-col gap-4 lg:flex-row", children: [
8291
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "min-w-0 flex-1", children }),
8292
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
8308
8293
  "aside",
8309
8294
  {
8310
8295
  "aria-label": title,
@@ -8313,7 +8298,7 @@ function FormWithAside({
8313
8298
  collapsed ? "lg:w-14" : "lg:w-72"
8314
8299
  ),
8315
8300
  children: [
8316
- /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
8301
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
8317
8302
  "div",
8318
8303
  {
8319
8304
  className: cn(
@@ -8321,8 +8306,8 @@ function FormWithAside({
8321
8306
  collapsed ? "justify-center" : "justify-between"
8322
8307
  ),
8323
8308
  children: [
8324
- !collapsed && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("h2", { className: "text-v2-xs font-bold uppercase tracking-wide text-v2-fg-muted", children: title }),
8325
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
8309
+ !collapsed && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("h2", { className: "text-v2-xs font-bold uppercase tracking-wide text-v2-fg-muted", children: title }),
8310
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
8326
8311
  "button",
8327
8312
  {
8328
8313
  type: "button",
@@ -8331,17 +8316,17 @@ function FormWithAside({
8331
8316
  "aria-label": collapsed ? "Expandir resumo" : "Recolher resumo",
8332
8317
  title: collapsed ? "Expandir resumo" : "Recolher resumo",
8333
8318
  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",
8334
- children: collapsed ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_react104.CaretDoubleLeft, { size: 14, weight: "bold", "aria-hidden": "true" }) : /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_react104.CaretDoubleRight, { size: 14, weight: "bold", "aria-hidden": "true" })
8319
+ children: collapsed ? /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_react104.CaretDoubleLeft, { size: 14, weight: "bold", "aria-hidden": "true" }) : /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_react104.CaretDoubleRight, { size: 14, weight: "bold", "aria-hidden": "true" })
8335
8320
  }
8336
8321
  )
8337
8322
  ]
8338
8323
  }
8339
8324
  ),
8340
- collapsed ? /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "flex flex-col items-center gap-3", children: [
8341
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(ProgressRing, { percent: computedOverall, size: 36 }),
8325
+ collapsed ? /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: "flex flex-col items-center gap-3", children: [
8326
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(ProgressRing, { percent: computedOverall, size: 36 }),
8342
8327
  sections.map((s) => {
8343
8328
  const done = (s.percent ?? 0) >= 100;
8344
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
8329
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
8345
8330
  "button",
8346
8331
  {
8347
8332
  type: "button",
@@ -8356,12 +8341,12 @@ function FormWithAside({
8356
8341
  s.id
8357
8342
  );
8358
8343
  })
8359
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(import_jsx_runtime81.Fragment, { children: [
8360
- /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "flex items-center gap-3 rounded-v2-md bg-v2-raised px-3 py-2", children: [
8361
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(ProgressRing, { percent: computedOverall, size: 40 }),
8362
- /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "flex min-w-0 flex-col", children: [
8363
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: "text-v2-xs font-semibold text-v2-fg-default", children: "Progresso geral" }),
8364
- /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("span", { className: "text-v2-xs text-v2-fg-muted", children: [
8344
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(import_jsx_runtime82.Fragment, { children: [
8345
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: "flex items-center gap-3 rounded-v2-md bg-v2-raised px-3 py-2", children: [
8346
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(ProgressRing, { percent: computedOverall, size: 40 }),
8347
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: "flex min-w-0 flex-col", children: [
8348
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { className: "text-v2-xs font-semibold text-v2-fg-default", children: "Progresso geral" }),
8349
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("span", { className: "text-v2-xs text-v2-fg-muted", children: [
8365
8350
  sections.filter((s) => (s.percent ?? 0) >= 100).length,
8366
8351
  " de",
8367
8352
  " ",
@@ -8370,37 +8355,37 @@ function FormWithAside({
8370
8355
  ] })
8371
8356
  ] })
8372
8357
  ] }),
8373
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("nav", { "aria-label": "Navega\xE7\xE3o por se\xE7\xF5es", children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("ul", { className: "flex flex-col gap-0.5", children: sections.map((s) => {
8358
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("nav", { "aria-label": "Navega\xE7\xE3o por se\xE7\xF5es", children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("ul", { className: "flex flex-col gap-0.5", children: sections.map((s) => {
8374
8359
  const done = (s.percent ?? 0) >= 100;
8375
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
8360
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
8376
8361
  "button",
8377
8362
  {
8378
8363
  type: "button",
8379
8364
  onClick: () => scrollToId(s.id),
8380
8365
  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",
8381
8366
  children: [
8382
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { "aria-hidden": "true", className: "mt-0.5 shrink-0", children: done ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
8367
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { "aria-hidden": "true", className: "mt-0.5 shrink-0", children: done ? /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
8383
8368
  import_react104.CheckCircle,
8384
8369
  {
8385
8370
  size: 14,
8386
8371
  weight: "fill",
8387
8372
  className: "text-v2-success-500"
8388
8373
  }
8389
- ) : /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_react104.Circle, { size: 14, className: "text-v2-fg-muted" }) }),
8390
- /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("span", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
8391
- /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("span", { className: "flex items-center justify-between gap-2", children: [
8392
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: "truncate text-v2-sm font-medium text-v2-fg-default", children: s.label }),
8393
- typeof s.percent === "number" && /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("span", { className: "shrink-0 text-v2-xs font-semibold tabular-nums text-v2-fg-muted", children: [
8374
+ ) : /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_react104.Circle, { size: 14, className: "text-v2-fg-muted" }) }),
8375
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("span", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
8376
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("span", { className: "flex items-center justify-between gap-2", children: [
8377
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { className: "truncate text-v2-sm font-medium text-v2-fg-default", children: s.label }),
8378
+ typeof s.percent === "number" && /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("span", { className: "shrink-0 text-v2-xs font-semibold tabular-nums text-v2-fg-muted", children: [
8394
8379
  s.percent,
8395
8380
  "%"
8396
8381
  ] })
8397
8382
  ] }),
8398
- typeof s.percent === "number" && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
8383
+ typeof s.percent === "number" && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
8399
8384
  "span",
8400
8385
  {
8401
8386
  "aria-hidden": "true",
8402
8387
  className: "block h-1 overflow-hidden rounded-v2-pill bg-v2-bg-subtle",
8403
- children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
8388
+ children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
8404
8389
  "span",
8405
8390
  {
8406
8391
  className: "block h-full bg-v2-action-primary transition-all",
@@ -8409,7 +8394,7 @@ function FormWithAside({
8409
8394
  )
8410
8395
  }
8411
8396
  ),
8412
- s.pendingCount && s.pendingCount > 0 ? /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("span", { className: "text-v2-xs text-v2-warn-fg", children: [
8397
+ s.pendingCount && s.pendingCount > 0 ? /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("span", { className: "text-v2-xs text-v2-warn-fg", children: [
8413
8398
  s.pendingCount,
8414
8399
  " pend\xEAncia",
8415
8400
  s.pendingCount === 1 ? "" : "s"
@@ -8419,7 +8404,7 @@ function FormWithAside({
8419
8404
  }
8420
8405
  ) }, s.id);
8421
8406
  }) }) }),
8422
- asideExtra && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "border-t border-v2-border-default pt-3", children: asideExtra })
8407
+ asideExtra && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "border-t border-v2-border-default pt-3", children: asideExtra })
8423
8408
  ] })
8424
8409
  ]
8425
8410
  }
@@ -8428,7 +8413,7 @@ function FormWithAside({
8428
8413
  }
8429
8414
 
8430
8415
  // src/patterns/HorizontalBarChart/HorizontalBarChart.tsx
8431
- var import_jsx_runtime82 = require("react/jsx-runtime");
8416
+ var import_jsx_runtime83 = require("react/jsx-runtime");
8432
8417
  var PALETTE = [
8433
8418
  "var(--v2-chart-cat-1)",
8434
8419
  "var(--v2-chart-cat-2)",
@@ -8447,7 +8432,7 @@ function HorizontalBarChart({
8447
8432
  showSecondary = false
8448
8433
  }) {
8449
8434
  const max = Math.max(1, ...items.map((i) => i.value));
8450
- return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
8435
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
8451
8436
  "div",
8452
8437
  {
8453
8438
  role: "img",
@@ -8457,20 +8442,20 @@ function HorizontalBarChart({
8457
8442
  const color = item.color ?? PALETTE[idx % PALETTE.length];
8458
8443
  const pct = item.value / max * 100;
8459
8444
  const hasSecondary = showSecondary && typeof item.secondaryValue === "number";
8460
- return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
8445
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
8461
8446
  "div",
8462
8447
  {
8463
8448
  className: "group flex flex-col gap-1 text-v2-sm",
8464
8449
  title: hasSecondary ? `${item.label}: ${valueFormatter(item.value)} \xB7 ${secondaryFormatter(item.secondaryValue ?? 0)}` : `${item.label}: ${valueFormatter(item.value)}`,
8465
8450
  children: [
8466
- /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: "flex items-baseline justify-between gap-3", children: [
8467
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { className: "truncate text-v2-xs font-semibold text-v2-fg-muted", children: item.label }),
8468
- /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("span", { className: "flex items-baseline gap-2", children: [
8469
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { className: "font-bold text-v2-fg-default", children: valueFormatter(item.value) }),
8470
- hasSecondary && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { className: "text-v2-xs text-v2-fg-subtle", children: item.secondaryLabel ? `${item.secondaryLabel} ${secondaryFormatter(item.secondaryValue ?? 0)}` : secondaryFormatter(item.secondaryValue ?? 0) })
8451
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: "flex items-baseline justify-between gap-3", children: [
8452
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("span", { className: "truncate text-v2-xs font-semibold text-v2-fg-muted", children: item.label }),
8453
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("span", { className: "flex items-baseline gap-2", children: [
8454
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("span", { className: "font-bold text-v2-fg-default", children: valueFormatter(item.value) }),
8455
+ hasSecondary && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("span", { className: "text-v2-xs text-v2-fg-subtle", children: item.secondaryLabel ? `${item.secondaryLabel} ${secondaryFormatter(item.secondaryValue ?? 0)}` : secondaryFormatter(item.secondaryValue ?? 0) })
8471
8456
  ] })
8472
8457
  ] }),
8473
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "h-2.5 w-full overflow-hidden rounded-v2-pill bg-v2-bg-subtle", children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
8458
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: "h-2.5 w-full overflow-hidden rounded-v2-pill bg-v2-bg-subtle", children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
8474
8459
  "div",
8475
8460
  {
8476
8461
  className: "h-full rounded-v2-pill transition-all duration-300 group-hover:brightness-110",
@@ -8492,7 +8477,7 @@ function HorizontalBarChart({
8492
8477
 
8493
8478
  // src/patterns/LineChart/LineChart.tsx
8494
8479
  var import_recharts2 = require("recharts");
8495
- var import_jsx_runtime83 = require("react/jsx-runtime");
8480
+ var import_jsx_runtime84 = require("react/jsx-runtime");
8496
8481
  function toRows(labels, series) {
8497
8482
  return labels.map((label, i) => {
8498
8483
  const row = { x: label };
@@ -8513,10 +8498,10 @@ function ChartTooltip2({
8513
8498
  formatLabel
8514
8499
  }) {
8515
8500
  if (!active || !(payload == null ? void 0 : payload.length)) return null;
8516
- return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: "rounded-v2-md border border-v2-border-default bg-v2-panel px-3 py-2 text-v2-xs shadow-lg", children: [
8517
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("p", { className: "font-semibold text-v2-fg-default", children: formatLabel(label ?? "") }),
8518
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: "mt-1 flex flex-col gap-0.5", children: payload.map((p) => /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: "flex items-center gap-2", children: [
8519
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
8501
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "rounded-v2-md border border-v2-border-default bg-v2-panel px-3 py-2 text-v2-xs shadow-lg", children: [
8502
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("p", { className: "font-semibold text-v2-fg-default", children: formatLabel(label ?? "") }),
8503
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: "mt-1 flex flex-col gap-0.5", children: payload.map((p) => /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "flex items-center gap-2", children: [
8504
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
8520
8505
  "span",
8521
8506
  {
8522
8507
  className: "size-2 rounded-full",
@@ -8524,11 +8509,11 @@ function ChartTooltip2({
8524
8509
  "aria-hidden": "true"
8525
8510
  }
8526
8511
  ),
8527
- /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("span", { className: "text-v2-fg-muted", children: [
8512
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("span", { className: "text-v2-fg-muted", children: [
8528
8513
  p.name,
8529
8514
  ":"
8530
8515
  ] }),
8531
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("span", { className: "font-semibold text-v2-fg-default", children: formatValue(typeof p.value === "number" ? p.value : 0) })
8516
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("span", { className: "font-semibold text-v2-fg-default", children: formatValue(typeof p.value === "number" ? p.value : 0) })
8532
8517
  ] }, p.name)) })
8533
8518
  ] });
8534
8519
  }
@@ -8544,15 +8529,15 @@ function LineChart({
8544
8529
  }) {
8545
8530
  const rows = toRows(labels, series);
8546
8531
  const Chart = variant === "area" ? import_recharts2.AreaChart : import_recharts2.LineChart;
8547
- return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
8532
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
8548
8533
  "div",
8549
8534
  {
8550
8535
  role: "img",
8551
8536
  "aria-label": ariaLabel,
8552
8537
  className: cn("w-full", className),
8553
8538
  style: { height },
8554
- children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_recharts2.ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(Chart, { data: rows, margin: { top: 8, right: 12, left: 0, bottom: 0 }, children: [
8555
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("defs", { children: series.map((s, i) => /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
8539
+ children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_recharts2.ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(Chart, { data: rows, margin: { top: 8, right: 12, left: 0, bottom: 0 }, children: [
8540
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("defs", { children: series.map((s, i) => /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
8556
8541
  "linearGradient",
8557
8542
  {
8558
8543
  id: `v2-line-grad-${i}`,
@@ -8561,13 +8546,13 @@ function LineChart({
8561
8546
  x2: "0",
8562
8547
  y2: "1",
8563
8548
  children: [
8564
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("stop", { offset: "0%", stopColor: s.color, stopOpacity: 0.35 }),
8565
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("stop", { offset: "95%", stopColor: s.color, stopOpacity: 0 })
8549
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("stop", { offset: "0%", stopColor: s.color, stopOpacity: 0.35 }),
8550
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("stop", { offset: "95%", stopColor: s.color, stopOpacity: 0 })
8566
8551
  ]
8567
8552
  },
8568
8553
  `grad-${s.name}-${i}`
8569
8554
  )) }),
8570
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
8555
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
8571
8556
  import_recharts2.CartesianGrid,
8572
8557
  {
8573
8558
  strokeDasharray: "3 4",
@@ -8575,7 +8560,7 @@ function LineChart({
8575
8560
  vertical: false
8576
8561
  }
8577
8562
  ),
8578
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
8563
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
8579
8564
  import_recharts2.XAxis,
8580
8565
  {
8581
8566
  dataKey: "x",
@@ -8584,7 +8569,7 @@ function LineChart({
8584
8569
  axisLine: { stroke: "var(--v2-border-default)" }
8585
8570
  }
8586
8571
  ),
8587
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
8572
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
8588
8573
  import_recharts2.YAxis,
8589
8574
  {
8590
8575
  tick: { fill: "var(--v2-fg-subtle)", fontSize: 11 },
@@ -8594,14 +8579,14 @@ function LineChart({
8594
8579
  width: 70
8595
8580
  }
8596
8581
  ),
8597
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
8582
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
8598
8583
  import_recharts2.Tooltip,
8599
8584
  {
8600
8585
  cursor: {
8601
8586
  stroke: "var(--v2-border-default)",
8602
8587
  strokeDasharray: "3 4"
8603
8588
  },
8604
- content: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
8589
+ content: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
8605
8590
  ChartTooltip2,
8606
8591
  {
8607
8592
  formatValue,
@@ -8610,7 +8595,7 @@ function LineChart({
8610
8595
  )
8611
8596
  }
8612
8597
  ),
8613
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
8598
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
8614
8599
  import_recharts2.Legend,
8615
8600
  {
8616
8601
  verticalAlign: "top",
@@ -8620,7 +8605,7 @@ function LineChart({
8620
8605
  }
8621
8606
  ),
8622
8607
  series.map(
8623
- (s, i) => variant === "area" ? /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
8608
+ (s, i) => variant === "area" ? /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
8624
8609
  import_recharts2.Area,
8625
8610
  {
8626
8611
  type: "monotone",
@@ -8635,7 +8620,7 @@ function LineChart({
8635
8620
  }
8636
8621
  },
8637
8622
  s.name
8638
- ) : /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
8623
+ ) : /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
8639
8624
  import_recharts2.Line,
8640
8625
  {
8641
8626
  type: "monotone",
@@ -8659,7 +8644,7 @@ function LineChart({
8659
8644
 
8660
8645
  // src/patterns/PanelCard/PanelCard.tsx
8661
8646
  var import_react105 = require("react");
8662
- var import_jsx_runtime84 = require("react/jsx-runtime");
8647
+ var import_jsx_runtime85 = require("react/jsx-runtime");
8663
8648
  var PanelCard = (0, import_react105.forwardRef)(
8664
8649
  ({
8665
8650
  icon,
@@ -8678,7 +8663,7 @@ var PanelCard = (0, import_react105.forwardRef)(
8678
8663
  const hasHeader = !!(icon || title || subtitle || actions);
8679
8664
  const padding = density === "compact" ? "p-4" : "p-5";
8680
8665
  const headerPadding = density === "compact" ? "px-4 py-3" : "px-5 py-4";
8681
- return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
8666
+ return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
8682
8667
  "section",
8683
8668
  {
8684
8669
  ref,
@@ -8688,7 +8673,7 @@ var PanelCard = (0, import_react105.forwardRef)(
8688
8673
  ),
8689
8674
  ...props,
8690
8675
  children: [
8691
- hasHeader && /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
8676
+ hasHeader && /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
8692
8677
  "header",
8693
8678
  {
8694
8679
  className: cn(
@@ -8698,19 +8683,19 @@ var PanelCard = (0, import_react105.forwardRef)(
8698
8683
  headerClassName
8699
8684
  ),
8700
8685
  children: [
8701
- /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "flex min-w-0 items-start gap-3", children: [
8702
- icon && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("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 }),
8703
- (title || subtitle) && /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "flex min-w-0 flex-col gap-0.5", children: [
8704
- title && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("h2", { className: "m-0 text-v2-base font-semibold text-v2-fg-default", children: title }),
8705
- subtitle && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("p", { className: "m-0 text-v2-sm text-v2-fg-muted", children: subtitle })
8686
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "flex min-w-0 items-start gap-3", children: [
8687
+ icon && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("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 }),
8688
+ (title || subtitle) && /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "flex min-w-0 flex-col gap-0.5", children: [
8689
+ title && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("h2", { className: "m-0 text-v2-base font-semibold text-v2-fg-default", children: title }),
8690
+ subtitle && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("p", { className: "m-0 text-v2-sm text-v2-fg-muted", children: subtitle })
8706
8691
  ] })
8707
8692
  ] }),
8708
- actions && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: "flex shrink-0 items-center gap-2", children: actions })
8693
+ actions && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: "flex shrink-0 items-center gap-2", children: actions })
8709
8694
  ]
8710
8695
  }
8711
8696
  ),
8712
- children !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: cn(padding, bodyClassName), children }),
8713
- footer && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
8697
+ children !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: cn(padding, bodyClassName), children }),
8698
+ footer && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
8714
8699
  "footer",
8715
8700
  {
8716
8701
  className: cn(
@@ -8729,7 +8714,7 @@ PanelCard.displayName = "PanelCard";
8729
8714
 
8730
8715
  // src/patterns/SectionCard/SectionCard.tsx
8731
8716
  var import_react106 = require("@phosphor-icons/react");
8732
- var import_jsx_runtime85 = require("react/jsx-runtime");
8717
+ var import_jsx_runtime86 = require("react/jsx-runtime");
8733
8718
  function SectionCard({
8734
8719
  title,
8735
8720
  icon,
@@ -8739,7 +8724,7 @@ function SectionCard({
8739
8724
  highlight,
8740
8725
  className
8741
8726
  }) {
8742
- return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
8727
+ return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
8743
8728
  "section",
8744
8729
  {
8745
8730
  id,
@@ -8749,9 +8734,9 @@ function SectionCard({
8749
8734
  className
8750
8735
  ),
8751
8736
  children: [
8752
- /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "flex flex-wrap items-center justify-between gap-x-3 gap-y-2 border-b border-v2-border-subtle pb-3", children: [
8753
- /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "flex items-center gap-2", children: [
8754
- icon && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
8737
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "flex flex-wrap items-center justify-between gap-x-3 gap-y-2 border-b border-v2-border-subtle pb-3", children: [
8738
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "flex items-center gap-2", children: [
8739
+ icon && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
8755
8740
  "span",
8756
8741
  {
8757
8742
  "aria-hidden": "true",
@@ -8759,9 +8744,9 @@ function SectionCard({
8759
8744
  children: icon
8760
8745
  }
8761
8746
  ),
8762
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Heading, { level: 3, size: "sm", children: title }),
8763
- highlight && /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("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: [
8764
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_react106.WarningCircle, { size: 11, weight: "fill", "aria-hidden": "true" }),
8747
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Heading, { level: 3, size: "sm", children: title }),
8748
+ highlight && /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("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: [
8749
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_react106.WarningCircle, { size: 11, weight: "fill", "aria-hidden": "true" }),
8765
8750
  "Pendente"
8766
8751
  ] })
8767
8752
  ] }),
@@ -8775,7 +8760,7 @@ function SectionCard({
8775
8760
 
8776
8761
  // src/patterns/StackedBarChart/StackedBarChart.tsx
8777
8762
  var import_recharts3 = require("recharts");
8778
- var import_jsx_runtime86 = require("react/jsx-runtime");
8763
+ var import_jsx_runtime87 = require("react/jsx-runtime");
8779
8764
  function toRows2(labels, stacks) {
8780
8765
  return labels.map((label, i) => {
8781
8766
  const row = { x: label };
@@ -8800,11 +8785,11 @@ function ChartTooltip3({
8800
8785
  (sum, p) => sum + (typeof p.value === "number" ? p.value : 0),
8801
8786
  0
8802
8787
  );
8803
- return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "rounded-v2-md border border-v2-border-default bg-v2-panel px-3 py-2 text-v2-xs shadow-lg", children: [
8804
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("p", { className: "font-semibold text-v2-fg-default", children: formatLabel(label ?? "") }),
8805
- /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "mt-1 flex flex-col gap-0.5", children: [
8806
- payload.map((p) => /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "flex items-center gap-2", children: [
8807
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
8788
+ return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "rounded-v2-md border border-v2-border-default bg-v2-panel px-3 py-2 text-v2-xs shadow-lg", children: [
8789
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("p", { className: "font-semibold text-v2-fg-default", children: formatLabel(label ?? "") }),
8790
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "mt-1 flex flex-col gap-0.5", children: [
8791
+ payload.map((p) => /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "flex items-center gap-2", children: [
8792
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
8808
8793
  "span",
8809
8794
  {
8810
8795
  className: "size-2 rounded-sm",
@@ -8812,15 +8797,15 @@ function ChartTooltip3({
8812
8797
  "aria-hidden": "true"
8813
8798
  }
8814
8799
  ),
8815
- /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("span", { className: "text-v2-fg-muted", children: [
8800
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("span", { className: "text-v2-fg-muted", children: [
8816
8801
  p.name,
8817
8802
  ":"
8818
8803
  ] }),
8819
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("span", { className: "font-semibold text-v2-fg-default", children: formatValue(typeof p.value === "number" ? p.value : 0) })
8804
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("span", { className: "font-semibold text-v2-fg-default", children: formatValue(typeof p.value === "number" ? p.value : 0) })
8820
8805
  ] }, p.name)),
8821
- /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "mt-1 flex items-center justify-between gap-2 border-t border-v2-border-default pt-1", children: [
8822
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("span", { className: "text-v2-fg-muted", children: "Total:" }),
8823
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("span", { className: "font-semibold text-v2-fg-default", children: formatValue(total) })
8806
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "mt-1 flex items-center justify-between gap-2 border-t border-v2-border-default pt-1", children: [
8807
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("span", { className: "text-v2-fg-muted", children: "Total:" }),
8808
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("span", { className: "font-semibold text-v2-fg-default", children: formatValue(total) })
8824
8809
  ] })
8825
8810
  ] })
8826
8811
  ] });
@@ -8835,20 +8820,20 @@ function StackedBarChart({
8835
8820
  formatLabel = (l) => l
8836
8821
  }) {
8837
8822
  const rows = toRows2(labels, stacks);
8838
- return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
8823
+ return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
8839
8824
  "div",
8840
8825
  {
8841
8826
  role: "img",
8842
8827
  "aria-label": ariaLabel,
8843
8828
  className: cn("w-full", className),
8844
8829
  style: { height },
8845
- children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_recharts3.ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
8830
+ children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_recharts3.ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(
8846
8831
  import_recharts3.BarChart,
8847
8832
  {
8848
8833
  data: rows,
8849
8834
  margin: { top: 8, right: 12, left: 0, bottom: 0 },
8850
8835
  children: [
8851
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
8836
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
8852
8837
  import_recharts3.CartesianGrid,
8853
8838
  {
8854
8839
  strokeDasharray: "3 4",
@@ -8856,7 +8841,7 @@ function StackedBarChart({
8856
8841
  vertical: false
8857
8842
  }
8858
8843
  ),
8859
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
8844
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
8860
8845
  import_recharts3.XAxis,
8861
8846
  {
8862
8847
  dataKey: "x",
@@ -8865,7 +8850,7 @@ function StackedBarChart({
8865
8850
  axisLine: { stroke: "var(--v2-border-default)" }
8866
8851
  }
8867
8852
  ),
8868
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
8853
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
8869
8854
  import_recharts3.YAxis,
8870
8855
  {
8871
8856
  tick: { fill: "var(--v2-fg-subtle)", fontSize: 11 },
@@ -8875,11 +8860,11 @@ function StackedBarChart({
8875
8860
  width: 70
8876
8861
  }
8877
8862
  ),
8878
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
8863
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
8879
8864
  import_recharts3.Tooltip,
8880
8865
  {
8881
8866
  cursor: { fill: "var(--v2-bg-subtle)" },
8882
- content: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
8867
+ content: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
8883
8868
  ChartTooltip3,
8884
8869
  {
8885
8870
  formatValue,
@@ -8888,7 +8873,7 @@ function StackedBarChart({
8888
8873
  )
8889
8874
  }
8890
8875
  ),
8891
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
8876
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
8892
8877
  import_recharts3.Legend,
8893
8878
  {
8894
8879
  verticalAlign: "top",
@@ -8897,7 +8882,7 @@ function StackedBarChart({
8897
8882
  wrapperStyle: { fontSize: 11, paddingBottom: 8 }
8898
8883
  }
8899
8884
  ),
8900
- stacks.map((s) => /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
8885
+ stacks.map((s) => /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
8901
8886
  import_recharts3.Bar,
8902
8887
  {
8903
8888
  dataKey: s.name,
@@ -8916,11 +8901,11 @@ function StackedBarChart({
8916
8901
 
8917
8902
  // src/patterns/WorkflowDesigner/WorkflowDesigner.tsx
8918
8903
  var import_react107 = require("@phosphor-icons/react");
8919
- var import_jsx_runtime87 = require("react/jsx-runtime");
8904
+ var import_jsx_runtime88 = require("react/jsx-runtime");
8920
8905
  var kindIconMap = {
8921
- automatic: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_react107.Lightning, { size: 14, "aria-hidden": "true" }),
8922
- manual: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_react107.Hand, { size: 14, "aria-hidden": "true" }),
8923
- system: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_react107.Gear, { size: 14, "aria-hidden": "true" })
8906
+ automatic: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_react107.Lightning, { size: 14, "aria-hidden": "true" }),
8907
+ manual: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_react107.Hand, { size: 14, "aria-hidden": "true" }),
8908
+ system: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_react107.Gear, { size: 14, "aria-hidden": "true" })
8924
8909
  };
8925
8910
  function NodeCard({
8926
8911
  node,
@@ -8930,7 +8915,7 @@ function NodeCard({
8930
8915
  var _a, _b;
8931
8916
  const rulesCount = ((_a = node.rules) == null ? void 0 : _a.length) ?? 0;
8932
8917
  const actionsCount = ((_b = node.actions) == null ? void 0 : _b.length) ?? 0;
8933
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(
8918
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(
8934
8919
  "button",
8935
8920
  {
8936
8921
  type: "button",
@@ -8940,17 +8925,17 @@ function NodeCard({
8940
8925
  selected && "ring-2 ring-v2-action-primary border-v2-action-primary"
8941
8926
  ),
8942
8927
  children: [
8943
- /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "mb-1 flex items-center gap-1.5", children: [
8944
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("span", { className: "text-v2-fg-muted", children: kindIconMap[node.kind] }),
8945
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("span", { className: "truncate text-v2-sm font-semibold text-v2-fg-default", children: node.label })
8928
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: "mb-1 flex items-center gap-1.5", children: [
8929
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("span", { className: "text-v2-fg-muted", children: kindIconMap[node.kind] }),
8930
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("span", { className: "truncate text-v2-sm font-semibold text-v2-fg-default", children: node.label })
8946
8931
  ] }),
8947
- (rulesCount > 0 || actionsCount > 0) && /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "mt-1.5 flex flex-wrap items-center gap-1", children: [
8948
- rulesCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(Badge, { size: "sm", variant: "default", children: [
8932
+ (rulesCount > 0 || actionsCount > 0) && /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: "mt-1.5 flex flex-wrap items-center gap-1", children: [
8933
+ rulesCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(Badge, { size: "sm", variant: "default", children: [
8949
8934
  rulesCount,
8950
8935
  " regra",
8951
8936
  rulesCount !== 1 ? "s" : ""
8952
8937
  ] }),
8953
- actionsCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(Badge, { size: "sm", variant: "info", children: [
8938
+ actionsCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(Badge, { size: "sm", variant: "info", children: [
8954
8939
  actionsCount,
8955
8940
  " a\xE7\xE3o",
8956
8941
  actionsCount !== 1 ? "\xF5es" : ""
@@ -8965,12 +8950,12 @@ function SidePanel({
8965
8950
  selectedNodeId
8966
8951
  }) {
8967
8952
  const selected = nodes.find((n) => n.id === selectedNodeId);
8968
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "w-72 shrink-0 rounded-v2-lg border border-v2-border-default bg-v2-panel p-4 shadow-sm", children: [
8969
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Heading, { level: 3, size: "xs", className: "mb-3", children: "Regras e a\xE7\xF5es" }),
8970
- !selected ? /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Text, { size: "sm", color: "muted", children: "Selecione um n\xF3 para configurar" }) : /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "flex flex-col gap-4", children: [
8971
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Text, { size: "base", weight: "semibold", children: selected.label }),
8972
- /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("section", { children: [
8973
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
8953
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: "w-72 shrink-0 rounded-v2-lg border border-v2-border-default bg-v2-panel p-4 shadow-sm", children: [
8954
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Heading, { level: 3, size: "xs", className: "mb-3", children: "Regras e a\xE7\xF5es" }),
8955
+ !selected ? /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Text, { size: "sm", color: "muted", children: "Selecione um n\xF3 para configurar" }) : /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: "flex flex-col gap-4", children: [
8956
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Text, { size: "base", weight: "semibold", children: selected.label }),
8957
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("section", { children: [
8958
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
8974
8959
  Text,
8975
8960
  {
8976
8961
  size: "xs",
@@ -8980,13 +8965,13 @@ function SidePanel({
8980
8965
  children: "Regras"
8981
8966
  }
8982
8967
  ),
8983
- !selected.rules || selected.rules.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Text, { size: "sm", color: "muted", children: "Nenhuma regra" }) : /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("ul", { className: "flex flex-col gap-1.5", children: selected.rules.map((rule, idx) => /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("li", { className: "flex flex-col gap-0.5", children: [
8984
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Text, { size: "xs", color: "muted", children: rule.type }),
8985
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("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 })
8968
+ !selected.rules || selected.rules.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Text, { size: "sm", color: "muted", children: "Nenhuma regra" }) : /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("ul", { className: "flex flex-col gap-1.5", children: selected.rules.map((rule, idx) => /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("li", { className: "flex flex-col gap-0.5", children: [
8969
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Text, { size: "xs", color: "muted", children: rule.type }),
8970
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("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 })
8986
8971
  ] }, idx)) })
8987
8972
  ] }),
8988
- /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("section", { children: [
8989
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
8973
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("section", { children: [
8974
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
8990
8975
  Text,
8991
8976
  {
8992
8977
  size: "xs",
@@ -8996,9 +8981,9 @@ function SidePanel({
8996
8981
  children: "A\xE7\xF5es"
8997
8982
  }
8998
8983
  ),
8999
- !selected.actions || selected.actions.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Text, { size: "sm", color: "muted", children: "Nenhuma a\xE7\xE3o" }) : /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("ul", { className: "flex flex-col gap-1.5", children: selected.actions.map((action, idx) => /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("li", { className: "flex flex-col gap-0.5", children: [
9000
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Text, { size: "xs", color: "muted", children: action.type }),
9001
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("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 })
8984
+ !selected.actions || selected.actions.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Text, { size: "sm", color: "muted", children: "Nenhuma a\xE7\xE3o" }) : /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("ul", { className: "flex flex-col gap-1.5", children: selected.actions.map((action, idx) => /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("li", { className: "flex flex-col gap-0.5", children: [
8985
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Text, { size: "xs", color: "muted", children: action.type }),
8986
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("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 })
9002
8987
  ] }, idx)) })
9003
8988
  ] })
9004
8989
  ] })
@@ -9019,14 +9004,14 @@ function WorkflowDesigner({
9019
9004
  onNodeSelect == null ? void 0 : onNodeSelect(id === selectedNodeId ? null : id);
9020
9005
  };
9021
9006
  const colCount = phases.length;
9022
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: cn("flex gap-4", className), ...props, children: [
9023
- /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "min-h-[480px] flex-1 rounded-v2-lg border border-v2-border-default bg-v2-bg-subtle p-4", children: [
9024
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
9007
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: cn("flex gap-4", className), ...props, children: [
9008
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: "min-h-[480px] flex-1 rounded-v2-lg border border-v2-border-default bg-v2-bg-subtle p-4", children: [
9009
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
9025
9010
  "div",
9026
9011
  {
9027
9012
  className: "mb-3 grid gap-3 border-b border-v2-border-default pb-2",
9028
9013
  style: { gridTemplateColumns: `repeat(${colCount}, minmax(0, 1fr))` },
9029
- children: phases.map((phase) => /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
9014
+ children: phases.map((phase) => /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
9030
9015
  "div",
9031
9016
  {
9032
9017
  className: "text-v2-xs font-bold uppercase tracking-wide text-v2-fg-muted",
@@ -9036,14 +9021,14 @@ function WorkflowDesigner({
9036
9021
  ))
9037
9022
  }
9038
9023
  ),
9039
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
9024
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
9040
9025
  "div",
9041
9026
  {
9042
9027
  className: "grid gap-3",
9043
9028
  style: { gridTemplateColumns: `repeat(${colCount}, minmax(0, 1fr))` },
9044
9029
  children: phases.map((phase) => {
9045
9030
  const phaseNodes = nodes.filter((n) => n.phase === phase);
9046
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: "flex flex-col gap-2", children: phaseNodes.map((node) => /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
9031
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: "flex flex-col gap-2", children: phaseNodes.map((node) => /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
9047
9032
  NodeCard,
9048
9033
  {
9049
9034
  node,
@@ -9055,21 +9040,21 @@ function WorkflowDesigner({
9055
9040
  })
9056
9041
  }
9057
9042
  ),
9058
- edges.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
9043
+ edges.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
9059
9044
  "div",
9060
9045
  {
9061
9046
  className: "mt-4 border-t border-v2-border-default pt-3",
9062
9047
  "aria-label": "Transi\xE7\xF5es",
9063
- children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: "flex flex-wrap gap-2", children: edges.map((edge, idx) => /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(
9048
+ children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: "flex flex-wrap gap-2", children: edges.map((edge, idx) => /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(
9064
9049
  "div",
9065
9050
  {
9066
9051
  className: "flex items-center gap-1 rounded-v2-sm border border-v2-border-default bg-v2-panel px-2 py-0.5",
9067
9052
  title: `${edge.from} \u2192 ${edge.to}`,
9068
9053
  children: [
9069
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("span", { className: "font-mono text-v2-xs text-v2-fg-subtle", children: edge.from }),
9070
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("span", { className: "text-v2-xs text-v2-fg-subtle", children: "\u2192" }),
9071
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("span", { className: "font-mono text-v2-xs text-v2-fg-subtle", children: edge.to }),
9072
- edge.trigger && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Badge, { size: "sm", variant: "default", className: "ml-1", children: edge.trigger })
9054
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("span", { className: "font-mono text-v2-xs text-v2-fg-subtle", children: edge.from }),
9055
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("span", { className: "text-v2-xs text-v2-fg-subtle", children: "\u2192" }),
9056
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("span", { className: "font-mono text-v2-xs text-v2-fg-subtle", children: edge.to }),
9057
+ edge.trigger && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Badge, { size: "sm", variant: "default", className: "ml-1", children: edge.trigger })
9073
9058
  ]
9074
9059
  },
9075
9060
  idx
@@ -9077,8 +9062,8 @@ function WorkflowDesigner({
9077
9062
  }
9078
9063
  )
9079
9064
  ] }),
9080
- showPanel && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(SidePanel, { nodes, selectedNodeId }),
9081
- showSidePanel !== false && !selectedNodeId && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(SidePanel, { nodes, selectedNodeId: void 0 })
9065
+ showPanel && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(SidePanel, { nodes, selectedNodeId }),
9066
+ showSidePanel !== false && !selectedNodeId && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(SidePanel, { nodes, selectedNodeId: void 0 })
9082
9067
  ] });
9083
9068
  }
9084
9069
  // Annotate the CommonJS export names for ESM import in node: