@adsgency_npm/adsgency-ads-ui 0.1.0-alpha.8 → 0.1.0-alpha.9

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.cjs CHANGED
@@ -2591,9 +2591,27 @@ var AdsSkeleton = React27.forwardRef(
2591
2591
  AdsSkeleton.displayName = "AdsSkeleton";
2592
2592
 
2593
2593
  // src/components/AdsInput/index.tsx
2594
+ var React29 = __toESM(require("react"), 1);
2595
+
2596
+ // src/lib/adsClearButton.tsx
2594
2597
  var React28 = __toESM(require("react"), 1);
2595
2598
  var import_lucide_react9 = require("lucide-react");
2596
2599
  var import_jsx_runtime31 = require("react/jsx-runtime");
2600
+ var adsClearButtonClassName = "inline-flex min-w-0 shrink-0 items-center justify-center rounded-sm border-0 bg-transparent p-0 text-icon-muted shadow-none transition-colors hover:bg-transparent hover:text-foreground focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-[rgba(161,161,161,0.5)] focus-visible:ring-offset-0 disabled:pointer-events-none disabled:opacity-50";
2601
+ var AdsClearButton = React28.forwardRef(({ className, type = "button", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2602
+ "button",
2603
+ {
2604
+ ...props,
2605
+ className: cn(adsClearButtonClassName, "h-4 w-4", className),
2606
+ ref,
2607
+ type,
2608
+ children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react9.X, { "aria-hidden": true, className: "h-3.5 w-3.5" })
2609
+ }
2610
+ ));
2611
+ AdsClearButton.displayName = "AdsClearButton";
2612
+
2613
+ // src/components/AdsInput/index.tsx
2614
+ var import_jsx_runtime32 = require("react/jsx-runtime");
2597
2615
  var inputBaseClassName = "flex w-full rounded-md border border-border bg-card px-3 py-2 ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-[var(--card-foreground)] placeholder:text-[var(--muted-foreground)] focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm";
2598
2616
  var inputSizeClasses = {
2599
2617
  sm: "h-8 text-sm leading-5",
@@ -2635,7 +2653,7 @@ function getInputSurfaceClassName({
2635
2653
  className
2636
2654
  );
2637
2655
  }
2638
- var AdsInput = React28.forwardRef(
2656
+ var AdsInput = React29.forwardRef(
2639
2657
  ({
2640
2658
  action,
2641
2659
  className,
@@ -2657,9 +2675,9 @@ var AdsInput = React28.forwardRef(
2657
2675
  ...props
2658
2676
  }, ref) => {
2659
2677
  const { messages } = useAdsI18n();
2660
- const inputRef = React28.useRef(null);
2661
- const [selectedFiles, setSelectedFiles] = React28.useState([]);
2662
- const [currentValue, setCurrentValue] = React28.useState(
2678
+ const inputRef = React29.useRef(null);
2679
+ const [selectedFiles, setSelectedFiles] = React29.useState([]);
2680
+ const [currentValue, setCurrentValue] = React29.useState(
2663
2681
  () => getTextInputValue(props.value ?? props.defaultValue)
2664
2682
  );
2665
2683
  const description = useAdsFieldDescription({
@@ -2668,7 +2686,7 @@ var AdsInput = React28.forwardRef(
2668
2686
  helperText,
2669
2687
  id
2670
2688
  });
2671
- React28.useEffect(() => {
2689
+ React29.useEffect(() => {
2672
2690
  if (props.value !== void 0) {
2673
2691
  setCurrentValue(getTextInputValue(props.value));
2674
2692
  }
@@ -2685,7 +2703,7 @@ var AdsInput = React28.forwardRef(
2685
2703
  const resolvedClearButtonLabel = clearButtonLabel ?? messages.input.clear;
2686
2704
  const resolvedFileTriggerLabel = fileTriggerLabel ?? messages.input.chooseFile;
2687
2705
  const resolvedEmptyFileLabel = emptyFileLabel ?? messages.input.noFileChosen;
2688
- const handleChange = React28.useCallback(
2706
+ const handleChange = React29.useCallback(
2689
2707
  (event) => {
2690
2708
  setCurrentValue(event.target.value);
2691
2709
  if (isFileInput) {
@@ -2697,7 +2715,7 @@ var AdsInput = React28.forwardRef(
2697
2715
  },
2698
2716
  [isFileInput, onChange]
2699
2717
  );
2700
- const handleClear = React28.useCallback(() => {
2718
+ const handleClear = React29.useCallback(() => {
2701
2719
  const element = inputRef.current;
2702
2720
  if (!element) {
2703
2721
  return;
@@ -2712,10 +2730,10 @@ var AdsInput = React28.forwardRef(
2712
2730
  onClear?.();
2713
2731
  }, [onClear]);
2714
2732
  const fileNameText = selectedFiles.length > 0 ? selectedFiles.join(", ") : resolvedEmptyFileLabel;
2715
- const helperNode = helperText ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(AdsFieldDescription, { id: description.helperId, children: helperText }) : null;
2716
- const errorNode = errorText ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(AdsFieldError, { id: description.errorId, children: errorText }) : null;
2717
- const inputNode = isFileInput ? /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "relative flex w-full min-w-0 flex-1 items-center", children: [
2718
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2733
+ const helperNode = helperText ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(AdsFieldDescription, { id: description.helperId, children: helperText }) : null;
2734
+ const errorNode = errorText ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(AdsFieldError, { id: description.errorId, children: errorText }) : null;
2735
+ const inputNode = isFileInput ? /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "relative flex w-full min-w-0 flex-1 items-center", children: [
2736
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
2719
2737
  Input,
2720
2738
  {
2721
2739
  "aria-describedby": description.describedBy,
@@ -2735,7 +2753,7 @@ var AdsInput = React28.forwardRef(
2735
2753
  ...props
2736
2754
  }
2737
2755
  ),
2738
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
2756
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
2739
2757
  "div",
2740
2758
  {
2741
2759
  "aria-hidden": "true",
@@ -2746,7 +2764,7 @@ var AdsInput = React28.forwardRef(
2746
2764
  props.disabled ? "cursor-not-allowed opacity-50" : void 0
2747
2765
  ),
2748
2766
  children: [
2749
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2767
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
2750
2768
  "span",
2751
2769
  {
2752
2770
  className: cn(
@@ -2756,7 +2774,7 @@ var AdsInput = React28.forwardRef(
2756
2774
  children: resolvedFileTriggerLabel
2757
2775
  }
2758
2776
  ),
2759
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2777
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
2760
2778
  "span",
2761
2779
  {
2762
2780
  className: cn(
@@ -2769,9 +2787,9 @@ var AdsInput = React28.forwardRef(
2769
2787
  ]
2770
2788
  }
2771
2789
  )
2772
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "relative flex w-full min-w-0 flex-1 items-center", children: [
2773
- prefix ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "pointer-events-none absolute left-md inline-flex text-icon-muted", children: prefix }) : null,
2774
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2790
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "relative flex w-full min-w-0 flex-1 items-center", children: [
2791
+ prefix ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "pointer-events-none absolute left-md inline-flex text-icon-muted", children: prefix }) : null,
2792
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
2775
2793
  Input,
2776
2794
  {
2777
2795
  "aria-describedby": description.describedBy,
@@ -2787,30 +2805,23 @@ var AdsInput = React28.forwardRef(
2787
2805
  ...props
2788
2806
  }
2789
2807
  ),
2790
- canClear || suffix ? /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("span", { className: "absolute right-md inline-flex items-center gap-xs text-icon-muted", children: [
2791
- suffix ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "inline-flex items-center", children: suffix }) : null,
2792
- canClear ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2793
- Button,
2808
+ canClear || suffix ? /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("span", { className: "absolute right-md inline-flex items-center gap-xs text-icon-muted", children: [
2809
+ suffix ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "inline-flex items-center", children: suffix }) : null,
2810
+ canClear ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
2811
+ AdsClearButton,
2794
2812
  {
2795
2813
  "aria-label": resolvedClearButtonLabel,
2796
- className: cn(
2797
- "inline-flex h-4 w-4 items-center justify-center rounded-sm text-icon-muted transition-colors focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-[rgba(161,161,161,0.5)] focus-visible:ring-offset-0",
2798
- "hover:text-[var(--card-foreground)]"
2799
- ),
2800
- onClick: handleClear,
2801
- type: "button",
2802
- variant: "ghost",
2803
- children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react9.X, { "aria-hidden": true, className: "h-3.5 w-3.5" })
2814
+ onClick: handleClear
2804
2815
  }
2805
2816
  ) : null
2806
2817
  ] }) : null
2807
2818
  ] });
2808
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(AdsFieldItem, { children: [
2809
- label ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(AdsFieldLabel, { htmlFor: description.inputId, children: label }) : null,
2819
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(AdsFieldItem, { children: [
2820
+ label ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(AdsFieldLabel, { htmlFor: description.inputId, children: label }) : null,
2810
2821
  descriptionPlacement === "above" ? helperNode : null,
2811
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex w-full items-center gap-sm", children: [
2822
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex w-full items-center gap-sm", children: [
2812
2823
  inputNode,
2813
- action ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "shrink-0", children: action }) : null
2824
+ action ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "shrink-0", children: action }) : null
2814
2825
  ] }),
2815
2826
  descriptionPlacement === "below" ? helperNode : null,
2816
2827
  errorNode
@@ -2820,14 +2831,13 @@ var AdsInput = React28.forwardRef(
2820
2831
  AdsInput.displayName = "AdsInput";
2821
2832
 
2822
2833
  // src/components/AdsInputGroup/index.tsx
2823
- var React30 = __toESM(require("react"), 1);
2824
- var import_lucide_react10 = require("lucide-react");
2834
+ var React31 = __toESM(require("react"), 1);
2825
2835
 
2826
2836
  // src/primitives/textarea.tsx
2827
- var React29 = __toESM(require("react"), 1);
2828
- var import_jsx_runtime32 = require("react/jsx-runtime");
2829
- var Textarea = React29.forwardRef(({ className, ...props }, ref) => {
2830
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
2837
+ var React30 = __toESM(require("react"), 1);
2838
+ var import_jsx_runtime33 = require("react/jsx-runtime");
2839
+ var Textarea = React30.forwardRef(({ className, ...props }, ref) => {
2840
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
2831
2841
  "textarea",
2832
2842
  {
2833
2843
  className: cn(
@@ -2842,7 +2852,7 @@ var Textarea = React29.forwardRef(({ className, ...props }, ref) => {
2842
2852
  Textarea.displayName = "Textarea";
2843
2853
 
2844
2854
  // src/components/AdsInputGroup/index.tsx
2845
- var import_jsx_runtime33 = require("react/jsx-runtime");
2855
+ var import_jsx_runtime34 = require("react/jsx-runtime");
2846
2856
  function useAdsInputGroupDescription(describedBy, helperText, errorText, idBase) {
2847
2857
  const helperId = helperText ? `${idBase}-helper` : void 0;
2848
2858
  const errorId = errorText ? `${idBase}-error` : void 0;
@@ -2861,11 +2871,11 @@ function AdsInputGroupChrome({
2861
2871
  helperText,
2862
2872
  label
2863
2873
  }) {
2864
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex w-full flex-col gap-md", children: [
2865
- label ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "text-sm font-medium leading-5 text-foreground", children: label }) : null,
2874
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex w-full flex-col gap-md", children: [
2875
+ label ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "text-sm font-medium leading-5 text-foreground", children: label }) : null,
2866
2876
  children,
2867
- helperText ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "text-sm leading-5 text-muted-foreground", id: helperId, children: helperText }) : null,
2868
- errorText ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "text-sm leading-5 text-destructive", id: errorId, children: errorText }) : null
2877
+ helperText ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("p", { className: "text-sm leading-5 text-muted-foreground", id: helperId, children: helperText }) : null,
2878
+ errorText ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("p", { className: "text-sm leading-5 text-destructive", id: errorId, children: errorText }) : null
2869
2879
  ] });
2870
2880
  }
2871
2881
  var addonBaseClassName = "flex shrink-0 items-center self-stretch bg-secondary px-lg text-sm leading-5 text-foreground";
@@ -2904,21 +2914,21 @@ function AdsInputGroup({
2904
2914
  trailingAddon,
2905
2915
  trailingAddonClassName
2906
2916
  }) {
2907
- const generatedId = React30.useId();
2917
+ const generatedId = React31.useId();
2908
2918
  const description = useAdsInputGroupDescription(
2909
2919
  void 0,
2910
2920
  helperText,
2911
2921
  errorText,
2912
2922
  id ?? generatedId
2913
2923
  );
2914
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
2924
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
2915
2925
  AdsInputGroupChrome,
2916
2926
  {
2917
2927
  errorText,
2918
2928
  helperText,
2919
2929
  label,
2920
2930
  ...description,
2921
- children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: cn("w-full", className), children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
2931
+ children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: cn("w-full", className), children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
2922
2932
  "div",
2923
2933
  {
2924
2934
  className: cn(
@@ -2928,9 +2938,9 @@ function AdsInputGroup({
2928
2938
  surfaceClassName
2929
2939
  ),
2930
2940
  children: [
2931
- header ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "border-b border-border px-md py-md text-sm text-foreground", children: header }) : null,
2932
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex min-h-11 w-full items-stretch", children: [
2933
- leadingAddon ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
2941
+ header ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "border-b border-border px-md py-md text-sm text-foreground", children: header }) : null,
2942
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex min-h-11 w-full items-stretch", children: [
2943
+ leadingAddon ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
2934
2944
  "div",
2935
2945
  {
2936
2946
  className: cn(
@@ -2941,7 +2951,7 @@ function AdsInputGroup({
2941
2951
  children: leadingAddon
2942
2952
  }
2943
2953
  ) : null,
2944
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
2954
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
2945
2955
  "div",
2946
2956
  {
2947
2957
  className: cn(
@@ -2951,7 +2961,7 @@ function AdsInputGroup({
2951
2961
  children
2952
2962
  }
2953
2963
  ),
2954
- trailingAddon ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
2964
+ trailingAddon ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
2955
2965
  "div",
2956
2966
  {
2957
2967
  className: cn(
@@ -2963,33 +2973,33 @@ function AdsInputGroup({
2963
2973
  }
2964
2974
  ) : null
2965
2975
  ] }),
2966
- footer ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "border-t border-border px-md py-sm text-sm text-muted-foreground", children: footer }) : null
2976
+ footer ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "border-t border-border px-md py-sm text-sm text-muted-foreground", children: footer }) : null
2967
2977
  ]
2968
2978
  }
2969
2979
  ) })
2970
2980
  }
2971
2981
  );
2972
2982
  }
2973
- var AdsInputGroupInput = React30.forwardRef(({ className, clearable = false, clearButtonLabel, onChange, onClear, ...props }, ref) => {
2983
+ var AdsInputGroupInput = React31.forwardRef(({ className, clearable = false, clearButtonLabel, onChange, onClear, ...props }, ref) => {
2974
2984
  const { messages } = useAdsI18n();
2975
- const inputRef = React30.useRef(null);
2976
- const [currentValue, setCurrentValue] = React30.useState(
2985
+ const inputRef = React31.useRef(null);
2986
+ const [currentValue, setCurrentValue] = React31.useState(
2977
2987
  () => getInputGroupValue(props.value ?? props.defaultValue)
2978
2988
  );
2979
- React30.useEffect(() => {
2989
+ React31.useEffect(() => {
2980
2990
  if (props.value !== void 0) {
2981
2991
  setCurrentValue(getInputGroupValue(props.value));
2982
2992
  }
2983
2993
  }, [props.value]);
2984
2994
  const canClear = clearable && !props.disabled && !props.readOnly && currentValue.length > 0;
2985
- const handleChange = React30.useCallback(
2995
+ const handleChange = React31.useCallback(
2986
2996
  (event) => {
2987
2997
  setCurrentValue(event.target.value);
2988
2998
  onChange?.(event);
2989
2999
  },
2990
3000
  [onChange]
2991
3001
  );
2992
- const handleClear = React30.useCallback(() => {
3002
+ const handleClear = React31.useCallback(() => {
2993
3003
  const element = inputRef.current;
2994
3004
  if (!element) {
2995
3005
  return;
@@ -3003,8 +3013,8 @@ var AdsInputGroupInput = React30.forwardRef(({ className, clearable = false, cle
3003
3013
  element.focus();
3004
3014
  onClear?.();
3005
3015
  }, [onClear]);
3006
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "relative flex w-full min-w-0 flex-1 items-center", children: [
3007
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
3016
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "relative flex w-full min-w-0 flex-1 items-center", children: [
3017
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3008
3018
  Input,
3009
3019
  {
3010
3020
  className: cn(
@@ -3021,21 +3031,18 @@ var AdsInputGroupInput = React30.forwardRef(({ className, clearable = false, cle
3021
3031
  ...props
3022
3032
  }
3023
3033
  ),
3024
- canClear ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
3025
- Button,
3034
+ canClear ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3035
+ AdsClearButton,
3026
3036
  {
3027
3037
  "aria-label": clearButtonLabel ?? messages.input.clear,
3028
- className: "absolute right-0 inline-flex h-4 w-4 items-center justify-center rounded-sm text-icon-muted transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-[rgba(161,161,161,0.5)] focus-visible:ring-offset-0",
3029
- onClick: handleClear,
3030
- type: "button",
3031
- variant: "ghost",
3032
- children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_lucide_react10.X, { "aria-hidden": true, className: "h-3.5 w-3.5" })
3038
+ className: "absolute right-0",
3039
+ onClick: handleClear
3033
3040
  }
3034
3041
  ) : null
3035
3042
  ] });
3036
3043
  });
3037
3044
  AdsInputGroupInput.displayName = "AdsInputGroupInput";
3038
- var AdsInputGroupTextarea = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
3045
+ var AdsInputGroupTextarea = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3039
3046
  Textarea,
3040
3047
  {
3041
3048
  className: cn(
@@ -3050,14 +3057,14 @@ var AdsInputGroupTextarea = React30.forwardRef(({ className, ...props }, ref) =>
3050
3057
  AdsInputGroupTextarea.displayName = "AdsInputGroupTextarea";
3051
3058
 
3052
3059
  // src/components/AdsInputOTP/index.tsx
3053
- var React32 = __toESM(require("react"), 1);
3060
+ var React33 = __toESM(require("react"), 1);
3054
3061
 
3055
3062
  // src/primitives/input-otp.tsx
3056
- var React31 = __toESM(require("react"), 1);
3063
+ var React32 = __toESM(require("react"), 1);
3057
3064
  var import_input_otp = require("input-otp");
3058
- var import_lucide_react11 = require("lucide-react");
3059
- var import_jsx_runtime34 = require("react/jsx-runtime");
3060
- var InputOTP = React31.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3065
+ var import_lucide_react10 = require("lucide-react");
3066
+ var import_jsx_runtime35 = require("react/jsx-runtime");
3067
+ var InputOTP = React32.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3061
3068
  import_input_otp.OTPInput,
3062
3069
  {
3063
3070
  ref,
@@ -3070,12 +3077,12 @@ var InputOTP = React31.forwardRef(({ className, containerClassName, ...props },
3070
3077
  }
3071
3078
  ));
3072
3079
  InputOTP.displayName = "InputOTP";
3073
- var InputOTPGroup = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { ref, className: cn("flex items-center", className), ...props }));
3080
+ var InputOTPGroup = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { ref, className: cn("flex items-center", className), ...props }));
3074
3081
  InputOTPGroup.displayName = "InputOTPGroup";
3075
- var InputOTPSlot = React31.forwardRef(({ index, className, ...props }, ref) => {
3076
- const inputOTPContext = React31.useContext(import_input_otp.OTPInputContext);
3082
+ var InputOTPSlot = React32.forwardRef(({ index, className, ...props }, ref) => {
3083
+ const inputOTPContext = React32.useContext(import_input_otp.OTPInputContext);
3077
3084
  const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];
3078
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
3085
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
3079
3086
  "div",
3080
3087
  {
3081
3088
  ref,
@@ -3087,19 +3094,19 @@ var InputOTPSlot = React31.forwardRef(({ index, className, ...props }, ref) => {
3087
3094
  ...props,
3088
3095
  children: [
3089
3096
  char,
3090
- hasFakeCaret && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "h-4 w-px animate-caret-blink bg-foreground duration-1000" }) })
3097
+ hasFakeCaret && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "h-4 w-px animate-caret-blink bg-foreground duration-1000" }) })
3091
3098
  ]
3092
3099
  }
3093
3100
  );
3094
3101
  });
3095
3102
  InputOTPSlot.displayName = "InputOTPSlot";
3096
- var InputOTPSeparator = React31.forwardRef(({ ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { ref, role: "separator", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_lucide_react11.Dot, {}) }));
3103
+ var InputOTPSeparator = React32.forwardRef(({ ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { ref, role: "separator", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_lucide_react10.Dot, {}) }));
3097
3104
  InputOTPSeparator.displayName = "InputOTPSeparator";
3098
3105
 
3099
3106
  // src/components/AdsInputOTP/index.tsx
3100
- var import_jsx_runtime35 = require("react/jsx-runtime");
3107
+ var import_jsx_runtime36 = require("react/jsx-runtime");
3101
3108
  function useFieldDescription(id, describedBy, helperText, errorText) {
3102
- const generatedId = React32.useId();
3109
+ const generatedId = React33.useId();
3103
3110
  const inputId = id ?? generatedId;
3104
3111
  const helperId = helperText ? `${inputId}-helper` : void 0;
3105
3112
  const errorId = errorText ? `${inputId}-error` : void 0;
@@ -3120,21 +3127,21 @@ function AdsInputOTPChrome({
3120
3127
  inputId,
3121
3128
  label
3122
3129
  }) {
3123
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex w-full flex-col gap-md", children: [
3124
- label ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("label", { className: "text-sm font-medium leading-5 text-foreground", htmlFor: inputId, children: label }) : null,
3130
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "flex w-full flex-col gap-md", children: [
3131
+ label ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("label", { className: "text-sm font-medium leading-5 text-foreground", htmlFor: inputId, children: label }) : null,
3125
3132
  children,
3126
- helperText ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: "text-sm leading-5 text-muted-foreground", id: helperId, children: helperText }) : null,
3127
- errorText ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: "text-sm leading-5 text-destructive", id: errorId, children: errorText }) : null
3133
+ helperText ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("p", { className: "text-sm leading-5 text-muted-foreground", id: helperId, children: helperText }) : null,
3134
+ errorText ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("p", { className: "text-sm leading-5 text-destructive", id: errorId, children: errorText }) : null
3128
3135
  ] });
3129
3136
  }
3130
3137
  function buildSeparator(node, key) {
3131
3138
  if (node === void 0) {
3132
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(AdsInputOTPSeparator, {}, key);
3139
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(AdsInputOTPSeparator, {}, key);
3133
3140
  }
3134
- if (React32.isValidElement(node)) {
3135
- return React32.cloneElement(node, { key });
3141
+ if (React33.isValidElement(node)) {
3142
+ return React33.cloneElement(node, { key });
3136
3143
  }
3137
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { children: node }, key);
3144
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { children: node }, key);
3138
3145
  }
3139
3146
  function buildOtpChildren(groups, separator) {
3140
3147
  const defaultGroup = groups.length > 0 ? groups : [6];
@@ -3142,7 +3149,7 @@ function buildOtpChildren(groups, separator) {
3142
3149
  let index = 0;
3143
3150
  defaultGroup.forEach((size, indexOfGroup) => {
3144
3151
  items.push(
3145
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(AdsInputOTPGroup, { children: Array.from({ length: size }, (_, slotOffset) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3152
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(AdsInputOTPGroup, { children: Array.from({ length: size }, (_, slotOffset) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3146
3153
  AdsInputOTPSlot,
3147
3154
  {
3148
3155
  index: index + slotOffset
@@ -3157,11 +3164,11 @@ function buildOtpChildren(groups, separator) {
3157
3164
  });
3158
3165
  return items;
3159
3166
  }
3160
- var AdsInputOTP = React32.forwardRef(({ action, errorText, groups, helperText, label, separator, children, id, ...props }, ref) => {
3167
+ var AdsInputOTP = React33.forwardRef(({ action, errorText, groups, helperText, label, separator, children, id, ...props }, ref) => {
3161
3168
  const totalSlots = groups && groups.length > 0 ? groups.reduce((sum, value) => sum + value, 0) : 6;
3162
3169
  const description = useFieldDescription(id, props["aria-describedby"], helperText, errorText);
3163
3170
  const otpChildren = children ?? buildOtpChildren(groups ?? [], separator);
3164
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3171
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3165
3172
  AdsInputOTPChrome,
3166
3173
  {
3167
3174
  errorText,
@@ -3170,8 +3177,8 @@ var AdsInputOTP = React32.forwardRef(({ action, errorText, groups, helperText, l
3170
3177
  helperId: description.helperId,
3171
3178
  inputId: description.inputId,
3172
3179
  label,
3173
- children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex w-full items-center gap-sm", children: [
3174
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3180
+ children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "flex w-full items-center gap-sm", children: [
3181
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3175
3182
  InputOTP,
3176
3183
  {
3177
3184
  "aria-describedby": description.describedBy,
@@ -3183,15 +3190,15 @@ var AdsInputOTP = React32.forwardRef(({ action, errorText, groups, helperText, l
3183
3190
  children: otpChildren
3184
3191
  }
3185
3192
  ),
3186
- action ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "shrink-0", children: action }) : null
3193
+ action ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "shrink-0", children: action }) : null
3187
3194
  ] })
3188
3195
  }
3189
3196
  );
3190
3197
  });
3191
3198
  AdsInputOTP.displayName = "AdsInputOTP";
3192
- var AdsInputOTPGroup = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(InputOTPGroup, { className, ref, ...props }));
3199
+ var AdsInputOTPGroup = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(InputOTPGroup, { className, ref, ...props }));
3193
3200
  AdsInputOTPGroup.displayName = "AdsInputOTPGroup";
3194
- var AdsInputOTPSeparator = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3201
+ var AdsInputOTPSeparator = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3195
3202
  InputOTPSeparator,
3196
3203
  {
3197
3204
  className: className ?? "h-px w-6 shrink-0 bg-border text-transparent [&_svg]:hidden",
@@ -3200,7 +3207,7 @@ var AdsInputOTPSeparator = React32.forwardRef(({ className, ...props }, ref) =>
3200
3207
  }
3201
3208
  ));
3202
3209
  AdsInputOTPSeparator.displayName = "AdsInputOTPSeparator";
3203
- var AdsInputOTPSlot = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3210
+ var AdsInputOTPSlot = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3204
3211
  InputOTPSlot,
3205
3212
  {
3206
3213
  className: [
@@ -3217,17 +3224,17 @@ var AdsInputOTPSlot = React32.forwardRef(({ className, ...props }, ref) => /* @_
3217
3224
  AdsInputOTPSlot.displayName = "AdsInputOTPSlot";
3218
3225
 
3219
3226
  // src/components/AdsDataPagination/index.tsx
3220
- var React36 = __toESM(require("react"), 1);
3227
+ var React37 = __toESM(require("react"), 1);
3221
3228
 
3222
3229
  // src/components/AdsPagination/index.tsx
3223
- var React34 = __toESM(require("react"), 1);
3224
- var import_lucide_react13 = require("lucide-react");
3230
+ var React35 = __toESM(require("react"), 1);
3231
+ var import_lucide_react12 = require("lucide-react");
3225
3232
 
3226
3233
  // src/primitives/pagination.tsx
3227
- var React33 = __toESM(require("react"), 1);
3228
- var import_lucide_react12 = require("lucide-react");
3229
- var import_jsx_runtime36 = require("react/jsx-runtime");
3230
- var Pagination = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3234
+ var React34 = __toESM(require("react"), 1);
3235
+ var import_lucide_react11 = require("lucide-react");
3236
+ var import_jsx_runtime37 = require("react/jsx-runtime");
3237
+ var Pagination = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3231
3238
  "nav",
3232
3239
  {
3233
3240
  role: "navigation",
@@ -3237,7 +3244,7 @@ var Pagination = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_run
3237
3244
  }
3238
3245
  );
3239
3246
  Pagination.displayName = "Pagination";
3240
- var PaginationContent = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3247
+ var PaginationContent = React34.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3241
3248
  "ul",
3242
3249
  {
3243
3250
  ref,
@@ -3246,14 +3253,14 @@ var PaginationContent = React33.forwardRef(({ className, ...props }, ref) => /*
3246
3253
  }
3247
3254
  ));
3248
3255
  PaginationContent.displayName = "PaginationContent";
3249
- var PaginationItem = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("li", { ref, className: cn("", className), ...props }));
3256
+ var PaginationItem = React34.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("li", { ref, className: cn("", className), ...props }));
3250
3257
  PaginationItem.displayName = "PaginationItem";
3251
3258
  var PaginationLink = ({
3252
3259
  className,
3253
3260
  isActive,
3254
3261
  size = "icon",
3255
3262
  ...props
3256
- }) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3263
+ }) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3257
3264
  "a",
3258
3265
  {
3259
3266
  "aria-current": isActive ? "page" : void 0,
@@ -3271,7 +3278,7 @@ PaginationLink.displayName = "PaginationLink";
3271
3278
  var PaginationPrevious = ({
3272
3279
  className,
3273
3280
  ...props
3274
- }) => /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
3281
+ }) => /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
3275
3282
  PaginationLink,
3276
3283
  {
3277
3284
  "aria-label": "Go to previous page",
@@ -3279,8 +3286,8 @@ var PaginationPrevious = ({
3279
3286
  className: cn("gap-1 pl-2.5", className),
3280
3287
  ...props,
3281
3288
  children: [
3282
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_lucide_react12.ChevronLeft, { className: "h-4 w-4" }),
3283
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { children: "Previous" })
3289
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_lucide_react11.ChevronLeft, { className: "h-4 w-4" }),
3290
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { children: "Previous" })
3284
3291
  ]
3285
3292
  }
3286
3293
  );
@@ -3288,7 +3295,7 @@ PaginationPrevious.displayName = "PaginationPrevious";
3288
3295
  var PaginationNext = ({
3289
3296
  className,
3290
3297
  ...props
3291
- }) => /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
3298
+ }) => /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
3292
3299
  PaginationLink,
3293
3300
  {
3294
3301
  "aria-label": "Go to next page",
@@ -3296,8 +3303,8 @@ var PaginationNext = ({
3296
3303
  className: cn("gap-1 pr-2.5", className),
3297
3304
  ...props,
3298
3305
  children: [
3299
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { children: "Next" }),
3300
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_lucide_react12.ChevronRight, { className: "h-4 w-4" })
3306
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { children: "Next" }),
3307
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_lucide_react11.ChevronRight, { className: "h-4 w-4" })
3301
3308
  ]
3302
3309
  }
3303
3310
  );
@@ -3305,27 +3312,27 @@ PaginationNext.displayName = "PaginationNext";
3305
3312
  var PaginationEllipsis = ({
3306
3313
  className,
3307
3314
  ...props
3308
- }) => /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
3315
+ }) => /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
3309
3316
  "span",
3310
3317
  {
3311
3318
  "aria-hidden": true,
3312
3319
  className: cn("flex h-9 w-9 items-center justify-center", className),
3313
3320
  ...props,
3314
3321
  children: [
3315
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_lucide_react12.MoreHorizontal, { className: "h-4 w-4" }),
3316
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "sr-only", children: "More pages" })
3322
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_lucide_react11.MoreHorizontal, { className: "h-4 w-4" }),
3323
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "sr-only", children: "More pages" })
3317
3324
  ]
3318
3325
  }
3319
3326
  );
3320
3327
  PaginationEllipsis.displayName = "PaginationEllipsis";
3321
3328
 
3322
3329
  // src/components/AdsPagination/index.tsx
3323
- var import_jsx_runtime37 = require("react/jsx-runtime");
3330
+ var import_jsx_runtime38 = require("react/jsx-runtime");
3324
3331
  var paginationLinkBaseClassName = "inline-flex h-9 min-w-9 items-center justify-center rounded-radius-md border text-sm font-medium leading-5 tracking-normal transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background";
3325
3332
  var paginationLinkInactiveClassName = "border-transparent bg-transparent px-[10px] text-foreground shadow-none hover:bg-accent hover:shadow-[0px_1px_2px_rgba(0,0,0,0.1)]";
3326
3333
  var paginationLinkActiveClassName = "border-border bg-card px-[10px] text-foreground shadow-[0px_1px_2px_rgba(0,0,0,0.1)]";
3327
3334
  function AdsPagination({ className, ...props }) {
3328
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3335
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3329
3336
  Pagination,
3330
3337
  {
3331
3338
  className: cn("mx-0 w-auto justify-start", className),
@@ -3334,14 +3341,14 @@ function AdsPagination({ className, ...props }) {
3334
3341
  );
3335
3342
  }
3336
3343
  AdsPagination.displayName = "AdsPagination";
3337
- var AdsPaginationContent = React34.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(PaginationContent, { ref, className: cn("gap-1", className), ...props }));
3344
+ var AdsPaginationContent = React35.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(PaginationContent, { ref, className: cn("gap-1", className), ...props }));
3338
3345
  AdsPaginationContent.displayName = "AdsPaginationContent";
3339
- var AdsPaginationItem = React34.forwardRef(
3340
- ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(PaginationItem, { ref, className, ...props })
3346
+ var AdsPaginationItem = React35.forwardRef(
3347
+ ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(PaginationItem, { ref, className, ...props })
3341
3348
  );
3342
3349
  AdsPaginationItem.displayName = "AdsPaginationItem";
3343
- var AdsPaginationLink = React34.forwardRef(
3344
- ({ className, isActive = false, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3350
+ var AdsPaginationLink = React35.forwardRef(
3351
+ ({ className, isActive = false, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3345
3352
  "a",
3346
3353
  {
3347
3354
  "aria-current": isActive ? "page" : void 0,
@@ -3356,10 +3363,10 @@ var AdsPaginationLink = React34.forwardRef(
3356
3363
  )
3357
3364
  );
3358
3365
  AdsPaginationLink.displayName = "AdsPaginationLink";
3359
- var AdsPaginationPrevious = React34.forwardRef(({ "aria-label": ariaLabel, children, className, ...props }, ref) => {
3366
+ var AdsPaginationPrevious = React35.forwardRef(({ "aria-label": ariaLabel, children, className, ...props }, ref) => {
3360
3367
  const { messages } = useAdsI18n();
3361
3368
  const label = children ?? messages.pagination.previous;
3362
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
3369
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
3363
3370
  AdsPaginationLink,
3364
3371
  {
3365
3372
  "aria-label": ariaLabel ?? messages.pagination.previous,
@@ -3367,18 +3374,18 @@ var AdsPaginationPrevious = React34.forwardRef(({ "aria-label": ariaLabel, child
3367
3374
  ref,
3368
3375
  ...props,
3369
3376
  children: [
3370
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_lucide_react13.ChevronLeft, { "aria-hidden": true, className: "h-4 w-4" }),
3371
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { children: label })
3377
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_lucide_react12.ChevronLeft, { "aria-hidden": true, className: "h-4 w-4" }),
3378
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { children: label })
3372
3379
  ]
3373
3380
  }
3374
3381
  );
3375
3382
  });
3376
3383
  AdsPaginationPrevious.displayName = "AdsPaginationPrevious";
3377
- var AdsPaginationNext = React34.forwardRef(
3384
+ var AdsPaginationNext = React35.forwardRef(
3378
3385
  ({ "aria-label": ariaLabel, children, className, ...props }, ref) => {
3379
3386
  const { messages } = useAdsI18n();
3380
3387
  const label = children ?? messages.pagination.next;
3381
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
3388
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
3382
3389
  AdsPaginationLink,
3383
3390
  {
3384
3391
  "aria-label": ariaLabel ?? messages.pagination.next,
@@ -3386,8 +3393,8 @@ var AdsPaginationNext = React34.forwardRef(
3386
3393
  ref,
3387
3394
  ...props,
3388
3395
  children: [
3389
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { children: label }),
3390
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_lucide_react13.ChevronRight, { "aria-hidden": true, className: "h-4 w-4" })
3396
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { children: label }),
3397
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_lucide_react12.ChevronRight, { "aria-hidden": true, className: "h-4 w-4" })
3391
3398
  ]
3392
3399
  }
3393
3400
  );
@@ -3401,7 +3408,7 @@ function AdsPaginationEllipsis({
3401
3408
  }) {
3402
3409
  const { messages } = useAdsI18n();
3403
3410
  const resolvedLabel = label ?? messages.pagination.morePages;
3404
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
3411
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
3405
3412
  "span",
3406
3413
  {
3407
3414
  "aria-hidden": true,
@@ -3411,8 +3418,8 @@ function AdsPaginationEllipsis({
3411
3418
  ),
3412
3419
  ...props,
3413
3420
  children: [
3414
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_lucide_react13.MoreHorizontal, { className: "h-4 w-4" }),
3415
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "sr-only", children: resolvedLabel })
3421
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_lucide_react12.MoreHorizontal, { className: "h-4 w-4" }),
3422
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "sr-only", children: resolvedLabel })
3416
3423
  ]
3417
3424
  }
3418
3425
  );
@@ -3420,9 +3427,8 @@ function AdsPaginationEllipsis({
3420
3427
  AdsPaginationEllipsis.displayName = "AdsPaginationEllipsis";
3421
3428
 
3422
3429
  // src/components/AdsSelect/index.tsx
3423
- var React35 = __toESM(require("react"), 1);
3424
- var import_lucide_react14 = require("lucide-react");
3425
- var import_jsx_runtime38 = require("react/jsx-runtime");
3430
+ var React36 = __toESM(require("react"), 1);
3431
+ var import_jsx_runtime39 = require("react/jsx-runtime");
3426
3432
  var selectTriggerBaseClassName = "h-9 rounded-radius-md border border-border bg-card px-md py-2 text-sm leading-5 shadow-[0px_1px_2px_rgba(0,0,0,0.1)] focus:border-border-focus focus:ring-[3px] focus:ring-[rgba(161,161,161,0.5)] focus:ring-offset-0 data-[placeholder]:text-[var(--muted-foreground)]";
3427
3433
  var selectContentBaseClassName = "rounded-radius-md border-border bg-popover text-popover-foreground shadow-[0px_8px_24px_rgba(0,0,0,0.22)]";
3428
3434
  function AdsSelect({
@@ -3446,7 +3452,7 @@ function AdsSelect({
3446
3452
  }) {
3447
3453
  const { messages } = useAdsI18n();
3448
3454
  const isControlled = value !== void 0;
3449
- const [internalValue, setInternalValue] = React35.useState(
3455
+ const [internalValue, setInternalValue] = React36.useState(
3450
3456
  defaultValue
3451
3457
  );
3452
3458
  const resolvedValue = isControlled ? value : internalValue;
@@ -3459,7 +3465,7 @@ function AdsSelect({
3459
3465
  id
3460
3466
  });
3461
3467
  const resolvedClearButtonLabel = clearButtonLabel ?? messages.select.clear;
3462
- const handleValueChange = React35.useCallback(
3468
+ const handleValueChange = React36.useCallback(
3463
3469
  (nextValue) => {
3464
3470
  if (!isControlled) {
3465
3471
  setInternalValue(nextValue);
@@ -3468,7 +3474,7 @@ function AdsSelect({
3468
3474
  },
3469
3475
  [isControlled, onValueChange]
3470
3476
  );
3471
- const handleClear = React35.useCallback(
3477
+ const handleClear = React36.useCallback(
3472
3478
  (event) => {
3473
3479
  event.preventDefault();
3474
3480
  event.stopPropagation();
@@ -3480,12 +3486,12 @@ function AdsSelect({
3480
3486
  },
3481
3487
  [isControlled, onClear, onValueChange]
3482
3488
  );
3483
- const helperNode = helperText ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(AdsFieldDescription, { id: description.helperId, children: helperText }) : null;
3484
- const errorNode = errorText ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(AdsFieldError, { id: description.errorId, children: errorText }) : null;
3485
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(AdsFieldItem, { children: [
3486
- label ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(AdsFieldLabel, { htmlFor: description.inputId, children: label }) : null,
3489
+ const helperNode = helperText ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(AdsFieldDescription, { id: description.helperId, children: helperText }) : null;
3490
+ const errorNode = errorText ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(AdsFieldError, { id: description.errorId, children: errorText }) : null;
3491
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(AdsFieldItem, { children: [
3492
+ label ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(AdsFieldLabel, { htmlFor: description.inputId, children: label }) : null,
3487
3493
  descriptionPlacement === "above" ? helperNode : null,
3488
- /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
3494
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
3489
3495
  Select,
3490
3496
  {
3491
3497
  ...props,
@@ -3493,8 +3499,8 @@ function AdsSelect({
3493
3499
  onValueChange: handleValueChange,
3494
3500
  ...resolvedValue !== void 0 ? { value: resolvedValue } : {},
3495
3501
  children: [
3496
- /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "relative", children: [
3497
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3502
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "relative", children: [
3503
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3498
3504
  SelectTrigger,
3499
3505
  {
3500
3506
  "aria-describedby": description.describedBy,
@@ -3506,25 +3512,19 @@ function AdsSelect({
3506
3512
  triggerClassName
3507
3513
  ),
3508
3514
  id: description.inputId,
3509
- children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(SelectValue, { placeholder })
3515
+ children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(SelectValue, { placeholder })
3510
3516
  }
3511
3517
  ),
3512
- canClear ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3513
- Button,
3518
+ canClear ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3519
+ AdsClearButton,
3514
3520
  {
3515
3521
  "aria-label": resolvedClearButtonLabel,
3516
- className: cn(
3517
- "absolute right-8 top-1/2 inline-flex h-4 w-4 -translate-y-1/2 items-center justify-center rounded-sm text-icon-muted transition-colors focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-[rgba(161,161,161,0.5)] focus-visible:ring-offset-0",
3518
- "hover:text-[var(--card-foreground)]"
3519
- ),
3520
- onClick: handleClear,
3521
- type: "button",
3522
- variant: "ghost",
3523
- children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_lucide_react14.X, { "aria-hidden": true, className: "h-3.5 w-3.5" })
3522
+ className: "absolute right-8 top-1/2 -translate-y-1/2",
3523
+ onClick: handleClear
3524
3524
  }
3525
3525
  ) : null
3526
3526
  ] }),
3527
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3527
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3528
3528
  SelectContent,
3529
3529
  {
3530
3530
  className: cn(selectContentBaseClassName, contentClassName3),
@@ -3541,7 +3541,7 @@ function AdsSelect({
3541
3541
  }
3542
3542
 
3543
3543
  // src/components/AdsDataPagination/index.tsx
3544
- var import_jsx_runtime39 = require("react/jsx-runtime");
3544
+ var import_jsx_runtime40 = require("react/jsx-runtime");
3545
3545
  var paginationButtonBaseClassName = "inline-flex h-9 min-w-9 items-center justify-center rounded-radius-md border text-sm font-medium leading-5 tracking-normal transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50";
3546
3546
  var paginationButtonInactiveClassName = "border-transparent bg-transparent px-[10px] text-foreground shadow-none hover:bg-accent hover:shadow-[0px_1px_2px_rgba(0,0,0,0.1)]";
3547
3547
  var paginationButtonActiveClassName = "border-border bg-card px-[10px] text-foreground shadow-[0px_1px_2px_rgba(0,0,0,0.1)]";
@@ -3617,9 +3617,9 @@ function AdsDataPagination({
3617
3617
  ariaLabel
3618
3618
  }) {
3619
3619
  const { messages } = useAdsI18n();
3620
- const [internalCurrent, setInternalCurrent] = React36.useState(defaultCurrent);
3621
- const [internalPageSize, setInternalPageSize] = React36.useState(defaultPageSize);
3622
- const [quickJumpValue, setQuickJumpValue] = React36.useState("");
3620
+ const [internalCurrent, setInternalCurrent] = React37.useState(defaultCurrent);
3621
+ const [internalPageSize, setInternalPageSize] = React37.useState(defaultPageSize);
3622
+ const [quickJumpValue, setQuickJumpValue] = React37.useState("");
3623
3623
  const isCurrentControlled = current !== void 0;
3624
3624
  const isPageSizeControlled = pageSize !== void 0;
3625
3625
  const mergedPageSize = Math.max(1, isPageSizeControlled ? pageSize : internalPageSize);
@@ -3640,20 +3640,20 @@ function AdsDataPagination({
3640
3640
  new Set(pageSizeOptions.filter((option) => Number.isFinite(option) && option > 0))
3641
3641
  );
3642
3642
  const resolvedPageSizeOptions = pageSizeValues.length > 0 ? pageSizeValues : [10, 20, 50, 100];
3643
- React36.useEffect(() => {
3643
+ React37.useEffect(() => {
3644
3644
  if (!isCurrentControlled && internalCurrent !== mergedCurrent) {
3645
3645
  setInternalCurrent(mergedCurrent);
3646
3646
  }
3647
3647
  }, [internalCurrent, isCurrentControlled, mergedCurrent]);
3648
- React36.useEffect(() => {
3648
+ React37.useEffect(() => {
3649
3649
  if (!isPageSizeControlled && internalPageSize !== mergedPageSize) {
3650
3650
  setInternalPageSize(mergedPageSize);
3651
3651
  }
3652
3652
  }, [internalPageSize, isPageSizeControlled, mergedPageSize]);
3653
- React36.useEffect(() => {
3653
+ React37.useEffect(() => {
3654
3654
  setQuickJumpValue(String(mergedCurrent));
3655
3655
  }, [mergedCurrent]);
3656
- const commitPageChange = React36.useCallback(
3656
+ const commitPageChange = React37.useCallback(
3657
3657
  (nextPage, nextPageSize = mergedPageSize) => {
3658
3658
  const clampedPage = clampPage(nextPage, Math.max(1, Math.ceil(Math.max(total, 0) / nextPageSize)));
3659
3659
  if (!isCurrentControlled) {
@@ -3667,7 +3667,7 @@ function AdsDataPagination({
3667
3667
  },
3668
3668
  [isCurrentControlled, mergedCurrent, mergedPageSize, onChange, total]
3669
3669
  );
3670
- const handlePageSizeChange = React36.useCallback(
3670
+ const handlePageSizeChange = React37.useCallback(
3671
3671
  (nextValue) => {
3672
3672
  const nextPageSize = Number(nextValue);
3673
3673
  if (!Number.isFinite(nextPageSize) || nextPageSize <= 0 || nextPageSize === mergedPageSize) {
@@ -3692,7 +3692,7 @@ function AdsDataPagination({
3692
3692
  total
3693
3693
  ]
3694
3694
  );
3695
- const handleQuickJumpSubmit = React36.useCallback(() => {
3695
+ const handleQuickJumpSubmit = React37.useCallback(() => {
3696
3696
  const trimmedValue = quickJumpValue.trim();
3697
3697
  if (!trimmedValue) {
3698
3698
  setQuickJumpValue(String(mergedCurrent));
@@ -3726,8 +3726,8 @@ function AdsDataPagination({
3726
3726
  );
3727
3727
  const renderPageNavigation = () => {
3728
3728
  if (variant === "compact") {
3729
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "flex flex-wrap items-center gap-sm", children: [
3730
- shouldShowFirstLast ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3729
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "flex flex-wrap items-center gap-sm", children: [
3730
+ shouldShowFirstLast ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3731
3731
  Button,
3732
3732
  {
3733
3733
  "aria-label": messages.pagination.first,
@@ -3740,7 +3740,7 @@ function AdsDataPagination({
3740
3740
  children: messages.pagination.first
3741
3741
  }
3742
3742
  ) : null,
3743
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3743
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3744
3744
  Button,
3745
3745
  {
3746
3746
  "aria-label": messages.pagination.previous,
@@ -3753,7 +3753,7 @@ function AdsDataPagination({
3753
3753
  children: messages.pagination.previous
3754
3754
  }
3755
3755
  ),
3756
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3756
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3757
3757
  "span",
3758
3758
  {
3759
3759
  "aria-current": "page",
@@ -3761,7 +3761,7 @@ function AdsDataPagination({
3761
3761
  children: pageStatus
3762
3762
  }
3763
3763
  ),
3764
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3764
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3765
3765
  Button,
3766
3766
  {
3767
3767
  "aria-label": messages.pagination.next,
@@ -3774,7 +3774,7 @@ function AdsDataPagination({
3774
3774
  children: messages.pagination.next
3775
3775
  }
3776
3776
  ),
3777
- shouldShowFirstLast ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3777
+ shouldShowFirstLast ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3778
3778
  Button,
3779
3779
  {
3780
3780
  "aria-label": messages.pagination.last,
@@ -3789,8 +3789,8 @@ function AdsDataPagination({
3789
3789
  ) : null
3790
3790
  ] });
3791
3791
  }
3792
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(AdsPagination, { "aria-label": navigationLabel, children: /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(AdsPaginationContent, { children: [
3793
- shouldShowFirstLast ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(AdsPaginationItem, { children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3792
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(AdsPagination, { "aria-label": navigationLabel, children: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(AdsPaginationContent, { children: [
3793
+ shouldShowFirstLast ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(AdsPaginationItem, { children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3794
3794
  Button,
3795
3795
  {
3796
3796
  "aria-label": messages.pagination.first,
@@ -3803,7 +3803,7 @@ function AdsDataPagination({
3803
3803
  children: messages.pagination.first
3804
3804
  }
3805
3805
  ) }) : null,
3806
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(AdsPaginationItem, { children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3806
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(AdsPaginationItem, { children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3807
3807
  Button,
3808
3808
  {
3809
3809
  "aria-label": messages.pagination.previous,
@@ -3817,7 +3817,7 @@ function AdsDataPagination({
3817
3817
  }
3818
3818
  ) }),
3819
3819
  paginationRange.map(
3820
- (token, index) => token === "ellipsis" ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(AdsPaginationItem, { children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(AdsPaginationEllipsis, { label: messages.pagination.morePages }) }, `ellipsis-${index}`) : /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(AdsPaginationItem, { children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3820
+ (token, index) => token === "ellipsis" ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(AdsPaginationItem, { children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(AdsPaginationEllipsis, { label: messages.pagination.morePages }) }, `ellipsis-${index}`) : /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(AdsPaginationItem, { children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3821
3821
  Button,
3822
3822
  {
3823
3823
  "aria-current": token === mergedCurrent ? "page" : void 0,
@@ -3834,7 +3834,7 @@ function AdsDataPagination({
3834
3834
  }
3835
3835
  ) }, token)
3836
3836
  ),
3837
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(AdsPaginationItem, { children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3837
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(AdsPaginationItem, { children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3838
3838
  Button,
3839
3839
  {
3840
3840
  "aria-label": messages.pagination.next,
@@ -3847,7 +3847,7 @@ function AdsDataPagination({
3847
3847
  children: messages.pagination.next
3848
3848
  }
3849
3849
  ) }),
3850
- shouldShowFirstLast ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(AdsPaginationItem, { children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3850
+ shouldShowFirstLast ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(AdsPaginationItem, { children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3851
3851
  Button,
3852
3852
  {
3853
3853
  "aria-label": messages.pagination.last,
@@ -3862,7 +3862,7 @@ function AdsDataPagination({
3862
3862
  ) }) : null
3863
3863
  ] }) });
3864
3864
  };
3865
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
3865
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
3866
3866
  "div",
3867
3867
  {
3868
3868
  "data-slot": "ads-data-pagination",
@@ -3872,34 +3872,34 @@ function AdsDataPagination({
3872
3872
  className
3873
3873
  ),
3874
3874
  children: [
3875
- /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "flex flex-wrap items-center gap-md text-sm leading-5 text-muted-foreground", children: [
3876
- variant === "compact" ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: classNames?.total, children: compactTotalContent }) : totalContent ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: classNames?.total, children: totalContent }) : null,
3877
- showSizeChanger ? /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: cn("flex items-center gap-sm", classNames?.pageSizeChanger), children: [
3878
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { children: messages.pagination.itemsPerPage }),
3879
- /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
3875
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "flex flex-wrap items-center gap-md text-sm leading-5 text-muted-foreground", children: [
3876
+ variant === "compact" ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: classNames?.total, children: compactTotalContent }) : totalContent ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: classNames?.total, children: totalContent }) : null,
3877
+ showSizeChanger ? /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: cn("flex items-center gap-sm", classNames?.pageSizeChanger), children: [
3878
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { children: messages.pagination.itemsPerPage }),
3879
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
3880
3880
  Select,
3881
3881
  {
3882
3882
  disabled,
3883
3883
  onValueChange: handlePageSizeChange,
3884
3884
  value: String(mergedPageSize),
3885
3885
  children: [
3886
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3886
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3887
3887
  SelectTrigger,
3888
3888
  {
3889
3889
  "aria-label": messages.pagination.itemsPerPage,
3890
3890
  className: cn(inlineControlClassName, "w-[132px] px-sm"),
3891
- children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(SelectValue, {})
3891
+ children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(SelectValue, {})
3892
3892
  }
3893
3893
  ),
3894
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(SelectContent, { children: resolvedPageSizeOptions.map((option) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(SelectItem, { value: String(option), children: interpolate(messages.pagination.itemsPerPageOption, { value: option }) }, option)) })
3894
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(SelectContent, { children: resolvedPageSizeOptions.map((option) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(SelectItem, { value: String(option), children: interpolate(messages.pagination.itemsPerPageOption, { value: option }) }, option)) })
3895
3895
  ]
3896
3896
  }
3897
3897
  )
3898
3898
  ] }) : null
3899
3899
  ] }),
3900
- /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "flex flex-col gap-md sm:flex-row sm:items-center sm:justify-end", children: [
3900
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "flex flex-col gap-md sm:flex-row sm:items-center sm:justify-end", children: [
3901
3901
  renderPageNavigation(),
3902
- showQuickJumper ? /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
3902
+ showQuickJumper ? /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
3903
3903
  "label",
3904
3904
  {
3905
3905
  className: cn(
@@ -3907,8 +3907,8 @@ function AdsDataPagination({
3907
3907
  classNames?.quickJumper
3908
3908
  ),
3909
3909
  children: [
3910
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { children: messages.pagination.jumpTo }),
3911
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3910
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { children: messages.pagination.jumpTo }),
3911
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3912
3912
  Input,
3913
3913
  {
3914
3914
  "aria-label": messages.pagination.jumpTo,
@@ -3936,12 +3936,12 @@ function AdsDataPagination({
3936
3936
  }
3937
3937
 
3938
3938
  // src/components/AdsDataTable/index.tsx
3939
- var React41 = __toESM(require("react"), 1);
3940
- var import_lucide_react17 = require("lucide-react");
3939
+ var React42 = __toESM(require("react"), 1);
3940
+ var import_lucide_react15 = require("lucide-react");
3941
3941
 
3942
3942
  // src/components/AdsEmpty/index.tsx
3943
3943
  var import_class_variance_authority9 = require("class-variance-authority");
3944
- var import_jsx_runtime40 = require("react/jsx-runtime");
3944
+ var import_jsx_runtime41 = require("react/jsx-runtime");
3945
3945
  var adsEmptyVariants = (0, import_class_variance_authority9.cva)(
3946
3946
  "flex w-full flex-col items-center justify-center gap-6 p-12 text-center",
3947
3947
  {
@@ -3958,7 +3958,7 @@ var adsEmptyVariants = (0, import_class_variance_authority9.cva)(
3958
3958
  }
3959
3959
  );
3960
3960
  function AdsEmpty({ className, variant, ...props }) {
3961
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3961
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3962
3962
  "div",
3963
3963
  {
3964
3964
  "data-slot": "ads-empty",
@@ -3968,7 +3968,7 @@ function AdsEmpty({ className, variant, ...props }) {
3968
3968
  );
3969
3969
  }
3970
3970
  function AdsEmptyHeader({ className, ...props }) {
3971
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3971
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3972
3972
  "div",
3973
3973
  {
3974
3974
  "data-slot": "ads-empty-header",
@@ -3978,7 +3978,7 @@ function AdsEmptyHeader({ className, ...props }) {
3978
3978
  );
3979
3979
  }
3980
3980
  function AdsEmptyMedia({ className, ...props }) {
3981
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3981
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3982
3982
  "div",
3983
3983
  {
3984
3984
  "data-slot": "ads-empty-media",
@@ -3992,7 +3992,7 @@ function AdsEmptyMedia({ className, ...props }) {
3992
3992
  );
3993
3993
  }
3994
3994
  function AdsEmptyTitle({ className, ...props }) {
3995
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3995
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3996
3996
  "div",
3997
3997
  {
3998
3998
  "data-slot": "ads-empty-title",
@@ -4002,7 +4002,7 @@ function AdsEmptyTitle({ className, ...props }) {
4002
4002
  );
4003
4003
  }
4004
4004
  function AdsEmptyDescription({ className, ...props }) {
4005
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
4005
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4006
4006
  "p",
4007
4007
  {
4008
4008
  "data-slot": "ads-empty-description",
@@ -4012,7 +4012,7 @@ function AdsEmptyDescription({ className, ...props }) {
4012
4012
  );
4013
4013
  }
4014
4014
  function AdsEmptyContent({ className, ...props }) {
4015
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
4015
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4016
4016
  "div",
4017
4017
  {
4018
4018
  "data-slot": "ads-empty-content",
@@ -4022,7 +4022,7 @@ function AdsEmptyContent({ className, ...props }) {
4022
4022
  );
4023
4023
  }
4024
4024
  function AdsEmptyActions({ className, ...props }) {
4025
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
4025
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4026
4026
  "div",
4027
4027
  {
4028
4028
  "data-slot": "ads-empty-actions",
@@ -4032,7 +4032,7 @@ function AdsEmptyActions({ className, ...props }) {
4032
4032
  );
4033
4033
  }
4034
4034
  function AdsEmptyFooter({ className, ...props }) {
4035
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
4035
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4036
4036
  "div",
4037
4037
  {
4038
4038
  "data-slot": "ads-empty-footer",
@@ -4043,19 +4043,19 @@ function AdsEmptyFooter({ className, ...props }) {
4043
4043
  }
4044
4044
 
4045
4045
  // src/components/AdsTable/index.tsx
4046
- var React40 = __toESM(require("react"), 1);
4047
- var import_lucide_react16 = require("lucide-react");
4046
+ var React41 = __toESM(require("react"), 1);
4047
+ var import_lucide_react14 = require("lucide-react");
4048
4048
 
4049
4049
  // src/components/AdsRadioGroup/index.tsx
4050
- var React38 = __toESM(require("react"), 1);
4050
+ var React39 = __toESM(require("react"), 1);
4051
4051
 
4052
4052
  // src/primitives/radio-group.tsx
4053
- var React37 = __toESM(require("react"), 1);
4053
+ var React38 = __toESM(require("react"), 1);
4054
4054
  var RadioGroupPrimitive = __toESM(require("@radix-ui/react-radio-group"), 1);
4055
- var import_lucide_react15 = require("lucide-react");
4056
- var import_jsx_runtime41 = require("react/jsx-runtime");
4057
- var RadioGroup = React37.forwardRef(({ className, ...props }, ref) => {
4058
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4055
+ var import_lucide_react13 = require("lucide-react");
4056
+ var import_jsx_runtime42 = require("react/jsx-runtime");
4057
+ var RadioGroup = React38.forwardRef(({ className, ...props }, ref) => {
4058
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4059
4059
  RadioGroupPrimitive.Root,
4060
4060
  {
4061
4061
  className: cn("grid gap-2", className),
@@ -4065,8 +4065,8 @@ var RadioGroup = React37.forwardRef(({ className, ...props }, ref) => {
4065
4065
  );
4066
4066
  });
4067
4067
  RadioGroup.displayName = RadioGroupPrimitive.Root.displayName;
4068
- var RadioGroupItem = React37.forwardRef(({ className, ...props }, ref) => {
4069
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4068
+ var RadioGroupItem = React38.forwardRef(({ className, ...props }, ref) => {
4069
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4070
4070
  RadioGroupPrimitive.Item,
4071
4071
  {
4072
4072
  ref,
@@ -4075,19 +4075,19 @@ var RadioGroupItem = React37.forwardRef(({ className, ...props }, ref) => {
4075
4075
  className
4076
4076
  ),
4077
4077
  ...props,
4078
- children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(RadioGroupPrimitive.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_lucide_react15.Circle, { className: "h-2.5 w-2.5 fill-current text-current" }) })
4078
+ children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(RadioGroupPrimitive.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_lucide_react13.Circle, { className: "h-2.5 w-2.5 fill-current text-current" }) })
4079
4079
  }
4080
4080
  );
4081
4081
  });
4082
4082
  RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
4083
4083
 
4084
4084
  // src/components/AdsRadioGroup/index.tsx
4085
- var import_jsx_runtime42 = require("react/jsx-runtime");
4085
+ var import_jsx_runtime43 = require("react/jsx-runtime");
4086
4086
  var radioGroupBaseClassName = "gap-3";
4087
4087
  var radioItemBaseClassName = "h-4 w-4 border-border bg-card text-primary shadow-[0px_1px_2px_rgba(0,0,0,0.1)] focus-visible:ring-[3px] focus-visible:ring-[rgba(161,161,161,0.5)] focus-visible:ring-offset-0";
4088
- var RadioGroup2 = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(RadioGroup, { className: cn(radioGroupBaseClassName, className), ref, ...props }));
4088
+ var RadioGroup2 = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(RadioGroup, { className: cn(radioGroupBaseClassName, className), ref, ...props }));
4089
4089
  RadioGroup2.displayName = "RadioGroup";
4090
- var RadioGroupItem2 = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4090
+ var RadioGroupItem2 = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4091
4091
  RadioGroupItem,
4092
4092
  {
4093
4093
  className: cn(radioItemBaseClassName, className),
@@ -4096,7 +4096,7 @@ var RadioGroupItem2 = React38.forwardRef(({ className, ...props }, ref) => /* @_
4096
4096
  }
4097
4097
  ));
4098
4098
  RadioGroupItem2.displayName = "RadioGroupItem";
4099
- var AdsRadioGroup = React38.forwardRef(
4099
+ var AdsRadioGroup = React39.forwardRef(
4100
4100
  ({
4101
4101
  children,
4102
4102
  className,
@@ -4112,12 +4112,12 @@ var AdsRadioGroup = React38.forwardRef(
4112
4112
  helperText,
4113
4113
  id
4114
4114
  });
4115
- const helperNode = helperText ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(AdsFieldDescription, { id: description.helperId, children: helperText }) : null;
4116
- const errorNode = errorText ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(AdsFieldError, { id: description.errorId, children: errorText }) : null;
4117
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(AdsFieldItem, { children: [
4118
- label ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(AdsFieldLabel, { children: label }) : null,
4115
+ const helperNode = helperText ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(AdsFieldDescription, { id: description.helperId, children: helperText }) : null;
4116
+ const errorNode = errorText ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(AdsFieldError, { id: description.errorId, children: errorText }) : null;
4117
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(AdsFieldItem, { children: [
4118
+ label ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(AdsFieldLabel, { children: label }) : null,
4119
4119
  descriptionPlacement === "above" ? helperNode : null,
4120
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4120
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4121
4121
  RadioGroup2,
4122
4122
  {
4123
4123
  "aria-describedby": description.describedBy,
@@ -4133,11 +4133,11 @@ var AdsRadioGroup = React38.forwardRef(
4133
4133
  }
4134
4134
  );
4135
4135
  AdsRadioGroup.displayName = "AdsRadioGroup";
4136
- var AdsRadioGroupOption = React38.forwardRef(({ className, description, id, label, value, ...props }, ref) => {
4137
- const generatedId = React38.useId();
4136
+ var AdsRadioGroupOption = React39.forwardRef(({ className, description, id, label, value, ...props }, ref) => {
4137
+ const generatedId = React39.useId();
4138
4138
  const inputId = id ?? generatedId;
4139
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("label", { className: "flex w-full cursor-pointer items-start gap-2", htmlFor: inputId, children: [
4140
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4139
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("label", { className: "flex w-full cursor-pointer items-start gap-2", htmlFor: inputId, children: [
4140
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4141
4141
  RadioGroupItem2,
4142
4142
  {
4143
4143
  className: cn(className),
@@ -4147,20 +4147,20 @@ var AdsRadioGroupOption = React38.forwardRef(({ className, description, id, labe
4147
4147
  ...props
4148
4148
  }
4149
4149
  ),
4150
- /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-1.5", children: [
4151
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "text-sm leading-5 text-foreground", children: label }),
4152
- description ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(AdsFieldDescription, { className: "text-sm leading-5", children: description }) : null
4150
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-1.5", children: [
4151
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "text-sm leading-5 text-foreground", children: label }),
4152
+ description ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(AdsFieldDescription, { className: "text-sm leading-5", children: description }) : null
4153
4153
  ] })
4154
4154
  ] });
4155
4155
  });
4156
4156
  AdsRadioGroupOption.displayName = "AdsRadioGroupOption";
4157
- var AdsRadioGroupCardOption = React38.forwardRef(({ className, description, disabled, id, label, value, ...props }, ref) => {
4158
- const generatedId = React38.useId();
4157
+ var AdsRadioGroupCardOption = React39.forwardRef(({ className, description, disabled, id, label, value, ...props }, ref) => {
4158
+ const generatedId = React39.useId();
4159
4159
  const inputId = id ?? generatedId;
4160
4160
  const titleId = `${inputId}-label`;
4161
4161
  const descriptionId = description ? `${inputId}-description` : void 0;
4162
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "relative", children: [
4163
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4162
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "relative", children: [
4163
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4164
4164
  RadioGroupItem2,
4165
4165
  {
4166
4166
  "aria-describedby": descriptionId,
@@ -4173,7 +4173,7 @@ var AdsRadioGroupCardOption = React38.forwardRef(({ className, description, disa
4173
4173
  ...props
4174
4174
  }
4175
4175
  ),
4176
- /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
4176
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
4177
4177
  "div",
4178
4178
  {
4179
4179
  className: cn(
@@ -4182,16 +4182,16 @@ var AdsRadioGroupCardOption = React38.forwardRef(({ className, description, disa
4182
4182
  className
4183
4183
  ),
4184
4184
  children: [
4185
- /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-1.5", children: [
4186
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "text-sm font-medium leading-5 text-foreground", id: titleId, children: label }),
4187
- description ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(AdsFieldDescription, { className: "text-xs leading-4", id: descriptionId, children: description }) : null
4185
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-1.5", children: [
4186
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "text-sm font-medium leading-5 text-foreground", id: titleId, children: label }),
4187
+ description ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(AdsFieldDescription, { className: "text-xs leading-4", id: descriptionId, children: description }) : null
4188
4188
  ] }),
4189
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "flex h-full shrink-0 items-start justify-center pt-px", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4189
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "flex h-full shrink-0 items-start justify-center pt-px", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4190
4190
  "div",
4191
4191
  {
4192
4192
  className: "grid h-4 w-4 place-content-center rounded-full border bg-card shadow-[0px_1px_2px_rgba(0,0,0,0.1)]",
4193
4193
  "data-indicator": true,
4194
- children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4194
+ children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4195
4195
  "span",
4196
4196
  {
4197
4197
  className: "h-2 w-2 rounded-full bg-primary transition-opacity",
@@ -4208,9 +4208,9 @@ var AdsRadioGroupCardOption = React38.forwardRef(({ className, description, disa
4208
4208
  AdsRadioGroupCardOption.displayName = "AdsRadioGroupCardOption";
4209
4209
 
4210
4210
  // src/primitives/table.tsx
4211
- var React39 = __toESM(require("react"), 1);
4212
- var import_jsx_runtime43 = require("react/jsx-runtime");
4213
- var Table = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4211
+ var React40 = __toESM(require("react"), 1);
4212
+ var import_jsx_runtime44 = require("react/jsx-runtime");
4213
+ var Table = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4214
4214
  "table",
4215
4215
  {
4216
4216
  ref,
@@ -4219,7 +4219,7 @@ var Table = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
4219
4219
  }
4220
4220
  ));
4221
4221
  Table.displayName = "Table";
4222
- var TableScrollArea = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4222
+ var TableScrollArea = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4223
4223
  "div",
4224
4224
  {
4225
4225
  ref,
@@ -4228,9 +4228,9 @@ var TableScrollArea = React39.forwardRef(({ className, ...props }, ref) => /* @_
4228
4228
  }
4229
4229
  ));
4230
4230
  TableScrollArea.displayName = "TableScrollArea";
4231
- var TableHeader = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("thead", { ref, className: cn("[&_tr]:border-b", className), ...props }));
4231
+ var TableHeader = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("thead", { ref, className: cn("[&_tr]:border-b", className), ...props }));
4232
4232
  TableHeader.displayName = "TableHeader";
4233
- var TableBody = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4233
+ var TableBody = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4234
4234
  "tbody",
4235
4235
  {
4236
4236
  ref,
@@ -4239,7 +4239,7 @@ var TableBody = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE_
4239
4239
  }
4240
4240
  ));
4241
4241
  TableBody.displayName = "TableBody";
4242
- var TableFooter = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4242
+ var TableFooter = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4243
4243
  "tfoot",
4244
4244
  {
4245
4245
  ref,
@@ -4251,7 +4251,7 @@ var TableFooter = React39.forwardRef(({ className, ...props }, ref) => /* @__PUR
4251
4251
  }
4252
4252
  ));
4253
4253
  TableFooter.displayName = "TableFooter";
4254
- var TableRow = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4254
+ var TableRow = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4255
4255
  "tr",
4256
4256
  {
4257
4257
  ref,
@@ -4263,7 +4263,7 @@ var TableRow = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__
4263
4263
  }
4264
4264
  ));
4265
4265
  TableRow.displayName = "TableRow";
4266
- var TableHead = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4266
+ var TableHead = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4267
4267
  "th",
4268
4268
  {
4269
4269
  ref,
@@ -4275,7 +4275,7 @@ var TableHead = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE_
4275
4275
  }
4276
4276
  ));
4277
4277
  TableHead.displayName = "TableHead";
4278
- var TableCell = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4278
+ var TableCell = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4279
4279
  "td",
4280
4280
  {
4281
4281
  ref,
@@ -4284,7 +4284,7 @@ var TableCell = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE_
4284
4284
  }
4285
4285
  ));
4286
4286
  TableCell.displayName = "TableCell";
4287
- var TableCaption = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4287
+ var TableCaption = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4288
4288
  "caption",
4289
4289
  {
4290
4290
  ref,
@@ -4293,21 +4293,21 @@ var TableCaption = React39.forwardRef(({ className, ...props }, ref) => /* @__PU
4293
4293
  }
4294
4294
  ));
4295
4295
  TableCaption.displayName = "TableCaption";
4296
- var TableColGroup = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("colgroup", { ref, className: cn(className), ...props }));
4296
+ var TableColGroup = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("colgroup", { ref, className: cn(className), ...props }));
4297
4297
  TableColGroup.displayName = "TableColGroup";
4298
- var TableCol = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("col", { ref, className: cn(className), ...props }));
4298
+ var TableCol = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("col", { ref, className: cn(className), ...props }));
4299
4299
  TableCol.displayName = "TableCol";
4300
4300
 
4301
4301
  // src/components/AdsTable/index.tsx
4302
- var import_jsx_runtime44 = require("react/jsx-runtime");
4303
- var AdsTableStickyHeaderContext = React40.createContext(false);
4302
+ var import_jsx_runtime45 = require("react/jsx-runtime");
4303
+ var AdsTableStickyHeaderContext = React41.createContext(false);
4304
4304
  function resolveLength(value) {
4305
4305
  if (value === void 0) {
4306
4306
  return void 0;
4307
4307
  }
4308
4308
  return typeof value === "number" ? `${value}px` : value;
4309
4309
  }
4310
- var AdsTableSurface = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4310
+ var AdsTableSurface = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4311
4311
  "div",
4312
4312
  {
4313
4313
  ref,
@@ -4319,8 +4319,8 @@ var AdsTableSurface = React40.forwardRef(({ className, ...props }, ref) => /* @_
4319
4319
  }
4320
4320
  ));
4321
4321
  AdsTableSurface.displayName = "AdsTableSurface";
4322
- var AdsTableRoot = React40.forwardRef(
4323
- ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4322
+ var AdsTableRoot = React41.forwardRef(
4323
+ ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4324
4324
  Table,
4325
4325
  {
4326
4326
  ref,
@@ -4335,7 +4335,7 @@ var AdsTableRoot = React40.forwardRef(
4335
4335
  )
4336
4336
  );
4337
4337
  AdsTableRoot.displayName = "AdsTableRoot";
4338
- var AdsTableScrollArea = React40.forwardRef(
4338
+ var AdsTableScrollArea = React41.forwardRef(
4339
4339
  ({
4340
4340
  children,
4341
4341
  className,
@@ -4345,7 +4345,7 @@ var AdsTableScrollArea = React40.forwardRef(
4345
4345
  x,
4346
4346
  y,
4347
4347
  ...props
4348
- }, ref) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(AdsTableStickyHeaderContext.Provider, { value: stickyHeader, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4348
+ }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(AdsTableStickyHeaderContext.Provider, { value: stickyHeader, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4349
4349
  TableScrollArea,
4350
4350
  {
4351
4351
  ref,
@@ -4367,15 +4367,15 @@ var AdsTableScrollArea = React40.forwardRef(
4367
4367
  ) })
4368
4368
  );
4369
4369
  AdsTableScrollArea.displayName = "AdsTableScrollArea";
4370
- var AdsTable = React40.forwardRef(
4371
- ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(AdsTableSurface, { children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(AdsTableScrollArea, { children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(AdsTableRoot, { ref, className, ...props }) }) })
4370
+ var AdsTable = React41.forwardRef(
4371
+ ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(AdsTableSurface, { children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(AdsTableScrollArea, { children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(AdsTableRoot, { ref, className, ...props }) }) })
4372
4372
  );
4373
4373
  AdsTable.displayName = "AdsTable";
4374
- var AdsTableColGroup = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(TableColGroup, { ref, className, ...props }));
4374
+ var AdsTableColGroup = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(TableColGroup, { ref, className, ...props }));
4375
4375
  AdsTableColGroup.displayName = "AdsTableColGroup";
4376
- var AdsTableCol = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(TableCol, { ref, className, ...props }));
4376
+ var AdsTableCol = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(TableCol, { ref, className, ...props }));
4377
4377
  AdsTableCol.displayName = "AdsTableCol";
4378
- var AdsTableHeader = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4378
+ var AdsTableHeader = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4379
4379
  TableHeader,
4380
4380
  {
4381
4381
  ref,
@@ -4384,7 +4384,7 @@ var AdsTableHeader = React40.forwardRef(({ className, ...props }, ref) => /* @__
4384
4384
  }
4385
4385
  ));
4386
4386
  AdsTableHeader.displayName = "AdsTableHeader";
4387
- var AdsTableBody = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4387
+ var AdsTableBody = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4388
4388
  TableBody,
4389
4389
  {
4390
4390
  ref,
@@ -4393,7 +4393,7 @@ var AdsTableBody = React40.forwardRef(({ className, ...props }, ref) => /* @__PU
4393
4393
  }
4394
4394
  ));
4395
4395
  AdsTableBody.displayName = "AdsTableBody";
4396
- var AdsTableFooter = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4396
+ var AdsTableFooter = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4397
4397
  TableFooter,
4398
4398
  {
4399
4399
  ref,
@@ -4406,7 +4406,7 @@ var AdsTableFooter = React40.forwardRef(({ className, ...props }, ref) => /* @__
4406
4406
  }
4407
4407
  ));
4408
4408
  AdsTableFooter.displayName = "AdsTableFooter";
4409
- var AdsTableRow = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4409
+ var AdsTableRow = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4410
4410
  TableRow,
4411
4411
  {
4412
4412
  ref,
@@ -4418,9 +4418,9 @@ var AdsTableRow = React40.forwardRef(({ className, ...props }, ref) => /* @__PUR
4418
4418
  }
4419
4419
  ));
4420
4420
  AdsTableRow.displayName = "AdsTableRow";
4421
- var AdsTableHead = React40.forwardRef(({ className, ...props }, ref) => {
4422
- const stickyHeader = React40.useContext(AdsTableStickyHeaderContext);
4423
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4421
+ var AdsTableHead = React41.forwardRef(({ className, ...props }, ref) => {
4422
+ const stickyHeader = React41.useContext(AdsTableStickyHeaderContext);
4423
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4424
4424
  TableHead,
4425
4425
  {
4426
4426
  ref,
@@ -4435,7 +4435,7 @@ var AdsTableHead = React40.forwardRef(({ className, ...props }, ref) => {
4435
4435
  );
4436
4436
  });
4437
4437
  AdsTableHead.displayName = "AdsTableHead";
4438
- var AdsTableCell = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4438
+ var AdsTableCell = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4439
4439
  TableCell,
4440
4440
  {
4441
4441
  ref,
@@ -4448,7 +4448,7 @@ var AdsTableCell = React40.forwardRef(({ className, ...props }, ref) => /* @__PU
4448
4448
  }
4449
4449
  ));
4450
4450
  AdsTableCell.displayName = "AdsTableCell";
4451
- var AdsTableCaption = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4451
+ var AdsTableCaption = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4452
4452
  TableCaption,
4453
4453
  {
4454
4454
  ref,
@@ -4457,12 +4457,12 @@ var AdsTableCaption = React40.forwardRef(({ className, ...props }, ref) => /* @_
4457
4457
  }
4458
4458
  ));
4459
4459
  AdsTableCaption.displayName = "AdsTableCaption";
4460
- var AdsTableSortHeader = React40.forwardRef(
4460
+ var AdsTableSortHeader = React41.forwardRef(
4461
4461
  ({ className, disabled = false, onToggleSort, sortOrder, title, ...props }, ref) => {
4462
4462
  const { messages } = useAdsI18n();
4463
4463
  const nextOrder = sortOrder === null ? "ascend" : sortOrder === "ascend" ? "descend" : null;
4464
4464
  const actionLabel = nextOrder === "ascend" ? messages.table.sortAscending : nextOrder === "descend" ? messages.table.sortDescending : messages.table.clearSort;
4465
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(AdsTableHead, { ref, className, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
4465
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(AdsTableHead, { ref, className, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
4466
4466
  Button,
4467
4467
  {
4468
4468
  "aria-label": `${title} ${actionLabel}`,
@@ -4478,15 +4478,15 @@ var AdsTableSortHeader = React40.forwardRef(
4478
4478
  type: "button",
4479
4479
  variant: "ghost",
4480
4480
  children: [
4481
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { className: "truncate", children: title }),
4482
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { className: "inline-flex h-4 w-4 items-center justify-center text-icon-muted", children: sortOrder === "ascend" ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_lucide_react16.ChevronDown, { className: "h-4 w-4 rotate-180" }) : sortOrder === "descend" ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_lucide_react16.ChevronDown, { className: "h-4 w-4" }) : /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_lucide_react16.ChevronDown, { className: "h-4 w-4 opacity-60" }) })
4481
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { className: "truncate", children: title }),
4482
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { className: "inline-flex h-4 w-4 items-center justify-center text-icon-muted", children: sortOrder === "ascend" ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_lucide_react14.ChevronDown, { className: "h-4 w-4 rotate-180" }) : sortOrder === "descend" ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_lucide_react14.ChevronDown, { className: "h-4 w-4" }) : /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_lucide_react14.ChevronDown, { className: "h-4 w-4 opacity-60" }) })
4483
4483
  ]
4484
4484
  }
4485
4485
  ) });
4486
4486
  }
4487
4487
  );
4488
4488
  AdsTableSortHeader.displayName = "AdsTableSortHeader";
4489
- var AdsTableSelectionCell = React40.forwardRef(
4489
+ var AdsTableSelectionCell = React41.forwardRef(
4490
4490
  ({
4491
4491
  checked = false,
4492
4492
  className,
@@ -4497,7 +4497,7 @@ var AdsTableSelectionCell = React40.forwardRef(
4497
4497
  ...props
4498
4498
  }, ref) => {
4499
4499
  const { messages } = useAdsI18n();
4500
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(AdsTableCell, { ref, className: cn("w-12 p-2", className), ...props, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "flex items-center justify-center", children: type === "radio" ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4500
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(AdsTableCell, { ref, className: cn("w-12 p-2", className), ...props, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "flex items-center justify-center", children: type === "radio" ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4501
4501
  RadioGroupItem2,
4502
4502
  {
4503
4503
  "aria-label": messages.table.selectRow,
@@ -4509,7 +4509,7 @@ var AdsTableSelectionCell = React40.forwardRef(
4509
4509
  },
4510
4510
  value
4511
4511
  }
4512
- ) : /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4512
+ ) : /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4513
4513
  Checkbox2,
4514
4514
  {
4515
4515
  "aria-label": messages.table.selectRow,
@@ -4523,10 +4523,10 @@ var AdsTableSelectionCell = React40.forwardRef(
4523
4523
  }
4524
4524
  );
4525
4525
  AdsTableSelectionCell.displayName = "AdsTableSelectionCell";
4526
- var AdsTableExpandCell = React40.forwardRef(
4526
+ var AdsTableExpandCell = React41.forwardRef(
4527
4527
  ({ className, disabled = false, expanded = false, onToggle, ...props }, ref) => {
4528
4528
  const { messages } = useAdsI18n();
4529
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(AdsTableCell, { ref, className: cn("w-12 p-2", className), ...props, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4529
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(AdsTableCell, { ref, className: cn("w-12 p-2", className), ...props, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4530
4530
  Button,
4531
4531
  {
4532
4532
  "aria-label": expanded ? messages.table.collapseRow : messages.table.expandRow,
@@ -4543,7 +4543,7 @@ var AdsTableExpandCell = React40.forwardRef(
4543
4543
  size: "sm",
4544
4544
  type: "button",
4545
4545
  variant: "ghost",
4546
- children: expanded ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_lucide_react16.ChevronDown, { className: "h-4 w-4" }) : /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_lucide_react16.ChevronRight, { className: "h-4 w-4" })
4546
+ children: expanded ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_lucide_react14.ChevronDown, { className: "h-4 w-4" }) : /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_lucide_react14.ChevronRight, { className: "h-4 w-4" })
4547
4547
  }
4548
4548
  ) }) });
4549
4549
  }
@@ -4551,7 +4551,7 @@ var AdsTableExpandCell = React40.forwardRef(
4551
4551
  AdsTableExpandCell.displayName = "AdsTableExpandCell";
4552
4552
 
4553
4553
  // src/components/AdsDataTable/index.tsx
4554
- var import_jsx_runtime45 = require("react/jsx-runtime");
4554
+ var import_jsx_runtime46 = require("react/jsx-runtime");
4555
4555
  var SKELETON_ROW_COUNT = 4;
4556
4556
  var FLEX_WIDTH_UNIT = 160;
4557
4557
  var sizeClassNames = {
@@ -4673,7 +4673,7 @@ function getCellStyle(column, overrideWidth) {
4673
4673
  return Object.keys(style).length > 0 ? style : void 0;
4674
4674
  }
4675
4675
  function renderCellValue(value, ellipsis) {
4676
- if (React41.isValidElement(value)) {
4676
+ if (React42.isValidElement(value)) {
4677
4677
  return value;
4678
4678
  }
4679
4679
  if (value === null || value === void 0) {
@@ -4683,7 +4683,7 @@ function renderCellValue(value, ellipsis) {
4683
4683
  if (ellipsis) {
4684
4684
  const shouldShowTitle = typeof ellipsis === "object" ? ellipsis.showTitle !== false : true;
4685
4685
  const maxWidth = typeof ellipsis === "object" ? ellipsis.maxWidth : void 0;
4686
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4686
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4687
4687
  "div",
4688
4688
  {
4689
4689
  className: "truncate",
@@ -4796,48 +4796,48 @@ function AdsDataTable({
4796
4796
  suppressRowClickSelection = true
4797
4797
  }) {
4798
4798
  const { messages } = useAdsI18n();
4799
- const resolvedColumns = React41.useMemo(() => columns.filter(Boolean), [columns]);
4800
- const [internalSortState, setInternalSortState] = React41.useState(
4799
+ const resolvedColumns = React42.useMemo(() => columns.filter(Boolean), [columns]);
4800
+ const [internalSortState, setInternalSortState] = React42.useState(
4801
4801
  () => getInitialSortState(resolvedColumns)
4802
4802
  );
4803
- const [internalSelectedKeys, setInternalSelectedKeys] = React41.useState(
4803
+ const [internalSelectedKeys, setInternalSelectedKeys] = React42.useState(
4804
4804
  rowSelection?.defaultSelectedRowKeys ?? rowSelection?.selectedRowKeys ?? []
4805
4805
  );
4806
- const [internalFilterValues, setInternalFilterValues] = React41.useState(
4806
+ const [internalFilterValues, setInternalFilterValues] = React42.useState(
4807
4807
  () => getInitialFilterValues(resolvedColumns)
4808
4808
  );
4809
- const [internalExpandedKeys, setInternalExpandedKeys] = React41.useState(
4809
+ const [internalExpandedKeys, setInternalExpandedKeys] = React42.useState(
4810
4810
  expandable?.defaultExpandedRowKeys ?? expandable?.expandedRowKeys ?? []
4811
4811
  );
4812
- const [internalColumnWidths, setInternalColumnWidths] = React41.useState({});
4813
- const [internalCurrentPage, setInternalCurrentPage] = React41.useState(
4812
+ const [internalColumnWidths, setInternalColumnWidths] = React42.useState({});
4813
+ const [internalCurrentPage, setInternalCurrentPage] = React42.useState(
4814
4814
  pagination !== false ? pagination.defaultCurrent ?? pagination.current ?? 1 : 1
4815
4815
  );
4816
- const [internalPageSize, setInternalPageSize] = React41.useState(
4816
+ const [internalPageSize, setInternalPageSize] = React42.useState(
4817
4817
  pagination !== false ? pagination.defaultPageSize ?? pagination.pageSize ?? 10 : 10
4818
4818
  );
4819
- const [activeResize, setActiveResize] = React41.useState(null);
4820
- React41.useEffect(() => {
4819
+ const [activeResize, setActiveResize] = React42.useState(null);
4820
+ React42.useEffect(() => {
4821
4821
  if (rowSelection?.selectedRowKeys !== void 0) {
4822
4822
  setInternalSelectedKeys(rowSelection.selectedRowKeys);
4823
4823
  }
4824
4824
  }, [rowSelection?.selectedRowKeys]);
4825
- React41.useEffect(() => {
4825
+ React42.useEffect(() => {
4826
4826
  if (expandable?.expandedRowKeys !== void 0) {
4827
4827
  setInternalExpandedKeys(expandable.expandedRowKeys);
4828
4828
  }
4829
4829
  }, [expandable?.expandedRowKeys]);
4830
- React41.useEffect(() => {
4830
+ React42.useEffect(() => {
4831
4831
  if (pagination !== false && pagination.current !== void 0) {
4832
4832
  setInternalCurrentPage(pagination.current);
4833
4833
  }
4834
4834
  }, [pagination]);
4835
- React41.useEffect(() => {
4835
+ React42.useEffect(() => {
4836
4836
  if (pagination !== false && pagination.pageSize !== void 0) {
4837
4837
  setInternalPageSize(pagination.pageSize);
4838
4838
  }
4839
4839
  }, [pagination]);
4840
- React41.useEffect(() => {
4840
+ React42.useEffect(() => {
4841
4841
  setInternalFilterValues((previous) => {
4842
4842
  const next = { ...previous };
4843
4843
  let hasChanged = false;
@@ -4858,7 +4858,7 @@ function AdsDataTable({
4858
4858
  return hasChanged ? next : previous;
4859
4859
  });
4860
4860
  }, [resolvedColumns]);
4861
- const controlledSortState = React41.useMemo(() => {
4861
+ const controlledSortState = React42.useMemo(() => {
4862
4862
  const columnIndex = resolvedColumns.findIndex((column2) => column2.sortOrder !== void 0);
4863
4863
  if (columnIndex === -1) {
4864
4864
  return null;
@@ -4878,7 +4878,7 @@ function AdsDataTable({
4878
4878
  const density = sizeClassNames[size];
4879
4879
  const paginationMode = pagination === false ? "client" : pagination.mode ?? "client";
4880
4880
  const allowsRowSelectionByClick = Boolean(rowSelection) && !suppressRowClickSelection;
4881
- const filterValues = React41.useMemo(
4881
+ const filterValues = React42.useMemo(
4882
4882
  () => resolvedColumns.reduce((accumulator, column, index) => {
4883
4883
  const columnKey = getColumnKey(column, index);
4884
4884
  accumulator[columnKey] = column.filterValue ?? internalFilterValues[columnKey] ?? "";
@@ -4886,7 +4886,7 @@ function AdsDataTable({
4886
4886
  }, {}),
4887
4887
  [internalFilterValues, resolvedColumns]
4888
4888
  );
4889
- const filteredData = React41.useMemo(() => {
4889
+ const filteredData = React42.useMemo(() => {
4890
4890
  const filterableColumns = resolvedColumns.filter((column) => column.filter);
4891
4891
  if (filterableColumns.length === 0) {
4892
4892
  return dataSource;
@@ -4906,7 +4906,7 @@ function AdsDataTable({
4906
4906
  })
4907
4907
  );
4908
4908
  }, [dataSource, filterValues, resolvedColumns]);
4909
- const sortedData = React41.useMemo(() => {
4909
+ const sortedData = React42.useMemo(() => {
4910
4910
  if (!sortState || !sortState.column || sortState.order === null) {
4911
4911
  return filteredData;
4912
4912
  }
@@ -4933,7 +4933,7 @@ function AdsDataTable({
4933
4933
  Math.max(1, pagination.current ?? internalCurrentPage),
4934
4934
  totalPages
4935
4935
  );
4936
- React41.useEffect(() => {
4936
+ React42.useEffect(() => {
4937
4937
  if (pagination === false || pagination.current !== void 0) {
4938
4938
  return;
4939
4939
  }
@@ -4941,14 +4941,14 @@ function AdsDataTable({
4941
4941
  setInternalCurrentPage(currentPage);
4942
4942
  }
4943
4943
  }, [currentPage, internalCurrentPage, pagination]);
4944
- const paginatedData = React41.useMemo(() => {
4944
+ const paginatedData = React42.useMemo(() => {
4945
4945
  if (pagination === false || paginationMode === "server") {
4946
4946
  return sortedData;
4947
4947
  }
4948
4948
  const start = (currentPage - 1) * currentPageSize;
4949
4949
  return sortedData.slice(start, start + currentPageSize);
4950
4950
  }, [currentPage, currentPageSize, pagination, paginationMode, sortedData]);
4951
- const handleSortChange = React41.useCallback(
4951
+ const handleSortChange = React42.useCallback(
4952
4952
  (column, columnKey, nextOrder) => {
4953
4953
  const nextSortState = nextOrder === null ? null : {
4954
4954
  column,
@@ -4962,7 +4962,7 @@ function AdsDataTable({
4962
4962
  },
4963
4963
  [controlledSortState, onSortChange]
4964
4964
  );
4965
- const handleFilterChange = React41.useCallback(
4965
+ const handleFilterChange = React42.useCallback(
4966
4966
  (column, columnKey, nextValue) => {
4967
4967
  if (column.filterValue === void 0) {
4968
4968
  setInternalFilterValues((previous) => ({
@@ -4977,7 +4977,7 @@ function AdsDataTable({
4977
4977
  },
4978
4978
  [pagination]
4979
4979
  );
4980
- const updateSelection = React41.useCallback(
4980
+ const updateSelection = React42.useCallback(
4981
4981
  (nextKeys) => {
4982
4982
  if (!rowSelection) {
4983
4983
  return;
@@ -4992,7 +4992,7 @@ function AdsDataTable({
4992
4992
  },
4993
4993
  [dataSource, rowKey, rowSelection]
4994
4994
  );
4995
- const toggleSelectionFromRowClick = React41.useCallback(
4995
+ const toggleSelectionFromRowClick = React42.useCallback(
4996
4996
  (record, recordKey) => {
4997
4997
  if (!allowsRowSelectionByClick || !rowSelection) {
4998
4998
  return;
@@ -5006,7 +5006,7 @@ function AdsDataTable({
5006
5006
  },
5007
5007
  [allowsRowSelectionByClick, rowSelection, selectedKeys, updateSelection]
5008
5008
  );
5009
- const toggleExpanded = React41.useCallback(
5009
+ const toggleExpanded = React42.useCallback(
5010
5010
  (record, recordKey) => {
5011
5011
  if (!expandable?.expandedRowRender) {
5012
5012
  return;
@@ -5023,11 +5023,11 @@ function AdsDataTable({
5023
5023
  },
5024
5024
  [expandable, expandedKeys]
5025
5025
  );
5026
- const renderedEmptyState = emptyState ?? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(AdsEmpty, { className: "min-h-[220px] py-12", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(AdsEmptyContent, { children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(AdsEmptyHeader, { children: [
5027
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(AdsEmptyTitle, { children: emptyText ?? messages.table.noDataAvailable }),
5028
- typeof emptyText === "string" ? null : /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(AdsEmptyDescription, { children: messages.table.noDataAvailable })
5026
+ const renderedEmptyState = emptyState ?? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(AdsEmpty, { className: "min-h-[220px] py-12", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(AdsEmptyContent, { children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(AdsEmptyHeader, { children: [
5027
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(AdsEmptyTitle, { children: emptyText ?? messages.table.noDataAvailable }),
5028
+ typeof emptyText === "string" ? null : /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(AdsEmptyDescription, { children: messages.table.noDataAvailable })
5029
5029
  ] }) }) });
5030
- const handlePaginationChange = React41.useCallback(
5030
+ const handlePaginationChange = React42.useCallback(
5031
5031
  (page, nextPageSize) => {
5032
5032
  if (pagination === false) {
5033
5033
  return;
@@ -5042,7 +5042,7 @@ function AdsDataTable({
5042
5042
  },
5043
5043
  [currentPageSize, pagination]
5044
5044
  );
5045
- const handlePageSizeChange = React41.useCallback(
5045
+ const handlePageSizeChange = React42.useCallback(
5046
5046
  (nextPageSize, page) => {
5047
5047
  if (pagination === false) {
5048
5048
  return;
@@ -5057,28 +5057,28 @@ function AdsDataTable({
5057
5057
  },
5058
5058
  [pagination]
5059
5059
  );
5060
- const visibleRowEntries = React41.useMemo(
5060
+ const visibleRowEntries = React42.useMemo(
5061
5061
  () => paginatedData.map((record, index) => ({
5062
5062
  key: resolveRowKey(record, index, rowKey),
5063
5063
  record
5064
5064
  })),
5065
5065
  [paginatedData, rowKey]
5066
5066
  );
5067
- const visibleSelectableKeys = React41.useMemo(
5067
+ const visibleSelectableKeys = React42.useMemo(
5068
5068
  () => visibleRowEntries.map((entry) => entry.key),
5069
5069
  [visibleRowEntries]
5070
5070
  );
5071
- const selectedVisibleCount = React41.useMemo(
5071
+ const selectedVisibleCount = React42.useMemo(
5072
5072
  () => visibleSelectableKeys.filter((key) => selectedKeys.includes(key)).length,
5073
5073
  [selectedKeys, visibleSelectableKeys]
5074
5074
  );
5075
5075
  const allVisibleRowsSelected = visibleSelectableKeys.length > 0 && selectedVisibleCount === visibleSelectableKeys.length;
5076
5076
  const someVisibleRowsSelected = selectedVisibleCount > 0 && selectedVisibleCount < visibleSelectableKeys.length;
5077
- const getColumnWidthOverride = React41.useCallback(
5077
+ const getColumnWidthOverride = React42.useCallback(
5078
5078
  (column, columnKey) => internalColumnWidths[columnKey] ?? getResolvedColumnWidth(column),
5079
5079
  [internalColumnWidths]
5080
5080
  );
5081
- const startColumnResize = React41.useCallback(
5081
+ const startColumnResize = React42.useCallback(
5082
5082
  (event, column, columnKey) => {
5083
5083
  event.preventDefault();
5084
5084
  event.stopPropagation();
@@ -5109,7 +5109,7 @@ function AdsDataTable({
5109
5109
  },
5110
5110
  [internalColumnWidths]
5111
5111
  );
5112
- const renderColumnHeader = React41.useCallback(
5112
+ const renderColumnHeader = React42.useCallback(
5113
5113
  (column, columnKey, columnSortOrder) => {
5114
5114
  const headerTitle = getColumnHeader(column, columnKey);
5115
5115
  const hasSorter = Boolean(column.sorter);
@@ -5120,9 +5120,9 @@ function AdsDataTable({
5120
5120
  }
5121
5121
  const nextOrder = columnSortOrder === null ? "ascend" : columnSortOrder === "ascend" ? "descend" : null;
5122
5122
  const actionLabel = nextOrder === "ascend" ? messages.table.sortAscending : nextOrder === "descend" ? messages.table.sortDescending : messages.table.clearSort;
5123
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "relative flex min-w-0 items-center gap-2 pr-3", children: [
5124
- /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex min-w-0 flex-1 items-center justify-between gap-2", children: [
5125
- hasSorter ? /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
5123
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "relative flex min-w-0 items-center gap-2 pr-3", children: [
5124
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "flex min-w-0 flex-1 items-center justify-between gap-2", children: [
5125
+ hasSorter ? /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
5126
5126
  Button,
5127
5127
  {
5128
5128
  "aria-label": `${headerTitle} ${actionLabel}`,
@@ -5135,13 +5135,13 @@ function AdsDataTable({
5135
5135
  type: "button",
5136
5136
  variant: "ghost",
5137
5137
  children: [
5138
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { className: "truncate", children: headerTitle }),
5139
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { className: "inline-flex h-4 w-4 items-center justify-center text-icon-muted", children: columnSortOrder === "ascend" ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_lucide_react17.ChevronDown, { className: "h-4 w-4 rotate-180" }) : columnSortOrder === "descend" ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_lucide_react17.ChevronDown, { className: "h-4 w-4" }) : /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_lucide_react17.ChevronDown, { className: "h-4 w-4 opacity-60" }) })
5138
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "truncate", children: headerTitle }),
5139
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "inline-flex h-4 w-4 items-center justify-center text-icon-muted", children: columnSortOrder === "ascend" ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_lucide_react15.ChevronDown, { className: "h-4 w-4 rotate-180" }) : columnSortOrder === "descend" ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_lucide_react15.ChevronDown, { className: "h-4 w-4" }) : /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_lucide_react15.ChevronDown, { className: "h-4 w-4 opacity-60" }) })
5140
5140
  ]
5141
5141
  }
5142
- ) : /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { className: "truncate", children: headerTitle }),
5143
- hasFilter ? /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(AdsPopover, { children: [
5144
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(AdsPopoverTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
5142
+ ) : /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "truncate", children: headerTitle }),
5143
+ hasFilter ? /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(AdsPopover, { children: [
5144
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(AdsPopoverTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
5145
5145
  Button,
5146
5146
  {
5147
5147
  "aria-label": `${headerTitle} ${messages.table.filterColumn}`,
@@ -5153,10 +5153,10 @@ function AdsDataTable({
5153
5153
  size: "sm",
5154
5154
  type: "button",
5155
5155
  variant: "ghost",
5156
- children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_lucide_react17.Filter, { className: "h-3.5 w-3.5" })
5156
+ children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_lucide_react15.Filter, { className: "h-3.5 w-3.5" })
5157
5157
  }
5158
5158
  ) }),
5159
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(AdsPopoverContent, { align: "end", className: "w-64", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
5159
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(AdsPopoverContent, { align: "end", className: "w-64", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
5160
5160
  AdsInput,
5161
5161
  {
5162
5162
  clearable: true,
@@ -5169,7 +5169,7 @@ function AdsDataTable({
5169
5169
  ) })
5170
5170
  ] }) : null
5171
5171
  ] }),
5172
- hasResizeHandle ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
5172
+ hasResizeHandle ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
5173
5173
  "span",
5174
5174
  {
5175
5175
  "aria-label": `Resize ${headerTitle} column`,
@@ -5187,12 +5187,12 @@ function AdsDataTable({
5187
5187
  },
5188
5188
  [activeResize?.columnKey, filterValues, handleFilterChange, handleSortChange, messages.table, startColumnResize]
5189
5189
  );
5190
- const tableNode = /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(AdsTableSurface, { className: cn("flex min-h-0 flex-1 flex-col", className), children: [
5191
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(AdsTableScrollArea, { fill, stickyHeader: sticky, x: scroll?.x, y: scroll?.y, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(AdsTableRoot, { className: tableClassName, children: [
5192
- /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(AdsTableColGroup, { children: [
5193
- hasSelectionColumn ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(AdsTableCol, { style: { width: rowSelection?.columnWidth ?? 48 } }) : null,
5194
- hasExpandableColumn ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(AdsTableCol, { style: { width: 48 } }) : null,
5195
- resolvedColumns.map((column, index) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
5190
+ const tableNode = /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(AdsTableSurface, { className: cn("flex min-h-0 flex-1 flex-col", className), children: [
5191
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(AdsTableScrollArea, { fill, stickyHeader: sticky, x: scroll?.x, y: scroll?.y, children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(AdsTableRoot, { className: tableClassName, children: [
5192
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(AdsTableColGroup, { children: [
5193
+ hasSelectionColumn ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(AdsTableCol, { style: { width: rowSelection?.columnWidth ?? 48 } }) : null,
5194
+ hasExpandableColumn ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(AdsTableCol, { style: { width: 48 } }) : null,
5195
+ resolvedColumns.map((column, index) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
5196
5196
  AdsTableCol,
5197
5197
  {
5198
5198
  style: getCellStyle(column, getColumnWidthOverride(column, getColumnKey(column, index)))
@@ -5200,8 +5200,8 @@ function AdsDataTable({
5200
5200
  getColumnKey(column, index)
5201
5201
  ))
5202
5202
  ] }),
5203
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(AdsTableHeader, { children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(AdsTableRow, { children: [
5204
- hasSelectionColumn ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(AdsTableHead, { className: "w-12 p-2", children: rowSelection?.type !== "radio" && !rowSelection?.hideSelectAll ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
5203
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(AdsTableHeader, { children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(AdsTableRow, { children: [
5204
+ hasSelectionColumn ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(AdsTableHead, { className: "w-12 p-2", children: rowSelection?.type !== "radio" && !rowSelection?.hideSelectAll ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
5205
5205
  Checkbox2,
5206
5206
  {
5207
5207
  "aria-label": messages.table.selectAllRows,
@@ -5218,11 +5218,11 @@ function AdsDataTable({
5218
5218
  onClick: (event) => event.stopPropagation()
5219
5219
  }
5220
5220
  ) }) : null }) : null,
5221
- hasExpandableColumn ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(AdsTableHead, { className: "w-12 p-2" }) : null,
5221
+ hasExpandableColumn ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(AdsTableHead, { className: "w-12 p-2" }) : null,
5222
5222
  resolvedColumns.map((column, index) => {
5223
5223
  const columnKey = getColumnKey(column, index);
5224
5224
  const columnSortOrder = sortState?.columnKey === columnKey ? sortState.order : column.sortOrder ?? null;
5225
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
5225
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
5226
5226
  AdsTableHead,
5227
5227
  {
5228
5228
  className: cn(density.head, column.className, column.headerClassName),
@@ -5233,14 +5233,14 @@ function AdsDataTable({
5233
5233
  );
5234
5234
  })
5235
5235
  ] }) }),
5236
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(AdsTableBody, { children: loading ? Array.from({ length: SKELETON_ROW_COUNT }, (_, skeletonIndex) => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(AdsTableRow, { children: [
5237
- hasSelectionColumn ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(AdsTableCell, { className: "w-12 p-2", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(AdsSkeleton, { className: "h-4 w-4 rounded-[4px]" }) }) : null,
5238
- hasExpandableColumn ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(AdsTableCell, { className: "w-12 p-2", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(AdsSkeleton, { className: "h-4 w-4 rounded-[4px]" }) }) : null,
5239
- resolvedColumns.map((column, index) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
5236
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(AdsTableBody, { children: loading ? Array.from({ length: SKELETON_ROW_COUNT }, (_, skeletonIndex) => /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(AdsTableRow, { children: [
5237
+ hasSelectionColumn ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(AdsTableCell, { className: "w-12 p-2", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(AdsSkeleton, { className: "h-4 w-4 rounded-[4px]" }) }) : null,
5238
+ hasExpandableColumn ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(AdsTableCell, { className: "w-12 p-2", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(AdsSkeleton, { className: "h-4 w-4 rounded-[4px]" }) }) : null,
5239
+ resolvedColumns.map((column, index) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
5240
5240
  AdsTableCell,
5241
5241
  {
5242
5242
  className: cn(density.cell, column.className),
5243
- children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(AdsSkeleton, { className: "h-4 w-full rounded" })
5243
+ children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(AdsSkeleton, { className: "h-4 w-full rounded" })
5244
5244
  },
5245
5245
  `${getColumnKey(column, index)}-${skeletonIndex}`
5246
5246
  ))
@@ -5249,7 +5249,7 @@ function AdsDataTable({
5249
5249
  const isExpanded = expandedKeys.includes(recordKey);
5250
5250
  const canExpand = !!expandable?.expandedRowRender && (!expandable.rowExpandable || expandable.rowExpandable(record));
5251
5251
  const dataRowClassName = typeof rowClassName === "function" ? rowClassName(record, index) : rowClassName;
5252
- const row = /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
5252
+ const row = /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
5253
5253
  AdsTableRow,
5254
5254
  {
5255
5255
  className: cn(
@@ -5272,7 +5272,7 @@ function AdsDataTable({
5272
5272
  toggleSelectionFromRowClick(record, recordKey);
5273
5273
  },
5274
5274
  children: [
5275
- hasSelectionColumn ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
5275
+ hasSelectionColumn ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
5276
5276
  AdsTableSelectionCell,
5277
5277
  {
5278
5278
  checked: selectedKeys.includes(recordKey),
@@ -5288,7 +5288,7 @@ function AdsDataTable({
5288
5288
  value: String(recordKey)
5289
5289
  }
5290
5290
  ) : null,
5291
- hasExpandableColumn ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
5291
+ hasExpandableColumn ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
5292
5292
  AdsTableExpandCell,
5293
5293
  {
5294
5294
  disabled: !canExpand,
@@ -5301,7 +5301,7 @@ function AdsDataTable({
5301
5301
  resolveRenderedCellContent(column, record, index),
5302
5302
  column.ellipsis
5303
5303
  );
5304
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
5304
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
5305
5305
  AdsTableCell,
5306
5306
  {
5307
5307
  className: cn(
@@ -5327,12 +5327,12 @@ function AdsDataTable({
5327
5327
  }
5328
5328
  return [
5329
5329
  row,
5330
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(AdsTableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
5330
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(AdsTableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
5331
5331
  AdsTableCell,
5332
5332
  {
5333
5333
  className: "p-0",
5334
5334
  colSpan: resolvedColumns.length + Number(hasSelectionColumn) + Number(hasExpandableColumn),
5335
- children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
5335
+ children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
5336
5336
  "div",
5337
5337
  {
5338
5338
  className: cn(
@@ -5346,7 +5346,7 @@ function AdsDataTable({
5346
5346
  ) }, `${String(recordKey)}-expanded`)
5347
5347
  ];
5348
5348
  }) : [
5349
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(AdsTableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
5349
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(AdsTableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
5350
5350
  AdsTableCell,
5351
5351
  {
5352
5352
  colSpan: resolvedColumns.length + Number(hasSelectionColumn) + Number(hasExpandableColumn),
@@ -5356,8 +5356,8 @@ function AdsDataTable({
5356
5356
  ) }, "empty-row")
5357
5357
  ] })
5358
5358
  ] }) }),
5359
- footer ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "border-t border-border p-3", children: footer }) : null,
5360
- pagination !== false ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: cn("border-t border-border p-3", classNames?.paginationContainer), children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
5359
+ footer ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "border-t border-border p-3", children: footer }) : null,
5360
+ pagination !== false ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: cn("border-t border-border p-3", classNames?.paginationContainer), children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
5361
5361
  AdsDataPagination,
5362
5362
  {
5363
5363
  ariaLabel: messages.pagination.navigation,
@@ -5379,7 +5379,7 @@ function AdsDataTable({
5379
5379
  ) }) : null
5380
5380
  ] });
5381
5381
  if (rowSelection?.type === "radio") {
5382
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
5382
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
5383
5383
  RadioGroup2,
5384
5384
  {
5385
5385
  onValueChange: (value) => {
@@ -5400,7 +5400,7 @@ function AdsDataTable({
5400
5400
  }
5401
5401
 
5402
5402
  // src/components/AdsDataTableToolbar/index.tsx
5403
- var import_jsx_runtime46 = require("react/jsx-runtime");
5403
+ var import_jsx_runtime47 = require("react/jsx-runtime");
5404
5404
  function AdsDataTableToolbar({
5405
5405
  action,
5406
5406
  className,
@@ -5412,7 +5412,7 @@ function AdsDataTableToolbar({
5412
5412
  onSearchChange,
5413
5413
  onSearchClear
5414
5414
  }) {
5415
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
5415
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
5416
5416
  "div",
5417
5417
  {
5418
5418
  className: cn(
@@ -5420,9 +5420,9 @@ function AdsDataTableToolbar({
5420
5420
  className
5421
5421
  ),
5422
5422
  children: [
5423
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "min-w-0 flex-1", children: title ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("h2", { className: cn("truncate text-xl font-medium text-white", titleClassName), children: title }) : null }),
5424
- /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "flex w-full flex-col gap-sm md:min-w-0 md:flex-1 md:flex-row md:items-center md:justify-end", children: [
5425
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "min-w-0 md:max-w-[440px] md:flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
5423
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "min-w-0 flex-1", children: title ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("h2", { className: cn("truncate text-xl font-medium text-white", titleClassName), children: title }) : null }),
5424
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex w-full flex-col gap-sm md:min-w-0 md:flex-1 md:flex-row md:items-center md:justify-end", children: [
5425
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "min-w-0 md:max-w-[440px] md:flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
5426
5426
  AdsInput,
5427
5427
  {
5428
5428
  className: cn(
@@ -5436,7 +5436,7 @@ function AdsDataTableToolbar({
5436
5436
  value: searchValue
5437
5437
  }
5438
5438
  ) }),
5439
- action ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "shrink-0", children: action }) : null
5439
+ action ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "shrink-0", children: action }) : null
5440
5440
  ] })
5441
5441
  ]
5442
5442
  }
@@ -5444,7 +5444,7 @@ function AdsDataTableToolbar({
5444
5444
  }
5445
5445
 
5446
5446
  // src/components/AdsViewCustomersDataTable/index.tsx
5447
- var import_jsx_runtime47 = require("react/jsx-runtime");
5447
+ var import_jsx_runtime48 = require("react/jsx-runtime");
5448
5448
  function resolveHeight(value) {
5449
5449
  if (value === void 0) {
5450
5450
  return 500;
@@ -5476,13 +5476,13 @@ function AdsViewCustomersDataTable({
5476
5476
  ...props
5477
5477
  }) {
5478
5478
  const tableHeight = resolveHeight(height);
5479
- const resolvedErrorState = errorState ?? /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex min-h-[500px] flex-col items-center justify-center gap-3 px-6 py-12 text-center", children: [
5480
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("p", { className: "text-sm font-medium text-white", children: errorTitle }),
5481
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("p", { className: "max-w-md text-sm text-[#848484]", children: errorDescription }),
5482
- onRetry ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(AdsButton, { intent: "primary", onClick: onRetry, children: retryLabel }) : null
5479
+ const resolvedErrorState = errorState ?? /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex min-h-[500px] flex-col items-center justify-center gap-3 px-6 py-12 text-center", children: [
5480
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("p", { className: "text-sm font-medium text-white", children: errorTitle }),
5481
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("p", { className: "max-w-md text-sm text-[#848484]", children: errorDescription }),
5482
+ onRetry ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(AdsButton, { intent: "primary", onClick: onRetry, children: retryLabel }) : null
5483
5483
  ] });
5484
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "overflow-hidden rounded-xl border border-[#27282F] bg-[#1B1C21]", children: [
5485
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
5484
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "overflow-hidden rounded-xl border border-[#27282F] bg-[#1B1C21]", children: [
5485
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
5486
5486
  AdsDataTableToolbar,
5487
5487
  {
5488
5488
  action: toolbarAction,
@@ -5494,7 +5494,7 @@ function AdsViewCustomersDataTable({
5494
5494
  }
5495
5495
  ),
5496
5496
  error ? resolvedErrorState : null,
5497
- !error ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
5497
+ !error ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
5498
5498
  AdsDataTable,
5499
5499
  {
5500
5500
  ...props,
@@ -5529,20 +5529,20 @@ function AdsViewCustomersDataTable({
5529
5529
  }
5530
5530
 
5531
5531
  // src/components/AdsProgress/index.tsx
5532
- var React43 = __toESM(require("react"), 1);
5532
+ var React44 = __toESM(require("react"), 1);
5533
5533
 
5534
5534
  // src/primitives/progress.tsx
5535
- var React42 = __toESM(require("react"), 1);
5535
+ var React43 = __toESM(require("react"), 1);
5536
5536
  var ProgressPrimitive = __toESM(require("@radix-ui/react-progress"), 1);
5537
- var import_jsx_runtime48 = require("react/jsx-runtime");
5538
- var Progress = React42.forwardRef(({ className, indicatorClassName, value, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
5537
+ var import_jsx_runtime49 = require("react/jsx-runtime");
5538
+ var Progress = React43.forwardRef(({ className, indicatorClassName, value, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
5539
5539
  ProgressPrimitive.Root,
5540
5540
  {
5541
5541
  className: cn("relative h-4 w-full overflow-hidden rounded-full bg-secondary", className),
5542
5542
  ref,
5543
5543
  value,
5544
5544
  ...props,
5545
- children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
5545
+ children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
5546
5546
  ProgressPrimitive.Indicator,
5547
5547
  {
5548
5548
  className: cn("h-full w-full flex-1 bg-primary transition-all", indicatorClassName),
@@ -5554,13 +5554,13 @@ var Progress = React42.forwardRef(({ className, indicatorClassName, value, ...pr
5554
5554
  Progress.displayName = ProgressPrimitive.Root.displayName;
5555
5555
 
5556
5556
  // src/components/AdsProgress/index.tsx
5557
- var import_jsx_runtime49 = require("react/jsx-runtime");
5557
+ var import_jsx_runtime50 = require("react/jsx-runtime");
5558
5558
  var progressBaseClassName = "h-2 rounded-radius-full bg-[color:color-mix(in_srgb,var(--primary)_20%,transparent)]";
5559
5559
  var progressIndicatorVariantClassName = {
5560
5560
  ai: "bg-brand-gradient",
5561
5561
  default: "bg-primary"
5562
5562
  };
5563
- var Progress2 = React43.forwardRef(({ className, indicatorClassName, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
5563
+ var Progress2 = React44.forwardRef(({ className, indicatorClassName, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
5564
5564
  Progress,
5565
5565
  {
5566
5566
  className: cn(progressBaseClassName, className),
@@ -5570,7 +5570,7 @@ var Progress2 = React43.forwardRef(({ className, indicatorClassName, ...props },
5570
5570
  }
5571
5571
  ));
5572
5572
  Progress2.displayName = "Progress";
5573
- var AdsProgress = React43.forwardRef(
5573
+ var AdsProgress = React44.forwardRef(
5574
5574
  ({
5575
5575
  className,
5576
5576
  descriptionPlacement = "above",
@@ -5589,12 +5589,12 @@ var AdsProgress = React43.forwardRef(
5589
5589
  id
5590
5590
  });
5591
5591
  const labelId = label ? `${description.inputId}-label` : void 0;
5592
- const helperNode = helperText ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(AdsFieldDescription, { id: description.helperId, children: helperText }) : null;
5593
- const errorNode = errorText ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(AdsFieldError, { id: description.errorId, children: errorText }) : null;
5594
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(AdsFieldItem, { children: [
5595
- label ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(AdsFieldLabel, { id: labelId, children: label }) : null,
5592
+ const helperNode = helperText ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(AdsFieldDescription, { id: description.helperId, children: helperText }) : null;
5593
+ const errorNode = errorText ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(AdsFieldError, { id: description.errorId, children: errorText }) : null;
5594
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(AdsFieldItem, { children: [
5595
+ label ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(AdsFieldLabel, { id: labelId, children: label }) : null,
5596
5596
  descriptionPlacement === "above" ? helperNode : null,
5597
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
5597
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
5598
5598
  Progress,
5599
5599
  {
5600
5600
  "aria-describedby": description.describedBy,
@@ -5618,13 +5618,13 @@ var AdsProgress = React43.forwardRef(
5618
5618
  AdsProgress.displayName = "AdsProgress";
5619
5619
 
5620
5620
  // src/components/AdsSlider/index.tsx
5621
- var React45 = __toESM(require("react"), 1);
5621
+ var React46 = __toESM(require("react"), 1);
5622
5622
 
5623
5623
  // src/primitives/slider.tsx
5624
- var React44 = __toESM(require("react"), 1);
5624
+ var React45 = __toESM(require("react"), 1);
5625
5625
  var SliderPrimitive = __toESM(require("@radix-ui/react-slider"), 1);
5626
- var import_jsx_runtime50 = require("react/jsx-runtime");
5627
- var Slider = React44.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
5626
+ var import_jsx_runtime51 = require("react/jsx-runtime");
5627
+ var Slider = React45.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
5628
5628
  SliderPrimitive.Root,
5629
5629
  {
5630
5630
  ref,
@@ -5634,10 +5634,10 @@ var Slider = React44.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
5634
5634
  ),
5635
5635
  ...props,
5636
5636
  children: [
5637
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SliderPrimitive.Track, { className: "relative h-1.5 w-full grow overflow-hidden rounded-full bg-secondary", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SliderPrimitive.Range, { className: "absolute h-full bg-primary" }) }),
5637
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(SliderPrimitive.Track, { className: "relative h-1.5 w-full grow overflow-hidden rounded-full bg-secondary", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(SliderPrimitive.Range, { className: "absolute h-full bg-primary" }) }),
5638
5638
  Array.from({
5639
5639
  length: Array.isArray(props.value) ? props.value.length : Array.isArray(props.defaultValue) ? props.defaultValue.length : 1
5640
- }).map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
5640
+ }).map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
5641
5641
  SliderPrimitive.Thumb,
5642
5642
  {
5643
5643
  className: "block h-5 w-5 rounded-full border border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"
@@ -5650,11 +5650,11 @@ var Slider = React44.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
5650
5650
  Slider.displayName = SliderPrimitive.Root.displayName;
5651
5651
 
5652
5652
  // src/components/AdsSlider/index.tsx
5653
- var import_jsx_runtime51 = require("react/jsx-runtime");
5653
+ var import_jsx_runtime52 = require("react/jsx-runtime");
5654
5654
  var sliderBaseClassName = "py-1";
5655
- var Slider2 = React45.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Slider, { className: cn(sliderBaseClassName, className), ref, ...props }));
5655
+ var Slider2 = React46.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Slider, { className: cn(sliderBaseClassName, className), ref, ...props }));
5656
5656
  Slider2.displayName = "Slider";
5657
- var AdsSlider = React45.forwardRef(
5657
+ var AdsSlider = React46.forwardRef(
5658
5658
  ({
5659
5659
  className,
5660
5660
  descriptionPlacement = "above",
@@ -5669,12 +5669,12 @@ var AdsSlider = React45.forwardRef(
5669
5669
  helperText,
5670
5670
  id
5671
5671
  });
5672
- const helperNode = helperText ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(AdsFieldDescription, { id: description.helperId, children: helperText }) : null;
5673
- const errorNode = errorText ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(AdsFieldError, { id: description.errorId, children: errorText }) : null;
5674
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(AdsFieldItem, { children: [
5675
- label ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(AdsFieldLabel, { children: label }) : null,
5672
+ const helperNode = helperText ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(AdsFieldDescription, { id: description.helperId, children: helperText }) : null;
5673
+ const errorNode = errorText ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(AdsFieldError, { id: description.errorId, children: errorText }) : null;
5674
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(AdsFieldItem, { children: [
5675
+ label ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(AdsFieldLabel, { children: label }) : null,
5676
5676
  descriptionPlacement === "above" ? helperNode : null,
5677
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
5677
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
5678
5678
  Slider2,
5679
5679
  {
5680
5680
  "aria-describedby": description.describedBy,
@@ -5691,13 +5691,13 @@ var AdsSlider = React45.forwardRef(
5691
5691
  AdsSlider.displayName = "AdsSlider";
5692
5692
 
5693
5693
  // src/components/AdsSwitch/index.tsx
5694
- var React47 = __toESM(require("react"), 1);
5694
+ var React48 = __toESM(require("react"), 1);
5695
5695
 
5696
5696
  // src/primitives/switch.tsx
5697
- var React46 = __toESM(require("react"), 1);
5697
+ var React47 = __toESM(require("react"), 1);
5698
5698
  var SwitchPrimitives = __toESM(require("@radix-ui/react-switch"), 1);
5699
- var import_jsx_runtime52 = require("react/jsx-runtime");
5700
- var Switch = React46.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
5699
+ var import_jsx_runtime53 = require("react/jsx-runtime");
5700
+ var Switch = React47.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
5701
5701
  SwitchPrimitives.Root,
5702
5702
  {
5703
5703
  className: cn(
@@ -5706,7 +5706,7 @@ var Switch = React46.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
5706
5706
  ),
5707
5707
  ...props,
5708
5708
  ref,
5709
- children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
5709
+ children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
5710
5710
  SwitchPrimitives.Thumb,
5711
5711
  {
5712
5712
  className: cn(
@@ -5719,15 +5719,15 @@ var Switch = React46.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
5719
5719
  Switch.displayName = SwitchPrimitives.Root.displayName;
5720
5720
 
5721
5721
  // src/components/AdsSwitch/index.tsx
5722
- var import_jsx_runtime53 = require("react/jsx-runtime");
5722
+ var import_jsx_runtime54 = require("react/jsx-runtime");
5723
5723
  var switchBaseClassName = "h-6 w-11 border border-transparent bg-muted shadow-[0px_1px_2px_rgba(0,0,0,0.1)] focus-visible:ring-[3px] focus-visible:ring-[rgba(161,161,161,0.5)] focus-visible:ring-offset-0 data-[state=checked]:bg-primary data-[state=unchecked]:bg-muted";
5724
- var Switch2 = React47.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Switch, { className: cn(switchBaseClassName, className), ref, ...props }));
5724
+ var Switch2 = React48.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Switch, { className: cn(switchBaseClassName, className), ref, ...props }));
5725
5725
  Switch2.displayName = "Switch";
5726
- var AdsSwitch = React47.forwardRef(({ className, description, id, label, switchClassName, wrapperClassName, ...props }, ref) => {
5727
- const generatedId = React47.useId();
5726
+ var AdsSwitch = React48.forwardRef(({ className, description, id, label, switchClassName, wrapperClassName, ...props }, ref) => {
5727
+ const generatedId = React48.useId();
5728
5728
  const inputId = id ?? generatedId;
5729
5729
  if (!label) {
5730
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
5730
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
5731
5731
  Switch2,
5732
5732
  {
5733
5733
  className: cn(className, switchClassName),
@@ -5737,12 +5737,12 @@ var AdsSwitch = React47.forwardRef(({ className, description, id, label, switchC
5737
5737
  }
5738
5738
  );
5739
5739
  }
5740
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("label", { className: cn("block w-full cursor-pointer", wrapperClassName), htmlFor: inputId, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "flex w-full items-start gap-3", children: [
5741
- /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-1.5 pt-0.5", children: [
5742
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "text-sm font-medium leading-5 text-foreground", children: label }),
5743
- description ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(AdsFieldDescription, { className: "text-sm leading-5", children: description }) : null
5740
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("label", { className: cn("block w-full cursor-pointer", wrapperClassName), htmlFor: inputId, children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "flex w-full items-start gap-3", children: [
5741
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-1.5 pt-0.5", children: [
5742
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "text-sm font-medium leading-5 text-foreground", children: label }),
5743
+ description ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(AdsFieldDescription, { className: "text-sm leading-5", children: description }) : null
5744
5744
  ] }),
5745
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
5745
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
5746
5746
  Switch2,
5747
5747
  {
5748
5748
  className: cn(className, switchClassName),
@@ -5756,14 +5756,14 @@ var AdsSwitch = React47.forwardRef(({ className, description, id, label, switchC
5756
5756
  AdsSwitch.displayName = "AdsSwitch";
5757
5757
 
5758
5758
  // src/components/AdsTabs/index.tsx
5759
- var React49 = __toESM(require("react"), 1);
5759
+ var React50 = __toESM(require("react"), 1);
5760
5760
 
5761
5761
  // src/primitives/tabs.tsx
5762
- var React48 = __toESM(require("react"), 1);
5762
+ var React49 = __toESM(require("react"), 1);
5763
5763
  var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"), 1);
5764
- var import_jsx_runtime54 = require("react/jsx-runtime");
5764
+ var import_jsx_runtime55 = require("react/jsx-runtime");
5765
5765
  var Tabs = TabsPrimitive.Root;
5766
- var TabsList = React48.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
5766
+ var TabsList = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
5767
5767
  TabsPrimitive.List,
5768
5768
  {
5769
5769
  className: cn("inline-flex items-center", className),
@@ -5772,7 +5772,7 @@ var TabsList = React48.forwardRef(({ className, ...props }, ref) => /* @__PURE__
5772
5772
  }
5773
5773
  ));
5774
5774
  TabsList.displayName = TabsPrimitive.List.displayName;
5775
- var TabsTrigger = React48.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
5775
+ var TabsTrigger = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
5776
5776
  TabsPrimitive.Trigger,
5777
5777
  {
5778
5778
  className: cn(
@@ -5784,7 +5784,7 @@ var TabsTrigger = React48.forwardRef(({ className, ...props }, ref) => /* @__PUR
5784
5784
  }
5785
5785
  ));
5786
5786
  TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
5787
- var TabsContent = React48.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
5787
+ var TabsContent = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
5788
5788
  TabsPrimitive.Content,
5789
5789
  {
5790
5790
  className: cn("focus-visible:outline-none", className),
@@ -5795,9 +5795,9 @@ var TabsContent = React48.forwardRef(({ className, ...props }, ref) => /* @__PUR
5795
5795
  TabsContent.displayName = TabsPrimitive.Content.displayName;
5796
5796
 
5797
5797
  // src/components/AdsTabs/index.tsx
5798
- var import_jsx_runtime55 = require("react/jsx-runtime");
5798
+ var import_jsx_runtime56 = require("react/jsx-runtime");
5799
5799
  var AdsTabs = Tabs;
5800
- var AdsTabsList = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
5800
+ var AdsTabsList = React50.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
5801
5801
  TabsList,
5802
5802
  {
5803
5803
  className: cn(
@@ -5809,7 +5809,7 @@ var AdsTabsList = React49.forwardRef(({ className, ...props }, ref) => /* @__PUR
5809
5809
  }
5810
5810
  ));
5811
5811
  AdsTabsList.displayName = "AdsTabsList";
5812
- var AdsTabsTrigger = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
5812
+ var AdsTabsTrigger = React50.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
5813
5813
  TabsTrigger,
5814
5814
  {
5815
5815
  className: cn(
@@ -5821,7 +5821,7 @@ var AdsTabsTrigger = React49.forwardRef(({ className, ...props }, ref) => /* @__
5821
5821
  }
5822
5822
  ));
5823
5823
  AdsTabsTrigger.displayName = "AdsTabsTrigger";
5824
- var AdsTabsContent = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
5824
+ var AdsTabsContent = React50.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
5825
5825
  TabsContent,
5826
5826
  {
5827
5827
  className: cn(
@@ -5835,13 +5835,13 @@ var AdsTabsContent = React49.forwardRef(({ className, ...props }, ref) => /* @__
5835
5835
  AdsTabsContent.displayName = "AdsTabsContent";
5836
5836
 
5837
5837
  // src/components/AdsToggle/index.tsx
5838
- var React51 = __toESM(require("react"), 1);
5838
+ var React52 = __toESM(require("react"), 1);
5839
5839
 
5840
5840
  // src/primitives/toggle.tsx
5841
- var React50 = __toESM(require("react"), 1);
5841
+ var React51 = __toESM(require("react"), 1);
5842
5842
  var TogglePrimitive = __toESM(require("@radix-ui/react-toggle"), 1);
5843
- var import_jsx_runtime56 = require("react/jsx-runtime");
5844
- var Toggle = React50.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
5843
+ var import_jsx_runtime57 = require("react/jsx-runtime");
5844
+ var Toggle = React51.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
5845
5845
  TogglePrimitive.Root,
5846
5846
  {
5847
5847
  className: cn(
@@ -5855,7 +5855,7 @@ var Toggle = React50.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
5855
5855
  Toggle.displayName = TogglePrimitive.Root.displayName;
5856
5856
 
5857
5857
  // src/components/AdsToggle/index.tsx
5858
- var import_jsx_runtime57 = require("react/jsx-runtime");
5858
+ var import_jsx_runtime58 = require("react/jsx-runtime");
5859
5859
  var sizeClassName3 = {
5860
5860
  sm: "!h-8 px-[6px] text-sm",
5861
5861
  md: "!h-9 px-md text-sm",
@@ -5870,10 +5870,10 @@ var variantClassName = {
5870
5870
  default: "border border-transparent bg-transparent text-foreground shadow-none hover:bg-muted/70 data-[state=on]:bg-muted data-[state=on]:shadow-[0px_1px_1px_rgba(0,0,0,0.1)]",
5871
5871
  outline: "border border-border bg-transparent text-foreground shadow-none hover:bg-muted/70 data-[state=on]:border-transparent data-[state=on]:bg-muted data-[state=on]:shadow-[0px_1px_1px_rgba(0,0,0,0.1)]"
5872
5872
  };
5873
- var AdsToggle = React51.forwardRef(({ children, className, size = "md", variant = "default", ...props }, ref) => {
5874
- const childCount = React51.Children.count(children);
5875
- const isIconOnly = childCount === 1 && React51.isValidElement(children);
5876
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
5873
+ var AdsToggle = React52.forwardRef(({ children, className, size = "md", variant = "default", ...props }, ref) => {
5874
+ const childCount = React52.Children.count(children);
5875
+ const isIconOnly = childCount === 1 && React52.isValidElement(children);
5876
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
5877
5877
  Toggle,
5878
5878
  {
5879
5879
  className: cn(
@@ -5892,13 +5892,13 @@ var AdsToggle = React51.forwardRef(({ children, className, size = "md", variant
5892
5892
  AdsToggle.displayName = "AdsToggle";
5893
5893
 
5894
5894
  // src/components/AdsToggleGroup/index.tsx
5895
- var React53 = __toESM(require("react"), 1);
5895
+ var React54 = __toESM(require("react"), 1);
5896
5896
 
5897
5897
  // src/primitives/toggle-group.tsx
5898
- var React52 = __toESM(require("react"), 1);
5898
+ var React53 = __toESM(require("react"), 1);
5899
5899
  var ToggleGroupPrimitive = __toESM(require("@radix-ui/react-toggle-group"), 1);
5900
- var import_jsx_runtime58 = require("react/jsx-runtime");
5901
- var ToggleGroup = React52.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
5900
+ var import_jsx_runtime59 = require("react/jsx-runtime");
5901
+ var ToggleGroup = React53.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
5902
5902
  ToggleGroupPrimitive.Root,
5903
5903
  {
5904
5904
  className: cn("inline-flex items-center justify-start", className),
@@ -5907,7 +5907,7 @@ var ToggleGroup = React52.forwardRef(({ className, ...props }, ref) => /* @__PUR
5907
5907
  }
5908
5908
  ));
5909
5909
  ToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName;
5910
- var ToggleGroupItem = React52.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
5910
+ var ToggleGroupItem = React53.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
5911
5911
  ToggleGroupPrimitive.Item,
5912
5912
  {
5913
5913
  className: cn(
@@ -5921,7 +5921,7 @@ var ToggleGroupItem = React52.forwardRef(({ className, ...props }, ref) => /* @_
5921
5921
  ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;
5922
5922
 
5923
5923
  // src/components/AdsToggleGroup/index.tsx
5924
- var import_jsx_runtime59 = require("react/jsx-runtime");
5924
+ var import_jsx_runtime60 = require("react/jsx-runtime");
5925
5925
  var sizeClassName4 = {
5926
5926
  sm: "h-8 min-w-7 px-[6px] text-sm",
5927
5927
  md: "h-9 min-w-[34px] px-md text-sm",
@@ -5931,8 +5931,8 @@ var variantClassName2 = {
5931
5931
  default: "border-transparent bg-transparent text-foreground hover:bg-muted/70 data-[state=on]:bg-muted data-[state=on]:shadow-[0px_1px_1px_rgba(0,0,0,0.1)]",
5932
5932
  outline: "border border-border bg-transparent text-foreground hover:bg-muted/70 data-[state=on]:border-transparent data-[state=on]:bg-muted data-[state=on]:shadow-[0px_1px_1px_rgba(0,0,0,0.1)]"
5933
5933
  };
5934
- var AdsToggleGroupContext = React53.createContext(null);
5935
- var AdsToggleGroup = React53.forwardRef(
5934
+ var AdsToggleGroupContext = React54.createContext(null);
5935
+ var AdsToggleGroup = React54.forwardRef(
5936
5936
  ({
5937
5937
  children,
5938
5938
  className,
@@ -5940,7 +5940,7 @@ var AdsToggleGroup = React53.forwardRef(
5940
5940
  size = "md",
5941
5941
  variant = "default",
5942
5942
  ...props
5943
- }, ref) => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(AdsToggleGroupContext.Provider, { value: { orientation, size, variant }, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
5943
+ }, ref) => /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(AdsToggleGroupContext.Provider, { value: { orientation, size, variant }, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
5944
5944
  ToggleGroup,
5945
5945
  {
5946
5946
  className: cn(
@@ -5956,12 +5956,12 @@ var AdsToggleGroup = React53.forwardRef(
5956
5956
  ) })
5957
5957
  );
5958
5958
  AdsToggleGroup.displayName = "AdsToggleGroup";
5959
- var AdsToggleGroupItem = React53.forwardRef(({ className, size, variant, ...props }, ref) => {
5960
- const context = React53.useContext(AdsToggleGroupContext);
5959
+ var AdsToggleGroupItem = React54.forwardRef(({ className, size, variant, ...props }, ref) => {
5960
+ const context = React54.useContext(AdsToggleGroupContext);
5961
5961
  const resolvedOrientation = context?.orientation ?? "horizontal";
5962
5962
  const resolvedSize = size ?? context?.size ?? "md";
5963
5963
  const resolvedVariant = variant ?? context?.variant ?? "default";
5964
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
5964
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
5965
5965
  ToggleGroupItem,
5966
5966
  {
5967
5967
  className: cn(
@@ -5979,10 +5979,10 @@ var AdsToggleGroupItem = React53.forwardRef(({ className, size, variant, ...prop
5979
5979
  AdsToggleGroupItem.displayName = "AdsToggleGroupItem";
5980
5980
 
5981
5981
  // src/components/AdsTextarea/index.tsx
5982
- var React54 = __toESM(require("react"), 1);
5983
- var import_jsx_runtime60 = require("react/jsx-runtime");
5982
+ var React55 = __toESM(require("react"), 1);
5983
+ var import_jsx_runtime61 = require("react/jsx-runtime");
5984
5984
  var textareaBaseClassName = "w-full rounded-radius-md border border-border bg-card px-md py-md text-base leading-6 shadow-[0px_1px_2px_rgba(0,0,0,0.1)] placeholder:text-[var(--muted-foreground)] focus-visible:border-border-focus focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-[rgba(161,161,161,0.5)] focus-visible:ring-offset-0 disabled:cursor-not-allowed disabled:opacity-50";
5985
- var AdsTextarea = React54.forwardRef(
5985
+ var AdsTextarea = React55.forwardRef(
5986
5986
  ({
5987
5987
  action,
5988
5988
  className,
@@ -6001,12 +6001,12 @@ var AdsTextarea = React54.forwardRef(
6001
6001
  helperText,
6002
6002
  id
6003
6003
  });
6004
- const helperNode = helperText ? /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(AdsFieldDescription, { id: description.helperId, children: helperText }) : null;
6005
- const errorNode = errorText ? /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(AdsFieldError, { id: description.errorId, children: errorText }) : null;
6006
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(AdsFieldItem, { children: [
6007
- label ? /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(AdsFieldLabel, { htmlFor: description.inputId, children: label }) : null,
6004
+ const helperNode = helperText ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(AdsFieldDescription, { id: description.helperId, children: helperText }) : null;
6005
+ const errorNode = errorText ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(AdsFieldError, { id: description.errorId, children: errorText }) : null;
6006
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(AdsFieldItem, { children: [
6007
+ label ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(AdsFieldLabel, { htmlFor: description.inputId, children: label }) : null,
6008
6008
  descriptionPlacement === "above" ? helperNode : null,
6009
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
6009
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
6010
6010
  Textarea,
6011
6011
  {
6012
6012
  "aria-describedby": description.describedBy,
@@ -6024,7 +6024,7 @@ var AdsTextarea = React54.forwardRef(
6024
6024
  ...props
6025
6025
  }
6026
6026
  ),
6027
- action ? /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: "w-full [&>*]:w-full", children: action }) : null,
6027
+ action ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "w-full [&>*]:w-full", children: action }) : null,
6028
6028
  descriptionPlacement === "below" ? helperNode : null,
6029
6029
  errorNode
6030
6030
  ] });
@@ -6033,17 +6033,17 @@ var AdsTextarea = React54.forwardRef(
6033
6033
  AdsTextarea.displayName = "AdsTextarea";
6034
6034
 
6035
6035
  // src/components/AdsTooltip/index.tsx
6036
- var React56 = __toESM(require("react"), 1);
6036
+ var React57 = __toESM(require("react"), 1);
6037
6037
 
6038
6038
  // src/primitives/tooltip.tsx
6039
- var React55 = __toESM(require("react"), 1);
6039
+ var React56 = __toESM(require("react"), 1);
6040
6040
  var TooltipPrimitive = __toESM(require("@radix-ui/react-tooltip"), 1);
6041
- var import_jsx_runtime61 = require("react/jsx-runtime");
6041
+ var import_jsx_runtime62 = require("react/jsx-runtime");
6042
6042
  var TooltipProvider = TooltipPrimitive.Provider;
6043
6043
  var Tooltip = TooltipPrimitive.Root;
6044
6044
  var TooltipTrigger = TooltipPrimitive.Trigger;
6045
6045
  var TooltipArrow = TooltipPrimitive.Arrow;
6046
- var TooltipContent = React55.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(TooltipPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
6046
+ var TooltipContent = React56.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(TooltipPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
6047
6047
  TooltipPrimitive.Content,
6048
6048
  {
6049
6049
  className: cn(
@@ -6058,12 +6058,12 @@ var TooltipContent = React55.forwardRef(({ className, sideOffset = 4, ...props }
6058
6058
  TooltipContent.displayName = TooltipPrimitive.Content.displayName;
6059
6059
 
6060
6060
  // src/components/AdsTooltip/index.tsx
6061
- var import_jsx_runtime62 = require("react/jsx-runtime");
6061
+ var import_jsx_runtime63 = require("react/jsx-runtime");
6062
6062
  var tooltipContentClassName = "z-50 rounded-[6px] border-0 bg-[#844fff] px-3 py-2 text-sm font-normal leading-5 text-[#fdfdfd] shadow-[0px_8px_24px_rgba(0,0,0,0.22)]";
6063
6063
  var AdsTooltipProvider = TooltipProvider;
6064
6064
  var AdsTooltip = Tooltip;
6065
6065
  var AdsTooltipTrigger = TooltipTrigger;
6066
- var AdsTooltipContent = React56.forwardRef(({ align = "center", className, sideOffset = 10, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
6066
+ var AdsTooltipContent = React57.forwardRef(({ align = "center", className, sideOffset = 10, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
6067
6067
  TooltipContent,
6068
6068
  {
6069
6069
  align,
@@ -6074,7 +6074,7 @@ var AdsTooltipContent = React56.forwardRef(({ align = "center", className, sideO
6074
6074
  }
6075
6075
  ));
6076
6076
  AdsTooltipContent.displayName = "AdsTooltipContent";
6077
- var AdsTooltipArrow = React56.forwardRef(({ className, height = 5, width = 10, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
6077
+ var AdsTooltipArrow = React57.forwardRef(({ className, height = 5, width = 10, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
6078
6078
  TooltipArrow,
6079
6079
  {
6080
6080
  className: cn("fill-[#844fff]", className),
@@ -6087,16 +6087,16 @@ var AdsTooltipArrow = React56.forwardRef(({ className, height = 5, width = 10, .
6087
6087
  AdsTooltipArrow.displayName = "AdsTooltipArrow";
6088
6088
 
6089
6089
  // src/components/AdsToast/index.tsx
6090
- var React57 = __toESM(require("react"), 1);
6091
- var import_lucide_react18 = require("lucide-react");
6090
+ var React58 = __toESM(require("react"), 1);
6091
+ var import_lucide_react16 = require("lucide-react");
6092
6092
  var import_sonner = require("sonner");
6093
- var import_jsx_runtime63 = require("react/jsx-runtime");
6093
+ var import_jsx_runtime64 = require("react/jsx-runtime");
6094
6094
  var adsToastIconMap = {
6095
- success: import_lucide_react18.CircleCheck,
6096
- info: import_lucide_react18.Info,
6097
- warning: import_lucide_react18.TriangleAlert,
6098
- error: import_lucide_react18.OctagonX,
6099
- loading: import_lucide_react18.LoaderCircle
6095
+ success: import_lucide_react16.CircleCheck,
6096
+ info: import_lucide_react16.Info,
6097
+ warning: import_lucide_react16.TriangleAlert,
6098
+ error: import_lucide_react16.OctagonX,
6099
+ loading: import_lucide_react16.LoaderCircle
6100
6100
  };
6101
6101
  function resolveToastIcon(intent, icon) {
6102
6102
  if (icon) {
@@ -6106,7 +6106,7 @@ function resolveToastIcon(intent, icon) {
6106
6106
  return null;
6107
6107
  }
6108
6108
  const Icon2 = adsToastIconMap[intent];
6109
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
6109
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6110
6110
  Icon2,
6111
6111
  {
6112
6112
  "aria-hidden": true,
@@ -6119,7 +6119,7 @@ function resolveToastIcon(intent, icon) {
6119
6119
  }
6120
6120
  );
6121
6121
  }
6122
- var AdsToast = React57.forwardRef(
6122
+ var AdsToast = React58.forwardRef(
6123
6123
  ({
6124
6124
  action,
6125
6125
  className,
@@ -6130,7 +6130,7 @@ var AdsToast = React57.forwardRef(
6130
6130
  ...props
6131
6131
  }, ref) => {
6132
6132
  const resolvedIcon = resolveToastIcon(intent, icon);
6133
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
6133
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
6134
6134
  "div",
6135
6135
  {
6136
6136
  className: cn(
@@ -6145,8 +6145,8 @@ var AdsToast = React57.forwardRef(
6145
6145
  ...props,
6146
6146
  children: [
6147
6147
  resolvedIcon,
6148
- /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
6149
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
6148
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
6149
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6150
6150
  "p",
6151
6151
  {
6152
6152
  className: cn(
@@ -6156,7 +6156,7 @@ var AdsToast = React57.forwardRef(
6156
6156
  children: title
6157
6157
  }
6158
6158
  ),
6159
- description ? /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
6159
+ description ? /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6160
6160
  "p",
6161
6161
  {
6162
6162
  className: cn(
@@ -6167,7 +6167,7 @@ var AdsToast = React57.forwardRef(
6167
6167
  }
6168
6168
  ) : null
6169
6169
  ] }),
6170
- action ? /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
6170
+ action ? /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6171
6171
  AdsButton,
6172
6172
  {
6173
6173
  className: "shrink-0 rounded-radius-lg",
@@ -6193,7 +6193,7 @@ function AdsToaster({
6193
6193
  ...props
6194
6194
  }) {
6195
6195
  const { messages } = useAdsI18n();
6196
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
6196
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6197
6197
  import_sonner.Toaster,
6198
6198
  {
6199
6199
  closeButton: false,
@@ -6211,7 +6211,7 @@ function AdsToaster({
6211
6211
  );
6212
6212
  }
6213
6213
  function toStageNode(intent, title, options) {
6214
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
6214
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6215
6215
  AdsToast,
6216
6216
  {
6217
6217
  action: options?.action,
@@ -6225,7 +6225,7 @@ function toStageNode(intent, title, options) {
6225
6225
  function showAdsToast(intent, title, options) {
6226
6226
  const { action, description, icon, ...toastOptions } = options ?? {};
6227
6227
  return import_sonner.toast.custom(
6228
- (id) => /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
6228
+ (id) => /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6229
6229
  AdsToast,
6230
6230
  {
6231
6231
  action: action ? {
@@ -6279,17 +6279,17 @@ var AdsToastManager = Object.assign(
6279
6279
  );
6280
6280
 
6281
6281
  // src/components/AdsDialog/index.tsx
6282
- var React58 = __toESM(require("react"), 1);
6282
+ var React59 = __toESM(require("react"), 1);
6283
6283
  var DialogPrimitive = __toESM(require("@radix-ui/react-dialog"), 1);
6284
- var import_lucide_react19 = require("lucide-react");
6285
- var import_jsx_runtime64 = require("react/jsx-runtime");
6284
+ var import_lucide_react17 = require("lucide-react");
6285
+ var import_jsx_runtime65 = require("react/jsx-runtime");
6286
6286
  var overlayClassName2 = "fixed inset-0 z-50 bg-black/80 backdrop-blur-[2px] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0";
6287
6287
  var contentClassName2 = "fixed left-1/2 top-1/2 z-50 grid w-[calc(100%-2rem)] max-w-[423px] -translate-x-1/2 -translate-y-1/2 gap-lg rounded-radius-md border border-border bg-card p-xl shadow-[0px_4px_6px_-4px_rgba(0,0,0,0.1),0px_10px_15px_-3px_rgba(0,0,0,0.1)] duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]";
6288
6288
  var closeButtonClassName = "absolute right-xl top-xl inline-flex h-6 w-6 items-center justify-center rounded-sm opacity-80 transition-opacity hover:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-card disabled:pointer-events-none";
6289
6289
  var Dialog = DialogPrimitive.Root;
6290
6290
  var DialogTrigger = DialogPrimitive.Trigger;
6291
6291
  var DialogPortal = DialogPrimitive.Portal;
6292
- var DialogOverlay = React58.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6292
+ var DialogOverlay = React59.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6293
6293
  DialogPrimitive.Overlay,
6294
6294
  {
6295
6295
  className: cn(overlayClassName2, className),
@@ -6298,7 +6298,7 @@ var DialogOverlay = React58.forwardRef(({ className, ...props }, ref) => /* @__P
6298
6298
  }
6299
6299
  ));
6300
6300
  DialogOverlay.displayName = "DialogOverlay";
6301
- var DialogClose = React58.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6301
+ var DialogClose = React59.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6302
6302
  DialogPrimitive.Close,
6303
6303
  {
6304
6304
  className: cn(
@@ -6310,13 +6310,13 @@ var DialogClose = React58.forwardRef(({ className, ...props }, ref) => /* @__PUR
6310
6310
  }
6311
6311
  ));
6312
6312
  DialogClose.displayName = "DialogClose";
6313
- var DialogContent = React58.forwardRef(
6313
+ var DialogContent = React59.forwardRef(
6314
6314
  ({ children, className, closeLabel, hideCloseButton = false, ...props }, ref) => {
6315
6315
  const { messages } = useAdsI18n();
6316
6316
  const resolvedCloseLabel = closeLabel ?? messages.dialog.close;
6317
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(DialogPortal, { children: [
6318
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(DialogOverlay, {}),
6319
- /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
6317
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(DialogPortal, { children: [
6318
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(DialogOverlay, {}),
6319
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
6320
6320
  DialogPrimitive.Content,
6321
6321
  {
6322
6322
  className: cn(
@@ -6328,14 +6328,14 @@ var DialogContent = React58.forwardRef(
6328
6328
  ...props,
6329
6329
  children: [
6330
6330
  children,
6331
- !hideCloseButton ? /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
6331
+ !hideCloseButton ? /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
6332
6332
  DialogPrimitive.Close,
6333
6333
  {
6334
6334
  "aria-label": resolvedCloseLabel,
6335
6335
  className: cn(closeButtonClassName, adsTextColorClassName.card),
6336
6336
  children: [
6337
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_lucide_react19.X, { "aria-hidden": true, className: "h-4 w-4" }),
6338
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: "sr-only", children: resolvedCloseLabel })
6337
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_lucide_react17.X, { "aria-hidden": true, className: "h-4 w-4" }),
6338
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { className: "sr-only", children: resolvedCloseLabel })
6339
6339
  ]
6340
6340
  }
6341
6341
  ) : null
@@ -6346,8 +6346,8 @@ var DialogContent = React58.forwardRef(
6346
6346
  }
6347
6347
  );
6348
6348
  DialogContent.displayName = "DialogContent";
6349
- var DialogHeader = React58.forwardRef(
6350
- ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6349
+ var DialogHeader = React59.forwardRef(
6350
+ ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6351
6351
  "div",
6352
6352
  {
6353
6353
  className: cn("flex flex-col gap-sm pr-8 text-left", className),
@@ -6357,8 +6357,8 @@ var DialogHeader = React58.forwardRef(
6357
6357
  )
6358
6358
  );
6359
6359
  DialogHeader.displayName = "DialogHeader";
6360
- var DialogFooter = React58.forwardRef(
6361
- ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6360
+ var DialogFooter = React59.forwardRef(
6361
+ ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6362
6362
  "div",
6363
6363
  {
6364
6364
  className: cn(
@@ -6371,7 +6371,7 @@ var DialogFooter = React58.forwardRef(
6371
6371
  )
6372
6372
  );
6373
6373
  DialogFooter.displayName = "DialogFooter";
6374
- var DialogTitle = React58.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6374
+ var DialogTitle = React59.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6375
6375
  DialogPrimitive.Title,
6376
6376
  {
6377
6377
  className: cn(
@@ -6384,7 +6384,7 @@ var DialogTitle = React58.forwardRef(({ className, ...props }, ref) => /* @__PUR
6384
6384
  }
6385
6385
  ));
6386
6386
  DialogTitle.displayName = "DialogTitle";
6387
- var DialogDescription = React58.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6387
+ var DialogDescription = React59.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6388
6388
  DialogPrimitive.Description,
6389
6389
  {
6390
6390
  className: cn("text-sm leading-5", adsTextColorClassName.muted, className),
@@ -6406,7 +6406,7 @@ var AdsDialogDescription = DialogDescription;
6406
6406
 
6407
6407
  // src/components/AdsMasonry/index.tsx
6408
6408
  var import_masonic = require("masonic");
6409
- var import_jsx_runtime65 = require("react/jsx-runtime");
6409
+ var import_jsx_runtime66 = require("react/jsx-runtime");
6410
6410
  var DEFAULT_COLUMN_WIDTH = 240;
6411
6411
  var DEFAULT_GAP = 16;
6412
6412
  var DEFAULT_ITEM_HEIGHT_ESTIMATE = 280;
@@ -6440,7 +6440,7 @@ function AdsMasonry({
6440
6440
  { length: loadingItemCount },
6441
6441
  (_, index) => index
6442
6442
  );
6443
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6443
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6444
6444
  "div",
6445
6445
  {
6446
6446
  className: cn(
@@ -6448,7 +6448,7 @@ function AdsMasonry({
6448
6448
  rootClassName
6449
6449
  ),
6450
6450
  "data-slot": "ads-masonry",
6451
- children: skeletonItems.map((index) => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6451
+ children: skeletonItems.map((index) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6452
6452
  AdsSkeleton,
6453
6453
  {
6454
6454
  className: cn("w-full rounded-radius-lg", classNames?.skeleton),
@@ -6464,7 +6464,7 @@ function AdsMasonry({
6464
6464
  );
6465
6465
  }
6466
6466
  if (items.length === 0) {
6467
- return emptyState ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6467
+ return emptyState ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6468
6468
  "div",
6469
6469
  {
6470
6470
  className: cn(rootClassName, classNames?.empty),
@@ -6473,7 +6473,7 @@ function AdsMasonry({
6473
6473
  }
6474
6474
  ) : null;
6475
6475
  }
6476
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6476
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6477
6477
  import_masonic.Masonry,
6478
6478
  {
6479
6479
  className: rootClassName,
@@ -6485,7 +6485,7 @@ function AdsMasonry({
6485
6485
  maxColumnCount,
6486
6486
  onRender,
6487
6487
  overscanBy,
6488
- render: ({ data, index, width }) => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6488
+ render: ({ data, index, width }) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6489
6489
  "div",
6490
6490
  {
6491
6491
  className: cn("pb-0", classNames?.item, itemClassName),