@humu-tech/ui 0.1.13 → 0.1.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -220,6 +220,34 @@ function getShortcutKeys(key) {
220
220
  return isMacOS() ? ["\u2318", key] : ["Ctrl", key];
221
221
  }
222
222
 
223
+ // src/lib/fileType.ts
224
+ var IMAGE_EXTENSIONS = [
225
+ "png",
226
+ "jpg",
227
+ "jpeg",
228
+ "gif",
229
+ "webp",
230
+ "bmp",
231
+ "svg",
232
+ "avif"
233
+ ];
234
+ function getExtension(fileName) {
235
+ var _a;
236
+ return ((_a = fileName == null ? void 0 : fileName.split(".").pop()) == null ? void 0 : _a.toLowerCase()) ?? "";
237
+ }
238
+ function isImageFile(mimeType, fileName) {
239
+ if (mimeType) {
240
+ return mimeType.toLowerCase().startsWith("image/");
241
+ }
242
+ return IMAGE_EXTENSIONS.includes(getExtension(fileName));
243
+ }
244
+ function isPdfFile(mimeType, fileName) {
245
+ if (mimeType) {
246
+ return mimeType.toLowerCase() === "application/pdf";
247
+ }
248
+ return getExtension(fileName) === "pdf";
249
+ }
250
+
223
251
  // src/primitives/Avatar/Avatar.tsx
224
252
  import { forwardRef } from "react";
225
253
  import { jsx as jsx3 } from "react/jsx-runtime";
@@ -1754,10 +1782,11 @@ var DateInput = forwardRef14(
1754
1782
  const errorId = error ? `${triggerId}-error` : void 0;
1755
1783
  const describedBy = [helperId, errorId].filter(Boolean).join(" ") || void 0;
1756
1784
  const formatValue = (date) => format(date, formatPattern, { locale });
1757
- const [text, setText] = useState6(value ? formatValue(value) : "");
1785
+ const displayValueText = value ? formatValue(value) : "";
1786
+ const [text, setText] = useState6(displayValueText);
1758
1787
  useEffect4(() => {
1759
- setText(value ? formatValue(value) : "");
1760
- }, [value == null ? void 0 : value.getTime(), formatPattern]);
1788
+ setText(displayValueText);
1789
+ }, [displayValueText]);
1761
1790
  const commitValue = (next) => {
1762
1791
  if (!isControlled) setUncontrolled(next);
1763
1792
  onValueChange == null ? void 0 : onValueChange(next);
@@ -1835,14 +1864,20 @@ var DateInput = forwardRef14(
1835
1864
  className
1836
1865
  ),
1837
1866
  children: [
1838
- leftIcon ?? /* @__PURE__ */ jsx20(
1839
- CalendarBlank,
1867
+ /* @__PURE__ */ jsx20(Popover.Trigger, { asChild: true, children: /* @__PURE__ */ jsx20(
1868
+ "button",
1840
1869
  {
1841
- size: 18,
1842
- "aria-hidden": "true",
1843
- className: "shrink-0 text-v2-fg-muted"
1870
+ type: "button",
1871
+ disabled,
1872
+ "aria-label": "Abrir calend\xE1rio",
1873
+ className: cn(
1874
+ "inline-flex shrink-0 items-center justify-center rounded-v2-sm p-0.5 text-v2-fg-muted transition-colors",
1875
+ "hover:text-v2-action-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-v2-focus-ring/30",
1876
+ "disabled:cursor-not-allowed"
1877
+ ),
1878
+ children: leftIcon ?? /* @__PURE__ */ jsx20(CalendarBlank, { size: 18, "aria-hidden": "true" })
1844
1879
  }
1845
- ),
1880
+ ) }),
1846
1881
  /* @__PURE__ */ jsx20(
1847
1882
  "input",
1848
1883
  {
@@ -1867,21 +1902,7 @@ var DateInput = forwardRef14(
1867
1902
  ),
1868
1903
  ...props
1869
1904
  }
1870
- ),
1871
- /* @__PURE__ */ jsx20(Popover.Trigger, { asChild: true, children: /* @__PURE__ */ jsx20(
1872
- "button",
1873
- {
1874
- type: "button",
1875
- disabled,
1876
- "aria-label": "Abrir calend\xE1rio",
1877
- className: cn(
1878
- "inline-flex shrink-0 items-center justify-center rounded-v2-sm p-0.5 text-v2-fg-muted transition-colors",
1879
- "hover:text-v2-action-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-v2-focus-ring/30",
1880
- "disabled:cursor-not-allowed"
1881
- ),
1882
- children: /* @__PURE__ */ jsx20(CaretDown2, { size: 16, "aria-hidden": "true" })
1883
- }
1884
- ) })
1905
+ )
1885
1906
  ]
1886
1907
  }
1887
1908
  ),
@@ -2698,10 +2719,87 @@ var CopyButton = forwardRef19(
2698
2719
  );
2699
2720
  CopyButton.displayName = "CopyButton";
2700
2721
 
2722
+ // src/primitives/FileThumbnail/FileThumbnail.tsx
2723
+ import { useEffect as useEffect6, useState as useState9 } from "react";
2724
+ import { FilePdf, FileText, Image as ImageIcon } from "@phosphor-icons/react";
2725
+ import { jsx as jsx27 } from "react/jsx-runtime";
2726
+ function FallbackIcon({
2727
+ mimeType,
2728
+ fileName,
2729
+ iconSize: iconSize3
2730
+ }) {
2731
+ if (isImageFile(mimeType, fileName)) {
2732
+ return /* @__PURE__ */ jsx27(ImageIcon, { size: iconSize3, weight: "bold", "aria-hidden": "true" });
2733
+ }
2734
+ if (isPdfFile(mimeType, fileName)) {
2735
+ return /* @__PURE__ */ jsx27(FilePdf, { size: iconSize3, weight: "bold", "aria-hidden": "true" });
2736
+ }
2737
+ return /* @__PURE__ */ jsx27(FileText, { size: iconSize3, weight: "bold", "aria-hidden": "true" });
2738
+ }
2739
+ function FileThumbnail({
2740
+ src,
2741
+ loadPreview,
2742
+ mimeType,
2743
+ fileName,
2744
+ size = 40,
2745
+ alt,
2746
+ className
2747
+ }) {
2748
+ const isImage = isImageFile(mimeType, fileName);
2749
+ const [objectUrl, setObjectUrl] = useState9();
2750
+ const [errored, setErrored] = useState9(false);
2751
+ useEffect6(() => {
2752
+ setErrored(false);
2753
+ setObjectUrl(void 0);
2754
+ if (src || !isImage || !loadPreview) return;
2755
+ let active = true;
2756
+ let createdUrl;
2757
+ loadPreview().then((blob) => {
2758
+ if (!active) return;
2759
+ createdUrl = URL.createObjectURL(blob);
2760
+ setObjectUrl(createdUrl);
2761
+ }).catch(() => {
2762
+ if (active) setErrored(true);
2763
+ });
2764
+ return () => {
2765
+ active = false;
2766
+ if (createdUrl) URL.revokeObjectURL(createdUrl);
2767
+ };
2768
+ }, [src, isImage, loadPreview]);
2769
+ const resolvedSrc = src ?? objectUrl;
2770
+ const iconSize3 = Math.round(size * 0.45);
2771
+ return /* @__PURE__ */ jsx27(
2772
+ "span",
2773
+ {
2774
+ className: cn(
2775
+ "inline-flex shrink-0 items-center justify-center overflow-hidden rounded-v2-md border border-v2-border-subtle bg-v2-bg-subtle text-v2-fg-muted",
2776
+ className
2777
+ ),
2778
+ style: { width: size, height: size },
2779
+ children: isImage && resolvedSrc && !errored ? /* @__PURE__ */ jsx27(
2780
+ "img",
2781
+ {
2782
+ src: resolvedSrc,
2783
+ alt: alt ?? fileName ?? "Pr\xE9via do arquivo",
2784
+ className: "size-full object-cover",
2785
+ onError: () => setErrored(true)
2786
+ }
2787
+ ) : /* @__PURE__ */ jsx27(
2788
+ FallbackIcon,
2789
+ {
2790
+ mimeType,
2791
+ fileName,
2792
+ iconSize: iconSize3
2793
+ }
2794
+ )
2795
+ }
2796
+ );
2797
+ }
2798
+
2701
2799
  // src/primitives/FileUpload/FileUpload.tsx
2702
- import { useId as useId8, useRef as useRef4, useState as useState9, forwardRef as forwardRef20 } from "react";
2800
+ import { useId as useId8, useRef as useRef4, useState as useState10, forwardRef as forwardRef20 } from "react";
2703
2801
  import { CloudArrowUp, X as X4, File as FileIcon } from "@phosphor-icons/react";
2704
- import { Fragment as Fragment3, jsx as jsx27, jsxs as jsxs16 } from "react/jsx-runtime";
2802
+ import { Fragment as Fragment3, jsx as jsx28, jsxs as jsxs16 } from "react/jsx-runtime";
2705
2803
  var FileUpload = forwardRef20(
2706
2804
  ({
2707
2805
  onFilesSelected,
@@ -2722,8 +2820,8 @@ var FileUpload = forwardRef20(
2722
2820
  const id = useId8();
2723
2821
  const inputId = `${id}-input`;
2724
2822
  const inputRef = useRef4(null);
2725
- const [isDragging, setIsDragging] = useState9(false);
2726
- const [internalError, setInternalError] = useState9(null);
2823
+ const [isDragging, setIsDragging] = useState10(false);
2824
+ const [internalError, setInternalError] = useState10(null);
2727
2825
  const displayError = error ?? internalError;
2728
2826
  const validateFiles = (selectedFiles) => {
2729
2827
  if (accept) {
@@ -2788,7 +2886,7 @@ var FileUpload = forwardRef20(
2788
2886
  className: cn("flex flex-col gap-2", className),
2789
2887
  ...props,
2790
2888
  children: [
2791
- label && /* @__PURE__ */ jsx27(Label, { htmlFor: inputId, children: label }),
2889
+ label && /* @__PURE__ */ jsx28(Label, { htmlFor: inputId, children: label }),
2792
2890
  /* @__PURE__ */ jsxs16(
2793
2891
  "div",
2794
2892
  {
@@ -2825,7 +2923,7 @@ var FileUpload = forwardRef20(
2825
2923
  displayError && "border-v2-danger-500"
2826
2924
  ),
2827
2925
  children: [
2828
- /* @__PURE__ */ jsx27(
2926
+ /* @__PURE__ */ jsx28(
2829
2927
  CloudArrowUp,
2830
2928
  {
2831
2929
  size: 32,
@@ -2834,7 +2932,7 @@ var FileUpload = forwardRef20(
2834
2932
  className: "text-v2-fg-muted"
2835
2933
  }
2836
2934
  ),
2837
- /* @__PURE__ */ jsx27("span", { className: "text-v2-sm text-v2-fg-default", children: dropzonePlaceholder }),
2935
+ /* @__PURE__ */ jsx28("span", { className: "text-v2-sm text-v2-fg-default", children: dropzonePlaceholder }),
2838
2936
  (accept || maxSize) && /* @__PURE__ */ jsxs16("span", { className: "text-v2-xs text-v2-fg-muted", children: [
2839
2937
  accept && /* @__PURE__ */ jsxs16(Fragment3, { children: [
2840
2938
  "Aceita: ",
@@ -2847,7 +2945,7 @@ var FileUpload = forwardRef20(
2847
2945
  " MB"
2848
2946
  ] })
2849
2947
  ] }),
2850
- /* @__PURE__ */ jsx27(
2948
+ /* @__PURE__ */ jsx28(
2851
2949
  "input",
2852
2950
  {
2853
2951
  ref: inputRef,
@@ -2863,12 +2961,12 @@ var FileUpload = forwardRef20(
2863
2961
  ]
2864
2962
  }
2865
2963
  ),
2866
- files && files.length > 0 && /* @__PURE__ */ jsx27("ul", { className: "flex flex-col gap-1.5", children: files.map((file, idx) => /* @__PURE__ */ jsxs16(
2964
+ files && files.length > 0 && /* @__PURE__ */ jsx28("ul", { className: "flex flex-col gap-1.5", children: files.map((file, idx) => /* @__PURE__ */ jsxs16(
2867
2965
  "li",
2868
2966
  {
2869
2967
  className: "flex items-center gap-2 rounded-v2-md border border-v2-border-default bg-v2-panel px-3 py-2",
2870
2968
  children: [
2871
- /* @__PURE__ */ jsx27(
2969
+ /* @__PURE__ */ jsx28(
2872
2970
  FileIcon,
2873
2971
  {
2874
2972
  size: 16,
@@ -2876,27 +2974,27 @@ var FileUpload = forwardRef20(
2876
2974
  className: "text-v2-fg-muted"
2877
2975
  }
2878
2976
  ),
2879
- /* @__PURE__ */ jsx27("span", { className: "flex-1 truncate text-v2-sm text-v2-fg-default", children: file.name }),
2977
+ /* @__PURE__ */ jsx28("span", { className: "flex-1 truncate text-v2-sm text-v2-fg-default", children: file.name }),
2880
2978
  /* @__PURE__ */ jsxs16("span", { className: "text-v2-xs tabular-nums text-v2-fg-muted", children: [
2881
2979
  (file.size / 1024).toFixed(1),
2882
2980
  " KB"
2883
2981
  ] }),
2884
- onFileRemove && /* @__PURE__ */ jsx27(
2982
+ onFileRemove && /* @__PURE__ */ jsx28(
2885
2983
  "button",
2886
2984
  {
2887
2985
  type: "button",
2888
2986
  "aria-label": `Remover ${file.name}`,
2889
2987
  onClick: () => onFileRemove(file, idx),
2890
2988
  className: "inline-flex items-center justify-center rounded-v2-sm p-1 text-v2-fg-muted hover:bg-v2-bg-subtle hover:text-v2-danger-500",
2891
- children: /* @__PURE__ */ jsx27(X4, { size: 14, weight: "bold", "aria-hidden": "true" })
2989
+ children: /* @__PURE__ */ jsx28(X4, { size: 14, weight: "bold", "aria-hidden": "true" })
2892
2990
  }
2893
2991
  )
2894
2992
  ]
2895
2993
  },
2896
2994
  `${file.name}-${idx}`
2897
2995
  )) }),
2898
- helper && !displayError && /* @__PURE__ */ jsx27("p", { className: "text-v2-xs text-v2-fg-muted", children: helper }),
2899
- displayError && /* @__PURE__ */ jsx27("p", { className: "text-v2-xs text-v2-danger-500", role: "alert", children: displayError })
2996
+ helper && !displayError && /* @__PURE__ */ jsx28("p", { className: "text-v2-xs text-v2-fg-muted", children: helper }),
2997
+ displayError && /* @__PURE__ */ jsx28("p", { className: "text-v2-xs text-v2-danger-500", role: "alert", children: displayError })
2900
2998
  ]
2901
2999
  }
2902
3000
  );
@@ -2915,7 +3013,7 @@ import {
2915
3013
  Warning as Warning2,
2916
3014
  WarningCircle
2917
3015
  } from "@phosphor-icons/react";
2918
- import { jsx as jsx28, jsxs as jsxs17 } from "react/jsx-runtime";
3016
+ import { jsx as jsx29, jsxs as jsxs17 } from "react/jsx-runtime";
2919
3017
  var formAlertStyles = cva11(
2920
3018
  "flex items-start gap-3 rounded-v2-md border p-4 text-v2-sm",
2921
3019
  {
@@ -2947,10 +3045,10 @@ var FormAlert = forwardRef21(
2947
3045
  className: cn(formAlertStyles({ variant }), className),
2948
3046
  ...props,
2949
3047
  children: [
2950
- !hideIcon && /* @__PURE__ */ jsx28("span", { className: "mt-0.5 shrink-0", "aria-hidden": "true", children: icon ?? /* @__PURE__ */ jsx28(IconComponent, { size: 18, weight: "fill" }) }),
3048
+ !hideIcon && /* @__PURE__ */ jsx29("span", { className: "mt-0.5 shrink-0", "aria-hidden": "true", children: icon ?? /* @__PURE__ */ jsx29(IconComponent, { size: 18, weight: "fill" }) }),
2951
3049
  /* @__PURE__ */ jsxs17("div", { className: "flex min-w-0 flex-col gap-1", children: [
2952
- title && /* @__PURE__ */ jsx28("span", { className: "font-semibold text-v2-fg-default", children: title }),
2953
- children && /* @__PURE__ */ jsx28("div", { className: "min-w-0", children })
3050
+ title && /* @__PURE__ */ jsx29("span", { className: "font-semibold text-v2-fg-default", children: title }),
3051
+ children && /* @__PURE__ */ jsx29("div", { className: "min-w-0", children })
2954
3052
  ] })
2955
3053
  ]
2956
3054
  }
@@ -2960,7 +3058,7 @@ var FormAlert = forwardRef21(
2960
3058
  FormAlert.displayName = "FormAlert";
2961
3059
 
2962
3060
  // src/primitives/FullScreenLoading/FullScreenLoading.tsx
2963
- import { jsx as jsx29, jsxs as jsxs18 } from "react/jsx-runtime";
3061
+ import { jsx as jsx30, jsxs as jsxs18 } from "react/jsx-runtime";
2964
3062
  function FullScreenLoading({
2965
3063
  message,
2966
3064
  className
@@ -2975,8 +3073,8 @@ function FullScreenLoading({
2975
3073
  className
2976
3074
  ),
2977
3075
  children: [
2978
- message ? /* @__PURE__ */ jsx29("span", { className: "text-v2-sm text-v2-fg-default", children: message }) : null,
2979
- /* @__PURE__ */ jsx29(Spinner, { size: "md", decorative: true })
3076
+ message ? /* @__PURE__ */ jsx30("span", { className: "text-v2-sm text-v2-fg-default", children: message }) : null,
3077
+ /* @__PURE__ */ jsx30(Spinner, { size: "md", decorative: true })
2980
3078
  ]
2981
3079
  }
2982
3080
  );
@@ -2986,7 +3084,7 @@ FullScreenLoading.displayName = "FullScreenLoading";
2986
3084
  // src/primitives/Heading/Heading.tsx
2987
3085
  import { forwardRef as forwardRef22 } from "react";
2988
3086
  import { cva as cva12 } from "class-variance-authority";
2989
- import { jsx as jsx30 } from "react/jsx-runtime";
3087
+ import { jsx as jsx31 } from "react/jsx-runtime";
2990
3088
  var headingStyles = cva12("tracking-tight text-v2-fg-default", {
2991
3089
  variants: {
2992
3090
  size: {
@@ -3004,7 +3102,7 @@ var headingStyles = cva12("tracking-tight text-v2-fg-default", {
3004
3102
  var Heading = forwardRef22(
3005
3103
  ({ level = 2, size, className, ...props }, ref) => {
3006
3104
  const Tag = `h${level}`;
3007
- return /* @__PURE__ */ jsx30(
3105
+ return /* @__PURE__ */ jsx31(
3008
3106
  Tag,
3009
3107
  {
3010
3108
  ref,
@@ -3019,7 +3117,7 @@ Heading.displayName = "Heading";
3019
3117
  // src/primitives/HelpHint/HelpHint.tsx
3020
3118
  import { forwardRef as forwardRef23 } from "react";
3021
3119
  import { ArrowRight, PlayCircle, Question } from "@phosphor-icons/react";
3022
- import { jsx as jsx31, jsxs as jsxs19 } from "react/jsx-runtime";
3120
+ import { jsx as jsx32, jsxs as jsxs19 } from "react/jsx-runtime";
3023
3121
  var TRIGGER_SIZE = {
3024
3122
  sm: "size-6",
3025
3123
  md: "size-8"
@@ -3063,7 +3161,7 @@ var HelpHint = forwardRef23(
3063
3161
  }, ref) {
3064
3162
  const embed = videoUrl ? toEmbedUrl(videoUrl) : null;
3065
3163
  return /* @__PURE__ */ jsxs19(Popover, { children: [
3066
- /* @__PURE__ */ jsx31(Popover.Trigger, { asChild: true, children: /* @__PURE__ */ jsx31(
3164
+ /* @__PURE__ */ jsx32(Popover.Trigger, { asChild: true, children: /* @__PURE__ */ jsx32(
3067
3165
  "button",
3068
3166
  {
3069
3167
  ref,
@@ -3074,7 +3172,7 @@ var HelpHint = forwardRef23(
3074
3172
  TRIGGER_SIZE[size],
3075
3173
  className
3076
3174
  ),
3077
- children: /* @__PURE__ */ jsx31(
3175
+ children: /* @__PURE__ */ jsx32(
3078
3176
  Question,
3079
3177
  {
3080
3178
  size: TRIGGER_ICON[size],
@@ -3095,8 +3193,8 @@ var HelpHint = forwardRef23(
3095
3193
  embed ? "w-96" : "w-72"
3096
3194
  ),
3097
3195
  children: [
3098
- title && /* @__PURE__ */ jsx31("div", { className: "border-b border-v2-border-subtle bg-v2-bg-subtle px-4 py-2.5", children: /* @__PURE__ */ jsxs19("p", { className: "flex items-center gap-1.5 text-v2-sm font-semibold text-v2-fg-default", children: [
3099
- /* @__PURE__ */ jsx31(
3196
+ title && /* @__PURE__ */ jsx32("div", { className: "border-b border-v2-border-subtle bg-v2-bg-subtle px-4 py-2.5", children: /* @__PURE__ */ jsxs19("p", { className: "flex items-center gap-1.5 text-v2-sm font-semibold text-v2-fg-default", children: [
3197
+ /* @__PURE__ */ jsx32(
3100
3198
  Question,
3101
3199
  {
3102
3200
  size: 14,
@@ -3107,7 +3205,7 @@ var HelpHint = forwardRef23(
3107
3205
  ),
3108
3206
  title
3109
3207
  ] }) }),
3110
- embed && /* @__PURE__ */ jsx31("div", { className: "relative aspect-video w-full bg-v2-canvas", children: /* @__PURE__ */ jsx31(
3208
+ embed && /* @__PURE__ */ jsx32("div", { className: "relative aspect-video w-full bg-v2-canvas", children: /* @__PURE__ */ jsx32(
3111
3209
  "iframe",
3112
3210
  {
3113
3211
  src: embed,
@@ -3117,16 +3215,16 @@ var HelpHint = forwardRef23(
3117
3215
  className: "absolute inset-0 size-full border-0"
3118
3216
  }
3119
3217
  ) }),
3120
- /* @__PURE__ */ jsx31("div", { className: "px-4 py-3", children: /* @__PURE__ */ jsx31("p", { className: "text-v2-sm leading-relaxed text-v2-fg-default", children: description }) }),
3121
- docHref && /* @__PURE__ */ jsx31("div", { className: "border-t border-v2-border-subtle bg-v2-bg-subtle px-4 py-2.5", children: /* @__PURE__ */ jsxs19(
3218
+ /* @__PURE__ */ jsx32("div", { className: "px-4 py-3", children: /* @__PURE__ */ jsx32("p", { className: "text-v2-sm leading-relaxed text-v2-fg-default", children: description }) }),
3219
+ docHref && /* @__PURE__ */ jsx32("div", { className: "border-t border-v2-border-subtle bg-v2-bg-subtle px-4 py-2.5", children: /* @__PURE__ */ jsxs19(
3122
3220
  "a",
3123
3221
  {
3124
3222
  href: docHref,
3125
3223
  className: "group/cta inline-flex items-center gap-1.5 text-v2-xs font-bold text-v2-brand-primary hover:underline focus-visible:underline focus-visible:outline-none",
3126
3224
  children: [
3127
- /* @__PURE__ */ jsx31(PlayCircle, { size: 14, weight: "bold", "aria-hidden": "true" }),
3225
+ /* @__PURE__ */ jsx32(PlayCircle, { size: 14, weight: "bold", "aria-hidden": "true" }),
3128
3226
  docLabel,
3129
- /* @__PURE__ */ jsx31(
3227
+ /* @__PURE__ */ jsx32(
3130
3228
  ArrowRight,
3131
3229
  {
3132
3230
  size: 12,
@@ -3147,7 +3245,7 @@ var HelpHint = forwardRef23(
3147
3245
  HelpHint.displayName = "HelpHint";
3148
3246
 
3149
3247
  // src/primitives/ImageUpload/ImageUpload.tsx
3150
- import { forwardRef as forwardRef25, useId as useId9, useRef as useRef5, useState as useState10 } from "react";
3248
+ import { forwardRef as forwardRef25, useId as useId9, useRef as useRef5, useState as useState11 } from "react";
3151
3249
  import { ImageSquare, UploadSimple, X as X5 } from "@phosphor-icons/react";
3152
3250
 
3153
3251
  // src/lib/base64.ts
@@ -3182,7 +3280,7 @@ async function getBase64(file) {
3182
3280
  // src/primitives/Text/Text.tsx
3183
3281
  import { forwardRef as forwardRef24 } from "react";
3184
3282
  import { cva as cva13 } from "class-variance-authority";
3185
- import { jsx as jsx32 } from "react/jsx-runtime";
3283
+ import { jsx as jsx33 } from "react/jsx-runtime";
3186
3284
  var textStyles = cva13("", {
3187
3285
  variants: {
3188
3286
  size: {
@@ -3208,7 +3306,7 @@ var textStyles = cva13("", {
3208
3306
  });
3209
3307
  var Text = forwardRef24(({ tag = "p", size, color, weight, className, ...props }, ref) => {
3210
3308
  const Tag = tag;
3211
- return /* @__PURE__ */ jsx32(
3309
+ return /* @__PURE__ */ jsx33(
3212
3310
  Tag,
3213
3311
  {
3214
3312
  ref,
@@ -3220,7 +3318,7 @@ var Text = forwardRef24(({ tag = "p", size, color, weight, className, ...props }
3220
3318
  Text.displayName = "Text";
3221
3319
 
3222
3320
  // src/primitives/ImageUpload/ImageUpload.tsx
3223
- import { jsx as jsx33, jsxs as jsxs20 } from "react/jsx-runtime";
3321
+ import { jsx as jsx34, jsxs as jsxs20 } from "react/jsx-runtime";
3224
3322
  var DEFAULT_ACCEPT = "image/png, image/jpeg, image/jpg";
3225
3323
  var ImageUpload = forwardRef25(
3226
3324
  ({
@@ -3245,7 +3343,7 @@ var ImageUpload = forwardRef25(
3245
3343
  const generatedId = useId9();
3246
3344
  const inputId = id ?? generatedId;
3247
3345
  const inputRef = useRef5(null);
3248
- const [internalError, setInternalError] = useState10(null);
3346
+ const [internalError, setInternalError] = useState11(null);
3249
3347
  const displayError = error ?? internalError;
3250
3348
  const handleSelect = async (e) => {
3251
3349
  var _a;
@@ -3268,8 +3366,8 @@ var ImageUpload = forwardRef25(
3268
3366
  disabled && "cursor-not-allowed opacity-60"
3269
3367
  );
3270
3368
  return /* @__PURE__ */ jsxs20("div", { className: cn("flex flex-col gap-2", className), children: [
3271
- label && /* @__PURE__ */ jsx33(Label, { htmlFor: inputId, required, children: label }),
3272
- helper && /* @__PURE__ */ jsx33(Text, { size: "xs", color: "muted", children: helper }),
3369
+ label && /* @__PURE__ */ jsx34(Label, { htmlFor: inputId, required, children: label }),
3370
+ helper && /* @__PURE__ */ jsx34(Text, { size: "xs", color: "muted", children: helper }),
3273
3371
  /* @__PURE__ */ jsxs20("div", { className: "flex items-center gap-3", children: [
3274
3372
  /* @__PURE__ */ jsxs20(
3275
3373
  "button",
@@ -3282,12 +3380,12 @@ var ImageUpload = forwardRef25(
3282
3380
  },
3283
3381
  className: triggerClassName,
3284
3382
  children: [
3285
- /* @__PURE__ */ jsx33(UploadSimple, { size: 14, weight: "bold", "aria-hidden": "true" }),
3383
+ /* @__PURE__ */ jsx34(UploadSimple, { size: 14, weight: "bold", "aria-hidden": "true" }),
3286
3384
  value ? changeLabel : selectLabel
3287
3385
  ]
3288
3386
  }
3289
3387
  ),
3290
- value && !disabled && /* @__PURE__ */ jsx33(
3388
+ value && !disabled && /* @__PURE__ */ jsx34(
3291
3389
  ConfirmDialog,
3292
3390
  {
3293
3391
  title: removeConfirmTitle,
@@ -3297,18 +3395,18 @@ var ImageUpload = forwardRef25(
3297
3395
  onValueChange(null);
3298
3396
  setInternalError(null);
3299
3397
  },
3300
- trigger: /* @__PURE__ */ jsx33(
3398
+ trigger: /* @__PURE__ */ jsx34(
3301
3399
  "button",
3302
3400
  {
3303
3401
  type: "button",
3304
3402
  "aria-label": "Remover arquivo",
3305
3403
  className: "inline-flex size-8 items-center justify-center rounded-v2-md text-v2-fg-muted transition-colors hover:bg-v2-danger-500/10 hover:text-v2-danger-500 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-v2-border-strong",
3306
- children: /* @__PURE__ */ jsx33(X5, { size: 14, weight: "bold", "aria-hidden": "true" })
3404
+ children: /* @__PURE__ */ jsx34(X5, { size: 14, weight: "bold", "aria-hidden": "true" })
3307
3405
  }
3308
3406
  )
3309
3407
  }
3310
3408
  ),
3311
- /* @__PURE__ */ jsx33(
3409
+ /* @__PURE__ */ jsx34(
3312
3410
  "input",
3313
3411
  {
3314
3412
  ref: (node) => {
@@ -3325,21 +3423,21 @@ var ImageUpload = forwardRef25(
3325
3423
  }
3326
3424
  )
3327
3425
  ] }),
3328
- /* @__PURE__ */ jsx33(
3426
+ /* @__PURE__ */ jsx34(
3329
3427
  "div",
3330
3428
  {
3331
3429
  className: cn(
3332
3430
  "flex h-32 w-full items-center justify-center overflow-hidden rounded-v2-md border border-v2-border-subtle",
3333
3431
  previewBgClass
3334
3432
  ),
3335
- children: value ? /* @__PURE__ */ jsx33(
3433
+ children: value ? /* @__PURE__ */ jsx34(
3336
3434
  "img",
3337
3435
  {
3338
3436
  src: value,
3339
3437
  alt: typeof label === "string" ? label : "Pr\xE9-visualiza\xE7\xE3o",
3340
3438
  className: "max-h-28 max-w-full object-contain"
3341
3439
  }
3342
- ) : /* @__PURE__ */ jsx33(
3440
+ ) : /* @__PURE__ */ jsx34(
3343
3441
  ImageSquare,
3344
3442
  {
3345
3443
  size: 32,
@@ -3350,7 +3448,7 @@ var ImageUpload = forwardRef25(
3350
3448
  )
3351
3449
  }
3352
3450
  ),
3353
- displayError && /* @__PURE__ */ jsx33("p", { className: "text-v2-xs text-v2-danger-500", role: "alert", children: displayError })
3451
+ displayError && /* @__PURE__ */ jsx34("p", { className: "text-v2-xs text-v2-danger-500", role: "alert", children: displayError })
3354
3452
  ] });
3355
3453
  }
3356
3454
  );
@@ -3361,7 +3459,7 @@ import {
3361
3459
  useLayoutEffect,
3362
3460
  useRef as useRef6
3363
3461
  } from "react";
3364
- import { jsx as jsx34 } from "react/jsx-runtime";
3462
+ import { jsx as jsx35 } from "react/jsx-runtime";
3365
3463
  function formatBRL(digits) {
3366
3464
  const cents = parseInt(digits || "0", 10);
3367
3465
  return new Intl.NumberFormat("pt-BR", {
@@ -3401,7 +3499,7 @@ function MoneyInput({
3401
3499
  const handleMouseUp = (e) => {
3402
3500
  setCaretToEnd(e.currentTarget);
3403
3501
  };
3404
- return /* @__PURE__ */ jsx34(
3502
+ return /* @__PURE__ */ jsx35(
3405
3503
  Input,
3406
3504
  {
3407
3505
  inputMode: "numeric",
@@ -3416,9 +3514,9 @@ function MoneyInput({
3416
3514
  }
3417
3515
 
3418
3516
  // src/primitives/MultiCombobox/MultiCombobox.tsx
3419
- import { forwardRef as forwardRef26, useEffect as useEffect6, useId as useId10, useRef as useRef7, useState as useState11 } from "react";
3517
+ import { forwardRef as forwardRef26, useEffect as useEffect7, useId as useId10, useRef as useRef7, useState as useState12 } from "react";
3420
3518
  import { CaretDown as CaretDown4, MagnifyingGlass as MagnifyingGlass2, X as X6 } from "@phosphor-icons/react";
3421
- import { Fragment as Fragment4, jsx as jsx35, jsxs as jsxs21 } from "react/jsx-runtime";
3519
+ import { Fragment as Fragment4, jsx as jsx36, jsxs as jsxs21 } from "react/jsx-runtime";
3422
3520
  var DEFAULT_MAX_CHIPS = 3;
3423
3521
  var MultiCombobox = forwardRef26(
3424
3522
  ({
@@ -3445,12 +3543,12 @@ var MultiCombobox = forwardRef26(
3445
3543
  const listboxId = `${generatedId}-listbox`;
3446
3544
  const helperId = `${generatedId}-helper`;
3447
3545
  const errorId = `${generatedId}-error`;
3448
- const [internalValue, setInternalValue] = useState11(
3546
+ const [internalValue, setInternalValue] = useState12(
3449
3547
  defaultValue ?? []
3450
3548
  );
3451
3549
  const currentValue = value ?? internalValue;
3452
- const [open, setOpen] = useState11(false);
3453
- const [query, setQuery] = useState11("");
3550
+ const [open, setOpen] = useState12(false);
3551
+ const [query, setQuery] = useState12("");
3454
3552
  const searchInputRef = useRef7(null);
3455
3553
  const selectedItems = currentValue.map((v) => items.find((i) => i.value === v)).filter((i) => !!i);
3456
3554
  const filteredItems = items.filter(
@@ -3479,7 +3577,7 @@ var MultiCombobox = forwardRef26(
3479
3577
  setOpen(false);
3480
3578
  }
3481
3579
  };
3482
- useEffect6(() => {
3580
+ useEffect7(() => {
3483
3581
  var _a;
3484
3582
  if (open) {
3485
3583
  (_a = searchInputRef.current) == null ? void 0 : _a.focus();
@@ -3508,21 +3606,21 @@ var MultiCombobox = forwardRef26(
3508
3606
  disabled && "cursor-not-allowed opacity-50 hover:border-v2-border-default"
3509
3607
  ),
3510
3608
  children: [
3511
- /* @__PURE__ */ jsx35(
3609
+ /* @__PURE__ */ jsx36(
3512
3610
  "span",
3513
3611
  {
3514
3612
  className: cn(
3515
3613
  "flex flex-1 flex-wrap items-center gap-1 text-left",
3516
3614
  selectedItems.length === 0 && "text-v2-fg-muted"
3517
3615
  ),
3518
- children: selectedItems.length === 0 ? /* @__PURE__ */ jsx35("span", { className: "py-0.5", children: placeholder }) : /* @__PURE__ */ jsxs21(Fragment4, { children: [
3616
+ children: selectedItems.length === 0 ? /* @__PURE__ */ jsx36("span", { className: "py-0.5", children: placeholder }) : /* @__PURE__ */ jsxs21(Fragment4, { children: [
3519
3617
  visibleChips.map((item) => /* @__PURE__ */ jsxs21(
3520
3618
  "span",
3521
3619
  {
3522
3620
  className: "inline-flex items-center gap-1 rounded-v2-pill bg-v2-brand-bg-soft px-2 py-0.5 text-v2-xs font-medium text-v2-brand-text-dark",
3523
3621
  children: [
3524
- /* @__PURE__ */ jsx35("span", { className: "max-w-[140px] truncate", children: item.label }),
3525
- !disabled && /* @__PURE__ */ jsx35(
3622
+ /* @__PURE__ */ jsx36("span", { className: "max-w-[140px] truncate", children: item.label }),
3623
+ !disabled && /* @__PURE__ */ jsx36(
3526
3624
  "span",
3527
3625
  {
3528
3626
  role: "button",
@@ -3540,7 +3638,7 @@ var MultiCombobox = forwardRef26(
3540
3638
  }
3541
3639
  },
3542
3640
  className: "inline-flex items-center justify-center rounded-v2-sm hover:bg-v2-action-primary/15",
3543
- children: /* @__PURE__ */ jsx35(X6, { size: 10, weight: "bold", "aria-hidden": "true" })
3641
+ children: /* @__PURE__ */ jsx36(X6, { size: 10, weight: "bold", "aria-hidden": "true" })
3544
3642
  }
3545
3643
  )
3546
3644
  ]
@@ -3555,7 +3653,7 @@ var MultiCombobox = forwardRef26(
3555
3653
  }
3556
3654
  ),
3557
3655
  /* @__PURE__ */ jsxs21("span", { className: "flex shrink-0 items-center gap-1 pt-0.5", children: [
3558
- selectedItems.length > 0 && !disabled && /* @__PURE__ */ jsx35(
3656
+ selectedItems.length > 0 && !disabled && /* @__PURE__ */ jsx36(
3559
3657
  "span",
3560
3658
  {
3561
3659
  role: "button",
@@ -3573,10 +3671,10 @@ var MultiCombobox = forwardRef26(
3573
3671
  }
3574
3672
  },
3575
3673
  className: "inline-flex items-center justify-center rounded-v2-sm p-0.5 text-v2-fg-muted hover:bg-v2-bg-subtle hover:text-v2-fg-default",
3576
- children: /* @__PURE__ */ jsx35(X6, { size: 14, weight: "bold", "aria-hidden": "true" })
3674
+ children: /* @__PURE__ */ jsx36(X6, { size: 14, weight: "bold", "aria-hidden": "true" })
3577
3675
  }
3578
3676
  ),
3579
- /* @__PURE__ */ jsx35(
3677
+ /* @__PURE__ */ jsx36(
3580
3678
  CaretDown4,
3581
3679
  {
3582
3680
  size: 16,
@@ -3591,7 +3689,7 @@ var MultiCombobox = forwardRef26(
3591
3689
  return /* @__PURE__ */ jsxs21("div", { className: cn("flex flex-col gap-1", className), ...props, children: [
3592
3690
  /* @__PURE__ */ jsxs21(Popover, { open, onOpenChange: setOpen, children: [
3593
3691
  label ? /* @__PURE__ */ jsxs21("div", { className: "relative", children: [
3594
- /* @__PURE__ */ jsx35(Popover.Trigger, { asChild: true, children: triggerButton }),
3692
+ /* @__PURE__ */ jsx36(Popover.Trigger, { asChild: true, children: triggerButton }),
3595
3693
  /* @__PURE__ */ jsxs21(
3596
3694
  "label",
3597
3695
  {
@@ -3602,7 +3700,7 @@ var MultiCombobox = forwardRef26(
3602
3700
  ),
3603
3701
  children: [
3604
3702
  label,
3605
- required && /* @__PURE__ */ jsx35(
3703
+ required && /* @__PURE__ */ jsx36(
3606
3704
  "span",
3607
3705
  {
3608
3706
  "aria-hidden": "true",
@@ -3613,7 +3711,7 @@ var MultiCombobox = forwardRef26(
3613
3711
  ]
3614
3712
  }
3615
3713
  )
3616
- ] }) : /* @__PURE__ */ jsx35(Popover.Trigger, { asChild: true, children: triggerButton }),
3714
+ ] }) : /* @__PURE__ */ jsx36(Popover.Trigger, { asChild: true, children: triggerButton }),
3617
3715
  /* @__PURE__ */ jsxs21(
3618
3716
  Popover.Content,
3619
3717
  {
@@ -3624,7 +3722,7 @@ var MultiCombobox = forwardRef26(
3624
3722
  sideOffset: 4,
3625
3723
  children: [
3626
3724
  /* @__PURE__ */ jsxs21("div", { className: "flex items-center gap-2 border-b border-v2-border-default px-3 py-2", children: [
3627
- /* @__PURE__ */ jsx35(
3725
+ /* @__PURE__ */ jsx36(
3628
3726
  MagnifyingGlass2,
3629
3727
  {
3630
3728
  size: 16,
@@ -3632,7 +3730,7 @@ var MultiCombobox = forwardRef26(
3632
3730
  className: "text-v2-fg-muted"
3633
3731
  }
3634
3732
  ),
3635
- /* @__PURE__ */ jsx35(
3733
+ /* @__PURE__ */ jsx36(
3636
3734
  "input",
3637
3735
  {
3638
3736
  ref: searchInputRef,
@@ -3645,7 +3743,7 @@ var MultiCombobox = forwardRef26(
3645
3743
  className: "flex-1 bg-transparent text-v2-sm text-v2-fg-default placeholder:text-v2-fg-muted focus:outline-none"
3646
3744
  }
3647
3745
  ),
3648
- selectedItems.length > 0 && /* @__PURE__ */ jsx35(
3746
+ selectedItems.length > 0 && /* @__PURE__ */ jsx36(
3649
3747
  "button",
3650
3748
  {
3651
3749
  type: "button",
@@ -3655,14 +3753,14 @@ var MultiCombobox = forwardRef26(
3655
3753
  }
3656
3754
  )
3657
3755
  ] }),
3658
- /* @__PURE__ */ jsx35(
3756
+ /* @__PURE__ */ jsx36(
3659
3757
  "ul",
3660
3758
  {
3661
3759
  id: listboxId,
3662
3760
  role: "listbox",
3663
3761
  "aria-multiselectable": "true",
3664
3762
  className: "max-h-[280px] overflow-y-auto py-1",
3665
- children: loading ? /* @__PURE__ */ jsx35("li", { className: "px-3 py-2 text-v2-sm text-v2-fg-muted", children: "Buscando\u2026" }) : filteredItems.length === 0 ? /* @__PURE__ */ jsx35("li", { className: "px-3 py-2 text-v2-sm text-v2-fg-muted", children: emptyMessage }) : filteredItems.map((item) => {
3763
+ children: loading ? /* @__PURE__ */ jsx36("li", { className: "px-3 py-2 text-v2-sm text-v2-fg-muted", children: "Buscando\u2026" }) : filteredItems.length === 0 ? /* @__PURE__ */ jsx36("li", { className: "px-3 py-2 text-v2-sm text-v2-fg-muted", children: emptyMessage }) : filteredItems.map((item) => {
3666
3764
  const isSelected = currentValue.includes(item.value);
3667
3765
  return /* @__PURE__ */ jsxs21(
3668
3766
  "li",
@@ -3677,7 +3775,7 @@ var MultiCombobox = forwardRef26(
3677
3775
  item.disabled && "cursor-not-allowed opacity-50"
3678
3776
  ),
3679
3777
  children: [
3680
- /* @__PURE__ */ jsx35(
3778
+ /* @__PURE__ */ jsx36(
3681
3779
  "span",
3682
3780
  {
3683
3781
  className: cn(
@@ -3685,14 +3783,14 @@ var MultiCombobox = forwardRef26(
3685
3783
  isSelected ? "border-v2-action-primary bg-v2-action-primary text-v2-action-on-primary" : "border-v2-border-default"
3686
3784
  ),
3687
3785
  "aria-hidden": "true",
3688
- children: isSelected && /* @__PURE__ */ jsx35(
3786
+ children: isSelected && /* @__PURE__ */ jsx36(
3689
3787
  "svg",
3690
3788
  {
3691
3789
  width: "10",
3692
3790
  height: "10",
3693
3791
  viewBox: "0 0 10 10",
3694
3792
  fill: "none",
3695
- children: /* @__PURE__ */ jsx35(
3793
+ children: /* @__PURE__ */ jsx36(
3696
3794
  "path",
3697
3795
  {
3698
3796
  d: "M1 5l3 3 5-6",
@@ -3707,8 +3805,8 @@ var MultiCombobox = forwardRef26(
3707
3805
  }
3708
3806
  ),
3709
3807
  /* @__PURE__ */ jsxs21("div", { className: "flex min-w-0 flex-1 flex-col", children: [
3710
- /* @__PURE__ */ jsx35("span", { className: "truncate", children: item.label }),
3711
- item.description && /* @__PURE__ */ jsx35(
3808
+ /* @__PURE__ */ jsx36("span", { className: "truncate", children: item.label }),
3809
+ item.description && /* @__PURE__ */ jsx36(
3712
3810
  "span",
3713
3811
  {
3714
3812
  className: cn(
@@ -3735,8 +3833,8 @@ var MultiCombobox = forwardRef26(
3735
3833
  }
3736
3834
  )
3737
3835
  ] }),
3738
- helper && !error && /* @__PURE__ */ jsx35("p", { id: helperId, className: "text-v2-xs text-v2-fg-muted", children: helper }),
3739
- error && /* @__PURE__ */ jsx35(
3836
+ helper && !error && /* @__PURE__ */ jsx36("p", { id: helperId, className: "text-v2-xs text-v2-fg-muted", children: helper }),
3837
+ error && /* @__PURE__ */ jsx36(
3740
3838
  "p",
3741
3839
  {
3742
3840
  id: errorId,
@@ -3753,7 +3851,7 @@ MultiCombobox.displayName = "MultiCombobox";
3753
3851
  // src/primitives/OtpInput/OtpInput.tsx
3754
3852
  import { forwardRef as forwardRef27 } from "react";
3755
3853
  import { OTPInput, REGEXP_ONLY_DIGITS } from "input-otp";
3756
- import { jsx as jsx36, jsxs as jsxs22 } from "react/jsx-runtime";
3854
+ import { jsx as jsx37, jsxs as jsxs22 } from "react/jsx-runtime";
3757
3855
  function OtpSlot({
3758
3856
  char,
3759
3857
  isActive: isActive2,
@@ -3770,7 +3868,7 @@ function OtpSlot({
3770
3868
  ),
3771
3869
  children: [
3772
3870
  char,
3773
- hasFakeCaret && /* @__PURE__ */ jsx36("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsx36(
3871
+ hasFakeCaret && /* @__PURE__ */ jsx37("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsx37(
3774
3872
  "div",
3775
3873
  {
3776
3874
  className: cn(
@@ -3801,7 +3899,7 @@ var OtpInput = forwardRef27(
3801
3899
  "aria-label": "C\xF3digo de verifica\xE7\xE3o",
3802
3900
  className: "flex flex-col items-center gap-1.5",
3803
3901
  children: [
3804
- /* @__PURE__ */ jsx36(
3902
+ /* @__PURE__ */ jsx37(
3805
3903
  OTPInput,
3806
3904
  {
3807
3905
  ref,
@@ -3813,11 +3911,11 @@ var OtpInput = forwardRef27(
3813
3911
  "flex items-center gap-2 overflow-hidden p-1 has-[:disabled]:opacity-50",
3814
3912
  className
3815
3913
  ),
3816
- render: ({ slots }) => /* @__PURE__ */ jsx36("div", { className: "flex items-center gap-2", children: slots.map((slot, idx) => /* @__PURE__ */ jsx36(OtpSlot, { ...slot, isDark }, idx)) }),
3914
+ render: ({ slots }) => /* @__PURE__ */ jsx37("div", { className: "flex items-center gap-2", children: slots.map((slot, idx) => /* @__PURE__ */ jsx37(OtpSlot, { ...slot, isDark }, idx)) }),
3817
3915
  ...props
3818
3916
  }
3819
3917
  ),
3820
- error && /* @__PURE__ */ jsx36("span", { className: "text-v2-xs text-v2-danger-500", role: "alert", children: error })
3918
+ error && /* @__PURE__ */ jsx37("span", { className: "text-v2-xs text-v2-danger-500", role: "alert", children: error })
3821
3919
  ]
3822
3920
  }
3823
3921
  );
@@ -3826,19 +3924,19 @@ var OtpInput = forwardRef27(
3826
3924
  OtpInput.displayName = "OtpInput";
3827
3925
 
3828
3926
  // src/primitives/PasswordInput/PasswordInput.tsx
3829
- import { forwardRef as forwardRef28, useState as useState12 } from "react";
3927
+ import { forwardRef as forwardRef28, useState as useState13 } from "react";
3830
3928
  import { Eye, EyeSlash } from "@phosphor-icons/react";
3831
- import { jsx as jsx37 } from "react/jsx-runtime";
3929
+ import { jsx as jsx38 } from "react/jsx-runtime";
3832
3930
  var PasswordInput = forwardRef28(
3833
3931
  (props, ref) => {
3834
- const [visible, setVisible] = useState12(false);
3932
+ const [visible, setVisible] = useState13(false);
3835
3933
  const isDark = props.surface === "dark";
3836
- return /* @__PURE__ */ jsx37(
3934
+ return /* @__PURE__ */ jsx38(
3837
3935
  Input,
3838
3936
  {
3839
3937
  ref,
3840
3938
  type: visible ? "text" : "password",
3841
- rightIcon: /* @__PURE__ */ jsx37(
3939
+ rightIcon: /* @__PURE__ */ jsx38(
3842
3940
  "button",
3843
3941
  {
3844
3942
  type: "button",
@@ -3849,7 +3947,7 @@ var PasswordInput = forwardRef28(
3849
3947
  "flex items-center justify-center rounded-v2-sm p-1 transition-colors motion-reduce:transition-none",
3850
3948
  isDark ? "text-v2-auth-fg-muted hover:text-v2-auth-fg" : "text-v2-fg-subtle hover:text-v2-fg-default"
3851
3949
  ),
3852
- children: visible ? /* @__PURE__ */ jsx37(EyeSlash, { size: 18, weight: "bold", "aria-hidden": "true" }) : /* @__PURE__ */ jsx37(Eye, { size: 18, weight: "bold", "aria-hidden": "true" })
3950
+ children: visible ? /* @__PURE__ */ jsx38(EyeSlash, { size: 18, weight: "bold", "aria-hidden": "true" }) : /* @__PURE__ */ jsx38(Eye, { size: 18, weight: "bold", "aria-hidden": "true" })
3853
3951
  }
3854
3952
  ),
3855
3953
  ...props
@@ -3864,7 +3962,7 @@ import {
3864
3962
  useLayoutEffect as useLayoutEffect2,
3865
3963
  useRef as useRef8
3866
3964
  } from "react";
3867
- import { jsx as jsx38 } from "react/jsx-runtime";
3965
+ import { jsx as jsx39 } from "react/jsx-runtime";
3868
3966
  function formatPercent(digits) {
3869
3967
  const capped = digits.slice(0, 5);
3870
3968
  const numeric = parseInt(capped || "0", 10) / 100;
@@ -3903,7 +4001,7 @@ function PercentInput({
3903
4001
  const handleMouseUp = (e) => {
3904
4002
  setCaretToEditEnd(e.currentTarget);
3905
4003
  };
3906
- return /* @__PURE__ */ jsx38(
4004
+ return /* @__PURE__ */ jsx39(
3907
4005
  Input,
3908
4006
  {
3909
4007
  inputMode: "numeric",
@@ -3918,9 +4016,9 @@ function PercentInput({
3918
4016
  }
3919
4017
 
3920
4018
  // src/primitives/PhoneInput/PhoneInput.tsx
3921
- import { jsx as jsx39 } from "react/jsx-runtime";
4019
+ import { jsx as jsx40 } from "react/jsx-runtime";
3922
4020
  function PhoneInput(props) {
3923
- return /* @__PURE__ */ jsx39(MaskedInput, { ...props, mask: ["(00) 0000-0000", "(00) 00000-0000"] });
4021
+ return /* @__PURE__ */ jsx40(MaskedInput, { ...props, mask: ["(00) 0000-0000", "(00) 00000-0000"] });
3924
4022
  }
3925
4023
 
3926
4024
  // src/primitives/RadioGroup/RadioGroup.tsx
@@ -3929,7 +4027,7 @@ import {
3929
4027
  useId as useId11
3930
4028
  } from "react";
3931
4029
  import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
3932
- import { jsx as jsx40, jsxs as jsxs23 } from "react/jsx-runtime";
4030
+ import { jsx as jsx41, jsxs as jsxs23 } from "react/jsx-runtime";
3933
4031
  var RadioGroup = forwardRef29(
3934
4032
  ({
3935
4033
  items,
@@ -3956,11 +4054,11 @@ var RadioGroup = forwardRef29(
3956
4054
  className: "mb-0 p-0 text-v2-sm font-medium text-v2-fg-default",
3957
4055
  children: [
3958
4056
  label,
3959
- required && /* @__PURE__ */ jsx40("span", { "aria-label": "required", className: "ml-1 text-v2-danger-500", children: "*" })
4057
+ required && /* @__PURE__ */ jsx41("span", { "aria-label": "required", className: "ml-1 text-v2-danger-500", children: "*" })
3960
4058
  ]
3961
4059
  }
3962
4060
  ),
3963
- /* @__PURE__ */ jsx40(
4061
+ /* @__PURE__ */ jsx41(
3964
4062
  RadioGroupPrimitive.Root,
3965
4063
  {
3966
4064
  ref,
@@ -3978,23 +4076,23 @@ var RadioGroup = forwardRef29(
3978
4076
  children: items.map((item) => {
3979
4077
  const itemId = `${groupId}-${item.value}`;
3980
4078
  return /* @__PURE__ */ jsxs23("div", { className: "flex items-center gap-2", children: [
3981
- /* @__PURE__ */ jsx40(
4079
+ /* @__PURE__ */ jsx41(
3982
4080
  RadioGroupPrimitive.Item,
3983
4081
  {
3984
4082
  value: item.value,
3985
4083
  id: itemId,
3986
4084
  disabled: item.disabled,
3987
4085
  className: "aria-invalid:border-v2-danger-500 peer size-5 shrink-0 rounded-v2-pill border border-v2-border-default bg-v2-raised transition-colors data-[state=checked]:border-v2-action-primary data-[state=checked]:bg-v2-action-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-v2-focus-ring/30 focus-visible:ring-offset-2 focus-visible:ring-offset-v2-canvas disabled:cursor-not-allowed disabled:opacity-50 motion-reduce:transition-none",
3988
- children: /* @__PURE__ */ jsx40(RadioGroupPrimitive.Indicator, { className: "flex items-center justify-center after:block after:size-2 after:rounded-v2-pill after:bg-v2-action-on-primary" })
4086
+ children: /* @__PURE__ */ jsx41(RadioGroupPrimitive.Indicator, { className: "flex items-center justify-center after:block after:size-2 after:rounded-v2-pill after:bg-v2-action-on-primary" })
3989
4087
  }
3990
4088
  ),
3991
- /* @__PURE__ */ jsx40(Label, { htmlFor: itemId, children: item.label })
4089
+ /* @__PURE__ */ jsx41(Label, { htmlFor: itemId, children: item.label })
3992
4090
  ] }, item.value);
3993
4091
  })
3994
4092
  }
3995
4093
  ),
3996
- helper && !error && /* @__PURE__ */ jsx40("p", { id: helperId, className: "text-v2-xs text-v2-fg-muted", children: helper }),
3997
- error && /* @__PURE__ */ jsx40(
4094
+ helper && !error && /* @__PURE__ */ jsx41("p", { id: helperId, className: "text-v2-xs text-v2-fg-muted", children: helper }),
4095
+ error && /* @__PURE__ */ jsx41(
3998
4096
  "p",
3999
4097
  {
4000
4098
  id: errorId,
@@ -4013,9 +4111,9 @@ import {
4013
4111
  forwardRef as forwardRef30
4014
4112
  } from "react";
4015
4113
  import * as SeparatorPrimitive from "@radix-ui/react-separator";
4016
- import { jsx as jsx41 } from "react/jsx-runtime";
4114
+ import { jsx as jsx42 } from "react/jsx-runtime";
4017
4115
  var Separator5 = forwardRef30(
4018
- ({ orientation = "horizontal", decorative = true, className, ...props }, ref) => /* @__PURE__ */ jsx41(
4116
+ ({ orientation = "horizontal", decorative = true, className, ...props }, ref) => /* @__PURE__ */ jsx42(
4019
4117
  SeparatorPrimitive.Root,
4020
4118
  {
4021
4119
  ref,
@@ -4035,7 +4133,7 @@ Separator5.displayName = "Separator";
4035
4133
  // src/primitives/Stepper/Stepper.tsx
4036
4134
  import { forwardRef as forwardRef31 } from "react";
4037
4135
  import { Check as Check4, WarningCircle as WarningCircle2, X as X7 } from "@phosphor-icons/react";
4038
- import { jsx as jsx42, jsxs as jsxs24 } from "react/jsx-runtime";
4136
+ import { jsx as jsx43, jsxs as jsxs24 } from "react/jsx-runtime";
4039
4137
  var stateClass = {
4040
4138
  completed: "bg-v2-success-500 text-v2-action-on-primary border-v2-success-500",
4041
4139
  active: "bg-v2-action-primary text-v2-action-on-primary border-v2-action-primary",
@@ -4044,7 +4142,7 @@ var stateClass = {
4044
4142
  error: "bg-v2-danger-500 text-v2-fg-on-danger border-v2-danger-500"
4045
4143
  };
4046
4144
  var Stepper = forwardRef31(
4047
- ({ steps, orientation = "horizontal", className, ...props }, ref) => /* @__PURE__ */ jsx42(
4145
+ ({ steps, orientation = "horizontal", className, ...props }, ref) => /* @__PURE__ */ jsx43(
4048
4146
  "ol",
4049
4147
  {
4050
4148
  ref,
@@ -4054,12 +4152,12 @@ var Stepper = forwardRef31(
4054
4152
  ),
4055
4153
  "aria-label": "Passos",
4056
4154
  ...props,
4057
- children: steps.map((step, idx) => /* @__PURE__ */ jsx42(
4155
+ children: steps.map((step, idx) => /* @__PURE__ */ jsx43(
4058
4156
  "li",
4059
4157
  {
4060
4158
  className: cn(orientation === "horizontal" ? "flex-1" : ""),
4061
4159
  children: /* @__PURE__ */ jsxs24("div", { className: "flex items-center gap-2", children: [
4062
- /* @__PURE__ */ jsx42(
4160
+ /* @__PURE__ */ jsx43(
4063
4161
  "span",
4064
4162
  {
4065
4163
  "data-state": step.state,
@@ -4068,7 +4166,7 @@ var Stepper = forwardRef31(
4068
4166
  "flex size-8 shrink-0 items-center justify-center rounded-v2-pill border-2 text-v2-sm font-semibold",
4069
4167
  stateClass[step.state]
4070
4168
  ),
4071
- children: step.state === "completed" ? /* @__PURE__ */ jsx42(Check4, { size: 16, weight: "bold" }) : step.state === "blocked" ? /* @__PURE__ */ jsx42(X7, { size: 16, weight: "bold" }) : step.state === "error" ? /* @__PURE__ */ jsx42(WarningCircle2, { size: 16, weight: "bold" }) : idx + 1
4169
+ children: step.state === "completed" ? /* @__PURE__ */ jsx43(Check4, { size: 16, weight: "bold" }) : step.state === "blocked" ? /* @__PURE__ */ jsx43(X7, { size: 16, weight: "bold" }) : step.state === "error" ? /* @__PURE__ */ jsx43(WarningCircle2, { size: 16, weight: "bold" }) : idx + 1
4072
4170
  }
4073
4171
  ),
4074
4172
  /* @__PURE__ */ jsxs24("div", { className: "flex flex-col", children: [
@@ -4088,7 +4186,7 @@ var Stepper = forwardRef31(
4088
4186
  ]
4089
4187
  }
4090
4188
  ),
4091
- step.description && /* @__PURE__ */ jsx42(Text, { tag: "p", size: "xs", color: "muted", children: step.description })
4189
+ step.description && /* @__PURE__ */ jsx43(Text, { tag: "p", size: "xs", color: "muted", children: step.description })
4092
4190
  ] })
4093
4191
  ] })
4094
4192
  },
@@ -4102,7 +4200,7 @@ Stepper.displayName = "Stepper";
4102
4200
  // src/primitives/Skeleton/Skeleton.tsx
4103
4201
  import { forwardRef as forwardRef32 } from "react";
4104
4202
  import { cva as cva14 } from "class-variance-authority";
4105
- import { jsx as jsx43 } from "react/jsx-runtime";
4203
+ import { jsx as jsx44 } from "react/jsx-runtime";
4106
4204
  var skeletonStyles = cva14(
4107
4205
  "animate-pulse rounded-v2-md bg-v2-bg-subtle motion-reduce:animate-none",
4108
4206
  {
@@ -4124,7 +4222,7 @@ var Skeleton = forwardRef32(
4124
4222
  role,
4125
4223
  "aria-label": ariaLabel,
4126
4224
  ...props
4127
- }, ref) => /* @__PURE__ */ jsx43(
4225
+ }, ref) => /* @__PURE__ */ jsx44(
4128
4226
  "div",
4129
4227
  {
4130
4228
  ref,
@@ -4140,7 +4238,7 @@ Skeleton.displayName = "Skeleton";
4140
4238
 
4141
4239
  // src/primitives/Sparkline/Sparkline.tsx
4142
4240
  import { useId as useId12 } from "react";
4143
- import { jsx as jsx44, jsxs as jsxs25 } from "react/jsx-runtime";
4241
+ import { jsx as jsx45, jsxs as jsxs25 } from "react/jsx-runtime";
4144
4242
  function buildPath(values, width, height, pad) {
4145
4243
  if (values.length === 0) return { line: "", area: "" };
4146
4244
  const min = Math.min(...values);
@@ -4184,12 +4282,12 @@ function Sparkline({
4184
4282
  className: cn("block", className),
4185
4283
  style: { width, height },
4186
4284
  children: [
4187
- variant === "area" && /* @__PURE__ */ jsx44("defs", { children: /* @__PURE__ */ jsxs25("linearGradient", { id: `spark-${id}`, x1: "0", y1: "0", x2: "0", y2: "1", children: [
4188
- /* @__PURE__ */ jsx44("stop", { offset: "0%", stopColor: color, stopOpacity: 0.35 }),
4189
- /* @__PURE__ */ jsx44("stop", { offset: "100%", stopColor: color, stopOpacity: 0 })
4285
+ variant === "area" && /* @__PURE__ */ jsx45("defs", { children: /* @__PURE__ */ jsxs25("linearGradient", { id: `spark-${id}`, x1: "0", y1: "0", x2: "0", y2: "1", children: [
4286
+ /* @__PURE__ */ jsx45("stop", { offset: "0%", stopColor: color, stopOpacity: 0.35 }),
4287
+ /* @__PURE__ */ jsx45("stop", { offset: "100%", stopColor: color, stopOpacity: 0 })
4190
4288
  ] }) }),
4191
- variant === "area" && /* @__PURE__ */ jsx44("path", { d: area, fill: `url(#spark-${id})`, stroke: "none" }),
4192
- /* @__PURE__ */ jsx44(
4289
+ variant === "area" && /* @__PURE__ */ jsx45("path", { d: area, fill: `url(#spark-${id})`, stroke: "none" }),
4290
+ /* @__PURE__ */ jsx45(
4193
4291
  "path",
4194
4292
  {
4195
4293
  d: line,
@@ -4208,7 +4306,7 @@ function Sparkline({
4208
4306
  // src/primitives/SparklineBadge/SparklineBadge.tsx
4209
4307
  import { forwardRef as forwardRef33 } from "react";
4210
4308
  import { ArrowUp, ArrowDown, Minus as Minus2 } from "@phosphor-icons/react";
4211
- import { jsx as jsx45, jsxs as jsxs26 } from "react/jsx-runtime";
4309
+ import { jsx as jsx46, jsxs as jsxs26 } from "react/jsx-runtime";
4212
4310
  var directionDefaultTone = {
4213
4311
  up: "success",
4214
4312
  down: "danger",
@@ -4247,7 +4345,7 @@ var SparklineBadge = forwardRef33(
4247
4345
  ),
4248
4346
  ...props,
4249
4347
  children: [
4250
- /* @__PURE__ */ jsx45(Icon, { size: iconSize[size], weight: "bold", "aria-hidden": "true" }),
4348
+ /* @__PURE__ */ jsx46(Icon, { size: iconSize[size], weight: "bold", "aria-hidden": "true" }),
4251
4349
  value
4252
4350
  ]
4253
4351
  }
@@ -4262,7 +4360,7 @@ import {
4262
4360
  useId as useId13
4263
4361
  } from "react";
4264
4362
  import * as SwitchPrimitive from "@radix-ui/react-switch";
4265
- import { jsx as jsx46, jsxs as jsxs27 } from "react/jsx-runtime";
4363
+ import { jsx as jsx47, jsxs as jsxs27 } from "react/jsx-runtime";
4266
4364
  var Switch = forwardRef34(
4267
4365
  ({ label, helper, error, id, className, required, ...props }, ref) => {
4268
4366
  const generatedId = useId13();
@@ -4272,7 +4370,7 @@ var Switch = forwardRef34(
4272
4370
  const describedBy = [helperId, errorId].filter(Boolean).join(" ") || void 0;
4273
4371
  return /* @__PURE__ */ jsxs27("div", { className: "flex flex-col gap-1", children: [
4274
4372
  /* @__PURE__ */ jsxs27("div", { className: "flex items-center gap-3", children: [
4275
- /* @__PURE__ */ jsx46(
4373
+ /* @__PURE__ */ jsx47(
4276
4374
  SwitchPrimitive.Root,
4277
4375
  {
4278
4376
  ref,
@@ -4285,13 +4383,13 @@ var Switch = forwardRef34(
4285
4383
  className
4286
4384
  ),
4287
4385
  ...props,
4288
- children: /* @__PURE__ */ jsx46(SwitchPrimitive.Thumb, { className: "pointer-events-none block size-4 rounded-v2-pill bg-v2-action-on-primary shadow-sm transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0.5 motion-reduce:transition-none" })
4386
+ children: /* @__PURE__ */ jsx47(SwitchPrimitive.Thumb, { className: "pointer-events-none block size-4 rounded-v2-pill bg-v2-action-on-primary shadow-sm transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0.5 motion-reduce:transition-none" })
4289
4387
  }
4290
4388
  ),
4291
- label && /* @__PURE__ */ jsx46(Label, { htmlFor: switchId, required, children: label })
4389
+ label && /* @__PURE__ */ jsx47(Label, { htmlFor: switchId, required, children: label })
4292
4390
  ] }),
4293
- helper && !error && /* @__PURE__ */ jsx46("p", { id: helperId, className: "text-v2-xs text-v2-fg-muted", children: helper }),
4294
- error && /* @__PURE__ */ jsx46(
4391
+ helper && !error && /* @__PURE__ */ jsx47("p", { id: helperId, className: "text-v2-xs text-v2-fg-muted", children: helper }),
4392
+ error && /* @__PURE__ */ jsx47(
4295
4393
  "p",
4296
4394
  {
4297
4395
  id: errorId,
@@ -4337,10 +4435,10 @@ var tabsContentStyles = cva15(
4337
4435
  );
4338
4436
 
4339
4437
  // src/primitives/Tabs/Tabs.tsx
4340
- import { jsx as jsx47 } from "react/jsx-runtime";
4438
+ import { jsx as jsx48 } from "react/jsx-runtime";
4341
4439
  var TabsVariantContext = createContext("pill");
4342
4440
  var List2 = forwardRef35(
4343
- ({ className, variant = "pill", ...props }, ref) => /* @__PURE__ */ jsx47(TabsVariantContext.Provider, { value: variant, children: /* @__PURE__ */ jsx47(
4441
+ ({ className, variant = "pill", ...props }, ref) => /* @__PURE__ */ jsx48(TabsVariantContext.Provider, { value: variant, children: /* @__PURE__ */ jsx48(
4344
4442
  TabsPrimitive.List,
4345
4443
  {
4346
4444
  ref,
@@ -4353,7 +4451,7 @@ List2.displayName = "Tabs.List";
4353
4451
  var Trigger12 = forwardRef35(({ className, ...props }, ref) => {
4354
4452
  const variant = useContext(TabsVariantContext);
4355
4453
  const baseStyles = variant === "underline" ? tabsUnderlineTriggerStyles() : tabsTriggerStyles();
4356
- return /* @__PURE__ */ jsx47(
4454
+ return /* @__PURE__ */ jsx48(
4357
4455
  TabsPrimitive.Trigger,
4358
4456
  {
4359
4457
  ref,
@@ -4363,7 +4461,7 @@ var Trigger12 = forwardRef35(({ className, ...props }, ref) => {
4363
4461
  );
4364
4462
  });
4365
4463
  Trigger12.displayName = "Tabs.Trigger";
4366
- var Content12 = forwardRef35(({ className, ...props }, ref) => /* @__PURE__ */ jsx47(
4464
+ var Content12 = forwardRef35(({ className, ...props }, ref) => /* @__PURE__ */ jsx48(
4367
4465
  TabsPrimitive.Content,
4368
4466
  {
4369
4467
  ref,
@@ -4373,7 +4471,7 @@ var Content12 = forwardRef35(({ className, ...props }, ref) => /* @__PURE__ */ j
4373
4471
  ));
4374
4472
  Content12.displayName = "Tabs.Content";
4375
4473
  function TabsRoot({ children, className, ...props }) {
4376
- return /* @__PURE__ */ jsx47(TabsPrimitive.Root, { className: cn("w-full", className), ...props, children });
4474
+ return /* @__PURE__ */ jsx48(TabsPrimitive.Root, { className: cn("w-full", className), ...props, children });
4377
4475
  }
4378
4476
  TabsRoot.displayName = "Tabs";
4379
4477
  var Tabs = Object.assign(TabsRoot, {
@@ -4383,9 +4481,9 @@ var Tabs = Object.assign(TabsRoot, {
4383
4481
  });
4384
4482
 
4385
4483
  // src/primitives/ThemeToggle/ThemeToggle.tsx
4386
- import { forwardRef as forwardRef36, useCallback, useEffect as useEffect7, useState as useState13 } from "react";
4484
+ import { forwardRef as forwardRef36, useCallback, useEffect as useEffect8, useState as useState14 } from "react";
4387
4485
  import { Monitor, Moon, Sun } from "@phosphor-icons/react";
4388
- import { jsx as jsx48, jsxs as jsxs28 } from "react/jsx-runtime";
4486
+ import { jsx as jsx49, jsxs as jsxs28 } from "react/jsx-runtime";
4389
4487
  var sizeClass2 = {
4390
4488
  sm: "size-7",
4391
4489
  md: "size-9",
@@ -4422,20 +4520,20 @@ var ThemeToggle = forwardRef36(
4422
4520
  onClick,
4423
4521
  ...props
4424
4522
  }, ref) => {
4425
- const [preference, setPreference] = useState13(
4523
+ const [preference, setPreference] = useState14(
4426
4524
  () => readPreference(storageKey)
4427
4525
  );
4428
- const [systemMode, setSystemMode] = useState13(
4526
+ const [systemMode, setSystemMode] = useState14(
4429
4527
  () => getSystemMode()
4430
4528
  );
4431
4529
  const resolvedMode = preference === "system" ? systemMode : preference;
4432
- useEffect7(() => {
4530
+ useEffect8(() => {
4433
4531
  const root = document.documentElement;
4434
4532
  root.dataset.theme = resolvedMode;
4435
4533
  root.classList.toggle("dark", resolvedMode === "dark");
4436
4534
  root.classList.toggle("light", resolvedMode === "light");
4437
4535
  }, [resolvedMode]);
4438
- useEffect7(() => {
4536
+ useEffect8(() => {
4439
4537
  if (typeof window === "undefined" || !window.matchMedia) return;
4440
4538
  const mq = window.matchMedia("(prefers-color-scheme: dark)");
4441
4539
  const onChange = (event) => {
@@ -4473,7 +4571,7 @@ var ThemeToggle = forwardRef36(
4473
4571
  ),
4474
4572
  ...props,
4475
4573
  children: [
4476
- /* @__PURE__ */ jsx48(
4574
+ /* @__PURE__ */ jsx49(
4477
4575
  Sun,
4478
4576
  {
4479
4577
  size: iconSize2[size],
@@ -4485,7 +4583,7 @@ var ThemeToggle = forwardRef36(
4485
4583
  )
4486
4584
  }
4487
4585
  ),
4488
- /* @__PURE__ */ jsx48(
4586
+ /* @__PURE__ */ jsx49(
4489
4587
  Moon,
4490
4588
  {
4491
4589
  size: iconSize2[size],
@@ -4497,7 +4595,7 @@ var ThemeToggle = forwardRef36(
4497
4595
  )
4498
4596
  }
4499
4597
  ),
4500
- /* @__PURE__ */ jsx48(
4598
+ /* @__PURE__ */ jsx49(
4501
4599
  Monitor,
4502
4600
  {
4503
4601
  size: iconSize2[size],
@@ -4518,7 +4616,7 @@ ThemeToggle.displayName = "ThemeToggle";
4518
4616
 
4519
4617
  // src/primitives/TextArea/TextArea.tsx
4520
4618
  import { forwardRef as forwardRef37, useId as useId14 } from "react";
4521
- import { jsx as jsx49, jsxs as jsxs29 } from "react/jsx-runtime";
4619
+ import { jsx as jsx50, jsxs as jsxs29 } from "react/jsx-runtime";
4522
4620
  var TextArea = forwardRef37(
4523
4621
  ({
4524
4622
  label,
@@ -4541,8 +4639,8 @@ var TextArea = forwardRef37(
4541
4639
  const currentLength = typeof value === "string" ? value.length : 0;
4542
4640
  const showFooter = !!error || !!helper || showCount && !!maxLength;
4543
4641
  return /* @__PURE__ */ jsxs29("div", { className: "flex flex-col gap-1", children: [
4544
- label && /* @__PURE__ */ jsx49(Label, { htmlFor: textareaId, required, children: label }),
4545
- /* @__PURE__ */ jsx49(
4642
+ label && /* @__PURE__ */ jsx50(Label, { htmlFor: textareaId, required, children: label }),
4643
+ /* @__PURE__ */ jsx50(
4546
4644
  "textarea",
4547
4645
  {
4548
4646
  ref,
@@ -4566,7 +4664,7 @@ var TextArea = forwardRef37(
4566
4664
  }
4567
4665
  ),
4568
4666
  showFooter && /* @__PURE__ */ jsxs29("div", { className: "flex items-start justify-between gap-2", children: [
4569
- error ? /* @__PURE__ */ jsx49(
4667
+ error ? /* @__PURE__ */ jsx50(
4570
4668
  "p",
4571
4669
  {
4572
4670
  id: errorId,
@@ -4574,7 +4672,7 @@ var TextArea = forwardRef37(
4574
4672
  role: "alert",
4575
4673
  children: error
4576
4674
  }
4577
- ) : helper ? /* @__PURE__ */ jsx49("p", { id: helperId, className: "text-v2-xs text-v2-fg-muted", children: helper }) : /* @__PURE__ */ jsx49("span", {}),
4675
+ ) : helper ? /* @__PURE__ */ jsx50("p", { id: helperId, className: "text-v2-xs text-v2-fg-muted", children: helper }) : /* @__PURE__ */ jsx50("span", {}),
4578
4676
  showCount && maxLength && /* @__PURE__ */ jsxs29("span", { className: "text-v2-xs tabular-nums text-v2-fg-muted", children: [
4579
4677
  currentLength,
4580
4678
  "/",
@@ -4599,7 +4697,7 @@ var tooltipContentStyles = cva16(
4599
4697
  );
4600
4698
 
4601
4699
  // src/primitives/Tooltip/Tooltip.tsx
4602
- import { jsx as jsx50, jsxs as jsxs30 } from "react/jsx-runtime";
4700
+ import { jsx as jsx51, jsxs as jsxs30 } from "react/jsx-runtime";
4603
4701
  var Provider2 = TooltipPrimitive.Provider;
4604
4702
  var TooltipRoot = forwardRef38(function TooltipRoot2({
4605
4703
  content,
@@ -4615,7 +4713,7 @@ var TooltipRoot = forwardRef38(function TooltipRoot2({
4615
4713
  disableHoverableContent,
4616
4714
  ...triggerProps
4617
4715
  }, ref) {
4618
- return /* @__PURE__ */ jsx50(TooltipPrimitive.Provider, { delayDuration, children: /* @__PURE__ */ jsxs30(
4716
+ return /* @__PURE__ */ jsx51(TooltipPrimitive.Provider, { delayDuration, children: /* @__PURE__ */ jsxs30(
4619
4717
  TooltipPrimitive.Root,
4620
4718
  {
4621
4719
  open,
@@ -4623,8 +4721,8 @@ var TooltipRoot = forwardRef38(function TooltipRoot2({
4623
4721
  onOpenChange,
4624
4722
  disableHoverableContent,
4625
4723
  children: [
4626
- /* @__PURE__ */ jsx50(TooltipPrimitive.Trigger, { asChild: true, ref, ...triggerProps, children }),
4627
- /* @__PURE__ */ jsx50(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsxs30(
4724
+ /* @__PURE__ */ jsx51(TooltipPrimitive.Trigger, { asChild: true, ref, ...triggerProps, children }),
4725
+ /* @__PURE__ */ jsx51(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsxs30(
4628
4726
  TooltipPrimitive.Content,
4629
4727
  {
4630
4728
  side,
@@ -4633,7 +4731,7 @@ var TooltipRoot = forwardRef38(function TooltipRoot2({
4633
4731
  className: cn(tooltipContentStyles(), contentClassName),
4634
4732
  children: [
4635
4733
  content,
4636
- /* @__PURE__ */ jsx50(TooltipPrimitive.Arrow, { className: "fill-v2-panel" })
4734
+ /* @__PURE__ */ jsx51(TooltipPrimitive.Arrow, { className: "fill-v2-panel" })
4637
4735
  ]
4638
4736
  }
4639
4737
  ) })
@@ -4642,7 +4740,7 @@ var TooltipRoot = forwardRef38(function TooltipRoot2({
4642
4740
  ) });
4643
4741
  });
4644
4742
  TooltipRoot.displayName = "Tooltip";
4645
- var Content14 = forwardRef38(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx50(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsx50(
4743
+ var Content14 = forwardRef38(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx51(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsx51(
4646
4744
  TooltipPrimitive.Content,
4647
4745
  {
4648
4746
  ref,
@@ -4652,7 +4750,7 @@ var Content14 = forwardRef38(({ className, sideOffset = 4, ...props }, ref) => /
4652
4750
  }
4653
4751
  ) }));
4654
4752
  Content14.displayName = "Tooltip.Content";
4655
- var Trigger14 = forwardRef38((props, ref) => /* @__PURE__ */ jsx50(TooltipPrimitive.Trigger, { ref, ...props }));
4753
+ var Trigger14 = forwardRef38((props, ref) => /* @__PURE__ */ jsx51(TooltipPrimitive.Trigger, { ref, ...props }));
4656
4754
  Trigger14.displayName = "Tooltip.Trigger";
4657
4755
  var Root12 = TooltipPrimitive.Root;
4658
4756
  var Tooltip = Object.assign(TooltipRoot, {
@@ -4739,7 +4837,7 @@ function useToast() {
4739
4837
  }
4740
4838
 
4741
4839
  // src/primitives/Toast/Toaster.tsx
4742
- import { jsx as jsx51, jsxs as jsxs31 } from "react/jsx-runtime";
4840
+ import { jsx as jsx52, jsxs as jsxs31 } from "react/jsx-runtime";
4743
4841
  function Toaster({
4744
4842
  duration = 5e3,
4745
4843
  swipeDirection = "right",
@@ -4763,23 +4861,23 @@ function Toaster({
4763
4861
  className: cn(toastStyles({ variant: item.variant })),
4764
4862
  children: [
4765
4863
  /* @__PURE__ */ jsxs31("div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
4766
- item.title && /* @__PURE__ */ jsx51(ToastPrimitive.Title, { className: "text-v2-sm font-semibold", children: item.title }),
4767
- item.description && /* @__PURE__ */ jsx51(ToastPrimitive.Description, { className: "text-v2-sm opacity-90", children: item.description })
4864
+ item.title && /* @__PURE__ */ jsx52(ToastPrimitive.Title, { className: "text-v2-sm font-semibold", children: item.title }),
4865
+ item.description && /* @__PURE__ */ jsx52(ToastPrimitive.Description, { className: "text-v2-sm opacity-90", children: item.description })
4768
4866
  ] }),
4769
- item.action && /* @__PURE__ */ jsx51(ToastPrimitive.Action, { altText: "a\xE7\xE3o", asChild: true, children: item.action }),
4770
- /* @__PURE__ */ jsx51(
4867
+ item.action && /* @__PURE__ */ jsx52(ToastPrimitive.Action, { altText: "a\xE7\xE3o", asChild: true, children: item.action }),
4868
+ /* @__PURE__ */ jsx52(
4771
4869
  ToastPrimitive.Close,
4772
4870
  {
4773
4871
  "aria-label": "Fechar",
4774
4872
  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",
4775
- children: /* @__PURE__ */ jsx51(X8, { size: 16, "aria-hidden": "true" })
4873
+ children: /* @__PURE__ */ jsx52(X8, { size: 16, "aria-hidden": "true" })
4776
4874
  }
4777
4875
  )
4778
4876
  ]
4779
4877
  },
4780
4878
  item.id
4781
4879
  )),
4782
- /* @__PURE__ */ jsx51(
4880
+ /* @__PURE__ */ jsx52(
4783
4881
  ToastPrimitive.Viewport,
4784
4882
  {
4785
4883
  className: cn(
@@ -4810,9 +4908,9 @@ import {
4810
4908
 
4811
4909
  // src/patterns/Sidebar/Sidebar.tsx
4812
4910
  import { CaretDoubleLeft, CaretDoubleRight } from "@phosphor-icons/react";
4813
- import { forwardRef as forwardRef39, useCallback as useCallback2, useEffect as useEffect8, useState as useState14 } from "react";
4911
+ import { forwardRef as forwardRef39, useCallback as useCallback2, useEffect as useEffect9, useState as useState15 } from "react";
4814
4912
  import "./Sidebar-4ILVFQI5.css";
4815
- import { Fragment as Fragment5, jsx as jsx52, jsxs as jsxs32 } from "react/jsx-runtime";
4913
+ import { Fragment as Fragment5, jsx as jsx53, jsxs as jsxs32 } from "react/jsx-runtime";
4816
4914
  var LINK_BASE_CLASS = "flex h-full w-full items-center";
4817
4915
  function isActive(currentPath, to) {
4818
4916
  if (!currentPath) return false;
@@ -4826,7 +4924,7 @@ function ItemLink({
4826
4924
  linkComponent
4827
4925
  }) {
4828
4926
  if (item.external) {
4829
- return /* @__PURE__ */ jsx52(
4927
+ return /* @__PURE__ */ jsx53(
4830
4928
  "a",
4831
4929
  {
4832
4930
  href: item.to,
@@ -4838,7 +4936,7 @@ function ItemLink({
4838
4936
  );
4839
4937
  }
4840
4938
  const LinkComponent = linkComponent ?? DefaultLink;
4841
- return /* @__PURE__ */ jsx52(LinkComponent, { to: item.to, className, children });
4939
+ return /* @__PURE__ */ jsx53(LinkComponent, { to: item.to, className, children });
4842
4940
  }
4843
4941
  function ItemContent({
4844
4942
  item,
@@ -4856,7 +4954,7 @@ function ItemContent({
4856
4954
  active ? "bg-v2-brand-primary font-semibold text-v2-brand-on-primary" : "text-v2-fg-default hover:bg-v2-bg-subtle"
4857
4955
  ),
4858
4956
  children: [
4859
- /* @__PURE__ */ jsx52(
4957
+ /* @__PURE__ */ jsx53(
4860
4958
  "span",
4861
4959
  {
4862
4960
  className: cn(
@@ -4867,8 +4965,8 @@ function ItemContent({
4867
4965
  }
4868
4966
  ),
4869
4967
  !collapsed ? /* @__PURE__ */ jsxs32(Fragment5, { children: [
4870
- /* @__PURE__ */ jsx52("span", { className: "flex-1 truncate", children: item.label }),
4871
- item.badge !== void 0 && /* @__PURE__ */ jsx52(
4968
+ /* @__PURE__ */ jsx53("span", { className: "flex-1 truncate", children: item.label }),
4969
+ item.badge !== void 0 && /* @__PURE__ */ jsx53(
4872
4970
  "span",
4873
4971
  {
4874
4972
  className: cn(
@@ -4878,7 +4976,7 @@ function ItemContent({
4878
4976
  children: item.badge
4879
4977
  }
4880
4978
  )
4881
- ] }) : item.badge !== void 0 && /* @__PURE__ */ jsx52(
4979
+ ] }) : item.badge !== void 0 && /* @__PURE__ */ jsx53(
4882
4980
  "span",
4883
4981
  {
4884
4982
  "aria-label": `${item.badge} pendentes`,
@@ -4898,15 +4996,15 @@ function GroupItems({
4898
4996
  showTopDivider
4899
4997
  }) {
4900
4998
  return /* @__PURE__ */ jsxs32("div", { className: "flex flex-col gap-1", children: [
4901
- group.label && !collapsed && /* @__PURE__ */ jsx52("h3", { className: "pb-1 pl-4 pt-2 text-v2-xs font-bold uppercase tracking-[0.08em] text-v2-fg-muted", children: group.label }),
4902
- group.label && collapsed && /* @__PURE__ */ jsx52(
4999
+ group.label && !collapsed && /* @__PURE__ */ jsx53("h3", { className: "pb-1 pl-4 pt-2 text-v2-xs font-bold uppercase tracking-[0.08em] text-v2-fg-muted", children: group.label }),
5000
+ group.label && collapsed && /* @__PURE__ */ jsx53(
4903
5001
  "div",
4904
5002
  {
4905
5003
  "aria-hidden": "true",
4906
5004
  className: "mx-2 my-1 h-px bg-v2-border-default"
4907
5005
  }
4908
5006
  ),
4909
- !group.label && showTopDivider && /* @__PURE__ */ jsx52(
5007
+ !group.label && showTopDivider && /* @__PURE__ */ jsx53(
4910
5008
  "div",
4911
5009
  {
4912
5010
  "aria-hidden": "true",
@@ -4916,9 +5014,9 @@ function GroupItems({
4916
5014
  )
4917
5015
  }
4918
5016
  ),
4919
- /* @__PURE__ */ jsx52("ul", { className: "flex flex-col gap-0.5", children: group.items.map((item) => {
5017
+ /* @__PURE__ */ jsx53("ul", { className: "flex flex-col gap-0.5", children: group.items.map((item) => {
4920
5018
  const active = isActive(currentPath, item.to);
4921
- const itemContent = /* @__PURE__ */ jsx52(
5019
+ const itemContent = /* @__PURE__ */ jsx53(
4922
5020
  ItemContent,
4923
5021
  {
4924
5022
  item,
@@ -4927,7 +5025,7 @@ function GroupItems({
4927
5025
  title: collapsed ? item.label : void 0
4928
5026
  }
4929
5027
  );
4930
- return /* @__PURE__ */ jsx52(
5028
+ return /* @__PURE__ */ jsx53(
4931
5029
  "li",
4932
5030
  {
4933
5031
  "aria-current": active ? "page" : void 0,
@@ -4935,7 +5033,7 @@ function GroupItems({
4935
5033
  "ml-1.5 h-12 rounded-l-v2-pill p-1 transition-colors",
4936
5034
  active && "ds-v2-sidebar-item--active"
4937
5035
  ),
4938
- children: renderLink ? renderLink(item, itemContent) : /* @__PURE__ */ jsx52(
5036
+ children: renderLink ? renderLink(item, itemContent) : /* @__PURE__ */ jsx53(
4939
5037
  ItemLink,
4940
5038
  {
4941
5039
  item,
@@ -4960,7 +5058,7 @@ function NavGroups({
4960
5058
  const topGroups = groups.filter((g) => g.pin !== "bottom");
4961
5059
  const bottomGroups = groups.filter((g) => g.pin === "bottom");
4962
5060
  return /* @__PURE__ */ jsxs32("nav", { className: "ds-v2-sidebar-nav flex flex-1 flex-col gap-3 py-3", children: [
4963
- topGroups.map((group, idx) => /* @__PURE__ */ jsx52(
5061
+ topGroups.map((group, idx) => /* @__PURE__ */ jsx53(
4964
5062
  GroupItems,
4965
5063
  {
4966
5064
  group,
@@ -4972,7 +5070,7 @@ function NavGroups({
4972
5070
  },
4973
5071
  group.label ?? `top-${idx}`
4974
5072
  )),
4975
- bottomGroups.length > 0 && /* @__PURE__ */ jsx52("div", { className: "mt-auto flex flex-col gap-1 pt-3", children: bottomGroups.map((group, idx) => /* @__PURE__ */ jsx52(
5073
+ bottomGroups.length > 0 && /* @__PURE__ */ jsx53("div", { className: "mt-auto flex flex-col gap-1 pt-3", children: bottomGroups.map((group, idx) => /* @__PURE__ */ jsx53(
4976
5074
  GroupItems,
4977
5075
  {
4978
5076
  group,
@@ -5016,7 +5114,7 @@ var Sidebar = forwardRef39(function Sidebar2({
5016
5114
  ...rest
5017
5115
  }, ref) {
5018
5116
  const isControlled = controlledCollapsed !== void 0;
5019
- const [internalCollapsed, setInternalCollapsed] = useState14(
5117
+ const [internalCollapsed, setInternalCollapsed] = useState15(
5020
5118
  () => readStoredCollapsed(defaultCollapsed)
5021
5119
  );
5022
5120
  const collapsed = isControlled ? controlledCollapsed : internalCollapsed;
@@ -5029,7 +5127,7 @@ var Sidebar = forwardRef39(function Sidebar2({
5029
5127
  }
5030
5128
  onCollapseChange == null ? void 0 : onCollapseChange(next);
5031
5129
  }, [collapsed, isControlled, onCollapseChange]);
5032
- useEffect8(() => {
5130
+ useEffect9(() => {
5033
5131
  if (!enableShortcut || typeof window === "undefined") return;
5034
5132
  const handler = (event) => {
5035
5133
  if (!((event.metaKey || event.ctrlKey) && event.key === "b")) return;
@@ -5059,16 +5157,16 @@ var Sidebar = forwardRef39(function Sidebar2({
5059
5157
  collapsed ? "justify-center px-0" : "justify-between"
5060
5158
  ),
5061
5159
  children: [
5062
- headerSlot && !collapsed && /* @__PURE__ */ jsx52("div", { children: headerSlot }),
5063
- /* @__PURE__ */ jsx52(
5160
+ headerSlot && !collapsed && /* @__PURE__ */ jsx53("div", { children: headerSlot }),
5161
+ /* @__PURE__ */ jsx53(
5064
5162
  Tooltip,
5065
5163
  {
5066
5164
  side: "right",
5067
5165
  content: /* @__PURE__ */ jsxs32("span", { children: [
5068
5166
  collapsed ? "Expandir menu" : "Recolher menu",
5069
- enableShortcut && /* @__PURE__ */ jsx52("span", { className: "ml-1 text-v2-fg-muted", children: getShortcutLabel("B") })
5167
+ enableShortcut && /* @__PURE__ */ jsx53("span", { className: "ml-1 text-v2-fg-muted", children: getShortcutLabel("B") })
5070
5168
  ] }),
5071
- children: /* @__PURE__ */ jsx52(
5169
+ children: /* @__PURE__ */ jsx53(
5072
5170
  "button",
5073
5171
  {
5074
5172
  type: "button",
@@ -5078,7 +5176,7 @@ var Sidebar = forwardRef39(function Sidebar2({
5078
5176
  className: cn(
5079
5177
  "inline-flex size-8 shrink-0 items-center justify-center rounded-v2-md text-current transition-colors hover:bg-v2-bg-subtle"
5080
5178
  ),
5081
- children: collapsed ? /* @__PURE__ */ jsx52(CaretDoubleRight, { size: 16 }) : /* @__PURE__ */ jsx52(CaretDoubleLeft, { size: 16 })
5179
+ children: collapsed ? /* @__PURE__ */ jsx53(CaretDoubleRight, { size: 16 }) : /* @__PURE__ */ jsx53(CaretDoubleLeft, { size: 16 })
5082
5180
  }
5083
5181
  )
5084
5182
  }
@@ -5086,7 +5184,7 @@ var Sidebar = forwardRef39(function Sidebar2({
5086
5184
  ]
5087
5185
  }
5088
5186
  ),
5089
- /* @__PURE__ */ jsx52(
5187
+ /* @__PURE__ */ jsx53(
5090
5188
  NavGroups,
5091
5189
  {
5092
5190
  groups,
@@ -5103,7 +5201,7 @@ var Sidebar = forwardRef39(function Sidebar2({
5103
5201
 
5104
5202
  // src/patterns/Topbar/Topbar.tsx
5105
5203
  import { forwardRef as forwardRef40 } from "react";
5106
- import { jsx as jsx53, jsxs as jsxs33 } from "react/jsx-runtime";
5204
+ import { jsx as jsx54, jsxs as jsxs33 } from "react/jsx-runtime";
5107
5205
  var Topbar = forwardRef40(function Topbar2({
5108
5206
  pageTitle,
5109
5207
  searchTrigger,
@@ -5127,8 +5225,8 @@ var Topbar = forwardRef40(function Topbar2({
5127
5225
  ),
5128
5226
  ...props,
5129
5227
  children: [
5130
- /* @__PURE__ */ jsx53("div", { className: "flex min-w-0 flex-1 items-center gap-3", children: pageTitle && /* @__PURE__ */ jsx53("h2", { className: "truncate text-v2-sm font-bold", children: pageTitle }) }),
5131
- searchTrigger && /* @__PURE__ */ jsx53("div", { className: "flex flex-1 items-center justify-center", children: searchTrigger }),
5228
+ /* @__PURE__ */ jsx54("div", { className: "flex min-w-0 flex-1 items-center gap-3", children: pageTitle && /* @__PURE__ */ jsx54("h2", { className: "truncate text-v2-sm font-bold", children: pageTitle }) }),
5229
+ searchTrigger && /* @__PURE__ */ jsx54("div", { className: "flex flex-1 items-center justify-center", children: searchTrigger }),
5132
5230
  /* @__PURE__ */ jsxs33("div", { className: "flex flex-1 items-center justify-end gap-2", children: [
5133
5231
  notificationCenter,
5134
5232
  themeToggle,
@@ -5141,7 +5239,7 @@ var Topbar = forwardRef40(function Topbar2({
5141
5239
  Topbar.displayName = "Topbar";
5142
5240
 
5143
5241
  // src/patterns/AppShell/AppShell.tsx
5144
- import { jsx as jsx54, jsxs as jsxs34 } from "react/jsx-runtime";
5242
+ import { jsx as jsx55, jsxs as jsxs34 } from "react/jsx-runtime";
5145
5243
  var DEFAULT_GROUPS = [
5146
5244
  {
5147
5245
  label: null,
@@ -5149,55 +5247,55 @@ var DEFAULT_GROUPS = [
5149
5247
  {
5150
5248
  id: "home",
5151
5249
  label: "P\xE1gina inicial",
5152
- icon: /* @__PURE__ */ jsx54(House, { size: 20 }),
5250
+ icon: /* @__PURE__ */ jsx55(House, { size: 20 }),
5153
5251
  to: "/"
5154
5252
  },
5155
5253
  {
5156
5254
  id: "users",
5157
5255
  label: "Usu\xE1rios",
5158
- icon: /* @__PURE__ */ jsx54(Users, { size: 20 }),
5256
+ icon: /* @__PURE__ */ jsx55(Users, { size: 20 }),
5159
5257
  to: "/users"
5160
5258
  },
5161
5259
  {
5162
5260
  id: "orgs",
5163
5261
  label: "Organiza\xE7\xF5es",
5164
- icon: /* @__PURE__ */ jsx54(Buildings, { size: 20 }),
5262
+ icon: /* @__PURE__ */ jsx55(Buildings, { size: 20 }),
5165
5263
  to: "/organizations"
5166
5264
  },
5167
5265
  {
5168
5266
  id: "configs-op",
5169
5267
  label: "Configs Opera\xE7\xE3o",
5170
- icon: /* @__PURE__ */ jsx54(Briefcase, { size: 20 }),
5268
+ icon: /* @__PURE__ */ jsx55(Briefcase, { size: 20 }),
5171
5269
  to: "/configs/operation"
5172
5270
  },
5173
5271
  {
5174
5272
  id: "clients",
5175
5273
  label: "Clientes",
5176
- icon: /* @__PURE__ */ jsx54(UsersThree, { size: 20 }),
5274
+ icon: /* @__PURE__ */ jsx55(UsersThree, { size: 20 }),
5177
5275
  to: "/clients"
5178
5276
  },
5179
5277
  {
5180
5278
  id: "requests",
5181
5279
  label: "Requisi\xE7\xF5es",
5182
- icon: /* @__PURE__ */ jsx54(PaperPlaneTilt, { size: 20 }),
5280
+ icon: /* @__PURE__ */ jsx55(PaperPlaneTilt, { size: 20 }),
5183
5281
  to: "/requests"
5184
5282
  },
5185
5283
  {
5186
5284
  id: "operations",
5187
5285
  label: "Opera\xE7\xF5es",
5188
- icon: /* @__PURE__ */ jsx54(Receipt, { size: 20 }),
5286
+ icon: /* @__PURE__ */ jsx55(Receipt, { size: 20 }),
5189
5287
  to: "/operations"
5190
5288
  },
5191
5289
  {
5192
5290
  id: "finance",
5193
5291
  label: "Financeiro",
5194
- icon: /* @__PURE__ */ jsx54(Coins, { size: 20 }),
5292
+ icon: /* @__PURE__ */ jsx55(Coins, { size: 20 }),
5195
5293
  to: "/finance"
5196
5294
  },
5197
5295
  {
5198
5296
  id: "configurations",
5199
5297
  label: "Configura\xE7\xF5es",
5200
- icon: /* @__PURE__ */ jsx54(Gear, { size: 20 }),
5298
+ icon: /* @__PURE__ */ jsx55(Gear, { size: 20 }),
5201
5299
  to: "/configurations"
5202
5300
  }
5203
5301
  ]
@@ -5208,15 +5306,15 @@ var DEFAULT_GROUPS = [
5208
5306
  {
5209
5307
  id: "tutorials",
5210
5308
  label: "Tutoriais",
5211
- icon: /* @__PURE__ */ jsx54(GraduationCap, { size: 20 }),
5309
+ icon: /* @__PURE__ */ jsx55(GraduationCap, { size: 20 }),
5212
5310
  to: "/tutorials"
5213
5311
  }
5214
5312
  ]
5215
5313
  }
5216
5314
  ];
5217
5315
  var DEFAULT_HEADER_SLOT = /* @__PURE__ */ jsxs34("span", { className: "flex items-center gap-1.5", children: [
5218
- /* @__PURE__ */ jsx54(Bank, { size: 20, "aria-hidden": "true" }),
5219
- /* @__PURE__ */ jsx54("span", { className: "text-v2-base font-bold text-v2-fg-default", children: "HUMU" })
5316
+ /* @__PURE__ */ jsx55(Bank, { size: 20, "aria-hidden": "true" }),
5317
+ /* @__PURE__ */ jsx55("span", { className: "text-v2-base font-bold text-v2-fg-default", children: "HUMU" })
5220
5318
  ] });
5221
5319
  function AppShell({
5222
5320
  children,
@@ -5232,7 +5330,7 @@ function AppShell({
5232
5330
  defaultSidebarCollapsed = false
5233
5331
  }) {
5234
5332
  return /* @__PURE__ */ jsxs34("div", { className: "flex h-screen overflow-hidden bg-v2-canvas text-v2-fg-default", children: [
5235
- /* @__PURE__ */ jsx54(
5333
+ /* @__PURE__ */ jsx55(
5236
5334
  "a",
5237
5335
  {
5238
5336
  href: "#main-content",
@@ -5240,7 +5338,7 @@ function AppShell({
5240
5338
  children: "Pular para o conte\xFAdo"
5241
5339
  }
5242
5340
  ),
5243
- /* @__PURE__ */ jsx54(
5341
+ /* @__PURE__ */ jsx55(
5244
5342
  Sidebar,
5245
5343
  {
5246
5344
  groups: sidebarGroups,
@@ -5251,7 +5349,7 @@ function AppShell({
5251
5349
  }
5252
5350
  ),
5253
5351
  /* @__PURE__ */ jsxs34("div", { className: "flex min-h-0 min-w-0 flex-1 flex-col", children: [
5254
- /* @__PURE__ */ jsx54(
5352
+ /* @__PURE__ */ jsx55(
5255
5353
  Topbar,
5256
5354
  {
5257
5355
  pageTitle,
@@ -5261,14 +5359,14 @@ function AppShell({
5261
5359
  userMenu
5262
5360
  }
5263
5361
  ),
5264
- /* @__PURE__ */ jsx54(
5362
+ /* @__PURE__ */ jsx55(
5265
5363
  "main",
5266
5364
  {
5267
5365
  id: "main-content",
5268
5366
  role: "main",
5269
5367
  tabIndex: -1,
5270
5368
  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",
5271
- children: /* @__PURE__ */ jsx54("div", { className: "flex-1 rounded-v2-lg border border-v2-border-default bg-v2-shell p-4 shadow-sm sm:p-6", children })
5369
+ children: /* @__PURE__ */ jsx55("div", { className: "flex-1 rounded-v2-lg border border-v2-border-default bg-v2-shell p-4 shadow-sm sm:p-6", children })
5272
5370
  }
5273
5371
  )
5274
5372
  ] })
@@ -5279,7 +5377,7 @@ AppShell.displayName = "AppShell";
5279
5377
  // src/patterns/KpiHero/KpiHero.tsx
5280
5378
  import { useId as useId15 } from "react";
5281
5379
  import { ArrowUp as ArrowUp2, ArrowDown as ArrowDown2, Minus as Minus3 } from "@phosphor-icons/react";
5282
- import { Fragment as Fragment6, jsx as jsx55, jsxs as jsxs35 } from "react/jsx-runtime";
5380
+ import { Fragment as Fragment6, jsx as jsx56, jsxs as jsxs35 } from "react/jsx-runtime";
5283
5381
  var iconBgClass = {
5284
5382
  brand: "bg-v2-brand-bg-soft text-v2-brand-text-dark",
5285
5383
  info: "bg-v2-info-soft text-v2-info-500",
@@ -5300,9 +5398,9 @@ var trendToneClass = {
5300
5398
  flat: "bg-v2-bg-subtle text-v2-fg-muted"
5301
5399
  };
5302
5400
  var arrowIcon2 = {
5303
- up: /* @__PURE__ */ jsx55(ArrowUp2, { size: 11, weight: "bold", "aria-hidden": "true" }),
5304
- down: /* @__PURE__ */ jsx55(ArrowDown2, { size: 11, weight: "bold", "aria-hidden": "true" }),
5305
- flat: /* @__PURE__ */ jsx55(Minus3, { size: 11, weight: "bold", "aria-hidden": "true" })
5401
+ up: /* @__PURE__ */ jsx56(ArrowUp2, { size: 11, weight: "bold", "aria-hidden": "true" }),
5402
+ down: /* @__PURE__ */ jsx56(ArrowDown2, { size: 11, weight: "bold", "aria-hidden": "true" }),
5403
+ flat: /* @__PURE__ */ jsx56(Minus3, { size: 11, weight: "bold", "aria-hidden": "true" })
5306
5404
  };
5307
5405
  function buildSparklinePaths(data) {
5308
5406
  const width = 100;
@@ -5339,7 +5437,7 @@ function KpiHero({
5339
5437
  const sparkPaths = sparkline !== void 0 && hasSparkline ? buildSparklinePaths(sparkline) : null;
5340
5438
  const inner = /* @__PURE__ */ jsxs35(Fragment6, { children: [
5341
5439
  /* @__PURE__ */ jsxs35("div", { className: "flex items-start justify-between", children: [
5342
- /* @__PURE__ */ jsx55(
5440
+ /* @__PURE__ */ jsx56(
5343
5441
  "span",
5344
5442
  {
5345
5443
  className: cn(
@@ -5363,10 +5461,10 @@ function KpiHero({
5363
5461
  }
5364
5462
  )
5365
5463
  ] }),
5366
- /* @__PURE__ */ jsx55("span", { className: "text-v2-xs font-semibold uppercase tracking-wide text-v2-fg-muted", children: label }),
5367
- /* @__PURE__ */ jsx55("span", { className: "text-[30px] font-extrabold tabular-nums leading-none text-v2-fg-default", children: value }),
5368
- sub && /* @__PURE__ */ jsx55("span", { className: "text-v2-xs text-v2-fg-muted", children: sub }),
5369
- hasSparkline && sparkPaths && /* @__PURE__ */ jsx55("div", { className: cn("-mt-0.5 h-9 w-full", sparkColorClass[tone]), children: /* @__PURE__ */ jsxs35(
5464
+ /* @__PURE__ */ jsx56("span", { className: "text-v2-xs font-semibold uppercase tracking-wide text-v2-fg-muted", children: label }),
5465
+ /* @__PURE__ */ jsx56("span", { className: "text-[30px] font-extrabold tabular-nums leading-none text-v2-fg-default", children: value }),
5466
+ sub && /* @__PURE__ */ jsx56("span", { className: "text-v2-xs text-v2-fg-muted", children: sub }),
5467
+ hasSparkline && sparkPaths && /* @__PURE__ */ jsx56("div", { className: cn("-mt-0.5 h-9 w-full", sparkColorClass[tone]), children: /* @__PURE__ */ jsxs35(
5370
5468
  "svg",
5371
5469
  {
5372
5470
  viewBox: "0 0 100 36",
@@ -5374,11 +5472,11 @@ function KpiHero({
5374
5472
  className: "size-full",
5375
5473
  "aria-hidden": "true",
5376
5474
  children: [
5377
- /* @__PURE__ */ jsx55("defs", { children: /* @__PURE__ */ jsxs35("linearGradient", { id: gradientId, x1: "0", y1: "0", x2: "0", y2: "1", children: [
5378
- /* @__PURE__ */ jsx55("stop", { offset: "0%", stopColor: "currentColor", stopOpacity: "0.3" }),
5379
- /* @__PURE__ */ jsx55("stop", { offset: "100%", stopColor: "currentColor", stopOpacity: "0" })
5475
+ /* @__PURE__ */ jsx56("defs", { children: /* @__PURE__ */ jsxs35("linearGradient", { id: gradientId, x1: "0", y1: "0", x2: "0", y2: "1", children: [
5476
+ /* @__PURE__ */ jsx56("stop", { offset: "0%", stopColor: "currentColor", stopOpacity: "0.3" }),
5477
+ /* @__PURE__ */ jsx56("stop", { offset: "100%", stopColor: "currentColor", stopOpacity: "0" })
5380
5478
  ] }) }),
5381
- /* @__PURE__ */ jsx55(
5479
+ /* @__PURE__ */ jsx56(
5382
5480
  "path",
5383
5481
  {
5384
5482
  d: sparkPaths.area,
@@ -5386,7 +5484,7 @@ function KpiHero({
5386
5484
  stroke: "none"
5387
5485
  }
5388
5486
  ),
5389
- /* @__PURE__ */ jsx55(
5487
+ /* @__PURE__ */ jsx56(
5390
5488
  "path",
5391
5489
  {
5392
5490
  d: sparkPaths.line,
@@ -5399,17 +5497,17 @@ function KpiHero({
5399
5497
  ]
5400
5498
  }
5401
5499
  ) }),
5402
- to && cta && /* @__PURE__ */ jsx55("span", { className: "text-v2-xs font-bold text-v2-action-primary opacity-0 transition-opacity group-hover:opacity-100", children: cta })
5500
+ to && cta && /* @__PURE__ */ jsx56("span", { className: "text-v2-xs font-bold text-v2-action-primary opacity-0 transition-opacity group-hover:opacity-100", children: cta })
5403
5501
  ] });
5404
5502
  if (to) {
5405
5503
  const LinkComponent = linkComponent ?? DefaultLink;
5406
- return /* @__PURE__ */ jsx55(LinkComponent, { to, className: containerClass, children: inner });
5504
+ return /* @__PURE__ */ jsx56(LinkComponent, { to, className: containerClass, children: inner });
5407
5505
  }
5408
- return /* @__PURE__ */ jsx55("div", { className: containerClass, children: inner });
5506
+ return /* @__PURE__ */ jsx56("div", { className: containerClass, children: inner });
5409
5507
  }
5410
5508
 
5411
5509
  // src/patterns/DashboardBlock/DashboardBlock.tsx
5412
- import { Fragment as Fragment7, jsx as jsx56, jsxs as jsxs36 } from "react/jsx-runtime";
5510
+ import { Fragment as Fragment7, jsx as jsx57, jsxs as jsxs36 } from "react/jsx-runtime";
5413
5511
  function DashboardBlock({
5414
5512
  available,
5415
5513
  reason,
@@ -5420,7 +5518,7 @@ function DashboardBlock({
5420
5518
  children
5421
5519
  }) {
5422
5520
  if (loading) {
5423
- return /* @__PURE__ */ jsx56(
5521
+ return /* @__PURE__ */ jsx57(
5424
5522
  "div",
5425
5523
  {
5426
5524
  "data-testid": "dashboard-block-skeleton",
@@ -5431,8 +5529,8 @@ function DashboardBlock({
5431
5529
  if (!available) {
5432
5530
  if (reason === "source_data_missing") {
5433
5531
  return /* @__PURE__ */ jsxs36("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: [
5434
- /* @__PURE__ */ jsx56(Text, { size: "sm", weight: "semibold", children: "Fonte de dados indispon\xEDvel no momento" }),
5435
- onRetry && /* @__PURE__ */ jsx56(
5532
+ /* @__PURE__ */ jsx57(Text, { size: "sm", weight: "semibold", children: "Fonte de dados indispon\xEDvel no momento" }),
5533
+ onRetry && /* @__PURE__ */ jsx57(
5436
5534
  Button,
5437
5535
  {
5438
5536
  type: "button",
@@ -5447,15 +5545,15 @@ function DashboardBlock({
5447
5545
  return null;
5448
5546
  }
5449
5547
  if (isEmpty) {
5450
- return /* @__PURE__ */ jsx56("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__ */ jsx56(Text, { size: "sm", color: "muted", children: emptyLabel }) });
5548
+ return /* @__PURE__ */ jsx57("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__ */ jsx57(Text, { size: "sm", color: "muted", children: emptyLabel }) });
5451
5549
  }
5452
- return /* @__PURE__ */ jsx56(Fragment7, { children });
5550
+ return /* @__PURE__ */ jsx57(Fragment7, { children });
5453
5551
  }
5454
5552
 
5455
5553
  // src/patterns/LegalDocumentRenderer/LegalDocumentRenderer.tsx
5456
5554
  import ReactMarkdown from "react-markdown";
5457
5555
  import remarkGfm from "remark-gfm";
5458
- import { Fragment as Fragment8, jsx as jsx57, jsxs as jsxs37 } from "react/jsx-runtime";
5556
+ import { Fragment as Fragment8, jsx as jsx58, jsxs as jsxs37 } from "react/jsx-runtime";
5459
5557
  function formatLastUpdated(iso) {
5460
5558
  if (!iso) return "";
5461
5559
  const date = new Date(iso);
@@ -5466,16 +5564,16 @@ function formatLastUpdated(iso) {
5466
5564
  }).format(date);
5467
5565
  }
5468
5566
  var markdownComponents = {
5469
- h1: ({ children }) => /* @__PURE__ */ jsx57(Heading, { level: 2, size: "xl", children }),
5470
- h2: ({ children }) => /* @__PURE__ */ jsx57(Heading, { level: 3, size: "lg", children }),
5471
- h3: ({ children }) => /* @__PURE__ */ jsx57(Heading, { level: 4, size: "md", children }),
5472
- p: ({ children }) => /* @__PURE__ */ jsx57(Text, { size: "base", color: "default", className: "leading-relaxed", children }),
5473
- ul: ({ children }) => /* @__PURE__ */ jsx57("ul", { className: "ml-6 flex list-disc flex-col gap-1 text-v2-base text-v2-fg-default", children }),
5474
- ol: ({ children }) => /* @__PURE__ */ jsx57("ol", { className: "ml-6 flex list-decimal flex-col gap-1 text-v2-base text-v2-fg-default", children }),
5475
- li: ({ children }) => /* @__PURE__ */ jsx57("li", { children }),
5567
+ h1: ({ children }) => /* @__PURE__ */ jsx58(Heading, { level: 2, size: "xl", children }),
5568
+ h2: ({ children }) => /* @__PURE__ */ jsx58(Heading, { level: 3, size: "lg", children }),
5569
+ h3: ({ children }) => /* @__PURE__ */ jsx58(Heading, { level: 4, size: "md", children }),
5570
+ p: ({ children }) => /* @__PURE__ */ jsx58(Text, { size: "base", color: "default", className: "leading-relaxed", children }),
5571
+ ul: ({ children }) => /* @__PURE__ */ jsx58("ul", { className: "ml-6 flex list-disc flex-col gap-1 text-v2-base text-v2-fg-default", children }),
5572
+ ol: ({ children }) => /* @__PURE__ */ jsx58("ol", { className: "ml-6 flex list-decimal flex-col gap-1 text-v2-base text-v2-fg-default", children }),
5573
+ li: ({ children }) => /* @__PURE__ */ jsx58("li", { children }),
5476
5574
  a: ({ href, children }) => {
5477
5575
  const isExternal = href == null ? void 0 : href.startsWith("http");
5478
- return /* @__PURE__ */ jsx57(
5576
+ return /* @__PURE__ */ jsx58(
5479
5577
  "a",
5480
5578
  {
5481
5579
  href,
@@ -5486,14 +5584,14 @@ var markdownComponents = {
5486
5584
  }
5487
5585
  );
5488
5586
  },
5489
- strong: ({ children }) => /* @__PURE__ */ jsx57("strong", { className: "font-semibold text-v2-fg-default", children }),
5490
- em: ({ children }) => /* @__PURE__ */ jsx57("em", { className: "italic", children }),
5491
- hr: () => /* @__PURE__ */ jsx57("hr", { className: "my-2 border-t border-v2-border-default" }),
5492
- table: ({ children }) => /* @__PURE__ */ jsx57("div", { className: "overflow-x-auto", children: /* @__PURE__ */ jsx57("table", { className: "w-full border-collapse text-v2-sm", children }) }),
5493
- th: ({ children }) => /* @__PURE__ */ jsx57("th", { className: "border-b border-v2-border-default bg-v2-bg-subtle px-3 py-2 text-left font-semibold", children }),
5494
- td: ({ children }) => /* @__PURE__ */ jsx57("td", { className: "border-b border-v2-border-subtle px-3 py-2", children }),
5495
- blockquote: ({ children }) => /* @__PURE__ */ jsx57("blockquote", { className: "border-l-4 border-v2-border-default pl-4 italic text-v2-fg-muted", children }),
5496
- code: ({ children }) => /* @__PURE__ */ jsx57("code", { className: "rounded-v2-sm bg-v2-bg-subtle px-1 py-0.5 font-mono text-v2-xs", children })
5587
+ strong: ({ children }) => /* @__PURE__ */ jsx58("strong", { className: "font-semibold text-v2-fg-default", children }),
5588
+ em: ({ children }) => /* @__PURE__ */ jsx58("em", { className: "italic", children }),
5589
+ hr: () => /* @__PURE__ */ jsx58("hr", { className: "my-2 border-t border-v2-border-default" }),
5590
+ table: ({ children }) => /* @__PURE__ */ jsx58("div", { className: "overflow-x-auto", children: /* @__PURE__ */ jsx58("table", { className: "w-full border-collapse text-v2-sm", children }) }),
5591
+ th: ({ children }) => /* @__PURE__ */ jsx58("th", { className: "border-b border-v2-border-default bg-v2-bg-subtle px-3 py-2 text-left font-semibold", children }),
5592
+ td: ({ children }) => /* @__PURE__ */ jsx58("td", { className: "border-b border-v2-border-subtle px-3 py-2", children }),
5593
+ blockquote: ({ children }) => /* @__PURE__ */ jsx58("blockquote", { className: "border-l-4 border-v2-border-default pl-4 italic text-v2-fg-muted", children }),
5594
+ code: ({ children }) => /* @__PURE__ */ jsx58("code", { className: "rounded-v2-sm bg-v2-bg-subtle px-1 py-0.5 font-mono text-v2-xs", children })
5497
5595
  };
5498
5596
  function LegalDocumentRenderer({
5499
5597
  document: document2,
@@ -5506,16 +5604,16 @@ function LegalDocumentRenderer({
5506
5604
  className
5507
5605
  }) {
5508
5606
  if (isLoading) {
5509
- return /* @__PURE__ */ jsx57("div", { className: cn("flex flex-col gap-3", className), children: loadingState ?? /* @__PURE__ */ jsxs37(Fragment8, { children: [
5510
- /* @__PURE__ */ jsx57(Skeleton, { shape: "text", style: { width: "60%", height: 24 } }),
5511
- /* @__PURE__ */ jsx57(Skeleton, { shape: "text", style: { width: "100%", height: 14 } }),
5512
- /* @__PURE__ */ jsx57(Skeleton, { shape: "text", style: { width: "95%", height: 14 } }),
5513
- /* @__PURE__ */ jsx57(Skeleton, { shape: "text", style: { width: "90%", height: 14 } }),
5514
- /* @__PURE__ */ jsx57(Skeleton, { shape: "text", style: { width: "85%", height: 14 } })
5607
+ return /* @__PURE__ */ jsx58("div", { className: cn("flex flex-col gap-3", className), children: loadingState ?? /* @__PURE__ */ jsxs37(Fragment8, { children: [
5608
+ /* @__PURE__ */ jsx58(Skeleton, { shape: "text", style: { width: "60%", height: 24 } }),
5609
+ /* @__PURE__ */ jsx58(Skeleton, { shape: "text", style: { width: "100%", height: 14 } }),
5610
+ /* @__PURE__ */ jsx58(Skeleton, { shape: "text", style: { width: "95%", height: 14 } }),
5611
+ /* @__PURE__ */ jsx58(Skeleton, { shape: "text", style: { width: "90%", height: 14 } }),
5612
+ /* @__PURE__ */ jsx58(Skeleton, { shape: "text", style: { width: "85%", height: 14 } })
5515
5613
  ] }) });
5516
5614
  }
5517
5615
  if (error || !document2) {
5518
- return /* @__PURE__ */ jsx57(
5616
+ return /* @__PURE__ */ jsx58(
5519
5617
  "div",
5520
5618
  {
5521
5619
  className: cn(
@@ -5523,18 +5621,18 @@ function LegalDocumentRenderer({
5523
5621
  className
5524
5622
  ),
5525
5623
  role: "alert",
5526
- children: errorState ?? /* @__PURE__ */ jsx57(Text, { size: "sm", color: "default", children: "N\xE3o foi poss\xEDvel carregar o documento." })
5624
+ children: errorState ?? /* @__PURE__ */ jsx58(Text, { size: "sm", color: "default", children: "N\xE3o foi poss\xEDvel carregar o documento." })
5527
5625
  }
5528
5626
  );
5529
5627
  }
5530
5628
  return /* @__PURE__ */ jsxs37("article", { className: cn("flex flex-col gap-4", className), children: [
5531
- title && /* @__PURE__ */ jsx57(Heading, { level: 1, size: "2xl", children: title }),
5629
+ title && /* @__PURE__ */ jsx58(Heading, { level: 1, size: "2xl", children: title }),
5532
5630
  document2.lastUpdated && /* @__PURE__ */ jsxs37(Text, { size: "xs", color: "muted", children: [
5533
5631
  lastUpdatedLabel,
5534
5632
  ": ",
5535
5633
  formatLastUpdated(document2.lastUpdated)
5536
5634
  ] }),
5537
- /* @__PURE__ */ jsx57("div", { className: "flex flex-col gap-4 text-v2-base text-v2-fg-default", children: /* @__PURE__ */ jsx57(
5635
+ /* @__PURE__ */ jsx58("div", { className: "flex flex-col gap-4 text-v2-base text-v2-fg-default", children: /* @__PURE__ */ jsx58(
5538
5636
  ReactMarkdown,
5539
5637
  {
5540
5638
  remarkPlugins: [remarkGfm],
@@ -5552,7 +5650,7 @@ import { forwardRef as forwardRef42 } from "react";
5552
5650
  // src/patterns/SortableColumnHeader/SortableColumnHeader.tsx
5553
5651
  import { forwardRef as forwardRef41 } from "react";
5554
5652
  import { CaretDown as CaretDown5, CaretUp, CaretUpDown } from "@phosphor-icons/react";
5555
- import { jsx as jsx58, jsxs as jsxs38 } from "react/jsx-runtime";
5653
+ import { jsx as jsx59, jsxs as jsxs38 } from "react/jsx-runtime";
5556
5654
  function nextDirection(current, cycleMode) {
5557
5655
  if (cycleMode === "asc-desc") {
5558
5656
  return current === "asc" ? "desc" : "asc";
@@ -5596,8 +5694,8 @@ var SortableColumnHeader = forwardRef41(
5596
5694
  },
5597
5695
  ...props,
5598
5696
  children: [
5599
- /* @__PURE__ */ jsx58("span", { children: label }),
5600
- direction === "asc" ? /* @__PURE__ */ jsx58(CaretUp, { size: 12, weight: "bold", "aria-hidden": "true" }) : direction === "desc" ? /* @__PURE__ */ jsx58(CaretDown5, { size: 12, weight: "bold", "aria-hidden": "true" }) : /* @__PURE__ */ jsx58(CaretUpDown, { size: 12, "aria-hidden": "true", className: "opacity-60" })
5697
+ /* @__PURE__ */ jsx59("span", { children: label }),
5698
+ direction === "asc" ? /* @__PURE__ */ jsx59(CaretUp, { size: 12, weight: "bold", "aria-hidden": "true" }) : direction === "desc" ? /* @__PURE__ */ jsx59(CaretDown5, { size: 12, weight: "bold", "aria-hidden": "true" }) : /* @__PURE__ */ jsx59(CaretUpDown, { size: 12, "aria-hidden": "true", className: "opacity-60" })
5601
5699
  ]
5602
5700
  }
5603
5701
  );
@@ -5606,7 +5704,7 @@ var SortableColumnHeader = forwardRef41(
5606
5704
  SortableColumnHeader.displayName = "SortableColumnHeader";
5607
5705
 
5608
5706
  // src/patterns/DataTable/DataTable.tsx
5609
- import { jsx as jsx59, jsxs as jsxs39 } from "react/jsx-runtime";
5707
+ import { jsx as jsx60, jsxs as jsxs39 } from "react/jsx-runtime";
5610
5708
  var densityCellClass = {
5611
5709
  compact: "px-3 py-1.5",
5612
5710
  comfortable: "px-3 py-3"
@@ -5643,7 +5741,7 @@ function DataTableInner({
5643
5741
  }, ref) {
5644
5742
  const cellPadding = densityCellClass[density];
5645
5743
  const seenRowKeys = /* @__PURE__ */ new Set();
5646
- return /* @__PURE__ */ jsx59("div", { className: "overflow-x-auto", children: /* @__PURE__ */ jsxs39(
5744
+ return /* @__PURE__ */ jsx60("div", { className: "overflow-x-auto", children: /* @__PURE__ */ jsxs39(
5647
5745
  "table",
5648
5746
  {
5649
5747
  ref,
@@ -5651,14 +5749,14 @@ function DataTableInner({
5651
5749
  className: cn("w-full border-collapse text-v2-sm", className),
5652
5750
  ...props,
5653
5751
  children: [
5654
- /* @__PURE__ */ jsx59(
5752
+ /* @__PURE__ */ jsx60(
5655
5753
  "thead",
5656
5754
  {
5657
5755
  className: cn(
5658
5756
  "border-b border-v2-border-default bg-v2-bg-subtle",
5659
5757
  stickyHeader && "sticky top-0 z-10"
5660
5758
  ),
5661
- children: /* @__PURE__ */ jsx59("tr", { children: columns.map((col) => /* @__PURE__ */ jsx59(
5759
+ children: /* @__PURE__ */ jsx60("tr", { children: columns.map((col) => /* @__PURE__ */ jsx60(
5662
5760
  "th",
5663
5761
  {
5664
5762
  scope: "col",
@@ -5673,7 +5771,7 @@ function DataTableInner({
5673
5771
  col.align === "center" && "text-center",
5674
5772
  col.align !== "right" && col.align !== "center" && "text-left"
5675
5773
  ),
5676
- children: col.sortable && onSortChange ? /* @__PURE__ */ jsx59(
5774
+ children: col.sortable && onSortChange ? /* @__PURE__ */ jsx60(
5677
5775
  SortableColumnHeader,
5678
5776
  {
5679
5777
  label: col.label,
@@ -5696,18 +5794,18 @@ function DataTableInner({
5696
5794
  )) })
5697
5795
  }
5698
5796
  ),
5699
- /* @__PURE__ */ jsx59("tbody", { children: loading ? Array.from({ length: loadingRowCount }).map((_, idx) => /* @__PURE__ */ jsx59(
5797
+ /* @__PURE__ */ jsx60("tbody", { children: loading ? Array.from({ length: loadingRowCount }).map((_, idx) => /* @__PURE__ */ jsx60(
5700
5798
  "tr",
5701
5799
  {
5702
5800
  className: "border-b border-v2-border-default",
5703
- children: columns.map((col) => /* @__PURE__ */ jsx59("td", { className: cellPadding, children: /* @__PURE__ */ jsx59(Skeleton, { className: "h-4 w-full" }) }, col.key))
5801
+ children: columns.map((col) => /* @__PURE__ */ jsx60("td", { className: cellPadding, children: /* @__PURE__ */ jsx60(Skeleton, { className: "h-4 w-full" }) }, col.key))
5704
5802
  },
5705
5803
  `skeleton-${idx}`
5706
- )) : rows.length === 0 ? /* @__PURE__ */ jsx59("tr", { children: /* @__PURE__ */ jsx59("td", { colSpan: columns.length, className: "py-12 text-center", children: emptyState ?? /* @__PURE__ */ jsx59("span", { className: "text-v2-sm text-v2-fg-muted", children: "Nenhum item." }) }) }) : rows.map((row, index) => {
5804
+ )) : rows.length === 0 ? /* @__PURE__ */ jsx60("tr", { children: /* @__PURE__ */ jsx60("td", { colSpan: columns.length, className: "py-12 text-center", children: emptyState ?? /* @__PURE__ */ jsx60("span", { className: "text-v2-sm text-v2-fg-muted", children: "Nenhum item." }) }) }) : rows.map((row, index) => {
5707
5805
  const baseKey = rowKey(row);
5708
5806
  const uniqueKey = seenRowKeys.has(baseKey) ? `${baseKey}__${index}` : baseKey;
5709
5807
  seenRowKeys.add(baseKey);
5710
- return /* @__PURE__ */ jsx59(
5808
+ return /* @__PURE__ */ jsx60(
5711
5809
  "tr",
5712
5810
  {
5713
5811
  className: cn(
@@ -5715,7 +5813,7 @@ function DataTableInner({
5715
5813
  zebra && index % 2 === 1 && "bg-v2-bg-subtle/50",
5716
5814
  rowClassName == null ? void 0 : rowClassName(row, index)
5717
5815
  ),
5718
- children: columns.map((col) => /* @__PURE__ */ jsx59(
5816
+ children: columns.map((col) => /* @__PURE__ */ jsx60(
5719
5817
  "td",
5720
5818
  {
5721
5819
  className: cn(
@@ -5740,9 +5838,9 @@ var DataTable = forwardRef42(
5740
5838
  );
5741
5839
 
5742
5840
  // src/patterns/DataTablePagination/DataTablePagination.tsx
5743
- import { forwardRef as forwardRef43, useState as useState15 } from "react";
5841
+ import { forwardRef as forwardRef43, useState as useState16 } from "react";
5744
5842
  import { CaretDown as CaretDown6, CaretLeft, CaretRight as CaretRight2, Check as Check5 } from "@phosphor-icons/react";
5745
- import { jsx as jsx60, jsxs as jsxs40 } from "react/jsx-runtime";
5843
+ import { jsx as jsx61, jsxs as jsxs40 } from "react/jsx-runtime";
5746
5844
  var DEFAULT_PER_PAGE_OPTIONS = [5, 10, 20, 30, 50, 70, 100];
5747
5845
  function buildPageNumbers(page, totalPages, siblingCount) {
5748
5846
  if (totalPages <= 7) {
@@ -5779,7 +5877,7 @@ var DataTablePagination = forwardRef43(
5779
5877
  className,
5780
5878
  ...props
5781
5879
  }, ref) => {
5782
- const [perPageOpen, setPerPageOpen] = useState15(false);
5880
+ const [perPageOpen, setPerPageOpen] = useState16(false);
5783
5881
  const first = (page - 1) * perPage + 1;
5784
5882
  const last = Math.min(page * perPage, total);
5785
5883
  const totalPages = Math.max(1, Math.ceil(total / perPage));
@@ -5806,13 +5904,13 @@ var DataTablePagination = forwardRef43(
5806
5904
  " ",
5807
5905
  ofLabel,
5808
5906
  " ",
5809
- /* @__PURE__ */ jsx60("strong", { className: "tabular-nums text-v2-fg-default", children: total })
5907
+ /* @__PURE__ */ jsx61("strong", { className: "tabular-nums text-v2-fg-default", children: total })
5810
5908
  ] }),
5811
5909
  /* @__PURE__ */ jsxs40("div", { className: "flex items-center gap-3", children: [
5812
5910
  onPerPageChange && /* @__PURE__ */ jsxs40("div", { className: "flex items-center gap-2", children: [
5813
- /* @__PURE__ */ jsx60("span", { className: "text-v2-sm text-v2-fg-muted", children: perPageLabel }),
5911
+ /* @__PURE__ */ jsx61("span", { className: "text-v2-sm text-v2-fg-muted", children: perPageLabel }),
5814
5912
  /* @__PURE__ */ jsxs40(Popover, { open: perPageOpen, onOpenChange: setPerPageOpen, children: [
5815
- /* @__PURE__ */ jsx60(Popover.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs40(
5913
+ /* @__PURE__ */ jsx61(Popover.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs40(
5816
5914
  "button",
5817
5915
  {
5818
5916
  type: "button",
@@ -5821,14 +5919,14 @@ var DataTablePagination = forwardRef43(
5821
5919
  "aria-expanded": perPageOpen,
5822
5920
  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",
5823
5921
  children: [
5824
- /* @__PURE__ */ jsx60("span", { className: "tabular-nums", children: perPage }),
5825
- /* @__PURE__ */ jsx60(CaretDown6, { size: 12, weight: "bold", "aria-hidden": "true" })
5922
+ /* @__PURE__ */ jsx61("span", { className: "tabular-nums", children: perPage }),
5923
+ /* @__PURE__ */ jsx61(CaretDown6, { size: 12, weight: "bold", "aria-hidden": "true" })
5826
5924
  ]
5827
5925
  }
5828
5926
  ) }),
5829
- /* @__PURE__ */ jsx60(Popover.Content, { align: "end", className: "w-24 p-1", children: /* @__PURE__ */ jsx60("ul", { role: "listbox", className: "flex flex-col gap-0.5", children: perPageOptions.map((opt) => {
5927
+ /* @__PURE__ */ jsx61(Popover.Content, { align: "end", className: "w-24 p-1", children: /* @__PURE__ */ jsx61("ul", { role: "listbox", className: "flex flex-col gap-0.5", children: perPageOptions.map((opt) => {
5830
5928
  const selected = opt === perPage;
5831
- return /* @__PURE__ */ jsx60("li", { children: /* @__PURE__ */ jsxs40(
5929
+ return /* @__PURE__ */ jsx61("li", { children: /* @__PURE__ */ jsxs40(
5832
5930
  "button",
5833
5931
  {
5834
5932
  type: "button",
@@ -5844,7 +5942,7 @@ var DataTablePagination = forwardRef43(
5844
5942
  ),
5845
5943
  children: [
5846
5944
  opt,
5847
- selected && /* @__PURE__ */ jsx60(
5945
+ selected && /* @__PURE__ */ jsx61(
5848
5946
  Check5,
5849
5947
  {
5850
5948
  size: 12,
@@ -5859,7 +5957,7 @@ var DataTablePagination = forwardRef43(
5859
5957
  ] })
5860
5958
  ] }),
5861
5959
  /* @__PURE__ */ jsxs40("ul", { className: "flex items-center gap-1", children: [
5862
- /* @__PURE__ */ jsx60("li", { children: /* @__PURE__ */ jsx60(
5960
+ /* @__PURE__ */ jsx61("li", { children: /* @__PURE__ */ jsx61(
5863
5961
  "button",
5864
5962
  {
5865
5963
  type: "button",
@@ -5870,11 +5968,11 @@ var DataTablePagination = forwardRef43(
5870
5968
  "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",
5871
5969
  "disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:bg-transparent"
5872
5970
  ),
5873
- children: /* @__PURE__ */ jsx60(CaretLeft, { size: 14, weight: "bold", "aria-hidden": "true" })
5971
+ children: /* @__PURE__ */ jsx61(CaretLeft, { size: 14, weight: "bold", "aria-hidden": "true" })
5874
5972
  }
5875
5973
  ) }),
5876
5974
  pages.map(
5877
- (p, idx) => p === "ellipsis" ? /* @__PURE__ */ jsx60(
5975
+ (p, idx) => p === "ellipsis" ? /* @__PURE__ */ jsx61(
5878
5976
  "li",
5879
5977
  {
5880
5978
  "aria-hidden": "true",
@@ -5882,7 +5980,7 @@ var DataTablePagination = forwardRef43(
5882
5980
  children: "\u2026"
5883
5981
  },
5884
5982
  `ellipsis-${idx}`
5885
- ) : /* @__PURE__ */ jsx60("li", { children: /* @__PURE__ */ jsx60(
5983
+ ) : /* @__PURE__ */ jsx61("li", { children: /* @__PURE__ */ jsx61(
5886
5984
  "button",
5887
5985
  {
5888
5986
  type: "button",
@@ -5897,7 +5995,7 @@ var DataTablePagination = forwardRef43(
5897
5995
  }
5898
5996
  ) }, p)
5899
5997
  ),
5900
- /* @__PURE__ */ jsx60("li", { children: /* @__PURE__ */ jsx60(
5998
+ /* @__PURE__ */ jsx61("li", { children: /* @__PURE__ */ jsx61(
5901
5999
  "button",
5902
6000
  {
5903
6001
  type: "button",
@@ -5908,7 +6006,7 @@ var DataTablePagination = forwardRef43(
5908
6006
  "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",
5909
6007
  "disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:bg-transparent"
5910
6008
  ),
5911
- children: /* @__PURE__ */ jsx60(CaretRight2, { size: 14, weight: "bold", "aria-hidden": "true" })
6009
+ children: /* @__PURE__ */ jsx61(CaretRight2, { size: 14, weight: "bold", "aria-hidden": "true" })
5912
6010
  }
5913
6011
  ) })
5914
6012
  ] })
@@ -5921,9 +6019,9 @@ var DataTablePagination = forwardRef43(
5921
6019
  DataTablePagination.displayName = "DataTablePagination";
5922
6020
 
5923
6021
  // src/patterns/ReadOnlyDataView/ReadOnlyDataView.tsx
5924
- import { useState as useState16 } from "react";
6022
+ import { useState as useState17 } from "react";
5925
6023
  import { CaretDown as CaretDown7, CaretUp as CaretUp2, CaretUpDown as CaretUpDown2 } from "@phosphor-icons/react";
5926
- import { Fragment as Fragment9, jsx as jsx61, jsxs as jsxs41 } from "react/jsx-runtime";
6024
+ import { Fragment as Fragment9, jsx as jsx62, jsxs as jsxs41 } from "react/jsx-runtime";
5927
6025
  function formatDate(value, format3) {
5928
6026
  if (!value) return "\u2014";
5929
6027
  const date = value instanceof Date ? value : new Date(String(value));
@@ -5960,7 +6058,7 @@ function ReadOnlyDataView({
5960
6058
  density = "normal",
5961
6059
  className
5962
6060
  }) {
5963
- const [activeDialog, setActiveDialog] = useState16(null);
6061
+ const [activeDialog, setActiveDialog] = useState17(null);
5964
6062
  const cellPadding = density === "compact" ? "px-3 py-2" : "px-4 py-3";
5965
6063
  const headerPadding = density === "compact" ? "px-3 py-2" : "px-4 py-3";
5966
6064
  const handleHeaderClick = (column) => {
@@ -5978,18 +6076,18 @@ function ReadOnlyDataView({
5978
6076
  };
5979
6077
  const hasTriggerColumn = (column) => column.type !== "action" && Boolean(detailsDialogs == null ? void 0 : detailsDialogs.some((d) => d.triggerColumn === column.key));
5980
6078
  return /* @__PURE__ */ jsxs41(Fragment9, { children: [
5981
- /* @__PURE__ */ jsx61(
6079
+ /* @__PURE__ */ jsx62(
5982
6080
  Card,
5983
6081
  {
5984
6082
  padding: "none",
5985
6083
  variant: "default",
5986
6084
  className: cn("overflow-hidden", className),
5987
- children: /* @__PURE__ */ jsx61("div", { className: "overflow-x-auto", children: /* @__PURE__ */ jsxs41("table", { className: "w-full border-collapse", children: [
5988
- caption && /* @__PURE__ */ jsx61("caption", { className: "sr-only", children: caption }),
5989
- /* @__PURE__ */ jsx61("thead", { className: "bg-v2-bg-subtle", children: /* @__PURE__ */ jsx61("tr", { children: columns.map((column) => {
6085
+ children: /* @__PURE__ */ jsx62("div", { className: "overflow-x-auto", children: /* @__PURE__ */ jsxs41("table", { className: "w-full border-collapse", children: [
6086
+ caption && /* @__PURE__ */ jsx62("caption", { className: "sr-only", children: caption }),
6087
+ /* @__PURE__ */ jsx62("thead", { className: "bg-v2-bg-subtle", children: /* @__PURE__ */ jsx62("tr", { children: columns.map((column) => {
5990
6088
  const isSortable = column.type !== "action" && Boolean(column.sortable);
5991
6089
  const isSorted = column.type !== "action" && (sortValue == null ? void 0 : sortValue.column) === column.key;
5992
- return /* @__PURE__ */ jsx61(
6090
+ return /* @__PURE__ */ jsx62(
5993
6091
  "th",
5994
6092
  {
5995
6093
  scope: "col",
@@ -6009,21 +6107,21 @@ function ReadOnlyDataView({
6009
6107
  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",
6010
6108
  children: [
6011
6109
  column.label,
6012
- isSorted ? (sortValue == null ? void 0 : sortValue.direction) === "asc" ? /* @__PURE__ */ jsx61(
6110
+ isSorted ? (sortValue == null ? void 0 : sortValue.direction) === "asc" ? /* @__PURE__ */ jsx62(
6013
6111
  CaretUp2,
6014
6112
  {
6015
6113
  size: 12,
6016
6114
  weight: "bold",
6017
6115
  "aria-hidden": "true"
6018
6116
  }
6019
- ) : /* @__PURE__ */ jsx61(
6117
+ ) : /* @__PURE__ */ jsx62(
6020
6118
  CaretDown7,
6021
6119
  {
6022
6120
  size: 12,
6023
6121
  weight: "bold",
6024
6122
  "aria-hidden": "true"
6025
6123
  }
6026
- ) : /* @__PURE__ */ jsx61(CaretUpDown2, { size: 12, "aria-hidden": "true" })
6124
+ ) : /* @__PURE__ */ jsx62(CaretUpDown2, { size: 12, "aria-hidden": "true" })
6027
6125
  ]
6028
6126
  }
6029
6127
  ) : column.label
@@ -6031,27 +6129,27 @@ function ReadOnlyDataView({
6031
6129
  column.key ?? column.label
6032
6130
  );
6033
6131
  }) }) }),
6034
- /* @__PURE__ */ jsx61("tbody", { children: loading ? Array.from({ length: loadingRows }).map((_, i) => /* @__PURE__ */ jsx61(
6132
+ /* @__PURE__ */ jsx62("tbody", { children: loading ? Array.from({ length: loadingRows }).map((_, i) => /* @__PURE__ */ jsx62(
6035
6133
  "tr",
6036
6134
  {
6037
6135
  className: "border-t border-v2-border-subtle",
6038
- children: columns.map((column) => /* @__PURE__ */ jsx61(
6136
+ children: columns.map((column) => /* @__PURE__ */ jsx62(
6039
6137
  "td",
6040
6138
  {
6041
6139
  className: cn(cellPadding),
6042
- children: /* @__PURE__ */ jsx61(Skeleton, { shape: "text", style: { width: "80%" } })
6140
+ children: /* @__PURE__ */ jsx62(Skeleton, { shape: "text", style: { width: "80%" } })
6043
6141
  },
6044
6142
  column.key ?? column.label
6045
6143
  ))
6046
6144
  },
6047
6145
  `skeleton-${i}`
6048
- )) : list.length === 0 ? /* @__PURE__ */ jsx61("tr", { children: /* @__PURE__ */ jsx61("td", { colSpan: columns.length, className: "p-0", children: /* @__PURE__ */ jsx61("div", { className: "flex flex-col items-center justify-center gap-2 p-8 text-center", children: emptyState ?? /* @__PURE__ */ jsx61(Text, { size: "sm", color: "muted", children: "Nenhum registro encontrado" }) }) }) }) : list.map((row, rowIndex) => /* @__PURE__ */ jsx61(
6146
+ )) : list.length === 0 ? /* @__PURE__ */ jsx62("tr", { children: /* @__PURE__ */ jsx62("td", { colSpan: columns.length, className: "p-0", children: /* @__PURE__ */ jsx62("div", { className: "flex flex-col items-center justify-center gap-2 p-8 text-center", children: emptyState ?? /* @__PURE__ */ jsx62(Text, { size: "sm", color: "muted", children: "Nenhum registro encontrado" }) }) }) }) : list.map((row, rowIndex) => /* @__PURE__ */ jsx62(
6049
6147
  "tr",
6050
6148
  {
6051
6149
  className: "border-t border-v2-border-subtle hover:bg-v2-bg-subtle motion-reduce:transition-none",
6052
6150
  children: columns.map((column) => {
6053
6151
  const clickable = hasTriggerColumn(column);
6054
- return /* @__PURE__ */ jsx61(
6152
+ return /* @__PURE__ */ jsx62(
6055
6153
  "td",
6056
6154
  {
6057
6155
  className: cn(
@@ -6076,7 +6174,7 @@ function ReadOnlyDataView({
6076
6174
  ] }) })
6077
6175
  }
6078
6176
  ),
6079
- activeDialog && /* @__PURE__ */ jsx61(
6177
+ activeDialog && /* @__PURE__ */ jsx62(
6080
6178
  DialogRoot,
6081
6179
  {
6082
6180
  open: true,
@@ -6089,8 +6187,8 @@ function ReadOnlyDataView({
6089
6187
  size: activeDialog.dialog.size ?? "md",
6090
6188
  "aria-describedby": void 0,
6091
6189
  children: [
6092
- /* @__PURE__ */ jsx61(DialogRoot.Header, { children: /* @__PURE__ */ jsx61(DialogRoot.Title, { children: activeDialog.dialog.title }) }),
6093
- /* @__PURE__ */ jsx61(DialogRoot.Body, { children: activeDialog.details !== null ? activeDialog.dialog.renderDetails(activeDialog.details) : null })
6190
+ /* @__PURE__ */ jsx62(DialogRoot.Header, { children: /* @__PURE__ */ jsx62(DialogRoot.Title, { children: activeDialog.dialog.title }) }),
6191
+ /* @__PURE__ */ jsx62(DialogRoot.Body, { children: activeDialog.details !== null ? activeDialog.dialog.renderDetails(activeDialog.details) : null })
6094
6192
  ]
6095
6193
  }
6096
6194
  )
@@ -6113,7 +6211,7 @@ function renderCell(column, row) {
6113
6211
  const value = String(raw);
6114
6212
  const variant = column.variantMap[value] ?? "default";
6115
6213
  const display = ((_a = column.labelMap) == null ? void 0 : _a[value]) ?? value;
6116
- return /* @__PURE__ */ jsx61(Badge, { variant, children: display });
6214
+ return /* @__PURE__ */ jsx62(Badge, { variant, children: display });
6117
6215
  }
6118
6216
  if (column.type === "date") {
6119
6217
  return formatDate(raw, column.format);
@@ -6125,9 +6223,9 @@ function renderCell(column, row) {
6125
6223
  }
6126
6224
 
6127
6225
  // src/patterns/NotificationCenter/NotificationCenter.tsx
6128
- import { forwardRef as forwardRef44, useState as useState17 } from "react";
6226
+ import { forwardRef as forwardRef44, useState as useState18 } from "react";
6129
6227
  import { Bell } from "@phosphor-icons/react";
6130
- import { jsx as jsx62, jsxs as jsxs42 } from "react/jsx-runtime";
6228
+ import { jsx as jsx63, jsxs as jsxs42 } from "react/jsx-runtime";
6131
6229
  var severityDotClass = {
6132
6230
  info: "bg-v2-info-500",
6133
6231
  success: "bg-v2-success-500",
@@ -6160,11 +6258,11 @@ var NotificationCenter = forwardRef44(
6160
6258
  triggerAriaLabel = "Notifica\xE7\xF5es",
6161
6259
  relativeTime
6162
6260
  }, ref) => {
6163
- const [filter, setFilter] = useState17("unread");
6261
+ const [filter, setFilter] = useState18("unread");
6164
6262
  const relativeTimeFn = relativeTime ?? defaultRelativeTime;
6165
6263
  const filteredNotifs = filter === "unread" ? notifications.filter((n) => !n.read) : notifications;
6166
6264
  return /* @__PURE__ */ jsxs42(Popover, { children: [
6167
- /* @__PURE__ */ jsx62(Popover.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs42(
6265
+ /* @__PURE__ */ jsx63(Popover.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs42(
6168
6266
  "button",
6169
6267
  {
6170
6268
  ref,
@@ -6172,15 +6270,15 @@ var NotificationCenter = forwardRef44(
6172
6270
  "aria-label": `${triggerAriaLabel}${unreadCount > 0 ? ` (${unreadCount} n\xE3o lidas)` : ""}`,
6173
6271
  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",
6174
6272
  children: [
6175
- /* @__PURE__ */ jsx62(Bell, { size: 18, "aria-hidden": "true" }),
6176
- unreadCount > 0 && /* @__PURE__ */ jsx62("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 })
6273
+ /* @__PURE__ */ jsx63(Bell, { size: 18, "aria-hidden": "true" }),
6274
+ unreadCount > 0 && /* @__PURE__ */ jsx63("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 })
6177
6275
  ]
6178
6276
  }
6179
6277
  ) }),
6180
- /* @__PURE__ */ jsx62(Popover.Content, { size: "auto", align: "end", className: "p-0", children: /* @__PURE__ */ jsxs42("div", { className: "flex w-[min(360px,calc(100vw-2rem))] flex-col", children: [
6278
+ /* @__PURE__ */ jsx63(Popover.Content, { size: "auto", align: "end", className: "p-0", children: /* @__PURE__ */ jsxs42("div", { className: "flex w-[min(360px,calc(100vw-2rem))] flex-col", children: [
6181
6279
  /* @__PURE__ */ jsxs42("div", { className: "flex items-center justify-between border-b border-v2-border-default px-4 py-3", children: [
6182
- /* @__PURE__ */ jsx62(Heading, { level: 3, size: "sm", children: "Notifica\xE7\xF5es" }),
6183
- unreadCount > 0 && onMarkAllRead && /* @__PURE__ */ jsx62(Button, { variant: "secondary", size: "sm", onClick: onMarkAllRead, children: "Marcar todas como lidas" })
6280
+ /* @__PURE__ */ jsx63(Heading, { level: 3, size: "sm", children: "Notifica\xE7\xF5es" }),
6281
+ unreadCount > 0 && onMarkAllRead && /* @__PURE__ */ jsx63(Button, { variant: "secondary", size: "sm", onClick: onMarkAllRead, children: "Marcar todas como lidas" })
6184
6282
  ] }),
6185
6283
  /* @__PURE__ */ jsxs42(
6186
6284
  "div",
@@ -6227,13 +6325,13 @@ var NotificationCenter = forwardRef44(
6227
6325
  ]
6228
6326
  }
6229
6327
  ),
6230
- /* @__PURE__ */ jsx62(
6328
+ /* @__PURE__ */ jsx63(
6231
6329
  "ul",
6232
6330
  {
6233
6331
  role: "status",
6234
6332
  "aria-live": "polite",
6235
6333
  className: "max-h-[400px] overflow-y-auto",
6236
- children: filteredNotifs.length === 0 ? /* @__PURE__ */ jsx62("li", { className: "px-4 py-6 text-center", children: /* @__PURE__ */ jsx62(Text, { size: "sm", color: "muted", children: emptyMessage }) }) : filteredNotifs.map((n) => /* @__PURE__ */ jsx62("li", { children: /* @__PURE__ */ jsxs42(
6334
+ children: filteredNotifs.length === 0 ? /* @__PURE__ */ jsx63("li", { className: "px-4 py-6 text-center", children: /* @__PURE__ */ jsx63(Text, { size: "sm", color: "muted", children: emptyMessage }) }) : filteredNotifs.map((n) => /* @__PURE__ */ jsx63("li", { children: /* @__PURE__ */ jsxs42(
6237
6335
  "button",
6238
6336
  {
6239
6337
  type: "button",
@@ -6243,7 +6341,7 @@ var NotificationCenter = forwardRef44(
6243
6341
  !n.read && "bg-v2-brand-bg-soft/30"
6244
6342
  ),
6245
6343
  children: [
6246
- /* @__PURE__ */ jsx62(
6344
+ /* @__PURE__ */ jsx63(
6247
6345
  "span",
6248
6346
  {
6249
6347
  "aria-hidden": "true",
@@ -6254,11 +6352,11 @@ var NotificationCenter = forwardRef44(
6254
6352
  }
6255
6353
  ),
6256
6354
  /* @__PURE__ */ jsxs42("div", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
6257
- /* @__PURE__ */ jsx62(Text, { size: "sm", weight: "semibold", children: n.title }),
6258
- n.description && /* @__PURE__ */ jsx62(Text, { size: "xs", color: "muted", children: n.description }),
6259
- /* @__PURE__ */ jsx62(Text, { size: "xs", color: "subtle", children: relativeTimeFn(n.timestamp) })
6355
+ /* @__PURE__ */ jsx63(Text, { size: "sm", weight: "semibold", children: n.title }),
6356
+ n.description && /* @__PURE__ */ jsx63(Text, { size: "xs", color: "muted", children: n.description }),
6357
+ /* @__PURE__ */ jsx63(Text, { size: "xs", color: "subtle", children: relativeTimeFn(n.timestamp) })
6260
6358
  ] }),
6261
- !n.read && /* @__PURE__ */ jsx62(
6359
+ !n.read && /* @__PURE__ */ jsx63(
6262
6360
  "span",
6263
6361
  {
6264
6362
  "aria-label": "N\xE3o lida",
@@ -6279,7 +6377,7 @@ NotificationCenter.displayName = "NotificationCenter";
6279
6377
  // src/patterns/NavigatorTile/NavigatorTile.tsx
6280
6378
  import { forwardRef as forwardRef45 } from "react";
6281
6379
  import { CaretRight as CaretRight3 } from "@phosphor-icons/react";
6282
- import { Fragment as Fragment10, jsx as jsx63, jsxs as jsxs43 } from "react/jsx-runtime";
6380
+ import { Fragment as Fragment10, jsx as jsx64, jsxs as jsxs43 } from "react/jsx-runtime";
6283
6381
  var NavigatorTile = forwardRef45(
6284
6382
  ({
6285
6383
  icon,
@@ -6292,7 +6390,7 @@ var NavigatorTile = forwardRef45(
6292
6390
  className,
6293
6391
  children,
6294
6392
  ...props
6295
- }, ref) => /* @__PURE__ */ jsx63(
6393
+ }, ref) => /* @__PURE__ */ jsx64(
6296
6394
  Card,
6297
6395
  {
6298
6396
  ref,
@@ -6308,14 +6406,14 @@ var NavigatorTile = forwardRef45(
6308
6406
  ...props,
6309
6407
  children: asChild ? children : /* @__PURE__ */ jsxs43(Fragment10, { children: [
6310
6408
  /* @__PURE__ */ jsxs43("div", { className: "flex items-start justify-between gap-3", children: [
6311
- icon && /* @__PURE__ */ jsx63("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 }),
6312
- badge && /* @__PURE__ */ jsx63("span", { className: "shrink-0", children: badge })
6409
+ icon && /* @__PURE__ */ jsx64("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 }),
6410
+ badge && /* @__PURE__ */ jsx64("span", { className: "shrink-0", children: badge })
6313
6411
  ] }),
6314
6412
  /* @__PURE__ */ jsxs43("div", { className: "flex flex-col gap-1", children: [
6315
- /* @__PURE__ */ jsx63(Heading, { level: 3, size: "xs", children: title }),
6316
- description && /* @__PURE__ */ jsx63(Text, { size: "sm", color: "muted", children: description })
6413
+ /* @__PURE__ */ jsx64(Heading, { level: 3, size: "xs", children: title }),
6414
+ description && /* @__PURE__ */ jsx64(Text, { size: "sm", color: "muted", children: description })
6317
6415
  ] }),
6318
- showChevron && /* @__PURE__ */ jsx63("div", { className: "flex justify-end", children: /* @__PURE__ */ jsx63(
6416
+ showChevron && /* @__PURE__ */ jsx64("div", { className: "flex justify-end", children: /* @__PURE__ */ jsx64(
6319
6417
  CaretRight3,
6320
6418
  {
6321
6419
  size: 16,
@@ -6338,7 +6436,7 @@ var columnClass = {
6338
6436
  var NavigatorTileGrid = forwardRef45(
6339
6437
  ({ columns = 3, emptyState, isEmpty = false, className, children, ...props }, ref) => {
6340
6438
  if (isEmpty && emptyState) {
6341
- return /* @__PURE__ */ jsx63(
6439
+ return /* @__PURE__ */ jsx64(
6342
6440
  "div",
6343
6441
  {
6344
6442
  ref,
@@ -6351,7 +6449,7 @@ var NavigatorTileGrid = forwardRef45(
6351
6449
  }
6352
6450
  );
6353
6451
  }
6354
- return /* @__PURE__ */ jsx63(
6452
+ return /* @__PURE__ */ jsx64(
6355
6453
  "div",
6356
6454
  {
6357
6455
  ref,
@@ -6366,7 +6464,7 @@ NavigatorTileGrid.displayName = "NavigatorTileGrid";
6366
6464
 
6367
6465
  // src/patterns/PublicPageLayout/PublicPageLayout.tsx
6368
6466
  import { forwardRef as forwardRef46 } from "react";
6369
- import { jsx as jsx64, jsxs as jsxs44 } from "react/jsx-runtime";
6467
+ import { jsx as jsx65, jsxs as jsxs44 } from "react/jsx-runtime";
6370
6468
  var maxWidthClass = {
6371
6469
  sm: "max-w-md",
6372
6470
  md: "max-w-2xl",
@@ -6395,7 +6493,7 @@ var PublicPageLayout = forwardRef46(
6395
6493
  ),
6396
6494
  ...props,
6397
6495
  children: [
6398
- /* @__PURE__ */ jsx64(
6496
+ /* @__PURE__ */ jsx65(
6399
6497
  "a",
6400
6498
  {
6401
6499
  href: `#${mainId}`,
@@ -6403,21 +6501,21 @@ var PublicPageLayout = forwardRef46(
6403
6501
  children: skipToMainLabel
6404
6502
  }
6405
6503
  ),
6406
- header && /* @__PURE__ */ jsx64("header", { className: "border-b border-v2-border-default bg-v2-panel", children: /* @__PURE__ */ jsx64(
6504
+ header && /* @__PURE__ */ jsx65("header", { className: "border-b border-v2-border-default bg-v2-panel", children: /* @__PURE__ */ jsx65(
6407
6505
  "div",
6408
6506
  {
6409
6507
  className: cn("mx-auto w-full px-6 py-4", maxWidthClass[maxWidth]),
6410
6508
  children: header
6411
6509
  }
6412
6510
  ) }),
6413
- /* @__PURE__ */ jsx64("main", { id: mainId, className: "flex-1", children: /* @__PURE__ */ jsx64(
6511
+ /* @__PURE__ */ jsx65("main", { id: mainId, className: "flex-1", children: /* @__PURE__ */ jsx65(
6414
6512
  "div",
6415
6513
  {
6416
6514
  className: cn("mx-auto w-full px-6 py-8", maxWidthClass[maxWidth]),
6417
6515
  children
6418
6516
  }
6419
6517
  ) }),
6420
- footer && /* @__PURE__ */ jsx64("footer", { className: "border-t border-v2-border-default bg-v2-panel", children: /* @__PURE__ */ jsx64(
6518
+ footer && /* @__PURE__ */ jsx65("footer", { className: "border-t border-v2-border-default bg-v2-panel", children: /* @__PURE__ */ jsx65(
6421
6519
  "div",
6422
6520
  {
6423
6521
  className: cn("mx-auto w-full px-6 py-4", maxWidthClass[maxWidth]),
@@ -6433,30 +6531,30 @@ PublicPageLayout.displayName = "PublicPageLayout";
6433
6531
  // src/patterns/ErrorPageLayout/ErrorPageLayout.tsx
6434
6532
  import { forwardRef as forwardRef47 } from "react";
6435
6533
  import { ArrowLeft } from "@phosphor-icons/react";
6436
- import { jsx as jsx65, jsxs as jsxs45 } from "react/jsx-runtime";
6534
+ import { jsx as jsx66, jsxs as jsxs45 } from "react/jsx-runtime";
6437
6535
  function isHrefAction(action) {
6438
6536
  return Boolean(action && "href" in action);
6439
6537
  }
6440
6538
  var ErrorPageLayout = forwardRef47(
6441
- ({ code, title, description, primaryAction, illustration, ...layoutProps }, ref) => /* @__PURE__ */ jsx65(PublicPageLayout, { ref, ...layoutProps, children: /* @__PURE__ */ jsxs45("div", { className: "flex flex-col items-center justify-center gap-6 py-12 text-center", children: [
6442
- code && /* @__PURE__ */ jsx65("div", { className: "text-v2-6xl font-bold leading-none text-v2-action-primary", children: code }),
6539
+ ({ code, title, description, primaryAction, illustration, ...layoutProps }, ref) => /* @__PURE__ */ jsx66(PublicPageLayout, { ref, ...layoutProps, children: /* @__PURE__ */ jsxs45("div", { className: "flex flex-col items-center justify-center gap-6 py-12 text-center", children: [
6540
+ code && /* @__PURE__ */ jsx66("div", { className: "text-v2-6xl font-bold leading-none text-v2-action-primary", children: code }),
6443
6541
  illustration,
6444
6542
  /* @__PURE__ */ jsxs45("div", { className: "flex flex-col gap-2", children: [
6445
- /* @__PURE__ */ jsx65(Heading, { level: 1, size: "xl", children: title }),
6446
- description && /* @__PURE__ */ jsx65(Text, { size: "base", color: "muted", className: "max-w-md", children: description })
6543
+ /* @__PURE__ */ jsx66(Heading, { level: 1, size: "xl", children: title }),
6544
+ description && /* @__PURE__ */ jsx66(Text, { size: "base", color: "muted", className: "max-w-md", children: description })
6447
6545
  ] }),
6448
- primaryAction && (isHrefAction(primaryAction) ? /* @__PURE__ */ jsx65(
6546
+ primaryAction && (isHrefAction(primaryAction) ? /* @__PURE__ */ jsx66(
6449
6547
  Button,
6450
6548
  {
6451
6549
  asChild: true,
6452
- leftIcon: /* @__PURE__ */ jsx65(ArrowLeft, { size: 16, weight: "bold", "aria-hidden": "true" }),
6453
- children: /* @__PURE__ */ jsx65("a", { href: primaryAction.href, children: primaryAction.label })
6550
+ leftIcon: /* @__PURE__ */ jsx66(ArrowLeft, { size: 16, weight: "bold", "aria-hidden": "true" }),
6551
+ children: /* @__PURE__ */ jsx66("a", { href: primaryAction.href, children: primaryAction.label })
6454
6552
  }
6455
- ) : /* @__PURE__ */ jsx65(
6553
+ ) : /* @__PURE__ */ jsx66(
6456
6554
  Button,
6457
6555
  {
6458
6556
  onClick: primaryAction.onClick,
6459
- leftIcon: /* @__PURE__ */ jsx65(ArrowLeft, { size: 16, weight: "bold", "aria-hidden": "true" }),
6557
+ leftIcon: /* @__PURE__ */ jsx66(ArrowLeft, { size: 16, weight: "bold", "aria-hidden": "true" }),
6460
6558
  children: primaryAction.label
6461
6559
  }
6462
6560
  ))
@@ -6466,7 +6564,7 @@ ErrorPageLayout.displayName = "ErrorPageLayout";
6466
6564
 
6467
6565
  // src/patterns/TutorialCard/TutorialCard.tsx
6468
6566
  import { forwardRef as forwardRef48 } from "react";
6469
- import { Fragment as Fragment11, jsx as jsx66, jsxs as jsxs46 } from "react/jsx-runtime";
6567
+ import { Fragment as Fragment11, jsx as jsx67, jsxs as jsxs46 } from "react/jsx-runtime";
6470
6568
  var TutorialCard = forwardRef48(
6471
6569
  ({
6472
6570
  title,
@@ -6478,7 +6576,7 @@ var TutorialCard = forwardRef48(
6478
6576
  className,
6479
6577
  children,
6480
6578
  ...props
6481
- }, ref) => /* @__PURE__ */ jsx66(
6579
+ }, ref) => /* @__PURE__ */ jsx67(
6482
6580
  Card,
6483
6581
  {
6484
6582
  ref,
@@ -6490,12 +6588,12 @@ var TutorialCard = forwardRef48(
6490
6588
  children: asChild ? children : /* @__PURE__ */ jsxs46(Fragment11, { children: [
6491
6589
  media && /* @__PURE__ */ jsxs46("div", { className: "relative aspect-video w-full overflow-hidden bg-v2-bg-subtle", children: [
6492
6590
  media,
6493
- category && /* @__PURE__ */ jsx66("div", { className: "absolute left-3 top-3", children: /* @__PURE__ */ jsx66(Badge, { variant: "default", size: "sm", children: category }) })
6591
+ category && /* @__PURE__ */ jsx67("div", { className: "absolute left-3 top-3", children: /* @__PURE__ */ jsx67(Badge, { variant: "default", size: "sm", children: category }) })
6494
6592
  ] }),
6495
6593
  /* @__PURE__ */ jsxs46("div", { className: "flex flex-1 flex-col gap-2 p-4", children: [
6496
- /* @__PURE__ */ jsx66(Heading, { level: 3, size: "sm", children: title }),
6497
- description && /* @__PURE__ */ jsx66(Text, { size: "sm", color: "muted", children: description }),
6498
- duration && /* @__PURE__ */ jsx66("div", { className: "mt-auto pt-2", children: /* @__PURE__ */ jsx66(Badge, { variant: "info", size: "sm", children: duration }) })
6594
+ /* @__PURE__ */ jsx67(Heading, { level: 3, size: "sm", children: title }),
6595
+ description && /* @__PURE__ */ jsx67(Text, { size: "sm", color: "muted", children: description }),
6596
+ duration && /* @__PURE__ */ jsx67("div", { className: "mt-auto pt-2", children: /* @__PURE__ */ jsx67(Badge, { variant: "info", size: "sm", children: duration }) })
6499
6597
  ] })
6500
6598
  ] })
6501
6599
  }
@@ -6505,7 +6603,7 @@ TutorialCard.displayName = "TutorialCard";
6505
6603
 
6506
6604
  // src/patterns/KpiCard/KpiCard.tsx
6507
6605
  import { forwardRef as forwardRef49 } from "react";
6508
- import { jsx as jsx67, jsxs as jsxs47 } from "react/jsx-runtime";
6606
+ import { jsx as jsx68, jsxs as jsxs47 } from "react/jsx-runtime";
6509
6607
  var variantAccent = {
6510
6608
  neutral: "",
6511
6609
  success: "border-l-4 border-l-v2-success-500",
@@ -6524,11 +6622,11 @@ var KpiCard = forwardRef49(
6524
6622
  ...props,
6525
6623
  children: [
6526
6624
  /* @__PURE__ */ jsxs47("div", { className: "flex items-start justify-between gap-2", children: [
6527
- /* @__PURE__ */ jsx67(Heading, { level: 2, size: "sm", children: label }),
6528
- icon && /* @__PURE__ */ jsx67("span", { "aria-hidden": "true", children: icon })
6625
+ /* @__PURE__ */ jsx68(Heading, { level: 2, size: "sm", children: label }),
6626
+ icon && /* @__PURE__ */ jsx68("span", { "aria-hidden": "true", children: icon })
6529
6627
  ] }),
6530
- /* @__PURE__ */ jsx67(Text, { size: "lg", weight: "semibold", className: "mt-2", children: value }),
6531
- sublabel && /* @__PURE__ */ jsx67(Text, { size: "sm", color: "muted", children: sublabel })
6628
+ /* @__PURE__ */ jsx68(Text, { size: "lg", weight: "semibold", className: "mt-2", children: value }),
6629
+ sublabel && /* @__PURE__ */ jsx68(Text, { size: "sm", color: "muted", children: sublabel })
6532
6630
  ]
6533
6631
  }
6534
6632
  )
@@ -6536,10 +6634,10 @@ var KpiCard = forwardRef49(
6536
6634
  KpiCard.displayName = "KpiCard";
6537
6635
 
6538
6636
  // src/patterns/CommandPalette/CommandPalette.tsx
6539
- import { useEffect as useEffect9, useRef as useRef9, useState as useState18 } from "react";
6637
+ import { useEffect as useEffect10, useRef as useRef9, useState as useState19 } from "react";
6540
6638
  import { createPortal } from "react-dom";
6541
6639
  import { MagnifyingGlass as MagnifyingGlass3 } from "@phosphor-icons/react";
6542
- import { Fragment as Fragment12, jsx as jsx68, jsxs as jsxs48 } from "react/jsx-runtime";
6640
+ import { Fragment as Fragment12, jsx as jsx69, jsxs as jsxs48 } from "react/jsx-runtime";
6543
6641
  function CommandPalette({
6544
6642
  open,
6545
6643
  onOpenChange,
@@ -6553,24 +6651,24 @@ function CommandPalette({
6553
6651
  emptyMessage = "Sem resultados.",
6554
6652
  ariaLabel = "Paleta de comandos"
6555
6653
  }) {
6556
- const [queryValue, setQueryValue] = useState18(query ?? "");
6557
- const [highlightedId, setHighlightedId] = useState18(null);
6654
+ const [queryValue, setQueryValue] = useState19(query ?? "");
6655
+ const [highlightedId, setHighlightedId] = useState19(null);
6558
6656
  const inputRef = useRef9(null);
6559
6657
  const flatItems = groups.flatMap((g) => g.items.filter((i) => !i.disabled));
6560
6658
  const filteredGroups = groups.filter((g) => g.loading || g.items.length > 0);
6561
- useEffect9(() => {
6659
+ useEffect10(() => {
6562
6660
  var _a;
6563
6661
  if (open) {
6564
6662
  (_a = inputRef.current) == null ? void 0 : _a.focus();
6565
6663
  }
6566
6664
  }, [open]);
6567
- useEffect9(() => {
6665
+ useEffect10(() => {
6568
6666
  var _a;
6569
6667
  if (open) {
6570
6668
  setHighlightedId(((_a = flatItems[0]) == null ? void 0 : _a.id) ?? null);
6571
6669
  }
6572
6670
  }, [open, groups]);
6573
- useEffect9(() => {
6671
+ useEffect10(() => {
6574
6672
  if (!enableShortcut) return;
6575
6673
  const handler = (e) => {
6576
6674
  if ((e.metaKey || e.ctrlKey) && e.key === "k") {
@@ -6620,7 +6718,7 @@ function CommandPalette({
6620
6718
  "aria-label": ariaLabel,
6621
6719
  className: "fixed inset-0 z-50 flex items-start justify-center p-4 pt-[10vh]",
6622
6720
  children: [
6623
- /* @__PURE__ */ jsx68(
6721
+ /* @__PURE__ */ jsx69(
6624
6722
  "button",
6625
6723
  {
6626
6724
  type: "button",
@@ -6631,7 +6729,7 @@ function CommandPalette({
6631
6729
  ),
6632
6730
  /* @__PURE__ */ jsxs48("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: [
6633
6731
  /* @__PURE__ */ jsxs48("div", { className: "flex items-center gap-3 border-b border-v2-border-default px-4 py-3", children: [
6634
- /* @__PURE__ */ jsx68(
6732
+ /* @__PURE__ */ jsx69(
6635
6733
  MagnifyingGlass3,
6636
6734
  {
6637
6735
  size: 18,
@@ -6639,7 +6737,7 @@ function CommandPalette({
6639
6737
  className: "text-v2-fg-muted"
6640
6738
  }
6641
6739
  ),
6642
- /* @__PURE__ */ jsx68(
6740
+ /* @__PURE__ */ jsx69(
6643
6741
  "input",
6644
6742
  {
6645
6743
  ref: inputRef,
@@ -6659,24 +6757,24 @@ function CommandPalette({
6659
6757
  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"
6660
6758
  }
6661
6759
  ),
6662
- /* @__PURE__ */ jsx68("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" })
6760
+ /* @__PURE__ */ jsx69("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" })
6663
6761
  ] }),
6664
- /* @__PURE__ */ jsx68(
6762
+ /* @__PURE__ */ jsx69(
6665
6763
  "div",
6666
6764
  {
6667
6765
  id: "command-palette-listbox",
6668
6766
  role: "listbox",
6669
6767
  className: "max-h-[60vh] overflow-y-auto",
6670
- children: filteredGroups.length === 0 ? /* @__PURE__ */ jsx68("p", { className: "px-4 py-3 text-v2-sm text-v2-fg-muted", children: emptyMessage }) : filteredGroups.map((group) => /* @__PURE__ */ jsxs48(
6768
+ children: filteredGroups.length === 0 ? /* @__PURE__ */ jsx69("p", { className: "px-4 py-3 text-v2-sm text-v2-fg-muted", children: emptyMessage }) : filteredGroups.map((group) => /* @__PURE__ */ jsxs48(
6671
6769
  "section",
6672
6770
  {
6673
6771
  "aria-label": group.label,
6674
6772
  className: "border-b border-v2-border-default last:border-b-0",
6675
6773
  children: [
6676
- group.label && /* @__PURE__ */ jsx68("h3", { className: "px-4 pb-1 pt-3 text-v2-xs font-semibold uppercase tracking-wider text-v2-fg-muted", children: group.label }),
6677
- group.loading ? /* @__PURE__ */ jsx68("p", { className: "px-4 py-2 text-v2-xs text-v2-fg-muted", children: "Buscando\u2026" }) : group.items.length === 0 ? /* @__PURE__ */ jsx68("p", { className: "px-4 py-2 text-v2-xs text-v2-fg-muted", children: group.emptyMessage ?? emptyMessage }) : /* @__PURE__ */ jsx68("ul", { children: group.items.map((item) => {
6774
+ group.label && /* @__PURE__ */ jsx69("h3", { className: "px-4 pb-1 pt-3 text-v2-xs font-semibold uppercase tracking-wider text-v2-fg-muted", children: group.label }),
6775
+ group.loading ? /* @__PURE__ */ jsx69("p", { className: "px-4 py-2 text-v2-xs text-v2-fg-muted", children: "Buscando\u2026" }) : group.items.length === 0 ? /* @__PURE__ */ jsx69("p", { className: "px-4 py-2 text-v2-xs text-v2-fg-muted", children: group.emptyMessage ?? emptyMessage }) : /* @__PURE__ */ jsx69("ul", { children: group.items.map((item) => {
6678
6776
  const isHighlighted = highlightedId === item.id;
6679
- return /* @__PURE__ */ jsx68(
6777
+ return /* @__PURE__ */ jsx69(
6680
6778
  "li",
6681
6779
  {
6682
6780
  id: `command-palette-option-${item.id}`,
@@ -6691,8 +6789,8 @@ function CommandPalette({
6691
6789
  ),
6692
6790
  children: renderItem ? renderItem(item, isHighlighted) : /* @__PURE__ */ jsxs48(Fragment12, { children: [
6693
6791
  /* @__PURE__ */ jsxs48("div", { className: "flex min-w-0 flex-1 flex-col", children: [
6694
- /* @__PURE__ */ jsx68("span", { className: "truncate font-medium", children: item.label }),
6695
- item.description && /* @__PURE__ */ jsx68(
6792
+ /* @__PURE__ */ jsx69("span", { className: "truncate font-medium", children: item.label }),
6793
+ item.description && /* @__PURE__ */ jsx69(
6696
6794
  "span",
6697
6795
  {
6698
6796
  className: cn(
@@ -6703,7 +6801,7 @@ function CommandPalette({
6703
6801
  }
6704
6802
  )
6705
6803
  ] }),
6706
- item.meta && /* @__PURE__ */ jsx68(
6804
+ item.meta && /* @__PURE__ */ jsx69(
6707
6805
  "span",
6708
6806
  {
6709
6807
  className: cn(
@@ -6713,7 +6811,7 @@ function CommandPalette({
6713
6811
  children: item.meta
6714
6812
  }
6715
6813
  ),
6716
- item.shortcut && /* @__PURE__ */ jsx68("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 })
6814
+ item.shortcut && /* @__PURE__ */ jsx69("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 })
6717
6815
  ] })
6718
6816
  },
6719
6817
  item.id
@@ -6734,8 +6832,8 @@ function CommandPalette({
6734
6832
  }
6735
6833
 
6736
6834
  // src/patterns/ChartTimeSeries/ChartTimeSeries.tsx
6737
- import { forwardRef as forwardRef50, useId as useId16, useState as useState19 } from "react";
6738
- import { Fragment as Fragment13, jsx as jsx69, jsxs as jsxs49 } from "react/jsx-runtime";
6835
+ import { forwardRef as forwardRef50, useId as useId16, useState as useState20 } from "react";
6836
+ import { Fragment as Fragment13, jsx as jsx70, jsxs as jsxs49 } from "react/jsx-runtime";
6739
6837
  var DEFAULT_RANGES = ["3m", "6m", "12m", "YTD"];
6740
6838
  var DEFAULT_EMPTY_MESSAGE = "Sem dados no per\xEDodo.";
6741
6839
  function buildChartPaths(data) {
@@ -6791,7 +6889,7 @@ var ChartTimeSeries = forwardRef50(
6791
6889
  className,
6792
6890
  ...props
6793
6891
  }, ref) {
6794
- const [internalRange, setInternalRange] = useState19(
6892
+ const [internalRange, setInternalRange] = useState20(
6795
6893
  defaultRange ?? ranges[0]
6796
6894
  );
6797
6895
  const activeRange = range ?? internalRange;
@@ -6813,12 +6911,12 @@ var ChartTimeSeries = forwardRef50(
6813
6911
  children: [
6814
6912
  /* @__PURE__ */ jsxs49("div", { className: "flex items-start justify-between gap-3", children: [
6815
6913
  /* @__PURE__ */ jsxs49("div", { className: "flex flex-col", children: [
6816
- /* @__PURE__ */ jsx69("h3", { className: "text-v2-sm font-bold text-v2-fg-default", children: title }),
6817
- subtitle && /* @__PURE__ */ jsx69("span", { className: "text-v2-xs text-v2-fg-muted", children: subtitle })
6914
+ /* @__PURE__ */ jsx70("h3", { className: "text-v2-sm font-bold text-v2-fg-default", children: title }),
6915
+ subtitle && /* @__PURE__ */ jsx70("span", { className: "text-v2-xs text-v2-fg-muted", children: subtitle })
6818
6916
  ] }),
6819
- /* @__PURE__ */ jsx69("div", { role: "tablist", className: "flex items-center gap-1", children: ranges.map((r) => {
6917
+ /* @__PURE__ */ jsx70("div", { role: "tablist", className: "flex items-center gap-1", children: ranges.map((r) => {
6820
6918
  const isActive2 = r === activeRange;
6821
- return /* @__PURE__ */ jsx69(
6919
+ return /* @__PURE__ */ jsx70(
6822
6920
  "button",
6823
6921
  {
6824
6922
  type: "button",
@@ -6835,7 +6933,7 @@ var ChartTimeSeries = forwardRef50(
6835
6933
  );
6836
6934
  }) })
6837
6935
  ] }),
6838
- !hasData ? /* @__PURE__ */ jsx69("div", { className: "flex h-[220px] items-center justify-center text-v2-sm text-v2-fg-muted", children: emptyMessage }) : /* @__PURE__ */ jsxs49(
6936
+ !hasData ? /* @__PURE__ */ jsx70("div", { className: "flex h-[220px] items-center justify-center text-v2-sm text-v2-fg-muted", children: emptyMessage }) : /* @__PURE__ */ jsxs49(
6839
6937
  "svg",
6840
6938
  {
6841
6939
  viewBox: "0 0 720 200",
@@ -6844,11 +6942,11 @@ var ChartTimeSeries = forwardRef50(
6844
6942
  "aria-label": typeof title === "string" ? title : "Gr\xE1fico de s\xE9rie temporal",
6845
6943
  role: "img",
6846
6944
  children: [
6847
- /* @__PURE__ */ jsx69("defs", { children: /* @__PURE__ */ jsxs49("linearGradient", { id: gradientId, x1: "0", y1: "0", x2: "0", y2: "1", children: [
6848
- /* @__PURE__ */ jsx69("stop", { offset: "0%", stopColor: "currentColor", stopOpacity: "0.3" }),
6849
- /* @__PURE__ */ jsx69("stop", { offset: "100%", stopColor: "currentColor", stopOpacity: "0" })
6945
+ /* @__PURE__ */ jsx70("defs", { children: /* @__PURE__ */ jsxs49("linearGradient", { id: gradientId, x1: "0", y1: "0", x2: "0", y2: "1", children: [
6946
+ /* @__PURE__ */ jsx70("stop", { offset: "0%", stopColor: "currentColor", stopOpacity: "0.3" }),
6947
+ /* @__PURE__ */ jsx70("stop", { offset: "100%", stopColor: "currentColor", stopOpacity: "0" })
6850
6948
  ] }) }),
6851
- [40, 90, 140].map((y) => /* @__PURE__ */ jsx69(
6949
+ [40, 90, 140].map((y) => /* @__PURE__ */ jsx70(
6852
6950
  "line",
6853
6951
  {
6854
6952
  x1: "0",
@@ -6862,7 +6960,7 @@ var ChartTimeSeries = forwardRef50(
6862
6960
  y
6863
6961
  )),
6864
6962
  paths && /* @__PURE__ */ jsxs49(Fragment13, { children: [
6865
- /* @__PURE__ */ jsx69(
6963
+ /* @__PURE__ */ jsx70(
6866
6964
  "path",
6867
6965
  {
6868
6966
  d: paths.area,
@@ -6870,7 +6968,7 @@ var ChartTimeSeries = forwardRef50(
6870
6968
  stroke: "none"
6871
6969
  }
6872
6970
  ),
6873
- /* @__PURE__ */ jsx69(
6971
+ /* @__PURE__ */ jsx70(
6874
6972
  "path",
6875
6973
  {
6876
6974
  d: paths.line,
@@ -6881,7 +6979,7 @@ var ChartTimeSeries = forwardRef50(
6881
6979
  strokeLinejoin: "round"
6882
6980
  }
6883
6981
  ),
6884
- /* @__PURE__ */ jsx69(
6982
+ /* @__PURE__ */ jsx70(
6885
6983
  "circle",
6886
6984
  {
6887
6985
  cx: paths.lastX,
@@ -6893,7 +6991,7 @@ var ChartTimeSeries = forwardRef50(
6893
6991
  }
6894
6992
  )
6895
6993
  ] }),
6896
- /* @__PURE__ */ jsx69("g", { style: { fontSize: 10 }, fill: "currentColor", opacity: "0.6", children: axisLabels.map((tick) => /* @__PURE__ */ jsx69(
6994
+ /* @__PURE__ */ jsx70("g", { style: { fontSize: 10 }, fill: "currentColor", opacity: "0.6", children: axisLabels.map((tick) => /* @__PURE__ */ jsx70(
6897
6995
  "text",
6898
6996
  {
6899
6997
  x: tick.x,
@@ -6913,9 +7011,9 @@ var ChartTimeSeries = forwardRef50(
6913
7011
  );
6914
7012
 
6915
7013
  // src/patterns/DonutChart/DonutChart.tsx
6916
- import { forwardRef as forwardRef51, useState as useState20 } from "react";
7014
+ import { forwardRef as forwardRef51, useState as useState21 } from "react";
6917
7015
  import { Cell, Pie, PieChart, ResponsiveContainer, Tooltip as Tooltip2 } from "recharts";
6918
- import { jsx as jsx70, jsxs as jsxs50 } from "react/jsx-runtime";
7016
+ import { jsx as jsx71, jsxs as jsxs50 } from "react/jsx-runtime";
6919
7017
  var DEFAULT_COLORS = [
6920
7018
  "var(--v2-chart-cat-1)",
6921
7019
  "var(--v2-chart-cat-2)",
@@ -6964,7 +7062,7 @@ function ChartTooltip({
6964
7062
  if (!active || !slice) return null;
6965
7063
  return /* @__PURE__ */ jsxs50("div", { className: "rounded-v2-md border border-v2-border-default bg-v2-panel px-3 py-2 text-v2-xs shadow-lg", children: [
6966
7064
  /* @__PURE__ */ jsxs50("div", { className: "flex items-center gap-2", children: [
6967
- /* @__PURE__ */ jsx70(
7065
+ /* @__PURE__ */ jsx71(
6968
7066
  "span",
6969
7067
  {
6970
7068
  className: "size-2 rounded-full",
@@ -6972,10 +7070,10 @@ function ChartTooltip({
6972
7070
  "aria-hidden": "true"
6973
7071
  }
6974
7072
  ),
6975
- /* @__PURE__ */ jsx70("p", { className: "font-semibold text-v2-fg-default", children: slice.label })
7073
+ /* @__PURE__ */ jsx71("p", { className: "font-semibold text-v2-fg-default", children: slice.label })
6976
7074
  ] }),
6977
- /* @__PURE__ */ jsx70("p", { className: "mt-1 font-semibold text-v2-fg-default", children: valueFormatter(slice.value) }),
6978
- typeof slice.secondaryValue === "number" && /* @__PURE__ */ jsx70("p", { className: "text-v2-fg-muted", children: secondaryFormatter(slice.secondaryValue) })
7075
+ /* @__PURE__ */ jsx71("p", { className: "mt-1 font-semibold text-v2-fg-default", children: valueFormatter(slice.value) }),
7076
+ typeof slice.secondaryValue === "number" && /* @__PURE__ */ jsx71("p", { className: "text-v2-fg-muted", children: secondaryFormatter(slice.secondaryValue) })
6979
7077
  ] });
6980
7078
  }
6981
7079
  var DonutChart = forwardRef51(
@@ -6997,7 +7095,7 @@ var DonutChart = forwardRef51(
6997
7095
  const total = totalProp ?? data.reduce((acc, s) => acc + s.value, 0);
6998
7096
  const slices = buildSlices(data, topN, othersLabel, defaultColors);
6999
7097
  const isEmpty = data.length === 0 || total === 0;
7000
- const [activeIdx, setActiveIdx] = useState20(null);
7098
+ const [activeIdx, setActiveIdx] = useState21(null);
7001
7099
  return /* @__PURE__ */ jsxs50(
7002
7100
  "div",
7003
7101
  {
@@ -7005,8 +7103,8 @@ var DonutChart = forwardRef51(
7005
7103
  className: cn("flex flex-col gap-3.5", className),
7006
7104
  ...props,
7007
7105
  children: [
7008
- /* @__PURE__ */ jsx70("h3", { className: "text-v2-sm font-bold text-v2-fg-default", children: title }),
7009
- isEmpty ? /* @__PURE__ */ jsx70("div", { className: "flex h-[160px] items-center justify-center text-v2-sm text-v2-fg-muted", children: emptyMessage }) : /* @__PURE__ */ jsxs50(
7106
+ /* @__PURE__ */ jsx71("h3", { className: "text-v2-sm font-bold text-v2-fg-default", children: title }),
7107
+ isEmpty ? /* @__PURE__ */ jsx71("div", { className: "flex h-[160px] items-center justify-center text-v2-sm text-v2-fg-muted", children: emptyMessage }) : /* @__PURE__ */ jsxs50(
7010
7108
  "div",
7011
7109
  {
7012
7110
  className: "flex items-center gap-4",
@@ -7014,8 +7112,8 @@ var DonutChart = forwardRef51(
7014
7112
  "aria-label": typeof title === "string" ? title : "Donut chart",
7015
7113
  children: [
7016
7114
  /* @__PURE__ */ jsxs50("div", { className: "relative size-[160px] shrink-0", children: [
7017
- /* @__PURE__ */ jsx70(ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ jsxs50(PieChart, { children: [
7018
- /* @__PURE__ */ jsx70(
7115
+ /* @__PURE__ */ jsx71(ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ jsxs50(PieChart, { children: [
7116
+ /* @__PURE__ */ jsx71(
7019
7117
  Pie,
7020
7118
  {
7021
7119
  data: slices,
@@ -7028,7 +7126,7 @@ var DonutChart = forwardRef51(
7028
7126
  strokeWidth: 2,
7029
7127
  onMouseEnter: (_, idx) => setActiveIdx(idx),
7030
7128
  onMouseLeave: () => setActiveIdx(null),
7031
- children: slices.map((slice, idx) => /* @__PURE__ */ jsx70(
7129
+ children: slices.map((slice, idx) => /* @__PURE__ */ jsx71(
7032
7130
  Cell,
7033
7131
  {
7034
7132
  fill: slice.color,
@@ -7039,12 +7137,12 @@ var DonutChart = forwardRef51(
7039
7137
  ))
7040
7138
  }
7041
7139
  ),
7042
- /* @__PURE__ */ jsx70(
7140
+ /* @__PURE__ */ jsx71(
7043
7141
  Tooltip2,
7044
7142
  {
7045
7143
  allowEscapeViewBox: { x: false, y: true },
7046
- position: { y: -12 },
7047
- content: /* @__PURE__ */ jsx70(
7144
+ position: { y: -56 },
7145
+ content: /* @__PURE__ */ jsx71(
7048
7146
  ChartTooltip,
7049
7147
  {
7050
7148
  valueFormatter,
@@ -7055,11 +7153,11 @@ var DonutChart = forwardRef51(
7055
7153
  )
7056
7154
  ] }) }),
7057
7155
  /* @__PURE__ */ jsxs50("div", { className: "pointer-events-none absolute inset-0 flex flex-col items-center justify-center", children: [
7058
- /* @__PURE__ */ jsx70("span", { className: "text-v2-xl font-extrabold text-v2-fg-default", children: centerValue ?? valueFormatter(total) }),
7059
- /* @__PURE__ */ jsx70("span", { className: "text-v2-xs text-v2-fg-muted", children: centerLabel })
7156
+ /* @__PURE__ */ jsx71("span", { className: "text-v2-xl font-extrabold text-v2-fg-default", children: centerValue ?? valueFormatter(total) }),
7157
+ /* @__PURE__ */ jsx71("span", { className: "text-v2-xs text-v2-fg-muted", children: centerLabel })
7060
7158
  ] })
7061
7159
  ] }),
7062
- /* @__PURE__ */ jsx70("ul", { className: "flex flex-1 flex-col gap-2", children: slices.map((slice, idx) => /* @__PURE__ */ jsxs50(
7160
+ /* @__PURE__ */ jsx71("ul", { className: "flex flex-1 flex-col gap-2", children: slices.map((slice, idx) => /* @__PURE__ */ jsxs50(
7063
7161
  "li",
7064
7162
  {
7065
7163
  onMouseEnter: () => setActiveIdx(idx),
@@ -7069,7 +7167,7 @@ var DonutChart = forwardRef51(
7069
7167
  activeIdx === idx && "bg-v2-bg-subtle"
7070
7168
  ),
7071
7169
  children: [
7072
- /* @__PURE__ */ jsx70(
7170
+ /* @__PURE__ */ jsx71(
7073
7171
  "span",
7074
7172
  {
7075
7173
  "aria-hidden": "true",
@@ -7077,8 +7175,8 @@ var DonutChart = forwardRef51(
7077
7175
  style: { backgroundColor: slice.color }
7078
7176
  }
7079
7177
  ),
7080
- /* @__PURE__ */ jsx70("span", { className: "flex-1 truncate", children: slice.label }),
7081
- /* @__PURE__ */ jsx70("span", { className: "font-bold tabular-nums", children: valueFormatter(slice.value) })
7178
+ /* @__PURE__ */ jsx71("span", { className: "flex-1 truncate", children: slice.label }),
7179
+ /* @__PURE__ */ jsx71("span", { className: "font-bold tabular-nums", children: valueFormatter(slice.value) })
7082
7180
  ]
7083
7181
  },
7084
7182
  slice.label
@@ -7095,16 +7193,16 @@ var DonutChart = forwardRef51(
7095
7193
  // src/patterns/EmptyState/EmptyState.tsx
7096
7194
  import { forwardRef as forwardRef52 } from "react";
7097
7195
  import { MagnifyingGlass as MagnifyingGlass4, Tray, WarningCircle as WarningCircle3 } from "@phosphor-icons/react";
7098
- import { jsx as jsx71, jsxs as jsxs51 } from "react/jsx-runtime";
7196
+ import { jsx as jsx72, jsxs as jsxs51 } from "react/jsx-runtime";
7099
7197
  var variantIconBg = {
7100
7198
  "no-data": "bg-v2-bg-subtle text-v2-fg-muted",
7101
7199
  "no-results": "bg-v2-info-soft text-v2-info-500",
7102
7200
  error: "bg-v2-danger-soft text-v2-danger-500"
7103
7201
  };
7104
7202
  var variantIcon2 = {
7105
- "no-data": /* @__PURE__ */ jsx71(Tray, { size: 28, "aria-hidden": "true" }),
7106
- "no-results": /* @__PURE__ */ jsx71(MagnifyingGlass4, { size: 28, "aria-hidden": "true" }),
7107
- error: /* @__PURE__ */ jsx71(WarningCircle3, { size: 28, "aria-hidden": "true" })
7203
+ "no-data": /* @__PURE__ */ jsx72(Tray, { size: 28, "aria-hidden": "true" }),
7204
+ "no-results": /* @__PURE__ */ jsx72(MagnifyingGlass4, { size: 28, "aria-hidden": "true" }),
7205
+ error: /* @__PURE__ */ jsx72(WarningCircle3, { size: 28, "aria-hidden": "true" })
7108
7206
  };
7109
7207
  var EmptyState = forwardRef52(
7110
7208
  ({
@@ -7128,7 +7226,7 @@ var EmptyState = forwardRef52(
7128
7226
  ),
7129
7227
  ...props,
7130
7228
  children: [
7131
- /* @__PURE__ */ jsx71(
7229
+ /* @__PURE__ */ jsx72(
7132
7230
  "span",
7133
7231
  {
7134
7232
  "aria-hidden": "true",
@@ -7139,9 +7237,9 @@ var EmptyState = forwardRef52(
7139
7237
  children: icon ?? variantIcon2[variant]
7140
7238
  }
7141
7239
  ),
7142
- /* @__PURE__ */ jsx71("h3", { className: "text-v2-base font-semibold text-v2-fg-default", children: title }),
7143
- description && /* @__PURE__ */ jsx71("p", { className: "max-w-md text-v2-sm text-v2-fg-muted", children: description }),
7144
- action && /* @__PURE__ */ jsx71("div", { className: "mt-1 flex items-center gap-2", children: action })
7240
+ /* @__PURE__ */ jsx72("h3", { className: "text-v2-base font-semibold text-v2-fg-default", children: title }),
7241
+ description && /* @__PURE__ */ jsx72("p", { className: "max-w-md text-v2-sm text-v2-fg-muted", children: description }),
7242
+ action && /* @__PURE__ */ jsx72("div", { className: "mt-1 flex items-center gap-2", children: action })
7145
7243
  ]
7146
7244
  }
7147
7245
  );
@@ -7151,7 +7249,7 @@ EmptyState.displayName = "EmptyState";
7151
7249
 
7152
7250
  // src/patterns/WizardShell/WizardShell.tsx
7153
7251
  import { Check as Check6, WarningCircle as WarningCircle4, X as X9 } from "@phosphor-icons/react";
7154
- import { Fragment as Fragment14, jsx as jsx72, jsxs as jsxs52 } from "react/jsx-runtime";
7252
+ import { Fragment as Fragment14, jsx as jsx73, jsxs as jsxs52 } from "react/jsx-runtime";
7155
7253
  var stepIndicatorClass = {
7156
7254
  completed: "bg-v2-success-500 text-v2-action-on-primary border-v2-success-500",
7157
7255
  active: "bg-v2-action-primary text-v2-action-on-primary border-v2-action-primary",
@@ -7165,7 +7263,7 @@ function StepIndicator({
7165
7263
  onStepChange
7166
7264
  }) {
7167
7265
  const inner = /* @__PURE__ */ jsxs52(Fragment14, { children: [
7168
- /* @__PURE__ */ jsx72(
7266
+ /* @__PURE__ */ jsx73(
7169
7267
  "span",
7170
7268
  {
7171
7269
  "data-state": step.state,
@@ -7174,7 +7272,7 @@ function StepIndicator({
7174
7272
  "flex size-8 shrink-0 items-center justify-center rounded-v2-pill border-2 text-v2-sm font-semibold",
7175
7273
  stepIndicatorClass[step.state]
7176
7274
  ),
7177
- children: step.state === "completed" ? /* @__PURE__ */ jsx72(Check6, { size: 16, weight: "bold" }) : step.state === "blocked" ? /* @__PURE__ */ jsx72(X9, { size: 16, weight: "bold" }) : step.state === "error" ? /* @__PURE__ */ jsx72(WarningCircle4, { size: 16, weight: "bold" }) : index + 1
7275
+ children: step.state === "completed" ? /* @__PURE__ */ jsx73(Check6, { size: 16, weight: "bold" }) : step.state === "blocked" ? /* @__PURE__ */ jsx73(X9, { size: 16, weight: "bold" }) : step.state === "error" ? /* @__PURE__ */ jsx73(WarningCircle4, { size: 16, weight: "bold" }) : index + 1
7178
7276
  }
7179
7277
  ),
7180
7278
  /* @__PURE__ */ jsxs52("div", { className: "flex flex-col", children: [
@@ -7194,11 +7292,11 @@ function StepIndicator({
7194
7292
  ]
7195
7293
  }
7196
7294
  ),
7197
- step.description && /* @__PURE__ */ jsx72(Text, { tag: "p", size: "xs", color: "muted", children: step.description })
7295
+ step.description && /* @__PURE__ */ jsx73(Text, { tag: "p", size: "xs", color: "muted", children: step.description })
7198
7296
  ] })
7199
7297
  ] });
7200
7298
  if (onStepChange) {
7201
- return /* @__PURE__ */ jsx72(
7299
+ return /* @__PURE__ */ jsx73(
7202
7300
  "button",
7203
7301
  {
7204
7302
  type: "button",
@@ -7209,7 +7307,7 @@ function StepIndicator({
7209
7307
  }
7210
7308
  );
7211
7309
  }
7212
- return /* @__PURE__ */ jsx72(
7310
+ return /* @__PURE__ */ jsx73(
7213
7311
  "div",
7214
7312
  {
7215
7313
  className: "flex items-center gap-2",
@@ -7238,9 +7336,9 @@ function WizardShell(props) {
7238
7336
  ),
7239
7337
  children: [
7240
7338
  /* @__PURE__ */ jsxs52("div", { className: "border-b border-v2-border-default p-5", children: [
7241
- /* @__PURE__ */ jsx72("h1", { className: "text-v2-lg font-extrabold tracking-tight text-v2-fg-default", children: title }),
7242
- subtitle && /* @__PURE__ */ jsx72(Text, { tag: "p", size: "sm", color: "muted", className: "mt-0.5", children: subtitle }),
7243
- /* @__PURE__ */ jsx72("ol", { className: "mt-4 flex items-start gap-2", "aria-label": "Passos", children: steps.map((step, idx) => /* @__PURE__ */ jsx72("li", { className: "flex-1", children: /* @__PURE__ */ jsx72(
7339
+ /* @__PURE__ */ jsx73("h1", { className: "text-v2-lg font-extrabold tracking-tight text-v2-fg-default", children: title }),
7340
+ subtitle && /* @__PURE__ */ jsx73(Text, { tag: "p", size: "sm", color: "muted", className: "mt-0.5", children: subtitle }),
7341
+ /* @__PURE__ */ jsx73("ol", { className: "mt-4 flex items-start gap-2", "aria-label": "Passos", children: steps.map((step, idx) => /* @__PURE__ */ jsx73("li", { className: "flex-1", children: /* @__PURE__ */ jsx73(
7244
7342
  StepIndicator,
7245
7343
  {
7246
7344
  step,
@@ -7257,12 +7355,12 @@ function WizardShell(props) {
7257
7355
  aside ? "lg:grid-cols-[1fr_320px]" : "grid-cols-1"
7258
7356
  ),
7259
7357
  children: [
7260
- /* @__PURE__ */ jsx72("div", { children }),
7261
- aside && /* @__PURE__ */ jsx72("div", { className: "lg:sticky lg:top-4", children: aside })
7358
+ /* @__PURE__ */ jsx73("div", { children }),
7359
+ aside && /* @__PURE__ */ jsx73("div", { className: "lg:sticky lg:top-4", children: aside })
7262
7360
  ]
7263
7361
  }
7264
7362
  ),
7265
- footer && /* @__PURE__ */ jsx72("div", { className: "border-t border-v2-border-default bg-v2-bg-subtle p-4", children: footer })
7363
+ footer && /* @__PURE__ */ jsx73("div", { className: "border-t border-v2-border-default bg-v2-bg-subtle p-4", children: footer })
7266
7364
  ]
7267
7365
  }
7268
7366
  );
@@ -7275,8 +7373,8 @@ import {
7275
7373
  } from "react";
7276
7374
  import * as AccordionPrimitive from "@radix-ui/react-accordion";
7277
7375
  import { CaretDown as CaretDown8 } from "@phosphor-icons/react";
7278
- import { jsx as jsx73, jsxs as jsxs53 } from "react/jsx-runtime";
7279
- var SingleRoot = forwardRef53(({ className, ...props }, ref) => /* @__PURE__ */ jsx73(
7376
+ import { jsx as jsx74, jsxs as jsxs53 } from "react/jsx-runtime";
7377
+ var SingleRoot = forwardRef53(({ className, ...props }, ref) => /* @__PURE__ */ jsx74(
7280
7378
  AccordionPrimitive.Root,
7281
7379
  {
7282
7380
  ref,
@@ -7285,7 +7383,7 @@ var SingleRoot = forwardRef53(({ className, ...props }, ref) => /* @__PURE__ */
7285
7383
  }
7286
7384
  ));
7287
7385
  SingleRoot.displayName = "DSAccordion.Root";
7288
- var MultipleRoot = forwardRef53(({ className, ...props }, ref) => /* @__PURE__ */ jsx73(
7386
+ var MultipleRoot = forwardRef53(({ className, ...props }, ref) => /* @__PURE__ */ jsx74(
7289
7387
  AccordionPrimitive.Root,
7290
7388
  {
7291
7389
  ref,
@@ -7295,7 +7393,7 @@ var MultipleRoot = forwardRef53(({ className, ...props }, ref) => /* @__PURE__ *
7295
7393
  ));
7296
7394
  MultipleRoot.displayName = "DSAccordion.MultipleRoot";
7297
7395
  var Root15 = AccordionPrimitive.Root;
7298
- var Item7 = forwardRef53(({ className, ...props }, ref) => /* @__PURE__ */ jsx73(
7396
+ var Item7 = forwardRef53(({ className, ...props }, ref) => /* @__PURE__ */ jsx74(
7299
7397
  AccordionPrimitive.Item,
7300
7398
  {
7301
7399
  ref,
@@ -7308,7 +7406,7 @@ var Item7 = forwardRef53(({ className, ...props }, ref) => /* @__PURE__ */ jsx73
7308
7406
  ));
7309
7407
  Item7.displayName = "DSAccordion.Item";
7310
7408
  var Trigger16 = forwardRef53(
7311
- ({ className, children, icon, meta, ...props }, ref) => /* @__PURE__ */ jsx73(AccordionPrimitive.Header, { className: "flex", children: /* @__PURE__ */ jsxs53(
7409
+ ({ className, children, icon, meta, ...props }, ref) => /* @__PURE__ */ jsx74(AccordionPrimitive.Header, { className: "flex", children: /* @__PURE__ */ jsxs53(
7312
7410
  AccordionPrimitive.Trigger,
7313
7411
  {
7314
7412
  ref,
@@ -7319,7 +7417,7 @@ var Trigger16 = forwardRef53(
7319
7417
  ...props,
7320
7418
  children: [
7321
7419
  /* @__PURE__ */ jsxs53("span", { className: "flex min-w-0 items-center gap-2", children: [
7322
- icon && /* @__PURE__ */ jsx73(
7420
+ icon && /* @__PURE__ */ jsx74(
7323
7421
  "span",
7324
7422
  {
7325
7423
  className: "shrink-0 text-v2-fg-muted",
@@ -7327,11 +7425,11 @@ var Trigger16 = forwardRef53(
7327
7425
  children: icon
7328
7426
  }
7329
7427
  ),
7330
- /* @__PURE__ */ jsx73("span", { className: "truncate text-v2-base font-semibold text-v2-fg-default", children })
7428
+ /* @__PURE__ */ jsx74("span", { className: "truncate text-v2-base font-semibold text-v2-fg-default", children })
7331
7429
  ] }),
7332
7430
  /* @__PURE__ */ jsxs53("span", { className: "flex shrink-0 items-center gap-3", children: [
7333
7431
  meta,
7334
- /* @__PURE__ */ jsx73(
7432
+ /* @__PURE__ */ jsx74(
7335
7433
  CaretDown8,
7336
7434
  {
7337
7435
  size: 16,
@@ -7346,7 +7444,7 @@ var Trigger16 = forwardRef53(
7346
7444
  ) })
7347
7445
  );
7348
7446
  Trigger16.displayName = "DSAccordion.Trigger";
7349
- var Content16 = forwardRef53(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx73(
7447
+ var Content16 = forwardRef53(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx74(
7350
7448
  AccordionPrimitive.Content,
7351
7449
  {
7352
7450
  ref,
@@ -7355,7 +7453,7 @@ var Content16 = forwardRef53(({ className, children, ...props }, ref) => /* @__P
7355
7453
  className
7356
7454
  ),
7357
7455
  ...props,
7358
- children: /* @__PURE__ */ jsx73("div", { className: "border-t border-v2-border-default p-5", children })
7456
+ children: /* @__PURE__ */ jsx74("div", { className: "border-t border-v2-border-default p-5", children })
7359
7457
  }
7360
7458
  ));
7361
7459
  Content16.displayName = "DSAccordion.Content";
@@ -7366,7 +7464,7 @@ var DSAccordion = Object.assign(Root15, {
7366
7464
  });
7367
7465
 
7368
7466
  // src/patterns/DataField/DataField.tsx
7369
- import { jsx as jsx74, jsxs as jsxs54 } from "react/jsx-runtime";
7467
+ import { jsx as jsx75, jsxs as jsxs54 } from "react/jsx-runtime";
7370
7468
  function DataField({
7371
7469
  label,
7372
7470
  value,
@@ -7390,15 +7488,15 @@ function DataField({
7390
7488
  ]
7391
7489
  }
7392
7490
  ),
7393
- /* @__PURE__ */ jsx74(Text, { size: "sm", weight: "semibold", children: value ?? "\u2014" }),
7394
- hint && /* @__PURE__ */ jsx74(Text, { size: "xs", color: "subtle", children: hint })
7491
+ /* @__PURE__ */ jsx75(Text, { size: "sm", weight: "semibold", children: value ?? "\u2014" }),
7492
+ hint && /* @__PURE__ */ jsx75(Text, { size: "xs", color: "subtle", children: hint })
7395
7493
  ] });
7396
7494
  }
7397
7495
 
7398
7496
  // src/patterns/FilterBarV2/FilterBarV2.tsx
7399
- import { useEffect as useEffect10, useState as useState21 } from "react";
7497
+ import { useEffect as useEffect11, useState as useState22 } from "react";
7400
7498
  import { CheckSquare, FunnelSimple, Square } from "@phosphor-icons/react";
7401
- import { Fragment as Fragment15, jsx as jsx75, jsxs as jsxs55 } from "react/jsx-runtime";
7499
+ import { Fragment as Fragment15, jsx as jsx76, jsxs as jsxs55 } from "react/jsx-runtime";
7402
7500
  function isStringValue(v) {
7403
7501
  return typeof v === "string";
7404
7502
  }
@@ -7425,7 +7523,7 @@ function MultiSelectField({
7425
7523
  onChange
7426
7524
  }) {
7427
7525
  const selected = isStringArray(value) ? value : [];
7428
- const [open, setOpen] = useState21(false);
7526
+ const [open, setOpen] = useState22(false);
7429
7527
  const toggle = (optionValue) => {
7430
7528
  if (selected.includes(optionValue)) {
7431
7529
  onChange(selected.filter((v) => v !== optionValue));
@@ -7436,9 +7534,9 @@ function MultiSelectField({
7436
7534
  const selectedLabels = field.options.filter((opt) => selected.includes(opt.value)).map((opt) => opt.label);
7437
7535
  const triggerLabel = selectedLabels.length === 0 ? field.placeholder ?? "Selecione..." : selectedLabels.length === 1 ? selectedLabels[0] : `${selectedLabels.length} selecionados`;
7438
7536
  return /* @__PURE__ */ jsxs55("div", { className: "relative w-full", children: [
7439
- field.label && /* @__PURE__ */ jsx75(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 }),
7537
+ field.label && /* @__PURE__ */ jsx76(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 }),
7440
7538
  /* @__PURE__ */ jsxs55(Popover, { open, onOpenChange: setOpen, children: [
7441
- /* @__PURE__ */ jsx75(Popover.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs55(
7539
+ /* @__PURE__ */ jsx76(Popover.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs55(
7442
7540
  "button",
7443
7541
  {
7444
7542
  type: "button",
@@ -7449,12 +7547,12 @@ function MultiSelectField({
7449
7547
  selected.length === 0 && "text-v2-fg-muted"
7450
7548
  ),
7451
7549
  children: [
7452
- /* @__PURE__ */ jsx75("span", { className: "truncate", children: triggerLabel }),
7453
- selected.length > 0 && /* @__PURE__ */ jsx75(Badge, { variant: "info", size: "sm", children: selected.length })
7550
+ /* @__PURE__ */ jsx76("span", { className: "truncate", children: triggerLabel }),
7551
+ selected.length > 0 && /* @__PURE__ */ jsx76(Badge, { variant: "info", size: "sm", children: selected.length })
7454
7552
  ]
7455
7553
  }
7456
7554
  ) }),
7457
- /* @__PURE__ */ jsx75(
7555
+ /* @__PURE__ */ jsx76(
7458
7556
  Popover.Content,
7459
7557
  {
7460
7558
  size: "md",
@@ -7467,10 +7565,10 @@ function MultiSelectField({
7467
7565
  "aria-multiselectable": "true",
7468
7566
  className: "flex flex-col",
7469
7567
  children: [
7470
- field.options.length === 0 && /* @__PURE__ */ jsx75("li", { className: "px-3 py-2 text-v2-sm text-v2-fg-muted", children: "Nenhuma op\xE7\xE3o dispon\xEDvel" }),
7568
+ field.options.length === 0 && /* @__PURE__ */ jsx76("li", { className: "px-3 py-2 text-v2-sm text-v2-fg-muted", children: "Nenhuma op\xE7\xE3o dispon\xEDvel" }),
7471
7569
  field.options.map((option) => {
7472
7570
  const checked = selected.includes(option.value);
7473
- return /* @__PURE__ */ jsx75("li", { children: /* @__PURE__ */ jsxs55(
7571
+ return /* @__PURE__ */ jsx76("li", { children: /* @__PURE__ */ jsxs55(
7474
7572
  "button",
7475
7573
  {
7476
7574
  type: "button",
@@ -7482,14 +7580,14 @@ function MultiSelectField({
7482
7580
  "hover:bg-v2-bg-subtle focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-v2-focus-ring/30"
7483
7581
  ),
7484
7582
  children: [
7485
- checked ? /* @__PURE__ */ jsx75(
7583
+ checked ? /* @__PURE__ */ jsx76(
7486
7584
  CheckSquare,
7487
7585
  {
7488
7586
  size: 18,
7489
7587
  weight: "fill",
7490
7588
  className: "shrink-0 text-v2-action-primary"
7491
7589
  }
7492
- ) : /* @__PURE__ */ jsx75(
7590
+ ) : /* @__PURE__ */ jsx76(
7493
7591
  Square,
7494
7592
  {
7495
7593
  size: 18,
@@ -7497,7 +7595,7 @@ function MultiSelectField({
7497
7595
  className: "shrink-0 text-v2-fg-muted"
7498
7596
  }
7499
7597
  ),
7500
- /* @__PURE__ */ jsx75("span", { className: "truncate", children: option.label })
7598
+ /* @__PURE__ */ jsx76("span", { className: "truncate", children: option.label })
7501
7599
  ]
7502
7600
  }
7503
7601
  ) }, option.value);
@@ -7516,7 +7614,7 @@ function DateRangeField({
7516
7614
  onChange
7517
7615
  }) {
7518
7616
  const range = asDateRange(value);
7519
- return /* @__PURE__ */ jsx75(
7617
+ return /* @__PURE__ */ jsx76(
7520
7618
  DateRangeInput,
7521
7619
  {
7522
7620
  label: field.label,
@@ -7539,7 +7637,7 @@ function NumberRangeField({
7539
7637
  const maxLabel = field.maxLabel ?? `${field.label} (menor ou igual)`;
7540
7638
  if (field.format === "money") {
7541
7639
  return /* @__PURE__ */ jsxs55(Fragment15, { children: [
7542
- /* @__PURE__ */ jsx75(
7640
+ /* @__PURE__ */ jsx76(
7543
7641
  MoneyInput,
7544
7642
  {
7545
7643
  label: minLabel,
@@ -7547,7 +7645,7 @@ function NumberRangeField({
7547
7645
  onValueChange: (_f, raw) => setMin(raw)
7548
7646
  }
7549
7647
  ),
7550
- /* @__PURE__ */ jsx75(
7648
+ /* @__PURE__ */ jsx76(
7551
7649
  MoneyInput,
7552
7650
  {
7553
7651
  label: maxLabel,
@@ -7559,7 +7657,7 @@ function NumberRangeField({
7559
7657
  }
7560
7658
  if (field.format === "percent") {
7561
7659
  return /* @__PURE__ */ jsxs55(Fragment15, { children: [
7562
- /* @__PURE__ */ jsx75(
7660
+ /* @__PURE__ */ jsx76(
7563
7661
  PercentInput,
7564
7662
  {
7565
7663
  label: minLabel,
@@ -7567,7 +7665,7 @@ function NumberRangeField({
7567
7665
  onValueChange: (_f, raw) => setMin(raw)
7568
7666
  }
7569
7667
  ),
7570
- /* @__PURE__ */ jsx75(
7668
+ /* @__PURE__ */ jsx76(
7571
7669
  PercentInput,
7572
7670
  {
7573
7671
  label: maxLabel,
@@ -7578,7 +7676,7 @@ function NumberRangeField({
7578
7676
  ] });
7579
7677
  }
7580
7678
  return /* @__PURE__ */ jsxs55(Fragment15, { children: [
7581
- /* @__PURE__ */ jsx75(
7679
+ /* @__PURE__ */ jsx76(
7582
7680
  Input,
7583
7681
  {
7584
7682
  label: minLabel,
@@ -7587,7 +7685,7 @@ function NumberRangeField({
7587
7685
  onChange: (e) => setMin(e.target.value)
7588
7686
  }
7589
7687
  ),
7590
- /* @__PURE__ */ jsx75(
7688
+ /* @__PURE__ */ jsx76(
7591
7689
  Input,
7592
7690
  {
7593
7691
  label: maxLabel,
@@ -7600,7 +7698,7 @@ function NumberRangeField({
7600
7698
  }
7601
7699
  function renderField(field, value, onChange) {
7602
7700
  if (field.type === "text") {
7603
- return /* @__PURE__ */ jsx75(
7701
+ return /* @__PURE__ */ jsx76(
7604
7702
  Input,
7605
7703
  {
7606
7704
  label: field.label,
@@ -7612,7 +7710,7 @@ function renderField(field, value, onChange) {
7612
7710
  );
7613
7711
  }
7614
7712
  if (field.type === "mask") {
7615
- return /* @__PURE__ */ jsx75(
7713
+ return /* @__PURE__ */ jsx76(
7616
7714
  DocumentInput,
7617
7715
  {
7618
7716
  label: field.label,
@@ -7624,7 +7722,7 @@ function renderField(field, value, onChange) {
7624
7722
  );
7625
7723
  }
7626
7724
  if (field.type === "select") {
7627
- return /* @__PURE__ */ jsx75(
7725
+ return /* @__PURE__ */ jsx76(
7628
7726
  Combobox,
7629
7727
  {
7630
7728
  label: field.label,
@@ -7638,13 +7736,13 @@ function renderField(field, value, onChange) {
7638
7736
  );
7639
7737
  }
7640
7738
  if (field.type === "multiSelect") {
7641
- return /* @__PURE__ */ jsx75(MultiSelectField, { field, value, onChange });
7739
+ return /* @__PURE__ */ jsx76(MultiSelectField, { field, value, onChange });
7642
7740
  }
7643
7741
  if (field.type === "dateRange") {
7644
- return /* @__PURE__ */ jsx75(DateRangeField, { field, value, onChange });
7742
+ return /* @__PURE__ */ jsx76(DateRangeField, { field, value, onChange });
7645
7743
  }
7646
7744
  if (field.type === "numberRange") {
7647
- return /* @__PURE__ */ jsx75(NumberRangeField, { field, value, onChange });
7745
+ return /* @__PURE__ */ jsx76(NumberRangeField, { field, value, onChange });
7648
7746
  }
7649
7747
  return null;
7650
7748
  }
@@ -7665,16 +7763,16 @@ function FilterBarV2({
7665
7763
  onOpenChange
7666
7764
  }) {
7667
7765
  const isOpenControlled = controlledOpen !== void 0;
7668
- const [internalOpen, setInternalOpen] = useState21(defaultOpen);
7766
+ const [internalOpen, setInternalOpen] = useState22(defaultOpen);
7669
7767
  const open = isOpenControlled ? controlledOpen : internalOpen;
7670
7768
  const setOpen = (next) => {
7671
7769
  if (!isOpenControlled) setInternalOpen(next);
7672
7770
  onOpenChange == null ? void 0 : onOpenChange(next);
7673
7771
  };
7674
- const [draftValues, setDraftValues] = useState21(
7772
+ const [draftValues, setDraftValues] = useState22(
7675
7773
  controlledValues ?? defaultValues ?? {}
7676
7774
  );
7677
- useEffect10(() => {
7775
+ useEffect11(() => {
7678
7776
  if (open) {
7679
7777
  setDraftValues(controlledValues ?? defaultValues ?? {});
7680
7778
  }
@@ -7694,7 +7792,7 @@ function FilterBarV2({
7694
7792
  };
7695
7793
  const triggerLabel = activeCount > 0 ? `Filtros (${activeCount})` : title ?? "Filtros avan\xE7ados";
7696
7794
  return /* @__PURE__ */ jsxs55(DrawerRoot, { open, onOpenChange: setOpen, children: [
7697
- !hideTrigger && /* @__PURE__ */ jsx75(DrawerRoot.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs55(
7795
+ !hideTrigger && /* @__PURE__ */ jsx76(DrawerRoot.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs55(
7698
7796
  "button",
7699
7797
  {
7700
7798
  type: "button",
@@ -7705,17 +7803,17 @@ function FilterBarV2({
7705
7803
  ),
7706
7804
  children: [
7707
7805
  /* @__PURE__ */ jsxs55("span", { className: "inline-flex items-center gap-2", children: [
7708
- /* @__PURE__ */ jsx75(FunnelSimple, { size: 18, weight: "bold", "aria-hidden": "true" }),
7806
+ /* @__PURE__ */ jsx76(FunnelSimple, { size: 18, weight: "bold", "aria-hidden": "true" }),
7709
7807
  triggerLabel
7710
7808
  ] }),
7711
- activeCount > 0 ? /* @__PURE__ */ jsx75(Badge, { variant: "info", size: "sm", children: activeCount }) : null
7809
+ activeCount > 0 ? /* @__PURE__ */ jsx76(Badge, { variant: "info", size: "sm", children: activeCount }) : null
7712
7810
  ]
7713
7811
  }
7714
7812
  ) }),
7715
7813
  /* @__PURE__ */ jsxs55(DrawerRoot.Content, { side: "right", size: "md", children: [
7716
7814
  /* @__PURE__ */ jsxs55(DrawerRoot.Header, { children: [
7717
- /* @__PURE__ */ jsx75(DrawerRoot.Title, { children: title ?? "Filtros avan\xE7ados" }),
7718
- /* @__PURE__ */ jsx75(DrawerRoot.Description, { children: activeCount > 0 ? `${activeCount} ${activeCount === 1 ? "filtro aplicado" : "filtros aplicados"}` : "Refine sua busca por campos espec\xEDficos." })
7815
+ /* @__PURE__ */ jsx76(DrawerRoot.Title, { children: title ?? "Filtros avan\xE7ados" }),
7816
+ /* @__PURE__ */ jsx76(DrawerRoot.Description, { children: activeCount > 0 ? `${activeCount} ${activeCount === 1 ? "filtro aplicado" : "filtros aplicados"}` : "Refine sua busca por campos espec\xEDficos." })
7719
7817
  ] }),
7720
7818
  /* @__PURE__ */ jsxs55(
7721
7819
  "form",
@@ -7723,7 +7821,7 @@ function FilterBarV2({
7723
7821
  onSubmit: handleApply,
7724
7822
  className: "flex flex-1 flex-col overflow-hidden",
7725
7823
  children: [
7726
- /* @__PURE__ */ jsx75(DrawerRoot.Body, { className: "flex flex-col gap-4", children: fields.map((field) => /* @__PURE__ */ jsx75(
7824
+ /* @__PURE__ */ jsx76(DrawerRoot.Body, { className: "flex flex-col gap-4", children: fields.map((field) => /* @__PURE__ */ jsx76(
7727
7825
  "div",
7728
7826
  {
7729
7827
  className: cn(
@@ -7739,7 +7837,7 @@ function FilterBarV2({
7739
7837
  field.name
7740
7838
  )) }),
7741
7839
  /* @__PURE__ */ jsxs55(DrawerRoot.Footer, { className: "sm:justify-between", children: [
7742
- activeCount > 0 ? /* @__PURE__ */ jsx75(Button, { type: "button", variant: "secondary", onClick: handleClear, children: clearLabel }) : /* @__PURE__ */ jsx75(
7840
+ activeCount > 0 ? /* @__PURE__ */ jsx76(Button, { type: "button", variant: "secondary", onClick: handleClear, children: clearLabel }) : /* @__PURE__ */ jsx76(
7743
7841
  Button,
7744
7842
  {
7745
7843
  type: "button",
@@ -7748,7 +7846,7 @@ function FilterBarV2({
7748
7846
  children: "Cancelar"
7749
7847
  }
7750
7848
  ),
7751
- /* @__PURE__ */ jsx75(Button, { type: "submit", children: applyLabel })
7849
+ /* @__PURE__ */ jsx76(Button, { type: "submit", children: applyLabel })
7752
7850
  ] })
7753
7851
  ]
7754
7852
  }
@@ -7758,7 +7856,7 @@ function FilterBarV2({
7758
7856
  }
7759
7857
 
7760
7858
  // src/patterns/FormSection/FormSection.tsx
7761
- import { jsx as jsx76, jsxs as jsxs56 } from "react/jsx-runtime";
7859
+ import { jsx as jsx77, jsxs as jsxs56 } from "react/jsx-runtime";
7762
7860
  function FormSection({
7763
7861
  id,
7764
7862
  icon,
@@ -7776,7 +7874,7 @@ function FormSection({
7776
7874
  className: "scroll-mt-4 rounded-v2-lg border border-v2-border-default bg-v2-panel p-5 shadow-sm",
7777
7875
  children: [
7778
7876
  /* @__PURE__ */ jsxs56("header", { className: "mb-5 flex items-start gap-3", children: [
7779
- /* @__PURE__ */ jsx76(
7877
+ /* @__PURE__ */ jsx77(
7780
7878
  "span",
7781
7879
  {
7782
7880
  "aria-hidden": "true",
@@ -7785,10 +7883,10 @@ function FormSection({
7785
7883
  }
7786
7884
  ),
7787
7885
  /* @__PURE__ */ jsxs56("div", { className: "flex flex-1 flex-col", children: [
7788
- /* @__PURE__ */ jsx76("h2", { className: "text-v2-base font-bold text-v2-fg-default", children: title }),
7789
- /* @__PURE__ */ jsx76("p", { className: "text-v2-sm text-v2-fg-muted", children: description })
7886
+ /* @__PURE__ */ jsx77("h2", { className: "text-v2-base font-bold text-v2-fg-default", children: title }),
7887
+ /* @__PURE__ */ jsx77("p", { className: "text-v2-sm text-v2-fg-muted", children: description })
7790
7888
  ] }),
7791
- meta && /* @__PURE__ */ jsx76("div", { className: "shrink-0", children: meta })
7889
+ meta && /* @__PURE__ */ jsx77("div", { className: "shrink-0", children: meta })
7792
7890
  ] }),
7793
7891
  children
7794
7892
  ]
@@ -7797,14 +7895,14 @@ function FormSection({
7797
7895
  }
7798
7896
 
7799
7897
  // src/patterns/FormWithAside/FormWithAside.tsx
7800
- import { useState as useState22 } from "react";
7898
+ import { useState as useState23 } from "react";
7801
7899
  import {
7802
7900
  CaretDoubleLeft as CaretDoubleLeft2,
7803
7901
  CaretDoubleRight as CaretDoubleRight2,
7804
7902
  CheckCircle as CheckCircle2,
7805
7903
  Circle
7806
7904
  } from "@phosphor-icons/react";
7807
- import { Fragment as Fragment16, jsx as jsx77, jsxs as jsxs57 } from "react/jsx-runtime";
7905
+ import { Fragment as Fragment16, jsx as jsx78, jsxs as jsxs57 } from "react/jsx-runtime";
7808
7906
  function ProgressRing({
7809
7907
  percent,
7810
7908
  size = 36
@@ -7823,7 +7921,7 @@ function ProgressRing({
7823
7921
  "aria-hidden": "true",
7824
7922
  className: "shrink-0",
7825
7923
  children: [
7826
- /* @__PURE__ */ jsx77(
7924
+ /* @__PURE__ */ jsx78(
7827
7925
  "circle",
7828
7926
  {
7829
7927
  cx: size / 2,
@@ -7834,7 +7932,7 @@ function ProgressRing({
7834
7932
  fill: "none"
7835
7933
  }
7836
7934
  ),
7837
- /* @__PURE__ */ jsx77(
7935
+ /* @__PURE__ */ jsx78(
7838
7936
  "circle",
7839
7937
  {
7840
7938
  cx: size / 2,
@@ -7879,12 +7977,12 @@ function FormWithAside({
7879
7977
  overallPercent,
7880
7978
  asideExtra
7881
7979
  }) {
7882
- const [collapsed, setCollapsed] = useState22(false);
7980
+ const [collapsed, setCollapsed] = useState23(false);
7883
7981
  const computedOverall = overallPercent ?? (sections.length > 0 ? Math.round(
7884
7982
  sections.reduce((sum, s) => sum + (s.percent ?? 0), 0) / sections.length
7885
7983
  ) : 0);
7886
7984
  return /* @__PURE__ */ jsxs57("div", { className: "flex flex-col gap-4 lg:flex-row", children: [
7887
- /* @__PURE__ */ jsx77("div", { className: "min-w-0 flex-1", children }),
7985
+ /* @__PURE__ */ jsx78("div", { className: "min-w-0 flex-1", children }),
7888
7986
  /* @__PURE__ */ jsxs57(
7889
7987
  "aside",
7890
7988
  {
@@ -7902,8 +8000,8 @@ function FormWithAside({
7902
8000
  collapsed ? "justify-center" : "justify-between"
7903
8001
  ),
7904
8002
  children: [
7905
- !collapsed && /* @__PURE__ */ jsx77("h2", { className: "text-v2-xs font-bold uppercase tracking-wide text-v2-fg-muted", children: title }),
7906
- /* @__PURE__ */ jsx77(
8003
+ !collapsed && /* @__PURE__ */ jsx78("h2", { className: "text-v2-xs font-bold uppercase tracking-wide text-v2-fg-muted", children: title }),
8004
+ /* @__PURE__ */ jsx78(
7907
8005
  "button",
7908
8006
  {
7909
8007
  type: "button",
@@ -7912,17 +8010,17 @@ function FormWithAside({
7912
8010
  "aria-label": collapsed ? "Expandir resumo" : "Recolher resumo",
7913
8011
  title: collapsed ? "Expandir resumo" : "Recolher resumo",
7914
8012
  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",
7915
- children: collapsed ? /* @__PURE__ */ jsx77(CaretDoubleLeft2, { size: 14, weight: "bold", "aria-hidden": "true" }) : /* @__PURE__ */ jsx77(CaretDoubleRight2, { size: 14, weight: "bold", "aria-hidden": "true" })
8013
+ children: collapsed ? /* @__PURE__ */ jsx78(CaretDoubleLeft2, { size: 14, weight: "bold", "aria-hidden": "true" }) : /* @__PURE__ */ jsx78(CaretDoubleRight2, { size: 14, weight: "bold", "aria-hidden": "true" })
7916
8014
  }
7917
8015
  )
7918
8016
  ]
7919
8017
  }
7920
8018
  ),
7921
8019
  collapsed ? /* @__PURE__ */ jsxs57("div", { className: "flex flex-col items-center gap-3", children: [
7922
- /* @__PURE__ */ jsx77(ProgressRing, { percent: computedOverall, size: 36 }),
8020
+ /* @__PURE__ */ jsx78(ProgressRing, { percent: computedOverall, size: 36 }),
7923
8021
  sections.map((s) => {
7924
8022
  const done = (s.percent ?? 0) >= 100;
7925
- return /* @__PURE__ */ jsx77(
8023
+ return /* @__PURE__ */ jsx78(
7926
8024
  "button",
7927
8025
  {
7928
8026
  type: "button",
@@ -7939,9 +8037,9 @@ function FormWithAside({
7939
8037
  })
7940
8038
  ] }) : /* @__PURE__ */ jsxs57(Fragment16, { children: [
7941
8039
  /* @__PURE__ */ jsxs57("div", { className: "flex items-center gap-3 rounded-v2-md bg-v2-raised px-3 py-2", children: [
7942
- /* @__PURE__ */ jsx77(ProgressRing, { percent: computedOverall, size: 40 }),
8040
+ /* @__PURE__ */ jsx78(ProgressRing, { percent: computedOverall, size: 40 }),
7943
8041
  /* @__PURE__ */ jsxs57("div", { className: "flex min-w-0 flex-col", children: [
7944
- /* @__PURE__ */ jsx77("span", { className: "text-v2-xs font-semibold text-v2-fg-default", children: "Progresso geral" }),
8042
+ /* @__PURE__ */ jsx78("span", { className: "text-v2-xs font-semibold text-v2-fg-default", children: "Progresso geral" }),
7945
8043
  /* @__PURE__ */ jsxs57("span", { className: "text-v2-xs text-v2-fg-muted", children: [
7946
8044
  sections.filter((s) => (s.percent ?? 0) >= 100).length,
7947
8045
  " de",
@@ -7951,37 +8049,37 @@ function FormWithAside({
7951
8049
  ] })
7952
8050
  ] })
7953
8051
  ] }),
7954
- /* @__PURE__ */ jsx77("nav", { "aria-label": "Navega\xE7\xE3o por se\xE7\xF5es", children: /* @__PURE__ */ jsx77("ul", { className: "flex flex-col gap-0.5", children: sections.map((s) => {
8052
+ /* @__PURE__ */ jsx78("nav", { "aria-label": "Navega\xE7\xE3o por se\xE7\xF5es", children: /* @__PURE__ */ jsx78("ul", { className: "flex flex-col gap-0.5", children: sections.map((s) => {
7955
8053
  const done = (s.percent ?? 0) >= 100;
7956
- return /* @__PURE__ */ jsx77("li", { children: /* @__PURE__ */ jsxs57(
8054
+ return /* @__PURE__ */ jsx78("li", { children: /* @__PURE__ */ jsxs57(
7957
8055
  "button",
7958
8056
  {
7959
8057
  type: "button",
7960
8058
  onClick: () => scrollToId(s.id),
7961
8059
  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",
7962
8060
  children: [
7963
- /* @__PURE__ */ jsx77("span", { "aria-hidden": "true", className: "mt-0.5 shrink-0", children: done ? /* @__PURE__ */ jsx77(
8061
+ /* @__PURE__ */ jsx78("span", { "aria-hidden": "true", className: "mt-0.5 shrink-0", children: done ? /* @__PURE__ */ jsx78(
7964
8062
  CheckCircle2,
7965
8063
  {
7966
8064
  size: 14,
7967
8065
  weight: "fill",
7968
8066
  className: "text-v2-success-500"
7969
8067
  }
7970
- ) : /* @__PURE__ */ jsx77(Circle, { size: 14, className: "text-v2-fg-muted" }) }),
8068
+ ) : /* @__PURE__ */ jsx78(Circle, { size: 14, className: "text-v2-fg-muted" }) }),
7971
8069
  /* @__PURE__ */ jsxs57("span", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
7972
8070
  /* @__PURE__ */ jsxs57("span", { className: "flex items-center justify-between gap-2", children: [
7973
- /* @__PURE__ */ jsx77("span", { className: "truncate text-v2-sm font-medium text-v2-fg-default", children: s.label }),
8071
+ /* @__PURE__ */ jsx78("span", { className: "truncate text-v2-sm font-medium text-v2-fg-default", children: s.label }),
7974
8072
  typeof s.percent === "number" && /* @__PURE__ */ jsxs57("span", { className: "shrink-0 text-v2-xs font-semibold tabular-nums text-v2-fg-muted", children: [
7975
8073
  s.percent,
7976
8074
  "%"
7977
8075
  ] })
7978
8076
  ] }),
7979
- typeof s.percent === "number" && /* @__PURE__ */ jsx77(
8077
+ typeof s.percent === "number" && /* @__PURE__ */ jsx78(
7980
8078
  "span",
7981
8079
  {
7982
8080
  "aria-hidden": "true",
7983
8081
  className: "block h-1 overflow-hidden rounded-v2-pill bg-v2-bg-subtle",
7984
- children: /* @__PURE__ */ jsx77(
8082
+ children: /* @__PURE__ */ jsx78(
7985
8083
  "span",
7986
8084
  {
7987
8085
  className: "block h-full bg-v2-action-primary transition-all",
@@ -8000,7 +8098,7 @@ function FormWithAside({
8000
8098
  }
8001
8099
  ) }, s.id);
8002
8100
  }) }) }),
8003
- asideExtra && /* @__PURE__ */ jsx77("div", { className: "border-t border-v2-border-default pt-3", children: asideExtra })
8101
+ asideExtra && /* @__PURE__ */ jsx78("div", { className: "border-t border-v2-border-default pt-3", children: asideExtra })
8004
8102
  ] })
8005
8103
  ]
8006
8104
  }
@@ -8009,7 +8107,7 @@ function FormWithAside({
8009
8107
  }
8010
8108
 
8011
8109
  // src/patterns/HorizontalBarChart/HorizontalBarChart.tsx
8012
- import { jsx as jsx78, jsxs as jsxs58 } from "react/jsx-runtime";
8110
+ import { jsx as jsx79, jsxs as jsxs58 } from "react/jsx-runtime";
8013
8111
  var PALETTE = [
8014
8112
  "var(--v2-chart-cat-1)",
8015
8113
  "var(--v2-chart-cat-2)",
@@ -8028,7 +8126,7 @@ function HorizontalBarChart({
8028
8126
  showSecondary = false
8029
8127
  }) {
8030
8128
  const max = Math.max(1, ...items.map((i) => i.value));
8031
- return /* @__PURE__ */ jsx78(
8129
+ return /* @__PURE__ */ jsx79(
8032
8130
  "div",
8033
8131
  {
8034
8132
  role: "img",
@@ -8045,13 +8143,13 @@ function HorizontalBarChart({
8045
8143
  title: hasSecondary ? `${item.label}: ${valueFormatter(item.value)} \xB7 ${secondaryFormatter(item.secondaryValue ?? 0)}` : `${item.label}: ${valueFormatter(item.value)}`,
8046
8144
  children: [
8047
8145
  /* @__PURE__ */ jsxs58("div", { className: "flex items-baseline justify-between gap-3", children: [
8048
- /* @__PURE__ */ jsx78("span", { className: "truncate text-v2-xs font-semibold text-v2-fg-muted", children: item.label }),
8146
+ /* @__PURE__ */ jsx79("span", { className: "truncate text-v2-xs font-semibold text-v2-fg-muted", children: item.label }),
8049
8147
  /* @__PURE__ */ jsxs58("span", { className: "flex items-baseline gap-2", children: [
8050
- /* @__PURE__ */ jsx78("span", { className: "font-bold text-v2-fg-default", children: valueFormatter(item.value) }),
8051
- hasSecondary && /* @__PURE__ */ jsx78("span", { className: "text-v2-xs text-v2-fg-subtle", children: item.secondaryLabel ? `${item.secondaryLabel} ${secondaryFormatter(item.secondaryValue ?? 0)}` : secondaryFormatter(item.secondaryValue ?? 0) })
8148
+ /* @__PURE__ */ jsx79("span", { className: "font-bold text-v2-fg-default", children: valueFormatter(item.value) }),
8149
+ hasSecondary && /* @__PURE__ */ jsx79("span", { className: "text-v2-xs text-v2-fg-subtle", children: item.secondaryLabel ? `${item.secondaryLabel} ${secondaryFormatter(item.secondaryValue ?? 0)}` : secondaryFormatter(item.secondaryValue ?? 0) })
8052
8150
  ] })
8053
8151
  ] }),
8054
- /* @__PURE__ */ jsx78("div", { className: "h-2.5 w-full overflow-hidden rounded-v2-pill bg-v2-bg-subtle", children: /* @__PURE__ */ jsx78(
8152
+ /* @__PURE__ */ jsx79("div", { className: "h-2.5 w-full overflow-hidden rounded-v2-pill bg-v2-bg-subtle", children: /* @__PURE__ */ jsx79(
8055
8153
  "div",
8056
8154
  {
8057
8155
  className: "h-full rounded-v2-pill transition-all duration-300 group-hover:brightness-110",
@@ -8084,7 +8182,7 @@ import {
8084
8182
  XAxis,
8085
8183
  YAxis
8086
8184
  } from "recharts";
8087
- import { jsx as jsx79, jsxs as jsxs59 } from "react/jsx-runtime";
8185
+ import { jsx as jsx80, jsxs as jsxs59 } from "react/jsx-runtime";
8088
8186
  function toRows(labels, series) {
8089
8187
  return labels.map((label, i) => {
8090
8188
  const row = { x: label };
@@ -8106,9 +8204,9 @@ function ChartTooltip2({
8106
8204
  }) {
8107
8205
  if (!active || !(payload == null ? void 0 : payload.length)) return null;
8108
8206
  return /* @__PURE__ */ jsxs59("div", { className: "rounded-v2-md border border-v2-border-default bg-v2-panel px-3 py-2 text-v2-xs shadow-lg", children: [
8109
- /* @__PURE__ */ jsx79("p", { className: "font-semibold text-v2-fg-default", children: formatLabel(label ?? "") }),
8110
- /* @__PURE__ */ jsx79("div", { className: "mt-1 flex flex-col gap-0.5", children: payload.map((p) => /* @__PURE__ */ jsxs59("div", { className: "flex items-center gap-2", children: [
8111
- /* @__PURE__ */ jsx79(
8207
+ /* @__PURE__ */ jsx80("p", { className: "font-semibold text-v2-fg-default", children: formatLabel(label ?? "") }),
8208
+ /* @__PURE__ */ jsx80("div", { className: "mt-1 flex flex-col gap-0.5", children: payload.map((p) => /* @__PURE__ */ jsxs59("div", { className: "flex items-center gap-2", children: [
8209
+ /* @__PURE__ */ jsx80(
8112
8210
  "span",
8113
8211
  {
8114
8212
  className: "size-2 rounded-full",
@@ -8120,7 +8218,7 @@ function ChartTooltip2({
8120
8218
  p.name,
8121
8219
  ":"
8122
8220
  ] }),
8123
- /* @__PURE__ */ jsx79("span", { className: "font-semibold text-v2-fg-default", children: formatValue(typeof p.value === "number" ? p.value : 0) })
8221
+ /* @__PURE__ */ jsx80("span", { className: "font-semibold text-v2-fg-default", children: formatValue(typeof p.value === "number" ? p.value : 0) })
8124
8222
  ] }, p.name)) })
8125
8223
  ] });
8126
8224
  }
@@ -8136,15 +8234,15 @@ function LineChart({
8136
8234
  }) {
8137
8235
  const rows = toRows(labels, series);
8138
8236
  const Chart = variant === "area" ? RechartsAreaChart : RechartsLineChart;
8139
- return /* @__PURE__ */ jsx79(
8237
+ return /* @__PURE__ */ jsx80(
8140
8238
  "div",
8141
8239
  {
8142
8240
  role: "img",
8143
8241
  "aria-label": ariaLabel,
8144
8242
  className: cn("w-full", className),
8145
8243
  style: { height },
8146
- children: /* @__PURE__ */ jsx79(ResponsiveContainer2, { width: "100%", height: "100%", children: /* @__PURE__ */ jsxs59(Chart, { data: rows, margin: { top: 8, right: 12, left: 0, bottom: 0 }, children: [
8147
- /* @__PURE__ */ jsx79("defs", { children: series.map((s, i) => /* @__PURE__ */ jsxs59(
8244
+ children: /* @__PURE__ */ jsx80(ResponsiveContainer2, { width: "100%", height: "100%", children: /* @__PURE__ */ jsxs59(Chart, { data: rows, margin: { top: 8, right: 12, left: 0, bottom: 0 }, children: [
8245
+ /* @__PURE__ */ jsx80("defs", { children: series.map((s, i) => /* @__PURE__ */ jsxs59(
8148
8246
  "linearGradient",
8149
8247
  {
8150
8248
  id: `v2-line-grad-${i}`,
@@ -8153,13 +8251,13 @@ function LineChart({
8153
8251
  x2: "0",
8154
8252
  y2: "1",
8155
8253
  children: [
8156
- /* @__PURE__ */ jsx79("stop", { offset: "0%", stopColor: s.color, stopOpacity: 0.35 }),
8157
- /* @__PURE__ */ jsx79("stop", { offset: "95%", stopColor: s.color, stopOpacity: 0 })
8254
+ /* @__PURE__ */ jsx80("stop", { offset: "0%", stopColor: s.color, stopOpacity: 0.35 }),
8255
+ /* @__PURE__ */ jsx80("stop", { offset: "95%", stopColor: s.color, stopOpacity: 0 })
8158
8256
  ]
8159
8257
  },
8160
8258
  `grad-${s.name}-${i}`
8161
8259
  )) }),
8162
- /* @__PURE__ */ jsx79(
8260
+ /* @__PURE__ */ jsx80(
8163
8261
  CartesianGrid,
8164
8262
  {
8165
8263
  strokeDasharray: "3 4",
@@ -8167,7 +8265,7 @@ function LineChart({
8167
8265
  vertical: false
8168
8266
  }
8169
8267
  ),
8170
- /* @__PURE__ */ jsx79(
8268
+ /* @__PURE__ */ jsx80(
8171
8269
  XAxis,
8172
8270
  {
8173
8271
  dataKey: "x",
@@ -8176,7 +8274,7 @@ function LineChart({
8176
8274
  axisLine: { stroke: "var(--v2-border-default)" }
8177
8275
  }
8178
8276
  ),
8179
- /* @__PURE__ */ jsx79(
8277
+ /* @__PURE__ */ jsx80(
8180
8278
  YAxis,
8181
8279
  {
8182
8280
  tick: { fill: "var(--v2-fg-subtle)", fontSize: 11 },
@@ -8186,14 +8284,14 @@ function LineChart({
8186
8284
  width: 70
8187
8285
  }
8188
8286
  ),
8189
- /* @__PURE__ */ jsx79(
8287
+ /* @__PURE__ */ jsx80(
8190
8288
  Tooltip3,
8191
8289
  {
8192
8290
  cursor: {
8193
8291
  stroke: "var(--v2-border-default)",
8194
8292
  strokeDasharray: "3 4"
8195
8293
  },
8196
- content: /* @__PURE__ */ jsx79(
8294
+ content: /* @__PURE__ */ jsx80(
8197
8295
  ChartTooltip2,
8198
8296
  {
8199
8297
  formatValue,
@@ -8202,7 +8300,7 @@ function LineChart({
8202
8300
  )
8203
8301
  }
8204
8302
  ),
8205
- /* @__PURE__ */ jsx79(
8303
+ /* @__PURE__ */ jsx80(
8206
8304
  Legend,
8207
8305
  {
8208
8306
  verticalAlign: "top",
@@ -8212,7 +8310,7 @@ function LineChart({
8212
8310
  }
8213
8311
  ),
8214
8312
  series.map(
8215
- (s, i) => variant === "area" ? /* @__PURE__ */ jsx79(
8313
+ (s, i) => variant === "area" ? /* @__PURE__ */ jsx80(
8216
8314
  Area,
8217
8315
  {
8218
8316
  type: "monotone",
@@ -8227,7 +8325,7 @@ function LineChart({
8227
8325
  }
8228
8326
  },
8229
8327
  s.name
8230
- ) : /* @__PURE__ */ jsx79(
8328
+ ) : /* @__PURE__ */ jsx80(
8231
8329
  Line,
8232
8330
  {
8233
8331
  type: "monotone",
@@ -8251,7 +8349,7 @@ function LineChart({
8251
8349
 
8252
8350
  // src/patterns/PanelCard/PanelCard.tsx
8253
8351
  import { forwardRef as forwardRef54 } from "react";
8254
- import { jsx as jsx80, jsxs as jsxs60 } from "react/jsx-runtime";
8352
+ import { jsx as jsx81, jsxs as jsxs60 } from "react/jsx-runtime";
8255
8353
  var PanelCard = forwardRef54(
8256
8354
  ({
8257
8355
  icon,
@@ -8291,18 +8389,18 @@ var PanelCard = forwardRef54(
8291
8389
  ),
8292
8390
  children: [
8293
8391
  /* @__PURE__ */ jsxs60("div", { className: "flex min-w-0 items-start gap-3", children: [
8294
- icon && /* @__PURE__ */ jsx80("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 }),
8392
+ icon && /* @__PURE__ */ jsx81("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 }),
8295
8393
  (title || subtitle) && /* @__PURE__ */ jsxs60("div", { className: "flex min-w-0 flex-col gap-0.5", children: [
8296
- title && /* @__PURE__ */ jsx80("h2", { className: "m-0 text-v2-base font-semibold text-v2-fg-default", children: title }),
8297
- subtitle && /* @__PURE__ */ jsx80("p", { className: "m-0 text-v2-sm text-v2-fg-muted", children: subtitle })
8394
+ title && /* @__PURE__ */ jsx81("h2", { className: "m-0 text-v2-base font-semibold text-v2-fg-default", children: title }),
8395
+ subtitle && /* @__PURE__ */ jsx81("p", { className: "m-0 text-v2-sm text-v2-fg-muted", children: subtitle })
8298
8396
  ] })
8299
8397
  ] }),
8300
- actions && /* @__PURE__ */ jsx80("div", { className: "flex shrink-0 items-center gap-2", children: actions })
8398
+ actions && /* @__PURE__ */ jsx81("div", { className: "flex shrink-0 items-center gap-2", children: actions })
8301
8399
  ]
8302
8400
  }
8303
8401
  ),
8304
- children !== void 0 && /* @__PURE__ */ jsx80("div", { className: cn(padding, bodyClassName), children }),
8305
- footer && /* @__PURE__ */ jsx80(
8402
+ children !== void 0 && /* @__PURE__ */ jsx81("div", { className: cn(padding, bodyClassName), children }),
8403
+ footer && /* @__PURE__ */ jsx81(
8306
8404
  "footer",
8307
8405
  {
8308
8406
  className: cn(
@@ -8321,7 +8419,7 @@ PanelCard.displayName = "PanelCard";
8321
8419
 
8322
8420
  // src/patterns/SectionCard/SectionCard.tsx
8323
8421
  import { WarningCircle as WarningCircle5 } from "@phosphor-icons/react";
8324
- import { jsx as jsx81, jsxs as jsxs61 } from "react/jsx-runtime";
8422
+ import { jsx as jsx82, jsxs as jsxs61 } from "react/jsx-runtime";
8325
8423
  function SectionCard({
8326
8424
  title,
8327
8425
  icon,
@@ -8343,7 +8441,7 @@ function SectionCard({
8343
8441
  children: [
8344
8442
  /* @__PURE__ */ jsxs61("div", { className: "flex flex-wrap items-center justify-between gap-x-3 gap-y-2 border-b border-v2-border-subtle pb-3", children: [
8345
8443
  /* @__PURE__ */ jsxs61("div", { className: "flex items-center gap-2", children: [
8346
- icon && /* @__PURE__ */ jsx81(
8444
+ icon && /* @__PURE__ */ jsx82(
8347
8445
  "span",
8348
8446
  {
8349
8447
  "aria-hidden": "true",
@@ -8351,9 +8449,9 @@ function SectionCard({
8351
8449
  children: icon
8352
8450
  }
8353
8451
  ),
8354
- /* @__PURE__ */ jsx81(Heading, { level: 3, size: "sm", children: title }),
8452
+ /* @__PURE__ */ jsx82(Heading, { level: 3, size: "sm", children: title }),
8355
8453
  highlight && /* @__PURE__ */ jsxs61("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: [
8356
- /* @__PURE__ */ jsx81(WarningCircle5, { size: 11, weight: "fill", "aria-hidden": "true" }),
8454
+ /* @__PURE__ */ jsx82(WarningCircle5, { size: 11, weight: "fill", "aria-hidden": "true" }),
8357
8455
  "Pendente"
8358
8456
  ] })
8359
8457
  ] }),
@@ -8376,7 +8474,7 @@ import {
8376
8474
  XAxis as XAxis2,
8377
8475
  YAxis as YAxis2
8378
8476
  } from "recharts";
8379
- import { jsx as jsx82, jsxs as jsxs62 } from "react/jsx-runtime";
8477
+ import { jsx as jsx83, jsxs as jsxs62 } from "react/jsx-runtime";
8380
8478
  function toRows2(labels, stacks) {
8381
8479
  return labels.map((label, i) => {
8382
8480
  const row = { x: label };
@@ -8402,10 +8500,10 @@ function ChartTooltip3({
8402
8500
  0
8403
8501
  );
8404
8502
  return /* @__PURE__ */ jsxs62("div", { className: "rounded-v2-md border border-v2-border-default bg-v2-panel px-3 py-2 text-v2-xs shadow-lg", children: [
8405
- /* @__PURE__ */ jsx82("p", { className: "font-semibold text-v2-fg-default", children: formatLabel(label ?? "") }),
8503
+ /* @__PURE__ */ jsx83("p", { className: "font-semibold text-v2-fg-default", children: formatLabel(label ?? "") }),
8406
8504
  /* @__PURE__ */ jsxs62("div", { className: "mt-1 flex flex-col gap-0.5", children: [
8407
8505
  payload.map((p) => /* @__PURE__ */ jsxs62("div", { className: "flex items-center gap-2", children: [
8408
- /* @__PURE__ */ jsx82(
8506
+ /* @__PURE__ */ jsx83(
8409
8507
  "span",
8410
8508
  {
8411
8509
  className: "size-2 rounded-sm",
@@ -8417,11 +8515,11 @@ function ChartTooltip3({
8417
8515
  p.name,
8418
8516
  ":"
8419
8517
  ] }),
8420
- /* @__PURE__ */ jsx82("span", { className: "font-semibold text-v2-fg-default", children: formatValue(typeof p.value === "number" ? p.value : 0) })
8518
+ /* @__PURE__ */ jsx83("span", { className: "font-semibold text-v2-fg-default", children: formatValue(typeof p.value === "number" ? p.value : 0) })
8421
8519
  ] }, p.name)),
8422
8520
  /* @__PURE__ */ jsxs62("div", { className: "mt-1 flex items-center justify-between gap-2 border-t border-v2-border-default pt-1", children: [
8423
- /* @__PURE__ */ jsx82("span", { className: "text-v2-fg-muted", children: "Total:" }),
8424
- /* @__PURE__ */ jsx82("span", { className: "font-semibold text-v2-fg-default", children: formatValue(total) })
8521
+ /* @__PURE__ */ jsx83("span", { className: "text-v2-fg-muted", children: "Total:" }),
8522
+ /* @__PURE__ */ jsx83("span", { className: "font-semibold text-v2-fg-default", children: formatValue(total) })
8425
8523
  ] })
8426
8524
  ] })
8427
8525
  ] });
@@ -8436,20 +8534,20 @@ function StackedBarChart({
8436
8534
  formatLabel = (l) => l
8437
8535
  }) {
8438
8536
  const rows = toRows2(labels, stacks);
8439
- return /* @__PURE__ */ jsx82(
8537
+ return /* @__PURE__ */ jsx83(
8440
8538
  "div",
8441
8539
  {
8442
8540
  role: "img",
8443
8541
  "aria-label": ariaLabel,
8444
8542
  className: cn("w-full", className),
8445
8543
  style: { height },
8446
- children: /* @__PURE__ */ jsx82(ResponsiveContainer3, { width: "100%", height: "100%", children: /* @__PURE__ */ jsxs62(
8544
+ children: /* @__PURE__ */ jsx83(ResponsiveContainer3, { width: "100%", height: "100%", children: /* @__PURE__ */ jsxs62(
8447
8545
  BarChart,
8448
8546
  {
8449
8547
  data: rows,
8450
8548
  margin: { top: 8, right: 12, left: 0, bottom: 0 },
8451
8549
  children: [
8452
- /* @__PURE__ */ jsx82(
8550
+ /* @__PURE__ */ jsx83(
8453
8551
  CartesianGrid2,
8454
8552
  {
8455
8553
  strokeDasharray: "3 4",
@@ -8457,7 +8555,7 @@ function StackedBarChart({
8457
8555
  vertical: false
8458
8556
  }
8459
8557
  ),
8460
- /* @__PURE__ */ jsx82(
8558
+ /* @__PURE__ */ jsx83(
8461
8559
  XAxis2,
8462
8560
  {
8463
8561
  dataKey: "x",
@@ -8466,7 +8564,7 @@ function StackedBarChart({
8466
8564
  axisLine: { stroke: "var(--v2-border-default)" }
8467
8565
  }
8468
8566
  ),
8469
- /* @__PURE__ */ jsx82(
8567
+ /* @__PURE__ */ jsx83(
8470
8568
  YAxis2,
8471
8569
  {
8472
8570
  tick: { fill: "var(--v2-fg-subtle)", fontSize: 11 },
@@ -8476,11 +8574,11 @@ function StackedBarChart({
8476
8574
  width: 70
8477
8575
  }
8478
8576
  ),
8479
- /* @__PURE__ */ jsx82(
8577
+ /* @__PURE__ */ jsx83(
8480
8578
  Tooltip4,
8481
8579
  {
8482
8580
  cursor: { fill: "var(--v2-bg-subtle)" },
8483
- content: /* @__PURE__ */ jsx82(
8581
+ content: /* @__PURE__ */ jsx83(
8484
8582
  ChartTooltip3,
8485
8583
  {
8486
8584
  formatValue,
@@ -8489,7 +8587,7 @@ function StackedBarChart({
8489
8587
  )
8490
8588
  }
8491
8589
  ),
8492
- /* @__PURE__ */ jsx82(
8590
+ /* @__PURE__ */ jsx83(
8493
8591
  Legend2,
8494
8592
  {
8495
8593
  verticalAlign: "top",
@@ -8498,7 +8596,7 @@ function StackedBarChart({
8498
8596
  wrapperStyle: { fontSize: 11, paddingBottom: 8 }
8499
8597
  }
8500
8598
  ),
8501
- stacks.map((s) => /* @__PURE__ */ jsx82(
8599
+ stacks.map((s) => /* @__PURE__ */ jsx83(
8502
8600
  Bar,
8503
8601
  {
8504
8602
  dataKey: s.name,
@@ -8517,11 +8615,11 @@ function StackedBarChart({
8517
8615
 
8518
8616
  // src/patterns/WorkflowDesigner/WorkflowDesigner.tsx
8519
8617
  import { Lightning, Hand, Gear as Gear2 } from "@phosphor-icons/react";
8520
- import { jsx as jsx83, jsxs as jsxs63 } from "react/jsx-runtime";
8618
+ import { jsx as jsx84, jsxs as jsxs63 } from "react/jsx-runtime";
8521
8619
  var kindIconMap = {
8522
- automatic: /* @__PURE__ */ jsx83(Lightning, { size: 14, "aria-hidden": "true" }),
8523
- manual: /* @__PURE__ */ jsx83(Hand, { size: 14, "aria-hidden": "true" }),
8524
- system: /* @__PURE__ */ jsx83(Gear2, { size: 14, "aria-hidden": "true" })
8620
+ automatic: /* @__PURE__ */ jsx84(Lightning, { size: 14, "aria-hidden": "true" }),
8621
+ manual: /* @__PURE__ */ jsx84(Hand, { size: 14, "aria-hidden": "true" }),
8622
+ system: /* @__PURE__ */ jsx84(Gear2, { size: 14, "aria-hidden": "true" })
8525
8623
  };
8526
8624
  function NodeCard({
8527
8625
  node,
@@ -8542,8 +8640,8 @@ function NodeCard({
8542
8640
  ),
8543
8641
  children: [
8544
8642
  /* @__PURE__ */ jsxs63("div", { className: "mb-1 flex items-center gap-1.5", children: [
8545
- /* @__PURE__ */ jsx83("span", { className: "text-v2-fg-muted", children: kindIconMap[node.kind] }),
8546
- /* @__PURE__ */ jsx83("span", { className: "truncate text-v2-sm font-semibold text-v2-fg-default", children: node.label })
8643
+ /* @__PURE__ */ jsx84("span", { className: "text-v2-fg-muted", children: kindIconMap[node.kind] }),
8644
+ /* @__PURE__ */ jsx84("span", { className: "truncate text-v2-sm font-semibold text-v2-fg-default", children: node.label })
8547
8645
  ] }),
8548
8646
  (rulesCount > 0 || actionsCount > 0) && /* @__PURE__ */ jsxs63("div", { className: "mt-1.5 flex flex-wrap items-center gap-1", children: [
8549
8647
  rulesCount > 0 && /* @__PURE__ */ jsxs63(Badge, { size: "sm", variant: "default", children: [
@@ -8567,11 +8665,11 @@ function SidePanel({
8567
8665
  }) {
8568
8666
  const selected = nodes.find((n) => n.id === selectedNodeId);
8569
8667
  return /* @__PURE__ */ jsxs63("div", { className: "w-72 shrink-0 rounded-v2-lg border border-v2-border-default bg-v2-panel p-4 shadow-sm", children: [
8570
- /* @__PURE__ */ jsx83(Heading, { level: 3, size: "xs", className: "mb-3", children: "Regras e a\xE7\xF5es" }),
8571
- !selected ? /* @__PURE__ */ jsx83(Text, { size: "sm", color: "muted", children: "Selecione um n\xF3 para configurar" }) : /* @__PURE__ */ jsxs63("div", { className: "flex flex-col gap-4", children: [
8572
- /* @__PURE__ */ jsx83(Text, { size: "base", weight: "semibold", children: selected.label }),
8668
+ /* @__PURE__ */ jsx84(Heading, { level: 3, size: "xs", className: "mb-3", children: "Regras e a\xE7\xF5es" }),
8669
+ !selected ? /* @__PURE__ */ jsx84(Text, { size: "sm", color: "muted", children: "Selecione um n\xF3 para configurar" }) : /* @__PURE__ */ jsxs63("div", { className: "flex flex-col gap-4", children: [
8670
+ /* @__PURE__ */ jsx84(Text, { size: "base", weight: "semibold", children: selected.label }),
8573
8671
  /* @__PURE__ */ jsxs63("section", { children: [
8574
- /* @__PURE__ */ jsx83(
8672
+ /* @__PURE__ */ jsx84(
8575
8673
  Text,
8576
8674
  {
8577
8675
  size: "xs",
@@ -8581,13 +8679,13 @@ function SidePanel({
8581
8679
  children: "Regras"
8582
8680
  }
8583
8681
  ),
8584
- !selected.rules || selected.rules.length === 0 ? /* @__PURE__ */ jsx83(Text, { size: "sm", color: "muted", children: "Nenhuma regra" }) : /* @__PURE__ */ jsx83("ul", { className: "flex flex-col gap-1.5", children: selected.rules.map((rule, idx) => /* @__PURE__ */ jsxs63("li", { className: "flex flex-col gap-0.5", children: [
8585
- /* @__PURE__ */ jsx83(Text, { size: "xs", color: "muted", children: rule.type }),
8586
- /* @__PURE__ */ jsx83("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 })
8682
+ !selected.rules || selected.rules.length === 0 ? /* @__PURE__ */ jsx84(Text, { size: "sm", color: "muted", children: "Nenhuma regra" }) : /* @__PURE__ */ jsx84("ul", { className: "flex flex-col gap-1.5", children: selected.rules.map((rule, idx) => /* @__PURE__ */ jsxs63("li", { className: "flex flex-col gap-0.5", children: [
8683
+ /* @__PURE__ */ jsx84(Text, { size: "xs", color: "muted", children: rule.type }),
8684
+ /* @__PURE__ */ jsx84("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 })
8587
8685
  ] }, idx)) })
8588
8686
  ] }),
8589
8687
  /* @__PURE__ */ jsxs63("section", { children: [
8590
- /* @__PURE__ */ jsx83(
8688
+ /* @__PURE__ */ jsx84(
8591
8689
  Text,
8592
8690
  {
8593
8691
  size: "xs",
@@ -8597,9 +8695,9 @@ function SidePanel({
8597
8695
  children: "A\xE7\xF5es"
8598
8696
  }
8599
8697
  ),
8600
- !selected.actions || selected.actions.length === 0 ? /* @__PURE__ */ jsx83(Text, { size: "sm", color: "muted", children: "Nenhuma a\xE7\xE3o" }) : /* @__PURE__ */ jsx83("ul", { className: "flex flex-col gap-1.5", children: selected.actions.map((action, idx) => /* @__PURE__ */ jsxs63("li", { className: "flex flex-col gap-0.5", children: [
8601
- /* @__PURE__ */ jsx83(Text, { size: "xs", color: "muted", children: action.type }),
8602
- /* @__PURE__ */ jsx83("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 })
8698
+ !selected.actions || selected.actions.length === 0 ? /* @__PURE__ */ jsx84(Text, { size: "sm", color: "muted", children: "Nenhuma a\xE7\xE3o" }) : /* @__PURE__ */ jsx84("ul", { className: "flex flex-col gap-1.5", children: selected.actions.map((action, idx) => /* @__PURE__ */ jsxs63("li", { className: "flex flex-col gap-0.5", children: [
8699
+ /* @__PURE__ */ jsx84(Text, { size: "xs", color: "muted", children: action.type }),
8700
+ /* @__PURE__ */ jsx84("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 })
8603
8701
  ] }, idx)) })
8604
8702
  ] })
8605
8703
  ] })
@@ -8622,12 +8720,12 @@ function WorkflowDesigner({
8622
8720
  const colCount = phases.length;
8623
8721
  return /* @__PURE__ */ jsxs63("div", { className: cn("flex gap-4", className), ...props, children: [
8624
8722
  /* @__PURE__ */ jsxs63("div", { className: "min-h-[480px] flex-1 rounded-v2-lg border border-v2-border-default bg-v2-bg-subtle p-4", children: [
8625
- /* @__PURE__ */ jsx83(
8723
+ /* @__PURE__ */ jsx84(
8626
8724
  "div",
8627
8725
  {
8628
8726
  className: "mb-3 grid gap-3 border-b border-v2-border-default pb-2",
8629
8727
  style: { gridTemplateColumns: `repeat(${colCount}, minmax(0, 1fr))` },
8630
- children: phases.map((phase) => /* @__PURE__ */ jsx83(
8728
+ children: phases.map((phase) => /* @__PURE__ */ jsx84(
8631
8729
  "div",
8632
8730
  {
8633
8731
  className: "text-v2-xs font-bold uppercase tracking-wide text-v2-fg-muted",
@@ -8637,14 +8735,14 @@ function WorkflowDesigner({
8637
8735
  ))
8638
8736
  }
8639
8737
  ),
8640
- /* @__PURE__ */ jsx83(
8738
+ /* @__PURE__ */ jsx84(
8641
8739
  "div",
8642
8740
  {
8643
8741
  className: "grid gap-3",
8644
8742
  style: { gridTemplateColumns: `repeat(${colCount}, minmax(0, 1fr))` },
8645
8743
  children: phases.map((phase) => {
8646
8744
  const phaseNodes = nodes.filter((n) => n.phase === phase);
8647
- return /* @__PURE__ */ jsx83("div", { className: "flex flex-col gap-2", children: phaseNodes.map((node) => /* @__PURE__ */ jsx83(
8745
+ return /* @__PURE__ */ jsx84("div", { className: "flex flex-col gap-2", children: phaseNodes.map((node) => /* @__PURE__ */ jsx84(
8648
8746
  NodeCard,
8649
8747
  {
8650
8748
  node,
@@ -8656,21 +8754,21 @@ function WorkflowDesigner({
8656
8754
  })
8657
8755
  }
8658
8756
  ),
8659
- edges.length > 0 && /* @__PURE__ */ jsx83(
8757
+ edges.length > 0 && /* @__PURE__ */ jsx84(
8660
8758
  "div",
8661
8759
  {
8662
8760
  className: "mt-4 border-t border-v2-border-default pt-3",
8663
8761
  "aria-label": "Transi\xE7\xF5es",
8664
- children: /* @__PURE__ */ jsx83("div", { className: "flex flex-wrap gap-2", children: edges.map((edge, idx) => /* @__PURE__ */ jsxs63(
8762
+ children: /* @__PURE__ */ jsx84("div", { className: "flex flex-wrap gap-2", children: edges.map((edge, idx) => /* @__PURE__ */ jsxs63(
8665
8763
  "div",
8666
8764
  {
8667
8765
  className: "flex items-center gap-1 rounded-v2-sm border border-v2-border-default bg-v2-panel px-2 py-0.5",
8668
8766
  title: `${edge.from} \u2192 ${edge.to}`,
8669
8767
  children: [
8670
- /* @__PURE__ */ jsx83("span", { className: "font-mono text-v2-xs text-v2-fg-subtle", children: edge.from }),
8671
- /* @__PURE__ */ jsx83("span", { className: "text-v2-xs text-v2-fg-subtle", children: "\u2192" }),
8672
- /* @__PURE__ */ jsx83("span", { className: "font-mono text-v2-xs text-v2-fg-subtle", children: edge.to }),
8673
- edge.trigger && /* @__PURE__ */ jsx83(Badge, { size: "sm", variant: "default", className: "ml-1", children: edge.trigger })
8768
+ /* @__PURE__ */ jsx84("span", { className: "font-mono text-v2-xs text-v2-fg-subtle", children: edge.from }),
8769
+ /* @__PURE__ */ jsx84("span", { className: "text-v2-xs text-v2-fg-subtle", children: "\u2192" }),
8770
+ /* @__PURE__ */ jsx84("span", { className: "font-mono text-v2-xs text-v2-fg-subtle", children: edge.to }),
8771
+ edge.trigger && /* @__PURE__ */ jsx84(Badge, { size: "sm", variant: "default", className: "ml-1", children: edge.trigger })
8674
8772
  ]
8675
8773
  },
8676
8774
  idx
@@ -8678,8 +8776,8 @@ function WorkflowDesigner({
8678
8776
  }
8679
8777
  )
8680
8778
  ] }),
8681
- showPanel && /* @__PURE__ */ jsx83(SidePanel, { nodes, selectedNodeId }),
8682
- showSidePanel !== false && !selectedNodeId && /* @__PURE__ */ jsx83(SidePanel, { nodes, selectedNodeId: void 0 })
8779
+ showPanel && /* @__PURE__ */ jsx84(SidePanel, { nodes, selectedNodeId }),
8780
+ showSidePanel !== false && !selectedNodeId && /* @__PURE__ */ jsx84(SidePanel, { nodes, selectedNodeId: void 0 })
8683
8781
  ] });
8684
8782
  }
8685
8783
  export {
@@ -8714,6 +8812,7 @@ export {
8714
8812
  Dropdown,
8715
8813
  EmptyState,
8716
8814
  ErrorPageLayout,
8815
+ FileThumbnail,
8717
8816
  FileUpload,
8718
8817
  FilterBarV2,
8719
8818
  FormAlert,
@@ -8771,7 +8870,9 @@ export {
8771
8870
  dismissToast,
8772
8871
  getShortcutKeys,
8773
8872
  getShortcutLabel,
8873
+ isImageFile,
8774
8874
  isMacOS,
8875
+ isPdfFile,
8775
8876
  toast,
8776
8877
  useDsV2Theme,
8777
8878
  useToast