@adsgency_npm/adsgency-ads-ui 0.1.0-alpha.22 → 0.1.0-alpha.24

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
@@ -62,6 +62,7 @@ __export(src_exports, {
62
62
  AdsButtonGroupSeparator: () => AdsButtonGroupSeparator,
63
63
  AdsButtonGroupText: () => AdsButtonGroupText,
64
64
  AdsCalendar: () => AdsCalendar,
65
+ AdsCard: () => AdsCard,
65
66
  AdsCheckbox: () => AdsCheckbox,
66
67
  AdsDataPagination: () => AdsDataPagination,
67
68
  AdsDataTable: () => AdsDataTable,
@@ -1146,16 +1147,43 @@ var AdsButton = React10.forwardRef(
1146
1147
  );
1147
1148
  AdsButton.displayName = "AdsButton";
1148
1149
 
1150
+ // src/components/AdsCard/index.tsx
1151
+ var React11 = __toESM(require("react"), 1);
1152
+ var import_react_slot2 = require("@radix-ui/react-slot");
1153
+ var import_jsx_runtime12 = require("react/jsx-runtime");
1154
+ var cardBaseClassName = "relative isolate rounded-radius-lg border border-border bg-card shadow-[0px_1px_2px_rgba(0,0,0,0.1)]";
1155
+ 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";
1156
+ var AdsCard = React11.forwardRef(
1157
+ ({ asChild = false, className, interactive = false, ...props }, ref) => {
1158
+ const Comp = asChild ? import_react_slot2.Slot : "div";
1159
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1160
+ Comp,
1161
+ {
1162
+ className: cn(
1163
+ cardBaseClassName,
1164
+ interactive && cardInteractiveClassName,
1165
+ className
1166
+ ),
1167
+ "data-interactive": interactive,
1168
+ "data-slot": "ads-card",
1169
+ ref,
1170
+ ...props
1171
+ }
1172
+ );
1173
+ }
1174
+ );
1175
+ AdsCard.displayName = "AdsCard";
1176
+
1149
1177
  // src/components/AdsBreadcrumb/index.tsx
1150
- var React12 = __toESM(require("react"), 1);
1178
+ var React13 = __toESM(require("react"), 1);
1151
1179
  var import_lucide_react5 = require("lucide-react");
1152
1180
 
1153
1181
  // src/primitives/breadcrumb.tsx
1154
- var React11 = __toESM(require("react"), 1);
1155
- var import_react_slot2 = require("@radix-ui/react-slot");
1182
+ var React12 = __toESM(require("react"), 1);
1183
+ var import_react_slot3 = require("@radix-ui/react-slot");
1156
1184
  var import_lucide_react4 = require("lucide-react");
1157
- var import_jsx_runtime12 = require("react/jsx-runtime");
1158
- var Breadcrumb = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1185
+ var import_jsx_runtime13 = require("react/jsx-runtime");
1186
+ var Breadcrumb = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1159
1187
  "nav",
1160
1188
  {
1161
1189
  "aria-label": "breadcrumb",
@@ -1165,7 +1193,7 @@ var Breadcrumb = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE
1165
1193
  }
1166
1194
  ));
1167
1195
  Breadcrumb.displayName = "Breadcrumb";
1168
- var BreadcrumbList = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1196
+ var BreadcrumbList = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1169
1197
  "ul",
1170
1198
  {
1171
1199
  className: cn(
@@ -1177,7 +1205,7 @@ var BreadcrumbList = React11.forwardRef(({ className, ...props }, ref) => /* @__
1177
1205
  }
1178
1206
  ));
1179
1207
  BreadcrumbList.displayName = "BreadcrumbList";
1180
- var BreadcrumbItem = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1208
+ var BreadcrumbItem = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1181
1209
  "li",
1182
1210
  {
1183
1211
  className: cn("inline-flex items-center gap-1.5", className),
@@ -1186,14 +1214,14 @@ var BreadcrumbItem = React11.forwardRef(({ className, ...props }, ref) => /* @__
1186
1214
  }
1187
1215
  ));
1188
1216
  BreadcrumbItem.displayName = "BreadcrumbItem";
1189
- var BreadcrumbLink = React11.forwardRef(
1217
+ var BreadcrumbLink = React12.forwardRef(
1190
1218
  ({ asChild = false, className, ...props }, ref) => {
1191
- const Comp = asChild ? import_react_slot2.Slot : "a";
1192
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Comp, { className: cn("transition-colors", className), ref, ...props });
1219
+ const Comp = asChild ? import_react_slot3.Slot : "a";
1220
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Comp, { className: cn("transition-colors", className), ref, ...props });
1193
1221
  }
1194
1222
  );
1195
1223
  BreadcrumbLink.displayName = "BreadcrumbLink";
1196
- var BreadcrumbPage = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1224
+ var BreadcrumbPage = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1197
1225
  "span",
1198
1226
  {
1199
1227
  "aria-current": "page",
@@ -1209,21 +1237,21 @@ var BreadcrumbSeparator = ({
1209
1237
  children,
1210
1238
  className,
1211
1239
  ...props
1212
- }) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1240
+ }) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1213
1241
  "li",
1214
1242
  {
1215
1243
  "aria-hidden": "true",
1216
1244
  className: cn("[&_svg]:size-3.5", className),
1217
1245
  role: "presentation",
1218
1246
  ...props,
1219
- children: children ?? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_lucide_react4.ChevronRight, {})
1247
+ children: children ?? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_lucide_react4.ChevronRight, {})
1220
1248
  }
1221
1249
  );
1222
1250
  BreadcrumbSeparator.displayName = "BreadcrumbSeparator";
1223
1251
  var BreadcrumbEllipsis = ({
1224
1252
  className,
1225
1253
  ...props
1226
- }) => /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
1254
+ }) => /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
1227
1255
  "span",
1228
1256
  {
1229
1257
  "aria-hidden": "true",
@@ -1231,18 +1259,18 @@ var BreadcrumbEllipsis = ({
1231
1259
  role: "presentation",
1232
1260
  ...props,
1233
1261
  children: [
1234
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_lucide_react4.MoreHorizontal, { className: "size-3.5" }),
1235
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "sr-only", children: "More" })
1262
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_lucide_react4.MoreHorizontal, { className: "size-3.5" }),
1263
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "sr-only", children: "More" })
1236
1264
  ]
1237
1265
  }
1238
1266
  );
1239
1267
  BreadcrumbEllipsis.displayName = "BreadcrumbEllipsis";
1240
1268
 
1241
1269
  // src/components/AdsBreadcrumb/index.tsx
1242
- var import_jsx_runtime13 = require("react/jsx-runtime");
1243
- var AdsBreadcrumb = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Breadcrumb, { className: cn("w-full", className), ref, ...props }));
1270
+ var import_jsx_runtime14 = require("react/jsx-runtime");
1271
+ var AdsBreadcrumb = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Breadcrumb, { className: cn("w-full", className), ref, ...props }));
1244
1272
  AdsBreadcrumb.displayName = "AdsBreadcrumb";
1245
- var AdsBreadcrumbList = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1273
+ var AdsBreadcrumbList = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1246
1274
  BreadcrumbList,
1247
1275
  {
1248
1276
  className: cn(
@@ -1254,7 +1282,7 @@ var AdsBreadcrumbList = React12.forwardRef(({ className, ...props }, ref) => /*
1254
1282
  }
1255
1283
  ));
1256
1284
  AdsBreadcrumbList.displayName = "AdsBreadcrumbList";
1257
- var AdsBreadcrumbItem = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1285
+ var AdsBreadcrumbItem = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1258
1286
  BreadcrumbItem,
1259
1287
  {
1260
1288
  className: cn("inline-flex items-center gap-1.5", className),
@@ -1263,7 +1291,7 @@ var AdsBreadcrumbItem = React12.forwardRef(({ className, ...props }, ref) => /*
1263
1291
  }
1264
1292
  ));
1265
1293
  AdsBreadcrumbItem.displayName = "AdsBreadcrumbItem";
1266
- var AdsBreadcrumbLink = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1294
+ var AdsBreadcrumbLink = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1267
1295
  BreadcrumbLink,
1268
1296
  {
1269
1297
  className: cn(
@@ -1275,7 +1303,7 @@ var AdsBreadcrumbLink = React12.forwardRef(({ className, ...props }, ref) => /*
1275
1303
  }
1276
1304
  ));
1277
1305
  AdsBreadcrumbLink.displayName = "AdsBreadcrumbLink";
1278
- var AdsBreadcrumbPage = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1306
+ var AdsBreadcrumbPage = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1279
1307
  BreadcrumbPage,
1280
1308
  {
1281
1309
  className: cn("text-sm font-normal leading-5 text-foreground", className),
@@ -1285,15 +1313,15 @@ var AdsBreadcrumbPage = React12.forwardRef(({ className, ...props }, ref) => /*
1285
1313
  ));
1286
1314
  AdsBreadcrumbPage.displayName = "AdsBreadcrumbPage";
1287
1315
  var separatorIcons = {
1288
- chevron: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_lucide_react5.ChevronRight, { className: "size-3.5" }),
1289
- slash: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_lucide_react5.Slash, { className: "size-3.5" })
1316
+ chevron: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_lucide_react5.ChevronRight, { className: "size-3.5" }),
1317
+ slash: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_lucide_react5.Slash, { className: "size-3.5" })
1290
1318
  };
1291
1319
  var AdsBreadcrumbSeparator = ({
1292
1320
  children,
1293
1321
  className,
1294
1322
  icon = "chevron",
1295
1323
  ...props
1296
- }) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1324
+ }) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1297
1325
  BreadcrumbSeparator,
1298
1326
  {
1299
1327
  className: cn("text-muted-foreground [&_svg]:size-3.5", className),
@@ -1306,25 +1334,25 @@ var AdsBreadcrumbEllipsis = ({
1306
1334
  className,
1307
1335
  children,
1308
1336
  ...props
1309
- }) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1337
+ }) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1310
1338
  BreadcrumbEllipsis,
1311
1339
  {
1312
1340
  className: cn("size-3.5 text-muted-foreground", className),
1313
1341
  ...props,
1314
- children: children ?? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_lucide_react5.MoreHorizontal, { className: "size-3.5" })
1342
+ children: children ?? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_lucide_react5.MoreHorizontal, { className: "size-3.5" })
1315
1343
  }
1316
1344
  );
1317
1345
  AdsBreadcrumbEllipsis.displayName = "AdsBreadcrumbEllipsis";
1318
1346
 
1319
1347
  // src/components/AdsCheckbox/index.tsx
1320
- var React17 = __toESM(require("react"), 1);
1348
+ var React18 = __toESM(require("react"), 1);
1321
1349
 
1322
1350
  // src/primitives/checkbox.tsx
1323
- var React13 = __toESM(require("react"), 1);
1351
+ var React14 = __toESM(require("react"), 1);
1324
1352
  var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"), 1);
1325
1353
  var import_lucide_react6 = require("lucide-react");
1326
- var import_jsx_runtime14 = require("react/jsx-runtime");
1327
- var Checkbox = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1354
+ var import_jsx_runtime15 = require("react/jsx-runtime");
1355
+ var Checkbox = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1328
1356
  CheckboxPrimitive.Root,
1329
1357
  {
1330
1358
  ref,
@@ -1333,11 +1361,11 @@ var Checkbox = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__
1333
1361
  className
1334
1362
  ),
1335
1363
  ...props,
1336
- children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1364
+ children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1337
1365
  CheckboxPrimitive.Indicator,
1338
1366
  {
1339
1367
  className: cn("grid place-content-center text-current"),
1340
- children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_lucide_react6.Check, { className: "h-4 w-4" })
1368
+ children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_lucide_react6.Check, { className: "h-4 w-4" })
1341
1369
  }
1342
1370
  )
1343
1371
  }
@@ -1345,21 +1373,21 @@ var Checkbox = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__
1345
1373
  Checkbox.displayName = CheckboxPrimitive.Root.displayName;
1346
1374
 
1347
1375
  // src/components/AdsField/index.tsx
1348
- var React16 = __toESM(require("react"), 1);
1376
+ var React17 = __toESM(require("react"), 1);
1349
1377
 
1350
1378
  // src/primitives/field.tsx
1351
1379
  var import_react = require("react");
1352
1380
  var import_class_variance_authority7 = require("class-variance-authority");
1353
1381
 
1354
1382
  // src/primitives/label.tsx
1355
- var React14 = __toESM(require("react"), 1);
1383
+ var React15 = __toESM(require("react"), 1);
1356
1384
  var LabelPrimitive = __toESM(require("@radix-ui/react-label"), 1);
1357
1385
  var import_class_variance_authority6 = require("class-variance-authority");
1358
- var import_jsx_runtime15 = require("react/jsx-runtime");
1386
+ var import_jsx_runtime16 = require("react/jsx-runtime");
1359
1387
  var labelVariants = (0, import_class_variance_authority6.cva)(
1360
1388
  "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
1361
1389
  );
1362
- var Label = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1390
+ var Label = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1363
1391
  LabelPrimitive.Root,
1364
1392
  {
1365
1393
  ref,
@@ -1370,11 +1398,11 @@ var Label = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
1370
1398
  Label.displayName = LabelPrimitive.Root.displayName;
1371
1399
 
1372
1400
  // src/primitives/separator.tsx
1373
- var React15 = __toESM(require("react"), 1);
1401
+ var React16 = __toESM(require("react"), 1);
1374
1402
  var SeparatorPrimitive = __toESM(require("@radix-ui/react-separator"), 1);
1375
- var import_jsx_runtime16 = require("react/jsx-runtime");
1376
- var Separator = React15.forwardRef(
1377
- ({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1403
+ var import_jsx_runtime17 = require("react/jsx-runtime");
1404
+ var Separator = React16.forwardRef(
1405
+ ({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1378
1406
  SeparatorPrimitive.Root,
1379
1407
  {
1380
1408
  ref,
@@ -1392,9 +1420,9 @@ var Separator = React15.forwardRef(
1392
1420
  Separator.displayName = SeparatorPrimitive.Root.displayName;
1393
1421
 
1394
1422
  // src/primitives/field.tsx
1395
- var import_jsx_runtime17 = require("react/jsx-runtime");
1423
+ var import_jsx_runtime18 = require("react/jsx-runtime");
1396
1424
  function FieldSet({ className, ...props }) {
1397
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1425
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1398
1426
  "fieldset",
1399
1427
  {
1400
1428
  "data-slot": "field-set",
@@ -1412,7 +1440,7 @@ function FieldLegend({
1412
1440
  variant = "legend",
1413
1441
  ...props
1414
1442
  }) {
1415
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1443
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1416
1444
  "legend",
1417
1445
  {
1418
1446
  "data-slot": "field-legend",
@@ -1428,7 +1456,7 @@ function FieldLegend({
1428
1456
  );
1429
1457
  }
1430
1458
  function FieldGroup({ className, ...props }) {
1431
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1459
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1432
1460
  "div",
1433
1461
  {
1434
1462
  "data-slot": "field-group",
@@ -1468,7 +1496,7 @@ function Field({
1468
1496
  orientation = "vertical",
1469
1497
  ...props
1470
1498
  }) {
1471
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1499
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1472
1500
  "div",
1473
1501
  {
1474
1502
  role: "group",
@@ -1483,7 +1511,7 @@ function FieldLabel({
1483
1511
  className,
1484
1512
  ...props
1485
1513
  }) {
1486
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1514
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1487
1515
  Label,
1488
1516
  {
1489
1517
  "data-slot": "field-label",
@@ -1498,7 +1526,7 @@ function FieldLabel({
1498
1526
  );
1499
1527
  }
1500
1528
  function FieldTitle({ className, ...props }) {
1501
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1529
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1502
1530
  "div",
1503
1531
  {
1504
1532
  "data-slot": "field-label",
@@ -1511,7 +1539,7 @@ function FieldTitle({ className, ...props }) {
1511
1539
  );
1512
1540
  }
1513
1541
  function FieldDescription({ className, ...props }) {
1514
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1542
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1515
1543
  "p",
1516
1544
  {
1517
1545
  "data-slot": "field-description",
@@ -1530,7 +1558,7 @@ function FieldSeparator({
1530
1558
  className,
1531
1559
  ...props
1532
1560
  }) {
1533
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
1561
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
1534
1562
  "div",
1535
1563
  {
1536
1564
  "data-slot": "field-separator",
@@ -1541,8 +1569,8 @@ function FieldSeparator({
1541
1569
  ),
1542
1570
  ...props,
1543
1571
  children: [
1544
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Separator, { className: "absolute inset-0 top-1/2" }),
1545
- children && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1572
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Separator, { className: "absolute inset-0 top-1/2" }),
1573
+ children && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1546
1574
  "span",
1547
1575
  {
1548
1576
  className: "bg-background text-muted-foreground relative mx-auto block w-fit px-2",
@@ -1570,14 +1598,14 @@ function FieldError({
1570
1598
  if (errors?.length === 1 && errors[0]?.message) {
1571
1599
  return errors[0].message;
1572
1600
  }
1573
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("ul", { className: "ml-4 flex list-disc flex-col gap-1", children: errors.map(
1574
- (error, index) => error?.message && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("li", { children: error.message }, index)
1601
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("ul", { className: "ml-4 flex list-disc flex-col gap-1", children: errors.map(
1602
+ (error, index) => error?.message && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("li", { children: error.message }, index)
1575
1603
  ) });
1576
1604
  }, [children, errors]);
1577
1605
  if (!content) {
1578
1606
  return null;
1579
1607
  }
1580
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1608
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1581
1609
  "div",
1582
1610
  {
1583
1611
  role: "alert",
@@ -1590,14 +1618,14 @@ function FieldError({
1590
1618
  }
1591
1619
 
1592
1620
  // src/components/AdsField/index.tsx
1593
- var import_jsx_runtime18 = require("react/jsx-runtime");
1621
+ var import_jsx_runtime19 = require("react/jsx-runtime");
1594
1622
  function useAdsFieldDescription({
1595
1623
  describedBy,
1596
1624
  errorText,
1597
1625
  helperText,
1598
1626
  id
1599
1627
  }) {
1600
- const generatedId = React16.useId();
1628
+ const generatedId = React17.useId();
1601
1629
  const inputId = id ?? generatedId;
1602
1630
  const helperId = helperText ? `${inputId}-helper` : void 0;
1603
1631
  const errorId = errorText ? `${inputId}-error` : void 0;
@@ -1609,7 +1637,7 @@ function useAdsFieldDescription({
1609
1637
  inputId
1610
1638
  };
1611
1639
  }
1612
- var AdsField = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1640
+ var AdsField = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1613
1641
  FieldGroup,
1614
1642
  {
1615
1643
  className: cn("w-full gap-7", className),
@@ -1618,14 +1646,14 @@ var AdsField = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__
1618
1646
  }
1619
1647
  ));
1620
1648
  AdsField.displayName = "AdsField";
1621
- var AdsFieldHeader = React16.forwardRef(({ className, description, title, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
1649
+ var AdsFieldHeader = React17.forwardRef(({ className, description, title, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
1622
1650
  "div",
1623
1651
  {
1624
1652
  className: cn("flex w-full flex-col gap-3", className),
1625
1653
  ref,
1626
1654
  ...props,
1627
1655
  children: [
1628
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1656
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1629
1657
  FieldTitle,
1630
1658
  {
1631
1659
  className: cn(
@@ -1635,7 +1663,7 @@ var AdsFieldHeader = React16.forwardRef(({ className, description, title, ...pro
1635
1663
  children: title
1636
1664
  }
1637
1665
  ),
1638
- description ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1666
+ description ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1639
1667
  FieldDescription,
1640
1668
  {
1641
1669
  className: cn("w-full text-sm leading-5", adsTextColorClassName.muted),
@@ -1646,7 +1674,7 @@ var AdsFieldHeader = React16.forwardRef(({ className, description, title, ...pro
1646
1674
  }
1647
1675
  ));
1648
1676
  AdsFieldHeader.displayName = "AdsFieldHeader";
1649
- var AdsFieldItem = React16.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1677
+ var AdsFieldItem = React17.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1650
1678
  Field,
1651
1679
  {
1652
1680
  className: cn("w-full gap-3", className),
@@ -1656,7 +1684,7 @@ var AdsFieldItem = React16.forwardRef(({ className, orientation = "vertical", ..
1656
1684
  }
1657
1685
  ));
1658
1686
  AdsFieldItem.displayName = "AdsFieldItem";
1659
- var AdsFieldLabel = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1687
+ var AdsFieldLabel = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1660
1688
  FieldLabel,
1661
1689
  {
1662
1690
  className: cn(
@@ -1669,7 +1697,7 @@ var AdsFieldLabel = React16.forwardRef(({ className, ...props }, ref) => /* @__P
1669
1697
  }
1670
1698
  ));
1671
1699
  AdsFieldLabel.displayName = "AdsFieldLabel";
1672
- var AdsFieldLegend = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1700
+ var AdsFieldLegend = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1673
1701
  FieldLegend,
1674
1702
  {
1675
1703
  className: cn(
@@ -1682,7 +1710,7 @@ var AdsFieldLegend = React16.forwardRef(({ className, ...props }, ref) => /* @__
1682
1710
  }
1683
1711
  ));
1684
1712
  AdsFieldLegend.displayName = "AdsFieldLegend";
1685
- var AdsFieldDescription = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1713
+ var AdsFieldDescription = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1686
1714
  FieldDescription,
1687
1715
  {
1688
1716
  className: cn("text-sm leading-5", adsTextColorClassName.muted, className),
@@ -1691,7 +1719,7 @@ var AdsFieldDescription = React16.forwardRef(({ className, ...props }, ref) => /
1691
1719
  }
1692
1720
  ));
1693
1721
  AdsFieldDescription.displayName = "AdsFieldDescription";
1694
- var AdsFieldError = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1722
+ var AdsFieldError = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1695
1723
  FieldError,
1696
1724
  {
1697
1725
  className: cn("text-sm leading-5 text-destructive", className),
@@ -1700,7 +1728,7 @@ var AdsFieldError = React16.forwardRef(({ className, ...props }, ref) => /* @__P
1700
1728
  }
1701
1729
  ));
1702
1730
  AdsFieldError.displayName = "AdsFieldError";
1703
- var AdsFieldSeparator = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1731
+ var AdsFieldSeparator = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1704
1732
  FieldSeparator,
1705
1733
  {
1706
1734
  className: cn("py-2", adsTextColorClassName.muted, className),
@@ -1709,7 +1737,7 @@ var AdsFieldSeparator = React16.forwardRef(({ className, ...props }, ref) => /*
1709
1737
  }
1710
1738
  ));
1711
1739
  AdsFieldSeparator.displayName = "AdsFieldSeparator";
1712
- var AdsFieldGroup = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1740
+ var AdsFieldGroup = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1713
1741
  FieldGroup,
1714
1742
  {
1715
1743
  className: cn("w-full gap-6", className),
@@ -1718,7 +1746,7 @@ var AdsFieldGroup = React16.forwardRef(({ className, ...props }, ref) => /* @__P
1718
1746
  }
1719
1747
  ));
1720
1748
  AdsFieldGroup.displayName = "AdsFieldGroup";
1721
- var AdsFieldSet = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1749
+ var AdsFieldSet = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1722
1750
  FieldSet,
1723
1751
  {
1724
1752
  className: cn("w-full gap-6", className),
@@ -1727,7 +1755,7 @@ var AdsFieldSet = React16.forwardRef(({ className, ...props }, ref) => /* @__PUR
1727
1755
  }
1728
1756
  ));
1729
1757
  AdsFieldSet.displayName = "AdsFieldSet";
1730
- var AdsFieldCheckboxRow = React16.forwardRef(({ className, control, description, label, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
1758
+ var AdsFieldCheckboxRow = React17.forwardRef(({ className, control, description, label, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
1731
1759
  "div",
1732
1760
  {
1733
1761
  className: cn(
@@ -1738,16 +1766,16 @@ var AdsFieldCheckboxRow = React16.forwardRef(({ className, control, description,
1738
1766
  ref,
1739
1767
  ...props,
1740
1768
  children: [
1741
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "shrink-0 pt-px", children: control }),
1742
- /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-1.5", children: [
1743
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: cn("text-sm leading-5", adsTextColorClassName.default), children: label }),
1744
- description ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(AdsFieldDescription, { className: "text-sm leading-5", children: description }) : null
1769
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "shrink-0 pt-px", children: control }),
1770
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-1.5", children: [
1771
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: cn("text-sm leading-5", adsTextColorClassName.default), children: label }),
1772
+ description ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(AdsFieldDescription, { className: "text-sm leading-5", children: description }) : null
1745
1773
  ] })
1746
1774
  ]
1747
1775
  }
1748
1776
  ));
1749
1777
  AdsFieldCheckboxRow.displayName = "AdsFieldCheckboxRow";
1750
- var AdsFieldChoiceCard = React16.forwardRef(({ checked, className, control, description, title, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
1778
+ var AdsFieldChoiceCard = React17.forwardRef(({ checked, className, control, description, title, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
1751
1779
  "label",
1752
1780
  {
1753
1781
  className: cn(
@@ -1759,9 +1787,9 @@ var AdsFieldChoiceCard = React16.forwardRef(({ checked, className, control, desc
1759
1787
  ref,
1760
1788
  ...props,
1761
1789
  children: [
1762
- control ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "shrink-0 pt-px", children: control }) : null,
1763
- /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-1.5", children: [
1764
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1790
+ control ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "shrink-0 pt-px", children: control }) : null,
1791
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-1.5", children: [
1792
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1765
1793
  "div",
1766
1794
  {
1767
1795
  className: cn(
@@ -1771,13 +1799,13 @@ var AdsFieldChoiceCard = React16.forwardRef(({ checked, className, control, desc
1771
1799
  children: title
1772
1800
  }
1773
1801
  ),
1774
- description ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(AdsFieldDescription, { className: "text-sm leading-5", children: description }) : null
1802
+ description ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(AdsFieldDescription, { className: "text-sm leading-5", children: description }) : null
1775
1803
  ] })
1776
1804
  ]
1777
1805
  }
1778
1806
  ));
1779
1807
  AdsFieldChoiceCard.displayName = "AdsFieldChoiceCard";
1780
- var AdsFieldActions = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1808
+ var AdsFieldActions = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1781
1809
  "div",
1782
1810
  {
1783
1811
  className: cn("flex w-full flex-wrap items-center gap-3", className),
@@ -1788,15 +1816,15 @@ var AdsFieldActions = React16.forwardRef(({ className, ...props }, ref) => /* @_
1788
1816
  AdsFieldActions.displayName = "AdsFieldActions";
1789
1817
 
1790
1818
  // src/components/AdsCheckbox/index.tsx
1791
- var import_jsx_runtime19 = require("react/jsx-runtime");
1819
+ var import_jsx_runtime20 = require("react/jsx-runtime");
1792
1820
  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";
1793
- var Checkbox2 = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Checkbox, { className: cn(checkboxBaseClassName, className), ref, ...props }));
1821
+ var Checkbox2 = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Checkbox, { className: cn(checkboxBaseClassName, className), ref, ...props }));
1794
1822
  Checkbox2.displayName = "Checkbox";
1795
- var AdsCheckbox = React17.forwardRef(({ checkboxClassName, className, description, id, label, wrapperClassName, ...props }, ref) => {
1796
- const generatedId = React17.useId();
1823
+ var AdsCheckbox = React18.forwardRef(({ checkboxClassName, className, description, id, label, wrapperClassName, ...props }, ref) => {
1824
+ const generatedId = React18.useId();
1797
1825
  const inputId = id ?? generatedId;
1798
1826
  if (!label) {
1799
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1827
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1800
1828
  Checkbox2,
1801
1829
  {
1802
1830
  className: cn(className, checkboxClassName),
@@ -1806,10 +1834,10 @@ var AdsCheckbox = React17.forwardRef(({ checkboxClassName, className, descriptio
1806
1834
  }
1807
1835
  );
1808
1836
  }
1809
- 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)(
1837
+ 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)(
1810
1838
  AdsFieldCheckboxRow,
1811
1839
  {
1812
- control: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1840
+ control: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1813
1841
  Checkbox2,
1814
1842
  {
1815
1843
  className: cn(className, checkboxClassName),
@@ -1826,16 +1854,16 @@ var AdsCheckbox = React17.forwardRef(({ checkboxClassName, className, descriptio
1826
1854
  AdsCheckbox.displayName = "AdsCheckbox";
1827
1855
 
1828
1856
  // src/components/AdsCalendar/index.tsx
1829
- var React24 = __toESM(require("react"), 1);
1857
+ var React25 = __toESM(require("react"), 1);
1830
1858
  var import_date_fns = require("date-fns");
1831
1859
  var import_lucide_react8 = require("lucide-react");
1832
1860
 
1833
1861
  // src/primitives/input.tsx
1834
- var React18 = __toESM(require("react"), 1);
1835
- var import_jsx_runtime20 = require("react/jsx-runtime");
1836
- var Input = React18.forwardRef(
1862
+ var React19 = __toESM(require("react"), 1);
1863
+ var import_jsx_runtime21 = require("react/jsx-runtime");
1864
+ var Input = React19.forwardRef(
1837
1865
  ({ className, type, ...props }, ref) => {
1838
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1866
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1839
1867
  "input",
1840
1868
  {
1841
1869
  type,
@@ -1852,20 +1880,20 @@ var Input = React18.forwardRef(
1852
1880
  Input.displayName = "Input";
1853
1881
 
1854
1882
  // src/components/AdsPopover/index.tsx
1855
- var React21 = __toESM(require("react"), 1);
1883
+ var React22 = __toESM(require("react"), 1);
1856
1884
 
1857
1885
  // src/primitives/popover.tsx
1858
- var React20 = __toESM(require("react"), 1);
1886
+ var React21 = __toESM(require("react"), 1);
1859
1887
  var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"), 1);
1860
1888
 
1861
1889
  // src/lib/nestedDismissableLayer.tsx
1862
- var React19 = __toESM(require("react"), 1);
1863
- var import_jsx_runtime21 = require("react/jsx-runtime");
1864
- var NestedDismissableLayerContext = React19.createContext(null);
1890
+ var React20 = __toESM(require("react"), 1);
1891
+ var import_jsx_runtime22 = require("react/jsx-runtime");
1892
+ var NestedDismissableLayerContext = React20.createContext(null);
1865
1893
  function useNestedDismissableLayerCoordinator() {
1866
- const activeLayersRef = React19.useRef(/* @__PURE__ */ new Map());
1867
- const pointerInteractionHadNestedLayerRef = React19.useRef(false);
1868
- const registerNestedLayer = React19.useCallback(
1894
+ const activeLayersRef = React20.useRef(/* @__PURE__ */ new Map());
1895
+ const pointerInteractionHadNestedLayerRef = React20.useRef(false);
1896
+ const registerNestedLayer = React20.useCallback(
1869
1897
  (id, dismiss) => {
1870
1898
  const activeLayers = activeLayersRef.current;
1871
1899
  activeLayers.delete(id);
@@ -1878,19 +1906,19 @@ function useNestedDismissableLayerCoordinator() {
1878
1906
  },
1879
1907
  []
1880
1908
  );
1881
- const hasActiveNestedLayer = React19.useCallback(
1909
+ const hasActiveNestedLayer = React20.useCallback(
1882
1910
  () => activeLayersRef.current.size > 0,
1883
1911
  []
1884
1912
  );
1885
- const hadActiveNestedLayerAtPointerDown = React19.useCallback(
1913
+ const hadActiveNestedLayerAtPointerDown = React20.useCallback(
1886
1914
  () => pointerInteractionHadNestedLayerRef.current,
1887
1915
  []
1888
1916
  );
1889
- const dismissTopNestedLayer = React19.useCallback(() => {
1917
+ const dismissTopNestedLayer = React20.useCallback(() => {
1890
1918
  const activeLayers = [...activeLayersRef.current.values()];
1891
1919
  activeLayers.at(-1)?.();
1892
1920
  }, []);
1893
- React19.useEffect(() => {
1921
+ React20.useEffect(() => {
1894
1922
  const ownerDocument = globalThis.document;
1895
1923
  if (!ownerDocument) return;
1896
1924
  const handlePointerDown = () => {
@@ -1911,7 +1939,7 @@ function useNestedDismissableLayerCoordinator() {
1911
1939
  ownerDocument.removeEventListener("keydown", handleKeyDown, true);
1912
1940
  };
1913
1941
  }, []);
1914
- return React19.useMemo(
1942
+ return React20.useMemo(
1915
1943
  () => ({
1916
1944
  dismissTopNestedLayer,
1917
1945
  hasActiveNestedLayer,
@@ -1932,8 +1960,8 @@ function useNestedDismissableLayerParent({
1932
1960
  onPointerDownOutside
1933
1961
  } = {}) {
1934
1962
  const coordinator = useNestedDismissableLayerCoordinator();
1935
- const shieldNextFocusOutsideRef = React19.useRef(false);
1936
- const handlePointerDownOutside = React19.useCallback(
1963
+ const shieldNextFocusOutsideRef = React20.useRef(false);
1964
+ const handlePointerDownOutside = React20.useCallback(
1937
1965
  (event) => {
1938
1966
  onPointerDownOutside?.(event);
1939
1967
  if (event.defaultPrevented) return;
@@ -1951,7 +1979,7 @@ function useNestedDismissableLayerParent({
1951
1979
  },
1952
1980
  [coordinator, onPointerDownOutside]
1953
1981
  );
1954
- const handleFocusOutside = React19.useCallback(
1982
+ const handleFocusOutside = React20.useCallback(
1955
1983
  (event) => {
1956
1984
  onFocusOutside?.(event);
1957
1985
  if (event.defaultPrevented) return;
@@ -1967,7 +1995,7 @@ function useNestedDismissableLayerParent({
1967
1995
  },
1968
1996
  [coordinator, onFocusOutside]
1969
1997
  );
1970
- const handleEscapeKeyDown = React19.useCallback(
1998
+ const handleEscapeKeyDown = React20.useCallback(
1971
1999
  (event) => {
1972
2000
  onEscapeKeyDown?.(event);
1973
2001
  if (event.defaultPrevented || !coordinator.hasActiveNestedLayer()) {
@@ -1978,7 +2006,7 @@ function useNestedDismissableLayerParent({
1978
2006
  },
1979
2007
  [coordinator, onEscapeKeyDown]
1980
2008
  );
1981
- return React19.useMemo(
2009
+ return React20.useMemo(
1982
2010
  () => ({
1983
2011
  coordinator,
1984
2012
  onEscapeKeyDown: handleEscapeKeyDown,
@@ -1997,22 +2025,22 @@ function NestedDismissableLayerProvider({
1997
2025
  children,
1998
2026
  coordinator
1999
2027
  }) {
2000
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(NestedDismissableLayerContext.Provider, { value: coordinator, children });
2028
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(NestedDismissableLayerContext.Provider, { value: coordinator, children });
2001
2029
  }
2002
2030
  function useNestedDismissableLayer(active, dismiss) {
2003
- const coordinator = React19.useContext(NestedDismissableLayerContext);
2004
- const idRef = React19.useRef(/* @__PURE__ */ Symbol("ads-nested-dismissable-layer"));
2005
- React19.useEffect(() => {
2031
+ const coordinator = React20.useContext(NestedDismissableLayerContext);
2032
+ const idRef = React20.useRef(/* @__PURE__ */ Symbol("ads-nested-dismissable-layer"));
2033
+ React20.useEffect(() => {
2006
2034
  if (!active || !coordinator) return;
2007
2035
  return coordinator.registerNestedLayer(idRef.current, dismiss);
2008
2036
  }, [active, coordinator, dismiss]);
2009
2037
  }
2010
2038
 
2011
2039
  // src/primitives/popover.tsx
2012
- var import_jsx_runtime22 = require("react/jsx-runtime");
2040
+ var import_jsx_runtime23 = require("react/jsx-runtime");
2013
2041
  var Popover = PopoverPrimitive.Root;
2014
2042
  var PopoverTrigger = PopoverPrimitive.Trigger;
2015
- var PopoverContentImpl = React20.forwardRef(
2043
+ var PopoverContentImpl = React21.forwardRef(
2016
2044
  ({
2017
2045
  className,
2018
2046
  align = "center",
@@ -2027,7 +2055,7 @@ var PopoverContentImpl = React20.forwardRef(
2027
2055
  onFocusOutside,
2028
2056
  onPointerDownOutside
2029
2057
  });
2030
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(NestedDismissableLayerProvider, { coordinator: parentLayer.coordinator, children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2058
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(NestedDismissableLayerProvider, { coordinator: parentLayer.coordinator, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2031
2059
  PopoverPrimitive.Content,
2032
2060
  {
2033
2061
  ref,
@@ -2046,16 +2074,16 @@ var PopoverContentImpl = React20.forwardRef(
2046
2074
  }
2047
2075
  );
2048
2076
  PopoverContentImpl.displayName = "PopoverContentImpl";
2049
- var PopoverContent = React20.forwardRef((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(PopoverPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(PopoverContentImpl, { ...props, ref }) }));
2077
+ var PopoverContent = React21.forwardRef((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(PopoverPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(PopoverContentImpl, { ...props, ref }) }));
2050
2078
  PopoverContent.displayName = PopoverPrimitive.Content.displayName;
2051
2079
 
2052
2080
  // src/components/AdsPopover/index.tsx
2053
- var import_jsx_runtime23 = require("react/jsx-runtime");
2081
+ var import_jsx_runtime24 = require("react/jsx-runtime");
2054
2082
  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]";
2055
2083
  var AdsPopover = Popover;
2056
2084
  var AdsPopoverTrigger = PopoverTrigger;
2057
- var AdsPopoverContent = React21.forwardRef(
2058
- ({ align = "center", className, inset = false, sideOffset = 8, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2085
+ var AdsPopoverContent = React22.forwardRef(
2086
+ ({ align = "center", className, inset = false, sideOffset = 8, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2059
2087
  PopoverContent,
2060
2088
  {
2061
2089
  align,
@@ -2071,10 +2099,10 @@ var AdsPopoverContent = React21.forwardRef(
2071
2099
  )
2072
2100
  );
2073
2101
  AdsPopoverContent.displayName = "AdsPopoverContent";
2074
- var AdsPopoverHeader = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: cn("flex flex-col gap-sm", className), ref, ...props }));
2102
+ var AdsPopoverHeader = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: cn("flex flex-col gap-sm", className), ref, ...props }));
2075
2103
  AdsPopoverHeader.displayName = "AdsPopoverHeader";
2076
- var AdsPopoverBody = React21.forwardRef(
2077
- ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2104
+ var AdsPopoverBody = React22.forwardRef(
2105
+ ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2078
2106
  "div",
2079
2107
  {
2080
2108
  className: cn("mt-md flex flex-col gap-md", className),
@@ -2084,7 +2112,7 @@ var AdsPopoverBody = React21.forwardRef(
2084
2112
  )
2085
2113
  );
2086
2114
  AdsPopoverBody.displayName = "AdsPopoverBody";
2087
- var AdsPopoverTitle = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2115
+ var AdsPopoverTitle = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2088
2116
  "h4",
2089
2117
  {
2090
2118
  className: cn(
@@ -2097,7 +2125,7 @@ var AdsPopoverTitle = React21.forwardRef(({ className, ...props }, ref) => /* @_
2097
2125
  }
2098
2126
  ));
2099
2127
  AdsPopoverTitle.displayName = "AdsPopoverTitle";
2100
- var AdsPopoverDescription = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2128
+ var AdsPopoverDescription = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2101
2129
  "p",
2102
2130
  {
2103
2131
  className: cn("text-sm leading-5", adsTextColorClassName.muted, className),
@@ -2108,17 +2136,17 @@ var AdsPopoverDescription = React21.forwardRef(({ className, ...props }, ref) =>
2108
2136
  AdsPopoverDescription.displayName = "AdsPopoverDescription";
2109
2137
 
2110
2138
  // src/primitives/calendar.tsx
2111
- var React23 = __toESM(require("react"), 1);
2139
+ var React24 = __toESM(require("react"), 1);
2112
2140
  var import_react2 = require("@daypicker/react");
2113
2141
  var import_hijri = require("@daypicker/hijri");
2114
2142
  var import_persian = require("@daypicker/persian");
2115
2143
 
2116
2144
  // src/primitives/select.tsx
2117
- var React22 = __toESM(require("react"), 1);
2145
+ var React23 = __toESM(require("react"), 1);
2118
2146
  var DismissableLayerPrimitive = __toESM(require("@radix-ui/react-dismissable-layer"), 1);
2119
2147
  var SelectPrimitive = __toESM(require("@radix-ui/react-select"), 1);
2120
2148
  var import_lucide_react7 = require("lucide-react");
2121
- var import_jsx_runtime24 = require("react/jsx-runtime");
2149
+ var import_jsx_runtime25 = require("react/jsx-runtime");
2122
2150
  function Select({
2123
2151
  defaultOpen,
2124
2152
  onOpenChange,
@@ -2126,11 +2154,11 @@ function Select({
2126
2154
  ...props
2127
2155
  }) {
2128
2156
  const isControlled = openProp !== void 0;
2129
- const [uncontrolledOpen, setUncontrolledOpen] = React22.useState(
2157
+ const [uncontrolledOpen, setUncontrolledOpen] = React23.useState(
2130
2158
  defaultOpen ?? false
2131
2159
  );
2132
2160
  const resolvedOpen = isControlled ? openProp : uncontrolledOpen;
2133
- const handleOpenChange = React22.useCallback(
2161
+ const handleOpenChange = React23.useCallback(
2134
2162
  (nextOpen) => {
2135
2163
  if (!isControlled) {
2136
2164
  setUncontrolledOpen(nextOpen);
@@ -2139,11 +2167,11 @@ function Select({
2139
2167
  },
2140
2168
  [isControlled, onOpenChange]
2141
2169
  );
2142
- const handleNestedDismiss = React22.useCallback(() => {
2170
+ const handleNestedDismiss = React23.useCallback(() => {
2143
2171
  handleOpenChange(false);
2144
2172
  }, [handleOpenChange]);
2145
2173
  useNestedDismissableLayer(resolvedOpen, handleNestedDismiss);
2146
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2174
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2147
2175
  SelectPrimitive.Root,
2148
2176
  {
2149
2177
  ...props,
@@ -2156,7 +2184,7 @@ function Select({
2156
2184
  Select.displayName = SelectPrimitive.Root.displayName;
2157
2185
  var SelectGroup = SelectPrimitive.Group;
2158
2186
  var SelectValue = SelectPrimitive.Value;
2159
- var SelectTrigger = React22.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
2187
+ var SelectTrigger = React23.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
2160
2188
  SelectPrimitive.Trigger,
2161
2189
  {
2162
2190
  ref,
@@ -2167,12 +2195,12 @@ var SelectTrigger = React22.forwardRef(({ className, children, ...props }, ref)
2167
2195
  ...props,
2168
2196
  children: [
2169
2197
  children,
2170
- /* @__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" }) })
2198
+ /* @__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" }) })
2171
2199
  ]
2172
2200
  }
2173
2201
  ));
2174
2202
  SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
2175
- var SelectScrollUpButton = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2203
+ var SelectScrollUpButton = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2176
2204
  SelectPrimitive.ScrollUpButton,
2177
2205
  {
2178
2206
  ref,
@@ -2181,11 +2209,11 @@ var SelectScrollUpButton = React22.forwardRef(({ className, ...props }, ref) =>
2181
2209
  className
2182
2210
  ),
2183
2211
  ...props,
2184
- children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_lucide_react7.ChevronUp, { className: "h-4 w-4" })
2212
+ children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_lucide_react7.ChevronUp, { className: "h-4 w-4" })
2185
2213
  }
2186
2214
  ));
2187
2215
  SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
2188
- var SelectScrollDownButton = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2216
+ var SelectScrollDownButton = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2189
2217
  SelectPrimitive.ScrollDownButton,
2190
2218
  {
2191
2219
  ref,
@@ -2194,11 +2222,11 @@ var SelectScrollDownButton = React22.forwardRef(({ className, ...props }, ref) =
2194
2222
  className
2195
2223
  ),
2196
2224
  ...props,
2197
- children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_lucide_react7.ChevronDown, { className: "h-4 w-4" })
2225
+ children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_lucide_react7.ChevronDown, { className: "h-4 w-4" })
2198
2226
  }
2199
2227
  ));
2200
2228
  SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
2201
- 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)(
2229
+ 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)(
2202
2230
  SelectPrimitive.Content,
2203
2231
  {
2204
2232
  ref,
@@ -2210,8 +2238,8 @@ var SelectContent = React22.forwardRef(({ className, children, position = "poppe
2210
2238
  position,
2211
2239
  ...props,
2212
2240
  children: [
2213
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(SelectScrollUpButton, {}),
2214
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2241
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(SelectScrollUpButton, {}),
2242
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2215
2243
  SelectPrimitive.Viewport,
2216
2244
  {
2217
2245
  className: cn(
@@ -2221,12 +2249,12 @@ var SelectContent = React22.forwardRef(({ className, children, position = "poppe
2221
2249
  children
2222
2250
  }
2223
2251
  ),
2224
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(SelectScrollDownButton, {})
2252
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(SelectScrollDownButton, {})
2225
2253
  ]
2226
2254
  }
2227
2255
  ) }) }));
2228
2256
  SelectContent.displayName = SelectPrimitive.Content.displayName;
2229
- var SelectLabel = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2257
+ var SelectLabel = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2230
2258
  SelectPrimitive.Label,
2231
2259
  {
2232
2260
  ref,
@@ -2235,7 +2263,7 @@ var SelectLabel = React22.forwardRef(({ className, ...props }, ref) => /* @__PUR
2235
2263
  }
2236
2264
  ));
2237
2265
  SelectLabel.displayName = SelectPrimitive.Label.displayName;
2238
- var SelectItem = React22.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
2266
+ var SelectItem = React23.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
2239
2267
  SelectPrimitive.Item,
2240
2268
  {
2241
2269
  ref,
@@ -2245,13 +2273,13 @@ var SelectItem = React22.forwardRef(({ className, children, ...props }, ref) =>
2245
2273
  ),
2246
2274
  ...props,
2247
2275
  children: [
2248
- /* @__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" }) }) }),
2249
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(SelectPrimitive.ItemText, { children })
2276
+ /* @__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" }) }) }),
2277
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(SelectPrimitive.ItemText, { children })
2250
2278
  ]
2251
2279
  }
2252
2280
  ));
2253
2281
  SelectItem.displayName = SelectPrimitive.Item.displayName;
2254
- var SelectSeparator = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2282
+ var SelectSeparator = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2255
2283
  SelectPrimitive.Separator,
2256
2284
  {
2257
2285
  ref,
@@ -2262,7 +2290,7 @@ var SelectSeparator = React22.forwardRef(({ className, ...props }, ref) => /* @_
2262
2290
  SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
2263
2291
 
2264
2292
  // src/primitives/calendar.tsx
2265
- var import_jsx_runtime25 = require("react/jsx-runtime");
2293
+ var import_jsx_runtime26 = require("react/jsx-runtime");
2266
2294
  var cellSizeClasses = {
2267
2295
  md: {
2268
2296
  cell: "size-8",
@@ -2331,13 +2359,13 @@ function CalendarDropdown({
2331
2359
  }) {
2332
2360
  const { classNames, styles } = (0, import_react2.useDayPicker)();
2333
2361
  const selectedValue = value?.toString();
2334
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2362
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2335
2363
  "span",
2336
2364
  {
2337
2365
  className: classNames[import_react2.UI.DropdownRoot],
2338
2366
  "data-disabled": disabled,
2339
2367
  style: styles?.[import_react2.UI.DropdownRoot],
2340
- children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
2368
+ children: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
2341
2369
  Select,
2342
2370
  {
2343
2371
  disabled,
@@ -2348,7 +2376,7 @@ function CalendarDropdown({
2348
2376
  },
2349
2377
  value: selectedValue,
2350
2378
  children: [
2351
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2379
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2352
2380
  SelectTrigger,
2353
2381
  {
2354
2382
  "aria-label": ariaLabel,
@@ -2358,10 +2386,10 @@ function CalendarDropdown({
2358
2386
  className
2359
2387
  ),
2360
2388
  style,
2361
- children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(SelectValue, {})
2389
+ children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(SelectValue, {})
2362
2390
  }
2363
2391
  ),
2364
- /* @__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)(
2392
+ /* @__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)(
2365
2393
  SelectItem,
2366
2394
  {
2367
2395
  disabled: option.disabled,
@@ -2376,7 +2404,7 @@ function CalendarDropdown({
2376
2404
  }
2377
2405
  );
2378
2406
  }
2379
- var Calendar = React23.forwardRef(
2407
+ var Calendar = React24.forwardRef(
2380
2408
  ({
2381
2409
  captionLayout,
2382
2410
  calendarSystem = "gregorian",
@@ -2388,7 +2416,7 @@ var Calendar = React23.forwardRef(
2388
2416
  showOutsideDays = true,
2389
2417
  ...props
2390
2418
  }, ref) => {
2391
- const mergedClassNames = React23.useMemo(
2419
+ const mergedClassNames = React24.useMemo(
2392
2420
  () => ({
2393
2421
  ...getCalendarClassNames(cellSize, captionLayout?.startsWith("dropdown") ?? false),
2394
2422
  ...classNames
@@ -2409,7 +2437,7 @@ var Calendar = React23.forwardRef(
2409
2437
  showOutsideDays
2410
2438
  };
2411
2439
  if (calendarSystem === "persian") {
2412
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { ref, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2440
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { ref, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2413
2441
  import_persian.DayPicker,
2414
2442
  {
2415
2443
  ...sharedProps,
@@ -2420,7 +2448,7 @@ var Calendar = React23.forwardRef(
2420
2448
  ) });
2421
2449
  }
2422
2450
  if (calendarSystem === "hijri") {
2423
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { ref, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2451
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { ref, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2424
2452
  import_hijri.DayPicker,
2425
2453
  {
2426
2454
  ...sharedProps,
@@ -2430,13 +2458,13 @@ var Calendar = React23.forwardRef(
2430
2458
  }
2431
2459
  ) });
2432
2460
  }
2433
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { ref, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_react2.DayPicker, { ...sharedProps }) });
2461
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { ref, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react2.DayPicker, { ...sharedProps }) });
2434
2462
  }
2435
2463
  );
2436
2464
  Calendar.displayName = "Calendar";
2437
2465
 
2438
2466
  // src/components/AdsCalendar/index.tsx
2439
- var import_jsx_runtime26 = require("react/jsx-runtime");
2467
+ var import_jsx_runtime27 = require("react/jsx-runtime");
2440
2468
  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";
2441
2469
  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)]";
2442
2470
  function useControllableDate({
@@ -2444,12 +2472,12 @@ function useControllableDate({
2444
2472
  onSelect,
2445
2473
  selected
2446
2474
  }) {
2447
- const [internalSelected, setInternalSelected] = React24.useState(
2475
+ const [internalSelected, setInternalSelected] = React25.useState(
2448
2476
  defaultSelected
2449
2477
  );
2450
2478
  const isControlled = selected !== void 0;
2451
2479
  const value = isControlled ? selected : internalSelected;
2452
- const handleSelect = React24.useCallback(
2480
+ const handleSelect = React25.useCallback(
2453
2481
  (nextValue) => {
2454
2482
  if (!isControlled) {
2455
2483
  setInternalSelected(nextValue);
@@ -2466,11 +2494,11 @@ function getDateLabel(value, formatter) {
2466
2494
  }
2467
2495
  return formatter ? formatter(value) : (0, import_date_fns.format)(value, "MMM d, yyyy");
2468
2496
  }
2469
- var AdsCalendar = React24.forwardRef(
2470
- ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Calendar, { className: cn(className), ref, ...props })
2497
+ var AdsCalendar = React25.forwardRef(
2498
+ ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Calendar, { className: cn(className), ref, ...props })
2471
2499
  );
2472
2500
  AdsCalendar.displayName = "AdsCalendar";
2473
- var AdsDatePicker = React24.forwardRef(
2501
+ var AdsDatePicker = React25.forwardRef(
2474
2502
  ({
2475
2503
  className,
2476
2504
  defaultSelected,
@@ -2483,7 +2511,7 @@ var AdsDatePicker = React24.forwardRef(
2483
2511
  triggerClassName,
2484
2512
  ...calendarProps
2485
2513
  }, ref) => {
2486
- const [open, setOpen] = React24.useState(false);
2514
+ const [open, setOpen] = React25.useState(false);
2487
2515
  const [value, handleSelect] = useControllableDate({
2488
2516
  defaultSelected,
2489
2517
  onSelect,
@@ -2491,17 +2519,17 @@ var AdsDatePicker = React24.forwardRef(
2491
2519
  });
2492
2520
  const description = useAdsFieldDescription({ id });
2493
2521
  const labelText = getDateLabel(value, formatDateLabel) ?? placeholder;
2494
- const onCalendarSelect = React24.useCallback(
2522
+ const onCalendarSelect = React25.useCallback(
2495
2523
  (nextValue) => {
2496
2524
  handleSelect(nextValue);
2497
2525
  setOpen(false);
2498
2526
  },
2499
2527
  [handleSelect]
2500
2528
  );
2501
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(AdsFieldItem, { className: cn("gap-3", className), ref, children: [
2502
- label ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(AdsFieldLabel, { htmlFor: description.inputId, children: label }) : null,
2503
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(AdsPopover, { onOpenChange: setOpen, open, children: [
2504
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(AdsPopoverTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
2529
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(AdsFieldItem, { className: cn("gap-3", className), ref, children: [
2530
+ label ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(AdsFieldLabel, { htmlFor: description.inputId, children: label }) : null,
2531
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(AdsPopover, { onOpenChange: setOpen, open, children: [
2532
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(AdsPopoverTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
2505
2533
  Button,
2506
2534
  {
2507
2535
  "aria-label": labelText,
@@ -2514,12 +2542,12 @@ var AdsDatePicker = React24.forwardRef(
2514
2542
  id: description.inputId,
2515
2543
  type: "button",
2516
2544
  children: [
2517
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "truncate", children: labelText }),
2518
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_lucide_react8.ChevronDown, { "aria-hidden": true, className: "size-4 shrink-0 text-icon-muted" })
2545
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "truncate", children: labelText }),
2546
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_lucide_react8.ChevronDown, { "aria-hidden": true, className: "size-4 shrink-0 text-icon-muted" })
2519
2547
  ]
2520
2548
  }
2521
2549
  ) }),
2522
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(AdsPopoverContent, { className: "w-auto p-0", inset: true, sideOffset: 4, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2550
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(AdsPopoverContent, { className: "w-auto p-0", inset: true, sideOffset: 4, children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
2523
2551
  AdsCalendar,
2524
2552
  {
2525
2553
  ...calendarProps,
@@ -2533,18 +2561,18 @@ var AdsDatePicker = React24.forwardRef(
2533
2561
  }
2534
2562
  );
2535
2563
  AdsDatePicker.displayName = "AdsDatePicker";
2536
- var AdsDateTimePicker = React24.forwardRef(
2564
+ var AdsDateTimePicker = React25.forwardRef(
2537
2565
  ({
2538
2566
  className,
2539
2567
  timeLabel = "Time",
2540
2568
  timeValue = "",
2541
2569
  onTimeChange,
2542
2570
  ...props
2543
- }, ref) => /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: cn("flex flex-wrap items-start gap-4", className), ref, children: [
2544
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(AdsDatePicker, { className: "w-[min(100%,135px)]", ...props }),
2545
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(AdsFieldItem, { className: "w-[91px] gap-3", children: [
2546
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(AdsFieldLabel, { children: timeLabel }),
2547
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2571
+ }, ref) => /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: cn("flex flex-wrap items-start gap-4", className), ref, children: [
2572
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(AdsDatePicker, { className: "w-[min(100%,135px)]", ...props }),
2573
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(AdsFieldItem, { className: "w-[91px] gap-3", children: [
2574
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(AdsFieldLabel, { children: timeLabel }),
2575
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
2548
2576
  Input,
2549
2577
  {
2550
2578
  className: timeInputClassName,
@@ -2560,13 +2588,13 @@ var AdsDateTimePicker = React24.forwardRef(
2560
2588
  AdsDateTimePicker.displayName = "AdsDateTimePicker";
2561
2589
 
2562
2590
  // src/components/AdsButtonGroup/index.tsx
2563
- var React25 = __toESM(require("react"), 1);
2564
- var import_react_slot4 = require("@radix-ui/react-slot");
2591
+ var React26 = __toESM(require("react"), 1);
2592
+ var import_react_slot5 = require("@radix-ui/react-slot");
2565
2593
 
2566
2594
  // src/primitives/button-group.tsx
2567
- var import_react_slot3 = require("@radix-ui/react-slot");
2595
+ var import_react_slot4 = require("@radix-ui/react-slot");
2568
2596
  var import_class_variance_authority8 = require("class-variance-authority");
2569
- var import_jsx_runtime27 = require("react/jsx-runtime");
2597
+ var import_jsx_runtime28 = require("react/jsx-runtime");
2570
2598
  var buttonGroupVariants = (0, import_class_variance_authority8.cva)(
2571
2599
  "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",
2572
2600
  {
@@ -2586,7 +2614,7 @@ function ButtonGroupSeparator({
2586
2614
  orientation = "vertical",
2587
2615
  ...props
2588
2616
  }) {
2589
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
2617
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
2590
2618
  Separator,
2591
2619
  {
2592
2620
  "data-slot": "button-group-separator",
@@ -2605,7 +2633,7 @@ function ButtonGroupSeparator({
2605
2633
  }
2606
2634
 
2607
2635
  // src/components/AdsButtonGroup/index.tsx
2608
- var import_jsx_runtime28 = require("react/jsx-runtime");
2636
+ var import_jsx_runtime29 = require("react/jsx-runtime");
2609
2637
  var buttonGroupPressClassName = "[&_button]:transition-[background-color,box-shadow,filter] [&_button]:active:translate-y-0 [&_button]:active:brightness-95";
2610
2638
  var segmentSizeClassName = {
2611
2639
  sm: "h-8 px-md text-sm",
@@ -2613,14 +2641,14 @@ var segmentSizeClassName = {
2613
2641
  lg: "h-10 px-xl text-base"
2614
2642
  };
2615
2643
  function isAdsButtonElement(child) {
2616
- return React25.isValidElement(child) && child.type === AdsButton;
2644
+ return React26.isValidElement(child) && child.type === AdsButton;
2617
2645
  }
2618
2646
  function enhanceChildren(children, attached, size, surface) {
2619
- return React25.Children.map(children, (child) => {
2647
+ return React26.Children.map(children, (child) => {
2620
2648
  if (!isAdsButtonElement(child)) {
2621
2649
  return child;
2622
2650
  }
2623
- return React25.cloneElement(child, {
2651
+ return React26.cloneElement(child, {
2624
2652
  className: cn(
2625
2653
  attached && "rounded-none shadow-none",
2626
2654
  attached && surface === "secondary" && "bg-secondary hover:bg-secondary/90",
@@ -2630,7 +2658,7 @@ function enhanceChildren(children, attached, size, surface) {
2630
2658
  });
2631
2659
  });
2632
2660
  }
2633
- var AdsButtonGroup = React25.forwardRef(
2661
+ var AdsButtonGroup = React26.forwardRef(
2634
2662
  ({
2635
2663
  attached = true,
2636
2664
  children,
@@ -2649,7 +2677,7 @@ var AdsButtonGroup = React25.forwardRef(
2649
2677
  buttonGroupVariants({ orientation }),
2650
2678
  surface === "pill" ? "rounded-full" : "rounded-radius-md"
2651
2679
  );
2652
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
2680
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
2653
2681
  "div",
2654
2682
  {
2655
2683
  "aria-orientation": orientation,
@@ -2691,7 +2719,7 @@ var inputSizeClassName = {
2691
2719
  md: "h-9 text-sm leading-5",
2692
2720
  lg: "h-10 text-base leading-6"
2693
2721
  };
2694
- var AdsButtonGroupText = React25.forwardRef(
2722
+ var AdsButtonGroupText = React26.forwardRef(
2695
2723
  ({
2696
2724
  align = "start",
2697
2725
  asChild = false,
@@ -2701,8 +2729,8 @@ var AdsButtonGroupText = React25.forwardRef(
2701
2729
  tone = "default",
2702
2730
  ...props
2703
2731
  }, ref) => {
2704
- const Comp = asChild ? import_react_slot4.Slot : "div";
2705
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
2732
+ const Comp = asChild ? import_react_slot5.Slot : "div";
2733
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
2706
2734
  Comp,
2707
2735
  {
2708
2736
  className: cn(
@@ -2722,7 +2750,7 @@ var AdsButtonGroupText = React25.forwardRef(
2722
2750
  }
2723
2751
  );
2724
2752
  AdsButtonGroupText.displayName = "AdsButtonGroupText";
2725
- var AdsButtonGroupInput = React25.forwardRef(({ className, size = "md", type = "text", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
2753
+ var AdsButtonGroupInput = React26.forwardRef(({ className, size = "md", type = "text", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
2726
2754
  Input,
2727
2755
  {
2728
2756
  className: cn(
@@ -2739,13 +2767,13 @@ AdsButtonGroupInput.displayName = "AdsButtonGroupInput";
2739
2767
  var AdsButtonGroupSeparator = ButtonGroupSeparator;
2740
2768
 
2741
2769
  // src/components/AdsSeparator/index.tsx
2742
- var React26 = __toESM(require("react"), 1);
2743
- var import_jsx_runtime29 = require("react/jsx-runtime");
2770
+ var React27 = __toESM(require("react"), 1);
2771
+ var import_jsx_runtime30 = require("react/jsx-runtime");
2744
2772
  var toneClassName2 = {
2745
2773
  default: "bg-border",
2746
2774
  muted: "bg-border-muted"
2747
2775
  };
2748
- var AdsSeparator = React26.forwardRef(({ className, orientation = "horizontal", tone = "default", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
2776
+ var AdsSeparator = React27.forwardRef(({ className, orientation = "horizontal", tone = "default", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2749
2777
  Separator,
2750
2778
  {
2751
2779
  className: cn(
@@ -2762,13 +2790,13 @@ var AdsSeparator = React26.forwardRef(({ className, orientation = "horizontal",
2762
2790
  AdsSeparator.displayName = "AdsSeparator";
2763
2791
 
2764
2792
  // src/components/AdsSkeleton/index.tsx
2765
- var React28 = __toESM(require("react"), 1);
2793
+ var React29 = __toESM(require("react"), 1);
2766
2794
 
2767
2795
  // src/primitives/skeleton.tsx
2768
- var React27 = __toESM(require("react"), 1);
2769
- var import_jsx_runtime30 = require("react/jsx-runtime");
2770
- var Skeleton = React27.forwardRef(
2771
- ({ animated = true, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2796
+ var React28 = __toESM(require("react"), 1);
2797
+ var import_jsx_runtime31 = require("react/jsx-runtime");
2798
+ var Skeleton = React28.forwardRef(
2799
+ ({ animated = true, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2772
2800
  "div",
2773
2801
  {
2774
2802
  className: cn(
@@ -2784,7 +2812,7 @@ var Skeleton = React27.forwardRef(
2784
2812
  Skeleton.displayName = "Skeleton";
2785
2813
 
2786
2814
  // src/components/AdsSkeleton/index.tsx
2787
- var import_jsx_runtime31 = require("react/jsx-runtime");
2815
+ var import_jsx_runtime32 = require("react/jsx-runtime");
2788
2816
  var shapeClassName = {
2789
2817
  default: "rounded-radius-md",
2790
2818
  line: "h-4 w-full rounded-full",
@@ -2794,8 +2822,8 @@ var toneClassName3 = {
2794
2822
  default: "bg-secondary",
2795
2823
  muted: "bg-accent"
2796
2824
  };
2797
- var AdsSkeleton = React28.forwardRef(
2798
- ({ className, shape = "default", tone = "default", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2825
+ var AdsSkeleton = React29.forwardRef(
2826
+ ({ className, shape = "default", tone = "default", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
2799
2827
  Skeleton,
2800
2828
  {
2801
2829
  className: cn(shapeClassName[shape], toneClassName3[tone], className),
@@ -2807,27 +2835,27 @@ var AdsSkeleton = React28.forwardRef(
2807
2835
  AdsSkeleton.displayName = "AdsSkeleton";
2808
2836
 
2809
2837
  // src/components/AdsInput/index.tsx
2810
- var React30 = __toESM(require("react"), 1);
2838
+ var React31 = __toESM(require("react"), 1);
2811
2839
 
2812
2840
  // src/lib/adsClearButton.tsx
2813
- var React29 = __toESM(require("react"), 1);
2841
+ var React30 = __toESM(require("react"), 1);
2814
2842
  var import_lucide_react9 = require("lucide-react");
2815
- var import_jsx_runtime32 = require("react/jsx-runtime");
2843
+ var import_jsx_runtime33 = require("react/jsx-runtime");
2816
2844
  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";
2817
- var AdsClearButton = React29.forwardRef(({ className, type = "button", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
2845
+ var AdsClearButton = React30.forwardRef(({ className, type = "button", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
2818
2846
  "button",
2819
2847
  {
2820
2848
  ...props,
2821
2849
  className: cn(adsClearButtonClassName, "h-4 w-4", className),
2822
2850
  ref,
2823
2851
  type,
2824
- children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_lucide_react9.X, { "aria-hidden": true, className: "h-3.5 w-3.5" })
2852
+ children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_lucide_react9.X, { "aria-hidden": true, className: "h-3.5 w-3.5" })
2825
2853
  }
2826
2854
  ));
2827
2855
  AdsClearButton.displayName = "AdsClearButton";
2828
2856
 
2829
2857
  // src/components/AdsInput/index.tsx
2830
- var import_jsx_runtime33 = require("react/jsx-runtime");
2858
+ var import_jsx_runtime34 = require("react/jsx-runtime");
2831
2859
  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";
2832
2860
  var inputSizeClasses = {
2833
2861
  sm: "h-8 text-sm leading-5",
@@ -2869,7 +2897,7 @@ function getInputSurfaceClassName({
2869
2897
  className
2870
2898
  );
2871
2899
  }
2872
- var AdsInput = React30.forwardRef(
2900
+ var AdsInput = React31.forwardRef(
2873
2901
  ({
2874
2902
  action,
2875
2903
  className,
@@ -2891,9 +2919,9 @@ var AdsInput = React30.forwardRef(
2891
2919
  ...props
2892
2920
  }, ref) => {
2893
2921
  const { messages } = useAdsI18n();
2894
- const inputRef = React30.useRef(null);
2895
- const [selectedFiles, setSelectedFiles] = React30.useState([]);
2896
- const [currentValue, setCurrentValue] = React30.useState(
2922
+ const inputRef = React31.useRef(null);
2923
+ const [selectedFiles, setSelectedFiles] = React31.useState([]);
2924
+ const [currentValue, setCurrentValue] = React31.useState(
2897
2925
  () => getTextInputValue(props.value ?? props.defaultValue)
2898
2926
  );
2899
2927
  const description = useAdsFieldDescription({
@@ -2902,7 +2930,7 @@ var AdsInput = React30.forwardRef(
2902
2930
  helperText,
2903
2931
  id
2904
2932
  });
2905
- React30.useEffect(() => {
2933
+ React31.useEffect(() => {
2906
2934
  if (props.value !== void 0) {
2907
2935
  setCurrentValue(getTextInputValue(props.value));
2908
2936
  }
@@ -2919,7 +2947,7 @@ var AdsInput = React30.forwardRef(
2919
2947
  const resolvedClearButtonLabel = clearButtonLabel ?? messages.input.clear;
2920
2948
  const resolvedFileTriggerLabel = fileTriggerLabel ?? messages.input.chooseFile;
2921
2949
  const resolvedEmptyFileLabel = emptyFileLabel ?? messages.input.noFileChosen;
2922
- const handleChange = React30.useCallback(
2950
+ const handleChange = React31.useCallback(
2923
2951
  (event) => {
2924
2952
  setCurrentValue(event.target.value);
2925
2953
  if (isFileInput) {
@@ -2931,7 +2959,7 @@ var AdsInput = React30.forwardRef(
2931
2959
  },
2932
2960
  [isFileInput, onChange]
2933
2961
  );
2934
- const handleClear = React30.useCallback(() => {
2962
+ const handleClear = React31.useCallback(() => {
2935
2963
  const element = inputRef.current;
2936
2964
  if (!element) {
2937
2965
  return;
@@ -2946,10 +2974,10 @@ var AdsInput = React30.forwardRef(
2946
2974
  onClear?.();
2947
2975
  }, [onClear]);
2948
2976
  const fileNameText = selectedFiles.length > 0 ? selectedFiles.join(", ") : resolvedEmptyFileLabel;
2949
- const helperNode = helperText ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(AdsFieldDescription, { id: description.helperId, children: helperText }) : null;
2950
- const errorNode = errorText ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(AdsFieldError, { id: description.errorId, children: errorText }) : null;
2951
- const inputNode = isFileInput ? /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "relative flex w-full min-w-0 flex-1 items-center", children: [
2952
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
2977
+ const helperNode = helperText ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(AdsFieldDescription, { id: description.helperId, children: helperText }) : null;
2978
+ const errorNode = errorText ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(AdsFieldError, { id: description.errorId, children: errorText }) : null;
2979
+ const inputNode = isFileInput ? /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "relative flex w-full min-w-0 flex-1 items-center", children: [
2980
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
2953
2981
  Input,
2954
2982
  {
2955
2983
  "aria-describedby": description.describedBy,
@@ -2969,7 +2997,7 @@ var AdsInput = React30.forwardRef(
2969
2997
  ...props
2970
2998
  }
2971
2999
  ),
2972
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
3000
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
2973
3001
  "div",
2974
3002
  {
2975
3003
  "aria-hidden": "true",
@@ -2980,7 +3008,7 @@ var AdsInput = React30.forwardRef(
2980
3008
  props.disabled ? "cursor-not-allowed opacity-50" : void 0
2981
3009
  ),
2982
3010
  children: [
2983
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
3011
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
2984
3012
  "span",
2985
3013
  {
2986
3014
  className: cn(
@@ -2990,7 +3018,7 @@ var AdsInput = React30.forwardRef(
2990
3018
  children: resolvedFileTriggerLabel
2991
3019
  }
2992
3020
  ),
2993
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
3021
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
2994
3022
  "span",
2995
3023
  {
2996
3024
  className: cn(
@@ -3003,9 +3031,9 @@ var AdsInput = React30.forwardRef(
3003
3031
  ]
3004
3032
  }
3005
3033
  )
3006
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "relative flex w-full min-w-0 flex-1 items-center", children: [
3007
- prefix ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "pointer-events-none absolute left-md inline-flex text-icon-muted", children: prefix }) : null,
3008
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
3034
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "relative flex w-full min-w-0 flex-1 items-center", children: [
3035
+ prefix ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "pointer-events-none absolute left-md inline-flex text-icon-muted", children: prefix }) : null,
3036
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3009
3037
  Input,
3010
3038
  {
3011
3039
  "aria-describedby": description.describedBy,
@@ -3021,9 +3049,9 @@ var AdsInput = React30.forwardRef(
3021
3049
  ...props
3022
3050
  }
3023
3051
  ),
3024
- canClear || suffix ? /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("span", { className: "absolute right-md inline-flex items-center gap-xs text-icon-muted", children: [
3025
- suffix ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "inline-flex items-center", children: suffix }) : null,
3026
- canClear ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
3052
+ canClear || suffix ? /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("span", { className: "absolute right-md inline-flex items-center gap-xs text-icon-muted", children: [
3053
+ suffix ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "inline-flex items-center", children: suffix }) : null,
3054
+ canClear ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3027
3055
  AdsClearButton,
3028
3056
  {
3029
3057
  "aria-label": resolvedClearButtonLabel,
@@ -3032,12 +3060,12 @@ var AdsInput = React30.forwardRef(
3032
3060
  ) : null
3033
3061
  ] }) : null
3034
3062
  ] });
3035
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(AdsFieldItem, { children: [
3036
- label ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(AdsFieldLabel, { htmlFor: description.inputId, children: label }) : null,
3063
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(AdsFieldItem, { children: [
3064
+ label ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(AdsFieldLabel, { htmlFor: description.inputId, children: label }) : null,
3037
3065
  descriptionPlacement === "above" ? helperNode : null,
3038
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex w-full items-center gap-sm", children: [
3066
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex w-full items-center gap-sm", children: [
3039
3067
  inputNode,
3040
- action ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "shrink-0", children: action }) : null
3068
+ action ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "shrink-0", children: action }) : null
3041
3069
  ] }),
3042
3070
  descriptionPlacement === "below" ? helperNode : null,
3043
3071
  errorNode
@@ -3047,13 +3075,13 @@ var AdsInput = React30.forwardRef(
3047
3075
  AdsInput.displayName = "AdsInput";
3048
3076
 
3049
3077
  // src/components/AdsInputGroup/index.tsx
3050
- var React32 = __toESM(require("react"), 1);
3078
+ var React33 = __toESM(require("react"), 1);
3051
3079
 
3052
3080
  // src/primitives/textarea.tsx
3053
- var React31 = __toESM(require("react"), 1);
3054
- var import_jsx_runtime34 = require("react/jsx-runtime");
3055
- var Textarea = React31.forwardRef(({ className, ...props }, ref) => {
3056
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3081
+ var React32 = __toESM(require("react"), 1);
3082
+ var import_jsx_runtime35 = require("react/jsx-runtime");
3083
+ var Textarea = React32.forwardRef(({ className, ...props }, ref) => {
3084
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3057
3085
  "textarea",
3058
3086
  {
3059
3087
  className: cn(
@@ -3068,7 +3096,7 @@ var Textarea = React31.forwardRef(({ className, ...props }, ref) => {
3068
3096
  Textarea.displayName = "Textarea";
3069
3097
 
3070
3098
  // src/components/AdsInputGroup/index.tsx
3071
- var import_jsx_runtime35 = require("react/jsx-runtime");
3099
+ var import_jsx_runtime36 = require("react/jsx-runtime");
3072
3100
  function useAdsInputGroupDescription(describedBy, helperText, errorText, idBase) {
3073
3101
  const helperId = helperText ? `${idBase}-helper` : void 0;
3074
3102
  const errorId = errorText ? `${idBase}-error` : void 0;
@@ -3087,11 +3115,11 @@ function AdsInputGroupChrome({
3087
3115
  helperText,
3088
3116
  label
3089
3117
  }) {
3090
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex w-full flex-col gap-md", children: [
3091
- label ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "text-sm font-medium leading-5 text-foreground", children: label }) : null,
3118
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "flex w-full flex-col gap-md", children: [
3119
+ label ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "text-sm font-medium leading-5 text-foreground", children: label }) : null,
3092
3120
  children,
3093
- helperText ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: "text-sm leading-5 text-muted-foreground", id: helperId, children: helperText }) : null,
3094
- errorText ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: "text-sm leading-5 text-destructive", id: errorId, children: errorText }) : null
3121
+ helperText ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("p", { className: "text-sm leading-5 text-muted-foreground", id: helperId, children: helperText }) : null,
3122
+ errorText ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("p", { className: "text-sm leading-5 text-destructive", id: errorId, children: errorText }) : null
3095
3123
  ] });
3096
3124
  }
3097
3125
  var addonBaseClassName = "flex shrink-0 items-center self-stretch bg-secondary px-lg text-sm leading-5 text-foreground";
@@ -3130,21 +3158,21 @@ function AdsInputGroup({
3130
3158
  trailingAddon,
3131
3159
  trailingAddonClassName
3132
3160
  }) {
3133
- const generatedId = React32.useId();
3161
+ const generatedId = React33.useId();
3134
3162
  const description = useAdsInputGroupDescription(
3135
3163
  void 0,
3136
3164
  helperText,
3137
3165
  errorText,
3138
3166
  id ?? generatedId
3139
3167
  );
3140
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3168
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3141
3169
  AdsInputGroupChrome,
3142
3170
  {
3143
3171
  errorText,
3144
3172
  helperText,
3145
3173
  label,
3146
3174
  ...description,
3147
- children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: cn("w-full", className), children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
3175
+ children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: cn("w-full", className), children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
3148
3176
  "div",
3149
3177
  {
3150
3178
  className: cn(
@@ -3154,9 +3182,9 @@ function AdsInputGroup({
3154
3182
  surfaceClassName
3155
3183
  ),
3156
3184
  children: [
3157
- header ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "border-b border-border px-md py-md text-sm text-foreground", children: header }) : null,
3158
- /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex min-h-11 w-full items-stretch", children: [
3159
- leadingAddon ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3185
+ header ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "border-b border-border px-md py-md text-sm text-foreground", children: header }) : null,
3186
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "flex min-h-11 w-full items-stretch", children: [
3187
+ leadingAddon ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3160
3188
  "div",
3161
3189
  {
3162
3190
  className: cn(
@@ -3167,7 +3195,7 @@ function AdsInputGroup({
3167
3195
  children: leadingAddon
3168
3196
  }
3169
3197
  ) : null,
3170
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3198
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3171
3199
  "div",
3172
3200
  {
3173
3201
  className: cn(
@@ -3177,7 +3205,7 @@ function AdsInputGroup({
3177
3205
  children
3178
3206
  }
3179
3207
  ),
3180
- trailingAddon ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3208
+ trailingAddon ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3181
3209
  "div",
3182
3210
  {
3183
3211
  className: cn(
@@ -3189,33 +3217,33 @@ function AdsInputGroup({
3189
3217
  }
3190
3218
  ) : null
3191
3219
  ] }),
3192
- 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
3220
+ 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
3193
3221
  ]
3194
3222
  }
3195
3223
  ) })
3196
3224
  }
3197
3225
  );
3198
3226
  }
3199
- var AdsInputGroupInput = React32.forwardRef(({ className, clearable = false, clearButtonLabel, onChange, onClear, ...props }, ref) => {
3227
+ var AdsInputGroupInput = React33.forwardRef(({ className, clearable = false, clearButtonLabel, onChange, onClear, ...props }, ref) => {
3200
3228
  const { messages } = useAdsI18n();
3201
- const inputRef = React32.useRef(null);
3202
- const [currentValue, setCurrentValue] = React32.useState(
3229
+ const inputRef = React33.useRef(null);
3230
+ const [currentValue, setCurrentValue] = React33.useState(
3203
3231
  () => getInputGroupValue(props.value ?? props.defaultValue)
3204
3232
  );
3205
- React32.useEffect(() => {
3233
+ React33.useEffect(() => {
3206
3234
  if (props.value !== void 0) {
3207
3235
  setCurrentValue(getInputGroupValue(props.value));
3208
3236
  }
3209
3237
  }, [props.value]);
3210
3238
  const canClear = clearable && !props.disabled && !props.readOnly && currentValue.length > 0;
3211
- const handleChange = React32.useCallback(
3239
+ const handleChange = React33.useCallback(
3212
3240
  (event) => {
3213
3241
  setCurrentValue(event.target.value);
3214
3242
  onChange?.(event);
3215
3243
  },
3216
3244
  [onChange]
3217
3245
  );
3218
- const handleClear = React32.useCallback(() => {
3246
+ const handleClear = React33.useCallback(() => {
3219
3247
  const element = inputRef.current;
3220
3248
  if (!element) {
3221
3249
  return;
@@ -3229,8 +3257,8 @@ var AdsInputGroupInput = React32.forwardRef(({ className, clearable = false, cle
3229
3257
  element.focus();
3230
3258
  onClear?.();
3231
3259
  }, [onClear]);
3232
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "relative flex w-full min-w-0 flex-1 items-center", children: [
3233
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3260
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "relative flex w-full min-w-0 flex-1 items-center", children: [
3261
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3234
3262
  Input,
3235
3263
  {
3236
3264
  className: cn(
@@ -3247,7 +3275,7 @@ var AdsInputGroupInput = React32.forwardRef(({ className, clearable = false, cle
3247
3275
  ...props
3248
3276
  }
3249
3277
  ),
3250
- canClear ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3278
+ canClear ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3251
3279
  AdsClearButton,
3252
3280
  {
3253
3281
  "aria-label": clearButtonLabel ?? messages.input.clear,
@@ -3258,7 +3286,7 @@ var AdsInputGroupInput = React32.forwardRef(({ className, clearable = false, cle
3258
3286
  ] });
3259
3287
  });
3260
3288
  AdsInputGroupInput.displayName = "AdsInputGroupInput";
3261
- var AdsInputGroupTextarea = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3289
+ var AdsInputGroupTextarea = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3262
3290
  Textarea,
3263
3291
  {
3264
3292
  className: cn(
@@ -3273,14 +3301,14 @@ var AdsInputGroupTextarea = React32.forwardRef(({ className, ...props }, ref) =>
3273
3301
  AdsInputGroupTextarea.displayName = "AdsInputGroupTextarea";
3274
3302
 
3275
3303
  // src/components/AdsInputOTP/index.tsx
3276
- var React34 = __toESM(require("react"), 1);
3304
+ var React35 = __toESM(require("react"), 1);
3277
3305
 
3278
3306
  // src/primitives/input-otp.tsx
3279
- var React33 = __toESM(require("react"), 1);
3307
+ var React34 = __toESM(require("react"), 1);
3280
3308
  var import_input_otp = require("input-otp");
3281
3309
  var import_lucide_react10 = require("lucide-react");
3282
- var import_jsx_runtime36 = require("react/jsx-runtime");
3283
- var InputOTP = React33.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3310
+ var import_jsx_runtime37 = require("react/jsx-runtime");
3311
+ var InputOTP = React34.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3284
3312
  import_input_otp.OTPInput,
3285
3313
  {
3286
3314
  ref,
@@ -3293,12 +3321,12 @@ var InputOTP = React33.forwardRef(({ className, containerClassName, ...props },
3293
3321
  }
3294
3322
  ));
3295
3323
  InputOTP.displayName = "InputOTP";
3296
- var InputOTPGroup = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { ref, className: cn("flex items-center", className), ...props }));
3324
+ var InputOTPGroup = React34.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { ref, className: cn("flex items-center", className), ...props }));
3297
3325
  InputOTPGroup.displayName = "InputOTPGroup";
3298
- var InputOTPSlot = React33.forwardRef(({ index, className, ...props }, ref) => {
3299
- const inputOTPContext = React33.useContext(import_input_otp.OTPInputContext);
3326
+ var InputOTPSlot = React34.forwardRef(({ index, className, ...props }, ref) => {
3327
+ const inputOTPContext = React34.useContext(import_input_otp.OTPInputContext);
3300
3328
  const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];
3301
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
3329
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
3302
3330
  "div",
3303
3331
  {
3304
3332
  ref,
@@ -3310,19 +3338,19 @@ var InputOTPSlot = React33.forwardRef(({ index, className, ...props }, ref) => {
3310
3338
  ...props,
3311
3339
  children: [
3312
3340
  char,
3313
- 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" }) })
3341
+ 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" }) })
3314
3342
  ]
3315
3343
  }
3316
3344
  );
3317
3345
  });
3318
3346
  InputOTPSlot.displayName = "InputOTPSlot";
3319
- 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_react10.Dot, {}) }));
3347
+ 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, {}) }));
3320
3348
  InputOTPSeparator.displayName = "InputOTPSeparator";
3321
3349
 
3322
3350
  // src/components/AdsInputOTP/index.tsx
3323
- var import_jsx_runtime37 = require("react/jsx-runtime");
3351
+ var import_jsx_runtime38 = require("react/jsx-runtime");
3324
3352
  function useFieldDescription(id, describedBy, helperText, errorText) {
3325
- const generatedId = React34.useId();
3353
+ const generatedId = React35.useId();
3326
3354
  const inputId = id ?? generatedId;
3327
3355
  const helperId = helperText ? `${inputId}-helper` : void 0;
3328
3356
  const errorId = errorText ? `${inputId}-error` : void 0;
@@ -3343,21 +3371,21 @@ function AdsInputOTPChrome({
3343
3371
  inputId,
3344
3372
  label
3345
3373
  }) {
3346
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "flex w-full flex-col gap-md", children: [
3347
- label ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("label", { className: "text-sm font-medium leading-5 text-foreground", htmlFor: inputId, children: label }) : null,
3374
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "flex w-full flex-col gap-md", children: [
3375
+ label ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("label", { className: "text-sm font-medium leading-5 text-foreground", htmlFor: inputId, children: label }) : null,
3348
3376
  children,
3349
- helperText ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("p", { className: "text-sm leading-5 text-muted-foreground", id: helperId, children: helperText }) : null,
3350
- errorText ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("p", { className: "text-sm leading-5 text-destructive", id: errorId, children: errorText }) : null
3377
+ helperText ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("p", { className: "text-sm leading-5 text-muted-foreground", id: helperId, children: helperText }) : null,
3378
+ errorText ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("p", { className: "text-sm leading-5 text-destructive", id: errorId, children: errorText }) : null
3351
3379
  ] });
3352
3380
  }
3353
3381
  function buildSeparator(node, key) {
3354
3382
  if (node === void 0) {
3355
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(AdsInputOTPSeparator, {}, key);
3383
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(AdsInputOTPSeparator, {}, key);
3356
3384
  }
3357
- if (React34.isValidElement(node)) {
3358
- return React34.cloneElement(node, { key });
3385
+ if (React35.isValidElement(node)) {
3386
+ return React35.cloneElement(node, { key });
3359
3387
  }
3360
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { children: node }, key);
3388
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { children: node }, key);
3361
3389
  }
3362
3390
  function buildOtpChildren(groups, separator) {
3363
3391
  const defaultGroup = groups.length > 0 ? groups : [6];
@@ -3365,7 +3393,7 @@ function buildOtpChildren(groups, separator) {
3365
3393
  let index = 0;
3366
3394
  defaultGroup.forEach((size, indexOfGroup) => {
3367
3395
  items.push(
3368
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(AdsInputOTPGroup, { children: Array.from({ length: size }, (_, slotOffset) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3396
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(AdsInputOTPGroup, { children: Array.from({ length: size }, (_, slotOffset) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3369
3397
  AdsInputOTPSlot,
3370
3398
  {
3371
3399
  index: index + slotOffset
@@ -3380,11 +3408,11 @@ function buildOtpChildren(groups, separator) {
3380
3408
  });
3381
3409
  return items;
3382
3410
  }
3383
- var AdsInputOTP = React34.forwardRef(({ action, errorText, groups, helperText, label, separator, children, id, ...props }, ref) => {
3411
+ var AdsInputOTP = React35.forwardRef(({ action, errorText, groups, helperText, label, separator, children, id, ...props }, ref) => {
3384
3412
  const totalSlots = groups && groups.length > 0 ? groups.reduce((sum, value) => sum + value, 0) : 6;
3385
3413
  const description = useFieldDescription(id, props["aria-describedby"], helperText, errorText);
3386
3414
  const otpChildren = children ?? buildOtpChildren(groups ?? [], separator);
3387
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3415
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3388
3416
  AdsInputOTPChrome,
3389
3417
  {
3390
3418
  errorText,
@@ -3393,8 +3421,8 @@ var AdsInputOTP = React34.forwardRef(({ action, errorText, groups, helperText, l
3393
3421
  helperId: description.helperId,
3394
3422
  inputId: description.inputId,
3395
3423
  label,
3396
- children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "flex w-full items-center gap-sm", children: [
3397
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3424
+ children: /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "flex w-full items-center gap-sm", children: [
3425
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3398
3426
  InputOTP,
3399
3427
  {
3400
3428
  "aria-describedby": description.describedBy,
@@ -3406,15 +3434,15 @@ var AdsInputOTP = React34.forwardRef(({ action, errorText, groups, helperText, l
3406
3434
  children: otpChildren
3407
3435
  }
3408
3436
  ),
3409
- action ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "shrink-0", children: action }) : null
3437
+ action ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "shrink-0", children: action }) : null
3410
3438
  ] })
3411
3439
  }
3412
3440
  );
3413
3441
  });
3414
3442
  AdsInputOTP.displayName = "AdsInputOTP";
3415
- var AdsInputOTPGroup = React34.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(InputOTPGroup, { className, ref, ...props }));
3443
+ var AdsInputOTPGroup = React35.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(InputOTPGroup, { className, ref, ...props }));
3416
3444
  AdsInputOTPGroup.displayName = "AdsInputOTPGroup";
3417
- var AdsInputOTPSeparator = React34.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3445
+ var AdsInputOTPSeparator = React35.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3418
3446
  InputOTPSeparator,
3419
3447
  {
3420
3448
  className: className ?? "h-px w-6 shrink-0 bg-border text-transparent [&_svg]:hidden",
@@ -3423,7 +3451,7 @@ var AdsInputOTPSeparator = React34.forwardRef(({ className, ...props }, ref) =>
3423
3451
  }
3424
3452
  ));
3425
3453
  AdsInputOTPSeparator.displayName = "AdsInputOTPSeparator";
3426
- var AdsInputOTPSlot = React34.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3454
+ var AdsInputOTPSlot = React35.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3427
3455
  InputOTPSlot,
3428
3456
  {
3429
3457
  className: [
@@ -3440,17 +3468,17 @@ var AdsInputOTPSlot = React34.forwardRef(({ className, ...props }, ref) => /* @_
3440
3468
  AdsInputOTPSlot.displayName = "AdsInputOTPSlot";
3441
3469
 
3442
3470
  // src/components/AdsDataPagination/index.tsx
3443
- var React38 = __toESM(require("react"), 1);
3471
+ var React39 = __toESM(require("react"), 1);
3444
3472
 
3445
3473
  // src/components/AdsPagination/index.tsx
3446
- var React36 = __toESM(require("react"), 1);
3474
+ var React37 = __toESM(require("react"), 1);
3447
3475
  var import_lucide_react12 = require("lucide-react");
3448
3476
 
3449
3477
  // src/primitives/pagination.tsx
3450
- var React35 = __toESM(require("react"), 1);
3478
+ var React36 = __toESM(require("react"), 1);
3451
3479
  var import_lucide_react11 = require("lucide-react");
3452
- var import_jsx_runtime38 = require("react/jsx-runtime");
3453
- var Pagination = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3480
+ var import_jsx_runtime39 = require("react/jsx-runtime");
3481
+ var Pagination = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3454
3482
  "nav",
3455
3483
  {
3456
3484
  role: "navigation",
@@ -3460,7 +3488,7 @@ var Pagination = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_run
3460
3488
  }
3461
3489
  );
3462
3490
  Pagination.displayName = "Pagination";
3463
- var PaginationContent = React35.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3491
+ var PaginationContent = React36.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3464
3492
  "ul",
3465
3493
  {
3466
3494
  ref,
@@ -3469,14 +3497,14 @@ var PaginationContent = React35.forwardRef(({ className, ...props }, ref) => /*
3469
3497
  }
3470
3498
  ));
3471
3499
  PaginationContent.displayName = "PaginationContent";
3472
- var PaginationItem = React35.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("li", { ref, className: cn("", className), ...props }));
3500
+ var PaginationItem = React36.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("li", { ref, className: cn("", className), ...props }));
3473
3501
  PaginationItem.displayName = "PaginationItem";
3474
3502
  var PaginationLink = ({
3475
3503
  className,
3476
3504
  isActive,
3477
3505
  size = "icon",
3478
3506
  ...props
3479
- }) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3507
+ }) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3480
3508
  "a",
3481
3509
  {
3482
3510
  "aria-current": isActive ? "page" : void 0,
@@ -3494,7 +3522,7 @@ PaginationLink.displayName = "PaginationLink";
3494
3522
  var PaginationPrevious = ({
3495
3523
  className,
3496
3524
  ...props
3497
- }) => /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
3525
+ }) => /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
3498
3526
  PaginationLink,
3499
3527
  {
3500
3528
  "aria-label": "Go to previous page",
@@ -3502,8 +3530,8 @@ var PaginationPrevious = ({
3502
3530
  className: cn("gap-1 pl-2.5", className),
3503
3531
  ...props,
3504
3532
  children: [
3505
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_lucide_react11.ChevronLeft, { className: "h-4 w-4" }),
3506
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { children: "Previous" })
3533
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_lucide_react11.ChevronLeft, { className: "h-4 w-4" }),
3534
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { children: "Previous" })
3507
3535
  ]
3508
3536
  }
3509
3537
  );
@@ -3511,7 +3539,7 @@ PaginationPrevious.displayName = "PaginationPrevious";
3511
3539
  var PaginationNext = ({
3512
3540
  className,
3513
3541
  ...props
3514
- }) => /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
3542
+ }) => /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
3515
3543
  PaginationLink,
3516
3544
  {
3517
3545
  "aria-label": "Go to next page",
@@ -3519,8 +3547,8 @@ var PaginationNext = ({
3519
3547
  className: cn("gap-1 pr-2.5", className),
3520
3548
  ...props,
3521
3549
  children: [
3522
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { children: "Next" }),
3523
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_lucide_react11.ChevronRight, { className: "h-4 w-4" })
3550
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { children: "Next" }),
3551
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_lucide_react11.ChevronRight, { className: "h-4 w-4" })
3524
3552
  ]
3525
3553
  }
3526
3554
  );
@@ -3528,27 +3556,27 @@ PaginationNext.displayName = "PaginationNext";
3528
3556
  var PaginationEllipsis = ({
3529
3557
  className,
3530
3558
  ...props
3531
- }) => /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
3559
+ }) => /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
3532
3560
  "span",
3533
3561
  {
3534
3562
  "aria-hidden": true,
3535
3563
  className: cn("flex h-9 w-9 items-center justify-center", className),
3536
3564
  ...props,
3537
3565
  children: [
3538
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_lucide_react11.MoreHorizontal, { className: "h-4 w-4" }),
3539
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "sr-only", children: "More pages" })
3566
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_lucide_react11.MoreHorizontal, { className: "h-4 w-4" }),
3567
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { className: "sr-only", children: "More pages" })
3540
3568
  ]
3541
3569
  }
3542
3570
  );
3543
3571
  PaginationEllipsis.displayName = "PaginationEllipsis";
3544
3572
 
3545
3573
  // src/components/AdsPagination/index.tsx
3546
- var import_jsx_runtime39 = require("react/jsx-runtime");
3574
+ var import_jsx_runtime40 = require("react/jsx-runtime");
3547
3575
  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";
3548
3576
  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)]";
3549
3577
  var paginationLinkActiveClassName = "border-border bg-card px-[10px] text-foreground shadow-[0px_1px_2px_rgba(0,0,0,0.1)]";
3550
3578
  function AdsPagination({ className, ...props }) {
3551
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3579
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3552
3580
  Pagination,
3553
3581
  {
3554
3582
  className: cn("mx-0 w-auto justify-start", className),
@@ -3557,14 +3585,14 @@ function AdsPagination({ className, ...props }) {
3557
3585
  );
3558
3586
  }
3559
3587
  AdsPagination.displayName = "AdsPagination";
3560
- var AdsPaginationContent = React36.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(PaginationContent, { ref, className: cn("gap-1", className), ...props }));
3588
+ var AdsPaginationContent = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(PaginationContent, { ref, className: cn("gap-1", className), ...props }));
3561
3589
  AdsPaginationContent.displayName = "AdsPaginationContent";
3562
- var AdsPaginationItem = React36.forwardRef(
3563
- ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(PaginationItem, { ref, className, ...props })
3590
+ var AdsPaginationItem = React37.forwardRef(
3591
+ ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(PaginationItem, { ref, className, ...props })
3564
3592
  );
3565
3593
  AdsPaginationItem.displayName = "AdsPaginationItem";
3566
- var AdsPaginationLink = React36.forwardRef(
3567
- ({ className, isActive = false, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3594
+ var AdsPaginationLink = React37.forwardRef(
3595
+ ({ className, isActive = false, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3568
3596
  "a",
3569
3597
  {
3570
3598
  "aria-current": isActive ? "page" : void 0,
@@ -3579,10 +3607,10 @@ var AdsPaginationLink = React36.forwardRef(
3579
3607
  )
3580
3608
  );
3581
3609
  AdsPaginationLink.displayName = "AdsPaginationLink";
3582
- var AdsPaginationPrevious = React36.forwardRef(({ "aria-label": ariaLabel, children, className, ...props }, ref) => {
3610
+ var AdsPaginationPrevious = React37.forwardRef(({ "aria-label": ariaLabel, children, className, ...props }, ref) => {
3583
3611
  const { messages } = useAdsI18n();
3584
3612
  const label = children ?? messages.pagination.previous;
3585
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
3613
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
3586
3614
  AdsPaginationLink,
3587
3615
  {
3588
3616
  "aria-label": ariaLabel ?? messages.pagination.previous,
@@ -3590,18 +3618,18 @@ var AdsPaginationPrevious = React36.forwardRef(({ "aria-label": ariaLabel, child
3590
3618
  ref,
3591
3619
  ...props,
3592
3620
  children: [
3593
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_lucide_react12.ChevronLeft, { "aria-hidden": true, className: "h-4 w-4" }),
3594
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { children: label })
3621
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_lucide_react12.ChevronLeft, { "aria-hidden": true, className: "h-4 w-4" }),
3622
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { children: label })
3595
3623
  ]
3596
3624
  }
3597
3625
  );
3598
3626
  });
3599
3627
  AdsPaginationPrevious.displayName = "AdsPaginationPrevious";
3600
- var AdsPaginationNext = React36.forwardRef(
3628
+ var AdsPaginationNext = React37.forwardRef(
3601
3629
  ({ "aria-label": ariaLabel, children, className, ...props }, ref) => {
3602
3630
  const { messages } = useAdsI18n();
3603
3631
  const label = children ?? messages.pagination.next;
3604
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
3632
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
3605
3633
  AdsPaginationLink,
3606
3634
  {
3607
3635
  "aria-label": ariaLabel ?? messages.pagination.next,
@@ -3609,8 +3637,8 @@ var AdsPaginationNext = React36.forwardRef(
3609
3637
  ref,
3610
3638
  ...props,
3611
3639
  children: [
3612
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { children: label }),
3613
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_lucide_react12.ChevronRight, { "aria-hidden": true, className: "h-4 w-4" })
3640
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { children: label }),
3641
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_lucide_react12.ChevronRight, { "aria-hidden": true, className: "h-4 w-4" })
3614
3642
  ]
3615
3643
  }
3616
3644
  );
@@ -3624,7 +3652,7 @@ function AdsPaginationEllipsis({
3624
3652
  }) {
3625
3653
  const { messages } = useAdsI18n();
3626
3654
  const resolvedLabel = label ?? messages.pagination.morePages;
3627
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
3655
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
3628
3656
  "span",
3629
3657
  {
3630
3658
  "aria-hidden": true,
@@ -3634,8 +3662,8 @@ function AdsPaginationEllipsis({
3634
3662
  ),
3635
3663
  ...props,
3636
3664
  children: [
3637
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_lucide_react12.MoreHorizontal, { className: "h-4 w-4" }),
3638
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { className: "sr-only", children: resolvedLabel })
3665
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_lucide_react12.MoreHorizontal, { className: "h-4 w-4" }),
3666
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: "sr-only", children: resolvedLabel })
3639
3667
  ]
3640
3668
  }
3641
3669
  );
@@ -3643,8 +3671,8 @@ function AdsPaginationEllipsis({
3643
3671
  AdsPaginationEllipsis.displayName = "AdsPaginationEllipsis";
3644
3672
 
3645
3673
  // src/components/AdsSelect/index.tsx
3646
- var React37 = __toESM(require("react"), 1);
3647
- var import_jsx_runtime40 = require("react/jsx-runtime");
3674
+ var React38 = __toESM(require("react"), 1);
3675
+ var import_jsx_runtime41 = require("react/jsx-runtime");
3648
3676
  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)]";
3649
3677
  var selectContentBaseClassName = "rounded-radius-md border-border bg-popover text-popover-foreground shadow-[0px_8px_24px_rgba(0,0,0,0.22)]";
3650
3678
  function AdsSelect({
@@ -3669,7 +3697,7 @@ function AdsSelect({
3669
3697
  }) {
3670
3698
  const { messages } = useAdsI18n();
3671
3699
  const isControlled = value !== void 0;
3672
- const [internalValue, setInternalValue] = React37.useState(
3700
+ const [internalValue, setInternalValue] = React38.useState(
3673
3701
  defaultValue
3674
3702
  );
3675
3703
  const resolvedValue = isControlled ? value : internalValue;
@@ -3683,8 +3711,8 @@ function AdsSelect({
3683
3711
  });
3684
3712
  const resolvedClearButtonLabel = clearButtonLabel ?? messages.select.clear;
3685
3713
  const resolvedEmptyText = emptyText ?? messages.select.noOptionsAvailable;
3686
- const hasOptions = React37.Children.toArray(children).length > 0;
3687
- const handleValueChange = React37.useCallback(
3714
+ const hasOptions = React38.Children.toArray(children).length > 0;
3715
+ const handleValueChange = React38.useCallback(
3688
3716
  (nextValue) => {
3689
3717
  if (!isControlled) {
3690
3718
  setInternalValue(nextValue);
@@ -3693,7 +3721,7 @@ function AdsSelect({
3693
3721
  },
3694
3722
  [isControlled, onValueChange]
3695
3723
  );
3696
- const handleClear = React37.useCallback(
3724
+ const handleClear = React38.useCallback(
3697
3725
  (event) => {
3698
3726
  event.preventDefault();
3699
3727
  event.stopPropagation();
@@ -3705,12 +3733,12 @@ function AdsSelect({
3705
3733
  },
3706
3734
  [isControlled, onClear, onValueChange]
3707
3735
  );
3708
- const helperNode = helperText ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(AdsFieldDescription, { id: description.helperId, children: helperText }) : null;
3709
- const errorNode = errorText ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(AdsFieldError, { id: description.errorId, children: errorText }) : null;
3710
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(AdsFieldItem, { children: [
3711
- label ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(AdsFieldLabel, { htmlFor: description.inputId, children: label }) : null,
3736
+ const helperNode = helperText ? /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(AdsFieldDescription, { id: description.helperId, children: helperText }) : null;
3737
+ const errorNode = errorText ? /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(AdsFieldError, { id: description.errorId, children: errorText }) : null;
3738
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(AdsFieldItem, { children: [
3739
+ label ? /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(AdsFieldLabel, { htmlFor: description.inputId, children: label }) : null,
3712
3740
  descriptionPlacement === "above" ? helperNode : null,
3713
- /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
3741
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
3714
3742
  Select,
3715
3743
  {
3716
3744
  ...props,
@@ -3718,8 +3746,8 @@ function AdsSelect({
3718
3746
  onValueChange: handleValueChange,
3719
3747
  ...resolvedValue !== void 0 ? { value: resolvedValue } : {},
3720
3748
  children: [
3721
- /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "relative", children: [
3722
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3749
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "relative", children: [
3750
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3723
3751
  SelectTrigger,
3724
3752
  {
3725
3753
  "aria-describedby": description.describedBy,
@@ -3731,10 +3759,10 @@ function AdsSelect({
3731
3759
  triggerClassName
3732
3760
  ),
3733
3761
  id: description.inputId,
3734
- children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(SelectValue, { placeholder })
3762
+ children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(SelectValue, { placeholder })
3735
3763
  }
3736
3764
  ),
3737
- canClear ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3765
+ canClear ? /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3738
3766
  AdsClearButton,
3739
3767
  {
3740
3768
  "aria-label": resolvedClearButtonLabel,
@@ -3743,11 +3771,11 @@ function AdsSelect({
3743
3771
  }
3744
3772
  ) : null
3745
3773
  ] }),
3746
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3774
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3747
3775
  SelectContent,
3748
3776
  {
3749
3777
  className: cn(selectContentBaseClassName, contentClassName3),
3750
- children: hasOptions ? children : /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3778
+ children: hasOptions ? children : /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3751
3779
  "div",
3752
3780
  {
3753
3781
  "aria-live": "polite",
@@ -3770,7 +3798,7 @@ function AdsSelect({
3770
3798
  }
3771
3799
 
3772
3800
  // src/components/AdsDataPagination/index.tsx
3773
- var import_jsx_runtime41 = require("react/jsx-runtime");
3801
+ var import_jsx_runtime42 = require("react/jsx-runtime");
3774
3802
  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";
3775
3803
  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)]";
3776
3804
  var paginationButtonActiveClassName = "border-border bg-card px-[10px] text-foreground shadow-[0px_1px_2px_rgba(0,0,0,0.1)]";
@@ -3846,9 +3874,9 @@ function AdsDataPagination({
3846
3874
  ariaLabel
3847
3875
  }) {
3848
3876
  const { messages } = useAdsI18n();
3849
- const [internalCurrent, setInternalCurrent] = React38.useState(defaultCurrent);
3850
- const [internalPageSize, setInternalPageSize] = React38.useState(defaultPageSize);
3851
- const [quickJumpValue, setQuickJumpValue] = React38.useState("");
3877
+ const [internalCurrent, setInternalCurrent] = React39.useState(defaultCurrent);
3878
+ const [internalPageSize, setInternalPageSize] = React39.useState(defaultPageSize);
3879
+ const [quickJumpValue, setQuickJumpValue] = React39.useState("");
3852
3880
  const isCurrentControlled = current !== void 0;
3853
3881
  const isPageSizeControlled = pageSize !== void 0;
3854
3882
  const mergedPageSize = Math.max(1, isPageSizeControlled ? pageSize : internalPageSize);
@@ -3869,20 +3897,20 @@ function AdsDataPagination({
3869
3897
  new Set(pageSizeOptions.filter((option) => Number.isFinite(option) && option > 0))
3870
3898
  );
3871
3899
  const resolvedPageSizeOptions = pageSizeValues.length > 0 ? pageSizeValues : [10, 20, 50, 100];
3872
- React38.useEffect(() => {
3900
+ React39.useEffect(() => {
3873
3901
  if (!isCurrentControlled && internalCurrent !== mergedCurrent) {
3874
3902
  setInternalCurrent(mergedCurrent);
3875
3903
  }
3876
3904
  }, [internalCurrent, isCurrentControlled, mergedCurrent]);
3877
- React38.useEffect(() => {
3905
+ React39.useEffect(() => {
3878
3906
  if (!isPageSizeControlled && internalPageSize !== mergedPageSize) {
3879
3907
  setInternalPageSize(mergedPageSize);
3880
3908
  }
3881
3909
  }, [internalPageSize, isPageSizeControlled, mergedPageSize]);
3882
- React38.useEffect(() => {
3910
+ React39.useEffect(() => {
3883
3911
  setQuickJumpValue(String(mergedCurrent));
3884
3912
  }, [mergedCurrent]);
3885
- const commitPageChange = React38.useCallback(
3913
+ const commitPageChange = React39.useCallback(
3886
3914
  (nextPage, nextPageSize = mergedPageSize) => {
3887
3915
  const clampedPage = clampPage(nextPage, Math.max(1, Math.ceil(Math.max(total, 0) / nextPageSize)));
3888
3916
  if (!isCurrentControlled) {
@@ -3896,7 +3924,7 @@ function AdsDataPagination({
3896
3924
  },
3897
3925
  [isCurrentControlled, mergedCurrent, mergedPageSize, onChange, total]
3898
3926
  );
3899
- const handlePageSizeChange = React38.useCallback(
3927
+ const handlePageSizeChange = React39.useCallback(
3900
3928
  (nextValue) => {
3901
3929
  const nextPageSize = Number(nextValue);
3902
3930
  if (!Number.isFinite(nextPageSize) || nextPageSize <= 0 || nextPageSize === mergedPageSize) {
@@ -3921,7 +3949,7 @@ function AdsDataPagination({
3921
3949
  total
3922
3950
  ]
3923
3951
  );
3924
- const handleQuickJumpSubmit = React38.useCallback(() => {
3952
+ const handleQuickJumpSubmit = React39.useCallback(() => {
3925
3953
  const trimmedValue = quickJumpValue.trim();
3926
3954
  if (!trimmedValue) {
3927
3955
  setQuickJumpValue(String(mergedCurrent));
@@ -3955,8 +3983,8 @@ function AdsDataPagination({
3955
3983
  );
3956
3984
  const renderPageNavigation = () => {
3957
3985
  if (variant === "compact") {
3958
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "flex flex-wrap items-center gap-sm", children: [
3959
- shouldShowFirstLast ? /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3986
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "flex flex-wrap items-center gap-sm", children: [
3987
+ shouldShowFirstLast ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
3960
3988
  Button,
3961
3989
  {
3962
3990
  "aria-label": messages.pagination.first,
@@ -3969,7 +3997,7 @@ function AdsDataPagination({
3969
3997
  children: messages.pagination.first
3970
3998
  }
3971
3999
  ) : null,
3972
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4000
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
3973
4001
  Button,
3974
4002
  {
3975
4003
  "aria-label": messages.pagination.previous,
@@ -3982,7 +4010,7 @@ function AdsDataPagination({
3982
4010
  children: messages.pagination.previous
3983
4011
  }
3984
4012
  ),
3985
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4013
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
3986
4014
  "span",
3987
4015
  {
3988
4016
  "aria-current": "page",
@@ -3990,7 +4018,7 @@ function AdsDataPagination({
3990
4018
  children: pageStatus
3991
4019
  }
3992
4020
  ),
3993
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4021
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
3994
4022
  Button,
3995
4023
  {
3996
4024
  "aria-label": messages.pagination.next,
@@ -4003,7 +4031,7 @@ function AdsDataPagination({
4003
4031
  children: messages.pagination.next
4004
4032
  }
4005
4033
  ),
4006
- shouldShowFirstLast ? /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4034
+ shouldShowFirstLast ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4007
4035
  Button,
4008
4036
  {
4009
4037
  "aria-label": messages.pagination.last,
@@ -4018,8 +4046,8 @@ function AdsDataPagination({
4018
4046
  ) : null
4019
4047
  ] });
4020
4048
  }
4021
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(AdsPagination, { "aria-label": navigationLabel, children: /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(AdsPaginationContent, { children: [
4022
- shouldShowFirstLast ? /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(AdsPaginationItem, { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4049
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(AdsPagination, { "aria-label": navigationLabel, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(AdsPaginationContent, { children: [
4050
+ shouldShowFirstLast ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(AdsPaginationItem, { children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4023
4051
  Button,
4024
4052
  {
4025
4053
  "aria-label": messages.pagination.first,
@@ -4032,7 +4060,7 @@ function AdsDataPagination({
4032
4060
  children: messages.pagination.first
4033
4061
  }
4034
4062
  ) }) : null,
4035
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(AdsPaginationItem, { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4063
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(AdsPaginationItem, { children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4036
4064
  Button,
4037
4065
  {
4038
4066
  "aria-label": messages.pagination.previous,
@@ -4046,7 +4074,7 @@ function AdsDataPagination({
4046
4074
  }
4047
4075
  ) }),
4048
4076
  paginationRange.map(
4049
- (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)(
4077
+ (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)(
4050
4078
  Button,
4051
4079
  {
4052
4080
  "aria-current": token === mergedCurrent ? "page" : void 0,
@@ -4063,7 +4091,7 @@ function AdsDataPagination({
4063
4091
  }
4064
4092
  ) }, token)
4065
4093
  ),
4066
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(AdsPaginationItem, { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4094
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(AdsPaginationItem, { children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4067
4095
  Button,
4068
4096
  {
4069
4097
  "aria-label": messages.pagination.next,
@@ -4076,7 +4104,7 @@ function AdsDataPagination({
4076
4104
  children: messages.pagination.next
4077
4105
  }
4078
4106
  ) }),
4079
- shouldShowFirstLast ? /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(AdsPaginationItem, { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4107
+ shouldShowFirstLast ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(AdsPaginationItem, { children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4080
4108
  Button,
4081
4109
  {
4082
4110
  "aria-label": messages.pagination.last,
@@ -4091,7 +4119,7 @@ function AdsDataPagination({
4091
4119
  ) }) : null
4092
4120
  ] }) });
4093
4121
  };
4094
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
4122
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
4095
4123
  "div",
4096
4124
  {
4097
4125
  "data-slot": "ads-data-pagination",
@@ -4101,34 +4129,34 @@ function AdsDataPagination({
4101
4129
  className
4102
4130
  ),
4103
4131
  children: [
4104
- /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "flex flex-wrap items-center gap-md text-sm leading-5 text-muted-foreground", children: [
4105
- 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,
4106
- showSizeChanger ? /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: cn("flex items-center gap-sm", classNames?.pageSizeChanger), children: [
4107
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { children: messages.pagination.itemsPerPage }),
4108
- /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
4132
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "flex flex-wrap items-center gap-md text-sm leading-5 text-muted-foreground", children: [
4133
+ 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,
4134
+ showSizeChanger ? /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: cn("flex items-center gap-sm", classNames?.pageSizeChanger), children: [
4135
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { children: messages.pagination.itemsPerPage }),
4136
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
4109
4137
  Select,
4110
4138
  {
4111
4139
  disabled,
4112
4140
  onValueChange: handlePageSizeChange,
4113
4141
  value: String(mergedPageSize),
4114
4142
  children: [
4115
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4143
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4116
4144
  SelectTrigger,
4117
4145
  {
4118
4146
  "aria-label": messages.pagination.itemsPerPage,
4119
4147
  className: cn(inlineControlClassName, "w-[132px] px-sm"),
4120
- children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(SelectValue, {})
4148
+ children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(SelectValue, {})
4121
4149
  }
4122
4150
  ),
4123
- /* @__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)) })
4151
+ /* @__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)) })
4124
4152
  ]
4125
4153
  }
4126
4154
  )
4127
4155
  ] }) : null
4128
4156
  ] }),
4129
- /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "flex flex-col gap-md sm:flex-row sm:items-center sm:justify-end", children: [
4157
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "flex flex-col gap-md sm:flex-row sm:items-center sm:justify-end", children: [
4130
4158
  renderPageNavigation(),
4131
- showQuickJumper ? /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
4159
+ showQuickJumper ? /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
4132
4160
  "label",
4133
4161
  {
4134
4162
  className: cn(
@@ -4136,8 +4164,8 @@ function AdsDataPagination({
4136
4164
  classNames?.quickJumper
4137
4165
  ),
4138
4166
  children: [
4139
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { children: messages.pagination.jumpTo }),
4140
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4167
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { children: messages.pagination.jumpTo }),
4168
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4141
4169
  Input,
4142
4170
  {
4143
4171
  "aria-label": messages.pagination.jumpTo,
@@ -4165,12 +4193,12 @@ function AdsDataPagination({
4165
4193
  }
4166
4194
 
4167
4195
  // src/components/AdsDataTable/index.tsx
4168
- var React43 = __toESM(require("react"), 1);
4196
+ var React44 = __toESM(require("react"), 1);
4169
4197
  var import_lucide_react15 = require("lucide-react");
4170
4198
 
4171
4199
  // src/components/AdsEmpty/index.tsx
4172
4200
  var import_class_variance_authority9 = require("class-variance-authority");
4173
- var import_jsx_runtime42 = require("react/jsx-runtime");
4201
+ var import_jsx_runtime43 = require("react/jsx-runtime");
4174
4202
  var adsEmptyVariants = (0, import_class_variance_authority9.cva)(
4175
4203
  "flex w-full flex-col items-center justify-center gap-6 p-12 text-center",
4176
4204
  {
@@ -4187,7 +4215,7 @@ var adsEmptyVariants = (0, import_class_variance_authority9.cva)(
4187
4215
  }
4188
4216
  );
4189
4217
  function AdsEmpty({ className, variant, ...props }) {
4190
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4218
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4191
4219
  "div",
4192
4220
  {
4193
4221
  "data-slot": "ads-empty",
@@ -4197,7 +4225,7 @@ function AdsEmpty({ className, variant, ...props }) {
4197
4225
  );
4198
4226
  }
4199
4227
  function AdsEmptyHeader({ className, ...props }) {
4200
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4228
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4201
4229
  "div",
4202
4230
  {
4203
4231
  "data-slot": "ads-empty-header",
@@ -4207,7 +4235,7 @@ function AdsEmptyHeader({ className, ...props }) {
4207
4235
  );
4208
4236
  }
4209
4237
  function AdsEmptyMedia({ className, ...props }) {
4210
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4238
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4211
4239
  "div",
4212
4240
  {
4213
4241
  "data-slot": "ads-empty-media",
@@ -4221,7 +4249,7 @@ function AdsEmptyMedia({ className, ...props }) {
4221
4249
  );
4222
4250
  }
4223
4251
  function AdsEmptyTitle({ className, ...props }) {
4224
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4252
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4225
4253
  "div",
4226
4254
  {
4227
4255
  "data-slot": "ads-empty-title",
@@ -4231,7 +4259,7 @@ function AdsEmptyTitle({ className, ...props }) {
4231
4259
  );
4232
4260
  }
4233
4261
  function AdsEmptyDescription({ className, ...props }) {
4234
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4262
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4235
4263
  "p",
4236
4264
  {
4237
4265
  "data-slot": "ads-empty-description",
@@ -4241,7 +4269,7 @@ function AdsEmptyDescription({ className, ...props }) {
4241
4269
  );
4242
4270
  }
4243
4271
  function AdsEmptyContent({ className, ...props }) {
4244
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4272
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4245
4273
  "div",
4246
4274
  {
4247
4275
  "data-slot": "ads-empty-content",
@@ -4251,7 +4279,7 @@ function AdsEmptyContent({ className, ...props }) {
4251
4279
  );
4252
4280
  }
4253
4281
  function AdsEmptyActions({ className, ...props }) {
4254
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4282
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4255
4283
  "div",
4256
4284
  {
4257
4285
  "data-slot": "ads-empty-actions",
@@ -4261,7 +4289,7 @@ function AdsEmptyActions({ className, ...props }) {
4261
4289
  );
4262
4290
  }
4263
4291
  function AdsEmptyFooter({ className, ...props }) {
4264
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4292
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4265
4293
  "div",
4266
4294
  {
4267
4295
  "data-slot": "ads-empty-footer",
@@ -4272,19 +4300,19 @@ function AdsEmptyFooter({ className, ...props }) {
4272
4300
  }
4273
4301
 
4274
4302
  // src/components/AdsTable/index.tsx
4275
- var React42 = __toESM(require("react"), 1);
4303
+ var React43 = __toESM(require("react"), 1);
4276
4304
  var import_lucide_react14 = require("lucide-react");
4277
4305
 
4278
4306
  // src/components/AdsRadioGroup/index.tsx
4279
- var React40 = __toESM(require("react"), 1);
4307
+ var React41 = __toESM(require("react"), 1);
4280
4308
 
4281
4309
  // src/primitives/radio-group.tsx
4282
- var React39 = __toESM(require("react"), 1);
4310
+ var React40 = __toESM(require("react"), 1);
4283
4311
  var RadioGroupPrimitive = __toESM(require("@radix-ui/react-radio-group"), 1);
4284
4312
  var import_lucide_react13 = require("lucide-react");
4285
- var import_jsx_runtime43 = require("react/jsx-runtime");
4286
- var RadioGroup = React39.forwardRef(({ className, ...props }, ref) => {
4287
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4313
+ var import_jsx_runtime44 = require("react/jsx-runtime");
4314
+ var RadioGroup = React40.forwardRef(({ className, ...props }, ref) => {
4315
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4288
4316
  RadioGroupPrimitive.Root,
4289
4317
  {
4290
4318
  className: cn("grid gap-2", className),
@@ -4294,8 +4322,8 @@ var RadioGroup = React39.forwardRef(({ className, ...props }, ref) => {
4294
4322
  );
4295
4323
  });
4296
4324
  RadioGroup.displayName = RadioGroupPrimitive.Root.displayName;
4297
- var RadioGroupItem = React39.forwardRef(({ className, ...props }, ref) => {
4298
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4325
+ var RadioGroupItem = React40.forwardRef(({ className, ...props }, ref) => {
4326
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4299
4327
  RadioGroupPrimitive.Item,
4300
4328
  {
4301
4329
  ref,
@@ -4304,19 +4332,19 @@ var RadioGroupItem = React39.forwardRef(({ className, ...props }, ref) => {
4304
4332
  className
4305
4333
  ),
4306
4334
  ...props,
4307
- children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(RadioGroupPrimitive.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_lucide_react13.Circle, { className: "h-2.5 w-2.5 fill-current text-current" }) })
4335
+ 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" }) })
4308
4336
  }
4309
4337
  );
4310
4338
  });
4311
4339
  RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
4312
4340
 
4313
4341
  // src/components/AdsRadioGroup/index.tsx
4314
- var import_jsx_runtime44 = require("react/jsx-runtime");
4342
+ var import_jsx_runtime45 = require("react/jsx-runtime");
4315
4343
  var radioGroupBaseClassName = "gap-3";
4316
4344
  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";
4317
- var RadioGroup2 = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(RadioGroup, { className: cn(radioGroupBaseClassName, className), ref, ...props }));
4345
+ var RadioGroup2 = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(RadioGroup, { className: cn(radioGroupBaseClassName, className), ref, ...props }));
4318
4346
  RadioGroup2.displayName = "RadioGroup";
4319
- var RadioGroupItem2 = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4347
+ var RadioGroupItem2 = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4320
4348
  RadioGroupItem,
4321
4349
  {
4322
4350
  className: cn(radioItemBaseClassName, className),
@@ -4325,7 +4353,7 @@ var RadioGroupItem2 = React40.forwardRef(({ className, ...props }, ref) => /* @_
4325
4353
  }
4326
4354
  ));
4327
4355
  RadioGroupItem2.displayName = "RadioGroupItem";
4328
- var AdsRadioGroup = React40.forwardRef(
4356
+ var AdsRadioGroup = React41.forwardRef(
4329
4357
  ({
4330
4358
  children,
4331
4359
  className,
@@ -4341,12 +4369,12 @@ var AdsRadioGroup = React40.forwardRef(
4341
4369
  helperText,
4342
4370
  id
4343
4371
  });
4344
- const helperNode = helperText ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(AdsFieldDescription, { id: description.helperId, children: helperText }) : null;
4345
- const errorNode = errorText ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(AdsFieldError, { id: description.errorId, children: errorText }) : null;
4346
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(AdsFieldItem, { children: [
4347
- label ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(AdsFieldLabel, { children: label }) : null,
4372
+ const helperNode = helperText ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(AdsFieldDescription, { id: description.helperId, children: helperText }) : null;
4373
+ const errorNode = errorText ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(AdsFieldError, { id: description.errorId, children: errorText }) : null;
4374
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(AdsFieldItem, { children: [
4375
+ label ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(AdsFieldLabel, { children: label }) : null,
4348
4376
  descriptionPlacement === "above" ? helperNode : null,
4349
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4377
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4350
4378
  RadioGroup2,
4351
4379
  {
4352
4380
  "aria-describedby": description.describedBy,
@@ -4362,11 +4390,11 @@ var AdsRadioGroup = React40.forwardRef(
4362
4390
  }
4363
4391
  );
4364
4392
  AdsRadioGroup.displayName = "AdsRadioGroup";
4365
- var AdsRadioGroupOption = React40.forwardRef(({ className, description, id, label, value, ...props }, ref) => {
4366
- const generatedId = React40.useId();
4393
+ var AdsRadioGroupOption = React41.forwardRef(({ className, description, id, label, value, ...props }, ref) => {
4394
+ const generatedId = React41.useId();
4367
4395
  const inputId = id ?? generatedId;
4368
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("label", { className: "flex w-full cursor-pointer items-start gap-2", htmlFor: inputId, children: [
4369
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4396
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("label", { className: "flex w-full cursor-pointer items-start gap-2", htmlFor: inputId, children: [
4397
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4370
4398
  RadioGroupItem2,
4371
4399
  {
4372
4400
  className: cn(className),
@@ -4376,20 +4404,20 @@ var AdsRadioGroupOption = React40.forwardRef(({ className, description, id, labe
4376
4404
  ...props
4377
4405
  }
4378
4406
  ),
4379
- /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-1.5", children: [
4380
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "text-sm leading-5 text-foreground", children: label }),
4381
- description ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(AdsFieldDescription, { className: "text-sm leading-5", children: description }) : null
4407
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-1.5", children: [
4408
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "text-sm leading-5 text-foreground", children: label }),
4409
+ description ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(AdsFieldDescription, { className: "text-sm leading-5", children: description }) : null
4382
4410
  ] })
4383
4411
  ] });
4384
4412
  });
4385
4413
  AdsRadioGroupOption.displayName = "AdsRadioGroupOption";
4386
- var AdsRadioGroupCardOption = React40.forwardRef(({ className, description, disabled, id, label, value, ...props }, ref) => {
4387
- const generatedId = React40.useId();
4414
+ var AdsRadioGroupCardOption = React41.forwardRef(({ className, description, disabled, id, label, value, ...props }, ref) => {
4415
+ const generatedId = React41.useId();
4388
4416
  const inputId = id ?? generatedId;
4389
4417
  const titleId = `${inputId}-label`;
4390
4418
  const descriptionId = description ? `${inputId}-description` : void 0;
4391
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "relative", children: [
4392
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4419
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "relative", children: [
4420
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4393
4421
  RadioGroupItem2,
4394
4422
  {
4395
4423
  "aria-describedby": descriptionId,
@@ -4402,7 +4430,7 @@ var AdsRadioGroupCardOption = React40.forwardRef(({ className, description, disa
4402
4430
  ...props
4403
4431
  }
4404
4432
  ),
4405
- /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
4433
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
4406
4434
  "div",
4407
4435
  {
4408
4436
  className: cn(
@@ -4411,16 +4439,16 @@ var AdsRadioGroupCardOption = React40.forwardRef(({ className, description, disa
4411
4439
  className
4412
4440
  ),
4413
4441
  children: [
4414
- /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-1.5", children: [
4415
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "text-sm font-medium leading-5 text-foreground", id: titleId, children: label }),
4416
- description ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(AdsFieldDescription, { className: "text-xs leading-4", id: descriptionId, children: description }) : null
4442
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-1.5", children: [
4443
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "text-sm font-medium leading-5 text-foreground", id: titleId, children: label }),
4444
+ description ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(AdsFieldDescription, { className: "text-xs leading-4", id: descriptionId, children: description }) : null
4417
4445
  ] }),
4418
- /* @__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)(
4446
+ /* @__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)(
4419
4447
  "div",
4420
4448
  {
4421
4449
  className: "grid h-4 w-4 place-content-center rounded-full border bg-card shadow-[0px_1px_2px_rgba(0,0,0,0.1)]",
4422
4450
  "data-indicator": true,
4423
- children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4451
+ children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4424
4452
  "span",
4425
4453
  {
4426
4454
  className: "h-2 w-2 rounded-full bg-primary transition-opacity",
@@ -4437,9 +4465,9 @@ var AdsRadioGroupCardOption = React40.forwardRef(({ className, description, disa
4437
4465
  AdsRadioGroupCardOption.displayName = "AdsRadioGroupCardOption";
4438
4466
 
4439
4467
  // src/primitives/table.tsx
4440
- var React41 = __toESM(require("react"), 1);
4441
- var import_jsx_runtime45 = require("react/jsx-runtime");
4442
- var Table = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4468
+ var React42 = __toESM(require("react"), 1);
4469
+ var import_jsx_runtime46 = require("react/jsx-runtime");
4470
+ var Table = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4443
4471
  "table",
4444
4472
  {
4445
4473
  ref,
@@ -4448,7 +4476,7 @@ var Table = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
4448
4476
  }
4449
4477
  ));
4450
4478
  Table.displayName = "Table";
4451
- var TableScrollArea = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4479
+ var TableScrollArea = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4452
4480
  "div",
4453
4481
  {
4454
4482
  ref,
@@ -4457,9 +4485,9 @@ var TableScrollArea = React41.forwardRef(({ className, ...props }, ref) => /* @_
4457
4485
  }
4458
4486
  ));
4459
4487
  TableScrollArea.displayName = "TableScrollArea";
4460
- var TableHeader = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("thead", { ref, className: cn("[&_tr]:border-b", className), ...props }));
4488
+ var TableHeader = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("thead", { ref, className: cn("[&_tr]:border-b", className), ...props }));
4461
4489
  TableHeader.displayName = "TableHeader";
4462
- var TableBody = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4490
+ var TableBody = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4463
4491
  "tbody",
4464
4492
  {
4465
4493
  ref,
@@ -4468,7 +4496,7 @@ var TableBody = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE_
4468
4496
  }
4469
4497
  ));
4470
4498
  TableBody.displayName = "TableBody";
4471
- var TableFooter = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4499
+ var TableFooter = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4472
4500
  "tfoot",
4473
4501
  {
4474
4502
  ref,
@@ -4480,7 +4508,7 @@ var TableFooter = React41.forwardRef(({ className, ...props }, ref) => /* @__PUR
4480
4508
  }
4481
4509
  ));
4482
4510
  TableFooter.displayName = "TableFooter";
4483
- var TableRow = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4511
+ var TableRow = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4484
4512
  "tr",
4485
4513
  {
4486
4514
  ref,
@@ -4492,7 +4520,7 @@ var TableRow = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__
4492
4520
  }
4493
4521
  ));
4494
4522
  TableRow.displayName = "TableRow";
4495
- var TableHead = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4523
+ var TableHead = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4496
4524
  "th",
4497
4525
  {
4498
4526
  ref,
@@ -4504,7 +4532,7 @@ var TableHead = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE_
4504
4532
  }
4505
4533
  ));
4506
4534
  TableHead.displayName = "TableHead";
4507
- var TableCell = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4535
+ var TableCell = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4508
4536
  "td",
4509
4537
  {
4510
4538
  ref,
@@ -4513,7 +4541,7 @@ var TableCell = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE_
4513
4541
  }
4514
4542
  ));
4515
4543
  TableCell.displayName = "TableCell";
4516
- var TableCaption = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4544
+ var TableCaption = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4517
4545
  "caption",
4518
4546
  {
4519
4547
  ref,
@@ -4522,21 +4550,21 @@ var TableCaption = React41.forwardRef(({ className, ...props }, ref) => /* @__PU
4522
4550
  }
4523
4551
  ));
4524
4552
  TableCaption.displayName = "TableCaption";
4525
- var TableColGroup = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("colgroup", { ref, className: cn(className), ...props }));
4553
+ var TableColGroup = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("colgroup", { ref, className: cn(className), ...props }));
4526
4554
  TableColGroup.displayName = "TableColGroup";
4527
- var TableCol = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("col", { ref, className: cn(className), ...props }));
4555
+ var TableCol = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("col", { ref, className: cn(className), ...props }));
4528
4556
  TableCol.displayName = "TableCol";
4529
4557
 
4530
4558
  // src/components/AdsTable/index.tsx
4531
- var import_jsx_runtime46 = require("react/jsx-runtime");
4532
- var AdsTableStickyHeaderContext = React42.createContext(false);
4559
+ var import_jsx_runtime47 = require("react/jsx-runtime");
4560
+ var AdsTableStickyHeaderContext = React43.createContext(false);
4533
4561
  function resolveLength(value) {
4534
4562
  if (value === void 0) {
4535
4563
  return void 0;
4536
4564
  }
4537
4565
  return typeof value === "number" ? `${value}px` : value;
4538
4566
  }
4539
- var AdsTableSurface = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4567
+ var AdsTableSurface = React43.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
4540
4568
  "div",
4541
4569
  {
4542
4570
  ref,
@@ -4548,8 +4576,8 @@ var AdsTableSurface = React42.forwardRef(({ className, ...props }, ref) => /* @_
4548
4576
  }
4549
4577
  ));
4550
4578
  AdsTableSurface.displayName = "AdsTableSurface";
4551
- var AdsTableRoot = React42.forwardRef(
4552
- ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4579
+ var AdsTableRoot = React43.forwardRef(
4580
+ ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
4553
4581
  Table,
4554
4582
  {
4555
4583
  ref,
@@ -4564,7 +4592,7 @@ var AdsTableRoot = React42.forwardRef(
4564
4592
  )
4565
4593
  );
4566
4594
  AdsTableRoot.displayName = "AdsTableRoot";
4567
- var AdsTableScrollArea = React42.forwardRef(
4595
+ var AdsTableScrollArea = React43.forwardRef(
4568
4596
  ({
4569
4597
  children,
4570
4598
  className,
@@ -4574,7 +4602,7 @@ var AdsTableScrollArea = React42.forwardRef(
4574
4602
  x,
4575
4603
  y,
4576
4604
  ...props
4577
- }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(AdsTableStickyHeaderContext.Provider, { value: stickyHeader, children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4605
+ }, ref) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(AdsTableStickyHeaderContext.Provider, { value: stickyHeader, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
4578
4606
  TableScrollArea,
4579
4607
  {
4580
4608
  ref,
@@ -4596,15 +4624,15 @@ var AdsTableScrollArea = React42.forwardRef(
4596
4624
  ) })
4597
4625
  );
4598
4626
  AdsTableScrollArea.displayName = "AdsTableScrollArea";
4599
- var AdsTable = React42.forwardRef(
4600
- ({ 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 }) }) })
4627
+ var AdsTable = React43.forwardRef(
4628
+ ({ 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 }) }) })
4601
4629
  );
4602
4630
  AdsTable.displayName = "AdsTable";
4603
- var AdsTableColGroup = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(TableColGroup, { ref, className, ...props }));
4631
+ var AdsTableColGroup = React43.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(TableColGroup, { ref, className, ...props }));
4604
4632
  AdsTableColGroup.displayName = "AdsTableColGroup";
4605
- var AdsTableCol = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(TableCol, { ref, className, ...props }));
4633
+ var AdsTableCol = React43.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(TableCol, { ref, className, ...props }));
4606
4634
  AdsTableCol.displayName = "AdsTableCol";
4607
- var AdsTableHeader = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4635
+ var AdsTableHeader = React43.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
4608
4636
  TableHeader,
4609
4637
  {
4610
4638
  ref,
@@ -4613,7 +4641,7 @@ var AdsTableHeader = React42.forwardRef(({ className, ...props }, ref) => /* @__
4613
4641
  }
4614
4642
  ));
4615
4643
  AdsTableHeader.displayName = "AdsTableHeader";
4616
- var AdsTableBody = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4644
+ var AdsTableBody = React43.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
4617
4645
  TableBody,
4618
4646
  {
4619
4647
  ref,
@@ -4622,7 +4650,7 @@ var AdsTableBody = React42.forwardRef(({ className, ...props }, ref) => /* @__PU
4622
4650
  }
4623
4651
  ));
4624
4652
  AdsTableBody.displayName = "AdsTableBody";
4625
- var AdsTableFooter = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4653
+ var AdsTableFooter = React43.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
4626
4654
  TableFooter,
4627
4655
  {
4628
4656
  ref,
@@ -4635,7 +4663,7 @@ var AdsTableFooter = React42.forwardRef(({ className, ...props }, ref) => /* @__
4635
4663
  }
4636
4664
  ));
4637
4665
  AdsTableFooter.displayName = "AdsTableFooter";
4638
- var AdsTableRow = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4666
+ var AdsTableRow = React43.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
4639
4667
  TableRow,
4640
4668
  {
4641
4669
  ref,
@@ -4647,9 +4675,9 @@ var AdsTableRow = React42.forwardRef(({ className, ...props }, ref) => /* @__PUR
4647
4675
  }
4648
4676
  ));
4649
4677
  AdsTableRow.displayName = "AdsTableRow";
4650
- var AdsTableHead = React42.forwardRef(({ className, ...props }, ref) => {
4651
- const stickyHeader = React42.useContext(AdsTableStickyHeaderContext);
4652
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4678
+ var AdsTableHead = React43.forwardRef(({ className, ...props }, ref) => {
4679
+ const stickyHeader = React43.useContext(AdsTableStickyHeaderContext);
4680
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
4653
4681
  TableHead,
4654
4682
  {
4655
4683
  ref,
@@ -4664,7 +4692,7 @@ var AdsTableHead = React42.forwardRef(({ className, ...props }, ref) => {
4664
4692
  );
4665
4693
  });
4666
4694
  AdsTableHead.displayName = "AdsTableHead";
4667
- var AdsTableCell = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4695
+ var AdsTableCell = React43.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
4668
4696
  TableCell,
4669
4697
  {
4670
4698
  ref,
@@ -4677,7 +4705,7 @@ var AdsTableCell = React42.forwardRef(({ className, ...props }, ref) => /* @__PU
4677
4705
  }
4678
4706
  ));
4679
4707
  AdsTableCell.displayName = "AdsTableCell";
4680
- var AdsTableCaption = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4708
+ var AdsTableCaption = React43.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
4681
4709
  TableCaption,
4682
4710
  {
4683
4711
  ref,
@@ -4686,12 +4714,12 @@ var AdsTableCaption = React42.forwardRef(({ className, ...props }, ref) => /* @_
4686
4714
  }
4687
4715
  ));
4688
4716
  AdsTableCaption.displayName = "AdsTableCaption";
4689
- var AdsTableSortHeader = React42.forwardRef(
4717
+ var AdsTableSortHeader = React43.forwardRef(
4690
4718
  ({ className, disabled = false, onToggleSort, sortOrder, title, ...props }, ref) => {
4691
4719
  const { messages } = useAdsI18n();
4692
4720
  const nextOrder = sortOrder === null ? "ascend" : sortOrder === "ascend" ? "descend" : null;
4693
4721
  const actionLabel = nextOrder === "ascend" ? messages.table.sortAscending : nextOrder === "descend" ? messages.table.sortDescending : messages.table.clearSort;
4694
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(AdsTableHead, { ref, className, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
4722
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(AdsTableHead, { ref, className, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
4695
4723
  Button,
4696
4724
  {
4697
4725
  "aria-label": `${title} ${actionLabel}`,
@@ -4707,15 +4735,15 @@ var AdsTableSortHeader = React42.forwardRef(
4707
4735
  type: "button",
4708
4736
  variant: "ghost",
4709
4737
  children: [
4710
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "truncate", children: title }),
4711
- /* @__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_react14.ChevronDown, { className: "h-4 w-4 rotate-180" }) : sortOrder === "descend" ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_lucide_react14.ChevronDown, { className: "h-4 w-4" }) : /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_lucide_react14.ChevronDown, { className: "h-4 w-4 opacity-60" }) })
4738
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "truncate", children: title }),
4739
+ /* @__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" }) })
4712
4740
  ]
4713
4741
  }
4714
4742
  ) });
4715
4743
  }
4716
4744
  );
4717
4745
  AdsTableSortHeader.displayName = "AdsTableSortHeader";
4718
- var AdsTableSelectionCell = React42.forwardRef(
4746
+ var AdsTableSelectionCell = React43.forwardRef(
4719
4747
  ({
4720
4748
  checked = false,
4721
4749
  className,
@@ -4726,7 +4754,7 @@ var AdsTableSelectionCell = React42.forwardRef(
4726
4754
  ...props
4727
4755
  }, ref) => {
4728
4756
  const { messages } = useAdsI18n();
4729
- 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)(
4757
+ 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)(
4730
4758
  RadioGroupItem2,
4731
4759
  {
4732
4760
  "aria-label": messages.table.selectRow,
@@ -4738,7 +4766,7 @@ var AdsTableSelectionCell = React42.forwardRef(
4738
4766
  },
4739
4767
  value
4740
4768
  }
4741
- ) : /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4769
+ ) : /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
4742
4770
  Checkbox2,
4743
4771
  {
4744
4772
  "aria-label": messages.table.selectRow,
@@ -4752,10 +4780,10 @@ var AdsTableSelectionCell = React42.forwardRef(
4752
4780
  }
4753
4781
  );
4754
4782
  AdsTableSelectionCell.displayName = "AdsTableSelectionCell";
4755
- var AdsTableExpandCell = React42.forwardRef(
4783
+ var AdsTableExpandCell = React43.forwardRef(
4756
4784
  ({ className, disabled = false, expanded = false, onToggle, ...props }, ref) => {
4757
4785
  const { messages } = useAdsI18n();
4758
- 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)(
4786
+ 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)(
4759
4787
  Button,
4760
4788
  {
4761
4789
  "aria-label": expanded ? messages.table.collapseRow : messages.table.expandRow,
@@ -4772,7 +4800,7 @@ var AdsTableExpandCell = React42.forwardRef(
4772
4800
  size: "sm",
4773
4801
  type: "button",
4774
4802
  variant: "ghost",
4775
- children: expanded ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_lucide_react14.ChevronDown, { className: "h-4 w-4" }) : /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_lucide_react14.ChevronRight, { className: "h-4 w-4" })
4803
+ 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" })
4776
4804
  }
4777
4805
  ) }) });
4778
4806
  }
@@ -4780,7 +4808,7 @@ var AdsTableExpandCell = React42.forwardRef(
4780
4808
  AdsTableExpandCell.displayName = "AdsTableExpandCell";
4781
4809
 
4782
4810
  // src/components/AdsDataTable/index.tsx
4783
- var import_jsx_runtime47 = require("react/jsx-runtime");
4811
+ var import_jsx_runtime48 = require("react/jsx-runtime");
4784
4812
  var SKELETON_ROW_COUNT = 4;
4785
4813
  var FLEX_WIDTH_UNIT = 160;
4786
4814
  var sizeClassNames = {
@@ -4902,7 +4930,7 @@ function getCellStyle(column, overrideWidth) {
4902
4930
  return Object.keys(style).length > 0 ? style : void 0;
4903
4931
  }
4904
4932
  function renderCellValue(value, ellipsis) {
4905
- if (React43.isValidElement(value)) {
4933
+ if (React44.isValidElement(value)) {
4906
4934
  return value;
4907
4935
  }
4908
4936
  if (value === null || value === void 0) {
@@ -4912,7 +4940,7 @@ function renderCellValue(value, ellipsis) {
4912
4940
  if (ellipsis) {
4913
4941
  const shouldShowTitle = typeof ellipsis === "object" ? ellipsis.showTitle !== false : true;
4914
4942
  const maxWidth = typeof ellipsis === "object" ? ellipsis.maxWidth : void 0;
4915
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
4943
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
4916
4944
  "div",
4917
4945
  {
4918
4946
  className: "truncate",
@@ -5025,48 +5053,48 @@ function AdsDataTable({
5025
5053
  suppressRowClickSelection = true
5026
5054
  }) {
5027
5055
  const { messages } = useAdsI18n();
5028
- const resolvedColumns = React43.useMemo(() => columns.filter(Boolean), [columns]);
5029
- const [internalSortState, setInternalSortState] = React43.useState(
5056
+ const resolvedColumns = React44.useMemo(() => columns.filter(Boolean), [columns]);
5057
+ const [internalSortState, setInternalSortState] = React44.useState(
5030
5058
  () => getInitialSortState(resolvedColumns)
5031
5059
  );
5032
- const [internalSelectedKeys, setInternalSelectedKeys] = React43.useState(
5060
+ const [internalSelectedKeys, setInternalSelectedKeys] = React44.useState(
5033
5061
  rowSelection?.defaultSelectedRowKeys ?? rowSelection?.selectedRowKeys ?? []
5034
5062
  );
5035
- const [internalFilterValues, setInternalFilterValues] = React43.useState(
5063
+ const [internalFilterValues, setInternalFilterValues] = React44.useState(
5036
5064
  () => getInitialFilterValues(resolvedColumns)
5037
5065
  );
5038
- const [internalExpandedKeys, setInternalExpandedKeys] = React43.useState(
5066
+ const [internalExpandedKeys, setInternalExpandedKeys] = React44.useState(
5039
5067
  expandable?.defaultExpandedRowKeys ?? expandable?.expandedRowKeys ?? []
5040
5068
  );
5041
- const [internalColumnWidths, setInternalColumnWidths] = React43.useState({});
5042
- const [internalCurrentPage, setInternalCurrentPage] = React43.useState(
5069
+ const [internalColumnWidths, setInternalColumnWidths] = React44.useState({});
5070
+ const [internalCurrentPage, setInternalCurrentPage] = React44.useState(
5043
5071
  pagination !== false ? pagination.defaultCurrent ?? pagination.current ?? 1 : 1
5044
5072
  );
5045
- const [internalPageSize, setInternalPageSize] = React43.useState(
5073
+ const [internalPageSize, setInternalPageSize] = React44.useState(
5046
5074
  pagination !== false ? pagination.defaultPageSize ?? pagination.pageSize ?? 10 : 10
5047
5075
  );
5048
- const [activeResize, setActiveResize] = React43.useState(null);
5049
- React43.useEffect(() => {
5076
+ const [activeResize, setActiveResize] = React44.useState(null);
5077
+ React44.useEffect(() => {
5050
5078
  if (rowSelection?.selectedRowKeys !== void 0) {
5051
5079
  setInternalSelectedKeys(rowSelection.selectedRowKeys);
5052
5080
  }
5053
5081
  }, [rowSelection?.selectedRowKeys]);
5054
- React43.useEffect(() => {
5082
+ React44.useEffect(() => {
5055
5083
  if (expandable?.expandedRowKeys !== void 0) {
5056
5084
  setInternalExpandedKeys(expandable.expandedRowKeys);
5057
5085
  }
5058
5086
  }, [expandable?.expandedRowKeys]);
5059
- React43.useEffect(() => {
5087
+ React44.useEffect(() => {
5060
5088
  if (pagination !== false && pagination.current !== void 0) {
5061
5089
  setInternalCurrentPage(pagination.current);
5062
5090
  }
5063
5091
  }, [pagination]);
5064
- React43.useEffect(() => {
5092
+ React44.useEffect(() => {
5065
5093
  if (pagination !== false && pagination.pageSize !== void 0) {
5066
5094
  setInternalPageSize(pagination.pageSize);
5067
5095
  }
5068
5096
  }, [pagination]);
5069
- React43.useEffect(() => {
5097
+ React44.useEffect(() => {
5070
5098
  setInternalFilterValues((previous) => {
5071
5099
  const next = { ...previous };
5072
5100
  let hasChanged = false;
@@ -5087,7 +5115,7 @@ function AdsDataTable({
5087
5115
  return hasChanged ? next : previous;
5088
5116
  });
5089
5117
  }, [resolvedColumns]);
5090
- const controlledSortState = React43.useMemo(() => {
5118
+ const controlledSortState = React44.useMemo(() => {
5091
5119
  const columnIndex = resolvedColumns.findIndex((column2) => column2.sortOrder !== void 0);
5092
5120
  if (columnIndex === -1) {
5093
5121
  return null;
@@ -5107,7 +5135,7 @@ function AdsDataTable({
5107
5135
  const density = sizeClassNames[size];
5108
5136
  const paginationMode = pagination === false ? "client" : pagination.mode ?? "client";
5109
5137
  const allowsRowSelectionByClick = Boolean(rowSelection) && !suppressRowClickSelection;
5110
- const filterValues = React43.useMemo(
5138
+ const filterValues = React44.useMemo(
5111
5139
  () => resolvedColumns.reduce((accumulator, column, index) => {
5112
5140
  const columnKey = getColumnKey(column, index);
5113
5141
  accumulator[columnKey] = column.filterValue ?? internalFilterValues[columnKey] ?? "";
@@ -5115,7 +5143,7 @@ function AdsDataTable({
5115
5143
  }, {}),
5116
5144
  [internalFilterValues, resolvedColumns]
5117
5145
  );
5118
- const filteredData = React43.useMemo(() => {
5146
+ const filteredData = React44.useMemo(() => {
5119
5147
  const filterableColumns = resolvedColumns.filter((column) => column.filter);
5120
5148
  if (filterableColumns.length === 0) {
5121
5149
  return dataSource;
@@ -5135,7 +5163,7 @@ function AdsDataTable({
5135
5163
  })
5136
5164
  );
5137
5165
  }, [dataSource, filterValues, resolvedColumns]);
5138
- const sortedData = React43.useMemo(() => {
5166
+ const sortedData = React44.useMemo(() => {
5139
5167
  if (!sortState || !sortState.column || sortState.order === null) {
5140
5168
  return filteredData;
5141
5169
  }
@@ -5162,7 +5190,7 @@ function AdsDataTable({
5162
5190
  Math.max(1, pagination.current ?? internalCurrentPage),
5163
5191
  totalPages
5164
5192
  );
5165
- React43.useEffect(() => {
5193
+ React44.useEffect(() => {
5166
5194
  if (pagination === false || pagination.current !== void 0) {
5167
5195
  return;
5168
5196
  }
@@ -5170,14 +5198,14 @@ function AdsDataTable({
5170
5198
  setInternalCurrentPage(currentPage);
5171
5199
  }
5172
5200
  }, [currentPage, internalCurrentPage, pagination]);
5173
- const paginatedData = React43.useMemo(() => {
5201
+ const paginatedData = React44.useMemo(() => {
5174
5202
  if (pagination === false || paginationMode === "server") {
5175
5203
  return sortedData;
5176
5204
  }
5177
5205
  const start = (currentPage - 1) * currentPageSize;
5178
5206
  return sortedData.slice(start, start + currentPageSize);
5179
5207
  }, [currentPage, currentPageSize, pagination, paginationMode, sortedData]);
5180
- const handleSortChange = React43.useCallback(
5208
+ const handleSortChange = React44.useCallback(
5181
5209
  (column, columnKey, nextOrder) => {
5182
5210
  const nextSortState = nextOrder === null ? null : {
5183
5211
  column,
@@ -5191,7 +5219,7 @@ function AdsDataTable({
5191
5219
  },
5192
5220
  [controlledSortState, onSortChange]
5193
5221
  );
5194
- const handleFilterChange = React43.useCallback(
5222
+ const handleFilterChange = React44.useCallback(
5195
5223
  (column, columnKey, nextValue) => {
5196
5224
  if (column.filterValue === void 0) {
5197
5225
  setInternalFilterValues((previous) => ({
@@ -5206,7 +5234,7 @@ function AdsDataTable({
5206
5234
  },
5207
5235
  [pagination]
5208
5236
  );
5209
- const updateSelection = React43.useCallback(
5237
+ const updateSelection = React44.useCallback(
5210
5238
  (nextKeys) => {
5211
5239
  if (!rowSelection) {
5212
5240
  return;
@@ -5221,7 +5249,7 @@ function AdsDataTable({
5221
5249
  },
5222
5250
  [dataSource, rowKey, rowSelection]
5223
5251
  );
5224
- const toggleSelectionFromRowClick = React43.useCallback(
5252
+ const toggleSelectionFromRowClick = React44.useCallback(
5225
5253
  (record, recordKey) => {
5226
5254
  if (!allowsRowSelectionByClick || !rowSelection) {
5227
5255
  return;
@@ -5235,7 +5263,7 @@ function AdsDataTable({
5235
5263
  },
5236
5264
  [allowsRowSelectionByClick, rowSelection, selectedKeys, updateSelection]
5237
5265
  );
5238
- const toggleExpanded = React43.useCallback(
5266
+ const toggleExpanded = React44.useCallback(
5239
5267
  (record, recordKey) => {
5240
5268
  if (!expandable?.expandedRowRender) {
5241
5269
  return;
@@ -5252,11 +5280,11 @@ function AdsDataTable({
5252
5280
  },
5253
5281
  [expandable, expandedKeys]
5254
5282
  );
5255
- 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: [
5256
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(AdsEmptyTitle, { children: emptyText ?? messages.table.noDataAvailable }),
5257
- typeof emptyText === "string" ? null : /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(AdsEmptyDescription, { children: messages.table.noDataAvailable })
5283
+ 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: [
5284
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(AdsEmptyTitle, { children: emptyText ?? messages.table.noDataAvailable }),
5285
+ typeof emptyText === "string" ? null : /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(AdsEmptyDescription, { children: messages.table.noDataAvailable })
5258
5286
  ] }) }) });
5259
- const handlePaginationChange = React43.useCallback(
5287
+ const handlePaginationChange = React44.useCallback(
5260
5288
  (page, nextPageSize) => {
5261
5289
  if (pagination === false) {
5262
5290
  return;
@@ -5271,7 +5299,7 @@ function AdsDataTable({
5271
5299
  },
5272
5300
  [currentPageSize, pagination]
5273
5301
  );
5274
- const handlePageSizeChange = React43.useCallback(
5302
+ const handlePageSizeChange = React44.useCallback(
5275
5303
  (nextPageSize, page) => {
5276
5304
  if (pagination === false) {
5277
5305
  return;
@@ -5286,28 +5314,28 @@ function AdsDataTable({
5286
5314
  },
5287
5315
  [pagination]
5288
5316
  );
5289
- const visibleRowEntries = React43.useMemo(
5317
+ const visibleRowEntries = React44.useMemo(
5290
5318
  () => paginatedData.map((record, index) => ({
5291
5319
  key: resolveRowKey(record, index, rowKey),
5292
5320
  record
5293
5321
  })),
5294
5322
  [paginatedData, rowKey]
5295
5323
  );
5296
- const visibleSelectableKeys = React43.useMemo(
5324
+ const visibleSelectableKeys = React44.useMemo(
5297
5325
  () => visibleRowEntries.map((entry) => entry.key),
5298
5326
  [visibleRowEntries]
5299
5327
  );
5300
- const selectedVisibleCount = React43.useMemo(
5328
+ const selectedVisibleCount = React44.useMemo(
5301
5329
  () => visibleSelectableKeys.filter((key) => selectedKeys.includes(key)).length,
5302
5330
  [selectedKeys, visibleSelectableKeys]
5303
5331
  );
5304
5332
  const allVisibleRowsSelected = visibleSelectableKeys.length > 0 && selectedVisibleCount === visibleSelectableKeys.length;
5305
5333
  const someVisibleRowsSelected = selectedVisibleCount > 0 && selectedVisibleCount < visibleSelectableKeys.length;
5306
- const getColumnWidthOverride = React43.useCallback(
5334
+ const getColumnWidthOverride = React44.useCallback(
5307
5335
  (column, columnKey) => internalColumnWidths[columnKey] ?? getResolvedColumnWidth(column),
5308
5336
  [internalColumnWidths]
5309
5337
  );
5310
- const startColumnResize = React43.useCallback(
5338
+ const startColumnResize = React44.useCallback(
5311
5339
  (event, column, columnKey) => {
5312
5340
  event.preventDefault();
5313
5341
  event.stopPropagation();
@@ -5338,7 +5366,7 @@ function AdsDataTable({
5338
5366
  },
5339
5367
  [internalColumnWidths]
5340
5368
  );
5341
- const renderColumnHeader = React43.useCallback(
5369
+ const renderColumnHeader = React44.useCallback(
5342
5370
  (column, columnKey, columnSortOrder) => {
5343
5371
  const headerTitle = getColumnHeader(column, columnKey);
5344
5372
  const hasSorter = Boolean(column.sorter);
@@ -5349,9 +5377,9 @@ function AdsDataTable({
5349
5377
  }
5350
5378
  const nextOrder = columnSortOrder === null ? "ascend" : columnSortOrder === "ascend" ? "descend" : null;
5351
5379
  const actionLabel = nextOrder === "ascend" ? messages.table.sortAscending : nextOrder === "descend" ? messages.table.sortDescending : messages.table.clearSort;
5352
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "relative flex min-w-0 items-center gap-2 pr-3", children: [
5353
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex min-w-0 flex-1 items-center justify-between gap-2", children: [
5354
- hasSorter ? /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
5380
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "relative flex min-w-0 items-center gap-2 pr-3", children: [
5381
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex min-w-0 flex-1 items-center justify-between gap-2", children: [
5382
+ hasSorter ? /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
5355
5383
  Button,
5356
5384
  {
5357
5385
  "aria-label": `${headerTitle} ${actionLabel}`,
@@ -5364,13 +5392,13 @@ function AdsDataTable({
5364
5392
  type: "button",
5365
5393
  variant: "ghost",
5366
5394
  children: [
5367
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "truncate", children: headerTitle }),
5368
- /* @__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_react15.ChevronDown, { className: "h-4 w-4 rotate-180" }) : columnSortOrder === "descend" ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_lucide_react15.ChevronDown, { className: "h-4 w-4" }) : /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_lucide_react15.ChevronDown, { className: "h-4 w-4 opacity-60" }) })
5395
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("span", { className: "truncate", children: headerTitle }),
5396
+ /* @__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" }) })
5369
5397
  ]
5370
5398
  }
5371
- ) : /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "truncate", children: headerTitle }),
5372
- hasFilter ? /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(AdsPopover, { children: [
5373
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(AdsPopoverTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
5399
+ ) : /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("span", { className: "truncate", children: headerTitle }),
5400
+ hasFilter ? /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(AdsPopover, { children: [
5401
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(AdsPopoverTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
5374
5402
  Button,
5375
5403
  {
5376
5404
  "aria-label": `${headerTitle} ${messages.table.filterColumn}`,
@@ -5382,10 +5410,10 @@ function AdsDataTable({
5382
5410
  size: "sm",
5383
5411
  type: "button",
5384
5412
  variant: "ghost",
5385
- children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_lucide_react15.Filter, { className: "h-3.5 w-3.5" })
5413
+ children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_lucide_react15.Filter, { className: "h-3.5 w-3.5" })
5386
5414
  }
5387
5415
  ) }),
5388
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(AdsPopoverContent, { align: "end", className: "w-64", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
5416
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(AdsPopoverContent, { align: "end", className: "w-64", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
5389
5417
  AdsInput,
5390
5418
  {
5391
5419
  clearable: true,
@@ -5398,7 +5426,7 @@ function AdsDataTable({
5398
5426
  ) })
5399
5427
  ] }) : null
5400
5428
  ] }),
5401
- hasResizeHandle ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
5429
+ hasResizeHandle ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
5402
5430
  "span",
5403
5431
  {
5404
5432
  "aria-label": `Resize ${headerTitle} column`,
@@ -5416,12 +5444,12 @@ function AdsDataTable({
5416
5444
  },
5417
5445
  [activeResize?.columnKey, filterValues, handleFilterChange, handleSortChange, messages.table, startColumnResize]
5418
5446
  );
5419
- const tableNode = /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(AdsTableSurface, { className: cn("flex min-h-0 flex-1 flex-col", className), children: [
5420
- /* @__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: [
5421
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(AdsTableColGroup, { children: [
5422
- hasSelectionColumn ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(AdsTableCol, { style: { width: rowSelection?.columnWidth ?? 48 } }) : null,
5423
- hasExpandableColumn ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(AdsTableCol, { style: { width: 48 } }) : null,
5424
- resolvedColumns.map((column, index) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
5447
+ const tableNode = /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(AdsTableSurface, { className: cn("flex min-h-0 flex-1 flex-col", className), children: [
5448
+ /* @__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: [
5449
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(AdsTableColGroup, { children: [
5450
+ hasSelectionColumn ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(AdsTableCol, { style: { width: rowSelection?.columnWidth ?? 48 } }) : null,
5451
+ hasExpandableColumn ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(AdsTableCol, { style: { width: 48 } }) : null,
5452
+ resolvedColumns.map((column, index) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
5425
5453
  AdsTableCol,
5426
5454
  {
5427
5455
  style: getCellStyle(column, getColumnWidthOverride(column, getColumnKey(column, index)))
@@ -5429,8 +5457,8 @@ function AdsDataTable({
5429
5457
  getColumnKey(column, index)
5430
5458
  ))
5431
5459
  ] }),
5432
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(AdsTableHeader, { children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(AdsTableRow, { children: [
5433
- 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)(
5460
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(AdsTableHeader, { children: /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(AdsTableRow, { children: [
5461
+ 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)(
5434
5462
  Checkbox2,
5435
5463
  {
5436
5464
  "aria-label": messages.table.selectAllRows,
@@ -5447,11 +5475,11 @@ function AdsDataTable({
5447
5475
  onClick: (event) => event.stopPropagation()
5448
5476
  }
5449
5477
  ) }) : null }) : null,
5450
- hasExpandableColumn ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(AdsTableHead, { className: "w-12 p-2" }) : null,
5478
+ hasExpandableColumn ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(AdsTableHead, { className: "w-12 p-2" }) : null,
5451
5479
  resolvedColumns.map((column, index) => {
5452
5480
  const columnKey = getColumnKey(column, index);
5453
5481
  const columnSortOrder = sortState?.columnKey === columnKey ? sortState.order : column.sortOrder ?? null;
5454
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
5482
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
5455
5483
  AdsTableHead,
5456
5484
  {
5457
5485
  className: cn(density.head, column.className, column.headerClassName),
@@ -5462,14 +5490,14 @@ function AdsDataTable({
5462
5490
  );
5463
5491
  })
5464
5492
  ] }) }),
5465
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(AdsTableBody, { children: loading ? Array.from({ length: SKELETON_ROW_COUNT }, (_, skeletonIndex) => /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(AdsTableRow, { children: [
5466
- 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,
5467
- 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,
5468
- resolvedColumns.map((column, index) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
5493
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(AdsTableBody, { children: loading ? Array.from({ length: SKELETON_ROW_COUNT }, (_, skeletonIndex) => /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(AdsTableRow, { children: [
5494
+ 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,
5495
+ 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,
5496
+ resolvedColumns.map((column, index) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
5469
5497
  AdsTableCell,
5470
5498
  {
5471
5499
  className: cn(density.cell, column.className),
5472
- children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(AdsSkeleton, { className: "h-4 w-full rounded" })
5500
+ children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(AdsSkeleton, { className: "h-4 w-full rounded" })
5473
5501
  },
5474
5502
  `${getColumnKey(column, index)}-${skeletonIndex}`
5475
5503
  ))
@@ -5478,7 +5506,7 @@ function AdsDataTable({
5478
5506
  const isExpanded = expandedKeys.includes(recordKey);
5479
5507
  const canExpand = !!expandable?.expandedRowRender && (!expandable.rowExpandable || expandable.rowExpandable(record));
5480
5508
  const dataRowClassName = typeof rowClassName === "function" ? rowClassName(record, index) : rowClassName;
5481
- const row = /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
5509
+ const row = /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
5482
5510
  AdsTableRow,
5483
5511
  {
5484
5512
  className: cn(
@@ -5501,7 +5529,7 @@ function AdsDataTable({
5501
5529
  toggleSelectionFromRowClick(record, recordKey);
5502
5530
  },
5503
5531
  children: [
5504
- hasSelectionColumn ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
5532
+ hasSelectionColumn ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
5505
5533
  AdsTableSelectionCell,
5506
5534
  {
5507
5535
  checked: selectedKeys.includes(recordKey),
@@ -5517,7 +5545,7 @@ function AdsDataTable({
5517
5545
  value: String(recordKey)
5518
5546
  }
5519
5547
  ) : null,
5520
- hasExpandableColumn ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
5548
+ hasExpandableColumn ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
5521
5549
  AdsTableExpandCell,
5522
5550
  {
5523
5551
  disabled: !canExpand,
@@ -5530,7 +5558,7 @@ function AdsDataTable({
5530
5558
  resolveRenderedCellContent(column, record, index),
5531
5559
  column.ellipsis
5532
5560
  );
5533
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
5561
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
5534
5562
  AdsTableCell,
5535
5563
  {
5536
5564
  className: cn(
@@ -5556,12 +5584,12 @@ function AdsDataTable({
5556
5584
  }
5557
5585
  return [
5558
5586
  row,
5559
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(AdsTableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
5587
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(AdsTableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
5560
5588
  AdsTableCell,
5561
5589
  {
5562
5590
  className: "p-0",
5563
5591
  colSpan: resolvedColumns.length + Number(hasSelectionColumn) + Number(hasExpandableColumn),
5564
- children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
5592
+ children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
5565
5593
  "div",
5566
5594
  {
5567
5595
  className: cn(
@@ -5575,7 +5603,7 @@ function AdsDataTable({
5575
5603
  ) }, `${String(recordKey)}-expanded`)
5576
5604
  ];
5577
5605
  }) : [
5578
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(AdsTableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
5606
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(AdsTableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
5579
5607
  AdsTableCell,
5580
5608
  {
5581
5609
  colSpan: resolvedColumns.length + Number(hasSelectionColumn) + Number(hasExpandableColumn),
@@ -5585,8 +5613,8 @@ function AdsDataTable({
5585
5613
  ) }, "empty-row")
5586
5614
  ] })
5587
5615
  ] }) }),
5588
- footer ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "border-t border-border p-3", children: footer }) : null,
5589
- 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)(
5616
+ footer ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "border-t border-border p-3", children: footer }) : null,
5617
+ 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)(
5590
5618
  AdsDataPagination,
5591
5619
  {
5592
5620
  ariaLabel: messages.pagination.navigation,
@@ -5608,7 +5636,7 @@ function AdsDataTable({
5608
5636
  ) }) : null
5609
5637
  ] });
5610
5638
  if (rowSelection?.type === "radio") {
5611
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
5639
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
5612
5640
  RadioGroup2,
5613
5641
  {
5614
5642
  onValueChange: (value) => {
@@ -5629,7 +5657,7 @@ function AdsDataTable({
5629
5657
  }
5630
5658
 
5631
5659
  // src/components/AdsDataTableToolbar/index.tsx
5632
- var import_jsx_runtime48 = require("react/jsx-runtime");
5660
+ var import_jsx_runtime49 = require("react/jsx-runtime");
5633
5661
  function AdsDataTableToolbar({
5634
5662
  action,
5635
5663
  className,
@@ -5641,7 +5669,7 @@ function AdsDataTableToolbar({
5641
5669
  onSearchChange,
5642
5670
  onSearchClear
5643
5671
  }) {
5644
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
5672
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
5645
5673
  "div",
5646
5674
  {
5647
5675
  className: cn(
@@ -5649,9 +5677,9 @@ function AdsDataTableToolbar({
5649
5677
  className
5650
5678
  ),
5651
5679
  children: [
5652
- /* @__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 }),
5653
- /* @__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: [
5654
- /* @__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)(
5680
+ /* @__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 }),
5681
+ /* @__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: [
5682
+ /* @__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)(
5655
5683
  AdsInput,
5656
5684
  {
5657
5685
  className: cn(
@@ -5665,7 +5693,7 @@ function AdsDataTableToolbar({
5665
5693
  value: searchValue
5666
5694
  }
5667
5695
  ) }),
5668
- action ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "shrink-0", children: action }) : null
5696
+ action ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "shrink-0", children: action }) : null
5669
5697
  ] })
5670
5698
  ]
5671
5699
  }
@@ -5673,7 +5701,7 @@ function AdsDataTableToolbar({
5673
5701
  }
5674
5702
 
5675
5703
  // src/components/AdsViewCustomersDataTable/index.tsx
5676
- var import_jsx_runtime49 = require("react/jsx-runtime");
5704
+ var import_jsx_runtime50 = require("react/jsx-runtime");
5677
5705
  function resolveHeight(value) {
5678
5706
  if (value === void 0) {
5679
5707
  return 500;
@@ -5705,13 +5733,13 @@ function AdsViewCustomersDataTable({
5705
5733
  ...props
5706
5734
  }) {
5707
5735
  const tableHeight = resolveHeight(height);
5708
- 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: [
5709
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("p", { className: "text-sm font-medium text-white", children: errorTitle }),
5710
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("p", { className: "max-w-md text-sm text-[#848484]", children: errorDescription }),
5711
- onRetry ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(AdsButton, { intent: "primary", onClick: onRetry, children: retryLabel }) : null
5736
+ 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: [
5737
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("p", { className: "text-sm font-medium text-white", children: errorTitle }),
5738
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("p", { className: "max-w-md text-sm text-[#848484]", children: errorDescription }),
5739
+ onRetry ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(AdsButton, { intent: "primary", onClick: onRetry, children: retryLabel }) : null
5712
5740
  ] });
5713
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "overflow-hidden rounded-xl border border-[#27282F] bg-[#1B1C21]", children: [
5714
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
5741
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "overflow-hidden rounded-xl border border-[#27282F] bg-[#1B1C21]", children: [
5742
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
5715
5743
  AdsDataTableToolbar,
5716
5744
  {
5717
5745
  action: toolbarAction,
@@ -5723,7 +5751,7 @@ function AdsViewCustomersDataTable({
5723
5751
  }
5724
5752
  ),
5725
5753
  error ? resolvedErrorState : null,
5726
- !error ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
5754
+ !error ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
5727
5755
  AdsDataTable,
5728
5756
  {
5729
5757
  ...props,
@@ -5758,20 +5786,20 @@ function AdsViewCustomersDataTable({
5758
5786
  }
5759
5787
 
5760
5788
  // src/components/AdsProgress/index.tsx
5761
- var React45 = __toESM(require("react"), 1);
5789
+ var React46 = __toESM(require("react"), 1);
5762
5790
 
5763
5791
  // src/primitives/progress.tsx
5764
- var React44 = __toESM(require("react"), 1);
5792
+ var React45 = __toESM(require("react"), 1);
5765
5793
  var ProgressPrimitive = __toESM(require("@radix-ui/react-progress"), 1);
5766
- var import_jsx_runtime50 = require("react/jsx-runtime");
5767
- var Progress = React44.forwardRef(({ className, indicatorClassName, value, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
5794
+ var import_jsx_runtime51 = require("react/jsx-runtime");
5795
+ var Progress = React45.forwardRef(({ className, indicatorClassName, value, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
5768
5796
  ProgressPrimitive.Root,
5769
5797
  {
5770
5798
  className: cn("relative h-4 w-full overflow-hidden rounded-full bg-secondary", className),
5771
5799
  ref,
5772
5800
  value,
5773
5801
  ...props,
5774
- children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
5802
+ children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
5775
5803
  ProgressPrimitive.Indicator,
5776
5804
  {
5777
5805
  className: cn("h-full w-full flex-1 bg-primary transition-all", indicatorClassName),
@@ -5783,13 +5811,13 @@ var Progress = React44.forwardRef(({ className, indicatorClassName, value, ...pr
5783
5811
  Progress.displayName = ProgressPrimitive.Root.displayName;
5784
5812
 
5785
5813
  // src/components/AdsProgress/index.tsx
5786
- var import_jsx_runtime51 = require("react/jsx-runtime");
5814
+ var import_jsx_runtime52 = require("react/jsx-runtime");
5787
5815
  var progressBaseClassName = "h-2 rounded-radius-full bg-[color:color-mix(in_srgb,var(--primary)_20%,transparent)]";
5788
5816
  var progressIndicatorVariantClassName = {
5789
5817
  ai: "bg-brand-gradient",
5790
5818
  default: "bg-primary"
5791
5819
  };
5792
- var Progress2 = React45.forwardRef(({ className, indicatorClassName, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
5820
+ var Progress2 = React46.forwardRef(({ className, indicatorClassName, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
5793
5821
  Progress,
5794
5822
  {
5795
5823
  className: cn(progressBaseClassName, className),
@@ -5799,7 +5827,7 @@ var Progress2 = React45.forwardRef(({ className, indicatorClassName, ...props },
5799
5827
  }
5800
5828
  ));
5801
5829
  Progress2.displayName = "Progress";
5802
- var AdsProgress = React45.forwardRef(
5830
+ var AdsProgress = React46.forwardRef(
5803
5831
  ({
5804
5832
  className,
5805
5833
  descriptionPlacement = "above",
@@ -5818,12 +5846,12 @@ var AdsProgress = React45.forwardRef(
5818
5846
  id
5819
5847
  });
5820
5848
  const labelId = label ? `${description.inputId}-label` : void 0;
5821
- const helperNode = helperText ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(AdsFieldDescription, { id: description.helperId, children: helperText }) : null;
5822
- const errorNode = errorText ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(AdsFieldError, { id: description.errorId, children: errorText }) : null;
5823
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(AdsFieldItem, { children: [
5824
- label ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(AdsFieldLabel, { id: labelId, children: label }) : null,
5849
+ const helperNode = helperText ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(AdsFieldDescription, { id: description.helperId, children: helperText }) : null;
5850
+ const errorNode = errorText ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(AdsFieldError, { id: description.errorId, children: errorText }) : null;
5851
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(AdsFieldItem, { children: [
5852
+ label ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(AdsFieldLabel, { id: labelId, children: label }) : null,
5825
5853
  descriptionPlacement === "above" ? helperNode : null,
5826
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
5854
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
5827
5855
  Progress,
5828
5856
  {
5829
5857
  "aria-describedby": description.describedBy,
@@ -5850,11 +5878,11 @@ AdsProgress.displayName = "AdsProgress";
5850
5878
  var import_recharts2 = require("recharts");
5851
5879
 
5852
5880
  // src/primitives/chart.tsx
5853
- var React46 = __toESM(require("react"), 1);
5881
+ var React47 = __toESM(require("react"), 1);
5854
5882
  var import_recharts = require("recharts");
5855
- var import_jsx_runtime52 = require("react/jsx-runtime");
5856
- var chartContext = React46.createContext(null);
5857
- var ChartContainer = React46.forwardRef(
5883
+ var import_jsx_runtime53 = require("react/jsx-runtime");
5884
+ var chartContext = React47.createContext(null);
5885
+ var ChartContainer = React47.forwardRef(
5858
5886
  ({ children, className, config, height = 240, style, ...props }, ref) => {
5859
5887
  const chartStyle = Object.entries(config).reduce((variables, [key, item]) => {
5860
5888
  if (item.color) {
@@ -5862,7 +5890,7 @@ var ChartContainer = React46.forwardRef(
5862
5890
  }
5863
5891
  return variables;
5864
5892
  }, {});
5865
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(chartContext.Provider, { value: config, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
5893
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(chartContext.Provider, { value: config, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
5866
5894
  "div",
5867
5895
  {
5868
5896
  className: cn("relative w-full text-xs", className),
@@ -5870,7 +5898,7 @@ var ChartContainer = React46.forwardRef(
5870
5898
  ref,
5871
5899
  style: { height, ...chartStyle, ...style },
5872
5900
  ...props,
5873
- children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_recharts.ResponsiveContainer, { height: "100%", width: "100%", children })
5901
+ children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_recharts.ResponsiveContainer, { height: "100%", width: "100%", children })
5874
5902
  }
5875
5903
  ) });
5876
5904
  }
@@ -5878,7 +5906,7 @@ var ChartContainer = React46.forwardRef(
5878
5906
  ChartContainer.displayName = "ChartContainer";
5879
5907
 
5880
5908
  // src/components/AdsRadialProgressChart/index.tsx
5881
- var import_jsx_runtime53 = require("react/jsx-runtime");
5909
+ var import_jsx_runtime54 = require("react/jsx-runtime");
5882
5910
  var DEFAULT_SIZE = 160;
5883
5911
  var DEFAULT_STROKE_WIDTH = 14;
5884
5912
  function clamp(value, min, max) {
@@ -5905,26 +5933,30 @@ function AdsRadialProgressChart({
5905
5933
  safeSize / 2
5906
5934
  );
5907
5935
  const chartData = [{ value: safeValue }];
5908
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
5936
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
5909
5937
  "div",
5910
5938
  {
5911
5939
  "aria-label": ariaLabel ?? `${percentage}%`,
5912
5940
  className: cn(
5913
- "relative inline-grid size-[var(--ads-radial-chart-size)] place-items-center",
5941
+ "relative inline-grid place-items-center",
5914
5942
  className
5915
5943
  ),
5916
5944
  "data-testid": "ads-radial-progress-chart",
5917
5945
  role: "img",
5918
- style: { "--ads-radial-chart-size": `${safeSize}px` },
5946
+ style: {
5947
+ "--ads-radial-chart-size": `${safeSize}px`,
5948
+ height: safeSize,
5949
+ width: safeSize
5950
+ },
5919
5951
  children: [
5920
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
5952
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
5921
5953
  ChartContainer,
5922
5954
  {
5923
5955
  "aria-hidden": "true",
5924
5956
  className: "absolute inset-0",
5925
5957
  config: { value: { color } },
5926
5958
  height: "100%",
5927
- children: /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
5959
+ children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
5928
5960
  import_recharts2.RadialBarChart,
5929
5961
  {
5930
5962
  accessibilityLayer: true,
@@ -5934,7 +5966,7 @@ function AdsRadialProgressChart({
5934
5966
  outerRadius: safeSize / 2,
5935
5967
  startAngle: 90,
5936
5968
  children: [
5937
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
5969
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
5938
5970
  import_recharts2.PolarAngleAxis,
5939
5971
  {
5940
5972
  axisLine: false,
@@ -5944,7 +5976,7 @@ function AdsRadialProgressChart({
5944
5976
  type: "number"
5945
5977
  }
5946
5978
  ),
5947
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
5979
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
5948
5980
  import_recharts2.RadialBar,
5949
5981
  {
5950
5982
  background: { fill: trackColor },
@@ -5959,7 +5991,7 @@ function AdsRadialProgressChart({
5959
5991
  )
5960
5992
  }
5961
5993
  ),
5962
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { className: "pointer-events-none absolute inset-0 flex items-center justify-center text-center", children: label ?? `${percentage}%` })
5994
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: "pointer-events-none absolute inset-0 flex items-center justify-center text-center", children: label ?? `${percentage}%` })
5963
5995
  ]
5964
5996
  }
5965
5997
  );
@@ -5967,7 +5999,7 @@ function AdsRadialProgressChart({
5967
5999
 
5968
6000
  // src/components/AdsSparklineChart/index.tsx
5969
6001
  var import_recharts3 = require("recharts");
5970
- var import_jsx_runtime54 = require("react/jsx-runtime");
6002
+ var import_jsx_runtime55 = require("react/jsx-runtime");
5971
6003
  var DEFAULT_HEIGHT = 40;
5972
6004
  function getSafeHeight(height) {
5973
6005
  return Number.isFinite(height) && height && height > 0 ? height : DEFAULT_HEIGHT;
@@ -5990,7 +6022,7 @@ function AdsSparklineChart({
5990
6022
  [dataKey]: getSafeValue(datum[dataKey])
5991
6023
  }));
5992
6024
  const safeHeight = getSafeHeight(height);
5993
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
6025
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
5994
6026
  "div",
5995
6027
  {
5996
6028
  "aria-label": ariaLabel ?? "Trend chart",
@@ -5998,16 +6030,16 @@ function AdsSparklineChart({
5998
6030
  "data-testid": "ads-sparkline-chart",
5999
6031
  role: "img",
6000
6032
  style: { height: safeHeight },
6001
- children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
6033
+ children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
6002
6034
  ChartContainer,
6003
6035
  {
6004
6036
  "aria-hidden": "true",
6005
6037
  className: "h-full",
6006
6038
  config: { value: { color } },
6007
6039
  height: "100%",
6008
- children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_recharts3.LineChart, { data: chartData, margin: { bottom: 1, left: 1, right: 1, top: 1 }, children: [
6009
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_recharts3.XAxis, { dataKey: xKey, hide: true, type: "category" }),
6010
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
6040
+ children: /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_recharts3.LineChart, { data: chartData, margin: { bottom: 1, left: 1, right: 1, top: 1 }, children: [
6041
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_recharts3.XAxis, { dataKey: xKey, hide: true, type: "category" }),
6042
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
6011
6043
  import_recharts3.Line,
6012
6044
  {
6013
6045
  activeDot: false,
@@ -6027,8 +6059,8 @@ function AdsSparklineChart({
6027
6059
  }
6028
6060
 
6029
6061
  // src/components/AdsStackedBarChart/index.tsx
6030
- var React47 = __toESM(require("react"), 1);
6031
- var import_jsx_runtime55 = require("react/jsx-runtime");
6062
+ var React48 = __toESM(require("react"), 1);
6063
+ var import_jsx_runtime56 = require("react/jsx-runtime");
6032
6064
  var DEFAULT_HEIGHT2 = 20;
6033
6065
  var DEFAULT_SEGMENT_COLOR = "var(--chart-1)";
6034
6066
  function getSafeHeight2(height) {
@@ -6043,7 +6075,7 @@ function AdsStackedBarChart({
6043
6075
  height,
6044
6076
  segments
6045
6077
  }) {
6046
- const descriptionId = React47.useId();
6078
+ const descriptionId = React48.useId();
6047
6079
  const validSegments = segments.reduce((items, segment, index) => {
6048
6080
  const value = Number.isFinite(segment.value) ? Math.max(segment.value, 0) : 0;
6049
6081
  if (value > 0) {
@@ -6063,7 +6095,7 @@ function AdsStackedBarChart({
6063
6095
  const hasData = normalizedTotal > 0 && Number.isFinite(normalizedTotal);
6064
6096
  const getPercentage = (value) => value / normalizationBase / normalizedTotal * 100;
6065
6097
  const summary = hasData ? validSegments.map((segment) => `${segment.label}: ${formatPercentage(getPercentage(segment.value))}`).join(", ") : "No data";
6066
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
6098
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
6067
6099
  "div",
6068
6100
  {
6069
6101
  "aria-label": ariaLabel ?? summary,
@@ -6073,10 +6105,10 @@ function AdsStackedBarChart({
6073
6105
  role: "img",
6074
6106
  style: { height: getSafeHeight2(height) },
6075
6107
  children: [
6076
- ariaLabel && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { className: "sr-only", id: descriptionId, children: summary }),
6077
- hasData && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { "aria-hidden": "true", className: "flex size-full", children: validSegments.map((segment, index) => {
6108
+ ariaLabel && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: "sr-only", id: descriptionId, children: summary }),
6109
+ hasData && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { "aria-hidden": "true", className: "flex size-full", children: validSegments.map((segment, index) => {
6078
6110
  const percentage = getPercentage(segment.value);
6079
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
6111
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
6080
6112
  "div",
6081
6113
  {
6082
6114
  "data-testid": "ads-stacked-bar-chart-segment",
@@ -6092,7 +6124,7 @@ function AdsStackedBarChart({
6092
6124
 
6093
6125
  // src/components/AdsBarChart/index.tsx
6094
6126
  var import_recharts4 = require("recharts");
6095
- var import_jsx_runtime56 = require("react/jsx-runtime");
6127
+ var import_jsx_runtime57 = require("react/jsx-runtime");
6096
6128
  var DEFAULT_HEIGHT3 = 160;
6097
6129
  var DEFAULT_HIGHLIGHT_COLOR = "var(--chart-2)";
6098
6130
  var DEFAULT_RADIUS = 4;
@@ -6125,7 +6157,7 @@ function AdsBarChart({
6125
6157
  const safeHeight = getSafeHeight3(height);
6126
6158
  const safeRadius = getSafeRadius(barRadius);
6127
6159
  const safeHighlightIndex = Number.isInteger(highlightIndex) ? highlightIndex : -1;
6128
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
6160
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
6129
6161
  "div",
6130
6162
  {
6131
6163
  "aria-label": ariaLabel ?? "Bar chart",
@@ -6133,16 +6165,16 @@ function AdsBarChart({
6133
6165
  "data-testid": "ads-bar-chart",
6134
6166
  role: "img",
6135
6167
  style: { height: safeHeight },
6136
- children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
6168
+ children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
6137
6169
  ChartContainer,
6138
6170
  {
6139
6171
  "aria-hidden": "true",
6140
6172
  className: "h-full",
6141
6173
  config: { value: { color } },
6142
6174
  height: "100%",
6143
- children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_recharts4.BarChart, { data: chartData, margin: { bottom: 0, left: 0, right: 0, top: 0 }, children: [
6144
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_recharts4.XAxis, { dataKey: xKey, hide: true, type: "category" }),
6145
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_recharts4.Bar, { dataKey, fill: "var(--color-value)", isAnimationActive: false, radius: safeRadius, children: chartData.map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
6175
+ children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_recharts4.BarChart, { data: chartData, margin: { bottom: 0, left: 0, right: 0, top: 0 }, children: [
6176
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_recharts4.XAxis, { dataKey: xKey, hide: true, type: "category" }),
6177
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_recharts4.Bar, { dataKey, fill: "var(--color-value)", isAnimationActive: false, radius: safeRadius, children: chartData.map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
6146
6178
  import_recharts4.Cell,
6147
6179
  {
6148
6180
  fill: index === safeHighlightIndex ? highlightColor ?? DEFAULT_HIGHLIGHT_COLOR : "var(--color-value)"
@@ -6157,13 +6189,13 @@ function AdsBarChart({
6157
6189
  }
6158
6190
 
6159
6191
  // src/components/AdsSlider/index.tsx
6160
- var React49 = __toESM(require("react"), 1);
6192
+ var React50 = __toESM(require("react"), 1);
6161
6193
 
6162
6194
  // src/primitives/slider.tsx
6163
- var React48 = __toESM(require("react"), 1);
6195
+ var React49 = __toESM(require("react"), 1);
6164
6196
  var SliderPrimitive = __toESM(require("@radix-ui/react-slider"), 1);
6165
- var import_jsx_runtime57 = require("react/jsx-runtime");
6166
- var Slider = React48.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
6197
+ var import_jsx_runtime58 = require("react/jsx-runtime");
6198
+ var Slider = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
6167
6199
  SliderPrimitive.Root,
6168
6200
  {
6169
6201
  ref,
@@ -6173,10 +6205,10 @@ var Slider = React48.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
6173
6205
  ),
6174
6206
  ...props,
6175
6207
  children: [
6176
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(SliderPrimitive.Track, { className: "relative h-1.5 w-full grow overflow-hidden rounded-full bg-secondary", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(SliderPrimitive.Range, { className: "absolute h-full bg-primary" }) }),
6208
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(SliderPrimitive.Track, { className: "relative h-1.5 w-full grow overflow-hidden rounded-full bg-secondary", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(SliderPrimitive.Range, { className: "absolute h-full bg-primary" }) }),
6177
6209
  Array.from({
6178
6210
  length: Array.isArray(props.value) ? props.value.length : Array.isArray(props.defaultValue) ? props.defaultValue.length : 1
6179
- }).map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
6211
+ }).map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
6180
6212
  SliderPrimitive.Thumb,
6181
6213
  {
6182
6214
  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"
@@ -6189,11 +6221,11 @@ var Slider = React48.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
6189
6221
  Slider.displayName = SliderPrimitive.Root.displayName;
6190
6222
 
6191
6223
  // src/components/AdsSlider/index.tsx
6192
- var import_jsx_runtime58 = require("react/jsx-runtime");
6224
+ var import_jsx_runtime59 = require("react/jsx-runtime");
6193
6225
  var sliderBaseClassName = "py-1";
6194
- var Slider2 = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Slider, { className: cn(sliderBaseClassName, className), ref, ...props }));
6226
+ var Slider2 = React50.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Slider, { className: cn(sliderBaseClassName, className), ref, ...props }));
6195
6227
  Slider2.displayName = "Slider";
6196
- var AdsSlider = React49.forwardRef(
6228
+ var AdsSlider = React50.forwardRef(
6197
6229
  ({
6198
6230
  className,
6199
6231
  descriptionPlacement = "above",
@@ -6208,12 +6240,12 @@ var AdsSlider = React49.forwardRef(
6208
6240
  helperText,
6209
6241
  id
6210
6242
  });
6211
- const helperNode = helperText ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(AdsFieldDescription, { id: description.helperId, children: helperText }) : null;
6212
- const errorNode = errorText ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(AdsFieldError, { id: description.errorId, children: errorText }) : null;
6213
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(AdsFieldItem, { children: [
6214
- label ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(AdsFieldLabel, { children: label }) : null,
6243
+ const helperNode = helperText ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(AdsFieldDescription, { id: description.helperId, children: helperText }) : null;
6244
+ const errorNode = errorText ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(AdsFieldError, { id: description.errorId, children: errorText }) : null;
6245
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(AdsFieldItem, { children: [
6246
+ label ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(AdsFieldLabel, { children: label }) : null,
6215
6247
  descriptionPlacement === "above" ? helperNode : null,
6216
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
6248
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
6217
6249
  Slider2,
6218
6250
  {
6219
6251
  "aria-describedby": description.describedBy,
@@ -6230,13 +6262,13 @@ var AdsSlider = React49.forwardRef(
6230
6262
  AdsSlider.displayName = "AdsSlider";
6231
6263
 
6232
6264
  // src/components/AdsSwitch/index.tsx
6233
- var React51 = __toESM(require("react"), 1);
6265
+ var React52 = __toESM(require("react"), 1);
6234
6266
 
6235
6267
  // src/primitives/switch.tsx
6236
- var React50 = __toESM(require("react"), 1);
6268
+ var React51 = __toESM(require("react"), 1);
6237
6269
  var SwitchPrimitives = __toESM(require("@radix-ui/react-switch"), 1);
6238
- var import_jsx_runtime59 = require("react/jsx-runtime");
6239
- var Switch = React50.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
6270
+ var import_jsx_runtime60 = require("react/jsx-runtime");
6271
+ var Switch = React51.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
6240
6272
  SwitchPrimitives.Root,
6241
6273
  {
6242
6274
  className: cn(
@@ -6245,7 +6277,7 @@ var Switch = React50.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
6245
6277
  ),
6246
6278
  ...props,
6247
6279
  ref,
6248
- children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
6280
+ children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
6249
6281
  SwitchPrimitives.Thumb,
6250
6282
  {
6251
6283
  className: cn(
@@ -6258,15 +6290,15 @@ var Switch = React50.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
6258
6290
  Switch.displayName = SwitchPrimitives.Root.displayName;
6259
6291
 
6260
6292
  // src/components/AdsSwitch/index.tsx
6261
- var import_jsx_runtime60 = require("react/jsx-runtime");
6293
+ var import_jsx_runtime61 = require("react/jsx-runtime");
6262
6294
  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";
6263
- var Switch2 = React51.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Switch, { className: cn(switchBaseClassName, className), ref, ...props }));
6295
+ var Switch2 = React52.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Switch, { className: cn(switchBaseClassName, className), ref, ...props }));
6264
6296
  Switch2.displayName = "Switch";
6265
- var AdsSwitch = React51.forwardRef(({ className, description, id, label, switchClassName, wrapperClassName, ...props }, ref) => {
6266
- const generatedId = React51.useId();
6297
+ var AdsSwitch = React52.forwardRef(({ className, description, id, label, switchClassName, wrapperClassName, ...props }, ref) => {
6298
+ const generatedId = React52.useId();
6267
6299
  const inputId = id ?? generatedId;
6268
6300
  if (!label) {
6269
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
6301
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
6270
6302
  Switch2,
6271
6303
  {
6272
6304
  className: cn(className, switchClassName),
@@ -6276,12 +6308,12 @@ var AdsSwitch = React51.forwardRef(({ className, description, id, label, switchC
6276
6308
  }
6277
6309
  );
6278
6310
  }
6279
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("label", { className: cn("block w-full cursor-pointer", wrapperClassName), htmlFor: inputId, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "flex w-full items-start gap-3", children: [
6280
- /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-1.5 pt-0.5", children: [
6281
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: "text-sm font-medium leading-5 text-foreground", children: label }),
6282
- description ? /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(AdsFieldDescription, { className: "text-sm leading-5", children: description }) : null
6311
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("label", { className: cn("block w-full cursor-pointer", wrapperClassName), htmlFor: inputId, children: /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex w-full items-start gap-3", children: [
6312
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-1.5 pt-0.5", children: [
6313
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "text-sm font-medium leading-5 text-foreground", children: label }),
6314
+ description ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(AdsFieldDescription, { className: "text-sm leading-5", children: description }) : null
6283
6315
  ] }),
6284
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: "shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
6316
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
6285
6317
  Switch2,
6286
6318
  {
6287
6319
  className: cn(className, switchClassName),
@@ -6295,14 +6327,14 @@ var AdsSwitch = React51.forwardRef(({ className, description, id, label, switchC
6295
6327
  AdsSwitch.displayName = "AdsSwitch";
6296
6328
 
6297
6329
  // src/components/AdsTabs/index.tsx
6298
- var React53 = __toESM(require("react"), 1);
6330
+ var React54 = __toESM(require("react"), 1);
6299
6331
 
6300
6332
  // src/primitives/tabs.tsx
6301
- var React52 = __toESM(require("react"), 1);
6333
+ var React53 = __toESM(require("react"), 1);
6302
6334
  var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"), 1);
6303
- var import_jsx_runtime61 = require("react/jsx-runtime");
6335
+ var import_jsx_runtime62 = require("react/jsx-runtime");
6304
6336
  var Tabs = TabsPrimitive.Root;
6305
- var TabsList = React52.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
6337
+ var TabsList = React53.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
6306
6338
  TabsPrimitive.List,
6307
6339
  {
6308
6340
  className: cn("inline-flex items-center", className),
@@ -6311,7 +6343,7 @@ var TabsList = React52.forwardRef(({ className, ...props }, ref) => /* @__PURE__
6311
6343
  }
6312
6344
  ));
6313
6345
  TabsList.displayName = TabsPrimitive.List.displayName;
6314
- var TabsTrigger = React52.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
6346
+ var TabsTrigger = React53.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
6315
6347
  TabsPrimitive.Trigger,
6316
6348
  {
6317
6349
  className: cn(
@@ -6323,7 +6355,7 @@ var TabsTrigger = React52.forwardRef(({ className, ...props }, ref) => /* @__PUR
6323
6355
  }
6324
6356
  ));
6325
6357
  TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
6326
- var TabsContent = React52.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
6358
+ var TabsContent = React53.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
6327
6359
  TabsPrimitive.Content,
6328
6360
  {
6329
6361
  className: cn("focus-visible:outline-none", className),
@@ -6334,9 +6366,9 @@ var TabsContent = React52.forwardRef(({ className, ...props }, ref) => /* @__PUR
6334
6366
  TabsContent.displayName = TabsPrimitive.Content.displayName;
6335
6367
 
6336
6368
  // src/components/AdsTabs/index.tsx
6337
- var import_jsx_runtime62 = require("react/jsx-runtime");
6369
+ var import_jsx_runtime63 = require("react/jsx-runtime");
6338
6370
  var AdsTabs = Tabs;
6339
- var AdsTabsList = React53.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
6371
+ var AdsTabsList = React54.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
6340
6372
  TabsList,
6341
6373
  {
6342
6374
  className: cn(
@@ -6348,7 +6380,7 @@ var AdsTabsList = React53.forwardRef(({ className, ...props }, ref) => /* @__PUR
6348
6380
  }
6349
6381
  ));
6350
6382
  AdsTabsList.displayName = "AdsTabsList";
6351
- var AdsTabsTrigger = React53.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
6383
+ var AdsTabsTrigger = React54.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
6352
6384
  TabsTrigger,
6353
6385
  {
6354
6386
  className: cn(
@@ -6360,7 +6392,7 @@ var AdsTabsTrigger = React53.forwardRef(({ className, ...props }, ref) => /* @__
6360
6392
  }
6361
6393
  ));
6362
6394
  AdsTabsTrigger.displayName = "AdsTabsTrigger";
6363
- var AdsTabsContent = React53.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
6395
+ var AdsTabsContent = React54.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
6364
6396
  TabsContent,
6365
6397
  {
6366
6398
  className: cn(
@@ -6374,13 +6406,13 @@ var AdsTabsContent = React53.forwardRef(({ className, ...props }, ref) => /* @__
6374
6406
  AdsTabsContent.displayName = "AdsTabsContent";
6375
6407
 
6376
6408
  // src/components/AdsToggle/index.tsx
6377
- var React55 = __toESM(require("react"), 1);
6409
+ var React56 = __toESM(require("react"), 1);
6378
6410
 
6379
6411
  // src/primitives/toggle.tsx
6380
- var React54 = __toESM(require("react"), 1);
6412
+ var React55 = __toESM(require("react"), 1);
6381
6413
  var TogglePrimitive = __toESM(require("@radix-ui/react-toggle"), 1);
6382
- var import_jsx_runtime63 = require("react/jsx-runtime");
6383
- var Toggle = React54.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
6414
+ var import_jsx_runtime64 = require("react/jsx-runtime");
6415
+ var Toggle = React55.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6384
6416
  TogglePrimitive.Root,
6385
6417
  {
6386
6418
  className: cn(
@@ -6394,7 +6426,7 @@ var Toggle = React54.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
6394
6426
  Toggle.displayName = TogglePrimitive.Root.displayName;
6395
6427
 
6396
6428
  // src/components/AdsToggle/index.tsx
6397
- var import_jsx_runtime64 = require("react/jsx-runtime");
6429
+ var import_jsx_runtime65 = require("react/jsx-runtime");
6398
6430
  var sizeClassName3 = {
6399
6431
  sm: "!h-8 px-[6px] text-sm",
6400
6432
  md: "!h-9 px-md text-sm",
@@ -6409,10 +6441,10 @@ var variantClassName = {
6409
6441
  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)]",
6410
6442
  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)]"
6411
6443
  };
6412
- var AdsToggle = React55.forwardRef(({ children, className, size = "md", variant = "default", ...props }, ref) => {
6413
- const childCount = React55.Children.count(children);
6414
- const isIconOnly = childCount === 1 && React55.isValidElement(children);
6415
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6444
+ var AdsToggle = React56.forwardRef(({ children, className, size = "md", variant = "default", ...props }, ref) => {
6445
+ const childCount = React56.Children.count(children);
6446
+ const isIconOnly = childCount === 1 && React56.isValidElement(children);
6447
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6416
6448
  Toggle,
6417
6449
  {
6418
6450
  className: cn(
@@ -6431,13 +6463,13 @@ var AdsToggle = React55.forwardRef(({ children, className, size = "md", variant
6431
6463
  AdsToggle.displayName = "AdsToggle";
6432
6464
 
6433
6465
  // src/components/AdsToggleGroup/index.tsx
6434
- var React57 = __toESM(require("react"), 1);
6466
+ var React58 = __toESM(require("react"), 1);
6435
6467
 
6436
6468
  // src/primitives/toggle-group.tsx
6437
- var React56 = __toESM(require("react"), 1);
6469
+ var React57 = __toESM(require("react"), 1);
6438
6470
  var ToggleGroupPrimitive = __toESM(require("@radix-ui/react-toggle-group"), 1);
6439
- var import_jsx_runtime65 = require("react/jsx-runtime");
6440
- var ToggleGroup = React56.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6471
+ var import_jsx_runtime66 = require("react/jsx-runtime");
6472
+ var ToggleGroup = React57.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6441
6473
  ToggleGroupPrimitive.Root,
6442
6474
  {
6443
6475
  className: cn("inline-flex items-center justify-start", className),
@@ -6446,7 +6478,7 @@ var ToggleGroup = React56.forwardRef(({ className, ...props }, ref) => /* @__PUR
6446
6478
  }
6447
6479
  ));
6448
6480
  ToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName;
6449
- var ToggleGroupItem = React56.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6481
+ var ToggleGroupItem = React57.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6450
6482
  ToggleGroupPrimitive.Item,
6451
6483
  {
6452
6484
  className: cn(
@@ -6460,7 +6492,7 @@ var ToggleGroupItem = React56.forwardRef(({ className, ...props }, ref) => /* @_
6460
6492
  ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;
6461
6493
 
6462
6494
  // src/components/AdsToggleGroup/index.tsx
6463
- var import_jsx_runtime66 = require("react/jsx-runtime");
6495
+ var import_jsx_runtime67 = require("react/jsx-runtime");
6464
6496
  var sizeClassName4 = {
6465
6497
  sm: "h-8 min-w-7 px-[6px] text-sm",
6466
6498
  md: "h-9 min-w-[34px] px-md text-sm",
@@ -6470,8 +6502,8 @@ var variantClassName2 = {
6470
6502
  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)]",
6471
6503
  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)]"
6472
6504
  };
6473
- var AdsToggleGroupContext = React57.createContext(null);
6474
- var AdsToggleGroup = React57.forwardRef(
6505
+ var AdsToggleGroupContext = React58.createContext(null);
6506
+ var AdsToggleGroup = React58.forwardRef(
6475
6507
  ({
6476
6508
  children,
6477
6509
  className,
@@ -6479,7 +6511,7 @@ var AdsToggleGroup = React57.forwardRef(
6479
6511
  size = "md",
6480
6512
  variant = "default",
6481
6513
  ...props
6482
- }, ref) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(AdsToggleGroupContext.Provider, { value: { orientation, size, variant }, children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6514
+ }, ref) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(AdsToggleGroupContext.Provider, { value: { orientation, size, variant }, children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6483
6515
  ToggleGroup,
6484
6516
  {
6485
6517
  className: cn(
@@ -6495,12 +6527,12 @@ var AdsToggleGroup = React57.forwardRef(
6495
6527
  ) })
6496
6528
  );
6497
6529
  AdsToggleGroup.displayName = "AdsToggleGroup";
6498
- var AdsToggleGroupItem = React57.forwardRef(({ className, size, variant, ...props }, ref) => {
6499
- const context = React57.useContext(AdsToggleGroupContext);
6530
+ var AdsToggleGroupItem = React58.forwardRef(({ className, size, variant, ...props }, ref) => {
6531
+ const context = React58.useContext(AdsToggleGroupContext);
6500
6532
  const resolvedOrientation = context?.orientation ?? "horizontal";
6501
6533
  const resolvedSize = size ?? context?.size ?? "md";
6502
6534
  const resolvedVariant = variant ?? context?.variant ?? "default";
6503
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6535
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6504
6536
  ToggleGroupItem,
6505
6537
  {
6506
6538
  className: cn(
@@ -6518,10 +6550,10 @@ var AdsToggleGroupItem = React57.forwardRef(({ className, size, variant, ...prop
6518
6550
  AdsToggleGroupItem.displayName = "AdsToggleGroupItem";
6519
6551
 
6520
6552
  // src/components/AdsTextarea/index.tsx
6521
- var React58 = __toESM(require("react"), 1);
6522
- var import_jsx_runtime67 = require("react/jsx-runtime");
6553
+ var React59 = __toESM(require("react"), 1);
6554
+ var import_jsx_runtime68 = require("react/jsx-runtime");
6523
6555
  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";
6524
- var AdsTextarea = React58.forwardRef(
6556
+ var AdsTextarea = React59.forwardRef(
6525
6557
  ({
6526
6558
  action,
6527
6559
  className,
@@ -6540,12 +6572,12 @@ var AdsTextarea = React58.forwardRef(
6540
6572
  helperText,
6541
6573
  id
6542
6574
  });
6543
- const helperNode = helperText ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(AdsFieldDescription, { id: description.helperId, children: helperText }) : null;
6544
- const errorNode = errorText ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(AdsFieldError, { id: description.errorId, children: errorText }) : null;
6545
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(AdsFieldItem, { children: [
6546
- label ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(AdsFieldLabel, { htmlFor: description.inputId, children: label }) : null,
6575
+ const helperNode = helperText ? /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(AdsFieldDescription, { id: description.helperId, children: helperText }) : null;
6576
+ const errorNode = errorText ? /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(AdsFieldError, { id: description.errorId, children: errorText }) : null;
6577
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(AdsFieldItem, { children: [
6578
+ label ? /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(AdsFieldLabel, { htmlFor: description.inputId, children: label }) : null,
6547
6579
  descriptionPlacement === "above" ? helperNode : null,
6548
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6580
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
6549
6581
  Textarea,
6550
6582
  {
6551
6583
  "aria-describedby": description.describedBy,
@@ -6563,7 +6595,7 @@ var AdsTextarea = React58.forwardRef(
6563
6595
  ...props
6564
6596
  }
6565
6597
  ),
6566
- action ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "w-full [&>*]:w-full", children: action }) : null,
6598
+ action ? /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "w-full [&>*]:w-full", children: action }) : null,
6567
6599
  descriptionPlacement === "below" ? helperNode : null,
6568
6600
  errorNode
6569
6601
  ] });
@@ -6572,17 +6604,17 @@ var AdsTextarea = React58.forwardRef(
6572
6604
  AdsTextarea.displayName = "AdsTextarea";
6573
6605
 
6574
6606
  // src/components/AdsTooltip/index.tsx
6575
- var React60 = __toESM(require("react"), 1);
6607
+ var React61 = __toESM(require("react"), 1);
6576
6608
 
6577
6609
  // src/primitives/tooltip.tsx
6578
- var React59 = __toESM(require("react"), 1);
6610
+ var React60 = __toESM(require("react"), 1);
6579
6611
  var TooltipPrimitive = __toESM(require("@radix-ui/react-tooltip"), 1);
6580
- var import_jsx_runtime68 = require("react/jsx-runtime");
6612
+ var import_jsx_runtime69 = require("react/jsx-runtime");
6581
6613
  var TooltipProvider = TooltipPrimitive.Provider;
6582
6614
  var Tooltip = TooltipPrimitive.Root;
6583
6615
  var TooltipTrigger = TooltipPrimitive.Trigger;
6584
6616
  var TooltipArrow = TooltipPrimitive.Arrow;
6585
- var TooltipContent = React59.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(TooltipPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
6617
+ var TooltipContent = React60.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(TooltipPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6586
6618
  TooltipPrimitive.Content,
6587
6619
  {
6588
6620
  className: cn(
@@ -6597,12 +6629,12 @@ var TooltipContent = React59.forwardRef(({ className, sideOffset = 4, ...props }
6597
6629
  TooltipContent.displayName = TooltipPrimitive.Content.displayName;
6598
6630
 
6599
6631
  // src/components/AdsTooltip/index.tsx
6600
- var import_jsx_runtime69 = require("react/jsx-runtime");
6632
+ var import_jsx_runtime70 = require("react/jsx-runtime");
6601
6633
  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)]";
6602
6634
  var AdsTooltipProvider = TooltipProvider;
6603
6635
  var AdsTooltip = Tooltip;
6604
6636
  var AdsTooltipTrigger = TooltipTrigger;
6605
- var AdsTooltipContent = React60.forwardRef(({ align = "center", className, sideOffset = 10, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6637
+ var AdsTooltipContent = React61.forwardRef(({ align = "center", className, sideOffset = 10, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
6606
6638
  TooltipContent,
6607
6639
  {
6608
6640
  align,
@@ -6613,7 +6645,7 @@ var AdsTooltipContent = React60.forwardRef(({ align = "center", className, sideO
6613
6645
  }
6614
6646
  ));
6615
6647
  AdsTooltipContent.displayName = "AdsTooltipContent";
6616
- var AdsTooltipArrow = React60.forwardRef(({ className, height = 5, width = 10, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
6648
+ var AdsTooltipArrow = React61.forwardRef(({ className, height = 5, width = 10, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
6617
6649
  TooltipArrow,
6618
6650
  {
6619
6651
  className: cn("fill-[#844fff]", className),
@@ -6626,10 +6658,10 @@ var AdsTooltipArrow = React60.forwardRef(({ className, height = 5, width = 10, .
6626
6658
  AdsTooltipArrow.displayName = "AdsTooltipArrow";
6627
6659
 
6628
6660
  // src/components/AdsToast/index.tsx
6629
- var React61 = __toESM(require("react"), 1);
6661
+ var React62 = __toESM(require("react"), 1);
6630
6662
  var import_lucide_react16 = require("lucide-react");
6631
6663
  var import_sonner = require("sonner");
6632
- var import_jsx_runtime70 = require("react/jsx-runtime");
6664
+ var import_jsx_runtime71 = require("react/jsx-runtime");
6633
6665
  var adsToastIconMap = {
6634
6666
  success: import_lucide_react16.CircleCheck,
6635
6667
  info: import_lucide_react16.Info,
@@ -6645,7 +6677,7 @@ function resolveToastIcon(intent, icon) {
6645
6677
  return null;
6646
6678
  }
6647
6679
  const Icon2 = adsToastIconMap[intent];
6648
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
6680
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
6649
6681
  Icon2,
6650
6682
  {
6651
6683
  "aria-hidden": true,
@@ -6658,7 +6690,7 @@ function resolveToastIcon(intent, icon) {
6658
6690
  }
6659
6691
  );
6660
6692
  }
6661
- var AdsToast = React61.forwardRef(
6693
+ var AdsToast = React62.forwardRef(
6662
6694
  ({
6663
6695
  action,
6664
6696
  className,
@@ -6669,7 +6701,7 @@ var AdsToast = React61.forwardRef(
6669
6701
  ...props
6670
6702
  }, ref) => {
6671
6703
  const resolvedIcon = resolveToastIcon(intent, icon);
6672
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(
6704
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
6673
6705
  "div",
6674
6706
  {
6675
6707
  className: cn(
@@ -6684,8 +6716,8 @@ var AdsToast = React61.forwardRef(
6684
6716
  ...props,
6685
6717
  children: [
6686
6718
  resolvedIcon,
6687
- /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
6688
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
6719
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
6720
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
6689
6721
  "p",
6690
6722
  {
6691
6723
  className: cn(
@@ -6695,7 +6727,7 @@ var AdsToast = React61.forwardRef(
6695
6727
  children: title
6696
6728
  }
6697
6729
  ),
6698
- description ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
6730
+ description ? /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
6699
6731
  "p",
6700
6732
  {
6701
6733
  className: cn(
@@ -6706,7 +6738,7 @@ var AdsToast = React61.forwardRef(
6706
6738
  }
6707
6739
  ) : null
6708
6740
  ] }),
6709
- action ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
6741
+ action ? /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
6710
6742
  AdsButton,
6711
6743
  {
6712
6744
  className: "shrink-0 rounded-radius-lg",
@@ -6732,7 +6764,7 @@ function AdsToaster({
6732
6764
  ...props
6733
6765
  }) {
6734
6766
  const { messages } = useAdsI18n();
6735
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
6767
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
6736
6768
  import_sonner.Toaster,
6737
6769
  {
6738
6770
  closeButton: false,
@@ -6750,7 +6782,7 @@ function AdsToaster({
6750
6782
  );
6751
6783
  }
6752
6784
  function toStageNode(intent, title, options) {
6753
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
6785
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
6754
6786
  AdsToast,
6755
6787
  {
6756
6788
  action: options?.action,
@@ -6764,7 +6796,7 @@ function toStageNode(intent, title, options) {
6764
6796
  function showAdsToast(intent, title, options) {
6765
6797
  const { action, description, icon, ...toastOptions } = options ?? {};
6766
6798
  return import_sonner.toast.custom(
6767
- (id) => /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
6799
+ (id) => /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
6768
6800
  AdsToast,
6769
6801
  {
6770
6802
  action: action ? {
@@ -6818,10 +6850,10 @@ var AdsToastManager = Object.assign(
6818
6850
  );
6819
6851
 
6820
6852
  // src/components/AdsDialog/index.tsx
6821
- var React62 = __toESM(require("react"), 1);
6853
+ var React63 = __toESM(require("react"), 1);
6822
6854
  var DialogPrimitive = __toESM(require("@radix-ui/react-dialog"), 1);
6823
6855
  var import_lucide_react17 = require("lucide-react");
6824
- var import_jsx_runtime71 = require("react/jsx-runtime");
6856
+ var import_jsx_runtime72 = require("react/jsx-runtime");
6825
6857
  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";
6826
6858
  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%]";
6827
6859
  var bodyClassName = "min-h-0 flex-1 overflow-y-auto overscroll-contain [scrollbar-gutter:stable]";
@@ -6829,7 +6861,7 @@ var closeButtonClassName = "absolute right-xl top-xl inline-flex h-6 w-6 items-c
6829
6861
  var Dialog = DialogPrimitive.Root;
6830
6862
  var DialogTrigger = DialogPrimitive.Trigger;
6831
6863
  var DialogPortal = DialogPrimitive.Portal;
6832
- var DialogOverlay = React62.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
6864
+ var DialogOverlay = React63.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
6833
6865
  DialogPrimitive.Overlay,
6834
6866
  {
6835
6867
  className: cn(overlayClassName2, className),
@@ -6838,7 +6870,7 @@ var DialogOverlay = React62.forwardRef(({ className, ...props }, ref) => /* @__P
6838
6870
  }
6839
6871
  ));
6840
6872
  DialogOverlay.displayName = "DialogOverlay";
6841
- var DialogClose = React62.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
6873
+ var DialogClose = React63.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
6842
6874
  DialogPrimitive.Close,
6843
6875
  {
6844
6876
  className: cn(
@@ -6852,8 +6884,8 @@ var DialogClose = React62.forwardRef(({ className, ...props }, ref) => /* @__PUR
6852
6884
  DialogClose.displayName = "DialogClose";
6853
6885
  function flattenDialogChildren(children) {
6854
6886
  const nodes = [];
6855
- React62.Children.forEach(children, (child) => {
6856
- if (React62.isValidElement(child) && child.type === React62.Fragment) {
6887
+ React63.Children.forEach(children, (child) => {
6888
+ if (React63.isValidElement(child) && child.type === React63.Fragment) {
6857
6889
  nodes.push(...flattenDialogChildren(child.props.children));
6858
6890
  return;
6859
6891
  }
@@ -6862,10 +6894,10 @@ function flattenDialogChildren(children) {
6862
6894
  return nodes;
6863
6895
  }
6864
6896
  function isDialogSlotElement(child, component) {
6865
- return React62.isValidElement(child) && child.type === component;
6897
+ return React63.isValidElement(child) && child.type === component;
6866
6898
  }
6867
- var DialogBody = React62.forwardRef(
6868
- ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
6899
+ var DialogBody = React63.forwardRef(
6900
+ ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
6869
6901
  "div",
6870
6902
  {
6871
6903
  className: cn(bodyClassName, className),
@@ -6876,7 +6908,7 @@ var DialogBody = React62.forwardRef(
6876
6908
  )
6877
6909
  );
6878
6910
  DialogBody.displayName = "DialogBody";
6879
- var DialogContent = React62.forwardRef(
6911
+ var DialogContent = React63.forwardRef(
6880
6912
  ({
6881
6913
  children,
6882
6914
  className,
@@ -6933,9 +6965,9 @@ var DialogContent = React62.forwardRef(
6933
6965
  const looseBodyNodes = bodyNodes.filter(
6934
6966
  (child) => !isDialogSlotElement(child, DialogBody)
6935
6967
  );
6936
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(NestedDismissableLayerProvider, { coordinator: parentLayer.coordinator, children: /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(DialogPortal, { children: [
6937
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(DialogOverlay, {}),
6938
- /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
6968
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(NestedDismissableLayerProvider, { coordinator: parentLayer.coordinator, children: /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(DialogPortal, { children: [
6969
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(DialogOverlay, {}),
6970
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
6939
6971
  DialogPrimitive.Content,
6940
6972
  {
6941
6973
  "data-slot": "ads-dialog-content",
@@ -6951,18 +6983,18 @@ var DialogContent = React62.forwardRef(
6951
6983
  ...props,
6952
6984
  children: [
6953
6985
  headerNode,
6954
- headerNode === null && generatedHeaderNodes.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(DialogHeader, { children: generatedHeaderNodes }) : null,
6986
+ headerNode === null && generatedHeaderNodes.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(DialogHeader, { children: generatedHeaderNodes }) : null,
6955
6987
  explicitBodyNodes.length > 0 ? explicitBodyNodes : null,
6956
- looseBodyNodes.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(DialogBody, { children: looseBodyNodes }) : null,
6988
+ looseBodyNodes.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(DialogBody, { children: looseBodyNodes }) : null,
6957
6989
  footerNode,
6958
- !hideCloseButton ? /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
6990
+ !hideCloseButton ? /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
6959
6991
  DialogPrimitive.Close,
6960
6992
  {
6961
6993
  "aria-label": resolvedCloseLabel,
6962
6994
  className: cn(closeButtonClassName, adsTextColorClassName.card),
6963
6995
  children: [
6964
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_lucide_react17.X, { "aria-hidden": true, className: "h-4 w-4" }),
6965
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("span", { className: "sr-only", children: resolvedCloseLabel })
6996
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_lucide_react17.X, { "aria-hidden": true, className: "h-4 w-4" }),
6997
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { className: "sr-only", children: resolvedCloseLabel })
6966
6998
  ]
6967
6999
  }
6968
7000
  ) : null
@@ -6973,8 +7005,8 @@ var DialogContent = React62.forwardRef(
6973
7005
  }
6974
7006
  );
6975
7007
  DialogContent.displayName = "DialogContent";
6976
- var DialogHeader = React62.forwardRef(
6977
- ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
7008
+ var DialogHeader = React63.forwardRef(
7009
+ ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
6978
7010
  "div",
6979
7011
  {
6980
7012
  "data-slot": "ads-dialog-header",
@@ -6985,8 +7017,8 @@ var DialogHeader = React62.forwardRef(
6985
7017
  )
6986
7018
  );
6987
7019
  DialogHeader.displayName = "DialogHeader";
6988
- var DialogFooter = React62.forwardRef(
6989
- ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
7020
+ var DialogFooter = React63.forwardRef(
7021
+ ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
6990
7022
  "div",
6991
7023
  {
6992
7024
  "data-slot": "ads-dialog-footer",
@@ -7000,7 +7032,7 @@ var DialogFooter = React62.forwardRef(
7000
7032
  )
7001
7033
  );
7002
7034
  DialogFooter.displayName = "DialogFooter";
7003
- var DialogTitle = React62.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
7035
+ var DialogTitle = React63.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
7004
7036
  DialogPrimitive.Title,
7005
7037
  {
7006
7038
  className: cn(
@@ -7013,7 +7045,7 @@ var DialogTitle = React62.forwardRef(({ className, ...props }, ref) => /* @__PUR
7013
7045
  }
7014
7046
  ));
7015
7047
  DialogTitle.displayName = "DialogTitle";
7016
- var DialogDescription = React62.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
7048
+ var DialogDescription = React63.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
7017
7049
  DialogPrimitive.Description,
7018
7050
  {
7019
7051
  className: cn("text-sm leading-5", adsTextColorClassName.muted, className),
@@ -7036,7 +7068,7 @@ var AdsDialogDescription = DialogDescription;
7036
7068
 
7037
7069
  // src/components/AdsMasonry/index.tsx
7038
7070
  var import_masonic = require("masonic");
7039
- var import_jsx_runtime72 = require("react/jsx-runtime");
7071
+ var import_jsx_runtime73 = require("react/jsx-runtime");
7040
7072
  var DEFAULT_COLUMN_WIDTH = 240;
7041
7073
  var DEFAULT_GAP = 16;
7042
7074
  var DEFAULT_ITEM_HEIGHT_ESTIMATE = 280;
@@ -7072,7 +7104,7 @@ function AdsMasonry({
7072
7104
  { length: loadingItemCount },
7073
7105
  (_, index) => index
7074
7106
  );
7075
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
7107
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
7076
7108
  "div",
7077
7109
  {
7078
7110
  className: cn(
@@ -7084,20 +7116,20 @@ function AdsMasonry({
7084
7116
  const mediaHeight = LOADING_MEDIA_HEIGHT_PATTERN[index % LOADING_MEDIA_HEIGHT_PATTERN.length];
7085
7117
  const titleWidth = LOADING_TITLE_WIDTH_PATTERN[index % LOADING_TITLE_WIDTH_PATTERN.length];
7086
7118
  const bodyWidth = LOADING_BODY_WIDTH_PATTERN[index % LOADING_BODY_WIDTH_PATTERN.length];
7087
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
7119
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
7088
7120
  "article",
7089
7121
  {
7090
7122
  className: "overflow-hidden rounded-radius-lg border border-border bg-card shadow-showcase",
7091
7123
  "data-slot": "ads-masonry-loading-card",
7092
7124
  "data-testid": "ads-masonry-loading-card",
7093
7125
  children: [
7094
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
7126
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
7095
7127
  "div",
7096
7128
  {
7097
7129
  className: "border-b border-border/60 bg-surface-inset/50",
7098
7130
  "data-slot": "ads-masonry-skeleton-preview",
7099
7131
  "data-testid": "ads-masonry-skeleton-preview",
7100
- children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
7132
+ children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
7101
7133
  AdsSkeleton,
7102
7134
  {
7103
7135
  className: cn("w-full rounded-none", classNames?.skeleton),
@@ -7108,10 +7140,10 @@ function AdsMasonry({
7108
7140
  )
7109
7141
  }
7110
7142
  ),
7111
- /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { className: "flex flex-col gap-4 p-lg", children: [
7112
- /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { className: "flex items-start justify-between gap-3", children: [
7113
- /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { className: "flex-1 space-y-2", children: [
7114
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
7143
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "flex flex-col gap-4 p-lg", children: [
7144
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "flex items-start justify-between gap-3", children: [
7145
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "flex-1 space-y-2", children: [
7146
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
7115
7147
  AdsSkeleton,
7116
7148
  {
7117
7149
  className: cn("h-3 w-16 rounded-full", classNames?.skeleton),
@@ -7119,7 +7151,7 @@ function AdsMasonry({
7119
7151
  "data-testid": "ads-masonry-skeleton"
7120
7152
  }
7121
7153
  ),
7122
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
7154
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
7123
7155
  AdsSkeleton,
7124
7156
  {
7125
7157
  className: cn("h-6 rounded-full", classNames?.skeleton),
@@ -7129,7 +7161,7 @@ function AdsMasonry({
7129
7161
  }
7130
7162
  )
7131
7163
  ] }),
7132
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
7164
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
7133
7165
  AdsSkeleton,
7134
7166
  {
7135
7167
  className: cn("h-6 w-16 rounded-full", classNames?.skeleton),
@@ -7138,7 +7170,7 @@ function AdsMasonry({
7138
7170
  }
7139
7171
  )
7140
7172
  ] }),
7141
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
7173
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
7142
7174
  AdsSkeleton,
7143
7175
  {
7144
7176
  className: cn("h-4 rounded-full", classNames?.skeleton),
@@ -7157,7 +7189,7 @@ function AdsMasonry({
7157
7189
  );
7158
7190
  }
7159
7191
  if (items.length === 0) {
7160
- return emptyState ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
7192
+ return emptyState ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
7161
7193
  "div",
7162
7194
  {
7163
7195
  className: cn(rootClassName, classNames?.empty),
@@ -7166,7 +7198,7 @@ function AdsMasonry({
7166
7198
  }
7167
7199
  ) : null;
7168
7200
  }
7169
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
7201
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
7170
7202
  import_masonic.Masonry,
7171
7203
  {
7172
7204
  className: rootClassName,
@@ -7178,7 +7210,7 @@ function AdsMasonry({
7178
7210
  maxColumnCount,
7179
7211
  onRender,
7180
7212
  overscanBy,
7181
- render: ({ data, index, width }) => /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
7213
+ render: ({ data, index, width }) => /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
7182
7214
  "div",
7183
7215
  {
7184
7216
  className: cn("pb-0", classNames?.item, itemClassName),
@@ -7292,6 +7324,7 @@ var designTokens = {
7292
7324
  AdsButtonGroupSeparator,
7293
7325
  AdsButtonGroupText,
7294
7326
  AdsCalendar,
7327
+ AdsCard,
7295
7328
  AdsCheckbox,
7296
7329
  AdsDataPagination,
7297
7330
  AdsDataTable,