@aviala-design/spiral 2.1.0 → 2.2.0

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
@@ -827,11 +827,30 @@ Button.displayName = "Button";
827
827
  var import_class_variance_authority5 = require("class-variance-authority");
828
828
  var import_react8 = require("react");
829
829
 
830
+ // src/lib/render-slot-icon.tsx
831
+ var import_jsx_runtime5 = require("react/jsx-runtime");
832
+ function renderSlotIcon(node, className, debugId) {
833
+ if (!node) return null;
834
+ const content = cloneAvialaIconElement(node, {
835
+ level: "text",
836
+ biggerSize: true
837
+ });
838
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
839
+ "span",
840
+ {
841
+ className,
842
+ style: iconSlotCssVarStyle(node, "--input-slot-icon-size", "text", true),
843
+ ...debugId ? spiralDebugId(debugId) : void 0,
844
+ children: content
845
+ }
846
+ );
847
+ }
848
+
830
849
  // src/components/badge.tsx
831
850
  var import_class_variance_authority4 = require("class-variance-authority");
832
851
  var import_react7 = require("react");
833
852
  var import_icons3 = require("@aviala-design/icons");
834
- var import_jsx_runtime5 = require("react/jsx-runtime");
853
+ var import_jsx_runtime6 = require("react/jsx-runtime");
835
854
  var badgeVariants = (0, import_class_variance_authority4.cva)("aviala-badge", {
836
855
  variants: {
837
856
  style: {
@@ -888,7 +907,7 @@ function renderBadgeIcon(node, level) {
888
907
  )
889
908
  }
890
909
  ) : node;
891
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "aviala-badge__icon", "aria-hidden": true, children: content });
910
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "aviala-badge__icon", "aria-hidden": true, children: content });
892
911
  }
893
912
  var Badge = (0, import_react7.forwardRef)(
894
913
  ({
@@ -907,7 +926,7 @@ var Badge = (0, import_react7.forwardRef)(
907
926
  const resolvedLhf = resolveLineHeightFix(resolvedLevel, lineHeightFix);
908
927
  const typographyLevel = resolvedLevel;
909
928
  const tone = primary ? "white" : "default";
910
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
929
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
911
930
  "span",
912
931
  {
913
932
  ref,
@@ -927,7 +946,7 @@ var Badge = (0, import_react7.forwardRef)(
927
946
  ...props,
928
947
  children: [
929
948
  renderBadgeIcon(leftIcon, resolvedLevel),
930
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
949
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
931
950
  Typography,
932
951
  {
933
952
  level: typographyLevel,
@@ -946,7 +965,7 @@ var Badge = (0, import_react7.forwardRef)(
946
965
  Badge.displayName = "Badge";
947
966
 
948
967
  // src/components/input.tsx
949
- var import_jsx_runtime6 = require("react/jsx-runtime");
968
+ var import_jsx_runtime7 = require("react/jsx-runtime");
950
969
  function resolveInputState(value, defaultValue, focused) {
951
970
  const current = value ?? defaultValue ?? "";
952
971
  if (String(current).length === 0) return "empty";
@@ -963,25 +982,9 @@ var inputRootVariants = (0, import_class_variance_authority5.cva)("aviala-input
963
982
  fullWidth: true
964
983
  }
965
984
  });
966
- function renderSlotIcon(node, debugId) {
967
- if (!node) return null;
968
- const content = cloneAvialaIconElement(node, {
969
- level: "text",
970
- biggerSize: true
971
- });
972
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
973
- "span",
974
- {
975
- className: "aviala-input__slot",
976
- style: iconSlotCssVarStyle(node, "--input-slot-icon-size", "text", true),
977
- ...debugId ? spiralDebugId(debugId) : void 0,
978
- children: content
979
- }
980
- );
981
- }
982
985
  function renderBadgeArea(node) {
983
986
  if (node == null || node === false) return null;
984
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "aviala-input__badge-area", children: (0, import_react8.isValidElement)(node) && node.type === Badge ? node : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Badge, { children: node }) });
987
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "aviala-input__badge-area", children: (0, import_react8.isValidElement)(node) && node.type === Badge ? node : /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Badge, { children: node }) });
985
988
  }
986
989
  var Input = (0, import_react8.forwardRef)(
987
990
  ({
@@ -1007,7 +1010,7 @@ var Input = (0, import_react8.forwardRef)(
1007
1010
  const [internalValue, setInternalValue] = (0, import_react8.useState)(() => String(defaultValue ?? ""));
1008
1011
  const resolvedValue = value !== void 0 ? String(value) : internalValue;
1009
1012
  const inputState = resolveInputState(resolvedValue, void 0, focused);
1010
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
1013
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
1011
1014
  "div",
1012
1015
  {
1013
1016
  className: cn(inputRootVariants({ fullWidth }), className),
@@ -1018,14 +1021,14 @@ var Input = (0, import_react8.forwardRef)(
1018
1021
  "data-disabled": disabled ? "true" : void 0,
1019
1022
  ...spiralDebugId("input"),
1020
1023
  children: [
1021
- renderSlotIcon(leftIcon, "input.left-icon"),
1024
+ renderSlotIcon(leftIcon, "aviala-input__slot", "input.left-icon"),
1022
1025
  renderBadgeArea(leftBadge),
1023
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1026
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1024
1027
  "div",
1025
1028
  {
1026
1029
  className: "aviala-input__field relative z-[1] flex min-w-0 flex-1 flex-col justify-center",
1027
1030
  ...spiralDebugId("input.field"),
1028
- children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1031
+ children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1029
1032
  "input",
1030
1033
  {
1031
1034
  ref,
@@ -1059,7 +1062,7 @@ var Input = (0, import_react8.forwardRef)(
1059
1062
  }
1060
1063
  ),
1061
1064
  renderBadgeArea(rightBadge),
1062
- renderSlotIcon(rightIcon, "input.right-icon")
1065
+ renderSlotIcon(rightIcon, "aviala-input__slot", "input.right-icon")
1063
1066
  ]
1064
1067
  }
1065
1068
  );
@@ -1070,7 +1073,7 @@ Input.displayName = "Input";
1070
1073
  // src/components/number-input.tsx
1071
1074
  var import_icons4 = require("@aviala-design/icons");
1072
1075
  var import_react9 = require("react");
1073
- var import_jsx_runtime7 = require("react/jsx-runtime");
1076
+ var import_jsx_runtime8 = require("react/jsx-runtime");
1074
1077
  function assignRef(ref, value) {
1075
1078
  if (!ref) return;
1076
1079
  if (typeof ref === "function") {
@@ -1112,25 +1115,9 @@ function decimalPlaces(n) {
1112
1115
  const i = text.indexOf(".");
1113
1116
  return i === -1 ? 0 : text.length - i - 1;
1114
1117
  }
1115
- function renderSlotIcon2(node, debugId) {
1116
- if (!node) return null;
1117
- const content = cloneAvialaIconElement(node, {
1118
- level: "text",
1119
- biggerSize: true
1120
- });
1121
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1122
- "span",
1123
- {
1124
- className: "aviala-input__slot",
1125
- style: iconSlotCssVarStyle(node, "--input-slot-icon-size", "text", true),
1126
- ...debugId ? spiralDebugId(debugId) : void 0,
1127
- children: content
1128
- }
1129
- );
1130
- }
1131
1118
  function renderBadgeArea2(node) {
1132
1119
  if (node == null || node === false) return null;
1133
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "aviala-input__badge-area", children: (0, import_react9.isValidElement)(node) && node.type === Badge ? node : /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Badge, { children: node }) });
1120
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "aviala-input__badge-area", children: (0, import_react9.isValidElement)(node) && node.type === Badge ? node : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Badge, { children: node }) });
1134
1121
  }
1135
1122
  var numberInputRootVariants = inputRootVariants;
1136
1123
  var NumberInput = (0, import_react9.forwardRef)(
@@ -1183,7 +1170,7 @@ var NumberInput = (0, import_react9.forwardRef)(
1183
1170
  commitString(String(next));
1184
1171
  inputRef.current?.focus();
1185
1172
  };
1186
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
1173
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
1187
1174
  "div",
1188
1175
  {
1189
1176
  className: cn(
@@ -1199,14 +1186,14 @@ var NumberInput = (0, import_react9.forwardRef)(
1199
1186
  "data-disabled": disabled ? "true" : void 0,
1200
1187
  ...spiralDebugId("number-input"),
1201
1188
  children: [
1202
- renderSlotIcon2(leftIcon, "number-input.left-icon"),
1189
+ renderSlotIcon(leftIcon, "aviala-input__slot", "number-input.left-icon"),
1203
1190
  renderBadgeArea2(leftBadge),
1204
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1191
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1205
1192
  "div",
1206
1193
  {
1207
1194
  className: "aviala-input__field relative z-[1] flex min-w-0 flex-1 flex-col justify-center",
1208
1195
  ...spiralDebugId("number-input.field"),
1209
- children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1196
+ children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1210
1197
  "input",
1211
1198
  {
1212
1199
  ref: (node) => {
@@ -1264,14 +1251,14 @@ var NumberInput = (0, import_react9.forwardRef)(
1264
1251
  }
1265
1252
  ),
1266
1253
  renderBadgeArea2(rightBadge),
1267
- renderSlotIcon2(rightIcon, "number-input.right-icon"),
1268
- showControls ? /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
1254
+ renderSlotIcon(rightIcon, "aviala-input__slot", "number-input.right-icon"),
1255
+ showControls ? /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
1269
1256
  "div",
1270
1257
  {
1271
1258
  className: "aviala-number-input__controls",
1272
1259
  ...spiralDebugId("number-input.controls"),
1273
1260
  children: [
1274
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1261
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1275
1262
  "button",
1276
1263
  {
1277
1264
  type: "button",
@@ -1282,10 +1269,10 @@ var NumberInput = (0, import_react9.forwardRef)(
1282
1269
  onMouseDown: (event) => event.preventDefault(),
1283
1270
  onClick: () => applyStep(1),
1284
1271
  ...spiralDebugId("number-input.step-up"),
1285
- children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_icons4.DirectionArrowUpLight, { level: "text", biggerSize: true, "aria-hidden": true })
1272
+ children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_icons4.DirectionArrowUpLight, { level: "text", biggerSize: true, "aria-hidden": true })
1286
1273
  }
1287
1274
  ),
1288
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1275
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1289
1276
  "button",
1290
1277
  {
1291
1278
  type: "button",
@@ -1296,7 +1283,7 @@ var NumberInput = (0, import_react9.forwardRef)(
1296
1283
  onMouseDown: (event) => event.preventDefault(),
1297
1284
  onClick: () => applyStep(-1),
1298
1285
  ...spiralDebugId("number-input.step-down"),
1299
- children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_icons4.DirectionArrowDownLight, { level: "text", biggerSize: true, "aria-hidden": true })
1286
+ children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_icons4.DirectionArrowDownLight, { level: "text", biggerSize: true, "aria-hidden": true })
1300
1287
  }
1301
1288
  )
1302
1289
  ]
@@ -1312,7 +1299,7 @@ NumberInput.displayName = "NumberInput";
1312
1299
  // src/components/textarea.tsx
1313
1300
  var import_icons5 = require("@aviala-design/icons");
1314
1301
  var import_react10 = require("react");
1315
- var import_jsx_runtime8 = require("react/jsx-runtime");
1302
+ var import_jsx_runtime9 = require("react/jsx-runtime");
1316
1303
  function assignRef2(ref, value) {
1317
1304
  if (!ref) return;
1318
1305
  if (typeof ref === "function") {
@@ -1326,22 +1313,6 @@ function resolveTextareaState(value, defaultValue, focused) {
1326
1313
  if (String(current).length === 0) return "empty";
1327
1314
  return focused ? "typing" : "fill";
1328
1315
  }
1329
- function renderSlotIcon3(node, debugId) {
1330
- if (!node) return null;
1331
- const content = cloneAvialaIconElement(node, {
1332
- level: "text",
1333
- biggerSize: true
1334
- });
1335
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1336
- "span",
1337
- {
1338
- className: "aviala-textarea__slot",
1339
- style: iconSlotCssVarStyle(node, "--input-slot-icon-size", "text", true),
1340
- ...debugId ? spiralDebugId(debugId) : void 0,
1341
- children: content
1342
- }
1343
- );
1344
- }
1345
1316
  var Textarea = (0, import_react10.forwardRef)(
1346
1317
  ({
1347
1318
  className,
@@ -1438,7 +1409,7 @@ var Textarea = (0, import_react10.forwardRef)(
1438
1409
  document.body.style.userSelect = previousUserSelect;
1439
1410
  };
1440
1411
  }, [resizing]);
1441
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
1412
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
1442
1413
  "div",
1443
1414
  {
1444
1415
  ref: rootRef,
@@ -1453,8 +1424,8 @@ var Textarea = (0, import_react10.forwardRef)(
1453
1424
  onMouseDown: handleShellMouseDown,
1454
1425
  ...spiralDebugId("textarea"),
1455
1426
  children: [
1456
- renderSlotIcon3(leftIcon, "textarea.left-icon"),
1457
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "aviala-textarea__field", ...spiralDebugId("textarea.field"), children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1427
+ renderSlotIcon(leftIcon, "aviala-textarea__slot", "textarea.left-icon"),
1428
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "aviala-textarea__field", ...spiralDebugId("textarea.field"), children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1458
1429
  "textarea",
1459
1430
  {
1460
1431
  ref: setTextareaRef,
@@ -1481,9 +1452,9 @@ var Textarea = (0, import_react10.forwardRef)(
1481
1452
  ...props
1482
1453
  }
1483
1454
  ) }),
1484
- renderSlotIcon3(rightIcon, "textarea.right-icon"),
1485
- showController ? /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "aviala-textarea__controller", ...spiralDebugId("textarea.controller"), children: [
1486
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
1455
+ renderSlotIcon(rightIcon, "aviala-textarea__slot", "textarea.right-icon"),
1456
+ showController ? /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "aviala-textarea__controller", ...spiralDebugId("textarea.controller"), children: [
1457
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
1487
1458
  "span",
1488
1459
  {
1489
1460
  className: cn("aviala-textarea__counter", typographyVariants({ level: "caption" })),
@@ -1494,7 +1465,7 @@ var Textarea = (0, import_react10.forwardRef)(
1494
1465
  ]
1495
1466
  }
1496
1467
  ),
1497
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1468
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1498
1469
  "button",
1499
1470
  {
1500
1471
  type: "button",
@@ -1504,7 +1475,7 @@ var Textarea = (0, import_react10.forwardRef)(
1504
1475
  tabIndex: disabled ? -1 : 0,
1505
1476
  onPointerDown: handleResizePointerDown,
1506
1477
  ...spiralDebugId("textarea.resize"),
1507
- children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_icons5.SymbolResize, { thickness: "Regular", mode: "default", "aria-hidden": true })
1478
+ children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_icons5.SymbolResize, { thickness: "Regular", mode: "default", "aria-hidden": true })
1508
1479
  }
1509
1480
  )
1510
1481
  ] }) : null
@@ -1524,7 +1495,7 @@ var import_react12 = require("react");
1524
1495
  // src/components/link.tsx
1525
1496
  var import_react_slot3 = require("@radix-ui/react-slot");
1526
1497
  var import_react11 = require("react");
1527
- var import_jsx_runtime9 = require("react/jsx-runtime");
1498
+ var import_jsx_runtime10 = require("react/jsx-runtime");
1528
1499
  var levelStyles = {
1529
1500
  caption: {
1530
1501
  className: typographyVariants({ level: "caption" }),
@@ -1543,7 +1514,7 @@ function renderIcon2(node, level) {
1543
1514
  level: iconLevel,
1544
1515
  biggerSize: true
1545
1516
  });
1546
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1517
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1547
1518
  "span",
1548
1519
  {
1549
1520
  className: cn(
@@ -1584,7 +1555,7 @@ var Link = (0, import_react11.forwardRef)(
1584
1555
  onClick?.(e);
1585
1556
  };
1586
1557
  if (asChild) {
1587
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1558
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1588
1559
  Comp,
1589
1560
  {
1590
1561
  className: sharedClassName,
@@ -1600,7 +1571,7 @@ var Link = (0, import_react11.forwardRef)(
1600
1571
  }
1601
1572
  );
1602
1573
  }
1603
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
1574
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
1604
1575
  Comp,
1605
1576
  {
1606
1577
  className: sharedClassName,
@@ -1614,7 +1585,7 @@ var Link = (0, import_react11.forwardRef)(
1614
1585
  onClick: handleClick,
1615
1586
  children: [
1616
1587
  renderIcon2(leftIcon ?? (iconOnly ? rightIcon : void 0), resolvedLevel),
1617
- !iconOnly && children !== void 0 && children !== null && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1588
+ !iconOnly && children !== void 0 && children !== null && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1618
1589
  "span",
1619
1590
  {
1620
1591
  className: cn(
@@ -1633,7 +1604,7 @@ var Link = (0, import_react11.forwardRef)(
1633
1604
  Link.displayName = "Link";
1634
1605
 
1635
1606
  // src/components/select.tsx
1636
- var import_jsx_runtime10 = require("react/jsx-runtime");
1607
+ var import_jsx_runtime11 = require("react/jsx-runtime");
1637
1608
  var SELECT_SUB_MENU_CLOSE_DELAY_MS = 250;
1638
1609
  var SELECT_SUB_MENU_EXIT_ANIM_MS = 150;
1639
1610
  var SelectSubMenuContext = (0, import_react12.createContext)(null);
@@ -1867,29 +1838,13 @@ function parseSelectSubItemChildren(children) {
1867
1838
  function isWithinSelectSubLayer(target) {
1868
1839
  return target instanceof Element && target.closest(".aviala-select-sub-content") !== null;
1869
1840
  }
1870
- function renderSlotIcon4(node, debugId) {
1871
- if (!node) return null;
1872
- const content = cloneAvialaIconElement(node, {
1873
- level: "text",
1874
- biggerSize: true
1875
- });
1876
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1877
- "span",
1878
- {
1879
- className: "aviala-select-trigger__slot",
1880
- style: iconSlotCssVarStyle(node, "--input-slot-icon-size", "text", true),
1881
- ...debugId ? spiralDebugId(debugId) : void 0,
1882
- children: content
1883
- }
1884
- );
1885
- }
1886
1841
  function renderItemIcon(node, iconLevel = "text", debugId) {
1887
1842
  if (!node) return null;
1888
1843
  const content = cloneAvialaIconElement(node, {
1889
1844
  level: iconLevel,
1890
1845
  biggerSize: true
1891
1846
  });
1892
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1847
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1893
1848
  "span",
1894
1849
  {
1895
1850
  className: cn(
@@ -1904,16 +1859,16 @@ function renderItemIcon(node, iconLevel = "text", debugId) {
1904
1859
  }
1905
1860
  function renderBadgeSlot(node) {
1906
1861
  if (node == null || node === false) return null;
1907
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "aviala-select-item__badge", children: (0, import_react12.isValidElement)(node) && node.type === Badge ? node : /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Badge, { children: node }) });
1862
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "aviala-select-item__badge", children: (0, import_react12.isValidElement)(node) && node.type === Badge ? node : /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Badge, { children: node }) });
1908
1863
  }
1909
1864
  function SelectItemFormRadio() {
1910
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("span", { className: "aviala-select-item__form-radio", "aria-hidden": true, children: [
1911
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "aviala-select-item__form-radio-surface" }),
1912
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "aviala-select-item__form-radio-indicator" })
1865
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("span", { className: "aviala-select-item__form-radio", "aria-hidden": true, children: [
1866
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "aviala-select-item__form-radio-surface" }),
1867
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "aviala-select-item__form-radio-indicator" })
1913
1868
  ] });
1914
1869
  }
1915
1870
  function SelectItemFormCheckbox() {
1916
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "aviala-select-item__form-checkbox", "aria-hidden": true, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1871
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "aviala-select-item__form-checkbox", "aria-hidden": true, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1917
1872
  import_icons6.SymbolRight,
1918
1873
  {
1919
1874
  className: "aviala-select-item__form-checkbox-icon",
@@ -1924,20 +1879,20 @@ function SelectItemFormCheckbox() {
1924
1879
  ) });
1925
1880
  }
1926
1881
  function SelectItemTrailingRadio() {
1927
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(SelectPrimitive.ItemIndicator, { className: "aviala-select-item__trailing-radio", "aria-hidden": true, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_icons6.SymbolRight, { level: "text", biggerSize: true, "aria-hidden": true }) });
1882
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(SelectPrimitive.ItemIndicator, { className: "aviala-select-item__trailing-radio", "aria-hidden": true, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_icons6.SymbolRight, { level: "text", biggerSize: true, "aria-hidden": true }) });
1928
1883
  }
1929
1884
  function SelectItemTrailingCheckbox() {
1930
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(SelectPrimitive.ItemIndicator, { className: "aviala-select-item__trailing-checkbox", "aria-hidden": true, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_icons6.SymbolRight, { level: "text", biggerSize: true, "aria-hidden": true }) });
1885
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(SelectPrimitive.ItemIndicator, { className: "aviala-select-item__trailing-checkbox", "aria-hidden": true, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_icons6.SymbolRight, { level: "text", biggerSize: true, "aria-hidden": true }) });
1931
1886
  }
1932
1887
  function SelectItemDefaultAvatar() {
1933
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "aviala-select-item__avatar", "aria-hidden": true, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_icons6.UsersUserCircle, { level: "text", biggerSize: true, "aria-hidden": true }) });
1888
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "aviala-select-item__avatar", "aria-hidden": true, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_icons6.UsersUserCircle, { level: "text", biggerSize: true, "aria-hidden": true }) });
1934
1889
  }
1935
1890
  function renderFunctionSlot(itemFunction, layout, showFunctionIcon, icon) {
1936
1891
  if (!showFunctionIcon) return null;
1937
1892
  if (layout === "checked") return null;
1938
1893
  const functionStyle = icon ? iconSlotCssVarStyle(icon, "--select-item-function-icon-size", "text", true) : void 0;
1939
1894
  if (icon !== void 0) {
1940
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1895
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1941
1896
  "span",
1942
1897
  {
1943
1898
  className: "aviala-select-item__function",
@@ -1949,19 +1904,19 @@ function renderFunctionSlot(itemFunction, layout, showFunctionIcon, icon) {
1949
1904
  }
1950
1905
  switch (itemFunction) {
1951
1906
  case "radio":
1952
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "aviala-select-item__function", ...spiralDebugId("select.content.item.function"), children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(SelectItemTrailingRadio, {}) });
1907
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "aviala-select-item__function", ...spiralDebugId("select.content.item.function"), children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(SelectItemTrailingRadio, {}) });
1953
1908
  case "checkbox":
1954
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "aviala-select-item__function", ...spiralDebugId("select.content.item.function"), children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(SelectItemTrailingCheckbox, {}) });
1909
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "aviala-select-item__function", ...spiralDebugId("select.content.item.function"), children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(SelectItemTrailingCheckbox, {}) });
1955
1910
  case "simple":
1956
1911
  case "action":
1957
1912
  default:
1958
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1913
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1959
1914
  "span",
1960
1915
  {
1961
1916
  className: "aviala-select-item__function",
1962
1917
  style: iconLevelCssVarStyle("text", true, "--select-item-function-icon-size"),
1963
1918
  ...spiralDebugId("select.content.item.function"),
1964
- children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_icons6.DirectionArrowRight, { level: "text", biggerSize: true, "aria-hidden": true })
1919
+ children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_icons6.DirectionArrowRight, { level: "text", biggerSize: true, "aria-hidden": true })
1965
1920
  }
1966
1921
  );
1967
1922
  }
@@ -2014,7 +1969,7 @@ function Select({
2014
1969
  },
2015
1970
  [isControlled, onOpenChange]
2016
1971
  );
2017
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(SelectDismissContext.Provider, { value: dismissContextValue, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(SelectPrimitive.Root, { open, onOpenChange: handleOpenChange, ...props }) });
1972
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(SelectDismissContext.Provider, { value: dismissContextValue, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(SelectPrimitive.Root, { open, onOpenChange: handleOpenChange, ...props }) });
2018
1973
  }
2019
1974
  var SelectValue = SelectPrimitive.Value;
2020
1975
  var SelectGroup = SelectPrimitive.Group;
@@ -2049,7 +2004,7 @@ function wrapUngroupedSelectItems(children) {
2049
2004
  const flushBareItems = () => {
2050
2005
  if (bareItems.length === 0) return;
2051
2006
  wrapped.push(
2052
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(SelectGroup, { className: "aviala-select-group", children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "aviala-select-group__slot", children: bareItems }) }, `__select-auto-group-${autoGroupIndex++}`)
2007
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(SelectGroup, { className: "aviala-select-group", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "aviala-select-group__slot", children: bareItems }) }, `__select-auto-group-${autoGroupIndex++}`)
2053
2008
  );
2054
2009
  bareItems = [];
2055
2010
  };
@@ -2080,7 +2035,7 @@ var SelectTrigger = (0, import_react12.forwardRef)(
2080
2035
  ...props
2081
2036
  }, ref) => {
2082
2037
  const dismissContext = (0, import_react12.useContext)(SelectDismissContext);
2083
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
2038
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
2084
2039
  SelectPrimitive.Trigger,
2085
2040
  {
2086
2041
  ref: (node) => {
@@ -2100,8 +2055,8 @@ var SelectTrigger = (0, import_react12.forwardRef)(
2100
2055
  ...spiralDebugId("select.trigger"),
2101
2056
  ...props,
2102
2057
  children: [
2103
- renderSlotIcon4(leftIcon, "select.trigger.icon-left"),
2104
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "aviala-select-trigger__field", children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
2058
+ renderSlotIcon(leftIcon, "aviala-select-trigger__slot", "select.trigger.icon-left"),
2059
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "aviala-select-trigger__field", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
2105
2060
  SelectPrimitive.Value,
2106
2061
  {
2107
2062
  placeholder,
@@ -2109,15 +2064,15 @@ var SelectTrigger = (0, import_react12.forwardRef)(
2109
2064
  ...spiralDebugId("select.trigger.value")
2110
2065
  }
2111
2066
  ) }),
2112
- renderSlotIcon4(rightIcon, "select.trigger.icon-right"),
2113
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
2067
+ renderSlotIcon(rightIcon, "aviala-select-trigger__slot", "select.trigger.icon-right"),
2068
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
2114
2069
  "span",
2115
2070
  {
2116
2071
  className: "aviala-select-trigger__expand",
2117
2072
  "aria-hidden": true,
2118
2073
  style: expandIcon ? iconSlotCssVarStyle(expandIcon, "--input-slot-icon-size", "text", true) : iconLevelCssVarStyle("text", true, "--input-slot-icon-size"),
2119
2074
  ...spiralDebugId("select.trigger.expand"),
2120
- children: expandIcon ?? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
2075
+ children: expandIcon ?? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
2121
2076
  import_icons6.DirectionArrowDownLight,
2122
2077
  {
2123
2078
  className: "aviala-select-trigger__expand-icon",
@@ -2160,7 +2115,7 @@ var SelectContent = (0, import_react12.forwardRef)(
2160
2115
  dismissContext.pointerDownCloseRef.current = false;
2161
2116
  }
2162
2117
  };
2163
- const content = /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(SelectSubMenuContext.Provider, { value: subMenuLayer, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
2118
+ const content = /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(SelectSubMenuContext.Provider, { value: subMenuLayer, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
2164
2119
  SelectPrimitive.Content,
2165
2120
  {
2166
2121
  ref,
@@ -2170,7 +2125,7 @@ var SelectContent = (0, import_react12.forwardRef)(
2170
2125
  onCloseAutoFocus: handleCloseAutoFocus,
2171
2126
  ...spiralDebugId("select.content"),
2172
2127
  ...props,
2173
- children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
2128
+ children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
2174
2129
  SelectPrimitive.Viewport,
2175
2130
  {
2176
2131
  className: "aviala-select-viewport",
@@ -2181,11 +2136,11 @@ var SelectContent = (0, import_react12.forwardRef)(
2181
2136
  }
2182
2137
  ) });
2183
2138
  if (!portalled) return content;
2184
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(SelectPrimitive.Portal, { children: content });
2139
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(SelectPrimitive.Portal, { children: content });
2185
2140
  }
2186
2141
  );
2187
2142
  SelectContent.displayName = SelectPrimitive.Content.displayName;
2188
- var SelectLabel = (0, import_react12.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
2143
+ var SelectLabel = (0, import_react12.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
2189
2144
  SelectPrimitive.Label,
2190
2145
  {
2191
2146
  ref,
@@ -2220,23 +2175,23 @@ var SelectItem = (0, import_react12.forwardRef)(
2220
2175
  const leftIconLevel = isTitle ? "caption" : "text";
2221
2176
  const showTrailingFunction = showFunctionIcon && layout !== "checked" && itemFunction !== "form-radio" && itemFunction !== "form-checkbox";
2222
2177
  const textLevel = isTitle ? "caption" : "text";
2223
- const textContent = isPeople ? /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("span", { className: "aviala-select-item__content", children: [
2224
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
2178
+ const textContent = isPeople ? /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("span", { className: "aviala-select-item__content", children: [
2179
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
2225
2180
  SelectPrimitive.ItemText,
2226
2181
  {
2227
2182
  className: cn("aviala-select-item__text", typographyVariants({ level: textLevel })),
2228
2183
  children
2229
2184
  }
2230
2185
  ),
2231
- subtitle != null && subtitle !== false ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: cn("aviala-select-item__subtitle", typographyVariants({ level: "caption" })), children: subtitle }) : null
2232
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
2186
+ subtitle != null && subtitle !== false ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: cn("aviala-select-item__subtitle", typographyVariants({ level: "caption" })), children: subtitle }) : null
2187
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
2233
2188
  SelectPrimitive.ItemText,
2234
2189
  {
2235
2190
  className: cn("aviala-select-item__text", typographyVariants({ level: textLevel })),
2236
2191
  children
2237
2192
  }
2238
2193
  );
2239
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
2194
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
2240
2195
  SelectPrimitive.Item,
2241
2196
  {
2242
2197
  ref,
@@ -2246,14 +2201,14 @@ var SelectItem = (0, import_react12.forwardRef)(
2246
2201
  ...spiralDebugId("select.content.item"),
2247
2202
  ...props,
2248
2203
  children: [
2249
- isFormLeading && itemFunction === "form-radio" ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(SelectItemFormRadio, {}) : null,
2250
- isFormLeading && itemFunction === "form-checkbox" ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(SelectItemFormCheckbox, {}) : null,
2204
+ isFormLeading && itemFunction === "form-radio" ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(SelectItemFormRadio, {}) : null,
2205
+ isFormLeading && itemFunction === "form-checkbox" ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(SelectItemFormCheckbox, {}) : null,
2251
2206
  showLeftIcon && leftIcon ? renderItemIcon(leftIcon, leftIconLevel, "select.content.item.icon-left") : null,
2252
- isPeople ? avatar ?? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(SelectItemDefaultAvatar, {}) : null,
2207
+ isPeople ? avatar ?? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(SelectItemDefaultAvatar, {}) : null,
2253
2208
  textContent,
2254
2209
  showBadge ? renderBadgeSlot(badge ?? "Text") : null,
2255
2210
  showRightIcon && rightIcon ? renderItemIcon(rightIcon, leftIconLevel, "select.content.item.icon-right") : null,
2256
- showMoreFunction ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "aviala-select-item__more", children: moreAction ?? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Link, { level: "text", href: "#", onClick: (event) => event.preventDefault(), children: "Text" }) }) : null,
2211
+ showMoreFunction ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "aviala-select-item__more", children: moreAction ?? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Link, { level: "text", href: "#", onClick: (event) => event.preventDefault(), children: "Text" }) }) : null,
2257
2212
  renderFunctionSlot(itemFunction, layout, showTrailingFunction, icon)
2258
2213
  ]
2259
2214
  }
@@ -2329,10 +2284,10 @@ var SelectSubItem = (0, import_react12.forwardRef)(
2329
2284
  const leftIconLevel = isTitle ? "caption" : "text";
2330
2285
  const showTrailingFunction = showFunctionIcon && layout !== "checked" && itemFunction !== "form-radio" && itemFunction !== "form-checkbox";
2331
2286
  const textLevel = isTitle ? "caption" : "text";
2332
- const textContent = isPeople ? /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("span", { className: "aviala-select-item__content", children: [
2333
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: cn("aviala-select-item__text", typographyVariants({ level: textLevel })), children: itemChildren }),
2334
- subtitle != null && subtitle !== false ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: cn("aviala-select-item__subtitle", typographyVariants({ level: "caption" })), children: subtitle }) : null
2335
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: cn("aviala-select-item__text", typographyVariants({ level: textLevel })), children: itemChildren });
2287
+ const textContent = isPeople ? /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("span", { className: "aviala-select-item__content", children: [
2288
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: cn("aviala-select-item__text", typographyVariants({ level: textLevel })), children: itemChildren }),
2289
+ subtitle != null && subtitle !== false ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: cn("aviala-select-item__subtitle", typographyVariants({ level: "caption" })), children: subtitle }) : null
2290
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: cn("aviala-select-item__text", typographyVariants({ level: textLevel })), children: itemChildren });
2336
2291
  const handleTriggerBlur = (event) => {
2337
2292
  scheduleCloseSubItem(subItemId, event.relatedTarget);
2338
2293
  };
@@ -2350,7 +2305,7 @@ var SelectSubItem = (0, import_react12.forwardRef)(
2350
2305
  closeActiveSubItem();
2351
2306
  }
2352
2307
  };
2353
- const itemRow = /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
2308
+ const itemRow = /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
2354
2309
  "button",
2355
2310
  {
2356
2311
  type: "button",
@@ -2368,19 +2323,19 @@ var SelectSubItem = (0, import_react12.forwardRef)(
2368
2323
  onBlur: handleTriggerBlur,
2369
2324
  onKeyDown: handleKeyDown,
2370
2325
  children: [
2371
- isFormLeading && itemFunction === "form-radio" ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(SelectItemFormRadio, {}) : null,
2372
- isFormLeading && itemFunction === "form-checkbox" ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(SelectItemFormCheckbox, {}) : null,
2326
+ isFormLeading && itemFunction === "form-radio" ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(SelectItemFormRadio, {}) : null,
2327
+ isFormLeading && itemFunction === "form-checkbox" ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(SelectItemFormCheckbox, {}) : null,
2373
2328
  showLeftIcon && leftIcon ? renderItemIcon(leftIcon, leftIconLevel) : null,
2374
- isPeople ? avatar ?? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(SelectItemDefaultAvatar, {}) : null,
2329
+ isPeople ? avatar ?? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(SelectItemDefaultAvatar, {}) : null,
2375
2330
  textContent,
2376
2331
  showBadge ? renderBadgeSlot(badge ?? "Text") : null,
2377
2332
  showRightIcon && rightIcon ? renderItemIcon(rightIcon, leftIconLevel) : null,
2378
- showMoreFunction ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "aviala-select-item__more", children: moreAction ?? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Link, { level: "text", href: "#", onClick: (event) => event.preventDefault(), children: "Text" }) }) : null,
2333
+ showMoreFunction ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "aviala-select-item__more", children: moreAction ?? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Link, { level: "text", href: "#", onClick: (event) => event.preventDefault(), children: "Text" }) }) : null,
2379
2334
  renderFunctionSlot(itemFunction, layout, showTrailingFunction, icon)
2380
2335
  ]
2381
2336
  }
2382
2337
  );
2383
- const flyout = /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
2338
+ const flyout = /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
2384
2339
  PopoverPrimitive.Content,
2385
2340
  {
2386
2341
  ref: contentRef,
@@ -2398,10 +2353,10 @@ var SelectSubItem = (0, import_react12.forwardRef)(
2398
2353
  onPointerEnter: handleOpen,
2399
2354
  onPointerLeave: handlePointerLeave,
2400
2355
  onPointerDownOutside: (event) => event.preventDefault(),
2401
- children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "aviala-select-viewport aviala-select-sub-content__viewport", children: wrapUngroupedSelectItems(subMenu.children) })
2356
+ children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "aviala-select-viewport aviala-select-sub-content__viewport", children: wrapUngroupedSelectItems(subMenu.children) })
2402
2357
  }
2403
2358
  );
2404
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(PopoverPrimitive.Root, { open, modal: false, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
2359
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(PopoverPrimitive.Root, { open, modal: false, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
2405
2360
  "div",
2406
2361
  {
2407
2362
  ref: (node) => {
@@ -2416,8 +2371,8 @@ var SelectSubItem = (0, import_react12.forwardRef)(
2416
2371
  onPointerEnter: handleOpen,
2417
2372
  onPointerLeave: handlePointerLeave,
2418
2373
  children: [
2419
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(PopoverPrimitive.Anchor, { asChild: true, children: itemRow }),
2420
- portalled ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(PopoverPrimitive.Portal, { children: flyout }) : flyout
2374
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(PopoverPrimitive.Anchor, { asChild: true, children: itemRow }),
2375
+ portalled ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(PopoverPrimitive.Portal, { children: flyout }) : flyout
2421
2376
  ]
2422
2377
  }
2423
2378
  ) });
@@ -2425,12 +2380,12 @@ var SelectSubItem = (0, import_react12.forwardRef)(
2425
2380
  );
2426
2381
  SelectSubItem.displayName = "SelectSubItem";
2427
2382
  var SelectSubItemPeople = (0, import_react12.forwardRef)(
2428
- (props, ref) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(SelectSubItem, { ref, layout: "people", ...props })
2383
+ (props, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(SelectSubItem, { ref, layout: "people", ...props })
2429
2384
  );
2430
2385
  SelectSubItemPeople.displayName = "SelectSubItemPeople";
2431
- var SelectItemPeople = (0, import_react12.forwardRef)((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(SelectItem, { ref, layout: "people", ...props }));
2386
+ var SelectItemPeople = (0, import_react12.forwardRef)((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(SelectItem, { ref, layout: "people", ...props }));
2432
2387
  SelectItemPeople.displayName = "SelectItemPeople";
2433
- var SelectSeparator = (0, import_react12.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
2388
+ var SelectSeparator = (0, import_react12.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
2434
2389
  SelectPrimitive.Separator,
2435
2390
  {
2436
2391
  ref,
@@ -2445,18 +2400,18 @@ function SelectItemGroup({
2445
2400
  children,
2446
2401
  className
2447
2402
  }) {
2448
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(SelectGroup, { className: cn("aviala-select-group", className), children: [
2449
- label ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(SelectLabel, { children: label }) : null,
2450
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "aviala-select-group__slot", children }),
2451
- showDivider ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(SelectSeparator, {}) : null
2403
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(SelectGroup, { className: cn("aviala-select-group", className), children: [
2404
+ label ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(SelectLabel, { children: label }) : null,
2405
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "aviala-select-group__slot", children }),
2406
+ showDivider ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(SelectSeparator, {}) : null
2452
2407
  ] });
2453
2408
  }
2454
2409
 
2455
2410
  // src/components/label.tsx
2456
2411
  var LabelPrimitive = __toESM(require("@radix-ui/react-label"), 1);
2457
2412
  var import_react13 = require("react");
2458
- var import_jsx_runtime11 = require("react/jsx-runtime");
2459
- var Label2 = (0, import_react13.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
2413
+ var import_jsx_runtime12 = require("react/jsx-runtime");
2414
+ var Label2 = (0, import_react13.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
2460
2415
  LabelPrimitive.Root,
2461
2416
  {
2462
2417
  ref,
@@ -2473,7 +2428,7 @@ Label2.displayName = LabelPrimitive.Root.displayName;
2473
2428
  // src/components/avatar.tsx
2474
2429
  var import_class_variance_authority6 = require("class-variance-authority");
2475
2430
  var import_react14 = require("react");
2476
- var import_jsx_runtime12 = require("react/jsx-runtime");
2431
+ var import_jsx_runtime13 = require("react/jsx-runtime");
2477
2432
  var avatarVariants = (0, import_class_variance_authority6.cva)("aviala-avatar", {
2478
2433
  variants: {
2479
2434
  level: {
@@ -2546,7 +2501,7 @@ var Avatar = (0, import_react14.forwardRef)(
2546
2501
  }, ref) => {
2547
2502
  const resolvedLevel = level ?? "text";
2548
2503
  const resolvedContent = content ?? "text";
2549
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
2504
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2550
2505
  "span",
2551
2506
  {
2552
2507
  ref,
@@ -2562,8 +2517,8 @@ var Avatar = (0, import_react14.forwardRef)(
2562
2517
  "data-content": resolvedContent,
2563
2518
  "data-line-height-fix": lineHeightFix ? "true" : "false",
2564
2519
  ...props,
2565
- children: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("span", { className: "aviala-avatar__surface", children: [
2566
- resolvedContent === "picture" && src ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
2520
+ children: /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("span", { className: "aviala-avatar__surface", children: [
2521
+ resolvedContent === "picture" && src ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2567
2522
  "img",
2568
2523
  {
2569
2524
  className: "aviala-avatar__image",
@@ -2572,8 +2527,8 @@ var Avatar = (0, import_react14.forwardRef)(
2572
2527
  ...imgProps
2573
2528
  }
2574
2529
  ) : null,
2575
- resolvedContent === "icon" ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "aviala-avatar__icon", "aria-hidden": true, children: renderAvatarIcon(icon, resolvedLevel) }) : null,
2576
- resolvedContent === "text" ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
2530
+ resolvedContent === "icon" ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "aviala-avatar__icon", "aria-hidden": true, children: renderAvatarIcon(icon, resolvedLevel) }) : null,
2531
+ resolvedContent === "text" ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2577
2532
  Typography,
2578
2533
  {
2579
2534
  level: AVATAR_TEXT_LEVEL[resolvedLevel],
@@ -2593,7 +2548,7 @@ Avatar.displayName = "Avatar";
2593
2548
  var import_icons7 = require("@aviala-design/icons");
2594
2549
  var import_class_variance_authority7 = require("class-variance-authority");
2595
2550
  var import_react15 = require("react");
2596
- var import_jsx_runtime13 = require("react/jsx-runtime");
2551
+ var import_jsx_runtime14 = require("react/jsx-runtime");
2597
2552
  var tagVariants = (0, import_class_variance_authority7.cva)("aviala-tag", {
2598
2553
  variants: {
2599
2554
  level: {
@@ -2641,17 +2596,17 @@ function renderTagIcon(node, level) {
2641
2596
  )
2642
2597
  }
2643
2598
  ) : node;
2644
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "aviala-tag__icon", "aria-hidden": true, children: content });
2599
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "aviala-tag__icon", "aria-hidden": true, children: content });
2645
2600
  }
2646
2601
  var TagClose = (0, import_react15.forwardRef)(
2647
- ({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2602
+ ({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
2648
2603
  "button",
2649
2604
  {
2650
2605
  ref,
2651
2606
  type: "button",
2652
2607
  className: cn("aviala-tag__close aviala-focus-ring", className),
2653
2608
  ...props,
2654
- children: children ?? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_icons7.SymbolWrong, { "aria-hidden": true, width: 14, height: 14 })
2609
+ children: children ?? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_icons7.SymbolWrong, { "aria-hidden": true, width: 14, height: 14 })
2655
2610
  }
2656
2611
  )
2657
2612
  );
@@ -2678,8 +2633,8 @@ var Tag = (0, import_react15.forwardRef)(
2678
2633
  const resolvedContent = content ?? "text";
2679
2634
  const resolvedLhf = resolveLineHeightFix2(resolvedLevel, lineHeightFix);
2680
2635
  const typographyLevel = resolvedLevel;
2681
- const peopleAvatar = avatar ?? (avatarSrc ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Avatar, { level: "text", content: "picture", src: avatarSrc, lineHeightFix: false }) : /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Avatar, { level: "text", content: "text", lineHeightFix: false, children: avatarText ?? (typeof children === "string" ? children.charAt(0) : "?") }));
2682
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
2636
+ const peopleAvatar = avatar ?? (avatarSrc ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Avatar, { level: "text", content: "picture", src: avatarSrc, lineHeightFix: false }) : /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Avatar, { level: "text", content: "text", lineHeightFix: false, children: avatarText ?? (typeof children === "string" ? children.charAt(0) : "?") }));
2637
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
2683
2638
  "span",
2684
2639
  {
2685
2640
  ref,
@@ -2698,8 +2653,8 @@ var Tag = (0, import_react15.forwardRef)(
2698
2653
  "aria-disabled": disabled || void 0,
2699
2654
  ...props,
2700
2655
  children: [
2701
- resolvedContent === "people" ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "aviala-tag__avatar", children: peopleAvatar }) : renderTagIcon(leftIcon, resolvedLevel),
2702
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2656
+ resolvedContent === "people" ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "aviala-tag__avatar", children: peopleAvatar }) : renderTagIcon(leftIcon, resolvedLevel),
2657
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
2703
2658
  Typography,
2704
2659
  {
2705
2660
  level: typographyLevel,
@@ -2709,7 +2664,7 @@ var Tag = (0, import_react15.forwardRef)(
2709
2664
  }
2710
2665
  ),
2711
2666
  resolvedContent === "text" ? renderTagIcon(rightIcon, resolvedLevel) : null,
2712
- closable ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2667
+ closable ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
2713
2668
  TagClose,
2714
2669
  {
2715
2670
  "aria-label": closeLabel,
@@ -2730,7 +2685,7 @@ Tag.displayName = "Tag";
2730
2685
  // src/components/progress.tsx
2731
2686
  var import_class_variance_authority8 = require("class-variance-authority");
2732
2687
  var import_react16 = require("react");
2733
- var import_jsx_runtime14 = require("react/jsx-runtime");
2688
+ var import_jsx_runtime15 = require("react/jsx-runtime");
2734
2689
  var progressVariants = (0, import_class_variance_authority8.cva)("aviala-progress", {
2735
2690
  variants: {
2736
2691
  type: {
@@ -2779,7 +2734,7 @@ var Progress = (0, import_react16.forwardRef)(
2779
2734
  const normalizedRadius = radius - stroke;
2780
2735
  const circumference = normalizedRadius * 2 * Math.PI;
2781
2736
  const strokeDashoffset = circumference - percent / 100 * circumference;
2782
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
2737
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
2783
2738
  "div",
2784
2739
  {
2785
2740
  ref,
@@ -2800,15 +2755,15 @@ var Progress = (0, import_react16.forwardRef)(
2800
2755
  "data-size": resolvedSize,
2801
2756
  "data-shape": resolvedShape,
2802
2757
  ...props,
2803
- children: resolvedShape === "bar" ? /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_jsx_runtime14.Fragment, { children: [
2804
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "aviala-progress__track", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
2758
+ children: resolvedShape === "bar" ? /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(import_jsx_runtime15.Fragment, { children: [
2759
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "aviala-progress__track", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
2805
2760
  "div",
2806
2761
  {
2807
2762
  className: "aviala-progress__fill",
2808
2763
  style: { width: `${percent}%` }
2809
2764
  }
2810
2765
  ) }),
2811
- showLabel ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
2766
+ showLabel ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
2812
2767
  Typography,
2813
2768
  {
2814
2769
  level: "caption",
@@ -2818,7 +2773,7 @@ var Progress = (0, import_react16.forwardRef)(
2818
2773
  children: displayLabel
2819
2774
  }
2820
2775
  ) : null
2821
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
2776
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
2822
2777
  "svg",
2823
2778
  {
2824
2779
  className: "aviala-progress__ring",
@@ -2827,7 +2782,7 @@ var Progress = (0, import_react16.forwardRef)(
2827
2782
  viewBox: `0 0 ${radius * 2} ${radius * 2}`,
2828
2783
  "aria-hidden": true,
2829
2784
  children: [
2830
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
2785
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
2831
2786
  "circle",
2832
2787
  {
2833
2788
  className: "aviala-progress__ring-track",
@@ -2838,7 +2793,7 @@ var Progress = (0, import_react16.forwardRef)(
2838
2793
  strokeWidth: stroke
2839
2794
  }
2840
2795
  ),
2841
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
2796
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
2842
2797
  "circle",
2843
2798
  {
2844
2799
  className: "aviala-progress__ring-fill",
@@ -2865,7 +2820,7 @@ Progress.displayName = "Progress";
2865
2820
  // src/components/scroll.tsx
2866
2821
  var import_class_variance_authority9 = require("class-variance-authority");
2867
2822
  var import_react17 = require("react");
2868
- var import_jsx_runtime15 = require("react/jsx-runtime");
2823
+ var import_jsx_runtime16 = require("react/jsx-runtime");
2869
2824
  var scrollVariants = (0, import_class_variance_authority9.cva)("aviala-scroll", {
2870
2825
  variants: {
2871
2826
  size: {
@@ -2889,7 +2844,7 @@ var Scroll = (0, import_react17.forwardRef)(
2889
2844
  orientation = "vertical",
2890
2845
  children,
2891
2846
  ...props
2892
- }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
2847
+ }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
2893
2848
  "div",
2894
2849
  {
2895
2850
  ref,
@@ -2913,7 +2868,7 @@ var import_react19 = require("react");
2913
2868
 
2914
2869
  // src/components/typeface.tsx
2915
2870
  var import_react18 = require("react");
2916
- var import_jsx_runtime16 = require("react/jsx-runtime");
2871
+ var import_jsx_runtime17 = require("react/jsx-runtime");
2917
2872
  var typefaceLayouts = {
2918
2873
  allCustom: [
2919
2874
  { level: "text", children: null },
@@ -2957,11 +2912,11 @@ var Typeface = (0, import_react18.forwardRef)(
2957
2912
  }, ref) => {
2958
2913
  const layout = typefaceLayouts[content];
2959
2914
  const values = resolveTypefaceValues(content, primary, secondary, tertiary, children);
2960
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { ref, className: cn("aviala-typeface", className), "data-content": content, ...props, children: layout.map((line, index) => {
2915
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { ref, className: cn("aviala-typeface", className), "data-content": content, ...props, children: layout.map((line, index) => {
2961
2916
  const value = values[index];
2962
2917
  if (value === void 0 || value === null || value === false) return null;
2963
2918
  const lineContent = index === 0 ? primaryContent : index === 1 ? secondaryContent : tertiaryContent;
2964
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "aviala-typeface__line", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Typography, { level: line.level, content: lineContent, tone, children: value }) }, `${line.level}-${index}`);
2919
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "aviala-typeface__line", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Typography, { level: line.level, content: lineContent, tone, children: value }) }, `${line.level}-${index}`);
2965
2920
  }) });
2966
2921
  }
2967
2922
  );
@@ -2979,7 +2934,7 @@ function resolveTypefaceValues(content, primary, secondary, tertiary, children)
2979
2934
  return [children];
2980
2935
  }
2981
2936
  var TypefacePair = (0, import_react18.forwardRef)(
2982
- ({ title, description, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
2937
+ ({ title, description, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
2983
2938
  Typeface,
2984
2939
  {
2985
2940
  ref,
@@ -2993,8 +2948,8 @@ var TypefacePair = (0, import_react18.forwardRef)(
2993
2948
  TypefacePair.displayName = "TypefacePair";
2994
2949
 
2995
2950
  // src/components/checkbox.tsx
2996
- var import_jsx_runtime17 = require("react/jsx-runtime");
2997
- var Checkbox = (0, import_react19.forwardRef)(({ className, round = false, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
2951
+ var import_jsx_runtime18 = require("react/jsx-runtime");
2952
+ var Checkbox = (0, import_react19.forwardRef)(({ className, round = false, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
2998
2953
  CheckboxPrimitive.Root,
2999
2954
  {
3000
2955
  ref,
@@ -3002,9 +2957,9 @@ var Checkbox = (0, import_react19.forwardRef)(({ className, round = false, ...pr
3002
2957
  "data-round": round ? "true" : void 0,
3003
2958
  ...props,
3004
2959
  children: [
3005
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { "aria-hidden": true, className: "aviala-checkbox__surface" }),
3006
- /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(CheckboxPrimitive.Indicator, { className: "aviala-checkbox__indicator", children: [
3007
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
2960
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { "aria-hidden": true, className: "aviala-checkbox__surface" }),
2961
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(CheckboxPrimitive.Indicator, { className: "aviala-checkbox__indicator", children: [
2962
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
3008
2963
  import_icons8.SymbolRight,
3009
2964
  {
3010
2965
  className: "aviala-checkbox__indicator-icon aviala-checkbox__indicator-icon--check",
@@ -3014,7 +2969,7 @@ var Checkbox = (0, import_react19.forwardRef)(({ className, round = false, ...pr
3014
2969
  "aria-hidden": true
3015
2970
  }
3016
2971
  ),
3017
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
2972
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
3018
2973
  "span",
3019
2974
  {
3020
2975
  "aria-hidden": true,
@@ -3027,7 +2982,7 @@ var Checkbox = (0, import_react19.forwardRef)(({ className, round = false, ...pr
3027
2982
  ));
3028
2983
  Checkbox.displayName = CheckboxPrimitive.Root.displayName;
3029
2984
  var CheckboxGroup = (0, import_react19.forwardRef)(
3030
- ({ className, direction = "vertical", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
2985
+ ({ className, direction = "vertical", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
3031
2986
  "div",
3032
2987
  {
3033
2988
  ref,
@@ -3049,7 +3004,7 @@ function renderIcon3(node) {
3049
3004
  "shrink-0"
3050
3005
  )
3051
3006
  }) : node;
3052
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "aviala-checkbox-input__icon", children: content });
3007
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "aviala-checkbox-input__icon", children: content });
3053
3008
  }
3054
3009
  var CheckboxInput = (0, import_react19.forwardRef)(
3055
3010
  ({
@@ -3060,16 +3015,16 @@ var CheckboxInput = (0, import_react19.forwardRef)(
3060
3015
  disabled,
3061
3016
  id,
3062
3017
  ...props
3063
- }, ref) => /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
3018
+ }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
3064
3019
  "label",
3065
3020
  {
3066
3021
  htmlFor: id,
3067
3022
  className: cn("aviala-checkbox-input", className),
3068
3023
  "data-disabled": disabled ? "true" : void 0,
3069
3024
  children: [
3070
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Checkbox, { ref, id, disabled, ...props }),
3025
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Checkbox, { ref, id, disabled, ...props }),
3071
3026
  renderIcon3(icon),
3072
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
3027
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
3073
3028
  TypefacePair,
3074
3029
  {
3075
3030
  className: "aviala-checkbox-input__content min-w-0 flex-1",
@@ -3086,8 +3041,8 @@ CheckboxInput.displayName = "CheckboxInput";
3086
3041
  // src/components/radio-group.tsx
3087
3042
  var RadioGroupPrimitive = __toESM(require("@radix-ui/react-radio-group"), 1);
3088
3043
  var import_react20 = require("react");
3089
- var import_jsx_runtime18 = require("react/jsx-runtime");
3090
- var RadioGroup = (0, import_react20.forwardRef)(({ className, direction = "vertical", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
3044
+ var import_jsx_runtime19 = require("react/jsx-runtime");
3045
+ var RadioGroup = (0, import_react20.forwardRef)(({ className, direction = "vertical", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
3091
3046
  RadioGroupPrimitive.Root,
3092
3047
  {
3093
3048
  className: cn("aviala-radio-group", className),
@@ -3097,15 +3052,15 @@ var RadioGroup = (0, import_react20.forwardRef)(({ className, direction = "verti
3097
3052
  }
3098
3053
  ));
3099
3054
  RadioGroup.displayName = RadioGroupPrimitive.Root.displayName;
3100
- var RadioGroupItem = (0, import_react20.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
3055
+ var RadioGroupItem = (0, import_react20.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
3101
3056
  RadioGroupPrimitive.Item,
3102
3057
  {
3103
3058
  ref,
3104
3059
  className: cn("aviala-radio aviala-focus-ring", className),
3105
3060
  ...props,
3106
3061
  children: [
3107
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { "aria-hidden": true, className: "aviala-radio__surface" }),
3108
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { "aria-hidden": true, className: "aviala-radio__indicator" })
3062
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { "aria-hidden": true, className: "aviala-radio__surface" }),
3063
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { "aria-hidden": true, className: "aviala-radio__indicator" })
3109
3064
  ]
3110
3065
  }
3111
3066
  ));
@@ -3121,7 +3076,7 @@ function renderIcon4(node) {
3121
3076
  "shrink-0"
3122
3077
  )
3123
3078
  }) : node;
3124
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "aviala-radio-input__icon", children: content });
3079
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "aviala-radio-input__icon", children: content });
3125
3080
  }
3126
3081
  var RadioInput = (0, import_react20.forwardRef)(
3127
3082
  ({
@@ -3133,7 +3088,7 @@ var RadioInput = (0, import_react20.forwardRef)(
3133
3088
  disabled,
3134
3089
  id,
3135
3090
  ...props
3136
- }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
3091
+ }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
3137
3092
  "label",
3138
3093
  {
3139
3094
  htmlFor: id,
@@ -3141,9 +3096,9 @@ var RadioInput = (0, import_react20.forwardRef)(
3141
3096
  "data-style": variant,
3142
3097
  "data-disabled": disabled ? "true" : void 0,
3143
3098
  children: [
3144
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(RadioGroupItem, { ref, id, disabled, ...props }),
3099
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(RadioGroupItem, { ref, id, disabled, ...props }),
3145
3100
  renderIcon4(icon),
3146
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
3101
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
3147
3102
  TypefacePair,
3148
3103
  {
3149
3104
  className: "aviala-radio-input__content min-w-0 flex-1",
@@ -3160,8 +3115,8 @@ RadioInput.displayName = "RadioInput";
3160
3115
  // src/components/switch.tsx
3161
3116
  var SwitchPrimitive = __toESM(require("@radix-ui/react-switch"), 1);
3162
3117
  var import_react21 = require("react");
3163
- var import_jsx_runtime19 = require("react/jsx-runtime");
3164
- var Switch = (0, import_react21.forwardRef)(({ className, size = "regular", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
3118
+ var import_jsx_runtime20 = require("react/jsx-runtime");
3119
+ var Switch = (0, import_react21.forwardRef)(({ className, size = "regular", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
3165
3120
  SwitchPrimitive.Root,
3166
3121
  {
3167
3122
  className: cn(
@@ -3172,8 +3127,8 @@ var Switch = (0, import_react21.forwardRef)(({ className, size = "regular", ...p
3172
3127
  ref,
3173
3128
  ...props,
3174
3129
  children: [
3175
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { "aria-hidden": true, className: "aviala-switch__surface" }),
3176
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(SwitchPrimitive.Thumb, { className: "aviala-switch__thumb" })
3130
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { "aria-hidden": true, className: "aviala-switch__surface" }),
3131
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(SwitchPrimitive.Thumb, { className: "aviala-switch__thumb" })
3177
3132
  ]
3178
3133
  }
3179
3134
  ));
@@ -3182,9 +3137,9 @@ Switch.displayName = SwitchPrimitive.Root.displayName;
3182
3137
  // src/components/anchor.tsx
3183
3138
  var import_react_slot4 = require("@radix-ui/react-slot");
3184
3139
  var import_react22 = require("react");
3185
- var import_jsx_runtime20 = require("react/jsx-runtime");
3140
+ var import_jsx_runtime21 = require("react/jsx-runtime");
3186
3141
  var Anchor2 = (0, import_react22.forwardRef)(
3187
- ({ className, as: Tag2 = "nav", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Tag2, { ref, className: cn("aviala-anchor", className), ...props })
3142
+ ({ className, as: Tag2 = "nav", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Tag2, { ref, className: cn("aviala-anchor", className), ...props })
3188
3143
  );
3189
3144
  Anchor2.displayName = "Anchor";
3190
3145
  var AnchorItem = (0, import_react22.forwardRef)(
@@ -3197,7 +3152,7 @@ var AnchorItem = (0, import_react22.forwardRef)(
3197
3152
  ...props
3198
3153
  }, ref) => {
3199
3154
  const Comp = asChild ? import_react_slot4.Slot : "a";
3200
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
3155
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
3201
3156
  Comp,
3202
3157
  {
3203
3158
  ref,
@@ -3206,8 +3161,8 @@ var AnchorItem = (0, import_react22.forwardRef)(
3206
3161
  "data-indent": String(indentLevel),
3207
3162
  ...props,
3208
3163
  children: [
3209
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "aviala-anchor-item__rail", "aria-hidden": true }),
3210
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "aviala-anchor-item__content", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Typography, { level: "text", as: "span", className: "aviala-anchor-item__label", children }) })
3164
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "aviala-anchor-item__rail", "aria-hidden": true }),
3165
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "aviala-anchor-item__content", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Typography, { level: "text", as: "span", className: "aviala-anchor-item__label", children }) })
3211
3166
  ]
3212
3167
  }
3213
3168
  );
@@ -3217,7 +3172,7 @@ AnchorItem.displayName = "AnchorItem";
3217
3172
 
3218
3173
  // src/components/segmentator.tsx
3219
3174
  var import_react23 = require("react");
3220
- var import_jsx_runtime21 = require("react/jsx-runtime");
3175
+ var import_jsx_runtime22 = require("react/jsx-runtime");
3221
3176
  var SegmentatorContext = (0, import_react23.createContext)(null);
3222
3177
  function useSegmentatorContext() {
3223
3178
  const ctx = (0, import_react23.useContext)(SegmentatorContext);
@@ -3232,7 +3187,7 @@ function renderIcon5(node, dimmed) {
3232
3187
  level: "text",
3233
3188
  biggerSize: true
3234
3189
  });
3235
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
3190
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
3236
3191
  "span",
3237
3192
  {
3238
3193
  className: cn(
@@ -3681,7 +3636,7 @@ var SegmentatorGroup = (0, import_react23.forwardRef)(
3681
3636
  group.setPointerCapture(event.pointerId);
3682
3637
  };
3683
3638
  const thumbStyle = thumb ? buildThumbStyle() : void 0;
3684
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
3639
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
3685
3640
  SegmentatorContext.Provider,
3686
3641
  {
3687
3642
  value: (0, import_react23.useMemo)(
@@ -3695,7 +3650,7 @@ var SegmentatorGroup = (0, import_react23.forwardRef)(
3695
3650
  }),
3696
3651
  [currentValue, setValue, mode, allRound, disabled]
3697
3652
  ),
3698
- children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
3653
+ children: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
3699
3654
  "div",
3700
3655
  {
3701
3656
  ref: (node) => {
@@ -3717,7 +3672,7 @@ var SegmentatorGroup = (0, import_react23.forwardRef)(
3717
3672
  onLostPointerCapture: finishPointerDrag,
3718
3673
  children: [
3719
3674
  children,
3720
- thumb && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
3675
+ thumb && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
3721
3676
  "span",
3722
3677
  {
3723
3678
  ref: onThumbRef,
@@ -3755,7 +3710,7 @@ var SegmentatorItem = (0, import_react23.forwardRef)(
3755
3710
  const isDisabled = disabled || ctx.disabled;
3756
3711
  const dimmed = isDisabled;
3757
3712
  const icon = iconOnly ? leftIcon ?? rightIcon : leftIcon;
3758
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
3713
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
3759
3714
  "button",
3760
3715
  {
3761
3716
  ref,
@@ -3777,9 +3732,9 @@ var SegmentatorItem = (0, import_react23.forwardRef)(
3777
3732
  onClick?.(e);
3778
3733
  },
3779
3734
  ...props,
3780
- children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("span", { className: "aviala-segmentator-item__content", children: [
3735
+ children: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("span", { className: "aviala-segmentator-item__content", children: [
3781
3736
  renderIcon5(icon, dimmed && !!icon),
3782
- !iconOnly && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
3737
+ !iconOnly && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
3783
3738
  "span",
3784
3739
  {
3785
3740
  className: cn(
@@ -3801,7 +3756,7 @@ SegmentatorItem.displayName = "SegmentatorItem";
3801
3756
  // src/components/form-field.tsx
3802
3757
  var import_icons9 = require("@aviala-design/icons");
3803
3758
  var import_react24 = require("react");
3804
- var import_jsx_runtime22 = require("react/jsx-runtime");
3759
+ var import_jsx_runtime23 = require("react/jsx-runtime");
3805
3760
  var FormField = (0, import_react24.forwardRef)(
3806
3761
  ({
3807
3762
  className,
@@ -3819,31 +3774,31 @@ var FormField = (0, import_react24.forwardRef)(
3819
3774
  const reactId = (0, import_react24.useId)();
3820
3775
  const labelId = `${reactId}-label`;
3821
3776
  const hasLabel = label != null && label !== "";
3822
- const labelNode = hasLabel || description ? htmlFor ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("label", { htmlFor, className: "aviala-form__label aviala-form__label--control", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
3777
+ const labelNode = hasLabel || description ? htmlFor ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("label", { htmlFor, className: "aviala-form__label aviala-form__label--control", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
3823
3778
  Typeface,
3824
3779
  {
3825
3780
  id: labelId,
3826
3781
  content: "textCaption",
3827
- primary: hasLabel ? /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_jsx_runtime22.Fragment, { children: [
3782
+ primary: hasLabel ? /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_jsx_runtime23.Fragment, { children: [
3828
3783
  label,
3829
- required ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "aviala-form__required", "aria-hidden": true, children: "*" }) : null
3784
+ required ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "aviala-form__required", "aria-hidden": true, children: "*" }) : null
3830
3785
  ] }) : void 0,
3831
3786
  secondary: description
3832
3787
  }
3833
- ) }) : /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
3788
+ ) }) : /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
3834
3789
  Typeface,
3835
3790
  {
3836
3791
  id: labelId,
3837
3792
  className: "aviala-form__label",
3838
3793
  content: "textCaption",
3839
- primary: hasLabel ? /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_jsx_runtime22.Fragment, { children: [
3794
+ primary: hasLabel ? /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_jsx_runtime23.Fragment, { children: [
3840
3795
  label,
3841
- required ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "aviala-form__required", "aria-hidden": true, children: "*" }) : null
3796
+ required ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "aviala-form__required", "aria-hidden": true, children: "*" }) : null
3842
3797
  ] }) : void 0,
3843
3798
  secondary: description
3844
3799
  }
3845
3800
  ) : null;
3846
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
3801
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
3847
3802
  "div",
3848
3803
  {
3849
3804
  ref,
@@ -3853,10 +3808,10 @@ var FormField = (0, import_react24.forwardRef)(
3853
3808
  ...props,
3854
3809
  children: [
3855
3810
  labelNode,
3856
- /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "aviala-form__content", children: [
3811
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "aviala-form__content", children: [
3857
3812
  children,
3858
- error ? /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "aviala-form__message aviala-form__message--error", role: "alert", children: [
3859
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
3813
+ error ? /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "aviala-form__message aviala-form__message--error", role: "alert", children: [
3814
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
3860
3815
  import_icons9.SymbolWrongCircle,
3861
3816
  {
3862
3817
  className: "aviala-form__message-icon",
@@ -3865,10 +3820,10 @@ var FormField = (0, import_react24.forwardRef)(
3865
3820
  "aria-hidden": true
3866
3821
  }
3867
3822
  ),
3868
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Typography, { level: "caption", as: "p", className: "aviala-form__message-text", children: error })
3823
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Typography, { level: "caption", as: "p", className: "aviala-form__message-text", children: error })
3869
3824
  ] }) : null,
3870
- info ? /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "aviala-form__message aviala-form__message--info", children: [
3871
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
3825
+ info ? /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "aviala-form__message aviala-form__message--info", children: [
3826
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
3872
3827
  import_icons9.SymbolInformationCircle,
3873
3828
  {
3874
3829
  className: "aviala-form__message-icon",
@@ -3877,9 +3832,9 @@ var FormField = (0, import_react24.forwardRef)(
3877
3832
  "aria-hidden": true
3878
3833
  }
3879
3834
  ),
3880
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Typography, { level: "caption", as: "p", className: "aviala-form__message-text", children: info })
3835
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Typography, { level: "caption", as: "p", className: "aviala-form__message-text", children: info })
3881
3836
  ] }) : null,
3882
- alert ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "aviala-form__alert", children: alert }) : null
3837
+ alert ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "aviala-form__alert", children: alert }) : null
3883
3838
  ] })
3884
3839
  ]
3885
3840
  }
@@ -3890,9 +3845,9 @@ FormField.displayName = "FormField";
3890
3845
 
3891
3846
  // src/components/input-group.tsx
3892
3847
  var import_react25 = require("react");
3893
- var import_jsx_runtime23 = require("react/jsx-runtime");
3848
+ var import_jsx_runtime24 = require("react/jsx-runtime");
3894
3849
  var InputGroup = (0, import_react25.forwardRef)(
3895
- ({ className, orientation = "horizontal", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
3850
+ ({ className, orientation = "horizontal", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
3896
3851
  "div",
3897
3852
  {
3898
3853
  ref,
@@ -3906,7 +3861,7 @@ var InputGroup = (0, import_react25.forwardRef)(
3906
3861
  )
3907
3862
  );
3908
3863
  InputGroup.displayName = "InputGroup";
3909
- var InputGroupAddon = (0, import_react25.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
3864
+ var InputGroupAddon = (0, import_react25.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
3910
3865
  "div",
3911
3866
  {
3912
3867
  ref,
@@ -3922,7 +3877,7 @@ InputGroupAddon.displayName = "InputGroupAddon";
3922
3877
 
3923
3878
  // src/components/stack.tsx
3924
3879
  var import_react26 = require("react");
3925
- var import_jsx_runtime24 = require("react/jsx-runtime");
3880
+ var import_jsx_runtime25 = require("react/jsx-runtime");
3926
3881
  var gapMap = {
3927
3882
  inside: "var(--gap-inside, 4px)",
3928
3883
  component: "var(--gap-component, 8px)",
@@ -3931,7 +3886,7 @@ var gapMap = {
3931
3886
  page: "var(--gap-page-space, 24px)"
3932
3887
  };
3933
3888
  var Stack = (0, import_react26.forwardRef)(
3934
- ({ className, gap = "component", direction = "column", style, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
3889
+ ({ className, gap = "component", direction = "column", style, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
3935
3890
  "div",
3936
3891
  {
3937
3892
  ref,
@@ -3959,7 +3914,7 @@ var Fieldset = (0, import_react26.forwardRef)(
3959
3914
  const heading = title ?? legend;
3960
3915
  const hasHeading = heading != null && heading !== "";
3961
3916
  const hasAction = info != null || feedback != null || actions != null;
3962
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
3917
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
3963
3918
  "fieldset",
3964
3919
  {
3965
3920
  ref,
@@ -3967,7 +3922,7 @@ var Fieldset = (0, import_react26.forwardRef)(
3967
3922
  "aria-labelledby": hasHeading ? headingId : void 0,
3968
3923
  ...props,
3969
3924
  children: [
3970
- hasHeading || description ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
3925
+ hasHeading || description ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
3971
3926
  Typeface,
3972
3927
  {
3973
3928
  id: headingId,
@@ -3977,11 +3932,11 @@ var Fieldset = (0, import_react26.forwardRef)(
3977
3932
  secondary: description
3978
3933
  }
3979
3934
  ) : null,
3980
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "aviala-form-group__slot", children }),
3981
- hasAction ? /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "aviala-form-group__action", children: [
3982
- info ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "aviala-form-group__info", children: info }) : null,
3983
- feedback ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "aviala-form-group__feedback", children: feedback }) : null,
3984
- actions ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "aviala-form-group__actions", children: actions }) : null
3935
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "aviala-form-group__slot", children }),
3936
+ hasAction ? /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "aviala-form-group__action", children: [
3937
+ info ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "aviala-form-group__info", children: info }) : null,
3938
+ feedback ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "aviala-form-group__feedback", children: feedback }) : null,
3939
+ actions ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "aviala-form-group__actions", children: actions }) : null
3985
3940
  ] }) : null
3986
3941
  ]
3987
3942
  }
@@ -4153,7 +4108,7 @@ function useColorPickerState({
4153
4108
  }
4154
4109
 
4155
4110
  // src/components/color-picker/color-picker-area.tsx
4156
- var import_jsx_runtime25 = require("react/jsx-runtime");
4111
+ var import_jsx_runtime26 = require("react/jsx-runtime");
4157
4112
  function ColorPickerArea({
4158
4113
  className,
4159
4114
  disabled,
@@ -4185,7 +4140,7 @@ function ColorPickerArea({
4185
4140
  );
4186
4141
  const { handlePointerDown, handlePointerMove } = usePointerDrag(ref, handleMove, !isDisabled);
4187
4142
  const hueColor = pureHueHex(hsva.h);
4188
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: cn("aviala-color-picker-area", className), ...spiralDebugId("color-picker.content.area"), children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
4143
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: cn("aviala-color-picker-area", className), ...spiralDebugId("color-picker.content.area"), children: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
4189
4144
  "div",
4190
4145
  {
4191
4146
  ref,
@@ -4200,9 +4155,9 @@ function ColorPickerArea({
4200
4155
  "aria-valuenow": Math.round(hsva.s),
4201
4156
  tabIndex: isDisabled ? -1 : 0,
4202
4157
  children: [
4203
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "aviala-color-picker-area__white", "aria-hidden": true }),
4204
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "aviala-color-picker-area__black", "aria-hidden": true }),
4205
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
4158
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "aviala-color-picker-area__white", "aria-hidden": true }),
4159
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "aviala-color-picker-area__black", "aria-hidden": true }),
4160
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
4206
4161
  "div",
4207
4162
  {
4208
4163
  className: "aviala-color-picker-area__thumb",
@@ -4221,7 +4176,7 @@ function ColorPickerArea({
4221
4176
  // src/components/color-picker/color-picker-inputs.tsx
4222
4177
  var import_icons10 = require("@aviala-design/icons");
4223
4178
  var import_react31 = require("react");
4224
- var import_jsx_runtime26 = require("react/jsx-runtime");
4179
+ var import_jsx_runtime27 = require("react/jsx-runtime");
4225
4180
  function ColorPickerInputs({
4226
4181
  className,
4227
4182
  disabled,
@@ -4281,8 +4236,8 @@ function ColorPickerInputs({
4281
4236
  } catch {
4282
4237
  }
4283
4238
  }, [eyeDropperSupported, isDisabled, setValue]);
4284
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: cn("aviala-color-picker-inputs", className), ...spiralDebugId("color-picker.content.inputs"), children: [
4285
- showEyedropper ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
4239
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: cn("aviala-color-picker-inputs", className), ...spiralDebugId("color-picker.content.inputs"), children: [
4240
+ showEyedropper ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
4286
4241
  Button,
4287
4242
  {
4288
4243
  type: "button",
@@ -4294,12 +4249,12 @@ function ColorPickerInputs({
4294
4249
  ...spiralDebugId("color-picker.content.inputs.eyedropper"),
4295
4250
  title: eyeDropperSupported ? "Pick color from screen" : "EyeDropper not supported in this browser",
4296
4251
  onClick: handleEyedropper,
4297
- children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_icons10.EditColorPicker, { "aria-hidden": true })
4252
+ children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_icons10.EditColorPicker, { "aria-hidden": true })
4298
4253
  }
4299
4254
  ) : null,
4300
- format === "hex" ? /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "aviala-color-picker-field", children: [
4301
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "aviala-color-picker-field__badge-area", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Badge, { style: "normal", children: "#" }) }),
4302
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
4255
+ format === "hex" ? /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "aviala-color-picker-field", children: [
4256
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "aviala-color-picker-field__badge-area", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Badge, { style: "normal", children: "#" }) }),
4257
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
4303
4258
  "input",
4304
4259
  {
4305
4260
  className: cn("aviala-color-picker-field__input", typographyVariants({ level: "text" })),
@@ -4311,7 +4266,7 @@ function ColorPickerInputs({
4311
4266
  onKeyDown: (e) => e.key === "Enter" && commitHex()
4312
4267
  }
4313
4268
  )
4314
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "aviala-color-picker-field", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
4269
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "aviala-color-picker-field", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
4315
4270
  "input",
4316
4271
  {
4317
4272
  className: cn("aviala-color-picker-field__input", typographyVariants({ level: "text" })),
@@ -4323,8 +4278,8 @@ function ColorPickerInputs({
4323
4278
  onKeyDown: (e) => e.key === "Enter" && commitComponents()
4324
4279
  }
4325
4280
  ) }),
4326
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "aviala-color-picker-field aviala-color-picker-field--alpha", children: [
4327
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
4281
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "aviala-color-picker-field aviala-color-picker-field--alpha", children: [
4282
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
4328
4283
  "input",
4329
4284
  {
4330
4285
  className: cn("aviala-color-picker-field__input", typographyVariants({ level: "text" })),
@@ -4337,20 +4292,20 @@ function ColorPickerInputs({
4337
4292
  onKeyDown: (e) => e.key === "Enter" && commitAlpha()
4338
4293
  }
4339
4294
  ),
4340
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "aviala-color-picker-field__badge-area", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Badge, { style: "normal", children: "%" }) })
4295
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "aviala-color-picker-field__badge-area", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Badge, { style: "normal", children: "%" }) })
4341
4296
  ] }),
4342
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
4297
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
4343
4298
  Select,
4344
4299
  {
4345
4300
  value: format,
4346
4301
  onValueChange: (next) => setFormat(next),
4347
4302
  disabled: isDisabled,
4348
4303
  children: [
4349
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(SelectTrigger, { className: "aviala-color-picker-format-select w-[76px] shrink-0", size: "regular", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(SelectValue, {}) }),
4350
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(SelectContent, { onCloseAutoFocus: (event) => event.preventDefault(), children: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(SelectItemGroup, { children: [
4351
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(SelectItem, { value: "hex", itemFunction: "radio", children: "HEX" }),
4352
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(SelectItem, { value: "rgb", itemFunction: "radio", children: "RGB" }),
4353
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(SelectItem, { value: "hsl", itemFunction: "radio", children: "HSL" })
4304
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(SelectTrigger, { className: "aviala-color-picker-format-select w-[76px] shrink-0", size: "regular", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(SelectValue, {}) }),
4305
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(SelectContent, { onCloseAutoFocus: (event) => event.preventDefault(), children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(SelectItemGroup, { children: [
4306
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(SelectItem, { value: "hex", itemFunction: "radio", children: "HEX" }),
4307
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(SelectItem, { value: "rgb", itemFunction: "radio", children: "RGB" }),
4308
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(SelectItem, { value: "hsl", itemFunction: "radio", children: "HSL" })
4354
4309
  ] }) })
4355
4310
  ]
4356
4311
  }
@@ -4374,11 +4329,11 @@ var import_icons11 = require("@aviala-design/icons");
4374
4329
 
4375
4330
  // src/components/color-picker/color-pick-button.tsx
4376
4331
  var import_react32 = require("react");
4377
- var import_jsx_runtime27 = require("react/jsx-runtime");
4332
+ var import_jsx_runtime28 = require("react/jsx-runtime");
4378
4333
  var ColorPickButton = (0, import_react32.forwardRef)(
4379
4334
  ({ className, color, selected = false, style, ...props }, ref) => {
4380
4335
  const swatch = parseColor(color).toHex();
4381
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
4336
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
4382
4337
  "button",
4383
4338
  {
4384
4339
  ref,
@@ -4387,7 +4342,7 @@ var ColorPickButton = (0, import_react32.forwardRef)(
4387
4342
  "data-selected": selected ? "true" : void 0,
4388
4343
  style,
4389
4344
  ...props,
4390
- children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
4345
+ children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
4391
4346
  "span",
4392
4347
  {
4393
4348
  className: "aviala-color-pick-button__swatch",
@@ -4402,7 +4357,7 @@ var ColorPickButton = (0, import_react32.forwardRef)(
4402
4357
  ColorPickButton.displayName = "ColorPickButton";
4403
4358
 
4404
4359
  // src/components/color-picker/color-picker-presets.tsx
4405
- var import_jsx_runtime28 = require("react/jsx-runtime");
4360
+ var import_jsx_runtime29 = require("react/jsx-runtime");
4406
4361
  function ColorPickerPresets({
4407
4362
  className,
4408
4363
  presets: presetsProp,
@@ -4424,8 +4379,8 @@ function ColorPickerPresets({
4424
4379
  const next = [...presets, normalized].slice(-maxPresets);
4425
4380
  onPresetsChange(next);
4426
4381
  };
4427
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: cn("aviala-color-picker-presets", className), ...spiralDebugId("color-picker.content.presets"), children: [
4428
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
4382
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: cn("aviala-color-picker-presets", className), ...spiralDebugId("color-picker.content.presets"), children: [
4383
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
4429
4384
  Button,
4430
4385
  {
4431
4386
  type: "button",
@@ -4435,10 +4390,10 @@ function ColorPickerPresets({
4435
4390
  disabled: isDisabled || !onPresetsChange || presets.length >= maxPresets,
4436
4391
  "aria-label": "Add current color to presets",
4437
4392
  onClick: handleAdd,
4438
- children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_icons11.SymbolAdd, { "aria-hidden": true })
4393
+ children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_icons11.SymbolAdd, { "aria-hidden": true })
4439
4394
  }
4440
4395
  ),
4441
- presets.map((color) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
4396
+ presets.map((color) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
4442
4397
  ColorPickButton,
4443
4398
  {
4444
4399
  color,
@@ -4453,7 +4408,7 @@ function ColorPickerPresets({
4453
4408
 
4454
4409
  // src/components/color-picker/color-picker-slider.tsx
4455
4410
  var import_react33 = require("react");
4456
- var import_jsx_runtime29 = require("react/jsx-runtime");
4411
+ var import_jsx_runtime30 = require("react/jsx-runtime");
4457
4412
  function ColorPickerSlider({
4458
4413
  kind,
4459
4414
  className,
@@ -4501,12 +4456,12 @@ function ColorPickerSlider({
4501
4456
  backgroundImage: `linear-gradient(90deg, transparent, ${solidHex(value)})`,
4502
4457
  backgroundColor: "var(--color-picker-checkerboard)"
4503
4458
  };
4504
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
4459
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
4505
4460
  "div",
4506
4461
  {
4507
4462
  className: cn("aviala-color-picker-slider-row", className),
4508
4463
  ...spiralDebugId(`color-picker.content.${kind}-slider`),
4509
- children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
4464
+ children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
4510
4465
  "div",
4511
4466
  {
4512
4467
  ref,
@@ -4520,8 +4475,8 @@ function ColorPickerSlider({
4520
4475
  "aria-valuenow": ariaValueNow,
4521
4476
  tabIndex: isDisabled ? -1 : 0,
4522
4477
  children: [
4523
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "aviala-color-picker-slider__track", style: trackStyle }),
4524
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
4478
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "aviala-color-picker-slider__track", style: trackStyle }),
4479
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
4525
4480
  "div",
4526
4481
  {
4527
4482
  className: "aviala-color-picker-slider__thumb",
@@ -4537,7 +4492,7 @@ function ColorPickerSlider({
4537
4492
  }
4538
4493
 
4539
4494
  // src/components/color-picker/color-picker.tsx
4540
- var import_jsx_runtime30 = require("react/jsx-runtime");
4495
+ var import_jsx_runtime31 = require("react/jsx-runtime");
4541
4496
  function ColorPicker({
4542
4497
  children,
4543
4498
  className,
@@ -4580,17 +4535,17 @@ function ColorPicker({
4580
4535
  onPresetsChange,
4581
4536
  maxPresets
4582
4537
  };
4583
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(ColorPickerContextProvider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(PopoverPrimitive2.Root, { open, onOpenChange: handleOpenChange, modal: false, children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: cn("inline-flex", className), ...spiralDebugId("color-picker"), children }) }) });
4538
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(ColorPickerContextProvider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(PopoverPrimitive2.Root, { open, onOpenChange: handleOpenChange, modal: false, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: cn("inline-flex", className), ...spiralDebugId("color-picker"), children }) }) });
4584
4539
  }
4585
4540
  function ColorPickerContextProvider({
4586
4541
  value,
4587
4542
  children
4588
4543
  }) {
4589
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(ColorPickerContext.Provider, { value, children });
4544
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(ColorPickerContext.Provider, { value, children });
4590
4545
  }
4591
4546
  var ColorPickerTrigger = (0, import_react34.forwardRef)(({ className, size = "regular", allRound = false, placeholder = "Select color", ...props }, ref) => {
4592
4547
  const { value, open, disabled } = useColorPickerContext();
4593
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(PopoverPrimitive2.Trigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
4548
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(PopoverPrimitive2.Trigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
4594
4549
  "button",
4595
4550
  {
4596
4551
  ref,
@@ -4604,7 +4559,7 @@ var ColorPickerTrigger = (0, import_react34.forwardRef)(({ className, size = "re
4604
4559
  disabled,
4605
4560
  ...props,
4606
4561
  children: [
4607
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "aviala-color-picker-trigger__swatch", ...spiralDebugId("color-picker.trigger.swatch"), children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
4562
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "aviala-color-picker-trigger__swatch", ...spiralDebugId("color-picker.trigger.swatch"), children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
4608
4563
  "span",
4609
4564
  {
4610
4565
  className: "aviala-color-picker-trigger__swatch-inner",
@@ -4612,7 +4567,7 @@ var ColorPickerTrigger = (0, import_react34.forwardRef)(({ className, size = "re
4612
4567
  "aria-hidden": true
4613
4568
  }
4614
4569
  ) }),
4615
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "aviala-color-picker-trigger__value", ...spiralDebugId("color-picker.trigger.value"), children: value ? value.replace(/^#/, "").slice(0, 6).toUpperCase() : /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "aviala-color-picker-trigger__placeholder", children: placeholder }) })
4570
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "aviala-color-picker-trigger__value", ...spiralDebugId("color-picker.trigger.value"), children: value ? value.replace(/^#/, "").slice(0, 6).toUpperCase() : /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "aviala-color-picker-trigger__placeholder", children: placeholder }) })
4616
4571
  ]
4617
4572
  }
4618
4573
  ) });
@@ -4631,7 +4586,7 @@ var ColorPickerContent = (0, import_react34.forwardRef)(
4631
4586
  ...props
4632
4587
  }, ref) => {
4633
4588
  const { presets, onPresetsChange, maxPresets, disabled } = useColorPickerContext();
4634
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(PopoverPrimitive2.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
4589
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(PopoverPrimitive2.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
4635
4590
  PopoverPrimitive2.Content,
4636
4591
  {
4637
4592
  ref,
@@ -4647,12 +4602,12 @@ var ColorPickerContent = (0, import_react34.forwardRef)(
4647
4602
  },
4648
4603
  onFocusOutside: (event) => event.preventDefault(),
4649
4604
  ...props,
4650
- children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "aviala-color-picker-panel", children: [
4651
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(ColorPickerArea, { disabled }),
4652
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(ColorPickerSlider, { kind: "hue", disabled }),
4653
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(ColorPickerSlider, { kind: "alpha", disabled }),
4654
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(ColorPickerInputs, { disabled, showEyedropper }),
4655
- showPresets ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
4605
+ children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "aviala-color-picker-panel", children: [
4606
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(ColorPickerArea, { disabled }),
4607
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(ColorPickerSlider, { kind: "hue", disabled }),
4608
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(ColorPickerSlider, { kind: "alpha", disabled }),
4609
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(ColorPickerInputs, { disabled, showEyedropper }),
4610
+ showPresets ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
4656
4611
  ColorPickerPresets,
4657
4612
  {
4658
4613
  disabled,
@@ -4669,7 +4624,7 @@ var ColorPickerContent = (0, import_react34.forwardRef)(
4669
4624
  ColorPickerContent.displayName = "ColorPickerContent";
4670
4625
 
4671
4626
  // src/components/color-picker/color-picker-panel.tsx
4672
- var import_jsx_runtime31 = require("react/jsx-runtime");
4627
+ var import_jsx_runtime32 = require("react/jsx-runtime");
4673
4628
  function ColorPickerPanel({
4674
4629
  className,
4675
4630
  disabled,
@@ -4701,12 +4656,12 @@ function ColorPickerPanel({
4701
4656
  onPresetsChange,
4702
4657
  maxPresets
4703
4658
  };
4704
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(ColorPickerContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: cn("aviala-color-picker-panel", className), children: [
4705
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(ColorPickerArea, { disabled }),
4706
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(ColorPickerSlider, { kind: "hue", disabled }),
4707
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(ColorPickerSlider, { kind: "alpha", disabled }),
4708
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(ColorPickerInputs, { disabled, showEyedropper }),
4709
- showPresets ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
4659
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(ColorPickerContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: cn("aviala-color-picker-panel", className), children: [
4660
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(ColorPickerArea, { disabled }),
4661
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(ColorPickerSlider, { kind: "hue", disabled }),
4662
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(ColorPickerSlider, { kind: "alpha", disabled }),
4663
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(ColorPickerInputs, { disabled, showEyedropper }),
4664
+ showPresets ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
4710
4665
  ColorPickerPresets,
4711
4666
  {
4712
4667
  disabled,
@@ -4722,7 +4677,7 @@ function ColorPickerPanel({
4722
4677
  var PopoverPrimitive3 = __toESM(require("@radix-ui/react-popover"), 1);
4723
4678
  var import_icons12 = require("@aviala-design/icons");
4724
4679
  var import_react35 = require("react");
4725
- var import_jsx_runtime32 = require("react/jsx-runtime");
4680
+ var import_jsx_runtime33 = require("react/jsx-runtime");
4726
4681
  var CascaderContext = (0, import_react35.createContext)(null);
4727
4682
  function useCascaderContext() {
4728
4683
  const context = (0, import_react35.useContext)(CascaderContext);
@@ -4731,29 +4686,13 @@ function useCascaderContext() {
4731
4686
  }
4732
4687
  return context;
4733
4688
  }
4734
- function renderSlotIcon5(node, debugId) {
4735
- if (!node) return null;
4736
- const content = cloneAvialaIconElement(node, {
4737
- level: "text",
4738
- biggerSize: true
4739
- });
4740
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
4741
- "span",
4742
- {
4743
- className: "aviala-cascader-trigger__slot",
4744
- style: iconSlotCssVarStyle(node, "--input-slot-icon-size", "text", true),
4745
- ...debugId ? spiralDebugId(debugId) : void 0,
4746
- children: content
4747
- }
4748
- );
4749
- }
4750
4689
  function renderItemIcon2(node, iconLevel = "text", debugId) {
4751
4690
  if (!node) return null;
4752
4691
  const content = cloneAvialaIconElement(node, {
4753
4692
  level: iconLevel,
4754
4693
  biggerSize: true
4755
4694
  });
4756
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
4695
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
4757
4696
  "span",
4758
4697
  {
4759
4698
  className: cn(
@@ -4768,16 +4707,16 @@ function renderItemIcon2(node, iconLevel = "text", debugId) {
4768
4707
  }
4769
4708
  function renderBadgeSlot2(node) {
4770
4709
  if (node == null || node === false) return null;
4771
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "aviala-cascader-item__badge", children: (0, import_react35.isValidElement)(node) && node.type === Badge ? node : /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Badge, { children: node }) });
4710
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "aviala-cascader-item__badge", children: (0, import_react35.isValidElement)(node) && node.type === Badge ? node : /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Badge, { children: node }) });
4772
4711
  }
4773
4712
  function CascaderItemFormRadio() {
4774
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("span", { className: "aviala-cascader-item__form-radio", "aria-hidden": true, children: [
4775
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "aviala-cascader-item__form-radio-surface" }),
4776
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "aviala-cascader-item__form-radio-indicator" })
4713
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("span", { className: "aviala-cascader-item__form-radio", "aria-hidden": true, children: [
4714
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "aviala-cascader-item__form-radio-surface" }),
4715
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "aviala-cascader-item__form-radio-indicator" })
4777
4716
  ] });
4778
4717
  }
4779
4718
  function CascaderItemFormCheckbox() {
4780
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "aviala-cascader-item__form-checkbox", "aria-hidden": true, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
4719
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "aviala-cascader-item__form-checkbox", "aria-hidden": true, children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
4781
4720
  import_icons12.SymbolRight,
4782
4721
  {
4783
4722
  className: "aviala-cascader-item__form-checkbox-icon",
@@ -4790,27 +4729,27 @@ function CascaderItemFormCheckbox() {
4790
4729
  }
4791
4730
  function CascaderItemTrailingRadio({ selected }) {
4792
4731
  if (!selected) return null;
4793
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "aviala-cascader-item__trailing-radio", "aria-hidden": true, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_icons12.SymbolRight, { level: "text", biggerSize: true, "aria-hidden": true }) });
4732
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "aviala-cascader-item__trailing-radio", "aria-hidden": true, children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_icons12.SymbolRight, { level: "text", biggerSize: true, "aria-hidden": true }) });
4794
4733
  }
4795
4734
  function CascaderItemTrailingCheckbox({ selected }) {
4796
4735
  if (!selected) return null;
4797
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "aviala-cascader-item__trailing-checkbox", "aria-hidden": true, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_icons12.SymbolRight, { level: "text", biggerSize: true, "aria-hidden": true }) });
4736
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "aviala-cascader-item__trailing-checkbox", "aria-hidden": true, children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_icons12.SymbolRight, { level: "text", biggerSize: true, "aria-hidden": true }) });
4798
4737
  }
4799
4738
  function renderFunctionSlot2(itemFunction, layout, showFunctionIcon, hasChildren, selected, icon) {
4800
4739
  if (!showFunctionIcon || layout === "title") return null;
4801
4740
  if (icon !== void 0) {
4802
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "aviala-cascader-item__function", children: icon });
4741
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "aviala-cascader-item__function", children: icon });
4803
4742
  }
4804
4743
  switch (itemFunction) {
4805
4744
  case "radio":
4806
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "aviala-cascader-item__function", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(CascaderItemTrailingRadio, { selected }) });
4745
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "aviala-cascader-item__function", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(CascaderItemTrailingRadio, { selected }) });
4807
4746
  case "checkbox":
4808
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "aviala-cascader-item__function", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(CascaderItemTrailingCheckbox, { selected }) });
4747
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "aviala-cascader-item__function", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(CascaderItemTrailingCheckbox, { selected }) });
4809
4748
  case "simple":
4810
4749
  default:
4811
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("span", { className: "aviala-cascader-item__function", children: [
4812
- selected ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_icons12.SymbolRight, { level: "text", biggerSize: true, "aria-hidden": true }) : null,
4813
- hasChildren ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_icons12.DirectionArrowRightLight, { level: "text", biggerSize: true, "aria-hidden": true }) : null
4750
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("span", { className: "aviala-cascader-item__function", children: [
4751
+ selected ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_icons12.SymbolRight, { level: "text", biggerSize: true, "aria-hidden": true }) : null,
4752
+ hasChildren ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_icons12.DirectionArrowRightLight, { level: "text", biggerSize: true, "aria-hidden": true }) : null
4814
4753
  ] });
4815
4754
  }
4816
4755
  }
@@ -4970,7 +4909,7 @@ function Cascader({
4970
4909
  size
4971
4910
  ]
4972
4911
  );
4973
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(CascaderContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(PopoverPrimitive3.Root, { open, onOpenChange: handleOpenChange, modal: false, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: cn("inline-flex", className), ...spiralDebugId("cascader"), children }) }) });
4912
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(CascaderContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(PopoverPrimitive3.Root, { open, onOpenChange: handleOpenChange, modal: false, children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: cn("inline-flex", className), ...spiralDebugId("cascader"), children }) }) });
4974
4913
  }
4975
4914
  var CascaderTrigger = (0, import_react35.forwardRef)(
4976
4915
  ({
@@ -4991,12 +4930,12 @@ var CascaderTrigger = (0, import_react35.forwardRef)(
4991
4930
  const size = sizeProp ?? sizeContext;
4992
4931
  const disabled = disabledProp ?? disabledContext;
4993
4932
  const labels = selectedPath.map((_, index) => getOptionAtPath(selectedPath.slice(0, index + 1))?.label).filter((label) => label != null && label !== false);
4994
- const resolvedDisplay = displayValue ?? (labels.length > 0 ? labels.map((label, index) => /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("span", { children: [
4933
+ const resolvedDisplay = displayValue ?? (labels.length > 0 ? labels.map((label, index) => /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("span", { children: [
4995
4934
  index > 0 ? separator : null,
4996
4935
  label
4997
4936
  ] }, `${selectedPath[index]}-${index}`)) : null);
4998
4937
  const hasValue = resolvedDisplay != null && resolvedDisplay !== false;
4999
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(PopoverPrimitive3.Trigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
4938
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(PopoverPrimitive3.Trigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
5000
4939
  "button",
5001
4940
  {
5002
4941
  ref,
@@ -5012,8 +4951,8 @@ var CascaderTrigger = (0, import_react35.forwardRef)(
5012
4951
  ...spiralDebugId("cascader.trigger"),
5013
4952
  ...props,
5014
4953
  children: [
5015
- renderSlotIcon5(leftIcon, "cascader.trigger.icon-left"),
5016
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "aviala-cascader-trigger__field", ...spiralDebugId("cascader.trigger.value"), children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
4954
+ renderSlotIcon(leftIcon, "aviala-cascader-trigger__slot", "cascader.trigger.icon-left"),
4955
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "aviala-cascader-trigger__field", ...spiralDebugId("cascader.trigger.value"), children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
5017
4956
  "span",
5018
4957
  {
5019
4958
  className: cn("aviala-cascader-trigger__value", typographyVariants({ level: "text" })),
@@ -5021,15 +4960,15 @@ var CascaderTrigger = (0, import_react35.forwardRef)(
5021
4960
  children: hasValue ? resolvedDisplay : placeholder
5022
4961
  }
5023
4962
  ) }),
5024
- renderSlotIcon5(rightIcon, "cascader.trigger.icon-right"),
5025
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
4963
+ renderSlotIcon(rightIcon, "aviala-cascader-trigger__slot", "cascader.trigger.icon-right"),
4964
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
5026
4965
  "span",
5027
4966
  {
5028
4967
  className: "aviala-cascader-trigger__expand",
5029
4968
  "aria-hidden": true,
5030
4969
  style: expandIcon ? iconSlotCssVarStyle(expandIcon, "--input-slot-icon-size", "text", true) : iconLevelCssVarStyle("text", true, "--input-slot-icon-size"),
5031
4970
  ...spiralDebugId("cascader.trigger.expand"),
5032
- children: expandIcon ?? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_icons12.DirectionArrowDownLight, { level: "text", biggerSize: true, "aria-hidden": true })
4971
+ children: expandIcon ?? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_icons12.DirectionArrowDownLight, { level: "text", biggerSize: true, "aria-hidden": true })
5033
4972
  }
5034
4973
  )
5035
4974
  ]
@@ -5047,7 +4986,7 @@ var CascaderContent = (0, import_react35.forwardRef)(
5047
4986
  portalled = true,
5048
4987
  ...props
5049
4988
  }, ref) => {
5050
- const content = /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
4989
+ const content = /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
5051
4990
  PopoverPrimitive3.Content,
5052
4991
  {
5053
4992
  ref,
@@ -5060,12 +4999,12 @@ var CascaderContent = (0, import_react35.forwardRef)(
5060
4999
  }
5061
5000
  );
5062
5001
  if (!portalled) return content;
5063
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(PopoverPrimitive3.Portal, { children: content });
5002
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(PopoverPrimitive3.Portal, { children: content });
5064
5003
  }
5065
5004
  );
5066
5005
  CascaderContent.displayName = "CascaderContent";
5067
5006
  var CascaderMenu = (0, import_react35.forwardRef)(
5068
- ({ children, className }, ref) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { ref, className: cn("aviala-cascader-menu", className), children })
5007
+ ({ children, className }, ref) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { ref, className: cn("aviala-cascader-menu", className), children })
5069
5008
  );
5070
5009
  CascaderMenu.displayName = "CascaderMenu";
5071
5010
  var CascaderColumn = (0, import_react35.forwardRef)(
@@ -5079,14 +5018,14 @@ var CascaderColumn = (0, import_react35.forwardRef)(
5079
5018
  width: exitLayout.width,
5080
5019
  zIndex: 0
5081
5020
  } : void 0;
5082
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
5021
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
5083
5022
  "div",
5084
5023
  {
5085
5024
  ref,
5086
5025
  className: cn("aviala-cascader-column", className),
5087
5026
  "data-animate": animate,
5088
5027
  style: exitStyle,
5089
- children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "aviala-cascader-column__surface", "data-animate": animate, children })
5028
+ children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "aviala-cascader-column__surface", "data-animate": animate, children })
5090
5029
  }
5091
5030
  );
5092
5031
  }
@@ -5098,10 +5037,10 @@ function CascaderItemGroup({
5098
5037
  children,
5099
5038
  className
5100
5039
  }) {
5101
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: cn("aviala-cascader-group", className), children: [
5102
- label ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: cn("aviala-cascader-label", typographyVariants({ level: "caption" })), children: label }) : null,
5103
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "aviala-cascader-group__slot", children }),
5104
- showDivider ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "aviala-cascader-separator", role: "separator" }) : null
5040
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: cn("aviala-cascader-group", className), children: [
5041
+ label ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: cn("aviala-cascader-label", typographyVariants({ level: "caption" })), children: label }) : null,
5042
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "aviala-cascader-group__slot", children }),
5043
+ showDivider ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "aviala-cascader-separator", role: "separator" }) : null
5105
5044
  ] });
5106
5045
  }
5107
5046
  var CascaderItem = (0, import_react35.forwardRef)(
@@ -5162,7 +5101,7 @@ var CascaderItem = (0, import_react35.forwardRef)(
5162
5101
  expandTo(path);
5163
5102
  }
5164
5103
  };
5165
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
5104
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
5166
5105
  "button",
5167
5106
  {
5168
5107
  ref,
@@ -5194,10 +5133,10 @@ var CascaderItem = (0, import_react35.forwardRef)(
5194
5133
  if (!isTitle) setHighlightedValue(value);
5195
5134
  },
5196
5135
  children: [
5197
- isFormLeading && itemFunction === "form-radio" ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(CascaderItemFormRadio, {}) : null,
5198
- isFormLeading && itemFunction === "form-checkbox" ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(CascaderItemFormCheckbox, {}) : null,
5136
+ isFormLeading && itemFunction === "form-radio" ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(CascaderItemFormRadio, {}) : null,
5137
+ isFormLeading && itemFunction === "form-checkbox" ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(CascaderItemFormCheckbox, {}) : null,
5199
5138
  showLeftIcon && leftIcon ? renderItemIcon2(leftIcon, leftIconLevel, "cascader.content.item.icon-left") : null,
5200
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: cn("aviala-cascader-item__text", typographyVariants({ level: isTitle ? "caption" : "text" })), children: children ?? option?.label }),
5139
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: cn("aviala-cascader-item__text", typographyVariants({ level: isTitle ? "caption" : "text" })), children: children ?? option?.label }),
5201
5140
  showBadge ? renderBadgeSlot2(badge ?? "Text") : null,
5202
5141
  showRightIcon && rightIcon ? renderItemIcon2(rightIcon, leftIconLevel) : null,
5203
5142
  renderFunctionSlot2(
@@ -5322,7 +5261,7 @@ function CascaderOptionsMenu({ className }) {
5322
5261
  }, COLUMN_ANIMATION_MS);
5323
5262
  return () => window.clearTimeout(timeout);
5324
5263
  }, [columns, open]);
5325
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(CascaderMenu, { ref: menuRef, className, children: columns.map(({ pathPrefix, key, animateEnter, animateExit, exitLayout }) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
5264
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(CascaderMenu, { ref: menuRef, className, children: columns.map(({ pathPrefix, key, animateEnter, animateExit, exitLayout }) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
5326
5265
  CascaderColumn,
5327
5266
  {
5328
5267
  ref: (element) => {
@@ -5335,7 +5274,7 @@ function CascaderOptionsMenu({ className }) {
5335
5274
  animateEnter,
5336
5275
  animateExit,
5337
5276
  exitLayout,
5338
- children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(CascaderItemGroup, { label: "Title", showDivider: true, children: getOptionsAtPath2(pathPrefix).map((option) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
5277
+ children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(CascaderItemGroup, { label: "Title", showDivider: true, children: getOptionsAtPath2(pathPrefix).map((option) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
5339
5278
  CascaderItem,
5340
5279
  {
5341
5280
  value: option.value,
@@ -5373,7 +5312,7 @@ function CascaderField({
5373
5312
  separator,
5374
5313
  ...triggerProps
5375
5314
  }) {
5376
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
5315
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
5377
5316
  Cascader,
5378
5317
  {
5379
5318
  options,
@@ -5388,7 +5327,7 @@ function CascaderField({
5388
5327
  changeOnSelect,
5389
5328
  className,
5390
5329
  children: [
5391
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
5330
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
5392
5331
  CascaderTrigger,
5393
5332
  {
5394
5333
  size,
@@ -5402,7 +5341,7 @@ function CascaderField({
5402
5341
  ...triggerProps
5403
5342
  }
5404
5343
  ),
5405
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(CascaderContent, { className: contentClassName, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(CascaderOptionsMenu, { className: menuClassName }) })
5344
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(CascaderContent, { className: contentClassName, children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(CascaderOptionsMenu, { className: menuClassName }) })
5406
5345
  ]
5407
5346
  }
5408
5347
  );
@@ -5415,13 +5354,13 @@ var import_react39 = require("react");
5415
5354
 
5416
5355
  // src/components/date-picker/date-picker-context.tsx
5417
5356
  var import_react36 = require("react");
5418
- var import_jsx_runtime33 = require("react/jsx-runtime");
5357
+ var import_jsx_runtime34 = require("react/jsx-runtime");
5419
5358
  var DatePickerContext = (0, import_react36.createContext)(null);
5420
5359
  function DatePickerProvider({
5421
5360
  value,
5422
5361
  children
5423
5362
  }) {
5424
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(DatePickerContext.Provider, { value, children });
5363
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(DatePickerContext.Provider, { value, children });
5425
5364
  }
5426
5365
  function useDatePickerContext() {
5427
5366
  const context = (0, import_react36.useContext)(DatePickerContext);
@@ -5642,7 +5581,7 @@ function stickyRoundIndex(fractionalIndex, stickiness = WHEEL_STICKY_AMOUNT) {
5642
5581
  }
5643
5582
 
5644
5583
  // src/components/date-picker/date-picker-time-wheel.tsx
5645
- var import_jsx_runtime34 = require("react/jsx-runtime");
5584
+ var import_jsx_runtime35 = require("react/jsx-runtime");
5646
5585
  var LOOP_SECTIONS = 3;
5647
5586
  var MIDDLE_SECTION = 1;
5648
5587
  function formatWheelValue(value) {
@@ -5882,23 +5821,23 @@ function DatePickerTimeWheelColumn({
5882
5821
  }
5883
5822
  };
5884
5823
  const selectedOptionId = loop ? `${ariaLabel}-${value}-${values.length * MIDDLE_SECTION + getValueIndex(values, value)}` : `${ariaLabel}-${value}`;
5885
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: cn("aviala-datepicker-time__wheel", className), children: [
5886
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "aviala-datepicker-time__wheel-highlight", "aria-hidden": true }),
5887
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
5824
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: cn("aviala-datepicker-time__wheel", className), children: [
5825
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "aviala-datepicker-time__wheel-highlight", "aria-hidden": true }),
5826
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5888
5827
  "div",
5889
5828
  {
5890
5829
  className: "aviala-datepicker-time__wheel-fade aviala-datepicker-time__wheel-fade--top",
5891
5830
  "aria-hidden": true
5892
5831
  }
5893
5832
  ),
5894
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
5833
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5895
5834
  "div",
5896
5835
  {
5897
5836
  className: "aviala-datepicker-time__wheel-fade aviala-datepicker-time__wheel-fade--bottom",
5898
5837
  "aria-hidden": true
5899
5838
  }
5900
5839
  ),
5901
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
5840
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5902
5841
  "div",
5903
5842
  {
5904
5843
  ref: scrollRef,
@@ -5909,17 +5848,17 @@ function DatePickerTimeWheelColumn({
5909
5848
  "aria-activedescendant": selectedOptionId,
5910
5849
  tabIndex: 0,
5911
5850
  onKeyDown: handleKeyDown,
5912
- children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("ul", { className: "aviala-datepicker-time__wheel-list", children: repeatedValues.map((itemValue, index) => {
5851
+ children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("ul", { className: "aviala-datepicker-time__wheel-list", children: repeatedValues.map((itemValue, index) => {
5913
5852
  const isSelected = itemValue === value;
5914
5853
  const optionId = loop ? `${ariaLabel}-${itemValue}-${index}` : `${ariaLabel}-${itemValue}`;
5915
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
5854
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5916
5855
  "li",
5917
5856
  {
5918
5857
  id: optionId,
5919
5858
  className: "aviala-datepicker-time__wheel-item",
5920
5859
  role: "option",
5921
5860
  "aria-selected": isSelected,
5922
- children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
5861
+ children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5923
5862
  "button",
5924
5863
  {
5925
5864
  type: "button",
@@ -5948,7 +5887,7 @@ function DatePickerTimeWheelColumn({
5948
5887
  }
5949
5888
 
5950
5889
  // src/components/date-picker/date-picker-month-wheels.tsx
5951
- var import_jsx_runtime35 = require("react/jsx-runtime");
5890
+ var import_jsx_runtime36 = require("react/jsx-runtime");
5952
5891
  var MONTH_VALUES = Array.from({ length: 12 }, (_, index) => index + 1);
5953
5892
  function formatYearValue(value) {
5954
5893
  return String(value);
@@ -5973,14 +5912,14 @@ function DatePickerMonthYearWheels({
5973
5912
  const setYearMonth = (nextYear, nextMonth) => {
5974
5913
  setViewMonth(new Date(nextYear, nextMonth - 1, 1));
5975
5914
  };
5976
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5915
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5977
5916
  "div",
5978
5917
  {
5979
5918
  className: cn("aviala-datepicker-month", className),
5980
5919
  role: "group",
5981
5920
  "aria-label": "\u9009\u62E9\u5E74\u6708",
5982
- children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "aviala-datepicker-month__columns", children: [
5983
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5921
+ children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "aviala-datepicker-month__columns", children: [
5922
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5984
5923
  DatePickerTimeWheelColumn,
5985
5924
  {
5986
5925
  "aria-label": "\u5E74",
@@ -5992,7 +5931,7 @@ function DatePickerMonthYearWheels({
5992
5931
  onChange: (nextYear) => setYearMonth(nextYear, month)
5993
5932
  }
5994
5933
  ),
5995
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5934
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5996
5935
  DatePickerTimeWheelColumn,
5997
5936
  {
5998
5937
  "aria-label": "\u6708",
@@ -6010,12 +5949,12 @@ function DatePickerMonthYearWheels({
6010
5949
  }
6011
5950
 
6012
5951
  // src/components/time-picker/time-picker-wheels.tsx
6013
- var import_jsx_runtime36 = require("react/jsx-runtime");
5952
+ var import_jsx_runtime37 = require("react/jsx-runtime");
6014
5953
  var TIME_PICKER_HOUR_VALUES = Array.from({ length: 24 }, (_, index) => index);
6015
5954
  var TIME_PICKER_MINUTE_VALUES = Array.from({ length: 12 }, (_, index) => index * 5);
6016
5955
  function TimePickerWheels({ value, onChange, className }) {
6017
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: cn("aviala-datepicker-time", className), role: "group", "aria-label": "\u9009\u62E9\u65F6\u95F4", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "aviala-datepicker-time__columns", children: [
6018
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5956
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: cn("aviala-datepicker-time", className), role: "group", "aria-label": "\u9009\u62E9\u65F6\u95F4", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "aviala-datepicker-time__columns", children: [
5957
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
6019
5958
  DatePickerTimeWheelColumn,
6020
5959
  {
6021
5960
  "aria-label": "\u5C0F\u65F6",
@@ -6024,7 +5963,7 @@ function TimePickerWheels({ value, onChange, className }) {
6024
5963
  onChange: (hours) => onChange({ ...value, hours })
6025
5964
  }
6026
5965
  ),
6027
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5966
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
6028
5967
  DatePickerTimeWheelColumn,
6029
5968
  {
6030
5969
  "aria-label": "\u5206\u949F",
@@ -6037,22 +5976,7 @@ function TimePickerWheels({ value, onChange, className }) {
6037
5976
  }
6038
5977
 
6039
5978
  // src/components/date-picker/date-picker.tsx
6040
- var import_jsx_runtime37 = require("react/jsx-runtime");
6041
- function renderSlotIcon6(node) {
6042
- if (!node) return null;
6043
- const content = cloneAvialaIconElement(node, {
6044
- level: "text",
6045
- biggerSize: true
6046
- });
6047
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
6048
- "span",
6049
- {
6050
- className: "aviala-datepicker-trigger__slot",
6051
- style: iconSlotCssVarStyle(node, "--input-slot-icon-size", "text", true),
6052
- children: content
6053
- }
6054
- );
6055
- }
5979
+ var import_jsx_runtime38 = require("react/jsx-runtime");
6056
5980
  function getInitialViewMonth(mode, singleValue, rangeValue) {
6057
5981
  if (mode === "single" && singleValue) return startOfDay(singleValue);
6058
5982
  if (mode === "range") {
@@ -6376,7 +6300,7 @@ function DatePicker(props) {
6376
6300
  viewMonth
6377
6301
  ]
6378
6302
  );
6379
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(DatePickerProvider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(PopoverPrimitive4.Root, { open, onOpenChange: handleOpenChange, modal: false, children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: cn("inline-flex", className), children }) }) });
6303
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(DatePickerProvider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(PopoverPrimitive4.Root, { open, onOpenChange: handleOpenChange, modal: false, children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: cn("inline-flex", className), children }) }) });
6380
6304
  }
6381
6305
  function formatTriggerValue(mode, singleValue, rangeValue, enableTime, timeValue, rangeSeparator) {
6382
6306
  if (mode === "single") {
@@ -6468,7 +6392,7 @@ var DatePickerTrigger = (0, import_react39.forwardRef)(
6468
6392
  const showEditableInput = editable && displayValue == null;
6469
6393
  if (!showEditableInput) {
6470
6394
  const hasValue = formatted != null && formatted !== false;
6471
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(PopoverPrimitive4.Trigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
6395
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(PopoverPrimitive4.Trigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
6472
6396
  "button",
6473
6397
  {
6474
6398
  type: "button",
@@ -6481,10 +6405,11 @@ var DatePickerTrigger = (0, import_react39.forwardRef)(
6481
6405
  "aria-expanded": open,
6482
6406
  "aria-haspopup": "dialog",
6483
6407
  children: [
6484
- renderSlotIcon6(
6485
- leftIcon ?? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_icons13.TimeAndDateDate, { level: "text", biggerSize: true, "aria-hidden": true })
6408
+ renderSlotIcon(
6409
+ leftIcon ?? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_icons13.TimeAndDateDate, { level: "text", biggerSize: true, "aria-hidden": true }),
6410
+ "aviala-datepicker-trigger__slot"
6486
6411
  ),
6487
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "aviala-datepicker-trigger__field", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
6412
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "aviala-datepicker-trigger__field", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
6488
6413
  "span",
6489
6414
  {
6490
6415
  className: cn(
@@ -6495,12 +6420,12 @@ var DatePickerTrigger = (0, import_react39.forwardRef)(
6495
6420
  children: hasValue ? formatted : emptyPlaceholder
6496
6421
  }
6497
6422
  ) }),
6498
- renderSlotIcon6(rightIcon)
6423
+ renderSlotIcon(rightIcon, "aviala-datepicker-trigger__slot")
6499
6424
  ]
6500
6425
  }
6501
6426
  ) });
6502
6427
  }
6503
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(PopoverPrimitive4.Anchor, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
6428
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(PopoverPrimitive4.Anchor, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
6504
6429
  "div",
6505
6430
  {
6506
6431
  className: cn("aviala-datepicker-trigger aviala-focus-ring", className),
@@ -6517,10 +6442,11 @@ var DatePickerTrigger = (0, import_react39.forwardRef)(
6517
6442
  openPicker();
6518
6443
  },
6519
6444
  children: [
6520
- renderSlotIcon6(
6521
- leftIcon ?? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_icons13.TimeAndDateDate, { level: "text", biggerSize: true, "aria-hidden": true })
6445
+ renderSlotIcon(
6446
+ leftIcon ?? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_icons13.TimeAndDateDate, { level: "text", biggerSize: true, "aria-hidden": true }),
6447
+ "aviala-datepicker-trigger__slot"
6522
6448
  ),
6523
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "aviala-datepicker-trigger__field", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
6449
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "aviala-datepicker-trigger__field", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
6524
6450
  "input",
6525
6451
  {
6526
6452
  ref: setInputRefs,
@@ -6540,93 +6466,10 @@ var DatePickerTrigger = (0, import_react39.forwardRef)(
6540
6466
  onFocus: (event) => {
6541
6467
  editingRef.current = true;
6542
6468
  openPicker();
6543
- {
6544
- const inputEl = event.currentTarget;
6545
- const logTriggerStyles = (phase) => {
6546
- const trigger = inputEl.closest(
6547
- ".aviala-datepicker-trigger"
6548
- );
6549
- const cs = trigger ? getComputedStyle(trigger) : null;
6550
- fetch(
6551
- "http://127.0.0.1:7374/ingest/ad1201c6-cfe5-466e-96ed-49d0c8840eda",
6552
- {
6553
- method: "POST",
6554
- headers: {
6555
- "Content-Type": "application/json",
6556
- "X-Debug-Session-Id": "0f383b"
6557
- },
6558
- body: JSON.stringify({
6559
- sessionId: "0f383b",
6560
- runId: "pre-fix",
6561
- hypothesisId: "A-E",
6562
- location: "date-picker.tsx:DatePickerTrigger.onFocus",
6563
- message: `trigger styles on input focus (${phase})`,
6564
- data: {
6565
- phase,
6566
- openProp: open,
6567
- dataState: trigger?.getAttribute("data-state"),
6568
- matchesFocusWithin: trigger?.matches(":focus-within") ?? null,
6569
- matchesFocusVisible: trigger?.matches(":focus-visible") ?? null,
6570
- hasFocusRingClass: trigger?.classList.contains("aviala-focus-ring") ?? null,
6571
- kbdAttr: document.documentElement.hasAttribute(
6572
- "data-aviala-kbd"
6573
- ),
6574
- bg: cs?.backgroundColor ?? null,
6575
- boxShadow: cs?.boxShadow ?? null,
6576
- borderColor: cs?.borderColor ?? null,
6577
- borderWidth: cs?.borderWidth ?? null,
6578
- activeTag: document.activeElement?.tagName ?? null,
6579
- activeClass: document.activeElement?.className ?? null
6580
- },
6581
- timestamp: Date.now()
6582
- })
6583
- }
6584
- ).catch(() => {
6585
- });
6586
- };
6587
- logTriggerStyles("sync");
6588
- requestAnimationFrame(() => logTriggerStyles("raf"));
6589
- }
6590
6469
  onFocus?.(event);
6591
6470
  },
6592
6471
  onBlur: (event) => {
6593
6472
  editingRef.current = false;
6594
- {
6595
- const trigger = event.currentTarget.closest(
6596
- ".aviala-datepicker-trigger"
6597
- );
6598
- const cs = trigger ? getComputedStyle(trigger) : null;
6599
- fetch(
6600
- "http://127.0.0.1:7374/ingest/ad1201c6-cfe5-466e-96ed-49d0c8840eda",
6601
- {
6602
- method: "POST",
6603
- headers: {
6604
- "Content-Type": "application/json",
6605
- "X-Debug-Session-Id": "0f383b"
6606
- },
6607
- body: JSON.stringify({
6608
- sessionId: "0f383b",
6609
- runId: "pre-fix",
6610
- hypothesisId: "A-E",
6611
- location: "date-picker.tsx:DatePickerTrigger.onBlur",
6612
- message: "trigger styles on input blur",
6613
- data: {
6614
- openProp: open,
6615
- dataState: trigger?.getAttribute("data-state"),
6616
- matchesFocusWithin: trigger?.matches(":focus-within") ?? null,
6617
- kbdAttr: document.documentElement.hasAttribute(
6618
- "data-aviala-kbd"
6619
- ),
6620
- bg: cs?.backgroundColor ?? null,
6621
- boxShadow: cs?.boxShadow ?? null,
6622
- relatedTargetTag: event.relatedTarget?.tagName ?? null
6623
- },
6624
- timestamp: Date.now()
6625
- })
6626
- }
6627
- ).catch(() => {
6628
- });
6629
- }
6630
6473
  window.setTimeout(() => {
6631
6474
  const active = document.activeElement;
6632
6475
  if (active?.closest(
@@ -6656,7 +6499,7 @@ var DatePickerTrigger = (0, import_react39.forwardRef)(
6656
6499
  ...props
6657
6500
  }
6658
6501
  ) }),
6659
- renderSlotIcon6(rightIcon)
6502
+ renderSlotIcon(rightIcon, "aviala-datepicker-trigger__slot")
6660
6503
  ]
6661
6504
  }
6662
6505
  ) });
@@ -6672,7 +6515,7 @@ var DatePickerContent = (0, import_react39.forwardRef)(
6672
6515
  align = "start",
6673
6516
  ...props
6674
6517
  }, ref) => {
6675
- const content = /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
6518
+ const content = /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
6676
6519
  PopoverPrimitive4.Content,
6677
6520
  {
6678
6521
  ref,
@@ -6680,11 +6523,11 @@ var DatePickerContent = (0, import_react39.forwardRef)(
6680
6523
  sideOffset,
6681
6524
  align,
6682
6525
  ...props,
6683
- children: children ?? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(DatePickerCalendar, {})
6526
+ children: children ?? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(DatePickerCalendar, {})
6684
6527
  }
6685
6528
  );
6686
6529
  if (!portalled) return content;
6687
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(PopoverPrimitive4.Portal, { children: content });
6530
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(PopoverPrimitive4.Portal, { children: content });
6688
6531
  }
6689
6532
  );
6690
6533
  DatePickerContent.displayName = "DatePickerContent";
@@ -6702,7 +6545,7 @@ function getFooterDateLabel(mode, singleValue, rangeValue) {
6702
6545
  }
6703
6546
  function DatePickerTimePanel() {
6704
6547
  const { timeValue, setTimeValue } = useDatePickerContext();
6705
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(TimePickerWheels, { value: timeValue, onChange: setTimeValue });
6548
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(TimePickerWheels, { value: timeValue, onChange: setTimeValue });
6706
6549
  }
6707
6550
  function DatePickerPanelFooter() {
6708
6551
  const {
@@ -6717,7 +6560,7 @@ function DatePickerPanelFooter() {
6717
6560
  if (!enableTime) return null;
6718
6561
  const panelValue = activePanel === "time" ? "time" : "date";
6719
6562
  const isRangeMode = mode === "range";
6720
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "aviala-datepicker-footer-wrap", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
6563
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "aviala-datepicker-footer-wrap", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
6721
6564
  SegmentatorGroup,
6722
6565
  {
6723
6566
  value: panelValue,
@@ -6728,20 +6571,20 @@ function DatePickerPanelFooter() {
6728
6571
  "data-active-panel": activePanel,
6729
6572
  "aria-label": "\u65E5\u671F\u4E0E\u65F6\u95F4\u5207\u6362",
6730
6573
  children: [
6731
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
6574
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
6732
6575
  SegmentatorItem,
6733
6576
  {
6734
6577
  value: "date",
6735
- leftIcon: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_icons13.TimeAndDateDate, { level: "text", biggerSize: true, "aria-hidden": true }),
6578
+ leftIcon: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_icons13.TimeAndDateDate, { level: "text", biggerSize: true, "aria-hidden": true }),
6736
6579
  iconOnly: isRangeMode && panelValue === "time",
6737
6580
  children: getFooterDateLabel(mode, singleValue, rangeValue)
6738
6581
  }
6739
6582
  ),
6740
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
6583
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
6741
6584
  SegmentatorItem,
6742
6585
  {
6743
6586
  value: "time",
6744
- leftIcon: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_icons13.TimeAndDateClock, { level: "text", biggerSize: true, "aria-hidden": true }),
6587
+ leftIcon: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_icons13.TimeAndDateClock, { level: "text", biggerSize: true, "aria-hidden": true }),
6745
6588
  iconOnly: isRangeMode && panelValue === "date",
6746
6589
  children: formatTimeValue(timeValue.hours, timeValue.minutes)
6747
6590
  }
@@ -6909,8 +6752,8 @@ function DatePickerCalendar({ className }) {
6909
6752
  }
6910
6753
  };
6911
6754
  const stepMonth = isMonthPanel ? 12 : 1;
6912
- const renderDateContent = () => /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(import_jsx_runtime37.Fragment, { children: [
6913
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "aviala-datepicker-calendar__weekdays", "aria-hidden": true, children: WEEKDAY_LABELS.map((label) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
6755
+ const renderDateContent = () => /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_jsx_runtime38.Fragment, { children: [
6756
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "aviala-datepicker-calendar__weekdays", "aria-hidden": true, children: WEEKDAY_LABELS.map((label) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
6914
6757
  "span",
6915
6758
  {
6916
6759
  className: cn(
@@ -6921,8 +6764,8 @@ function DatePickerCalendar({ className }) {
6921
6764
  },
6922
6765
  label
6923
6766
  )) }),
6924
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "aviala-datepicker-calendar__grid-viewport", children: [
6925
- monthSlide && outgoingDays ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
6767
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "aviala-datepicker-calendar__grid-viewport", children: [
6768
+ monthSlide && outgoingDays ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
6926
6769
  "div",
6927
6770
  {
6928
6771
  className: "aviala-datepicker-calendar__grid",
@@ -6931,12 +6774,12 @@ function DatePickerCalendar({ className }) {
6931
6774
  "aria-hidden": true,
6932
6775
  children: outgoingDays.map((day) => {
6933
6776
  const outside = !isSameMonth(day, monthSlide.outgoingMonth);
6934
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
6777
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
6935
6778
  "span",
6936
6779
  {
6937
6780
  className: "aviala-datepicker-day",
6938
6781
  "data-outside": outside ? "true" : void 0,
6939
- children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
6782
+ children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
6940
6783
  "span",
6941
6784
  {
6942
6785
  className: cn(
@@ -6953,7 +6796,7 @@ function DatePickerCalendar({ className }) {
6953
6796
  },
6954
6797
  `out-${monthSlide.outgoingMonth.getFullYear()}-${monthSlide.outgoingMonth.getMonth()}`
6955
6798
  ) : null,
6956
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
6799
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
6957
6800
  "div",
6958
6801
  {
6959
6802
  ref: dayGridRef,
@@ -6977,7 +6820,7 @@ function DatePickerCalendar({ className }) {
6977
6820
  const dayDisabled = isDateDisabled(day, minDate, maxDate);
6978
6821
  const focused = focusedDay ? isSameDay(day, focusedDay) : false;
6979
6822
  const dayKey = formatIsoDate(day);
6980
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
6823
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
6981
6824
  "button",
6982
6825
  {
6983
6826
  type: "button",
@@ -6999,7 +6842,7 @@ function DatePickerCalendar({ className }) {
6999
6842
  onFocus: () => setFocusedDay(day),
7000
6843
  onKeyDown: (event) => handleDayKeyDown(event, day),
7001
6844
  children: [
7002
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
6845
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
7003
6846
  "span",
7004
6847
  {
7005
6848
  className: cn(
@@ -7009,7 +6852,7 @@ function DatePickerCalendar({ className }) {
7009
6852
  children: day.getDate()
7010
6853
  }
7011
6854
  ),
7012
- isToday ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "aviala-datepicker-day__today-dot", "aria-hidden": true }) : null
6855
+ isToday ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "aviala-datepicker-day__today-dot", "aria-hidden": true }) : null
7013
6856
  ]
7014
6857
  },
7015
6858
  dayKey
@@ -7020,20 +6863,20 @@ function DatePickerCalendar({ className }) {
7020
6863
  )
7021
6864
  ] })
7022
6865
  ] });
7023
- const renderContentView = (view) => view === "month" ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(DatePickerMonthYearWheels, { layoutKey: monthWheelLayoutKey }) : renderDateContent();
7024
- const renderDatePanel = () => /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(import_jsx_runtime37.Fragment, { children: [
7025
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "aviala-datepicker-calendar__header", children: [
7026
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
6866
+ const renderContentView = (view) => view === "month" ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(DatePickerMonthYearWheels, { layoutKey: monthWheelLayoutKey }) : renderDateContent();
6867
+ const renderDatePanel = () => /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_jsx_runtime38.Fragment, { children: [
6868
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "aviala-datepicker-calendar__header", children: [
6869
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
7027
6870
  "button",
7028
6871
  {
7029
6872
  type: "button",
7030
6873
  className: "aviala-datepicker-calendar__nav aviala-focus-ring",
7031
6874
  "aria-label": isMonthPanel ? "Previous year" : "Previous month",
7032
6875
  onClick: () => setViewMonth(addMonths(viewMonth, -stepMonth)),
7033
- children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_icons13.DirectionArrowLeft, { level: "text", biggerSize: true, "aria-hidden": true })
6876
+ children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_icons13.DirectionArrowLeft, { level: "text", biggerSize: true, "aria-hidden": true })
7034
6877
  }
7035
6878
  ),
7036
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
6879
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
7037
6880
  "button",
7038
6881
  {
7039
6882
  type: "button",
@@ -7046,7 +6889,7 @@ function DatePickerCalendar({ className }) {
7046
6889
  "aria-expanded": isMonthPanel,
7047
6890
  "aria-label": isMonthPanel ? "\u5173\u95ED\u5E74\u6708\u9009\u62E9" : "\u9009\u62E9\u5E74\u6708",
7048
6891
  onClick: () => setActivePanel(isMonthPanel ? "date" : "month"),
7049
- children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
6892
+ children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
7050
6893
  "span",
7051
6894
  {
7052
6895
  className: "aviala-datepicker-calendar__title-text",
@@ -7057,19 +6900,19 @@ function DatePickerCalendar({ className }) {
7057
6900
  )
7058
6901
  }
7059
6902
  ),
7060
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
6903
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
7061
6904
  "button",
7062
6905
  {
7063
6906
  type: "button",
7064
6907
  className: "aviala-datepicker-calendar__nav aviala-focus-ring",
7065
6908
  "aria-label": isMonthPanel ? "Next year" : "Next month",
7066
6909
  onClick: () => setViewMonth(addMonths(viewMonth, stepMonth)),
7067
- children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_icons13.DirectionArrowRight, { level: "text", biggerSize: true, "aria-hidden": true })
6910
+ children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_icons13.DirectionArrowRight, { level: "text", biggerSize: true, "aria-hidden": true })
7068
6911
  }
7069
6912
  )
7070
6913
  ] }),
7071
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "aviala-datepicker-calendar__view-viewport", children: [
7072
- viewCrossfade ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
6914
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "aviala-datepicker-calendar__view-viewport", children: [
6915
+ viewCrossfade ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
7073
6916
  "div",
7074
6917
  {
7075
6918
  className: "aviala-datepicker-calendar__view",
@@ -7080,7 +6923,7 @@ function DatePickerCalendar({ className }) {
7080
6923
  },
7081
6924
  `exit-${viewCrossfade.outgoing}`
7082
6925
  ) : null,
7083
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
6926
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
7084
6927
  "div",
7085
6928
  {
7086
6929
  className: "aviala-datepicker-calendar__view",
@@ -7101,16 +6944,16 @@ function DatePickerCalendar({ className }) {
7101
6944
  )
7102
6945
  ] })
7103
6946
  ] });
7104
- const renderPanel = (kind) => kind === "time" ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(DatePickerTimePanel, {}) : renderDatePanel();
7105
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
6947
+ const renderPanel = (kind) => kind === "time" ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(DatePickerTimePanel, {}) : renderDatePanel();
6948
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
7106
6949
  "div",
7107
6950
  {
7108
6951
  className: cn("aviala-datepicker-calendar", className),
7109
6952
  role: "application",
7110
6953
  "aria-label": "Calendar",
7111
6954
  children: [
7112
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "aviala-datepicker-calendar__panel-viewport", children: [
7113
- panelSlide ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
6955
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "aviala-datepicker-calendar__panel-viewport", children: [
6956
+ panelSlide ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
7114
6957
  "div",
7115
6958
  {
7116
6959
  className: "aviala-datepicker-calendar__panel aviala-datepicker-calendar__body",
@@ -7122,7 +6965,7 @@ function DatePickerCalendar({ className }) {
7122
6965
  },
7123
6966
  `panel-exit-${panelSlide.outgoing}`
7124
6967
  ) : null,
7125
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
6968
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
7126
6969
  "div",
7127
6970
  {
7128
6971
  className: "aviala-datepicker-calendar__panel aviala-datepicker-calendar__body",
@@ -7140,7 +6983,7 @@ function DatePickerCalendar({ className }) {
7140
6983
  `panel-enter-${panel}`
7141
6984
  )
7142
6985
  ] }),
7143
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(DatePickerPanelFooter, {})
6986
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(DatePickerPanelFooter, {})
7144
6987
  ]
7145
6988
  }
7146
6989
  );
@@ -7204,8 +7047,8 @@ function DatePickerField({
7204
7047
  defaultTimeValue,
7205
7048
  onTimeChange
7206
7049
  };
7207
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(DatePicker, { ...pickerProps, size, className, children: [
7208
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
7050
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(DatePicker, { ...pickerProps, size, className, children: [
7051
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
7209
7052
  DatePickerTrigger,
7210
7053
  {
7211
7054
  size,
@@ -7219,7 +7062,7 @@ function DatePickerField({
7219
7062
  editable
7220
7063
  }
7221
7064
  ),
7222
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(DatePickerContent, { className: contentClassName, children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(DatePickerCalendar, { className: calendarClassName }) })
7065
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(DatePickerContent, { className: contentClassName, children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(DatePickerCalendar, { className: calendarClassName }) })
7223
7066
  ] });
7224
7067
  }
7225
7068
 
@@ -7230,13 +7073,13 @@ var import_react41 = require("react");
7230
7073
 
7231
7074
  // src/components/time-picker/time-picker-context.tsx
7232
7075
  var import_react40 = require("react");
7233
- var import_jsx_runtime38 = require("react/jsx-runtime");
7076
+ var import_jsx_runtime39 = require("react/jsx-runtime");
7234
7077
  var TimePickerContext = (0, import_react40.createContext)(null);
7235
7078
  function TimePickerProvider({
7236
7079
  value,
7237
7080
  children
7238
7081
  }) {
7239
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(TimePickerContext.Provider, { value, children });
7082
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(TimePickerContext.Provider, { value, children });
7240
7083
  }
7241
7084
  function useTimePickerContext() {
7242
7085
  const context = (0, import_react40.useContext)(TimePickerContext);
@@ -7247,22 +7090,7 @@ function useTimePickerContext() {
7247
7090
  }
7248
7091
 
7249
7092
  // src/components/time-picker/time-picker.tsx
7250
- var import_jsx_runtime39 = require("react/jsx-runtime");
7251
- function renderSlotIcon7(node) {
7252
- if (!node) return null;
7253
- const content = cloneAvialaIconElement(node, {
7254
- level: "text",
7255
- biggerSize: true
7256
- });
7257
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
7258
- "span",
7259
- {
7260
- className: "aviala-timepicker-trigger__slot",
7261
- style: iconSlotCssVarStyle(node, "--input-slot-icon-size", "text", true),
7262
- children: content
7263
- }
7264
- );
7265
- }
7093
+ var import_jsx_runtime40 = require("react/jsx-runtime");
7266
7094
  function TimePicker({
7267
7095
  children,
7268
7096
  value: valueProp,
@@ -7335,7 +7163,7 @@ function TimePicker({
7335
7163
  }),
7336
7164
  [disabled, open, size, value, setValue]
7337
7165
  );
7338
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(TimePickerProvider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(PopoverPrimitive5.Root, { open, onOpenChange: handleOpenChange, modal: false, children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: cn("inline-flex", className), children }) }) });
7166
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(TimePickerProvider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(PopoverPrimitive5.Root, { open, onOpenChange: handleOpenChange, modal: false, children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: cn("inline-flex", className), children }) }) });
7339
7167
  }
7340
7168
  var TimePickerTrigger = (0, import_react41.forwardRef)(
7341
7169
  ({
@@ -7355,7 +7183,7 @@ var TimePickerTrigger = (0, import_react41.forwardRef)(
7355
7183
  const disabled = disabledProp ?? disabledContext;
7356
7184
  const formatted = displayValue !== void 0 ? displayValue : formatTimeValue(value.hours, value.minutes);
7357
7185
  const hasValue = formatted != null && formatted !== "";
7358
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(PopoverPrimitive5.Trigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
7186
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(PopoverPrimitive5.Trigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
7359
7187
  "button",
7360
7188
  {
7361
7189
  ref,
@@ -7370,10 +7198,11 @@ var TimePickerTrigger = (0, import_react41.forwardRef)(
7370
7198
  "aria-haspopup": "dialog",
7371
7199
  ...props,
7372
7200
  children: [
7373
- renderSlotIcon7(
7374
- leftIcon ?? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_icons14.TimeAndDateClock, { level: "text", biggerSize: true, "aria-hidden": true })
7201
+ renderSlotIcon(
7202
+ leftIcon ?? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_icons14.TimeAndDateClock, { level: "text", biggerSize: true, "aria-hidden": true }),
7203
+ "aviala-timepicker-trigger__slot"
7375
7204
  ),
7376
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { className: "aviala-timepicker-trigger__field", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
7205
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: "aviala-timepicker-trigger__field", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
7377
7206
  "span",
7378
7207
  {
7379
7208
  className: cn(
@@ -7384,7 +7213,7 @@ var TimePickerTrigger = (0, import_react41.forwardRef)(
7384
7213
  children: hasValue ? formatted : placeholder
7385
7214
  }
7386
7215
  ) }),
7387
- renderSlotIcon7(rightIcon)
7216
+ renderSlotIcon(rightIcon, "aviala-timepicker-trigger__slot")
7388
7217
  ]
7389
7218
  }
7390
7219
  ) });
@@ -7400,7 +7229,7 @@ var TimePickerContent = (0, import_react41.forwardRef)(
7400
7229
  align = "start",
7401
7230
  ...props
7402
7231
  }, ref) => {
7403
- const content = /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
7232
+ const content = /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
7404
7233
  PopoverPrimitive5.Content,
7405
7234
  {
7406
7235
  ref,
@@ -7408,17 +7237,17 @@ var TimePickerContent = (0, import_react41.forwardRef)(
7408
7237
  sideOffset,
7409
7238
  align,
7410
7239
  ...props,
7411
- children: children ?? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(TimePickerPanel, {})
7240
+ children: children ?? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(TimePickerPanel, {})
7412
7241
  }
7413
7242
  );
7414
7243
  if (!portalled) return content;
7415
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(PopoverPrimitive5.Portal, { children: content });
7244
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(PopoverPrimitive5.Portal, { children: content });
7416
7245
  }
7417
7246
  );
7418
7247
  TimePickerContent.displayName = "TimePickerContent";
7419
7248
  function TimePickerPanel({ className }) {
7420
7249
  const { value, setValue } = useTimePickerContext();
7421
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: cn("aviala-timepicker-panel", className), role: "application", "aria-label": "Time picker", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(TimePickerWheels, { value, onChange: setValue }) });
7250
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: cn("aviala-timepicker-panel", className), role: "application", "aria-label": "Time picker", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(TimePickerWheels, { value, onChange: setValue }) });
7422
7251
  }
7423
7252
  function TimePickerField({
7424
7253
  contentClassName,
@@ -7438,7 +7267,7 @@ function TimePickerField({
7438
7267
  onOpenChange,
7439
7268
  disabled
7440
7269
  }) {
7441
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
7270
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
7442
7271
  TimePicker,
7443
7272
  {
7444
7273
  value,
@@ -7451,7 +7280,7 @@ function TimePickerField({
7451
7280
  size,
7452
7281
  className,
7453
7282
  children: [
7454
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
7283
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
7455
7284
  TimePickerTrigger,
7456
7285
  {
7457
7286
  size,
@@ -7462,7 +7291,7 @@ function TimePickerField({
7462
7291
  error
7463
7292
  }
7464
7293
  ),
7465
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(TimePickerContent, { className: contentClassName, children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(TimePickerPanel, { className: panelClassName }) })
7294
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(TimePickerContent, { className: contentClassName, children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(TimePickerPanel, { className: panelClassName }) })
7466
7295
  ]
7467
7296
  }
7468
7297
  );
@@ -7473,7 +7302,7 @@ var PopoverPrimitive6 = __toESM(require("@radix-ui/react-popover"), 1);
7473
7302
  var import_react42 = require("react");
7474
7303
 
7475
7304
  // src/components/overlay-pointer.tsx
7476
- var import_jsx_runtime40 = require("react/jsx-runtime");
7305
+ var import_jsx_runtime41 = require("react/jsx-runtime");
7477
7306
  var TOOLTIP_POINTER = {
7478
7307
  width: 14,
7479
7308
  height: 5,
@@ -7494,7 +7323,7 @@ function OverlayPointerSvg({
7494
7323
  ...props
7495
7324
  }) {
7496
7325
  const isPopover = variant === "popover";
7497
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
7326
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
7498
7327
  "svg",
7499
7328
  {
7500
7329
  ...props,
@@ -7507,16 +7336,16 @@ function OverlayPointerSvg({
7507
7336
  "aria-hidden": true,
7508
7337
  className,
7509
7338
  style: { ...style, width, height },
7510
- children: isPopover ? /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(import_jsx_runtime40.Fragment, { children: [
7511
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("path", { d: path, className: "aviala-popover-content__arrow-outline" }),
7512
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("path", { d: path, className: "aviala-popover-content__arrow-fill" })
7513
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("path", { d: path })
7339
+ children: isPopover ? /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(import_jsx_runtime41.Fragment, { children: [
7340
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("path", { d: path, className: "aviala-popover-content__arrow-outline" }),
7341
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("path", { d: path, className: "aviala-popover-content__arrow-fill" })
7342
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("path", { d: path })
7514
7343
  }
7515
7344
  );
7516
7345
  }
7517
7346
 
7518
7347
  // src/components/popover.tsx
7519
- var import_jsx_runtime41 = require("react/jsx-runtime");
7348
+ var import_jsx_runtime42 = require("react/jsx-runtime");
7520
7349
  function Popover({
7521
7350
  open: openProp,
7522
7351
  defaultOpen = false,
@@ -7534,7 +7363,7 @@ function Popover({
7534
7363
  },
7535
7364
  [isControlled, onOpenChange]
7536
7365
  );
7537
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
7366
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
7538
7367
  PopoverPrimitive6.Root,
7539
7368
  {
7540
7369
  open,
@@ -7556,40 +7385,48 @@ var PopoverContent = (0, import_react42.forwardRef)(
7556
7385
  portalled = true,
7557
7386
  showArrow = false,
7558
7387
  flush = false,
7388
+ appearance = "default",
7559
7389
  ...props
7560
7390
  }, ref) => {
7561
- const content = /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
7391
+ const isDefaultAppearance = appearance === "default";
7392
+ const surfaceLevel = appearance === "tooltip" ? "caption" : "text";
7393
+ const pointer = isDefaultAppearance ? POPOVER_POINTER : TOOLTIP_POINTER;
7394
+ const content = /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
7562
7395
  PopoverPrimitive6.Content,
7563
7396
  {
7564
7397
  ref,
7565
7398
  align,
7566
7399
  sideOffset,
7567
7400
  collisionPadding,
7401
+ "data-appearance": appearance,
7568
7402
  className: cn("aviala-popover-content", className),
7569
7403
  ...props,
7570
7404
  children: [
7571
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
7405
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
7572
7406
  "div",
7573
7407
  {
7574
- className: cn("aviala-popover-content__surface", typographyVariants({ level: "text" })),
7408
+ className: cn(
7409
+ "aviala-popover-content__surface",
7410
+ typographyVariants({ level: surfaceLevel })
7411
+ ),
7575
7412
  "data-flush": flush ? "true" : void 0,
7576
7413
  children
7577
7414
  }
7578
7415
  ),
7579
- showArrow ? /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
7416
+ showArrow ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
7580
7417
  PopoverPrimitive6.Arrow,
7581
7418
  {
7582
7419
  asChild: true,
7583
- width: POPOVER_POINTER.width,
7584
- height: POPOVER_POINTER.height,
7585
- children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
7420
+ width: pointer.width,
7421
+ height: pointer.height,
7422
+ children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
7586
7423
  OverlayPointerSvg,
7587
7424
  {
7588
- variant: "popover",
7425
+ variant: isDefaultAppearance ? "popover" : "default",
7589
7426
  className: "aviala-popover-content__arrow",
7590
- width: POPOVER_POINTER.width,
7591
- height: POPOVER_POINTER.height,
7592
- path: POPOVER_POINTER.path
7427
+ width: pointer.width,
7428
+ height: pointer.height,
7429
+ path: pointer.path
7593
7430
  }
7594
7431
  )
7595
7432
  }
@@ -7598,7 +7435,7 @@ var PopoverContent = (0, import_react42.forwardRef)(
7598
7435
  }
7599
7436
  );
7600
7437
  if (!portalled) return content;
7601
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(PopoverPrimitive6.Portal, { children: content });
7438
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(PopoverPrimitive6.Portal, { children: content });
7602
7439
  }
7603
7440
  );
7604
7441
  PopoverContent.displayName = PopoverPrimitive6.Content.displayName;
@@ -7622,7 +7459,7 @@ function useCoarsePointer() {
7622
7459
  }
7623
7460
 
7624
7461
  // src/components/hover-popover.tsx
7625
- var import_jsx_runtime42 = require("react/jsx-runtime");
7462
+ var import_jsx_runtime43 = require("react/jsx-runtime");
7626
7463
  function HoverPopover({
7627
7464
  content,
7628
7465
  children,
@@ -7668,9 +7505,9 @@ function HoverPopover({
7668
7505
  closeTimer.current = setTimeout(() => setOpen(false), closeDelay);
7669
7506
  }, [clearTimers, closeDelay, setOpen]);
7670
7507
  if (coarse) {
7671
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(Popover, { open, onOpenChange: setOpen, children: [
7672
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(PopoverTrigger, { asChild: true, children }),
7673
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
7508
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(Popover, { open, onOpenChange: setOpen, children: [
7509
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(PopoverTrigger, { asChild: true, children }),
7510
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
7674
7511
  PopoverContent,
7675
7512
  {
7676
7513
  side,
@@ -7684,8 +7521,8 @@ function HoverPopover({
7684
7521
  )
7685
7522
  ] });
7686
7523
  }
7687
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(Popover, { open, onOpenChange: setOpen, children: [
7688
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
7524
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(Popover, { open, onOpenChange: setOpen, children: [
7525
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
7689
7526
  PopoverTrigger,
7690
7527
  {
7691
7528
  asChild: true,
@@ -7697,7 +7534,7 @@ function HoverPopover({
7697
7534
  children
7698
7535
  }
7699
7536
  ),
7700
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
7537
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
7701
7538
  PopoverContent,
7702
7539
  {
7703
7540
  ref: contentRef,
@@ -7732,7 +7569,7 @@ var DialogPrimitive = __toESM(require("@radix-ui/react-dialog"), 1);
7732
7569
  var import_icons15 = require("@aviala-design/icons");
7733
7570
  var import_class_variance_authority10 = require("class-variance-authority");
7734
7571
  var import_react45 = require("react");
7735
- var import_jsx_runtime43 = require("react/jsx-runtime");
7572
+ var import_jsx_runtime44 = require("react/jsx-runtime");
7736
7573
  var MODAL_ICON_SIZE = 16;
7737
7574
  var modalContentVariants = (0, import_class_variance_authority10.cva)("aviala-modal-content", {
7738
7575
  variants: {
@@ -7755,13 +7592,13 @@ function renderModalIcon(node) {
7755
7592
  "shrink-0"
7756
7593
  )
7757
7594
  }) : node;
7758
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { className: "aviala-modal__icon", "aria-hidden": true, children: content });
7595
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { className: "aviala-modal__icon", "aria-hidden": true, children: content });
7759
7596
  }
7760
7597
  var Modal = DialogPrimitive.Root;
7761
7598
  var ModalTrigger = DialogPrimitive.Trigger;
7762
7599
  var ModalPortal = DialogPrimitive.Portal;
7763
7600
  var ModalClose = DialogPrimitive.Close;
7764
- var ModalOverlay = (0, import_react45.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
7601
+ var ModalOverlay = (0, import_react45.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
7765
7602
  DialogPrimitive.Overlay,
7766
7603
  {
7767
7604
  ref,
@@ -7780,24 +7617,24 @@ var ModalContent = (0, import_react45.forwardRef)(
7780
7617
  onOpenAutoFocus,
7781
7618
  ...props
7782
7619
  }, ref) => {
7783
- const overlay = showOverlay ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(ModalOverlay, {}) : null;
7784
- const panel = /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
7620
+ const overlay = showOverlay ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(ModalOverlay, {}) : null;
7621
+ const panel = /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
7785
7622
  DialogPrimitive.Content,
7786
7623
  {
7787
7624
  ref,
7788
7625
  className: cn(modalContentVariants({ size }), className),
7789
7626
  onOpenAutoFocus,
7790
7627
  ...props,
7791
- children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "aviala-modal-content__surface", children })
7628
+ children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "aviala-modal-content__surface", children })
7792
7629
  }
7793
7630
  );
7794
7631
  if (!portalled) {
7795
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_jsx_runtime43.Fragment, { children: [
7632
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_jsx_runtime44.Fragment, { children: [
7796
7633
  overlay,
7797
7634
  panel
7798
7635
  ] });
7799
7636
  }
7800
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(DialogPrimitive.Portal, { children: [
7637
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(DialogPrimitive.Portal, { children: [
7801
7638
  overlay,
7802
7639
  panel
7803
7640
  ] });
@@ -7813,10 +7650,10 @@ var ModalHeader = (0, import_react45.forwardRef)(
7813
7650
  showClose = true,
7814
7651
  closeLabel = "Close dialog",
7815
7652
  ...props
7816
- }, ref) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { ref, className: cn("aviala-modal__header", className), ...props, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "aviala-modal__header-row", children: [
7653
+ }, ref) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { ref, className: cn("aviala-modal__header", className), ...props, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "aviala-modal__header-row", children: [
7817
7654
  showIcon ? renderModalIcon(icon) : null,
7818
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "aviala-modal__header-main", children }),
7819
- showClose ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(DialogPrimitive.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
7655
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "aviala-modal__header-main", children }),
7656
+ showClose ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(DialogPrimitive.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
7820
7657
  Button,
7821
7658
  {
7822
7659
  type: "button",
@@ -7824,28 +7661,28 @@ var ModalHeader = (0, import_react45.forwardRef)(
7824
7661
  iconOnly: true,
7825
7662
  "aria-label": closeLabel,
7826
7663
  className: "aviala-modal__close",
7827
- leftIcon: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_icons15.SymbolWrong, { "aria-hidden": true })
7664
+ leftIcon: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_icons15.SymbolWrong, { "aria-hidden": true })
7828
7665
  }
7829
7666
  ) }) : null
7830
7667
  ] }) })
7831
7668
  );
7832
7669
  ModalHeader.displayName = "ModalHeader";
7833
- var ModalTitle = (0, import_react45.forwardRef)(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(DialogPrimitive.Title, { ref, asChild: true, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Typography, { level: "text", className: cn("aviala-modal__title", className), children }) }));
7670
+ var ModalTitle = (0, import_react45.forwardRef)(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(DialogPrimitive.Title, { ref, asChild: true, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Typography, { level: "text", className: cn("aviala-modal__title", className), children }) }));
7834
7671
  ModalTitle.displayName = DialogPrimitive.Title.displayName;
7835
- var ModalDescription = (0, import_react45.forwardRef)(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(DialogPrimitive.Description, { ref, asChild: true, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Typography, { level: "caption", className: cn("aviala-modal__description", className), children }) }));
7672
+ var ModalDescription = (0, import_react45.forwardRef)(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(DialogPrimitive.Description, { ref, asChild: true, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Typography, { level: "caption", className: cn("aviala-modal__description", className), children }) }));
7836
7673
  ModalDescription.displayName = DialogPrimitive.Description.displayName;
7837
7674
  function ModalHeaderText({
7838
7675
  title,
7839
7676
  description,
7840
7677
  ...props
7841
7678
  }) {
7842
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(ModalHeader, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "aviala-modal__header-typeface", children: [
7843
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(ModalTitle, { children: title }),
7844
- description ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(ModalDescription, { children: description }) : null
7679
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(ModalHeader, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "aviala-modal__header-typeface", children: [
7680
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(ModalTitle, { children: title }),
7681
+ description ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(ModalDescription, { children: description }) : null
7845
7682
  ] }) });
7846
7683
  }
7847
7684
  var ModalBody = (0, import_react45.forwardRef)(
7848
- ({ className, children, layout = "default", title, description, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { ref, className: cn("aviala-modal__body", className), ...props, children: layout === "text" ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
7685
+ ({ className, children, layout = "default", title, description, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { ref, className: cn("aviala-modal__body", className), ...props, children: layout === "text" ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
7849
7686
  Typeface,
7850
7687
  {
7851
7688
  className: "aviala-modal__body-typeface",
@@ -7857,21 +7694,21 @@ var ModalBody = (0, import_react45.forwardRef)(
7857
7694
  );
7858
7695
  ModalBody.displayName = "ModalBody";
7859
7696
  var ModalFooter = (0, import_react45.forwardRef)(
7860
- ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { ref, className: cn("aviala-modal__footer", className), ...props })
7697
+ ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { ref, className: cn("aviala-modal__footer", className), ...props })
7861
7698
  );
7862
7699
  ModalFooter.displayName = "ModalFooter";
7863
7700
 
7864
7701
  // src/components/tooltip.tsx
7865
7702
  var TooltipPrimitive = __toESM(require("@radix-ui/react-tooltip"), 1);
7866
7703
  var import_react46 = require("react");
7867
- var import_jsx_runtime44 = require("react/jsx-runtime");
7704
+ var import_jsx_runtime45 = require("react/jsx-runtime");
7868
7705
  var TOOLTIP_DELAY_DURATION = 300;
7869
7706
  function TooltipProvider({
7870
7707
  delayDuration = TOOLTIP_DELAY_DURATION,
7871
7708
  skipDelayDuration = 0,
7872
7709
  ...props
7873
7710
  }) {
7874
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
7711
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
7875
7712
  TooltipPrimitive.Provider,
7876
7713
  {
7877
7714
  delayDuration,
@@ -7890,7 +7727,7 @@ var TooltipContent = (0, import_react46.forwardRef)(
7890
7727
  collisionPadding = 8,
7891
7728
  showArrow = true,
7892
7729
  ...props
7893
- }, ref) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(TooltipPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
7730
+ }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(TooltipPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
7894
7731
  TooltipPrimitive.Content,
7895
7732
  {
7896
7733
  ref,
@@ -7899,14 +7736,14 @@ var TooltipContent = (0, import_react46.forwardRef)(
7899
7736
  className: cn("aviala-tooltip-content", className),
7900
7737
  ...props,
7901
7738
  children: [
7902
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: cn("aviala-tooltip-content__surface", typographyVariants({ level: "caption" })), children }),
7903
- showArrow ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
7739
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: cn("aviala-tooltip-content__surface", typographyVariants({ level: "caption" })), children }),
7740
+ showArrow ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
7904
7741
  TooltipPrimitive.Arrow,
7905
7742
  {
7906
7743
  asChild: true,
7907
7744
  width: TOOLTIP_POINTER.width,
7908
7745
  height: TOOLTIP_POINTER.height,
7909
- children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
7746
+ children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
7910
7747
  OverlayPointerSvg,
7911
7748
  {
7912
7749
  className: "aviala-tooltip-content__arrow",
@@ -7924,7 +7761,7 @@ var TooltipContent = (0, import_react46.forwardRef)(
7924
7761
  TooltipContent.displayName = TooltipPrimitive.Content.displayName;
7925
7762
 
7926
7763
  // src/components/responsive-tooltip.tsx
7927
- var import_jsx_runtime45 = require("react/jsx-runtime");
7764
+ var import_jsx_runtime46 = require("react/jsx-runtime");
7928
7765
  function ResponsiveTooltip({
7929
7766
  content,
7930
7767
  children,
@@ -7941,11 +7778,12 @@ function ResponsiveTooltip({
7941
7778
  }) {
7942
7779
  const coarse = useCoarsePointer();
7943
7780
  if (coarse) {
7944
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(Popover, { open, defaultOpen, onOpenChange, children: [
7945
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(PopoverTrigger, { asChild: true, children }),
7946
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
7781
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(Popover, { open, defaultOpen, onOpenChange, children: [
7782
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(PopoverTrigger, { asChild: true, children }),
7783
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
7947
7784
  PopoverContent,
7948
7785
  {
7786
+ appearance: "tooltip",
7949
7787
  side,
7950
7788
  align,
7951
7789
  sideOffset,
@@ -7957,7 +7795,7 @@ function ResponsiveTooltip({
7957
7795
  )
7958
7796
  ] });
7959
7797
  }
7960
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
7798
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
7961
7799
  Tooltip,
7962
7800
  {
7963
7801
  delayDuration,
@@ -7965,8 +7803,8 @@ function ResponsiveTooltip({
7965
7803
  defaultOpen,
7966
7804
  onOpenChange,
7967
7805
  children: [
7968
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(TooltipTrigger, { asChild: true, children }),
7969
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
7806
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(TooltipTrigger, { asChild: true, children }),
7807
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
7970
7808
  TooltipContent,
7971
7809
  {
7972
7810
  side,
@@ -7987,7 +7825,7 @@ function ResponsiveTooltip({
7987
7825
  var import_class_variance_authority11 = require("class-variance-authority");
7988
7826
  var import_icons16 = require("@aviala-design/icons");
7989
7827
  var import_react47 = require("react");
7990
- var import_jsx_runtime46 = require("react/jsx-runtime");
7828
+ var import_jsx_runtime47 = require("react/jsx-runtime");
7991
7829
  var FEEDBACK_ICON_SIZE = 22;
7992
7830
  var feedbackVariants = (0, import_class_variance_authority11.cva)("aviala-feedback", {
7993
7831
  variants: {
@@ -8023,22 +7861,22 @@ function renderFeedbackIcon(node) {
8023
7861
  "shrink-0"
8024
7862
  )
8025
7863
  }) : node;
8026
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "aviala-feedback__icon", "aria-hidden": true, children: content });
7864
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "aviala-feedback__icon", "aria-hidden": true, children: content });
8027
7865
  }
8028
7866
  function defaultStatusIcon(type, mode) {
8029
7867
  const iconMode = mode === "primary" ? "fill" : "fill";
8030
7868
  const thickness = "Regular";
8031
7869
  switch (type) {
8032
7870
  case "information":
8033
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_icons16.SymbolInformationCircle, { thickness, mode: iconMode, "aria-hidden": true });
7871
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_icons16.SymbolInformationCircle, { thickness, mode: iconMode, "aria-hidden": true });
8034
7872
  case "warning":
8035
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_icons16.SymbolWarningCircle, { thickness, mode: iconMode, "aria-hidden": true });
7873
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_icons16.SymbolWarningCircle, { thickness, mode: iconMode, "aria-hidden": true });
8036
7874
  case "wrong":
8037
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_icons16.SymbolWrongCircle, { thickness, mode: iconMode, "aria-hidden": true });
7875
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_icons16.SymbolWrongCircle, { thickness, mode: iconMode, "aria-hidden": true });
8038
7876
  case "success":
8039
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_icons16.SymbolRightCircle, { thickness, mode: iconMode, "aria-hidden": true });
7877
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_icons16.SymbolRightCircle, { thickness, mode: iconMode, "aria-hidden": true });
8040
7878
  case "normal":
8041
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_icons16.GeneralNotification, { thickness, mode: "default", "aria-hidden": true });
7879
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_icons16.GeneralNotification, { thickness, mode: "default", "aria-hidden": true });
8042
7880
  }
8043
7881
  }
8044
7882
  var Feedback = (0, import_react47.forwardRef)(
@@ -8063,7 +7901,7 @@ var Feedback = (0, import_react47.forwardRef)(
8063
7901
  const tone = mode === "primary" ? "white" : "default";
8064
7902
  const isSmall = resolvedSize === "small";
8065
7903
  const resolvedRole = resolvedType === "wrong" ? "alert" : "status";
8066
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
7904
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
8067
7905
  "div",
8068
7906
  {
8069
7907
  ref,
@@ -8077,9 +7915,9 @@ var Feedback = (0, import_react47.forwardRef)(
8077
7915
  "data-size": resolvedSize,
8078
7916
  "data-mode": mode,
8079
7917
  ...props,
8080
- children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "aviala-feedback__body", children: [
7918
+ children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "aviala-feedback__body", children: [
8081
7919
  renderFeedbackIcon(icon ?? defaultStatusIcon(resolvedType, mode)),
8082
- isSmall ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Typography, { level: "text", tone, className: "aviala-feedback__title", children: title }) : /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
7920
+ isSmall ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Typography, { level: "text", tone, className: "aviala-feedback__title", children: title }) : /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
8083
7921
  Typeface,
8084
7922
  {
8085
7923
  className: "aviala-feedback__typeface",
@@ -8089,7 +7927,7 @@ var Feedback = (0, import_react47.forwardRef)(
8089
7927
  tone
8090
7928
  }
8091
7929
  ),
8092
- action ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
7930
+ action ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
8093
7931
  Link,
8094
7932
  {
8095
7933
  level: "text",
@@ -8105,7 +7943,7 @@ var Feedback = (0, import_react47.forwardRef)(
8105
7943
  children: action
8106
7944
  }
8107
7945
  ) : null,
8108
- showClose ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
7946
+ showClose ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
8109
7947
  Link,
8110
7948
  {
8111
7949
  level: "text",
@@ -8114,7 +7952,7 @@ var Feedback = (0, import_react47.forwardRef)(
8114
7952
  href: onClose ? "#" : void 0,
8115
7953
  "aria-label": closeLabel,
8116
7954
  className: "aviala-feedback__close",
8117
- leftIcon: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_icons16.SymbolWrong, { "aria-hidden": true }),
7955
+ leftIcon: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_icons16.SymbolWrong, { "aria-hidden": true }),
8118
7956
  onClick: (event) => {
8119
7957
  if (onClose) {
8120
7958
  event.preventDefault();
@@ -8134,7 +7972,7 @@ Feedback.displayName = "Feedback";
8134
7972
  var import_icons17 = require("@aviala-design/icons");
8135
7973
  var import_class_variance_authority12 = require("class-variance-authority");
8136
7974
  var import_react48 = require("react");
8137
- var import_jsx_runtime47 = require("react/jsx-runtime");
7975
+ var import_jsx_runtime48 = require("react/jsx-runtime");
8138
7976
  var ALERT_ICON_SIZE = 16;
8139
7977
  var alertVariants = (0, import_class_variance_authority12.cva)("aviala-alert", {
8140
7978
  variants: {
@@ -8170,20 +8008,20 @@ function renderAlertIcon(node) {
8170
8008
  "shrink-0"
8171
8009
  )
8172
8010
  }) : node;
8173
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "aviala-alert__icon", "aria-hidden": true, children: content });
8011
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("span", { className: "aviala-alert__icon", "aria-hidden": true, children: content });
8174
8012
  }
8175
8013
  function defaultStatusIcon2(type) {
8176
8014
  const iconProps = { thickness: "Regular", mode: "fill", "aria-hidden": true };
8177
8015
  switch (type) {
8178
8016
  case "info":
8179
8017
  case "neutral":
8180
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_icons17.SymbolInformationCircle, { ...iconProps });
8018
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_icons17.SymbolInformationCircle, { ...iconProps });
8181
8019
  case "warning":
8182
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_icons17.SymbolWarningCircle, { ...iconProps });
8020
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_icons17.SymbolWarningCircle, { ...iconProps });
8183
8021
  case "error":
8184
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_icons17.SymbolWrongCircle, { ...iconProps });
8022
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_icons17.SymbolWrongCircle, { ...iconProps });
8185
8023
  case "success":
8186
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_icons17.SymbolRightCircle, { ...iconProps });
8024
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_icons17.SymbolRightCircle, { ...iconProps });
8187
8025
  }
8188
8026
  }
8189
8027
  var Alert = (0, import_react48.forwardRef)(
@@ -8212,7 +8050,7 @@ var Alert = (0, import_react48.forwardRef)(
8212
8050
  const resolvedType = type ?? "info";
8213
8051
  const resolvedRole = resolvedType === "error" ? "alert" : "status";
8214
8052
  const hasActions = showActions && (action || secondaryAction);
8215
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
8053
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
8216
8054
  "div",
8217
8055
  {
8218
8056
  ref,
@@ -8224,9 +8062,9 @@ var Alert = (0, import_react48.forwardRef)(
8224
8062
  "data-appearance": appearance,
8225
8063
  ...props,
8226
8064
  children: [
8227
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "aviala-alert__body", children: [
8065
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "aviala-alert__body", children: [
8228
8066
  showIcon ? renderAlertIcon(icon ?? defaultStatusIcon2(resolvedType)) : null,
8229
- isSmall ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Typography, { level: "text", className: "aviala-alert__title", children: title }) : /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
8067
+ isSmall ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Typography, { level: "text", className: "aviala-alert__title", children: title }) : /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
8230
8068
  Typeface,
8231
8069
  {
8232
8070
  className: "aviala-alert__typeface",
@@ -8235,7 +8073,7 @@ var Alert = (0, import_react48.forwardRef)(
8235
8073
  secondary: description
8236
8074
  }
8237
8075
  ),
8238
- quickAction ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
8076
+ quickAction ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
8239
8077
  Link,
8240
8078
  {
8241
8079
  level: "text",
@@ -8251,7 +8089,7 @@ var Alert = (0, import_react48.forwardRef)(
8251
8089
  children: quickAction
8252
8090
  }
8253
8091
  ) : null,
8254
- dismissible ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
8092
+ dismissible ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
8255
8093
  Link,
8256
8094
  {
8257
8095
  level: "text",
@@ -8260,7 +8098,7 @@ var Alert = (0, import_react48.forwardRef)(
8260
8098
  href: onDismiss ? "#" : void 0,
8261
8099
  "aria-label": closeLabel,
8262
8100
  className: "aviala-alert__close",
8263
- leftIcon: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_icons17.SymbolWrong, { "aria-hidden": true }),
8101
+ leftIcon: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_icons17.SymbolWrong, { "aria-hidden": true }),
8264
8102
  onClick: (event) => {
8265
8103
  if (onDismiss) {
8266
8104
  event.preventDefault();
@@ -8270,8 +8108,8 @@ var Alert = (0, import_react48.forwardRef)(
8270
8108
  }
8271
8109
  ) : null
8272
8110
  ] }),
8273
- hasActions ? /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "aviala-alert__actions", children: [
8274
- action ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
8111
+ hasActions ? /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "aviala-alert__actions", children: [
8112
+ action ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
8275
8113
  Link,
8276
8114
  {
8277
8115
  level: "caption",
@@ -8287,7 +8125,7 @@ var Alert = (0, import_react48.forwardRef)(
8287
8125
  children: action
8288
8126
  }
8289
8127
  ) : null,
8290
- secondaryAction ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
8128
+ secondaryAction ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
8291
8129
  Link,
8292
8130
  {
8293
8131
  level: "caption",
@@ -8314,30 +8152,30 @@ Alert.displayName = "Alert";
8314
8152
  // src/components/list.tsx
8315
8153
  var import_icons18 = require("@aviala-design/icons");
8316
8154
  var import_react49 = require("react");
8317
- var import_jsx_runtime48 = require("react/jsx-runtime");
8155
+ var import_jsx_runtime49 = require("react/jsx-runtime");
8318
8156
  var List = (0, import_react49.forwardRef)(
8319
- ({ className, title, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { ref, className: cn("aviala-list", className), ...props, children: [
8320
- title != null ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(ListTitle, { children: title }) : null,
8321
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(ListGroup, { children })
8157
+ ({ className, title, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { ref, className: cn("aviala-list", className), ...props, children: [
8158
+ title != null ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(ListTitle, { children: title }) : null,
8159
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(ListGroup, { children })
8322
8160
  ] })
8323
8161
  );
8324
8162
  List.displayName = "List";
8325
8163
  var ListTitle = (0, import_react49.forwardRef)(
8326
- ({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { ref, className: cn("aviala-list-title", className), ...props, children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("span", { className: cn(typographyVariants({ level: "text" })), children }) })
8164
+ ({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { ref, className: cn("aviala-list-title", className), ...props, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("span", { className: cn(typographyVariants({ level: "text" })), children }) })
8327
8165
  );
8328
8166
  ListTitle.displayName = "ListTitle";
8329
8167
  var ListGroup = (0, import_react49.forwardRef)(
8330
- ({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { ref, className: cn("aviala-list-group", className), role: "list", ...props, children })
8168
+ ({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { ref, className: cn("aviala-list-group", className), role: "list", ...props, children })
8331
8169
  );
8332
8170
  ListGroup.displayName = "ListGroup";
8333
8171
  function ListItemGroup({ label, children, className }) {
8334
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: cn("aviala-list", className), children: [
8335
- label != null ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(ListTitle, { children: label }) : null,
8336
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(ListGroup, { children })
8172
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: cn("aviala-list", className), children: [
8173
+ label != null ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(ListTitle, { children: label }) : null,
8174
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(ListGroup, { children })
8337
8175
  ] });
8338
8176
  }
8339
8177
  var ListDivider = (0, import_react49.forwardRef)(
8340
- ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
8178
+ ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
8341
8179
  "span",
8342
8180
  {
8343
8181
  ref,
@@ -8349,13 +8187,13 @@ var ListDivider = (0, import_react49.forwardRef)(
8349
8187
  );
8350
8188
  ListDivider.displayName = "ListDivider";
8351
8189
  var ListSeparator = (0, import_react49.forwardRef)(
8352
- ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("hr", { ref, className: cn("aviala-list-separator", className), ...props })
8190
+ ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("hr", { ref, className: cn("aviala-list-separator", className), ...props })
8353
8191
  );
8354
8192
  ListSeparator.displayName = "ListSeparator";
8355
8193
  function renderLeadingIcon(node, leading) {
8356
8194
  if (leading === "none") return null;
8357
8195
  const iconSize = leading === "shaped" ? 20 : 22;
8358
- const content = node ?? (leading === "shaped" ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_icons18.GeneralSetting, { "aria-hidden": true }) : /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_icons18.GeneralSetting, { "aria-hidden": true }));
8196
+ const content = node ?? (leading === "shaped" ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_icons18.GeneralSetting, { "aria-hidden": true }) : /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_icons18.GeneralSetting, { "aria-hidden": true }));
8359
8197
  const rendered = (0, import_react49.isValidElement)(content) && typeof content.type !== "string" ? (0, import_react49.cloneElement)(content, {
8360
8198
  width: iconSize,
8361
8199
  height: iconSize,
@@ -8364,7 +8202,7 @@ function renderLeadingIcon(node, leading) {
8364
8202
  "shrink-0"
8365
8203
  )
8366
8204
  }) : content;
8367
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("span", { className: "aviala-list-item__icon", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
8205
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("span", { className: "aviala-list-item__icon", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
8368
8206
  "span",
8369
8207
  {
8370
8208
  className: cn(
@@ -8395,44 +8233,44 @@ var ListItem = (0, import_react49.forwardRef)(
8395
8233
  ...props
8396
8234
  }, ref) => {
8397
8235
  const isInteractive = interactive ?? onClick != null;
8398
- const primaryAction = action ?? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Button, { mode: "primary", size: "regular", leftIcon: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_icons18.GeneralSetting, { "aria-hidden": true }), children: actionLabel });
8236
+ const primaryAction = action ?? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Button, { mode: "primary", size: "regular", leftIcon: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_icons18.GeneralSetting, { "aria-hidden": true }), children: actionLabel });
8399
8237
  const renderTrailing = () => {
8400
8238
  if (trailing !== void 0) return trailing;
8401
8239
  switch (itemType) {
8402
8240
  case "action":
8403
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "aviala-list-item__more", children: [
8404
- /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "aviala-list-item__trailing", children: [
8241
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "aviala-list-item__more", children: [
8242
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "aviala-list-item__trailing", children: [
8405
8243
  primaryAction,
8406
- secondaryAction ?? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
8244
+ secondaryAction ?? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
8407
8245
  Button,
8408
8246
  {
8409
8247
  mode: "default",
8410
8248
  size: "regular",
8411
8249
  iconOnly: true,
8412
8250
  "aria-label": "More",
8413
- leftIcon: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_icons18.GeneralSetting, { "aria-hidden": true })
8251
+ leftIcon: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_icons18.GeneralSetting, { "aria-hidden": true })
8414
8252
  }
8415
8253
  )
8416
8254
  ] }),
8417
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(ListDivider, {}),
8418
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("span", { className: "aviala-list-item__chevron", "aria-hidden": true, children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_icons18.DirectionArrowRightLight, { width: 18, height: 18 }) })
8255
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(ListDivider, {}),
8256
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("span", { className: "aviala-list-item__chevron", "aria-hidden": true, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_icons18.DirectionArrowRightLight, { width: 18, height: 18 }) })
8419
8257
  ] });
8420
8258
  case "switch":
8421
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "aviala-list-item__trailing", children: [
8259
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "aviala-list-item__trailing", children: [
8422
8260
  primaryAction,
8423
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(ListDivider, {}),
8424
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Switch, { ...switchProps })
8261
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(ListDivider, {}),
8262
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Switch, { ...switchProps })
8425
8263
  ] });
8426
8264
  case "select":
8427
8265
  default:
8428
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "aviala-list-item__trailing", children: [
8266
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "aviala-list-item__trailing", children: [
8429
8267
  primaryAction,
8430
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(ListDivider, {}),
8431
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("span", { className: "aviala-list-item__select", children: select })
8268
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(ListDivider, {}),
8269
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("span", { className: "aviala-list-item__select", children: select })
8432
8270
  ] });
8433
8271
  }
8434
8272
  };
8435
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
8273
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
8436
8274
  "div",
8437
8275
  {
8438
8276
  ref,
@@ -8447,8 +8285,8 @@ var ListItem = (0, import_react49.forwardRef)(
8447
8285
  ...props,
8448
8286
  children: [
8449
8287
  renderLeadingIcon(icon, leading),
8450
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "aviala-list-item__body", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "aviala-list-item__content", children: [
8451
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "aviala-list-item__head", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Typeface, { content: "textCaption", primary: title, secondary: subtitle }) }),
8288
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "aviala-list-item__body", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "aviala-list-item__content", children: [
8289
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "aviala-list-item__head", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Typeface, { content: "textCaption", primary: title, secondary: subtitle }) }),
8452
8290
  renderTrailing()
8453
8291
  ] }) })
8454
8292
  ]
@@ -8462,7 +8300,7 @@ ListItem.displayName = "ListItem";
8462
8300
  var PopoverPrimitive7 = __toESM(require("@radix-ui/react-popover"), 1);
8463
8301
  var import_react_slot5 = require("@radix-ui/react-slot");
8464
8302
  var import_react50 = require("react");
8465
- var import_jsx_runtime49 = require("react/jsx-runtime");
8303
+ var import_jsx_runtime50 = require("react/jsx-runtime");
8466
8304
  function navigationItemButtonMode(active) {
8467
8305
  return active ? "second" : "noBackgroundCustom";
8468
8306
  }
@@ -8871,7 +8709,7 @@ var Navigation = (0, import_react50.forwardRef)(
8871
8709
  direction = "vertical",
8872
8710
  dividingLine = false,
8873
8711
  ...props
8874
- }, ref) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(NavigationDirectionContext.Provider, { value: direction, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
8712
+ }, ref) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(NavigationDirectionContext.Provider, { value: direction, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
8875
8713
  Tag2,
8876
8714
  {
8877
8715
  ref,
@@ -8885,7 +8723,7 @@ var Navigation = (0, import_react50.forwardRef)(
8885
8723
  );
8886
8724
  Navigation.displayName = "Navigation";
8887
8725
  var NavigationBrand = (0, import_react50.forwardRef)(
8888
- ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
8726
+ ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
8889
8727
  "div",
8890
8728
  {
8891
8729
  ref,
@@ -8897,24 +8735,24 @@ var NavigationBrand = (0, import_react50.forwardRef)(
8897
8735
  NavigationBrand.displayName = "NavigationBrand";
8898
8736
  var NavigationBrandTitle = (0, import_react50.forwardRef)(({ className, asChild = false, children, ...props }, ref) => {
8899
8737
  const Comp = asChild ? import_react_slot5.Slot : "a";
8900
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
8738
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
8901
8739
  Comp,
8902
8740
  {
8903
8741
  ref,
8904
8742
  className: cn("aviala-navigation-brand__title aviala-focus-ring", className),
8905
8743
  ...props,
8906
- children: asChild ? children : /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Typography, { level: "text", as: "span", children })
8744
+ children: asChild ? children : /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Typography, { level: "text", as: "span", children })
8907
8745
  }
8908
8746
  );
8909
8747
  });
8910
8748
  NavigationBrandTitle.displayName = "NavigationBrandTitle";
8911
- var NavigationSection = (0, import_react50.forwardRef)(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
8749
+ var NavigationSection = (0, import_react50.forwardRef)(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
8912
8750
  "div",
8913
8751
  {
8914
8752
  ref,
8915
8753
  className: cn("aviala-navigation-section", className),
8916
8754
  ...props,
8917
- children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Typography, { level: "caption", as: "p", children })
8755
+ children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Typography, { level: "caption", as: "p", children })
8918
8756
  }
8919
8757
  ));
8920
8758
  NavigationSection.displayName = "NavigationSection";
@@ -8939,14 +8777,14 @@ var NavigationGroup = (0, import_react50.forwardRef)(
8939
8777
  },
8940
8778
  [ref]
8941
8779
  );
8942
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
8780
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
8943
8781
  "div",
8944
8782
  {
8945
8783
  ref: setRefs,
8946
8784
  className: cn("aviala-navigation-group", className),
8947
8785
  ...props,
8948
8786
  children: [
8949
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
8787
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
8950
8788
  "span",
8951
8789
  {
8952
8790
  ref: onIndicatorRef,
@@ -8972,7 +8810,7 @@ var NavigationItemGroup = (0, import_react50.forwardRef)(({ className, expanded,
8972
8810
  if (isCollapsed) inner.setAttribute("inert", "");
8973
8811
  else inner.removeAttribute("inert");
8974
8812
  }, [isCollapsed]);
8975
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
8813
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
8976
8814
  "div",
8977
8815
  {
8978
8816
  ref,
@@ -8980,7 +8818,7 @@ var NavigationItemGroup = (0, import_react50.forwardRef)(({ className, expanded,
8980
8818
  "data-expanded": isCollapsible ? expanded ? "true" : "false" : void 0,
8981
8819
  "aria-hidden": isCollapsed ? true : void 0,
8982
8820
  ...props,
8983
- children: isCollapsible ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { ref: innerRef, className: "aviala-navigation-item-group__inner", children }) : children
8821
+ children: isCollapsible ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { ref: innerRef, className: "aviala-navigation-item-group__inner", children }) : children
8984
8822
  }
8985
8823
  );
8986
8824
  });
@@ -8991,7 +8829,7 @@ function renderItemIcon3(node) {
8991
8829
  level: "text",
8992
8830
  biggerSize: true
8993
8831
  });
8994
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("span", { className: "aviala-navigation-item__icon", children: content });
8832
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { className: "aviala-navigation-item__icon", children: content });
8995
8833
  }
8996
8834
  var NavigationItem = (0, import_react50.forwardRef)(
8997
8835
  ({
@@ -9008,9 +8846,9 @@ var NavigationItem = (0, import_react50.forwardRef)(
9008
8846
  const Comp = asChild ? import_react_slot5.Slot : "a";
9009
8847
  const isActive = active ?? ariaCurrent === "page";
9010
8848
  const mode = navigationItemButtonMode(isActive);
9011
- const controlContent = /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_jsx_runtime49.Fragment, { children: [
8849
+ const controlContent = /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(import_jsx_runtime50.Fragment, { children: [
9012
8850
  renderItemIcon3(leftIcon),
9013
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
8851
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
9014
8852
  Typography,
9015
8853
  {
9016
8854
  level: "text",
@@ -9019,15 +8857,15 @@ var NavigationItem = (0, import_react50.forwardRef)(
9019
8857
  children
9020
8858
  }
9021
8859
  ),
9022
- rightIcon ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("span", { className: "aviala-navigation-item__chevron", children: renderItemIcon3(rightIcon) }) : null
8860
+ rightIcon ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { className: "aviala-navigation-item__chevron", children: renderItemIcon3(rightIcon) }) : null
9023
8861
  ] });
9024
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
8862
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
9025
8863
  "span",
9026
8864
  {
9027
8865
  className: cn("aviala-navigation-item", className),
9028
8866
  "data-item-type": itemType,
9029
8867
  "data-active": isActive ? "true" : "false",
9030
- children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
8868
+ children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
9031
8869
  Comp,
9032
8870
  {
9033
8871
  ref,
@@ -9046,7 +8884,7 @@ var NavigationItem = (0, import_react50.forwardRef)(
9046
8884
  }
9047
8885
  );
9048
8886
  NavigationItem.displayName = "NavigationItem";
9049
- var NavigationActions = (0, import_react50.forwardRef)(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
8887
+ var NavigationActions = (0, import_react50.forwardRef)(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
9050
8888
  "div",
9051
8889
  {
9052
8890
  ref,
@@ -9056,7 +8894,7 @@ var NavigationActions = (0, import_react50.forwardRef)(({ className, children, .
9056
8894
  }
9057
8895
  ));
9058
8896
  NavigationActions.displayName = "NavigationActions";
9059
- var NavigationActionsSlot = (0, import_react50.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
8897
+ var NavigationActionsSlot = (0, import_react50.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
9060
8898
  "div",
9061
8899
  {
9062
8900
  ref,
@@ -9148,7 +8986,7 @@ function NavigationItemMenu({
9148
8986
  },
9149
8987
  [cancelClose, setOpen]
9150
8988
  );
9151
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(NavigationItemMenuContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Popover, { open, onOpenChange: handleOpenChange, children }) });
8989
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(NavigationItemMenuContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Popover, { open, onOpenChange: handleOpenChange, children }) });
9152
8990
  }
9153
8991
  var NavigationItemMenuTrigger = (0, import_react50.forwardRef)(
9154
8992
  ({
@@ -9162,7 +9000,7 @@ var NavigationItemMenuTrigger = (0, import_react50.forwardRef)(
9162
9000
  const menu = useNavigationItemMenuContext("NavigationItemMenuTrigger");
9163
9001
  const isActive = active ?? menu.hasSelection;
9164
9002
  const mode = navigationItemButtonMode(isActive);
9165
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
9003
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
9166
9004
  "span",
9167
9005
  {
9168
9006
  className: cn("aviala-navigation-item", className),
@@ -9170,7 +9008,7 @@ var NavigationItemMenuTrigger = (0, import_react50.forwardRef)(
9170
9008
  "data-active": isActive ? "true" : "false",
9171
9009
  onMouseEnter: () => menu.openMenu(true),
9172
9010
  onMouseLeave: menu.scheduleClose,
9173
- children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(PopoverPrimitive7.Trigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
9011
+ children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(PopoverPrimitive7.Trigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
9174
9012
  "button",
9175
9013
  {
9176
9014
  ref,
@@ -9183,7 +9021,7 @@ var NavigationItemMenuTrigger = (0, import_react50.forwardRef)(
9183
9021
  ...props,
9184
9022
  children: [
9185
9023
  renderItemIcon3(leftIcon),
9186
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
9024
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
9187
9025
  Typography,
9188
9026
  {
9189
9027
  level: "text",
@@ -9192,7 +9030,7 @@ var NavigationItemMenuTrigger = (0, import_react50.forwardRef)(
9192
9030
  children
9193
9031
  }
9194
9032
  ),
9195
- rightIcon ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("span", { className: "aviala-navigation-item__chevron", children: renderItemIcon3(rightIcon) }) : null
9033
+ rightIcon ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { className: "aviala-navigation-item__chevron", children: renderItemIcon3(rightIcon) }) : null
9196
9034
  ]
9197
9035
  }
9198
9036
  ) })
@@ -9213,7 +9051,7 @@ var NavigationItemMenuContent = (0, import_react50.forwardRef)(
9213
9051
  }, ref) => {
9214
9052
  const direction = useNavigationDirection();
9215
9053
  const menu = useNavigationItemMenuContext("NavigationItemMenuContent");
9216
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(PopoverPrimitive7.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
9054
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(PopoverPrimitive7.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
9217
9055
  PopoverPrimitive7.Content,
9218
9056
  {
9219
9057
  ref,
@@ -9248,7 +9086,7 @@ var NavigationItemMenuItem = (0, import_react50.forwardRef)(
9248
9086
  }, ref) => {
9249
9087
  const menu = useNavigationItemMenuContext("NavigationItemMenuItem");
9250
9088
  const isSelected = selected ?? menu.value === value;
9251
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
9089
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
9252
9090
  "button",
9253
9091
  {
9254
9092
  ref,
@@ -9268,7 +9106,7 @@ var NavigationItemMenuItem = (0, import_react50.forwardRef)(
9268
9106
  ...props,
9269
9107
  children: [
9270
9108
  renderItemIcon3(leftIcon),
9271
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
9109
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
9272
9110
  Typography,
9273
9111
  {
9274
9112
  level: "text",
@@ -9277,7 +9115,7 @@ var NavigationItemMenuItem = (0, import_react50.forwardRef)(
9277
9115
  children
9278
9116
  }
9279
9117
  ),
9280
- rightIcon ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("span", { className: "aviala-navigation-menu-item__trailing", children: renderItemIcon3(rightIcon) }) : null
9118
+ rightIcon ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { className: "aviala-navigation-menu-item__trailing", children: renderItemIcon3(rightIcon) }) : null
9281
9119
  ]
9282
9120
  }
9283
9121
  );
@@ -9289,7 +9127,7 @@ NavigationItemMenuItem.displayName = "NavigationItemMenuItem";
9289
9127
  var SliderPrimitive = __toESM(require("@radix-ui/react-slider"), 1);
9290
9128
  var import_class_variance_authority13 = require("class-variance-authority");
9291
9129
  var import_react51 = require("react");
9292
- var import_jsx_runtime50 = require("react/jsx-runtime");
9130
+ var import_jsx_runtime51 = require("react/jsx-runtime");
9293
9131
  var sliderVariants = (0, import_class_variance_authority13.cva)("aviala-slider", {
9294
9132
  variants: {
9295
9133
  size: {
@@ -9323,7 +9161,7 @@ var Slider = (0, import_react51.forwardRef)(
9323
9161
  const isRange = resolvedType === "range";
9324
9162
  const resolvedDefaultValue = defaultValue ?? (isRange ? [25, 75] : [50]);
9325
9163
  const thumbCount = isRange ? Math.max(2, value?.length ?? defaultValue?.length ?? 2) : 1;
9326
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
9164
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
9327
9165
  SliderPrimitive.Root,
9328
9166
  {
9329
9167
  ref,
@@ -9341,8 +9179,8 @@ var Slider = (0, import_react51.forwardRef)(
9341
9179
  "data-disabled": disabled ? "true" : void 0,
9342
9180
  ...props,
9343
9181
  children: [
9344
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SliderPrimitive.Track, { className: "aviala-slider__track", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SliderPrimitive.Range, { className: "aviala-slider__range" }) }),
9345
- Array.from({ length: thumbCount }, (_, index) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SliderPrimitive.Thumb, { className: "aviala-slider__thumb aviala-focus-ring" }, index))
9182
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(SliderPrimitive.Track, { className: "aviala-slider__track", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(SliderPrimitive.Range, { className: "aviala-slider__range" }) }),
9183
+ Array.from({ length: thumbCount }, (_, index) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(SliderPrimitive.Thumb, { className: "aviala-slider__thumb aviala-focus-ring" }, index))
9346
9184
  ]
9347
9185
  }
9348
9186
  );
@@ -9354,7 +9192,7 @@ Slider.displayName = "Slider";
9354
9192
  var import_icons19 = require("@aviala-design/icons");
9355
9193
  var import_class_variance_authority14 = require("class-variance-authority");
9356
9194
  var import_react52 = require("react");
9357
- var import_jsx_runtime51 = require("react/jsx-runtime");
9195
+ var import_jsx_runtime52 = require("react/jsx-runtime");
9358
9196
  var uploadVariants = (0, import_class_variance_authority14.cva)("aviala-upload aviala-focus-ring", {
9359
9197
  variants: {
9360
9198
  style: {
@@ -9404,7 +9242,7 @@ var Upload = (0, import_react52.forwardRef)(
9404
9242
  onChange?.(event.dataTransfer.files);
9405
9243
  }
9406
9244
  };
9407
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
9245
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
9408
9246
  "div",
9409
9247
  {
9410
9248
  ref,
@@ -9435,7 +9273,7 @@ var Upload = (0, import_react52.forwardRef)(
9435
9273
  onDrop: handleDrop,
9436
9274
  ...props,
9437
9275
  children: [
9438
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
9276
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
9439
9277
  "input",
9440
9278
  {
9441
9279
  ref: inputRef,
@@ -9450,8 +9288,8 @@ var Upload = (0, import_react52.forwardRef)(
9450
9288
  ...inputProps
9451
9289
  }
9452
9290
  ),
9453
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "aviala-upload__icon", "aria-hidden": true, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_icons19.GeneralUpload, { width: 16, height: 16 }) }),
9454
- resolvedStyle === "large" ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
9291
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { className: "aviala-upload__icon", "aria-hidden": true, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_icons19.GeneralUpload, { width: 16, height: 16 }) }),
9292
+ resolvedStyle === "large" ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
9455
9293
  Typeface,
9456
9294
  {
9457
9295
  className: "aviala-upload__typeface",
@@ -9459,7 +9297,7 @@ var Upload = (0, import_react52.forwardRef)(
9459
9297
  primary: title,
9460
9298
  secondary: description
9461
9299
  }
9462
- ) : /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Typography, { level: "text", as: "span", className: "aviala-upload__label", children: label })
9300
+ ) : /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Typography, { level: "text", as: "span", className: "aviala-upload__label", children: label })
9463
9301
  ]
9464
9302
  }
9465
9303
  );
@@ -9469,7 +9307,7 @@ Upload.displayName = "Upload";
9469
9307
 
9470
9308
  // src/components/scroll-picker.tsx
9471
9309
  var import_react53 = require("react");
9472
- var import_jsx_runtime52 = require("react/jsx-runtime");
9310
+ var import_jsx_runtime53 = require("react/jsx-runtime");
9473
9311
  var LOOP_SECTIONS2 = 3;
9474
9312
  var MIDDLE_SECTION2 = 1;
9475
9313
  function normalizeIndex2(index, length) {
@@ -9497,7 +9335,7 @@ function fractionalIndexAtScrollTop(metrics, scrollTop) {
9497
9335
  return (scrollTop - metrics.originTop) / metrics.pitch;
9498
9336
  }
9499
9337
  function ScrollPicker({ className, children, ...props }) {
9500
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: cn("aviala-scroll-picker", className), ...props, children });
9338
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: cn("aviala-scroll-picker", className), ...props, children });
9501
9339
  }
9502
9340
  function ScrollPickerColumn({
9503
9341
  className,
@@ -9694,9 +9532,9 @@ function ScrollPickerColumn({
9694
9532
  }
9695
9533
  };
9696
9534
  const selectedOptionId = `${reactId}-${getIndex(value)}`;
9697
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: cn("aviala-scroll-picker-column", className), children: /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "aviala-scroll-picker-column__viewport", children: [
9698
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "aviala-scroll-picker-column__highlight", "aria-hidden": true }),
9699
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
9535
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: cn("aviala-scroll-picker-column", className), children: /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "aviala-scroll-picker-column__viewport", children: [
9536
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "aviala-scroll-picker-column__highlight", "aria-hidden": true }),
9537
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
9700
9538
  "div",
9701
9539
  {
9702
9540
  ref: scrollRef,
@@ -9707,12 +9545,12 @@ function ScrollPickerColumn({
9707
9545
  "aria-activedescendant": selectedOptionId,
9708
9546
  tabIndex: 0,
9709
9547
  onKeyDown: handleKeyDown,
9710
- children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("ul", { className: "aviala-scroll-picker-column__list", children: repeatedValues.map((itemValue, index) => {
9548
+ children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("ul", { className: "aviala-scroll-picker-column__list", children: repeatedValues.map((itemValue, index) => {
9711
9549
  const isSelected = Object.is(itemValue, value);
9712
9550
  const valueIndex = loop ? normalizeIndex2(index, values.length) : index;
9713
9551
  const optionId = `${reactId}-${loop ? index : valueIndex}`;
9714
9552
  const key = getValueKey?.(itemValue, index) ?? `${String(itemValue)}-${index}`;
9715
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("li", { className: "contents", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
9553
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("li", { className: "contents", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
9716
9554
  ScrollPickerItem,
9717
9555
  {
9718
9556
  id: isSelected ? selectedOptionId : optionId,
@@ -9738,7 +9576,7 @@ function ScrollPickerItem({
9738
9576
  className,
9739
9577
  onSelect
9740
9578
  }) {
9741
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
9579
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
9742
9580
  "button",
9743
9581
  {
9744
9582
  type: "button",
@@ -9762,7 +9600,7 @@ function ScrollPickerItem({
9762
9600
  var import_icons20 = require("@aviala-design/icons");
9763
9601
  var import_class_variance_authority15 = require("class-variance-authority");
9764
9602
  var import_react54 = require("react");
9765
- var import_jsx_runtime53 = require("react/jsx-runtime");
9603
+ var import_jsx_runtime54 = require("react/jsx-runtime");
9766
9604
  var BreadcrumbSizeContext = (0, import_react54.createContext)("default");
9767
9605
  function breadcrumbTypeLevel(size) {
9768
9606
  return size === "small" ? "caption" : "text";
@@ -9781,7 +9619,7 @@ var breadcrumbVariants = (0, import_class_variance_authority15.cva)("aviala-brea
9781
9619
  var Breadcrumb = (0, import_react54.forwardRef)(
9782
9620
  ({ className, size = "default", children, ...props }, ref) => {
9783
9621
  const resolvedSize = size ?? "default";
9784
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(BreadcrumbSizeContext.Provider, { value: resolvedSize, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
9622
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(BreadcrumbSizeContext.Provider, { value: resolvedSize, children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
9785
9623
  "nav",
9786
9624
  {
9787
9625
  ref,
@@ -9789,7 +9627,7 @@ var Breadcrumb = (0, import_react54.forwardRef)(
9789
9627
  className: cn(breadcrumbVariants({ size: resolvedSize }), className),
9790
9628
  "data-size": resolvedSize,
9791
9629
  ...props,
9792
- children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("ol", { className: "aviala-breadcrumb__list", children })
9630
+ children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("ol", { className: "aviala-breadcrumb__list", children })
9793
9631
  }
9794
9632
  ) });
9795
9633
  }
@@ -9798,9 +9636,9 @@ Breadcrumb.displayName = "Breadcrumb";
9798
9636
  var BreadcrumbItem = (0, import_react54.forwardRef)(
9799
9637
  ({ className, href, current = false, icon, onClick, children, ...props }, ref) => {
9800
9638
  const size = (0, import_react54.useContext)(BreadcrumbSizeContext);
9801
- const label = /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_jsx_runtime53.Fragment, { children: [
9802
- icon ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { className: "aviala-breadcrumb-item__icon", children: icon }) : null,
9803
- children != null ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
9639
+ const label = /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_jsx_runtime54.Fragment, { children: [
9640
+ icon ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: "aviala-breadcrumb-item__icon", children: icon }) : null,
9641
+ children != null ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
9804
9642
  Typography,
9805
9643
  {
9806
9644
  level: breadcrumbTypeLevel(size),
@@ -9810,13 +9648,13 @@ var BreadcrumbItem = (0, import_react54.forwardRef)(
9810
9648
  }
9811
9649
  ) : null
9812
9650
  ] });
9813
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
9651
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
9814
9652
  "li",
9815
9653
  {
9816
9654
  ref,
9817
9655
  className: cn("aviala-breadcrumb-item-wrap", className),
9818
9656
  ...props,
9819
- children: href != null ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
9657
+ children: href != null ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
9820
9658
  "a",
9821
9659
  {
9822
9660
  href,
@@ -9825,7 +9663,7 @@ var BreadcrumbItem = (0, import_react54.forwardRef)(
9825
9663
  "aria-current": current ? "page" : void 0,
9826
9664
  children: label
9827
9665
  }
9828
- ) : onClick != null ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
9666
+ ) : onClick != null ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
9829
9667
  "button",
9830
9668
  {
9831
9669
  type: "button",
@@ -9835,7 +9673,7 @@ var BreadcrumbItem = (0, import_react54.forwardRef)(
9835
9673
  onClick,
9836
9674
  children: label
9837
9675
  }
9838
- ) : /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
9676
+ ) : /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
9839
9677
  "span",
9840
9678
  {
9841
9679
  className: "aviala-breadcrumb-item",
@@ -9852,7 +9690,7 @@ BreadcrumbItem.displayName = "BreadcrumbItem";
9852
9690
  var BreadcrumbSeparator = (0, import_react54.forwardRef)(
9853
9691
  ({ className, children = "/", ...props }, ref) => {
9854
9692
  const size = (0, import_react54.useContext)(BreadcrumbSizeContext);
9855
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
9693
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
9856
9694
  "li",
9857
9695
  {
9858
9696
  ref,
@@ -9860,7 +9698,7 @@ var BreadcrumbSeparator = (0, import_react54.forwardRef)(
9860
9698
  "aria-hidden": true,
9861
9699
  className: cn("aviala-breadcrumb-separator", className),
9862
9700
  ...props,
9863
- children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Typography, { level: breadcrumbTypeLevel(size), as: "span", children })
9701
+ children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Typography, { level: breadcrumbTypeLevel(size), as: "span", children })
9864
9702
  }
9865
9703
  );
9866
9704
  }
@@ -9875,12 +9713,12 @@ var BreadcrumbEllipsisItem = (0, import_react54.forwardRef)(
9875
9713
  children,
9876
9714
  ...props
9877
9715
  }, ref) => {
9878
- const content = /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_jsx_runtime53.Fragment, { children: [
9879
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Typography, { level: "text", as: "span", className: "aviala-breadcrumb-ellipsis-item__label", children }),
9880
- showChevron ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { className: "aviala-breadcrumb-ellipsis-item__chevron", "aria-hidden": true, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_icons20.DirectionArrowRightLight, { width: 14, height: 14, thickness: "Light" }) }) : null
9716
+ const content = /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_jsx_runtime54.Fragment, { children: [
9717
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Typography, { level: "text", as: "span", className: "aviala-breadcrumb-ellipsis-item__label", children }),
9718
+ showChevron ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: "aviala-breadcrumb-ellipsis-item__chevron", "aria-hidden": true, children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_icons20.DirectionArrowRightLight, { width: 14, height: 14, thickness: "Light" }) }) : null
9881
9719
  ] });
9882
9720
  if (href != null) {
9883
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
9721
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
9884
9722
  "a",
9885
9723
  {
9886
9724
  ref,
@@ -9892,7 +9730,7 @@ var BreadcrumbEllipsisItem = (0, import_react54.forwardRef)(
9892
9730
  }
9893
9731
  );
9894
9732
  }
9895
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
9733
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
9896
9734
  "button",
9897
9735
  {
9898
9736
  ref,
@@ -9930,8 +9768,8 @@ var BreadcrumbEllipsis = (0, import_react54.forwardRef)(
9930
9768
  [isControlled, onActivatedChange]
9931
9769
  );
9932
9770
  const iconSize = 14;
9933
- const icon = children ?? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_icons20.SymbolMore, { width: iconSize, height: iconSize, thickness: "Light", "aria-hidden": true });
9934
- const trigger = /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
9771
+ const icon = children ?? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_icons20.SymbolMore, { width: iconSize, height: iconSize, thickness: "Light", "aria-hidden": true });
9772
+ const trigger = /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
9935
9773
  "button",
9936
9774
  {
9937
9775
  type: "button",
@@ -9950,9 +9788,9 @@ var BreadcrumbEllipsis = (0, import_react54.forwardRef)(
9950
9788
  children: icon
9951
9789
  }
9952
9790
  );
9953
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("li", { ref, className: cn("aviala-breadcrumb-ellipsis-wrap", className), children: menu != null ? /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(Popover, { open: activated, onOpenChange: setActivated, children: [
9954
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(PopoverTrigger, { asChild: true, children: trigger }),
9955
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
9791
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("li", { ref, className: cn("aviala-breadcrumb-ellipsis-wrap", className), children: menu != null ? /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(Popover, { open: activated, onOpenChange: setActivated, children: [
9792
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(PopoverTrigger, { asChild: true, children: trigger }),
9793
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
9956
9794
  PopoverContent,
9957
9795
  {
9958
9796
  className: "aviala-breadcrumb-ellipsis-menu",
@@ -9961,7 +9799,7 @@ var BreadcrumbEllipsis = (0, import_react54.forwardRef)(
9961
9799
  sideOffset: 7,
9962
9800
  showArrow: false,
9963
9801
  role: "menu",
9964
- children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "aviala-breadcrumb-ellipsis-menu__items", children: menu })
9802
+ children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "aviala-breadcrumb-ellipsis-menu__items", children: menu })
9965
9803
  }
9966
9804
  )
9967
9805
  ] }) : trigger });
@@ -9971,7 +9809,7 @@ BreadcrumbEllipsis.displayName = "BreadcrumbEllipsis";
9971
9809
 
9972
9810
  // src/components/pagehead.tsx
9973
9811
  var import_react55 = require("react");
9974
- var import_jsx_runtime54 = require("react/jsx-runtime");
9812
+ var import_jsx_runtime55 = require("react/jsx-runtime");
9975
9813
  var Pagehead = (0, import_react55.forwardRef)(
9976
9814
  ({
9977
9815
  className,
@@ -9982,16 +9820,16 @@ var Pagehead = (0, import_react55.forwardRef)(
9982
9820
  actions,
9983
9821
  children,
9984
9822
  ...props
9985
- }, ref) => /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("header", { ref, className: cn("aviala-pagehead", className), ...props, children: [
9986
- /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "aviala-pagehead__main", children: [
9987
- back != null ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "aviala-pagehead__back", children: back }) : null,
9988
- /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "aviala-pagehead__title-block", children: [
9989
- breadcrumb != null ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "aviala-pagehead__breadcrumb", children: breadcrumb }) : null,
9990
- title != null || description != null ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "aviala-pagehead__title", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Typeface, { content: "textCaption", primary: title, secondary: description }) }) : null,
9823
+ }, ref) => /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("header", { ref, className: cn("aviala-pagehead", className), ...props, children: [
9824
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: "aviala-pagehead__main", children: [
9825
+ back != null ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "aviala-pagehead__back", children: back }) : null,
9826
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: "aviala-pagehead__title-block", children: [
9827
+ breadcrumb != null ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "aviala-pagehead__breadcrumb", children: breadcrumb }) : null,
9828
+ title != null || description != null ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "aviala-pagehead__title", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Typeface, { content: "textCaption", primary: title, secondary: description }) }) : null,
9991
9829
  children
9992
9830
  ] })
9993
9831
  ] }),
9994
- actions != null ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "aviala-pagehead__actions", children: actions }) : null
9832
+ actions != null ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "aviala-pagehead__actions", children: actions }) : null
9995
9833
  ] })
9996
9834
  );
9997
9835
  Pagehead.displayName = "Pagehead";
@@ -10000,7 +9838,7 @@ Pagehead.displayName = "Pagehead";
10000
9838
  var import_icons21 = require("@aviala-design/icons");
10001
9839
  var import_class_variance_authority16 = require("class-variance-authority");
10002
9840
  var import_react56 = require("react");
10003
- var import_jsx_runtime55 = require("react/jsx-runtime");
9841
+ var import_jsx_runtime56 = require("react/jsx-runtime");
10004
9842
  var stepsVariants = (0, import_class_variance_authority16.cva)("aviala-steps", {
10005
9843
  variants: {
10006
9844
  direction: {
@@ -10013,7 +9851,7 @@ var stepsVariants = (0, import_class_variance_authority16.cva)("aviala-steps", {
10013
9851
  }
10014
9852
  });
10015
9853
  var Steps = (0, import_react56.forwardRef)(
10016
- ({ className, direction = "horizontal", children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
9854
+ ({ className, direction = "horizontal", children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
10017
9855
  "div",
10018
9856
  {
10019
9857
  ref,
@@ -10028,20 +9866,20 @@ Steps.displayName = "Steps";
10028
9866
  function defaultStepsIconContent(state, index) {
10029
9867
  switch (state) {
10030
9868
  case "done":
10031
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_icons21.SymbolRight, { width: 12, height: 12, thickness: "Bold", "aria-hidden": true });
9869
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_icons21.SymbolRight, { width: 12, height: 12, thickness: "Bold", "aria-hidden": true });
10032
9870
  case "fail":
10033
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_icons21.SymbolWrong, { width: 12, height: 12, thickness: "Bold", "aria-hidden": true });
9871
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_icons21.SymbolWrong, { width: 12, height: 12, thickness: "Bold", "aria-hidden": true });
10034
9872
  case "warning":
10035
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_icons21.SymbolWarning, { width: 12, height: 12, thickness: "Bold", "aria-hidden": true });
9873
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_icons21.SymbolWarning, { width: 12, height: 12, thickness: "Bold", "aria-hidden": true });
10036
9874
  case "waiting":
10037
9875
  case "inProgress":
10038
9876
  case "default":
10039
9877
  default:
10040
- return index != null ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Typography, { level: "caption", as: "span", className: "aviala-steps-icon__index", children: index }) : null;
9878
+ return index != null ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Typography, { level: "caption", as: "span", className: "aviala-steps-icon__index", children: index }) : null;
10041
9879
  }
10042
9880
  }
10043
9881
  var StepsIcon = (0, import_react56.forwardRef)(
10044
- ({ className, state = "default", index, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
9882
+ ({ className, state = "default", index, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
10045
9883
  "span",
10046
9884
  {
10047
9885
  ref,
@@ -10063,7 +9901,7 @@ var StepsItem = (0, import_react56.forwardRef)(
10063
9901
  icon,
10064
9902
  children,
10065
9903
  ...props
10066
- }, ref) => /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
9904
+ }, ref) => /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
10067
9905
  "div",
10068
9906
  {
10069
9907
  ref,
@@ -10071,9 +9909,9 @@ var StepsItem = (0, import_react56.forwardRef)(
10071
9909
  "data-state": state,
10072
9910
  ...props,
10073
9911
  children: [
10074
- icon ?? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(StepsIcon, { state, index }),
10075
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: "aviala-steps-item__body", children: [
10076
- title != null ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
9912
+ icon ?? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(StepsIcon, { state, index }),
9913
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "aviala-steps-item__body", children: [
9914
+ title != null ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
10077
9915
  Typography,
10078
9916
  {
10079
9917
  level: "subtitle",
@@ -10082,7 +9920,7 @@ var StepsItem = (0, import_react56.forwardRef)(
10082
9920
  children: title
10083
9921
  }
10084
9922
  ) : null,
10085
- description != null ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
9923
+ description != null ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
10086
9924
  Typography,
10087
9925
  {
10088
9926
  level: "text",
@@ -10102,7 +9940,7 @@ StepsItem.displayName = "StepsItem";
10102
9940
  // src/components/pagination.tsx
10103
9941
  var import_icons22 = require("@aviala-design/icons");
10104
9942
  var import_react57 = require("react");
10105
- var import_jsx_runtime56 = require("react/jsx-runtime");
9943
+ var import_jsx_runtime57 = require("react/jsx-runtime");
10106
9944
  function buildPageList(page, pageCount) {
10107
9945
  if (pageCount <= 7) {
10108
9946
  return Array.from({ length: pageCount }, (_, index) => index + 1);
@@ -10177,7 +10015,7 @@ var Pagination = (0, import_react57.forwardRef)(
10177
10015
  setPage(parsed);
10178
10016
  setJumpValue("");
10179
10017
  };
10180
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
10018
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
10181
10019
  "div",
10182
10020
  {
10183
10021
  ref,
@@ -10186,8 +10024,8 @@ var Pagination = (0, import_react57.forwardRef)(
10186
10024
  "aria-label": props["aria-label"] ?? "Pagination",
10187
10025
  ...props,
10188
10026
  children: [
10189
- /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "aviala-pagination__controls", children: [
10190
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
10027
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "aviala-pagination__controls", children: [
10028
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
10191
10029
  Button,
10192
10030
  {
10193
10031
  mode: "noBackgroundCustom",
@@ -10195,18 +10033,18 @@ var Pagination = (0, import_react57.forwardRef)(
10195
10033
  iconOnly: true,
10196
10034
  "aria-label": "Previous page",
10197
10035
  disabled: currentPage <= 1,
10198
- leftIcon: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_icons22.DirectionArrowLeftLight, { "aria-hidden": true }),
10036
+ leftIcon: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_icons22.DirectionArrowLeftLight, { "aria-hidden": true }),
10199
10037
  onClick: () => setPage(currentPage - 1)
10200
10038
  }
10201
10039
  ),
10202
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "aviala-pagination__pages", children: pages.map(
10203
- (item, index) => item === "ellipsis" ? /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
10040
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "aviala-pagination__pages", children: pages.map(
10041
+ (item, index) => item === "ellipsis" ? /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
10204
10042
  Popover,
10205
10043
  {
10206
10044
  open: openEllipsis === index,
10207
10045
  onOpenChange: (open) => setOpenEllipsis(open ? index : null),
10208
10046
  children: [
10209
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
10047
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
10210
10048
  "button",
10211
10049
  {
10212
10050
  type: "button",
@@ -10217,10 +10055,10 @@ var Pagination = (0, import_react57.forwardRef)(
10217
10055
  ),
10218
10056
  "aria-label": "\u66F4\u591A\u9875\u7801",
10219
10057
  "aria-haspopup": "menu",
10220
- children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Typography, { level: "text", as: "span", children: "\u2026" })
10058
+ children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Typography, { level: "text", as: "span", children: "\u2026" })
10221
10059
  }
10222
10060
  ) }),
10223
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(PopoverContent, { className: "aviala-pagination__ellipsis-content", showArrow: true, flush: true, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "aviala-pagination__ellipsis-menu", children: ellipsisRange(pages, index).map((p) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
10061
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(PopoverContent, { className: "aviala-pagination__ellipsis-content", showArrow: true, flush: true, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "aviala-pagination__ellipsis-menu", children: ellipsisRange(pages, index).map((p) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
10224
10062
  "button",
10225
10063
  {
10226
10064
  type: "button",
@@ -10233,14 +10071,14 @@ var Pagination = (0, import_react57.forwardRef)(
10233
10071
  setPage(p);
10234
10072
  setOpenEllipsis(null);
10235
10073
  },
10236
- children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Typography, { level: "text", as: "span", children: p })
10074
+ children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Typography, { level: "text", as: "span", children: p })
10237
10075
  },
10238
10076
  p
10239
10077
  )) }) })
10240
10078
  ]
10241
10079
  },
10242
10080
  `ellipsis-${index}`
10243
- ) : /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
10081
+ ) : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
10244
10082
  "button",
10245
10083
  {
10246
10084
  type: "button",
@@ -10252,12 +10090,12 @@ var Pagination = (0, import_react57.forwardRef)(
10252
10090
  "data-active": item === currentPage ? "true" : void 0,
10253
10091
  "aria-current": item === currentPage ? "page" : void 0,
10254
10092
  onClick: () => setPage(item),
10255
- children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Typography, { level: "text", as: "span", children: item })
10093
+ children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Typography, { level: "text", as: "span", children: item })
10256
10094
  },
10257
10095
  item
10258
10096
  )
10259
10097
  ) }),
10260
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
10098
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
10261
10099
  Button,
10262
10100
  {
10263
10101
  mode: "noBackgroundCustom",
@@ -10265,14 +10103,14 @@ var Pagination = (0, import_react57.forwardRef)(
10265
10103
  iconOnly: true,
10266
10104
  "aria-label": "Next page",
10267
10105
  disabled: currentPage >= safePageCount,
10268
- leftIcon: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_icons22.DirectionArrowRightLight, { "aria-hidden": true }),
10106
+ leftIcon: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_icons22.DirectionArrowRightLight, { "aria-hidden": true }),
10269
10107
  onClick: () => setPage(currentPage + 1)
10270
10108
  }
10271
10109
  )
10272
10110
  ] }),
10273
- showJump ? /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "aviala-pagination__jump", children: [
10274
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Typography, { level: "text", as: "span", children: jumpLabel }),
10275
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
10111
+ showJump ? /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "aviala-pagination__jump", children: [
10112
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Typography, { level: "text", as: "span", children: jumpLabel }),
10113
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
10276
10114
  Input,
10277
10115
  {
10278
10116
  className: "aviala-pagination__jump-input",
@@ -10292,15 +10130,15 @@ var Pagination = (0, import_react57.forwardRef)(
10292
10130
  }
10293
10131
  )
10294
10132
  ] }) : null,
10295
- showSizeChanger ? /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "aviala-pagination__size", children: [
10296
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Typography, { level: "text", as: "span", children: sizeLabel }),
10297
- /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
10133
+ showSizeChanger ? /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "aviala-pagination__size", children: [
10134
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Typography, { level: "text", as: "span", children: sizeLabel }),
10135
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
10298
10136
  Select,
10299
10137
  {
10300
10138
  value: String(pageSize),
10301
10139
  onValueChange: (value) => setPageSize(Number(value)),
10302
10140
  children: [
10303
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
10141
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
10304
10142
  SelectTrigger,
10305
10143
  {
10306
10144
  size: "regular",
@@ -10308,7 +10146,7 @@ var Pagination = (0, import_react57.forwardRef)(
10308
10146
  "aria-label": "Page size"
10309
10147
  }
10310
10148
  ),
10311
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(SelectContent, { children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(SelectItemGroup, { children: pageSizeOptions.map((option) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
10149
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(SelectContent, { children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(SelectItemGroup, { children: pageSizeOptions.map((option) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
10312
10150
  SelectItem,
10313
10151
  {
10314
10152
  value: String(option),
@@ -10331,9 +10169,9 @@ Pagination.displayName = "Pagination";
10331
10169
  // src/components/card.tsx
10332
10170
  var import_icons23 = require("@aviala-design/icons");
10333
10171
  var import_react58 = require("react");
10334
- var import_jsx_runtime57 = require("react/jsx-runtime");
10172
+ var import_jsx_runtime58 = require("react/jsx-runtime");
10335
10173
  var Card = (0, import_react58.forwardRef)(
10336
- ({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { ref, className: cn("aviala-card", className), ...props, children })
10174
+ ({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { ref, className: cn("aviala-card", className), ...props, children })
10337
10175
  );
10338
10176
  Card.displayName = "Card";
10339
10177
  function renderCardIcon(node) {
@@ -10346,7 +10184,7 @@ function renderCardIcon(node) {
10346
10184
  "shrink-0"
10347
10185
  )
10348
10186
  }) : node;
10349
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "aviala-card-head__icon", children: content });
10187
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "aviala-card-head__icon", children: content });
10350
10188
  }
10351
10189
  var CardHead = (0, import_react58.forwardRef)(
10352
10190
  ({
@@ -10364,38 +10202,38 @@ var CardHead = (0, import_react58.forwardRef)(
10364
10202
  children,
10365
10203
  ...props
10366
10204
  }, ref) => {
10367
- const primaryAction = action ?? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Button, { mode: "primary", size: "regular", leftIcon: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_icons23.GeneralSetting, { "aria-hidden": true }), children: actionLabel });
10205
+ const primaryAction = action ?? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Button, { mode: "primary", size: "regular", leftIcon: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_icons23.GeneralSetting, { "aria-hidden": true }), children: actionLabel });
10368
10206
  const renderTrailing = () => {
10369
10207
  if (trailing !== void 0) return trailing;
10370
10208
  switch (slotType) {
10371
10209
  case "action":
10372
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "aviala-card-head__trailing", children: [
10210
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "aviala-card-head__trailing", children: [
10373
10211
  primaryAction,
10374
- secondaryAction ?? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
10212
+ secondaryAction ?? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
10375
10213
  Button,
10376
10214
  {
10377
10215
  mode: "default",
10378
10216
  size: "regular",
10379
10217
  iconOnly: true,
10380
10218
  "aria-label": "More",
10381
- leftIcon: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_icons23.GeneralSetting, { "aria-hidden": true })
10219
+ leftIcon: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_icons23.GeneralSetting, { "aria-hidden": true })
10382
10220
  }
10383
10221
  ),
10384
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "aviala-card__divider", "aria-hidden": true }),
10385
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_icons23.DirectionArrowRightLight, { width: 14, height: 14, "aria-hidden": true })
10222
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "aviala-card__divider", "aria-hidden": true }),
10223
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_icons23.DirectionArrowRightLight, { width: 14, height: 14, "aria-hidden": true })
10386
10224
  ] });
10387
10225
  case "switch":
10388
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "aviala-card-head__trailing", children: [
10226
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "aviala-card-head__trailing", children: [
10389
10227
  primaryAction,
10390
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "aviala-card__divider", "aria-hidden": true }),
10391
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Switch, { ...switchProps })
10228
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "aviala-card__divider", "aria-hidden": true }),
10229
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Switch, { ...switchProps })
10392
10230
  ] });
10393
10231
  case "select":
10394
10232
  default:
10395
- return select != null ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "aviala-card-head__trailing", children: select }) : null;
10233
+ return select != null ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "aviala-card-head__trailing", children: select }) : null;
10396
10234
  }
10397
10235
  };
10398
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
10236
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
10399
10237
  "div",
10400
10238
  {
10401
10239
  ref,
@@ -10403,9 +10241,9 @@ var CardHead = (0, import_react58.forwardRef)(
10403
10241
  "data-type": slotType,
10404
10242
  ...props,
10405
10243
  children: [
10406
- /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "aviala-card-head__main", children: [
10407
- renderCardIcon(icon ?? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_icons23.GeneralSetting, { "aria-hidden": true })),
10408
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "aviala-card-head__title", children: title != null || description != null ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Typeface, { content: "textCaption", primary: title, secondary: description }) : children })
10244
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "aviala-card-head__main", children: [
10245
+ renderCardIcon(icon ?? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_icons23.GeneralSetting, { "aria-hidden": true })),
10246
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "aviala-card-head__title", children: title != null || description != null ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Typeface, { content: "textCaption", primary: title, secondary: description }) : children })
10409
10247
  ] }),
10410
10248
  renderTrailing()
10411
10249
  ]
@@ -10415,7 +10253,7 @@ var CardHead = (0, import_react58.forwardRef)(
10415
10253
  );
10416
10254
  CardHead.displayName = "CardHead";
10417
10255
  var CardBody = (0, import_react58.forwardRef)(
10418
- ({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { ref, className: cn("aviala-card-body", className), ...props, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "aviala-card-body__content", children: typeof children === "string" || typeof children === "number" ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Typography, { level: "text", as: "span", children }) : children }) })
10256
+ ({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { ref, className: cn("aviala-card-body", className), ...props, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "aviala-card-body__content", children: typeof children === "string" || typeof children === "number" ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Typography, { level: "text", as: "span", children }) : children }) })
10419
10257
  );
10420
10258
  CardBody.displayName = "CardBody";
10421
10259
  var CardBottom = (0, import_react58.forwardRef)(
@@ -10431,46 +10269,46 @@ var CardBottom = (0, import_react58.forwardRef)(
10431
10269
  children,
10432
10270
  ...props
10433
10271
  }, ref) => {
10434
- const primaryAction = action ?? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Button, { mode: "primary", size: "regular", leftIcon: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_icons23.GeneralSetting, { "aria-hidden": true }), children: actionLabel });
10272
+ const primaryAction = action ?? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Button, { mode: "primary", size: "regular", leftIcon: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_icons23.GeneralSetting, { "aria-hidden": true }), children: actionLabel });
10435
10273
  const renderTrailing = () => {
10436
10274
  if (trailing !== void 0) return trailing;
10437
10275
  if (children != null) return children;
10438
10276
  switch (slotType) {
10439
10277
  case "switch":
10440
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_jsx_runtime57.Fragment, { children: [
10278
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_jsx_runtime58.Fragment, { children: [
10441
10279
  primaryAction,
10442
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "aviala-card__divider", "aria-hidden": true }),
10443
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Switch, { ...switchProps })
10280
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "aviala-card__divider", "aria-hidden": true }),
10281
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Switch, { ...switchProps })
10444
10282
  ] });
10445
10283
  case "select":
10446
10284
  return select;
10447
10285
  case "action":
10448
10286
  default:
10449
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_jsx_runtime57.Fragment, { children: [
10287
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_jsx_runtime58.Fragment, { children: [
10450
10288
  primaryAction,
10451
- secondaryAction ?? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
10289
+ secondaryAction ?? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
10452
10290
  Button,
10453
10291
  {
10454
10292
  mode: "default",
10455
10293
  size: "regular",
10456
10294
  iconOnly: true,
10457
10295
  "aria-label": "More",
10458
- leftIcon: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_icons23.GeneralSetting, { "aria-hidden": true })
10296
+ leftIcon: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_icons23.GeneralSetting, { "aria-hidden": true })
10459
10297
  }
10460
10298
  ),
10461
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "aviala-card__divider", "aria-hidden": true }),
10462
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_icons23.DirectionArrowRightLight, { width: 14, height: 14, "aria-hidden": true })
10299
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "aviala-card__divider", "aria-hidden": true }),
10300
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_icons23.DirectionArrowRightLight, { width: 14, height: 14, "aria-hidden": true })
10463
10301
  ] });
10464
10302
  }
10465
10303
  };
10466
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
10304
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
10467
10305
  "div",
10468
10306
  {
10469
10307
  ref,
10470
10308
  className: cn("aviala-card-bottom", className),
10471
10309
  "data-type": slotType,
10472
10310
  ...props,
10473
- children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "aviala-card-bottom__trailing", children: renderTrailing() })
10311
+ children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "aviala-card-bottom__trailing", children: renderTrailing() })
10474
10312
  }
10475
10313
  );
10476
10314
  }
@@ -10479,9 +10317,9 @@ CardBottom.displayName = "CardBottom";
10479
10317
 
10480
10318
  // src/components/table.tsx
10481
10319
  var import_react59 = require("react");
10482
- var import_jsx_runtime58 = require("react/jsx-runtime");
10320
+ var import_jsx_runtime59 = require("react/jsx-runtime");
10483
10321
  var Table = (0, import_react59.forwardRef)(
10484
- ({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
10322
+ ({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
10485
10323
  "div",
10486
10324
  {
10487
10325
  ref,
@@ -10494,7 +10332,7 @@ var Table = (0, import_react59.forwardRef)(
10494
10332
  );
10495
10333
  Table.displayName = "Table";
10496
10334
  var TableRow = (0, import_react59.forwardRef)(
10497
- ({ className, header = false, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
10335
+ ({ className, header = false, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
10498
10336
  "div",
10499
10337
  {
10500
10338
  ref,
@@ -10508,7 +10346,7 @@ var TableRow = (0, import_react59.forwardRef)(
10508
10346
  );
10509
10347
  TableRow.displayName = "TableRow";
10510
10348
  var TableHead = (0, import_react59.forwardRef)(
10511
- ({ className, content = "text", children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
10349
+ ({ className, content = "text", children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
10512
10350
  "div",
10513
10351
  {
10514
10352
  ref,
@@ -10516,7 +10354,7 @@ var TableHead = (0, import_react59.forwardRef)(
10516
10354
  className: cn("aviala-table-head", className),
10517
10355
  "data-content": content,
10518
10356
  ...props,
10519
- children: typeof children === "string" || typeof children === "number" ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Typography, { level: "caption", as: "span", children }) : children
10357
+ children: typeof children === "string" || typeof children === "number" ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Typography, { level: "caption", as: "span", children }) : children
10520
10358
  }
10521
10359
  )
10522
10360
  );
@@ -10531,7 +10369,7 @@ function renderCellIcon(node) {
10531
10369
  "shrink-0"
10532
10370
  )
10533
10371
  }) : node;
10534
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "aviala-table-cell__icon", children: content });
10372
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "aviala-table-cell__icon", children: content });
10535
10373
  }
10536
10374
  var TableCell = (0, import_react59.forwardRef)(
10537
10375
  ({
@@ -10552,29 +10390,29 @@ var TableCell = (0, import_react59.forwardRef)(
10552
10390
  if (children != null) return children;
10553
10391
  switch (content) {
10554
10392
  case "checkbox":
10555
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Checkbox, { ...checkboxProps });
10393
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Checkbox, { ...checkboxProps });
10556
10394
  case "icon+text":
10557
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_jsx_runtime58.Fragment, { children: [
10395
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_jsx_runtime59.Fragment, { children: [
10558
10396
  renderCellIcon(icon),
10559
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "aviala-table-cell__text", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Typography, { level: "text", as: "span", children: text }) })
10397
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "aviala-table-cell__text", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Typography, { level: "text", as: "span", children: text }) })
10560
10398
  ] });
10561
10399
  case "people":
10562
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_jsx_runtime58.Fragment, { children: [
10563
- people ?? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Avatar, { content: "text", level: "text", children: "A" }),
10564
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "aviala-table-cell__text", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Typography, { level: "text", as: "span", children: text }) })
10400
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_jsx_runtime59.Fragment, { children: [
10401
+ people ?? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Avatar, { content: "text", level: "text", children: "A" }),
10402
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "aviala-table-cell__text", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Typography, { level: "text", as: "span", children: text }) })
10565
10403
  ] });
10566
10404
  case "badge":
10567
- return badge ?? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Badge, { style: "theme", level: "caption", children: badgeLabel ?? "Text" });
10405
+ return badge ?? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Badge, { style: "theme", level: "caption", children: badgeLabel ?? "Text" });
10568
10406
  case "switch":
10569
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Switch, { ...switchProps });
10407
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Switch, { ...switchProps });
10570
10408
  case "action":
10571
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "aviala-table-cell__actions", children: actions });
10409
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "aviala-table-cell__actions", children: actions });
10572
10410
  case "text":
10573
10411
  default:
10574
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "aviala-table-cell__text", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Typography, { level: "text", as: "span", children: text }) });
10412
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "aviala-table-cell__text", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Typography, { level: "text", as: "span", children: text }) });
10575
10413
  }
10576
10414
  };
10577
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
10415
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
10578
10416
  "div",
10579
10417
  {
10580
10418
  ref,