@humu-tech/ui 0.1.16 → 0.1.18

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
@@ -862,6 +862,10 @@ function applyMask(mask, raw) {
862
862
  function stripToRaw(value) {
863
863
  return value.replace(/[^0-9a-zA-Z]/g, "");
864
864
  }
865
+ function capToMaskSlots(mask, raw) {
866
+ const maxSlots = countMaskSlots(selectMask(mask, raw));
867
+ return maxSlots > 0 && raw.length > maxSlots ? raw.slice(0, maxSlots) : raw;
868
+ }
865
869
  var MaskedInput = (0, import_react10.forwardRef)(
866
870
  ({
867
871
  mask,
@@ -882,8 +886,11 @@ var MaskedInput = (0, import_react10.forwardRef)(
882
886
  const isDark = surface === "dark";
883
887
  const [internalValue, setInternalValue] = (0, import_react10.useState)("");
884
888
  const isControlled = valueProp !== void 0;
885
- const rawDisplay = (normalizeRaw ?? stripToRaw)(
886
- String((isControlled ? valueProp : internalValue) ?? "")
889
+ const rawDisplay = capToMaskSlots(
890
+ mask,
891
+ (normalizeRaw ?? stripToRaw)(
892
+ String((isControlled ? valueProp : internalValue) ?? "")
893
+ )
887
894
  );
888
895
  const displayValue = rawDisplay ? applyMask(selectMask(mask, rawDisplay), rawDisplay) : "";
889
896
  const generatedId = (0, import_react10.useId)();
@@ -893,7 +900,7 @@ var MaskedInput = (0, import_react10.forwardRef)(
893
900
  const describedBy = [helperId, errorId].filter(Boolean).join(" ") || void 0;
894
901
  const handleChange = (e) => {
895
902
  const inputVal = e.target.value;
896
- const raw = (normalizeRaw ?? stripToRaw)(inputVal);
903
+ const raw = capToMaskSlots(mask, (normalizeRaw ?? stripToRaw)(inputVal));
897
904
  const activeMask = selectMask(mask, raw);
898
905
  const formatted = applyMask(activeMask, raw);
899
906
  if (!isControlled) setInternalValue(formatted);
@@ -1685,7 +1692,7 @@ var Content4 = (0, import_react18.forwardRef)(({ size, hideCloseButton, classNam
1685
1692
  DialogPrimitive.Close,
1686
1693
  {
1687
1694
  "aria-label": "Fechar",
1688
- className: "absolute right-4 top-4 rounded-v2-sm text-v2-fg-subtle opacity-70 transition-opacity hover:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-v2-focus-ring/30 disabled:pointer-events-none motion-reduce:transition-none",
1695
+ className: "absolute right-3 top-3 inline-flex size-8 items-center justify-center rounded-v2-md text-v2-fg-subtle opacity-70 transition-opacity hover:bg-v2-raised hover:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-v2-focus-ring/30 disabled:pointer-events-none motion-reduce:transition-none",
1689
1696
  children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_react19.X, { size: 16, weight: "bold", "aria-hidden": "true" })
1690
1697
  }
1691
1698
  )
@@ -1699,7 +1706,7 @@ var Header2 = (0, import_react18.forwardRef)(
1699
1706
  "div",
1700
1707
  {
1701
1708
  ref,
1702
- className: cn("flex flex-col gap-1.5 text-left", className),
1709
+ className: cn("flex flex-col gap-1.5 pr-8 text-left", className),
1703
1710
  ...props
1704
1711
  }
1705
1712
  )
@@ -5101,13 +5108,44 @@ var Tooltip = Object.assign(TooltipRoot, {
5101
5108
  });
5102
5109
 
5103
5110
  // src/primitives/Toast/Toaster.tsx
5104
- var ToastPrimitive = __toESM(require("@radix-ui/react-toast"));
5105
- var import_react69 = require("@phosphor-icons/react");
5111
+ var import_sonner = require("sonner");
5112
+ var import_jsx_runtime55 = require("react/jsx-runtime");
5113
+ function Toaster({
5114
+ duration = 5e3,
5115
+ visibleToasts = 3,
5116
+ expand = false,
5117
+ position = "bottom-right",
5118
+ className
5119
+ }) {
5120
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
5121
+ import_sonner.Toaster,
5122
+ {
5123
+ position,
5124
+ duration,
5125
+ visibleToasts,
5126
+ expand,
5127
+ gap: 8,
5128
+ offset: 16,
5129
+ toastOptions: {
5130
+ unstyled: true,
5131
+ className: cn("w-full sm:w-[22rem]", className)
5132
+ }
5133
+ }
5134
+ );
5135
+ }
5136
+
5137
+ // src/primitives/Toast/toast-store.ts
5138
+ var import_react69 = require("react");
5139
+ var import_sonner3 = require("sonner");
5140
+
5141
+ // src/primitives/Toast/ToastCard.tsx
5142
+ var import_react68 = require("@phosphor-icons/react");
5143
+ var import_sonner2 = require("sonner");
5106
5144
 
5107
5145
  // src/primitives/Toast/Toast.styles.ts
5108
5146
  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",
5147
+ var toastCardStyles = (0, import_class_variance_authority17.cva)(
5148
+ "pointer-events-auto relative flex w-full items-start gap-3 overflow-hidden rounded-v2-md border p-4 shadow-v2-3",
5111
5149
  {
5112
5150
  variants: {
5113
5151
  variant: {
@@ -5122,113 +5160,67 @@ var toastStyles = (0, import_class_variance_authority17.cva)(
5122
5160
  }
5123
5161
  );
5124
5162
 
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;
5163
+ // src/primitives/Toast/ToastCard.tsx
5164
+ var import_jsx_runtime56 = require("react/jsx-runtime");
5165
+ function ToastCard({
5166
+ id,
5167
+ title,
5168
+ description,
5169
+ variant,
5170
+ action
5171
+ }) {
5172
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: cn(toastCardStyles({ variant })), children: [
5173
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
5174
+ title && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "text-v2-sm font-semibold", children: title }),
5175
+ description && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "text-v2-sm opacity-90", children: description })
5176
+ ] }),
5177
+ action,
5178
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
5179
+ "button",
5180
+ {
5181
+ type: "button",
5182
+ "aria-label": "Fechar",
5183
+ onClick: () => import_sonner2.toast.dismiss(id),
5184
+ 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",
5185
+ children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_react68.X, { size: 16, "aria-hidden": "true" })
5186
+ }
5187
+ )
5188
+ ] });
5141
5189
  }
5190
+
5191
+ // src/primitives/Toast/toast-store.ts
5142
5192
  function normalize(input) {
5143
5193
  return typeof input === "string" ? { title: input } : input;
5144
5194
  }
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
5195
+ function show(input, variant) {
5196
+ const options = normalize(input);
5197
+ const resolved = variant ? { ...options, variant } : options;
5198
+ const id = import_sonner3.toast.custom(
5199
+ (toastId) => (0, import_react69.createElement)(ToastCard, {
5200
+ id: String(toastId),
5201
+ title: resolved.title,
5202
+ description: resolved.description,
5203
+ variant: resolved.variant,
5204
+ action: resolved.action
5205
+ }),
5206
+ { duration: resolved.duration }
5155
5207
  );
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 });
5208
+ return String(id);
5164
5209
  }
5165
5210
  var toast = Object.assign(
5166
- (input) => addToast(input),
5211
+ (input) => show(input),
5167
5212
  {
5168
- success: (input) => withVariant(input, "success"),
5169
- warning: (input) => withVariant(input, "warning"),
5170
- danger: (input) => withVariant(input, "danger"),
5171
- info: (input) => withVariant(input, "info")
5213
+ success: (input) => show(input, "success"),
5214
+ warning: (input) => show(input, "warning"),
5215
+ danger: (input) => show(input, "danger"),
5216
+ info: (input) => show(input, "info")
5172
5217
  }
5173
5218
  );
5174
- function useToast() {
5175
- const snapshot = (0, import_react68.useSyncExternalStore)(subscribe, getSnapshot, getSnapshot);
5176
- return { toasts: snapshot, toast, dismiss: dismissToast };
5219
+ function dismissToast(id) {
5220
+ import_sonner3.toast.dismiss(id);
5177
5221
  }
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
- );
5222
+ function useToast() {
5223
+ return { toast, dismiss: dismissToast };
5232
5224
  }
5233
5225
 
5234
5226
  // src/patterns/AppShell/AppShell.tsx
@@ -5238,7 +5230,7 @@ var import_react73 = require("@phosphor-icons/react");
5238
5230
  var import_react70 = require("@phosphor-icons/react");
5239
5231
  var import_react71 = require("react");
5240
5232
  var import_Sidebar = require("./Sidebar-4ILVFQI5.css");
5241
- var import_jsx_runtime56 = require("react/jsx-runtime");
5233
+ var import_jsx_runtime57 = require("react/jsx-runtime");
5242
5234
  var LINK_BASE_CLASS = "flex h-full w-full items-center";
5243
5235
  function isActive(currentPath, to) {
5244
5236
  if (!currentPath) return false;
@@ -5252,7 +5244,7 @@ function ItemLink({
5252
5244
  linkComponent
5253
5245
  }) {
5254
5246
  if (item.external) {
5255
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
5247
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
5256
5248
  "a",
5257
5249
  {
5258
5250
  href: item.to,
@@ -5264,7 +5256,7 @@ function ItemLink({
5264
5256
  );
5265
5257
  }
5266
5258
  const LinkComponent = linkComponent ?? DefaultLink;
5267
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(LinkComponent, { to: item.to, className, children });
5259
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(LinkComponent, { to: item.to, className, children });
5268
5260
  }
5269
5261
  function ItemContent({
5270
5262
  item,
@@ -5272,7 +5264,7 @@ function ItemContent({
5272
5264
  active,
5273
5265
  title
5274
5266
  }) {
5275
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
5267
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
5276
5268
  "span",
5277
5269
  {
5278
5270
  title,
@@ -5282,7 +5274,7 @@ function ItemContent({
5282
5274
  active ? "bg-v2-brand-primary font-semibold text-v2-brand-on-primary" : "text-v2-fg-default hover:bg-v2-bg-subtle"
5283
5275
  ),
5284
5276
  children: [
5285
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
5277
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
5286
5278
  "span",
5287
5279
  {
5288
5280
  className: cn(
@@ -5292,9 +5284,9 @@ function ItemContent({
5292
5284
  children: item.icon
5293
5285
  }
5294
5286
  ),
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)(
5287
+ !collapsed ? /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_jsx_runtime57.Fragment, { children: [
5288
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "flex-1 truncate", children: item.label }),
5289
+ item.badge !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
5298
5290
  "span",
5299
5291
  {
5300
5292
  className: cn(
@@ -5304,7 +5296,7 @@ function ItemContent({
5304
5296
  children: item.badge
5305
5297
  }
5306
5298
  )
5307
- ] }) : item.badge !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
5299
+ ] }) : item.badge !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
5308
5300
  "span",
5309
5301
  {
5310
5302
  "aria-label": `${item.badge} pendentes`,
@@ -5323,16 +5315,16 @@ function GroupItems({
5323
5315
  linkComponent,
5324
5316
  showTopDivider
5325
5317
  }) {
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)(
5318
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "flex flex-col gap-1", children: [
5319
+ 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 }),
5320
+ group.label && collapsed && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
5329
5321
  "div",
5330
5322
  {
5331
5323
  "aria-hidden": "true",
5332
5324
  className: "mx-2 my-1 h-px bg-v2-border-default"
5333
5325
  }
5334
5326
  ),
5335
- !group.label && showTopDivider && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
5327
+ !group.label && showTopDivider && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
5336
5328
  "div",
5337
5329
  {
5338
5330
  "aria-hidden": "true",
@@ -5342,9 +5334,9 @@ function GroupItems({
5342
5334
  )
5343
5335
  }
5344
5336
  ),
5345
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("ul", { className: "flex flex-col gap-0.5", children: group.items.map((item) => {
5337
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("ul", { className: "flex flex-col gap-0.5", children: group.items.map((item) => {
5346
5338
  const active = isActive(currentPath, item.to);
5347
- const itemContent = /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
5339
+ const itemContent = /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
5348
5340
  ItemContent,
5349
5341
  {
5350
5342
  item,
@@ -5353,7 +5345,7 @@ function GroupItems({
5353
5345
  title: collapsed ? item.label : void 0
5354
5346
  }
5355
5347
  );
5356
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
5348
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
5357
5349
  "li",
5358
5350
  {
5359
5351
  "aria-current": active ? "page" : void 0,
@@ -5361,7 +5353,7 @@ function GroupItems({
5361
5353
  "ml-1.5 h-12 rounded-l-v2-pill p-1 transition-colors",
5362
5354
  active && "ds-v2-sidebar-item--active"
5363
5355
  ),
5364
- children: renderLink ? renderLink(item, itemContent) : /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
5356
+ children: renderLink ? renderLink(item, itemContent) : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
5365
5357
  ItemLink,
5366
5358
  {
5367
5359
  item,
@@ -5385,8 +5377,8 @@ function NavGroups({
5385
5377
  }) {
5386
5378
  const topGroups = groups.filter((g) => g.pin !== "bottom");
5387
5379
  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)(
5380
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("nav", { className: "ds-v2-sidebar-nav flex flex-1 flex-col gap-3 py-3", children: [
5381
+ topGroups.map((group, idx) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
5390
5382
  GroupItems,
5391
5383
  {
5392
5384
  group,
@@ -5398,7 +5390,7 @@ function NavGroups({
5398
5390
  },
5399
5391
  group.label ?? `top-${idx}`
5400
5392
  )),
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)(
5393
+ 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
5394
  GroupItems,
5403
5395
  {
5404
5396
  group,
@@ -5465,7 +5457,7 @@ var Sidebar = (0, import_react71.forwardRef)(function Sidebar2({
5465
5457
  window.addEventListener("keydown", handler);
5466
5458
  return () => window.removeEventListener("keydown", handler);
5467
5459
  }, [enableShortcut, toggleCollapse]);
5468
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
5460
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
5469
5461
  "aside",
5470
5462
  {
5471
5463
  ref,
@@ -5477,7 +5469,7 @@ var Sidebar = (0, import_react71.forwardRef)(function Sidebar2({
5477
5469
  style: { width: collapsed ? collapsedWidth : expandedWidth, ...style },
5478
5470
  ...rest,
5479
5471
  children: [
5480
- /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
5472
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
5481
5473
  "div",
5482
5474
  {
5483
5475
  className: cn(
@@ -5485,16 +5477,16 @@ var Sidebar = (0, import_react71.forwardRef)(function Sidebar2({
5485
5477
  collapsed ? "justify-center px-0" : "justify-between"
5486
5478
  ),
5487
5479
  children: [
5488
- headerSlot && !collapsed && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { children: headerSlot }),
5489
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
5480
+ headerSlot && !collapsed && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { children: headerSlot }),
5481
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
5490
5482
  Tooltip,
5491
5483
  {
5492
5484
  side: "right",
5493
- content: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("span", { children: [
5485
+ content: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("span", { children: [
5494
5486
  collapsed ? "Expandir menu" : "Recolher menu",
5495
- enableShortcut && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: "ml-1 text-v2-fg-muted", children: getShortcutLabel("B") })
5487
+ enableShortcut && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "ml-1 text-v2-fg-muted", children: getShortcutLabel("B") })
5496
5488
  ] }),
5497
- children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
5489
+ children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
5498
5490
  "button",
5499
5491
  {
5500
5492
  type: "button",
@@ -5504,7 +5496,7 @@ var Sidebar = (0, import_react71.forwardRef)(function Sidebar2({
5504
5496
  className: cn(
5505
5497
  "inline-flex size-8 shrink-0 items-center justify-center rounded-v2-md text-current transition-colors hover:bg-v2-bg-subtle"
5506
5498
  ),
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 })
5499
+ 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
5500
  }
5509
5501
  )
5510
5502
  }
@@ -5512,7 +5504,7 @@ var Sidebar = (0, import_react71.forwardRef)(function Sidebar2({
5512
5504
  ]
5513
5505
  }
5514
5506
  ),
5515
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
5507
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
5516
5508
  NavGroups,
5517
5509
  {
5518
5510
  groups,
@@ -5529,7 +5521,7 @@ var Sidebar = (0, import_react71.forwardRef)(function Sidebar2({
5529
5521
 
5530
5522
  // src/patterns/Topbar/Topbar.tsx
5531
5523
  var import_react72 = require("react");
5532
- var import_jsx_runtime57 = require("react/jsx-runtime");
5524
+ var import_jsx_runtime58 = require("react/jsx-runtime");
5533
5525
  var Topbar = (0, import_react72.forwardRef)(function Topbar2({
5534
5526
  pageTitle,
5535
5527
  searchTrigger,
@@ -5540,7 +5532,7 @@ var Topbar = (0, import_react72.forwardRef)(function Topbar2({
5540
5532
  className,
5541
5533
  ...props
5542
5534
  }, ref) {
5543
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
5535
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
5544
5536
  "header",
5545
5537
  {
5546
5538
  ref,
@@ -5553,9 +5545,9 @@ var Topbar = (0, import_react72.forwardRef)(function Topbar2({
5553
5545
  ),
5554
5546
  ...props,
5555
5547
  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: [
5548
+ /* @__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 }) }),
5549
+ searchTrigger && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "flex flex-1 items-center justify-center", children: searchTrigger }),
5550
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "flex flex-1 items-center justify-end gap-2", children: [
5559
5551
  notificationCenter,
5560
5552
  themeToggle,
5561
5553
  userMenu
@@ -5567,7 +5559,7 @@ var Topbar = (0, import_react72.forwardRef)(function Topbar2({
5567
5559
  Topbar.displayName = "Topbar";
5568
5560
 
5569
5561
  // src/patterns/AppShell/AppShell.tsx
5570
- var import_jsx_runtime58 = require("react/jsx-runtime");
5562
+ var import_jsx_runtime59 = require("react/jsx-runtime");
5571
5563
  var DEFAULT_GROUPS = [
5572
5564
  {
5573
5565
  label: null,
@@ -5575,55 +5567,55 @@ var DEFAULT_GROUPS = [
5575
5567
  {
5576
5568
  id: "home",
5577
5569
  label: "P\xE1gina inicial",
5578
- icon: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react73.House, { size: 20 }),
5570
+ icon: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react73.House, { size: 20 }),
5579
5571
  to: "/"
5580
5572
  },
5581
5573
  {
5582
5574
  id: "users",
5583
5575
  label: "Usu\xE1rios",
5584
- icon: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react73.Users, { size: 20 }),
5576
+ icon: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react73.Users, { size: 20 }),
5585
5577
  to: "/users"
5586
5578
  },
5587
5579
  {
5588
5580
  id: "orgs",
5589
5581
  label: "Organiza\xE7\xF5es",
5590
- icon: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react73.Buildings, { size: 20 }),
5582
+ icon: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react73.Buildings, { size: 20 }),
5591
5583
  to: "/organizations"
5592
5584
  },
5593
5585
  {
5594
5586
  id: "configs-op",
5595
5587
  label: "Configs Opera\xE7\xE3o",
5596
- icon: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react73.Briefcase, { size: 20 }),
5588
+ icon: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react73.Briefcase, { size: 20 }),
5597
5589
  to: "/configs/operation"
5598
5590
  },
5599
5591
  {
5600
5592
  id: "clients",
5601
5593
  label: "Clientes",
5602
- icon: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react73.UsersThree, { size: 20 }),
5594
+ icon: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react73.UsersThree, { size: 20 }),
5603
5595
  to: "/clients"
5604
5596
  },
5605
5597
  {
5606
5598
  id: "requests",
5607
5599
  label: "Requisi\xE7\xF5es",
5608
- icon: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react73.PaperPlaneTilt, { size: 20 }),
5600
+ icon: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react73.PaperPlaneTilt, { size: 20 }),
5609
5601
  to: "/requests"
5610
5602
  },
5611
5603
  {
5612
5604
  id: "operations",
5613
5605
  label: "Opera\xE7\xF5es",
5614
- icon: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react73.Receipt, { size: 20 }),
5606
+ icon: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react73.Receipt, { size: 20 }),
5615
5607
  to: "/operations"
5616
5608
  },
5617
5609
  {
5618
5610
  id: "finance",
5619
5611
  label: "Financeiro",
5620
- icon: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react73.Coins, { size: 20 }),
5612
+ icon: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react73.Coins, { size: 20 }),
5621
5613
  to: "/finance"
5622
5614
  },
5623
5615
  {
5624
5616
  id: "configurations",
5625
5617
  label: "Configura\xE7\xF5es",
5626
- icon: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react73.Gear, { size: 20 }),
5618
+ icon: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react73.Gear, { size: 20 }),
5627
5619
  to: "/configurations"
5628
5620
  }
5629
5621
  ]
@@ -5634,15 +5626,15 @@ var DEFAULT_GROUPS = [
5634
5626
  {
5635
5627
  id: "tutorials",
5636
5628
  label: "Tutoriais",
5637
- icon: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react73.GraduationCap, { size: 20 }),
5629
+ icon: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react73.GraduationCap, { size: 20 }),
5638
5630
  to: "/tutorials"
5639
5631
  }
5640
5632
  ]
5641
5633
  }
5642
5634
  ];
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" })
5635
+ var DEFAULT_HEADER_SLOT = /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("span", { className: "flex items-center gap-1.5", children: [
5636
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react73.Bank, { size: 20, "aria-hidden": "true" }),
5637
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "text-v2-base font-bold text-v2-fg-default", children: "HUMU" })
5646
5638
  ] });
5647
5639
  function AppShell({
5648
5640
  children,
@@ -5657,8 +5649,8 @@ function AppShell({
5657
5649
  headerSlot = DEFAULT_HEADER_SLOT,
5658
5650
  defaultSidebarCollapsed = false
5659
5651
  }) {
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)(
5652
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "flex h-screen overflow-hidden bg-v2-canvas text-v2-fg-default", children: [
5653
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
5662
5654
  "a",
5663
5655
  {
5664
5656
  href: "#main-content",
@@ -5666,7 +5658,7 @@ function AppShell({
5666
5658
  children: "Pular para o conte\xFAdo"
5667
5659
  }
5668
5660
  ),
5669
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
5661
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
5670
5662
  Sidebar,
5671
5663
  {
5672
5664
  groups: sidebarGroups,
@@ -5676,8 +5668,8 @@ function AppShell({
5676
5668
  headerSlot
5677
5669
  }
5678
5670
  ),
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)(
5671
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "flex min-h-0 min-w-0 flex-1 flex-col", children: [
5672
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
5681
5673
  Topbar,
5682
5674
  {
5683
5675
  pageTitle,
@@ -5687,14 +5679,14 @@ function AppShell({
5687
5679
  userMenu
5688
5680
  }
5689
5681
  ),
5690
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
5682
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
5691
5683
  "main",
5692
5684
  {
5693
5685
  id: "main-content",
5694
5686
  role: "main",
5695
5687
  tabIndex: -1,
5696
5688
  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 })
5689
+ 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
5690
  }
5699
5691
  )
5700
5692
  ] })
@@ -5705,7 +5697,7 @@ AppShell.displayName = "AppShell";
5705
5697
  // src/patterns/KpiHero/KpiHero.tsx
5706
5698
  var import_react74 = require("react");
5707
5699
  var import_react75 = require("@phosphor-icons/react");
5708
- var import_jsx_runtime59 = require("react/jsx-runtime");
5700
+ var import_jsx_runtime60 = require("react/jsx-runtime");
5709
5701
  var iconBgClass = {
5710
5702
  brand: "bg-v2-brand-bg-soft text-v2-brand-text-dark",
5711
5703
  info: "bg-v2-info-soft text-v2-info-500",
@@ -5726,9 +5718,9 @@ var trendToneClass = {
5726
5718
  flat: "bg-v2-bg-subtle text-v2-fg-muted"
5727
5719
  };
5728
5720
  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" })
5721
+ up: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react75.ArrowUp, { size: 11, weight: "bold", "aria-hidden": "true" }),
5722
+ down: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react75.ArrowDown, { size: 11, weight: "bold", "aria-hidden": "true" }),
5723
+ flat: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react75.Minus, { size: 11, weight: "bold", "aria-hidden": "true" })
5732
5724
  };
5733
5725
  function buildSparklinePaths(data) {
5734
5726
  const width = 100;
@@ -5763,9 +5755,9 @@ function KpiHero({
5763
5755
  const gradientId = `spark-${rawId.replace(/[:]/g, "")}`;
5764
5756
  const hasSparkline = sparkline !== void 0 && sparkline.length >= 2;
5765
5757
  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)(
5758
+ const inner = /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_jsx_runtime60.Fragment, { children: [
5759
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "flex items-start justify-between", children: [
5760
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
5769
5761
  "span",
5770
5762
  {
5771
5763
  className: cn(
@@ -5775,7 +5767,7 @@ function KpiHero({
5775
5767
  children: icon
5776
5768
  }
5777
5769
  ),
5778
- trend && /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
5770
+ trend && /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
5779
5771
  "span",
5780
5772
  {
5781
5773
  className: cn(
@@ -5789,10 +5781,10 @@ function KpiHero({
5789
5781
  }
5790
5782
  )
5791
5783
  ] }),
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)(
5784
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("span", { className: "text-v2-xs font-semibold uppercase tracking-wide text-v2-fg-muted", children: label }),
5785
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("span", { className: "text-[30px] font-extrabold tabular-nums leading-none text-v2-fg-default", children: value }),
5786
+ sub && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("span", { className: "text-v2-xs text-v2-fg-muted", children: sub }),
5787
+ 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
5788
  "svg",
5797
5789
  {
5798
5790
  viewBox: "0 0 100 36",
@@ -5800,11 +5792,11 @@ function KpiHero({
5800
5792
  className: "size-full",
5801
5793
  "aria-hidden": "true",
5802
5794
  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" })
5795
+ /* @__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: [
5796
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("stop", { offset: "0%", stopColor: "currentColor", stopOpacity: "0.3" }),
5797
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("stop", { offset: "100%", stopColor: "currentColor", stopOpacity: "0" })
5806
5798
  ] }) }),
5807
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
5799
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
5808
5800
  "path",
5809
5801
  {
5810
5802
  d: sparkPaths.area,
@@ -5812,7 +5804,7 @@ function KpiHero({
5812
5804
  stroke: "none"
5813
5805
  }
5814
5806
  ),
5815
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
5807
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
5816
5808
  "path",
5817
5809
  {
5818
5810
  d: sparkPaths.line,
@@ -5825,17 +5817,17 @@ function KpiHero({
5825
5817
  ]
5826
5818
  }
5827
5819
  ) }),
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 })
5820
+ 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
5821
  ] });
5830
5822
  if (to) {
5831
5823
  const LinkComponent = linkComponent ?? DefaultLink;
5832
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(LinkComponent, { to, className: containerClass, children: inner });
5824
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(LinkComponent, { to, className: containerClass, children: inner });
5833
5825
  }
5834
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: containerClass, children: inner });
5826
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: containerClass, children: inner });
5835
5827
  }
5836
5828
 
5837
5829
  // src/patterns/DashboardBlock/DashboardBlock.tsx
5838
- var import_jsx_runtime60 = require("react/jsx-runtime");
5830
+ var import_jsx_runtime61 = require("react/jsx-runtime");
5839
5831
  function DashboardBlock({
5840
5832
  available,
5841
5833
  reason,
@@ -5846,7 +5838,7 @@ function DashboardBlock({
5846
5838
  children
5847
5839
  }) {
5848
5840
  if (loading) {
5849
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
5841
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5850
5842
  "div",
5851
5843
  {
5852
5844
  "data-testid": "dashboard-block-skeleton",
@@ -5856,9 +5848,9 @@ function DashboardBlock({
5856
5848
  }
5857
5849
  if (!available) {
5858
5850
  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)(
5851
+ 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: [
5852
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Text, { size: "sm", weight: "semibold", children: "Fonte de dados indispon\xEDvel no momento" }),
5853
+ onRetry && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5862
5854
  Button,
5863
5855
  {
5864
5856
  type: "button",
@@ -5873,15 +5865,15 @@ function DashboardBlock({
5873
5865
  return null;
5874
5866
  }
5875
5867
  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 }) });
5868
+ 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
5869
  }
5878
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_jsx_runtime60.Fragment, { children });
5870
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_jsx_runtime61.Fragment, { children });
5879
5871
  }
5880
5872
 
5881
5873
  // src/patterns/LegalDocumentRenderer/LegalDocumentRenderer.tsx
5882
5874
  var import_react_markdown = __toESM(require("react-markdown"));
5883
5875
  var import_remark_gfm = __toESM(require("remark-gfm"));
5884
- var import_jsx_runtime61 = require("react/jsx-runtime");
5876
+ var import_jsx_runtime62 = require("react/jsx-runtime");
5885
5877
  function formatLastUpdated(iso) {
5886
5878
  if (!iso) return "";
5887
5879
  const date = new Date(iso);
@@ -5892,16 +5884,16 @@ function formatLastUpdated(iso) {
5892
5884
  }).format(date);
5893
5885
  }
5894
5886
  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 }),
5887
+ h1: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Heading, { level: 2, size: "xl", children }),
5888
+ h2: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Heading, { level: 3, size: "lg", children }),
5889
+ h3: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Heading, { level: 4, size: "md", children }),
5890
+ p: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Text, { size: "base", color: "default", className: "leading-relaxed", children }),
5891
+ 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 }),
5892
+ 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 }),
5893
+ li: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("li", { children }),
5902
5894
  a: ({ href, children }) => {
5903
5895
  const isExternal = href == null ? void 0 : href.startsWith("http");
5904
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5896
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
5905
5897
  "a",
5906
5898
  {
5907
5899
  href,
@@ -5912,14 +5904,14 @@ var markdownComponents = {
5912
5904
  }
5913
5905
  );
5914
5906
  },
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 })
5907
+ strong: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("strong", { className: "font-semibold text-v2-fg-default", children }),
5908
+ em: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("em", { className: "italic", children }),
5909
+ hr: () => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("hr", { className: "my-2 border-t border-v2-border-default" }),
5910
+ 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 }) }),
5911
+ 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 }),
5912
+ td: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("td", { className: "border-b border-v2-border-subtle px-3 py-2", children }),
5913
+ 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 }),
5914
+ 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
5915
  };
5924
5916
  function LegalDocumentRenderer({
5925
5917
  document: document2,
@@ -5932,16 +5924,16 @@ function LegalDocumentRenderer({
5932
5924
  className
5933
5925
  }) {
5934
5926
  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 } })
5927
+ 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: [
5928
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Skeleton, { shape: "text", style: { width: "60%", height: 24 } }),
5929
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Skeleton, { shape: "text", style: { width: "100%", height: 14 } }),
5930
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Skeleton, { shape: "text", style: { width: "95%", height: 14 } }),
5931
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Skeleton, { shape: "text", style: { width: "90%", height: 14 } }),
5932
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Skeleton, { shape: "text", style: { width: "85%", height: 14 } })
5941
5933
  ] }) });
5942
5934
  }
5943
5935
  if (error || !document2) {
5944
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5936
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
5945
5937
  "div",
5946
5938
  {
5947
5939
  className: cn(
@@ -5949,18 +5941,18 @@ function LegalDocumentRenderer({
5949
5941
  className
5950
5942
  ),
5951
5943
  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." })
5944
+ children: errorState ?? /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Text, { size: "sm", color: "default", children: "N\xE3o foi poss\xEDvel carregar o documento." })
5953
5945
  }
5954
5946
  );
5955
5947
  }
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: [
5948
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("article", { className: cn("flex flex-col gap-4", className), children: [
5949
+ title && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Heading, { level: 1, size: "2xl", children: title }),
5950
+ document2.lastUpdated && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(Text, { size: "xs", color: "muted", children: [
5959
5951
  lastUpdatedLabel,
5960
5952
  ": ",
5961
5953
  formatLastUpdated(document2.lastUpdated)
5962
5954
  ] }),
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)(
5955
+ /* @__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
5956
  import_react_markdown.default,
5965
5957
  {
5966
5958
  remarkPlugins: [import_remark_gfm.default],
@@ -5978,7 +5970,7 @@ var import_react78 = require("react");
5978
5970
  // src/patterns/SortableColumnHeader/SortableColumnHeader.tsx
5979
5971
  var import_react76 = require("react");
5980
5972
  var import_react77 = require("@phosphor-icons/react");
5981
- var import_jsx_runtime62 = require("react/jsx-runtime");
5973
+ var import_jsx_runtime63 = require("react/jsx-runtime");
5982
5974
  function nextDirection(current, cycleMode) {
5983
5975
  if (cycleMode === "asc-desc") {
5984
5976
  return current === "asc" ? "desc" : "asc";
@@ -6004,7 +5996,7 @@ var SortableColumnHeader = (0, import_react76.forwardRef)(
6004
5996
  type = "button",
6005
5997
  ...props
6006
5998
  }, ref) => {
6007
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
5999
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
6008
6000
  "button",
6009
6001
  {
6010
6002
  ref,
@@ -6022,8 +6014,8 @@ var SortableColumnHeader = (0, import_react76.forwardRef)(
6022
6014
  },
6023
6015
  ...props,
6024
6016
  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" })
6017
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { children: label }),
6018
+ 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
6019
  ]
6028
6020
  }
6029
6021
  );
@@ -6032,7 +6024,7 @@ var SortableColumnHeader = (0, import_react76.forwardRef)(
6032
6024
  SortableColumnHeader.displayName = "SortableColumnHeader";
6033
6025
 
6034
6026
  // src/patterns/DataTable/DataTable.tsx
6035
- var import_jsx_runtime63 = require("react/jsx-runtime");
6027
+ var import_jsx_runtime64 = require("react/jsx-runtime");
6036
6028
  var densityCellClass = {
6037
6029
  compact: "px-3 py-1.5",
6038
6030
  comfortable: "px-3 py-3"
@@ -6069,7 +6061,7 @@ function DataTableInner({
6069
6061
  }, ref) {
6070
6062
  const cellPadding = densityCellClass[density];
6071
6063
  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)(
6064
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "overflow-x-auto", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
6073
6065
  "table",
6074
6066
  {
6075
6067
  ref,
@@ -6077,14 +6069,14 @@ function DataTableInner({
6077
6069
  className: cn("w-full border-collapse text-v2-sm", className),
6078
6070
  ...props,
6079
6071
  children: [
6080
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
6072
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6081
6073
  "thead",
6082
6074
  {
6083
6075
  className: cn(
6084
6076
  "border-b border-v2-border-default bg-v2-bg-subtle",
6085
6077
  stickyHeader && "sticky top-0 z-10"
6086
6078
  ),
6087
- children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("tr", { children: columns.map((col) => /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
6079
+ children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("tr", { children: columns.map((col) => /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6088
6080
  "th",
6089
6081
  {
6090
6082
  scope: "col",
@@ -6099,7 +6091,7 @@ function DataTableInner({
6099
6091
  col.align === "center" && "text-center",
6100
6092
  col.align !== "right" && col.align !== "center" && "text-left"
6101
6093
  ),
6102
- children: col.sortable && onSortChange ? /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
6094
+ children: col.sortable && onSortChange ? /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6103
6095
  SortableColumnHeader,
6104
6096
  {
6105
6097
  label: col.label,
@@ -6122,18 +6114,18 @@ function DataTableInner({
6122
6114
  )) })
6123
6115
  }
6124
6116
  ),
6125
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("tbody", { children: loading ? Array.from({ length: loadingRowCount }).map((_, idx) => /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
6117
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("tbody", { children: loading ? Array.from({ length: loadingRowCount }).map((_, idx) => /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6126
6118
  "tr",
6127
6119
  {
6128
6120
  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))
6121
+ 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
6122
  },
6131
6123
  `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) => {
6124
+ )) : 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
6125
  const baseKey = rowKey(row);
6134
6126
  const uniqueKey = seenRowKeys.has(baseKey) ? `${baseKey}__${index}` : baseKey;
6135
6127
  seenRowKeys.add(baseKey);
6136
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
6128
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6137
6129
  "tr",
6138
6130
  {
6139
6131
  className: cn(
@@ -6141,7 +6133,7 @@ function DataTableInner({
6141
6133
  zebra && index % 2 === 1 && "bg-v2-bg-subtle/50",
6142
6134
  rowClassName == null ? void 0 : rowClassName(row, index)
6143
6135
  ),
6144
- children: columns.map((col) => /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
6136
+ children: columns.map((col) => /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6145
6137
  "td",
6146
6138
  {
6147
6139
  className: cn(
@@ -6168,7 +6160,7 @@ var DataTable = (0, import_react78.forwardRef)(
6168
6160
  // src/patterns/DataTablePagination/DataTablePagination.tsx
6169
6161
  var import_react79 = require("react");
6170
6162
  var import_react80 = require("@phosphor-icons/react");
6171
- var import_jsx_runtime64 = require("react/jsx-runtime");
6163
+ var import_jsx_runtime65 = require("react/jsx-runtime");
6172
6164
  var DEFAULT_PER_PAGE_OPTIONS = [5, 10, 20, 30, 50, 70, 100];
6173
6165
  function buildPageNumbers(page, totalPages, siblingCount) {
6174
6166
  if (totalPages <= 7) {
@@ -6210,7 +6202,7 @@ var DataTablePagination = (0, import_react79.forwardRef)(
6210
6202
  const last = Math.min(page * perPage, total);
6211
6203
  const totalPages = Math.max(1, Math.ceil(total / perPage));
6212
6204
  const pages = buildPageNumbers(page, totalPages, siblingCount);
6213
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
6205
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
6214
6206
  "nav",
6215
6207
  {
6216
6208
  ref,
@@ -6221,10 +6213,10 @@ var DataTablePagination = (0, import_react79.forwardRef)(
6221
6213
  ),
6222
6214
  ...props,
6223
6215
  children: [
6224
- /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("p", { className: "text-v2-sm text-v2-fg-muted", children: [
6216
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("p", { className: "text-v2-sm text-v2-fg-muted", children: [
6225
6217
  showingLabel,
6226
6218
  " ",
6227
- /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("strong", { className: "tabular-nums text-v2-fg-default", children: [
6219
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("strong", { className: "tabular-nums text-v2-fg-default", children: [
6228
6220
  first,
6229
6221
  "-",
6230
6222
  last
@@ -6232,13 +6224,13 @@ var DataTablePagination = (0, import_react79.forwardRef)(
6232
6224
  " ",
6233
6225
  ofLabel,
6234
6226
  " ",
6235
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("strong", { className: "tabular-nums text-v2-fg-default", children: total })
6227
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("strong", { className: "tabular-nums text-v2-fg-default", children: total })
6236
6228
  ] }),
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)(
6229
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "flex items-center gap-3", children: [
6230
+ onPerPageChange && /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "flex items-center gap-2", children: [
6231
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { className: "text-v2-sm text-v2-fg-muted", children: perPageLabel }),
6232
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(Popover, { open: perPageOpen, onOpenChange: setPerPageOpen, children: [
6233
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Popover.Trigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
6242
6234
  "button",
6243
6235
  {
6244
6236
  type: "button",
@@ -6247,14 +6239,14 @@ var DataTablePagination = (0, import_react79.forwardRef)(
6247
6239
  "aria-expanded": perPageOpen,
6248
6240
  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
6241
  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" })
6242
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { className: "tabular-nums", children: perPage }),
6243
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react80.CaretDown, { size: 12, weight: "bold", "aria-hidden": "true" })
6252
6244
  ]
6253
6245
  }
6254
6246
  ) }),
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) => {
6247
+ /* @__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
6248
  const selected = opt === perPage;
6257
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
6249
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
6258
6250
  "button",
6259
6251
  {
6260
6252
  type: "button",
@@ -6270,7 +6262,7 @@ var DataTablePagination = (0, import_react79.forwardRef)(
6270
6262
  ),
6271
6263
  children: [
6272
6264
  opt,
6273
- selected && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6265
+ selected && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6274
6266
  import_react80.Check,
6275
6267
  {
6276
6268
  size: 12,
@@ -6284,8 +6276,8 @@ var DataTablePagination = (0, import_react79.forwardRef)(
6284
6276
  }) }) })
6285
6277
  ] })
6286
6278
  ] }),
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)(
6279
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("ul", { className: "flex items-center gap-1", children: [
6280
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6289
6281
  "button",
6290
6282
  {
6291
6283
  type: "button",
@@ -6296,11 +6288,11 @@ var DataTablePagination = (0, import_react79.forwardRef)(
6296
6288
  "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
6289
  "disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:bg-transparent"
6298
6290
  ),
6299
- children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_react80.CaretLeft, { size: 14, weight: "bold", "aria-hidden": "true" })
6291
+ children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react80.CaretLeft, { size: 14, weight: "bold", "aria-hidden": "true" })
6300
6292
  }
6301
6293
  ) }),
6302
6294
  pages.map(
6303
- (p, idx) => p === "ellipsis" ? /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6295
+ (p, idx) => p === "ellipsis" ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6304
6296
  "li",
6305
6297
  {
6306
6298
  "aria-hidden": "true",
@@ -6308,7 +6300,7 @@ var DataTablePagination = (0, import_react79.forwardRef)(
6308
6300
  children: "\u2026"
6309
6301
  },
6310
6302
  `ellipsis-${idx}`
6311
- ) : /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6303
+ ) : /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6312
6304
  "button",
6313
6305
  {
6314
6306
  type: "button",
@@ -6323,7 +6315,7 @@ var DataTablePagination = (0, import_react79.forwardRef)(
6323
6315
  }
6324
6316
  ) }, p)
6325
6317
  ),
6326
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6318
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6327
6319
  "button",
6328
6320
  {
6329
6321
  type: "button",
@@ -6334,7 +6326,7 @@ var DataTablePagination = (0, import_react79.forwardRef)(
6334
6326
  "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
6327
  "disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:bg-transparent"
6336
6328
  ),
6337
- children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_react80.CaretRight, { size: 14, weight: "bold", "aria-hidden": "true" })
6329
+ children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react80.CaretRight, { size: 14, weight: "bold", "aria-hidden": "true" })
6338
6330
  }
6339
6331
  ) })
6340
6332
  ] })
@@ -6349,7 +6341,7 @@ DataTablePagination.displayName = "DataTablePagination";
6349
6341
  // src/patterns/ReadOnlyDataView/ReadOnlyDataView.tsx
6350
6342
  var import_react81 = require("react");
6351
6343
  var import_react82 = require("@phosphor-icons/react");
6352
- var import_jsx_runtime65 = require("react/jsx-runtime");
6344
+ var import_jsx_runtime66 = require("react/jsx-runtime");
6353
6345
  function formatDate(value, format3) {
6354
6346
  if (!value) return "\u2014";
6355
6347
  const date = value instanceof Date ? value : new Date(String(value));
@@ -6403,19 +6395,19 @@ function ReadOnlyDataView({
6403
6395
  setActiveDialog({ dialog, row, details: result });
6404
6396
  };
6405
6397
  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)(
6398
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_jsx_runtime66.Fragment, { children: [
6399
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6408
6400
  Card,
6409
6401
  {
6410
6402
  padding: "none",
6411
6403
  variant: "default",
6412
6404
  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) => {
6405
+ 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: [
6406
+ caption && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("caption", { className: "sr-only", children: caption }),
6407
+ /* @__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
6408
  const isSortable = column.type !== "action" && Boolean(column.sortable);
6417
6409
  const isSorted = column.type !== "action" && (sortValue == null ? void 0 : sortValue.column) === column.key;
6418
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6410
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6419
6411
  "th",
6420
6412
  {
6421
6413
  scope: "col",
@@ -6427,7 +6419,7 @@ function ReadOnlyDataView({
6427
6419
  )
6428
6420
  ),
6429
6421
  "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)(
6422
+ children: isSortable ? /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
6431
6423
  "button",
6432
6424
  {
6433
6425
  type: "button",
@@ -6435,21 +6427,21 @@ function ReadOnlyDataView({
6435
6427
  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
6428
  children: [
6437
6429
  column.label,
6438
- isSorted ? (sortValue == null ? void 0 : sortValue.direction) === "asc" ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6430
+ isSorted ? (sortValue == null ? void 0 : sortValue.direction) === "asc" ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6439
6431
  import_react82.CaretUp,
6440
6432
  {
6441
6433
  size: 12,
6442
6434
  weight: "bold",
6443
6435
  "aria-hidden": "true"
6444
6436
  }
6445
- ) : /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6437
+ ) : /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6446
6438
  import_react82.CaretDown,
6447
6439
  {
6448
6440
  size: 12,
6449
6441
  weight: "bold",
6450
6442
  "aria-hidden": "true"
6451
6443
  }
6452
- ) : /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react82.CaretUpDown, { size: 12, "aria-hidden": "true" })
6444
+ ) : /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react82.CaretUpDown, { size: 12, "aria-hidden": "true" })
6453
6445
  ]
6454
6446
  }
6455
6447
  ) : column.label
@@ -6457,27 +6449,27 @@ function ReadOnlyDataView({
6457
6449
  column.key ?? column.label
6458
6450
  );
6459
6451
  }) }) }),
6460
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("tbody", { children: loading ? Array.from({ length: loadingRows }).map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6452
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("tbody", { children: loading ? Array.from({ length: loadingRows }).map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6461
6453
  "tr",
6462
6454
  {
6463
6455
  className: "border-t border-v2-border-subtle",
6464
- children: columns.map((column) => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6456
+ children: columns.map((column) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6465
6457
  "td",
6466
6458
  {
6467
6459
  className: cn(cellPadding),
6468
- children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Skeleton, { shape: "text", style: { width: "80%" } })
6460
+ children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Skeleton, { shape: "text", style: { width: "80%" } })
6469
6461
  },
6470
6462
  column.key ?? column.label
6471
6463
  ))
6472
6464
  },
6473
6465
  `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)(
6466
+ )) : 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
6467
  "tr",
6476
6468
  {
6477
6469
  className: "border-t border-v2-border-subtle hover:bg-v2-bg-subtle motion-reduce:transition-none",
6478
6470
  children: columns.map((column) => {
6479
6471
  const clickable = hasTriggerColumn(column);
6480
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6472
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6481
6473
  "td",
6482
6474
  {
6483
6475
  className: cn(
@@ -6502,21 +6494,21 @@ function ReadOnlyDataView({
6502
6494
  ] }) })
6503
6495
  }
6504
6496
  ),
6505
- activeDialog && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6497
+ activeDialog && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6506
6498
  DialogRoot,
6507
6499
  {
6508
6500
  open: true,
6509
6501
  onOpenChange: (open) => {
6510
6502
  if (!open) setActiveDialog(null);
6511
6503
  },
6512
- children: /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
6504
+ children: /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
6513
6505
  DialogRoot.Content,
6514
6506
  {
6515
6507
  size: activeDialog.dialog.size ?? "md",
6516
6508
  "aria-describedby": void 0,
6517
6509
  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 })
6510
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(DialogRoot.Header, { children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(DialogRoot.Title, { children: activeDialog.dialog.title }) }),
6511
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(DialogRoot.Body, { children: activeDialog.details !== null ? activeDialog.dialog.renderDetails(activeDialog.details) : null })
6520
6512
  ]
6521
6513
  }
6522
6514
  )
@@ -6539,7 +6531,7 @@ function renderCell(column, row) {
6539
6531
  const value = String(raw);
6540
6532
  const variant = column.variantMap[value] ?? "default";
6541
6533
  const display = ((_a = column.labelMap) == null ? void 0 : _a[value]) ?? value;
6542
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Badge, { variant, children: display });
6534
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Badge, { variant, children: display });
6543
6535
  }
6544
6536
  if (column.type === "date") {
6545
6537
  return formatDate(raw, column.format);
@@ -6553,7 +6545,7 @@ function renderCell(column, row) {
6553
6545
  // src/patterns/NotificationCenter/NotificationCenter.tsx
6554
6546
  var import_react83 = require("react");
6555
6547
  var import_react84 = require("@phosphor-icons/react");
6556
- var import_jsx_runtime66 = require("react/jsx-runtime");
6548
+ var import_jsx_runtime67 = require("react/jsx-runtime");
6557
6549
  var severityDotClass = {
6558
6550
  info: "bg-v2-info-500",
6559
6551
  success: "bg-v2-success-500",
@@ -6589,8 +6581,8 @@ var NotificationCenter = (0, import_react83.forwardRef)(
6589
6581
  const [filter, setFilter] = (0, import_react83.useState)("unread");
6590
6582
  const relativeTimeFn = relativeTime ?? defaultRelativeTime;
6591
6583
  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)(
6584
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(Popover, { children: [
6585
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Popover.Trigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
6594
6586
  "button",
6595
6587
  {
6596
6588
  ref,
@@ -6598,23 +6590,23 @@ var NotificationCenter = (0, import_react83.forwardRef)(
6598
6590
  "aria-label": `${triggerAriaLabel}${unreadCount > 0 ? ` (${unreadCount} n\xE3o lidas)` : ""}`,
6599
6591
  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
6592
  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 })
6593
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_react84.Bell, { size: 18, "aria-hidden": "true" }),
6594
+ 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
6595
  ]
6604
6596
  }
6605
6597
  ) }),
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" })
6598
+ /* @__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: [
6599
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex items-center justify-between border-b border-v2-border-default px-4 py-3", children: [
6600
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Heading, { level: 3, size: "sm", children: "Notifica\xE7\xF5es" }),
6601
+ unreadCount > 0 && onMarkAllRead && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Button, { variant: "secondary", size: "sm", onClick: onMarkAllRead, children: "Marcar todas como lidas" })
6610
6602
  ] }),
6611
- /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
6603
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
6612
6604
  "div",
6613
6605
  {
6614
6606
  role: "tablist",
6615
6607
  className: "flex items-center gap-1 border-b border-v2-border-default px-4 pt-2",
6616
6608
  children: [
6617
- /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
6609
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
6618
6610
  "button",
6619
6611
  {
6620
6612
  type: "button",
@@ -6632,7 +6624,7 @@ var NotificationCenter = (0, import_react83.forwardRef)(
6632
6624
  ]
6633
6625
  }
6634
6626
  ),
6635
- /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
6627
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
6636
6628
  "button",
6637
6629
  {
6638
6630
  type: "button",
@@ -6653,13 +6645,13 @@ var NotificationCenter = (0, import_react83.forwardRef)(
6653
6645
  ]
6654
6646
  }
6655
6647
  ),
6656
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6648
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6657
6649
  "ul",
6658
6650
  {
6659
6651
  role: "status",
6660
6652
  "aria-live": "polite",
6661
6653
  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)(
6654
+ 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
6655
  "button",
6664
6656
  {
6665
6657
  type: "button",
@@ -6669,7 +6661,7 @@ var NotificationCenter = (0, import_react83.forwardRef)(
6669
6661
  !n.read && "bg-v2-brand-bg-soft/30"
6670
6662
  ),
6671
6663
  children: [
6672
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6664
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6673
6665
  "span",
6674
6666
  {
6675
6667
  "aria-hidden": "true",
@@ -6679,12 +6671,12 @@ var NotificationCenter = (0, import_react83.forwardRef)(
6679
6671
  )
6680
6672
  }
6681
6673
  ),
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) })
6674
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
6675
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Text, { size: "sm", weight: "semibold", children: n.title }),
6676
+ n.description && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Text, { size: "xs", color: "muted", children: n.description }),
6677
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Text, { size: "xs", color: "subtle", children: relativeTimeFn(n.timestamp) })
6686
6678
  ] }),
6687
- !n.read && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6679
+ !n.read && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6688
6680
  "span",
6689
6681
  {
6690
6682
  "aria-label": "N\xE3o lida",
@@ -6705,7 +6697,7 @@ NotificationCenter.displayName = "NotificationCenter";
6705
6697
  // src/patterns/NavigatorTile/NavigatorTile.tsx
6706
6698
  var import_react85 = require("react");
6707
6699
  var import_react86 = require("@phosphor-icons/react");
6708
- var import_jsx_runtime67 = require("react/jsx-runtime");
6700
+ var import_jsx_runtime68 = require("react/jsx-runtime");
6709
6701
  var NavigatorTile = (0, import_react85.forwardRef)(
6710
6702
  ({
6711
6703
  icon,
@@ -6718,7 +6710,7 @@ var NavigatorTile = (0, import_react85.forwardRef)(
6718
6710
  className,
6719
6711
  children,
6720
6712
  ...props
6721
- }, ref) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6713
+ }, ref) => /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
6722
6714
  Card,
6723
6715
  {
6724
6716
  ref,
@@ -6732,16 +6724,16 @@ var NavigatorTile = (0, import_react85.forwardRef)(
6732
6724
  className
6733
6725
  ),
6734
6726
  ...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 })
6727
+ children: asChild ? children : /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(import_jsx_runtime68.Fragment, { children: [
6728
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "flex items-start justify-between gap-3", children: [
6729
+ 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 }),
6730
+ badge && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: "shrink-0", children: badge })
6739
6731
  ] }),
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 })
6732
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "flex flex-col gap-1", children: [
6733
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Heading, { level: 3, size: "xs", children: title }),
6734
+ description && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Text, { size: "sm", color: "muted", children: description })
6743
6735
  ] }),
6744
- showChevron && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "flex justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6736
+ showChevron && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "flex justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
6745
6737
  import_react86.CaretRight,
6746
6738
  {
6747
6739
  size: 16,
@@ -6764,7 +6756,7 @@ var columnClass = {
6764
6756
  var NavigatorTileGrid = (0, import_react85.forwardRef)(
6765
6757
  ({ columns = 3, emptyState, isEmpty = false, className, children, ...props }, ref) => {
6766
6758
  if (isEmpty && emptyState) {
6767
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6759
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
6768
6760
  "div",
6769
6761
  {
6770
6762
  ref,
@@ -6777,7 +6769,7 @@ var NavigatorTileGrid = (0, import_react85.forwardRef)(
6777
6769
  }
6778
6770
  );
6779
6771
  }
6780
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6772
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
6781
6773
  "div",
6782
6774
  {
6783
6775
  ref,
@@ -6792,7 +6784,7 @@ NavigatorTileGrid.displayName = "NavigatorTileGrid";
6792
6784
 
6793
6785
  // src/patterns/PublicPageLayout/PublicPageLayout.tsx
6794
6786
  var import_react87 = require("react");
6795
- var import_jsx_runtime68 = require("react/jsx-runtime");
6787
+ var import_jsx_runtime69 = require("react/jsx-runtime");
6796
6788
  var maxWidthClass = {
6797
6789
  sm: "max-w-md",
6798
6790
  md: "max-w-2xl",
@@ -6811,7 +6803,7 @@ var PublicPageLayout = (0, import_react87.forwardRef)(
6811
6803
  className,
6812
6804
  children,
6813
6805
  ...props
6814
- }, ref) => /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
6806
+ }, ref) => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6815
6807
  "div",
6816
6808
  {
6817
6809
  ref,
@@ -6821,7 +6813,7 @@ var PublicPageLayout = (0, import_react87.forwardRef)(
6821
6813
  ),
6822
6814
  ...props,
6823
6815
  children: [
6824
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
6816
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6825
6817
  "a",
6826
6818
  {
6827
6819
  href: `#${mainId}`,
@@ -6829,21 +6821,21 @@ var PublicPageLayout = (0, import_react87.forwardRef)(
6829
6821
  children: skipToMainLabel
6830
6822
  }
6831
6823
  ),
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)(
6824
+ 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
6825
  "div",
6834
6826
  {
6835
6827
  className: cn("mx-auto w-full px-6 py-4", maxWidthClass[maxWidth]),
6836
6828
  children: header
6837
6829
  }
6838
6830
  ) }),
6839
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("main", { id: mainId, className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
6831
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("main", { id: mainId, className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6840
6832
  "div",
6841
6833
  {
6842
6834
  className: cn("mx-auto w-full px-6 py-8", maxWidthClass[maxWidth]),
6843
6835
  children
6844
6836
  }
6845
6837
  ) }),
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)(
6838
+ 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
6839
  "div",
6848
6840
  {
6849
6841
  className: cn("mx-auto w-full px-6 py-4", maxWidthClass[maxWidth]),
@@ -6859,30 +6851,30 @@ PublicPageLayout.displayName = "PublicPageLayout";
6859
6851
  // src/patterns/ErrorPageLayout/ErrorPageLayout.tsx
6860
6852
  var import_react88 = require("react");
6861
6853
  var import_react89 = require("@phosphor-icons/react");
6862
- var import_jsx_runtime69 = require("react/jsx-runtime");
6854
+ var import_jsx_runtime70 = require("react/jsx-runtime");
6863
6855
  function isHrefAction(action) {
6864
6856
  return Boolean(action && "href" in action);
6865
6857
  }
6866
6858
  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 }),
6859
+ ({ 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: [
6860
+ code && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: "text-v2-6xl font-bold leading-none text-v2-action-primary", children: code }),
6869
6861
  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 })
6862
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "flex flex-col gap-2", children: [
6863
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Heading, { level: 1, size: "xl", children: title }),
6864
+ description && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Text, { size: "base", color: "muted", className: "max-w-md", children: description })
6873
6865
  ] }),
6874
- primaryAction && (isHrefAction(primaryAction) ? /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6866
+ primaryAction && (isHrefAction(primaryAction) ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
6875
6867
  Button,
6876
6868
  {
6877
6869
  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 })
6870
+ leftIcon: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_react89.ArrowLeft, { size: 16, weight: "bold", "aria-hidden": "true" }),
6871
+ children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("a", { href: primaryAction.href, children: primaryAction.label })
6880
6872
  }
6881
- ) : /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6873
+ ) : /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
6882
6874
  Button,
6883
6875
  {
6884
6876
  onClick: primaryAction.onClick,
6885
- leftIcon: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_react89.ArrowLeft, { size: 16, weight: "bold", "aria-hidden": "true" }),
6877
+ leftIcon: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_react89.ArrowLeft, { size: 16, weight: "bold", "aria-hidden": "true" }),
6886
6878
  children: primaryAction.label
6887
6879
  }
6888
6880
  ))
@@ -6892,7 +6884,7 @@ ErrorPageLayout.displayName = "ErrorPageLayout";
6892
6884
 
6893
6885
  // src/patterns/TutorialCard/TutorialCard.tsx
6894
6886
  var import_react90 = require("react");
6895
- var import_jsx_runtime70 = require("react/jsx-runtime");
6887
+ var import_jsx_runtime71 = require("react/jsx-runtime");
6896
6888
  var TutorialCard = (0, import_react90.forwardRef)(
6897
6889
  ({
6898
6890
  title,
@@ -6904,7 +6896,7 @@ var TutorialCard = (0, import_react90.forwardRef)(
6904
6896
  className,
6905
6897
  children,
6906
6898
  ...props
6907
- }, ref) => /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
6899
+ }, ref) => /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
6908
6900
  Card,
6909
6901
  {
6910
6902
  ref,
@@ -6913,15 +6905,15 @@ var TutorialCard = (0, import_react90.forwardRef)(
6913
6905
  padding: "none",
6914
6906
  className: cn("flex flex-col overflow-hidden", className),
6915
6907
  ...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: [
6908
+ children: asChild ? children : /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(import_jsx_runtime71.Fragment, { children: [
6909
+ media && /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "relative aspect-video w-full overflow-hidden bg-v2-bg-subtle", children: [
6918
6910
  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 }) })
6911
+ 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
6912
  ] }),
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 }) })
6913
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "flex flex-1 flex-col gap-2 p-4", children: [
6914
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Heading, { level: 3, size: "sm", children: title }),
6915
+ description && /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Text, { size: "sm", color: "muted", children: description }),
6916
+ 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
6917
  ] })
6926
6918
  ] })
6927
6919
  }
@@ -6931,7 +6923,7 @@ TutorialCard.displayName = "TutorialCard";
6931
6923
 
6932
6924
  // src/patterns/KpiCard/KpiCard.tsx
6933
6925
  var import_react91 = require("react");
6934
- var import_jsx_runtime71 = require("react/jsx-runtime");
6926
+ var import_jsx_runtime72 = require("react/jsx-runtime");
6935
6927
  var variantAccent = {
6936
6928
  neutral: "",
6937
6929
  success: "border-l-4 border-l-v2-success-500",
@@ -6940,7 +6932,7 @@ var variantAccent = {
6940
6932
  info: "border-l-4 border-l-v2-info-500"
6941
6933
  };
6942
6934
  var KpiCard = (0, import_react91.forwardRef)(
6943
- ({ label, value, sublabel, variant = "neutral", icon, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
6935
+ ({ label, value, sublabel, variant = "neutral", icon, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
6944
6936
  Card,
6945
6937
  {
6946
6938
  padding: "md",
@@ -6949,12 +6941,12 @@ var KpiCard = (0, import_react91.forwardRef)(
6949
6941
  "data-variant": variant,
6950
6942
  ...props,
6951
6943
  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 })
6944
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { className: "flex items-start justify-between gap-2", children: [
6945
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Heading, { level: 2, size: "sm", children: label }),
6946
+ icon && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { "aria-hidden": "true", children: icon })
6955
6947
  ] }),
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 })
6948
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Text, { size: "lg", weight: "semibold", className: "mt-2", children: value }),
6949
+ sublabel && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Text, { size: "sm", color: "muted", children: sublabel })
6958
6950
  ]
6959
6951
  }
6960
6952
  )
@@ -6965,7 +6957,7 @@ KpiCard.displayName = "KpiCard";
6965
6957
  var import_react92 = require("react");
6966
6958
  var import_react_dom = require("react-dom");
6967
6959
  var import_react93 = require("@phosphor-icons/react");
6968
- var import_jsx_runtime72 = require("react/jsx-runtime");
6960
+ var import_jsx_runtime73 = require("react/jsx-runtime");
6969
6961
  function CommandPalette({
6970
6962
  open,
6971
6963
  onOpenChange,
@@ -7038,7 +7030,7 @@ function CommandPalette({
7038
7030
  };
7039
7031
  if (typeof document === "undefined" || !open) return null;
7040
7032
  return (0, import_react_dom.createPortal)(
7041
- /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
7033
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
7042
7034
  "div",
7043
7035
  {
7044
7036
  role: "dialog",
@@ -7046,7 +7038,7 @@ function CommandPalette({
7046
7038
  "aria-label": ariaLabel,
7047
7039
  className: "fixed inset-0 z-50 flex items-start justify-center p-4 pt-[10vh]",
7048
7040
  children: [
7049
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
7041
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
7050
7042
  "button",
7051
7043
  {
7052
7044
  type: "button",
@@ -7055,9 +7047,9 @@ function CommandPalette({
7055
7047
  onClick: () => onOpenChange(false)
7056
7048
  }
7057
7049
  ),
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)(
7050
+ /* @__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: [
7051
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "flex items-center gap-3 border-b border-v2-border-default px-4 py-3", children: [
7052
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
7061
7053
  import_react93.MagnifyingGlass,
7062
7054
  {
7063
7055
  size: 18,
@@ -7065,7 +7057,7 @@ function CommandPalette({
7065
7057
  className: "text-v2-fg-muted"
7066
7058
  }
7067
7059
  ),
7068
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
7060
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
7069
7061
  "input",
7070
7062
  {
7071
7063
  ref: inputRef,
@@ -7085,24 +7077,24 @@ function CommandPalette({
7085
7077
  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
7078
  }
7087
7079
  ),
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" })
7080
+ /* @__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
7081
  ] }),
7090
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
7082
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
7091
7083
  "div",
7092
7084
  {
7093
7085
  id: "command-palette-listbox",
7094
7086
  role: "listbox",
7095
7087
  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)(
7088
+ 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
7089
  "section",
7098
7090
  {
7099
7091
  "aria-label": group.label,
7100
7092
  className: "border-b border-v2-border-default last:border-b-0",
7101
7093
  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) => {
7094
+ 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 }),
7095
+ 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
7096
  const isHighlighted = highlightedId === item.id;
7105
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
7097
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
7106
7098
  "li",
7107
7099
  {
7108
7100
  id: `command-palette-option-${item.id}`,
@@ -7115,10 +7107,10 @@ function CommandPalette({
7115
7107
  isHighlighted ? "bg-v2-brand-bg-soft text-v2-brand-text-dark" : "text-v2-fg-default hover:bg-v2-bg-subtle",
7116
7108
  item.disabled && "pointer-events-none opacity-50"
7117
7109
  ),
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)(
7110
+ children: renderItem ? renderItem(item, isHighlighted) : /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(import_jsx_runtime73.Fragment, { children: [
7111
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col", children: [
7112
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { className: "truncate font-medium", children: item.label }),
7113
+ item.description && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
7122
7114
  "span",
7123
7115
  {
7124
7116
  className: cn(
@@ -7129,7 +7121,7 @@ function CommandPalette({
7129
7121
  }
7130
7122
  )
7131
7123
  ] }),
7132
- item.meta && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
7124
+ item.meta && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
7133
7125
  "span",
7134
7126
  {
7135
7127
  className: cn(
@@ -7139,7 +7131,7 @@ function CommandPalette({
7139
7131
  children: item.meta
7140
7132
  }
7141
7133
  ),
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 })
7134
+ 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
7135
  ] })
7144
7136
  },
7145
7137
  item.id
@@ -7161,7 +7153,7 @@ function CommandPalette({
7161
7153
 
7162
7154
  // src/patterns/ChartTimeSeries/ChartTimeSeries.tsx
7163
7155
  var import_react94 = require("react");
7164
- var import_jsx_runtime73 = require("react/jsx-runtime");
7156
+ var import_jsx_runtime74 = require("react/jsx-runtime");
7165
7157
  var DEFAULT_RANGES = ["3m", "6m", "12m", "YTD"];
7166
7158
  var DEFAULT_EMPTY_MESSAGE = "Sem dados no per\xEDodo.";
7167
7159
  function buildChartPaths(data) {
@@ -7230,21 +7222,21 @@ var ChartTimeSeries = (0, import_react94.forwardRef)(
7230
7222
  const hasData = data.length > 0;
7231
7223
  const paths = hasData ? buildChartPaths(data) : null;
7232
7224
  const axisLabels = hasData ? buildAxisLabels(data) : [];
7233
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
7225
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
7234
7226
  "div",
7235
7227
  {
7236
7228
  ref,
7237
7229
  className: cn("flex flex-col gap-3.5", className),
7238
7230
  ...props,
7239
7231
  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 })
7232
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "flex items-start justify-between gap-3", children: [
7233
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "flex flex-col", children: [
7234
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("h3", { className: "text-v2-sm font-bold text-v2-fg-default", children: title }),
7235
+ subtitle && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: "text-v2-xs text-v2-fg-muted", children: subtitle })
7244
7236
  ] }),
7245
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { role: "tablist", className: "flex items-center gap-1", children: ranges.map((r) => {
7237
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { role: "tablist", className: "flex items-center gap-1", children: ranges.map((r) => {
7246
7238
  const isActive2 = r === activeRange;
7247
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
7239
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
7248
7240
  "button",
7249
7241
  {
7250
7242
  type: "button",
@@ -7261,7 +7253,7 @@ var ChartTimeSeries = (0, import_react94.forwardRef)(
7261
7253
  );
7262
7254
  }) })
7263
7255
  ] }),
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)(
7256
+ !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
7257
  "svg",
7266
7258
  {
7267
7259
  viewBox: "0 0 720 200",
@@ -7270,11 +7262,11 @@ var ChartTimeSeries = (0, import_react94.forwardRef)(
7270
7262
  "aria-label": typeof title === "string" ? title : "Gr\xE1fico de s\xE9rie temporal",
7271
7263
  role: "img",
7272
7264
  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" })
7265
+ /* @__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: [
7266
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("stop", { offset: "0%", stopColor: "currentColor", stopOpacity: "0.3" }),
7267
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("stop", { offset: "100%", stopColor: "currentColor", stopOpacity: "0" })
7276
7268
  ] }) }),
7277
- [40, 90, 140].map((y) => /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
7269
+ [40, 90, 140].map((y) => /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
7278
7270
  "line",
7279
7271
  {
7280
7272
  x1: "0",
@@ -7287,8 +7279,8 @@ var ChartTimeSeries = (0, import_react94.forwardRef)(
7287
7279
  },
7288
7280
  y
7289
7281
  )),
7290
- paths && /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(import_jsx_runtime73.Fragment, { children: [
7291
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
7282
+ paths && /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(import_jsx_runtime74.Fragment, { children: [
7283
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
7292
7284
  "path",
7293
7285
  {
7294
7286
  d: paths.area,
@@ -7296,7 +7288,7 @@ var ChartTimeSeries = (0, import_react94.forwardRef)(
7296
7288
  stroke: "none"
7297
7289
  }
7298
7290
  ),
7299
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
7291
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
7300
7292
  "path",
7301
7293
  {
7302
7294
  d: paths.line,
@@ -7307,7 +7299,7 @@ var ChartTimeSeries = (0, import_react94.forwardRef)(
7307
7299
  strokeLinejoin: "round"
7308
7300
  }
7309
7301
  ),
7310
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
7302
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
7311
7303
  "circle",
7312
7304
  {
7313
7305
  cx: paths.lastX,
@@ -7319,7 +7311,7 @@ var ChartTimeSeries = (0, import_react94.forwardRef)(
7319
7311
  }
7320
7312
  )
7321
7313
  ] }),
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)(
7314
+ /* @__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
7315
  "text",
7324
7316
  {
7325
7317
  x: tick.x,
@@ -7341,7 +7333,7 @@ var ChartTimeSeries = (0, import_react94.forwardRef)(
7341
7333
  // src/patterns/DonutChart/DonutChart.tsx
7342
7334
  var import_react95 = require("react");
7343
7335
  var import_recharts = require("recharts");
7344
- var import_jsx_runtime74 = require("react/jsx-runtime");
7336
+ var import_jsx_runtime75 = require("react/jsx-runtime");
7345
7337
  var DEFAULT_COLORS = [
7346
7338
  "var(--v2-chart-cat-1)",
7347
7339
  "var(--v2-chart-cat-2)",
@@ -7388,9 +7380,9 @@ function ChartTooltip({
7388
7380
  var _a;
7389
7381
  const slice = (_a = payload == null ? void 0 : payload[0]) == null ? void 0 : _a.payload;
7390
7382
  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)(
7383
+ 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: [
7384
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "flex items-center gap-2", children: [
7385
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
7394
7386
  "span",
7395
7387
  {
7396
7388
  className: "size-2 rounded-full",
@@ -7398,10 +7390,10 @@ function ChartTooltip({
7398
7390
  "aria-hidden": "true"
7399
7391
  }
7400
7392
  ),
7401
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("p", { className: "font-semibold text-v2-fg-default", children: slice.label })
7393
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("p", { className: "font-semibold text-v2-fg-default", children: slice.label })
7402
7394
  ] }),
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) })
7395
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("p", { className: "mt-1 font-semibold text-v2-fg-default", children: valueFormatter(slice.value) }),
7396
+ typeof slice.secondaryValue === "number" && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("p", { className: "text-v2-fg-muted", children: secondaryFormatter(slice.secondaryValue) })
7405
7397
  ] });
7406
7398
  }
7407
7399
  var DonutChart = (0, import_react95.forwardRef)(
@@ -7424,24 +7416,24 @@ var DonutChart = (0, import_react95.forwardRef)(
7424
7416
  const slices = buildSlices(data, topN, othersLabel, defaultColors);
7425
7417
  const isEmpty = data.length === 0 || total === 0;
7426
7418
  const [activeIdx, setActiveIdx] = (0, import_react95.useState)(null);
7427
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
7419
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
7428
7420
  "div",
7429
7421
  {
7430
7422
  ref,
7431
7423
  className: cn("flex flex-col gap-3.5", className),
7432
7424
  ...props,
7433
7425
  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)(
7426
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("h3", { className: "text-v2-sm font-bold text-v2-fg-default", children: title }),
7427
+ 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
7428
  "div",
7437
7429
  {
7438
7430
  className: "flex items-center gap-4",
7439
7431
  role: "img",
7440
7432
  "aria-label": typeof title === "string" ? title : "Donut chart",
7441
7433
  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)(
7434
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "relative size-[160px] shrink-0", children: [
7435
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_recharts.ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(import_recharts.PieChart, { children: [
7436
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
7445
7437
  import_recharts.Pie,
7446
7438
  {
7447
7439
  data: slices,
@@ -7454,7 +7446,7 @@ var DonutChart = (0, import_react95.forwardRef)(
7454
7446
  strokeWidth: 2,
7455
7447
  onMouseEnter: (_, idx) => setActiveIdx(idx),
7456
7448
  onMouseLeave: () => setActiveIdx(null),
7457
- children: slices.map((slice, idx) => /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
7449
+ children: slices.map((slice, idx) => /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
7458
7450
  import_recharts.Cell,
7459
7451
  {
7460
7452
  fill: slice.color,
@@ -7465,12 +7457,12 @@ var DonutChart = (0, import_react95.forwardRef)(
7465
7457
  ))
7466
7458
  }
7467
7459
  ),
7468
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
7460
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
7469
7461
  import_recharts.Tooltip,
7470
7462
  {
7471
7463
  allowEscapeViewBox: { x: false, y: true },
7472
7464
  position: { y: -56 },
7473
- content: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
7465
+ content: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
7474
7466
  ChartTooltip,
7475
7467
  {
7476
7468
  valueFormatter,
@@ -7480,12 +7472,12 @@ var DonutChart = (0, import_react95.forwardRef)(
7480
7472
  }
7481
7473
  )
7482
7474
  ] }) }),
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 })
7475
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "pointer-events-none absolute inset-0 flex flex-col items-center justify-center", children: [
7476
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { className: "text-v2-xl font-extrabold text-v2-fg-default", children: centerValue ?? valueFormatter(total) }),
7477
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { className: "text-v2-xs text-v2-fg-muted", children: centerLabel })
7486
7478
  ] })
7487
7479
  ] }),
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)(
7480
+ /* @__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
7481
  "li",
7490
7482
  {
7491
7483
  onMouseEnter: () => setActiveIdx(idx),
@@ -7495,7 +7487,7 @@ var DonutChart = (0, import_react95.forwardRef)(
7495
7487
  activeIdx === idx && "bg-v2-bg-subtle"
7496
7488
  ),
7497
7489
  children: [
7498
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
7490
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
7499
7491
  "span",
7500
7492
  {
7501
7493
  "aria-hidden": "true",
@@ -7503,8 +7495,8 @@ var DonutChart = (0, import_react95.forwardRef)(
7503
7495
  style: { backgroundColor: slice.color }
7504
7496
  }
7505
7497
  ),
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) })
7498
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { className: "flex-1 truncate", children: slice.label }),
7499
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { className: "font-bold tabular-nums", children: valueFormatter(slice.value) })
7508
7500
  ]
7509
7501
  },
7510
7502
  slice.label
@@ -7521,16 +7513,16 @@ var DonutChart = (0, import_react95.forwardRef)(
7521
7513
  // src/patterns/EmptyState/EmptyState.tsx
7522
7514
  var import_react96 = require("react");
7523
7515
  var import_react97 = require("@phosphor-icons/react");
7524
- var import_jsx_runtime75 = require("react/jsx-runtime");
7516
+ var import_jsx_runtime76 = require("react/jsx-runtime");
7525
7517
  var variantIconBg = {
7526
7518
  "no-data": "bg-v2-bg-subtle text-v2-fg-muted",
7527
7519
  "no-results": "bg-v2-info-soft text-v2-info-500",
7528
7520
  error: "bg-v2-danger-soft text-v2-danger-500"
7529
7521
  };
7530
7522
  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" })
7523
+ "no-data": /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_react97.Tray, { size: 28, "aria-hidden": "true" }),
7524
+ "no-results": /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_react97.MagnifyingGlass, { size: 28, "aria-hidden": "true" }),
7525
+ error: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_react97.WarningCircle, { size: 28, "aria-hidden": "true" })
7534
7526
  };
7535
7527
  var EmptyState = (0, import_react96.forwardRef)(
7536
7528
  ({
@@ -7542,7 +7534,7 @@ var EmptyState = (0, import_react96.forwardRef)(
7542
7534
  className,
7543
7535
  ...props
7544
7536
  }, ref) => {
7545
- return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
7537
+ return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
7546
7538
  "div",
7547
7539
  {
7548
7540
  ref,
@@ -7554,7 +7546,7 @@ var EmptyState = (0, import_react96.forwardRef)(
7554
7546
  ),
7555
7547
  ...props,
7556
7548
  children: [
7557
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
7549
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
7558
7550
  "span",
7559
7551
  {
7560
7552
  "aria-hidden": "true",
@@ -7565,9 +7557,9 @@ var EmptyState = (0, import_react96.forwardRef)(
7565
7557
  children: icon ?? variantIcon2[variant]
7566
7558
  }
7567
7559
  ),
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 })
7560
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("h3", { className: "text-v2-base font-semibold text-v2-fg-default", children: title }),
7561
+ description && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("p", { className: "max-w-md text-v2-sm text-v2-fg-muted", children: description }),
7562
+ action && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "mt-1 flex items-center gap-2", children: action })
7571
7563
  ]
7572
7564
  }
7573
7565
  );
@@ -7577,7 +7569,7 @@ EmptyState.displayName = "EmptyState";
7577
7569
 
7578
7570
  // src/patterns/WizardShell/WizardShell.tsx
7579
7571
  var import_react98 = require("@phosphor-icons/react");
7580
- var import_jsx_runtime76 = require("react/jsx-runtime");
7572
+ var import_jsx_runtime77 = require("react/jsx-runtime");
7581
7573
  var stepIndicatorClass = {
7582
7574
  completed: "bg-v2-success-500 text-v2-action-on-primary border-v2-success-500",
7583
7575
  active: "bg-v2-action-primary text-v2-action-on-primary border-v2-action-primary",
@@ -7590,8 +7582,8 @@ function StepIndicator({
7590
7582
  index,
7591
7583
  onStepChange
7592
7584
  }) {
7593
- const inner = /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(import_jsx_runtime76.Fragment, { children: [
7594
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
7585
+ const inner = /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(import_jsx_runtime77.Fragment, { children: [
7586
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
7595
7587
  "span",
7596
7588
  {
7597
7589
  "data-state": step.state,
@@ -7600,11 +7592,11 @@ function StepIndicator({
7600
7592
  "flex size-8 shrink-0 items-center justify-center rounded-v2-pill border-2 text-v2-sm font-semibold",
7601
7593
  stepIndicatorClass[step.state]
7602
7594
  ),
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
7595
+ 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
7596
  }
7605
7597
  ),
7606
- /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "flex flex-col", children: [
7607
- /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
7598
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "flex flex-col", children: [
7599
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(
7608
7600
  Text,
7609
7601
  {
7610
7602
  tag: "p",
@@ -7613,18 +7605,18 @@ function StepIndicator({
7613
7605
  color: step.state === "pending" ? "muted" : "default",
7614
7606
  children: [
7615
7607
  step.label,
7616
- step.optional && /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(Text, { tag: "span", size: "xs", color: "muted", children: [
7608
+ step.optional && /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(Text, { tag: "span", size: "xs", color: "muted", children: [
7617
7609
  " ",
7618
7610
  "\xB7 opcional"
7619
7611
  ] })
7620
7612
  ]
7621
7613
  }
7622
7614
  ),
7623
- step.description && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Text, { tag: "p", size: "xs", color: "muted", children: step.description })
7615
+ step.description && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(Text, { tag: "p", size: "xs", color: "muted", children: step.description })
7624
7616
  ] })
7625
7617
  ] });
7626
7618
  if (onStepChange) {
7627
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
7619
+ return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
7628
7620
  "button",
7629
7621
  {
7630
7622
  type: "button",
@@ -7635,7 +7627,7 @@ function StepIndicator({
7635
7627
  }
7636
7628
  );
7637
7629
  }
7638
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
7630
+ return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
7639
7631
  "div",
7640
7632
  {
7641
7633
  className: "flex items-center gap-2",
@@ -7655,7 +7647,7 @@ function WizardShell(props) {
7655
7647
  footer,
7656
7648
  className
7657
7649
  } = props;
7658
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
7650
+ return /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(
7659
7651
  "div",
7660
7652
  {
7661
7653
  className: cn(
@@ -7663,10 +7655,10 @@ function WizardShell(props) {
7663
7655
  className
7664
7656
  ),
7665
7657
  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)(
7658
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "border-b border-v2-border-default p-5", children: [
7659
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("h1", { className: "text-v2-lg font-extrabold tracking-tight text-v2-fg-default", children: title }),
7660
+ subtitle && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(Text, { tag: "p", size: "sm", color: "muted", className: "mt-0.5", children: subtitle }),
7661
+ /* @__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
7662
  StepIndicator,
7671
7663
  {
7672
7664
  step,
@@ -7675,7 +7667,7 @@ function WizardShell(props) {
7675
7667
  }
7676
7668
  ) }, step.id)) })
7677
7669
  ] }),
7678
- /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
7670
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(
7679
7671
  "div",
7680
7672
  {
7681
7673
  className: cn(
@@ -7683,12 +7675,12 @@ function WizardShell(props) {
7683
7675
  aside ? "lg:grid-cols-[1fr_320px]" : "grid-cols-1"
7684
7676
  ),
7685
7677
  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 })
7678
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { children }),
7679
+ aside && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "lg:sticky lg:top-4", children: aside })
7688
7680
  ]
7689
7681
  }
7690
7682
  ),
7691
- footer && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "border-t border-v2-border-default bg-v2-bg-subtle p-4", children: footer })
7683
+ footer && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "border-t border-v2-border-default bg-v2-bg-subtle p-4", children: footer })
7692
7684
  ]
7693
7685
  }
7694
7686
  );
@@ -7699,8 +7691,8 @@ WizardShell.displayName = "WizardShell";
7699
7691
  var import_react99 = require("react");
7700
7692
  var AccordionPrimitive = __toESM(require("@radix-ui/react-accordion"));
7701
7693
  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)(
7694
+ var import_jsx_runtime78 = require("react/jsx-runtime");
7695
+ var SingleRoot = (0, import_react99.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
7704
7696
  AccordionPrimitive.Root,
7705
7697
  {
7706
7698
  ref,
@@ -7709,7 +7701,7 @@ var SingleRoot = (0, import_react99.forwardRef)(({ className, ...props }, ref) =
7709
7701
  }
7710
7702
  ));
7711
7703
  SingleRoot.displayName = "DSAccordion.Root";
7712
- var MultipleRoot = (0, import_react99.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
7704
+ var MultipleRoot = (0, import_react99.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
7713
7705
  AccordionPrimitive.Root,
7714
7706
  {
7715
7707
  ref,
@@ -7718,8 +7710,8 @@ var MultipleRoot = (0, import_react99.forwardRef)(({ className, ...props }, ref)
7718
7710
  }
7719
7711
  ));
7720
7712
  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)(
7713
+ var Root14 = AccordionPrimitive.Root;
7714
+ var Item7 = (0, import_react99.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
7723
7715
  AccordionPrimitive.Item,
7724
7716
  {
7725
7717
  ref,
@@ -7732,7 +7724,7 @@ var Item7 = (0, import_react99.forwardRef)(({ className, ...props }, ref) => /*
7732
7724
  ));
7733
7725
  Item7.displayName = "DSAccordion.Item";
7734
7726
  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)(
7727
+ ({ className, children, icon, meta, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(AccordionPrimitive.Header, { className: "flex", children: /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
7736
7728
  AccordionPrimitive.Trigger,
7737
7729
  {
7738
7730
  ref,
@@ -7742,8 +7734,8 @@ var Trigger16 = (0, import_react99.forwardRef)(
7742
7734
  ),
7743
7735
  ...props,
7744
7736
  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)(
7737
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("span", { className: "flex min-w-0 items-center gap-2", children: [
7738
+ icon && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
7747
7739
  "span",
7748
7740
  {
7749
7741
  className: "shrink-0 text-v2-fg-muted",
@@ -7751,11 +7743,11 @@ var Trigger16 = (0, import_react99.forwardRef)(
7751
7743
  children: icon
7752
7744
  }
7753
7745
  ),
7754
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("span", { className: "truncate text-v2-base font-semibold text-v2-fg-default", children })
7746
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { className: "truncate text-v2-base font-semibold text-v2-fg-default", children })
7755
7747
  ] }),
7756
- /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("span", { className: "flex shrink-0 items-center gap-3", children: [
7748
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("span", { className: "flex shrink-0 items-center gap-3", children: [
7757
7749
  meta,
7758
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
7750
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
7759
7751
  import_react100.CaretDown,
7760
7752
  {
7761
7753
  size: 16,
@@ -7770,7 +7762,7 @@ var Trigger16 = (0, import_react99.forwardRef)(
7770
7762
  ) })
7771
7763
  );
7772
7764
  Trigger16.displayName = "DSAccordion.Trigger";
7773
- var Content16 = (0, import_react99.forwardRef)(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
7765
+ var Content16 = (0, import_react99.forwardRef)(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
7774
7766
  AccordionPrimitive.Content,
7775
7767
  {
7776
7768
  ref,
@@ -7779,18 +7771,18 @@ var Content16 = (0, import_react99.forwardRef)(({ className, children, ...props
7779
7771
  className
7780
7772
  ),
7781
7773
  ...props,
7782
- children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "border-t border-v2-border-default p-5", children })
7774
+ children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "border-t border-v2-border-default p-5", children })
7783
7775
  }
7784
7776
  ));
7785
7777
  Content16.displayName = "DSAccordion.Content";
7786
- var DSAccordion = Object.assign(Root15, {
7778
+ var DSAccordion = Object.assign(Root14, {
7787
7779
  Item: Item7,
7788
7780
  Trigger: Trigger16,
7789
7781
  Content: Content16
7790
7782
  });
7791
7783
 
7792
7784
  // src/patterns/DataField/DataField.tsx
7793
- var import_jsx_runtime78 = require("react/jsx-runtime");
7785
+ var import_jsx_runtime79 = require("react/jsx-runtime");
7794
7786
  function DataField({
7795
7787
  label,
7796
7788
  value,
@@ -7798,8 +7790,8 @@ function DataField({
7798
7790
  hint,
7799
7791
  className
7800
7792
  }) {
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)(
7793
+ return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: cn("flex flex-col gap-0.5", className), children: [
7794
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
7803
7795
  Text,
7804
7796
  {
7805
7797
  size: "xs",
@@ -7814,15 +7806,15 @@ function DataField({
7814
7806
  ]
7815
7807
  }
7816
7808
  ),
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 })
7809
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Text, { size: "sm", weight: "semibold", children: value ?? "\u2014" }),
7810
+ hint && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Text, { size: "xs", color: "subtle", children: hint })
7819
7811
  ] });
7820
7812
  }
7821
7813
 
7822
7814
  // src/patterns/FilterBarV2/FilterBarV2.tsx
7823
7815
  var import_react101 = require("react");
7824
7816
  var import_react102 = require("@phosphor-icons/react");
7825
- var import_jsx_runtime79 = require("react/jsx-runtime");
7817
+ var import_jsx_runtime80 = require("react/jsx-runtime");
7826
7818
  function isStringValue(v) {
7827
7819
  return typeof v === "string";
7828
7820
  }
@@ -7859,10 +7851,10 @@ function MultiSelectField({
7859
7851
  };
7860
7852
  const selectedLabels = field.options.filter((opt) => selected.includes(opt.value)).map((opt) => opt.label);
7861
7853
  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)(
7854
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "relative w-full", children: [
7855
+ 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 }),
7856
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(Popover, { open, onOpenChange: setOpen, children: [
7857
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Popover.Trigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
7866
7858
  "button",
7867
7859
  {
7868
7860
  type: "button",
@@ -7873,28 +7865,28 @@ function MultiSelectField({
7873
7865
  selected.length === 0 && "text-v2-fg-muted"
7874
7866
  ),
7875
7867
  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 })
7868
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("span", { className: "truncate", children: triggerLabel }),
7869
+ selected.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Badge, { variant: "info", size: "sm", children: selected.length })
7878
7870
  ]
7879
7871
  }
7880
7872
  ) }),
7881
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7873
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
7882
7874
  Popover.Content,
7883
7875
  {
7884
7876
  size: "md",
7885
7877
  align: "start",
7886
7878
  className: "max-h-72 overflow-y-auto p-1",
7887
- children: /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
7879
+ children: /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
7888
7880
  "ul",
7889
7881
  {
7890
7882
  role: "listbox",
7891
7883
  "aria-multiselectable": "true",
7892
7884
  className: "flex flex-col",
7893
7885
  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" }),
7886
+ 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
7887
  field.options.map((option) => {
7896
7888
  const checked = selected.includes(option.value);
7897
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
7889
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
7898
7890
  "button",
7899
7891
  {
7900
7892
  type: "button",
@@ -7906,14 +7898,14 @@ function MultiSelectField({
7906
7898
  "hover:bg-v2-bg-subtle focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-v2-focus-ring/30"
7907
7899
  ),
7908
7900
  children: [
7909
- checked ? /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7901
+ checked ? /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
7910
7902
  import_react102.CheckSquare,
7911
7903
  {
7912
7904
  size: 18,
7913
7905
  weight: "fill",
7914
7906
  className: "shrink-0 text-v2-action-primary"
7915
7907
  }
7916
- ) : /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7908
+ ) : /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
7917
7909
  import_react102.Square,
7918
7910
  {
7919
7911
  size: 18,
@@ -7921,7 +7913,7 @@ function MultiSelectField({
7921
7913
  className: "shrink-0 text-v2-fg-muted"
7922
7914
  }
7923
7915
  ),
7924
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("span", { className: "truncate", children: option.label })
7916
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("span", { className: "truncate", children: option.label })
7925
7917
  ]
7926
7918
  }
7927
7919
  ) }, option.value);
@@ -7940,7 +7932,7 @@ function DateRangeField({
7940
7932
  onChange
7941
7933
  }) {
7942
7934
  const range = asDateRange(value);
7943
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7935
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
7944
7936
  DateRangeInput,
7945
7937
  {
7946
7938
  label: field.label,
@@ -7962,8 +7954,8 @@ function NumberRangeField({
7962
7954
  const minLabel = field.minLabel ?? `${field.label} (maior ou igual)`;
7963
7955
  const maxLabel = field.maxLabel ?? `${field.label} (menor ou igual)`;
7964
7956
  if (field.format === "money") {
7965
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(import_jsx_runtime79.Fragment, { children: [
7966
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7957
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(import_jsx_runtime80.Fragment, { children: [
7958
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
7967
7959
  MoneyInput,
7968
7960
  {
7969
7961
  label: minLabel,
@@ -7971,7 +7963,7 @@ function NumberRangeField({
7971
7963
  onValueChange: (_f, raw) => setMin(raw)
7972
7964
  }
7973
7965
  ),
7974
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7966
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
7975
7967
  MoneyInput,
7976
7968
  {
7977
7969
  label: maxLabel,
@@ -7982,8 +7974,8 @@ function NumberRangeField({
7982
7974
  ] });
7983
7975
  }
7984
7976
  if (field.format === "percent") {
7985
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(import_jsx_runtime79.Fragment, { children: [
7986
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7977
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(import_jsx_runtime80.Fragment, { children: [
7978
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
7987
7979
  PercentInput,
7988
7980
  {
7989
7981
  label: minLabel,
@@ -7991,7 +7983,7 @@ function NumberRangeField({
7991
7983
  onValueChange: (_f, raw) => setMin(raw)
7992
7984
  }
7993
7985
  ),
7994
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7986
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
7995
7987
  PercentInput,
7996
7988
  {
7997
7989
  label: maxLabel,
@@ -8001,8 +7993,8 @@ function NumberRangeField({
8001
7993
  )
8002
7994
  ] });
8003
7995
  }
8004
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(import_jsx_runtime79.Fragment, { children: [
8005
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7996
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(import_jsx_runtime80.Fragment, { children: [
7997
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
8006
7998
  Input,
8007
7999
  {
8008
8000
  label: minLabel,
@@ -8011,7 +8003,7 @@ function NumberRangeField({
8011
8003
  onChange: (e) => setMin(e.target.value)
8012
8004
  }
8013
8005
  ),
8014
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
8006
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
8015
8007
  Input,
8016
8008
  {
8017
8009
  label: maxLabel,
@@ -8024,7 +8016,7 @@ function NumberRangeField({
8024
8016
  }
8025
8017
  function renderField(field, value, onChange) {
8026
8018
  if (field.type === "text") {
8027
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
8019
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
8028
8020
  Input,
8029
8021
  {
8030
8022
  label: field.label,
@@ -8036,7 +8028,7 @@ function renderField(field, value, onChange) {
8036
8028
  );
8037
8029
  }
8038
8030
  if (field.type === "mask") {
8039
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
8031
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
8040
8032
  DocumentInput,
8041
8033
  {
8042
8034
  label: field.label,
@@ -8048,7 +8040,7 @@ function renderField(field, value, onChange) {
8048
8040
  );
8049
8041
  }
8050
8042
  if (field.type === "select") {
8051
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
8043
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
8052
8044
  Combobox,
8053
8045
  {
8054
8046
  label: field.label,
@@ -8062,13 +8054,13 @@ function renderField(field, value, onChange) {
8062
8054
  );
8063
8055
  }
8064
8056
  if (field.type === "multiSelect") {
8065
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(MultiSelectField, { field, value, onChange });
8057
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(MultiSelectField, { field, value, onChange });
8066
8058
  }
8067
8059
  if (field.type === "dateRange") {
8068
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(DateRangeField, { field, value, onChange });
8060
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(DateRangeField, { field, value, onChange });
8069
8061
  }
8070
8062
  if (field.type === "numberRange") {
8071
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(NumberRangeField, { field, value, onChange });
8063
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(NumberRangeField, { field, value, onChange });
8072
8064
  }
8073
8065
  return null;
8074
8066
  }
@@ -8117,8 +8109,8 @@ function FilterBarV2({
8117
8109
  setOpen(false);
8118
8110
  };
8119
8111
  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)(
8112
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(DrawerRoot, { open, onOpenChange: setOpen, children: [
8113
+ !hideTrigger && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(DrawerRoot.Trigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
8122
8114
  "button",
8123
8115
  {
8124
8116
  type: "button",
@@ -8128,26 +8120,26 @@ function FilterBarV2({
8128
8120
  className
8129
8121
  ),
8130
8122
  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" }),
8123
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("span", { className: "inline-flex items-center gap-2", children: [
8124
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_react102.FunnelSimple, { size: 18, weight: "bold", "aria-hidden": "true" }),
8133
8125
  triggerLabel
8134
8126
  ] }),
8135
- activeCount > 0 ? /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Badge, { variant: "info", size: "sm", children: activeCount }) : null
8127
+ activeCount > 0 ? /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Badge, { variant: "info", size: "sm", children: activeCount }) : null
8136
8128
  ]
8137
8129
  }
8138
8130
  ) }),
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." })
8131
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(DrawerRoot.Content, { side: "right", size: "md", children: [
8132
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(DrawerRoot.Header, { children: [
8133
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(DrawerRoot.Title, { children: title ?? "Filtros avan\xE7ados" }),
8134
+ /* @__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
8135
  ] }),
8144
- /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
8136
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
8145
8137
  "form",
8146
8138
  {
8147
8139
  onSubmit: handleApply,
8148
8140
  className: "flex flex-1 flex-col overflow-hidden",
8149
8141
  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)(
8142
+ /* @__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
8143
  "div",
8152
8144
  {
8153
8145
  className: cn(
@@ -8162,8 +8154,8 @@ function FilterBarV2({
8162
8154
  },
8163
8155
  field.name
8164
8156
  )) }),
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)(
8157
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(DrawerRoot.Footer, { className: "sm:justify-between", children: [
8158
+ activeCount > 0 ? /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Button, { type: "button", variant: "secondary", onClick: handleClear, children: clearLabel }) : /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
8167
8159
  Button,
8168
8160
  {
8169
8161
  type: "button",
@@ -8172,7 +8164,7 @@ function FilterBarV2({
8172
8164
  children: "Cancelar"
8173
8165
  }
8174
8166
  ),
8175
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Button, { type: "submit", children: applyLabel })
8167
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Button, { type: "submit", children: applyLabel })
8176
8168
  ] })
8177
8169
  ]
8178
8170
  }
@@ -8182,7 +8174,7 @@ function FilterBarV2({
8182
8174
  }
8183
8175
 
8184
8176
  // src/patterns/FormSection/FormSection.tsx
8185
- var import_jsx_runtime80 = require("react/jsx-runtime");
8177
+ var import_jsx_runtime81 = require("react/jsx-runtime");
8186
8178
  function FormSection({
8187
8179
  id,
8188
8180
  icon,
@@ -8192,15 +8184,15 @@ function FormSection({
8192
8184
  children,
8193
8185
  ariaLabel
8194
8186
  }) {
8195
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
8187
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
8196
8188
  "section",
8197
8189
  {
8198
8190
  id,
8199
8191
  "aria-label": ariaLabel ?? title,
8200
8192
  className: "scroll-mt-4 rounded-v2-lg border border-v2-border-default bg-v2-panel p-5 shadow-sm",
8201
8193
  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)(
8194
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("header", { className: "mb-5 flex items-start gap-3", children: [
8195
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
8204
8196
  "span",
8205
8197
  {
8206
8198
  "aria-hidden": "true",
@@ -8208,11 +8200,11 @@ function FormSection({
8208
8200
  children: icon
8209
8201
  }
8210
8202
  ),
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 })
8203
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "flex flex-1 flex-col", children: [
8204
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("h2", { className: "text-v2-base font-bold text-v2-fg-default", children: title }),
8205
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("p", { className: "text-v2-sm text-v2-fg-muted", children: description })
8214
8206
  ] }),
8215
- meta && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "shrink-0", children: meta })
8207
+ meta && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "shrink-0", children: meta })
8216
8208
  ] }),
8217
8209
  children
8218
8210
  ]
@@ -8223,7 +8215,7 @@ function FormSection({
8223
8215
  // src/patterns/FormWithAside/FormWithAside.tsx
8224
8216
  var import_react103 = require("react");
8225
8217
  var import_react104 = require("@phosphor-icons/react");
8226
- var import_jsx_runtime81 = require("react/jsx-runtime");
8218
+ var import_jsx_runtime82 = require("react/jsx-runtime");
8227
8219
  function ProgressRing({
8228
8220
  percent,
8229
8221
  size = 36
@@ -8233,7 +8225,7 @@ function ProgressRing({
8233
8225
  const circumference = 2 * Math.PI * radius;
8234
8226
  const clamped = Math.min(100, Math.max(0, percent));
8235
8227
  const offset = circumference - clamped / 100 * circumference;
8236
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
8228
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
8237
8229
  "svg",
8238
8230
  {
8239
8231
  width: size,
@@ -8242,7 +8234,7 @@ function ProgressRing({
8242
8234
  "aria-hidden": "true",
8243
8235
  className: "shrink-0",
8244
8236
  children: [
8245
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
8237
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
8246
8238
  "circle",
8247
8239
  {
8248
8240
  cx: size / 2,
@@ -8253,7 +8245,7 @@ function ProgressRing({
8253
8245
  fill: "none"
8254
8246
  }
8255
8247
  ),
8256
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
8248
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
8257
8249
  "circle",
8258
8250
  {
8259
8251
  cx: size / 2,
@@ -8268,7 +8260,7 @@ function ProgressRing({
8268
8260
  transform: `rotate(-90 ${size / 2} ${size / 2})`
8269
8261
  }
8270
8262
  ),
8271
- /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
8263
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
8272
8264
  "text",
8273
8265
  {
8274
8266
  x: "50%",
@@ -8302,9 +8294,9 @@ function FormWithAside({
8302
8294
  const computedOverall = overallPercent ?? (sections.length > 0 ? Math.round(
8303
8295
  sections.reduce((sum, s) => sum + (s.percent ?? 0), 0) / sections.length
8304
8296
  ) : 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)(
8297
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: "flex flex-col gap-4 lg:flex-row", children: [
8298
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "min-w-0 flex-1", children }),
8299
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
8308
8300
  "aside",
8309
8301
  {
8310
8302
  "aria-label": title,
@@ -8313,7 +8305,7 @@ function FormWithAside({
8313
8305
  collapsed ? "lg:w-14" : "lg:w-72"
8314
8306
  ),
8315
8307
  children: [
8316
- /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
8308
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
8317
8309
  "div",
8318
8310
  {
8319
8311
  className: cn(
@@ -8321,8 +8313,8 @@ function FormWithAside({
8321
8313
  collapsed ? "justify-center" : "justify-between"
8322
8314
  ),
8323
8315
  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)(
8316
+ !collapsed && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("h2", { className: "text-v2-xs font-bold uppercase tracking-wide text-v2-fg-muted", children: title }),
8317
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
8326
8318
  "button",
8327
8319
  {
8328
8320
  type: "button",
@@ -8331,17 +8323,17 @@ function FormWithAside({
8331
8323
  "aria-label": collapsed ? "Expandir resumo" : "Recolher resumo",
8332
8324
  title: collapsed ? "Expandir resumo" : "Recolher resumo",
8333
8325
  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" })
8326
+ 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
8327
  }
8336
8328
  )
8337
8329
  ]
8338
8330
  }
8339
8331
  ),
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 }),
8332
+ collapsed ? /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: "flex flex-col items-center gap-3", children: [
8333
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(ProgressRing, { percent: computedOverall, size: 36 }),
8342
8334
  sections.map((s) => {
8343
8335
  const done = (s.percent ?? 0) >= 100;
8344
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
8336
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
8345
8337
  "button",
8346
8338
  {
8347
8339
  type: "button",
@@ -8356,12 +8348,12 @@ function FormWithAside({
8356
8348
  s.id
8357
8349
  );
8358
8350
  })
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: [
8351
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(import_jsx_runtime82.Fragment, { children: [
8352
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: "flex items-center gap-3 rounded-v2-md bg-v2-raised px-3 py-2", children: [
8353
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(ProgressRing, { percent: computedOverall, size: 40 }),
8354
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: "flex min-w-0 flex-col", children: [
8355
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { className: "text-v2-xs font-semibold text-v2-fg-default", children: "Progresso geral" }),
8356
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("span", { className: "text-v2-xs text-v2-fg-muted", children: [
8365
8357
  sections.filter((s) => (s.percent ?? 0) >= 100).length,
8366
8358
  " de",
8367
8359
  " ",
@@ -8370,37 +8362,37 @@ function FormWithAside({
8370
8362
  ] })
8371
8363
  ] })
8372
8364
  ] }),
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) => {
8365
+ /* @__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
8366
  const done = (s.percent ?? 0) >= 100;
8375
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
8367
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
8376
8368
  "button",
8377
8369
  {
8378
8370
  type: "button",
8379
8371
  onClick: () => scrollToId(s.id),
8380
8372
  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
8373
  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)(
8374
+ /* @__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
8375
  import_react104.CheckCircle,
8384
8376
  {
8385
8377
  size: 14,
8386
8378
  weight: "fill",
8387
8379
  className: "text-v2-success-500"
8388
8380
  }
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: [
8381
+ ) : /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_react104.Circle, { size: 14, className: "text-v2-fg-muted" }) }),
8382
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("span", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
8383
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("span", { className: "flex items-center justify-between gap-2", children: [
8384
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { className: "truncate text-v2-sm font-medium text-v2-fg-default", children: s.label }),
8385
+ 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
8386
  s.percent,
8395
8387
  "%"
8396
8388
  ] })
8397
8389
  ] }),
8398
- typeof s.percent === "number" && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
8390
+ typeof s.percent === "number" && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
8399
8391
  "span",
8400
8392
  {
8401
8393
  "aria-hidden": "true",
8402
8394
  className: "block h-1 overflow-hidden rounded-v2-pill bg-v2-bg-subtle",
8403
- children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
8395
+ children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
8404
8396
  "span",
8405
8397
  {
8406
8398
  className: "block h-full bg-v2-action-primary transition-all",
@@ -8409,7 +8401,7 @@ function FormWithAside({
8409
8401
  )
8410
8402
  }
8411
8403
  ),
8412
- s.pendingCount && s.pendingCount > 0 ? /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("span", { className: "text-v2-xs text-v2-warn-fg", children: [
8404
+ s.pendingCount && s.pendingCount > 0 ? /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("span", { className: "text-v2-xs text-v2-warn-fg", children: [
8413
8405
  s.pendingCount,
8414
8406
  " pend\xEAncia",
8415
8407
  s.pendingCount === 1 ? "" : "s"
@@ -8419,7 +8411,7 @@ function FormWithAside({
8419
8411
  }
8420
8412
  ) }, s.id);
8421
8413
  }) }) }),
8422
- asideExtra && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "border-t border-v2-border-default pt-3", children: asideExtra })
8414
+ asideExtra && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "border-t border-v2-border-default pt-3", children: asideExtra })
8423
8415
  ] })
8424
8416
  ]
8425
8417
  }
@@ -8428,7 +8420,7 @@ function FormWithAside({
8428
8420
  }
8429
8421
 
8430
8422
  // src/patterns/HorizontalBarChart/HorizontalBarChart.tsx
8431
- var import_jsx_runtime82 = require("react/jsx-runtime");
8423
+ var import_jsx_runtime83 = require("react/jsx-runtime");
8432
8424
  var PALETTE = [
8433
8425
  "var(--v2-chart-cat-1)",
8434
8426
  "var(--v2-chart-cat-2)",
@@ -8447,7 +8439,7 @@ function HorizontalBarChart({
8447
8439
  showSecondary = false
8448
8440
  }) {
8449
8441
  const max = Math.max(1, ...items.map((i) => i.value));
8450
- return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
8442
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
8451
8443
  "div",
8452
8444
  {
8453
8445
  role: "img",
@@ -8457,20 +8449,20 @@ function HorizontalBarChart({
8457
8449
  const color = item.color ?? PALETTE[idx % PALETTE.length];
8458
8450
  const pct = item.value / max * 100;
8459
8451
  const hasSecondary = showSecondary && typeof item.secondaryValue === "number";
8460
- return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
8452
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
8461
8453
  "div",
8462
8454
  {
8463
8455
  className: "group flex flex-col gap-1 text-v2-sm",
8464
8456
  title: hasSecondary ? `${item.label}: ${valueFormatter(item.value)} \xB7 ${secondaryFormatter(item.secondaryValue ?? 0)}` : `${item.label}: ${valueFormatter(item.value)}`,
8465
8457
  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) })
8458
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: "flex items-baseline justify-between gap-3", children: [
8459
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("span", { className: "truncate text-v2-xs font-semibold text-v2-fg-muted", children: item.label }),
8460
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("span", { className: "flex items-baseline gap-2", children: [
8461
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("span", { className: "font-bold text-v2-fg-default", children: valueFormatter(item.value) }),
8462
+ 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
8463
  ] })
8472
8464
  ] }),
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)(
8465
+ /* @__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
8466
  "div",
8475
8467
  {
8476
8468
  className: "h-full rounded-v2-pill transition-all duration-300 group-hover:brightness-110",
@@ -8492,7 +8484,7 @@ function HorizontalBarChart({
8492
8484
 
8493
8485
  // src/patterns/LineChart/LineChart.tsx
8494
8486
  var import_recharts2 = require("recharts");
8495
- var import_jsx_runtime83 = require("react/jsx-runtime");
8487
+ var import_jsx_runtime84 = require("react/jsx-runtime");
8496
8488
  function toRows(labels, series) {
8497
8489
  return labels.map((label, i) => {
8498
8490
  const row = { x: label };
@@ -8513,10 +8505,10 @@ function ChartTooltip2({
8513
8505
  formatLabel
8514
8506
  }) {
8515
8507
  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)(
8508
+ 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: [
8509
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("p", { className: "font-semibold text-v2-fg-default", children: formatLabel(label ?? "") }),
8510
+ /* @__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: [
8511
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
8520
8512
  "span",
8521
8513
  {
8522
8514
  className: "size-2 rounded-full",
@@ -8524,11 +8516,11 @@ function ChartTooltip2({
8524
8516
  "aria-hidden": "true"
8525
8517
  }
8526
8518
  ),
8527
- /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("span", { className: "text-v2-fg-muted", children: [
8519
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("span", { className: "text-v2-fg-muted", children: [
8528
8520
  p.name,
8529
8521
  ":"
8530
8522
  ] }),
8531
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("span", { className: "font-semibold text-v2-fg-default", children: formatValue(typeof p.value === "number" ? p.value : 0) })
8523
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("span", { className: "font-semibold text-v2-fg-default", children: formatValue(typeof p.value === "number" ? p.value : 0) })
8532
8524
  ] }, p.name)) })
8533
8525
  ] });
8534
8526
  }
@@ -8544,15 +8536,15 @@ function LineChart({
8544
8536
  }) {
8545
8537
  const rows = toRows(labels, series);
8546
8538
  const Chart = variant === "area" ? import_recharts2.AreaChart : import_recharts2.LineChart;
8547
- return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
8539
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
8548
8540
  "div",
8549
8541
  {
8550
8542
  role: "img",
8551
8543
  "aria-label": ariaLabel,
8552
8544
  className: cn("w-full", className),
8553
8545
  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)(
8546
+ 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: [
8547
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("defs", { children: series.map((s, i) => /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
8556
8548
  "linearGradient",
8557
8549
  {
8558
8550
  id: `v2-line-grad-${i}`,
@@ -8561,13 +8553,13 @@ function LineChart({
8561
8553
  x2: "0",
8562
8554
  y2: "1",
8563
8555
  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 })
8556
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("stop", { offset: "0%", stopColor: s.color, stopOpacity: 0.35 }),
8557
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("stop", { offset: "95%", stopColor: s.color, stopOpacity: 0 })
8566
8558
  ]
8567
8559
  },
8568
8560
  `grad-${s.name}-${i}`
8569
8561
  )) }),
8570
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
8562
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
8571
8563
  import_recharts2.CartesianGrid,
8572
8564
  {
8573
8565
  strokeDasharray: "3 4",
@@ -8575,7 +8567,7 @@ function LineChart({
8575
8567
  vertical: false
8576
8568
  }
8577
8569
  ),
8578
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
8570
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
8579
8571
  import_recharts2.XAxis,
8580
8572
  {
8581
8573
  dataKey: "x",
@@ -8584,7 +8576,7 @@ function LineChart({
8584
8576
  axisLine: { stroke: "var(--v2-border-default)" }
8585
8577
  }
8586
8578
  ),
8587
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
8579
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
8588
8580
  import_recharts2.YAxis,
8589
8581
  {
8590
8582
  tick: { fill: "var(--v2-fg-subtle)", fontSize: 11 },
@@ -8594,14 +8586,14 @@ function LineChart({
8594
8586
  width: 70
8595
8587
  }
8596
8588
  ),
8597
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
8589
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
8598
8590
  import_recharts2.Tooltip,
8599
8591
  {
8600
8592
  cursor: {
8601
8593
  stroke: "var(--v2-border-default)",
8602
8594
  strokeDasharray: "3 4"
8603
8595
  },
8604
- content: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
8596
+ content: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
8605
8597
  ChartTooltip2,
8606
8598
  {
8607
8599
  formatValue,
@@ -8610,7 +8602,7 @@ function LineChart({
8610
8602
  )
8611
8603
  }
8612
8604
  ),
8613
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
8605
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
8614
8606
  import_recharts2.Legend,
8615
8607
  {
8616
8608
  verticalAlign: "top",
@@ -8620,7 +8612,7 @@ function LineChart({
8620
8612
  }
8621
8613
  ),
8622
8614
  series.map(
8623
- (s, i) => variant === "area" ? /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
8615
+ (s, i) => variant === "area" ? /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
8624
8616
  import_recharts2.Area,
8625
8617
  {
8626
8618
  type: "monotone",
@@ -8635,7 +8627,7 @@ function LineChart({
8635
8627
  }
8636
8628
  },
8637
8629
  s.name
8638
- ) : /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
8630
+ ) : /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
8639
8631
  import_recharts2.Line,
8640
8632
  {
8641
8633
  type: "monotone",
@@ -8659,7 +8651,7 @@ function LineChart({
8659
8651
 
8660
8652
  // src/patterns/PanelCard/PanelCard.tsx
8661
8653
  var import_react105 = require("react");
8662
- var import_jsx_runtime84 = require("react/jsx-runtime");
8654
+ var import_jsx_runtime85 = require("react/jsx-runtime");
8663
8655
  var PanelCard = (0, import_react105.forwardRef)(
8664
8656
  ({
8665
8657
  icon,
@@ -8678,7 +8670,7 @@ var PanelCard = (0, import_react105.forwardRef)(
8678
8670
  const hasHeader = !!(icon || title || subtitle || actions);
8679
8671
  const padding = density === "compact" ? "p-4" : "p-5";
8680
8672
  const headerPadding = density === "compact" ? "px-4 py-3" : "px-5 py-4";
8681
- return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
8673
+ return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
8682
8674
  "section",
8683
8675
  {
8684
8676
  ref,
@@ -8688,7 +8680,7 @@ var PanelCard = (0, import_react105.forwardRef)(
8688
8680
  ),
8689
8681
  ...props,
8690
8682
  children: [
8691
- hasHeader && /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
8683
+ hasHeader && /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
8692
8684
  "header",
8693
8685
  {
8694
8686
  className: cn(
@@ -8698,19 +8690,19 @@ var PanelCard = (0, import_react105.forwardRef)(
8698
8690
  headerClassName
8699
8691
  ),
8700
8692
  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 })
8693
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "flex min-w-0 items-start gap-3", children: [
8694
+ 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 }),
8695
+ (title || subtitle) && /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "flex min-w-0 flex-col gap-0.5", children: [
8696
+ title && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("h2", { className: "m-0 text-v2-base font-semibold text-v2-fg-default", children: title }),
8697
+ subtitle && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("p", { className: "m-0 text-v2-sm text-v2-fg-muted", children: subtitle })
8706
8698
  ] })
8707
8699
  ] }),
8708
- actions && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: "flex shrink-0 items-center gap-2", children: actions })
8700
+ actions && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: "flex shrink-0 items-center gap-2", children: actions })
8709
8701
  ]
8710
8702
  }
8711
8703
  ),
8712
- children !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: cn(padding, bodyClassName), children }),
8713
- footer && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
8704
+ children !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: cn(padding, bodyClassName), children }),
8705
+ footer && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
8714
8706
  "footer",
8715
8707
  {
8716
8708
  className: cn(
@@ -8729,7 +8721,7 @@ PanelCard.displayName = "PanelCard";
8729
8721
 
8730
8722
  // src/patterns/SectionCard/SectionCard.tsx
8731
8723
  var import_react106 = require("@phosphor-icons/react");
8732
- var import_jsx_runtime85 = require("react/jsx-runtime");
8724
+ var import_jsx_runtime86 = require("react/jsx-runtime");
8733
8725
  function SectionCard({
8734
8726
  title,
8735
8727
  icon,
@@ -8739,7 +8731,7 @@ function SectionCard({
8739
8731
  highlight,
8740
8732
  className
8741
8733
  }) {
8742
- return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
8734
+ return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
8743
8735
  "section",
8744
8736
  {
8745
8737
  id,
@@ -8749,9 +8741,9 @@ function SectionCard({
8749
8741
  className
8750
8742
  ),
8751
8743
  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)(
8744
+ /* @__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: [
8745
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "flex items-center gap-2", children: [
8746
+ icon && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
8755
8747
  "span",
8756
8748
  {
8757
8749
  "aria-hidden": "true",
@@ -8759,9 +8751,9 @@ function SectionCard({
8759
8751
  children: icon
8760
8752
  }
8761
8753
  ),
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" }),
8754
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Heading, { level: 3, size: "sm", children: title }),
8755
+ 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: [
8756
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_react106.WarningCircle, { size: 11, weight: "fill", "aria-hidden": "true" }),
8765
8757
  "Pendente"
8766
8758
  ] })
8767
8759
  ] }),
@@ -8775,7 +8767,7 @@ function SectionCard({
8775
8767
 
8776
8768
  // src/patterns/StackedBarChart/StackedBarChart.tsx
8777
8769
  var import_recharts3 = require("recharts");
8778
- var import_jsx_runtime86 = require("react/jsx-runtime");
8770
+ var import_jsx_runtime87 = require("react/jsx-runtime");
8779
8771
  function toRows2(labels, stacks) {
8780
8772
  return labels.map((label, i) => {
8781
8773
  const row = { x: label };
@@ -8800,11 +8792,11 @@ function ChartTooltip3({
8800
8792
  (sum, p) => sum + (typeof p.value === "number" ? p.value : 0),
8801
8793
  0
8802
8794
  );
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)(
8795
+ 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: [
8796
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("p", { className: "font-semibold text-v2-fg-default", children: formatLabel(label ?? "") }),
8797
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "mt-1 flex flex-col gap-0.5", children: [
8798
+ payload.map((p) => /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "flex items-center gap-2", children: [
8799
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
8808
8800
  "span",
8809
8801
  {
8810
8802
  className: "size-2 rounded-sm",
@@ -8812,15 +8804,15 @@ function ChartTooltip3({
8812
8804
  "aria-hidden": "true"
8813
8805
  }
8814
8806
  ),
8815
- /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("span", { className: "text-v2-fg-muted", children: [
8807
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("span", { className: "text-v2-fg-muted", children: [
8816
8808
  p.name,
8817
8809
  ":"
8818
8810
  ] }),
8819
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("span", { className: "font-semibold text-v2-fg-default", children: formatValue(typeof p.value === "number" ? p.value : 0) })
8811
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("span", { className: "font-semibold text-v2-fg-default", children: formatValue(typeof p.value === "number" ? p.value : 0) })
8820
8812
  ] }, 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) })
8813
+ /* @__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: [
8814
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("span", { className: "text-v2-fg-muted", children: "Total:" }),
8815
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("span", { className: "font-semibold text-v2-fg-default", children: formatValue(total) })
8824
8816
  ] })
8825
8817
  ] })
8826
8818
  ] });
@@ -8835,20 +8827,20 @@ function StackedBarChart({
8835
8827
  formatLabel = (l) => l
8836
8828
  }) {
8837
8829
  const rows = toRows2(labels, stacks);
8838
- return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
8830
+ return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
8839
8831
  "div",
8840
8832
  {
8841
8833
  role: "img",
8842
8834
  "aria-label": ariaLabel,
8843
8835
  className: cn("w-full", className),
8844
8836
  style: { height },
8845
- children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_recharts3.ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
8837
+ children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_recharts3.ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(
8846
8838
  import_recharts3.BarChart,
8847
8839
  {
8848
8840
  data: rows,
8849
8841
  margin: { top: 8, right: 12, left: 0, bottom: 0 },
8850
8842
  children: [
8851
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
8843
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
8852
8844
  import_recharts3.CartesianGrid,
8853
8845
  {
8854
8846
  strokeDasharray: "3 4",
@@ -8856,7 +8848,7 @@ function StackedBarChart({
8856
8848
  vertical: false
8857
8849
  }
8858
8850
  ),
8859
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
8851
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
8860
8852
  import_recharts3.XAxis,
8861
8853
  {
8862
8854
  dataKey: "x",
@@ -8865,7 +8857,7 @@ function StackedBarChart({
8865
8857
  axisLine: { stroke: "var(--v2-border-default)" }
8866
8858
  }
8867
8859
  ),
8868
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
8860
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
8869
8861
  import_recharts3.YAxis,
8870
8862
  {
8871
8863
  tick: { fill: "var(--v2-fg-subtle)", fontSize: 11 },
@@ -8875,11 +8867,11 @@ function StackedBarChart({
8875
8867
  width: 70
8876
8868
  }
8877
8869
  ),
8878
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
8870
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
8879
8871
  import_recharts3.Tooltip,
8880
8872
  {
8881
8873
  cursor: { fill: "var(--v2-bg-subtle)" },
8882
- content: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
8874
+ content: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
8883
8875
  ChartTooltip3,
8884
8876
  {
8885
8877
  formatValue,
@@ -8888,7 +8880,7 @@ function StackedBarChart({
8888
8880
  )
8889
8881
  }
8890
8882
  ),
8891
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
8883
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
8892
8884
  import_recharts3.Legend,
8893
8885
  {
8894
8886
  verticalAlign: "top",
@@ -8897,7 +8889,7 @@ function StackedBarChart({
8897
8889
  wrapperStyle: { fontSize: 11, paddingBottom: 8 }
8898
8890
  }
8899
8891
  ),
8900
- stacks.map((s) => /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
8892
+ stacks.map((s) => /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
8901
8893
  import_recharts3.Bar,
8902
8894
  {
8903
8895
  dataKey: s.name,
@@ -8916,11 +8908,11 @@ function StackedBarChart({
8916
8908
 
8917
8909
  // src/patterns/WorkflowDesigner/WorkflowDesigner.tsx
8918
8910
  var import_react107 = require("@phosphor-icons/react");
8919
- var import_jsx_runtime87 = require("react/jsx-runtime");
8911
+ var import_jsx_runtime88 = require("react/jsx-runtime");
8920
8912
  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" })
8913
+ automatic: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_react107.Lightning, { size: 14, "aria-hidden": "true" }),
8914
+ manual: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_react107.Hand, { size: 14, "aria-hidden": "true" }),
8915
+ system: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_react107.Gear, { size: 14, "aria-hidden": "true" })
8924
8916
  };
8925
8917
  function NodeCard({
8926
8918
  node,
@@ -8930,7 +8922,7 @@ function NodeCard({
8930
8922
  var _a, _b;
8931
8923
  const rulesCount = ((_a = node.rules) == null ? void 0 : _a.length) ?? 0;
8932
8924
  const actionsCount = ((_b = node.actions) == null ? void 0 : _b.length) ?? 0;
8933
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(
8925
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(
8934
8926
  "button",
8935
8927
  {
8936
8928
  type: "button",
@@ -8940,17 +8932,17 @@ function NodeCard({
8940
8932
  selected && "ring-2 ring-v2-action-primary border-v2-action-primary"
8941
8933
  ),
8942
8934
  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 })
8935
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: "mb-1 flex items-center gap-1.5", children: [
8936
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("span", { className: "text-v2-fg-muted", children: kindIconMap[node.kind] }),
8937
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("span", { className: "truncate text-v2-sm font-semibold text-v2-fg-default", children: node.label })
8946
8938
  ] }),
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: [
8939
+ (rulesCount > 0 || actionsCount > 0) && /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: "mt-1.5 flex flex-wrap items-center gap-1", children: [
8940
+ rulesCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(Badge, { size: "sm", variant: "default", children: [
8949
8941
  rulesCount,
8950
8942
  " regra",
8951
8943
  rulesCount !== 1 ? "s" : ""
8952
8944
  ] }),
8953
- actionsCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(Badge, { size: "sm", variant: "info", children: [
8945
+ actionsCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(Badge, { size: "sm", variant: "info", children: [
8954
8946
  actionsCount,
8955
8947
  " a\xE7\xE3o",
8956
8948
  actionsCount !== 1 ? "\xF5es" : ""
@@ -8965,12 +8957,12 @@ function SidePanel({
8965
8957
  selectedNodeId
8966
8958
  }) {
8967
8959
  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)(
8960
+ 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: [
8961
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Heading, { level: 3, size: "xs", className: "mb-3", children: "Regras e a\xE7\xF5es" }),
8962
+ !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: [
8963
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Text, { size: "base", weight: "semibold", children: selected.label }),
8964
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("section", { children: [
8965
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
8974
8966
  Text,
8975
8967
  {
8976
8968
  size: "xs",
@@ -8980,13 +8972,13 @@ function SidePanel({
8980
8972
  children: "Regras"
8981
8973
  }
8982
8974
  ),
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 })
8975
+ !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: [
8976
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Text, { size: "xs", color: "muted", children: rule.type }),
8977
+ /* @__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
8978
  ] }, idx)) })
8987
8979
  ] }),
8988
- /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("section", { children: [
8989
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
8980
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("section", { children: [
8981
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
8990
8982
  Text,
8991
8983
  {
8992
8984
  size: "xs",
@@ -8996,9 +8988,9 @@ function SidePanel({
8996
8988
  children: "A\xE7\xF5es"
8997
8989
  }
8998
8990
  ),
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 })
8991
+ !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: [
8992
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Text, { size: "xs", color: "muted", children: action.type }),
8993
+ /* @__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
8994
  ] }, idx)) })
9003
8995
  ] })
9004
8996
  ] })
@@ -9019,14 +9011,14 @@ function WorkflowDesigner({
9019
9011
  onNodeSelect == null ? void 0 : onNodeSelect(id === selectedNodeId ? null : id);
9020
9012
  };
9021
9013
  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)(
9014
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: cn("flex gap-4", className), ...props, children: [
9015
+ /* @__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: [
9016
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
9025
9017
  "div",
9026
9018
  {
9027
9019
  className: "mb-3 grid gap-3 border-b border-v2-border-default pb-2",
9028
9020
  style: { gridTemplateColumns: `repeat(${colCount}, minmax(0, 1fr))` },
9029
- children: phases.map((phase) => /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
9021
+ children: phases.map((phase) => /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
9030
9022
  "div",
9031
9023
  {
9032
9024
  className: "text-v2-xs font-bold uppercase tracking-wide text-v2-fg-muted",
@@ -9036,14 +9028,14 @@ function WorkflowDesigner({
9036
9028
  ))
9037
9029
  }
9038
9030
  ),
9039
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
9031
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
9040
9032
  "div",
9041
9033
  {
9042
9034
  className: "grid gap-3",
9043
9035
  style: { gridTemplateColumns: `repeat(${colCount}, minmax(0, 1fr))` },
9044
9036
  children: phases.map((phase) => {
9045
9037
  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)(
9038
+ 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
9039
  NodeCard,
9048
9040
  {
9049
9041
  node,
@@ -9055,21 +9047,21 @@ function WorkflowDesigner({
9055
9047
  })
9056
9048
  }
9057
9049
  ),
9058
- edges.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
9050
+ edges.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
9059
9051
  "div",
9060
9052
  {
9061
9053
  className: "mt-4 border-t border-v2-border-default pt-3",
9062
9054
  "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)(
9055
+ 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
9056
  "div",
9065
9057
  {
9066
9058
  className: "flex items-center gap-1 rounded-v2-sm border border-v2-border-default bg-v2-panel px-2 py-0.5",
9067
9059
  title: `${edge.from} \u2192 ${edge.to}`,
9068
9060
  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 })
9061
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("span", { className: "font-mono text-v2-xs text-v2-fg-subtle", children: edge.from }),
9062
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("span", { className: "text-v2-xs text-v2-fg-subtle", children: "\u2192" }),
9063
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("span", { className: "font-mono text-v2-xs text-v2-fg-subtle", children: edge.to }),
9064
+ edge.trigger && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Badge, { size: "sm", variant: "default", className: "ml-1", children: edge.trigger })
9073
9065
  ]
9074
9066
  },
9075
9067
  idx
@@ -9077,8 +9069,8 @@ function WorkflowDesigner({
9077
9069
  }
9078
9070
  )
9079
9071
  ] }),
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 })
9072
+ showPanel && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(SidePanel, { nodes, selectedNodeId }),
9073
+ showSidePanel !== false && !selectedNodeId && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(SidePanel, { nodes, selectedNodeId: void 0 })
9082
9074
  ] });
9083
9075
  }
9084
9076
  // Annotate the CommonJS export names for ESM import in node: