@grandbazar/ui-baza 1.5.3 → 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.cjs +228 -126
- package/dist/index.d.ts +31 -13
- package/dist/index.js +229 -127
- package/dist/style.css +89 -19
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -63,7 +63,7 @@ const green = "_green_1s8y9_43";
|
|
|
63
63
|
const neutral$3 = "_neutral_1s8y9_48";
|
|
64
64
|
const lg$7 = "_lg_1s8y9_53";
|
|
65
65
|
const md$a = "_md_1s8y9_60";
|
|
66
|
-
const styles$
|
|
66
|
+
const styles$E = {
|
|
67
67
|
badge: badge,
|
|
68
68
|
primary: primary$4,
|
|
69
69
|
secondary: secondary$5,
|
|
@@ -79,13 +79,13 @@ const styles$D = {
|
|
|
79
79
|
};
|
|
80
80
|
|
|
81
81
|
function Badge({ children, className, size = "lg", color = "accent", mode = "primary", ...props }) {
|
|
82
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$
|
|
82
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$E.badge, styles$E[size], styles$E[color], styles$E[mode], className), ...props, children });
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
const badgeTabsItem = "_badgeTabsItem_10lit_2";
|
|
86
86
|
const primary$3 = "_primary_10lit_18";
|
|
87
87
|
const secondary$4 = "_secondary_10lit_36";
|
|
88
|
-
const styles$
|
|
88
|
+
const styles$D = {
|
|
89
89
|
badgeTabsItem: badgeTabsItem,
|
|
90
90
|
primary: primary$3,
|
|
91
91
|
secondary: secondary$4
|
|
@@ -98,7 +98,7 @@ function BadgeTabsItem({ className, children, isActive, mode = "primary", ...pro
|
|
|
98
98
|
type: "button",
|
|
99
99
|
role: "tab",
|
|
100
100
|
"aria-selected": Boolean(isActive),
|
|
101
|
-
className: classNames(styles$
|
|
101
|
+
className: classNames(styles$D.badgeTabsItem, styles$D[mode], className),
|
|
102
102
|
...props,
|
|
103
103
|
children
|
|
104
104
|
}
|
|
@@ -106,12 +106,12 @@ function BadgeTabsItem({ className, children, isActive, mode = "primary", ...pro
|
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
const badgeTabsRoot = "_badgeTabsRoot_1qkat_2";
|
|
109
|
-
const styles$
|
|
109
|
+
const styles$C = {
|
|
110
110
|
badgeTabsRoot: badgeTabsRoot
|
|
111
111
|
};
|
|
112
112
|
|
|
113
113
|
function BadgeTabsRoot({ className, children, ...props }) {
|
|
114
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { role: "tablist", className: classNames(styles$
|
|
114
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { role: "tablist", className: classNames(styles$C.badgeTabsRoot, className), ...props, children });
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
function BadgeTabs(props) {
|
|
@@ -1207,7 +1207,7 @@ function IconXMarkCircle(props) {
|
|
|
1207
1207
|
const breadcrumbs = "_breadcrumbs_1bfmb_2";
|
|
1208
1208
|
const breadcrumbsItem = "_breadcrumbsItem_1bfmb_8";
|
|
1209
1209
|
const defaultSeparator = "_defaultSeparator_1bfmb_14";
|
|
1210
|
-
const styles$
|
|
1210
|
+
const styles$B = {
|
|
1211
1211
|
breadcrumbs: breadcrumbs,
|
|
1212
1212
|
breadcrumbsItem: breadcrumbsItem,
|
|
1213
1213
|
defaultSeparator: defaultSeparator
|
|
@@ -1256,7 +1256,7 @@ function Slot({
|
|
|
1256
1256
|
}
|
|
1257
1257
|
|
|
1258
1258
|
const breadcrumbItem = "_breadcrumbItem_cua4v_2";
|
|
1259
|
-
const styles$
|
|
1259
|
+
const styles$A = {
|
|
1260
1260
|
breadcrumbItem: breadcrumbItem
|
|
1261
1261
|
};
|
|
1262
1262
|
|
|
@@ -1267,7 +1267,7 @@ function BreadcrumbItem({ children, className, isActive, asChild, ...props }) {
|
|
|
1267
1267
|
{
|
|
1268
1268
|
"data-active": isActive,
|
|
1269
1269
|
"data-disabled": props.disabled,
|
|
1270
|
-
className: classNames(styles$
|
|
1270
|
+
className: classNames(styles$A.breadcrumbItem, className),
|
|
1271
1271
|
...isActive && { "aria-current": "page" },
|
|
1272
1272
|
...!asChild && { type: "button" },
|
|
1273
1273
|
...props,
|
|
@@ -1279,13 +1279,13 @@ function BreadcrumbItem({ children, className, isActive, asChild, ...props }) {
|
|
|
1279
1279
|
function Breadcrumbs({
|
|
1280
1280
|
className,
|
|
1281
1281
|
children,
|
|
1282
|
-
separator = /* @__PURE__ */ jsxRuntime.jsx(IconChevron, { className: styles$
|
|
1282
|
+
separator = /* @__PURE__ */ jsxRuntime.jsx(IconChevron, { className: styles$B.defaultSeparator })
|
|
1283
1283
|
}) {
|
|
1284
1284
|
const childrenArray = Array.isArray(children) ? children : [children];
|
|
1285
1285
|
const lastIndex = childrenArray.length - 1;
|
|
1286
|
-
return /* @__PURE__ */ jsxRuntime.jsx("nav", { "aria-label": "breadcrumb", className, children: /* @__PURE__ */ jsxRuntime.jsx("ol", { className: styles$
|
|
1287
|
-
/* @__PURE__ */ jsxRuntime.jsx("li", { className: styles$
|
|
1288
|
-
index < lastIndex && /* @__PURE__ */ jsxRuntime.jsx("li", { className: styles$
|
|
1286
|
+
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: [
|
|
1287
|
+
/* @__PURE__ */ jsxRuntime.jsx("li", { className: styles$B.breadcrumbsItem, children: item }),
|
|
1288
|
+
index < lastIndex && /* @__PURE__ */ jsxRuntime.jsx("li", { className: styles$B.breadcrumbsItem, "aria-hidden": "true", children: separator })
|
|
1289
1289
|
] }, index)) }) });
|
|
1290
1290
|
}
|
|
1291
1291
|
Breadcrumbs.Item = BreadcrumbItem;
|
|
@@ -1300,7 +1300,7 @@ const neutral$2 = "_neutral_1waqk_78";
|
|
|
1300
1300
|
const lg$6 = "_lg_1waqk_145";
|
|
1301
1301
|
const md$9 = "_md_1waqk_153";
|
|
1302
1302
|
const sm$4 = "_sm_1waqk_161";
|
|
1303
|
-
const styles$
|
|
1303
|
+
const styles$z = {
|
|
1304
1304
|
button: button,
|
|
1305
1305
|
accent: accent$3,
|
|
1306
1306
|
primary: primary$2,
|
|
@@ -1318,7 +1318,7 @@ const accent$2 = "_accent_o8iku_10";
|
|
|
1318
1318
|
const neutral$1 = "_neutral_o8iku_22";
|
|
1319
1319
|
const lg$5 = "_lg_o8iku_41";
|
|
1320
1320
|
const md$8 = "_md_o8iku_46";
|
|
1321
|
-
const styles$
|
|
1321
|
+
const styles$y = {
|
|
1322
1322
|
buttonFunction: buttonFunction,
|
|
1323
1323
|
accent: accent$2,
|
|
1324
1324
|
neutral: neutral$1,
|
|
@@ -1338,7 +1338,7 @@ function ButtonFunction({
|
|
|
1338
1338
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1339
1339
|
Component,
|
|
1340
1340
|
{
|
|
1341
|
-
className: classNames(styles$
|
|
1341
|
+
className: classNames(styles$y.buttonFunction, styles$y[color], styles$y[size], className),
|
|
1342
1342
|
...props.disabled && { "data-disabled": true },
|
|
1343
1343
|
...!asChild && { type: "button" },
|
|
1344
1344
|
...props,
|
|
@@ -1360,7 +1360,7 @@ function Button({
|
|
|
1360
1360
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1361
1361
|
Component,
|
|
1362
1362
|
{
|
|
1363
|
-
className: classNames(styles$
|
|
1363
|
+
className: classNames(styles$z.button, styles$z[color], styles$z[size], styles$z[mode], className),
|
|
1364
1364
|
...!asChild && { type: "button" },
|
|
1365
1365
|
...props,
|
|
1366
1366
|
children
|
|
@@ -1372,7 +1372,7 @@ Button.Function = ButtonFunction;
|
|
|
1372
1372
|
const checkboxWrapper = "_checkboxWrapper_k1shg_2";
|
|
1373
1373
|
const icon$2 = "_icon_k1shg_23";
|
|
1374
1374
|
const checkbox = "_checkbox_k1shg_2";
|
|
1375
|
-
const styles$
|
|
1375
|
+
const styles$x = {
|
|
1376
1376
|
checkboxWrapper: checkboxWrapper,
|
|
1377
1377
|
icon: icon$2,
|
|
1378
1378
|
checkbox: checkbox
|
|
@@ -1385,11 +1385,11 @@ function Checkbox({ className, label, indeterminate, ...props }) {
|
|
|
1385
1385
|
{
|
|
1386
1386
|
"data-disabled": `${Boolean(props.disabled)}`,
|
|
1387
1387
|
"data-state": dataState,
|
|
1388
|
-
className: classNames(styles$
|
|
1388
|
+
className: classNames(styles$x.checkboxWrapper, className),
|
|
1389
1389
|
children: [
|
|
1390
|
-
dataState === "checked" && /* @__PURE__ */ jsxRuntime.jsx(IconCheck, { "data-disabled": `${Boolean(props.disabled)}`, className: styles$
|
|
1391
|
-
dataState === "indeterminate" && /* @__PURE__ */ jsxRuntime.jsx(IconMinus, { "data-disabled": `${Boolean(props.disabled)}`, className: styles$
|
|
1392
|
-
/* @__PURE__ */ jsxRuntime.jsx("input", { "data-state": dataState, type: "checkbox", className: styles$
|
|
1390
|
+
dataState === "checked" && /* @__PURE__ */ jsxRuntime.jsx(IconCheck, { "data-disabled": `${Boolean(props.disabled)}`, className: styles$x.icon }),
|
|
1391
|
+
dataState === "indeterminate" && /* @__PURE__ */ jsxRuntime.jsx(IconMinus, { "data-disabled": `${Boolean(props.disabled)}`, className: styles$x.icon }),
|
|
1392
|
+
/* @__PURE__ */ jsxRuntime.jsx("input", { "data-state": dataState, type: "checkbox", className: styles$x.checkbox, ...props }),
|
|
1393
1393
|
label
|
|
1394
1394
|
]
|
|
1395
1395
|
}
|
|
@@ -1397,7 +1397,7 @@ function Checkbox({ className, label, indeterminate, ...props }) {
|
|
|
1397
1397
|
}
|
|
1398
1398
|
|
|
1399
1399
|
const chip = "_chip_dj4kw_2";
|
|
1400
|
-
const styles$
|
|
1400
|
+
const styles$w = {
|
|
1401
1401
|
chip: chip
|
|
1402
1402
|
};
|
|
1403
1403
|
|
|
@@ -1405,7 +1405,7 @@ function Chip({ isSelected, children, className, disabled, ...props }) {
|
|
|
1405
1405
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1406
1406
|
"div",
|
|
1407
1407
|
{
|
|
1408
|
-
className: classNames(styles$
|
|
1408
|
+
className: classNames(styles$w.chip, className),
|
|
1409
1409
|
"data-selected": isSelected,
|
|
1410
1410
|
"data-disabled": disabled,
|
|
1411
1411
|
"aria-disabled": disabled,
|
|
@@ -1423,7 +1423,7 @@ const accent$1 = "_accent_ww0fb_37";
|
|
|
1423
1423
|
const neutral = "_neutral_ww0fb_42";
|
|
1424
1424
|
const secondary$2 = "_secondary_ww0fb_47";
|
|
1425
1425
|
const white = "_white_ww0fb_52";
|
|
1426
|
-
const styles$
|
|
1426
|
+
const styles$v = {
|
|
1427
1427
|
root: root$1,
|
|
1428
1428
|
lg: lg$4,
|
|
1429
1429
|
md: md$7,
|
|
@@ -1435,7 +1435,7 @@ const styles$u = {
|
|
|
1435
1435
|
};
|
|
1436
1436
|
|
|
1437
1437
|
function Counter({ className, size = "lg", color = "red", ...props }) {
|
|
1438
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$
|
|
1438
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$v.root, styles$v[size], styles$v[color], className), ...props });
|
|
1439
1439
|
}
|
|
1440
1440
|
|
|
1441
1441
|
const LOCALE_FIRST_DAY_OF_WEEK = {
|
|
@@ -1445,7 +1445,7 @@ const LOCALE_FIRST_DAY_OF_WEEK = {
|
|
|
1445
1445
|
|
|
1446
1446
|
const datePickerCellWrapper = "_datePickerCellWrapper_np1gx_2";
|
|
1447
1447
|
const datePickerCell = "_datePickerCell_np1gx_2";
|
|
1448
|
-
const styles$
|
|
1448
|
+
const styles$u = {
|
|
1449
1449
|
datePickerCellWrapper: datePickerCellWrapper,
|
|
1450
1450
|
datePickerCell: datePickerCell,
|
|
1451
1451
|
"radius-none": "_radius-none_np1gx_83",
|
|
@@ -1455,10 +1455,10 @@ const styles$t = {
|
|
|
1455
1455
|
};
|
|
1456
1456
|
|
|
1457
1457
|
function DatePickerCell({ children, className, state, isCurrent, radius = "both", ...props }) {
|
|
1458
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$
|
|
1458
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$u.datePickerCellWrapper, styles$u[`radius-${radius}`]), "data-state": state, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1459
1459
|
"button",
|
|
1460
1460
|
{
|
|
1461
|
-
className: classNames(styles$
|
|
1461
|
+
className: classNames(styles$u.datePickerCell, styles$u[`radius-${radius}`], className),
|
|
1462
1462
|
type: "button",
|
|
1463
1463
|
role: "gridcell",
|
|
1464
1464
|
"aria-selected": state === "selected",
|
|
@@ -1528,7 +1528,7 @@ function normalizeDateRange(firstDate, secondDate) {
|
|
|
1528
1528
|
const datePickerField = "_datePickerField_1qk8s_2";
|
|
1529
1529
|
const datePickerFieldCalendar = "_datePickerFieldCalendar_1qk8s_8";
|
|
1530
1530
|
const datePickerFieldWeek = "_datePickerFieldWeek_1qk8s_14";
|
|
1531
|
-
const styles$
|
|
1531
|
+
const styles$t = {
|
|
1532
1532
|
datePickerField: datePickerField,
|
|
1533
1533
|
datePickerFieldCalendar: datePickerFieldCalendar,
|
|
1534
1534
|
datePickerFieldWeek: datePickerFieldWeek
|
|
@@ -1543,9 +1543,9 @@ function DatePickerField({
|
|
|
1543
1543
|
firstDayOfWeek = LOCALE_FIRST_DAY_OF_WEEK.ru
|
|
1544
1544
|
}) {
|
|
1545
1545
|
const weeks = React.useMemo(() => getCalendarGrid(month, year, firstDayOfWeek), [month, year, firstDayOfWeek]);
|
|
1546
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: classNames(styles$
|
|
1546
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: classNames(styles$t.datePickerField, className), role: "grid", children: [
|
|
1547
1547
|
renderWeekdays?.(),
|
|
1548
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$
|
|
1548
|
+
/* @__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
1549
|
] });
|
|
1550
1550
|
}
|
|
1551
1551
|
|
|
@@ -1586,13 +1586,13 @@ const I18N_MONTH_LABELS = {
|
|
|
1586
1586
|
|
|
1587
1587
|
const datePickerWeekdays = "_datePickerWeekdays_p8tsm_2";
|
|
1588
1588
|
const datePickerWeekday = "_datePickerWeekday_p8tsm_2";
|
|
1589
|
-
const styles$
|
|
1589
|
+
const styles$s = {
|
|
1590
1590
|
datePickerWeekdays: datePickerWeekdays,
|
|
1591
1591
|
datePickerWeekday: datePickerWeekday
|
|
1592
1592
|
};
|
|
1593
1593
|
|
|
1594
1594
|
function DatePickerWeekDays({ className, locale = "ru" }) {
|
|
1595
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$
|
|
1595
|
+
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
1596
|
}
|
|
1597
1597
|
|
|
1598
1598
|
function DatePicker() {
|
|
@@ -1828,21 +1828,21 @@ const DROPDOWN_PORTAL_SIDE_CONFIG = {
|
|
|
1828
1828
|
};
|
|
1829
1829
|
|
|
1830
1830
|
const dropdownContent = "_dropdownContent_12tkb_2";
|
|
1831
|
-
const styles$
|
|
1831
|
+
const styles$r = {
|
|
1832
1832
|
dropdownContent: dropdownContent
|
|
1833
1833
|
};
|
|
1834
1834
|
|
|
1835
1835
|
function DropdownContent({ className, children, ...props }) {
|
|
1836
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$
|
|
1836
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$r.dropdownContent, className), ...props, children });
|
|
1837
1837
|
}
|
|
1838
1838
|
|
|
1839
1839
|
const dropdownItem = "_dropdownItem_msc4i_2";
|
|
1840
|
-
const styles$
|
|
1840
|
+
const styles$q = {
|
|
1841
1841
|
dropdownItem: dropdownItem
|
|
1842
1842
|
};
|
|
1843
1843
|
|
|
1844
1844
|
function DropdownItem({ className, children, disabled, ...props }) {
|
|
1845
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$
|
|
1845
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$q.dropdownItem, className), role: "menuitem", "data-disabled": disabled, ...props, children });
|
|
1846
1846
|
}
|
|
1847
1847
|
|
|
1848
1848
|
const CLICK_OUTSIDE_IGNORE_DATA_NAME = "data-clickoutside-ignore";
|
|
@@ -2270,7 +2270,7 @@ function useTriggerHandlersByEventTrigger() {
|
|
|
2270
2270
|
}
|
|
2271
2271
|
|
|
2272
2272
|
const dropdownPortal = "_dropdownPortal_p3tdk_2";
|
|
2273
|
-
const styles$
|
|
2273
|
+
const styles$p = {
|
|
2274
2274
|
dropdownPortal: dropdownPortal
|
|
2275
2275
|
};
|
|
2276
2276
|
|
|
@@ -2310,7 +2310,7 @@ function DropdownPortal({
|
|
|
2310
2310
|
...style
|
|
2311
2311
|
},
|
|
2312
2312
|
ref: portalRef,
|
|
2313
|
-
className: classNames(styles$
|
|
2313
|
+
className: classNames(styles$p.dropdownPortal, className),
|
|
2314
2314
|
...handlersByTrigger[triggerEvent],
|
|
2315
2315
|
...isNested && { [CLICK_OUTSIDE_IGNORE_DATA_NAME]: "true" },
|
|
2316
2316
|
children
|
|
@@ -2367,7 +2367,7 @@ const closeButton = "_closeButton_1kerp_74";
|
|
|
2367
2367
|
const closeIcon = "_closeIcon_1kerp_95";
|
|
2368
2368
|
const description = "_description_1kerp_100";
|
|
2369
2369
|
const actions = "_actions_1kerp_108";
|
|
2370
|
-
const styles$
|
|
2370
|
+
const styles$o = {
|
|
2371
2371
|
notificationInline: notificationInline,
|
|
2372
2372
|
accent: accent,
|
|
2373
2373
|
negative: negative,
|
|
@@ -2402,15 +2402,15 @@ function NotificationInline({
|
|
|
2402
2402
|
...props
|
|
2403
2403
|
}) {
|
|
2404
2404
|
const StatusIcon = STATUS_ICONS[color];
|
|
2405
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: classNames(styles$
|
|
2406
|
-
/* @__PURE__ */ jsxRuntime.jsx(StatusIcon, { className: styles$
|
|
2407
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: styles$
|
|
2408
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: styles$
|
|
2409
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$
|
|
2410
|
-
onClose && /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", "aria-label": "Close", className: styles$
|
|
2405
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: classNames(styles$o.notificationInline, styles$o[color], styles$o[mode], className), ...props, children: [
|
|
2406
|
+
/* @__PURE__ */ jsxRuntime.jsx(StatusIcon, { className: styles$o.statusIcon, "aria-hidden": "true" }),
|
|
2407
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: styles$o.body, children: [
|
|
2408
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: styles$o.titleRow, children: [
|
|
2409
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$o.title, children: title }),
|
|
2410
|
+
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
2411
|
] }),
|
|
2412
|
-
description && /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$
|
|
2413
|
-
children && /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$
|
|
2412
|
+
description && /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$o.description, children: description }),
|
|
2413
|
+
children && /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$o.actions, children })
|
|
2414
2414
|
] })
|
|
2415
2415
|
] });
|
|
2416
2416
|
}
|
|
@@ -2426,7 +2426,7 @@ const BOUNDARY_PAGES = 2;
|
|
|
2426
2426
|
const paginationItem = "_paginationItem_1ll6p_2";
|
|
2427
2427
|
const md$6 = "_md_1ll6p_46";
|
|
2428
2428
|
const sm$3 = "_sm_1ll6p_60";
|
|
2429
|
-
const styles$
|
|
2429
|
+
const styles$n = {
|
|
2430
2430
|
paginationItem: paginationItem,
|
|
2431
2431
|
md: md$6,
|
|
2432
2432
|
sm: sm$3
|
|
@@ -2438,7 +2438,7 @@ function PaginationItem({ className, children, size = "md", isCurrent, ...props
|
|
|
2438
2438
|
{
|
|
2439
2439
|
type: "button",
|
|
2440
2440
|
...isCurrent && { "aria-current": "page" },
|
|
2441
|
-
className: classNames(styles$
|
|
2441
|
+
className: classNames(styles$n.paginationItem, styles$n[size], className),
|
|
2442
2442
|
...props,
|
|
2443
2443
|
children
|
|
2444
2444
|
}
|
|
@@ -2475,7 +2475,7 @@ function getVisiblePages(totalPages, maxVisiblePagesWithEllipsis, currentPage) {
|
|
|
2475
2475
|
const paginationRoot = "_paginationRoot_c5fwx_2";
|
|
2476
2476
|
const paginationList = "_paginationList_c5fwx_7";
|
|
2477
2477
|
const arrowLeft = "_arrowLeft_c5fwx_13";
|
|
2478
|
-
const styles$
|
|
2478
|
+
const styles$m = {
|
|
2479
2479
|
paginationRoot: paginationRoot,
|
|
2480
2480
|
paginationList: paginationList,
|
|
2481
2481
|
arrowLeft: arrowLeft
|
|
@@ -2502,9 +2502,9 @@ function PaginationRoot({
|
|
|
2502
2502
|
{
|
|
2503
2503
|
"aria-label": "pagination navigation",
|
|
2504
2504
|
role: "navigation",
|
|
2505
|
-
className: classNames(styles$
|
|
2505
|
+
className: classNames(styles$m.paginationRoot, className),
|
|
2506
2506
|
...props,
|
|
2507
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs("ul", { className: styles$
|
|
2507
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs("ul", { className: styles$m.paginationList, children: [
|
|
2508
2508
|
showArrows && /* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2509
2509
|
PaginationItem$1,
|
|
2510
2510
|
{
|
|
@@ -2512,7 +2512,7 @@ function PaginationRoot({
|
|
|
2512
2512
|
onClick: () => onPageChange(currentPage - 1),
|
|
2513
2513
|
disabled: isFirstPage,
|
|
2514
2514
|
size,
|
|
2515
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(IconChevron$1, { className: styles$
|
|
2515
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(IconChevron$1, { className: styles$m.arrowLeft })
|
|
2516
2516
|
}
|
|
2517
2517
|
) }),
|
|
2518
2518
|
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(
|
|
@@ -2552,7 +2552,7 @@ const fill$1 = "_fill_33gbh_23";
|
|
|
2552
2552
|
const trail = "_trail_33gbh_28";
|
|
2553
2553
|
const sm$2 = "_sm_33gbh_32";
|
|
2554
2554
|
const md$5 = "_md_33gbh_36";
|
|
2555
|
-
const styles$
|
|
2555
|
+
const styles$l = {
|
|
2556
2556
|
root: root,
|
|
2557
2557
|
segment: segment,
|
|
2558
2558
|
flexGrow: flexGrow,
|
|
@@ -2573,7 +2573,7 @@ function ProgressBarLinear({
|
|
|
2573
2573
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2574
2574
|
"div",
|
|
2575
2575
|
{
|
|
2576
|
-
className: classNames(styles$
|
|
2576
|
+
className: classNames(styles$l.root, styles$l[size], className),
|
|
2577
2577
|
role: "progressbar",
|
|
2578
2578
|
"aria-valuenow": clampedPercent,
|
|
2579
2579
|
"aria-valuemin": 0,
|
|
@@ -2585,14 +2585,14 @@ function ProgressBarLinear({
|
|
|
2585
2585
|
(Boolean(clampedPercent) || showFillOnZero) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2586
2586
|
"div",
|
|
2587
2587
|
{
|
|
2588
|
-
className: classNames(styles$
|
|
2588
|
+
className: classNames(styles$l.segment, styles$l.fill),
|
|
2589
2589
|
style: {
|
|
2590
2590
|
"--clamped-percent": `${clampedPercent}%`
|
|
2591
2591
|
},
|
|
2592
2592
|
"aria-hidden": "true"
|
|
2593
2593
|
}
|
|
2594
2594
|
),
|
|
2595
|
-
clampedPercent < 100 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$
|
|
2595
|
+
clampedPercent < 100 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$l.segment, styles$l.flexGrow, styles$l.trail), "aria-hidden": "true" })
|
|
2596
2596
|
]
|
|
2597
2597
|
}
|
|
2598
2598
|
);
|
|
@@ -2612,7 +2612,7 @@ function ProgressBarSteps({
|
|
|
2612
2612
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2613
2613
|
"div",
|
|
2614
2614
|
{
|
|
2615
|
-
className: classNames(styles$
|
|
2615
|
+
className: classNames(styles$l.segment, styles$l.flexGrow, isFilled ? styles$l.fill : styles$l.trail),
|
|
2616
2616
|
"aria-hidden": "true"
|
|
2617
2617
|
},
|
|
2618
2618
|
index
|
|
@@ -2621,7 +2621,7 @@ function ProgressBarSteps({
|
|
|
2621
2621
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2622
2622
|
"div",
|
|
2623
2623
|
{
|
|
2624
|
-
className: classNames(styles$
|
|
2624
|
+
className: classNames(styles$l.root, styles$l[size], className),
|
|
2625
2625
|
role: "progressbar",
|
|
2626
2626
|
"aria-valuenow": clampedCurrent,
|
|
2627
2627
|
"aria-valuemin": 0,
|
|
@@ -2641,14 +2641,14 @@ ProgressBar.Steps = ProgressBarSteps;
|
|
|
2641
2641
|
|
|
2642
2642
|
const radioWrapper = "_radioWrapper_13xie_2";
|
|
2643
2643
|
const radio = "_radio_13xie_2";
|
|
2644
|
-
const styles$
|
|
2644
|
+
const styles$k = {
|
|
2645
2645
|
radioWrapper: radioWrapper,
|
|
2646
2646
|
radio: radio
|
|
2647
2647
|
};
|
|
2648
2648
|
|
|
2649
2649
|
function RadioButton({ className, label, ...props }) {
|
|
2650
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("label", { "data-disabled": `${Boolean(props.disabled)}`, className: classNames(styles$
|
|
2651
|
-
/* @__PURE__ */ jsxRuntime.jsx("input", { type: "radio", className: styles$
|
|
2650
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("label", { "data-disabled": `${Boolean(props.disabled)}`, className: classNames(styles$k.radioWrapper, className), children: [
|
|
2651
|
+
/* @__PURE__ */ jsxRuntime.jsx("input", { type: "radio", className: styles$k.radio, ...props }),
|
|
2652
2652
|
label
|
|
2653
2653
|
] });
|
|
2654
2654
|
}
|
|
@@ -2659,7 +2659,7 @@ const textFieldAreaWrapper = "_textFieldAreaWrapper_pia91_2";
|
|
|
2659
2659
|
const textFieldAreaLabel = "_textFieldAreaLabel_pia91_14";
|
|
2660
2660
|
const textFieldAreaLabelSuffix = "_textFieldAreaLabelSuffix_pia91_24";
|
|
2661
2661
|
const textFieldArea = "_textFieldArea_pia91_2";
|
|
2662
|
-
const styles$
|
|
2662
|
+
const styles$j = {
|
|
2663
2663
|
textFieldAreaWrapper: textFieldAreaWrapper,
|
|
2664
2664
|
textFieldAreaLabel: textFieldAreaLabel,
|
|
2665
2665
|
textFieldAreaLabelSuffix: textFieldAreaLabelSuffix,
|
|
@@ -2680,14 +2680,14 @@ function TextFieldArea({
|
|
|
2680
2680
|
"data-invalid": isInvalid,
|
|
2681
2681
|
"aria-invalid": isInvalid,
|
|
2682
2682
|
"data-element": "field",
|
|
2683
|
-
className: classNames(styles$
|
|
2683
|
+
className: classNames(styles$j.textFieldArea, className),
|
|
2684
2684
|
placeholder,
|
|
2685
2685
|
...props
|
|
2686
2686
|
}
|
|
2687
2687
|
);
|
|
2688
|
-
return floatingLabel ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles$
|
|
2689
|
-
/* @__PURE__ */ jsxRuntime.jsx("label", { htmlFor: props.id, className: styles$
|
|
2690
|
-
floatingLabelSuffix && /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$
|
|
2688
|
+
return floatingLabel ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles$j.textFieldAreaWrapper, children: [
|
|
2689
|
+
/* @__PURE__ */ jsxRuntime.jsx("label", { htmlFor: props.id, className: styles$j.textFieldAreaLabel, "data-element": "label", children: floatingLabel }),
|
|
2690
|
+
floatingLabelSuffix && /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$j.textFieldAreaLabelSuffix, "data-element": "label-suffix", children: floatingLabelSuffix }),
|
|
2691
2691
|
textFieldArea
|
|
2692
2692
|
] }) : textFieldArea;
|
|
2693
2693
|
}
|
|
@@ -2695,7 +2695,7 @@ function TextFieldArea({
|
|
|
2695
2695
|
const textFieldInputWrapper = "_textFieldInputWrapper_1m8sa_2";
|
|
2696
2696
|
const textFieldInputLabel = "_textFieldInputLabel_1m8sa_9";
|
|
2697
2697
|
const textFieldInput = "_textFieldInput_1m8sa_2";
|
|
2698
|
-
const styles$
|
|
2698
|
+
const styles$i = {
|
|
2699
2699
|
textFieldInputWrapper: textFieldInputWrapper,
|
|
2700
2700
|
textFieldInputLabel: textFieldInputLabel,
|
|
2701
2701
|
textFieldInput: textFieldInput
|
|
@@ -2714,37 +2714,37 @@ function TextFieldInput({
|
|
|
2714
2714
|
"data-invalid": isInvalid,
|
|
2715
2715
|
"aria-invalid": isInvalid,
|
|
2716
2716
|
"data-element": "field",
|
|
2717
|
-
className: classNames(styles$
|
|
2717
|
+
className: classNames(styles$i.textFieldInput, className),
|
|
2718
2718
|
placeholder,
|
|
2719
2719
|
...props
|
|
2720
2720
|
}
|
|
2721
2721
|
);
|
|
2722
|
-
return floatingLabel ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles$
|
|
2723
|
-
/* @__PURE__ */ jsxRuntime.jsx("label", { htmlFor: props.id, className: styles$
|
|
2722
|
+
return floatingLabel ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles$i.textFieldInputWrapper, children: [
|
|
2723
|
+
/* @__PURE__ */ jsxRuntime.jsx("label", { htmlFor: props.id, className: styles$i.textFieldInputLabel, "data-element": "label", children: floatingLabel }),
|
|
2724
2724
|
textFieldInput
|
|
2725
2725
|
] }) : textFieldInput;
|
|
2726
2726
|
}
|
|
2727
2727
|
|
|
2728
2728
|
const textFieldLabel = "_textFieldLabel_1xy6x_2";
|
|
2729
|
-
const styles$
|
|
2729
|
+
const styles$h = {
|
|
2730
2730
|
textFieldLabel: textFieldLabel
|
|
2731
2731
|
};
|
|
2732
2732
|
|
|
2733
2733
|
function TextFieldLabel({ className, children, isRequired, ...props }) {
|
|
2734
|
-
return /* @__PURE__ */ jsxRuntime.jsx("label", { className: classNames(styles$
|
|
2734
|
+
return /* @__PURE__ */ jsxRuntime.jsx("label", { className: classNames(styles$h.textFieldLabel, className), "data-required": isRequired, ...props, children });
|
|
2735
2735
|
}
|
|
2736
2736
|
|
|
2737
2737
|
const textFieldRoot = "_textFieldRoot_cs7mv_2";
|
|
2738
2738
|
const lg$3 = "_lg_cs7mv_38";
|
|
2739
2739
|
const md$4 = "_md_cs7mv_70";
|
|
2740
|
-
const styles$
|
|
2740
|
+
const styles$g = {
|
|
2741
2741
|
textFieldRoot: textFieldRoot,
|
|
2742
2742
|
lg: lg$3,
|
|
2743
2743
|
md: md$4
|
|
2744
2744
|
};
|
|
2745
2745
|
|
|
2746
2746
|
function TextFieldRoot({ className, size = "lg", ...props }) {
|
|
2747
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$
|
|
2747
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$g.textFieldRoot, styles$g[size], className), ...props });
|
|
2748
2748
|
}
|
|
2749
2749
|
|
|
2750
2750
|
function TextField() {
|
|
@@ -2759,7 +2759,7 @@ const custom = "_custom_gh87y_15";
|
|
|
2759
2759
|
const icon$1 = "_icon_gh87y_25";
|
|
2760
2760
|
const inputCustomWrapper = "_inputCustomWrapper_gh87y_34";
|
|
2761
2761
|
const customButton = "_customButton_gh87y_49";
|
|
2762
|
-
const styles$
|
|
2762
|
+
const styles$f = {
|
|
2763
2763
|
search: search,
|
|
2764
2764
|
"default": "_default_gh87y_10",
|
|
2765
2765
|
custom: custom,
|
|
@@ -2785,7 +2785,7 @@ function Search(props) {
|
|
|
2785
2785
|
value && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2786
2786
|
IconXMark.Small,
|
|
2787
2787
|
{
|
|
2788
|
-
className: styles$
|
|
2788
|
+
className: styles$f.icon,
|
|
2789
2789
|
"aria-label": "clear search",
|
|
2790
2790
|
role: "button",
|
|
2791
2791
|
onClick: () => {
|
|
@@ -2799,13 +2799,13 @@ function Search(props) {
|
|
|
2799
2799
|
}
|
|
2800
2800
|
)
|
|
2801
2801
|
] });
|
|
2802
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(TextField.Root, { size: "md", className: classNames(styles$
|
|
2802
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(TextField.Root, { size: "md", className: classNames(styles$f.search, styles$f[mode], className), children: [
|
|
2803
2803
|
mode === "default" && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2804
|
-
/* @__PURE__ */ jsxRuntime.jsx(IconSearch, { className: styles$
|
|
2804
|
+
/* @__PURE__ */ jsxRuntime.jsx(IconSearch, { className: styles$f.icon, "data-element": "icon" }),
|
|
2805
2805
|
inputField
|
|
2806
2806
|
] }),
|
|
2807
2807
|
mode === "custom" && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2808
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$
|
|
2808
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$f.inputCustomWrapper, children: inputField }),
|
|
2809
2809
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2810
2810
|
"button",
|
|
2811
2811
|
{
|
|
@@ -2813,11 +2813,11 @@ function Search(props) {
|
|
|
2813
2813
|
type: "button",
|
|
2814
2814
|
onClick: props.onSearch,
|
|
2815
2815
|
"data-element": "custom-button",
|
|
2816
|
-
className: styles$
|
|
2816
|
+
className: styles$f.customButton,
|
|
2817
2817
|
style: {
|
|
2818
2818
|
"--custom-button-width": `${props.buttonWidth ?? DEFAULT_CUSTOM_SEARCH_BUTTON_WIDTH}px`
|
|
2819
2819
|
},
|
|
2820
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(IconSearch, { className: classNames(styles$
|
|
2820
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(IconSearch, { className: classNames(styles$f.icon), "data-element": "icon" })
|
|
2821
2821
|
}
|
|
2822
2822
|
)
|
|
2823
2823
|
] })
|
|
@@ -2843,7 +2843,7 @@ function useSegmentControlContext() {
|
|
|
2843
2843
|
const segmentControlItem = "_segmentControlItem_178px_2";
|
|
2844
2844
|
const lg$2 = "_lg_178px_23";
|
|
2845
2845
|
const md$3 = "_md_178px_28";
|
|
2846
|
-
const styles$
|
|
2846
|
+
const styles$e = {
|
|
2847
2847
|
segmentControlItem: segmentControlItem,
|
|
2848
2848
|
lg: lg$2,
|
|
2849
2849
|
md: md$3
|
|
@@ -2859,7 +2859,7 @@ function SegmentControlItem({ className, children, value, ...props }) {
|
|
|
2859
2859
|
"aria-checked": value === activeValue,
|
|
2860
2860
|
"data-state": value === activeValue ? "on" : "off",
|
|
2861
2861
|
"data-value": value,
|
|
2862
|
-
className: classNames(styles$
|
|
2862
|
+
className: classNames(styles$e.segmentControlItem, styles$e[size], className),
|
|
2863
2863
|
...props,
|
|
2864
2864
|
children
|
|
2865
2865
|
}
|
|
@@ -2896,7 +2896,7 @@ const showAfterDelay = "_showAfterDelay_pulca_1";
|
|
|
2896
2896
|
const lg$1 = "_lg_pulca_19";
|
|
2897
2897
|
const md$2 = "_md_pulca_23";
|
|
2898
2898
|
const indicator$1 = "_indicator_pulca_28";
|
|
2899
|
-
const styles$
|
|
2899
|
+
const styles$d = {
|
|
2900
2900
|
segmentControlRoot: segmentControlRoot,
|
|
2901
2901
|
showAfterDelay: showAfterDelay,
|
|
2902
2902
|
lg: lg$1,
|
|
@@ -2911,11 +2911,11 @@ function SegmentControlRoot({ className, children, value, size = "md", ...props
|
|
|
2911
2911
|
{
|
|
2912
2912
|
ref: rootRef,
|
|
2913
2913
|
role: "radiogroup",
|
|
2914
|
-
className: classNames(styles$
|
|
2914
|
+
className: classNames(styles$d.segmentControlRoot, styles$d[size], className),
|
|
2915
2915
|
...props,
|
|
2916
2916
|
children: [
|
|
2917
2917
|
children,
|
|
2918
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$
|
|
2918
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$d.indicator, styles$d[size]), style: indicatorStyle })
|
|
2919
2919
|
]
|
|
2920
2920
|
}
|
|
2921
2921
|
) });
|
|
@@ -3010,7 +3010,7 @@ const mark = "_mark_vuele_39";
|
|
|
3010
3010
|
const markDot = "_markDot_vuele_43";
|
|
3011
3011
|
const track = "_track_vuele_56";
|
|
3012
3012
|
const marks = "_marks_vuele_106";
|
|
3013
|
-
const styles$
|
|
3013
|
+
const styles$c = {
|
|
3014
3014
|
slider: slider,
|
|
3015
3015
|
fill: fill,
|
|
3016
3016
|
rail: rail,
|
|
@@ -3022,16 +3022,16 @@ const styles$b = {
|
|
|
3022
3022
|
};
|
|
3023
3023
|
|
|
3024
3024
|
function SliderMarks({ marks, min, max, activeFrom, activeTo }) {
|
|
3025
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$
|
|
3025
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$c.marks, children: marks.map(({ value, label }) => {
|
|
3026
3026
|
const isActive = value >= activeFrom && value <= activeTo;
|
|
3027
3027
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3028
3028
|
"div",
|
|
3029
3029
|
{
|
|
3030
3030
|
"data-state": isActive ? "active" : "default",
|
|
3031
|
-
className: styles$
|
|
3031
|
+
className: styles$c.mark,
|
|
3032
3032
|
style: { insetInlineStart: `${getPercent(value, { min, max })}%` },
|
|
3033
3033
|
children: [
|
|
3034
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$
|
|
3034
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$c.markDot }),
|
|
3035
3035
|
label
|
|
3036
3036
|
]
|
|
3037
3037
|
},
|
|
@@ -3154,7 +3154,7 @@ function SliderBase({
|
|
|
3154
3154
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3155
3155
|
"div",
|
|
3156
3156
|
{
|
|
3157
|
-
className: classNames(styles$
|
|
3157
|
+
className: classNames(styles$c.slider, className),
|
|
3158
3158
|
"data-disabled": disabled,
|
|
3159
3159
|
"data-marks": Boolean(marks?.length),
|
|
3160
3160
|
...props,
|
|
@@ -3162,18 +3162,18 @@ function SliderBase({
|
|
|
3162
3162
|
"div",
|
|
3163
3163
|
{
|
|
3164
3164
|
ref: railRef,
|
|
3165
|
-
className: styles$
|
|
3165
|
+
className: styles$c.rail,
|
|
3166
3166
|
onPointerDown: handlePointerDown,
|
|
3167
3167
|
onPointerMove: handlePointerMove,
|
|
3168
3168
|
onPointerUp: stopDragging,
|
|
3169
3169
|
onPointerCancel: stopDragging,
|
|
3170
3170
|
onLostPointerCapture: handleLostPointerCapture,
|
|
3171
3171
|
children: [
|
|
3172
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$
|
|
3172
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$c.track }),
|
|
3173
3173
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3174
3174
|
"div",
|
|
3175
3175
|
{
|
|
3176
|
-
className: styles$
|
|
3176
|
+
className: styles$c.fill,
|
|
3177
3177
|
style: { insetInlineStart: `${toPercent(fillFrom)}%`, insetInlineEnd: `${100 - toPercent(fillTo)}%` }
|
|
3178
3178
|
}
|
|
3179
3179
|
),
|
|
@@ -3195,7 +3195,7 @@ function SliderBase({
|
|
|
3195
3195
|
"aria-describedby": ariaDescribedBy,
|
|
3196
3196
|
"aria-disabled": disabled,
|
|
3197
3197
|
"aria-orientation": "horizontal",
|
|
3198
|
-
className: styles$
|
|
3198
|
+
className: styles$c.handle,
|
|
3199
3199
|
style: { insetInlineStart: `${toPercent(value)}%` },
|
|
3200
3200
|
onKeyDown: (event) => handleKeyDown(event, index)
|
|
3201
3201
|
},
|
|
@@ -3229,7 +3229,7 @@ const lg = "_lg_103n3_24";
|
|
|
3229
3229
|
const primary$1 = "_primary_103n3_31";
|
|
3230
3230
|
const secondary$1 = "_secondary_103n3_41";
|
|
3231
3231
|
const value = "_value_103n3_50";
|
|
3232
|
-
const styles$
|
|
3232
|
+
const styles$b = {
|
|
3233
3233
|
stepper: stepper,
|
|
3234
3234
|
sm: sm$1,
|
|
3235
3235
|
md: md$1,
|
|
@@ -3270,7 +3270,7 @@ function Stepper({
|
|
|
3270
3270
|
{
|
|
3271
3271
|
role: "group",
|
|
3272
3272
|
"aria-label": "Stepper",
|
|
3273
|
-
className: classNames(styles$
|
|
3273
|
+
className: classNames(styles$b.stepper, styles$b[size], styles$b[mode], className),
|
|
3274
3274
|
"data-disabled": disabled,
|
|
3275
3275
|
...props,
|
|
3276
3276
|
children: [
|
|
@@ -3286,7 +3286,7 @@ function Stepper({
|
|
|
3286
3286
|
children: /* @__PURE__ */ jsxRuntime.jsx(IconMinus, {})
|
|
3287
3287
|
}
|
|
3288
3288
|
),
|
|
3289
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$
|
|
3289
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$b.value, "aria-live": "polite", children: value }),
|
|
3290
3290
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3291
3291
|
Button,
|
|
3292
3292
|
{
|
|
@@ -3306,7 +3306,7 @@ function Stepper({
|
|
|
3306
3306
|
|
|
3307
3307
|
const switchWrapper = "_switchWrapper_1yukb_2";
|
|
3308
3308
|
const icon = "_icon_1yukb_25";
|
|
3309
|
-
const styles$
|
|
3309
|
+
const styles$a = {
|
|
3310
3310
|
switchWrapper: switchWrapper,
|
|
3311
3311
|
icon: icon,
|
|
3312
3312
|
"switch": "_switch_1yukb_2"
|
|
@@ -3319,45 +3319,92 @@ function Switch({ className, label, indeterminate, ...props }) {
|
|
|
3319
3319
|
{
|
|
3320
3320
|
"data-disabled": `${Boolean(props.disabled)}`,
|
|
3321
3321
|
"data-state": dataState,
|
|
3322
|
-
className: classNames(styles$
|
|
3322
|
+
className: classNames(styles$a.switchWrapper, className),
|
|
3323
3323
|
children: [
|
|
3324
|
-
dataState === "indeterminate" && /* @__PURE__ */ jsxRuntime.jsx(IconMinus, { "data-disabled": `${Boolean(props.disabled)}`, className: styles$
|
|
3325
|
-
/* @__PURE__ */ jsxRuntime.jsx("input", { "data-state": dataState, type: "checkbox", role: "switch", className: styles$
|
|
3324
|
+
dataState === "indeterminate" && /* @__PURE__ */ jsxRuntime.jsx(IconMinus, { "data-disabled": `${Boolean(props.disabled)}`, className: styles$a.icon }),
|
|
3325
|
+
/* @__PURE__ */ jsxRuntime.jsx("input", { "data-state": dataState, type: "checkbox", role: "switch", className: styles$a.switch, ...props }),
|
|
3326
3326
|
label
|
|
3327
3327
|
]
|
|
3328
3328
|
}
|
|
3329
3329
|
);
|
|
3330
3330
|
}
|
|
3331
3331
|
|
|
3332
|
+
const TableContext = React.createContext({ layout: "table" });
|
|
3333
|
+
|
|
3334
|
+
function TableProvider({ children, value }) {
|
|
3335
|
+
return /* @__PURE__ */ jsxRuntime.jsx(TableContext.Provider, { value, children });
|
|
3336
|
+
}
|
|
3337
|
+
|
|
3338
|
+
function useTableContext() {
|
|
3339
|
+
return React.useContext(TableContext);
|
|
3340
|
+
}
|
|
3341
|
+
|
|
3342
|
+
const stackedList = "_stackedList_5wdsh_4";
|
|
3343
|
+
const styles$9 = {
|
|
3344
|
+
stackedList: stackedList
|
|
3345
|
+
};
|
|
3346
|
+
|
|
3332
3347
|
function TableBody({ className, children, ...props }) {
|
|
3348
|
+
const { layout, captionId } = useTableContext();
|
|
3349
|
+
if (layout === "stacked") {
|
|
3350
|
+
return /* @__PURE__ */ jsxRuntime.jsx("ul", { "aria-labelledby": captionId, className: classNames(styles$9.stackedList, className), ...props, children });
|
|
3351
|
+
}
|
|
3333
3352
|
return /* @__PURE__ */ jsxRuntime.jsx("tbody", { className, ...props, children });
|
|
3334
3353
|
}
|
|
3335
3354
|
|
|
3336
|
-
const tableCaption = "
|
|
3355
|
+
const tableCaption = "_tableCaption_tlco9_2";
|
|
3356
|
+
const stackedCaption = "_stackedCaption_tlco9_13";
|
|
3337
3357
|
const styles$8 = {
|
|
3338
|
-
tableCaption: tableCaption
|
|
3358
|
+
tableCaption: tableCaption,
|
|
3359
|
+
stackedCaption: stackedCaption
|
|
3339
3360
|
};
|
|
3340
3361
|
|
|
3341
3362
|
function TableCaption({ className, children, ...props }) {
|
|
3363
|
+
const { layout, captionId } = useTableContext();
|
|
3364
|
+
if (layout === "stacked") {
|
|
3365
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$8.tableCaption, styles$8.stackedCaption, className), ...props, id: captionId, children });
|
|
3366
|
+
}
|
|
3342
3367
|
return /* @__PURE__ */ jsxRuntime.jsx("caption", { className: classNames(styles$8.tableCaption, className), ...props, children });
|
|
3343
3368
|
}
|
|
3344
3369
|
|
|
3345
|
-
const tableCell = "
|
|
3346
|
-
const left$1 = "
|
|
3347
|
-
const center$1 = "
|
|
3348
|
-
const right$1 = "
|
|
3370
|
+
const tableCell = "_tableCell_1492t_2";
|
|
3371
|
+
const left$1 = "_left_1492t_7";
|
|
3372
|
+
const center$1 = "_center_1492t_11";
|
|
3373
|
+
const right$1 = "_right_1492t_15";
|
|
3374
|
+
const stackedCell = "_stackedCell_1492t_20";
|
|
3375
|
+
const stackedPair = "_stackedPair_1492t_24";
|
|
3376
|
+
const stackedLabel = "_stackedLabel_1492t_32";
|
|
3377
|
+
const stackedValue = "_stackedValue_1492t_40";
|
|
3349
3378
|
const styles$7 = {
|
|
3350
3379
|
tableCell: tableCell,
|
|
3351
3380
|
left: left$1,
|
|
3352
3381
|
center: center$1,
|
|
3353
|
-
right: right$1
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3382
|
+
right: right$1,
|
|
3383
|
+
stackedCell: stackedCell,
|
|
3384
|
+
stackedPair: stackedPair,
|
|
3385
|
+
stackedLabel: stackedLabel,
|
|
3386
|
+
stackedValue: stackedValue
|
|
3387
|
+
};
|
|
3388
|
+
|
|
3389
|
+
function TableCell({ className, children, align = "left", colSpan, columnLabel, ...props }) {
|
|
3390
|
+
const { layout, isGroupRow } = useTableContext();
|
|
3391
|
+
if (layout === "stacked") {
|
|
3392
|
+
if (columnLabel === void 0 || isGroupRow) {
|
|
3393
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$7.stackedCell, className), ...props, children });
|
|
3394
|
+
}
|
|
3395
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: classNames(styles$7.stackedPair, className), ...props, children: [
|
|
3396
|
+
/* @__PURE__ */ jsxRuntime.jsx("dt", { className: styles$7.stackedLabel, children: columnLabel }),
|
|
3397
|
+
/* @__PURE__ */ jsxRuntime.jsx("dd", { className: styles$7.stackedValue, children })
|
|
3398
|
+
] });
|
|
3399
|
+
}
|
|
3400
|
+
return /* @__PURE__ */ jsxRuntime.jsx("td", { colSpan, className: classNames(styles$7.tableCell, styles$7[align], className), ...props, children });
|
|
3358
3401
|
}
|
|
3359
3402
|
|
|
3360
3403
|
function TableHeader({ className, children, ...props }) {
|
|
3404
|
+
const { layout } = useTableContext();
|
|
3405
|
+
if (layout === "stacked") {
|
|
3406
|
+
return null;
|
|
3407
|
+
}
|
|
3361
3408
|
return /* @__PURE__ */ jsxRuntime.jsx("thead", { className, ...props, children });
|
|
3362
3409
|
}
|
|
3363
3410
|
|
|
@@ -3379,34 +3426,89 @@ function TableHeaderCell({
|
|
|
3379
3426
|
scope = "col",
|
|
3380
3427
|
...props
|
|
3381
3428
|
}) {
|
|
3429
|
+
const { layout } = useTableContext();
|
|
3430
|
+
if (layout === "stacked") {
|
|
3431
|
+
return null;
|
|
3432
|
+
}
|
|
3382
3433
|
return /* @__PURE__ */ jsxRuntime.jsx("th", { scope, className: classNames(styles$6.tableHeaderCell, styles$6[align], className), ...props, children });
|
|
3383
3434
|
}
|
|
3384
3435
|
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
const
|
|
3436
|
+
function getRowSegments(children) {
|
|
3437
|
+
return React.Children.toArray(children).reduce((segments, cell) => {
|
|
3438
|
+
const isLabelled = React.isValidElement(cell) && cell.props.columnLabel !== void 0;
|
|
3439
|
+
const openSegment = segments.at(-1);
|
|
3440
|
+
if (openSegment?.isLabelled === isLabelled) {
|
|
3441
|
+
openSegment.cells.push(cell);
|
|
3442
|
+
return segments;
|
|
3443
|
+
}
|
|
3444
|
+
return [...segments, { isLabelled, cells: [cell] }];
|
|
3445
|
+
}, []);
|
|
3446
|
+
}
|
|
3447
|
+
|
|
3448
|
+
function hasTableCaption(children) {
|
|
3449
|
+
return React.Children.toArray(children).some((child) => {
|
|
3450
|
+
if (!React.isValidElement(child)) {
|
|
3451
|
+
return false;
|
|
3452
|
+
}
|
|
3453
|
+
if (child.type === React.Fragment) {
|
|
3454
|
+
return hasTableCaption(child.props.children);
|
|
3455
|
+
}
|
|
3456
|
+
return child.type === TableCaption;
|
|
3457
|
+
});
|
|
3458
|
+
}
|
|
3459
|
+
|
|
3460
|
+
const container = "_container_1s7gk_2";
|
|
3461
|
+
const scrollContainer = "_scrollContainer_1s7gk_12";
|
|
3462
|
+
const stackedContainer = "_stackedContainer_1s7gk_16";
|
|
3463
|
+
const bare = "_bare_1s7gk_30";
|
|
3464
|
+
const table = "_table_1s7gk_47";
|
|
3388
3465
|
const styles$5 = {
|
|
3466
|
+
container: container,
|
|
3389
3467
|
scrollContainer: scrollContainer,
|
|
3390
|
-
|
|
3468
|
+
stackedContainer: stackedContainer,
|
|
3469
|
+
"default": "_default_1s7gk_24",
|
|
3391
3470
|
bare: bare,
|
|
3392
3471
|
table: table
|
|
3393
3472
|
};
|
|
3394
3473
|
|
|
3395
|
-
function TableRoot({ className, children, mode = "default", ...props }) {
|
|
3396
|
-
|
|
3474
|
+
function TableRoot({ className, children, mode = "default", layout = "table", ...props }) {
|
|
3475
|
+
const generatedId = React.useId();
|
|
3476
|
+
const captionId = hasTableCaption(children) ? generatedId : void 0;
|
|
3477
|
+
if (layout === "stacked") {
|
|
3478
|
+
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 }) });
|
|
3479
|
+
}
|
|
3480
|
+
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
3481
|
}
|
|
3398
3482
|
|
|
3399
|
-
const tableRow = "
|
|
3400
|
-
const
|
|
3401
|
-
const
|
|
3483
|
+
const tableRow = "_tableRow_tf0oz_2";
|
|
3484
|
+
const stackedRow = "_stackedRow_tf0oz_12";
|
|
3485
|
+
const stackedPairs = "_stackedPairs_tf0oz_21";
|
|
3486
|
+
const group = "_group_tf0oz_29";
|
|
3487
|
+
const current = "_current_tf0oz_36";
|
|
3402
3488
|
const styles$4 = {
|
|
3403
3489
|
tableRow: tableRow,
|
|
3404
|
-
|
|
3490
|
+
stackedRow: stackedRow,
|
|
3491
|
+
stackedPairs: stackedPairs,
|
|
3492
|
+
"default": "_default_tf0oz_25",
|
|
3405
3493
|
group: group,
|
|
3406
3494
|
current: current
|
|
3407
3495
|
};
|
|
3408
3496
|
|
|
3409
3497
|
function TableRow({ className, children, mode = "default", isCurrent = false, ...props }) {
|
|
3498
|
+
const context = useTableContext();
|
|
3499
|
+
if (context.layout === "stacked") {
|
|
3500
|
+
const isGroupRow = mode === "group";
|
|
3501
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3502
|
+
"li",
|
|
3503
|
+
{
|
|
3504
|
+
className: classNames(styles$4.stackedRow, styles$4[mode], isCurrent ? styles$4.current : void 0, className),
|
|
3505
|
+
...props,
|
|
3506
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(TableProvider, { value: { ...context, isGroupRow }, children: isGroupRow ? children : getRowSegments(children).map(
|
|
3507
|
+
(segment, index) => segment.isLabelled ? /* @__PURE__ */ jsxRuntime.jsx("dl", { className: styles$4.stackedPairs, children: segment.cells }, index) : segment.cells
|
|
3508
|
+
) })
|
|
3509
|
+
}
|
|
3510
|
+
);
|
|
3511
|
+
}
|
|
3410
3512
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3411
3513
|
"tr",
|
|
3412
3514
|
{
|