@adsgency_npm/adsgency-ads-ui 0.1.0-alpha.16 → 0.1.0-alpha.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1824,7 +1824,7 @@ var AdsCheckbox = React17.forwardRef(({ checkboxClassName, className, descriptio
1824
1824
  AdsCheckbox.displayName = "AdsCheckbox";
1825
1825
 
1826
1826
  // src/components/AdsCalendar/index.tsx
1827
- var React23 = __toESM(require("react"), 1);
1827
+ var React24 = __toESM(require("react"), 1);
1828
1828
  var import_date_fns = require("date-fns");
1829
1829
  var import_lucide_react8 = require("lucide-react");
1830
1830
 
@@ -1850,36 +1850,191 @@ var Input = React18.forwardRef(
1850
1850
  Input.displayName = "Input";
1851
1851
 
1852
1852
  // src/components/AdsPopover/index.tsx
1853
- var React20 = __toESM(require("react"), 1);
1853
+ var React21 = __toESM(require("react"), 1);
1854
1854
 
1855
1855
  // src/primitives/popover.tsx
1856
- var React19 = __toESM(require("react"), 1);
1856
+ var React20 = __toESM(require("react"), 1);
1857
1857
  var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"), 1);
1858
+
1859
+ // src/lib/nestedDismissableLayer.tsx
1860
+ var React19 = __toESM(require("react"), 1);
1858
1861
  var import_jsx_runtime21 = require("react/jsx-runtime");
1862
+ var NestedDismissableLayerContext = React19.createContext(null);
1863
+ function useNestedDismissableLayerCoordinator() {
1864
+ const activeLayersRef = React19.useRef(/* @__PURE__ */ new Map());
1865
+ const pointerInteractionHadNestedLayerRef = React19.useRef(false);
1866
+ const registerNestedLayer = React19.useCallback(
1867
+ (id, dismiss) => {
1868
+ const activeLayers = activeLayersRef.current;
1869
+ activeLayers.delete(id);
1870
+ activeLayers.set(id, dismiss);
1871
+ return () => {
1872
+ if (activeLayers.get(id) === dismiss) {
1873
+ activeLayers.delete(id);
1874
+ }
1875
+ };
1876
+ },
1877
+ []
1878
+ );
1879
+ const hasActiveNestedLayer = React19.useCallback(
1880
+ () => activeLayersRef.current.size > 0,
1881
+ []
1882
+ );
1883
+ const hadActiveNestedLayerAtPointerDown = React19.useCallback(
1884
+ () => pointerInteractionHadNestedLayerRef.current,
1885
+ []
1886
+ );
1887
+ const dismissTopNestedLayer = React19.useCallback(() => {
1888
+ const activeLayers = [...activeLayersRef.current.values()];
1889
+ activeLayers.at(-1)?.();
1890
+ }, []);
1891
+ React19.useEffect(() => {
1892
+ const ownerDocument = globalThis.document;
1893
+ if (!ownerDocument) return;
1894
+ const handlePointerDown = () => {
1895
+ pointerInteractionHadNestedLayerRef.current = activeLayersRef.current.size > 0;
1896
+ };
1897
+ const handleClick = () => {
1898
+ queueMicrotask(() => {
1899
+ pointerInteractionHadNestedLayerRef.current = false;
1900
+ });
1901
+ };
1902
+ const handlePointerCancel = () => {
1903
+ pointerInteractionHadNestedLayerRef.current = false;
1904
+ };
1905
+ ownerDocument.addEventListener("pointerdown", handlePointerDown, true);
1906
+ ownerDocument.addEventListener("click", handleClick);
1907
+ ownerDocument.addEventListener("pointercancel", handlePointerCancel);
1908
+ return () => {
1909
+ ownerDocument.removeEventListener("pointerdown", handlePointerDown, true);
1910
+ ownerDocument.removeEventListener("click", handleClick);
1911
+ ownerDocument.removeEventListener("pointercancel", handlePointerCancel);
1912
+ };
1913
+ }, []);
1914
+ return React19.useMemo(
1915
+ () => ({
1916
+ dismissTopNestedLayer,
1917
+ hasActiveNestedLayer,
1918
+ hadActiveNestedLayerAtPointerDown,
1919
+ registerNestedLayer
1920
+ }),
1921
+ [
1922
+ dismissTopNestedLayer,
1923
+ hadActiveNestedLayerAtPointerDown,
1924
+ hasActiveNestedLayer,
1925
+ registerNestedLayer
1926
+ ]
1927
+ );
1928
+ }
1929
+ function NestedDismissableLayerProvider({
1930
+ children,
1931
+ coordinator
1932
+ }) {
1933
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(NestedDismissableLayerContext.Provider, { value: coordinator, children });
1934
+ }
1935
+ function useNestedDismissableLayer(active, dismiss) {
1936
+ const coordinator = React19.useContext(NestedDismissableLayerContext);
1937
+ const idRef = React19.useRef(/* @__PURE__ */ Symbol("ads-nested-dismissable-layer"));
1938
+ React19.useEffect(() => {
1939
+ if (!active || !coordinator) return;
1940
+ return coordinator.registerNestedLayer(idRef.current, dismiss);
1941
+ }, [active, coordinator, dismiss]);
1942
+ }
1943
+
1944
+ // src/primitives/popover.tsx
1945
+ var import_jsx_runtime22 = require("react/jsx-runtime");
1859
1946
  var Popover = PopoverPrimitive.Root;
1860
1947
  var PopoverTrigger = PopoverPrimitive.Trigger;
1861
- var PopoverContent = React19.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(PopoverPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1862
- PopoverPrimitive.Content,
1863
- {
1864
- ref,
1865
- align,
1866
- sideOffset,
1867
- className: cn(
1868
- "z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin]",
1869
- className
1870
- ),
1948
+ var PopoverContentImpl = React20.forwardRef(
1949
+ ({
1950
+ className,
1951
+ align = "center",
1952
+ onEscapeKeyDown,
1953
+ onFocusOutside,
1954
+ onPointerDownOutside,
1955
+ sideOffset = 4,
1871
1956
  ...props
1957
+ }, ref) => {
1958
+ const coordinator = useNestedDismissableLayerCoordinator();
1959
+ const shieldNextFocusOutsideRef = React20.useRef(false);
1960
+ const handlePointerDownOutside = React20.useCallback(
1961
+ (event) => {
1962
+ onPointerDownOutside?.(event);
1963
+ if (event.defaultPrevented) return;
1964
+ const hasActiveNestedLayer = coordinator.hasActiveNestedLayer();
1965
+ const shouldShieldParent = hasActiveNestedLayer || coordinator.hadActiveNestedLayerAtPointerDown();
1966
+ if (!shouldShieldParent) {
1967
+ shieldNextFocusOutsideRef.current = false;
1968
+ return;
1969
+ }
1970
+ shieldNextFocusOutsideRef.current = true;
1971
+ if (hasActiveNestedLayer) {
1972
+ coordinator.dismissTopNestedLayer();
1973
+ }
1974
+ event.preventDefault();
1975
+ },
1976
+ [coordinator, onPointerDownOutside]
1977
+ );
1978
+ const handleFocusOutside = React20.useCallback(
1979
+ (event) => {
1980
+ onFocusOutside?.(event);
1981
+ if (event.defaultPrevented) return;
1982
+ const followsShieldedPointer = shieldNextFocusOutsideRef.current;
1983
+ shieldNextFocusOutsideRef.current = false;
1984
+ if (followsShieldedPointer) {
1985
+ event.preventDefault();
1986
+ return;
1987
+ }
1988
+ const hasActiveNestedLayer = coordinator.hasActiveNestedLayer();
1989
+ const shouldShieldParent = hasActiveNestedLayer || coordinator.hadActiveNestedLayerAtPointerDown();
1990
+ if (!shouldShieldParent) return;
1991
+ if (hasActiveNestedLayer) {
1992
+ coordinator.dismissTopNestedLayer();
1993
+ }
1994
+ event.preventDefault();
1995
+ },
1996
+ [coordinator, onFocusOutside]
1997
+ );
1998
+ const handleEscapeKeyDown = React20.useCallback(
1999
+ (event) => {
2000
+ onEscapeKeyDown?.(event);
2001
+ if (event.defaultPrevented || !coordinator.hasActiveNestedLayer()) {
2002
+ return;
2003
+ }
2004
+ coordinator.dismissTopNestedLayer();
2005
+ event.preventDefault();
2006
+ },
2007
+ [coordinator, onEscapeKeyDown]
2008
+ );
2009
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(NestedDismissableLayerProvider, { coordinator, children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2010
+ PopoverPrimitive.Content,
2011
+ {
2012
+ ref,
2013
+ align,
2014
+ sideOffset,
2015
+ className: cn(
2016
+ "z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin]",
2017
+ className
2018
+ ),
2019
+ onEscapeKeyDown: handleEscapeKeyDown,
2020
+ onFocusOutside: handleFocusOutside,
2021
+ onPointerDownOutside: handlePointerDownOutside,
2022
+ ...props
2023
+ }
2024
+ ) });
1872
2025
  }
1873
- ) }));
2026
+ );
2027
+ PopoverContentImpl.displayName = "PopoverContentImpl";
2028
+ var PopoverContent = React20.forwardRef((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(PopoverPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(PopoverContentImpl, { ...props, ref }) }));
1874
2029
  PopoverContent.displayName = PopoverPrimitive.Content.displayName;
1875
2030
 
1876
2031
  // src/components/AdsPopover/index.tsx
1877
- var import_jsx_runtime22 = require("react/jsx-runtime");
2032
+ var import_jsx_runtime23 = require("react/jsx-runtime");
1878
2033
  var popoverContentClassName = "z-50 w-[320px] rounded-radius-lg border border-border bg-popover p-lg text-popover-foreground shadow-[0px_2px_4px_-2px_rgba(0,0,0,0.1),0px_4px_6px_-1px_rgba(0,0,0,0.1)] outline-none 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin]";
1879
2034
  var AdsPopover = Popover;
1880
2035
  var AdsPopoverTrigger = PopoverTrigger;
1881
- var AdsPopoverContent = React20.forwardRef(
1882
- ({ align = "center", className, inset = false, sideOffset = 8, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2036
+ var AdsPopoverContent = React21.forwardRef(
2037
+ ({ align = "center", className, inset = false, sideOffset = 8, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1883
2038
  PopoverContent,
1884
2039
  {
1885
2040
  align,
@@ -1895,10 +2050,10 @@ var AdsPopoverContent = React20.forwardRef(
1895
2050
  )
1896
2051
  );
1897
2052
  AdsPopoverContent.displayName = "AdsPopoverContent";
1898
- var AdsPopoverHeader = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: cn("flex flex-col gap-sm", className), ref, ...props }));
2053
+ var AdsPopoverHeader = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: cn("flex flex-col gap-sm", className), ref, ...props }));
1899
2054
  AdsPopoverHeader.displayName = "AdsPopoverHeader";
1900
- var AdsPopoverBody = React20.forwardRef(
1901
- ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2055
+ var AdsPopoverBody = React21.forwardRef(
2056
+ ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1902
2057
  "div",
1903
2058
  {
1904
2059
  className: cn("mt-md flex flex-col gap-md", className),
@@ -1908,7 +2063,7 @@ var AdsPopoverBody = React20.forwardRef(
1908
2063
  )
1909
2064
  );
1910
2065
  AdsPopoverBody.displayName = "AdsPopoverBody";
1911
- var AdsPopoverTitle = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2066
+ var AdsPopoverTitle = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1912
2067
  "h4",
1913
2068
  {
1914
2069
  className: cn(
@@ -1921,7 +2076,7 @@ var AdsPopoverTitle = React20.forwardRef(({ className, ...props }, ref) => /* @_
1921
2076
  }
1922
2077
  ));
1923
2078
  AdsPopoverTitle.displayName = "AdsPopoverTitle";
1924
- var AdsPopoverDescription = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2079
+ var AdsPopoverDescription = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1925
2080
  "p",
1926
2081
  {
1927
2082
  className: cn("text-sm leading-5", adsTextColorClassName.muted, className),
@@ -1932,21 +2087,55 @@ var AdsPopoverDescription = React20.forwardRef(({ className, ...props }, ref) =>
1932
2087
  AdsPopoverDescription.displayName = "AdsPopoverDescription";
1933
2088
 
1934
2089
  // src/primitives/calendar.tsx
1935
- var React22 = __toESM(require("react"), 1);
2090
+ var React23 = __toESM(require("react"), 1);
1936
2091
  var import_react2 = require("@daypicker/react");
1937
2092
  var import_hijri = require("@daypicker/hijri");
1938
2093
  var import_persian = require("@daypicker/persian");
1939
2094
 
1940
2095
  // src/primitives/select.tsx
1941
- var React21 = __toESM(require("react"), 1);
2096
+ var React22 = __toESM(require("react"), 1);
1942
2097
  var DismissableLayerPrimitive = __toESM(require("@radix-ui/react-dismissable-layer"), 1);
1943
2098
  var SelectPrimitive = __toESM(require("@radix-ui/react-select"), 1);
1944
2099
  var import_lucide_react7 = require("lucide-react");
1945
- var import_jsx_runtime23 = require("react/jsx-runtime");
1946
- var Select = SelectPrimitive.Root;
2100
+ var import_jsx_runtime24 = require("react/jsx-runtime");
2101
+ function Select({
2102
+ defaultOpen,
2103
+ onOpenChange,
2104
+ open: openProp,
2105
+ ...props
2106
+ }) {
2107
+ const isControlled = openProp !== void 0;
2108
+ const [uncontrolledOpen, setUncontrolledOpen] = React22.useState(
2109
+ defaultOpen ?? false
2110
+ );
2111
+ const resolvedOpen = isControlled ? openProp : uncontrolledOpen;
2112
+ const handleOpenChange = React22.useCallback(
2113
+ (nextOpen) => {
2114
+ if (!isControlled) {
2115
+ setUncontrolledOpen(nextOpen);
2116
+ }
2117
+ onOpenChange?.(nextOpen);
2118
+ },
2119
+ [isControlled, onOpenChange]
2120
+ );
2121
+ const handleNestedDismiss = React22.useCallback(() => {
2122
+ handleOpenChange(false);
2123
+ }, [handleOpenChange]);
2124
+ useNestedDismissableLayer(resolvedOpen, handleNestedDismiss);
2125
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2126
+ SelectPrimitive.Root,
2127
+ {
2128
+ ...props,
2129
+ defaultOpen,
2130
+ onOpenChange: handleOpenChange,
2131
+ open: openProp
2132
+ }
2133
+ );
2134
+ }
2135
+ Select.displayName = SelectPrimitive.Root.displayName;
1947
2136
  var SelectGroup = SelectPrimitive.Group;
1948
2137
  var SelectValue = SelectPrimitive.Value;
1949
- var SelectTrigger = React21.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
2138
+ var SelectTrigger = React22.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
1950
2139
  SelectPrimitive.Trigger,
1951
2140
  {
1952
2141
  ref,
@@ -1957,12 +2146,12 @@ var SelectTrigger = React21.forwardRef(({ className, children, ...props }, ref)
1957
2146
  ...props,
1958
2147
  children: [
1959
2148
  children,
1960
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react7.ChevronDown, { className: "h-4 w-4 opacity-50" }) })
2149
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_lucide_react7.ChevronDown, { className: "h-4 w-4 opacity-50" }) })
1961
2150
  ]
1962
2151
  }
1963
2152
  ));
1964
2153
  SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
1965
- var SelectScrollUpButton = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2154
+ var SelectScrollUpButton = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1966
2155
  SelectPrimitive.ScrollUpButton,
1967
2156
  {
1968
2157
  ref,
@@ -1971,11 +2160,11 @@ var SelectScrollUpButton = React21.forwardRef(({ className, ...props }, ref) =>
1971
2160
  className
1972
2161
  ),
1973
2162
  ...props,
1974
- children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react7.ChevronUp, { className: "h-4 w-4" })
2163
+ children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_lucide_react7.ChevronUp, { className: "h-4 w-4" })
1975
2164
  }
1976
2165
  ));
1977
2166
  SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
1978
- var SelectScrollDownButton = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2167
+ var SelectScrollDownButton = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1979
2168
  SelectPrimitive.ScrollDownButton,
1980
2169
  {
1981
2170
  ref,
@@ -1984,11 +2173,11 @@ var SelectScrollDownButton = React21.forwardRef(({ className, ...props }, ref) =
1984
2173
  className
1985
2174
  ),
1986
2175
  ...props,
1987
- children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react7.ChevronDown, { className: "h-4 w-4" })
2176
+ children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_lucide_react7.ChevronDown, { className: "h-4 w-4" })
1988
2177
  }
1989
2178
  ));
1990
2179
  SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
1991
- var SelectContent = React21.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(SelectPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(DismissableLayerPrimitive.Branch, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
2180
+ var SelectContent = React22.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(SelectPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(DismissableLayerPrimitive.Branch, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
1992
2181
  SelectPrimitive.Content,
1993
2182
  {
1994
2183
  ref,
@@ -2000,8 +2189,8 @@ var SelectContent = React21.forwardRef(({ className, children, position = "poppe
2000
2189
  position,
2001
2190
  ...props,
2002
2191
  children: [
2003
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(SelectScrollUpButton, {}),
2004
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2192
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(SelectScrollUpButton, {}),
2193
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2005
2194
  SelectPrimitive.Viewport,
2006
2195
  {
2007
2196
  className: cn(
@@ -2011,12 +2200,12 @@ var SelectContent = React21.forwardRef(({ className, children, position = "poppe
2011
2200
  children
2012
2201
  }
2013
2202
  ),
2014
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(SelectScrollDownButton, {})
2203
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(SelectScrollDownButton, {})
2015
2204
  ]
2016
2205
  }
2017
2206
  ) }) }));
2018
2207
  SelectContent.displayName = SelectPrimitive.Content.displayName;
2019
- var SelectLabel = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2208
+ var SelectLabel = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2020
2209
  SelectPrimitive.Label,
2021
2210
  {
2022
2211
  ref,
@@ -2025,7 +2214,7 @@ var SelectLabel = React21.forwardRef(({ className, ...props }, ref) => /* @__PUR
2025
2214
  }
2026
2215
  ));
2027
2216
  SelectLabel.displayName = SelectPrimitive.Label.displayName;
2028
- var SelectItem = React21.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
2217
+ var SelectItem = React22.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
2029
2218
  SelectPrimitive.Item,
2030
2219
  {
2031
2220
  ref,
@@ -2035,13 +2224,13 @@ var SelectItem = React21.forwardRef(({ className, children, ...props }, ref) =>
2035
2224
  ),
2036
2225
  ...props,
2037
2226
  children: [
2038
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react7.Check, { className: "h-4 w-4" }) }) }),
2039
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(SelectPrimitive.ItemText, { children })
2227
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_lucide_react7.Check, { className: "h-4 w-4" }) }) }),
2228
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(SelectPrimitive.ItemText, { children })
2040
2229
  ]
2041
2230
  }
2042
2231
  ));
2043
2232
  SelectItem.displayName = SelectPrimitive.Item.displayName;
2044
- var SelectSeparator = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2233
+ var SelectSeparator = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2045
2234
  SelectPrimitive.Separator,
2046
2235
  {
2047
2236
  ref,
@@ -2052,7 +2241,7 @@ var SelectSeparator = React21.forwardRef(({ className, ...props }, ref) => /* @_
2052
2241
  SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
2053
2242
 
2054
2243
  // src/primitives/calendar.tsx
2055
- var import_jsx_runtime24 = require("react/jsx-runtime");
2244
+ var import_jsx_runtime25 = require("react/jsx-runtime");
2056
2245
  var cellSizeClasses = {
2057
2246
  md: {
2058
2247
  cell: "size-8",
@@ -2121,13 +2310,13 @@ function CalendarDropdown({
2121
2310
  }) {
2122
2311
  const { classNames, styles } = (0, import_react2.useDayPicker)();
2123
2312
  const selectedValue = value?.toString();
2124
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2313
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2125
2314
  "span",
2126
2315
  {
2127
2316
  className: classNames[import_react2.UI.DropdownRoot],
2128
2317
  "data-disabled": disabled,
2129
2318
  style: styles?.[import_react2.UI.DropdownRoot],
2130
- children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
2319
+ children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
2131
2320
  Select,
2132
2321
  {
2133
2322
  disabled,
@@ -2138,7 +2327,7 @@ function CalendarDropdown({
2138
2327
  },
2139
2328
  value: selectedValue,
2140
2329
  children: [
2141
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2330
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2142
2331
  SelectTrigger,
2143
2332
  {
2144
2333
  "aria-label": ariaLabel,
@@ -2148,10 +2337,10 @@ function CalendarDropdown({
2148
2337
  className
2149
2338
  ),
2150
2339
  style,
2151
- children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(SelectValue, {})
2340
+ children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(SelectValue, {})
2152
2341
  }
2153
2342
  ),
2154
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(SelectContent, { className: "rounded-radius-md border-border bg-popover text-popover-foreground shadow-[0px_8px_24px_rgba(0,0,0,0.22)]", children: options?.map((option) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2343
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(SelectContent, { className: "rounded-radius-md border-border bg-popover text-popover-foreground shadow-[0px_8px_24px_rgba(0,0,0,0.22)]", children: options?.map((option) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2155
2344
  SelectItem,
2156
2345
  {
2157
2346
  disabled: option.disabled,
@@ -2166,7 +2355,7 @@ function CalendarDropdown({
2166
2355
  }
2167
2356
  );
2168
2357
  }
2169
- var Calendar = React22.forwardRef(
2358
+ var Calendar = React23.forwardRef(
2170
2359
  ({
2171
2360
  captionLayout,
2172
2361
  calendarSystem = "gregorian",
@@ -2178,7 +2367,7 @@ var Calendar = React22.forwardRef(
2178
2367
  showOutsideDays = true,
2179
2368
  ...props
2180
2369
  }, ref) => {
2181
- const mergedClassNames = React22.useMemo(
2370
+ const mergedClassNames = React23.useMemo(
2182
2371
  () => ({
2183
2372
  ...getCalendarClassNames(cellSize, captionLayout?.startsWith("dropdown") ?? false),
2184
2373
  ...classNames
@@ -2199,7 +2388,7 @@ var Calendar = React22.forwardRef(
2199
2388
  showOutsideDays
2200
2389
  };
2201
2390
  if (calendarSystem === "persian") {
2202
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { ref, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2391
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { ref, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2203
2392
  import_persian.DayPicker,
2204
2393
  {
2205
2394
  ...sharedProps,
@@ -2210,7 +2399,7 @@ var Calendar = React22.forwardRef(
2210
2399
  ) });
2211
2400
  }
2212
2401
  if (calendarSystem === "hijri") {
2213
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { ref, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2402
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { ref, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2214
2403
  import_hijri.DayPicker,
2215
2404
  {
2216
2405
  ...sharedProps,
@@ -2220,13 +2409,13 @@ var Calendar = React22.forwardRef(
2220
2409
  }
2221
2410
  ) });
2222
2411
  }
2223
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { ref, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react2.DayPicker, { ...sharedProps }) });
2412
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { ref, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_react2.DayPicker, { ...sharedProps }) });
2224
2413
  }
2225
2414
  );
2226
2415
  Calendar.displayName = "Calendar";
2227
2416
 
2228
2417
  // src/components/AdsCalendar/index.tsx
2229
- var import_jsx_runtime25 = require("react/jsx-runtime");
2418
+ var import_jsx_runtime26 = require("react/jsx-runtime");
2230
2419
  var dateTriggerClassName = "flex h-9 w-full items-center justify-between gap-2 rounded-radius-md border border-border bg-card px-md py-2 text-left text-sm leading-5 text-foreground shadow-[0px_1px_2px_rgba(0,0,0,0.1)] transition-colors hover:border-border-focus focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-[rgba(161,161,161,0.5)] disabled:cursor-not-allowed disabled:opacity-50";
2231
2420
  var timeInputClassName = "flex h-9 w-full rounded-radius-md border border-border bg-card px-md py-2 text-center text-sm leading-5 text-foreground shadow-[0px_1px_2px_rgba(0,0,0,0.1)] focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-[rgba(161,161,161,0.5)]";
2232
2421
  function useControllableDate({
@@ -2234,12 +2423,12 @@ function useControllableDate({
2234
2423
  onSelect,
2235
2424
  selected
2236
2425
  }) {
2237
- const [internalSelected, setInternalSelected] = React23.useState(
2426
+ const [internalSelected, setInternalSelected] = React24.useState(
2238
2427
  defaultSelected
2239
2428
  );
2240
2429
  const isControlled = selected !== void 0;
2241
2430
  const value = isControlled ? selected : internalSelected;
2242
- const handleSelect = React23.useCallback(
2431
+ const handleSelect = React24.useCallback(
2243
2432
  (nextValue) => {
2244
2433
  if (!isControlled) {
2245
2434
  setInternalSelected(nextValue);
@@ -2256,11 +2445,11 @@ function getDateLabel(value, formatter) {
2256
2445
  }
2257
2446
  return formatter ? formatter(value) : (0, import_date_fns.format)(value, "MMM d, yyyy");
2258
2447
  }
2259
- var AdsCalendar = React23.forwardRef(
2260
- ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Calendar, { className: cn(className), ref, ...props })
2448
+ var AdsCalendar = React24.forwardRef(
2449
+ ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Calendar, { className: cn(className), ref, ...props })
2261
2450
  );
2262
2451
  AdsCalendar.displayName = "AdsCalendar";
2263
- var AdsDatePicker = React23.forwardRef(
2452
+ var AdsDatePicker = React24.forwardRef(
2264
2453
  ({
2265
2454
  className,
2266
2455
  defaultSelected,
@@ -2273,7 +2462,7 @@ var AdsDatePicker = React23.forwardRef(
2273
2462
  triggerClassName,
2274
2463
  ...calendarProps
2275
2464
  }, ref) => {
2276
- const [open, setOpen] = React23.useState(false);
2465
+ const [open, setOpen] = React24.useState(false);
2277
2466
  const [value, handleSelect] = useControllableDate({
2278
2467
  defaultSelected,
2279
2468
  onSelect,
@@ -2281,17 +2470,17 @@ var AdsDatePicker = React23.forwardRef(
2281
2470
  });
2282
2471
  const description = useAdsFieldDescription({ id });
2283
2472
  const labelText = getDateLabel(value, formatDateLabel) ?? placeholder;
2284
- const onCalendarSelect = React23.useCallback(
2473
+ const onCalendarSelect = React24.useCallback(
2285
2474
  (nextValue) => {
2286
2475
  handleSelect(nextValue);
2287
2476
  setOpen(false);
2288
2477
  },
2289
2478
  [handleSelect]
2290
2479
  );
2291
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(AdsFieldItem, { className: cn("gap-3", className), ref, children: [
2292
- label ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(AdsFieldLabel, { htmlFor: description.inputId, children: label }) : null,
2293
- /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(AdsPopover, { onOpenChange: setOpen, open, children: [
2294
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(AdsPopoverTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
2480
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(AdsFieldItem, { className: cn("gap-3", className), ref, children: [
2481
+ label ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(AdsFieldLabel, { htmlFor: description.inputId, children: label }) : null,
2482
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(AdsPopover, { onOpenChange: setOpen, open, children: [
2483
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(AdsPopoverTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
2295
2484
  Button,
2296
2485
  {
2297
2486
  "aria-label": labelText,
@@ -2304,12 +2493,12 @@ var AdsDatePicker = React23.forwardRef(
2304
2493
  id: description.inputId,
2305
2494
  type: "button",
2306
2495
  children: [
2307
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "truncate", children: labelText }),
2308
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_lucide_react8.ChevronDown, { "aria-hidden": true, className: "size-4 shrink-0 text-icon-muted" })
2496
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "truncate", children: labelText }),
2497
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_lucide_react8.ChevronDown, { "aria-hidden": true, className: "size-4 shrink-0 text-icon-muted" })
2309
2498
  ]
2310
2499
  }
2311
2500
  ) }),
2312
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(AdsPopoverContent, { className: "w-auto p-0", inset: true, sideOffset: 4, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2501
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(AdsPopoverContent, { className: "w-auto p-0", inset: true, sideOffset: 4, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2313
2502
  AdsCalendar,
2314
2503
  {
2315
2504
  ...calendarProps,
@@ -2323,18 +2512,18 @@ var AdsDatePicker = React23.forwardRef(
2323
2512
  }
2324
2513
  );
2325
2514
  AdsDatePicker.displayName = "AdsDatePicker";
2326
- var AdsDateTimePicker = React23.forwardRef(
2515
+ var AdsDateTimePicker = React24.forwardRef(
2327
2516
  ({
2328
2517
  className,
2329
2518
  timeLabel = "Time",
2330
2519
  timeValue = "",
2331
2520
  onTimeChange,
2332
2521
  ...props
2333
- }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: cn("flex flex-wrap items-start gap-4", className), ref, children: [
2334
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(AdsDatePicker, { className: "w-[min(100%,135px)]", ...props }),
2335
- /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(AdsFieldItem, { className: "w-[91px] gap-3", children: [
2336
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(AdsFieldLabel, { children: timeLabel }),
2337
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2522
+ }, ref) => /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: cn("flex flex-wrap items-start gap-4", className), ref, children: [
2523
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(AdsDatePicker, { className: "w-[min(100%,135px)]", ...props }),
2524
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(AdsFieldItem, { className: "w-[91px] gap-3", children: [
2525
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(AdsFieldLabel, { children: timeLabel }),
2526
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2338
2527
  Input,
2339
2528
  {
2340
2529
  className: timeInputClassName,
@@ -2350,13 +2539,13 @@ var AdsDateTimePicker = React23.forwardRef(
2350
2539
  AdsDateTimePicker.displayName = "AdsDateTimePicker";
2351
2540
 
2352
2541
  // src/components/AdsButtonGroup/index.tsx
2353
- var React24 = __toESM(require("react"), 1);
2542
+ var React25 = __toESM(require("react"), 1);
2354
2543
  var import_react_slot4 = require("@radix-ui/react-slot");
2355
2544
 
2356
2545
  // src/primitives/button-group.tsx
2357
2546
  var import_react_slot3 = require("@radix-ui/react-slot");
2358
2547
  var import_class_variance_authority8 = require("class-variance-authority");
2359
- var import_jsx_runtime26 = require("react/jsx-runtime");
2548
+ var import_jsx_runtime27 = require("react/jsx-runtime");
2360
2549
  var buttonGroupVariants = (0, import_class_variance_authority8.cva)(
2361
2550
  "flex w-fit items-stretch has-[>[data-slot=button-group]]:gap-2 [&>*]:focus-visible:relative [&>*]:focus-visible:z-10 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1",
2362
2551
  {
@@ -2376,7 +2565,7 @@ function ButtonGroupSeparator({
2376
2565
  orientation = "vertical",
2377
2566
  ...props
2378
2567
  }) {
2379
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2568
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
2380
2569
  Separator,
2381
2570
  {
2382
2571
  "data-slot": "button-group-separator",
@@ -2395,7 +2584,7 @@ function ButtonGroupSeparator({
2395
2584
  }
2396
2585
 
2397
2586
  // src/components/AdsButtonGroup/index.tsx
2398
- var import_jsx_runtime27 = require("react/jsx-runtime");
2587
+ var import_jsx_runtime28 = require("react/jsx-runtime");
2399
2588
  var buttonGroupPressClassName = "[&_button]:transition-[background-color,box-shadow,filter] [&_button]:active:translate-y-0 [&_button]:active:brightness-95";
2400
2589
  var segmentSizeClassName = {
2401
2590
  sm: "h-8 px-md text-sm",
@@ -2403,14 +2592,14 @@ var segmentSizeClassName = {
2403
2592
  lg: "h-10 px-xl text-base"
2404
2593
  };
2405
2594
  function isAdsButtonElement(child) {
2406
- return React24.isValidElement(child) && child.type === AdsButton;
2595
+ return React25.isValidElement(child) && child.type === AdsButton;
2407
2596
  }
2408
2597
  function enhanceChildren(children, attached, size, surface) {
2409
- return React24.Children.map(children, (child) => {
2598
+ return React25.Children.map(children, (child) => {
2410
2599
  if (!isAdsButtonElement(child)) {
2411
2600
  return child;
2412
2601
  }
2413
- return React24.cloneElement(child, {
2602
+ return React25.cloneElement(child, {
2414
2603
  className: cn(
2415
2604
  attached && "rounded-none shadow-none",
2416
2605
  attached && surface === "secondary" && "bg-secondary hover:bg-secondary/90",
@@ -2420,7 +2609,7 @@ function enhanceChildren(children, attached, size, surface) {
2420
2609
  });
2421
2610
  });
2422
2611
  }
2423
- var AdsButtonGroup = React24.forwardRef(
2612
+ var AdsButtonGroup = React25.forwardRef(
2424
2613
  ({
2425
2614
  attached = true,
2426
2615
  children,
@@ -2439,7 +2628,7 @@ var AdsButtonGroup = React24.forwardRef(
2439
2628
  buttonGroupVariants({ orientation }),
2440
2629
  surface === "pill" ? "rounded-full" : "rounded-radius-md"
2441
2630
  );
2442
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
2631
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
2443
2632
  "div",
2444
2633
  {
2445
2634
  "aria-orientation": orientation,
@@ -2481,7 +2670,7 @@ var inputSizeClassName = {
2481
2670
  md: "h-9 text-sm leading-5",
2482
2671
  lg: "h-10 text-base leading-6"
2483
2672
  };
2484
- var AdsButtonGroupText = React24.forwardRef(
2673
+ var AdsButtonGroupText = React25.forwardRef(
2485
2674
  ({
2486
2675
  align = "start",
2487
2676
  asChild = false,
@@ -2492,7 +2681,7 @@ var AdsButtonGroupText = React24.forwardRef(
2492
2681
  ...props
2493
2682
  }, ref) => {
2494
2683
  const Comp = asChild ? import_react_slot4.Slot : "div";
2495
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
2684
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
2496
2685
  Comp,
2497
2686
  {
2498
2687
  className: cn(
@@ -2512,7 +2701,7 @@ var AdsButtonGroupText = React24.forwardRef(
2512
2701
  }
2513
2702
  );
2514
2703
  AdsButtonGroupText.displayName = "AdsButtonGroupText";
2515
- var AdsButtonGroupInput = React24.forwardRef(({ className, size = "md", type = "text", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
2704
+ var AdsButtonGroupInput = React25.forwardRef(({ className, size = "md", type = "text", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
2516
2705
  Input,
2517
2706
  {
2518
2707
  className: cn(
@@ -2529,13 +2718,13 @@ AdsButtonGroupInput.displayName = "AdsButtonGroupInput";
2529
2718
  var AdsButtonGroupSeparator = ButtonGroupSeparator;
2530
2719
 
2531
2720
  // src/components/AdsSeparator/index.tsx
2532
- var React25 = __toESM(require("react"), 1);
2533
- var import_jsx_runtime28 = require("react/jsx-runtime");
2721
+ var React26 = __toESM(require("react"), 1);
2722
+ var import_jsx_runtime29 = require("react/jsx-runtime");
2534
2723
  var toneClassName2 = {
2535
2724
  default: "bg-border",
2536
2725
  muted: "bg-border-muted"
2537
2726
  };
2538
- var AdsSeparator = React25.forwardRef(({ className, orientation = "horizontal", tone = "default", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
2727
+ var AdsSeparator = React26.forwardRef(({ className, orientation = "horizontal", tone = "default", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
2539
2728
  Separator,
2540
2729
  {
2541
2730
  className: cn(
@@ -2552,13 +2741,13 @@ var AdsSeparator = React25.forwardRef(({ className, orientation = "horizontal",
2552
2741
  AdsSeparator.displayName = "AdsSeparator";
2553
2742
 
2554
2743
  // src/components/AdsSkeleton/index.tsx
2555
- var React27 = __toESM(require("react"), 1);
2744
+ var React28 = __toESM(require("react"), 1);
2556
2745
 
2557
2746
  // src/primitives/skeleton.tsx
2558
- var React26 = __toESM(require("react"), 1);
2559
- var import_jsx_runtime29 = require("react/jsx-runtime");
2560
- var Skeleton = React26.forwardRef(
2561
- ({ animated = true, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
2747
+ var React27 = __toESM(require("react"), 1);
2748
+ var import_jsx_runtime30 = require("react/jsx-runtime");
2749
+ var Skeleton = React27.forwardRef(
2750
+ ({ animated = true, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2562
2751
  "div",
2563
2752
  {
2564
2753
  className: cn(
@@ -2574,7 +2763,7 @@ var Skeleton = React26.forwardRef(
2574
2763
  Skeleton.displayName = "Skeleton";
2575
2764
 
2576
2765
  // src/components/AdsSkeleton/index.tsx
2577
- var import_jsx_runtime30 = require("react/jsx-runtime");
2766
+ var import_jsx_runtime31 = require("react/jsx-runtime");
2578
2767
  var shapeClassName = {
2579
2768
  default: "rounded-radius-md",
2580
2769
  line: "h-4 w-full rounded-full",
@@ -2584,8 +2773,8 @@ var toneClassName3 = {
2584
2773
  default: "bg-secondary",
2585
2774
  muted: "bg-accent"
2586
2775
  };
2587
- var AdsSkeleton = React27.forwardRef(
2588
- ({ className, shape = "default", tone = "default", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2776
+ var AdsSkeleton = React28.forwardRef(
2777
+ ({ className, shape = "default", tone = "default", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2589
2778
  Skeleton,
2590
2779
  {
2591
2780
  className: cn(shapeClassName[shape], toneClassName3[tone], className),
@@ -2597,28 +2786,28 @@ var AdsSkeleton = React27.forwardRef(
2597
2786
  AdsSkeleton.displayName = "AdsSkeleton";
2598
2787
 
2599
2788
  // src/components/AdsInput/index.tsx
2600
- var React29 = __toESM(require("react"), 1);
2789
+ var React30 = __toESM(require("react"), 1);
2601
2790
  var import_lucide_react10 = require("lucide-react");
2602
2791
 
2603
2792
  // src/lib/adsClearButton.tsx
2604
- var React28 = __toESM(require("react"), 1);
2793
+ var React29 = __toESM(require("react"), 1);
2605
2794
  var import_lucide_react9 = require("lucide-react");
2606
- var import_jsx_runtime31 = require("react/jsx-runtime");
2795
+ var import_jsx_runtime32 = require("react/jsx-runtime");
2607
2796
  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";
2608
- var AdsClearButton = React28.forwardRef(({ className, type = "button", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2797
+ var AdsClearButton = React29.forwardRef(({ className, type = "button", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
2609
2798
  "button",
2610
2799
  {
2611
2800
  ...props,
2612
2801
  className: cn(adsClearButtonClassName, "h-4 w-4", className),
2613
2802
  ref,
2614
2803
  type,
2615
- children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react9.X, { "aria-hidden": true, className: "h-3.5 w-3.5" })
2804
+ children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_lucide_react9.X, { "aria-hidden": true, className: "h-3.5 w-3.5" })
2616
2805
  }
2617
2806
  ));
2618
2807
  AdsClearButton.displayName = "AdsClearButton";
2619
2808
 
2620
2809
  // src/components/AdsInput/index.tsx
2621
- var import_jsx_runtime32 = require("react/jsx-runtime");
2810
+ var import_jsx_runtime33 = require("react/jsx-runtime");
2622
2811
  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";
2623
2812
  var inputSizeClasses = {
2624
2813
  sm: "h-8 text-sm leading-5",
@@ -2652,8 +2841,8 @@ function renderFileTriggerIcon(icon) {
2652
2841
  if (!icon) {
2653
2842
  return null;
2654
2843
  }
2655
- if (React29.isValidElement(icon)) {
2656
- return React29.cloneElement(icon, {
2844
+ if (React30.isValidElement(icon)) {
2845
+ return React30.cloneElement(icon, {
2657
2846
  className: cn("!h-4 !w-4 h-4 w-4", icon.props.className)
2658
2847
  });
2659
2848
  }
@@ -2676,7 +2865,7 @@ function getInputSurfaceClassName({
2676
2865
  className
2677
2866
  );
2678
2867
  }
2679
- var AdsInput = React29.forwardRef(
2868
+ var AdsInput = React30.forwardRef(
2680
2869
  ({
2681
2870
  action,
2682
2871
  className,
@@ -2685,7 +2874,7 @@ var AdsInput = React29.forwardRef(
2685
2874
  descriptionPlacement = "below",
2686
2875
  emptyFileLabel,
2687
2876
  errorText,
2688
- fileTriggerIcon = /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_lucide_react10.Upload, { "aria-hidden": true, className: "h-4 w-4" }),
2877
+ fileTriggerIcon = /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_lucide_react10.Upload, { "aria-hidden": true, className: "h-4 w-4" }),
2689
2878
  fileTriggerLabel,
2690
2879
  helperText,
2691
2880
  id,
@@ -2699,9 +2888,9 @@ var AdsInput = React29.forwardRef(
2699
2888
  ...props
2700
2889
  }, ref) => {
2701
2890
  const { messages } = useAdsI18n();
2702
- const inputRef = React29.useRef(null);
2703
- const [selectedFiles, setSelectedFiles] = React29.useState([]);
2704
- const [currentValue, setCurrentValue] = React29.useState(
2891
+ const inputRef = React30.useRef(null);
2892
+ const [selectedFiles, setSelectedFiles] = React30.useState([]);
2893
+ const [currentValue, setCurrentValue] = React30.useState(
2705
2894
  () => getTextInputValue(props.value ?? props.defaultValue)
2706
2895
  );
2707
2896
  const description = useAdsFieldDescription({
@@ -2710,7 +2899,7 @@ var AdsInput = React29.forwardRef(
2710
2899
  helperText,
2711
2900
  id
2712
2901
  });
2713
- React29.useEffect(() => {
2902
+ React30.useEffect(() => {
2714
2903
  if (props.value !== void 0) {
2715
2904
  setCurrentValue(getTextInputValue(props.value));
2716
2905
  }
@@ -2728,7 +2917,7 @@ var AdsInput = React29.forwardRef(
2728
2917
  const resolvedFileTriggerLabel = fileTriggerLabel ?? messages.input.chooseFile;
2729
2918
  const resolvedFileTriggerIcon = renderFileTriggerIcon(fileTriggerIcon);
2730
2919
  const resolvedEmptyFileLabel = emptyFileLabel ?? messages.input.noFileChosen;
2731
- const handleChange = React29.useCallback(
2920
+ const handleChange = React30.useCallback(
2732
2921
  (event) => {
2733
2922
  setCurrentValue(event.target.value);
2734
2923
  if (isFileInput) {
@@ -2740,7 +2929,7 @@ var AdsInput = React29.forwardRef(
2740
2929
  },
2741
2930
  [isFileInput, onChange]
2742
2931
  );
2743
- const handleClear = React29.useCallback(() => {
2932
+ const handleClear = React30.useCallback(() => {
2744
2933
  const element = inputRef.current;
2745
2934
  if (!element) {
2746
2935
  return;
@@ -2755,10 +2944,10 @@ var AdsInput = React29.forwardRef(
2755
2944
  onClear?.();
2756
2945
  }, [onClear]);
2757
2946
  const fileNameText = selectedFiles.length > 0 ? selectedFiles.join(", ") : resolvedEmptyFileLabel;
2758
- const helperNode = helperText ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(AdsFieldDescription, { id: description.helperId, children: helperText }) : null;
2759
- const errorNode = errorText ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(AdsFieldError, { id: description.errorId, children: errorText }) : null;
2760
- const inputNode = isFileInput ? /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "group relative flex w-full min-w-0 flex-1 items-center focus-within:[&_[data-ads-file-trigger]]:ring-2 focus-within:[&_[data-ads-file-trigger]]:ring-ring focus-within:[&_[data-ads-file-trigger]]:ring-offset-2 focus-within:[&_[data-ads-file-trigger]]:ring-offset-background", children: [
2761
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
2947
+ const helperNode = helperText ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(AdsFieldDescription, { id: description.helperId, children: helperText }) : null;
2948
+ const errorNode = errorText ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(AdsFieldError, { id: description.errorId, children: errorText }) : null;
2949
+ const inputNode = isFileInput ? /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "group relative flex w-full min-w-0 flex-1 items-center focus-within:[&_[data-ads-file-trigger]]:ring-2 focus-within:[&_[data-ads-file-trigger]]:ring-ring focus-within:[&_[data-ads-file-trigger]]:ring-offset-2 focus-within:[&_[data-ads-file-trigger]]:ring-offset-background", children: [
2950
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
2762
2951
  Input,
2763
2952
  {
2764
2953
  "aria-describedby": description.describedBy,
@@ -2778,7 +2967,7 @@ var AdsInput = React29.forwardRef(
2778
2967
  ...props
2779
2968
  }
2780
2969
  ),
2781
- /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
2970
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
2782
2971
  "div",
2783
2972
  {
2784
2973
  "aria-hidden": "true",
@@ -2787,7 +2976,7 @@ var AdsInput = React29.forwardRef(
2787
2976
  props.disabled ? "cursor-not-allowed opacity-50" : void 0
2788
2977
  ),
2789
2978
  children: [
2790
- /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
2979
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
2791
2980
  "span",
2792
2981
  {
2793
2982
  "data-ads-file-trigger": "",
@@ -2797,12 +2986,12 @@ var AdsInput = React29.forwardRef(
2797
2986
  adsTextColorClassName.primary
2798
2987
  ),
2799
2988
  children: [
2800
- resolvedFileTriggerIcon ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "inline-flex h-4 w-4 items-center justify-center [&>svg]:!h-4 [&>svg]:!w-4", children: resolvedFileTriggerIcon }) : null,
2989
+ resolvedFileTriggerIcon ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "inline-flex h-4 w-4 items-center justify-center [&>svg]:!h-4 [&>svg]:!w-4", children: resolvedFileTriggerIcon }) : null,
2801
2990
  resolvedFileTriggerLabel
2802
2991
  ]
2803
2992
  }
2804
2993
  ),
2805
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
2994
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
2806
2995
  "span",
2807
2996
  {
2808
2997
  className: cn(
@@ -2815,9 +3004,9 @@ var AdsInput = React29.forwardRef(
2815
3004
  ]
2816
3005
  }
2817
3006
  )
2818
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "relative flex w-full min-w-0 flex-1 items-center", children: [
2819
- prefix ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "pointer-events-none absolute left-md inline-flex text-icon-muted", children: prefix }) : null,
2820
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
3007
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "relative flex w-full min-w-0 flex-1 items-center", children: [
3008
+ prefix ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "pointer-events-none absolute left-md inline-flex text-icon-muted", children: prefix }) : null,
3009
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
2821
3010
  Input,
2822
3011
  {
2823
3012
  "aria-describedby": description.describedBy,
@@ -2833,9 +3022,9 @@ var AdsInput = React29.forwardRef(
2833
3022
  ...props
2834
3023
  }
2835
3024
  ),
2836
- canClear || suffix ? /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("span", { className: "absolute right-md inline-flex items-center gap-xs text-icon-muted", children: [
2837
- suffix ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "inline-flex items-center", children: suffix }) : null,
2838
- canClear ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
3025
+ canClear || suffix ? /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("span", { className: "absolute right-md inline-flex items-center gap-xs text-icon-muted", children: [
3026
+ suffix ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "inline-flex items-center", children: suffix }) : null,
3027
+ canClear ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
2839
3028
  AdsClearButton,
2840
3029
  {
2841
3030
  "aria-label": resolvedClearButtonLabel,
@@ -2844,12 +3033,12 @@ var AdsInput = React29.forwardRef(
2844
3033
  ) : null
2845
3034
  ] }) : null
2846
3035
  ] });
2847
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(AdsFieldItem, { children: [
2848
- label ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(AdsFieldLabel, { htmlFor: description.inputId, children: label }) : null,
3036
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(AdsFieldItem, { children: [
3037
+ label ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(AdsFieldLabel, { htmlFor: description.inputId, children: label }) : null,
2849
3038
  descriptionPlacement === "above" ? helperNode : null,
2850
- /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex w-full items-center gap-sm", children: [
3039
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex w-full items-center gap-sm", children: [
2851
3040
  inputNode,
2852
- action ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "shrink-0", children: action }) : null
3041
+ action ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "shrink-0", children: action }) : null
2853
3042
  ] }),
2854
3043
  descriptionPlacement === "below" ? helperNode : null,
2855
3044
  errorNode
@@ -2859,13 +3048,13 @@ var AdsInput = React29.forwardRef(
2859
3048
  AdsInput.displayName = "AdsInput";
2860
3049
 
2861
3050
  // src/components/AdsInputGroup/index.tsx
2862
- var React31 = __toESM(require("react"), 1);
3051
+ var React32 = __toESM(require("react"), 1);
2863
3052
 
2864
3053
  // src/primitives/textarea.tsx
2865
- var React30 = __toESM(require("react"), 1);
2866
- var import_jsx_runtime33 = require("react/jsx-runtime");
2867
- var Textarea = React30.forwardRef(({ className, ...props }, ref) => {
2868
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
3054
+ var React31 = __toESM(require("react"), 1);
3055
+ var import_jsx_runtime34 = require("react/jsx-runtime");
3056
+ var Textarea = React31.forwardRef(({ className, ...props }, ref) => {
3057
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
2869
3058
  "textarea",
2870
3059
  {
2871
3060
  className: cn(
@@ -2880,7 +3069,7 @@ var Textarea = React30.forwardRef(({ className, ...props }, ref) => {
2880
3069
  Textarea.displayName = "Textarea";
2881
3070
 
2882
3071
  // src/components/AdsInputGroup/index.tsx
2883
- var import_jsx_runtime34 = require("react/jsx-runtime");
3072
+ var import_jsx_runtime35 = require("react/jsx-runtime");
2884
3073
  function useAdsInputGroupDescription(describedBy, helperText, errorText, idBase) {
2885
3074
  const helperId = helperText ? `${idBase}-helper` : void 0;
2886
3075
  const errorId = errorText ? `${idBase}-error` : void 0;
@@ -2899,11 +3088,11 @@ function AdsInputGroupChrome({
2899
3088
  helperText,
2900
3089
  label
2901
3090
  }) {
2902
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex w-full flex-col gap-md", children: [
2903
- label ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "text-sm font-medium leading-5 text-foreground", children: label }) : null,
3091
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex w-full flex-col gap-md", children: [
3092
+ label ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "text-sm font-medium leading-5 text-foreground", children: label }) : null,
2904
3093
  children,
2905
- helperText ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("p", { className: "text-sm leading-5 text-muted-foreground", id: helperId, children: helperText }) : null,
2906
- errorText ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("p", { className: "text-sm leading-5 text-destructive", id: errorId, children: errorText }) : null
3094
+ helperText ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: "text-sm leading-5 text-muted-foreground", id: helperId, children: helperText }) : null,
3095
+ errorText ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: "text-sm leading-5 text-destructive", id: errorId, children: errorText }) : null
2907
3096
  ] });
2908
3097
  }
2909
3098
  var addonBaseClassName = "flex shrink-0 items-center self-stretch bg-secondary px-lg text-sm leading-5 text-foreground";
@@ -2942,21 +3131,21 @@ function AdsInputGroup({
2942
3131
  trailingAddon,
2943
3132
  trailingAddonClassName
2944
3133
  }) {
2945
- const generatedId = React31.useId();
3134
+ const generatedId = React32.useId();
2946
3135
  const description = useAdsInputGroupDescription(
2947
3136
  void 0,
2948
3137
  helperText,
2949
3138
  errorText,
2950
3139
  id ?? generatedId
2951
3140
  );
2952
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3141
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2953
3142
  AdsInputGroupChrome,
2954
3143
  {
2955
3144
  errorText,
2956
3145
  helperText,
2957
3146
  label,
2958
3147
  ...description,
2959
- children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: cn("w-full", className), children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
3148
+ children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: cn("w-full", className), children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
2960
3149
  "div",
2961
3150
  {
2962
3151
  className: cn(
@@ -2966,9 +3155,9 @@ function AdsInputGroup({
2966
3155
  surfaceClassName
2967
3156
  ),
2968
3157
  children: [
2969
- header ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "border-b border-border px-md py-md text-sm text-foreground", children: header }) : null,
2970
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex min-h-11 w-full items-stretch", children: [
2971
- leadingAddon ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3158
+ header ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "border-b border-border px-md py-md text-sm text-foreground", children: header }) : null,
3159
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex min-h-11 w-full items-stretch", children: [
3160
+ leadingAddon ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2972
3161
  "div",
2973
3162
  {
2974
3163
  className: cn(
@@ -2979,7 +3168,7 @@ function AdsInputGroup({
2979
3168
  children: leadingAddon
2980
3169
  }
2981
3170
  ) : null,
2982
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3171
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2983
3172
  "div",
2984
3173
  {
2985
3174
  className: cn(
@@ -2989,7 +3178,7 @@ function AdsInputGroup({
2989
3178
  children
2990
3179
  }
2991
3180
  ),
2992
- trailingAddon ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3181
+ trailingAddon ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2993
3182
  "div",
2994
3183
  {
2995
3184
  className: cn(
@@ -3001,33 +3190,33 @@ function AdsInputGroup({
3001
3190
  }
3002
3191
  ) : null
3003
3192
  ] }),
3004
- 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
3193
+ footer ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "border-t border-border px-md py-sm text-sm text-muted-foreground", children: footer }) : null
3005
3194
  ]
3006
3195
  }
3007
3196
  ) })
3008
3197
  }
3009
3198
  );
3010
3199
  }
3011
- var AdsInputGroupInput = React31.forwardRef(({ className, clearable = false, clearButtonLabel, onChange, onClear, ...props }, ref) => {
3200
+ var AdsInputGroupInput = React32.forwardRef(({ className, clearable = false, clearButtonLabel, onChange, onClear, ...props }, ref) => {
3012
3201
  const { messages } = useAdsI18n();
3013
- const inputRef = React31.useRef(null);
3014
- const [currentValue, setCurrentValue] = React31.useState(
3202
+ const inputRef = React32.useRef(null);
3203
+ const [currentValue, setCurrentValue] = React32.useState(
3015
3204
  () => getInputGroupValue(props.value ?? props.defaultValue)
3016
3205
  );
3017
- React31.useEffect(() => {
3206
+ React32.useEffect(() => {
3018
3207
  if (props.value !== void 0) {
3019
3208
  setCurrentValue(getInputGroupValue(props.value));
3020
3209
  }
3021
3210
  }, [props.value]);
3022
3211
  const canClear = clearable && !props.disabled && !props.readOnly && currentValue.length > 0;
3023
- const handleChange = React31.useCallback(
3212
+ const handleChange = React32.useCallback(
3024
3213
  (event) => {
3025
3214
  setCurrentValue(event.target.value);
3026
3215
  onChange?.(event);
3027
3216
  },
3028
3217
  [onChange]
3029
3218
  );
3030
- const handleClear = React31.useCallback(() => {
3219
+ const handleClear = React32.useCallback(() => {
3031
3220
  const element = inputRef.current;
3032
3221
  if (!element) {
3033
3222
  return;
@@ -3041,8 +3230,8 @@ var AdsInputGroupInput = React31.forwardRef(({ className, clearable = false, cle
3041
3230
  element.focus();
3042
3231
  onClear?.();
3043
3232
  }, [onClear]);
3044
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "relative flex w-full min-w-0 flex-1 items-center", children: [
3045
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3233
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "relative flex w-full min-w-0 flex-1 items-center", children: [
3234
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3046
3235
  Input,
3047
3236
  {
3048
3237
  className: cn(
@@ -3059,7 +3248,7 @@ var AdsInputGroupInput = React31.forwardRef(({ className, clearable = false, cle
3059
3248
  ...props
3060
3249
  }
3061
3250
  ),
3062
- canClear ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3251
+ canClear ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3063
3252
  AdsClearButton,
3064
3253
  {
3065
3254
  "aria-label": clearButtonLabel ?? messages.input.clear,
@@ -3070,7 +3259,7 @@ var AdsInputGroupInput = React31.forwardRef(({ className, clearable = false, cle
3070
3259
  ] });
3071
3260
  });
3072
3261
  AdsInputGroupInput.displayName = "AdsInputGroupInput";
3073
- var AdsInputGroupTextarea = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3262
+ var AdsInputGroupTextarea = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3074
3263
  Textarea,
3075
3264
  {
3076
3265
  className: cn(
@@ -3085,14 +3274,14 @@ var AdsInputGroupTextarea = React31.forwardRef(({ className, ...props }, ref) =>
3085
3274
  AdsInputGroupTextarea.displayName = "AdsInputGroupTextarea";
3086
3275
 
3087
3276
  // src/components/AdsInputOTP/index.tsx
3088
- var React33 = __toESM(require("react"), 1);
3277
+ var React34 = __toESM(require("react"), 1);
3089
3278
 
3090
3279
  // src/primitives/input-otp.tsx
3091
- var React32 = __toESM(require("react"), 1);
3280
+ var React33 = __toESM(require("react"), 1);
3092
3281
  var import_input_otp = require("input-otp");
3093
3282
  var import_lucide_react11 = require("lucide-react");
3094
- var import_jsx_runtime35 = require("react/jsx-runtime");
3095
- var InputOTP = React32.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3283
+ var import_jsx_runtime36 = require("react/jsx-runtime");
3284
+ var InputOTP = React33.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3096
3285
  import_input_otp.OTPInput,
3097
3286
  {
3098
3287
  ref,
@@ -3105,12 +3294,12 @@ var InputOTP = React32.forwardRef(({ className, containerClassName, ...props },
3105
3294
  }
3106
3295
  ));
3107
3296
  InputOTP.displayName = "InputOTP";
3108
- var InputOTPGroup = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { ref, className: cn("flex items-center", className), ...props }));
3297
+ var InputOTPGroup = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { ref, className: cn("flex items-center", className), ...props }));
3109
3298
  InputOTPGroup.displayName = "InputOTPGroup";
3110
- var InputOTPSlot = React32.forwardRef(({ index, className, ...props }, ref) => {
3111
- const inputOTPContext = React32.useContext(import_input_otp.OTPInputContext);
3299
+ var InputOTPSlot = React33.forwardRef(({ index, className, ...props }, ref) => {
3300
+ const inputOTPContext = React33.useContext(import_input_otp.OTPInputContext);
3112
3301
  const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];
3113
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
3302
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
3114
3303
  "div",
3115
3304
  {
3116
3305
  ref,
@@ -3122,19 +3311,19 @@ var InputOTPSlot = React32.forwardRef(({ index, className, ...props }, ref) => {
3122
3311
  ...props,
3123
3312
  children: [
3124
3313
  char,
3125
- 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" }) })
3314
+ hasFakeCaret && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "h-4 w-px animate-caret-blink bg-foreground duration-1000" }) })
3126
3315
  ]
3127
3316
  }
3128
3317
  );
3129
3318
  });
3130
3319
  InputOTPSlot.displayName = "InputOTPSlot";
3131
- 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_react11.Dot, {}) }));
3320
+ var InputOTPSeparator = React33.forwardRef(({ ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { ref, role: "separator", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_lucide_react11.Dot, {}) }));
3132
3321
  InputOTPSeparator.displayName = "InputOTPSeparator";
3133
3322
 
3134
3323
  // src/components/AdsInputOTP/index.tsx
3135
- var import_jsx_runtime36 = require("react/jsx-runtime");
3324
+ var import_jsx_runtime37 = require("react/jsx-runtime");
3136
3325
  function useFieldDescription(id, describedBy, helperText, errorText) {
3137
- const generatedId = React33.useId();
3326
+ const generatedId = React34.useId();
3138
3327
  const inputId = id ?? generatedId;
3139
3328
  const helperId = helperText ? `${inputId}-helper` : void 0;
3140
3329
  const errorId = errorText ? `${inputId}-error` : void 0;
@@ -3155,21 +3344,21 @@ function AdsInputOTPChrome({
3155
3344
  inputId,
3156
3345
  label
3157
3346
  }) {
3158
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "flex w-full flex-col gap-md", children: [
3159
- label ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("label", { className: "text-sm font-medium leading-5 text-foreground", htmlFor: inputId, children: label }) : null,
3347
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "flex w-full flex-col gap-md", children: [
3348
+ label ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("label", { className: "text-sm font-medium leading-5 text-foreground", htmlFor: inputId, children: label }) : null,
3160
3349
  children,
3161
- helperText ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("p", { className: "text-sm leading-5 text-muted-foreground", id: helperId, children: helperText }) : null,
3162
- errorText ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("p", { className: "text-sm leading-5 text-destructive", id: errorId, children: errorText }) : null
3350
+ helperText ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("p", { className: "text-sm leading-5 text-muted-foreground", id: helperId, children: helperText }) : null,
3351
+ errorText ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("p", { className: "text-sm leading-5 text-destructive", id: errorId, children: errorText }) : null
3163
3352
  ] });
3164
3353
  }
3165
3354
  function buildSeparator(node, key) {
3166
3355
  if (node === void 0) {
3167
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(AdsInputOTPSeparator, {}, key);
3356
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(AdsInputOTPSeparator, {}, key);
3168
3357
  }
3169
- if (React33.isValidElement(node)) {
3170
- return React33.cloneElement(node, { key });
3358
+ if (React34.isValidElement(node)) {
3359
+ return React34.cloneElement(node, { key });
3171
3360
  }
3172
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { children: node }, key);
3361
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { children: node }, key);
3173
3362
  }
3174
3363
  function buildOtpChildren(groups, separator) {
3175
3364
  const defaultGroup = groups.length > 0 ? groups : [6];
@@ -3177,7 +3366,7 @@ function buildOtpChildren(groups, separator) {
3177
3366
  let index = 0;
3178
3367
  defaultGroup.forEach((size, indexOfGroup) => {
3179
3368
  items.push(
3180
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(AdsInputOTPGroup, { children: Array.from({ length: size }, (_, slotOffset) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3369
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(AdsInputOTPGroup, { children: Array.from({ length: size }, (_, slotOffset) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3181
3370
  AdsInputOTPSlot,
3182
3371
  {
3183
3372
  index: index + slotOffset
@@ -3192,11 +3381,11 @@ function buildOtpChildren(groups, separator) {
3192
3381
  });
3193
3382
  return items;
3194
3383
  }
3195
- var AdsInputOTP = React33.forwardRef(({ action, errorText, groups, helperText, label, separator, children, id, ...props }, ref) => {
3384
+ var AdsInputOTP = React34.forwardRef(({ action, errorText, groups, helperText, label, separator, children, id, ...props }, ref) => {
3196
3385
  const totalSlots = groups && groups.length > 0 ? groups.reduce((sum, value) => sum + value, 0) : 6;
3197
3386
  const description = useFieldDescription(id, props["aria-describedby"], helperText, errorText);
3198
3387
  const otpChildren = children ?? buildOtpChildren(groups ?? [], separator);
3199
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3388
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3200
3389
  AdsInputOTPChrome,
3201
3390
  {
3202
3391
  errorText,
@@ -3205,8 +3394,8 @@ var AdsInputOTP = React33.forwardRef(({ action, errorText, groups, helperText, l
3205
3394
  helperId: description.helperId,
3206
3395
  inputId: description.inputId,
3207
3396
  label,
3208
- children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "flex w-full items-center gap-sm", children: [
3209
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3397
+ children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "flex w-full items-center gap-sm", children: [
3398
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3210
3399
  InputOTP,
3211
3400
  {
3212
3401
  "aria-describedby": description.describedBy,
@@ -3218,15 +3407,15 @@ var AdsInputOTP = React33.forwardRef(({ action, errorText, groups, helperText, l
3218
3407
  children: otpChildren
3219
3408
  }
3220
3409
  ),
3221
- action ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "shrink-0", children: action }) : null
3410
+ action ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "shrink-0", children: action }) : null
3222
3411
  ] })
3223
3412
  }
3224
3413
  );
3225
3414
  });
3226
3415
  AdsInputOTP.displayName = "AdsInputOTP";
3227
- var AdsInputOTPGroup = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(InputOTPGroup, { className, ref, ...props }));
3416
+ var AdsInputOTPGroup = React34.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(InputOTPGroup, { className, ref, ...props }));
3228
3417
  AdsInputOTPGroup.displayName = "AdsInputOTPGroup";
3229
- var AdsInputOTPSeparator = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3418
+ var AdsInputOTPSeparator = React34.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3230
3419
  InputOTPSeparator,
3231
3420
  {
3232
3421
  className: className ?? "h-px w-6 shrink-0 bg-border text-transparent [&_svg]:hidden",
@@ -3235,7 +3424,7 @@ var AdsInputOTPSeparator = React33.forwardRef(({ className, ...props }, ref) =>
3235
3424
  }
3236
3425
  ));
3237
3426
  AdsInputOTPSeparator.displayName = "AdsInputOTPSeparator";
3238
- var AdsInputOTPSlot = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3427
+ var AdsInputOTPSlot = React34.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3239
3428
  InputOTPSlot,
3240
3429
  {
3241
3430
  className: [
@@ -3252,17 +3441,17 @@ var AdsInputOTPSlot = React33.forwardRef(({ className, ...props }, ref) => /* @_
3252
3441
  AdsInputOTPSlot.displayName = "AdsInputOTPSlot";
3253
3442
 
3254
3443
  // src/components/AdsDataPagination/index.tsx
3255
- var React37 = __toESM(require("react"), 1);
3444
+ var React38 = __toESM(require("react"), 1);
3256
3445
 
3257
3446
  // src/components/AdsPagination/index.tsx
3258
- var React35 = __toESM(require("react"), 1);
3447
+ var React36 = __toESM(require("react"), 1);
3259
3448
  var import_lucide_react13 = require("lucide-react");
3260
3449
 
3261
3450
  // src/primitives/pagination.tsx
3262
- var React34 = __toESM(require("react"), 1);
3451
+ var React35 = __toESM(require("react"), 1);
3263
3452
  var import_lucide_react12 = require("lucide-react");
3264
- var import_jsx_runtime37 = require("react/jsx-runtime");
3265
- var Pagination = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3453
+ var import_jsx_runtime38 = require("react/jsx-runtime");
3454
+ var Pagination = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3266
3455
  "nav",
3267
3456
  {
3268
3457
  role: "navigation",
@@ -3272,7 +3461,7 @@ var Pagination = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_run
3272
3461
  }
3273
3462
  );
3274
3463
  Pagination.displayName = "Pagination";
3275
- var PaginationContent = React34.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3464
+ var PaginationContent = React35.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3276
3465
  "ul",
3277
3466
  {
3278
3467
  ref,
@@ -3281,14 +3470,14 @@ var PaginationContent = React34.forwardRef(({ className, ...props }, ref) => /*
3281
3470
  }
3282
3471
  ));
3283
3472
  PaginationContent.displayName = "PaginationContent";
3284
- var PaginationItem = React34.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("li", { ref, className: cn("", className), ...props }));
3473
+ var PaginationItem = React35.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("li", { ref, className: cn("", className), ...props }));
3285
3474
  PaginationItem.displayName = "PaginationItem";
3286
3475
  var PaginationLink = ({
3287
3476
  className,
3288
3477
  isActive,
3289
3478
  size = "icon",
3290
3479
  ...props
3291
- }) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3480
+ }) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3292
3481
  "a",
3293
3482
  {
3294
3483
  "aria-current": isActive ? "page" : void 0,
@@ -3306,7 +3495,7 @@ PaginationLink.displayName = "PaginationLink";
3306
3495
  var PaginationPrevious = ({
3307
3496
  className,
3308
3497
  ...props
3309
- }) => /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
3498
+ }) => /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
3310
3499
  PaginationLink,
3311
3500
  {
3312
3501
  "aria-label": "Go to previous page",
@@ -3314,8 +3503,8 @@ var PaginationPrevious = ({
3314
3503
  className: cn("gap-1 pl-2.5", className),
3315
3504
  ...props,
3316
3505
  children: [
3317
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_lucide_react12.ChevronLeft, { className: "h-4 w-4" }),
3318
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { children: "Previous" })
3506
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_lucide_react12.ChevronLeft, { className: "h-4 w-4" }),
3507
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { children: "Previous" })
3319
3508
  ]
3320
3509
  }
3321
3510
  );
@@ -3323,7 +3512,7 @@ PaginationPrevious.displayName = "PaginationPrevious";
3323
3512
  var PaginationNext = ({
3324
3513
  className,
3325
3514
  ...props
3326
- }) => /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
3515
+ }) => /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
3327
3516
  PaginationLink,
3328
3517
  {
3329
3518
  "aria-label": "Go to next page",
@@ -3331,8 +3520,8 @@ var PaginationNext = ({
3331
3520
  className: cn("gap-1 pr-2.5", className),
3332
3521
  ...props,
3333
3522
  children: [
3334
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { children: "Next" }),
3335
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_lucide_react12.ChevronRight, { className: "h-4 w-4" })
3523
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { children: "Next" }),
3524
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_lucide_react12.ChevronRight, { className: "h-4 w-4" })
3336
3525
  ]
3337
3526
  }
3338
3527
  );
@@ -3340,27 +3529,27 @@ PaginationNext.displayName = "PaginationNext";
3340
3529
  var PaginationEllipsis = ({
3341
3530
  className,
3342
3531
  ...props
3343
- }) => /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
3532
+ }) => /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
3344
3533
  "span",
3345
3534
  {
3346
3535
  "aria-hidden": true,
3347
3536
  className: cn("flex h-9 w-9 items-center justify-center", className),
3348
3537
  ...props,
3349
3538
  children: [
3350
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_lucide_react12.MoreHorizontal, { className: "h-4 w-4" }),
3351
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "sr-only", children: "More pages" })
3539
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_lucide_react12.MoreHorizontal, { className: "h-4 w-4" }),
3540
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "sr-only", children: "More pages" })
3352
3541
  ]
3353
3542
  }
3354
3543
  );
3355
3544
  PaginationEllipsis.displayName = "PaginationEllipsis";
3356
3545
 
3357
3546
  // src/components/AdsPagination/index.tsx
3358
- var import_jsx_runtime38 = require("react/jsx-runtime");
3547
+ var import_jsx_runtime39 = require("react/jsx-runtime");
3359
3548
  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";
3360
3549
  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)]";
3361
3550
  var paginationLinkActiveClassName = "border-border bg-card px-[10px] text-foreground shadow-[0px_1px_2px_rgba(0,0,0,0.1)]";
3362
3551
  function AdsPagination({ className, ...props }) {
3363
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3552
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3364
3553
  Pagination,
3365
3554
  {
3366
3555
  className: cn("mx-0 w-auto justify-start", className),
@@ -3369,14 +3558,14 @@ function AdsPagination({ className, ...props }) {
3369
3558
  );
3370
3559
  }
3371
3560
  AdsPagination.displayName = "AdsPagination";
3372
- var AdsPaginationContent = React35.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(PaginationContent, { ref, className: cn("gap-1", className), ...props }));
3561
+ var AdsPaginationContent = React36.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(PaginationContent, { ref, className: cn("gap-1", className), ...props }));
3373
3562
  AdsPaginationContent.displayName = "AdsPaginationContent";
3374
- var AdsPaginationItem = React35.forwardRef(
3375
- ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(PaginationItem, { ref, className, ...props })
3563
+ var AdsPaginationItem = React36.forwardRef(
3564
+ ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(PaginationItem, { ref, className, ...props })
3376
3565
  );
3377
3566
  AdsPaginationItem.displayName = "AdsPaginationItem";
3378
- var AdsPaginationLink = React35.forwardRef(
3379
- ({ className, isActive = false, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3567
+ var AdsPaginationLink = React36.forwardRef(
3568
+ ({ className, isActive = false, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3380
3569
  "a",
3381
3570
  {
3382
3571
  "aria-current": isActive ? "page" : void 0,
@@ -3391,10 +3580,10 @@ var AdsPaginationLink = React35.forwardRef(
3391
3580
  )
3392
3581
  );
3393
3582
  AdsPaginationLink.displayName = "AdsPaginationLink";
3394
- var AdsPaginationPrevious = React35.forwardRef(({ "aria-label": ariaLabel, children, className, ...props }, ref) => {
3583
+ var AdsPaginationPrevious = React36.forwardRef(({ "aria-label": ariaLabel, children, className, ...props }, ref) => {
3395
3584
  const { messages } = useAdsI18n();
3396
3585
  const label = children ?? messages.pagination.previous;
3397
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
3586
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
3398
3587
  AdsPaginationLink,
3399
3588
  {
3400
3589
  "aria-label": ariaLabel ?? messages.pagination.previous,
@@ -3402,18 +3591,18 @@ var AdsPaginationPrevious = React35.forwardRef(({ "aria-label": ariaLabel, child
3402
3591
  ref,
3403
3592
  ...props,
3404
3593
  children: [
3405
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_lucide_react13.ChevronLeft, { "aria-hidden": true, className: "h-4 w-4" }),
3406
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { children: label })
3594
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_lucide_react13.ChevronLeft, { "aria-hidden": true, className: "h-4 w-4" }),
3595
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { children: label })
3407
3596
  ]
3408
3597
  }
3409
3598
  );
3410
3599
  });
3411
3600
  AdsPaginationPrevious.displayName = "AdsPaginationPrevious";
3412
- var AdsPaginationNext = React35.forwardRef(
3601
+ var AdsPaginationNext = React36.forwardRef(
3413
3602
  ({ "aria-label": ariaLabel, children, className, ...props }, ref) => {
3414
3603
  const { messages } = useAdsI18n();
3415
3604
  const label = children ?? messages.pagination.next;
3416
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
3605
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
3417
3606
  AdsPaginationLink,
3418
3607
  {
3419
3608
  "aria-label": ariaLabel ?? messages.pagination.next,
@@ -3421,8 +3610,8 @@ var AdsPaginationNext = React35.forwardRef(
3421
3610
  ref,
3422
3611
  ...props,
3423
3612
  children: [
3424
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { children: label }),
3425
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_lucide_react13.ChevronRight, { "aria-hidden": true, className: "h-4 w-4" })
3613
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { children: label }),
3614
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_lucide_react13.ChevronRight, { "aria-hidden": true, className: "h-4 w-4" })
3426
3615
  ]
3427
3616
  }
3428
3617
  );
@@ -3436,7 +3625,7 @@ function AdsPaginationEllipsis({
3436
3625
  }) {
3437
3626
  const { messages } = useAdsI18n();
3438
3627
  const resolvedLabel = label ?? messages.pagination.morePages;
3439
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
3628
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
3440
3629
  "span",
3441
3630
  {
3442
3631
  "aria-hidden": true,
@@ -3446,8 +3635,8 @@ function AdsPaginationEllipsis({
3446
3635
  ),
3447
3636
  ...props,
3448
3637
  children: [
3449
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_lucide_react13.MoreHorizontal, { className: "h-4 w-4" }),
3450
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "sr-only", children: resolvedLabel })
3638
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_lucide_react13.MoreHorizontal, { className: "h-4 w-4" }),
3639
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { className: "sr-only", children: resolvedLabel })
3451
3640
  ]
3452
3641
  }
3453
3642
  );
@@ -3455,8 +3644,8 @@ function AdsPaginationEllipsis({
3455
3644
  AdsPaginationEllipsis.displayName = "AdsPaginationEllipsis";
3456
3645
 
3457
3646
  // src/components/AdsSelect/index.tsx
3458
- var React36 = __toESM(require("react"), 1);
3459
- var import_jsx_runtime39 = require("react/jsx-runtime");
3647
+ var React37 = __toESM(require("react"), 1);
3648
+ var import_jsx_runtime40 = require("react/jsx-runtime");
3460
3649
  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)]";
3461
3650
  var selectContentBaseClassName = "rounded-radius-md border-border bg-popover text-popover-foreground shadow-[0px_8px_24px_rgba(0,0,0,0.22)]";
3462
3651
  function AdsSelect({
@@ -3481,7 +3670,7 @@ function AdsSelect({
3481
3670
  }) {
3482
3671
  const { messages } = useAdsI18n();
3483
3672
  const isControlled = value !== void 0;
3484
- const [internalValue, setInternalValue] = React36.useState(
3673
+ const [internalValue, setInternalValue] = React37.useState(
3485
3674
  defaultValue
3486
3675
  );
3487
3676
  const resolvedValue = isControlled ? value : internalValue;
@@ -3495,8 +3684,8 @@ function AdsSelect({
3495
3684
  });
3496
3685
  const resolvedClearButtonLabel = clearButtonLabel ?? messages.select.clear;
3497
3686
  const resolvedEmptyText = emptyText ?? messages.select.noOptionsAvailable;
3498
- const hasOptions = React36.Children.toArray(children).length > 0;
3499
- const handleValueChange = React36.useCallback(
3687
+ const hasOptions = React37.Children.toArray(children).length > 0;
3688
+ const handleValueChange = React37.useCallback(
3500
3689
  (nextValue) => {
3501
3690
  if (!isControlled) {
3502
3691
  setInternalValue(nextValue);
@@ -3505,7 +3694,7 @@ function AdsSelect({
3505
3694
  },
3506
3695
  [isControlled, onValueChange]
3507
3696
  );
3508
- const handleClear = React36.useCallback(
3697
+ const handleClear = React37.useCallback(
3509
3698
  (event) => {
3510
3699
  event.preventDefault();
3511
3700
  event.stopPropagation();
@@ -3517,12 +3706,12 @@ function AdsSelect({
3517
3706
  },
3518
3707
  [isControlled, onClear, onValueChange]
3519
3708
  );
3520
- const helperNode = helperText ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(AdsFieldDescription, { id: description.helperId, children: helperText }) : null;
3521
- const errorNode = errorText ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(AdsFieldError, { id: description.errorId, children: errorText }) : null;
3522
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(AdsFieldItem, { children: [
3523
- label ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(AdsFieldLabel, { htmlFor: description.inputId, children: label }) : null,
3709
+ const helperNode = helperText ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(AdsFieldDescription, { id: description.helperId, children: helperText }) : null;
3710
+ const errorNode = errorText ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(AdsFieldError, { id: description.errorId, children: errorText }) : null;
3711
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(AdsFieldItem, { children: [
3712
+ label ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(AdsFieldLabel, { htmlFor: description.inputId, children: label }) : null,
3524
3713
  descriptionPlacement === "above" ? helperNode : null,
3525
- /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
3714
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
3526
3715
  Select,
3527
3716
  {
3528
3717
  ...props,
@@ -3530,8 +3719,8 @@ function AdsSelect({
3530
3719
  onValueChange: handleValueChange,
3531
3720
  ...resolvedValue !== void 0 ? { value: resolvedValue } : {},
3532
3721
  children: [
3533
- /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "relative", children: [
3534
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3722
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "relative", children: [
3723
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3535
3724
  SelectTrigger,
3536
3725
  {
3537
3726
  "aria-describedby": description.describedBy,
@@ -3543,10 +3732,10 @@ function AdsSelect({
3543
3732
  triggerClassName
3544
3733
  ),
3545
3734
  id: description.inputId,
3546
- children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(SelectValue, { placeholder })
3735
+ children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(SelectValue, { placeholder })
3547
3736
  }
3548
3737
  ),
3549
- canClear ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3738
+ canClear ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3550
3739
  AdsClearButton,
3551
3740
  {
3552
3741
  "aria-label": resolvedClearButtonLabel,
@@ -3555,11 +3744,11 @@ function AdsSelect({
3555
3744
  }
3556
3745
  ) : null
3557
3746
  ] }),
3558
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3747
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3559
3748
  SelectContent,
3560
3749
  {
3561
3750
  className: cn(selectContentBaseClassName, contentClassName3),
3562
- children: hasOptions ? children : /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3751
+ children: hasOptions ? children : /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3563
3752
  "div",
3564
3753
  {
3565
3754
  "aria-live": "polite",
@@ -3582,7 +3771,7 @@ function AdsSelect({
3582
3771
  }
3583
3772
 
3584
3773
  // src/components/AdsDataPagination/index.tsx
3585
- var import_jsx_runtime40 = require("react/jsx-runtime");
3774
+ var import_jsx_runtime41 = require("react/jsx-runtime");
3586
3775
  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";
3587
3776
  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)]";
3588
3777
  var paginationButtonActiveClassName = "border-border bg-card px-[10px] text-foreground shadow-[0px_1px_2px_rgba(0,0,0,0.1)]";
@@ -3658,9 +3847,9 @@ function AdsDataPagination({
3658
3847
  ariaLabel
3659
3848
  }) {
3660
3849
  const { messages } = useAdsI18n();
3661
- const [internalCurrent, setInternalCurrent] = React37.useState(defaultCurrent);
3662
- const [internalPageSize, setInternalPageSize] = React37.useState(defaultPageSize);
3663
- const [quickJumpValue, setQuickJumpValue] = React37.useState("");
3850
+ const [internalCurrent, setInternalCurrent] = React38.useState(defaultCurrent);
3851
+ const [internalPageSize, setInternalPageSize] = React38.useState(defaultPageSize);
3852
+ const [quickJumpValue, setQuickJumpValue] = React38.useState("");
3664
3853
  const isCurrentControlled = current !== void 0;
3665
3854
  const isPageSizeControlled = pageSize !== void 0;
3666
3855
  const mergedPageSize = Math.max(1, isPageSizeControlled ? pageSize : internalPageSize);
@@ -3681,20 +3870,20 @@ function AdsDataPagination({
3681
3870
  new Set(pageSizeOptions.filter((option) => Number.isFinite(option) && option > 0))
3682
3871
  );
3683
3872
  const resolvedPageSizeOptions = pageSizeValues.length > 0 ? pageSizeValues : [10, 20, 50, 100];
3684
- React37.useEffect(() => {
3873
+ React38.useEffect(() => {
3685
3874
  if (!isCurrentControlled && internalCurrent !== mergedCurrent) {
3686
3875
  setInternalCurrent(mergedCurrent);
3687
3876
  }
3688
3877
  }, [internalCurrent, isCurrentControlled, mergedCurrent]);
3689
- React37.useEffect(() => {
3878
+ React38.useEffect(() => {
3690
3879
  if (!isPageSizeControlled && internalPageSize !== mergedPageSize) {
3691
3880
  setInternalPageSize(mergedPageSize);
3692
3881
  }
3693
3882
  }, [internalPageSize, isPageSizeControlled, mergedPageSize]);
3694
- React37.useEffect(() => {
3883
+ React38.useEffect(() => {
3695
3884
  setQuickJumpValue(String(mergedCurrent));
3696
3885
  }, [mergedCurrent]);
3697
- const commitPageChange = React37.useCallback(
3886
+ const commitPageChange = React38.useCallback(
3698
3887
  (nextPage, nextPageSize = mergedPageSize) => {
3699
3888
  const clampedPage = clampPage(nextPage, Math.max(1, Math.ceil(Math.max(total, 0) / nextPageSize)));
3700
3889
  if (!isCurrentControlled) {
@@ -3708,7 +3897,7 @@ function AdsDataPagination({
3708
3897
  },
3709
3898
  [isCurrentControlled, mergedCurrent, mergedPageSize, onChange, total]
3710
3899
  );
3711
- const handlePageSizeChange = React37.useCallback(
3900
+ const handlePageSizeChange = React38.useCallback(
3712
3901
  (nextValue) => {
3713
3902
  const nextPageSize = Number(nextValue);
3714
3903
  if (!Number.isFinite(nextPageSize) || nextPageSize <= 0 || nextPageSize === mergedPageSize) {
@@ -3733,7 +3922,7 @@ function AdsDataPagination({
3733
3922
  total
3734
3923
  ]
3735
3924
  );
3736
- const handleQuickJumpSubmit = React37.useCallback(() => {
3925
+ const handleQuickJumpSubmit = React38.useCallback(() => {
3737
3926
  const trimmedValue = quickJumpValue.trim();
3738
3927
  if (!trimmedValue) {
3739
3928
  setQuickJumpValue(String(mergedCurrent));
@@ -3767,8 +3956,8 @@ function AdsDataPagination({
3767
3956
  );
3768
3957
  const renderPageNavigation = () => {
3769
3958
  if (variant === "compact") {
3770
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "flex flex-wrap items-center gap-sm", children: [
3771
- shouldShowFirstLast ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3959
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "flex flex-wrap items-center gap-sm", children: [
3960
+ shouldShowFirstLast ? /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3772
3961
  Button,
3773
3962
  {
3774
3963
  "aria-label": messages.pagination.first,
@@ -3781,7 +3970,7 @@ function AdsDataPagination({
3781
3970
  children: messages.pagination.first
3782
3971
  }
3783
3972
  ) : null,
3784
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3973
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3785
3974
  Button,
3786
3975
  {
3787
3976
  "aria-label": messages.pagination.previous,
@@ -3794,7 +3983,7 @@ function AdsDataPagination({
3794
3983
  children: messages.pagination.previous
3795
3984
  }
3796
3985
  ),
3797
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3986
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3798
3987
  "span",
3799
3988
  {
3800
3989
  "aria-current": "page",
@@ -3802,7 +3991,7 @@ function AdsDataPagination({
3802
3991
  children: pageStatus
3803
3992
  }
3804
3993
  ),
3805
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3994
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3806
3995
  Button,
3807
3996
  {
3808
3997
  "aria-label": messages.pagination.next,
@@ -3815,7 +4004,7 @@ function AdsDataPagination({
3815
4004
  children: messages.pagination.next
3816
4005
  }
3817
4006
  ),
3818
- shouldShowFirstLast ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
4007
+ shouldShowFirstLast ? /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3819
4008
  Button,
3820
4009
  {
3821
4010
  "aria-label": messages.pagination.last,
@@ -3830,8 +4019,8 @@ function AdsDataPagination({
3830
4019
  ) : null
3831
4020
  ] });
3832
4021
  }
3833
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(AdsPagination, { "aria-label": navigationLabel, children: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(AdsPaginationContent, { children: [
3834
- shouldShowFirstLast ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(AdsPaginationItem, { children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
4022
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(AdsPagination, { "aria-label": navigationLabel, children: /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(AdsPaginationContent, { children: [
4023
+ shouldShowFirstLast ? /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(AdsPaginationItem, { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3835
4024
  Button,
3836
4025
  {
3837
4026
  "aria-label": messages.pagination.first,
@@ -3844,7 +4033,7 @@ function AdsDataPagination({
3844
4033
  children: messages.pagination.first
3845
4034
  }
3846
4035
  ) }) : null,
3847
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(AdsPaginationItem, { children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
4036
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(AdsPaginationItem, { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3848
4037
  Button,
3849
4038
  {
3850
4039
  "aria-label": messages.pagination.previous,
@@ -3858,7 +4047,7 @@ function AdsDataPagination({
3858
4047
  }
3859
4048
  ) }),
3860
4049
  paginationRange.map(
3861
- (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)(
4050
+ (token, index) => token === "ellipsis" ? /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(AdsPaginationItem, { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(AdsPaginationEllipsis, { label: messages.pagination.morePages }) }, `ellipsis-${index}`) : /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(AdsPaginationItem, { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3862
4051
  Button,
3863
4052
  {
3864
4053
  "aria-current": token === mergedCurrent ? "page" : void 0,
@@ -3875,7 +4064,7 @@ function AdsDataPagination({
3875
4064
  }
3876
4065
  ) }, token)
3877
4066
  ),
3878
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(AdsPaginationItem, { children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
4067
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(AdsPaginationItem, { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3879
4068
  Button,
3880
4069
  {
3881
4070
  "aria-label": messages.pagination.next,
@@ -3888,7 +4077,7 @@ function AdsDataPagination({
3888
4077
  children: messages.pagination.next
3889
4078
  }
3890
4079
  ) }),
3891
- shouldShowFirstLast ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(AdsPaginationItem, { children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
4080
+ shouldShowFirstLast ? /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(AdsPaginationItem, { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3892
4081
  Button,
3893
4082
  {
3894
4083
  "aria-label": messages.pagination.last,
@@ -3903,7 +4092,7 @@ function AdsDataPagination({
3903
4092
  ) }) : null
3904
4093
  ] }) });
3905
4094
  };
3906
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
4095
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
3907
4096
  "div",
3908
4097
  {
3909
4098
  "data-slot": "ads-data-pagination",
@@ -3913,34 +4102,34 @@ function AdsDataPagination({
3913
4102
  className
3914
4103
  ),
3915
4104
  children: [
3916
- /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "flex flex-wrap items-center gap-md text-sm leading-5 text-muted-foreground", children: [
3917
- 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,
3918
- showSizeChanger ? /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: cn("flex items-center gap-sm", classNames?.pageSizeChanger), children: [
3919
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { children: messages.pagination.itemsPerPage }),
3920
- /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
4105
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "flex flex-wrap items-center gap-md text-sm leading-5 text-muted-foreground", children: [
4106
+ variant === "compact" ? /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: classNames?.total, children: compactTotalContent }) : totalContent ? /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: classNames?.total, children: totalContent }) : null,
4107
+ showSizeChanger ? /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: cn("flex items-center gap-sm", classNames?.pageSizeChanger), children: [
4108
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { children: messages.pagination.itemsPerPage }),
4109
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
3921
4110
  Select,
3922
4111
  {
3923
4112
  disabled,
3924
4113
  onValueChange: handlePageSizeChange,
3925
4114
  value: String(mergedPageSize),
3926
4115
  children: [
3927
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
4116
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3928
4117
  SelectTrigger,
3929
4118
  {
3930
4119
  "aria-label": messages.pagination.itemsPerPage,
3931
4120
  className: cn(inlineControlClassName, "w-[132px] px-sm"),
3932
- children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(SelectValue, {})
4121
+ children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(SelectValue, {})
3933
4122
  }
3934
4123
  ),
3935
- /* @__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)) })
4124
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(SelectContent, { children: resolvedPageSizeOptions.map((option) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(SelectItem, { value: String(option), children: interpolate(messages.pagination.itemsPerPageOption, { value: option }) }, option)) })
3936
4125
  ]
3937
4126
  }
3938
4127
  )
3939
4128
  ] }) : null
3940
4129
  ] }),
3941
- /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "flex flex-col gap-md sm:flex-row sm:items-center sm:justify-end", children: [
4130
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "flex flex-col gap-md sm:flex-row sm:items-center sm:justify-end", children: [
3942
4131
  renderPageNavigation(),
3943
- showQuickJumper ? /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
4132
+ showQuickJumper ? /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
3944
4133
  "label",
3945
4134
  {
3946
4135
  className: cn(
@@ -3948,8 +4137,8 @@ function AdsDataPagination({
3948
4137
  classNames?.quickJumper
3949
4138
  ),
3950
4139
  children: [
3951
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { children: messages.pagination.jumpTo }),
3952
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
4140
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { children: messages.pagination.jumpTo }),
4141
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3953
4142
  Input,
3954
4143
  {
3955
4144
  "aria-label": messages.pagination.jumpTo,
@@ -3977,12 +4166,12 @@ function AdsDataPagination({
3977
4166
  }
3978
4167
 
3979
4168
  // src/components/AdsDataTable/index.tsx
3980
- var React42 = __toESM(require("react"), 1);
4169
+ var React43 = __toESM(require("react"), 1);
3981
4170
  var import_lucide_react16 = require("lucide-react");
3982
4171
 
3983
4172
  // src/components/AdsEmpty/index.tsx
3984
4173
  var import_class_variance_authority9 = require("class-variance-authority");
3985
- var import_jsx_runtime41 = require("react/jsx-runtime");
4174
+ var import_jsx_runtime42 = require("react/jsx-runtime");
3986
4175
  var adsEmptyVariants = (0, import_class_variance_authority9.cva)(
3987
4176
  "flex w-full flex-col items-center justify-center gap-6 p-12 text-center",
3988
4177
  {
@@ -3999,7 +4188,7 @@ var adsEmptyVariants = (0, import_class_variance_authority9.cva)(
3999
4188
  }
4000
4189
  );
4001
4190
  function AdsEmpty({ className, variant, ...props }) {
4002
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4191
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4003
4192
  "div",
4004
4193
  {
4005
4194
  "data-slot": "ads-empty",
@@ -4009,7 +4198,7 @@ function AdsEmpty({ className, variant, ...props }) {
4009
4198
  );
4010
4199
  }
4011
4200
  function AdsEmptyHeader({ className, ...props }) {
4012
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4201
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4013
4202
  "div",
4014
4203
  {
4015
4204
  "data-slot": "ads-empty-header",
@@ -4019,7 +4208,7 @@ function AdsEmptyHeader({ className, ...props }) {
4019
4208
  );
4020
4209
  }
4021
4210
  function AdsEmptyMedia({ className, ...props }) {
4022
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4211
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4023
4212
  "div",
4024
4213
  {
4025
4214
  "data-slot": "ads-empty-media",
@@ -4033,7 +4222,7 @@ function AdsEmptyMedia({ className, ...props }) {
4033
4222
  );
4034
4223
  }
4035
4224
  function AdsEmptyTitle({ className, ...props }) {
4036
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4225
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4037
4226
  "div",
4038
4227
  {
4039
4228
  "data-slot": "ads-empty-title",
@@ -4043,7 +4232,7 @@ function AdsEmptyTitle({ className, ...props }) {
4043
4232
  );
4044
4233
  }
4045
4234
  function AdsEmptyDescription({ className, ...props }) {
4046
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4235
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4047
4236
  "p",
4048
4237
  {
4049
4238
  "data-slot": "ads-empty-description",
@@ -4053,7 +4242,7 @@ function AdsEmptyDescription({ className, ...props }) {
4053
4242
  );
4054
4243
  }
4055
4244
  function AdsEmptyContent({ className, ...props }) {
4056
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4245
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4057
4246
  "div",
4058
4247
  {
4059
4248
  "data-slot": "ads-empty-content",
@@ -4063,7 +4252,7 @@ function AdsEmptyContent({ className, ...props }) {
4063
4252
  );
4064
4253
  }
4065
4254
  function AdsEmptyActions({ className, ...props }) {
4066
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4255
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4067
4256
  "div",
4068
4257
  {
4069
4258
  "data-slot": "ads-empty-actions",
@@ -4073,7 +4262,7 @@ function AdsEmptyActions({ className, ...props }) {
4073
4262
  );
4074
4263
  }
4075
4264
  function AdsEmptyFooter({ className, ...props }) {
4076
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4265
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4077
4266
  "div",
4078
4267
  {
4079
4268
  "data-slot": "ads-empty-footer",
@@ -4084,19 +4273,19 @@ function AdsEmptyFooter({ className, ...props }) {
4084
4273
  }
4085
4274
 
4086
4275
  // src/components/AdsTable/index.tsx
4087
- var React41 = __toESM(require("react"), 1);
4276
+ var React42 = __toESM(require("react"), 1);
4088
4277
  var import_lucide_react15 = require("lucide-react");
4089
4278
 
4090
4279
  // src/components/AdsRadioGroup/index.tsx
4091
- var React39 = __toESM(require("react"), 1);
4280
+ var React40 = __toESM(require("react"), 1);
4092
4281
 
4093
4282
  // src/primitives/radio-group.tsx
4094
- var React38 = __toESM(require("react"), 1);
4283
+ var React39 = __toESM(require("react"), 1);
4095
4284
  var RadioGroupPrimitive = __toESM(require("@radix-ui/react-radio-group"), 1);
4096
4285
  var import_lucide_react14 = require("lucide-react");
4097
- var import_jsx_runtime42 = require("react/jsx-runtime");
4098
- var RadioGroup = React38.forwardRef(({ className, ...props }, ref) => {
4099
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4286
+ var import_jsx_runtime43 = require("react/jsx-runtime");
4287
+ var RadioGroup = React39.forwardRef(({ className, ...props }, ref) => {
4288
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4100
4289
  RadioGroupPrimitive.Root,
4101
4290
  {
4102
4291
  className: cn("grid gap-2", className),
@@ -4106,8 +4295,8 @@ var RadioGroup = React38.forwardRef(({ className, ...props }, ref) => {
4106
4295
  );
4107
4296
  });
4108
4297
  RadioGroup.displayName = RadioGroupPrimitive.Root.displayName;
4109
- var RadioGroupItem = React38.forwardRef(({ className, ...props }, ref) => {
4110
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4298
+ var RadioGroupItem = React39.forwardRef(({ className, ...props }, ref) => {
4299
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4111
4300
  RadioGroupPrimitive.Item,
4112
4301
  {
4113
4302
  ref,
@@ -4116,19 +4305,19 @@ var RadioGroupItem = React38.forwardRef(({ className, ...props }, ref) => {
4116
4305
  className
4117
4306
  ),
4118
4307
  ...props,
4119
- children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(RadioGroupPrimitive.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_lucide_react14.Circle, { className: "h-2.5 w-2.5 fill-current text-current" }) })
4308
+ children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(RadioGroupPrimitive.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_lucide_react14.Circle, { className: "h-2.5 w-2.5 fill-current text-current" }) })
4120
4309
  }
4121
4310
  );
4122
4311
  });
4123
4312
  RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
4124
4313
 
4125
4314
  // src/components/AdsRadioGroup/index.tsx
4126
- var import_jsx_runtime43 = require("react/jsx-runtime");
4315
+ var import_jsx_runtime44 = require("react/jsx-runtime");
4127
4316
  var radioGroupBaseClassName = "gap-3";
4128
4317
  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";
4129
- var RadioGroup2 = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(RadioGroup, { className: cn(radioGroupBaseClassName, className), ref, ...props }));
4318
+ var RadioGroup2 = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(RadioGroup, { className: cn(radioGroupBaseClassName, className), ref, ...props }));
4130
4319
  RadioGroup2.displayName = "RadioGroup";
4131
- var RadioGroupItem2 = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4320
+ var RadioGroupItem2 = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4132
4321
  RadioGroupItem,
4133
4322
  {
4134
4323
  className: cn(radioItemBaseClassName, className),
@@ -4137,7 +4326,7 @@ var RadioGroupItem2 = React39.forwardRef(({ className, ...props }, ref) => /* @_
4137
4326
  }
4138
4327
  ));
4139
4328
  RadioGroupItem2.displayName = "RadioGroupItem";
4140
- var AdsRadioGroup = React39.forwardRef(
4329
+ var AdsRadioGroup = React40.forwardRef(
4141
4330
  ({
4142
4331
  children,
4143
4332
  className,
@@ -4153,12 +4342,12 @@ var AdsRadioGroup = React39.forwardRef(
4153
4342
  helperText,
4154
4343
  id
4155
4344
  });
4156
- const helperNode = helperText ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(AdsFieldDescription, { id: description.helperId, children: helperText }) : null;
4157
- const errorNode = errorText ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(AdsFieldError, { id: description.errorId, children: errorText }) : null;
4158
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(AdsFieldItem, { children: [
4159
- label ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(AdsFieldLabel, { children: label }) : null,
4345
+ const helperNode = helperText ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(AdsFieldDescription, { id: description.helperId, children: helperText }) : null;
4346
+ const errorNode = errorText ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(AdsFieldError, { id: description.errorId, children: errorText }) : null;
4347
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(AdsFieldItem, { children: [
4348
+ label ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(AdsFieldLabel, { children: label }) : null,
4160
4349
  descriptionPlacement === "above" ? helperNode : null,
4161
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4350
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4162
4351
  RadioGroup2,
4163
4352
  {
4164
4353
  "aria-describedby": description.describedBy,
@@ -4174,11 +4363,11 @@ var AdsRadioGroup = React39.forwardRef(
4174
4363
  }
4175
4364
  );
4176
4365
  AdsRadioGroup.displayName = "AdsRadioGroup";
4177
- var AdsRadioGroupOption = React39.forwardRef(({ className, description, id, label, value, ...props }, ref) => {
4178
- const generatedId = React39.useId();
4366
+ var AdsRadioGroupOption = React40.forwardRef(({ className, description, id, label, value, ...props }, ref) => {
4367
+ const generatedId = React40.useId();
4179
4368
  const inputId = id ?? generatedId;
4180
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("label", { className: "flex w-full cursor-pointer items-start gap-2", htmlFor: inputId, children: [
4181
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4369
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("label", { className: "flex w-full cursor-pointer items-start gap-2", htmlFor: inputId, children: [
4370
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4182
4371
  RadioGroupItem2,
4183
4372
  {
4184
4373
  className: cn(className),
@@ -4188,20 +4377,20 @@ var AdsRadioGroupOption = React39.forwardRef(({ className, description, id, labe
4188
4377
  ...props
4189
4378
  }
4190
4379
  ),
4191
- /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-1.5", children: [
4192
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "text-sm leading-5 text-foreground", children: label }),
4193
- description ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(AdsFieldDescription, { className: "text-sm leading-5", children: description }) : null
4380
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-1.5", children: [
4381
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "text-sm leading-5 text-foreground", children: label }),
4382
+ description ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(AdsFieldDescription, { className: "text-sm leading-5", children: description }) : null
4194
4383
  ] })
4195
4384
  ] });
4196
4385
  });
4197
4386
  AdsRadioGroupOption.displayName = "AdsRadioGroupOption";
4198
- var AdsRadioGroupCardOption = React39.forwardRef(({ className, description, disabled, id, label, value, ...props }, ref) => {
4199
- const generatedId = React39.useId();
4387
+ var AdsRadioGroupCardOption = React40.forwardRef(({ className, description, disabled, id, label, value, ...props }, ref) => {
4388
+ const generatedId = React40.useId();
4200
4389
  const inputId = id ?? generatedId;
4201
4390
  const titleId = `${inputId}-label`;
4202
4391
  const descriptionId = description ? `${inputId}-description` : void 0;
4203
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "relative", children: [
4204
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4392
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "relative", children: [
4393
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4205
4394
  RadioGroupItem2,
4206
4395
  {
4207
4396
  "aria-describedby": descriptionId,
@@ -4214,7 +4403,7 @@ var AdsRadioGroupCardOption = React39.forwardRef(({ className, description, disa
4214
4403
  ...props
4215
4404
  }
4216
4405
  ),
4217
- /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
4406
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
4218
4407
  "div",
4219
4408
  {
4220
4409
  className: cn(
@@ -4223,16 +4412,16 @@ var AdsRadioGroupCardOption = React39.forwardRef(({ className, description, disa
4223
4412
  className
4224
4413
  ),
4225
4414
  children: [
4226
- /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-1.5", children: [
4227
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "text-sm font-medium leading-5 text-foreground", id: titleId, children: label }),
4228
- description ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(AdsFieldDescription, { className: "text-xs leading-4", id: descriptionId, children: description }) : null
4415
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-1.5", children: [
4416
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "text-sm font-medium leading-5 text-foreground", id: titleId, children: label }),
4417
+ description ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(AdsFieldDescription, { className: "text-xs leading-4", id: descriptionId, children: description }) : null
4229
4418
  ] }),
4230
- /* @__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)(
4419
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "flex h-full shrink-0 items-start justify-center pt-px", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4231
4420
  "div",
4232
4421
  {
4233
4422
  className: "grid h-4 w-4 place-content-center rounded-full border bg-card shadow-[0px_1px_2px_rgba(0,0,0,0.1)]",
4234
4423
  "data-indicator": true,
4235
- children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4424
+ children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4236
4425
  "span",
4237
4426
  {
4238
4427
  className: "h-2 w-2 rounded-full bg-primary transition-opacity",
@@ -4249,9 +4438,9 @@ var AdsRadioGroupCardOption = React39.forwardRef(({ className, description, disa
4249
4438
  AdsRadioGroupCardOption.displayName = "AdsRadioGroupCardOption";
4250
4439
 
4251
4440
  // src/primitives/table.tsx
4252
- var React40 = __toESM(require("react"), 1);
4253
- var import_jsx_runtime44 = require("react/jsx-runtime");
4254
- var Table = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4441
+ var React41 = __toESM(require("react"), 1);
4442
+ var import_jsx_runtime45 = require("react/jsx-runtime");
4443
+ var Table = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4255
4444
  "table",
4256
4445
  {
4257
4446
  ref,
@@ -4260,7 +4449,7 @@ var Table = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
4260
4449
  }
4261
4450
  ));
4262
4451
  Table.displayName = "Table";
4263
- var TableScrollArea = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4452
+ var TableScrollArea = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4264
4453
  "div",
4265
4454
  {
4266
4455
  ref,
@@ -4269,9 +4458,9 @@ var TableScrollArea = React40.forwardRef(({ className, ...props }, ref) => /* @_
4269
4458
  }
4270
4459
  ));
4271
4460
  TableScrollArea.displayName = "TableScrollArea";
4272
- var TableHeader = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("thead", { ref, className: cn("[&_tr]:border-b", className), ...props }));
4461
+ var TableHeader = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("thead", { ref, className: cn("[&_tr]:border-b", className), ...props }));
4273
4462
  TableHeader.displayName = "TableHeader";
4274
- var TableBody = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4463
+ var TableBody = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4275
4464
  "tbody",
4276
4465
  {
4277
4466
  ref,
@@ -4280,7 +4469,7 @@ var TableBody = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE_
4280
4469
  }
4281
4470
  ));
4282
4471
  TableBody.displayName = "TableBody";
4283
- var TableFooter = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4472
+ var TableFooter = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4284
4473
  "tfoot",
4285
4474
  {
4286
4475
  ref,
@@ -4292,7 +4481,7 @@ var TableFooter = React40.forwardRef(({ className, ...props }, ref) => /* @__PUR
4292
4481
  }
4293
4482
  ));
4294
4483
  TableFooter.displayName = "TableFooter";
4295
- var TableRow = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4484
+ var TableRow = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4296
4485
  "tr",
4297
4486
  {
4298
4487
  ref,
@@ -4304,7 +4493,7 @@ var TableRow = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__
4304
4493
  }
4305
4494
  ));
4306
4495
  TableRow.displayName = "TableRow";
4307
- var TableHead = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4496
+ var TableHead = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4308
4497
  "th",
4309
4498
  {
4310
4499
  ref,
@@ -4316,7 +4505,7 @@ var TableHead = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE_
4316
4505
  }
4317
4506
  ));
4318
4507
  TableHead.displayName = "TableHead";
4319
- var TableCell = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4508
+ var TableCell = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4320
4509
  "td",
4321
4510
  {
4322
4511
  ref,
@@ -4325,7 +4514,7 @@ var TableCell = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE_
4325
4514
  }
4326
4515
  ));
4327
4516
  TableCell.displayName = "TableCell";
4328
- var TableCaption = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4517
+ var TableCaption = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4329
4518
  "caption",
4330
4519
  {
4331
4520
  ref,
@@ -4334,21 +4523,21 @@ var TableCaption = React40.forwardRef(({ className, ...props }, ref) => /* @__PU
4334
4523
  }
4335
4524
  ));
4336
4525
  TableCaption.displayName = "TableCaption";
4337
- var TableColGroup = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("colgroup", { ref, className: cn(className), ...props }));
4526
+ var TableColGroup = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("colgroup", { ref, className: cn(className), ...props }));
4338
4527
  TableColGroup.displayName = "TableColGroup";
4339
- var TableCol = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("col", { ref, className: cn(className), ...props }));
4528
+ var TableCol = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("col", { ref, className: cn(className), ...props }));
4340
4529
  TableCol.displayName = "TableCol";
4341
4530
 
4342
4531
  // src/components/AdsTable/index.tsx
4343
- var import_jsx_runtime45 = require("react/jsx-runtime");
4344
- var AdsTableStickyHeaderContext = React41.createContext(false);
4532
+ var import_jsx_runtime46 = require("react/jsx-runtime");
4533
+ var AdsTableStickyHeaderContext = React42.createContext(false);
4345
4534
  function resolveLength(value) {
4346
4535
  if (value === void 0) {
4347
4536
  return void 0;
4348
4537
  }
4349
4538
  return typeof value === "number" ? `${value}px` : value;
4350
4539
  }
4351
- var AdsTableSurface = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4540
+ var AdsTableSurface = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4352
4541
  "div",
4353
4542
  {
4354
4543
  ref,
@@ -4360,8 +4549,8 @@ var AdsTableSurface = React41.forwardRef(({ className, ...props }, ref) => /* @_
4360
4549
  }
4361
4550
  ));
4362
4551
  AdsTableSurface.displayName = "AdsTableSurface";
4363
- var AdsTableRoot = React41.forwardRef(
4364
- ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4552
+ var AdsTableRoot = React42.forwardRef(
4553
+ ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4365
4554
  Table,
4366
4555
  {
4367
4556
  ref,
@@ -4376,7 +4565,7 @@ var AdsTableRoot = React41.forwardRef(
4376
4565
  )
4377
4566
  );
4378
4567
  AdsTableRoot.displayName = "AdsTableRoot";
4379
- var AdsTableScrollArea = React41.forwardRef(
4568
+ var AdsTableScrollArea = React42.forwardRef(
4380
4569
  ({
4381
4570
  children,
4382
4571
  className,
@@ -4386,7 +4575,7 @@ var AdsTableScrollArea = React41.forwardRef(
4386
4575
  x,
4387
4576
  y,
4388
4577
  ...props
4389
- }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(AdsTableStickyHeaderContext.Provider, { value: stickyHeader, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4578
+ }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(AdsTableStickyHeaderContext.Provider, { value: stickyHeader, children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4390
4579
  TableScrollArea,
4391
4580
  {
4392
4581
  ref,
@@ -4408,15 +4597,15 @@ var AdsTableScrollArea = React41.forwardRef(
4408
4597
  ) })
4409
4598
  );
4410
4599
  AdsTableScrollArea.displayName = "AdsTableScrollArea";
4411
- var AdsTable = React41.forwardRef(
4412
- ({ 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 }) }) })
4600
+ var AdsTable = React42.forwardRef(
4601
+ ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(AdsTableSurface, { children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(AdsTableScrollArea, { children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(AdsTableRoot, { ref, className, ...props }) }) })
4413
4602
  );
4414
4603
  AdsTable.displayName = "AdsTable";
4415
- var AdsTableColGroup = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(TableColGroup, { ref, className, ...props }));
4604
+ var AdsTableColGroup = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(TableColGroup, { ref, className, ...props }));
4416
4605
  AdsTableColGroup.displayName = "AdsTableColGroup";
4417
- var AdsTableCol = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(TableCol, { ref, className, ...props }));
4606
+ var AdsTableCol = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(TableCol, { ref, className, ...props }));
4418
4607
  AdsTableCol.displayName = "AdsTableCol";
4419
- var AdsTableHeader = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4608
+ var AdsTableHeader = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4420
4609
  TableHeader,
4421
4610
  {
4422
4611
  ref,
@@ -4425,7 +4614,7 @@ var AdsTableHeader = React41.forwardRef(({ className, ...props }, ref) => /* @__
4425
4614
  }
4426
4615
  ));
4427
4616
  AdsTableHeader.displayName = "AdsTableHeader";
4428
- var AdsTableBody = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4617
+ var AdsTableBody = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4429
4618
  TableBody,
4430
4619
  {
4431
4620
  ref,
@@ -4434,7 +4623,7 @@ var AdsTableBody = React41.forwardRef(({ className, ...props }, ref) => /* @__PU
4434
4623
  }
4435
4624
  ));
4436
4625
  AdsTableBody.displayName = "AdsTableBody";
4437
- var AdsTableFooter = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4626
+ var AdsTableFooter = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4438
4627
  TableFooter,
4439
4628
  {
4440
4629
  ref,
@@ -4447,7 +4636,7 @@ var AdsTableFooter = React41.forwardRef(({ className, ...props }, ref) => /* @__
4447
4636
  }
4448
4637
  ));
4449
4638
  AdsTableFooter.displayName = "AdsTableFooter";
4450
- var AdsTableRow = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4639
+ var AdsTableRow = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4451
4640
  TableRow,
4452
4641
  {
4453
4642
  ref,
@@ -4459,9 +4648,9 @@ var AdsTableRow = React41.forwardRef(({ className, ...props }, ref) => /* @__PUR
4459
4648
  }
4460
4649
  ));
4461
4650
  AdsTableRow.displayName = "AdsTableRow";
4462
- var AdsTableHead = React41.forwardRef(({ className, ...props }, ref) => {
4463
- const stickyHeader = React41.useContext(AdsTableStickyHeaderContext);
4464
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4651
+ var AdsTableHead = React42.forwardRef(({ className, ...props }, ref) => {
4652
+ const stickyHeader = React42.useContext(AdsTableStickyHeaderContext);
4653
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4465
4654
  TableHead,
4466
4655
  {
4467
4656
  ref,
@@ -4476,7 +4665,7 @@ var AdsTableHead = React41.forwardRef(({ className, ...props }, ref) => {
4476
4665
  );
4477
4666
  });
4478
4667
  AdsTableHead.displayName = "AdsTableHead";
4479
- var AdsTableCell = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4668
+ var AdsTableCell = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4480
4669
  TableCell,
4481
4670
  {
4482
4671
  ref,
@@ -4489,7 +4678,7 @@ var AdsTableCell = React41.forwardRef(({ className, ...props }, ref) => /* @__PU
4489
4678
  }
4490
4679
  ));
4491
4680
  AdsTableCell.displayName = "AdsTableCell";
4492
- var AdsTableCaption = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4681
+ var AdsTableCaption = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4493
4682
  TableCaption,
4494
4683
  {
4495
4684
  ref,
@@ -4498,12 +4687,12 @@ var AdsTableCaption = React41.forwardRef(({ className, ...props }, ref) => /* @_
4498
4687
  }
4499
4688
  ));
4500
4689
  AdsTableCaption.displayName = "AdsTableCaption";
4501
- var AdsTableSortHeader = React41.forwardRef(
4690
+ var AdsTableSortHeader = React42.forwardRef(
4502
4691
  ({ className, disabled = false, onToggleSort, sortOrder, title, ...props }, ref) => {
4503
4692
  const { messages } = useAdsI18n();
4504
4693
  const nextOrder = sortOrder === null ? "ascend" : sortOrder === "ascend" ? "descend" : null;
4505
4694
  const actionLabel = nextOrder === "ascend" ? messages.table.sortAscending : nextOrder === "descend" ? messages.table.sortDescending : messages.table.clearSort;
4506
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(AdsTableHead, { ref, className, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
4695
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(AdsTableHead, { ref, className, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
4507
4696
  Button,
4508
4697
  {
4509
4698
  "aria-label": `${title} ${actionLabel}`,
@@ -4519,15 +4708,15 @@ var AdsTableSortHeader = React41.forwardRef(
4519
4708
  type: "button",
4520
4709
  variant: "ghost",
4521
4710
  children: [
4522
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { className: "truncate", children: title }),
4523
- /* @__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_react15.ChevronDown, { className: "h-4 w-4 rotate-180" }) : sortOrder === "descend" ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_lucide_react15.ChevronDown, { className: "h-4 w-4" }) : /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_lucide_react15.ChevronDown, { className: "h-4 w-4 opacity-60" }) })
4711
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "truncate", children: title }),
4712
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "inline-flex h-4 w-4 items-center justify-center text-icon-muted", children: sortOrder === "ascend" ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_lucide_react15.ChevronDown, { className: "h-4 w-4 rotate-180" }) : sortOrder === "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" }) })
4524
4713
  ]
4525
4714
  }
4526
4715
  ) });
4527
4716
  }
4528
4717
  );
4529
4718
  AdsTableSortHeader.displayName = "AdsTableSortHeader";
4530
- var AdsTableSelectionCell = React41.forwardRef(
4719
+ var AdsTableSelectionCell = React42.forwardRef(
4531
4720
  ({
4532
4721
  checked = false,
4533
4722
  className,
@@ -4538,7 +4727,7 @@ var AdsTableSelectionCell = React41.forwardRef(
4538
4727
  ...props
4539
4728
  }, ref) => {
4540
4729
  const { messages } = useAdsI18n();
4541
- 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)(
4730
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(AdsTableCell, { ref, className: cn("w-12 p-2", className), ...props, children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "flex items-center justify-center", children: type === "radio" ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4542
4731
  RadioGroupItem2,
4543
4732
  {
4544
4733
  "aria-label": messages.table.selectRow,
@@ -4550,7 +4739,7 @@ var AdsTableSelectionCell = React41.forwardRef(
4550
4739
  },
4551
4740
  value
4552
4741
  }
4553
- ) : /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4742
+ ) : /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4554
4743
  Checkbox2,
4555
4744
  {
4556
4745
  "aria-label": messages.table.selectRow,
@@ -4564,10 +4753,10 @@ var AdsTableSelectionCell = React41.forwardRef(
4564
4753
  }
4565
4754
  );
4566
4755
  AdsTableSelectionCell.displayName = "AdsTableSelectionCell";
4567
- var AdsTableExpandCell = React41.forwardRef(
4756
+ var AdsTableExpandCell = React42.forwardRef(
4568
4757
  ({ className, disabled = false, expanded = false, onToggle, ...props }, ref) => {
4569
4758
  const { messages } = useAdsI18n();
4570
- 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)(
4759
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(AdsTableCell, { ref, className: cn("w-12 p-2", className), ...props, children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4571
4760
  Button,
4572
4761
  {
4573
4762
  "aria-label": expanded ? messages.table.collapseRow : messages.table.expandRow,
@@ -4584,7 +4773,7 @@ var AdsTableExpandCell = React41.forwardRef(
4584
4773
  size: "sm",
4585
4774
  type: "button",
4586
4775
  variant: "ghost",
4587
- children: expanded ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_lucide_react15.ChevronDown, { className: "h-4 w-4" }) : /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_lucide_react15.ChevronRight, { className: "h-4 w-4" })
4776
+ children: expanded ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_lucide_react15.ChevronDown, { className: "h-4 w-4" }) : /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_lucide_react15.ChevronRight, { className: "h-4 w-4" })
4588
4777
  }
4589
4778
  ) }) });
4590
4779
  }
@@ -4592,7 +4781,7 @@ var AdsTableExpandCell = React41.forwardRef(
4592
4781
  AdsTableExpandCell.displayName = "AdsTableExpandCell";
4593
4782
 
4594
4783
  // src/components/AdsDataTable/index.tsx
4595
- var import_jsx_runtime46 = require("react/jsx-runtime");
4784
+ var import_jsx_runtime47 = require("react/jsx-runtime");
4596
4785
  var SKELETON_ROW_COUNT = 4;
4597
4786
  var FLEX_WIDTH_UNIT = 160;
4598
4787
  var sizeClassNames = {
@@ -4729,7 +4918,7 @@ function getCellStyle(column, overrideWidth) {
4729
4918
  return Object.keys(style).length > 0 ? style : void 0;
4730
4919
  }
4731
4920
  function renderCellValue(value, ellipsis) {
4732
- if (React42.isValidElement(value)) {
4921
+ if (React43.isValidElement(value)) {
4733
4922
  return value;
4734
4923
  }
4735
4924
  if (value === null || value === void 0) {
@@ -4739,7 +4928,7 @@ function renderCellValue(value, ellipsis) {
4739
4928
  if (ellipsis) {
4740
4929
  const shouldShowTitle = typeof ellipsis === "object" ? ellipsis.showTitle !== false : true;
4741
4930
  const maxWidth = typeof ellipsis === "object" ? ellipsis.maxWidth : void 0;
4742
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4931
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
4743
4932
  "div",
4744
4933
  {
4745
4934
  className: "truncate",
@@ -4854,48 +5043,48 @@ function AdsDataTable({
4854
5043
  suppressRowClickSelection = true
4855
5044
  }) {
4856
5045
  const { messages } = useAdsI18n();
4857
- const resolvedColumns = React42.useMemo(() => columns.filter(Boolean), [columns]);
4858
- const [internalSortState, setInternalSortState] = React42.useState(
5046
+ const resolvedColumns = React43.useMemo(() => columns.filter(Boolean), [columns]);
5047
+ const [internalSortState, setInternalSortState] = React43.useState(
4859
5048
  () => getInitialSortState(resolvedColumns)
4860
5049
  );
4861
- const [internalSelectedKeys, setInternalSelectedKeys] = React42.useState(
5050
+ const [internalSelectedKeys, setInternalSelectedKeys] = React43.useState(
4862
5051
  rowSelection?.defaultSelectedRowKeys ?? rowSelection?.selectedRowKeys ?? []
4863
5052
  );
4864
- const [internalFilterValues, setInternalFilterValues] = React42.useState(
5053
+ const [internalFilterValues, setInternalFilterValues] = React43.useState(
4865
5054
  () => getInitialFilterValues(resolvedColumns)
4866
5055
  );
4867
- const [internalExpandedKeys, setInternalExpandedKeys] = React42.useState(
5056
+ const [internalExpandedKeys, setInternalExpandedKeys] = React43.useState(
4868
5057
  expandable?.defaultExpandedRowKeys ?? expandable?.expandedRowKeys ?? []
4869
5058
  );
4870
- const [internalColumnWidths, setInternalColumnWidths] = React42.useState({});
4871
- const [internalCurrentPage, setInternalCurrentPage] = React42.useState(
5059
+ const [internalColumnWidths, setInternalColumnWidths] = React43.useState({});
5060
+ const [internalCurrentPage, setInternalCurrentPage] = React43.useState(
4872
5061
  pagination !== false ? pagination.defaultCurrent ?? pagination.current ?? 1 : 1
4873
5062
  );
4874
- const [internalPageSize, setInternalPageSize] = React42.useState(
5063
+ const [internalPageSize, setInternalPageSize] = React43.useState(
4875
5064
  pagination !== false ? pagination.defaultPageSize ?? pagination.pageSize ?? 10 : 10
4876
5065
  );
4877
- const [activeResize, setActiveResize] = React42.useState(null);
4878
- React42.useEffect(() => {
5066
+ const [activeResize, setActiveResize] = React43.useState(null);
5067
+ React43.useEffect(() => {
4879
5068
  if (rowSelection?.selectedRowKeys !== void 0) {
4880
5069
  setInternalSelectedKeys(rowSelection.selectedRowKeys);
4881
5070
  }
4882
5071
  }, [rowSelection?.selectedRowKeys]);
4883
- React42.useEffect(() => {
5072
+ React43.useEffect(() => {
4884
5073
  if (expandable?.expandedRowKeys !== void 0) {
4885
5074
  setInternalExpandedKeys(expandable.expandedRowKeys);
4886
5075
  }
4887
5076
  }, [expandable?.expandedRowKeys]);
4888
- React42.useEffect(() => {
5077
+ React43.useEffect(() => {
4889
5078
  if (pagination !== false && pagination.current !== void 0) {
4890
5079
  setInternalCurrentPage(pagination.current);
4891
5080
  }
4892
5081
  }, [pagination]);
4893
- React42.useEffect(() => {
5082
+ React43.useEffect(() => {
4894
5083
  if (pagination !== false && pagination.pageSize !== void 0) {
4895
5084
  setInternalPageSize(pagination.pageSize);
4896
5085
  }
4897
5086
  }, [pagination]);
4898
- React42.useEffect(() => {
5087
+ React43.useEffect(() => {
4899
5088
  setInternalFilterValues((previous) => {
4900
5089
  const next = { ...previous };
4901
5090
  let hasChanged = false;
@@ -4916,7 +5105,7 @@ function AdsDataTable({
4916
5105
  return hasChanged ? next : previous;
4917
5106
  });
4918
5107
  }, [resolvedColumns]);
4919
- const controlledSortState = React42.useMemo(() => {
5108
+ const controlledSortState = React43.useMemo(() => {
4920
5109
  const columnIndex = resolvedColumns.findIndex((column2) => column2.sortOrder !== void 0);
4921
5110
  if (columnIndex === -1) {
4922
5111
  return null;
@@ -4937,12 +5126,12 @@ function AdsDataTable({
4937
5126
  const columnCount = resolvedColumns.length + Number(hasSelectionColumn) + Number(hasExpandableColumn);
4938
5127
  const paginationMode = pagination === false ? "client" : pagination.mode ?? "client";
4939
5128
  const allowsRowSelectionByClick = Boolean(rowSelection) && !suppressRowClickSelection;
4940
- const spinnerLoadingHeight = React42.useMemo(
5129
+ const spinnerLoadingHeight = React43.useMemo(
4941
5130
  () => getSpinnerLoadingHeight(scroll?.y, density),
4942
5131
  [density, scroll?.y]
4943
5132
  );
4944
5133
  const expandedRowContentClassName = expandedRowSurface === "plain" ? "bg-transparent p-4" : expandedRowSurface === "subtle" ? "mx-6 my-4 rounded-[20px] border border-border bg-transparent p-4" : "border-t border-border bg-popover/40 p-4";
4945
- const filterValues = React42.useMemo(
5134
+ const filterValues = React43.useMemo(
4946
5135
  () => resolvedColumns.reduce((accumulator, column, index) => {
4947
5136
  const columnKey = getColumnKey(column, index);
4948
5137
  accumulator[columnKey] = column.filterValue ?? internalFilterValues[columnKey] ?? "";
@@ -4950,7 +5139,7 @@ function AdsDataTable({
4950
5139
  }, {}),
4951
5140
  [internalFilterValues, resolvedColumns]
4952
5141
  );
4953
- const filteredData = React42.useMemo(() => {
5142
+ const filteredData = React43.useMemo(() => {
4954
5143
  const filterableColumns = resolvedColumns.filter((column) => column.filter);
4955
5144
  if (filterableColumns.length === 0) {
4956
5145
  return dataSource;
@@ -4970,7 +5159,7 @@ function AdsDataTable({
4970
5159
  })
4971
5160
  );
4972
5161
  }, [dataSource, filterValues, resolvedColumns]);
4973
- const sortedData = React42.useMemo(() => {
5162
+ const sortedData = React43.useMemo(() => {
4974
5163
  if (!sortState || !sortState.column || sortState.order === null) {
4975
5164
  return filteredData;
4976
5165
  }
@@ -4997,7 +5186,7 @@ function AdsDataTable({
4997
5186
  Math.max(1, pagination.current ?? internalCurrentPage),
4998
5187
  totalPages
4999
5188
  );
5000
- React42.useEffect(() => {
5189
+ React43.useEffect(() => {
5001
5190
  if (pagination === false || pagination.current !== void 0) {
5002
5191
  return;
5003
5192
  }
@@ -5005,14 +5194,14 @@ function AdsDataTable({
5005
5194
  setInternalCurrentPage(currentPage);
5006
5195
  }
5007
5196
  }, [currentPage, internalCurrentPage, pagination]);
5008
- const paginatedData = React42.useMemo(() => {
5197
+ const paginatedData = React43.useMemo(() => {
5009
5198
  if (pagination === false || paginationMode === "server") {
5010
5199
  return sortedData;
5011
5200
  }
5012
5201
  const start = (currentPage - 1) * currentPageSize;
5013
5202
  return sortedData.slice(start, start + currentPageSize);
5014
5203
  }, [currentPage, currentPageSize, pagination, paginationMode, sortedData]);
5015
- const handleSortChange = React42.useCallback(
5204
+ const handleSortChange = React43.useCallback(
5016
5205
  (column, columnKey, nextOrder) => {
5017
5206
  const nextSortState = nextOrder === null ? null : {
5018
5207
  column,
@@ -5026,7 +5215,7 @@ function AdsDataTable({
5026
5215
  },
5027
5216
  [controlledSortState, onSortChange]
5028
5217
  );
5029
- const handleFilterChange = React42.useCallback(
5218
+ const handleFilterChange = React43.useCallback(
5030
5219
  (column, columnKey, nextValue) => {
5031
5220
  if (column.filterValue === void 0) {
5032
5221
  setInternalFilterValues((previous) => ({
@@ -5041,7 +5230,7 @@ function AdsDataTable({
5041
5230
  },
5042
5231
  [pagination]
5043
5232
  );
5044
- const updateSelection = React42.useCallback(
5233
+ const updateSelection = React43.useCallback(
5045
5234
  (nextKeys) => {
5046
5235
  if (!rowSelection) {
5047
5236
  return;
@@ -5056,7 +5245,7 @@ function AdsDataTable({
5056
5245
  },
5057
5246
  [dataSource, rowKey, rowSelection]
5058
5247
  );
5059
- const toggleSelectionFromRowClick = React42.useCallback(
5248
+ const toggleSelectionFromRowClick = React43.useCallback(
5060
5249
  (record, recordKey) => {
5061
5250
  if (!allowsRowSelectionByClick || !rowSelection) {
5062
5251
  return;
@@ -5070,7 +5259,7 @@ function AdsDataTable({
5070
5259
  },
5071
5260
  [allowsRowSelectionByClick, rowSelection, selectedKeys, updateSelection]
5072
5261
  );
5073
- const toggleExpanded = React42.useCallback(
5262
+ const toggleExpanded = React43.useCallback(
5074
5263
  (record, recordKey) => {
5075
5264
  if (!expandable?.expandedRowRender) {
5076
5265
  return;
@@ -5087,11 +5276,11 @@ function AdsDataTable({
5087
5276
  },
5088
5277
  [expandable, expandedKeys]
5089
5278
  );
5090
- 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: [
5091
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(AdsEmptyTitle, { children: emptyText ?? messages.table.noDataAvailable }),
5092
- typeof emptyText === "string" ? null : /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(AdsEmptyDescription, { children: messages.table.noDataAvailable })
5279
+ const renderedEmptyState = emptyState ?? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(AdsEmpty, { className: "min-h-[220px] py-12", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(AdsEmptyContent, { children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(AdsEmptyHeader, { children: [
5280
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(AdsEmptyTitle, { children: emptyText ?? messages.table.noDataAvailable }),
5281
+ typeof emptyText === "string" ? null : /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(AdsEmptyDescription, { children: messages.table.noDataAvailable })
5093
5282
  ] }) }) });
5094
- const handlePaginationChange = React42.useCallback(
5283
+ const handlePaginationChange = React43.useCallback(
5095
5284
  (page, nextPageSize) => {
5096
5285
  if (pagination === false) {
5097
5286
  return;
@@ -5106,7 +5295,7 @@ function AdsDataTable({
5106
5295
  },
5107
5296
  [currentPageSize, pagination]
5108
5297
  );
5109
- const handlePageSizeChange = React42.useCallback(
5298
+ const handlePageSizeChange = React43.useCallback(
5110
5299
  (nextPageSize, page) => {
5111
5300
  if (pagination === false) {
5112
5301
  return;
@@ -5121,28 +5310,28 @@ function AdsDataTable({
5121
5310
  },
5122
5311
  [pagination]
5123
5312
  );
5124
- const visibleRowEntries = React42.useMemo(
5313
+ const visibleRowEntries = React43.useMemo(
5125
5314
  () => paginatedData.map((record, index) => ({
5126
5315
  key: resolveRowKey(record, index, rowKey),
5127
5316
  record
5128
5317
  })),
5129
5318
  [paginatedData, rowKey]
5130
5319
  );
5131
- const visibleSelectableKeys = React42.useMemo(
5320
+ const visibleSelectableKeys = React43.useMemo(
5132
5321
  () => visibleRowEntries.map((entry) => entry.key),
5133
5322
  [visibleRowEntries]
5134
5323
  );
5135
- const selectedVisibleCount = React42.useMemo(
5324
+ const selectedVisibleCount = React43.useMemo(
5136
5325
  () => visibleSelectableKeys.filter((key) => selectedKeys.includes(key)).length,
5137
5326
  [selectedKeys, visibleSelectableKeys]
5138
5327
  );
5139
5328
  const allVisibleRowsSelected = visibleSelectableKeys.length > 0 && selectedVisibleCount === visibleSelectableKeys.length;
5140
5329
  const someVisibleRowsSelected = selectedVisibleCount > 0 && selectedVisibleCount < visibleSelectableKeys.length;
5141
- const getColumnWidthOverride = React42.useCallback(
5330
+ const getColumnWidthOverride = React43.useCallback(
5142
5331
  (column, columnKey) => internalColumnWidths[columnKey] ?? getResolvedColumnWidth(column),
5143
5332
  [internalColumnWidths]
5144
5333
  );
5145
- const startColumnResize = React42.useCallback(
5334
+ const startColumnResize = React43.useCallback(
5146
5335
  (event, column, columnKey) => {
5147
5336
  event.preventDefault();
5148
5337
  event.stopPropagation();
@@ -5173,7 +5362,7 @@ function AdsDataTable({
5173
5362
  },
5174
5363
  [internalColumnWidths]
5175
5364
  );
5176
- const renderColumnHeader = React42.useCallback(
5365
+ const renderColumnHeader = React43.useCallback(
5177
5366
  (column, columnKey, columnSortOrder) => {
5178
5367
  const headerTitle = getColumnHeader(column, columnKey);
5179
5368
  const hasSorter = Boolean(column.sorter);
@@ -5184,9 +5373,9 @@ function AdsDataTable({
5184
5373
  }
5185
5374
  const nextOrder = columnSortOrder === null ? "ascend" : columnSortOrder === "ascend" ? "descend" : null;
5186
5375
  const actionLabel = nextOrder === "ascend" ? messages.table.sortAscending : nextOrder === "descend" ? messages.table.sortDescending : messages.table.clearSort;
5187
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "relative flex min-w-0 items-center gap-2 pr-3", children: [
5188
- /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "flex min-w-0 flex-1 items-center justify-between gap-2", children: [
5189
- hasSorter ? /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
5376
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "relative flex min-w-0 items-center gap-2 pr-3", children: [
5377
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex min-w-0 flex-1 items-center justify-between gap-2", children: [
5378
+ hasSorter ? /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
5190
5379
  Button,
5191
5380
  {
5192
5381
  "aria-label": `${headerTitle} ${actionLabel}`,
@@ -5199,13 +5388,13 @@ function AdsDataTable({
5199
5388
  type: "button",
5200
5389
  variant: "ghost",
5201
5390
  children: [
5202
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "truncate", children: headerTitle }),
5203
- /* @__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_react16.ChevronDown, { className: "h-4 w-4 rotate-180" }) : columnSortOrder === "descend" ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_lucide_react16.ChevronDown, { className: "h-4 w-4" }) : /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_lucide_react16.ChevronDown, { className: "h-4 w-4 opacity-60" }) })
5391
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "truncate", children: headerTitle }),
5392
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "inline-flex h-4 w-4 items-center justify-center text-icon-muted", children: columnSortOrder === "ascend" ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_lucide_react16.ChevronDown, { className: "h-4 w-4 rotate-180" }) : columnSortOrder === "descend" ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_lucide_react16.ChevronDown, { className: "h-4 w-4" }) : /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_lucide_react16.ChevronDown, { className: "h-4 w-4 opacity-60" }) })
5204
5393
  ]
5205
5394
  }
5206
- ) : /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "truncate", children: headerTitle }),
5207
- hasFilter ? /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(AdsPopover, { children: [
5208
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(AdsPopoverTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
5395
+ ) : /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "truncate", children: headerTitle }),
5396
+ hasFilter ? /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(AdsPopover, { children: [
5397
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(AdsPopoverTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
5209
5398
  Button,
5210
5399
  {
5211
5400
  "aria-label": `${headerTitle} ${messages.table.filterColumn}`,
@@ -5217,10 +5406,10 @@ function AdsDataTable({
5217
5406
  size: "sm",
5218
5407
  type: "button",
5219
5408
  variant: "ghost",
5220
- children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_lucide_react16.Filter, { className: "h-3.5 w-3.5" })
5409
+ children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_lucide_react16.Filter, { className: "h-3.5 w-3.5" })
5221
5410
  }
5222
5411
  ) }),
5223
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(AdsPopoverContent, { align: "end", className: "w-64", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
5412
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(AdsPopoverContent, { align: "end", className: "w-64", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
5224
5413
  AdsInput,
5225
5414
  {
5226
5415
  clearable: true,
@@ -5233,7 +5422,7 @@ function AdsDataTable({
5233
5422
  ) })
5234
5423
  ] }) : null
5235
5424
  ] }),
5236
- hasResizeHandle ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
5425
+ hasResizeHandle ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
5237
5426
  "span",
5238
5427
  {
5239
5428
  "aria-label": `Resize ${headerTitle} column`,
@@ -5251,12 +5440,12 @@ function AdsDataTable({
5251
5440
  },
5252
5441
  [activeResize?.columnKey, filterValues, handleFilterChange, handleSortChange, messages.table, startColumnResize]
5253
5442
  );
5254
- const tableNode = /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(AdsTableSurface, { className: cn("flex min-h-0 flex-1 flex-col", className), children: [
5255
- /* @__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: [
5256
- /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(AdsTableColGroup, { children: [
5257
- hasSelectionColumn ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(AdsTableCol, { style: { width: rowSelection?.columnWidth ?? 48 } }) : null,
5258
- hasExpandableColumn ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(AdsTableCol, { style: { width: 48 } }) : null,
5259
- resolvedColumns.map((column, index) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
5443
+ const tableNode = /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(AdsTableSurface, { className: cn("flex min-h-0 flex-1 flex-col", className), children: [
5444
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(AdsTableScrollArea, { fill, stickyHeader: sticky, x: scroll?.x, y: scroll?.y, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(AdsTableRoot, { className: tableClassName, children: [
5445
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(AdsTableColGroup, { children: [
5446
+ hasSelectionColumn ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(AdsTableCol, { style: { width: rowSelection?.columnWidth ?? 48 } }) : null,
5447
+ hasExpandableColumn ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(AdsTableCol, { style: { width: 48 } }) : null,
5448
+ resolvedColumns.map((column, index) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
5260
5449
  AdsTableCol,
5261
5450
  {
5262
5451
  style: getCellStyle(column, getColumnWidthOverride(column, getColumnKey(column, index)))
@@ -5264,8 +5453,8 @@ function AdsDataTable({
5264
5453
  getColumnKey(column, index)
5265
5454
  ))
5266
5455
  ] }),
5267
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(AdsTableHeader, { children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(AdsTableRow, { children: [
5268
- 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)(
5456
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(AdsTableHeader, { children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(AdsTableRow, { children: [
5457
+ hasSelectionColumn ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(AdsTableHead, { className: "w-12 p-2", children: rowSelection?.type !== "radio" && !rowSelection?.hideSelectAll ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
5269
5458
  Checkbox2,
5270
5459
  {
5271
5460
  "aria-label": messages.table.selectAllRows,
@@ -5282,11 +5471,11 @@ function AdsDataTable({
5282
5471
  onClick: (event) => event.stopPropagation()
5283
5472
  }
5284
5473
  ) }) : null }) : null,
5285
- hasExpandableColumn ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(AdsTableHead, { className: "w-12 p-2" }) : null,
5474
+ hasExpandableColumn ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(AdsTableHead, { className: "w-12 p-2" }) : null,
5286
5475
  resolvedColumns.map((column, index) => {
5287
5476
  const columnKey = getColumnKey(column, index);
5288
5477
  const columnSortOrder = sortState?.columnKey === columnKey ? sortState.order : column.sortOrder ?? null;
5289
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
5478
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
5290
5479
  AdsTableHead,
5291
5480
  {
5292
5481
  className: cn(density.head, column.className, column.headerClassName),
@@ -5297,13 +5486,13 @@ function AdsDataTable({
5297
5486
  );
5298
5487
  })
5299
5488
  ] }) }),
5300
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(AdsTableBody, { children: loading && loadingVariant === "spinner" ? [
5301
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(AdsTableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
5489
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(AdsTableBody, { children: loading && loadingVariant === "spinner" ? [
5490
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(AdsTableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
5302
5491
  AdsTableCell,
5303
5492
  {
5304
5493
  className: "p-0",
5305
5494
  colSpan: columnCount,
5306
- children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
5495
+ children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
5307
5496
  "div",
5308
5497
  {
5309
5498
  "aria-label": messages.table.loadingRows,
@@ -5311,19 +5500,19 @@ function AdsDataTable({
5311
5500
  className: "flex items-center justify-center px-6 py-8 text-foreground",
5312
5501
  role: "status",
5313
5502
  style: { minHeight: spinnerLoadingHeight },
5314
- children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(AdsSpinner, { size: "lg", tone: "foreground" })
5503
+ children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(AdsSpinner, { size: "lg", tone: "foreground" })
5315
5504
  }
5316
5505
  )
5317
5506
  }
5318
5507
  ) }, "spinner-row")
5319
- ] : loading ? Array.from({ length: SKELETON_ROW_COUNT }, (_, skeletonIndex) => /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(AdsTableRow, { children: [
5320
- 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,
5321
- 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,
5322
- resolvedColumns.map((column, index) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
5508
+ ] : loading ? Array.from({ length: SKELETON_ROW_COUNT }, (_, skeletonIndex) => /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(AdsTableRow, { children: [
5509
+ hasSelectionColumn ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(AdsTableCell, { className: "w-12 p-2", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(AdsSkeleton, { className: "h-4 w-4 rounded-[4px]" }) }) : null,
5510
+ hasExpandableColumn ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(AdsTableCell, { className: "w-12 p-2", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(AdsSkeleton, { className: "h-4 w-4 rounded-[4px]" }) }) : null,
5511
+ resolvedColumns.map((column, index) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
5323
5512
  AdsTableCell,
5324
5513
  {
5325
5514
  className: cn(density.cell, column.className),
5326
- children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(AdsSkeleton, { className: "h-4 w-full rounded" })
5515
+ children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(AdsSkeleton, { className: "h-4 w-full rounded" })
5327
5516
  },
5328
5517
  `${getColumnKey(column, index)}-${skeletonIndex}`
5329
5518
  ))
@@ -5332,7 +5521,7 @@ function AdsDataTable({
5332
5521
  const isExpanded = expandedKeys.includes(recordKey);
5333
5522
  const canExpand = !!expandable?.expandedRowRender && (!expandable.rowExpandable || expandable.rowExpandable(record));
5334
5523
  const dataRowClassName = typeof rowClassName === "function" ? rowClassName(record, index) : rowClassName;
5335
- const row = /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
5524
+ const row = /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
5336
5525
  AdsTableRow,
5337
5526
  {
5338
5527
  className: cn(
@@ -5355,7 +5544,7 @@ function AdsDataTable({
5355
5544
  toggleSelectionFromRowClick(record, recordKey);
5356
5545
  },
5357
5546
  children: [
5358
- hasSelectionColumn ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
5547
+ hasSelectionColumn ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
5359
5548
  AdsTableSelectionCell,
5360
5549
  {
5361
5550
  checked: selectedKeys.includes(recordKey),
@@ -5371,7 +5560,7 @@ function AdsDataTable({
5371
5560
  value: String(recordKey)
5372
5561
  }
5373
5562
  ) : null,
5374
- hasExpandableColumn ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
5563
+ hasExpandableColumn ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
5375
5564
  AdsTableExpandCell,
5376
5565
  {
5377
5566
  disabled: !canExpand,
@@ -5384,7 +5573,7 @@ function AdsDataTable({
5384
5573
  resolveRenderedCellContent(column, record, index),
5385
5574
  column.ellipsis
5386
5575
  );
5387
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
5576
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
5388
5577
  AdsTableCell,
5389
5578
  {
5390
5579
  className: cn(
@@ -5410,12 +5599,12 @@ function AdsDataTable({
5410
5599
  }
5411
5600
  return [
5412
5601
  row,
5413
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(AdsTableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
5602
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(AdsTableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
5414
5603
  AdsTableCell,
5415
5604
  {
5416
5605
  className: "p-0",
5417
5606
  colSpan: resolvedColumns.length + Number(hasSelectionColumn) + Number(hasExpandableColumn),
5418
- children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
5607
+ children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
5419
5608
  "div",
5420
5609
  {
5421
5610
  className: cn(
@@ -5429,7 +5618,7 @@ function AdsDataTable({
5429
5618
  ) }, `${String(recordKey)}-expanded`)
5430
5619
  ];
5431
5620
  }) : [
5432
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(AdsTableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
5621
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(AdsTableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
5433
5622
  AdsTableCell,
5434
5623
  {
5435
5624
  colSpan: columnCount,
@@ -5439,8 +5628,8 @@ function AdsDataTable({
5439
5628
  ) }, "empty-row")
5440
5629
  ] })
5441
5630
  ] }) }),
5442
- footer ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "border-t border-border p-3", children: footer }) : null,
5443
- 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)(
5631
+ footer ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "border-t border-border p-3", children: footer }) : null,
5632
+ pagination !== false ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: cn("border-t border-border p-3", classNames?.paginationContainer), children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
5444
5633
  AdsDataPagination,
5445
5634
  {
5446
5635
  ariaLabel: messages.pagination.navigation,
@@ -5462,7 +5651,7 @@ function AdsDataTable({
5462
5651
  ) }) : null
5463
5652
  ] });
5464
5653
  if (rowSelection?.type === "radio") {
5465
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
5654
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
5466
5655
  RadioGroup2,
5467
5656
  {
5468
5657
  onValueChange: (value) => {
@@ -5483,7 +5672,7 @@ function AdsDataTable({
5483
5672
  }
5484
5673
 
5485
5674
  // src/components/AdsDataTableToolbar/index.tsx
5486
- var import_jsx_runtime47 = require("react/jsx-runtime");
5675
+ var import_jsx_runtime48 = require("react/jsx-runtime");
5487
5676
  function AdsDataTableToolbar({
5488
5677
  action,
5489
5678
  className,
@@ -5495,7 +5684,7 @@ function AdsDataTableToolbar({
5495
5684
  onSearchChange,
5496
5685
  onSearchClear
5497
5686
  }) {
5498
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
5687
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
5499
5688
  "div",
5500
5689
  {
5501
5690
  className: cn(
@@ -5503,9 +5692,9 @@ function AdsDataTableToolbar({
5503
5692
  className
5504
5693
  ),
5505
5694
  children: [
5506
- /* @__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 }),
5507
- /* @__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: [
5508
- /* @__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)(
5695
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "min-w-0 flex-1", children: title ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("h2", { className: cn("truncate text-xl font-medium text-white", titleClassName), children: title }) : null }),
5696
+ /* @__PURE__ */ (0, import_jsx_runtime48.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: [
5697
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "min-w-0 md:max-w-[440px] md:flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
5509
5698
  AdsInput,
5510
5699
  {
5511
5700
  className: cn(
@@ -5519,7 +5708,7 @@ function AdsDataTableToolbar({
5519
5708
  value: searchValue
5520
5709
  }
5521
5710
  ) }),
5522
- action ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "shrink-0", children: action }) : null
5711
+ action ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "shrink-0", children: action }) : null
5523
5712
  ] })
5524
5713
  ]
5525
5714
  }
@@ -5527,7 +5716,7 @@ function AdsDataTableToolbar({
5527
5716
  }
5528
5717
 
5529
5718
  // src/components/AdsViewCustomersDataTable/index.tsx
5530
- var import_jsx_runtime48 = require("react/jsx-runtime");
5719
+ var import_jsx_runtime49 = require("react/jsx-runtime");
5531
5720
  function resolveHeight(value) {
5532
5721
  if (value === void 0) {
5533
5722
  return 500;
@@ -5559,13 +5748,13 @@ function AdsViewCustomersDataTable({
5559
5748
  ...props
5560
5749
  }) {
5561
5750
  const tableHeight = resolveHeight(height);
5562
- 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: [
5563
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("p", { className: "text-sm font-medium text-white", children: errorTitle }),
5564
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("p", { className: "max-w-md text-sm text-[#848484]", children: errorDescription }),
5565
- onRetry ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(AdsButton, { intent: "primary", onClick: onRetry, children: retryLabel }) : null
5751
+ const resolvedErrorState = errorState ?? /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex min-h-[500px] flex-col items-center justify-center gap-3 px-6 py-12 text-center", children: [
5752
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("p", { className: "text-sm font-medium text-white", children: errorTitle }),
5753
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("p", { className: "max-w-md text-sm text-[#848484]", children: errorDescription }),
5754
+ onRetry ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(AdsButton, { intent: "primary", onClick: onRetry, children: retryLabel }) : null
5566
5755
  ] });
5567
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "overflow-hidden rounded-xl border border-[#27282F] bg-[#1B1C21]", children: [
5568
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
5756
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "overflow-hidden rounded-xl border border-[#27282F] bg-[#1B1C21]", children: [
5757
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
5569
5758
  AdsDataTableToolbar,
5570
5759
  {
5571
5760
  action: toolbarAction,
@@ -5577,7 +5766,7 @@ function AdsViewCustomersDataTable({
5577
5766
  }
5578
5767
  ),
5579
5768
  error ? resolvedErrorState : null,
5580
- !error ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
5769
+ !error ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
5581
5770
  AdsDataTable,
5582
5771
  {
5583
5772
  ...props,
@@ -5612,20 +5801,20 @@ function AdsViewCustomersDataTable({
5612
5801
  }
5613
5802
 
5614
5803
  // src/components/AdsProgress/index.tsx
5615
- var React44 = __toESM(require("react"), 1);
5804
+ var React45 = __toESM(require("react"), 1);
5616
5805
 
5617
5806
  // src/primitives/progress.tsx
5618
- var React43 = __toESM(require("react"), 1);
5807
+ var React44 = __toESM(require("react"), 1);
5619
5808
  var ProgressPrimitive = __toESM(require("@radix-ui/react-progress"), 1);
5620
- var import_jsx_runtime49 = require("react/jsx-runtime");
5621
- var Progress = React43.forwardRef(({ className, indicatorClassName, value, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
5809
+ var import_jsx_runtime50 = require("react/jsx-runtime");
5810
+ var Progress = React44.forwardRef(({ className, indicatorClassName, value, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
5622
5811
  ProgressPrimitive.Root,
5623
5812
  {
5624
5813
  className: cn("relative h-4 w-full overflow-hidden rounded-full bg-secondary", className),
5625
5814
  ref,
5626
5815
  value,
5627
5816
  ...props,
5628
- children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
5817
+ children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
5629
5818
  ProgressPrimitive.Indicator,
5630
5819
  {
5631
5820
  className: cn("h-full w-full flex-1 bg-primary transition-all", indicatorClassName),
@@ -5637,13 +5826,13 @@ var Progress = React43.forwardRef(({ className, indicatorClassName, value, ...pr
5637
5826
  Progress.displayName = ProgressPrimitive.Root.displayName;
5638
5827
 
5639
5828
  // src/components/AdsProgress/index.tsx
5640
- var import_jsx_runtime50 = require("react/jsx-runtime");
5829
+ var import_jsx_runtime51 = require("react/jsx-runtime");
5641
5830
  var progressBaseClassName = "h-2 rounded-radius-full bg-[color:color-mix(in_srgb,var(--primary)_20%,transparent)]";
5642
5831
  var progressIndicatorVariantClassName = {
5643
5832
  ai: "bg-brand-gradient",
5644
5833
  default: "bg-primary"
5645
5834
  };
5646
- var Progress2 = React44.forwardRef(({ className, indicatorClassName, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
5835
+ var Progress2 = React45.forwardRef(({ className, indicatorClassName, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
5647
5836
  Progress,
5648
5837
  {
5649
5838
  className: cn(progressBaseClassName, className),
@@ -5653,7 +5842,7 @@ var Progress2 = React44.forwardRef(({ className, indicatorClassName, ...props },
5653
5842
  }
5654
5843
  ));
5655
5844
  Progress2.displayName = "Progress";
5656
- var AdsProgress = React44.forwardRef(
5845
+ var AdsProgress = React45.forwardRef(
5657
5846
  ({
5658
5847
  className,
5659
5848
  descriptionPlacement = "above",
@@ -5672,12 +5861,12 @@ var AdsProgress = React44.forwardRef(
5672
5861
  id
5673
5862
  });
5674
5863
  const labelId = label ? `${description.inputId}-label` : void 0;
5675
- const helperNode = helperText ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(AdsFieldDescription, { id: description.helperId, children: helperText }) : null;
5676
- const errorNode = errorText ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(AdsFieldError, { id: description.errorId, children: errorText }) : null;
5677
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(AdsFieldItem, { children: [
5678
- label ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(AdsFieldLabel, { id: labelId, children: label }) : null,
5864
+ const helperNode = helperText ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(AdsFieldDescription, { id: description.helperId, children: helperText }) : null;
5865
+ const errorNode = errorText ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(AdsFieldError, { id: description.errorId, children: errorText }) : null;
5866
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(AdsFieldItem, { children: [
5867
+ label ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(AdsFieldLabel, { id: labelId, children: label }) : null,
5679
5868
  descriptionPlacement === "above" ? helperNode : null,
5680
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
5869
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
5681
5870
  Progress,
5682
5871
  {
5683
5872
  "aria-describedby": description.describedBy,
@@ -5701,13 +5890,13 @@ var AdsProgress = React44.forwardRef(
5701
5890
  AdsProgress.displayName = "AdsProgress";
5702
5891
 
5703
5892
  // src/components/AdsSlider/index.tsx
5704
- var React46 = __toESM(require("react"), 1);
5893
+ var React47 = __toESM(require("react"), 1);
5705
5894
 
5706
5895
  // src/primitives/slider.tsx
5707
- var React45 = __toESM(require("react"), 1);
5896
+ var React46 = __toESM(require("react"), 1);
5708
5897
  var SliderPrimitive = __toESM(require("@radix-ui/react-slider"), 1);
5709
- var import_jsx_runtime51 = require("react/jsx-runtime");
5710
- var Slider = React45.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
5898
+ var import_jsx_runtime52 = require("react/jsx-runtime");
5899
+ var Slider = React46.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
5711
5900
  SliderPrimitive.Root,
5712
5901
  {
5713
5902
  ref,
@@ -5717,10 +5906,10 @@ var Slider = React45.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
5717
5906
  ),
5718
5907
  ...props,
5719
5908
  children: [
5720
- /* @__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" }) }),
5909
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(SliderPrimitive.Track, { className: "relative h-1.5 w-full grow overflow-hidden rounded-full bg-secondary", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(SliderPrimitive.Range, { className: "absolute h-full bg-primary" }) }),
5721
5910
  Array.from({
5722
5911
  length: Array.isArray(props.value) ? props.value.length : Array.isArray(props.defaultValue) ? props.defaultValue.length : 1
5723
- }).map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
5912
+ }).map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
5724
5913
  SliderPrimitive.Thumb,
5725
5914
  {
5726
5915
  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"
@@ -5733,11 +5922,11 @@ var Slider = React45.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
5733
5922
  Slider.displayName = SliderPrimitive.Root.displayName;
5734
5923
 
5735
5924
  // src/components/AdsSlider/index.tsx
5736
- var import_jsx_runtime52 = require("react/jsx-runtime");
5925
+ var import_jsx_runtime53 = require("react/jsx-runtime");
5737
5926
  var sliderBaseClassName = "py-1";
5738
- var Slider2 = React46.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Slider, { className: cn(sliderBaseClassName, className), ref, ...props }));
5927
+ var Slider2 = React47.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Slider, { className: cn(sliderBaseClassName, className), ref, ...props }));
5739
5928
  Slider2.displayName = "Slider";
5740
- var AdsSlider = React46.forwardRef(
5929
+ var AdsSlider = React47.forwardRef(
5741
5930
  ({
5742
5931
  className,
5743
5932
  descriptionPlacement = "above",
@@ -5752,12 +5941,12 @@ var AdsSlider = React46.forwardRef(
5752
5941
  helperText,
5753
5942
  id
5754
5943
  });
5755
- const helperNode = helperText ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(AdsFieldDescription, { id: description.helperId, children: helperText }) : null;
5756
- const errorNode = errorText ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(AdsFieldError, { id: description.errorId, children: errorText }) : null;
5757
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(AdsFieldItem, { children: [
5758
- label ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(AdsFieldLabel, { children: label }) : null,
5944
+ const helperNode = helperText ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(AdsFieldDescription, { id: description.helperId, children: helperText }) : null;
5945
+ const errorNode = errorText ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(AdsFieldError, { id: description.errorId, children: errorText }) : null;
5946
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(AdsFieldItem, { children: [
5947
+ label ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(AdsFieldLabel, { children: label }) : null,
5759
5948
  descriptionPlacement === "above" ? helperNode : null,
5760
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
5949
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
5761
5950
  Slider2,
5762
5951
  {
5763
5952
  "aria-describedby": description.describedBy,
@@ -5774,13 +5963,13 @@ var AdsSlider = React46.forwardRef(
5774
5963
  AdsSlider.displayName = "AdsSlider";
5775
5964
 
5776
5965
  // src/components/AdsSwitch/index.tsx
5777
- var React48 = __toESM(require("react"), 1);
5966
+ var React49 = __toESM(require("react"), 1);
5778
5967
 
5779
5968
  // src/primitives/switch.tsx
5780
- var React47 = __toESM(require("react"), 1);
5969
+ var React48 = __toESM(require("react"), 1);
5781
5970
  var SwitchPrimitives = __toESM(require("@radix-ui/react-switch"), 1);
5782
- var import_jsx_runtime53 = require("react/jsx-runtime");
5783
- var Switch = React47.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
5971
+ var import_jsx_runtime54 = require("react/jsx-runtime");
5972
+ var Switch = React48.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
5784
5973
  SwitchPrimitives.Root,
5785
5974
  {
5786
5975
  className: cn(
@@ -5789,7 +5978,7 @@ var Switch = React47.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
5789
5978
  ),
5790
5979
  ...props,
5791
5980
  ref,
5792
- children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
5981
+ children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
5793
5982
  SwitchPrimitives.Thumb,
5794
5983
  {
5795
5984
  className: cn(
@@ -5802,15 +5991,15 @@ var Switch = React47.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
5802
5991
  Switch.displayName = SwitchPrimitives.Root.displayName;
5803
5992
 
5804
5993
  // src/components/AdsSwitch/index.tsx
5805
- var import_jsx_runtime54 = require("react/jsx-runtime");
5994
+ var import_jsx_runtime55 = require("react/jsx-runtime");
5806
5995
  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";
5807
- var Switch2 = React48.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Switch, { className: cn(switchBaseClassName, className), ref, ...props }));
5996
+ var Switch2 = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Switch, { className: cn(switchBaseClassName, className), ref, ...props }));
5808
5997
  Switch2.displayName = "Switch";
5809
- var AdsSwitch = React48.forwardRef(({ className, description, id, label, switchClassName, wrapperClassName, ...props }, ref) => {
5810
- const generatedId = React48.useId();
5998
+ var AdsSwitch = React49.forwardRef(({ className, description, id, label, switchClassName, wrapperClassName, ...props }, ref) => {
5999
+ const generatedId = React49.useId();
5811
6000
  const inputId = id ?? generatedId;
5812
6001
  if (!label) {
5813
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
6002
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
5814
6003
  Switch2,
5815
6004
  {
5816
6005
  className: cn(className, switchClassName),
@@ -5820,12 +6009,12 @@ var AdsSwitch = React48.forwardRef(({ className, description, id, label, switchC
5820
6009
  }
5821
6010
  );
5822
6011
  }
5823
- 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: [
5824
- /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-1.5 pt-0.5", children: [
5825
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "text-sm font-medium leading-5 text-foreground", children: label }),
5826
- description ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(AdsFieldDescription, { className: "text-sm leading-5", children: description }) : null
6012
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("label", { className: cn("block w-full cursor-pointer", wrapperClassName), htmlFor: inputId, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: "flex w-full items-start gap-3", children: [
6013
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-1.5 pt-0.5", children: [
6014
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "text-sm font-medium leading-5 text-foreground", children: label }),
6015
+ description ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(AdsFieldDescription, { className: "text-sm leading-5", children: description }) : null
5827
6016
  ] }),
5828
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
6017
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
5829
6018
  Switch2,
5830
6019
  {
5831
6020
  className: cn(className, switchClassName),
@@ -5839,14 +6028,14 @@ var AdsSwitch = React48.forwardRef(({ className, description, id, label, switchC
5839
6028
  AdsSwitch.displayName = "AdsSwitch";
5840
6029
 
5841
6030
  // src/components/AdsTabs/index.tsx
5842
- var React50 = __toESM(require("react"), 1);
6031
+ var React51 = __toESM(require("react"), 1);
5843
6032
 
5844
6033
  // src/primitives/tabs.tsx
5845
- var React49 = __toESM(require("react"), 1);
6034
+ var React50 = __toESM(require("react"), 1);
5846
6035
  var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"), 1);
5847
- var import_jsx_runtime55 = require("react/jsx-runtime");
6036
+ var import_jsx_runtime56 = require("react/jsx-runtime");
5848
6037
  var Tabs = TabsPrimitive.Root;
5849
- var TabsList = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
6038
+ var TabsList = React50.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
5850
6039
  TabsPrimitive.List,
5851
6040
  {
5852
6041
  className: cn("inline-flex items-center", className),
@@ -5855,7 +6044,7 @@ var TabsList = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__
5855
6044
  }
5856
6045
  ));
5857
6046
  TabsList.displayName = TabsPrimitive.List.displayName;
5858
- var TabsTrigger = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
6047
+ var TabsTrigger = React50.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
5859
6048
  TabsPrimitive.Trigger,
5860
6049
  {
5861
6050
  className: cn(
@@ -5867,7 +6056,7 @@ var TabsTrigger = React49.forwardRef(({ className, ...props }, ref) => /* @__PUR
5867
6056
  }
5868
6057
  ));
5869
6058
  TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
5870
- var TabsContent = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
6059
+ var TabsContent = React50.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
5871
6060
  TabsPrimitive.Content,
5872
6061
  {
5873
6062
  className: cn("focus-visible:outline-none", className),
@@ -5878,9 +6067,9 @@ var TabsContent = React49.forwardRef(({ className, ...props }, ref) => /* @__PUR
5878
6067
  TabsContent.displayName = TabsPrimitive.Content.displayName;
5879
6068
 
5880
6069
  // src/components/AdsTabs/index.tsx
5881
- var import_jsx_runtime56 = require("react/jsx-runtime");
6070
+ var import_jsx_runtime57 = require("react/jsx-runtime");
5882
6071
  var AdsTabs = Tabs;
5883
- var AdsTabsList = React50.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
6072
+ var AdsTabsList = React51.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
5884
6073
  TabsList,
5885
6074
  {
5886
6075
  className: cn(
@@ -5892,7 +6081,7 @@ var AdsTabsList = React50.forwardRef(({ className, ...props }, ref) => /* @__PUR
5892
6081
  }
5893
6082
  ));
5894
6083
  AdsTabsList.displayName = "AdsTabsList";
5895
- var AdsTabsTrigger = React50.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
6084
+ var AdsTabsTrigger = React51.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
5896
6085
  TabsTrigger,
5897
6086
  {
5898
6087
  className: cn(
@@ -5904,7 +6093,7 @@ var AdsTabsTrigger = React50.forwardRef(({ className, ...props }, ref) => /* @__
5904
6093
  }
5905
6094
  ));
5906
6095
  AdsTabsTrigger.displayName = "AdsTabsTrigger";
5907
- var AdsTabsContent = React50.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
6096
+ var AdsTabsContent = React51.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
5908
6097
  TabsContent,
5909
6098
  {
5910
6099
  className: cn(
@@ -5918,13 +6107,13 @@ var AdsTabsContent = React50.forwardRef(({ className, ...props }, ref) => /* @__
5918
6107
  AdsTabsContent.displayName = "AdsTabsContent";
5919
6108
 
5920
6109
  // src/components/AdsToggle/index.tsx
5921
- var React52 = __toESM(require("react"), 1);
6110
+ var React53 = __toESM(require("react"), 1);
5922
6111
 
5923
6112
  // src/primitives/toggle.tsx
5924
- var React51 = __toESM(require("react"), 1);
6113
+ var React52 = __toESM(require("react"), 1);
5925
6114
  var TogglePrimitive = __toESM(require("@radix-ui/react-toggle"), 1);
5926
- var import_jsx_runtime57 = require("react/jsx-runtime");
5927
- var Toggle = React51.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
6115
+ var import_jsx_runtime58 = require("react/jsx-runtime");
6116
+ var Toggle = React52.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
5928
6117
  TogglePrimitive.Root,
5929
6118
  {
5930
6119
  className: cn(
@@ -5938,7 +6127,7 @@ var Toggle = React51.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
5938
6127
  Toggle.displayName = TogglePrimitive.Root.displayName;
5939
6128
 
5940
6129
  // src/components/AdsToggle/index.tsx
5941
- var import_jsx_runtime58 = require("react/jsx-runtime");
6130
+ var import_jsx_runtime59 = require("react/jsx-runtime");
5942
6131
  var sizeClassName3 = {
5943
6132
  sm: "!h-8 px-[6px] text-sm",
5944
6133
  md: "!h-9 px-md text-sm",
@@ -5953,10 +6142,10 @@ var variantClassName = {
5953
6142
  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)]",
5954
6143
  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)]"
5955
6144
  };
5956
- var AdsToggle = React52.forwardRef(({ children, className, size = "md", variant = "default", ...props }, ref) => {
5957
- const childCount = React52.Children.count(children);
5958
- const isIconOnly = childCount === 1 && React52.isValidElement(children);
5959
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
6145
+ var AdsToggle = React53.forwardRef(({ children, className, size = "md", variant = "default", ...props }, ref) => {
6146
+ const childCount = React53.Children.count(children);
6147
+ const isIconOnly = childCount === 1 && React53.isValidElement(children);
6148
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
5960
6149
  Toggle,
5961
6150
  {
5962
6151
  className: cn(
@@ -5975,13 +6164,13 @@ var AdsToggle = React52.forwardRef(({ children, className, size = "md", variant
5975
6164
  AdsToggle.displayName = "AdsToggle";
5976
6165
 
5977
6166
  // src/components/AdsToggleGroup/index.tsx
5978
- var React54 = __toESM(require("react"), 1);
6167
+ var React55 = __toESM(require("react"), 1);
5979
6168
 
5980
6169
  // src/primitives/toggle-group.tsx
5981
- var React53 = __toESM(require("react"), 1);
6170
+ var React54 = __toESM(require("react"), 1);
5982
6171
  var ToggleGroupPrimitive = __toESM(require("@radix-ui/react-toggle-group"), 1);
5983
- var import_jsx_runtime59 = require("react/jsx-runtime");
5984
- var ToggleGroup = React53.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
6172
+ var import_jsx_runtime60 = require("react/jsx-runtime");
6173
+ var ToggleGroup = React54.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
5985
6174
  ToggleGroupPrimitive.Root,
5986
6175
  {
5987
6176
  className: cn("inline-flex items-center justify-start", className),
@@ -5990,7 +6179,7 @@ var ToggleGroup = React53.forwardRef(({ className, ...props }, ref) => /* @__PUR
5990
6179
  }
5991
6180
  ));
5992
6181
  ToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName;
5993
- var ToggleGroupItem = React53.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
6182
+ var ToggleGroupItem = React54.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
5994
6183
  ToggleGroupPrimitive.Item,
5995
6184
  {
5996
6185
  className: cn(
@@ -6004,7 +6193,7 @@ var ToggleGroupItem = React53.forwardRef(({ className, ...props }, ref) => /* @_
6004
6193
  ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;
6005
6194
 
6006
6195
  // src/components/AdsToggleGroup/index.tsx
6007
- var import_jsx_runtime60 = require("react/jsx-runtime");
6196
+ var import_jsx_runtime61 = require("react/jsx-runtime");
6008
6197
  var sizeClassName4 = {
6009
6198
  sm: "h-8 min-w-7 px-[6px] text-sm",
6010
6199
  md: "h-9 min-w-[34px] px-md text-sm",
@@ -6014,8 +6203,8 @@ var variantClassName2 = {
6014
6203
  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)]",
6015
6204
  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)]"
6016
6205
  };
6017
- var AdsToggleGroupContext = React54.createContext(null);
6018
- var AdsToggleGroup = React54.forwardRef(
6206
+ var AdsToggleGroupContext = React55.createContext(null);
6207
+ var AdsToggleGroup = React55.forwardRef(
6019
6208
  ({
6020
6209
  children,
6021
6210
  className,
@@ -6023,7 +6212,7 @@ var AdsToggleGroup = React54.forwardRef(
6023
6212
  size = "md",
6024
6213
  variant = "default",
6025
6214
  ...props
6026
- }, ref) => /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(AdsToggleGroupContext.Provider, { value: { orientation, size, variant }, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
6215
+ }, ref) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(AdsToggleGroupContext.Provider, { value: { orientation, size, variant }, children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
6027
6216
  ToggleGroup,
6028
6217
  {
6029
6218
  className: cn(
@@ -6039,12 +6228,12 @@ var AdsToggleGroup = React54.forwardRef(
6039
6228
  ) })
6040
6229
  );
6041
6230
  AdsToggleGroup.displayName = "AdsToggleGroup";
6042
- var AdsToggleGroupItem = React54.forwardRef(({ className, size, variant, ...props }, ref) => {
6043
- const context = React54.useContext(AdsToggleGroupContext);
6231
+ var AdsToggleGroupItem = React55.forwardRef(({ className, size, variant, ...props }, ref) => {
6232
+ const context = React55.useContext(AdsToggleGroupContext);
6044
6233
  const resolvedOrientation = context?.orientation ?? "horizontal";
6045
6234
  const resolvedSize = size ?? context?.size ?? "md";
6046
6235
  const resolvedVariant = variant ?? context?.variant ?? "default";
6047
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
6236
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
6048
6237
  ToggleGroupItem,
6049
6238
  {
6050
6239
  className: cn(
@@ -6062,10 +6251,10 @@ var AdsToggleGroupItem = React54.forwardRef(({ className, size, variant, ...prop
6062
6251
  AdsToggleGroupItem.displayName = "AdsToggleGroupItem";
6063
6252
 
6064
6253
  // src/components/AdsTextarea/index.tsx
6065
- var React55 = __toESM(require("react"), 1);
6066
- var import_jsx_runtime61 = require("react/jsx-runtime");
6254
+ var React56 = __toESM(require("react"), 1);
6255
+ var import_jsx_runtime62 = require("react/jsx-runtime");
6067
6256
  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";
6068
- var AdsTextarea = React55.forwardRef(
6257
+ var AdsTextarea = React56.forwardRef(
6069
6258
  ({
6070
6259
  action,
6071
6260
  className,
@@ -6084,12 +6273,12 @@ var AdsTextarea = React55.forwardRef(
6084
6273
  helperText,
6085
6274
  id
6086
6275
  });
6087
- const helperNode = helperText ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(AdsFieldDescription, { id: description.helperId, children: helperText }) : null;
6088
- const errorNode = errorText ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(AdsFieldError, { id: description.errorId, children: errorText }) : null;
6089
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(AdsFieldItem, { children: [
6090
- label ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(AdsFieldLabel, { htmlFor: description.inputId, children: label }) : null,
6276
+ const helperNode = helperText ? /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(AdsFieldDescription, { id: description.helperId, children: helperText }) : null;
6277
+ const errorNode = errorText ? /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(AdsFieldError, { id: description.errorId, children: errorText }) : null;
6278
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(AdsFieldItem, { children: [
6279
+ label ? /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(AdsFieldLabel, { htmlFor: description.inputId, children: label }) : null,
6091
6280
  descriptionPlacement === "above" ? helperNode : null,
6092
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
6281
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
6093
6282
  Textarea,
6094
6283
  {
6095
6284
  "aria-describedby": description.describedBy,
@@ -6107,7 +6296,7 @@ var AdsTextarea = React55.forwardRef(
6107
6296
  ...props
6108
6297
  }
6109
6298
  ),
6110
- action ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "w-full [&>*]:w-full", children: action }) : null,
6299
+ action ? /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "w-full [&>*]:w-full", children: action }) : null,
6111
6300
  descriptionPlacement === "below" ? helperNode : null,
6112
6301
  errorNode
6113
6302
  ] });
@@ -6116,17 +6305,17 @@ var AdsTextarea = React55.forwardRef(
6116
6305
  AdsTextarea.displayName = "AdsTextarea";
6117
6306
 
6118
6307
  // src/components/AdsTooltip/index.tsx
6119
- var React57 = __toESM(require("react"), 1);
6308
+ var React58 = __toESM(require("react"), 1);
6120
6309
 
6121
6310
  // src/primitives/tooltip.tsx
6122
- var React56 = __toESM(require("react"), 1);
6311
+ var React57 = __toESM(require("react"), 1);
6123
6312
  var TooltipPrimitive = __toESM(require("@radix-ui/react-tooltip"), 1);
6124
- var import_jsx_runtime62 = require("react/jsx-runtime");
6313
+ var import_jsx_runtime63 = require("react/jsx-runtime");
6125
6314
  var TooltipProvider = TooltipPrimitive.Provider;
6126
6315
  var Tooltip = TooltipPrimitive.Root;
6127
6316
  var TooltipTrigger = TooltipPrimitive.Trigger;
6128
6317
  var TooltipArrow = TooltipPrimitive.Arrow;
6129
- var TooltipContent = React56.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(TooltipPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
6318
+ var TooltipContent = React57.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(TooltipPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
6130
6319
  TooltipPrimitive.Content,
6131
6320
  {
6132
6321
  className: cn(
@@ -6141,12 +6330,12 @@ var TooltipContent = React56.forwardRef(({ className, sideOffset = 4, ...props }
6141
6330
  TooltipContent.displayName = TooltipPrimitive.Content.displayName;
6142
6331
 
6143
6332
  // src/components/AdsTooltip/index.tsx
6144
- var import_jsx_runtime63 = require("react/jsx-runtime");
6333
+ var import_jsx_runtime64 = require("react/jsx-runtime");
6145
6334
  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)]";
6146
6335
  var AdsTooltipProvider = TooltipProvider;
6147
6336
  var AdsTooltip = Tooltip;
6148
6337
  var AdsTooltipTrigger = TooltipTrigger;
6149
- var AdsTooltipContent = React57.forwardRef(({ align = "center", className, sideOffset = 10, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
6338
+ var AdsTooltipContent = React58.forwardRef(({ align = "center", className, sideOffset = 10, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6150
6339
  TooltipContent,
6151
6340
  {
6152
6341
  align,
@@ -6157,7 +6346,7 @@ var AdsTooltipContent = React57.forwardRef(({ align = "center", className, sideO
6157
6346
  }
6158
6347
  ));
6159
6348
  AdsTooltipContent.displayName = "AdsTooltipContent";
6160
- var AdsTooltipArrow = React57.forwardRef(({ className, height = 5, width = 10, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
6349
+ var AdsTooltipArrow = React58.forwardRef(({ className, height = 5, width = 10, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6161
6350
  TooltipArrow,
6162
6351
  {
6163
6352
  className: cn("fill-[#844fff]", className),
@@ -6170,10 +6359,10 @@ var AdsTooltipArrow = React57.forwardRef(({ className, height = 5, width = 10, .
6170
6359
  AdsTooltipArrow.displayName = "AdsTooltipArrow";
6171
6360
 
6172
6361
  // src/components/AdsToast/index.tsx
6173
- var React58 = __toESM(require("react"), 1);
6362
+ var React59 = __toESM(require("react"), 1);
6174
6363
  var import_lucide_react17 = require("lucide-react");
6175
6364
  var import_sonner = require("sonner");
6176
- var import_jsx_runtime64 = require("react/jsx-runtime");
6365
+ var import_jsx_runtime65 = require("react/jsx-runtime");
6177
6366
  var adsToastIconMap = {
6178
6367
  success: import_lucide_react17.CircleCheck,
6179
6368
  info: import_lucide_react17.Info,
@@ -6189,7 +6378,7 @@ function resolveToastIcon(intent, icon) {
6189
6378
  return null;
6190
6379
  }
6191
6380
  const Icon2 = adsToastIconMap[intent];
6192
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6381
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6193
6382
  Icon2,
6194
6383
  {
6195
6384
  "aria-hidden": true,
@@ -6202,7 +6391,7 @@ function resolveToastIcon(intent, icon) {
6202
6391
  }
6203
6392
  );
6204
6393
  }
6205
- var AdsToast = React58.forwardRef(
6394
+ var AdsToast = React59.forwardRef(
6206
6395
  ({
6207
6396
  action,
6208
6397
  className,
@@ -6213,7 +6402,7 @@ var AdsToast = React58.forwardRef(
6213
6402
  ...props
6214
6403
  }, ref) => {
6215
6404
  const resolvedIcon = resolveToastIcon(intent, icon);
6216
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
6405
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
6217
6406
  "div",
6218
6407
  {
6219
6408
  className: cn(
@@ -6228,8 +6417,8 @@ var AdsToast = React58.forwardRef(
6228
6417
  ...props,
6229
6418
  children: [
6230
6419
  resolvedIcon,
6231
- /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
6232
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6420
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
6421
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6233
6422
  "p",
6234
6423
  {
6235
6424
  className: cn(
@@ -6239,7 +6428,7 @@ var AdsToast = React58.forwardRef(
6239
6428
  children: title
6240
6429
  }
6241
6430
  ),
6242
- description ? /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6431
+ description ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6243
6432
  "p",
6244
6433
  {
6245
6434
  className: cn(
@@ -6250,7 +6439,7 @@ var AdsToast = React58.forwardRef(
6250
6439
  }
6251
6440
  ) : null
6252
6441
  ] }),
6253
- action ? /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6442
+ action ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6254
6443
  AdsButton,
6255
6444
  {
6256
6445
  className: "shrink-0 rounded-radius-lg",
@@ -6276,7 +6465,7 @@ function AdsToaster({
6276
6465
  ...props
6277
6466
  }) {
6278
6467
  const { messages } = useAdsI18n();
6279
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6468
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6280
6469
  import_sonner.Toaster,
6281
6470
  {
6282
6471
  closeButton: false,
@@ -6294,7 +6483,7 @@ function AdsToaster({
6294
6483
  );
6295
6484
  }
6296
6485
  function toStageNode(intent, title, options) {
6297
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6486
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6298
6487
  AdsToast,
6299
6488
  {
6300
6489
  action: options?.action,
@@ -6308,7 +6497,7 @@ function toStageNode(intent, title, options) {
6308
6497
  function showAdsToast(intent, title, options) {
6309
6498
  const { action, description, icon, ...toastOptions } = options ?? {};
6310
6499
  return import_sonner.toast.custom(
6311
- (id) => /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6500
+ (id) => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6312
6501
  AdsToast,
6313
6502
  {
6314
6503
  action: action ? {
@@ -6362,10 +6551,10 @@ var AdsToastManager = Object.assign(
6362
6551
  );
6363
6552
 
6364
6553
  // src/components/AdsDialog/index.tsx
6365
- var React59 = __toESM(require("react"), 1);
6554
+ var React60 = __toESM(require("react"), 1);
6366
6555
  var DialogPrimitive = __toESM(require("@radix-ui/react-dialog"), 1);
6367
6556
  var import_lucide_react18 = require("lucide-react");
6368
- var import_jsx_runtime65 = require("react/jsx-runtime");
6557
+ var import_jsx_runtime66 = require("react/jsx-runtime");
6369
6558
  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";
6370
6559
  var contentClassName2 = "fixed left-1/2 top-1/2 z-50 flex max-h-[calc(100dvh-2rem)] w-[calc(100%-2rem)] max-w-[423px] -translate-x-1/2 -translate-y-1/2 flex-col gap-lg overflow-hidden 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%]";
6371
6560
  var bodyClassName = "min-h-0 flex-1 overflow-y-auto overscroll-contain [scrollbar-gutter:stable]";
@@ -6373,7 +6562,7 @@ var closeButtonClassName = "absolute right-xl top-xl inline-flex h-6 w-6 items-c
6373
6562
  var Dialog = DialogPrimitive.Root;
6374
6563
  var DialogTrigger = DialogPrimitive.Trigger;
6375
6564
  var DialogPortal = DialogPrimitive.Portal;
6376
- var DialogOverlay = React59.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6565
+ var DialogOverlay = React60.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6377
6566
  DialogPrimitive.Overlay,
6378
6567
  {
6379
6568
  className: cn(overlayClassName2, className),
@@ -6382,7 +6571,7 @@ var DialogOverlay = React59.forwardRef(({ className, ...props }, ref) => /* @__P
6382
6571
  }
6383
6572
  ));
6384
6573
  DialogOverlay.displayName = "DialogOverlay";
6385
- var DialogClose = React59.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6574
+ var DialogClose = React60.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6386
6575
  DialogPrimitive.Close,
6387
6576
  {
6388
6577
  className: cn(
@@ -6396,8 +6585,8 @@ var DialogClose = React59.forwardRef(({ className, ...props }, ref) => /* @__PUR
6396
6585
  DialogClose.displayName = "DialogClose";
6397
6586
  function flattenDialogChildren(children) {
6398
6587
  const nodes = [];
6399
- React59.Children.forEach(children, (child) => {
6400
- if (React59.isValidElement(child) && child.type === React59.Fragment) {
6588
+ React60.Children.forEach(children, (child) => {
6589
+ if (React60.isValidElement(child) && child.type === React60.Fragment) {
6401
6590
  nodes.push(...flattenDialogChildren(child.props.children));
6402
6591
  return;
6403
6592
  }
@@ -6406,10 +6595,10 @@ function flattenDialogChildren(children) {
6406
6595
  return nodes;
6407
6596
  }
6408
6597
  function isDialogSlotElement(child, component) {
6409
- return React59.isValidElement(child) && child.type === component;
6598
+ return React60.isValidElement(child) && child.type === component;
6410
6599
  }
6411
- var DialogBody = React59.forwardRef(
6412
- ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6600
+ var DialogBody = React60.forwardRef(
6601
+ ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6413
6602
  "div",
6414
6603
  {
6415
6604
  className: cn(bodyClassName, className),
@@ -6420,7 +6609,7 @@ var DialogBody = React59.forwardRef(
6420
6609
  )
6421
6610
  );
6422
6611
  DialogBody.displayName = "DialogBody";
6423
- var DialogContent = React59.forwardRef(
6612
+ var DialogContent = React60.forwardRef(
6424
6613
  ({ children, className, closeLabel, hideCloseButton = false, ...props }, ref) => {
6425
6614
  const { messages } = useAdsI18n();
6426
6615
  const resolvedCloseLabel = closeLabel ?? messages.dialog.close;
@@ -6465,9 +6654,9 @@ var DialogContent = React59.forwardRef(
6465
6654
  const looseBodyNodes = bodyNodes.filter(
6466
6655
  (child) => !isDialogSlotElement(child, DialogBody)
6467
6656
  );
6468
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(DialogPortal, { children: [
6469
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(DialogOverlay, {}),
6470
- /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
6657
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(DialogPortal, { children: [
6658
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(DialogOverlay, {}),
6659
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
6471
6660
  DialogPrimitive.Content,
6472
6661
  {
6473
6662
  "data-slot": "ads-dialog-content",
@@ -6480,18 +6669,18 @@ var DialogContent = React59.forwardRef(
6480
6669
  ...props,
6481
6670
  children: [
6482
6671
  headerNode,
6483
- headerNode === null && generatedHeaderNodes.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(DialogHeader, { children: generatedHeaderNodes }) : null,
6672
+ headerNode === null && generatedHeaderNodes.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(DialogHeader, { children: generatedHeaderNodes }) : null,
6484
6673
  explicitBodyNodes.length > 0 ? explicitBodyNodes : null,
6485
- looseBodyNodes.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(DialogBody, { children: looseBodyNodes }) : null,
6674
+ looseBodyNodes.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(DialogBody, { children: looseBodyNodes }) : null,
6486
6675
  footerNode,
6487
- !hideCloseButton ? /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
6676
+ !hideCloseButton ? /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
6488
6677
  DialogPrimitive.Close,
6489
6678
  {
6490
6679
  "aria-label": resolvedCloseLabel,
6491
6680
  className: cn(closeButtonClassName, adsTextColorClassName.card),
6492
6681
  children: [
6493
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_lucide_react18.X, { "aria-hidden": true, className: "h-4 w-4" }),
6494
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { className: "sr-only", children: resolvedCloseLabel })
6682
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_lucide_react18.X, { "aria-hidden": true, className: "h-4 w-4" }),
6683
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { className: "sr-only", children: resolvedCloseLabel })
6495
6684
  ]
6496
6685
  }
6497
6686
  ) : null
@@ -6502,8 +6691,8 @@ var DialogContent = React59.forwardRef(
6502
6691
  }
6503
6692
  );
6504
6693
  DialogContent.displayName = "DialogContent";
6505
- var DialogHeader = React59.forwardRef(
6506
- ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6694
+ var DialogHeader = React60.forwardRef(
6695
+ ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6507
6696
  "div",
6508
6697
  {
6509
6698
  "data-slot": "ads-dialog-header",
@@ -6514,8 +6703,8 @@ var DialogHeader = React59.forwardRef(
6514
6703
  )
6515
6704
  );
6516
6705
  DialogHeader.displayName = "DialogHeader";
6517
- var DialogFooter = React59.forwardRef(
6518
- ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6706
+ var DialogFooter = React60.forwardRef(
6707
+ ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6519
6708
  "div",
6520
6709
  {
6521
6710
  "data-slot": "ads-dialog-footer",
@@ -6529,7 +6718,7 @@ var DialogFooter = React59.forwardRef(
6529
6718
  )
6530
6719
  );
6531
6720
  DialogFooter.displayName = "DialogFooter";
6532
- var DialogTitle = React59.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6721
+ var DialogTitle = React60.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6533
6722
  DialogPrimitive.Title,
6534
6723
  {
6535
6724
  className: cn(
@@ -6542,7 +6731,7 @@ var DialogTitle = React59.forwardRef(({ className, ...props }, ref) => /* @__PUR
6542
6731
  }
6543
6732
  ));
6544
6733
  DialogTitle.displayName = "DialogTitle";
6545
- var DialogDescription = React59.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6734
+ var DialogDescription = React60.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6546
6735
  DialogPrimitive.Description,
6547
6736
  {
6548
6737
  className: cn("text-sm leading-5", adsTextColorClassName.muted, className),
@@ -6565,7 +6754,7 @@ var AdsDialogDescription = DialogDescription;
6565
6754
 
6566
6755
  // src/components/AdsMasonry/index.tsx
6567
6756
  var import_masonic = require("masonic");
6568
- var import_jsx_runtime66 = require("react/jsx-runtime");
6757
+ var import_jsx_runtime67 = require("react/jsx-runtime");
6569
6758
  var DEFAULT_COLUMN_WIDTH = 240;
6570
6759
  var DEFAULT_GAP = 16;
6571
6760
  var DEFAULT_ITEM_HEIGHT_ESTIMATE = 280;
@@ -6601,7 +6790,7 @@ function AdsMasonry({
6601
6790
  { length: loadingItemCount },
6602
6791
  (_, index) => index
6603
6792
  );
6604
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6793
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6605
6794
  "div",
6606
6795
  {
6607
6796
  className: cn(
@@ -6613,20 +6802,20 @@ function AdsMasonry({
6613
6802
  const mediaHeight = LOADING_MEDIA_HEIGHT_PATTERN[index % LOADING_MEDIA_HEIGHT_PATTERN.length];
6614
6803
  const titleWidth = LOADING_TITLE_WIDTH_PATTERN[index % LOADING_TITLE_WIDTH_PATTERN.length];
6615
6804
  const bodyWidth = LOADING_BODY_WIDTH_PATTERN[index % LOADING_BODY_WIDTH_PATTERN.length];
6616
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
6805
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
6617
6806
  "article",
6618
6807
  {
6619
6808
  className: "overflow-hidden rounded-radius-lg border border-border bg-card shadow-showcase",
6620
6809
  "data-slot": "ads-masonry-loading-card",
6621
6810
  "data-testid": "ads-masonry-loading-card",
6622
6811
  children: [
6623
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6812
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6624
6813
  "div",
6625
6814
  {
6626
6815
  className: "border-b border-border/60 bg-surface-inset/50",
6627
6816
  "data-slot": "ads-masonry-skeleton-preview",
6628
6817
  "data-testid": "ads-masonry-skeleton-preview",
6629
- children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6818
+ children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6630
6819
  AdsSkeleton,
6631
6820
  {
6632
6821
  className: cn("w-full rounded-none", classNames?.skeleton),
@@ -6637,10 +6826,10 @@ function AdsMasonry({
6637
6826
  )
6638
6827
  }
6639
6828
  ),
6640
- /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "flex flex-col gap-4 p-lg", children: [
6641
- /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "flex items-start justify-between gap-3", children: [
6642
- /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "flex-1 space-y-2", children: [
6643
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6829
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex flex-col gap-4 p-lg", children: [
6830
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex items-start justify-between gap-3", children: [
6831
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex-1 space-y-2", children: [
6832
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6644
6833
  AdsSkeleton,
6645
6834
  {
6646
6835
  className: cn("h-3 w-16 rounded-full", classNames?.skeleton),
@@ -6648,7 +6837,7 @@ function AdsMasonry({
6648
6837
  "data-testid": "ads-masonry-skeleton"
6649
6838
  }
6650
6839
  ),
6651
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6840
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6652
6841
  AdsSkeleton,
6653
6842
  {
6654
6843
  className: cn("h-6 rounded-full", classNames?.skeleton),
@@ -6658,7 +6847,7 @@ function AdsMasonry({
6658
6847
  }
6659
6848
  )
6660
6849
  ] }),
6661
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6850
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6662
6851
  AdsSkeleton,
6663
6852
  {
6664
6853
  className: cn("h-6 w-16 rounded-full", classNames?.skeleton),
@@ -6667,7 +6856,7 @@ function AdsMasonry({
6667
6856
  }
6668
6857
  )
6669
6858
  ] }),
6670
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6859
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6671
6860
  AdsSkeleton,
6672
6861
  {
6673
6862
  className: cn("h-4 rounded-full", classNames?.skeleton),
@@ -6686,7 +6875,7 @@ function AdsMasonry({
6686
6875
  );
6687
6876
  }
6688
6877
  if (items.length === 0) {
6689
- return emptyState ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6878
+ return emptyState ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6690
6879
  "div",
6691
6880
  {
6692
6881
  className: cn(rootClassName, classNames?.empty),
@@ -6695,7 +6884,7 @@ function AdsMasonry({
6695
6884
  }
6696
6885
  ) : null;
6697
6886
  }
6698
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6887
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6699
6888
  import_masonic.Masonry,
6700
6889
  {
6701
6890
  className: rootClassName,
@@ -6707,7 +6896,7 @@ function AdsMasonry({
6707
6896
  maxColumnCount,
6708
6897
  onRender,
6709
6898
  overscanBy,
6710
- render: ({ data, index, width }) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6899
+ render: ({ data, index, width }) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6711
6900
  "div",
6712
6901
  {
6713
6902
  className: cn("pb-0", classNames?.item, itemClassName),