@grandbazar/ui-baza 1.5.3 → 1.6.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
@@ -51,41 +51,62 @@ function omit(object, ...keys) {
51
51
  return Object.fromEntries(filteredEntries);
52
52
  }
53
53
 
54
- const badge = "_badge_1s8y9_2";
55
- const primary$4 = "_primary_1s8y9_9";
56
- const secondary$5 = "_secondary_1s8y9_13";
57
- const accent$4 = "_accent_1s8y9_18";
58
- const violet = "_violet_1s8y9_23";
59
- const pink = "_pink_1s8y9_28";
60
- const red$1 = "_red_1s8y9_33";
61
- const orange = "_orange_1s8y9_38";
62
- const green = "_green_1s8y9_43";
63
- const neutral$3 = "_neutral_1s8y9_48";
64
- const lg$7 = "_lg_1s8y9_53";
65
- const md$a = "_md_1s8y9_60";
66
- const styles$D = {
54
+ const badge = "_badge_x6ia4_2";
55
+ const primary$4 = "_primary_x6ia4_9";
56
+ const secondary$5 = "_secondary_x6ia4_13";
57
+ const glass$1 = "_glass_x6ia4_18";
58
+ const accent$5 = "_accent_x6ia4_23";
59
+ const violet = "_violet_x6ia4_28";
60
+ const pink = "_pink_x6ia4_33";
61
+ const red$1 = "_red_x6ia4_38";
62
+ const orange = "_orange_x6ia4_43";
63
+ const green$1 = "_green_x6ia4_48";
64
+ const neutral$3 = "_neutral_x6ia4_54";
65
+ const lg$7 = "_lg_x6ia4_59";
66
+ const md$a = "_md_x6ia4_66";
67
+ const sm$5 = "_sm_x6ia4_73";
68
+ const pill$2 = "_pill_x6ia4_80";
69
+ const styles$E = {
67
70
  badge: badge,
68
71
  primary: primary$4,
69
72
  secondary: secondary$5,
70
- accent: accent$4,
73
+ glass: glass$1,
74
+ accent: accent$5,
71
75
  violet: violet,
72
76
  pink: pink,
73
77
  red: red$1,
74
78
  orange: orange,
75
- green: green,
79
+ green: green$1,
76
80
  neutral: neutral$3,
77
81
  lg: lg$7,
78
- md: md$a
82
+ md: md$a,
83
+ sm: sm$5,
84
+ pill: pill$2
79
85
  };
80
86
 
81
- function Badge({ children, className, size = "lg", color = "accent", mode = "primary", ...props }) {
82
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$D.badge, styles$D[size], styles$D[color], styles$D[mode], className), ...props, children });
87
+ function Badge({
88
+ children,
89
+ className,
90
+ size = "lg",
91
+ color = "accent",
92
+ mode = "primary",
93
+ shape = "default",
94
+ ...props
95
+ }) {
96
+ return /* @__PURE__ */ jsxRuntime.jsx(
97
+ "div",
98
+ {
99
+ className: classNames(styles$E.badge, styles$E[size], styles$E[color], styles$E[mode], styles$E[shape], className),
100
+ ...props,
101
+ children
102
+ }
103
+ );
83
104
  }
84
105
 
85
106
  const badgeTabsItem = "_badgeTabsItem_10lit_2";
86
107
  const primary$3 = "_primary_10lit_18";
87
108
  const secondary$4 = "_secondary_10lit_36";
88
- const styles$C = {
109
+ const styles$D = {
89
110
  badgeTabsItem: badgeTabsItem,
90
111
  primary: primary$3,
91
112
  secondary: secondary$4
@@ -98,7 +119,7 @@ function BadgeTabsItem({ className, children, isActive, mode = "primary", ...pro
98
119
  type: "button",
99
120
  role: "tab",
100
121
  "aria-selected": Boolean(isActive),
101
- className: classNames(styles$C.badgeTabsItem, styles$C[mode], className),
122
+ className: classNames(styles$D.badgeTabsItem, styles$D[mode], className),
102
123
  ...props,
103
124
  children
104
125
  }
@@ -106,12 +127,12 @@ function BadgeTabsItem({ className, children, isActive, mode = "primary", ...pro
106
127
  }
107
128
 
108
129
  const badgeTabsRoot = "_badgeTabsRoot_1qkat_2";
109
- const styles$B = {
130
+ const styles$C = {
110
131
  badgeTabsRoot: badgeTabsRoot
111
132
  };
112
133
 
113
134
  function BadgeTabsRoot({ className, children, ...props }) {
114
- return /* @__PURE__ */ jsxRuntime.jsx("div", { role: "tablist", className: classNames(styles$B.badgeTabsRoot, className), ...props, children });
135
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { role: "tablist", className: classNames(styles$C.badgeTabsRoot, className), ...props, children });
115
136
  }
116
137
 
117
138
  function BadgeTabs(props) {
@@ -1207,7 +1228,7 @@ function IconXMarkCircle(props) {
1207
1228
  const breadcrumbs = "_breadcrumbs_1bfmb_2";
1208
1229
  const breadcrumbsItem = "_breadcrumbsItem_1bfmb_8";
1209
1230
  const defaultSeparator = "_defaultSeparator_1bfmb_14";
1210
- const styles$A = {
1231
+ const styles$B = {
1211
1232
  breadcrumbs: breadcrumbs,
1212
1233
  breadcrumbsItem: breadcrumbsItem,
1213
1234
  defaultSeparator: defaultSeparator
@@ -1256,7 +1277,7 @@ function Slot({
1256
1277
  }
1257
1278
 
1258
1279
  const breadcrumbItem = "_breadcrumbItem_cua4v_2";
1259
- const styles$z = {
1280
+ const styles$A = {
1260
1281
  breadcrumbItem: breadcrumbItem
1261
1282
  };
1262
1283
 
@@ -1267,7 +1288,7 @@ function BreadcrumbItem({ children, className, isActive, asChild, ...props }) {
1267
1288
  {
1268
1289
  "data-active": isActive,
1269
1290
  "data-disabled": props.disabled,
1270
- className: classNames(styles$z.breadcrumbItem, className),
1291
+ className: classNames(styles$A.breadcrumbItem, className),
1271
1292
  ...isActive && { "aria-current": "page" },
1272
1293
  ...!asChild && { type: "button" },
1273
1294
  ...props,
@@ -1279,48 +1300,59 @@ function BreadcrumbItem({ children, className, isActive, asChild, ...props }) {
1279
1300
  function Breadcrumbs({
1280
1301
  className,
1281
1302
  children,
1282
- separator = /* @__PURE__ */ jsxRuntime.jsx(IconChevron, { className: styles$A.defaultSeparator })
1303
+ separator = /* @__PURE__ */ jsxRuntime.jsx(IconChevron, { className: styles$B.defaultSeparator })
1283
1304
  }) {
1284
1305
  const childrenArray = Array.isArray(children) ? children : [children];
1285
1306
  const lastIndex = childrenArray.length - 1;
1286
- return /* @__PURE__ */ jsxRuntime.jsx("nav", { "aria-label": "breadcrumb", className, children: /* @__PURE__ */ jsxRuntime.jsx("ol", { className: styles$A.breadcrumbs, children: childrenArray.map((item, index) => /* @__PURE__ */ jsxRuntime.jsxs(React.Fragment, { children: [
1287
- /* @__PURE__ */ jsxRuntime.jsx("li", { className: styles$A.breadcrumbsItem, children: item }),
1288
- index < lastIndex && /* @__PURE__ */ jsxRuntime.jsx("li", { className: styles$A.breadcrumbsItem, "aria-hidden": "true", children: separator })
1307
+ return /* @__PURE__ */ jsxRuntime.jsx("nav", { "aria-label": "breadcrumb", className, children: /* @__PURE__ */ jsxRuntime.jsx("ol", { className: styles$B.breadcrumbs, children: childrenArray.map((item, index) => /* @__PURE__ */ jsxRuntime.jsxs(React.Fragment, { children: [
1308
+ /* @__PURE__ */ jsxRuntime.jsx("li", { className: styles$B.breadcrumbsItem, children: item }),
1309
+ index < lastIndex && /* @__PURE__ */ jsxRuntime.jsx("li", { className: styles$B.breadcrumbsItem, "aria-hidden": "true", children: separator })
1289
1310
  ] }, index)) }) });
1290
1311
  }
1291
1312
  Breadcrumbs.Item = BreadcrumbItem;
1292
1313
 
1293
- const button = "_button_1waqk_2";
1294
- const accent$3 = "_accent_1waqk_11";
1295
- const primary$2 = "_primary_1waqk_12";
1296
- const secondary$3 = "_secondary_1waqk_30";
1297
- const tertiary = "_tertiary_1waqk_48";
1298
- const line = "_line_1waqk_49";
1299
- const neutral$2 = "_neutral_1waqk_78";
1300
- const lg$6 = "_lg_1waqk_145";
1301
- const md$9 = "_md_1waqk_153";
1302
- const sm$4 = "_sm_1waqk_161";
1303
- const styles$y = {
1314
+ const button = "_button_11nu9_2";
1315
+ const accent$4 = "_accent_11nu9_12";
1316
+ const primary$2 = "_primary_11nu9_13";
1317
+ const secondary$3 = "_secondary_11nu9_31";
1318
+ const tertiary = "_tertiary_11nu9_49";
1319
+ const line = "_line_11nu9_50";
1320
+ const neutral$2 = "_neutral_11nu9_79";
1321
+ const white$1 = "_white_11nu9_146";
1322
+ const lg$6 = "_lg_11nu9_213";
1323
+ const md$9 = "_md_11nu9_222";
1324
+ const sm$4 = "_sm_11nu9_240";
1325
+ const pill$1 = "_pill_11nu9_249";
1326
+ const circle = "_circle_11nu9_250";
1327
+ const square = "_square_11nu9_255";
1328
+ const elevated = "_elevated_11nu9_266";
1329
+ const styles$z = {
1304
1330
  button: button,
1305
- accent: accent$3,
1331
+ accent: accent$4,
1306
1332
  primary: primary$2,
1307
1333
  secondary: secondary$3,
1308
1334
  tertiary: tertiary,
1309
1335
  line: line,
1310
1336
  neutral: neutral$2,
1337
+ white: white$1,
1311
1338
  lg: lg$6,
1312
1339
  md: md$9,
1313
- sm: sm$4
1340
+ "md-sm": "_md-sm_11nu9_231",
1341
+ sm: sm$4,
1342
+ pill: pill$1,
1343
+ circle: circle,
1344
+ square: square,
1345
+ elevated: elevated
1314
1346
  };
1315
1347
 
1316
1348
  const buttonFunction = "_buttonFunction_o8iku_2";
1317
- const accent$2 = "_accent_o8iku_10";
1349
+ const accent$3 = "_accent_o8iku_10";
1318
1350
  const neutral$1 = "_neutral_o8iku_22";
1319
1351
  const lg$5 = "_lg_o8iku_41";
1320
1352
  const md$8 = "_md_o8iku_46";
1321
- const styles$x = {
1353
+ const styles$y = {
1322
1354
  buttonFunction: buttonFunction,
1323
- accent: accent$2,
1355
+ accent: accent$3,
1324
1356
  neutral: neutral$1,
1325
1357
  lg: lg$5,
1326
1358
  md: md$8
@@ -1338,7 +1370,7 @@ function ButtonFunction({
1338
1370
  return /* @__PURE__ */ jsxRuntime.jsx(
1339
1371
  Component,
1340
1372
  {
1341
- className: classNames(styles$x.buttonFunction, styles$x[color], styles$x[size], className),
1373
+ className: classNames(styles$y.buttonFunction, styles$y[color], styles$y[size], className),
1342
1374
  ...props.disabled && { "data-disabled": true },
1343
1375
  ...!asChild && { type: "button" },
1344
1376
  ...props,
@@ -1353,6 +1385,8 @@ function Button({
1353
1385
  color = "accent",
1354
1386
  size = "lg",
1355
1387
  mode = "primary",
1388
+ shape = "default",
1389
+ elevated,
1356
1390
  asChild,
1357
1391
  ...props
1358
1392
  }) {
@@ -1360,7 +1394,15 @@ function Button({
1360
1394
  return /* @__PURE__ */ jsxRuntime.jsx(
1361
1395
  Component,
1362
1396
  {
1363
- className: classNames(styles$y.button, styles$y[color], styles$y[size], styles$y[mode], className),
1397
+ className: classNames(
1398
+ styles$z.button,
1399
+ styles$z[color],
1400
+ styles$z[size],
1401
+ styles$z[mode],
1402
+ styles$z[shape],
1403
+ elevated ? styles$z.elevated : void 0,
1404
+ className
1405
+ ),
1364
1406
  ...!asChild && { type: "button" },
1365
1407
  ...props,
1366
1408
  children
@@ -1370,11 +1412,11 @@ function Button({
1370
1412
  Button.Function = ButtonFunction;
1371
1413
 
1372
1414
  const checkboxWrapper = "_checkboxWrapper_k1shg_2";
1373
- const icon$2 = "_icon_k1shg_23";
1415
+ const icon$3 = "_icon_k1shg_23";
1374
1416
  const checkbox = "_checkbox_k1shg_2";
1375
- const styles$w = {
1417
+ const styles$x = {
1376
1418
  checkboxWrapper: checkboxWrapper,
1377
- icon: icon$2,
1419
+ icon: icon$3,
1378
1420
  checkbox: checkbox
1379
1421
  };
1380
1422
 
@@ -1385,32 +1427,59 @@ function Checkbox({ className, label, indeterminate, ...props }) {
1385
1427
  {
1386
1428
  "data-disabled": `${Boolean(props.disabled)}`,
1387
1429
  "data-state": dataState,
1388
- className: classNames(styles$w.checkboxWrapper, className),
1430
+ className: classNames(styles$x.checkboxWrapper, className),
1389
1431
  children: [
1390
- dataState === "checked" && /* @__PURE__ */ jsxRuntime.jsx(IconCheck, { "data-disabled": `${Boolean(props.disabled)}`, className: styles$w.icon }),
1391
- dataState === "indeterminate" && /* @__PURE__ */ jsxRuntime.jsx(IconMinus, { "data-disabled": `${Boolean(props.disabled)}`, className: styles$w.icon }),
1392
- /* @__PURE__ */ jsxRuntime.jsx("input", { "data-state": dataState, type: "checkbox", className: styles$w.checkbox, ...props }),
1432
+ dataState === "checked" && /* @__PURE__ */ jsxRuntime.jsx(IconCheck, { "data-disabled": `${Boolean(props.disabled)}`, className: styles$x.icon }),
1433
+ dataState === "indeterminate" && /* @__PURE__ */ jsxRuntime.jsx(IconMinus, { "data-disabled": `${Boolean(props.disabled)}`, className: styles$x.icon }),
1434
+ /* @__PURE__ */ jsxRuntime.jsx("input", { "data-state": dataState, type: "checkbox", className: styles$x.checkbox, ...props }),
1393
1435
  label
1394
1436
  ]
1395
1437
  }
1396
1438
  );
1397
1439
  }
1398
1440
 
1399
- const chip = "_chip_dj4kw_2";
1400
- const styles$v = {
1401
- chip: chip
1441
+ const chip = "_chip_nge5j_2";
1442
+ const glass = "_glass_nge5j_36";
1443
+ const pill = "_pill_nge5j_59";
1444
+ const icon$2 = "_icon_nge5j_63";
1445
+ const styles$w = {
1446
+ chip: chip,
1447
+ glass: glass,
1448
+ pill: pill,
1449
+ icon: icon$2
1402
1450
  };
1403
1451
 
1404
- function Chip({ isSelected, children, className, disabled, ...props }) {
1452
+ function prependToChild(child, node) {
1453
+ if (!node || !React.isValidElement(child)) {
1454
+ return child;
1455
+ }
1456
+ return React.cloneElement(child, void 0, node, child.props.children);
1457
+ }
1458
+ function Chip({
1459
+ isSelected,
1460
+ children,
1461
+ className,
1462
+ disabled,
1463
+ icon,
1464
+ shape = "default",
1465
+ mode = "default",
1466
+ asChild,
1467
+ ...props
1468
+ }) {
1469
+ const Component = asChild ? Slot : "div";
1470
+ const iconElement = icon ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$w.icon, "aria-hidden": "true", children: icon }) : void 0;
1405
1471
  return /* @__PURE__ */ jsxRuntime.jsx(
1406
- "div",
1472
+ Component,
1407
1473
  {
1408
- className: classNames(styles$v.chip, className),
1474
+ className: classNames(styles$w.chip, styles$w[shape], styles$w[mode], className),
1409
1475
  "data-selected": isSelected,
1410
1476
  "data-disabled": disabled,
1411
1477
  "aria-disabled": disabled,
1412
1478
  ...props,
1413
- children
1479
+ children: asChild ? prependToChild(children, iconElement) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1480
+ iconElement,
1481
+ children
1482
+ ] })
1414
1483
  }
1415
1484
  );
1416
1485
  }
@@ -1419,23 +1488,23 @@ const root$1 = "_root_ww0fb_2";
1419
1488
  const lg$4 = "_lg_ww0fb_16";
1420
1489
  const md$7 = "_md_ww0fb_24";
1421
1490
  const red = "_red_ww0fb_32";
1422
- const accent$1 = "_accent_ww0fb_37";
1491
+ const accent$2 = "_accent_ww0fb_37";
1423
1492
  const neutral = "_neutral_ww0fb_42";
1424
1493
  const secondary$2 = "_secondary_ww0fb_47";
1425
1494
  const white = "_white_ww0fb_52";
1426
- const styles$u = {
1495
+ const styles$v = {
1427
1496
  root: root$1,
1428
1497
  lg: lg$4,
1429
1498
  md: md$7,
1430
1499
  red: red,
1431
- accent: accent$1,
1500
+ accent: accent$2,
1432
1501
  neutral: neutral,
1433
1502
  secondary: secondary$2,
1434
1503
  white: white
1435
1504
  };
1436
1505
 
1437
1506
  function Counter({ className, size = "lg", color = "red", ...props }) {
1438
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$u.root, styles$u[size], styles$u[color], className), ...props });
1507
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$v.root, styles$v[size], styles$v[color], className), ...props });
1439
1508
  }
1440
1509
 
1441
1510
  const LOCALE_FIRST_DAY_OF_WEEK = {
@@ -1445,7 +1514,7 @@ const LOCALE_FIRST_DAY_OF_WEEK = {
1445
1514
 
1446
1515
  const datePickerCellWrapper = "_datePickerCellWrapper_np1gx_2";
1447
1516
  const datePickerCell = "_datePickerCell_np1gx_2";
1448
- const styles$t = {
1517
+ const styles$u = {
1449
1518
  datePickerCellWrapper: datePickerCellWrapper,
1450
1519
  datePickerCell: datePickerCell,
1451
1520
  "radius-none": "_radius-none_np1gx_83",
@@ -1455,10 +1524,10 @@ const styles$t = {
1455
1524
  };
1456
1525
 
1457
1526
  function DatePickerCell({ children, className, state, isCurrent, radius = "both", ...props }) {
1458
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$t.datePickerCellWrapper, styles$t[`radius-${radius}`]), "data-state": state, children: /* @__PURE__ */ jsxRuntime.jsx(
1527
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$u.datePickerCellWrapper, styles$u[`radius-${radius}`]), "data-state": state, children: /* @__PURE__ */ jsxRuntime.jsx(
1459
1528
  "button",
1460
1529
  {
1461
- className: classNames(styles$t.datePickerCell, styles$t[`radius-${radius}`], className),
1530
+ className: classNames(styles$u.datePickerCell, styles$u[`radius-${radius}`], className),
1462
1531
  type: "button",
1463
1532
  role: "gridcell",
1464
1533
  "aria-selected": state === "selected",
@@ -1528,7 +1597,7 @@ function normalizeDateRange(firstDate, secondDate) {
1528
1597
  const datePickerField = "_datePickerField_1qk8s_2";
1529
1598
  const datePickerFieldCalendar = "_datePickerFieldCalendar_1qk8s_8";
1530
1599
  const datePickerFieldWeek = "_datePickerFieldWeek_1qk8s_14";
1531
- const styles$s = {
1600
+ const styles$t = {
1532
1601
  datePickerField: datePickerField,
1533
1602
  datePickerFieldCalendar: datePickerFieldCalendar,
1534
1603
  datePickerFieldWeek: datePickerFieldWeek
@@ -1543,9 +1612,9 @@ function DatePickerField({
1543
1612
  firstDayOfWeek = LOCALE_FIRST_DAY_OF_WEEK.ru
1544
1613
  }) {
1545
1614
  const weeks = React.useMemo(() => getCalendarGrid(month, year, firstDayOfWeek), [month, year, firstDayOfWeek]);
1546
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: classNames(styles$s.datePickerField, className), role: "grid", children: [
1615
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: classNames(styles$t.datePickerField, className), role: "grid", children: [
1547
1616
  renderWeekdays?.(),
1548
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$s.datePickerFieldCalendar, role: "rowgroup", children: weeks.map((week, weekIndex) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$s.datePickerFieldWeek, role: "row", "aria-rowindex": weekIndex + 1, children: week.map((day, dayIndex) => /* @__PURE__ */ jsxRuntime.jsx(Slot, { role: "gridcell", "aria-colindex": dayIndex + 1, children: children(day) }, `${day.year}-${day.month}-${day.date}`)) }, weekIndex)) })
1617
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$t.datePickerFieldCalendar, role: "rowgroup", children: weeks.map((week, weekIndex) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$t.datePickerFieldWeek, role: "row", "aria-rowindex": weekIndex + 1, children: week.map((day, dayIndex) => /* @__PURE__ */ jsxRuntime.jsx(Slot, { role: "gridcell", "aria-colindex": dayIndex + 1, children: children(day) }, `${day.year}-${day.month}-${day.date}`)) }, weekIndex)) })
1549
1618
  ] });
1550
1619
  }
1551
1620
 
@@ -1586,13 +1655,13 @@ const I18N_MONTH_LABELS = {
1586
1655
 
1587
1656
  const datePickerWeekdays = "_datePickerWeekdays_p8tsm_2";
1588
1657
  const datePickerWeekday = "_datePickerWeekday_p8tsm_2";
1589
- const styles$r = {
1658
+ const styles$s = {
1590
1659
  datePickerWeekdays: datePickerWeekdays,
1591
1660
  datePickerWeekday: datePickerWeekday
1592
1661
  };
1593
1662
 
1594
1663
  function DatePickerWeekDays({ className, locale = "ru" }) {
1595
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$r.datePickerWeekdays, className), role: "row", children: I18N_WEEKDAY_LABELS[locale].map((label) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$r.datePickerWeekday, role: "columnheader", children: label }, label)) });
1664
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$s.datePickerWeekdays, className), role: "row", children: I18N_WEEKDAY_LABELS[locale].map((label) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$s.datePickerWeekday, role: "columnheader", children: label }, label)) });
1596
1665
  }
1597
1666
 
1598
1667
  function DatePicker() {
@@ -1828,21 +1897,21 @@ const DROPDOWN_PORTAL_SIDE_CONFIG = {
1828
1897
  };
1829
1898
 
1830
1899
  const dropdownContent = "_dropdownContent_12tkb_2";
1831
- const styles$q = {
1900
+ const styles$r = {
1832
1901
  dropdownContent: dropdownContent
1833
1902
  };
1834
1903
 
1835
1904
  function DropdownContent({ className, children, ...props }) {
1836
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$q.dropdownContent, className), ...props, children });
1905
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$r.dropdownContent, className), ...props, children });
1837
1906
  }
1838
1907
 
1839
1908
  const dropdownItem = "_dropdownItem_msc4i_2";
1840
- const styles$p = {
1909
+ const styles$q = {
1841
1910
  dropdownItem: dropdownItem
1842
1911
  };
1843
1912
 
1844
1913
  function DropdownItem({ className, children, disabled, ...props }) {
1845
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$p.dropdownItem, className), role: "menuitem", "data-disabled": disabled, ...props, children });
1914
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$q.dropdownItem, className), role: "menuitem", "data-disabled": disabled, ...props, children });
1846
1915
  }
1847
1916
 
1848
1917
  const CLICK_OUTSIDE_IGNORE_DATA_NAME = "data-clickoutside-ignore";
@@ -2270,7 +2339,7 @@ function useTriggerHandlersByEventTrigger() {
2270
2339
  }
2271
2340
 
2272
2341
  const dropdownPortal = "_dropdownPortal_p3tdk_2";
2273
- const styles$o = {
2342
+ const styles$p = {
2274
2343
  dropdownPortal: dropdownPortal
2275
2344
  };
2276
2345
 
@@ -2310,7 +2379,7 @@ function DropdownPortal({
2310
2379
  ...style
2311
2380
  },
2312
2381
  ref: portalRef,
2313
- className: classNames(styles$o.dropdownPortal, className),
2382
+ className: classNames(styles$p.dropdownPortal, className),
2314
2383
  ...handlersByTrigger[triggerEvent],
2315
2384
  ...isNested && { [CLICK_OUTSIDE_IGNORE_DATA_NAME]: "true" },
2316
2385
  children
@@ -2353,7 +2422,7 @@ DropdownMenu.Item = DropdownItem;
2353
2422
  DropdownMenu.Portal = DropdownPortal;
2354
2423
 
2355
2424
  const notificationInline = "_notificationInline_1kerp_2";
2356
- const accent = "_accent_1kerp_10";
2425
+ const accent$1 = "_accent_1kerp_10";
2357
2426
  const negative = "_negative_1kerp_16";
2358
2427
  const positive = "_positive_1kerp_22";
2359
2428
  const warning = "_warning_1kerp_28";
@@ -2367,9 +2436,9 @@ const closeButton = "_closeButton_1kerp_74";
2367
2436
  const closeIcon = "_closeIcon_1kerp_95";
2368
2437
  const description = "_description_1kerp_100";
2369
2438
  const actions = "_actions_1kerp_108";
2370
- const styles$n = {
2439
+ const styles$o = {
2371
2440
  notificationInline: notificationInline,
2372
- accent: accent,
2441
+ accent: accent$1,
2373
2442
  negative: negative,
2374
2443
  positive: positive,
2375
2444
  warning: warning,
@@ -2402,15 +2471,15 @@ function NotificationInline({
2402
2471
  ...props
2403
2472
  }) {
2404
2473
  const StatusIcon = STATUS_ICONS[color];
2405
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: classNames(styles$n.notificationInline, styles$n[color], styles$n[mode], className), ...props, children: [
2406
- /* @__PURE__ */ jsxRuntime.jsx(StatusIcon, { className: styles$n.statusIcon, "aria-hidden": "true" }),
2407
- /* @__PURE__ */ jsxRuntime.jsxs("span", { className: styles$n.body, children: [
2408
- /* @__PURE__ */ jsxRuntime.jsxs("span", { className: styles$n.titleRow, children: [
2409
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$n.title, children: title }),
2410
- onClose && /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", "aria-label": "Close", className: styles$n.closeButton, onClick: onClose, children: /* @__PURE__ */ jsxRuntime.jsx(IconXMark.Small, { className: styles$n.closeIcon, "aria-hidden": "true" }) })
2474
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: classNames(styles$o.notificationInline, styles$o[color], styles$o[mode], className), ...props, children: [
2475
+ /* @__PURE__ */ jsxRuntime.jsx(StatusIcon, { className: styles$o.statusIcon, "aria-hidden": "true" }),
2476
+ /* @__PURE__ */ jsxRuntime.jsxs("span", { className: styles$o.body, children: [
2477
+ /* @__PURE__ */ jsxRuntime.jsxs("span", { className: styles$o.titleRow, children: [
2478
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$o.title, children: title }),
2479
+ onClose && /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", "aria-label": "Close", className: styles$o.closeButton, onClick: onClose, children: /* @__PURE__ */ jsxRuntime.jsx(IconXMark.Small, { className: styles$o.closeIcon, "aria-hidden": "true" }) })
2411
2480
  ] }),
2412
- description && /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$n.description, children: description }),
2413
- children && /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$n.actions, children })
2481
+ description && /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$o.description, children: description }),
2482
+ children && /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$o.actions, children })
2414
2483
  ] })
2415
2484
  ] });
2416
2485
  }
@@ -2426,7 +2495,7 @@ const BOUNDARY_PAGES = 2;
2426
2495
  const paginationItem = "_paginationItem_1ll6p_2";
2427
2496
  const md$6 = "_md_1ll6p_46";
2428
2497
  const sm$3 = "_sm_1ll6p_60";
2429
- const styles$m = {
2498
+ const styles$n = {
2430
2499
  paginationItem: paginationItem,
2431
2500
  md: md$6,
2432
2501
  sm: sm$3
@@ -2438,7 +2507,7 @@ function PaginationItem({ className, children, size = "md", isCurrent, ...props
2438
2507
  {
2439
2508
  type: "button",
2440
2509
  ...isCurrent && { "aria-current": "page" },
2441
- className: classNames(styles$m.paginationItem, styles$m[size], className),
2510
+ className: classNames(styles$n.paginationItem, styles$n[size], className),
2442
2511
  ...props,
2443
2512
  children
2444
2513
  }
@@ -2475,7 +2544,7 @@ function getVisiblePages(totalPages, maxVisiblePagesWithEllipsis, currentPage) {
2475
2544
  const paginationRoot = "_paginationRoot_c5fwx_2";
2476
2545
  const paginationList = "_paginationList_c5fwx_7";
2477
2546
  const arrowLeft = "_arrowLeft_c5fwx_13";
2478
- const styles$l = {
2547
+ const styles$m = {
2479
2548
  paginationRoot: paginationRoot,
2480
2549
  paginationList: paginationList,
2481
2550
  arrowLeft: arrowLeft
@@ -2502,9 +2571,9 @@ function PaginationRoot({
2502
2571
  {
2503
2572
  "aria-label": "pagination navigation",
2504
2573
  role: "navigation",
2505
- className: classNames(styles$l.paginationRoot, className),
2574
+ className: classNames(styles$m.paginationRoot, className),
2506
2575
  ...props,
2507
- children: /* @__PURE__ */ jsxRuntime.jsxs("ul", { className: styles$l.paginationList, children: [
2576
+ children: /* @__PURE__ */ jsxRuntime.jsxs("ul", { className: styles$m.paginationList, children: [
2508
2577
  showArrows && /* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsx(
2509
2578
  PaginationItem$1,
2510
2579
  {
@@ -2512,7 +2581,7 @@ function PaginationRoot({
2512
2581
  onClick: () => onPageChange(currentPage - 1),
2513
2582
  disabled: isFirstPage,
2514
2583
  size,
2515
- children: /* @__PURE__ */ jsxRuntime.jsx(IconChevron$1, { className: styles$l.arrowLeft })
2584
+ children: /* @__PURE__ */ jsxRuntime.jsx(IconChevron$1, { className: styles$m.arrowLeft })
2516
2585
  }
2517
2586
  ) }),
2518
2587
  visiblePages.map((page, index) => /* @__PURE__ */ jsxRuntime.jsx("li", { children: page === ELLIPSIS_SYMBOL ? /* @__PURE__ */ jsxRuntime.jsx(PaginationItem$1, { "aria-label": "More pages", disabled: true, size, children: /* @__PURE__ */ jsxRuntime.jsx(Ellipsis, {}) }) : /* @__PURE__ */ jsxRuntime.jsx(
@@ -2545,26 +2614,33 @@ function Pagination(props) {
2545
2614
  }
2546
2615
  Pagination.Item = PaginationItem;
2547
2616
 
2548
- const root = "_root_33gbh_2";
2549
- const segment = "_segment_33gbh_10";
2550
- const flexGrow = "_flexGrow_33gbh_19";
2551
- const fill$1 = "_fill_33gbh_23";
2552
- const trail = "_trail_33gbh_28";
2553
- const sm$2 = "_sm_33gbh_32";
2554
- const md$5 = "_md_33gbh_36";
2555
- const styles$k = {
2617
+ const root = "_root_1lyc4_2";
2618
+ const segment = "_segment_1lyc4_10";
2619
+ const flexGrow = "_flexGrow_1lyc4_19";
2620
+ const fill$1 = "_fill_1lyc4_23";
2621
+ const trail = "_trail_1lyc4_28";
2622
+ const xs = "_xs_1lyc4_32";
2623
+ const sm$2 = "_sm_1lyc4_36";
2624
+ const md$5 = "_md_1lyc4_40";
2625
+ const accent = "_accent_1lyc4_44";
2626
+ const green = "_green_1lyc4_48";
2627
+ const styles$l = {
2556
2628
  root: root,
2557
2629
  segment: segment,
2558
2630
  flexGrow: flexGrow,
2559
2631
  fill: fill$1,
2560
2632
  trail: trail,
2633
+ xs: xs,
2561
2634
  sm: sm$2,
2562
- md: md$5
2635
+ md: md$5,
2636
+ accent: accent,
2637
+ green: green
2563
2638
  };
2564
2639
 
2565
2640
  function ProgressBarLinear({
2566
2641
  className,
2567
2642
  size = "md",
2643
+ color = "accent",
2568
2644
  percent,
2569
2645
  showFillOnZero,
2570
2646
  ...props
@@ -2573,7 +2649,7 @@ function ProgressBarLinear({
2573
2649
  return /* @__PURE__ */ jsxRuntime.jsxs(
2574
2650
  "div",
2575
2651
  {
2576
- className: classNames(styles$k.root, styles$k[size], className),
2652
+ className: classNames(styles$l.root, styles$l[size], styles$l[color], className),
2577
2653
  role: "progressbar",
2578
2654
  "aria-valuenow": clampedPercent,
2579
2655
  "aria-valuemin": 0,
@@ -2585,14 +2661,14 @@ function ProgressBarLinear({
2585
2661
  (Boolean(clampedPercent) || showFillOnZero) && /* @__PURE__ */ jsxRuntime.jsx(
2586
2662
  "div",
2587
2663
  {
2588
- className: classNames(styles$k.segment, styles$k.fill),
2664
+ className: classNames(styles$l.segment, styles$l.fill),
2589
2665
  style: {
2590
2666
  "--clamped-percent": `${clampedPercent}%`
2591
2667
  },
2592
2668
  "aria-hidden": "true"
2593
2669
  }
2594
2670
  ),
2595
- clampedPercent < 100 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$k.segment, styles$k.flexGrow, styles$k.trail), "aria-hidden": "true" })
2671
+ clampedPercent < 100 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$l.segment, styles$l.flexGrow, styles$l.trail), "aria-hidden": "true" })
2596
2672
  ]
2597
2673
  }
2598
2674
  );
@@ -2601,6 +2677,7 @@ function ProgressBarLinear({
2601
2677
  function ProgressBarSteps({
2602
2678
  className,
2603
2679
  size = "md",
2680
+ color = "accent",
2604
2681
  currentStep,
2605
2682
  totalSteps,
2606
2683
  ...props
@@ -2612,7 +2689,7 @@ function ProgressBarSteps({
2612
2689
  return /* @__PURE__ */ jsxRuntime.jsx(
2613
2690
  "div",
2614
2691
  {
2615
- className: classNames(styles$k.segment, styles$k.flexGrow, isFilled ? styles$k.fill : styles$k.trail),
2692
+ className: classNames(styles$l.segment, styles$l.flexGrow, isFilled ? styles$l.fill : styles$l.trail),
2616
2693
  "aria-hidden": "true"
2617
2694
  },
2618
2695
  index
@@ -2621,7 +2698,7 @@ function ProgressBarSteps({
2621
2698
  return /* @__PURE__ */ jsxRuntime.jsx(
2622
2699
  "div",
2623
2700
  {
2624
- className: classNames(styles$k.root, styles$k[size], className),
2701
+ className: classNames(styles$l.root, styles$l[size], styles$l[color], className),
2625
2702
  role: "progressbar",
2626
2703
  "aria-valuenow": clampedCurrent,
2627
2704
  "aria-valuemin": 0,
@@ -2641,14 +2718,14 @@ ProgressBar.Steps = ProgressBarSteps;
2641
2718
 
2642
2719
  const radioWrapper = "_radioWrapper_13xie_2";
2643
2720
  const radio = "_radio_13xie_2";
2644
- const styles$j = {
2721
+ const styles$k = {
2645
2722
  radioWrapper: radioWrapper,
2646
2723
  radio: radio
2647
2724
  };
2648
2725
 
2649
2726
  function RadioButton({ className, label, ...props }) {
2650
- return /* @__PURE__ */ jsxRuntime.jsxs("label", { "data-disabled": `${Boolean(props.disabled)}`, className: classNames(styles$j.radioWrapper, className), children: [
2651
- /* @__PURE__ */ jsxRuntime.jsx("input", { type: "radio", className: styles$j.radio, ...props }),
2727
+ return /* @__PURE__ */ jsxRuntime.jsxs("label", { "data-disabled": `${Boolean(props.disabled)}`, className: classNames(styles$k.radioWrapper, className), children: [
2728
+ /* @__PURE__ */ jsxRuntime.jsx("input", { type: "radio", className: styles$k.radio, ...props }),
2652
2729
  label
2653
2730
  ] });
2654
2731
  }
@@ -2659,7 +2736,7 @@ const textFieldAreaWrapper = "_textFieldAreaWrapper_pia91_2";
2659
2736
  const textFieldAreaLabel = "_textFieldAreaLabel_pia91_14";
2660
2737
  const textFieldAreaLabelSuffix = "_textFieldAreaLabelSuffix_pia91_24";
2661
2738
  const textFieldArea = "_textFieldArea_pia91_2";
2662
- const styles$i = {
2739
+ const styles$j = {
2663
2740
  textFieldAreaWrapper: textFieldAreaWrapper,
2664
2741
  textFieldAreaLabel: textFieldAreaLabel,
2665
2742
  textFieldAreaLabelSuffix: textFieldAreaLabelSuffix,
@@ -2680,14 +2757,14 @@ function TextFieldArea({
2680
2757
  "data-invalid": isInvalid,
2681
2758
  "aria-invalid": isInvalid,
2682
2759
  "data-element": "field",
2683
- className: classNames(styles$i.textFieldArea, className),
2760
+ className: classNames(styles$j.textFieldArea, className),
2684
2761
  placeholder,
2685
2762
  ...props
2686
2763
  }
2687
2764
  );
2688
- return floatingLabel ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles$i.textFieldAreaWrapper, children: [
2689
- /* @__PURE__ */ jsxRuntime.jsx("label", { htmlFor: props.id, className: styles$i.textFieldAreaLabel, "data-element": "label", children: floatingLabel }),
2690
- floatingLabelSuffix && /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$i.textFieldAreaLabelSuffix, "data-element": "label-suffix", children: floatingLabelSuffix }),
2765
+ return floatingLabel ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles$j.textFieldAreaWrapper, children: [
2766
+ /* @__PURE__ */ jsxRuntime.jsx("label", { htmlFor: props.id, className: styles$j.textFieldAreaLabel, "data-element": "label", children: floatingLabel }),
2767
+ floatingLabelSuffix && /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$j.textFieldAreaLabelSuffix, "data-element": "label-suffix", children: floatingLabelSuffix }),
2691
2768
  textFieldArea
2692
2769
  ] }) : textFieldArea;
2693
2770
  }
@@ -2695,7 +2772,7 @@ function TextFieldArea({
2695
2772
  const textFieldInputWrapper = "_textFieldInputWrapper_1m8sa_2";
2696
2773
  const textFieldInputLabel = "_textFieldInputLabel_1m8sa_9";
2697
2774
  const textFieldInput = "_textFieldInput_1m8sa_2";
2698
- const styles$h = {
2775
+ const styles$i = {
2699
2776
  textFieldInputWrapper: textFieldInputWrapper,
2700
2777
  textFieldInputLabel: textFieldInputLabel,
2701
2778
  textFieldInput: textFieldInput
@@ -2714,37 +2791,37 @@ function TextFieldInput({
2714
2791
  "data-invalid": isInvalid,
2715
2792
  "aria-invalid": isInvalid,
2716
2793
  "data-element": "field",
2717
- className: classNames(styles$h.textFieldInput, className),
2794
+ className: classNames(styles$i.textFieldInput, className),
2718
2795
  placeholder,
2719
2796
  ...props
2720
2797
  }
2721
2798
  );
2722
- return floatingLabel ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles$h.textFieldInputWrapper, children: [
2723
- /* @__PURE__ */ jsxRuntime.jsx("label", { htmlFor: props.id, className: styles$h.textFieldInputLabel, "data-element": "label", children: floatingLabel }),
2799
+ return floatingLabel ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles$i.textFieldInputWrapper, children: [
2800
+ /* @__PURE__ */ jsxRuntime.jsx("label", { htmlFor: props.id, className: styles$i.textFieldInputLabel, "data-element": "label", children: floatingLabel }),
2724
2801
  textFieldInput
2725
2802
  ] }) : textFieldInput;
2726
2803
  }
2727
2804
 
2728
2805
  const textFieldLabel = "_textFieldLabel_1xy6x_2";
2729
- const styles$g = {
2806
+ const styles$h = {
2730
2807
  textFieldLabel: textFieldLabel
2731
2808
  };
2732
2809
 
2733
2810
  function TextFieldLabel({ className, children, isRequired, ...props }) {
2734
- return /* @__PURE__ */ jsxRuntime.jsx("label", { className: classNames(styles$g.textFieldLabel, className), "data-required": isRequired, ...props, children });
2811
+ return /* @__PURE__ */ jsxRuntime.jsx("label", { className: classNames(styles$h.textFieldLabel, className), "data-required": isRequired, ...props, children });
2735
2812
  }
2736
2813
 
2737
2814
  const textFieldRoot = "_textFieldRoot_cs7mv_2";
2738
2815
  const lg$3 = "_lg_cs7mv_38";
2739
2816
  const md$4 = "_md_cs7mv_70";
2740
- const styles$f = {
2817
+ const styles$g = {
2741
2818
  textFieldRoot: textFieldRoot,
2742
2819
  lg: lg$3,
2743
2820
  md: md$4
2744
2821
  };
2745
2822
 
2746
2823
  function TextFieldRoot({ className, size = "lg", ...props }) {
2747
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$f.textFieldRoot, styles$f[size], className), ...props });
2824
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$g.textFieldRoot, styles$g[size], className), ...props });
2748
2825
  }
2749
2826
 
2750
2827
  function TextField() {
@@ -2759,7 +2836,7 @@ const custom = "_custom_gh87y_15";
2759
2836
  const icon$1 = "_icon_gh87y_25";
2760
2837
  const inputCustomWrapper = "_inputCustomWrapper_gh87y_34";
2761
2838
  const customButton = "_customButton_gh87y_49";
2762
- const styles$e = {
2839
+ const styles$f = {
2763
2840
  search: search,
2764
2841
  "default": "_default_gh87y_10",
2765
2842
  custom: custom,
@@ -2785,7 +2862,7 @@ function Search(props) {
2785
2862
  value && /* @__PURE__ */ jsxRuntime.jsx(
2786
2863
  IconXMark.Small,
2787
2864
  {
2788
- className: styles$e.icon,
2865
+ className: styles$f.icon,
2789
2866
  "aria-label": "clear search",
2790
2867
  role: "button",
2791
2868
  onClick: () => {
@@ -2799,13 +2876,13 @@ function Search(props) {
2799
2876
  }
2800
2877
  )
2801
2878
  ] });
2802
- return /* @__PURE__ */ jsxRuntime.jsxs(TextField.Root, { size: "md", className: classNames(styles$e.search, styles$e[mode], className), children: [
2879
+ return /* @__PURE__ */ jsxRuntime.jsxs(TextField.Root, { size: "md", className: classNames(styles$f.search, styles$f[mode], className), children: [
2803
2880
  mode === "default" && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
2804
- /* @__PURE__ */ jsxRuntime.jsx(IconSearch, { className: styles$e.icon, "data-element": "icon" }),
2881
+ /* @__PURE__ */ jsxRuntime.jsx(IconSearch, { className: styles$f.icon, "data-element": "icon" }),
2805
2882
  inputField
2806
2883
  ] }),
2807
2884
  mode === "custom" && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
2808
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$e.inputCustomWrapper, children: inputField }),
2885
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$f.inputCustomWrapper, children: inputField }),
2809
2886
  /* @__PURE__ */ jsxRuntime.jsx(
2810
2887
  "button",
2811
2888
  {
@@ -2813,11 +2890,11 @@ function Search(props) {
2813
2890
  type: "button",
2814
2891
  onClick: props.onSearch,
2815
2892
  "data-element": "custom-button",
2816
- className: styles$e.customButton,
2893
+ className: styles$f.customButton,
2817
2894
  style: {
2818
2895
  "--custom-button-width": `${props.buttonWidth ?? DEFAULT_CUSTOM_SEARCH_BUTTON_WIDTH}px`
2819
2896
  },
2820
- children: /* @__PURE__ */ jsxRuntime.jsx(IconSearch, { className: classNames(styles$e.icon), "data-element": "icon" })
2897
+ children: /* @__PURE__ */ jsxRuntime.jsx(IconSearch, { className: classNames(styles$f.icon), "data-element": "icon" })
2821
2898
  }
2822
2899
  )
2823
2900
  ] })
@@ -2843,7 +2920,7 @@ function useSegmentControlContext() {
2843
2920
  const segmentControlItem = "_segmentControlItem_178px_2";
2844
2921
  const lg$2 = "_lg_178px_23";
2845
2922
  const md$3 = "_md_178px_28";
2846
- const styles$d = {
2923
+ const styles$e = {
2847
2924
  segmentControlItem: segmentControlItem,
2848
2925
  lg: lg$2,
2849
2926
  md: md$3
@@ -2859,7 +2936,7 @@ function SegmentControlItem({ className, children, value, ...props }) {
2859
2936
  "aria-checked": value === activeValue,
2860
2937
  "data-state": value === activeValue ? "on" : "off",
2861
2938
  "data-value": value,
2862
- className: classNames(styles$d.segmentControlItem, styles$d[size], className),
2939
+ className: classNames(styles$e.segmentControlItem, styles$e[size], className),
2863
2940
  ...props,
2864
2941
  children
2865
2942
  }
@@ -2896,7 +2973,7 @@ const showAfterDelay = "_showAfterDelay_pulca_1";
2896
2973
  const lg$1 = "_lg_pulca_19";
2897
2974
  const md$2 = "_md_pulca_23";
2898
2975
  const indicator$1 = "_indicator_pulca_28";
2899
- const styles$c = {
2976
+ const styles$d = {
2900
2977
  segmentControlRoot: segmentControlRoot,
2901
2978
  showAfterDelay: showAfterDelay,
2902
2979
  lg: lg$1,
@@ -2911,11 +2988,11 @@ function SegmentControlRoot({ className, children, value, size = "md", ...props
2911
2988
  {
2912
2989
  ref: rootRef,
2913
2990
  role: "radiogroup",
2914
- className: classNames(styles$c.segmentControlRoot, styles$c[size], className),
2991
+ className: classNames(styles$d.segmentControlRoot, styles$d[size], className),
2915
2992
  ...props,
2916
2993
  children: [
2917
2994
  children,
2918
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$c.indicator, styles$c[size]), style: indicatorStyle })
2995
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$d.indicator, styles$d[size]), style: indicatorStyle })
2919
2996
  ]
2920
2997
  }
2921
2998
  ) });
@@ -3010,7 +3087,7 @@ const mark = "_mark_vuele_39";
3010
3087
  const markDot = "_markDot_vuele_43";
3011
3088
  const track = "_track_vuele_56";
3012
3089
  const marks = "_marks_vuele_106";
3013
- const styles$b = {
3090
+ const styles$c = {
3014
3091
  slider: slider,
3015
3092
  fill: fill,
3016
3093
  rail: rail,
@@ -3022,16 +3099,16 @@ const styles$b = {
3022
3099
  };
3023
3100
 
3024
3101
  function SliderMarks({ marks, min, max, activeFrom, activeTo }) {
3025
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$b.marks, children: marks.map(({ value, label }) => {
3102
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$c.marks, children: marks.map(({ value, label }) => {
3026
3103
  const isActive = value >= activeFrom && value <= activeTo;
3027
3104
  return /* @__PURE__ */ jsxRuntime.jsxs(
3028
3105
  "div",
3029
3106
  {
3030
3107
  "data-state": isActive ? "active" : "default",
3031
- className: styles$b.mark,
3108
+ className: styles$c.mark,
3032
3109
  style: { insetInlineStart: `${getPercent(value, { min, max })}%` },
3033
3110
  children: [
3034
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$b.markDot }),
3111
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$c.markDot }),
3035
3112
  label
3036
3113
  ]
3037
3114
  },
@@ -3154,7 +3231,7 @@ function SliderBase({
3154
3231
  return /* @__PURE__ */ jsxRuntime.jsx(
3155
3232
  "div",
3156
3233
  {
3157
- className: classNames(styles$b.slider, className),
3234
+ className: classNames(styles$c.slider, className),
3158
3235
  "data-disabled": disabled,
3159
3236
  "data-marks": Boolean(marks?.length),
3160
3237
  ...props,
@@ -3162,18 +3239,18 @@ function SliderBase({
3162
3239
  "div",
3163
3240
  {
3164
3241
  ref: railRef,
3165
- className: styles$b.rail,
3242
+ className: styles$c.rail,
3166
3243
  onPointerDown: handlePointerDown,
3167
3244
  onPointerMove: handlePointerMove,
3168
3245
  onPointerUp: stopDragging,
3169
3246
  onPointerCancel: stopDragging,
3170
3247
  onLostPointerCapture: handleLostPointerCapture,
3171
3248
  children: [
3172
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$b.track }),
3249
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$c.track }),
3173
3250
  /* @__PURE__ */ jsxRuntime.jsx(
3174
3251
  "div",
3175
3252
  {
3176
- className: styles$b.fill,
3253
+ className: styles$c.fill,
3177
3254
  style: { insetInlineStart: `${toPercent(fillFrom)}%`, insetInlineEnd: `${100 - toPercent(fillTo)}%` }
3178
3255
  }
3179
3256
  ),
@@ -3195,7 +3272,7 @@ function SliderBase({
3195
3272
  "aria-describedby": ariaDescribedBy,
3196
3273
  "aria-disabled": disabled,
3197
3274
  "aria-orientation": "horizontal",
3198
- className: styles$b.handle,
3275
+ className: styles$c.handle,
3199
3276
  style: { insetInlineStart: `${toPercent(value)}%` },
3200
3277
  onKeyDown: (event) => handleKeyDown(event, index)
3201
3278
  },
@@ -3229,7 +3306,7 @@ const lg = "_lg_103n3_24";
3229
3306
  const primary$1 = "_primary_103n3_31";
3230
3307
  const secondary$1 = "_secondary_103n3_41";
3231
3308
  const value = "_value_103n3_50";
3232
- const styles$a = {
3309
+ const styles$b = {
3233
3310
  stepper: stepper,
3234
3311
  sm: sm$1,
3235
3312
  md: md$1,
@@ -3270,7 +3347,7 @@ function Stepper({
3270
3347
  {
3271
3348
  role: "group",
3272
3349
  "aria-label": "Stepper",
3273
- className: classNames(styles$a.stepper, styles$a[size], styles$a[mode], className),
3350
+ className: classNames(styles$b.stepper, styles$b[size], styles$b[mode], className),
3274
3351
  "data-disabled": disabled,
3275
3352
  ...props,
3276
3353
  children: [
@@ -3286,7 +3363,7 @@ function Stepper({
3286
3363
  children: /* @__PURE__ */ jsxRuntime.jsx(IconMinus, {})
3287
3364
  }
3288
3365
  ),
3289
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$a.value, "aria-live": "polite", children: value }),
3366
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$b.value, "aria-live": "polite", children: value }),
3290
3367
  /* @__PURE__ */ jsxRuntime.jsx(
3291
3368
  Button,
3292
3369
  {
@@ -3306,7 +3383,7 @@ function Stepper({
3306
3383
 
3307
3384
  const switchWrapper = "_switchWrapper_1yukb_2";
3308
3385
  const icon = "_icon_1yukb_25";
3309
- const styles$9 = {
3386
+ const styles$a = {
3310
3387
  switchWrapper: switchWrapper,
3311
3388
  icon: icon,
3312
3389
  "switch": "_switch_1yukb_2"
@@ -3319,45 +3396,92 @@ function Switch({ className, label, indeterminate, ...props }) {
3319
3396
  {
3320
3397
  "data-disabled": `${Boolean(props.disabled)}`,
3321
3398
  "data-state": dataState,
3322
- className: classNames(styles$9.switchWrapper, className),
3399
+ className: classNames(styles$a.switchWrapper, className),
3323
3400
  children: [
3324
- dataState === "indeterminate" && /* @__PURE__ */ jsxRuntime.jsx(IconMinus, { "data-disabled": `${Boolean(props.disabled)}`, className: styles$9.icon }),
3325
- /* @__PURE__ */ jsxRuntime.jsx("input", { "data-state": dataState, type: "checkbox", role: "switch", className: styles$9.switch, ...props }),
3401
+ dataState === "indeterminate" && /* @__PURE__ */ jsxRuntime.jsx(IconMinus, { "data-disabled": `${Boolean(props.disabled)}`, className: styles$a.icon }),
3402
+ /* @__PURE__ */ jsxRuntime.jsx("input", { "data-state": dataState, type: "checkbox", role: "switch", className: styles$a.switch, ...props }),
3326
3403
  label
3327
3404
  ]
3328
3405
  }
3329
3406
  );
3330
3407
  }
3331
3408
 
3409
+ const TableContext = React.createContext({ layout: "table" });
3410
+
3411
+ function TableProvider({ children, value }) {
3412
+ return /* @__PURE__ */ jsxRuntime.jsx(TableContext.Provider, { value, children });
3413
+ }
3414
+
3415
+ function useTableContext() {
3416
+ return React.useContext(TableContext);
3417
+ }
3418
+
3419
+ const stackedList = "_stackedList_5wdsh_4";
3420
+ const styles$9 = {
3421
+ stackedList: stackedList
3422
+ };
3423
+
3332
3424
  function TableBody({ className, children, ...props }) {
3425
+ const { layout, captionId } = useTableContext();
3426
+ if (layout === "stacked") {
3427
+ return /* @__PURE__ */ jsxRuntime.jsx("ul", { "aria-labelledby": captionId, className: classNames(styles$9.stackedList, className), ...props, children });
3428
+ }
3333
3429
  return /* @__PURE__ */ jsxRuntime.jsx("tbody", { className, ...props, children });
3334
3430
  }
3335
3431
 
3336
- const tableCaption = "_tableCaption_fn9c1_2";
3432
+ const tableCaption = "_tableCaption_tlco9_2";
3433
+ const stackedCaption = "_stackedCaption_tlco9_13";
3337
3434
  const styles$8 = {
3338
- tableCaption: tableCaption
3435
+ tableCaption: tableCaption,
3436
+ stackedCaption: stackedCaption
3339
3437
  };
3340
3438
 
3341
3439
  function TableCaption({ className, children, ...props }) {
3440
+ const { layout, captionId } = useTableContext();
3441
+ if (layout === "stacked") {
3442
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$8.tableCaption, styles$8.stackedCaption, className), ...props, id: captionId, children });
3443
+ }
3342
3444
  return /* @__PURE__ */ jsxRuntime.jsx("caption", { className: classNames(styles$8.tableCaption, className), ...props, children });
3343
3445
  }
3344
3446
 
3345
- const tableCell = "_tableCell_1lfet_2";
3346
- const left$1 = "_left_1lfet_7";
3347
- const center$1 = "_center_1lfet_11";
3348
- const right$1 = "_right_1lfet_15";
3447
+ const tableCell = "_tableCell_1492t_2";
3448
+ const left$1 = "_left_1492t_7";
3449
+ const center$1 = "_center_1492t_11";
3450
+ const right$1 = "_right_1492t_15";
3451
+ const stackedCell = "_stackedCell_1492t_20";
3452
+ const stackedPair = "_stackedPair_1492t_24";
3453
+ const stackedLabel = "_stackedLabel_1492t_32";
3454
+ const stackedValue = "_stackedValue_1492t_40";
3349
3455
  const styles$7 = {
3350
3456
  tableCell: tableCell,
3351
3457
  left: left$1,
3352
3458
  center: center$1,
3353
- right: right$1
3354
- };
3355
-
3356
- function TableCell({ className, children, align = "left", ...props }) {
3357
- return /* @__PURE__ */ jsxRuntime.jsx("td", { className: classNames(styles$7.tableCell, styles$7[align], className), ...props, children });
3459
+ right: right$1,
3460
+ stackedCell: stackedCell,
3461
+ stackedPair: stackedPair,
3462
+ stackedLabel: stackedLabel,
3463
+ stackedValue: stackedValue
3464
+ };
3465
+
3466
+ function TableCell({ className, children, align = "left", colSpan, columnLabel, ...props }) {
3467
+ const { layout, isGroupRow } = useTableContext();
3468
+ if (layout === "stacked") {
3469
+ if (columnLabel === void 0 || isGroupRow) {
3470
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$7.stackedCell, className), ...props, children });
3471
+ }
3472
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: classNames(styles$7.stackedPair, className), ...props, children: [
3473
+ /* @__PURE__ */ jsxRuntime.jsx("dt", { className: styles$7.stackedLabel, children: columnLabel }),
3474
+ /* @__PURE__ */ jsxRuntime.jsx("dd", { className: styles$7.stackedValue, children })
3475
+ ] });
3476
+ }
3477
+ return /* @__PURE__ */ jsxRuntime.jsx("td", { colSpan, className: classNames(styles$7.tableCell, styles$7[align], className), ...props, children });
3358
3478
  }
3359
3479
 
3360
3480
  function TableHeader({ className, children, ...props }) {
3481
+ const { layout } = useTableContext();
3482
+ if (layout === "stacked") {
3483
+ return null;
3484
+ }
3361
3485
  return /* @__PURE__ */ jsxRuntime.jsx("thead", { className, ...props, children });
3362
3486
  }
3363
3487
 
@@ -3379,34 +3503,89 @@ function TableHeaderCell({
3379
3503
  scope = "col",
3380
3504
  ...props
3381
3505
  }) {
3506
+ const { layout } = useTableContext();
3507
+ if (layout === "stacked") {
3508
+ return null;
3509
+ }
3382
3510
  return /* @__PURE__ */ jsxRuntime.jsx("th", { scope, className: classNames(styles$6.tableHeaderCell, styles$6[align], className), ...props, children });
3383
3511
  }
3384
3512
 
3385
- const scrollContainer = "_scrollContainer_hioz2_2";
3386
- const bare = "_bare_hioz2_15";
3387
- const table = "_table_hioz2_21";
3513
+ function getRowSegments(children) {
3514
+ return React.Children.toArray(children).reduce((segments, cell) => {
3515
+ const isLabelled = React.isValidElement(cell) && cell.props.columnLabel !== void 0;
3516
+ const openSegment = segments.at(-1);
3517
+ if (openSegment?.isLabelled === isLabelled) {
3518
+ openSegment.cells.push(cell);
3519
+ return segments;
3520
+ }
3521
+ return [...segments, { isLabelled, cells: [cell] }];
3522
+ }, []);
3523
+ }
3524
+
3525
+ function hasTableCaption(children) {
3526
+ return React.Children.toArray(children).some((child) => {
3527
+ if (!React.isValidElement(child)) {
3528
+ return false;
3529
+ }
3530
+ if (child.type === React.Fragment) {
3531
+ return hasTableCaption(child.props.children);
3532
+ }
3533
+ return child.type === TableCaption;
3534
+ });
3535
+ }
3536
+
3537
+ const container = "_container_1s7gk_2";
3538
+ const scrollContainer = "_scrollContainer_1s7gk_12";
3539
+ const stackedContainer = "_stackedContainer_1s7gk_16";
3540
+ const bare = "_bare_1s7gk_30";
3541
+ const table = "_table_1s7gk_47";
3388
3542
  const styles$5 = {
3543
+ container: container,
3389
3544
  scrollContainer: scrollContainer,
3390
- "default": "_default_hioz2_9",
3545
+ stackedContainer: stackedContainer,
3546
+ "default": "_default_1s7gk_24",
3391
3547
  bare: bare,
3392
3548
  table: table
3393
3549
  };
3394
3550
 
3395
- function TableRoot({ className, children, mode = "default", ...props }) {
3396
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$5.scrollContainer, styles$5[mode]), children: /* @__PURE__ */ jsxRuntime.jsx("table", { className: classNames(styles$5.table, className), ...props, children }) });
3551
+ function TableRoot({ className, children, mode = "default", layout = "table", ...props }) {
3552
+ const generatedId = React.useId();
3553
+ const captionId = hasTableCaption(children) ? generatedId : void 0;
3554
+ if (layout === "stacked") {
3555
+ return /* @__PURE__ */ jsxRuntime.jsx(TableProvider, { value: { layout, captionId }, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$5.container, styles$5.stackedContainer, styles$5[mode], className), ...props, children }) });
3556
+ }
3557
+ return /* @__PURE__ */ jsxRuntime.jsx(TableProvider, { value: { layout }, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$5.container, styles$5.scrollContainer, styles$5[mode]), children: /* @__PURE__ */ jsxRuntime.jsx("table", { className: classNames(styles$5.table, className), ...props, children }) }) });
3397
3558
  }
3398
3559
 
3399
- const tableRow = "_tableRow_1p3oc_2";
3400
- const group = "_group_1p3oc_16";
3401
- const current = "_current_1p3oc_23";
3560
+ const tableRow = "_tableRow_tf0oz_2";
3561
+ const stackedRow = "_stackedRow_tf0oz_12";
3562
+ const stackedPairs = "_stackedPairs_tf0oz_21";
3563
+ const group = "_group_tf0oz_29";
3564
+ const current = "_current_tf0oz_36";
3402
3565
  const styles$4 = {
3403
3566
  tableRow: tableRow,
3404
- "default": "_default_1p3oc_12",
3567
+ stackedRow: stackedRow,
3568
+ stackedPairs: stackedPairs,
3569
+ "default": "_default_tf0oz_25",
3405
3570
  group: group,
3406
3571
  current: current
3407
3572
  };
3408
3573
 
3409
3574
  function TableRow({ className, children, mode = "default", isCurrent = false, ...props }) {
3575
+ const context = useTableContext();
3576
+ if (context.layout === "stacked") {
3577
+ const isGroupRow = mode === "group";
3578
+ return /* @__PURE__ */ jsxRuntime.jsx(
3579
+ "li",
3580
+ {
3581
+ className: classNames(styles$4.stackedRow, styles$4[mode], isCurrent ? styles$4.current : void 0, className),
3582
+ ...props,
3583
+ children: /* @__PURE__ */ jsxRuntime.jsx(TableProvider, { value: { ...context, isGroupRow }, children: isGroupRow ? children : getRowSegments(children).map(
3584
+ (segment, index) => segment.isLabelled ? /* @__PURE__ */ jsxRuntime.jsx("dl", { className: styles$4.stackedPairs, children: segment.cells }, index) : segment.cells
3585
+ ) })
3586
+ }
3587
+ );
3588
+ }
3410
3589
  return /* @__PURE__ */ jsxRuntime.jsx(
3411
3590
  "tr",
3412
3591
  {