@adsgency_npm/adsgency-ads-ui 0.1.0-alpha.21 → 0.1.0-alpha.23

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
@@ -61,6 +61,7 @@ __export(src_exports, {
61
61
  AdsButtonGroupSeparator: () => AdsButtonGroupSeparator,
62
62
  AdsButtonGroupText: () => AdsButtonGroupText,
63
63
  AdsCalendar: () => AdsCalendar,
64
+ AdsCard: () => AdsCard,
64
65
  AdsCheckbox: () => AdsCheckbox,
65
66
  AdsDataPagination: () => AdsDataPagination,
66
67
  AdsDataTable: () => AdsDataTable,
@@ -68,7 +69,6 @@ __export(src_exports, {
68
69
  AdsDatePicker: () => AdsDatePicker,
69
70
  AdsDateTimePicker: () => AdsDateTimePicker,
70
71
  AdsDialog: () => AdsDialog,
71
- AdsDialogBody: () => AdsDialogBody,
72
72
  AdsDialogClose: () => AdsDialogClose,
73
73
  AdsDialogContent: () => AdsDialogContent,
74
74
  AdsDialogDescription: () => AdsDialogDescription,
@@ -219,7 +219,6 @@ var adsDefaultMessages = {
219
219
  collapseRow: "Collapse row",
220
220
  expandRow: "Expand row",
221
221
  filterColumn: "Filter column",
222
- loadingRows: "Loading table rows",
223
222
  noDataAvailable: "No data available",
224
223
  selectAllRows: "Select all rows",
225
224
  selectRow: "Select row",
@@ -270,7 +269,6 @@ var adsDefaultMessages = {
270
269
  collapseRow: "\u6536\u8D77\u884C",
271
270
  expandRow: "\u5C55\u5F00\u884C",
272
271
  filterColumn: "\u7B5B\u9009\u5217",
273
- loadingRows: "\u6B63\u5728\u52A0\u8F7D\u8868\u683C\u884C",
274
272
  noDataAvailable: "\u6682\u65E0\u6570\u636E",
275
273
  selectAllRows: "\u9009\u62E9\u5168\u90E8\u884C",
276
274
  selectRow: "\u9009\u62E9\u884C",
@@ -829,7 +827,7 @@ var adsTextColorClassName = {
829
827
  // src/components/AdsAlertDialog/index.tsx
830
828
  var import_jsx_runtime8 = require("react/jsx-runtime");
831
829
  var overlayClassName = "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";
832
- var contentClassName = "fixed left-1/2 top-1/2 z-50 grid w-[calc(100%-2rem)] max-w-[512px] -translate-x-1/2 -translate-y-1/2 gap-lg rounded-radius-lg border-0 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%]";
830
+ var contentClassName = "fixed left-1/2 top-1/2 z-50 grid w-[calc(100%-2rem)] max-w-[512px] -translate-x-1/2 -translate-y-1/2 gap-lg rounded-radius-lg 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%]";
833
831
  var actionClassName = "inline-flex h-9 items-center justify-center rounded-radius-md border-0 bg-brand-gradient px-lg py-sm text-sm font-medium leading-5 tracking-normal shadow-[0px_1px_2px_rgba(0,0,0,0.1)] transition-opacity hover:opacity-90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-card disabled:pointer-events-none disabled:opacity-[0.65]";
834
832
  var cancelClassName = "inline-flex h-9 items-center justify-center rounded-radius-md border border-border bg-card px-lg py-sm text-sm font-medium leading-5 tracking-normal shadow-[0px_1px_2px_rgba(0,0,0,0.1)] transition-colors hover:bg-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-card disabled:pointer-events-none disabled:opacity-[0.65]";
835
833
  var AlertDialog = AlertDialogPrimitive.Root;
@@ -1144,16 +1142,43 @@ var AdsButton = React10.forwardRef(
1144
1142
  );
1145
1143
  AdsButton.displayName = "AdsButton";
1146
1144
 
1145
+ // src/components/AdsCard/index.tsx
1146
+ var React11 = __toESM(require("react"), 1);
1147
+ var import_react_slot2 = require("@radix-ui/react-slot");
1148
+ var import_jsx_runtime12 = require("react/jsx-runtime");
1149
+ var cardBaseClassName = "relative isolate rounded-radius-lg border border-border bg-card shadow-[0px_1px_2px_rgba(0,0,0,0.1)]";
1150
+ var cardInteractiveClassName = "transition-[transform,border-color,box-shadow,background-image] duration-300 motion-safe:hover:-translate-y-1 motion-safe:focus-visible:-translate-y-1 hover:[border-color:color-mix(in_srgb,var(--color-brand-primary)_38%,var(--color-border-subtle))] focus-visible:border-border-focus focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background hover:[box-shadow:0_24px_52px_rgba(0,0,0,0.28),0_12px_28px_color-mix(in_srgb,var(--color-brand-gradient-from)_18%,transparent),0_6px_16px_color-mix(in_srgb,var(--color-brand-gradient-to)_14%,transparent),0_0_0_1px_color-mix(in_srgb,var(--color-brand-primary)_14%,transparent)] focus-visible:[box-shadow:0_24px_52px_rgba(0,0,0,0.28),0_12px_28px_color-mix(in_srgb,var(--color-brand-gradient-from)_18%,transparent),0_6px_16px_color-mix(in_srgb,var(--color-brand-gradient-to)_14%,transparent),0_0_0_1px_color-mix(in_srgb,var(--color-brand-primary)_14%,transparent)] hover:[background-image:linear-gradient(135deg,color-mix(in_srgb,var(--color-brand-gradient-from)_8%,transparent)_0%,transparent_68%)] focus-visible:[background-image:linear-gradient(135deg,color-mix(in_srgb,var(--color-brand-gradient-from)_8%,transparent)_0%,transparent_68%)] motion-reduce:transition-none motion-reduce:hover:transform-none motion-reduce:focus-visible:transform-none";
1151
+ var AdsCard = React11.forwardRef(
1152
+ ({ asChild = false, className, interactive = false, ...props }, ref) => {
1153
+ const Comp = asChild ? import_react_slot2.Slot : "div";
1154
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1155
+ Comp,
1156
+ {
1157
+ className: cn(
1158
+ cardBaseClassName,
1159
+ interactive && cardInteractiveClassName,
1160
+ className
1161
+ ),
1162
+ "data-interactive": interactive,
1163
+ "data-slot": "ads-card",
1164
+ ref,
1165
+ ...props
1166
+ }
1167
+ );
1168
+ }
1169
+ );
1170
+ AdsCard.displayName = "AdsCard";
1171
+
1147
1172
  // src/components/AdsBreadcrumb/index.tsx
1148
- var React12 = __toESM(require("react"), 1);
1173
+ var React13 = __toESM(require("react"), 1);
1149
1174
  var import_lucide_react5 = require("lucide-react");
1150
1175
 
1151
1176
  // src/primitives/breadcrumb.tsx
1152
- var React11 = __toESM(require("react"), 1);
1153
- var import_react_slot2 = require("@radix-ui/react-slot");
1177
+ var React12 = __toESM(require("react"), 1);
1178
+ var import_react_slot3 = require("@radix-ui/react-slot");
1154
1179
  var import_lucide_react4 = require("lucide-react");
1155
- var import_jsx_runtime12 = require("react/jsx-runtime");
1156
- var Breadcrumb = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1180
+ var import_jsx_runtime13 = require("react/jsx-runtime");
1181
+ var Breadcrumb = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1157
1182
  "nav",
1158
1183
  {
1159
1184
  "aria-label": "breadcrumb",
@@ -1163,7 +1188,7 @@ var Breadcrumb = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE
1163
1188
  }
1164
1189
  ));
1165
1190
  Breadcrumb.displayName = "Breadcrumb";
1166
- var BreadcrumbList = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1191
+ var BreadcrumbList = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1167
1192
  "ul",
1168
1193
  {
1169
1194
  className: cn(
@@ -1175,7 +1200,7 @@ var BreadcrumbList = React11.forwardRef(({ className, ...props }, ref) => /* @__
1175
1200
  }
1176
1201
  ));
1177
1202
  BreadcrumbList.displayName = "BreadcrumbList";
1178
- var BreadcrumbItem = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1203
+ var BreadcrumbItem = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1179
1204
  "li",
1180
1205
  {
1181
1206
  className: cn("inline-flex items-center gap-1.5", className),
@@ -1184,14 +1209,14 @@ var BreadcrumbItem = React11.forwardRef(({ className, ...props }, ref) => /* @__
1184
1209
  }
1185
1210
  ));
1186
1211
  BreadcrumbItem.displayName = "BreadcrumbItem";
1187
- var BreadcrumbLink = React11.forwardRef(
1212
+ var BreadcrumbLink = React12.forwardRef(
1188
1213
  ({ asChild = false, className, ...props }, ref) => {
1189
- const Comp = asChild ? import_react_slot2.Slot : "a";
1190
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Comp, { className: cn("transition-colors", className), ref, ...props });
1214
+ const Comp = asChild ? import_react_slot3.Slot : "a";
1215
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Comp, { className: cn("transition-colors", className), ref, ...props });
1191
1216
  }
1192
1217
  );
1193
1218
  BreadcrumbLink.displayName = "BreadcrumbLink";
1194
- var BreadcrumbPage = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1219
+ var BreadcrumbPage = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1195
1220
  "span",
1196
1221
  {
1197
1222
  "aria-current": "page",
@@ -1207,21 +1232,21 @@ var BreadcrumbSeparator = ({
1207
1232
  children,
1208
1233
  className,
1209
1234
  ...props
1210
- }) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1235
+ }) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1211
1236
  "li",
1212
1237
  {
1213
1238
  "aria-hidden": "true",
1214
1239
  className: cn("[&_svg]:size-3.5", className),
1215
1240
  role: "presentation",
1216
1241
  ...props,
1217
- children: children ?? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_lucide_react4.ChevronRight, {})
1242
+ children: children ?? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_lucide_react4.ChevronRight, {})
1218
1243
  }
1219
1244
  );
1220
1245
  BreadcrumbSeparator.displayName = "BreadcrumbSeparator";
1221
1246
  var BreadcrumbEllipsis = ({
1222
1247
  className,
1223
1248
  ...props
1224
- }) => /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
1249
+ }) => /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
1225
1250
  "span",
1226
1251
  {
1227
1252
  "aria-hidden": "true",
@@ -1229,18 +1254,18 @@ var BreadcrumbEllipsis = ({
1229
1254
  role: "presentation",
1230
1255
  ...props,
1231
1256
  children: [
1232
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_lucide_react4.MoreHorizontal, { className: "size-3.5" }),
1233
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "sr-only", children: "More" })
1257
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_lucide_react4.MoreHorizontal, { className: "size-3.5" }),
1258
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "sr-only", children: "More" })
1234
1259
  ]
1235
1260
  }
1236
1261
  );
1237
1262
  BreadcrumbEllipsis.displayName = "BreadcrumbEllipsis";
1238
1263
 
1239
1264
  // src/components/AdsBreadcrumb/index.tsx
1240
- var import_jsx_runtime13 = require("react/jsx-runtime");
1241
- var AdsBreadcrumb = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Breadcrumb, { className: cn("w-full", className), ref, ...props }));
1265
+ var import_jsx_runtime14 = require("react/jsx-runtime");
1266
+ var AdsBreadcrumb = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Breadcrumb, { className: cn("w-full", className), ref, ...props }));
1242
1267
  AdsBreadcrumb.displayName = "AdsBreadcrumb";
1243
- var AdsBreadcrumbList = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1268
+ var AdsBreadcrumbList = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1244
1269
  BreadcrumbList,
1245
1270
  {
1246
1271
  className: cn(
@@ -1252,7 +1277,7 @@ var AdsBreadcrumbList = React12.forwardRef(({ className, ...props }, ref) => /*
1252
1277
  }
1253
1278
  ));
1254
1279
  AdsBreadcrumbList.displayName = "AdsBreadcrumbList";
1255
- var AdsBreadcrumbItem = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1280
+ var AdsBreadcrumbItem = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1256
1281
  BreadcrumbItem,
1257
1282
  {
1258
1283
  className: cn("inline-flex items-center gap-1.5", className),
@@ -1261,7 +1286,7 @@ var AdsBreadcrumbItem = React12.forwardRef(({ className, ...props }, ref) => /*
1261
1286
  }
1262
1287
  ));
1263
1288
  AdsBreadcrumbItem.displayName = "AdsBreadcrumbItem";
1264
- var AdsBreadcrumbLink = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1289
+ var AdsBreadcrumbLink = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1265
1290
  BreadcrumbLink,
1266
1291
  {
1267
1292
  className: cn(
@@ -1273,7 +1298,7 @@ var AdsBreadcrumbLink = React12.forwardRef(({ className, ...props }, ref) => /*
1273
1298
  }
1274
1299
  ));
1275
1300
  AdsBreadcrumbLink.displayName = "AdsBreadcrumbLink";
1276
- var AdsBreadcrumbPage = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1301
+ var AdsBreadcrumbPage = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1277
1302
  BreadcrumbPage,
1278
1303
  {
1279
1304
  className: cn("text-sm font-normal leading-5 text-foreground", className),
@@ -1283,15 +1308,15 @@ var AdsBreadcrumbPage = React12.forwardRef(({ className, ...props }, ref) => /*
1283
1308
  ));
1284
1309
  AdsBreadcrumbPage.displayName = "AdsBreadcrumbPage";
1285
1310
  var separatorIcons = {
1286
- chevron: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_lucide_react5.ChevronRight, { className: "size-3.5" }),
1287
- slash: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_lucide_react5.Slash, { className: "size-3.5" })
1311
+ chevron: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_lucide_react5.ChevronRight, { className: "size-3.5" }),
1312
+ slash: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_lucide_react5.Slash, { className: "size-3.5" })
1288
1313
  };
1289
1314
  var AdsBreadcrumbSeparator = ({
1290
1315
  children,
1291
1316
  className,
1292
1317
  icon = "chevron",
1293
1318
  ...props
1294
- }) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1319
+ }) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1295
1320
  BreadcrumbSeparator,
1296
1321
  {
1297
1322
  className: cn("text-muted-foreground [&_svg]:size-3.5", className),
@@ -1304,25 +1329,25 @@ var AdsBreadcrumbEllipsis = ({
1304
1329
  className,
1305
1330
  children,
1306
1331
  ...props
1307
- }) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1332
+ }) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1308
1333
  BreadcrumbEllipsis,
1309
1334
  {
1310
1335
  className: cn("size-3.5 text-muted-foreground", className),
1311
1336
  ...props,
1312
- children: children ?? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_lucide_react5.MoreHorizontal, { className: "size-3.5" })
1337
+ children: children ?? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_lucide_react5.MoreHorizontal, { className: "size-3.5" })
1313
1338
  }
1314
1339
  );
1315
1340
  AdsBreadcrumbEllipsis.displayName = "AdsBreadcrumbEllipsis";
1316
1341
 
1317
1342
  // src/components/AdsCheckbox/index.tsx
1318
- var React17 = __toESM(require("react"), 1);
1343
+ var React18 = __toESM(require("react"), 1);
1319
1344
 
1320
1345
  // src/primitives/checkbox.tsx
1321
- var React13 = __toESM(require("react"), 1);
1346
+ var React14 = __toESM(require("react"), 1);
1322
1347
  var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"), 1);
1323
1348
  var import_lucide_react6 = require("lucide-react");
1324
- var import_jsx_runtime14 = require("react/jsx-runtime");
1325
- var Checkbox = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1349
+ var import_jsx_runtime15 = require("react/jsx-runtime");
1350
+ var Checkbox = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1326
1351
  CheckboxPrimitive.Root,
1327
1352
  {
1328
1353
  ref,
@@ -1331,11 +1356,11 @@ var Checkbox = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__
1331
1356
  className
1332
1357
  ),
1333
1358
  ...props,
1334
- children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1359
+ children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1335
1360
  CheckboxPrimitive.Indicator,
1336
1361
  {
1337
1362
  className: cn("grid place-content-center text-current"),
1338
- children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_lucide_react6.Check, { className: "h-4 w-4" })
1363
+ children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_lucide_react6.Check, { className: "h-4 w-4" })
1339
1364
  }
1340
1365
  )
1341
1366
  }
@@ -1343,21 +1368,21 @@ var Checkbox = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__
1343
1368
  Checkbox.displayName = CheckboxPrimitive.Root.displayName;
1344
1369
 
1345
1370
  // src/components/AdsField/index.tsx
1346
- var React16 = __toESM(require("react"), 1);
1371
+ var React17 = __toESM(require("react"), 1);
1347
1372
 
1348
1373
  // src/primitives/field.tsx
1349
1374
  var import_react = require("react");
1350
1375
  var import_class_variance_authority7 = require("class-variance-authority");
1351
1376
 
1352
1377
  // src/primitives/label.tsx
1353
- var React14 = __toESM(require("react"), 1);
1378
+ var React15 = __toESM(require("react"), 1);
1354
1379
  var LabelPrimitive = __toESM(require("@radix-ui/react-label"), 1);
1355
1380
  var import_class_variance_authority6 = require("class-variance-authority");
1356
- var import_jsx_runtime15 = require("react/jsx-runtime");
1381
+ var import_jsx_runtime16 = require("react/jsx-runtime");
1357
1382
  var labelVariants = (0, import_class_variance_authority6.cva)(
1358
1383
  "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
1359
1384
  );
1360
- var Label = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1385
+ var Label = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1361
1386
  LabelPrimitive.Root,
1362
1387
  {
1363
1388
  ref,
@@ -1368,11 +1393,11 @@ var Label = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
1368
1393
  Label.displayName = LabelPrimitive.Root.displayName;
1369
1394
 
1370
1395
  // src/primitives/separator.tsx
1371
- var React15 = __toESM(require("react"), 1);
1396
+ var React16 = __toESM(require("react"), 1);
1372
1397
  var SeparatorPrimitive = __toESM(require("@radix-ui/react-separator"), 1);
1373
- var import_jsx_runtime16 = require("react/jsx-runtime");
1374
- var Separator = React15.forwardRef(
1375
- ({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1398
+ var import_jsx_runtime17 = require("react/jsx-runtime");
1399
+ var Separator = React16.forwardRef(
1400
+ ({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1376
1401
  SeparatorPrimitive.Root,
1377
1402
  {
1378
1403
  ref,
@@ -1390,9 +1415,9 @@ var Separator = React15.forwardRef(
1390
1415
  Separator.displayName = SeparatorPrimitive.Root.displayName;
1391
1416
 
1392
1417
  // src/primitives/field.tsx
1393
- var import_jsx_runtime17 = require("react/jsx-runtime");
1418
+ var import_jsx_runtime18 = require("react/jsx-runtime");
1394
1419
  function FieldSet({ className, ...props }) {
1395
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1420
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1396
1421
  "fieldset",
1397
1422
  {
1398
1423
  "data-slot": "field-set",
@@ -1410,7 +1435,7 @@ function FieldLegend({
1410
1435
  variant = "legend",
1411
1436
  ...props
1412
1437
  }) {
1413
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1438
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1414
1439
  "legend",
1415
1440
  {
1416
1441
  "data-slot": "field-legend",
@@ -1426,7 +1451,7 @@ function FieldLegend({
1426
1451
  );
1427
1452
  }
1428
1453
  function FieldGroup({ className, ...props }) {
1429
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1454
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1430
1455
  "div",
1431
1456
  {
1432
1457
  "data-slot": "field-group",
@@ -1466,7 +1491,7 @@ function Field({
1466
1491
  orientation = "vertical",
1467
1492
  ...props
1468
1493
  }) {
1469
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1494
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1470
1495
  "div",
1471
1496
  {
1472
1497
  role: "group",
@@ -1481,7 +1506,7 @@ function FieldLabel({
1481
1506
  className,
1482
1507
  ...props
1483
1508
  }) {
1484
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1509
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1485
1510
  Label,
1486
1511
  {
1487
1512
  "data-slot": "field-label",
@@ -1496,7 +1521,7 @@ function FieldLabel({
1496
1521
  );
1497
1522
  }
1498
1523
  function FieldTitle({ className, ...props }) {
1499
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1524
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1500
1525
  "div",
1501
1526
  {
1502
1527
  "data-slot": "field-label",
@@ -1509,7 +1534,7 @@ function FieldTitle({ className, ...props }) {
1509
1534
  );
1510
1535
  }
1511
1536
  function FieldDescription({ className, ...props }) {
1512
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1537
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1513
1538
  "p",
1514
1539
  {
1515
1540
  "data-slot": "field-description",
@@ -1528,7 +1553,7 @@ function FieldSeparator({
1528
1553
  className,
1529
1554
  ...props
1530
1555
  }) {
1531
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
1556
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
1532
1557
  "div",
1533
1558
  {
1534
1559
  "data-slot": "field-separator",
@@ -1539,8 +1564,8 @@ function FieldSeparator({
1539
1564
  ),
1540
1565
  ...props,
1541
1566
  children: [
1542
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Separator, { className: "absolute inset-0 top-1/2" }),
1543
- children && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1567
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Separator, { className: "absolute inset-0 top-1/2" }),
1568
+ children && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1544
1569
  "span",
1545
1570
  {
1546
1571
  className: "bg-background text-muted-foreground relative mx-auto block w-fit px-2",
@@ -1568,14 +1593,14 @@ function FieldError({
1568
1593
  if (errors?.length === 1 && errors[0]?.message) {
1569
1594
  return errors[0].message;
1570
1595
  }
1571
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("ul", { className: "ml-4 flex list-disc flex-col gap-1", children: errors.map(
1572
- (error, index) => error?.message && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("li", { children: error.message }, index)
1596
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("ul", { className: "ml-4 flex list-disc flex-col gap-1", children: errors.map(
1597
+ (error, index) => error?.message && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("li", { children: error.message }, index)
1573
1598
  ) });
1574
1599
  }, [children, errors]);
1575
1600
  if (!content) {
1576
1601
  return null;
1577
1602
  }
1578
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1603
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1579
1604
  "div",
1580
1605
  {
1581
1606
  role: "alert",
@@ -1588,14 +1613,14 @@ function FieldError({
1588
1613
  }
1589
1614
 
1590
1615
  // src/components/AdsField/index.tsx
1591
- var import_jsx_runtime18 = require("react/jsx-runtime");
1616
+ var import_jsx_runtime19 = require("react/jsx-runtime");
1592
1617
  function useAdsFieldDescription({
1593
1618
  describedBy,
1594
1619
  errorText,
1595
1620
  helperText,
1596
1621
  id
1597
1622
  }) {
1598
- const generatedId = React16.useId();
1623
+ const generatedId = React17.useId();
1599
1624
  const inputId = id ?? generatedId;
1600
1625
  const helperId = helperText ? `${inputId}-helper` : void 0;
1601
1626
  const errorId = errorText ? `${inputId}-error` : void 0;
@@ -1607,7 +1632,7 @@ function useAdsFieldDescription({
1607
1632
  inputId
1608
1633
  };
1609
1634
  }
1610
- var AdsField = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1635
+ var AdsField = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1611
1636
  FieldGroup,
1612
1637
  {
1613
1638
  className: cn("w-full gap-7", className),
@@ -1616,14 +1641,14 @@ var AdsField = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__
1616
1641
  }
1617
1642
  ));
1618
1643
  AdsField.displayName = "AdsField";
1619
- var AdsFieldHeader = React16.forwardRef(({ className, description, title, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
1644
+ var AdsFieldHeader = React17.forwardRef(({ className, description, title, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
1620
1645
  "div",
1621
1646
  {
1622
1647
  className: cn("flex w-full flex-col gap-3", className),
1623
1648
  ref,
1624
1649
  ...props,
1625
1650
  children: [
1626
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1651
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1627
1652
  FieldTitle,
1628
1653
  {
1629
1654
  className: cn(
@@ -1633,7 +1658,7 @@ var AdsFieldHeader = React16.forwardRef(({ className, description, title, ...pro
1633
1658
  children: title
1634
1659
  }
1635
1660
  ),
1636
- description ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1661
+ description ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1637
1662
  FieldDescription,
1638
1663
  {
1639
1664
  className: cn("w-full text-sm leading-5", adsTextColorClassName.muted),
@@ -1644,7 +1669,7 @@ var AdsFieldHeader = React16.forwardRef(({ className, description, title, ...pro
1644
1669
  }
1645
1670
  ));
1646
1671
  AdsFieldHeader.displayName = "AdsFieldHeader";
1647
- var AdsFieldItem = React16.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1672
+ var AdsFieldItem = React17.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1648
1673
  Field,
1649
1674
  {
1650
1675
  className: cn("w-full gap-3", className),
@@ -1654,7 +1679,7 @@ var AdsFieldItem = React16.forwardRef(({ className, orientation = "vertical", ..
1654
1679
  }
1655
1680
  ));
1656
1681
  AdsFieldItem.displayName = "AdsFieldItem";
1657
- var AdsFieldLabel = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1682
+ var AdsFieldLabel = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1658
1683
  FieldLabel,
1659
1684
  {
1660
1685
  className: cn(
@@ -1667,7 +1692,7 @@ var AdsFieldLabel = React16.forwardRef(({ className, ...props }, ref) => /* @__P
1667
1692
  }
1668
1693
  ));
1669
1694
  AdsFieldLabel.displayName = "AdsFieldLabel";
1670
- var AdsFieldLegend = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1695
+ var AdsFieldLegend = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1671
1696
  FieldLegend,
1672
1697
  {
1673
1698
  className: cn(
@@ -1680,7 +1705,7 @@ var AdsFieldLegend = React16.forwardRef(({ className, ...props }, ref) => /* @__
1680
1705
  }
1681
1706
  ));
1682
1707
  AdsFieldLegend.displayName = "AdsFieldLegend";
1683
- var AdsFieldDescription = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1708
+ var AdsFieldDescription = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1684
1709
  FieldDescription,
1685
1710
  {
1686
1711
  className: cn("text-sm leading-5", adsTextColorClassName.muted, className),
@@ -1689,7 +1714,7 @@ var AdsFieldDescription = React16.forwardRef(({ className, ...props }, ref) => /
1689
1714
  }
1690
1715
  ));
1691
1716
  AdsFieldDescription.displayName = "AdsFieldDescription";
1692
- var AdsFieldError = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1717
+ var AdsFieldError = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1693
1718
  FieldError,
1694
1719
  {
1695
1720
  className: cn("text-sm leading-5 text-destructive", className),
@@ -1698,7 +1723,7 @@ var AdsFieldError = React16.forwardRef(({ className, ...props }, ref) => /* @__P
1698
1723
  }
1699
1724
  ));
1700
1725
  AdsFieldError.displayName = "AdsFieldError";
1701
- var AdsFieldSeparator = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1726
+ var AdsFieldSeparator = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1702
1727
  FieldSeparator,
1703
1728
  {
1704
1729
  className: cn("py-2", adsTextColorClassName.muted, className),
@@ -1707,7 +1732,7 @@ var AdsFieldSeparator = React16.forwardRef(({ className, ...props }, ref) => /*
1707
1732
  }
1708
1733
  ));
1709
1734
  AdsFieldSeparator.displayName = "AdsFieldSeparator";
1710
- var AdsFieldGroup = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1735
+ var AdsFieldGroup = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1711
1736
  FieldGroup,
1712
1737
  {
1713
1738
  className: cn("w-full gap-6", className),
@@ -1716,7 +1741,7 @@ var AdsFieldGroup = React16.forwardRef(({ className, ...props }, ref) => /* @__P
1716
1741
  }
1717
1742
  ));
1718
1743
  AdsFieldGroup.displayName = "AdsFieldGroup";
1719
- var AdsFieldSet = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1744
+ var AdsFieldSet = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1720
1745
  FieldSet,
1721
1746
  {
1722
1747
  className: cn("w-full gap-6", className),
@@ -1725,7 +1750,7 @@ var AdsFieldSet = React16.forwardRef(({ className, ...props }, ref) => /* @__PUR
1725
1750
  }
1726
1751
  ));
1727
1752
  AdsFieldSet.displayName = "AdsFieldSet";
1728
- var AdsFieldCheckboxRow = React16.forwardRef(({ className, control, description, label, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
1753
+ var AdsFieldCheckboxRow = React17.forwardRef(({ className, control, description, label, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
1729
1754
  "div",
1730
1755
  {
1731
1756
  className: cn(
@@ -1736,16 +1761,16 @@ var AdsFieldCheckboxRow = React16.forwardRef(({ className, control, description,
1736
1761
  ref,
1737
1762
  ...props,
1738
1763
  children: [
1739
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "shrink-0 pt-px", children: control }),
1740
- /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-1.5", children: [
1741
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: cn("text-sm leading-5", adsTextColorClassName.default), children: label }),
1742
- description ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(AdsFieldDescription, { className: "text-sm leading-5", children: description }) : null
1764
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "shrink-0 pt-px", children: control }),
1765
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-1.5", children: [
1766
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: cn("text-sm leading-5", adsTextColorClassName.default), children: label }),
1767
+ description ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(AdsFieldDescription, { className: "text-sm leading-5", children: description }) : null
1743
1768
  ] })
1744
1769
  ]
1745
1770
  }
1746
1771
  ));
1747
1772
  AdsFieldCheckboxRow.displayName = "AdsFieldCheckboxRow";
1748
- var AdsFieldChoiceCard = React16.forwardRef(({ checked, className, control, description, title, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
1773
+ var AdsFieldChoiceCard = React17.forwardRef(({ checked, className, control, description, title, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
1749
1774
  "label",
1750
1775
  {
1751
1776
  className: cn(
@@ -1757,9 +1782,9 @@ var AdsFieldChoiceCard = React16.forwardRef(({ checked, className, control, desc
1757
1782
  ref,
1758
1783
  ...props,
1759
1784
  children: [
1760
- control ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "shrink-0 pt-px", children: control }) : null,
1761
- /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-1.5", children: [
1762
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1785
+ control ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "shrink-0 pt-px", children: control }) : null,
1786
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-1.5", children: [
1787
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1763
1788
  "div",
1764
1789
  {
1765
1790
  className: cn(
@@ -1769,13 +1794,13 @@ var AdsFieldChoiceCard = React16.forwardRef(({ checked, className, control, desc
1769
1794
  children: title
1770
1795
  }
1771
1796
  ),
1772
- description ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(AdsFieldDescription, { className: "text-sm leading-5", children: description }) : null
1797
+ description ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(AdsFieldDescription, { className: "text-sm leading-5", children: description }) : null
1773
1798
  ] })
1774
1799
  ]
1775
1800
  }
1776
1801
  ));
1777
1802
  AdsFieldChoiceCard.displayName = "AdsFieldChoiceCard";
1778
- var AdsFieldActions = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1803
+ var AdsFieldActions = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1779
1804
  "div",
1780
1805
  {
1781
1806
  className: cn("flex w-full flex-wrap items-center gap-3", className),
@@ -1786,15 +1811,15 @@ var AdsFieldActions = React16.forwardRef(({ className, ...props }, ref) => /* @_
1786
1811
  AdsFieldActions.displayName = "AdsFieldActions";
1787
1812
 
1788
1813
  // src/components/AdsCheckbox/index.tsx
1789
- var import_jsx_runtime19 = require("react/jsx-runtime");
1814
+ var import_jsx_runtime20 = require("react/jsx-runtime");
1790
1815
  var checkboxBaseClassName = "h-4 w-4 rounded-[4px] 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 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground";
1791
- var Checkbox2 = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Checkbox, { className: cn(checkboxBaseClassName, className), ref, ...props }));
1816
+ var Checkbox2 = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Checkbox, { className: cn(checkboxBaseClassName, className), ref, ...props }));
1792
1817
  Checkbox2.displayName = "Checkbox";
1793
- var AdsCheckbox = React17.forwardRef(({ checkboxClassName, className, description, id, label, wrapperClassName, ...props }, ref) => {
1794
- const generatedId = React17.useId();
1818
+ var AdsCheckbox = React18.forwardRef(({ checkboxClassName, className, description, id, label, wrapperClassName, ...props }, ref) => {
1819
+ const generatedId = React18.useId();
1795
1820
  const inputId = id ?? generatedId;
1796
1821
  if (!label) {
1797
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1822
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1798
1823
  Checkbox2,
1799
1824
  {
1800
1825
  className: cn(className, checkboxClassName),
@@ -1804,10 +1829,10 @@ var AdsCheckbox = React17.forwardRef(({ checkboxClassName, className, descriptio
1804
1829
  }
1805
1830
  );
1806
1831
  }
1807
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("label", { className: cn("block w-full cursor-pointer", wrapperClassName), htmlFor: inputId, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1832
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("label", { className: cn("block w-full cursor-pointer", wrapperClassName), htmlFor: inputId, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1808
1833
  AdsFieldCheckboxRow,
1809
1834
  {
1810
- control: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1835
+ control: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1811
1836
  Checkbox2,
1812
1837
  {
1813
1838
  className: cn(className, checkboxClassName),
@@ -1824,16 +1849,16 @@ var AdsCheckbox = React17.forwardRef(({ checkboxClassName, className, descriptio
1824
1849
  AdsCheckbox.displayName = "AdsCheckbox";
1825
1850
 
1826
1851
  // src/components/AdsCalendar/index.tsx
1827
- var React24 = __toESM(require("react"), 1);
1852
+ var React25 = __toESM(require("react"), 1);
1828
1853
  var import_date_fns = require("date-fns");
1829
1854
  var import_lucide_react8 = require("lucide-react");
1830
1855
 
1831
1856
  // src/primitives/input.tsx
1832
- var React18 = __toESM(require("react"), 1);
1833
- var import_jsx_runtime20 = require("react/jsx-runtime");
1834
- var Input = React18.forwardRef(
1857
+ var React19 = __toESM(require("react"), 1);
1858
+ var import_jsx_runtime21 = require("react/jsx-runtime");
1859
+ var Input = React19.forwardRef(
1835
1860
  ({ className, type, ...props }, ref) => {
1836
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1861
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1837
1862
  "input",
1838
1863
  {
1839
1864
  type,
@@ -1850,20 +1875,20 @@ var Input = React18.forwardRef(
1850
1875
  Input.displayName = "Input";
1851
1876
 
1852
1877
  // src/components/AdsPopover/index.tsx
1853
- var React21 = __toESM(require("react"), 1);
1878
+ var React22 = __toESM(require("react"), 1);
1854
1879
 
1855
1880
  // src/primitives/popover.tsx
1856
- var React20 = __toESM(require("react"), 1);
1881
+ var React21 = __toESM(require("react"), 1);
1857
1882
  var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"), 1);
1858
1883
 
1859
1884
  // src/lib/nestedDismissableLayer.tsx
1860
- var React19 = __toESM(require("react"), 1);
1861
- var import_jsx_runtime21 = require("react/jsx-runtime");
1862
- var NestedDismissableLayerContext = React19.createContext(null);
1885
+ var React20 = __toESM(require("react"), 1);
1886
+ var import_jsx_runtime22 = require("react/jsx-runtime");
1887
+ var NestedDismissableLayerContext = React20.createContext(null);
1863
1888
  function useNestedDismissableLayerCoordinator() {
1864
- const activeLayersRef = React19.useRef(/* @__PURE__ */ new Map());
1865
- const pointerInteractionHadNestedLayerRef = React19.useRef(false);
1866
- const registerNestedLayer = React19.useCallback(
1889
+ const activeLayersRef = React20.useRef(/* @__PURE__ */ new Map());
1890
+ const pointerInteractionHadNestedLayerRef = React20.useRef(false);
1891
+ const registerNestedLayer = React20.useCallback(
1867
1892
  (id, dismiss) => {
1868
1893
  const activeLayers = activeLayersRef.current;
1869
1894
  activeLayers.delete(id);
@@ -1876,19 +1901,19 @@ function useNestedDismissableLayerCoordinator() {
1876
1901
  },
1877
1902
  []
1878
1903
  );
1879
- const hasActiveNestedLayer = React19.useCallback(
1904
+ const hasActiveNestedLayer = React20.useCallback(
1880
1905
  () => activeLayersRef.current.size > 0,
1881
1906
  []
1882
1907
  );
1883
- const hadActiveNestedLayerAtPointerDown = React19.useCallback(
1908
+ const hadActiveNestedLayerAtPointerDown = React20.useCallback(
1884
1909
  () => pointerInteractionHadNestedLayerRef.current,
1885
1910
  []
1886
1911
  );
1887
- const dismissTopNestedLayer = React19.useCallback(() => {
1912
+ const dismissTopNestedLayer = React20.useCallback(() => {
1888
1913
  const activeLayers = [...activeLayersRef.current.values()];
1889
1914
  activeLayers.at(-1)?.();
1890
1915
  }, []);
1891
- React19.useEffect(() => {
1916
+ React20.useEffect(() => {
1892
1917
  const ownerDocument = globalThis.document;
1893
1918
  if (!ownerDocument) return;
1894
1919
  const handlePointerDown = () => {
@@ -1909,7 +1934,7 @@ function useNestedDismissableLayerCoordinator() {
1909
1934
  ownerDocument.removeEventListener("keydown", handleKeyDown, true);
1910
1935
  };
1911
1936
  }, []);
1912
- return React19.useMemo(
1937
+ return React20.useMemo(
1913
1938
  () => ({
1914
1939
  dismissTopNestedLayer,
1915
1940
  hasActiveNestedLayer,
@@ -1930,8 +1955,8 @@ function useNestedDismissableLayerParent({
1930
1955
  onPointerDownOutside
1931
1956
  } = {}) {
1932
1957
  const coordinator = useNestedDismissableLayerCoordinator();
1933
- const shieldNextFocusOutsideRef = React19.useRef(false);
1934
- const handlePointerDownOutside = React19.useCallback(
1958
+ const shieldNextFocusOutsideRef = React20.useRef(false);
1959
+ const handlePointerDownOutside = React20.useCallback(
1935
1960
  (event) => {
1936
1961
  onPointerDownOutside?.(event);
1937
1962
  if (event.defaultPrevented) return;
@@ -1949,7 +1974,7 @@ function useNestedDismissableLayerParent({
1949
1974
  },
1950
1975
  [coordinator, onPointerDownOutside]
1951
1976
  );
1952
- const handleFocusOutside = React19.useCallback(
1977
+ const handleFocusOutside = React20.useCallback(
1953
1978
  (event) => {
1954
1979
  onFocusOutside?.(event);
1955
1980
  if (event.defaultPrevented) return;
@@ -1965,7 +1990,7 @@ function useNestedDismissableLayerParent({
1965
1990
  },
1966
1991
  [coordinator, onFocusOutside]
1967
1992
  );
1968
- const handleEscapeKeyDown = React19.useCallback(
1993
+ const handleEscapeKeyDown = React20.useCallback(
1969
1994
  (event) => {
1970
1995
  onEscapeKeyDown?.(event);
1971
1996
  if (event.defaultPrevented || !coordinator.hasActiveNestedLayer()) {
@@ -1976,7 +2001,7 @@ function useNestedDismissableLayerParent({
1976
2001
  },
1977
2002
  [coordinator, onEscapeKeyDown]
1978
2003
  );
1979
- return React19.useMemo(
2004
+ return React20.useMemo(
1980
2005
  () => ({
1981
2006
  coordinator,
1982
2007
  onEscapeKeyDown: handleEscapeKeyDown,
@@ -1995,22 +2020,22 @@ function NestedDismissableLayerProvider({
1995
2020
  children,
1996
2021
  coordinator
1997
2022
  }) {
1998
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(NestedDismissableLayerContext.Provider, { value: coordinator, children });
2023
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(NestedDismissableLayerContext.Provider, { value: coordinator, children });
1999
2024
  }
2000
2025
  function useNestedDismissableLayer(active, dismiss) {
2001
- const coordinator = React19.useContext(NestedDismissableLayerContext);
2002
- const idRef = React19.useRef(/* @__PURE__ */ Symbol("ads-nested-dismissable-layer"));
2003
- React19.useEffect(() => {
2026
+ const coordinator = React20.useContext(NestedDismissableLayerContext);
2027
+ const idRef = React20.useRef(/* @__PURE__ */ Symbol("ads-nested-dismissable-layer"));
2028
+ React20.useEffect(() => {
2004
2029
  if (!active || !coordinator) return;
2005
2030
  return coordinator.registerNestedLayer(idRef.current, dismiss);
2006
2031
  }, [active, coordinator, dismiss]);
2007
2032
  }
2008
2033
 
2009
2034
  // src/primitives/popover.tsx
2010
- var import_jsx_runtime22 = require("react/jsx-runtime");
2035
+ var import_jsx_runtime23 = require("react/jsx-runtime");
2011
2036
  var Popover = PopoverPrimitive.Root;
2012
2037
  var PopoverTrigger = PopoverPrimitive.Trigger;
2013
- var PopoverContentImpl = React20.forwardRef(
2038
+ var PopoverContentImpl = React21.forwardRef(
2014
2039
  ({
2015
2040
  className,
2016
2041
  align = "center",
@@ -2025,7 +2050,7 @@ var PopoverContentImpl = React20.forwardRef(
2025
2050
  onFocusOutside,
2026
2051
  onPointerDownOutside
2027
2052
  });
2028
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(NestedDismissableLayerProvider, { coordinator: parentLayer.coordinator, children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2053
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(NestedDismissableLayerProvider, { coordinator: parentLayer.coordinator, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2029
2054
  PopoverPrimitive.Content,
2030
2055
  {
2031
2056
  ref,
@@ -2044,16 +2069,16 @@ var PopoverContentImpl = React20.forwardRef(
2044
2069
  }
2045
2070
  );
2046
2071
  PopoverContentImpl.displayName = "PopoverContentImpl";
2047
- var PopoverContent = React20.forwardRef((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(PopoverPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(PopoverContentImpl, { ...props, ref }) }));
2072
+ var PopoverContent = React21.forwardRef((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(PopoverPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(PopoverContentImpl, { ...props, ref }) }));
2048
2073
  PopoverContent.displayName = PopoverPrimitive.Content.displayName;
2049
2074
 
2050
2075
  // src/components/AdsPopover/index.tsx
2051
- var import_jsx_runtime23 = require("react/jsx-runtime");
2076
+ var import_jsx_runtime24 = require("react/jsx-runtime");
2052
2077
  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]";
2053
2078
  var AdsPopover = Popover;
2054
2079
  var AdsPopoverTrigger = PopoverTrigger;
2055
- var AdsPopoverContent = React21.forwardRef(
2056
- ({ align = "center", className, inset = false, sideOffset = 8, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2080
+ var AdsPopoverContent = React22.forwardRef(
2081
+ ({ align = "center", className, inset = false, sideOffset = 8, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2057
2082
  PopoverContent,
2058
2083
  {
2059
2084
  align,
@@ -2069,10 +2094,10 @@ var AdsPopoverContent = React21.forwardRef(
2069
2094
  )
2070
2095
  );
2071
2096
  AdsPopoverContent.displayName = "AdsPopoverContent";
2072
- var AdsPopoverHeader = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: cn("flex flex-col gap-sm", className), ref, ...props }));
2097
+ var AdsPopoverHeader = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: cn("flex flex-col gap-sm", className), ref, ...props }));
2073
2098
  AdsPopoverHeader.displayName = "AdsPopoverHeader";
2074
- var AdsPopoverBody = React21.forwardRef(
2075
- ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2099
+ var AdsPopoverBody = React22.forwardRef(
2100
+ ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2076
2101
  "div",
2077
2102
  {
2078
2103
  className: cn("mt-md flex flex-col gap-md", className),
@@ -2082,7 +2107,7 @@ var AdsPopoverBody = React21.forwardRef(
2082
2107
  )
2083
2108
  );
2084
2109
  AdsPopoverBody.displayName = "AdsPopoverBody";
2085
- var AdsPopoverTitle = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2110
+ var AdsPopoverTitle = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2086
2111
  "h4",
2087
2112
  {
2088
2113
  className: cn(
@@ -2095,7 +2120,7 @@ var AdsPopoverTitle = React21.forwardRef(({ className, ...props }, ref) => /* @_
2095
2120
  }
2096
2121
  ));
2097
2122
  AdsPopoverTitle.displayName = "AdsPopoverTitle";
2098
- var AdsPopoverDescription = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2123
+ var AdsPopoverDescription = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2099
2124
  "p",
2100
2125
  {
2101
2126
  className: cn("text-sm leading-5", adsTextColorClassName.muted, className),
@@ -2106,17 +2131,17 @@ var AdsPopoverDescription = React21.forwardRef(({ className, ...props }, ref) =>
2106
2131
  AdsPopoverDescription.displayName = "AdsPopoverDescription";
2107
2132
 
2108
2133
  // src/primitives/calendar.tsx
2109
- var React23 = __toESM(require("react"), 1);
2134
+ var React24 = __toESM(require("react"), 1);
2110
2135
  var import_react2 = require("@daypicker/react");
2111
2136
  var import_hijri = require("@daypicker/hijri");
2112
2137
  var import_persian = require("@daypicker/persian");
2113
2138
 
2114
2139
  // src/primitives/select.tsx
2115
- var React22 = __toESM(require("react"), 1);
2140
+ var React23 = __toESM(require("react"), 1);
2116
2141
  var DismissableLayerPrimitive = __toESM(require("@radix-ui/react-dismissable-layer"), 1);
2117
2142
  var SelectPrimitive = __toESM(require("@radix-ui/react-select"), 1);
2118
2143
  var import_lucide_react7 = require("lucide-react");
2119
- var import_jsx_runtime24 = require("react/jsx-runtime");
2144
+ var import_jsx_runtime25 = require("react/jsx-runtime");
2120
2145
  function Select({
2121
2146
  defaultOpen,
2122
2147
  onOpenChange,
@@ -2124,11 +2149,11 @@ function Select({
2124
2149
  ...props
2125
2150
  }) {
2126
2151
  const isControlled = openProp !== void 0;
2127
- const [uncontrolledOpen, setUncontrolledOpen] = React22.useState(
2152
+ const [uncontrolledOpen, setUncontrolledOpen] = React23.useState(
2128
2153
  defaultOpen ?? false
2129
2154
  );
2130
2155
  const resolvedOpen = isControlled ? openProp : uncontrolledOpen;
2131
- const handleOpenChange = React22.useCallback(
2156
+ const handleOpenChange = React23.useCallback(
2132
2157
  (nextOpen) => {
2133
2158
  if (!isControlled) {
2134
2159
  setUncontrolledOpen(nextOpen);
@@ -2137,11 +2162,11 @@ function Select({
2137
2162
  },
2138
2163
  [isControlled, onOpenChange]
2139
2164
  );
2140
- const handleNestedDismiss = React22.useCallback(() => {
2165
+ const handleNestedDismiss = React23.useCallback(() => {
2141
2166
  handleOpenChange(false);
2142
2167
  }, [handleOpenChange]);
2143
2168
  useNestedDismissableLayer(resolvedOpen, handleNestedDismiss);
2144
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2169
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2145
2170
  SelectPrimitive.Root,
2146
2171
  {
2147
2172
  ...props,
@@ -2154,7 +2179,7 @@ function Select({
2154
2179
  Select.displayName = SelectPrimitive.Root.displayName;
2155
2180
  var SelectGroup = SelectPrimitive.Group;
2156
2181
  var SelectValue = SelectPrimitive.Value;
2157
- var SelectTrigger = React22.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
2182
+ var SelectTrigger = React23.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
2158
2183
  SelectPrimitive.Trigger,
2159
2184
  {
2160
2185
  ref,
@@ -2165,12 +2190,12 @@ var SelectTrigger = React22.forwardRef(({ className, children, ...props }, ref)
2165
2190
  ...props,
2166
2191
  children: [
2167
2192
  children,
2168
- /* @__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" }) })
2193
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_lucide_react7.ChevronDown, { className: "h-4 w-4 opacity-50" }) })
2169
2194
  ]
2170
2195
  }
2171
2196
  ));
2172
2197
  SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
2173
- var SelectScrollUpButton = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2198
+ var SelectScrollUpButton = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2174
2199
  SelectPrimitive.ScrollUpButton,
2175
2200
  {
2176
2201
  ref,
@@ -2179,11 +2204,11 @@ var SelectScrollUpButton = React22.forwardRef(({ className, ...props }, ref) =>
2179
2204
  className
2180
2205
  ),
2181
2206
  ...props,
2182
- children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_lucide_react7.ChevronUp, { className: "h-4 w-4" })
2207
+ children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_lucide_react7.ChevronUp, { className: "h-4 w-4" })
2183
2208
  }
2184
2209
  ));
2185
2210
  SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
2186
- var SelectScrollDownButton = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2211
+ var SelectScrollDownButton = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2187
2212
  SelectPrimitive.ScrollDownButton,
2188
2213
  {
2189
2214
  ref,
@@ -2192,11 +2217,11 @@ var SelectScrollDownButton = React22.forwardRef(({ className, ...props }, ref) =
2192
2217
  className
2193
2218
  ),
2194
2219
  ...props,
2195
- children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_lucide_react7.ChevronDown, { className: "h-4 w-4" })
2220
+ children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_lucide_react7.ChevronDown, { className: "h-4 w-4" })
2196
2221
  }
2197
2222
  ));
2198
2223
  SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
2199
- 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)(
2224
+ var SelectContent = React23.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(SelectPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(DismissableLayerPrimitive.Branch, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
2200
2225
  SelectPrimitive.Content,
2201
2226
  {
2202
2227
  ref,
@@ -2208,8 +2233,8 @@ var SelectContent = React22.forwardRef(({ className, children, position = "poppe
2208
2233
  position,
2209
2234
  ...props,
2210
2235
  children: [
2211
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(SelectScrollUpButton, {}),
2212
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2236
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(SelectScrollUpButton, {}),
2237
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2213
2238
  SelectPrimitive.Viewport,
2214
2239
  {
2215
2240
  className: cn(
@@ -2219,12 +2244,12 @@ var SelectContent = React22.forwardRef(({ className, children, position = "poppe
2219
2244
  children
2220
2245
  }
2221
2246
  ),
2222
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(SelectScrollDownButton, {})
2247
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(SelectScrollDownButton, {})
2223
2248
  ]
2224
2249
  }
2225
2250
  ) }) }));
2226
2251
  SelectContent.displayName = SelectPrimitive.Content.displayName;
2227
- var SelectLabel = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2252
+ var SelectLabel = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2228
2253
  SelectPrimitive.Label,
2229
2254
  {
2230
2255
  ref,
@@ -2233,7 +2258,7 @@ var SelectLabel = React22.forwardRef(({ className, ...props }, ref) => /* @__PUR
2233
2258
  }
2234
2259
  ));
2235
2260
  SelectLabel.displayName = SelectPrimitive.Label.displayName;
2236
- var SelectItem = React22.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
2261
+ var SelectItem = React23.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
2237
2262
  SelectPrimitive.Item,
2238
2263
  {
2239
2264
  ref,
@@ -2243,13 +2268,13 @@ var SelectItem = React22.forwardRef(({ className, children, ...props }, ref) =>
2243
2268
  ),
2244
2269
  ...props,
2245
2270
  children: [
2246
- /* @__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" }) }) }),
2247
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(SelectPrimitive.ItemText, { children })
2271
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_lucide_react7.Check, { className: "h-4 w-4" }) }) }),
2272
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(SelectPrimitive.ItemText, { children })
2248
2273
  ]
2249
2274
  }
2250
2275
  ));
2251
2276
  SelectItem.displayName = SelectPrimitive.Item.displayName;
2252
- var SelectSeparator = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2277
+ var SelectSeparator = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2253
2278
  SelectPrimitive.Separator,
2254
2279
  {
2255
2280
  ref,
@@ -2260,7 +2285,7 @@ var SelectSeparator = React22.forwardRef(({ className, ...props }, ref) => /* @_
2260
2285
  SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
2261
2286
 
2262
2287
  // src/primitives/calendar.tsx
2263
- var import_jsx_runtime25 = require("react/jsx-runtime");
2288
+ var import_jsx_runtime26 = require("react/jsx-runtime");
2264
2289
  var cellSizeClasses = {
2265
2290
  md: {
2266
2291
  cell: "size-8",
@@ -2329,13 +2354,13 @@ function CalendarDropdown({
2329
2354
  }) {
2330
2355
  const { classNames, styles } = (0, import_react2.useDayPicker)();
2331
2356
  const selectedValue = value?.toString();
2332
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2357
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2333
2358
  "span",
2334
2359
  {
2335
2360
  className: classNames[import_react2.UI.DropdownRoot],
2336
2361
  "data-disabled": disabled,
2337
2362
  style: styles?.[import_react2.UI.DropdownRoot],
2338
- children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
2363
+ children: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
2339
2364
  Select,
2340
2365
  {
2341
2366
  disabled,
@@ -2346,7 +2371,7 @@ function CalendarDropdown({
2346
2371
  },
2347
2372
  value: selectedValue,
2348
2373
  children: [
2349
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2374
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2350
2375
  SelectTrigger,
2351
2376
  {
2352
2377
  "aria-label": ariaLabel,
@@ -2356,10 +2381,10 @@ function CalendarDropdown({
2356
2381
  className
2357
2382
  ),
2358
2383
  style,
2359
- children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(SelectValue, {})
2384
+ children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(SelectValue, {})
2360
2385
  }
2361
2386
  ),
2362
- /* @__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)(
2387
+ /* @__PURE__ */ (0, import_jsx_runtime26.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_runtime26.jsx)(
2363
2388
  SelectItem,
2364
2389
  {
2365
2390
  disabled: option.disabled,
@@ -2374,7 +2399,7 @@ function CalendarDropdown({
2374
2399
  }
2375
2400
  );
2376
2401
  }
2377
- var Calendar = React23.forwardRef(
2402
+ var Calendar = React24.forwardRef(
2378
2403
  ({
2379
2404
  captionLayout,
2380
2405
  calendarSystem = "gregorian",
@@ -2386,7 +2411,7 @@ var Calendar = React23.forwardRef(
2386
2411
  showOutsideDays = true,
2387
2412
  ...props
2388
2413
  }, ref) => {
2389
- const mergedClassNames = React23.useMemo(
2414
+ const mergedClassNames = React24.useMemo(
2390
2415
  () => ({
2391
2416
  ...getCalendarClassNames(cellSize, captionLayout?.startsWith("dropdown") ?? false),
2392
2417
  ...classNames
@@ -2407,7 +2432,7 @@ var Calendar = React23.forwardRef(
2407
2432
  showOutsideDays
2408
2433
  };
2409
2434
  if (calendarSystem === "persian") {
2410
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { ref, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2435
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { ref, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2411
2436
  import_persian.DayPicker,
2412
2437
  {
2413
2438
  ...sharedProps,
@@ -2418,7 +2443,7 @@ var Calendar = React23.forwardRef(
2418
2443
  ) });
2419
2444
  }
2420
2445
  if (calendarSystem === "hijri") {
2421
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { ref, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2446
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { ref, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2422
2447
  import_hijri.DayPicker,
2423
2448
  {
2424
2449
  ...sharedProps,
@@ -2428,13 +2453,13 @@ var Calendar = React23.forwardRef(
2428
2453
  }
2429
2454
  ) });
2430
2455
  }
2431
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { ref, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_react2.DayPicker, { ...sharedProps }) });
2456
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { ref, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react2.DayPicker, { ...sharedProps }) });
2432
2457
  }
2433
2458
  );
2434
2459
  Calendar.displayName = "Calendar";
2435
2460
 
2436
2461
  // src/components/AdsCalendar/index.tsx
2437
- var import_jsx_runtime26 = require("react/jsx-runtime");
2462
+ var import_jsx_runtime27 = require("react/jsx-runtime");
2438
2463
  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";
2439
2464
  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)]";
2440
2465
  function useControllableDate({
@@ -2442,12 +2467,12 @@ function useControllableDate({
2442
2467
  onSelect,
2443
2468
  selected
2444
2469
  }) {
2445
- const [internalSelected, setInternalSelected] = React24.useState(
2470
+ const [internalSelected, setInternalSelected] = React25.useState(
2446
2471
  defaultSelected
2447
2472
  );
2448
2473
  const isControlled = selected !== void 0;
2449
2474
  const value = isControlled ? selected : internalSelected;
2450
- const handleSelect = React24.useCallback(
2475
+ const handleSelect = React25.useCallback(
2451
2476
  (nextValue) => {
2452
2477
  if (!isControlled) {
2453
2478
  setInternalSelected(nextValue);
@@ -2464,11 +2489,11 @@ function getDateLabel(value, formatter) {
2464
2489
  }
2465
2490
  return formatter ? formatter(value) : (0, import_date_fns.format)(value, "MMM d, yyyy");
2466
2491
  }
2467
- var AdsCalendar = React24.forwardRef(
2468
- ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Calendar, { className: cn(className), ref, ...props })
2492
+ var AdsCalendar = React25.forwardRef(
2493
+ ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Calendar, { className: cn(className), ref, ...props })
2469
2494
  );
2470
2495
  AdsCalendar.displayName = "AdsCalendar";
2471
- var AdsDatePicker = React24.forwardRef(
2496
+ var AdsDatePicker = React25.forwardRef(
2472
2497
  ({
2473
2498
  className,
2474
2499
  defaultSelected,
@@ -2481,7 +2506,7 @@ var AdsDatePicker = React24.forwardRef(
2481
2506
  triggerClassName,
2482
2507
  ...calendarProps
2483
2508
  }, ref) => {
2484
- const [open, setOpen] = React24.useState(false);
2509
+ const [open, setOpen] = React25.useState(false);
2485
2510
  const [value, handleSelect] = useControllableDate({
2486
2511
  defaultSelected,
2487
2512
  onSelect,
@@ -2489,17 +2514,17 @@ var AdsDatePicker = React24.forwardRef(
2489
2514
  });
2490
2515
  const description = useAdsFieldDescription({ id });
2491
2516
  const labelText = getDateLabel(value, formatDateLabel) ?? placeholder;
2492
- const onCalendarSelect = React24.useCallback(
2517
+ const onCalendarSelect = React25.useCallback(
2493
2518
  (nextValue) => {
2494
2519
  handleSelect(nextValue);
2495
2520
  setOpen(false);
2496
2521
  },
2497
2522
  [handleSelect]
2498
2523
  );
2499
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(AdsFieldItem, { className: cn("gap-3", className), ref, children: [
2500
- label ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(AdsFieldLabel, { htmlFor: description.inputId, children: label }) : null,
2501
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(AdsPopover, { onOpenChange: setOpen, open, children: [
2502
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(AdsPopoverTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
2524
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(AdsFieldItem, { className: cn("gap-3", className), ref, children: [
2525
+ label ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(AdsFieldLabel, { htmlFor: description.inputId, children: label }) : null,
2526
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(AdsPopover, { onOpenChange: setOpen, open, children: [
2527
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(AdsPopoverTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
2503
2528
  Button,
2504
2529
  {
2505
2530
  "aria-label": labelText,
@@ -2512,12 +2537,12 @@ var AdsDatePicker = React24.forwardRef(
2512
2537
  id: description.inputId,
2513
2538
  type: "button",
2514
2539
  children: [
2515
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "truncate", children: labelText }),
2516
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_lucide_react8.ChevronDown, { "aria-hidden": true, className: "size-4 shrink-0 text-icon-muted" })
2540
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "truncate", children: labelText }),
2541
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_lucide_react8.ChevronDown, { "aria-hidden": true, className: "size-4 shrink-0 text-icon-muted" })
2517
2542
  ]
2518
2543
  }
2519
2544
  ) }),
2520
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(AdsPopoverContent, { className: "w-auto p-0", inset: true, sideOffset: 4, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2545
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(AdsPopoverContent, { className: "w-auto p-0", inset: true, sideOffset: 4, children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
2521
2546
  AdsCalendar,
2522
2547
  {
2523
2548
  ...calendarProps,
@@ -2531,18 +2556,18 @@ var AdsDatePicker = React24.forwardRef(
2531
2556
  }
2532
2557
  );
2533
2558
  AdsDatePicker.displayName = "AdsDatePicker";
2534
- var AdsDateTimePicker = React24.forwardRef(
2559
+ var AdsDateTimePicker = React25.forwardRef(
2535
2560
  ({
2536
2561
  className,
2537
2562
  timeLabel = "Time",
2538
2563
  timeValue = "",
2539
2564
  onTimeChange,
2540
2565
  ...props
2541
- }, ref) => /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: cn("flex flex-wrap items-start gap-4", className), ref, children: [
2542
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(AdsDatePicker, { className: "w-[min(100%,135px)]", ...props }),
2543
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(AdsFieldItem, { className: "w-[91px] gap-3", children: [
2544
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(AdsFieldLabel, { children: timeLabel }),
2545
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2566
+ }, ref) => /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: cn("flex flex-wrap items-start gap-4", className), ref, children: [
2567
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(AdsDatePicker, { className: "w-[min(100%,135px)]", ...props }),
2568
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(AdsFieldItem, { className: "w-[91px] gap-3", children: [
2569
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(AdsFieldLabel, { children: timeLabel }),
2570
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
2546
2571
  Input,
2547
2572
  {
2548
2573
  className: timeInputClassName,
@@ -2558,13 +2583,13 @@ var AdsDateTimePicker = React24.forwardRef(
2558
2583
  AdsDateTimePicker.displayName = "AdsDateTimePicker";
2559
2584
 
2560
2585
  // src/components/AdsButtonGroup/index.tsx
2561
- var React25 = __toESM(require("react"), 1);
2562
- var import_react_slot4 = require("@radix-ui/react-slot");
2586
+ var React26 = __toESM(require("react"), 1);
2587
+ var import_react_slot5 = require("@radix-ui/react-slot");
2563
2588
 
2564
2589
  // src/primitives/button-group.tsx
2565
- var import_react_slot3 = require("@radix-ui/react-slot");
2590
+ var import_react_slot4 = require("@radix-ui/react-slot");
2566
2591
  var import_class_variance_authority8 = require("class-variance-authority");
2567
- var import_jsx_runtime27 = require("react/jsx-runtime");
2592
+ var import_jsx_runtime28 = require("react/jsx-runtime");
2568
2593
  var buttonGroupVariants = (0, import_class_variance_authority8.cva)(
2569
2594
  "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",
2570
2595
  {
@@ -2584,7 +2609,7 @@ function ButtonGroupSeparator({
2584
2609
  orientation = "vertical",
2585
2610
  ...props
2586
2611
  }) {
2587
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
2612
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
2588
2613
  Separator,
2589
2614
  {
2590
2615
  "data-slot": "button-group-separator",
@@ -2603,7 +2628,7 @@ function ButtonGroupSeparator({
2603
2628
  }
2604
2629
 
2605
2630
  // src/components/AdsButtonGroup/index.tsx
2606
- var import_jsx_runtime28 = require("react/jsx-runtime");
2631
+ var import_jsx_runtime29 = require("react/jsx-runtime");
2607
2632
  var buttonGroupPressClassName = "[&_button]:transition-[background-color,box-shadow,filter] [&_button]:active:translate-y-0 [&_button]:active:brightness-95";
2608
2633
  var segmentSizeClassName = {
2609
2634
  sm: "h-8 px-md text-sm",
@@ -2611,14 +2636,14 @@ var segmentSizeClassName = {
2611
2636
  lg: "h-10 px-xl text-base"
2612
2637
  };
2613
2638
  function isAdsButtonElement(child) {
2614
- return React25.isValidElement(child) && child.type === AdsButton;
2639
+ return React26.isValidElement(child) && child.type === AdsButton;
2615
2640
  }
2616
2641
  function enhanceChildren(children, attached, size, surface) {
2617
- return React25.Children.map(children, (child) => {
2642
+ return React26.Children.map(children, (child) => {
2618
2643
  if (!isAdsButtonElement(child)) {
2619
2644
  return child;
2620
2645
  }
2621
- return React25.cloneElement(child, {
2646
+ return React26.cloneElement(child, {
2622
2647
  className: cn(
2623
2648
  attached && "rounded-none shadow-none",
2624
2649
  attached && surface === "secondary" && "bg-secondary hover:bg-secondary/90",
@@ -2628,7 +2653,7 @@ function enhanceChildren(children, attached, size, surface) {
2628
2653
  });
2629
2654
  });
2630
2655
  }
2631
- var AdsButtonGroup = React25.forwardRef(
2656
+ var AdsButtonGroup = React26.forwardRef(
2632
2657
  ({
2633
2658
  attached = true,
2634
2659
  children,
@@ -2647,7 +2672,7 @@ var AdsButtonGroup = React25.forwardRef(
2647
2672
  buttonGroupVariants({ orientation }),
2648
2673
  surface === "pill" ? "rounded-full" : "rounded-radius-md"
2649
2674
  );
2650
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
2675
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
2651
2676
  "div",
2652
2677
  {
2653
2678
  "aria-orientation": orientation,
@@ -2689,7 +2714,7 @@ var inputSizeClassName = {
2689
2714
  md: "h-9 text-sm leading-5",
2690
2715
  lg: "h-10 text-base leading-6"
2691
2716
  };
2692
- var AdsButtonGroupText = React25.forwardRef(
2717
+ var AdsButtonGroupText = React26.forwardRef(
2693
2718
  ({
2694
2719
  align = "start",
2695
2720
  asChild = false,
@@ -2699,8 +2724,8 @@ var AdsButtonGroupText = React25.forwardRef(
2699
2724
  tone = "default",
2700
2725
  ...props
2701
2726
  }, ref) => {
2702
- const Comp = asChild ? import_react_slot4.Slot : "div";
2703
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
2727
+ const Comp = asChild ? import_react_slot5.Slot : "div";
2728
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
2704
2729
  Comp,
2705
2730
  {
2706
2731
  className: cn(
@@ -2720,7 +2745,7 @@ var AdsButtonGroupText = React25.forwardRef(
2720
2745
  }
2721
2746
  );
2722
2747
  AdsButtonGroupText.displayName = "AdsButtonGroupText";
2723
- var AdsButtonGroupInput = React25.forwardRef(({ className, size = "md", type = "text", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
2748
+ var AdsButtonGroupInput = React26.forwardRef(({ className, size = "md", type = "text", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
2724
2749
  Input,
2725
2750
  {
2726
2751
  className: cn(
@@ -2737,13 +2762,13 @@ AdsButtonGroupInput.displayName = "AdsButtonGroupInput";
2737
2762
  var AdsButtonGroupSeparator = ButtonGroupSeparator;
2738
2763
 
2739
2764
  // src/components/AdsSeparator/index.tsx
2740
- var React26 = __toESM(require("react"), 1);
2741
- var import_jsx_runtime29 = require("react/jsx-runtime");
2765
+ var React27 = __toESM(require("react"), 1);
2766
+ var import_jsx_runtime30 = require("react/jsx-runtime");
2742
2767
  var toneClassName2 = {
2743
2768
  default: "bg-border",
2744
2769
  muted: "bg-border-muted"
2745
2770
  };
2746
- var AdsSeparator = React26.forwardRef(({ className, orientation = "horizontal", tone = "default", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
2771
+ var AdsSeparator = React27.forwardRef(({ className, orientation = "horizontal", tone = "default", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2747
2772
  Separator,
2748
2773
  {
2749
2774
  className: cn(
@@ -2760,13 +2785,13 @@ var AdsSeparator = React26.forwardRef(({ className, orientation = "horizontal",
2760
2785
  AdsSeparator.displayName = "AdsSeparator";
2761
2786
 
2762
2787
  // src/components/AdsSkeleton/index.tsx
2763
- var React28 = __toESM(require("react"), 1);
2788
+ var React29 = __toESM(require("react"), 1);
2764
2789
 
2765
2790
  // src/primitives/skeleton.tsx
2766
- var React27 = __toESM(require("react"), 1);
2767
- var import_jsx_runtime30 = require("react/jsx-runtime");
2768
- var Skeleton = React27.forwardRef(
2769
- ({ animated = true, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2791
+ var React28 = __toESM(require("react"), 1);
2792
+ var import_jsx_runtime31 = require("react/jsx-runtime");
2793
+ var Skeleton = React28.forwardRef(
2794
+ ({ animated = true, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2770
2795
  "div",
2771
2796
  {
2772
2797
  className: cn(
@@ -2782,7 +2807,7 @@ var Skeleton = React27.forwardRef(
2782
2807
  Skeleton.displayName = "Skeleton";
2783
2808
 
2784
2809
  // src/components/AdsSkeleton/index.tsx
2785
- var import_jsx_runtime31 = require("react/jsx-runtime");
2810
+ var import_jsx_runtime32 = require("react/jsx-runtime");
2786
2811
  var shapeClassName = {
2787
2812
  default: "rounded-radius-md",
2788
2813
  line: "h-4 w-full rounded-full",
@@ -2792,8 +2817,8 @@ var toneClassName3 = {
2792
2817
  default: "bg-secondary",
2793
2818
  muted: "bg-accent"
2794
2819
  };
2795
- var AdsSkeleton = React28.forwardRef(
2796
- ({ className, shape = "default", tone = "default", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2820
+ var AdsSkeleton = React29.forwardRef(
2821
+ ({ className, shape = "default", tone = "default", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
2797
2822
  Skeleton,
2798
2823
  {
2799
2824
  className: cn(shapeClassName[shape], toneClassName3[tone], className),
@@ -2805,39 +2830,33 @@ var AdsSkeleton = React28.forwardRef(
2805
2830
  AdsSkeleton.displayName = "AdsSkeleton";
2806
2831
 
2807
2832
  // src/components/AdsInput/index.tsx
2808
- var React30 = __toESM(require("react"), 1);
2809
- var import_lucide_react10 = require("lucide-react");
2833
+ var React31 = __toESM(require("react"), 1);
2810
2834
 
2811
2835
  // src/lib/adsClearButton.tsx
2812
- var React29 = __toESM(require("react"), 1);
2836
+ var React30 = __toESM(require("react"), 1);
2813
2837
  var import_lucide_react9 = require("lucide-react");
2814
- var import_jsx_runtime32 = require("react/jsx-runtime");
2838
+ var import_jsx_runtime33 = require("react/jsx-runtime");
2815
2839
  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";
2816
- var AdsClearButton = React29.forwardRef(({ className, type = "button", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
2840
+ var AdsClearButton = React30.forwardRef(({ className, type = "button", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
2817
2841
  "button",
2818
2842
  {
2819
2843
  ...props,
2820
2844
  className: cn(adsClearButtonClassName, "h-4 w-4", className),
2821
2845
  ref,
2822
2846
  type,
2823
- children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_lucide_react9.X, { "aria-hidden": true, className: "h-3.5 w-3.5" })
2847
+ children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_lucide_react9.X, { "aria-hidden": true, className: "h-3.5 w-3.5" })
2824
2848
  }
2825
2849
  ));
2826
2850
  AdsClearButton.displayName = "AdsClearButton";
2827
2851
 
2828
2852
  // src/components/AdsInput/index.tsx
2829
- var import_jsx_runtime33 = require("react/jsx-runtime");
2830
- 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:border-border disabled:bg-muted disabled:text-[var(--muted-foreground)] disabled:placeholder:text-[var(--muted-foreground)] disabled:opacity-100 disabled:focus-visible:border-border disabled:focus-visible:ring-0 md:text-sm";
2853
+ var import_jsx_runtime34 = require("react/jsx-runtime");
2854
+ 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";
2831
2855
  var inputSizeClasses = {
2832
2856
  sm: "h-8 text-sm leading-5",
2833
2857
  md: "h-9 text-base leading-6",
2834
2858
  lg: "h-10 text-base leading-6"
2835
2859
  };
2836
- var fileTriggerSizeClasses = {
2837
- sm: "h-8 px-md py-sm",
2838
- md: "h-9 px-lg py-sm",
2839
- lg: "h-10 px-xl py-[10px]"
2840
- };
2841
2860
  function assignInputRef(ref, value) {
2842
2861
  if (typeof ref === "function") {
2843
2862
  ref(value);
@@ -2856,17 +2875,6 @@ function getTextInputValue(value) {
2856
2875
  }
2857
2876
  return "";
2858
2877
  }
2859
- function renderFileTriggerIcon(icon) {
2860
- if (!icon) {
2861
- return null;
2862
- }
2863
- if (React30.isValidElement(icon)) {
2864
- return React30.cloneElement(icon, {
2865
- className: cn("!h-4 !w-4 h-4 w-4", icon.props.className)
2866
- });
2867
- }
2868
- return icon;
2869
- }
2870
2878
  function getInputSurfaceClassName({
2871
2879
  className,
2872
2880
  errorText,
@@ -2884,7 +2892,7 @@ function getInputSurfaceClassName({
2884
2892
  className
2885
2893
  );
2886
2894
  }
2887
- var AdsInput = React30.forwardRef(
2895
+ var AdsInput = React31.forwardRef(
2888
2896
  ({
2889
2897
  action,
2890
2898
  className,
@@ -2893,7 +2901,6 @@ var AdsInput = React30.forwardRef(
2893
2901
  descriptionPlacement = "below",
2894
2902
  emptyFileLabel,
2895
2903
  errorText,
2896
- fileTriggerIcon = /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_lucide_react10.Upload, { "aria-hidden": true, className: "h-4 w-4" }),
2897
2904
  fileTriggerLabel,
2898
2905
  helperText,
2899
2906
  id,
@@ -2907,9 +2914,9 @@ var AdsInput = React30.forwardRef(
2907
2914
  ...props
2908
2915
  }, ref) => {
2909
2916
  const { messages } = useAdsI18n();
2910
- const inputRef = React30.useRef(null);
2911
- const [selectedFiles, setSelectedFiles] = React30.useState([]);
2912
- const [currentValue, setCurrentValue] = React30.useState(
2917
+ const inputRef = React31.useRef(null);
2918
+ const [selectedFiles, setSelectedFiles] = React31.useState([]);
2919
+ const [currentValue, setCurrentValue] = React31.useState(
2913
2920
  () => getTextInputValue(props.value ?? props.defaultValue)
2914
2921
  );
2915
2922
  const description = useAdsFieldDescription({
@@ -2918,7 +2925,7 @@ var AdsInput = React30.forwardRef(
2918
2925
  helperText,
2919
2926
  id
2920
2927
  });
2921
- React30.useEffect(() => {
2928
+ React31.useEffect(() => {
2922
2929
  if (props.value !== void 0) {
2923
2930
  setCurrentValue(getTextInputValue(props.value));
2924
2931
  }
@@ -2934,9 +2941,8 @@ var AdsInput = React30.forwardRef(
2934
2941
  });
2935
2942
  const resolvedClearButtonLabel = clearButtonLabel ?? messages.input.clear;
2936
2943
  const resolvedFileTriggerLabel = fileTriggerLabel ?? messages.input.chooseFile;
2937
- const resolvedFileTriggerIcon = renderFileTriggerIcon(fileTriggerIcon);
2938
2944
  const resolvedEmptyFileLabel = emptyFileLabel ?? messages.input.noFileChosen;
2939
- const handleChange = React30.useCallback(
2945
+ const handleChange = React31.useCallback(
2940
2946
  (event) => {
2941
2947
  setCurrentValue(event.target.value);
2942
2948
  if (isFileInput) {
@@ -2948,7 +2954,7 @@ var AdsInput = React30.forwardRef(
2948
2954
  },
2949
2955
  [isFileInput, onChange]
2950
2956
  );
2951
- const handleClear = React30.useCallback(() => {
2957
+ const handleClear = React31.useCallback(() => {
2952
2958
  const element = inputRef.current;
2953
2959
  if (!element) {
2954
2960
  return;
@@ -2963,10 +2969,10 @@ var AdsInput = React30.forwardRef(
2963
2969
  onClear?.();
2964
2970
  }, [onClear]);
2965
2971
  const fileNameText = selectedFiles.length > 0 ? selectedFiles.join(", ") : resolvedEmptyFileLabel;
2966
- const helperNode = helperText ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(AdsFieldDescription, { id: description.helperId, children: helperText }) : null;
2967
- const errorNode = errorText ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(AdsFieldError, { id: description.errorId, children: errorText }) : null;
2968
- 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: [
2969
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
2972
+ const helperNode = helperText ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(AdsFieldDescription, { id: description.helperId, children: helperText }) : null;
2973
+ const errorNode = errorText ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(AdsFieldError, { id: description.errorId, children: errorText }) : null;
2974
+ const inputNode = isFileInput ? /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "relative flex w-full min-w-0 flex-1 items-center", children: [
2975
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
2970
2976
  Input,
2971
2977
  {
2972
2978
  "aria-describedby": description.describedBy,
@@ -2986,31 +2992,28 @@ var AdsInput = React30.forwardRef(
2986
2992
  ...props
2987
2993
  }
2988
2994
  ),
2989
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
2995
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
2990
2996
  "div",
2991
2997
  {
2992
2998
  "aria-hidden": "true",
2993
2999
  className: cn(
2994
- "flex w-full min-w-0 items-center gap-sm text-sm leading-5",
3000
+ inputSurfaceClassName,
3001
+ adsTextColorClassName.card,
3002
+ "items-center text-sm leading-5",
2995
3003
  props.disabled ? "cursor-not-allowed opacity-50" : void 0
2996
3004
  ),
2997
3005
  children: [
2998
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
3006
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
2999
3007
  "span",
3000
3008
  {
3001
- "data-ads-file-trigger": "",
3002
3009
  className: cn(
3003
- "inline-flex shrink-0 items-center justify-center gap-sm rounded-radius-md border-0 bg-primary text-sm font-medium leading-5 shadow-[0px_1px_2px_rgba(0,0,0,0.1)] transition-colors group-hover:bg-brand-primary-hover",
3004
- fileTriggerSizeClasses[size],
3005
- adsTextColorClassName.primary
3010
+ "shrink-0 pr-sm text-sm font-medium leading-5",
3011
+ adsTextColorClassName.card
3006
3012
  ),
3007
- children: [
3008
- 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,
3009
- resolvedFileTriggerLabel
3010
- ]
3013
+ children: resolvedFileTriggerLabel
3011
3014
  }
3012
3015
  ),
3013
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
3016
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3014
3017
  "span",
3015
3018
  {
3016
3019
  className: cn(
@@ -3023,9 +3026,9 @@ var AdsInput = React30.forwardRef(
3023
3026
  ]
3024
3027
  }
3025
3028
  )
3026
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "relative flex w-full min-w-0 flex-1 items-center", children: [
3027
- prefix ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "pointer-events-none absolute left-md inline-flex text-icon-muted", children: prefix }) : null,
3028
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
3029
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "relative flex w-full min-w-0 flex-1 items-center", children: [
3030
+ prefix ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "pointer-events-none absolute left-md inline-flex text-icon-muted", children: prefix }) : null,
3031
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3029
3032
  Input,
3030
3033
  {
3031
3034
  "aria-describedby": description.describedBy,
@@ -3041,9 +3044,9 @@ var AdsInput = React30.forwardRef(
3041
3044
  ...props
3042
3045
  }
3043
3046
  ),
3044
- canClear || suffix ? /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("span", { className: "absolute right-md inline-flex items-center gap-xs text-icon-muted", children: [
3045
- suffix ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "inline-flex items-center", children: suffix }) : null,
3046
- canClear ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
3047
+ canClear || suffix ? /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("span", { className: "absolute right-md inline-flex items-center gap-xs text-icon-muted", children: [
3048
+ suffix ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "inline-flex items-center", children: suffix }) : null,
3049
+ canClear ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3047
3050
  AdsClearButton,
3048
3051
  {
3049
3052
  "aria-label": resolvedClearButtonLabel,
@@ -3052,12 +3055,12 @@ var AdsInput = React30.forwardRef(
3052
3055
  ) : null
3053
3056
  ] }) : null
3054
3057
  ] });
3055
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(AdsFieldItem, { children: [
3056
- label ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(AdsFieldLabel, { htmlFor: description.inputId, children: label }) : null,
3058
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(AdsFieldItem, { children: [
3059
+ label ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(AdsFieldLabel, { htmlFor: description.inputId, children: label }) : null,
3057
3060
  descriptionPlacement === "above" ? helperNode : null,
3058
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex w-full items-center gap-sm", children: [
3061
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex w-full items-center gap-sm", children: [
3059
3062
  inputNode,
3060
- action ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "shrink-0", children: action }) : null
3063
+ action ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "shrink-0", children: action }) : null
3061
3064
  ] }),
3062
3065
  descriptionPlacement === "below" ? helperNode : null,
3063
3066
  errorNode
@@ -3067,13 +3070,13 @@ var AdsInput = React30.forwardRef(
3067
3070
  AdsInput.displayName = "AdsInput";
3068
3071
 
3069
3072
  // src/components/AdsInputGroup/index.tsx
3070
- var React32 = __toESM(require("react"), 1);
3073
+ var React33 = __toESM(require("react"), 1);
3071
3074
 
3072
3075
  // src/primitives/textarea.tsx
3073
- var React31 = __toESM(require("react"), 1);
3074
- var import_jsx_runtime34 = require("react/jsx-runtime");
3075
- var Textarea = React31.forwardRef(({ className, ...props }, ref) => {
3076
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3076
+ var React32 = __toESM(require("react"), 1);
3077
+ var import_jsx_runtime35 = require("react/jsx-runtime");
3078
+ var Textarea = React32.forwardRef(({ className, ...props }, ref) => {
3079
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3077
3080
  "textarea",
3078
3081
  {
3079
3082
  className: cn(
@@ -3088,7 +3091,7 @@ var Textarea = React31.forwardRef(({ className, ...props }, ref) => {
3088
3091
  Textarea.displayName = "Textarea";
3089
3092
 
3090
3093
  // src/components/AdsInputGroup/index.tsx
3091
- var import_jsx_runtime35 = require("react/jsx-runtime");
3094
+ var import_jsx_runtime36 = require("react/jsx-runtime");
3092
3095
  function useAdsInputGroupDescription(describedBy, helperText, errorText, idBase) {
3093
3096
  const helperId = helperText ? `${idBase}-helper` : void 0;
3094
3097
  const errorId = errorText ? `${idBase}-error` : void 0;
@@ -3107,11 +3110,11 @@ function AdsInputGroupChrome({
3107
3110
  helperText,
3108
3111
  label
3109
3112
  }) {
3110
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex w-full flex-col gap-md", children: [
3111
- label ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "text-sm font-medium leading-5 text-foreground", children: label }) : null,
3113
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "flex w-full flex-col gap-md", children: [
3114
+ label ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "text-sm font-medium leading-5 text-foreground", children: label }) : null,
3112
3115
  children,
3113
- helperText ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: "text-sm leading-5 text-muted-foreground", id: helperId, children: helperText }) : null,
3114
- errorText ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: "text-sm leading-5 text-destructive", id: errorId, children: errorText }) : null
3116
+ helperText ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("p", { className: "text-sm leading-5 text-muted-foreground", id: helperId, children: helperText }) : null,
3117
+ errorText ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("p", { className: "text-sm leading-5 text-destructive", id: errorId, children: errorText }) : null
3115
3118
  ] });
3116
3119
  }
3117
3120
  var addonBaseClassName = "flex shrink-0 items-center self-stretch bg-secondary px-lg text-sm leading-5 text-foreground";
@@ -3150,21 +3153,21 @@ function AdsInputGroup({
3150
3153
  trailingAddon,
3151
3154
  trailingAddonClassName
3152
3155
  }) {
3153
- const generatedId = React32.useId();
3156
+ const generatedId = React33.useId();
3154
3157
  const description = useAdsInputGroupDescription(
3155
3158
  void 0,
3156
3159
  helperText,
3157
3160
  errorText,
3158
3161
  id ?? generatedId
3159
3162
  );
3160
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3163
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3161
3164
  AdsInputGroupChrome,
3162
3165
  {
3163
3166
  errorText,
3164
3167
  helperText,
3165
3168
  label,
3166
3169
  ...description,
3167
- children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: cn("w-full", className), children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
3170
+ children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: cn("w-full", className), children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
3168
3171
  "div",
3169
3172
  {
3170
3173
  className: cn(
@@ -3174,9 +3177,9 @@ function AdsInputGroup({
3174
3177
  surfaceClassName
3175
3178
  ),
3176
3179
  children: [
3177
- header ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "border-b border-border px-md py-md text-sm text-foreground", children: header }) : null,
3178
- /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex min-h-11 w-full items-stretch", children: [
3179
- leadingAddon ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3180
+ header ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "border-b border-border px-md py-md text-sm text-foreground", children: header }) : null,
3181
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "flex min-h-11 w-full items-stretch", children: [
3182
+ leadingAddon ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3180
3183
  "div",
3181
3184
  {
3182
3185
  className: cn(
@@ -3187,7 +3190,7 @@ function AdsInputGroup({
3187
3190
  children: leadingAddon
3188
3191
  }
3189
3192
  ) : null,
3190
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3193
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3191
3194
  "div",
3192
3195
  {
3193
3196
  className: cn(
@@ -3197,7 +3200,7 @@ function AdsInputGroup({
3197
3200
  children
3198
3201
  }
3199
3202
  ),
3200
- trailingAddon ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3203
+ trailingAddon ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3201
3204
  "div",
3202
3205
  {
3203
3206
  className: cn(
@@ -3209,33 +3212,33 @@ function AdsInputGroup({
3209
3212
  }
3210
3213
  ) : null
3211
3214
  ] }),
3212
- 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
3215
+ footer ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "border-t border-border px-md py-sm text-sm text-muted-foreground", children: footer }) : null
3213
3216
  ]
3214
3217
  }
3215
3218
  ) })
3216
3219
  }
3217
3220
  );
3218
3221
  }
3219
- var AdsInputGroupInput = React32.forwardRef(({ className, clearable = false, clearButtonLabel, onChange, onClear, ...props }, ref) => {
3222
+ var AdsInputGroupInput = React33.forwardRef(({ className, clearable = false, clearButtonLabel, onChange, onClear, ...props }, ref) => {
3220
3223
  const { messages } = useAdsI18n();
3221
- const inputRef = React32.useRef(null);
3222
- const [currentValue, setCurrentValue] = React32.useState(
3224
+ const inputRef = React33.useRef(null);
3225
+ const [currentValue, setCurrentValue] = React33.useState(
3223
3226
  () => getInputGroupValue(props.value ?? props.defaultValue)
3224
3227
  );
3225
- React32.useEffect(() => {
3228
+ React33.useEffect(() => {
3226
3229
  if (props.value !== void 0) {
3227
3230
  setCurrentValue(getInputGroupValue(props.value));
3228
3231
  }
3229
3232
  }, [props.value]);
3230
3233
  const canClear = clearable && !props.disabled && !props.readOnly && currentValue.length > 0;
3231
- const handleChange = React32.useCallback(
3234
+ const handleChange = React33.useCallback(
3232
3235
  (event) => {
3233
3236
  setCurrentValue(event.target.value);
3234
3237
  onChange?.(event);
3235
3238
  },
3236
3239
  [onChange]
3237
3240
  );
3238
- const handleClear = React32.useCallback(() => {
3241
+ const handleClear = React33.useCallback(() => {
3239
3242
  const element = inputRef.current;
3240
3243
  if (!element) {
3241
3244
  return;
@@ -3249,8 +3252,8 @@ var AdsInputGroupInput = React32.forwardRef(({ className, clearable = false, cle
3249
3252
  element.focus();
3250
3253
  onClear?.();
3251
3254
  }, [onClear]);
3252
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "relative flex w-full min-w-0 flex-1 items-center", children: [
3253
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3255
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "relative flex w-full min-w-0 flex-1 items-center", children: [
3256
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3254
3257
  Input,
3255
3258
  {
3256
3259
  className: cn(
@@ -3267,7 +3270,7 @@ var AdsInputGroupInput = React32.forwardRef(({ className, clearable = false, cle
3267
3270
  ...props
3268
3271
  }
3269
3272
  ),
3270
- canClear ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3273
+ canClear ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3271
3274
  AdsClearButton,
3272
3275
  {
3273
3276
  "aria-label": clearButtonLabel ?? messages.input.clear,
@@ -3278,7 +3281,7 @@ var AdsInputGroupInput = React32.forwardRef(({ className, clearable = false, cle
3278
3281
  ] });
3279
3282
  });
3280
3283
  AdsInputGroupInput.displayName = "AdsInputGroupInput";
3281
- var AdsInputGroupTextarea = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3284
+ var AdsInputGroupTextarea = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3282
3285
  Textarea,
3283
3286
  {
3284
3287
  className: cn(
@@ -3293,14 +3296,14 @@ var AdsInputGroupTextarea = React32.forwardRef(({ className, ...props }, ref) =>
3293
3296
  AdsInputGroupTextarea.displayName = "AdsInputGroupTextarea";
3294
3297
 
3295
3298
  // src/components/AdsInputOTP/index.tsx
3296
- var React34 = __toESM(require("react"), 1);
3299
+ var React35 = __toESM(require("react"), 1);
3297
3300
 
3298
3301
  // src/primitives/input-otp.tsx
3299
- var React33 = __toESM(require("react"), 1);
3302
+ var React34 = __toESM(require("react"), 1);
3300
3303
  var import_input_otp = require("input-otp");
3301
- var import_lucide_react11 = require("lucide-react");
3302
- var import_jsx_runtime36 = require("react/jsx-runtime");
3303
- var InputOTP = React33.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3304
+ var import_lucide_react10 = require("lucide-react");
3305
+ var import_jsx_runtime37 = require("react/jsx-runtime");
3306
+ var InputOTP = React34.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3304
3307
  import_input_otp.OTPInput,
3305
3308
  {
3306
3309
  ref,
@@ -3313,12 +3316,12 @@ var InputOTP = React33.forwardRef(({ className, containerClassName, ...props },
3313
3316
  }
3314
3317
  ));
3315
3318
  InputOTP.displayName = "InputOTP";
3316
- var InputOTPGroup = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { ref, className: cn("flex items-center", className), ...props }));
3319
+ var InputOTPGroup = React34.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { ref, className: cn("flex items-center", className), ...props }));
3317
3320
  InputOTPGroup.displayName = "InputOTPGroup";
3318
- var InputOTPSlot = React33.forwardRef(({ index, className, ...props }, ref) => {
3319
- const inputOTPContext = React33.useContext(import_input_otp.OTPInputContext);
3321
+ var InputOTPSlot = React34.forwardRef(({ index, className, ...props }, ref) => {
3322
+ const inputOTPContext = React34.useContext(import_input_otp.OTPInputContext);
3320
3323
  const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];
3321
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
3324
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
3322
3325
  "div",
3323
3326
  {
3324
3327
  ref,
@@ -3330,19 +3333,19 @@ var InputOTPSlot = React33.forwardRef(({ index, className, ...props }, ref) => {
3330
3333
  ...props,
3331
3334
  children: [
3332
3335
  char,
3333
- 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" }) })
3336
+ hasFakeCaret && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "h-4 w-px animate-caret-blink bg-foreground duration-1000" }) })
3334
3337
  ]
3335
3338
  }
3336
3339
  );
3337
3340
  });
3338
3341
  InputOTPSlot.displayName = "InputOTPSlot";
3339
- 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, {}) }));
3342
+ var InputOTPSeparator = React34.forwardRef(({ ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { ref, role: "separator", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_lucide_react10.Dot, {}) }));
3340
3343
  InputOTPSeparator.displayName = "InputOTPSeparator";
3341
3344
 
3342
3345
  // src/components/AdsInputOTP/index.tsx
3343
- var import_jsx_runtime37 = require("react/jsx-runtime");
3346
+ var import_jsx_runtime38 = require("react/jsx-runtime");
3344
3347
  function useFieldDescription(id, describedBy, helperText, errorText) {
3345
- const generatedId = React34.useId();
3348
+ const generatedId = React35.useId();
3346
3349
  const inputId = id ?? generatedId;
3347
3350
  const helperId = helperText ? `${inputId}-helper` : void 0;
3348
3351
  const errorId = errorText ? `${inputId}-error` : void 0;
@@ -3363,21 +3366,21 @@ function AdsInputOTPChrome({
3363
3366
  inputId,
3364
3367
  label
3365
3368
  }) {
3366
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "flex w-full flex-col gap-md", children: [
3367
- label ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("label", { className: "text-sm font-medium leading-5 text-foreground", htmlFor: inputId, children: label }) : null,
3369
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "flex w-full flex-col gap-md", children: [
3370
+ label ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("label", { className: "text-sm font-medium leading-5 text-foreground", htmlFor: inputId, children: label }) : null,
3368
3371
  children,
3369
- helperText ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("p", { className: "text-sm leading-5 text-muted-foreground", id: helperId, children: helperText }) : null,
3370
- errorText ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("p", { className: "text-sm leading-5 text-destructive", id: errorId, children: errorText }) : null
3372
+ helperText ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("p", { className: "text-sm leading-5 text-muted-foreground", id: helperId, children: helperText }) : null,
3373
+ errorText ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("p", { className: "text-sm leading-5 text-destructive", id: errorId, children: errorText }) : null
3371
3374
  ] });
3372
3375
  }
3373
3376
  function buildSeparator(node, key) {
3374
3377
  if (node === void 0) {
3375
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(AdsInputOTPSeparator, {}, key);
3378
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(AdsInputOTPSeparator, {}, key);
3376
3379
  }
3377
- if (React34.isValidElement(node)) {
3378
- return React34.cloneElement(node, { key });
3380
+ if (React35.isValidElement(node)) {
3381
+ return React35.cloneElement(node, { key });
3379
3382
  }
3380
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { children: node }, key);
3383
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { children: node }, key);
3381
3384
  }
3382
3385
  function buildOtpChildren(groups, separator) {
3383
3386
  const defaultGroup = groups.length > 0 ? groups : [6];
@@ -3385,7 +3388,7 @@ function buildOtpChildren(groups, separator) {
3385
3388
  let index = 0;
3386
3389
  defaultGroup.forEach((size, indexOfGroup) => {
3387
3390
  items.push(
3388
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(AdsInputOTPGroup, { children: Array.from({ length: size }, (_, slotOffset) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3391
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(AdsInputOTPGroup, { children: Array.from({ length: size }, (_, slotOffset) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3389
3392
  AdsInputOTPSlot,
3390
3393
  {
3391
3394
  index: index + slotOffset
@@ -3400,11 +3403,11 @@ function buildOtpChildren(groups, separator) {
3400
3403
  });
3401
3404
  return items;
3402
3405
  }
3403
- var AdsInputOTP = React34.forwardRef(({ action, errorText, groups, helperText, label, separator, children, id, ...props }, ref) => {
3406
+ var AdsInputOTP = React35.forwardRef(({ action, errorText, groups, helperText, label, separator, children, id, ...props }, ref) => {
3404
3407
  const totalSlots = groups && groups.length > 0 ? groups.reduce((sum, value) => sum + value, 0) : 6;
3405
3408
  const description = useFieldDescription(id, props["aria-describedby"], helperText, errorText);
3406
3409
  const otpChildren = children ?? buildOtpChildren(groups ?? [], separator);
3407
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3410
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3408
3411
  AdsInputOTPChrome,
3409
3412
  {
3410
3413
  errorText,
@@ -3413,8 +3416,8 @@ var AdsInputOTP = React34.forwardRef(({ action, errorText, groups, helperText, l
3413
3416
  helperId: description.helperId,
3414
3417
  inputId: description.inputId,
3415
3418
  label,
3416
- children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "flex w-full items-center gap-sm", children: [
3417
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3419
+ children: /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "flex w-full items-center gap-sm", children: [
3420
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3418
3421
  InputOTP,
3419
3422
  {
3420
3423
  "aria-describedby": description.describedBy,
@@ -3426,15 +3429,15 @@ var AdsInputOTP = React34.forwardRef(({ action, errorText, groups, helperText, l
3426
3429
  children: otpChildren
3427
3430
  }
3428
3431
  ),
3429
- action ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "shrink-0", children: action }) : null
3432
+ action ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "shrink-0", children: action }) : null
3430
3433
  ] })
3431
3434
  }
3432
3435
  );
3433
3436
  });
3434
3437
  AdsInputOTP.displayName = "AdsInputOTP";
3435
- var AdsInputOTPGroup = React34.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(InputOTPGroup, { className, ref, ...props }));
3438
+ var AdsInputOTPGroup = React35.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(InputOTPGroup, { className, ref, ...props }));
3436
3439
  AdsInputOTPGroup.displayName = "AdsInputOTPGroup";
3437
- var AdsInputOTPSeparator = React34.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3440
+ var AdsInputOTPSeparator = React35.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3438
3441
  InputOTPSeparator,
3439
3442
  {
3440
3443
  className: className ?? "h-px w-6 shrink-0 bg-border text-transparent [&_svg]:hidden",
@@ -3443,7 +3446,7 @@ var AdsInputOTPSeparator = React34.forwardRef(({ className, ...props }, ref) =>
3443
3446
  }
3444
3447
  ));
3445
3448
  AdsInputOTPSeparator.displayName = "AdsInputOTPSeparator";
3446
- var AdsInputOTPSlot = React34.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3449
+ var AdsInputOTPSlot = React35.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3447
3450
  InputOTPSlot,
3448
3451
  {
3449
3452
  className: [
@@ -3460,17 +3463,17 @@ var AdsInputOTPSlot = React34.forwardRef(({ className, ...props }, ref) => /* @_
3460
3463
  AdsInputOTPSlot.displayName = "AdsInputOTPSlot";
3461
3464
 
3462
3465
  // src/components/AdsDataPagination/index.tsx
3463
- var React38 = __toESM(require("react"), 1);
3466
+ var React39 = __toESM(require("react"), 1);
3464
3467
 
3465
3468
  // src/components/AdsPagination/index.tsx
3466
- var React36 = __toESM(require("react"), 1);
3467
- var import_lucide_react13 = require("lucide-react");
3469
+ var React37 = __toESM(require("react"), 1);
3470
+ var import_lucide_react12 = require("lucide-react");
3468
3471
 
3469
3472
  // src/primitives/pagination.tsx
3470
- var React35 = __toESM(require("react"), 1);
3471
- var import_lucide_react12 = require("lucide-react");
3472
- var import_jsx_runtime38 = require("react/jsx-runtime");
3473
- var Pagination = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3473
+ var React36 = __toESM(require("react"), 1);
3474
+ var import_lucide_react11 = require("lucide-react");
3475
+ var import_jsx_runtime39 = require("react/jsx-runtime");
3476
+ var Pagination = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3474
3477
  "nav",
3475
3478
  {
3476
3479
  role: "navigation",
@@ -3480,7 +3483,7 @@ var Pagination = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_run
3480
3483
  }
3481
3484
  );
3482
3485
  Pagination.displayName = "Pagination";
3483
- var PaginationContent = React35.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3486
+ var PaginationContent = React36.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3484
3487
  "ul",
3485
3488
  {
3486
3489
  ref,
@@ -3489,14 +3492,14 @@ var PaginationContent = React35.forwardRef(({ className, ...props }, ref) => /*
3489
3492
  }
3490
3493
  ));
3491
3494
  PaginationContent.displayName = "PaginationContent";
3492
- var PaginationItem = React35.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("li", { ref, className: cn("", className), ...props }));
3495
+ var PaginationItem = React36.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("li", { ref, className: cn("", className), ...props }));
3493
3496
  PaginationItem.displayName = "PaginationItem";
3494
3497
  var PaginationLink = ({
3495
3498
  className,
3496
3499
  isActive,
3497
3500
  size = "icon",
3498
3501
  ...props
3499
- }) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3502
+ }) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3500
3503
  "a",
3501
3504
  {
3502
3505
  "aria-current": isActive ? "page" : void 0,
@@ -3514,7 +3517,7 @@ PaginationLink.displayName = "PaginationLink";
3514
3517
  var PaginationPrevious = ({
3515
3518
  className,
3516
3519
  ...props
3517
- }) => /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
3520
+ }) => /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
3518
3521
  PaginationLink,
3519
3522
  {
3520
3523
  "aria-label": "Go to previous page",
@@ -3522,8 +3525,8 @@ var PaginationPrevious = ({
3522
3525
  className: cn("gap-1 pl-2.5", className),
3523
3526
  ...props,
3524
3527
  children: [
3525
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_lucide_react12.ChevronLeft, { className: "h-4 w-4" }),
3526
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { children: "Previous" })
3528
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_lucide_react11.ChevronLeft, { className: "h-4 w-4" }),
3529
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { children: "Previous" })
3527
3530
  ]
3528
3531
  }
3529
3532
  );
@@ -3531,7 +3534,7 @@ PaginationPrevious.displayName = "PaginationPrevious";
3531
3534
  var PaginationNext = ({
3532
3535
  className,
3533
3536
  ...props
3534
- }) => /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
3537
+ }) => /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
3535
3538
  PaginationLink,
3536
3539
  {
3537
3540
  "aria-label": "Go to next page",
@@ -3539,8 +3542,8 @@ var PaginationNext = ({
3539
3542
  className: cn("gap-1 pr-2.5", className),
3540
3543
  ...props,
3541
3544
  children: [
3542
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { children: "Next" }),
3543
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_lucide_react12.ChevronRight, { className: "h-4 w-4" })
3545
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { children: "Next" }),
3546
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_lucide_react11.ChevronRight, { className: "h-4 w-4" })
3544
3547
  ]
3545
3548
  }
3546
3549
  );
@@ -3548,27 +3551,27 @@ PaginationNext.displayName = "PaginationNext";
3548
3551
  var PaginationEllipsis = ({
3549
3552
  className,
3550
3553
  ...props
3551
- }) => /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
3554
+ }) => /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
3552
3555
  "span",
3553
3556
  {
3554
3557
  "aria-hidden": true,
3555
3558
  className: cn("flex h-9 w-9 items-center justify-center", className),
3556
3559
  ...props,
3557
3560
  children: [
3558
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_lucide_react12.MoreHorizontal, { className: "h-4 w-4" }),
3559
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "sr-only", children: "More pages" })
3561
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_lucide_react11.MoreHorizontal, { className: "h-4 w-4" }),
3562
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { className: "sr-only", children: "More pages" })
3560
3563
  ]
3561
3564
  }
3562
3565
  );
3563
3566
  PaginationEllipsis.displayName = "PaginationEllipsis";
3564
3567
 
3565
3568
  // src/components/AdsPagination/index.tsx
3566
- var import_jsx_runtime39 = require("react/jsx-runtime");
3569
+ var import_jsx_runtime40 = require("react/jsx-runtime");
3567
3570
  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";
3568
3571
  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)]";
3569
3572
  var paginationLinkActiveClassName = "border-border bg-card px-[10px] text-foreground shadow-[0px_1px_2px_rgba(0,0,0,0.1)]";
3570
3573
  function AdsPagination({ className, ...props }) {
3571
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3574
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3572
3575
  Pagination,
3573
3576
  {
3574
3577
  className: cn("mx-0 w-auto justify-start", className),
@@ -3577,14 +3580,14 @@ function AdsPagination({ className, ...props }) {
3577
3580
  );
3578
3581
  }
3579
3582
  AdsPagination.displayName = "AdsPagination";
3580
- var AdsPaginationContent = React36.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(PaginationContent, { ref, className: cn("gap-1", className), ...props }));
3583
+ var AdsPaginationContent = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(PaginationContent, { ref, className: cn("gap-1", className), ...props }));
3581
3584
  AdsPaginationContent.displayName = "AdsPaginationContent";
3582
- var AdsPaginationItem = React36.forwardRef(
3583
- ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(PaginationItem, { ref, className, ...props })
3585
+ var AdsPaginationItem = React37.forwardRef(
3586
+ ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(PaginationItem, { ref, className, ...props })
3584
3587
  );
3585
3588
  AdsPaginationItem.displayName = "AdsPaginationItem";
3586
- var AdsPaginationLink = React36.forwardRef(
3587
- ({ className, isActive = false, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3589
+ var AdsPaginationLink = React37.forwardRef(
3590
+ ({ className, isActive = false, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3588
3591
  "a",
3589
3592
  {
3590
3593
  "aria-current": isActive ? "page" : void 0,
@@ -3599,10 +3602,10 @@ var AdsPaginationLink = React36.forwardRef(
3599
3602
  )
3600
3603
  );
3601
3604
  AdsPaginationLink.displayName = "AdsPaginationLink";
3602
- var AdsPaginationPrevious = React36.forwardRef(({ "aria-label": ariaLabel, children, className, ...props }, ref) => {
3605
+ var AdsPaginationPrevious = React37.forwardRef(({ "aria-label": ariaLabel, children, className, ...props }, ref) => {
3603
3606
  const { messages } = useAdsI18n();
3604
3607
  const label = children ?? messages.pagination.previous;
3605
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
3608
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
3606
3609
  AdsPaginationLink,
3607
3610
  {
3608
3611
  "aria-label": ariaLabel ?? messages.pagination.previous,
@@ -3610,18 +3613,18 @@ var AdsPaginationPrevious = React36.forwardRef(({ "aria-label": ariaLabel, child
3610
3613
  ref,
3611
3614
  ...props,
3612
3615
  children: [
3613
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_lucide_react13.ChevronLeft, { "aria-hidden": true, className: "h-4 w-4" }),
3614
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { children: label })
3616
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_lucide_react12.ChevronLeft, { "aria-hidden": true, className: "h-4 w-4" }),
3617
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { children: label })
3615
3618
  ]
3616
3619
  }
3617
3620
  );
3618
3621
  });
3619
3622
  AdsPaginationPrevious.displayName = "AdsPaginationPrevious";
3620
- var AdsPaginationNext = React36.forwardRef(
3623
+ var AdsPaginationNext = React37.forwardRef(
3621
3624
  ({ "aria-label": ariaLabel, children, className, ...props }, ref) => {
3622
3625
  const { messages } = useAdsI18n();
3623
3626
  const label = children ?? messages.pagination.next;
3624
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
3627
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
3625
3628
  AdsPaginationLink,
3626
3629
  {
3627
3630
  "aria-label": ariaLabel ?? messages.pagination.next,
@@ -3629,8 +3632,8 @@ var AdsPaginationNext = React36.forwardRef(
3629
3632
  ref,
3630
3633
  ...props,
3631
3634
  children: [
3632
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { children: label }),
3633
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_lucide_react13.ChevronRight, { "aria-hidden": true, className: "h-4 w-4" })
3635
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { children: label }),
3636
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_lucide_react12.ChevronRight, { "aria-hidden": true, className: "h-4 w-4" })
3634
3637
  ]
3635
3638
  }
3636
3639
  );
@@ -3644,7 +3647,7 @@ function AdsPaginationEllipsis({
3644
3647
  }) {
3645
3648
  const { messages } = useAdsI18n();
3646
3649
  const resolvedLabel = label ?? messages.pagination.morePages;
3647
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
3650
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
3648
3651
  "span",
3649
3652
  {
3650
3653
  "aria-hidden": true,
@@ -3654,8 +3657,8 @@ function AdsPaginationEllipsis({
3654
3657
  ),
3655
3658
  ...props,
3656
3659
  children: [
3657
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_lucide_react13.MoreHorizontal, { className: "h-4 w-4" }),
3658
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { className: "sr-only", children: resolvedLabel })
3660
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_lucide_react12.MoreHorizontal, { className: "h-4 w-4" }),
3661
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: "sr-only", children: resolvedLabel })
3659
3662
  ]
3660
3663
  }
3661
3664
  );
@@ -3663,8 +3666,8 @@ function AdsPaginationEllipsis({
3663
3666
  AdsPaginationEllipsis.displayName = "AdsPaginationEllipsis";
3664
3667
 
3665
3668
  // src/components/AdsSelect/index.tsx
3666
- var React37 = __toESM(require("react"), 1);
3667
- var import_jsx_runtime40 = require("react/jsx-runtime");
3669
+ var React38 = __toESM(require("react"), 1);
3670
+ var import_jsx_runtime41 = require("react/jsx-runtime");
3668
3671
  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)]";
3669
3672
  var selectContentBaseClassName = "rounded-radius-md border-border bg-popover text-popover-foreground shadow-[0px_8px_24px_rgba(0,0,0,0.22)]";
3670
3673
  function AdsSelect({
@@ -3689,7 +3692,7 @@ function AdsSelect({
3689
3692
  }) {
3690
3693
  const { messages } = useAdsI18n();
3691
3694
  const isControlled = value !== void 0;
3692
- const [internalValue, setInternalValue] = React37.useState(
3695
+ const [internalValue, setInternalValue] = React38.useState(
3693
3696
  defaultValue
3694
3697
  );
3695
3698
  const resolvedValue = isControlled ? value : internalValue;
@@ -3703,8 +3706,8 @@ function AdsSelect({
3703
3706
  });
3704
3707
  const resolvedClearButtonLabel = clearButtonLabel ?? messages.select.clear;
3705
3708
  const resolvedEmptyText = emptyText ?? messages.select.noOptionsAvailable;
3706
- const hasOptions = React37.Children.toArray(children).length > 0;
3707
- const handleValueChange = React37.useCallback(
3709
+ const hasOptions = React38.Children.toArray(children).length > 0;
3710
+ const handleValueChange = React38.useCallback(
3708
3711
  (nextValue) => {
3709
3712
  if (!isControlled) {
3710
3713
  setInternalValue(nextValue);
@@ -3713,7 +3716,7 @@ function AdsSelect({
3713
3716
  },
3714
3717
  [isControlled, onValueChange]
3715
3718
  );
3716
- const handleClear = React37.useCallback(
3719
+ const handleClear = React38.useCallback(
3717
3720
  (event) => {
3718
3721
  event.preventDefault();
3719
3722
  event.stopPropagation();
@@ -3725,12 +3728,12 @@ function AdsSelect({
3725
3728
  },
3726
3729
  [isControlled, onClear, onValueChange]
3727
3730
  );
3728
- const helperNode = helperText ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(AdsFieldDescription, { id: description.helperId, children: helperText }) : null;
3729
- const errorNode = errorText ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(AdsFieldError, { id: description.errorId, children: errorText }) : null;
3730
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(AdsFieldItem, { children: [
3731
- label ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(AdsFieldLabel, { htmlFor: description.inputId, children: label }) : null,
3731
+ const helperNode = helperText ? /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(AdsFieldDescription, { id: description.helperId, children: helperText }) : null;
3732
+ const errorNode = errorText ? /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(AdsFieldError, { id: description.errorId, children: errorText }) : null;
3733
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(AdsFieldItem, { children: [
3734
+ label ? /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(AdsFieldLabel, { htmlFor: description.inputId, children: label }) : null,
3732
3735
  descriptionPlacement === "above" ? helperNode : null,
3733
- /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
3736
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
3734
3737
  Select,
3735
3738
  {
3736
3739
  ...props,
@@ -3738,8 +3741,8 @@ function AdsSelect({
3738
3741
  onValueChange: handleValueChange,
3739
3742
  ...resolvedValue !== void 0 ? { value: resolvedValue } : {},
3740
3743
  children: [
3741
- /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "relative", children: [
3742
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3744
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "relative", children: [
3745
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3743
3746
  SelectTrigger,
3744
3747
  {
3745
3748
  "aria-describedby": description.describedBy,
@@ -3751,10 +3754,10 @@ function AdsSelect({
3751
3754
  triggerClassName
3752
3755
  ),
3753
3756
  id: description.inputId,
3754
- children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(SelectValue, { placeholder })
3757
+ children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(SelectValue, { placeholder })
3755
3758
  }
3756
3759
  ),
3757
- canClear ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3760
+ canClear ? /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3758
3761
  AdsClearButton,
3759
3762
  {
3760
3763
  "aria-label": resolvedClearButtonLabel,
@@ -3763,11 +3766,11 @@ function AdsSelect({
3763
3766
  }
3764
3767
  ) : null
3765
3768
  ] }),
3766
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3769
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3767
3770
  SelectContent,
3768
3771
  {
3769
3772
  className: cn(selectContentBaseClassName, contentClassName3),
3770
- children: hasOptions ? children : /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3773
+ children: hasOptions ? children : /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3771
3774
  "div",
3772
3775
  {
3773
3776
  "aria-live": "polite",
@@ -3790,7 +3793,7 @@ function AdsSelect({
3790
3793
  }
3791
3794
 
3792
3795
  // src/components/AdsDataPagination/index.tsx
3793
- var import_jsx_runtime41 = require("react/jsx-runtime");
3796
+ var import_jsx_runtime42 = require("react/jsx-runtime");
3794
3797
  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";
3795
3798
  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)]";
3796
3799
  var paginationButtonActiveClassName = "border-border bg-card px-[10px] text-foreground shadow-[0px_1px_2px_rgba(0,0,0,0.1)]";
@@ -3866,9 +3869,9 @@ function AdsDataPagination({
3866
3869
  ariaLabel
3867
3870
  }) {
3868
3871
  const { messages } = useAdsI18n();
3869
- const [internalCurrent, setInternalCurrent] = React38.useState(defaultCurrent);
3870
- const [internalPageSize, setInternalPageSize] = React38.useState(defaultPageSize);
3871
- const [quickJumpValue, setQuickJumpValue] = React38.useState("");
3872
+ const [internalCurrent, setInternalCurrent] = React39.useState(defaultCurrent);
3873
+ const [internalPageSize, setInternalPageSize] = React39.useState(defaultPageSize);
3874
+ const [quickJumpValue, setQuickJumpValue] = React39.useState("");
3872
3875
  const isCurrentControlled = current !== void 0;
3873
3876
  const isPageSizeControlled = pageSize !== void 0;
3874
3877
  const mergedPageSize = Math.max(1, isPageSizeControlled ? pageSize : internalPageSize);
@@ -3889,20 +3892,20 @@ function AdsDataPagination({
3889
3892
  new Set(pageSizeOptions.filter((option) => Number.isFinite(option) && option > 0))
3890
3893
  );
3891
3894
  const resolvedPageSizeOptions = pageSizeValues.length > 0 ? pageSizeValues : [10, 20, 50, 100];
3892
- React38.useEffect(() => {
3895
+ React39.useEffect(() => {
3893
3896
  if (!isCurrentControlled && internalCurrent !== mergedCurrent) {
3894
3897
  setInternalCurrent(mergedCurrent);
3895
3898
  }
3896
3899
  }, [internalCurrent, isCurrentControlled, mergedCurrent]);
3897
- React38.useEffect(() => {
3900
+ React39.useEffect(() => {
3898
3901
  if (!isPageSizeControlled && internalPageSize !== mergedPageSize) {
3899
3902
  setInternalPageSize(mergedPageSize);
3900
3903
  }
3901
3904
  }, [internalPageSize, isPageSizeControlled, mergedPageSize]);
3902
- React38.useEffect(() => {
3905
+ React39.useEffect(() => {
3903
3906
  setQuickJumpValue(String(mergedCurrent));
3904
3907
  }, [mergedCurrent]);
3905
- const commitPageChange = React38.useCallback(
3908
+ const commitPageChange = React39.useCallback(
3906
3909
  (nextPage, nextPageSize = mergedPageSize) => {
3907
3910
  const clampedPage = clampPage(nextPage, Math.max(1, Math.ceil(Math.max(total, 0) / nextPageSize)));
3908
3911
  if (!isCurrentControlled) {
@@ -3916,7 +3919,7 @@ function AdsDataPagination({
3916
3919
  },
3917
3920
  [isCurrentControlled, mergedCurrent, mergedPageSize, onChange, total]
3918
3921
  );
3919
- const handlePageSizeChange = React38.useCallback(
3922
+ const handlePageSizeChange = React39.useCallback(
3920
3923
  (nextValue) => {
3921
3924
  const nextPageSize = Number(nextValue);
3922
3925
  if (!Number.isFinite(nextPageSize) || nextPageSize <= 0 || nextPageSize === mergedPageSize) {
@@ -3941,7 +3944,7 @@ function AdsDataPagination({
3941
3944
  total
3942
3945
  ]
3943
3946
  );
3944
- const handleQuickJumpSubmit = React38.useCallback(() => {
3947
+ const handleQuickJumpSubmit = React39.useCallback(() => {
3945
3948
  const trimmedValue = quickJumpValue.trim();
3946
3949
  if (!trimmedValue) {
3947
3950
  setQuickJumpValue(String(mergedCurrent));
@@ -3975,8 +3978,8 @@ function AdsDataPagination({
3975
3978
  );
3976
3979
  const renderPageNavigation = () => {
3977
3980
  if (variant === "compact") {
3978
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "flex flex-wrap items-center gap-sm", children: [
3979
- shouldShowFirstLast ? /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3981
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "flex flex-wrap items-center gap-sm", children: [
3982
+ shouldShowFirstLast ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
3980
3983
  Button,
3981
3984
  {
3982
3985
  "aria-label": messages.pagination.first,
@@ -3989,7 +3992,7 @@ function AdsDataPagination({
3989
3992
  children: messages.pagination.first
3990
3993
  }
3991
3994
  ) : null,
3992
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3995
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
3993
3996
  Button,
3994
3997
  {
3995
3998
  "aria-label": messages.pagination.previous,
@@ -4002,7 +4005,7 @@ function AdsDataPagination({
4002
4005
  children: messages.pagination.previous
4003
4006
  }
4004
4007
  ),
4005
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4008
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4006
4009
  "span",
4007
4010
  {
4008
4011
  "aria-current": "page",
@@ -4010,7 +4013,7 @@ function AdsDataPagination({
4010
4013
  children: pageStatus
4011
4014
  }
4012
4015
  ),
4013
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4016
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4014
4017
  Button,
4015
4018
  {
4016
4019
  "aria-label": messages.pagination.next,
@@ -4023,7 +4026,7 @@ function AdsDataPagination({
4023
4026
  children: messages.pagination.next
4024
4027
  }
4025
4028
  ),
4026
- shouldShowFirstLast ? /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4029
+ shouldShowFirstLast ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4027
4030
  Button,
4028
4031
  {
4029
4032
  "aria-label": messages.pagination.last,
@@ -4038,8 +4041,8 @@ function AdsDataPagination({
4038
4041
  ) : null
4039
4042
  ] });
4040
4043
  }
4041
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(AdsPagination, { "aria-label": navigationLabel, children: /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(AdsPaginationContent, { children: [
4042
- shouldShowFirstLast ? /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(AdsPaginationItem, { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4044
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(AdsPagination, { "aria-label": navigationLabel, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(AdsPaginationContent, { children: [
4045
+ shouldShowFirstLast ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(AdsPaginationItem, { children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4043
4046
  Button,
4044
4047
  {
4045
4048
  "aria-label": messages.pagination.first,
@@ -4052,7 +4055,7 @@ function AdsDataPagination({
4052
4055
  children: messages.pagination.first
4053
4056
  }
4054
4057
  ) }) : null,
4055
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(AdsPaginationItem, { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4058
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(AdsPaginationItem, { children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4056
4059
  Button,
4057
4060
  {
4058
4061
  "aria-label": messages.pagination.previous,
@@ -4066,7 +4069,7 @@ function AdsDataPagination({
4066
4069
  }
4067
4070
  ) }),
4068
4071
  paginationRange.map(
4069
- (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)(
4072
+ (token, index) => token === "ellipsis" ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(AdsPaginationItem, { children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(AdsPaginationEllipsis, { label: messages.pagination.morePages }) }, `ellipsis-${index}`) : /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(AdsPaginationItem, { children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4070
4073
  Button,
4071
4074
  {
4072
4075
  "aria-current": token === mergedCurrent ? "page" : void 0,
@@ -4083,7 +4086,7 @@ function AdsDataPagination({
4083
4086
  }
4084
4087
  ) }, token)
4085
4088
  ),
4086
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(AdsPaginationItem, { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4089
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(AdsPaginationItem, { children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4087
4090
  Button,
4088
4091
  {
4089
4092
  "aria-label": messages.pagination.next,
@@ -4096,7 +4099,7 @@ function AdsDataPagination({
4096
4099
  children: messages.pagination.next
4097
4100
  }
4098
4101
  ) }),
4099
- shouldShowFirstLast ? /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(AdsPaginationItem, { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4102
+ shouldShowFirstLast ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(AdsPaginationItem, { children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4100
4103
  Button,
4101
4104
  {
4102
4105
  "aria-label": messages.pagination.last,
@@ -4111,7 +4114,7 @@ function AdsDataPagination({
4111
4114
  ) }) : null
4112
4115
  ] }) });
4113
4116
  };
4114
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
4117
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
4115
4118
  "div",
4116
4119
  {
4117
4120
  "data-slot": "ads-data-pagination",
@@ -4121,34 +4124,34 @@ function AdsDataPagination({
4121
4124
  className
4122
4125
  ),
4123
4126
  children: [
4124
- /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "flex flex-wrap items-center gap-md text-sm leading-5 text-muted-foreground", children: [
4125
- 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,
4126
- showSizeChanger ? /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: cn("flex items-center gap-sm", classNames?.pageSizeChanger), children: [
4127
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { children: messages.pagination.itemsPerPage }),
4128
- /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
4127
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "flex flex-wrap items-center gap-md text-sm leading-5 text-muted-foreground", children: [
4128
+ variant === "compact" ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: classNames?.total, children: compactTotalContent }) : totalContent ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: classNames?.total, children: totalContent }) : null,
4129
+ showSizeChanger ? /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: cn("flex items-center gap-sm", classNames?.pageSizeChanger), children: [
4130
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { children: messages.pagination.itemsPerPage }),
4131
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
4129
4132
  Select,
4130
4133
  {
4131
4134
  disabled,
4132
4135
  onValueChange: handlePageSizeChange,
4133
4136
  value: String(mergedPageSize),
4134
4137
  children: [
4135
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4138
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4136
4139
  SelectTrigger,
4137
4140
  {
4138
4141
  "aria-label": messages.pagination.itemsPerPage,
4139
4142
  className: cn(inlineControlClassName, "w-[132px] px-sm"),
4140
- children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(SelectValue, {})
4143
+ children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(SelectValue, {})
4141
4144
  }
4142
4145
  ),
4143
- /* @__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)) })
4146
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(SelectContent, { children: resolvedPageSizeOptions.map((option) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(SelectItem, { value: String(option), children: interpolate(messages.pagination.itemsPerPageOption, { value: option }) }, option)) })
4144
4147
  ]
4145
4148
  }
4146
4149
  )
4147
4150
  ] }) : null
4148
4151
  ] }),
4149
- /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "flex flex-col gap-md sm:flex-row sm:items-center sm:justify-end", children: [
4152
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "flex flex-col gap-md sm:flex-row sm:items-center sm:justify-end", children: [
4150
4153
  renderPageNavigation(),
4151
- showQuickJumper ? /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
4154
+ showQuickJumper ? /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
4152
4155
  "label",
4153
4156
  {
4154
4157
  className: cn(
@@ -4156,8 +4159,8 @@ function AdsDataPagination({
4156
4159
  classNames?.quickJumper
4157
4160
  ),
4158
4161
  children: [
4159
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { children: messages.pagination.jumpTo }),
4160
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4162
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { children: messages.pagination.jumpTo }),
4163
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4161
4164
  Input,
4162
4165
  {
4163
4166
  "aria-label": messages.pagination.jumpTo,
@@ -4185,12 +4188,12 @@ function AdsDataPagination({
4185
4188
  }
4186
4189
 
4187
4190
  // src/components/AdsDataTable/index.tsx
4188
- var React43 = __toESM(require("react"), 1);
4189
- var import_lucide_react16 = require("lucide-react");
4191
+ var React44 = __toESM(require("react"), 1);
4192
+ var import_lucide_react15 = require("lucide-react");
4190
4193
 
4191
4194
  // src/components/AdsEmpty/index.tsx
4192
4195
  var import_class_variance_authority9 = require("class-variance-authority");
4193
- var import_jsx_runtime42 = require("react/jsx-runtime");
4196
+ var import_jsx_runtime43 = require("react/jsx-runtime");
4194
4197
  var adsEmptyVariants = (0, import_class_variance_authority9.cva)(
4195
4198
  "flex w-full flex-col items-center justify-center gap-6 p-12 text-center",
4196
4199
  {
@@ -4207,7 +4210,7 @@ var adsEmptyVariants = (0, import_class_variance_authority9.cva)(
4207
4210
  }
4208
4211
  );
4209
4212
  function AdsEmpty({ className, variant, ...props }) {
4210
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4213
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4211
4214
  "div",
4212
4215
  {
4213
4216
  "data-slot": "ads-empty",
@@ -4217,7 +4220,7 @@ function AdsEmpty({ className, variant, ...props }) {
4217
4220
  );
4218
4221
  }
4219
4222
  function AdsEmptyHeader({ className, ...props }) {
4220
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4223
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4221
4224
  "div",
4222
4225
  {
4223
4226
  "data-slot": "ads-empty-header",
@@ -4227,7 +4230,7 @@ function AdsEmptyHeader({ className, ...props }) {
4227
4230
  );
4228
4231
  }
4229
4232
  function AdsEmptyMedia({ className, ...props }) {
4230
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4233
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4231
4234
  "div",
4232
4235
  {
4233
4236
  "data-slot": "ads-empty-media",
@@ -4241,7 +4244,7 @@ function AdsEmptyMedia({ className, ...props }) {
4241
4244
  );
4242
4245
  }
4243
4246
  function AdsEmptyTitle({ className, ...props }) {
4244
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4247
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4245
4248
  "div",
4246
4249
  {
4247
4250
  "data-slot": "ads-empty-title",
@@ -4251,7 +4254,7 @@ function AdsEmptyTitle({ className, ...props }) {
4251
4254
  );
4252
4255
  }
4253
4256
  function AdsEmptyDescription({ className, ...props }) {
4254
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4257
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4255
4258
  "p",
4256
4259
  {
4257
4260
  "data-slot": "ads-empty-description",
@@ -4261,7 +4264,7 @@ function AdsEmptyDescription({ className, ...props }) {
4261
4264
  );
4262
4265
  }
4263
4266
  function AdsEmptyContent({ className, ...props }) {
4264
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4267
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4265
4268
  "div",
4266
4269
  {
4267
4270
  "data-slot": "ads-empty-content",
@@ -4271,7 +4274,7 @@ function AdsEmptyContent({ className, ...props }) {
4271
4274
  );
4272
4275
  }
4273
4276
  function AdsEmptyActions({ className, ...props }) {
4274
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4277
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4275
4278
  "div",
4276
4279
  {
4277
4280
  "data-slot": "ads-empty-actions",
@@ -4281,7 +4284,7 @@ function AdsEmptyActions({ className, ...props }) {
4281
4284
  );
4282
4285
  }
4283
4286
  function AdsEmptyFooter({ className, ...props }) {
4284
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4287
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4285
4288
  "div",
4286
4289
  {
4287
4290
  "data-slot": "ads-empty-footer",
@@ -4292,19 +4295,19 @@ function AdsEmptyFooter({ className, ...props }) {
4292
4295
  }
4293
4296
 
4294
4297
  // src/components/AdsTable/index.tsx
4295
- var React42 = __toESM(require("react"), 1);
4296
- var import_lucide_react15 = require("lucide-react");
4298
+ var React43 = __toESM(require("react"), 1);
4299
+ var import_lucide_react14 = require("lucide-react");
4297
4300
 
4298
4301
  // src/components/AdsRadioGroup/index.tsx
4299
- var React40 = __toESM(require("react"), 1);
4302
+ var React41 = __toESM(require("react"), 1);
4300
4303
 
4301
4304
  // src/primitives/radio-group.tsx
4302
- var React39 = __toESM(require("react"), 1);
4305
+ var React40 = __toESM(require("react"), 1);
4303
4306
  var RadioGroupPrimitive = __toESM(require("@radix-ui/react-radio-group"), 1);
4304
- var import_lucide_react14 = require("lucide-react");
4305
- var import_jsx_runtime43 = require("react/jsx-runtime");
4306
- var RadioGroup = React39.forwardRef(({ className, ...props }, ref) => {
4307
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4307
+ var import_lucide_react13 = require("lucide-react");
4308
+ var import_jsx_runtime44 = require("react/jsx-runtime");
4309
+ var RadioGroup = React40.forwardRef(({ className, ...props }, ref) => {
4310
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4308
4311
  RadioGroupPrimitive.Root,
4309
4312
  {
4310
4313
  className: cn("grid gap-2", className),
@@ -4314,8 +4317,8 @@ var RadioGroup = React39.forwardRef(({ className, ...props }, ref) => {
4314
4317
  );
4315
4318
  });
4316
4319
  RadioGroup.displayName = RadioGroupPrimitive.Root.displayName;
4317
- var RadioGroupItem = React39.forwardRef(({ className, ...props }, ref) => {
4318
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4320
+ var RadioGroupItem = React40.forwardRef(({ className, ...props }, ref) => {
4321
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4319
4322
  RadioGroupPrimitive.Item,
4320
4323
  {
4321
4324
  ref,
@@ -4324,19 +4327,19 @@ var RadioGroupItem = React39.forwardRef(({ className, ...props }, ref) => {
4324
4327
  className
4325
4328
  ),
4326
4329
  ...props,
4327
- 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" }) })
4330
+ children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(RadioGroupPrimitive.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_lucide_react13.Circle, { className: "h-2.5 w-2.5 fill-current text-current" }) })
4328
4331
  }
4329
4332
  );
4330
4333
  });
4331
4334
  RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
4332
4335
 
4333
4336
  // src/components/AdsRadioGroup/index.tsx
4334
- var import_jsx_runtime44 = require("react/jsx-runtime");
4337
+ var import_jsx_runtime45 = require("react/jsx-runtime");
4335
4338
  var radioGroupBaseClassName = "gap-3";
4336
4339
  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";
4337
- var RadioGroup2 = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(RadioGroup, { className: cn(radioGroupBaseClassName, className), ref, ...props }));
4340
+ var RadioGroup2 = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(RadioGroup, { className: cn(radioGroupBaseClassName, className), ref, ...props }));
4338
4341
  RadioGroup2.displayName = "RadioGroup";
4339
- var RadioGroupItem2 = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4342
+ var RadioGroupItem2 = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4340
4343
  RadioGroupItem,
4341
4344
  {
4342
4345
  className: cn(radioItemBaseClassName, className),
@@ -4345,7 +4348,7 @@ var RadioGroupItem2 = React40.forwardRef(({ className, ...props }, ref) => /* @_
4345
4348
  }
4346
4349
  ));
4347
4350
  RadioGroupItem2.displayName = "RadioGroupItem";
4348
- var AdsRadioGroup = React40.forwardRef(
4351
+ var AdsRadioGroup = React41.forwardRef(
4349
4352
  ({
4350
4353
  children,
4351
4354
  className,
@@ -4361,12 +4364,12 @@ var AdsRadioGroup = React40.forwardRef(
4361
4364
  helperText,
4362
4365
  id
4363
4366
  });
4364
- const helperNode = helperText ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(AdsFieldDescription, { id: description.helperId, children: helperText }) : null;
4365
- const errorNode = errorText ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(AdsFieldError, { id: description.errorId, children: errorText }) : null;
4366
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(AdsFieldItem, { children: [
4367
- label ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(AdsFieldLabel, { children: label }) : null,
4367
+ const helperNode = helperText ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(AdsFieldDescription, { id: description.helperId, children: helperText }) : null;
4368
+ const errorNode = errorText ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(AdsFieldError, { id: description.errorId, children: errorText }) : null;
4369
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(AdsFieldItem, { children: [
4370
+ label ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(AdsFieldLabel, { children: label }) : null,
4368
4371
  descriptionPlacement === "above" ? helperNode : null,
4369
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4372
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4370
4373
  RadioGroup2,
4371
4374
  {
4372
4375
  "aria-describedby": description.describedBy,
@@ -4382,11 +4385,11 @@ var AdsRadioGroup = React40.forwardRef(
4382
4385
  }
4383
4386
  );
4384
4387
  AdsRadioGroup.displayName = "AdsRadioGroup";
4385
- var AdsRadioGroupOption = React40.forwardRef(({ className, description, id, label, value, ...props }, ref) => {
4386
- const generatedId = React40.useId();
4388
+ var AdsRadioGroupOption = React41.forwardRef(({ className, description, id, label, value, ...props }, ref) => {
4389
+ const generatedId = React41.useId();
4387
4390
  const inputId = id ?? generatedId;
4388
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("label", { className: "flex w-full cursor-pointer items-start gap-2", htmlFor: inputId, children: [
4389
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4391
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("label", { className: "flex w-full cursor-pointer items-start gap-2", htmlFor: inputId, children: [
4392
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4390
4393
  RadioGroupItem2,
4391
4394
  {
4392
4395
  className: cn(className),
@@ -4396,20 +4399,20 @@ var AdsRadioGroupOption = React40.forwardRef(({ className, description, id, labe
4396
4399
  ...props
4397
4400
  }
4398
4401
  ),
4399
- /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-1.5", children: [
4400
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "text-sm leading-5 text-foreground", children: label }),
4401
- description ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(AdsFieldDescription, { className: "text-sm leading-5", children: description }) : null
4402
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-1.5", children: [
4403
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "text-sm leading-5 text-foreground", children: label }),
4404
+ description ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(AdsFieldDescription, { className: "text-sm leading-5", children: description }) : null
4402
4405
  ] })
4403
4406
  ] });
4404
4407
  });
4405
4408
  AdsRadioGroupOption.displayName = "AdsRadioGroupOption";
4406
- var AdsRadioGroupCardOption = React40.forwardRef(({ className, description, disabled, id, label, value, ...props }, ref) => {
4407
- const generatedId = React40.useId();
4409
+ var AdsRadioGroupCardOption = React41.forwardRef(({ className, description, disabled, id, label, value, ...props }, ref) => {
4410
+ const generatedId = React41.useId();
4408
4411
  const inputId = id ?? generatedId;
4409
4412
  const titleId = `${inputId}-label`;
4410
4413
  const descriptionId = description ? `${inputId}-description` : void 0;
4411
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "relative", children: [
4412
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4414
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "relative", children: [
4415
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4413
4416
  RadioGroupItem2,
4414
4417
  {
4415
4418
  "aria-describedby": descriptionId,
@@ -4422,7 +4425,7 @@ var AdsRadioGroupCardOption = React40.forwardRef(({ className, description, disa
4422
4425
  ...props
4423
4426
  }
4424
4427
  ),
4425
- /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
4428
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
4426
4429
  "div",
4427
4430
  {
4428
4431
  className: cn(
@@ -4431,16 +4434,16 @@ var AdsRadioGroupCardOption = React40.forwardRef(({ className, description, disa
4431
4434
  className
4432
4435
  ),
4433
4436
  children: [
4434
- /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-1.5", children: [
4435
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "text-sm font-medium leading-5 text-foreground", id: titleId, children: label }),
4436
- description ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(AdsFieldDescription, { className: "text-xs leading-4", id: descriptionId, children: description }) : null
4437
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-1.5", children: [
4438
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "text-sm font-medium leading-5 text-foreground", id: titleId, children: label }),
4439
+ description ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(AdsFieldDescription, { className: "text-xs leading-4", id: descriptionId, children: description }) : null
4437
4440
  ] }),
4438
- /* @__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)(
4441
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "flex h-full shrink-0 items-start justify-center pt-px", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4439
4442
  "div",
4440
4443
  {
4441
4444
  className: "grid h-4 w-4 place-content-center rounded-full border bg-card shadow-[0px_1px_2px_rgba(0,0,0,0.1)]",
4442
4445
  "data-indicator": true,
4443
- children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4446
+ children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4444
4447
  "span",
4445
4448
  {
4446
4449
  className: "h-2 w-2 rounded-full bg-primary transition-opacity",
@@ -4457,9 +4460,9 @@ var AdsRadioGroupCardOption = React40.forwardRef(({ className, description, disa
4457
4460
  AdsRadioGroupCardOption.displayName = "AdsRadioGroupCardOption";
4458
4461
 
4459
4462
  // src/primitives/table.tsx
4460
- var React41 = __toESM(require("react"), 1);
4461
- var import_jsx_runtime45 = require("react/jsx-runtime");
4462
- var Table = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4463
+ var React42 = __toESM(require("react"), 1);
4464
+ var import_jsx_runtime46 = require("react/jsx-runtime");
4465
+ var Table = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4463
4466
  "table",
4464
4467
  {
4465
4468
  ref,
@@ -4468,7 +4471,7 @@ var Table = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
4468
4471
  }
4469
4472
  ));
4470
4473
  Table.displayName = "Table";
4471
- var TableScrollArea = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4474
+ var TableScrollArea = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4472
4475
  "div",
4473
4476
  {
4474
4477
  ref,
@@ -4477,9 +4480,9 @@ var TableScrollArea = React41.forwardRef(({ className, ...props }, ref) => /* @_
4477
4480
  }
4478
4481
  ));
4479
4482
  TableScrollArea.displayName = "TableScrollArea";
4480
- var TableHeader = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("thead", { ref, className: cn("[&_tr]:border-b", className), ...props }));
4483
+ var TableHeader = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("thead", { ref, className: cn("[&_tr]:border-b", className), ...props }));
4481
4484
  TableHeader.displayName = "TableHeader";
4482
- var TableBody = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4485
+ var TableBody = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4483
4486
  "tbody",
4484
4487
  {
4485
4488
  ref,
@@ -4488,7 +4491,7 @@ var TableBody = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE_
4488
4491
  }
4489
4492
  ));
4490
4493
  TableBody.displayName = "TableBody";
4491
- var TableFooter = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4494
+ var TableFooter = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4492
4495
  "tfoot",
4493
4496
  {
4494
4497
  ref,
@@ -4500,7 +4503,7 @@ var TableFooter = React41.forwardRef(({ className, ...props }, ref) => /* @__PUR
4500
4503
  }
4501
4504
  ));
4502
4505
  TableFooter.displayName = "TableFooter";
4503
- var TableRow = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4506
+ var TableRow = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4504
4507
  "tr",
4505
4508
  {
4506
4509
  ref,
@@ -4512,7 +4515,7 @@ var TableRow = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__
4512
4515
  }
4513
4516
  ));
4514
4517
  TableRow.displayName = "TableRow";
4515
- var TableHead = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4518
+ var TableHead = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4516
4519
  "th",
4517
4520
  {
4518
4521
  ref,
@@ -4524,7 +4527,7 @@ var TableHead = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE_
4524
4527
  }
4525
4528
  ));
4526
4529
  TableHead.displayName = "TableHead";
4527
- var TableCell = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4530
+ var TableCell = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4528
4531
  "td",
4529
4532
  {
4530
4533
  ref,
@@ -4533,7 +4536,7 @@ var TableCell = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE_
4533
4536
  }
4534
4537
  ));
4535
4538
  TableCell.displayName = "TableCell";
4536
- var TableCaption = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4539
+ var TableCaption = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4537
4540
  "caption",
4538
4541
  {
4539
4542
  ref,
@@ -4542,21 +4545,21 @@ var TableCaption = React41.forwardRef(({ className, ...props }, ref) => /* @__PU
4542
4545
  }
4543
4546
  ));
4544
4547
  TableCaption.displayName = "TableCaption";
4545
- var TableColGroup = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("colgroup", { ref, className: cn(className), ...props }));
4548
+ var TableColGroup = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("colgroup", { ref, className: cn(className), ...props }));
4546
4549
  TableColGroup.displayName = "TableColGroup";
4547
- var TableCol = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("col", { ref, className: cn(className), ...props }));
4550
+ var TableCol = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("col", { ref, className: cn(className), ...props }));
4548
4551
  TableCol.displayName = "TableCol";
4549
4552
 
4550
4553
  // src/components/AdsTable/index.tsx
4551
- var import_jsx_runtime46 = require("react/jsx-runtime");
4552
- var AdsTableStickyHeaderContext = React42.createContext(false);
4554
+ var import_jsx_runtime47 = require("react/jsx-runtime");
4555
+ var AdsTableStickyHeaderContext = React43.createContext(false);
4553
4556
  function resolveLength(value) {
4554
4557
  if (value === void 0) {
4555
4558
  return void 0;
4556
4559
  }
4557
4560
  return typeof value === "number" ? `${value}px` : value;
4558
4561
  }
4559
- var AdsTableSurface = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4562
+ var AdsTableSurface = React43.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
4560
4563
  "div",
4561
4564
  {
4562
4565
  ref,
@@ -4568,8 +4571,8 @@ var AdsTableSurface = React42.forwardRef(({ className, ...props }, ref) => /* @_
4568
4571
  }
4569
4572
  ));
4570
4573
  AdsTableSurface.displayName = "AdsTableSurface";
4571
- var AdsTableRoot = React42.forwardRef(
4572
- ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4574
+ var AdsTableRoot = React43.forwardRef(
4575
+ ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
4573
4576
  Table,
4574
4577
  {
4575
4578
  ref,
@@ -4584,7 +4587,7 @@ var AdsTableRoot = React42.forwardRef(
4584
4587
  )
4585
4588
  );
4586
4589
  AdsTableRoot.displayName = "AdsTableRoot";
4587
- var AdsTableScrollArea = React42.forwardRef(
4590
+ var AdsTableScrollArea = React43.forwardRef(
4588
4591
  ({
4589
4592
  children,
4590
4593
  className,
@@ -4594,7 +4597,7 @@ var AdsTableScrollArea = React42.forwardRef(
4594
4597
  x,
4595
4598
  y,
4596
4599
  ...props
4597
- }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(AdsTableStickyHeaderContext.Provider, { value: stickyHeader, children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4600
+ }, ref) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(AdsTableStickyHeaderContext.Provider, { value: stickyHeader, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
4598
4601
  TableScrollArea,
4599
4602
  {
4600
4603
  ref,
@@ -4616,15 +4619,15 @@ var AdsTableScrollArea = React42.forwardRef(
4616
4619
  ) })
4617
4620
  );
4618
4621
  AdsTableScrollArea.displayName = "AdsTableScrollArea";
4619
- var AdsTable = React42.forwardRef(
4620
- ({ 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 }) }) })
4622
+ var AdsTable = React43.forwardRef(
4623
+ ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(AdsTableSurface, { children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(AdsTableScrollArea, { children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(AdsTableRoot, { ref, className, ...props }) }) })
4621
4624
  );
4622
4625
  AdsTable.displayName = "AdsTable";
4623
- var AdsTableColGroup = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(TableColGroup, { ref, className, ...props }));
4626
+ var AdsTableColGroup = React43.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(TableColGroup, { ref, className, ...props }));
4624
4627
  AdsTableColGroup.displayName = "AdsTableColGroup";
4625
- var AdsTableCol = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(TableCol, { ref, className, ...props }));
4628
+ var AdsTableCol = React43.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(TableCol, { ref, className, ...props }));
4626
4629
  AdsTableCol.displayName = "AdsTableCol";
4627
- var AdsTableHeader = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4630
+ var AdsTableHeader = React43.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
4628
4631
  TableHeader,
4629
4632
  {
4630
4633
  ref,
@@ -4633,7 +4636,7 @@ var AdsTableHeader = React42.forwardRef(({ className, ...props }, ref) => /* @__
4633
4636
  }
4634
4637
  ));
4635
4638
  AdsTableHeader.displayName = "AdsTableHeader";
4636
- var AdsTableBody = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4639
+ var AdsTableBody = React43.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
4637
4640
  TableBody,
4638
4641
  {
4639
4642
  ref,
@@ -4642,7 +4645,7 @@ var AdsTableBody = React42.forwardRef(({ className, ...props }, ref) => /* @__PU
4642
4645
  }
4643
4646
  ));
4644
4647
  AdsTableBody.displayName = "AdsTableBody";
4645
- var AdsTableFooter = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4648
+ var AdsTableFooter = React43.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
4646
4649
  TableFooter,
4647
4650
  {
4648
4651
  ref,
@@ -4655,7 +4658,7 @@ var AdsTableFooter = React42.forwardRef(({ className, ...props }, ref) => /* @__
4655
4658
  }
4656
4659
  ));
4657
4660
  AdsTableFooter.displayName = "AdsTableFooter";
4658
- var AdsTableRow = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4661
+ var AdsTableRow = React43.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
4659
4662
  TableRow,
4660
4663
  {
4661
4664
  ref,
@@ -4667,9 +4670,9 @@ var AdsTableRow = React42.forwardRef(({ className, ...props }, ref) => /* @__PUR
4667
4670
  }
4668
4671
  ));
4669
4672
  AdsTableRow.displayName = "AdsTableRow";
4670
- var AdsTableHead = React42.forwardRef(({ className, ...props }, ref) => {
4671
- const stickyHeader = React42.useContext(AdsTableStickyHeaderContext);
4672
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4673
+ var AdsTableHead = React43.forwardRef(({ className, ...props }, ref) => {
4674
+ const stickyHeader = React43.useContext(AdsTableStickyHeaderContext);
4675
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
4673
4676
  TableHead,
4674
4677
  {
4675
4678
  ref,
@@ -4684,7 +4687,7 @@ var AdsTableHead = React42.forwardRef(({ className, ...props }, ref) => {
4684
4687
  );
4685
4688
  });
4686
4689
  AdsTableHead.displayName = "AdsTableHead";
4687
- var AdsTableCell = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4690
+ var AdsTableCell = React43.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
4688
4691
  TableCell,
4689
4692
  {
4690
4693
  ref,
@@ -4697,7 +4700,7 @@ var AdsTableCell = React42.forwardRef(({ className, ...props }, ref) => /* @__PU
4697
4700
  }
4698
4701
  ));
4699
4702
  AdsTableCell.displayName = "AdsTableCell";
4700
- var AdsTableCaption = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4703
+ var AdsTableCaption = React43.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
4701
4704
  TableCaption,
4702
4705
  {
4703
4706
  ref,
@@ -4706,12 +4709,12 @@ var AdsTableCaption = React42.forwardRef(({ className, ...props }, ref) => /* @_
4706
4709
  }
4707
4710
  ));
4708
4711
  AdsTableCaption.displayName = "AdsTableCaption";
4709
- var AdsTableSortHeader = React42.forwardRef(
4712
+ var AdsTableSortHeader = React43.forwardRef(
4710
4713
  ({ className, disabled = false, onToggleSort, sortOrder, title, ...props }, ref) => {
4711
4714
  const { messages } = useAdsI18n();
4712
4715
  const nextOrder = sortOrder === null ? "ascend" : sortOrder === "ascend" ? "descend" : null;
4713
4716
  const actionLabel = nextOrder === "ascend" ? messages.table.sortAscending : nextOrder === "descend" ? messages.table.sortDescending : messages.table.clearSort;
4714
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(AdsTableHead, { ref, className, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
4717
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(AdsTableHead, { ref, className, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
4715
4718
  Button,
4716
4719
  {
4717
4720
  "aria-label": `${title} ${actionLabel}`,
@@ -4727,15 +4730,15 @@ var AdsTableSortHeader = React42.forwardRef(
4727
4730
  type: "button",
4728
4731
  variant: "ghost",
4729
4732
  children: [
4730
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "truncate", children: title }),
4731
- /* @__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" }) })
4733
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "truncate", children: title }),
4734
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "inline-flex h-4 w-4 items-center justify-center text-icon-muted", children: sortOrder === "ascend" ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_lucide_react14.ChevronDown, { className: "h-4 w-4 rotate-180" }) : sortOrder === "descend" ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_lucide_react14.ChevronDown, { className: "h-4 w-4" }) : /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_lucide_react14.ChevronDown, { className: "h-4 w-4 opacity-60" }) })
4732
4735
  ]
4733
4736
  }
4734
4737
  ) });
4735
4738
  }
4736
4739
  );
4737
4740
  AdsTableSortHeader.displayName = "AdsTableSortHeader";
4738
- var AdsTableSelectionCell = React42.forwardRef(
4741
+ var AdsTableSelectionCell = React43.forwardRef(
4739
4742
  ({
4740
4743
  checked = false,
4741
4744
  className,
@@ -4746,7 +4749,7 @@ var AdsTableSelectionCell = React42.forwardRef(
4746
4749
  ...props
4747
4750
  }, ref) => {
4748
4751
  const { messages } = useAdsI18n();
4749
- 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)(
4752
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(AdsTableCell, { ref, className: cn("w-12 p-2", className), ...props, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "flex items-center justify-center", children: type === "radio" ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
4750
4753
  RadioGroupItem2,
4751
4754
  {
4752
4755
  "aria-label": messages.table.selectRow,
@@ -4758,7 +4761,7 @@ var AdsTableSelectionCell = React42.forwardRef(
4758
4761
  },
4759
4762
  value
4760
4763
  }
4761
- ) : /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4764
+ ) : /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
4762
4765
  Checkbox2,
4763
4766
  {
4764
4767
  "aria-label": messages.table.selectRow,
@@ -4772,10 +4775,10 @@ var AdsTableSelectionCell = React42.forwardRef(
4772
4775
  }
4773
4776
  );
4774
4777
  AdsTableSelectionCell.displayName = "AdsTableSelectionCell";
4775
- var AdsTableExpandCell = React42.forwardRef(
4778
+ var AdsTableExpandCell = React43.forwardRef(
4776
4779
  ({ className, disabled = false, expanded = false, onToggle, ...props }, ref) => {
4777
4780
  const { messages } = useAdsI18n();
4778
- 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)(
4781
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(AdsTableCell, { ref, className: cn("w-12 p-2", className), ...props, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
4779
4782
  Button,
4780
4783
  {
4781
4784
  "aria-label": expanded ? messages.table.collapseRow : messages.table.expandRow,
@@ -4792,7 +4795,7 @@ var AdsTableExpandCell = React42.forwardRef(
4792
4795
  size: "sm",
4793
4796
  type: "button",
4794
4797
  variant: "ghost",
4795
- 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" })
4798
+ children: expanded ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_lucide_react14.ChevronDown, { className: "h-4 w-4" }) : /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_lucide_react14.ChevronRight, { className: "h-4 w-4" })
4796
4799
  }
4797
4800
  ) }) });
4798
4801
  }
@@ -4800,38 +4803,23 @@ var AdsTableExpandCell = React42.forwardRef(
4800
4803
  AdsTableExpandCell.displayName = "AdsTableExpandCell";
4801
4804
 
4802
4805
  // src/components/AdsDataTable/index.tsx
4803
- var import_jsx_runtime47 = require("react/jsx-runtime");
4806
+ var import_jsx_runtime48 = require("react/jsx-runtime");
4804
4807
  var SKELETON_ROW_COUNT = 4;
4805
4808
  var FLEX_WIDTH_UNIT = 160;
4806
4809
  var sizeClassNames = {
4807
4810
  small: {
4808
- bodyHeight: 32,
4809
4811
  cell: "py-1.5 text-xs leading-4",
4810
- headHeight: 32,
4811
4812
  head: "h-8 py-1.5 text-xs leading-4"
4812
4813
  },
4813
4814
  middle: {
4814
- bodyHeight: 40,
4815
4815
  cell: "py-2 text-sm leading-5",
4816
- headHeight: 40,
4817
4816
  head: "h-10 py-2 text-sm leading-5"
4818
4817
  },
4819
4818
  large: {
4820
- bodyHeight: 48,
4821
4819
  cell: "py-3 text-base leading-6",
4822
- headHeight: 48,
4823
4820
  head: "h-12 py-3 text-base leading-6"
4824
4821
  }
4825
4822
  };
4826
- function getSpinnerLoadingHeight(scrollY, density) {
4827
- if (typeof scrollY === "number") {
4828
- return Math.max(scrollY - density.headHeight, density.bodyHeight * SKELETON_ROW_COUNT);
4829
- }
4830
- if (typeof scrollY === "string") {
4831
- return `max(calc(${scrollY} - ${density.headHeight}px), ${density.bodyHeight * SKELETON_ROW_COUNT}px)`;
4832
- }
4833
- return density.bodyHeight * SKELETON_ROW_COUNT;
4834
- }
4835
4823
  function getColumnKey(column, index) {
4836
4824
  if (column.key !== void 0) {
4837
4825
  return String(column.key);
@@ -4937,7 +4925,7 @@ function getCellStyle(column, overrideWidth) {
4937
4925
  return Object.keys(style).length > 0 ? style : void 0;
4938
4926
  }
4939
4927
  function renderCellValue(value, ellipsis) {
4940
- if (React43.isValidElement(value)) {
4928
+ if (React44.isValidElement(value)) {
4941
4929
  return value;
4942
4930
  }
4943
4931
  if (value === null || value === void 0) {
@@ -4947,7 +4935,7 @@ function renderCellValue(value, ellipsis) {
4947
4935
  if (ellipsis) {
4948
4936
  const shouldShowTitle = typeof ellipsis === "object" ? ellipsis.showTitle !== false : true;
4949
4937
  const maxWidth = typeof ellipsis === "object" ? ellipsis.maxWidth : void 0;
4950
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
4938
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
4951
4939
  "div",
4952
4940
  {
4953
4941
  className: "truncate",
@@ -5042,8 +5030,6 @@ function AdsDataTable({
5042
5030
  dataSource = [],
5043
5031
  rowKey,
5044
5032
  loading = false,
5045
- loadingVariant = "skeleton",
5046
- expandedRowSurface = "inset",
5047
5033
  emptyText,
5048
5034
  emptyState,
5049
5035
  rowClassName,
@@ -5062,48 +5048,48 @@ function AdsDataTable({
5062
5048
  suppressRowClickSelection = true
5063
5049
  }) {
5064
5050
  const { messages } = useAdsI18n();
5065
- const resolvedColumns = React43.useMemo(() => columns.filter(Boolean), [columns]);
5066
- const [internalSortState, setInternalSortState] = React43.useState(
5051
+ const resolvedColumns = React44.useMemo(() => columns.filter(Boolean), [columns]);
5052
+ const [internalSortState, setInternalSortState] = React44.useState(
5067
5053
  () => getInitialSortState(resolvedColumns)
5068
5054
  );
5069
- const [internalSelectedKeys, setInternalSelectedKeys] = React43.useState(
5055
+ const [internalSelectedKeys, setInternalSelectedKeys] = React44.useState(
5070
5056
  rowSelection?.defaultSelectedRowKeys ?? rowSelection?.selectedRowKeys ?? []
5071
5057
  );
5072
- const [internalFilterValues, setInternalFilterValues] = React43.useState(
5058
+ const [internalFilterValues, setInternalFilterValues] = React44.useState(
5073
5059
  () => getInitialFilterValues(resolvedColumns)
5074
5060
  );
5075
- const [internalExpandedKeys, setInternalExpandedKeys] = React43.useState(
5061
+ const [internalExpandedKeys, setInternalExpandedKeys] = React44.useState(
5076
5062
  expandable?.defaultExpandedRowKeys ?? expandable?.expandedRowKeys ?? []
5077
5063
  );
5078
- const [internalColumnWidths, setInternalColumnWidths] = React43.useState({});
5079
- const [internalCurrentPage, setInternalCurrentPage] = React43.useState(
5064
+ const [internalColumnWidths, setInternalColumnWidths] = React44.useState({});
5065
+ const [internalCurrentPage, setInternalCurrentPage] = React44.useState(
5080
5066
  pagination !== false ? pagination.defaultCurrent ?? pagination.current ?? 1 : 1
5081
5067
  );
5082
- const [internalPageSize, setInternalPageSize] = React43.useState(
5068
+ const [internalPageSize, setInternalPageSize] = React44.useState(
5083
5069
  pagination !== false ? pagination.defaultPageSize ?? pagination.pageSize ?? 10 : 10
5084
5070
  );
5085
- const [activeResize, setActiveResize] = React43.useState(null);
5086
- React43.useEffect(() => {
5071
+ const [activeResize, setActiveResize] = React44.useState(null);
5072
+ React44.useEffect(() => {
5087
5073
  if (rowSelection?.selectedRowKeys !== void 0) {
5088
5074
  setInternalSelectedKeys(rowSelection.selectedRowKeys);
5089
5075
  }
5090
5076
  }, [rowSelection?.selectedRowKeys]);
5091
- React43.useEffect(() => {
5077
+ React44.useEffect(() => {
5092
5078
  if (expandable?.expandedRowKeys !== void 0) {
5093
5079
  setInternalExpandedKeys(expandable.expandedRowKeys);
5094
5080
  }
5095
5081
  }, [expandable?.expandedRowKeys]);
5096
- React43.useEffect(() => {
5082
+ React44.useEffect(() => {
5097
5083
  if (pagination !== false && pagination.current !== void 0) {
5098
5084
  setInternalCurrentPage(pagination.current);
5099
5085
  }
5100
5086
  }, [pagination]);
5101
- React43.useEffect(() => {
5087
+ React44.useEffect(() => {
5102
5088
  if (pagination !== false && pagination.pageSize !== void 0) {
5103
5089
  setInternalPageSize(pagination.pageSize);
5104
5090
  }
5105
5091
  }, [pagination]);
5106
- React43.useEffect(() => {
5092
+ React44.useEffect(() => {
5107
5093
  setInternalFilterValues((previous) => {
5108
5094
  const next = { ...previous };
5109
5095
  let hasChanged = false;
@@ -5124,7 +5110,7 @@ function AdsDataTable({
5124
5110
  return hasChanged ? next : previous;
5125
5111
  });
5126
5112
  }, [resolvedColumns]);
5127
- const controlledSortState = React43.useMemo(() => {
5113
+ const controlledSortState = React44.useMemo(() => {
5128
5114
  const columnIndex = resolvedColumns.findIndex((column2) => column2.sortOrder !== void 0);
5129
5115
  if (columnIndex === -1) {
5130
5116
  return null;
@@ -5142,15 +5128,9 @@ function AdsDataTable({
5142
5128
  const hasSelectionColumn = Boolean(rowSelection);
5143
5129
  const hasExpandableColumn = Boolean(expandable?.expandedRowRender);
5144
5130
  const density = sizeClassNames[size];
5145
- const columnCount = resolvedColumns.length + Number(hasSelectionColumn) + Number(hasExpandableColumn);
5146
5131
  const paginationMode = pagination === false ? "client" : pagination.mode ?? "client";
5147
5132
  const allowsRowSelectionByClick = Boolean(rowSelection) && !suppressRowClickSelection;
5148
- const spinnerLoadingHeight = React43.useMemo(
5149
- () => getSpinnerLoadingHeight(scroll?.y, density),
5150
- [density, scroll?.y]
5151
- );
5152
- 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";
5153
- const filterValues = React43.useMemo(
5133
+ const filterValues = React44.useMemo(
5154
5134
  () => resolvedColumns.reduce((accumulator, column, index) => {
5155
5135
  const columnKey = getColumnKey(column, index);
5156
5136
  accumulator[columnKey] = column.filterValue ?? internalFilterValues[columnKey] ?? "";
@@ -5158,7 +5138,7 @@ function AdsDataTable({
5158
5138
  }, {}),
5159
5139
  [internalFilterValues, resolvedColumns]
5160
5140
  );
5161
- const filteredData = React43.useMemo(() => {
5141
+ const filteredData = React44.useMemo(() => {
5162
5142
  const filterableColumns = resolvedColumns.filter((column) => column.filter);
5163
5143
  if (filterableColumns.length === 0) {
5164
5144
  return dataSource;
@@ -5178,7 +5158,7 @@ function AdsDataTable({
5178
5158
  })
5179
5159
  );
5180
5160
  }, [dataSource, filterValues, resolvedColumns]);
5181
- const sortedData = React43.useMemo(() => {
5161
+ const sortedData = React44.useMemo(() => {
5182
5162
  if (!sortState || !sortState.column || sortState.order === null) {
5183
5163
  return filteredData;
5184
5164
  }
@@ -5205,7 +5185,7 @@ function AdsDataTable({
5205
5185
  Math.max(1, pagination.current ?? internalCurrentPage),
5206
5186
  totalPages
5207
5187
  );
5208
- React43.useEffect(() => {
5188
+ React44.useEffect(() => {
5209
5189
  if (pagination === false || pagination.current !== void 0) {
5210
5190
  return;
5211
5191
  }
@@ -5213,14 +5193,14 @@ function AdsDataTable({
5213
5193
  setInternalCurrentPage(currentPage);
5214
5194
  }
5215
5195
  }, [currentPage, internalCurrentPage, pagination]);
5216
- const paginatedData = React43.useMemo(() => {
5196
+ const paginatedData = React44.useMemo(() => {
5217
5197
  if (pagination === false || paginationMode === "server") {
5218
5198
  return sortedData;
5219
5199
  }
5220
5200
  const start = (currentPage - 1) * currentPageSize;
5221
5201
  return sortedData.slice(start, start + currentPageSize);
5222
5202
  }, [currentPage, currentPageSize, pagination, paginationMode, sortedData]);
5223
- const handleSortChange = React43.useCallback(
5203
+ const handleSortChange = React44.useCallback(
5224
5204
  (column, columnKey, nextOrder) => {
5225
5205
  const nextSortState = nextOrder === null ? null : {
5226
5206
  column,
@@ -5234,7 +5214,7 @@ function AdsDataTable({
5234
5214
  },
5235
5215
  [controlledSortState, onSortChange]
5236
5216
  );
5237
- const handleFilterChange = React43.useCallback(
5217
+ const handleFilterChange = React44.useCallback(
5238
5218
  (column, columnKey, nextValue) => {
5239
5219
  if (column.filterValue === void 0) {
5240
5220
  setInternalFilterValues((previous) => ({
@@ -5249,7 +5229,7 @@ function AdsDataTable({
5249
5229
  },
5250
5230
  [pagination]
5251
5231
  );
5252
- const updateSelection = React43.useCallback(
5232
+ const updateSelection = React44.useCallback(
5253
5233
  (nextKeys) => {
5254
5234
  if (!rowSelection) {
5255
5235
  return;
@@ -5264,7 +5244,7 @@ function AdsDataTable({
5264
5244
  },
5265
5245
  [dataSource, rowKey, rowSelection]
5266
5246
  );
5267
- const toggleSelectionFromRowClick = React43.useCallback(
5247
+ const toggleSelectionFromRowClick = React44.useCallback(
5268
5248
  (record, recordKey) => {
5269
5249
  if (!allowsRowSelectionByClick || !rowSelection) {
5270
5250
  return;
@@ -5278,7 +5258,7 @@ function AdsDataTable({
5278
5258
  },
5279
5259
  [allowsRowSelectionByClick, rowSelection, selectedKeys, updateSelection]
5280
5260
  );
5281
- const toggleExpanded = React43.useCallback(
5261
+ const toggleExpanded = React44.useCallback(
5282
5262
  (record, recordKey) => {
5283
5263
  if (!expandable?.expandedRowRender) {
5284
5264
  return;
@@ -5295,11 +5275,11 @@ function AdsDataTable({
5295
5275
  },
5296
5276
  [expandable, expandedKeys]
5297
5277
  );
5298
- 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: [
5299
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(AdsEmptyTitle, { children: emptyText ?? messages.table.noDataAvailable }),
5300
- typeof emptyText === "string" ? null : /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(AdsEmptyDescription, { children: messages.table.noDataAvailable })
5278
+ const renderedEmptyState = emptyState ?? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(AdsEmpty, { className: "min-h-[220px] py-12", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(AdsEmptyContent, { children: /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(AdsEmptyHeader, { children: [
5279
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(AdsEmptyTitle, { children: emptyText ?? messages.table.noDataAvailable }),
5280
+ typeof emptyText === "string" ? null : /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(AdsEmptyDescription, { children: messages.table.noDataAvailable })
5301
5281
  ] }) }) });
5302
- const handlePaginationChange = React43.useCallback(
5282
+ const handlePaginationChange = React44.useCallback(
5303
5283
  (page, nextPageSize) => {
5304
5284
  if (pagination === false) {
5305
5285
  return;
@@ -5314,7 +5294,7 @@ function AdsDataTable({
5314
5294
  },
5315
5295
  [currentPageSize, pagination]
5316
5296
  );
5317
- const handlePageSizeChange = React43.useCallback(
5297
+ const handlePageSizeChange = React44.useCallback(
5318
5298
  (nextPageSize, page) => {
5319
5299
  if (pagination === false) {
5320
5300
  return;
@@ -5329,28 +5309,28 @@ function AdsDataTable({
5329
5309
  },
5330
5310
  [pagination]
5331
5311
  );
5332
- const visibleRowEntries = React43.useMemo(
5312
+ const visibleRowEntries = React44.useMemo(
5333
5313
  () => paginatedData.map((record, index) => ({
5334
5314
  key: resolveRowKey(record, index, rowKey),
5335
5315
  record
5336
5316
  })),
5337
5317
  [paginatedData, rowKey]
5338
5318
  );
5339
- const visibleSelectableKeys = React43.useMemo(
5319
+ const visibleSelectableKeys = React44.useMemo(
5340
5320
  () => visibleRowEntries.map((entry) => entry.key),
5341
5321
  [visibleRowEntries]
5342
5322
  );
5343
- const selectedVisibleCount = React43.useMemo(
5323
+ const selectedVisibleCount = React44.useMemo(
5344
5324
  () => visibleSelectableKeys.filter((key) => selectedKeys.includes(key)).length,
5345
5325
  [selectedKeys, visibleSelectableKeys]
5346
5326
  );
5347
5327
  const allVisibleRowsSelected = visibleSelectableKeys.length > 0 && selectedVisibleCount === visibleSelectableKeys.length;
5348
5328
  const someVisibleRowsSelected = selectedVisibleCount > 0 && selectedVisibleCount < visibleSelectableKeys.length;
5349
- const getColumnWidthOverride = React43.useCallback(
5329
+ const getColumnWidthOverride = React44.useCallback(
5350
5330
  (column, columnKey) => internalColumnWidths[columnKey] ?? getResolvedColumnWidth(column),
5351
5331
  [internalColumnWidths]
5352
5332
  );
5353
- const startColumnResize = React43.useCallback(
5333
+ const startColumnResize = React44.useCallback(
5354
5334
  (event, column, columnKey) => {
5355
5335
  event.preventDefault();
5356
5336
  event.stopPropagation();
@@ -5381,7 +5361,7 @@ function AdsDataTable({
5381
5361
  },
5382
5362
  [internalColumnWidths]
5383
5363
  );
5384
- const renderColumnHeader = React43.useCallback(
5364
+ const renderColumnHeader = React44.useCallback(
5385
5365
  (column, columnKey, columnSortOrder) => {
5386
5366
  const headerTitle = getColumnHeader(column, columnKey);
5387
5367
  const hasSorter = Boolean(column.sorter);
@@ -5392,9 +5372,9 @@ function AdsDataTable({
5392
5372
  }
5393
5373
  const nextOrder = columnSortOrder === null ? "ascend" : columnSortOrder === "ascend" ? "descend" : null;
5394
5374
  const actionLabel = nextOrder === "ascend" ? messages.table.sortAscending : nextOrder === "descend" ? messages.table.sortDescending : messages.table.clearSort;
5395
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "relative flex min-w-0 items-center gap-2 pr-3", children: [
5396
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex min-w-0 flex-1 items-center justify-between gap-2", children: [
5397
- hasSorter ? /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
5375
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "relative flex min-w-0 items-center gap-2 pr-3", children: [
5376
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex min-w-0 flex-1 items-center justify-between gap-2", children: [
5377
+ hasSorter ? /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
5398
5378
  Button,
5399
5379
  {
5400
5380
  "aria-label": `${headerTitle} ${actionLabel}`,
@@ -5407,13 +5387,13 @@ function AdsDataTable({
5407
5387
  type: "button",
5408
5388
  variant: "ghost",
5409
5389
  children: [
5410
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "truncate", children: headerTitle }),
5411
- /* @__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" }) })
5390
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("span", { className: "truncate", children: headerTitle }),
5391
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("span", { className: "inline-flex h-4 w-4 items-center justify-center text-icon-muted", children: columnSortOrder === "ascend" ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_lucide_react15.ChevronDown, { className: "h-4 w-4 rotate-180" }) : columnSortOrder === "descend" ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_lucide_react15.ChevronDown, { className: "h-4 w-4" }) : /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_lucide_react15.ChevronDown, { className: "h-4 w-4 opacity-60" }) })
5412
5392
  ]
5413
5393
  }
5414
- ) : /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "truncate", children: headerTitle }),
5415
- hasFilter ? /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(AdsPopover, { children: [
5416
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(AdsPopoverTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
5394
+ ) : /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("span", { className: "truncate", children: headerTitle }),
5395
+ hasFilter ? /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(AdsPopover, { children: [
5396
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(AdsPopoverTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
5417
5397
  Button,
5418
5398
  {
5419
5399
  "aria-label": `${headerTitle} ${messages.table.filterColumn}`,
@@ -5425,10 +5405,10 @@ function AdsDataTable({
5425
5405
  size: "sm",
5426
5406
  type: "button",
5427
5407
  variant: "ghost",
5428
- children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_lucide_react16.Filter, { className: "h-3.5 w-3.5" })
5408
+ children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_lucide_react15.Filter, { className: "h-3.5 w-3.5" })
5429
5409
  }
5430
5410
  ) }),
5431
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(AdsPopoverContent, { align: "end", className: "w-64", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
5411
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(AdsPopoverContent, { align: "end", className: "w-64", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
5432
5412
  AdsInput,
5433
5413
  {
5434
5414
  clearable: true,
@@ -5441,7 +5421,7 @@ function AdsDataTable({
5441
5421
  ) })
5442
5422
  ] }) : null
5443
5423
  ] }),
5444
- hasResizeHandle ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
5424
+ hasResizeHandle ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
5445
5425
  "span",
5446
5426
  {
5447
5427
  "aria-label": `Resize ${headerTitle} column`,
@@ -5459,12 +5439,12 @@ function AdsDataTable({
5459
5439
  },
5460
5440
  [activeResize?.columnKey, filterValues, handleFilterChange, handleSortChange, messages.table, startColumnResize]
5461
5441
  );
5462
- const tableNode = /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(AdsTableSurface, { className: cn("flex min-h-0 flex-1 flex-col", className), children: [
5463
- /* @__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: [
5464
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(AdsTableColGroup, { children: [
5465
- hasSelectionColumn ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(AdsTableCol, { style: { width: rowSelection?.columnWidth ?? 48 } }) : null,
5466
- hasExpandableColumn ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(AdsTableCol, { style: { width: 48 } }) : null,
5467
- resolvedColumns.map((column, index) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
5442
+ const tableNode = /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(AdsTableSurface, { className: cn("flex min-h-0 flex-1 flex-col", className), children: [
5443
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(AdsTableScrollArea, { fill, stickyHeader: sticky, x: scroll?.x, y: scroll?.y, children: /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(AdsTableRoot, { className: tableClassName, children: [
5444
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(AdsTableColGroup, { children: [
5445
+ hasSelectionColumn ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(AdsTableCol, { style: { width: rowSelection?.columnWidth ?? 48 } }) : null,
5446
+ hasExpandableColumn ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(AdsTableCol, { style: { width: 48 } }) : null,
5447
+ resolvedColumns.map((column, index) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
5468
5448
  AdsTableCol,
5469
5449
  {
5470
5450
  style: getCellStyle(column, getColumnWidthOverride(column, getColumnKey(column, index)))
@@ -5472,8 +5452,8 @@ function AdsDataTable({
5472
5452
  getColumnKey(column, index)
5473
5453
  ))
5474
5454
  ] }),
5475
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(AdsTableHeader, { children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(AdsTableRow, { children: [
5476
- 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)(
5455
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(AdsTableHeader, { children: /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(AdsTableRow, { children: [
5456
+ hasSelectionColumn ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(AdsTableHead, { className: "w-12 p-2", children: rowSelection?.type !== "radio" && !rowSelection?.hideSelectAll ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
5477
5457
  Checkbox2,
5478
5458
  {
5479
5459
  "aria-label": messages.table.selectAllRows,
@@ -5490,11 +5470,11 @@ function AdsDataTable({
5490
5470
  onClick: (event) => event.stopPropagation()
5491
5471
  }
5492
5472
  ) }) : null }) : null,
5493
- hasExpandableColumn ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(AdsTableHead, { className: "w-12 p-2" }) : null,
5473
+ hasExpandableColumn ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(AdsTableHead, { className: "w-12 p-2" }) : null,
5494
5474
  resolvedColumns.map((column, index) => {
5495
5475
  const columnKey = getColumnKey(column, index);
5496
5476
  const columnSortOrder = sortState?.columnKey === columnKey ? sortState.order : column.sortOrder ?? null;
5497
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
5477
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
5498
5478
  AdsTableHead,
5499
5479
  {
5500
5480
  className: cn(density.head, column.className, column.headerClassName),
@@ -5505,33 +5485,14 @@ function AdsDataTable({
5505
5485
  );
5506
5486
  })
5507
5487
  ] }) }),
5508
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(AdsTableBody, { children: loading && loadingVariant === "spinner" ? [
5509
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(AdsTableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
5510
- AdsTableCell,
5511
- {
5512
- className: "p-0",
5513
- colSpan: columnCount,
5514
- children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
5515
- "div",
5516
- {
5517
- "aria-label": messages.table.loadingRows,
5518
- "aria-live": "polite",
5519
- className: "flex items-center justify-center px-6 py-8 text-foreground",
5520
- role: "status",
5521
- style: { minHeight: spinnerLoadingHeight },
5522
- children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(AdsSpinner, { size: "lg", tone: "foreground" })
5523
- }
5524
- )
5525
- }
5526
- ) }, "spinner-row")
5527
- ] : loading ? Array.from({ length: SKELETON_ROW_COUNT }, (_, skeletonIndex) => /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(AdsTableRow, { children: [
5528
- 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,
5529
- 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,
5530
- resolvedColumns.map((column, index) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
5488
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(AdsTableBody, { children: loading ? Array.from({ length: SKELETON_ROW_COUNT }, (_, skeletonIndex) => /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(AdsTableRow, { children: [
5489
+ hasSelectionColumn ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(AdsTableCell, { className: "w-12 p-2", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(AdsSkeleton, { className: "h-4 w-4 rounded-[4px]" }) }) : null,
5490
+ hasExpandableColumn ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(AdsTableCell, { className: "w-12 p-2", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(AdsSkeleton, { className: "h-4 w-4 rounded-[4px]" }) }) : null,
5491
+ resolvedColumns.map((column, index) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
5531
5492
  AdsTableCell,
5532
5493
  {
5533
5494
  className: cn(density.cell, column.className),
5534
- children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(AdsSkeleton, { className: "h-4 w-full rounded" })
5495
+ children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(AdsSkeleton, { className: "h-4 w-full rounded" })
5535
5496
  },
5536
5497
  `${getColumnKey(column, index)}-${skeletonIndex}`
5537
5498
  ))
@@ -5540,7 +5501,7 @@ function AdsDataTable({
5540
5501
  const isExpanded = expandedKeys.includes(recordKey);
5541
5502
  const canExpand = !!expandable?.expandedRowRender && (!expandable.rowExpandable || expandable.rowExpandable(record));
5542
5503
  const dataRowClassName = typeof rowClassName === "function" ? rowClassName(record, index) : rowClassName;
5543
- const row = /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
5504
+ const row = /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
5544
5505
  AdsTableRow,
5545
5506
  {
5546
5507
  className: cn(
@@ -5563,7 +5524,7 @@ function AdsDataTable({
5563
5524
  toggleSelectionFromRowClick(record, recordKey);
5564
5525
  },
5565
5526
  children: [
5566
- hasSelectionColumn ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
5527
+ hasSelectionColumn ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
5567
5528
  AdsTableSelectionCell,
5568
5529
  {
5569
5530
  checked: selectedKeys.includes(recordKey),
@@ -5579,7 +5540,7 @@ function AdsDataTable({
5579
5540
  value: String(recordKey)
5580
5541
  }
5581
5542
  ) : null,
5582
- hasExpandableColumn ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
5543
+ hasExpandableColumn ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
5583
5544
  AdsTableExpandCell,
5584
5545
  {
5585
5546
  disabled: !canExpand,
@@ -5592,7 +5553,7 @@ function AdsDataTable({
5592
5553
  resolveRenderedCellContent(column, record, index),
5593
5554
  column.ellipsis
5594
5555
  );
5595
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
5556
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
5596
5557
  AdsTableCell,
5597
5558
  {
5598
5559
  className: cn(
@@ -5618,16 +5579,16 @@ function AdsDataTable({
5618
5579
  }
5619
5580
  return [
5620
5581
  row,
5621
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(AdsTableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
5582
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(AdsTableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
5622
5583
  AdsTableCell,
5623
5584
  {
5624
5585
  className: "p-0",
5625
5586
  colSpan: resolvedColumns.length + Number(hasSelectionColumn) + Number(hasExpandableColumn),
5626
- children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
5587
+ children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
5627
5588
  "div",
5628
5589
  {
5629
5590
  className: cn(
5630
- expandedRowContentClassName,
5591
+ "border-t border-border bg-popover/40 p-4",
5631
5592
  classNames?.expandedRowContent
5632
5593
  ),
5633
5594
  children: expandable?.expandedRowRender?.(record, index)
@@ -5637,18 +5598,18 @@ function AdsDataTable({
5637
5598
  ) }, `${String(recordKey)}-expanded`)
5638
5599
  ];
5639
5600
  }) : [
5640
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(AdsTableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
5601
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(AdsTableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
5641
5602
  AdsTableCell,
5642
5603
  {
5643
- colSpan: columnCount,
5604
+ colSpan: resolvedColumns.length + Number(hasSelectionColumn) + Number(hasExpandableColumn),
5644
5605
  className: cn("p-0", classNames?.emptyRowCell),
5645
5606
  children: renderedEmptyState
5646
5607
  }
5647
5608
  ) }, "empty-row")
5648
5609
  ] })
5649
5610
  ] }) }),
5650
- footer ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "border-t border-border p-3", children: footer }) : null,
5651
- 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)(
5611
+ footer ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "border-t border-border p-3", children: footer }) : null,
5612
+ pagination !== false ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: cn("border-t border-border p-3", classNames?.paginationContainer), children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
5652
5613
  AdsDataPagination,
5653
5614
  {
5654
5615
  ariaLabel: messages.pagination.navigation,
@@ -5670,7 +5631,7 @@ function AdsDataTable({
5670
5631
  ) }) : null
5671
5632
  ] });
5672
5633
  if (rowSelection?.type === "radio") {
5673
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
5634
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
5674
5635
  RadioGroup2,
5675
5636
  {
5676
5637
  onValueChange: (value) => {
@@ -5691,7 +5652,7 @@ function AdsDataTable({
5691
5652
  }
5692
5653
 
5693
5654
  // src/components/AdsDataTableToolbar/index.tsx
5694
- var import_jsx_runtime48 = require("react/jsx-runtime");
5655
+ var import_jsx_runtime49 = require("react/jsx-runtime");
5695
5656
  function AdsDataTableToolbar({
5696
5657
  action,
5697
5658
  className,
@@ -5703,7 +5664,7 @@ function AdsDataTableToolbar({
5703
5664
  onSearchChange,
5704
5665
  onSearchClear
5705
5666
  }) {
5706
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
5667
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
5707
5668
  "div",
5708
5669
  {
5709
5670
  className: cn(
@@ -5711,9 +5672,9 @@ function AdsDataTableToolbar({
5711
5672
  className
5712
5673
  ),
5713
5674
  children: [
5714
- /* @__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 }),
5715
- /* @__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: [
5716
- /* @__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)(
5675
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "min-w-0 flex-1", children: title ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("h2", { className: cn("truncate text-xl font-medium text-white", titleClassName), children: title }) : null }),
5676
+ /* @__PURE__ */ (0, import_jsx_runtime49.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: [
5677
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "min-w-0 md:max-w-[440px] md:flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
5717
5678
  AdsInput,
5718
5679
  {
5719
5680
  className: cn(
@@ -5727,7 +5688,7 @@ function AdsDataTableToolbar({
5727
5688
  value: searchValue
5728
5689
  }
5729
5690
  ) }),
5730
- action ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "shrink-0", children: action }) : null
5691
+ action ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "shrink-0", children: action }) : null
5731
5692
  ] })
5732
5693
  ]
5733
5694
  }
@@ -5735,7 +5696,7 @@ function AdsDataTableToolbar({
5735
5696
  }
5736
5697
 
5737
5698
  // src/components/AdsViewCustomersDataTable/index.tsx
5738
- var import_jsx_runtime49 = require("react/jsx-runtime");
5699
+ var import_jsx_runtime50 = require("react/jsx-runtime");
5739
5700
  function resolveHeight(value) {
5740
5701
  if (value === void 0) {
5741
5702
  return 500;
@@ -5767,13 +5728,13 @@ function AdsViewCustomersDataTable({
5767
5728
  ...props
5768
5729
  }) {
5769
5730
  const tableHeight = resolveHeight(height);
5770
- 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: [
5771
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("p", { className: "text-sm font-medium text-white", children: errorTitle }),
5772
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("p", { className: "max-w-md text-sm text-[#848484]", children: errorDescription }),
5773
- onRetry ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(AdsButton, { intent: "primary", onClick: onRetry, children: retryLabel }) : null
5731
+ const resolvedErrorState = errorState ?? /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex min-h-[500px] flex-col items-center justify-center gap-3 px-6 py-12 text-center", children: [
5732
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("p", { className: "text-sm font-medium text-white", children: errorTitle }),
5733
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("p", { className: "max-w-md text-sm text-[#848484]", children: errorDescription }),
5734
+ onRetry ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(AdsButton, { intent: "primary", onClick: onRetry, children: retryLabel }) : null
5774
5735
  ] });
5775
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "overflow-hidden rounded-xl border border-[#27282F] bg-[#1B1C21]", children: [
5776
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
5736
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "overflow-hidden rounded-xl border border-[#27282F] bg-[#1B1C21]", children: [
5737
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
5777
5738
  AdsDataTableToolbar,
5778
5739
  {
5779
5740
  action: toolbarAction,
@@ -5785,7 +5746,7 @@ function AdsViewCustomersDataTable({
5785
5746
  }
5786
5747
  ),
5787
5748
  error ? resolvedErrorState : null,
5788
- !error ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
5749
+ !error ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
5789
5750
  AdsDataTable,
5790
5751
  {
5791
5752
  ...props,
@@ -5820,20 +5781,20 @@ function AdsViewCustomersDataTable({
5820
5781
  }
5821
5782
 
5822
5783
  // src/components/AdsProgress/index.tsx
5823
- var React45 = __toESM(require("react"), 1);
5784
+ var React46 = __toESM(require("react"), 1);
5824
5785
 
5825
5786
  // src/primitives/progress.tsx
5826
- var React44 = __toESM(require("react"), 1);
5787
+ var React45 = __toESM(require("react"), 1);
5827
5788
  var ProgressPrimitive = __toESM(require("@radix-ui/react-progress"), 1);
5828
- var import_jsx_runtime50 = require("react/jsx-runtime");
5829
- var Progress = React44.forwardRef(({ className, indicatorClassName, value, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
5789
+ var import_jsx_runtime51 = require("react/jsx-runtime");
5790
+ var Progress = React45.forwardRef(({ className, indicatorClassName, value, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
5830
5791
  ProgressPrimitive.Root,
5831
5792
  {
5832
5793
  className: cn("relative h-4 w-full overflow-hidden rounded-full bg-secondary", className),
5833
5794
  ref,
5834
5795
  value,
5835
5796
  ...props,
5836
- children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
5797
+ children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
5837
5798
  ProgressPrimitive.Indicator,
5838
5799
  {
5839
5800
  className: cn("h-full w-full flex-1 bg-primary transition-all", indicatorClassName),
@@ -5845,13 +5806,13 @@ var Progress = React44.forwardRef(({ className, indicatorClassName, value, ...pr
5845
5806
  Progress.displayName = ProgressPrimitive.Root.displayName;
5846
5807
 
5847
5808
  // src/components/AdsProgress/index.tsx
5848
- var import_jsx_runtime51 = require("react/jsx-runtime");
5809
+ var import_jsx_runtime52 = require("react/jsx-runtime");
5849
5810
  var progressBaseClassName = "h-2 rounded-radius-full bg-[color:color-mix(in_srgb,var(--primary)_20%,transparent)]";
5850
5811
  var progressIndicatorVariantClassName = {
5851
5812
  ai: "bg-brand-gradient",
5852
5813
  default: "bg-primary"
5853
5814
  };
5854
- var Progress2 = React45.forwardRef(({ className, indicatorClassName, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
5815
+ var Progress2 = React46.forwardRef(({ className, indicatorClassName, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
5855
5816
  Progress,
5856
5817
  {
5857
5818
  className: cn(progressBaseClassName, className),
@@ -5861,7 +5822,7 @@ var Progress2 = React45.forwardRef(({ className, indicatorClassName, ...props },
5861
5822
  }
5862
5823
  ));
5863
5824
  Progress2.displayName = "Progress";
5864
- var AdsProgress = React45.forwardRef(
5825
+ var AdsProgress = React46.forwardRef(
5865
5826
  ({
5866
5827
  className,
5867
5828
  descriptionPlacement = "above",
@@ -5880,12 +5841,12 @@ var AdsProgress = React45.forwardRef(
5880
5841
  id
5881
5842
  });
5882
5843
  const labelId = label ? `${description.inputId}-label` : void 0;
5883
- const helperNode = helperText ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(AdsFieldDescription, { id: description.helperId, children: helperText }) : null;
5884
- const errorNode = errorText ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(AdsFieldError, { id: description.errorId, children: errorText }) : null;
5885
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(AdsFieldItem, { children: [
5886
- label ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(AdsFieldLabel, { id: labelId, children: label }) : null,
5844
+ const helperNode = helperText ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(AdsFieldDescription, { id: description.helperId, children: helperText }) : null;
5845
+ const errorNode = errorText ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(AdsFieldError, { id: description.errorId, children: errorText }) : null;
5846
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(AdsFieldItem, { children: [
5847
+ label ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(AdsFieldLabel, { id: labelId, children: label }) : null,
5887
5848
  descriptionPlacement === "above" ? helperNode : null,
5888
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
5849
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
5889
5850
  Progress,
5890
5851
  {
5891
5852
  "aria-describedby": description.describedBy,
@@ -5909,13 +5870,13 @@ var AdsProgress = React45.forwardRef(
5909
5870
  AdsProgress.displayName = "AdsProgress";
5910
5871
 
5911
5872
  // src/components/AdsSlider/index.tsx
5912
- var React47 = __toESM(require("react"), 1);
5873
+ var React48 = __toESM(require("react"), 1);
5913
5874
 
5914
5875
  // src/primitives/slider.tsx
5915
- var React46 = __toESM(require("react"), 1);
5876
+ var React47 = __toESM(require("react"), 1);
5916
5877
  var SliderPrimitive = __toESM(require("@radix-ui/react-slider"), 1);
5917
- var import_jsx_runtime52 = require("react/jsx-runtime");
5918
- var Slider = React46.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
5878
+ var import_jsx_runtime53 = require("react/jsx-runtime");
5879
+ var Slider = React47.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
5919
5880
  SliderPrimitive.Root,
5920
5881
  {
5921
5882
  ref,
@@ -5925,10 +5886,10 @@ var Slider = React46.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
5925
5886
  ),
5926
5887
  ...props,
5927
5888
  children: [
5928
- /* @__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" }) }),
5889
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(SliderPrimitive.Track, { className: "relative h-1.5 w-full grow overflow-hidden rounded-full bg-secondary", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(SliderPrimitive.Range, { className: "absolute h-full bg-primary" }) }),
5929
5890
  Array.from({
5930
5891
  length: Array.isArray(props.value) ? props.value.length : Array.isArray(props.defaultValue) ? props.defaultValue.length : 1
5931
- }).map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
5892
+ }).map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
5932
5893
  SliderPrimitive.Thumb,
5933
5894
  {
5934
5895
  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"
@@ -5941,11 +5902,11 @@ var Slider = React46.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
5941
5902
  Slider.displayName = SliderPrimitive.Root.displayName;
5942
5903
 
5943
5904
  // src/components/AdsSlider/index.tsx
5944
- var import_jsx_runtime53 = require("react/jsx-runtime");
5905
+ var import_jsx_runtime54 = require("react/jsx-runtime");
5945
5906
  var sliderBaseClassName = "py-1";
5946
- var Slider2 = React47.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Slider, { className: cn(sliderBaseClassName, className), ref, ...props }));
5907
+ var Slider2 = React48.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Slider, { className: cn(sliderBaseClassName, className), ref, ...props }));
5947
5908
  Slider2.displayName = "Slider";
5948
- var AdsSlider = React47.forwardRef(
5909
+ var AdsSlider = React48.forwardRef(
5949
5910
  ({
5950
5911
  className,
5951
5912
  descriptionPlacement = "above",
@@ -5960,12 +5921,12 @@ var AdsSlider = React47.forwardRef(
5960
5921
  helperText,
5961
5922
  id
5962
5923
  });
5963
- const helperNode = helperText ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(AdsFieldDescription, { id: description.helperId, children: helperText }) : null;
5964
- const errorNode = errorText ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(AdsFieldError, { id: description.errorId, children: errorText }) : null;
5965
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(AdsFieldItem, { children: [
5966
- label ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(AdsFieldLabel, { children: label }) : null,
5924
+ const helperNode = helperText ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(AdsFieldDescription, { id: description.helperId, children: helperText }) : null;
5925
+ const errorNode = errorText ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(AdsFieldError, { id: description.errorId, children: errorText }) : null;
5926
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(AdsFieldItem, { children: [
5927
+ label ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(AdsFieldLabel, { children: label }) : null,
5967
5928
  descriptionPlacement === "above" ? helperNode : null,
5968
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
5929
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
5969
5930
  Slider2,
5970
5931
  {
5971
5932
  "aria-describedby": description.describedBy,
@@ -5982,13 +5943,13 @@ var AdsSlider = React47.forwardRef(
5982
5943
  AdsSlider.displayName = "AdsSlider";
5983
5944
 
5984
5945
  // src/components/AdsSwitch/index.tsx
5985
- var React49 = __toESM(require("react"), 1);
5946
+ var React50 = __toESM(require("react"), 1);
5986
5947
 
5987
5948
  // src/primitives/switch.tsx
5988
- var React48 = __toESM(require("react"), 1);
5949
+ var React49 = __toESM(require("react"), 1);
5989
5950
  var SwitchPrimitives = __toESM(require("@radix-ui/react-switch"), 1);
5990
- var import_jsx_runtime54 = require("react/jsx-runtime");
5991
- var Switch = React48.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
5951
+ var import_jsx_runtime55 = require("react/jsx-runtime");
5952
+ var Switch = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
5992
5953
  SwitchPrimitives.Root,
5993
5954
  {
5994
5955
  className: cn(
@@ -5997,7 +5958,7 @@ var Switch = React48.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
5997
5958
  ),
5998
5959
  ...props,
5999
5960
  ref,
6000
- children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
5961
+ children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
6001
5962
  SwitchPrimitives.Thumb,
6002
5963
  {
6003
5964
  className: cn(
@@ -6010,15 +5971,15 @@ var Switch = React48.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
6010
5971
  Switch.displayName = SwitchPrimitives.Root.displayName;
6011
5972
 
6012
5973
  // src/components/AdsSwitch/index.tsx
6013
- var import_jsx_runtime55 = require("react/jsx-runtime");
5974
+ var import_jsx_runtime56 = require("react/jsx-runtime");
6014
5975
  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";
6015
- var Switch2 = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Switch, { className: cn(switchBaseClassName, className), ref, ...props }));
5976
+ var Switch2 = React50.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Switch, { className: cn(switchBaseClassName, className), ref, ...props }));
6016
5977
  Switch2.displayName = "Switch";
6017
- var AdsSwitch = React49.forwardRef(({ className, description, id, label, switchClassName, wrapperClassName, ...props }, ref) => {
6018
- const generatedId = React49.useId();
5978
+ var AdsSwitch = React50.forwardRef(({ className, description, id, label, switchClassName, wrapperClassName, ...props }, ref) => {
5979
+ const generatedId = React50.useId();
6019
5980
  const inputId = id ?? generatedId;
6020
5981
  if (!label) {
6021
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
5982
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
6022
5983
  Switch2,
6023
5984
  {
6024
5985
  className: cn(className, switchClassName),
@@ -6028,12 +5989,12 @@ var AdsSwitch = React49.forwardRef(({ className, description, id, label, switchC
6028
5989
  }
6029
5990
  );
6030
5991
  }
6031
- 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: [
6032
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-1.5 pt-0.5", children: [
6033
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "text-sm font-medium leading-5 text-foreground", children: label }),
6034
- description ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(AdsFieldDescription, { className: "text-sm leading-5", children: description }) : null
5992
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("label", { className: cn("block w-full cursor-pointer", wrapperClassName), htmlFor: inputId, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "flex w-full items-start gap-3", children: [
5993
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-1.5 pt-0.5", children: [
5994
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "text-sm font-medium leading-5 text-foreground", children: label }),
5995
+ description ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(AdsFieldDescription, { className: "text-sm leading-5", children: description }) : null
6035
5996
  ] }),
6036
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
5997
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
6037
5998
  Switch2,
6038
5999
  {
6039
6000
  className: cn(className, switchClassName),
@@ -6047,14 +6008,14 @@ var AdsSwitch = React49.forwardRef(({ className, description, id, label, switchC
6047
6008
  AdsSwitch.displayName = "AdsSwitch";
6048
6009
 
6049
6010
  // src/components/AdsTabs/index.tsx
6050
- var React51 = __toESM(require("react"), 1);
6011
+ var React52 = __toESM(require("react"), 1);
6051
6012
 
6052
6013
  // src/primitives/tabs.tsx
6053
- var React50 = __toESM(require("react"), 1);
6014
+ var React51 = __toESM(require("react"), 1);
6054
6015
  var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"), 1);
6055
- var import_jsx_runtime56 = require("react/jsx-runtime");
6016
+ var import_jsx_runtime57 = require("react/jsx-runtime");
6056
6017
  var Tabs = TabsPrimitive.Root;
6057
- var TabsList = React50.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
6018
+ var TabsList = React51.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
6058
6019
  TabsPrimitive.List,
6059
6020
  {
6060
6021
  className: cn("inline-flex items-center", className),
@@ -6063,7 +6024,7 @@ var TabsList = React50.forwardRef(({ className, ...props }, ref) => /* @__PURE__
6063
6024
  }
6064
6025
  ));
6065
6026
  TabsList.displayName = TabsPrimitive.List.displayName;
6066
- var TabsTrigger = React50.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
6027
+ var TabsTrigger = React51.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
6067
6028
  TabsPrimitive.Trigger,
6068
6029
  {
6069
6030
  className: cn(
@@ -6075,7 +6036,7 @@ var TabsTrigger = React50.forwardRef(({ className, ...props }, ref) => /* @__PUR
6075
6036
  }
6076
6037
  ));
6077
6038
  TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
6078
- var TabsContent = React50.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
6039
+ var TabsContent = React51.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
6079
6040
  TabsPrimitive.Content,
6080
6041
  {
6081
6042
  className: cn("focus-visible:outline-none", className),
@@ -6086,9 +6047,9 @@ var TabsContent = React50.forwardRef(({ className, ...props }, ref) => /* @__PUR
6086
6047
  TabsContent.displayName = TabsPrimitive.Content.displayName;
6087
6048
 
6088
6049
  // src/components/AdsTabs/index.tsx
6089
- var import_jsx_runtime57 = require("react/jsx-runtime");
6050
+ var import_jsx_runtime58 = require("react/jsx-runtime");
6090
6051
  var AdsTabs = Tabs;
6091
- var AdsTabsList = React51.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
6052
+ var AdsTabsList = React52.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
6092
6053
  TabsList,
6093
6054
  {
6094
6055
  className: cn(
@@ -6100,7 +6061,7 @@ var AdsTabsList = React51.forwardRef(({ className, ...props }, ref) => /* @__PUR
6100
6061
  }
6101
6062
  ));
6102
6063
  AdsTabsList.displayName = "AdsTabsList";
6103
- var AdsTabsTrigger = React51.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
6064
+ var AdsTabsTrigger = React52.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
6104
6065
  TabsTrigger,
6105
6066
  {
6106
6067
  className: cn(
@@ -6112,7 +6073,7 @@ var AdsTabsTrigger = React51.forwardRef(({ className, ...props }, ref) => /* @__
6112
6073
  }
6113
6074
  ));
6114
6075
  AdsTabsTrigger.displayName = "AdsTabsTrigger";
6115
- var AdsTabsContent = React51.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
6076
+ var AdsTabsContent = React52.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
6116
6077
  TabsContent,
6117
6078
  {
6118
6079
  className: cn(
@@ -6126,13 +6087,13 @@ var AdsTabsContent = React51.forwardRef(({ className, ...props }, ref) => /* @__
6126
6087
  AdsTabsContent.displayName = "AdsTabsContent";
6127
6088
 
6128
6089
  // src/components/AdsToggle/index.tsx
6129
- var React53 = __toESM(require("react"), 1);
6090
+ var React54 = __toESM(require("react"), 1);
6130
6091
 
6131
6092
  // src/primitives/toggle.tsx
6132
- var React52 = __toESM(require("react"), 1);
6093
+ var React53 = __toESM(require("react"), 1);
6133
6094
  var TogglePrimitive = __toESM(require("@radix-ui/react-toggle"), 1);
6134
- var import_jsx_runtime58 = require("react/jsx-runtime");
6135
- var Toggle = React52.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
6095
+ var import_jsx_runtime59 = require("react/jsx-runtime");
6096
+ var Toggle = React53.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
6136
6097
  TogglePrimitive.Root,
6137
6098
  {
6138
6099
  className: cn(
@@ -6146,7 +6107,7 @@ var Toggle = React52.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
6146
6107
  Toggle.displayName = TogglePrimitive.Root.displayName;
6147
6108
 
6148
6109
  // src/components/AdsToggle/index.tsx
6149
- var import_jsx_runtime59 = require("react/jsx-runtime");
6110
+ var import_jsx_runtime60 = require("react/jsx-runtime");
6150
6111
  var sizeClassName3 = {
6151
6112
  sm: "!h-8 px-[6px] text-sm",
6152
6113
  md: "!h-9 px-md text-sm",
@@ -6161,10 +6122,10 @@ var variantClassName = {
6161
6122
  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)]",
6162
6123
  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)]"
6163
6124
  };
6164
- var AdsToggle = React53.forwardRef(({ children, className, size = "md", variant = "default", ...props }, ref) => {
6165
- const childCount = React53.Children.count(children);
6166
- const isIconOnly = childCount === 1 && React53.isValidElement(children);
6167
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
6125
+ var AdsToggle = React54.forwardRef(({ children, className, size = "md", variant = "default", ...props }, ref) => {
6126
+ const childCount = React54.Children.count(children);
6127
+ const isIconOnly = childCount === 1 && React54.isValidElement(children);
6128
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
6168
6129
  Toggle,
6169
6130
  {
6170
6131
  className: cn(
@@ -6183,13 +6144,13 @@ var AdsToggle = React53.forwardRef(({ children, className, size = "md", variant
6183
6144
  AdsToggle.displayName = "AdsToggle";
6184
6145
 
6185
6146
  // src/components/AdsToggleGroup/index.tsx
6186
- var React55 = __toESM(require("react"), 1);
6147
+ var React56 = __toESM(require("react"), 1);
6187
6148
 
6188
6149
  // src/primitives/toggle-group.tsx
6189
- var React54 = __toESM(require("react"), 1);
6150
+ var React55 = __toESM(require("react"), 1);
6190
6151
  var ToggleGroupPrimitive = __toESM(require("@radix-ui/react-toggle-group"), 1);
6191
- var import_jsx_runtime60 = require("react/jsx-runtime");
6192
- var ToggleGroup = React54.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
6152
+ var import_jsx_runtime61 = require("react/jsx-runtime");
6153
+ var ToggleGroup = React55.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
6193
6154
  ToggleGroupPrimitive.Root,
6194
6155
  {
6195
6156
  className: cn("inline-flex items-center justify-start", className),
@@ -6198,7 +6159,7 @@ var ToggleGroup = React54.forwardRef(({ className, ...props }, ref) => /* @__PUR
6198
6159
  }
6199
6160
  ));
6200
6161
  ToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName;
6201
- var ToggleGroupItem = React54.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
6162
+ var ToggleGroupItem = React55.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
6202
6163
  ToggleGroupPrimitive.Item,
6203
6164
  {
6204
6165
  className: cn(
@@ -6212,7 +6173,7 @@ var ToggleGroupItem = React54.forwardRef(({ className, ...props }, ref) => /* @_
6212
6173
  ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;
6213
6174
 
6214
6175
  // src/components/AdsToggleGroup/index.tsx
6215
- var import_jsx_runtime61 = require("react/jsx-runtime");
6176
+ var import_jsx_runtime62 = require("react/jsx-runtime");
6216
6177
  var sizeClassName4 = {
6217
6178
  sm: "h-8 min-w-7 px-[6px] text-sm",
6218
6179
  md: "h-9 min-w-[34px] px-md text-sm",
@@ -6222,8 +6183,8 @@ var variantClassName2 = {
6222
6183
  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)]",
6223
6184
  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)]"
6224
6185
  };
6225
- var AdsToggleGroupContext = React55.createContext(null);
6226
- var AdsToggleGroup = React55.forwardRef(
6186
+ var AdsToggleGroupContext = React56.createContext(null);
6187
+ var AdsToggleGroup = React56.forwardRef(
6227
6188
  ({
6228
6189
  children,
6229
6190
  className,
@@ -6231,7 +6192,7 @@ var AdsToggleGroup = React55.forwardRef(
6231
6192
  size = "md",
6232
6193
  variant = "default",
6233
6194
  ...props
6234
- }, ref) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(AdsToggleGroupContext.Provider, { value: { orientation, size, variant }, children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
6195
+ }, ref) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(AdsToggleGroupContext.Provider, { value: { orientation, size, variant }, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
6235
6196
  ToggleGroup,
6236
6197
  {
6237
6198
  className: cn(
@@ -6247,12 +6208,12 @@ var AdsToggleGroup = React55.forwardRef(
6247
6208
  ) })
6248
6209
  );
6249
6210
  AdsToggleGroup.displayName = "AdsToggleGroup";
6250
- var AdsToggleGroupItem = React55.forwardRef(({ className, size, variant, ...props }, ref) => {
6251
- const context = React55.useContext(AdsToggleGroupContext);
6211
+ var AdsToggleGroupItem = React56.forwardRef(({ className, size, variant, ...props }, ref) => {
6212
+ const context = React56.useContext(AdsToggleGroupContext);
6252
6213
  const resolvedOrientation = context?.orientation ?? "horizontal";
6253
6214
  const resolvedSize = size ?? context?.size ?? "md";
6254
6215
  const resolvedVariant = variant ?? context?.variant ?? "default";
6255
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
6216
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
6256
6217
  ToggleGroupItem,
6257
6218
  {
6258
6219
  className: cn(
@@ -6270,10 +6231,10 @@ var AdsToggleGroupItem = React55.forwardRef(({ className, size, variant, ...prop
6270
6231
  AdsToggleGroupItem.displayName = "AdsToggleGroupItem";
6271
6232
 
6272
6233
  // src/components/AdsTextarea/index.tsx
6273
- var React56 = __toESM(require("react"), 1);
6274
- var import_jsx_runtime62 = require("react/jsx-runtime");
6275
- 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:border-border disabled:bg-muted disabled:text-[var(--muted-foreground)] disabled:placeholder:text-[var(--muted-foreground)] disabled:opacity-100 disabled:focus-visible:border-border disabled:focus-visible:ring-0";
6276
- var AdsTextarea = React56.forwardRef(
6234
+ var React57 = __toESM(require("react"), 1);
6235
+ var import_jsx_runtime63 = require("react/jsx-runtime");
6236
+ 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";
6237
+ var AdsTextarea = React57.forwardRef(
6277
6238
  ({
6278
6239
  action,
6279
6240
  className,
@@ -6292,12 +6253,12 @@ var AdsTextarea = React56.forwardRef(
6292
6253
  helperText,
6293
6254
  id
6294
6255
  });
6295
- const helperNode = helperText ? /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(AdsFieldDescription, { id: description.helperId, children: helperText }) : null;
6296
- const errorNode = errorText ? /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(AdsFieldError, { id: description.errorId, children: errorText }) : null;
6297
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(AdsFieldItem, { children: [
6298
- label ? /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(AdsFieldLabel, { htmlFor: description.inputId, children: label }) : null,
6256
+ const helperNode = helperText ? /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(AdsFieldDescription, { id: description.helperId, children: helperText }) : null;
6257
+ const errorNode = errorText ? /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(AdsFieldError, { id: description.errorId, children: errorText }) : null;
6258
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(AdsFieldItem, { children: [
6259
+ label ? /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(AdsFieldLabel, { htmlFor: description.inputId, children: label }) : null,
6299
6260
  descriptionPlacement === "above" ? helperNode : null,
6300
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
6261
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
6301
6262
  Textarea,
6302
6263
  {
6303
6264
  "aria-describedby": description.describedBy,
@@ -6315,7 +6276,7 @@ var AdsTextarea = React56.forwardRef(
6315
6276
  ...props
6316
6277
  }
6317
6278
  ),
6318
- action ? /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "w-full [&>*]:w-full", children: action }) : null,
6279
+ action ? /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "w-full [&>*]:w-full", children: action }) : null,
6319
6280
  descriptionPlacement === "below" ? helperNode : null,
6320
6281
  errorNode
6321
6282
  ] });
@@ -6324,17 +6285,17 @@ var AdsTextarea = React56.forwardRef(
6324
6285
  AdsTextarea.displayName = "AdsTextarea";
6325
6286
 
6326
6287
  // src/components/AdsTooltip/index.tsx
6327
- var React58 = __toESM(require("react"), 1);
6288
+ var React59 = __toESM(require("react"), 1);
6328
6289
 
6329
6290
  // src/primitives/tooltip.tsx
6330
- var React57 = __toESM(require("react"), 1);
6291
+ var React58 = __toESM(require("react"), 1);
6331
6292
  var TooltipPrimitive = __toESM(require("@radix-ui/react-tooltip"), 1);
6332
- var import_jsx_runtime63 = require("react/jsx-runtime");
6293
+ var import_jsx_runtime64 = require("react/jsx-runtime");
6333
6294
  var TooltipProvider = TooltipPrimitive.Provider;
6334
6295
  var Tooltip = TooltipPrimitive.Root;
6335
6296
  var TooltipTrigger = TooltipPrimitive.Trigger;
6336
6297
  var TooltipArrow = TooltipPrimitive.Arrow;
6337
- var TooltipContent = React57.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(TooltipPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
6298
+ var TooltipContent = React58.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(TooltipPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6338
6299
  TooltipPrimitive.Content,
6339
6300
  {
6340
6301
  className: cn(
@@ -6349,12 +6310,12 @@ var TooltipContent = React57.forwardRef(({ className, sideOffset = 4, ...props }
6349
6310
  TooltipContent.displayName = TooltipPrimitive.Content.displayName;
6350
6311
 
6351
6312
  // src/components/AdsTooltip/index.tsx
6352
- var import_jsx_runtime64 = require("react/jsx-runtime");
6313
+ var import_jsx_runtime65 = require("react/jsx-runtime");
6353
6314
  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)]";
6354
6315
  var AdsTooltipProvider = TooltipProvider;
6355
6316
  var AdsTooltip = Tooltip;
6356
6317
  var AdsTooltipTrigger = TooltipTrigger;
6357
- var AdsTooltipContent = React58.forwardRef(({ align = "center", className, sideOffset = 10, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6318
+ var AdsTooltipContent = React59.forwardRef(({ align = "center", className, sideOffset = 10, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6358
6319
  TooltipContent,
6359
6320
  {
6360
6321
  align,
@@ -6365,7 +6326,7 @@ var AdsTooltipContent = React58.forwardRef(({ align = "center", className, sideO
6365
6326
  }
6366
6327
  ));
6367
6328
  AdsTooltipContent.displayName = "AdsTooltipContent";
6368
- var AdsTooltipArrow = React58.forwardRef(({ className, height = 5, width = 10, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6329
+ var AdsTooltipArrow = React59.forwardRef(({ className, height = 5, width = 10, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6369
6330
  TooltipArrow,
6370
6331
  {
6371
6332
  className: cn("fill-[#844fff]", className),
@@ -6378,16 +6339,16 @@ var AdsTooltipArrow = React58.forwardRef(({ className, height = 5, width = 10, .
6378
6339
  AdsTooltipArrow.displayName = "AdsTooltipArrow";
6379
6340
 
6380
6341
  // src/components/AdsToast/index.tsx
6381
- var React59 = __toESM(require("react"), 1);
6382
- var import_lucide_react17 = require("lucide-react");
6342
+ var React60 = __toESM(require("react"), 1);
6343
+ var import_lucide_react16 = require("lucide-react");
6383
6344
  var import_sonner = require("sonner");
6384
- var import_jsx_runtime65 = require("react/jsx-runtime");
6345
+ var import_jsx_runtime66 = require("react/jsx-runtime");
6385
6346
  var adsToastIconMap = {
6386
- success: import_lucide_react17.CircleCheck,
6387
- info: import_lucide_react17.Info,
6388
- warning: import_lucide_react17.TriangleAlert,
6389
- error: import_lucide_react17.OctagonX,
6390
- loading: import_lucide_react17.LoaderCircle
6347
+ success: import_lucide_react16.CircleCheck,
6348
+ info: import_lucide_react16.Info,
6349
+ warning: import_lucide_react16.TriangleAlert,
6350
+ error: import_lucide_react16.OctagonX,
6351
+ loading: import_lucide_react16.LoaderCircle
6391
6352
  };
6392
6353
  function resolveToastIcon(intent, icon) {
6393
6354
  if (icon) {
@@ -6397,7 +6358,7 @@ function resolveToastIcon(intent, icon) {
6397
6358
  return null;
6398
6359
  }
6399
6360
  const Icon2 = adsToastIconMap[intent];
6400
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6361
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6401
6362
  Icon2,
6402
6363
  {
6403
6364
  "aria-hidden": true,
@@ -6410,7 +6371,7 @@ function resolveToastIcon(intent, icon) {
6410
6371
  }
6411
6372
  );
6412
6373
  }
6413
- var AdsToast = React59.forwardRef(
6374
+ var AdsToast = React60.forwardRef(
6414
6375
  ({
6415
6376
  action,
6416
6377
  className,
@@ -6421,7 +6382,7 @@ var AdsToast = React59.forwardRef(
6421
6382
  ...props
6422
6383
  }, ref) => {
6423
6384
  const resolvedIcon = resolveToastIcon(intent, icon);
6424
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
6385
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
6425
6386
  "div",
6426
6387
  {
6427
6388
  className: cn(
@@ -6436,8 +6397,8 @@ var AdsToast = React59.forwardRef(
6436
6397
  ...props,
6437
6398
  children: [
6438
6399
  resolvedIcon,
6439
- /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
6440
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6400
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
6401
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6441
6402
  "p",
6442
6403
  {
6443
6404
  className: cn(
@@ -6447,7 +6408,7 @@ var AdsToast = React59.forwardRef(
6447
6408
  children: title
6448
6409
  }
6449
6410
  ),
6450
- description ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6411
+ description ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6451
6412
  "p",
6452
6413
  {
6453
6414
  className: cn(
@@ -6458,7 +6419,7 @@ var AdsToast = React59.forwardRef(
6458
6419
  }
6459
6420
  ) : null
6460
6421
  ] }),
6461
- action ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6422
+ action ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6462
6423
  AdsButton,
6463
6424
  {
6464
6425
  className: "shrink-0 rounded-radius-lg",
@@ -6484,7 +6445,7 @@ function AdsToaster({
6484
6445
  ...props
6485
6446
  }) {
6486
6447
  const { messages } = useAdsI18n();
6487
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6448
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6488
6449
  import_sonner.Toaster,
6489
6450
  {
6490
6451
  closeButton: false,
@@ -6502,7 +6463,7 @@ function AdsToaster({
6502
6463
  );
6503
6464
  }
6504
6465
  function toStageNode(intent, title, options) {
6505
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6466
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6506
6467
  AdsToast,
6507
6468
  {
6508
6469
  action: options?.action,
@@ -6516,7 +6477,7 @@ function toStageNode(intent, title, options) {
6516
6477
  function showAdsToast(intent, title, options) {
6517
6478
  const { action, description, icon, ...toastOptions } = options ?? {};
6518
6479
  return import_sonner.toast.custom(
6519
- (id) => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6480
+ (id) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6520
6481
  AdsToast,
6521
6482
  {
6522
6483
  action: action ? {
@@ -6570,10 +6531,10 @@ var AdsToastManager = Object.assign(
6570
6531
  );
6571
6532
 
6572
6533
  // src/components/AdsDialog/index.tsx
6573
- var React60 = __toESM(require("react"), 1);
6534
+ var React61 = __toESM(require("react"), 1);
6574
6535
  var DialogPrimitive = __toESM(require("@radix-ui/react-dialog"), 1);
6575
- var import_lucide_react18 = require("lucide-react");
6576
- var import_jsx_runtime66 = require("react/jsx-runtime");
6536
+ var import_lucide_react17 = require("lucide-react");
6537
+ var import_jsx_runtime67 = require("react/jsx-runtime");
6577
6538
  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";
6578
6539
  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%]";
6579
6540
  var bodyClassName = "min-h-0 flex-1 overflow-y-auto overscroll-contain [scrollbar-gutter:stable]";
@@ -6581,7 +6542,7 @@ var closeButtonClassName = "absolute right-xl top-xl inline-flex h-6 w-6 items-c
6581
6542
  var Dialog = DialogPrimitive.Root;
6582
6543
  var DialogTrigger = DialogPrimitive.Trigger;
6583
6544
  var DialogPortal = DialogPrimitive.Portal;
6584
- var DialogOverlay = React60.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6545
+ var DialogOverlay = React61.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6585
6546
  DialogPrimitive.Overlay,
6586
6547
  {
6587
6548
  className: cn(overlayClassName2, className),
@@ -6590,7 +6551,7 @@ var DialogOverlay = React60.forwardRef(({ className, ...props }, ref) => /* @__P
6590
6551
  }
6591
6552
  ));
6592
6553
  DialogOverlay.displayName = "DialogOverlay";
6593
- var DialogClose = React60.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6554
+ var DialogClose = React61.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6594
6555
  DialogPrimitive.Close,
6595
6556
  {
6596
6557
  className: cn(
@@ -6604,8 +6565,8 @@ var DialogClose = React60.forwardRef(({ className, ...props }, ref) => /* @__PUR
6604
6565
  DialogClose.displayName = "DialogClose";
6605
6566
  function flattenDialogChildren(children) {
6606
6567
  const nodes = [];
6607
- React60.Children.forEach(children, (child) => {
6608
- if (React60.isValidElement(child) && child.type === React60.Fragment) {
6568
+ React61.Children.forEach(children, (child) => {
6569
+ if (React61.isValidElement(child) && child.type === React61.Fragment) {
6609
6570
  nodes.push(...flattenDialogChildren(child.props.children));
6610
6571
  return;
6611
6572
  }
@@ -6614,10 +6575,10 @@ function flattenDialogChildren(children) {
6614
6575
  return nodes;
6615
6576
  }
6616
6577
  function isDialogSlotElement(child, component) {
6617
- return React60.isValidElement(child) && child.type === component;
6578
+ return React61.isValidElement(child) && child.type === component;
6618
6579
  }
6619
- var DialogBody = React60.forwardRef(
6620
- ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6580
+ var DialogBody = React61.forwardRef(
6581
+ ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6621
6582
  "div",
6622
6583
  {
6623
6584
  className: cn(bodyClassName, className),
@@ -6628,7 +6589,7 @@ var DialogBody = React60.forwardRef(
6628
6589
  )
6629
6590
  );
6630
6591
  DialogBody.displayName = "DialogBody";
6631
- var DialogContent = React60.forwardRef(
6592
+ var DialogContent = React61.forwardRef(
6632
6593
  ({
6633
6594
  children,
6634
6595
  className,
@@ -6685,9 +6646,9 @@ var DialogContent = React60.forwardRef(
6685
6646
  const looseBodyNodes = bodyNodes.filter(
6686
6647
  (child) => !isDialogSlotElement(child, DialogBody)
6687
6648
  );
6688
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(NestedDismissableLayerProvider, { coordinator: parentLayer.coordinator, children: /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(DialogPortal, { children: [
6689
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(DialogOverlay, {}),
6690
- /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
6649
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(NestedDismissableLayerProvider, { coordinator: parentLayer.coordinator, children: /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(DialogPortal, { children: [
6650
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(DialogOverlay, {}),
6651
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
6691
6652
  DialogPrimitive.Content,
6692
6653
  {
6693
6654
  "data-slot": "ads-dialog-content",
@@ -6703,18 +6664,18 @@ var DialogContent = React60.forwardRef(
6703
6664
  ...props,
6704
6665
  children: [
6705
6666
  headerNode,
6706
- headerNode === null && generatedHeaderNodes.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(DialogHeader, { children: generatedHeaderNodes }) : null,
6667
+ headerNode === null && generatedHeaderNodes.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(DialogHeader, { children: generatedHeaderNodes }) : null,
6707
6668
  explicitBodyNodes.length > 0 ? explicitBodyNodes : null,
6708
- looseBodyNodes.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(DialogBody, { children: looseBodyNodes }) : null,
6669
+ looseBodyNodes.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(DialogBody, { children: looseBodyNodes }) : null,
6709
6670
  footerNode,
6710
- !hideCloseButton ? /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
6671
+ !hideCloseButton ? /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
6711
6672
  DialogPrimitive.Close,
6712
6673
  {
6713
6674
  "aria-label": resolvedCloseLabel,
6714
6675
  className: cn(closeButtonClassName, adsTextColorClassName.card),
6715
6676
  children: [
6716
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_lucide_react18.X, { "aria-hidden": true, className: "h-4 w-4" }),
6717
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { className: "sr-only", children: resolvedCloseLabel })
6677
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_lucide_react17.X, { "aria-hidden": true, className: "h-4 w-4" }),
6678
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "sr-only", children: resolvedCloseLabel })
6718
6679
  ]
6719
6680
  }
6720
6681
  ) : null
@@ -6725,8 +6686,8 @@ var DialogContent = React60.forwardRef(
6725
6686
  }
6726
6687
  );
6727
6688
  DialogContent.displayName = "DialogContent";
6728
- var DialogHeader = React60.forwardRef(
6729
- ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6689
+ var DialogHeader = React61.forwardRef(
6690
+ ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6730
6691
  "div",
6731
6692
  {
6732
6693
  "data-slot": "ads-dialog-header",
@@ -6737,8 +6698,8 @@ var DialogHeader = React60.forwardRef(
6737
6698
  )
6738
6699
  );
6739
6700
  DialogHeader.displayName = "DialogHeader";
6740
- var DialogFooter = React60.forwardRef(
6741
- ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6701
+ var DialogFooter = React61.forwardRef(
6702
+ ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6742
6703
  "div",
6743
6704
  {
6744
6705
  "data-slot": "ads-dialog-footer",
@@ -6752,7 +6713,7 @@ var DialogFooter = React60.forwardRef(
6752
6713
  )
6753
6714
  );
6754
6715
  DialogFooter.displayName = "DialogFooter";
6755
- var DialogTitle = React60.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6716
+ var DialogTitle = React61.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6756
6717
  DialogPrimitive.Title,
6757
6718
  {
6758
6719
  className: cn(
@@ -6765,7 +6726,7 @@ var DialogTitle = React60.forwardRef(({ className, ...props }, ref) => /* @__PUR
6765
6726
  }
6766
6727
  ));
6767
6728
  DialogTitle.displayName = "DialogTitle";
6768
- var DialogDescription = React60.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6729
+ var DialogDescription = React61.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6769
6730
  DialogPrimitive.Description,
6770
6731
  {
6771
6732
  className: cn("text-sm leading-5", adsTextColorClassName.muted, className),
@@ -6781,14 +6742,13 @@ var AdsDialogOverlay = DialogOverlay;
6781
6742
  var AdsDialogClose = DialogClose;
6782
6743
  var AdsDialogContent = DialogContent;
6783
6744
  var AdsDialogHeader = DialogHeader;
6784
- var AdsDialogBody = DialogBody;
6785
6745
  var AdsDialogFooter = DialogFooter;
6786
6746
  var AdsDialogTitle = DialogTitle;
6787
6747
  var AdsDialogDescription = DialogDescription;
6788
6748
 
6789
6749
  // src/components/AdsMasonry/index.tsx
6790
6750
  var import_masonic = require("masonic");
6791
- var import_jsx_runtime67 = require("react/jsx-runtime");
6751
+ var import_jsx_runtime68 = require("react/jsx-runtime");
6792
6752
  var DEFAULT_COLUMN_WIDTH = 240;
6793
6753
  var DEFAULT_GAP = 16;
6794
6754
  var DEFAULT_ITEM_HEIGHT_ESTIMATE = 280;
@@ -6824,7 +6784,7 @@ function AdsMasonry({
6824
6784
  { length: loadingItemCount },
6825
6785
  (_, index) => index
6826
6786
  );
6827
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6787
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
6828
6788
  "div",
6829
6789
  {
6830
6790
  className: cn(
@@ -6836,20 +6796,20 @@ function AdsMasonry({
6836
6796
  const mediaHeight = LOADING_MEDIA_HEIGHT_PATTERN[index % LOADING_MEDIA_HEIGHT_PATTERN.length];
6837
6797
  const titleWidth = LOADING_TITLE_WIDTH_PATTERN[index % LOADING_TITLE_WIDTH_PATTERN.length];
6838
6798
  const bodyWidth = LOADING_BODY_WIDTH_PATTERN[index % LOADING_BODY_WIDTH_PATTERN.length];
6839
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
6799
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
6840
6800
  "article",
6841
6801
  {
6842
6802
  className: "overflow-hidden rounded-radius-lg border border-border bg-card shadow-showcase",
6843
6803
  "data-slot": "ads-masonry-loading-card",
6844
6804
  "data-testid": "ads-masonry-loading-card",
6845
6805
  children: [
6846
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6806
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
6847
6807
  "div",
6848
6808
  {
6849
6809
  className: "border-b border-border/60 bg-surface-inset/50",
6850
6810
  "data-slot": "ads-masonry-skeleton-preview",
6851
6811
  "data-testid": "ads-masonry-skeleton-preview",
6852
- children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6812
+ children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
6853
6813
  AdsSkeleton,
6854
6814
  {
6855
6815
  className: cn("w-full rounded-none", classNames?.skeleton),
@@ -6860,10 +6820,10 @@ function AdsMasonry({
6860
6820
  )
6861
6821
  }
6862
6822
  ),
6863
- /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex flex-col gap-4 p-lg", children: [
6864
- /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex items-start justify-between gap-3", children: [
6865
- /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex-1 space-y-2", children: [
6866
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6823
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "flex flex-col gap-4 p-lg", children: [
6824
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "flex items-start justify-between gap-3", children: [
6825
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "flex-1 space-y-2", children: [
6826
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
6867
6827
  AdsSkeleton,
6868
6828
  {
6869
6829
  className: cn("h-3 w-16 rounded-full", classNames?.skeleton),
@@ -6871,7 +6831,7 @@ function AdsMasonry({
6871
6831
  "data-testid": "ads-masonry-skeleton"
6872
6832
  }
6873
6833
  ),
6874
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6834
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
6875
6835
  AdsSkeleton,
6876
6836
  {
6877
6837
  className: cn("h-6 rounded-full", classNames?.skeleton),
@@ -6881,7 +6841,7 @@ function AdsMasonry({
6881
6841
  }
6882
6842
  )
6883
6843
  ] }),
6884
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6844
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
6885
6845
  AdsSkeleton,
6886
6846
  {
6887
6847
  className: cn("h-6 w-16 rounded-full", classNames?.skeleton),
@@ -6890,7 +6850,7 @@ function AdsMasonry({
6890
6850
  }
6891
6851
  )
6892
6852
  ] }),
6893
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6853
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
6894
6854
  AdsSkeleton,
6895
6855
  {
6896
6856
  className: cn("h-4 rounded-full", classNames?.skeleton),
@@ -6909,7 +6869,7 @@ function AdsMasonry({
6909
6869
  );
6910
6870
  }
6911
6871
  if (items.length === 0) {
6912
- return emptyState ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6872
+ return emptyState ? /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
6913
6873
  "div",
6914
6874
  {
6915
6875
  className: cn(rootClassName, classNames?.empty),
@@ -6918,7 +6878,7 @@ function AdsMasonry({
6918
6878
  }
6919
6879
  ) : null;
6920
6880
  }
6921
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6881
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
6922
6882
  import_masonic.Masonry,
6923
6883
  {
6924
6884
  className: rootClassName,
@@ -6930,7 +6890,7 @@ function AdsMasonry({
6930
6890
  maxColumnCount,
6931
6891
  onRender,
6932
6892
  overscanBy,
6933
- render: ({ data, index, width }) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6893
+ render: ({ data, index, width }) => /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
6934
6894
  "div",
6935
6895
  {
6936
6896
  className: cn("pb-0", classNames?.item, itemClassName),
@@ -7043,6 +7003,7 @@ var designTokens = {
7043
7003
  AdsButtonGroupSeparator,
7044
7004
  AdsButtonGroupText,
7045
7005
  AdsCalendar,
7006
+ AdsCard,
7046
7007
  AdsCheckbox,
7047
7008
  AdsDataPagination,
7048
7009
  AdsDataTable,
@@ -7050,7 +7011,6 @@ var designTokens = {
7050
7011
  AdsDatePicker,
7051
7012
  AdsDateTimePicker,
7052
7013
  AdsDialog,
7053
- AdsDialogBody,
7054
7014
  AdsDialogClose,
7055
7015
  AdsDialogContent,
7056
7016
  AdsDialogDescription,