@grandbazar/ui-baza 1.5.2 → 1.5.4

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.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { jsx, jsxs, Fragment as Fragment$1 } from 'react/jsx-runtime';
2
- import React, { isValidElement, cloneElement, Fragment, useMemo, useState, useCallback, createContext, useEffect, useRef, useContext, useId } from 'react';
2
+ import React, { isValidElement, cloneElement, Fragment, useMemo, useState, useCallback, createContext, useEffect, useRef, useContext, useId, Children } from 'react';
3
3
  import { createPortal } from 'react-dom';
4
4
 
5
5
  function calculateCheckState(checked, indeterminate) {
@@ -59,7 +59,7 @@ const green = "_green_1s8y9_43";
59
59
  const neutral$3 = "_neutral_1s8y9_48";
60
60
  const lg$7 = "_lg_1s8y9_53";
61
61
  const md$a = "_md_1s8y9_60";
62
- const styles$D = {
62
+ const styles$E = {
63
63
  badge: badge,
64
64
  primary: primary$4,
65
65
  secondary: secondary$5,
@@ -75,13 +75,13 @@ const styles$D = {
75
75
  };
76
76
 
77
77
  function Badge({ children, className, size = "lg", color = "accent", mode = "primary", ...props }) {
78
- return /* @__PURE__ */ jsx("div", { className: classNames(styles$D.badge, styles$D[size], styles$D[color], styles$D[mode], className), ...props, children });
78
+ return /* @__PURE__ */ jsx("div", { className: classNames(styles$E.badge, styles$E[size], styles$E[color], styles$E[mode], className), ...props, children });
79
79
  }
80
80
 
81
81
  const badgeTabsItem = "_badgeTabsItem_10lit_2";
82
82
  const primary$3 = "_primary_10lit_18";
83
83
  const secondary$4 = "_secondary_10lit_36";
84
- const styles$C = {
84
+ const styles$D = {
85
85
  badgeTabsItem: badgeTabsItem,
86
86
  primary: primary$3,
87
87
  secondary: secondary$4
@@ -94,7 +94,7 @@ function BadgeTabsItem({ className, children, isActive, mode = "primary", ...pro
94
94
  type: "button",
95
95
  role: "tab",
96
96
  "aria-selected": Boolean(isActive),
97
- className: classNames(styles$C.badgeTabsItem, styles$C[mode], className),
97
+ className: classNames(styles$D.badgeTabsItem, styles$D[mode], className),
98
98
  ...props,
99
99
  children
100
100
  }
@@ -102,12 +102,12 @@ function BadgeTabsItem({ className, children, isActive, mode = "primary", ...pro
102
102
  }
103
103
 
104
104
  const badgeTabsRoot = "_badgeTabsRoot_1qkat_2";
105
- const styles$B = {
105
+ const styles$C = {
106
106
  badgeTabsRoot: badgeTabsRoot
107
107
  };
108
108
 
109
109
  function BadgeTabsRoot({ className, children, ...props }) {
110
- return /* @__PURE__ */ jsx("div", { role: "tablist", className: classNames(styles$B.badgeTabsRoot, className), ...props, children });
110
+ return /* @__PURE__ */ jsx("div", { role: "tablist", className: classNames(styles$C.badgeTabsRoot, className), ...props, children });
111
111
  }
112
112
 
113
113
  function BadgeTabs(props) {
@@ -1087,46 +1087,66 @@ function IconTrophy(props) {
1087
1087
  /* @__PURE__ */ jsx(
1088
1088
  "path",
1089
1089
  {
1090
- fillRule: "evenodd",
1091
- clipRule: "evenodd",
1092
- d: "M8 2H16A2 2 0 0 1 18 4V9A6 6 0 0 1 6 9V4A2 2 0 0 1 8 2ZM10 4H14A2 2 0 0 1 16 6V9A4 4 0 0 1 8 9V6A2 2 0 0 1 10 4Z",
1093
- fill: "currentColor"
1090
+ d: "M6 1h12C18.3 6 16.6 12.6 14.2 14.8v2.7L16.8 20",
1091
+ stroke: "currentColor",
1092
+ strokeWidth: "2",
1093
+ strokeLinecap: "round",
1094
+ strokeLinejoin: "round"
1094
1095
  }
1095
1096
  ),
1096
- /* @__PURE__ */ jsx("path", { d: "M6 4.5A4 4 0 0 0 2 8.5A4 4 0 0 0 6 12.5V10.5A2 2 0 0 1 4 8.5A2 2 0 0 1 6 6.5V4.5Z", fill: "currentColor" }),
1097
1097
  /* @__PURE__ */ jsx(
1098
1098
  "path",
1099
1099
  {
1100
- d: "M18 4.5A4 4 0 0 1 22 8.5A4 4 0 0 1 18 12.5V10.5A2 2 0 0 0 20 8.5A2 2 0 0 0 18 6.5V4.5Z",
1101
- fill: "currentColor"
1100
+ d: "M6 1C5.7 6 7.4 12.6 9.8 14.8v2.7L7.2 20",
1101
+ stroke: "currentColor",
1102
+ strokeWidth: "2",
1103
+ strokeLinecap: "round",
1104
+ strokeLinejoin: "round"
1102
1105
  }
1103
1106
  ),
1104
- /* @__PURE__ */ jsx("path", { d: "M10 13.5H14L15.5 18.5H8.5L10 13.5Z", fill: "currentColor" }),
1105
1107
  /* @__PURE__ */ jsx(
1106
1108
  "path",
1107
1109
  {
1108
- d: "M7 18.5H17A1 1 0 0 1 18 19.5V20.5A1 1 0 0 1 17 21.5H7A1 1 0 0 1 6 20.5V19.5A1 1 0 0 1 7 18.5Z",
1109
- fill: "currentColor"
1110
+ d: "M6 1.5C2 1.5 1 3 1 6s1 5 6.2 5.2",
1111
+ stroke: "currentColor",
1112
+ strokeWidth: "2",
1113
+ strokeLinecap: "round",
1114
+ strokeLinejoin: "round"
1110
1115
  }
1111
- )
1112
- ] });
1113
- }
1114
- IconTrophy.Filled = function IconTrophyFilled(props) {
1115
- return /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: [
1116
- /* @__PURE__ */ jsx("path", { d: "M8 2H16A2 2 0 0 1 18 4V9A6 6 0 0 1 6 9V4A2 2 0 0 1 8 2Z", fill: "currentColor" }),
1117
- /* @__PURE__ */ jsx("path", { d: "M6 4.5A4 4 0 0 0 2 8.5A4 4 0 0 0 6 12.5V10.5A2 2 0 0 1 4 8.5A2 2 0 0 1 6 6.5V4.5Z", fill: "currentColor" }),
1116
+ ),
1118
1117
  /* @__PURE__ */ jsx(
1119
1118
  "path",
1120
1119
  {
1121
- d: "M18 4.5A4 4 0 0 1 22 8.5A4 4 0 0 1 18 12.5V10.5A2 2 0 0 0 20 8.5A2 2 0 0 0 18 6.5V4.5Z",
1122
- fill: "currentColor"
1120
+ d: "M18 1.5C22 1.5 23 3 23 6s-1 5-6.2 5.2",
1121
+ stroke: "currentColor",
1122
+ strokeWidth: "2",
1123
+ strokeLinecap: "round",
1124
+ strokeLinejoin: "round"
1123
1125
  }
1124
1126
  ),
1125
- /* @__PURE__ */ jsx("path", { d: "M10 13.5H14L15.5 18.5H8.5L10 13.5Z", fill: "currentColor" }),
1126
1127
  /* @__PURE__ */ jsx(
1127
1128
  "path",
1128
1129
  {
1129
- d: "M7 18.5H17A1 1 0 0 1 18 19.5V20.5A1 1 0 0 1 17 21.5H7A1 1 0 0 1 6 20.5V19.5A1 1 0 0 1 7 18.5Z",
1130
+ d: "M7 20h10a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1z",
1131
+ stroke: "currentColor",
1132
+ strokeWidth: "2",
1133
+ strokeLinecap: "round",
1134
+ strokeLinejoin: "round"
1135
+ }
1136
+ )
1137
+ ] });
1138
+ }
1139
+ IconTrophy.Filled = function IconTrophyFilled(props) {
1140
+ return /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: [
1141
+ /* @__PURE__ */ jsx("path", { d: "M6 1h12C18.3 6 16.6 12.6 14.2 14.8H9.8C7.4 12.6 5.7 6 6 1Z", fill: "currentColor" }),
1142
+ /* @__PURE__ */ jsx("path", { d: "M9.8 14.8h4.4v2.7l2.6 2.5H7.2l2.6-2.5V14.8Z", fill: "currentColor" }),
1143
+ /* @__PURE__ */ jsx("path", { d: "M6 19.5h12a1.5 1.5 0 0 1 0 3H6a1.5 1.5 0 0 1 0-3Z", fill: "currentColor" }),
1144
+ /* @__PURE__ */ jsx(
1145
+ "path",
1146
+ {
1147
+ fillRule: "evenodd",
1148
+ clipRule: "evenodd",
1149
+ d: "M6 1.5C2 1.5 1 3 1 6s1 5 6.2 5.2L6.5 9.2C3.8 9 3 7.6 3 6s.8-3 3-3.3V1.5ZM18 1.5C22 1.5 23 3 23 6s-1 5-6.2 5.2L17.5 9.2C20.2 9 21 7.6 21 6s-.8-3-3-3.3V1.5Z",
1130
1150
  fill: "currentColor"
1131
1151
  }
1132
1152
  )
@@ -1183,7 +1203,7 @@ function IconXMarkCircle(props) {
1183
1203
  const breadcrumbs = "_breadcrumbs_1bfmb_2";
1184
1204
  const breadcrumbsItem = "_breadcrumbsItem_1bfmb_8";
1185
1205
  const defaultSeparator = "_defaultSeparator_1bfmb_14";
1186
- const styles$A = {
1206
+ const styles$B = {
1187
1207
  breadcrumbs: breadcrumbs,
1188
1208
  breadcrumbsItem: breadcrumbsItem,
1189
1209
  defaultSeparator: defaultSeparator
@@ -1232,7 +1252,7 @@ function Slot({
1232
1252
  }
1233
1253
 
1234
1254
  const breadcrumbItem = "_breadcrumbItem_cua4v_2";
1235
- const styles$z = {
1255
+ const styles$A = {
1236
1256
  breadcrumbItem: breadcrumbItem
1237
1257
  };
1238
1258
 
@@ -1243,7 +1263,7 @@ function BreadcrumbItem({ children, className, isActive, asChild, ...props }) {
1243
1263
  {
1244
1264
  "data-active": isActive,
1245
1265
  "data-disabled": props.disabled,
1246
- className: classNames(styles$z.breadcrumbItem, className),
1266
+ className: classNames(styles$A.breadcrumbItem, className),
1247
1267
  ...isActive && { "aria-current": "page" },
1248
1268
  ...!asChild && { type: "button" },
1249
1269
  ...props,
@@ -1255,13 +1275,13 @@ function BreadcrumbItem({ children, className, isActive, asChild, ...props }) {
1255
1275
  function Breadcrumbs({
1256
1276
  className,
1257
1277
  children,
1258
- separator = /* @__PURE__ */ jsx(IconChevron, { className: styles$A.defaultSeparator })
1278
+ separator = /* @__PURE__ */ jsx(IconChevron, { className: styles$B.defaultSeparator })
1259
1279
  }) {
1260
1280
  const childrenArray = Array.isArray(children) ? children : [children];
1261
1281
  const lastIndex = childrenArray.length - 1;
1262
- return /* @__PURE__ */ jsx("nav", { "aria-label": "breadcrumb", className, children: /* @__PURE__ */ jsx("ol", { className: styles$A.breadcrumbs, children: childrenArray.map((item, index) => /* @__PURE__ */ jsxs(Fragment, { children: [
1263
- /* @__PURE__ */ jsx("li", { className: styles$A.breadcrumbsItem, children: item }),
1264
- index < lastIndex && /* @__PURE__ */ jsx("li", { className: styles$A.breadcrumbsItem, "aria-hidden": "true", children: separator })
1282
+ return /* @__PURE__ */ jsx("nav", { "aria-label": "breadcrumb", className, children: /* @__PURE__ */ jsx("ol", { className: styles$B.breadcrumbs, children: childrenArray.map((item, index) => /* @__PURE__ */ jsxs(Fragment, { children: [
1283
+ /* @__PURE__ */ jsx("li", { className: styles$B.breadcrumbsItem, children: item }),
1284
+ index < lastIndex && /* @__PURE__ */ jsx("li", { className: styles$B.breadcrumbsItem, "aria-hidden": "true", children: separator })
1265
1285
  ] }, index)) }) });
1266
1286
  }
1267
1287
  Breadcrumbs.Item = BreadcrumbItem;
@@ -1276,7 +1296,7 @@ const neutral$2 = "_neutral_1waqk_78";
1276
1296
  const lg$6 = "_lg_1waqk_145";
1277
1297
  const md$9 = "_md_1waqk_153";
1278
1298
  const sm$4 = "_sm_1waqk_161";
1279
- const styles$y = {
1299
+ const styles$z = {
1280
1300
  button: button,
1281
1301
  accent: accent$3,
1282
1302
  primary: primary$2,
@@ -1294,7 +1314,7 @@ const accent$2 = "_accent_o8iku_10";
1294
1314
  const neutral$1 = "_neutral_o8iku_22";
1295
1315
  const lg$5 = "_lg_o8iku_41";
1296
1316
  const md$8 = "_md_o8iku_46";
1297
- const styles$x = {
1317
+ const styles$y = {
1298
1318
  buttonFunction: buttonFunction,
1299
1319
  accent: accent$2,
1300
1320
  neutral: neutral$1,
@@ -1314,7 +1334,7 @@ function ButtonFunction({
1314
1334
  return /* @__PURE__ */ jsx(
1315
1335
  Component,
1316
1336
  {
1317
- className: classNames(styles$x.buttonFunction, styles$x[color], styles$x[size], className),
1337
+ className: classNames(styles$y.buttonFunction, styles$y[color], styles$y[size], className),
1318
1338
  ...props.disabled && { "data-disabled": true },
1319
1339
  ...!asChild && { type: "button" },
1320
1340
  ...props,
@@ -1336,7 +1356,7 @@ function Button({
1336
1356
  return /* @__PURE__ */ jsx(
1337
1357
  Component,
1338
1358
  {
1339
- className: classNames(styles$y.button, styles$y[color], styles$y[size], styles$y[mode], className),
1359
+ className: classNames(styles$z.button, styles$z[color], styles$z[size], styles$z[mode], className),
1340
1360
  ...!asChild && { type: "button" },
1341
1361
  ...props,
1342
1362
  children
@@ -1348,7 +1368,7 @@ Button.Function = ButtonFunction;
1348
1368
  const checkboxWrapper = "_checkboxWrapper_k1shg_2";
1349
1369
  const icon$2 = "_icon_k1shg_23";
1350
1370
  const checkbox = "_checkbox_k1shg_2";
1351
- const styles$w = {
1371
+ const styles$x = {
1352
1372
  checkboxWrapper: checkboxWrapper,
1353
1373
  icon: icon$2,
1354
1374
  checkbox: checkbox
@@ -1361,11 +1381,11 @@ function Checkbox({ className, label, indeterminate, ...props }) {
1361
1381
  {
1362
1382
  "data-disabled": `${Boolean(props.disabled)}`,
1363
1383
  "data-state": dataState,
1364
- className: classNames(styles$w.checkboxWrapper, className),
1384
+ className: classNames(styles$x.checkboxWrapper, className),
1365
1385
  children: [
1366
- dataState === "checked" && /* @__PURE__ */ jsx(IconCheck, { "data-disabled": `${Boolean(props.disabled)}`, className: styles$w.icon }),
1367
- dataState === "indeterminate" && /* @__PURE__ */ jsx(IconMinus, { "data-disabled": `${Boolean(props.disabled)}`, className: styles$w.icon }),
1368
- /* @__PURE__ */ jsx("input", { "data-state": dataState, type: "checkbox", className: styles$w.checkbox, ...props }),
1386
+ dataState === "checked" && /* @__PURE__ */ jsx(IconCheck, { "data-disabled": `${Boolean(props.disabled)}`, className: styles$x.icon }),
1387
+ dataState === "indeterminate" && /* @__PURE__ */ jsx(IconMinus, { "data-disabled": `${Boolean(props.disabled)}`, className: styles$x.icon }),
1388
+ /* @__PURE__ */ jsx("input", { "data-state": dataState, type: "checkbox", className: styles$x.checkbox, ...props }),
1369
1389
  label
1370
1390
  ]
1371
1391
  }
@@ -1373,7 +1393,7 @@ function Checkbox({ className, label, indeterminate, ...props }) {
1373
1393
  }
1374
1394
 
1375
1395
  const chip = "_chip_dj4kw_2";
1376
- const styles$v = {
1396
+ const styles$w = {
1377
1397
  chip: chip
1378
1398
  };
1379
1399
 
@@ -1381,7 +1401,7 @@ function Chip({ isSelected, children, className, disabled, ...props }) {
1381
1401
  return /* @__PURE__ */ jsx(
1382
1402
  "div",
1383
1403
  {
1384
- className: classNames(styles$v.chip, className),
1404
+ className: classNames(styles$w.chip, className),
1385
1405
  "data-selected": isSelected,
1386
1406
  "data-disabled": disabled,
1387
1407
  "aria-disabled": disabled,
@@ -1399,7 +1419,7 @@ const accent$1 = "_accent_ww0fb_37";
1399
1419
  const neutral = "_neutral_ww0fb_42";
1400
1420
  const secondary$2 = "_secondary_ww0fb_47";
1401
1421
  const white = "_white_ww0fb_52";
1402
- const styles$u = {
1422
+ const styles$v = {
1403
1423
  root: root$1,
1404
1424
  lg: lg$4,
1405
1425
  md: md$7,
@@ -1411,7 +1431,7 @@ const styles$u = {
1411
1431
  };
1412
1432
 
1413
1433
  function Counter({ className, size = "lg", color = "red", ...props }) {
1414
- return /* @__PURE__ */ jsx("div", { className: classNames(styles$u.root, styles$u[size], styles$u[color], className), ...props });
1434
+ return /* @__PURE__ */ jsx("div", { className: classNames(styles$v.root, styles$v[size], styles$v[color], className), ...props });
1415
1435
  }
1416
1436
 
1417
1437
  const LOCALE_FIRST_DAY_OF_WEEK = {
@@ -1421,7 +1441,7 @@ const LOCALE_FIRST_DAY_OF_WEEK = {
1421
1441
 
1422
1442
  const datePickerCellWrapper = "_datePickerCellWrapper_np1gx_2";
1423
1443
  const datePickerCell = "_datePickerCell_np1gx_2";
1424
- const styles$t = {
1444
+ const styles$u = {
1425
1445
  datePickerCellWrapper: datePickerCellWrapper,
1426
1446
  datePickerCell: datePickerCell,
1427
1447
  "radius-none": "_radius-none_np1gx_83",
@@ -1431,10 +1451,10 @@ const styles$t = {
1431
1451
  };
1432
1452
 
1433
1453
  function DatePickerCell({ children, className, state, isCurrent, radius = "both", ...props }) {
1434
- return /* @__PURE__ */ jsx("div", { className: classNames(styles$t.datePickerCellWrapper, styles$t[`radius-${radius}`]), "data-state": state, children: /* @__PURE__ */ jsx(
1454
+ return /* @__PURE__ */ jsx("div", { className: classNames(styles$u.datePickerCellWrapper, styles$u[`radius-${radius}`]), "data-state": state, children: /* @__PURE__ */ jsx(
1435
1455
  "button",
1436
1456
  {
1437
- className: classNames(styles$t.datePickerCell, styles$t[`radius-${radius}`], className),
1457
+ className: classNames(styles$u.datePickerCell, styles$u[`radius-${radius}`], className),
1438
1458
  type: "button",
1439
1459
  role: "gridcell",
1440
1460
  "aria-selected": state === "selected",
@@ -1504,7 +1524,7 @@ function normalizeDateRange(firstDate, secondDate) {
1504
1524
  const datePickerField = "_datePickerField_1qk8s_2";
1505
1525
  const datePickerFieldCalendar = "_datePickerFieldCalendar_1qk8s_8";
1506
1526
  const datePickerFieldWeek = "_datePickerFieldWeek_1qk8s_14";
1507
- const styles$s = {
1527
+ const styles$t = {
1508
1528
  datePickerField: datePickerField,
1509
1529
  datePickerFieldCalendar: datePickerFieldCalendar,
1510
1530
  datePickerFieldWeek: datePickerFieldWeek
@@ -1519,9 +1539,9 @@ function DatePickerField({
1519
1539
  firstDayOfWeek = LOCALE_FIRST_DAY_OF_WEEK.ru
1520
1540
  }) {
1521
1541
  const weeks = useMemo(() => getCalendarGrid(month, year, firstDayOfWeek), [month, year, firstDayOfWeek]);
1522
- return /* @__PURE__ */ jsxs("div", { className: classNames(styles$s.datePickerField, className), role: "grid", children: [
1542
+ return /* @__PURE__ */ jsxs("div", { className: classNames(styles$t.datePickerField, className), role: "grid", children: [
1523
1543
  renderWeekdays?.(),
1524
- /* @__PURE__ */ jsx("div", { className: styles$s.datePickerFieldCalendar, role: "rowgroup", children: weeks.map((week, weekIndex) => /* @__PURE__ */ jsx("div", { className: styles$s.datePickerFieldWeek, role: "row", "aria-rowindex": weekIndex + 1, children: week.map((day, dayIndex) => /* @__PURE__ */ jsx(Slot, { role: "gridcell", "aria-colindex": dayIndex + 1, children: children(day) }, `${day.year}-${day.month}-${day.date}`)) }, weekIndex)) })
1544
+ /* @__PURE__ */ jsx("div", { className: styles$t.datePickerFieldCalendar, role: "rowgroup", children: weeks.map((week, weekIndex) => /* @__PURE__ */ jsx("div", { className: styles$t.datePickerFieldWeek, role: "row", "aria-rowindex": weekIndex + 1, children: week.map((day, dayIndex) => /* @__PURE__ */ jsx(Slot, { role: "gridcell", "aria-colindex": dayIndex + 1, children: children(day) }, `${day.year}-${day.month}-${day.date}`)) }, weekIndex)) })
1525
1545
  ] });
1526
1546
  }
1527
1547
 
@@ -1562,13 +1582,13 @@ const I18N_MONTH_LABELS = {
1562
1582
 
1563
1583
  const datePickerWeekdays = "_datePickerWeekdays_p8tsm_2";
1564
1584
  const datePickerWeekday = "_datePickerWeekday_p8tsm_2";
1565
- const styles$r = {
1585
+ const styles$s = {
1566
1586
  datePickerWeekdays: datePickerWeekdays,
1567
1587
  datePickerWeekday: datePickerWeekday
1568
1588
  };
1569
1589
 
1570
1590
  function DatePickerWeekDays({ className, locale = "ru" }) {
1571
- return /* @__PURE__ */ jsx("div", { className: classNames(styles$r.datePickerWeekdays, className), role: "row", children: I18N_WEEKDAY_LABELS[locale].map((label) => /* @__PURE__ */ jsx("div", { className: styles$r.datePickerWeekday, role: "columnheader", children: label }, label)) });
1591
+ return /* @__PURE__ */ jsx("div", { className: classNames(styles$s.datePickerWeekdays, className), role: "row", children: I18N_WEEKDAY_LABELS[locale].map((label) => /* @__PURE__ */ jsx("div", { className: styles$s.datePickerWeekday, role: "columnheader", children: label }, label)) });
1572
1592
  }
1573
1593
 
1574
1594
  function DatePicker() {
@@ -1804,21 +1824,21 @@ const DROPDOWN_PORTAL_SIDE_CONFIG = {
1804
1824
  };
1805
1825
 
1806
1826
  const dropdownContent = "_dropdownContent_12tkb_2";
1807
- const styles$q = {
1827
+ const styles$r = {
1808
1828
  dropdownContent: dropdownContent
1809
1829
  };
1810
1830
 
1811
1831
  function DropdownContent({ className, children, ...props }) {
1812
- return /* @__PURE__ */ jsx("div", { className: classNames(styles$q.dropdownContent, className), ...props, children });
1832
+ return /* @__PURE__ */ jsx("div", { className: classNames(styles$r.dropdownContent, className), ...props, children });
1813
1833
  }
1814
1834
 
1815
1835
  const dropdownItem = "_dropdownItem_msc4i_2";
1816
- const styles$p = {
1836
+ const styles$q = {
1817
1837
  dropdownItem: dropdownItem
1818
1838
  };
1819
1839
 
1820
1840
  function DropdownItem({ className, children, disabled, ...props }) {
1821
- return /* @__PURE__ */ jsx("div", { className: classNames(styles$p.dropdownItem, className), role: "menuitem", "data-disabled": disabled, ...props, children });
1841
+ return /* @__PURE__ */ jsx("div", { className: classNames(styles$q.dropdownItem, className), role: "menuitem", "data-disabled": disabled, ...props, children });
1822
1842
  }
1823
1843
 
1824
1844
  const CLICK_OUTSIDE_IGNORE_DATA_NAME = "data-clickoutside-ignore";
@@ -2246,7 +2266,7 @@ function useTriggerHandlersByEventTrigger() {
2246
2266
  }
2247
2267
 
2248
2268
  const dropdownPortal = "_dropdownPortal_p3tdk_2";
2249
- const styles$o = {
2269
+ const styles$p = {
2250
2270
  dropdownPortal: dropdownPortal
2251
2271
  };
2252
2272
 
@@ -2286,7 +2306,7 @@ function DropdownPortal({
2286
2306
  ...style
2287
2307
  },
2288
2308
  ref: portalRef,
2289
- className: classNames(styles$o.dropdownPortal, className),
2309
+ className: classNames(styles$p.dropdownPortal, className),
2290
2310
  ...handlersByTrigger[triggerEvent],
2291
2311
  ...isNested && { [CLICK_OUTSIDE_IGNORE_DATA_NAME]: "true" },
2292
2312
  children
@@ -2343,7 +2363,7 @@ const closeButton = "_closeButton_1kerp_74";
2343
2363
  const closeIcon = "_closeIcon_1kerp_95";
2344
2364
  const description = "_description_1kerp_100";
2345
2365
  const actions = "_actions_1kerp_108";
2346
- const styles$n = {
2366
+ const styles$o = {
2347
2367
  notificationInline: notificationInline,
2348
2368
  accent: accent,
2349
2369
  negative: negative,
@@ -2378,15 +2398,15 @@ function NotificationInline({
2378
2398
  ...props
2379
2399
  }) {
2380
2400
  const StatusIcon = STATUS_ICONS[color];
2381
- return /* @__PURE__ */ jsxs("div", { className: classNames(styles$n.notificationInline, styles$n[color], styles$n[mode], className), ...props, children: [
2382
- /* @__PURE__ */ jsx(StatusIcon, { className: styles$n.statusIcon, "aria-hidden": "true" }),
2383
- /* @__PURE__ */ jsxs("span", { className: styles$n.body, children: [
2384
- /* @__PURE__ */ jsxs("span", { className: styles$n.titleRow, children: [
2385
- /* @__PURE__ */ jsx("span", { className: styles$n.title, children: title }),
2386
- onClose && /* @__PURE__ */ jsx("button", { type: "button", "aria-label": "Close", className: styles$n.closeButton, onClick: onClose, children: /* @__PURE__ */ jsx(IconXMark.Small, { className: styles$n.closeIcon, "aria-hidden": "true" }) })
2401
+ return /* @__PURE__ */ jsxs("div", { className: classNames(styles$o.notificationInline, styles$o[color], styles$o[mode], className), ...props, children: [
2402
+ /* @__PURE__ */ jsx(StatusIcon, { className: styles$o.statusIcon, "aria-hidden": "true" }),
2403
+ /* @__PURE__ */ jsxs("span", { className: styles$o.body, children: [
2404
+ /* @__PURE__ */ jsxs("span", { className: styles$o.titleRow, children: [
2405
+ /* @__PURE__ */ jsx("span", { className: styles$o.title, children: title }),
2406
+ onClose && /* @__PURE__ */ jsx("button", { type: "button", "aria-label": "Close", className: styles$o.closeButton, onClick: onClose, children: /* @__PURE__ */ jsx(IconXMark.Small, { className: styles$o.closeIcon, "aria-hidden": "true" }) })
2387
2407
  ] }),
2388
- description && /* @__PURE__ */ jsx("span", { className: styles$n.description, children: description }),
2389
- children && /* @__PURE__ */ jsx("span", { className: styles$n.actions, children })
2408
+ description && /* @__PURE__ */ jsx("span", { className: styles$o.description, children: description }),
2409
+ children && /* @__PURE__ */ jsx("span", { className: styles$o.actions, children })
2390
2410
  ] })
2391
2411
  ] });
2392
2412
  }
@@ -2402,7 +2422,7 @@ const BOUNDARY_PAGES = 2;
2402
2422
  const paginationItem = "_paginationItem_1ll6p_2";
2403
2423
  const md$6 = "_md_1ll6p_46";
2404
2424
  const sm$3 = "_sm_1ll6p_60";
2405
- const styles$m = {
2425
+ const styles$n = {
2406
2426
  paginationItem: paginationItem,
2407
2427
  md: md$6,
2408
2428
  sm: sm$3
@@ -2414,7 +2434,7 @@ function PaginationItem({ className, children, size = "md", isCurrent, ...props
2414
2434
  {
2415
2435
  type: "button",
2416
2436
  ...isCurrent && { "aria-current": "page" },
2417
- className: classNames(styles$m.paginationItem, styles$m[size], className),
2437
+ className: classNames(styles$n.paginationItem, styles$n[size], className),
2418
2438
  ...props,
2419
2439
  children
2420
2440
  }
@@ -2451,7 +2471,7 @@ function getVisiblePages(totalPages, maxVisiblePagesWithEllipsis, currentPage) {
2451
2471
  const paginationRoot = "_paginationRoot_c5fwx_2";
2452
2472
  const paginationList = "_paginationList_c5fwx_7";
2453
2473
  const arrowLeft = "_arrowLeft_c5fwx_13";
2454
- const styles$l = {
2474
+ const styles$m = {
2455
2475
  paginationRoot: paginationRoot,
2456
2476
  paginationList: paginationList,
2457
2477
  arrowLeft: arrowLeft
@@ -2478,9 +2498,9 @@ function PaginationRoot({
2478
2498
  {
2479
2499
  "aria-label": "pagination navigation",
2480
2500
  role: "navigation",
2481
- className: classNames(styles$l.paginationRoot, className),
2501
+ className: classNames(styles$m.paginationRoot, className),
2482
2502
  ...props,
2483
- children: /* @__PURE__ */ jsxs("ul", { className: styles$l.paginationList, children: [
2503
+ children: /* @__PURE__ */ jsxs("ul", { className: styles$m.paginationList, children: [
2484
2504
  showArrows && /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
2485
2505
  PaginationItem$1,
2486
2506
  {
@@ -2488,7 +2508,7 @@ function PaginationRoot({
2488
2508
  onClick: () => onPageChange(currentPage - 1),
2489
2509
  disabled: isFirstPage,
2490
2510
  size,
2491
- children: /* @__PURE__ */ jsx(IconChevron$1, { className: styles$l.arrowLeft })
2511
+ children: /* @__PURE__ */ jsx(IconChevron$1, { className: styles$m.arrowLeft })
2492
2512
  }
2493
2513
  ) }),
2494
2514
  visiblePages.map((page, index) => /* @__PURE__ */ jsx("li", { children: page === ELLIPSIS_SYMBOL ? /* @__PURE__ */ jsx(PaginationItem$1, { "aria-label": "More pages", disabled: true, size, children: /* @__PURE__ */ jsx(Ellipsis, {}) }) : /* @__PURE__ */ jsx(
@@ -2528,7 +2548,7 @@ const fill$1 = "_fill_33gbh_23";
2528
2548
  const trail = "_trail_33gbh_28";
2529
2549
  const sm$2 = "_sm_33gbh_32";
2530
2550
  const md$5 = "_md_33gbh_36";
2531
- const styles$k = {
2551
+ const styles$l = {
2532
2552
  root: root,
2533
2553
  segment: segment,
2534
2554
  flexGrow: flexGrow,
@@ -2549,7 +2569,7 @@ function ProgressBarLinear({
2549
2569
  return /* @__PURE__ */ jsxs(
2550
2570
  "div",
2551
2571
  {
2552
- className: classNames(styles$k.root, styles$k[size], className),
2572
+ className: classNames(styles$l.root, styles$l[size], className),
2553
2573
  role: "progressbar",
2554
2574
  "aria-valuenow": clampedPercent,
2555
2575
  "aria-valuemin": 0,
@@ -2561,14 +2581,14 @@ function ProgressBarLinear({
2561
2581
  (Boolean(clampedPercent) || showFillOnZero) && /* @__PURE__ */ jsx(
2562
2582
  "div",
2563
2583
  {
2564
- className: classNames(styles$k.segment, styles$k.fill),
2584
+ className: classNames(styles$l.segment, styles$l.fill),
2565
2585
  style: {
2566
2586
  "--clamped-percent": `${clampedPercent}%`
2567
2587
  },
2568
2588
  "aria-hidden": "true"
2569
2589
  }
2570
2590
  ),
2571
- clampedPercent < 100 && /* @__PURE__ */ jsx("div", { className: classNames(styles$k.segment, styles$k.flexGrow, styles$k.trail), "aria-hidden": "true" })
2591
+ clampedPercent < 100 && /* @__PURE__ */ jsx("div", { className: classNames(styles$l.segment, styles$l.flexGrow, styles$l.trail), "aria-hidden": "true" })
2572
2592
  ]
2573
2593
  }
2574
2594
  );
@@ -2588,7 +2608,7 @@ function ProgressBarSteps({
2588
2608
  return /* @__PURE__ */ jsx(
2589
2609
  "div",
2590
2610
  {
2591
- className: classNames(styles$k.segment, styles$k.flexGrow, isFilled ? styles$k.fill : styles$k.trail),
2611
+ className: classNames(styles$l.segment, styles$l.flexGrow, isFilled ? styles$l.fill : styles$l.trail),
2592
2612
  "aria-hidden": "true"
2593
2613
  },
2594
2614
  index
@@ -2597,7 +2617,7 @@ function ProgressBarSteps({
2597
2617
  return /* @__PURE__ */ jsx(
2598
2618
  "div",
2599
2619
  {
2600
- className: classNames(styles$k.root, styles$k[size], className),
2620
+ className: classNames(styles$l.root, styles$l[size], className),
2601
2621
  role: "progressbar",
2602
2622
  "aria-valuenow": clampedCurrent,
2603
2623
  "aria-valuemin": 0,
@@ -2617,14 +2637,14 @@ ProgressBar.Steps = ProgressBarSteps;
2617
2637
 
2618
2638
  const radioWrapper = "_radioWrapper_13xie_2";
2619
2639
  const radio = "_radio_13xie_2";
2620
- const styles$j = {
2640
+ const styles$k = {
2621
2641
  radioWrapper: radioWrapper,
2622
2642
  radio: radio
2623
2643
  };
2624
2644
 
2625
2645
  function RadioButton({ className, label, ...props }) {
2626
- return /* @__PURE__ */ jsxs("label", { "data-disabled": `${Boolean(props.disabled)}`, className: classNames(styles$j.radioWrapper, className), children: [
2627
- /* @__PURE__ */ jsx("input", { type: "radio", className: styles$j.radio, ...props }),
2646
+ return /* @__PURE__ */ jsxs("label", { "data-disabled": `${Boolean(props.disabled)}`, className: classNames(styles$k.radioWrapper, className), children: [
2647
+ /* @__PURE__ */ jsx("input", { type: "radio", className: styles$k.radio, ...props }),
2628
2648
  label
2629
2649
  ] });
2630
2650
  }
@@ -2635,7 +2655,7 @@ const textFieldAreaWrapper = "_textFieldAreaWrapper_pia91_2";
2635
2655
  const textFieldAreaLabel = "_textFieldAreaLabel_pia91_14";
2636
2656
  const textFieldAreaLabelSuffix = "_textFieldAreaLabelSuffix_pia91_24";
2637
2657
  const textFieldArea = "_textFieldArea_pia91_2";
2638
- const styles$i = {
2658
+ const styles$j = {
2639
2659
  textFieldAreaWrapper: textFieldAreaWrapper,
2640
2660
  textFieldAreaLabel: textFieldAreaLabel,
2641
2661
  textFieldAreaLabelSuffix: textFieldAreaLabelSuffix,
@@ -2656,14 +2676,14 @@ function TextFieldArea({
2656
2676
  "data-invalid": isInvalid,
2657
2677
  "aria-invalid": isInvalid,
2658
2678
  "data-element": "field",
2659
- className: classNames(styles$i.textFieldArea, className),
2679
+ className: classNames(styles$j.textFieldArea, className),
2660
2680
  placeholder,
2661
2681
  ...props
2662
2682
  }
2663
2683
  );
2664
- return floatingLabel ? /* @__PURE__ */ jsxs("div", { className: styles$i.textFieldAreaWrapper, children: [
2665
- /* @__PURE__ */ jsx("label", { htmlFor: props.id, className: styles$i.textFieldAreaLabel, "data-element": "label", children: floatingLabel }),
2666
- floatingLabelSuffix && /* @__PURE__ */ jsx("span", { className: styles$i.textFieldAreaLabelSuffix, "data-element": "label-suffix", children: floatingLabelSuffix }),
2684
+ return floatingLabel ? /* @__PURE__ */ jsxs("div", { className: styles$j.textFieldAreaWrapper, children: [
2685
+ /* @__PURE__ */ jsx("label", { htmlFor: props.id, className: styles$j.textFieldAreaLabel, "data-element": "label", children: floatingLabel }),
2686
+ floatingLabelSuffix && /* @__PURE__ */ jsx("span", { className: styles$j.textFieldAreaLabelSuffix, "data-element": "label-suffix", children: floatingLabelSuffix }),
2667
2687
  textFieldArea
2668
2688
  ] }) : textFieldArea;
2669
2689
  }
@@ -2671,7 +2691,7 @@ function TextFieldArea({
2671
2691
  const textFieldInputWrapper = "_textFieldInputWrapper_1m8sa_2";
2672
2692
  const textFieldInputLabel = "_textFieldInputLabel_1m8sa_9";
2673
2693
  const textFieldInput = "_textFieldInput_1m8sa_2";
2674
- const styles$h = {
2694
+ const styles$i = {
2675
2695
  textFieldInputWrapper: textFieldInputWrapper,
2676
2696
  textFieldInputLabel: textFieldInputLabel,
2677
2697
  textFieldInput: textFieldInput
@@ -2690,37 +2710,37 @@ function TextFieldInput({
2690
2710
  "data-invalid": isInvalid,
2691
2711
  "aria-invalid": isInvalid,
2692
2712
  "data-element": "field",
2693
- className: classNames(styles$h.textFieldInput, className),
2713
+ className: classNames(styles$i.textFieldInput, className),
2694
2714
  placeholder,
2695
2715
  ...props
2696
2716
  }
2697
2717
  );
2698
- return floatingLabel ? /* @__PURE__ */ jsxs("div", { className: styles$h.textFieldInputWrapper, children: [
2699
- /* @__PURE__ */ jsx("label", { htmlFor: props.id, className: styles$h.textFieldInputLabel, "data-element": "label", children: floatingLabel }),
2718
+ return floatingLabel ? /* @__PURE__ */ jsxs("div", { className: styles$i.textFieldInputWrapper, children: [
2719
+ /* @__PURE__ */ jsx("label", { htmlFor: props.id, className: styles$i.textFieldInputLabel, "data-element": "label", children: floatingLabel }),
2700
2720
  textFieldInput
2701
2721
  ] }) : textFieldInput;
2702
2722
  }
2703
2723
 
2704
2724
  const textFieldLabel = "_textFieldLabel_1xy6x_2";
2705
- const styles$g = {
2725
+ const styles$h = {
2706
2726
  textFieldLabel: textFieldLabel
2707
2727
  };
2708
2728
 
2709
2729
  function TextFieldLabel({ className, children, isRequired, ...props }) {
2710
- return /* @__PURE__ */ jsx("label", { className: classNames(styles$g.textFieldLabel, className), "data-required": isRequired, ...props, children });
2730
+ return /* @__PURE__ */ jsx("label", { className: classNames(styles$h.textFieldLabel, className), "data-required": isRequired, ...props, children });
2711
2731
  }
2712
2732
 
2713
2733
  const textFieldRoot = "_textFieldRoot_cs7mv_2";
2714
2734
  const lg$3 = "_lg_cs7mv_38";
2715
2735
  const md$4 = "_md_cs7mv_70";
2716
- const styles$f = {
2736
+ const styles$g = {
2717
2737
  textFieldRoot: textFieldRoot,
2718
2738
  lg: lg$3,
2719
2739
  md: md$4
2720
2740
  };
2721
2741
 
2722
2742
  function TextFieldRoot({ className, size = "lg", ...props }) {
2723
- return /* @__PURE__ */ jsx("div", { className: classNames(styles$f.textFieldRoot, styles$f[size], className), ...props });
2743
+ return /* @__PURE__ */ jsx("div", { className: classNames(styles$g.textFieldRoot, styles$g[size], className), ...props });
2724
2744
  }
2725
2745
 
2726
2746
  function TextField() {
@@ -2735,7 +2755,7 @@ const custom = "_custom_gh87y_15";
2735
2755
  const icon$1 = "_icon_gh87y_25";
2736
2756
  const inputCustomWrapper = "_inputCustomWrapper_gh87y_34";
2737
2757
  const customButton = "_customButton_gh87y_49";
2738
- const styles$e = {
2758
+ const styles$f = {
2739
2759
  search: search,
2740
2760
  "default": "_default_gh87y_10",
2741
2761
  custom: custom,
@@ -2761,7 +2781,7 @@ function Search(props) {
2761
2781
  value && /* @__PURE__ */ jsx(
2762
2782
  IconXMark.Small,
2763
2783
  {
2764
- className: styles$e.icon,
2784
+ className: styles$f.icon,
2765
2785
  "aria-label": "clear search",
2766
2786
  role: "button",
2767
2787
  onClick: () => {
@@ -2775,13 +2795,13 @@ function Search(props) {
2775
2795
  }
2776
2796
  )
2777
2797
  ] });
2778
- return /* @__PURE__ */ jsxs(TextField.Root, { size: "md", className: classNames(styles$e.search, styles$e[mode], className), children: [
2798
+ return /* @__PURE__ */ jsxs(TextField.Root, { size: "md", className: classNames(styles$f.search, styles$f[mode], className), children: [
2779
2799
  mode === "default" && /* @__PURE__ */ jsxs(Fragment$1, { children: [
2780
- /* @__PURE__ */ jsx(IconSearch, { className: styles$e.icon, "data-element": "icon" }),
2800
+ /* @__PURE__ */ jsx(IconSearch, { className: styles$f.icon, "data-element": "icon" }),
2781
2801
  inputField
2782
2802
  ] }),
2783
2803
  mode === "custom" && /* @__PURE__ */ jsxs(Fragment$1, { children: [
2784
- /* @__PURE__ */ jsx("div", { className: styles$e.inputCustomWrapper, children: inputField }),
2804
+ /* @__PURE__ */ jsx("div", { className: styles$f.inputCustomWrapper, children: inputField }),
2785
2805
  /* @__PURE__ */ jsx(
2786
2806
  "button",
2787
2807
  {
@@ -2789,11 +2809,11 @@ function Search(props) {
2789
2809
  type: "button",
2790
2810
  onClick: props.onSearch,
2791
2811
  "data-element": "custom-button",
2792
- className: styles$e.customButton,
2812
+ className: styles$f.customButton,
2793
2813
  style: {
2794
2814
  "--custom-button-width": `${props.buttonWidth ?? DEFAULT_CUSTOM_SEARCH_BUTTON_WIDTH}px`
2795
2815
  },
2796
- children: /* @__PURE__ */ jsx(IconSearch, { className: classNames(styles$e.icon), "data-element": "icon" })
2816
+ children: /* @__PURE__ */ jsx(IconSearch, { className: classNames(styles$f.icon), "data-element": "icon" })
2797
2817
  }
2798
2818
  )
2799
2819
  ] })
@@ -2819,7 +2839,7 @@ function useSegmentControlContext() {
2819
2839
  const segmentControlItem = "_segmentControlItem_178px_2";
2820
2840
  const lg$2 = "_lg_178px_23";
2821
2841
  const md$3 = "_md_178px_28";
2822
- const styles$d = {
2842
+ const styles$e = {
2823
2843
  segmentControlItem: segmentControlItem,
2824
2844
  lg: lg$2,
2825
2845
  md: md$3
@@ -2835,7 +2855,7 @@ function SegmentControlItem({ className, children, value, ...props }) {
2835
2855
  "aria-checked": value === activeValue,
2836
2856
  "data-state": value === activeValue ? "on" : "off",
2837
2857
  "data-value": value,
2838
- className: classNames(styles$d.segmentControlItem, styles$d[size], className),
2858
+ className: classNames(styles$e.segmentControlItem, styles$e[size], className),
2839
2859
  ...props,
2840
2860
  children
2841
2861
  }
@@ -2872,7 +2892,7 @@ const showAfterDelay = "_showAfterDelay_pulca_1";
2872
2892
  const lg$1 = "_lg_pulca_19";
2873
2893
  const md$2 = "_md_pulca_23";
2874
2894
  const indicator$1 = "_indicator_pulca_28";
2875
- const styles$c = {
2895
+ const styles$d = {
2876
2896
  segmentControlRoot: segmentControlRoot,
2877
2897
  showAfterDelay: showAfterDelay,
2878
2898
  lg: lg$1,
@@ -2887,11 +2907,11 @@ function SegmentControlRoot({ className, children, value, size = "md", ...props
2887
2907
  {
2888
2908
  ref: rootRef,
2889
2909
  role: "radiogroup",
2890
- className: classNames(styles$c.segmentControlRoot, styles$c[size], className),
2910
+ className: classNames(styles$d.segmentControlRoot, styles$d[size], className),
2891
2911
  ...props,
2892
2912
  children: [
2893
2913
  children,
2894
- /* @__PURE__ */ jsx("div", { className: classNames(styles$c.indicator, styles$c[size]), style: indicatorStyle })
2914
+ /* @__PURE__ */ jsx("div", { className: classNames(styles$d.indicator, styles$d[size]), style: indicatorStyle })
2895
2915
  ]
2896
2916
  }
2897
2917
  ) });
@@ -2986,7 +3006,7 @@ const mark = "_mark_vuele_39";
2986
3006
  const markDot = "_markDot_vuele_43";
2987
3007
  const track = "_track_vuele_56";
2988
3008
  const marks = "_marks_vuele_106";
2989
- const styles$b = {
3009
+ const styles$c = {
2990
3010
  slider: slider,
2991
3011
  fill: fill,
2992
3012
  rail: rail,
@@ -2998,16 +3018,16 @@ const styles$b = {
2998
3018
  };
2999
3019
 
3000
3020
  function SliderMarks({ marks, min, max, activeFrom, activeTo }) {
3001
- return /* @__PURE__ */ jsx("div", { className: styles$b.marks, children: marks.map(({ value, label }) => {
3021
+ return /* @__PURE__ */ jsx("div", { className: styles$c.marks, children: marks.map(({ value, label }) => {
3002
3022
  const isActive = value >= activeFrom && value <= activeTo;
3003
3023
  return /* @__PURE__ */ jsxs(
3004
3024
  "div",
3005
3025
  {
3006
3026
  "data-state": isActive ? "active" : "default",
3007
- className: styles$b.mark,
3027
+ className: styles$c.mark,
3008
3028
  style: { insetInlineStart: `${getPercent(value, { min, max })}%` },
3009
3029
  children: [
3010
- /* @__PURE__ */ jsx("span", { className: styles$b.markDot }),
3030
+ /* @__PURE__ */ jsx("span", { className: styles$c.markDot }),
3011
3031
  label
3012
3032
  ]
3013
3033
  },
@@ -3130,7 +3150,7 @@ function SliderBase({
3130
3150
  return /* @__PURE__ */ jsx(
3131
3151
  "div",
3132
3152
  {
3133
- className: classNames(styles$b.slider, className),
3153
+ className: classNames(styles$c.slider, className),
3134
3154
  "data-disabled": disabled,
3135
3155
  "data-marks": Boolean(marks?.length),
3136
3156
  ...props,
@@ -3138,18 +3158,18 @@ function SliderBase({
3138
3158
  "div",
3139
3159
  {
3140
3160
  ref: railRef,
3141
- className: styles$b.rail,
3161
+ className: styles$c.rail,
3142
3162
  onPointerDown: handlePointerDown,
3143
3163
  onPointerMove: handlePointerMove,
3144
3164
  onPointerUp: stopDragging,
3145
3165
  onPointerCancel: stopDragging,
3146
3166
  onLostPointerCapture: handleLostPointerCapture,
3147
3167
  children: [
3148
- /* @__PURE__ */ jsx("div", { className: styles$b.track }),
3168
+ /* @__PURE__ */ jsx("div", { className: styles$c.track }),
3149
3169
  /* @__PURE__ */ jsx(
3150
3170
  "div",
3151
3171
  {
3152
- className: styles$b.fill,
3172
+ className: styles$c.fill,
3153
3173
  style: { insetInlineStart: `${toPercent(fillFrom)}%`, insetInlineEnd: `${100 - toPercent(fillTo)}%` }
3154
3174
  }
3155
3175
  ),
@@ -3171,7 +3191,7 @@ function SliderBase({
3171
3191
  "aria-describedby": ariaDescribedBy,
3172
3192
  "aria-disabled": disabled,
3173
3193
  "aria-orientation": "horizontal",
3174
- className: styles$b.handle,
3194
+ className: styles$c.handle,
3175
3195
  style: { insetInlineStart: `${toPercent(value)}%` },
3176
3196
  onKeyDown: (event) => handleKeyDown(event, index)
3177
3197
  },
@@ -3205,7 +3225,7 @@ const lg = "_lg_103n3_24";
3205
3225
  const primary$1 = "_primary_103n3_31";
3206
3226
  const secondary$1 = "_secondary_103n3_41";
3207
3227
  const value = "_value_103n3_50";
3208
- const styles$a = {
3228
+ const styles$b = {
3209
3229
  stepper: stepper,
3210
3230
  sm: sm$1,
3211
3231
  md: md$1,
@@ -3246,7 +3266,7 @@ function Stepper({
3246
3266
  {
3247
3267
  role: "group",
3248
3268
  "aria-label": "Stepper",
3249
- className: classNames(styles$a.stepper, styles$a[size], styles$a[mode], className),
3269
+ className: classNames(styles$b.stepper, styles$b[size], styles$b[mode], className),
3250
3270
  "data-disabled": disabled,
3251
3271
  ...props,
3252
3272
  children: [
@@ -3262,7 +3282,7 @@ function Stepper({
3262
3282
  children: /* @__PURE__ */ jsx(IconMinus, {})
3263
3283
  }
3264
3284
  ),
3265
- /* @__PURE__ */ jsx("span", { className: styles$a.value, "aria-live": "polite", children: value }),
3285
+ /* @__PURE__ */ jsx("span", { className: styles$b.value, "aria-live": "polite", children: value }),
3266
3286
  /* @__PURE__ */ jsx(
3267
3287
  Button,
3268
3288
  {
@@ -3282,7 +3302,7 @@ function Stepper({
3282
3302
 
3283
3303
  const switchWrapper = "_switchWrapper_1yukb_2";
3284
3304
  const icon = "_icon_1yukb_25";
3285
- const styles$9 = {
3305
+ const styles$a = {
3286
3306
  switchWrapper: switchWrapper,
3287
3307
  icon: icon,
3288
3308
  "switch": "_switch_1yukb_2"
@@ -3295,45 +3315,92 @@ function Switch({ className, label, indeterminate, ...props }) {
3295
3315
  {
3296
3316
  "data-disabled": `${Boolean(props.disabled)}`,
3297
3317
  "data-state": dataState,
3298
- className: classNames(styles$9.switchWrapper, className),
3318
+ className: classNames(styles$a.switchWrapper, className),
3299
3319
  children: [
3300
- dataState === "indeterminate" && /* @__PURE__ */ jsx(IconMinus, { "data-disabled": `${Boolean(props.disabled)}`, className: styles$9.icon }),
3301
- /* @__PURE__ */ jsx("input", { "data-state": dataState, type: "checkbox", role: "switch", className: styles$9.switch, ...props }),
3320
+ dataState === "indeterminate" && /* @__PURE__ */ jsx(IconMinus, { "data-disabled": `${Boolean(props.disabled)}`, className: styles$a.icon }),
3321
+ /* @__PURE__ */ jsx("input", { "data-state": dataState, type: "checkbox", role: "switch", className: styles$a.switch, ...props }),
3302
3322
  label
3303
3323
  ]
3304
3324
  }
3305
3325
  );
3306
3326
  }
3307
3327
 
3328
+ const TableContext = createContext({ layout: "table" });
3329
+
3330
+ function TableProvider({ children, value }) {
3331
+ return /* @__PURE__ */ jsx(TableContext.Provider, { value, children });
3332
+ }
3333
+
3334
+ function useTableContext() {
3335
+ return useContext(TableContext);
3336
+ }
3337
+
3338
+ const stackedList = "_stackedList_5wdsh_4";
3339
+ const styles$9 = {
3340
+ stackedList: stackedList
3341
+ };
3342
+
3308
3343
  function TableBody({ className, children, ...props }) {
3344
+ const { layout, captionId } = useTableContext();
3345
+ if (layout === "stacked") {
3346
+ return /* @__PURE__ */ jsx("ul", { "aria-labelledby": captionId, className: classNames(styles$9.stackedList, className), ...props, children });
3347
+ }
3309
3348
  return /* @__PURE__ */ jsx("tbody", { className, ...props, children });
3310
3349
  }
3311
3350
 
3312
- const tableCaption = "_tableCaption_fn9c1_2";
3351
+ const tableCaption = "_tableCaption_tlco9_2";
3352
+ const stackedCaption = "_stackedCaption_tlco9_13";
3313
3353
  const styles$8 = {
3314
- tableCaption: tableCaption
3354
+ tableCaption: tableCaption,
3355
+ stackedCaption: stackedCaption
3315
3356
  };
3316
3357
 
3317
3358
  function TableCaption({ className, children, ...props }) {
3359
+ const { layout, captionId } = useTableContext();
3360
+ if (layout === "stacked") {
3361
+ return /* @__PURE__ */ jsx("div", { className: classNames(styles$8.tableCaption, styles$8.stackedCaption, className), ...props, id: captionId, children });
3362
+ }
3318
3363
  return /* @__PURE__ */ jsx("caption", { className: classNames(styles$8.tableCaption, className), ...props, children });
3319
3364
  }
3320
3365
 
3321
- const tableCell = "_tableCell_1lfet_2";
3322
- const left$1 = "_left_1lfet_7";
3323
- const center$1 = "_center_1lfet_11";
3324
- const right$1 = "_right_1lfet_15";
3366
+ const tableCell = "_tableCell_1492t_2";
3367
+ const left$1 = "_left_1492t_7";
3368
+ const center$1 = "_center_1492t_11";
3369
+ const right$1 = "_right_1492t_15";
3370
+ const stackedCell = "_stackedCell_1492t_20";
3371
+ const stackedPair = "_stackedPair_1492t_24";
3372
+ const stackedLabel = "_stackedLabel_1492t_32";
3373
+ const stackedValue = "_stackedValue_1492t_40";
3325
3374
  const styles$7 = {
3326
3375
  tableCell: tableCell,
3327
3376
  left: left$1,
3328
3377
  center: center$1,
3329
- right: right$1
3330
- };
3331
-
3332
- function TableCell({ className, children, align = "left", ...props }) {
3333
- return /* @__PURE__ */ jsx("td", { className: classNames(styles$7.tableCell, styles$7[align], className), ...props, children });
3378
+ right: right$1,
3379
+ stackedCell: stackedCell,
3380
+ stackedPair: stackedPair,
3381
+ stackedLabel: stackedLabel,
3382
+ stackedValue: stackedValue
3383
+ };
3384
+
3385
+ function TableCell({ className, children, align = "left", colSpan, columnLabel, ...props }) {
3386
+ const { layout, isGroupRow } = useTableContext();
3387
+ if (layout === "stacked") {
3388
+ if (columnLabel === void 0 || isGroupRow) {
3389
+ return /* @__PURE__ */ jsx("div", { className: classNames(styles$7.stackedCell, className), ...props, children });
3390
+ }
3391
+ return /* @__PURE__ */ jsxs("div", { className: classNames(styles$7.stackedPair, className), ...props, children: [
3392
+ /* @__PURE__ */ jsx("dt", { className: styles$7.stackedLabel, children: columnLabel }),
3393
+ /* @__PURE__ */ jsx("dd", { className: styles$7.stackedValue, children })
3394
+ ] });
3395
+ }
3396
+ return /* @__PURE__ */ jsx("td", { colSpan, className: classNames(styles$7.tableCell, styles$7[align], className), ...props, children });
3334
3397
  }
3335
3398
 
3336
3399
  function TableHeader({ className, children, ...props }) {
3400
+ const { layout } = useTableContext();
3401
+ if (layout === "stacked") {
3402
+ return null;
3403
+ }
3337
3404
  return /* @__PURE__ */ jsx("thead", { className, ...props, children });
3338
3405
  }
3339
3406
 
@@ -3355,34 +3422,89 @@ function TableHeaderCell({
3355
3422
  scope = "col",
3356
3423
  ...props
3357
3424
  }) {
3425
+ const { layout } = useTableContext();
3426
+ if (layout === "stacked") {
3427
+ return null;
3428
+ }
3358
3429
  return /* @__PURE__ */ jsx("th", { scope, className: classNames(styles$6.tableHeaderCell, styles$6[align], className), ...props, children });
3359
3430
  }
3360
3431
 
3361
- const scrollContainer = "_scrollContainer_hioz2_2";
3362
- const bare = "_bare_hioz2_15";
3363
- const table = "_table_hioz2_21";
3432
+ function getRowSegments(children) {
3433
+ return Children.toArray(children).reduce((segments, cell) => {
3434
+ const isLabelled = isValidElement(cell) && cell.props.columnLabel !== void 0;
3435
+ const openSegment = segments.at(-1);
3436
+ if (openSegment?.isLabelled === isLabelled) {
3437
+ openSegment.cells.push(cell);
3438
+ return segments;
3439
+ }
3440
+ return [...segments, { isLabelled, cells: [cell] }];
3441
+ }, []);
3442
+ }
3443
+
3444
+ function hasTableCaption(children) {
3445
+ return Children.toArray(children).some((child) => {
3446
+ if (!isValidElement(child)) {
3447
+ return false;
3448
+ }
3449
+ if (child.type === Fragment) {
3450
+ return hasTableCaption(child.props.children);
3451
+ }
3452
+ return child.type === TableCaption;
3453
+ });
3454
+ }
3455
+
3456
+ const container = "_container_1s7gk_2";
3457
+ const scrollContainer = "_scrollContainer_1s7gk_12";
3458
+ const stackedContainer = "_stackedContainer_1s7gk_16";
3459
+ const bare = "_bare_1s7gk_30";
3460
+ const table = "_table_1s7gk_47";
3364
3461
  const styles$5 = {
3462
+ container: container,
3365
3463
  scrollContainer: scrollContainer,
3366
- "default": "_default_hioz2_9",
3464
+ stackedContainer: stackedContainer,
3465
+ "default": "_default_1s7gk_24",
3367
3466
  bare: bare,
3368
3467
  table: table
3369
3468
  };
3370
3469
 
3371
- function TableRoot({ className, children, mode = "default", ...props }) {
3372
- return /* @__PURE__ */ jsx("div", { className: classNames(styles$5.scrollContainer, styles$5[mode]), children: /* @__PURE__ */ jsx("table", { className: classNames(styles$5.table, className), ...props, children }) });
3470
+ function TableRoot({ className, children, mode = "default", layout = "table", ...props }) {
3471
+ const generatedId = useId();
3472
+ const captionId = hasTableCaption(children) ? generatedId : void 0;
3473
+ if (layout === "stacked") {
3474
+ return /* @__PURE__ */ jsx(TableProvider, { value: { layout, captionId }, children: /* @__PURE__ */ jsx("div", { className: classNames(styles$5.container, styles$5.stackedContainer, styles$5[mode], className), ...props, children }) });
3475
+ }
3476
+ return /* @__PURE__ */ jsx(TableProvider, { value: { layout }, children: /* @__PURE__ */ jsx("div", { className: classNames(styles$5.container, styles$5.scrollContainer, styles$5[mode]), children: /* @__PURE__ */ jsx("table", { className: classNames(styles$5.table, className), ...props, children }) }) });
3373
3477
  }
3374
3478
 
3375
- const tableRow = "_tableRow_1p3oc_2";
3376
- const group = "_group_1p3oc_16";
3377
- const current = "_current_1p3oc_23";
3479
+ const tableRow = "_tableRow_tf0oz_2";
3480
+ const stackedRow = "_stackedRow_tf0oz_12";
3481
+ const stackedPairs = "_stackedPairs_tf0oz_21";
3482
+ const group = "_group_tf0oz_29";
3483
+ const current = "_current_tf0oz_36";
3378
3484
  const styles$4 = {
3379
3485
  tableRow: tableRow,
3380
- "default": "_default_1p3oc_12",
3486
+ stackedRow: stackedRow,
3487
+ stackedPairs: stackedPairs,
3488
+ "default": "_default_tf0oz_25",
3381
3489
  group: group,
3382
3490
  current: current
3383
3491
  };
3384
3492
 
3385
3493
  function TableRow({ className, children, mode = "default", isCurrent = false, ...props }) {
3494
+ const context = useTableContext();
3495
+ if (context.layout === "stacked") {
3496
+ const isGroupRow = mode === "group";
3497
+ return /* @__PURE__ */ jsx(
3498
+ "li",
3499
+ {
3500
+ className: classNames(styles$4.stackedRow, styles$4[mode], isCurrent ? styles$4.current : void 0, className),
3501
+ ...props,
3502
+ children: /* @__PURE__ */ jsx(TableProvider, { value: { ...context, isGroupRow }, children: isGroupRow ? children : getRowSegments(children).map(
3503
+ (segment, index) => segment.isLabelled ? /* @__PURE__ */ jsx("dl", { className: styles$4.stackedPairs, children: segment.cells }, index) : segment.cells
3504
+ ) })
3505
+ }
3506
+ );
3507
+ }
3386
3508
  return /* @__PURE__ */ jsx(
3387
3509
  "tr",
3388
3510
  {