@grandbazar/ui-baza 1.5.2 → 1.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +269 -147
- package/dist/index.d.ts +31 -13
- package/dist/index.js +270 -148
- 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) {
|
|
@@ -1091,46 +1091,66 @@ function IconTrophy(props) {
|
|
|
1091
1091
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1092
1092
|
"path",
|
|
1093
1093
|
{
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1094
|
+
d: "M6 1h12C18.3 6 16.6 12.6 14.2 14.8v2.7L16.8 20",
|
|
1095
|
+
stroke: "currentColor",
|
|
1096
|
+
strokeWidth: "2",
|
|
1097
|
+
strokeLinecap: "round",
|
|
1098
|
+
strokeLinejoin: "round"
|
|
1098
1099
|
}
|
|
1099
1100
|
),
|
|
1100
|
-
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M6 4.5A4 4 0 0 0 2 8.5A4 4 0 0 0 6 12.5V10.5A2 2 0 0 1 4 8.5A2 2 0 0 1 6 6.5V4.5Z", fill: "currentColor" }),
|
|
1101
1101
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1102
1102
|
"path",
|
|
1103
1103
|
{
|
|
1104
|
-
d: "
|
|
1105
|
-
|
|
1104
|
+
d: "M6 1C5.7 6 7.4 12.6 9.8 14.8v2.7L7.2 20",
|
|
1105
|
+
stroke: "currentColor",
|
|
1106
|
+
strokeWidth: "2",
|
|
1107
|
+
strokeLinecap: "round",
|
|
1108
|
+
strokeLinejoin: "round"
|
|
1106
1109
|
}
|
|
1107
1110
|
),
|
|
1108
|
-
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M10 13.5H14L15.5 18.5H8.5L10 13.5Z", fill: "currentColor" }),
|
|
1109
1111
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1110
1112
|
"path",
|
|
1111
1113
|
{
|
|
1112
|
-
d: "
|
|
1113
|
-
|
|
1114
|
+
d: "M6 1.5C2 1.5 1 3 1 6s1 5 6.2 5.2",
|
|
1115
|
+
stroke: "currentColor",
|
|
1116
|
+
strokeWidth: "2",
|
|
1117
|
+
strokeLinecap: "round",
|
|
1118
|
+
strokeLinejoin: "round"
|
|
1114
1119
|
}
|
|
1115
|
-
)
|
|
1116
|
-
] });
|
|
1117
|
-
}
|
|
1118
|
-
IconTrophy.Filled = function IconTrophyFilled(props) {
|
|
1119
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: [
|
|
1120
|
-
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M8 2H16A2 2 0 0 1 18 4V9A6 6 0 0 1 6 9V4A2 2 0 0 1 8 2Z", fill: "currentColor" }),
|
|
1121
|
-
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M6 4.5A4 4 0 0 0 2 8.5A4 4 0 0 0 6 12.5V10.5A2 2 0 0 1 4 8.5A2 2 0 0 1 6 6.5V4.5Z", fill: "currentColor" }),
|
|
1120
|
+
),
|
|
1122
1121
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1123
1122
|
"path",
|
|
1124
1123
|
{
|
|
1125
|
-
d: "M18
|
|
1126
|
-
|
|
1124
|
+
d: "M18 1.5C22 1.5 23 3 23 6s-1 5-6.2 5.2",
|
|
1125
|
+
stroke: "currentColor",
|
|
1126
|
+
strokeWidth: "2",
|
|
1127
|
+
strokeLinecap: "round",
|
|
1128
|
+
strokeLinejoin: "round"
|
|
1127
1129
|
}
|
|
1128
1130
|
),
|
|
1129
|
-
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M10 13.5H14L15.5 18.5H8.5L10 13.5Z", fill: "currentColor" }),
|
|
1130
1131
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1131
1132
|
"path",
|
|
1132
1133
|
{
|
|
1133
|
-
d: "M7
|
|
1134
|
+
d: "M7 20h10a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1z",
|
|
1135
|
+
stroke: "currentColor",
|
|
1136
|
+
strokeWidth: "2",
|
|
1137
|
+
strokeLinecap: "round",
|
|
1138
|
+
strokeLinejoin: "round"
|
|
1139
|
+
}
|
|
1140
|
+
)
|
|
1141
|
+
] });
|
|
1142
|
+
}
|
|
1143
|
+
IconTrophy.Filled = function IconTrophyFilled(props) {
|
|
1144
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: [
|
|
1145
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M6 1h12C18.3 6 16.6 12.6 14.2 14.8H9.8C7.4 12.6 5.7 6 6 1Z", fill: "currentColor" }),
|
|
1146
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M9.8 14.8h4.4v2.7l2.6 2.5H7.2l2.6-2.5V14.8Z", fill: "currentColor" }),
|
|
1147
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M6 19.5h12a1.5 1.5 0 0 1 0 3H6a1.5 1.5 0 0 1 0-3Z", fill: "currentColor" }),
|
|
1148
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1149
|
+
"path",
|
|
1150
|
+
{
|
|
1151
|
+
fillRule: "evenodd",
|
|
1152
|
+
clipRule: "evenodd",
|
|
1153
|
+
d: "M6 1.5C2 1.5 1 3 1 6s1 5 6.2 5.2L6.5 9.2C3.8 9 3 7.6 3 6s.8-3 3-3.3V1.5ZM18 1.5C22 1.5 23 3 23 6s-1 5-6.2 5.2L17.5 9.2C20.2 9 21 7.6 21 6s-.8-3-3-3.3V1.5Z",
|
|
1134
1154
|
fill: "currentColor"
|
|
1135
1155
|
}
|
|
1136
1156
|
)
|
|
@@ -1187,7 +1207,7 @@ function IconXMarkCircle(props) {
|
|
|
1187
1207
|
const breadcrumbs = "_breadcrumbs_1bfmb_2";
|
|
1188
1208
|
const breadcrumbsItem = "_breadcrumbsItem_1bfmb_8";
|
|
1189
1209
|
const defaultSeparator = "_defaultSeparator_1bfmb_14";
|
|
1190
|
-
const styles$
|
|
1210
|
+
const styles$B = {
|
|
1191
1211
|
breadcrumbs: breadcrumbs,
|
|
1192
1212
|
breadcrumbsItem: breadcrumbsItem,
|
|
1193
1213
|
defaultSeparator: defaultSeparator
|
|
@@ -1236,7 +1256,7 @@ function Slot({
|
|
|
1236
1256
|
}
|
|
1237
1257
|
|
|
1238
1258
|
const breadcrumbItem = "_breadcrumbItem_cua4v_2";
|
|
1239
|
-
const styles$
|
|
1259
|
+
const styles$A = {
|
|
1240
1260
|
breadcrumbItem: breadcrumbItem
|
|
1241
1261
|
};
|
|
1242
1262
|
|
|
@@ -1247,7 +1267,7 @@ function BreadcrumbItem({ children, className, isActive, asChild, ...props }) {
|
|
|
1247
1267
|
{
|
|
1248
1268
|
"data-active": isActive,
|
|
1249
1269
|
"data-disabled": props.disabled,
|
|
1250
|
-
className: classNames(styles$
|
|
1270
|
+
className: classNames(styles$A.breadcrumbItem, className),
|
|
1251
1271
|
...isActive && { "aria-current": "page" },
|
|
1252
1272
|
...!asChild && { type: "button" },
|
|
1253
1273
|
...props,
|
|
@@ -1259,13 +1279,13 @@ function BreadcrumbItem({ children, className, isActive, asChild, ...props }) {
|
|
|
1259
1279
|
function Breadcrumbs({
|
|
1260
1280
|
className,
|
|
1261
1281
|
children,
|
|
1262
|
-
separator = /* @__PURE__ */ jsxRuntime.jsx(IconChevron, { className: styles$
|
|
1282
|
+
separator = /* @__PURE__ */ jsxRuntime.jsx(IconChevron, { className: styles$B.defaultSeparator })
|
|
1263
1283
|
}) {
|
|
1264
1284
|
const childrenArray = Array.isArray(children) ? children : [children];
|
|
1265
1285
|
const lastIndex = childrenArray.length - 1;
|
|
1266
|
-
return /* @__PURE__ */ jsxRuntime.jsx("nav", { "aria-label": "breadcrumb", className, children: /* @__PURE__ */ jsxRuntime.jsx("ol", { className: styles$
|
|
1267
|
-
/* @__PURE__ */ jsxRuntime.jsx("li", { className: styles$
|
|
1268
|
-
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 })
|
|
1269
1289
|
] }, index)) }) });
|
|
1270
1290
|
}
|
|
1271
1291
|
Breadcrumbs.Item = BreadcrumbItem;
|
|
@@ -1280,7 +1300,7 @@ const neutral$2 = "_neutral_1waqk_78";
|
|
|
1280
1300
|
const lg$6 = "_lg_1waqk_145";
|
|
1281
1301
|
const md$9 = "_md_1waqk_153";
|
|
1282
1302
|
const sm$4 = "_sm_1waqk_161";
|
|
1283
|
-
const styles$
|
|
1303
|
+
const styles$z = {
|
|
1284
1304
|
button: button,
|
|
1285
1305
|
accent: accent$3,
|
|
1286
1306
|
primary: primary$2,
|
|
@@ -1298,7 +1318,7 @@ const accent$2 = "_accent_o8iku_10";
|
|
|
1298
1318
|
const neutral$1 = "_neutral_o8iku_22";
|
|
1299
1319
|
const lg$5 = "_lg_o8iku_41";
|
|
1300
1320
|
const md$8 = "_md_o8iku_46";
|
|
1301
|
-
const styles$
|
|
1321
|
+
const styles$y = {
|
|
1302
1322
|
buttonFunction: buttonFunction,
|
|
1303
1323
|
accent: accent$2,
|
|
1304
1324
|
neutral: neutral$1,
|
|
@@ -1318,7 +1338,7 @@ function ButtonFunction({
|
|
|
1318
1338
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1319
1339
|
Component,
|
|
1320
1340
|
{
|
|
1321
|
-
className: classNames(styles$
|
|
1341
|
+
className: classNames(styles$y.buttonFunction, styles$y[color], styles$y[size], className),
|
|
1322
1342
|
...props.disabled && { "data-disabled": true },
|
|
1323
1343
|
...!asChild && { type: "button" },
|
|
1324
1344
|
...props,
|
|
@@ -1340,7 +1360,7 @@ function Button({
|
|
|
1340
1360
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1341
1361
|
Component,
|
|
1342
1362
|
{
|
|
1343
|
-
className: classNames(styles$
|
|
1363
|
+
className: classNames(styles$z.button, styles$z[color], styles$z[size], styles$z[mode], className),
|
|
1344
1364
|
...!asChild && { type: "button" },
|
|
1345
1365
|
...props,
|
|
1346
1366
|
children
|
|
@@ -1352,7 +1372,7 @@ Button.Function = ButtonFunction;
|
|
|
1352
1372
|
const checkboxWrapper = "_checkboxWrapper_k1shg_2";
|
|
1353
1373
|
const icon$2 = "_icon_k1shg_23";
|
|
1354
1374
|
const checkbox = "_checkbox_k1shg_2";
|
|
1355
|
-
const styles$
|
|
1375
|
+
const styles$x = {
|
|
1356
1376
|
checkboxWrapper: checkboxWrapper,
|
|
1357
1377
|
icon: icon$2,
|
|
1358
1378
|
checkbox: checkbox
|
|
@@ -1365,11 +1385,11 @@ function Checkbox({ className, label, indeterminate, ...props }) {
|
|
|
1365
1385
|
{
|
|
1366
1386
|
"data-disabled": `${Boolean(props.disabled)}`,
|
|
1367
1387
|
"data-state": dataState,
|
|
1368
|
-
className: classNames(styles$
|
|
1388
|
+
className: classNames(styles$x.checkboxWrapper, className),
|
|
1369
1389
|
children: [
|
|
1370
|
-
dataState === "checked" && /* @__PURE__ */ jsxRuntime.jsx(IconCheck, { "data-disabled": `${Boolean(props.disabled)}`, className: styles$
|
|
1371
|
-
dataState === "indeterminate" && /* @__PURE__ */ jsxRuntime.jsx(IconMinus, { "data-disabled": `${Boolean(props.disabled)}`, className: styles$
|
|
1372
|
-
/* @__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 }),
|
|
1373
1393
|
label
|
|
1374
1394
|
]
|
|
1375
1395
|
}
|
|
@@ -1377,7 +1397,7 @@ function Checkbox({ className, label, indeterminate, ...props }) {
|
|
|
1377
1397
|
}
|
|
1378
1398
|
|
|
1379
1399
|
const chip = "_chip_dj4kw_2";
|
|
1380
|
-
const styles$
|
|
1400
|
+
const styles$w = {
|
|
1381
1401
|
chip: chip
|
|
1382
1402
|
};
|
|
1383
1403
|
|
|
@@ -1385,7 +1405,7 @@ function Chip({ isSelected, children, className, disabled, ...props }) {
|
|
|
1385
1405
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1386
1406
|
"div",
|
|
1387
1407
|
{
|
|
1388
|
-
className: classNames(styles$
|
|
1408
|
+
className: classNames(styles$w.chip, className),
|
|
1389
1409
|
"data-selected": isSelected,
|
|
1390
1410
|
"data-disabled": disabled,
|
|
1391
1411
|
"aria-disabled": disabled,
|
|
@@ -1403,7 +1423,7 @@ const accent$1 = "_accent_ww0fb_37";
|
|
|
1403
1423
|
const neutral = "_neutral_ww0fb_42";
|
|
1404
1424
|
const secondary$2 = "_secondary_ww0fb_47";
|
|
1405
1425
|
const white = "_white_ww0fb_52";
|
|
1406
|
-
const styles$
|
|
1426
|
+
const styles$v = {
|
|
1407
1427
|
root: root$1,
|
|
1408
1428
|
lg: lg$4,
|
|
1409
1429
|
md: md$7,
|
|
@@ -1415,7 +1435,7 @@ const styles$u = {
|
|
|
1415
1435
|
};
|
|
1416
1436
|
|
|
1417
1437
|
function Counter({ className, size = "lg", color = "red", ...props }) {
|
|
1418
|
-
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 });
|
|
1419
1439
|
}
|
|
1420
1440
|
|
|
1421
1441
|
const LOCALE_FIRST_DAY_OF_WEEK = {
|
|
@@ -1425,7 +1445,7 @@ const LOCALE_FIRST_DAY_OF_WEEK = {
|
|
|
1425
1445
|
|
|
1426
1446
|
const datePickerCellWrapper = "_datePickerCellWrapper_np1gx_2";
|
|
1427
1447
|
const datePickerCell = "_datePickerCell_np1gx_2";
|
|
1428
|
-
const styles$
|
|
1448
|
+
const styles$u = {
|
|
1429
1449
|
datePickerCellWrapper: datePickerCellWrapper,
|
|
1430
1450
|
datePickerCell: datePickerCell,
|
|
1431
1451
|
"radius-none": "_radius-none_np1gx_83",
|
|
@@ -1435,10 +1455,10 @@ const styles$t = {
|
|
|
1435
1455
|
};
|
|
1436
1456
|
|
|
1437
1457
|
function DatePickerCell({ children, className, state, isCurrent, radius = "both", ...props }) {
|
|
1438
|
-
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(
|
|
1439
1459
|
"button",
|
|
1440
1460
|
{
|
|
1441
|
-
className: classNames(styles$
|
|
1461
|
+
className: classNames(styles$u.datePickerCell, styles$u[`radius-${radius}`], className),
|
|
1442
1462
|
type: "button",
|
|
1443
1463
|
role: "gridcell",
|
|
1444
1464
|
"aria-selected": state === "selected",
|
|
@@ -1508,7 +1528,7 @@ function normalizeDateRange(firstDate, secondDate) {
|
|
|
1508
1528
|
const datePickerField = "_datePickerField_1qk8s_2";
|
|
1509
1529
|
const datePickerFieldCalendar = "_datePickerFieldCalendar_1qk8s_8";
|
|
1510
1530
|
const datePickerFieldWeek = "_datePickerFieldWeek_1qk8s_14";
|
|
1511
|
-
const styles$
|
|
1531
|
+
const styles$t = {
|
|
1512
1532
|
datePickerField: datePickerField,
|
|
1513
1533
|
datePickerFieldCalendar: datePickerFieldCalendar,
|
|
1514
1534
|
datePickerFieldWeek: datePickerFieldWeek
|
|
@@ -1523,9 +1543,9 @@ function DatePickerField({
|
|
|
1523
1543
|
firstDayOfWeek = LOCALE_FIRST_DAY_OF_WEEK.ru
|
|
1524
1544
|
}) {
|
|
1525
1545
|
const weeks = React.useMemo(() => getCalendarGrid(month, year, firstDayOfWeek), [month, year, firstDayOfWeek]);
|
|
1526
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: classNames(styles$
|
|
1546
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: classNames(styles$t.datePickerField, className), role: "grid", children: [
|
|
1527
1547
|
renderWeekdays?.(),
|
|
1528
|
-
/* @__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)) })
|
|
1529
1549
|
] });
|
|
1530
1550
|
}
|
|
1531
1551
|
|
|
@@ -1566,13 +1586,13 @@ const I18N_MONTH_LABELS = {
|
|
|
1566
1586
|
|
|
1567
1587
|
const datePickerWeekdays = "_datePickerWeekdays_p8tsm_2";
|
|
1568
1588
|
const datePickerWeekday = "_datePickerWeekday_p8tsm_2";
|
|
1569
|
-
const styles$
|
|
1589
|
+
const styles$s = {
|
|
1570
1590
|
datePickerWeekdays: datePickerWeekdays,
|
|
1571
1591
|
datePickerWeekday: datePickerWeekday
|
|
1572
1592
|
};
|
|
1573
1593
|
|
|
1574
1594
|
function DatePickerWeekDays({ className, locale = "ru" }) {
|
|
1575
|
-
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)) });
|
|
1576
1596
|
}
|
|
1577
1597
|
|
|
1578
1598
|
function DatePicker() {
|
|
@@ -1808,21 +1828,21 @@ const DROPDOWN_PORTAL_SIDE_CONFIG = {
|
|
|
1808
1828
|
};
|
|
1809
1829
|
|
|
1810
1830
|
const dropdownContent = "_dropdownContent_12tkb_2";
|
|
1811
|
-
const styles$
|
|
1831
|
+
const styles$r = {
|
|
1812
1832
|
dropdownContent: dropdownContent
|
|
1813
1833
|
};
|
|
1814
1834
|
|
|
1815
1835
|
function DropdownContent({ className, children, ...props }) {
|
|
1816
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$
|
|
1836
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$r.dropdownContent, className), ...props, children });
|
|
1817
1837
|
}
|
|
1818
1838
|
|
|
1819
1839
|
const dropdownItem = "_dropdownItem_msc4i_2";
|
|
1820
|
-
const styles$
|
|
1840
|
+
const styles$q = {
|
|
1821
1841
|
dropdownItem: dropdownItem
|
|
1822
1842
|
};
|
|
1823
1843
|
|
|
1824
1844
|
function DropdownItem({ className, children, disabled, ...props }) {
|
|
1825
|
-
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 });
|
|
1826
1846
|
}
|
|
1827
1847
|
|
|
1828
1848
|
const CLICK_OUTSIDE_IGNORE_DATA_NAME = "data-clickoutside-ignore";
|
|
@@ -2250,7 +2270,7 @@ function useTriggerHandlersByEventTrigger() {
|
|
|
2250
2270
|
}
|
|
2251
2271
|
|
|
2252
2272
|
const dropdownPortal = "_dropdownPortal_p3tdk_2";
|
|
2253
|
-
const styles$
|
|
2273
|
+
const styles$p = {
|
|
2254
2274
|
dropdownPortal: dropdownPortal
|
|
2255
2275
|
};
|
|
2256
2276
|
|
|
@@ -2290,7 +2310,7 @@ function DropdownPortal({
|
|
|
2290
2310
|
...style
|
|
2291
2311
|
},
|
|
2292
2312
|
ref: portalRef,
|
|
2293
|
-
className: classNames(styles$
|
|
2313
|
+
className: classNames(styles$p.dropdownPortal, className),
|
|
2294
2314
|
...handlersByTrigger[triggerEvent],
|
|
2295
2315
|
...isNested && { [CLICK_OUTSIDE_IGNORE_DATA_NAME]: "true" },
|
|
2296
2316
|
children
|
|
@@ -2347,7 +2367,7 @@ const closeButton = "_closeButton_1kerp_74";
|
|
|
2347
2367
|
const closeIcon = "_closeIcon_1kerp_95";
|
|
2348
2368
|
const description = "_description_1kerp_100";
|
|
2349
2369
|
const actions = "_actions_1kerp_108";
|
|
2350
|
-
const styles$
|
|
2370
|
+
const styles$o = {
|
|
2351
2371
|
notificationInline: notificationInline,
|
|
2352
2372
|
accent: accent,
|
|
2353
2373
|
negative: negative,
|
|
@@ -2382,15 +2402,15 @@ function NotificationInline({
|
|
|
2382
2402
|
...props
|
|
2383
2403
|
}) {
|
|
2384
2404
|
const StatusIcon = STATUS_ICONS[color];
|
|
2385
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: classNames(styles$
|
|
2386
|
-
/* @__PURE__ */ jsxRuntime.jsx(StatusIcon, { className: styles$
|
|
2387
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: styles$
|
|
2388
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: styles$
|
|
2389
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$
|
|
2390
|
-
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" }) })
|
|
2391
2411
|
] }),
|
|
2392
|
-
description && /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$
|
|
2393
|
-
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 })
|
|
2394
2414
|
] })
|
|
2395
2415
|
] });
|
|
2396
2416
|
}
|
|
@@ -2406,7 +2426,7 @@ const BOUNDARY_PAGES = 2;
|
|
|
2406
2426
|
const paginationItem = "_paginationItem_1ll6p_2";
|
|
2407
2427
|
const md$6 = "_md_1ll6p_46";
|
|
2408
2428
|
const sm$3 = "_sm_1ll6p_60";
|
|
2409
|
-
const styles$
|
|
2429
|
+
const styles$n = {
|
|
2410
2430
|
paginationItem: paginationItem,
|
|
2411
2431
|
md: md$6,
|
|
2412
2432
|
sm: sm$3
|
|
@@ -2418,7 +2438,7 @@ function PaginationItem({ className, children, size = "md", isCurrent, ...props
|
|
|
2418
2438
|
{
|
|
2419
2439
|
type: "button",
|
|
2420
2440
|
...isCurrent && { "aria-current": "page" },
|
|
2421
|
-
className: classNames(styles$
|
|
2441
|
+
className: classNames(styles$n.paginationItem, styles$n[size], className),
|
|
2422
2442
|
...props,
|
|
2423
2443
|
children
|
|
2424
2444
|
}
|
|
@@ -2455,7 +2475,7 @@ function getVisiblePages(totalPages, maxVisiblePagesWithEllipsis, currentPage) {
|
|
|
2455
2475
|
const paginationRoot = "_paginationRoot_c5fwx_2";
|
|
2456
2476
|
const paginationList = "_paginationList_c5fwx_7";
|
|
2457
2477
|
const arrowLeft = "_arrowLeft_c5fwx_13";
|
|
2458
|
-
const styles$
|
|
2478
|
+
const styles$m = {
|
|
2459
2479
|
paginationRoot: paginationRoot,
|
|
2460
2480
|
paginationList: paginationList,
|
|
2461
2481
|
arrowLeft: arrowLeft
|
|
@@ -2482,9 +2502,9 @@ function PaginationRoot({
|
|
|
2482
2502
|
{
|
|
2483
2503
|
"aria-label": "pagination navigation",
|
|
2484
2504
|
role: "navigation",
|
|
2485
|
-
className: classNames(styles$
|
|
2505
|
+
className: classNames(styles$m.paginationRoot, className),
|
|
2486
2506
|
...props,
|
|
2487
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs("ul", { className: styles$
|
|
2507
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs("ul", { className: styles$m.paginationList, children: [
|
|
2488
2508
|
showArrows && /* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2489
2509
|
PaginationItem$1,
|
|
2490
2510
|
{
|
|
@@ -2492,7 +2512,7 @@ function PaginationRoot({
|
|
|
2492
2512
|
onClick: () => onPageChange(currentPage - 1),
|
|
2493
2513
|
disabled: isFirstPage,
|
|
2494
2514
|
size,
|
|
2495
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(IconChevron$1, { className: styles$
|
|
2515
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(IconChevron$1, { className: styles$m.arrowLeft })
|
|
2496
2516
|
}
|
|
2497
2517
|
) }),
|
|
2498
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(
|
|
@@ -2532,7 +2552,7 @@ const fill$1 = "_fill_33gbh_23";
|
|
|
2532
2552
|
const trail = "_trail_33gbh_28";
|
|
2533
2553
|
const sm$2 = "_sm_33gbh_32";
|
|
2534
2554
|
const md$5 = "_md_33gbh_36";
|
|
2535
|
-
const styles$
|
|
2555
|
+
const styles$l = {
|
|
2536
2556
|
root: root,
|
|
2537
2557
|
segment: segment,
|
|
2538
2558
|
flexGrow: flexGrow,
|
|
@@ -2553,7 +2573,7 @@ function ProgressBarLinear({
|
|
|
2553
2573
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2554
2574
|
"div",
|
|
2555
2575
|
{
|
|
2556
|
-
className: classNames(styles$
|
|
2576
|
+
className: classNames(styles$l.root, styles$l[size], className),
|
|
2557
2577
|
role: "progressbar",
|
|
2558
2578
|
"aria-valuenow": clampedPercent,
|
|
2559
2579
|
"aria-valuemin": 0,
|
|
@@ -2565,14 +2585,14 @@ function ProgressBarLinear({
|
|
|
2565
2585
|
(Boolean(clampedPercent) || showFillOnZero) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2566
2586
|
"div",
|
|
2567
2587
|
{
|
|
2568
|
-
className: classNames(styles$
|
|
2588
|
+
className: classNames(styles$l.segment, styles$l.fill),
|
|
2569
2589
|
style: {
|
|
2570
2590
|
"--clamped-percent": `${clampedPercent}%`
|
|
2571
2591
|
},
|
|
2572
2592
|
"aria-hidden": "true"
|
|
2573
2593
|
}
|
|
2574
2594
|
),
|
|
2575
|
-
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" })
|
|
2576
2596
|
]
|
|
2577
2597
|
}
|
|
2578
2598
|
);
|
|
@@ -2592,7 +2612,7 @@ function ProgressBarSteps({
|
|
|
2592
2612
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2593
2613
|
"div",
|
|
2594
2614
|
{
|
|
2595
|
-
className: classNames(styles$
|
|
2615
|
+
className: classNames(styles$l.segment, styles$l.flexGrow, isFilled ? styles$l.fill : styles$l.trail),
|
|
2596
2616
|
"aria-hidden": "true"
|
|
2597
2617
|
},
|
|
2598
2618
|
index
|
|
@@ -2601,7 +2621,7 @@ function ProgressBarSteps({
|
|
|
2601
2621
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2602
2622
|
"div",
|
|
2603
2623
|
{
|
|
2604
|
-
className: classNames(styles$
|
|
2624
|
+
className: classNames(styles$l.root, styles$l[size], className),
|
|
2605
2625
|
role: "progressbar",
|
|
2606
2626
|
"aria-valuenow": clampedCurrent,
|
|
2607
2627
|
"aria-valuemin": 0,
|
|
@@ -2621,14 +2641,14 @@ ProgressBar.Steps = ProgressBarSteps;
|
|
|
2621
2641
|
|
|
2622
2642
|
const radioWrapper = "_radioWrapper_13xie_2";
|
|
2623
2643
|
const radio = "_radio_13xie_2";
|
|
2624
|
-
const styles$
|
|
2644
|
+
const styles$k = {
|
|
2625
2645
|
radioWrapper: radioWrapper,
|
|
2626
2646
|
radio: radio
|
|
2627
2647
|
};
|
|
2628
2648
|
|
|
2629
2649
|
function RadioButton({ className, label, ...props }) {
|
|
2630
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("label", { "data-disabled": `${Boolean(props.disabled)}`, className: classNames(styles$
|
|
2631
|
-
/* @__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 }),
|
|
2632
2652
|
label
|
|
2633
2653
|
] });
|
|
2634
2654
|
}
|
|
@@ -2639,7 +2659,7 @@ const textFieldAreaWrapper = "_textFieldAreaWrapper_pia91_2";
|
|
|
2639
2659
|
const textFieldAreaLabel = "_textFieldAreaLabel_pia91_14";
|
|
2640
2660
|
const textFieldAreaLabelSuffix = "_textFieldAreaLabelSuffix_pia91_24";
|
|
2641
2661
|
const textFieldArea = "_textFieldArea_pia91_2";
|
|
2642
|
-
const styles$
|
|
2662
|
+
const styles$j = {
|
|
2643
2663
|
textFieldAreaWrapper: textFieldAreaWrapper,
|
|
2644
2664
|
textFieldAreaLabel: textFieldAreaLabel,
|
|
2645
2665
|
textFieldAreaLabelSuffix: textFieldAreaLabelSuffix,
|
|
@@ -2660,14 +2680,14 @@ function TextFieldArea({
|
|
|
2660
2680
|
"data-invalid": isInvalid,
|
|
2661
2681
|
"aria-invalid": isInvalid,
|
|
2662
2682
|
"data-element": "field",
|
|
2663
|
-
className: classNames(styles$
|
|
2683
|
+
className: classNames(styles$j.textFieldArea, className),
|
|
2664
2684
|
placeholder,
|
|
2665
2685
|
...props
|
|
2666
2686
|
}
|
|
2667
2687
|
);
|
|
2668
|
-
return floatingLabel ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles$
|
|
2669
|
-
/* @__PURE__ */ jsxRuntime.jsx("label", { htmlFor: props.id, className: styles$
|
|
2670
|
-
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 }),
|
|
2671
2691
|
textFieldArea
|
|
2672
2692
|
] }) : textFieldArea;
|
|
2673
2693
|
}
|
|
@@ -2675,7 +2695,7 @@ function TextFieldArea({
|
|
|
2675
2695
|
const textFieldInputWrapper = "_textFieldInputWrapper_1m8sa_2";
|
|
2676
2696
|
const textFieldInputLabel = "_textFieldInputLabel_1m8sa_9";
|
|
2677
2697
|
const textFieldInput = "_textFieldInput_1m8sa_2";
|
|
2678
|
-
const styles$
|
|
2698
|
+
const styles$i = {
|
|
2679
2699
|
textFieldInputWrapper: textFieldInputWrapper,
|
|
2680
2700
|
textFieldInputLabel: textFieldInputLabel,
|
|
2681
2701
|
textFieldInput: textFieldInput
|
|
@@ -2694,37 +2714,37 @@ function TextFieldInput({
|
|
|
2694
2714
|
"data-invalid": isInvalid,
|
|
2695
2715
|
"aria-invalid": isInvalid,
|
|
2696
2716
|
"data-element": "field",
|
|
2697
|
-
className: classNames(styles$
|
|
2717
|
+
className: classNames(styles$i.textFieldInput, className),
|
|
2698
2718
|
placeholder,
|
|
2699
2719
|
...props
|
|
2700
2720
|
}
|
|
2701
2721
|
);
|
|
2702
|
-
return floatingLabel ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles$
|
|
2703
|
-
/* @__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 }),
|
|
2704
2724
|
textFieldInput
|
|
2705
2725
|
] }) : textFieldInput;
|
|
2706
2726
|
}
|
|
2707
2727
|
|
|
2708
2728
|
const textFieldLabel = "_textFieldLabel_1xy6x_2";
|
|
2709
|
-
const styles$
|
|
2729
|
+
const styles$h = {
|
|
2710
2730
|
textFieldLabel: textFieldLabel
|
|
2711
2731
|
};
|
|
2712
2732
|
|
|
2713
2733
|
function TextFieldLabel({ className, children, isRequired, ...props }) {
|
|
2714
|
-
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 });
|
|
2715
2735
|
}
|
|
2716
2736
|
|
|
2717
2737
|
const textFieldRoot = "_textFieldRoot_cs7mv_2";
|
|
2718
2738
|
const lg$3 = "_lg_cs7mv_38";
|
|
2719
2739
|
const md$4 = "_md_cs7mv_70";
|
|
2720
|
-
const styles$
|
|
2740
|
+
const styles$g = {
|
|
2721
2741
|
textFieldRoot: textFieldRoot,
|
|
2722
2742
|
lg: lg$3,
|
|
2723
2743
|
md: md$4
|
|
2724
2744
|
};
|
|
2725
2745
|
|
|
2726
2746
|
function TextFieldRoot({ className, size = "lg", ...props }) {
|
|
2727
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$
|
|
2747
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$g.textFieldRoot, styles$g[size], className), ...props });
|
|
2728
2748
|
}
|
|
2729
2749
|
|
|
2730
2750
|
function TextField() {
|
|
@@ -2739,7 +2759,7 @@ const custom = "_custom_gh87y_15";
|
|
|
2739
2759
|
const icon$1 = "_icon_gh87y_25";
|
|
2740
2760
|
const inputCustomWrapper = "_inputCustomWrapper_gh87y_34";
|
|
2741
2761
|
const customButton = "_customButton_gh87y_49";
|
|
2742
|
-
const styles$
|
|
2762
|
+
const styles$f = {
|
|
2743
2763
|
search: search,
|
|
2744
2764
|
"default": "_default_gh87y_10",
|
|
2745
2765
|
custom: custom,
|
|
@@ -2765,7 +2785,7 @@ function Search(props) {
|
|
|
2765
2785
|
value && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2766
2786
|
IconXMark.Small,
|
|
2767
2787
|
{
|
|
2768
|
-
className: styles$
|
|
2788
|
+
className: styles$f.icon,
|
|
2769
2789
|
"aria-label": "clear search",
|
|
2770
2790
|
role: "button",
|
|
2771
2791
|
onClick: () => {
|
|
@@ -2779,13 +2799,13 @@ function Search(props) {
|
|
|
2779
2799
|
}
|
|
2780
2800
|
)
|
|
2781
2801
|
] });
|
|
2782
|
-
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: [
|
|
2783
2803
|
mode === "default" && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2784
|
-
/* @__PURE__ */ jsxRuntime.jsx(IconSearch, { className: styles$
|
|
2804
|
+
/* @__PURE__ */ jsxRuntime.jsx(IconSearch, { className: styles$f.icon, "data-element": "icon" }),
|
|
2785
2805
|
inputField
|
|
2786
2806
|
] }),
|
|
2787
2807
|
mode === "custom" && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2788
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$
|
|
2808
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$f.inputCustomWrapper, children: inputField }),
|
|
2789
2809
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2790
2810
|
"button",
|
|
2791
2811
|
{
|
|
@@ -2793,11 +2813,11 @@ function Search(props) {
|
|
|
2793
2813
|
type: "button",
|
|
2794
2814
|
onClick: props.onSearch,
|
|
2795
2815
|
"data-element": "custom-button",
|
|
2796
|
-
className: styles$
|
|
2816
|
+
className: styles$f.customButton,
|
|
2797
2817
|
style: {
|
|
2798
2818
|
"--custom-button-width": `${props.buttonWidth ?? DEFAULT_CUSTOM_SEARCH_BUTTON_WIDTH}px`
|
|
2799
2819
|
},
|
|
2800
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(IconSearch, { className: classNames(styles$
|
|
2820
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(IconSearch, { className: classNames(styles$f.icon), "data-element": "icon" })
|
|
2801
2821
|
}
|
|
2802
2822
|
)
|
|
2803
2823
|
] })
|
|
@@ -2823,7 +2843,7 @@ function useSegmentControlContext() {
|
|
|
2823
2843
|
const segmentControlItem = "_segmentControlItem_178px_2";
|
|
2824
2844
|
const lg$2 = "_lg_178px_23";
|
|
2825
2845
|
const md$3 = "_md_178px_28";
|
|
2826
|
-
const styles$
|
|
2846
|
+
const styles$e = {
|
|
2827
2847
|
segmentControlItem: segmentControlItem,
|
|
2828
2848
|
lg: lg$2,
|
|
2829
2849
|
md: md$3
|
|
@@ -2839,7 +2859,7 @@ function SegmentControlItem({ className, children, value, ...props }) {
|
|
|
2839
2859
|
"aria-checked": value === activeValue,
|
|
2840
2860
|
"data-state": value === activeValue ? "on" : "off",
|
|
2841
2861
|
"data-value": value,
|
|
2842
|
-
className: classNames(styles$
|
|
2862
|
+
className: classNames(styles$e.segmentControlItem, styles$e[size], className),
|
|
2843
2863
|
...props,
|
|
2844
2864
|
children
|
|
2845
2865
|
}
|
|
@@ -2876,7 +2896,7 @@ const showAfterDelay = "_showAfterDelay_pulca_1";
|
|
|
2876
2896
|
const lg$1 = "_lg_pulca_19";
|
|
2877
2897
|
const md$2 = "_md_pulca_23";
|
|
2878
2898
|
const indicator$1 = "_indicator_pulca_28";
|
|
2879
|
-
const styles$
|
|
2899
|
+
const styles$d = {
|
|
2880
2900
|
segmentControlRoot: segmentControlRoot,
|
|
2881
2901
|
showAfterDelay: showAfterDelay,
|
|
2882
2902
|
lg: lg$1,
|
|
@@ -2891,11 +2911,11 @@ function SegmentControlRoot({ className, children, value, size = "md", ...props
|
|
|
2891
2911
|
{
|
|
2892
2912
|
ref: rootRef,
|
|
2893
2913
|
role: "radiogroup",
|
|
2894
|
-
className: classNames(styles$
|
|
2914
|
+
className: classNames(styles$d.segmentControlRoot, styles$d[size], className),
|
|
2895
2915
|
...props,
|
|
2896
2916
|
children: [
|
|
2897
2917
|
children,
|
|
2898
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$
|
|
2918
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$d.indicator, styles$d[size]), style: indicatorStyle })
|
|
2899
2919
|
]
|
|
2900
2920
|
}
|
|
2901
2921
|
) });
|
|
@@ -2990,7 +3010,7 @@ const mark = "_mark_vuele_39";
|
|
|
2990
3010
|
const markDot = "_markDot_vuele_43";
|
|
2991
3011
|
const track = "_track_vuele_56";
|
|
2992
3012
|
const marks = "_marks_vuele_106";
|
|
2993
|
-
const styles$
|
|
3013
|
+
const styles$c = {
|
|
2994
3014
|
slider: slider,
|
|
2995
3015
|
fill: fill,
|
|
2996
3016
|
rail: rail,
|
|
@@ -3002,16 +3022,16 @@ const styles$b = {
|
|
|
3002
3022
|
};
|
|
3003
3023
|
|
|
3004
3024
|
function SliderMarks({ marks, min, max, activeFrom, activeTo }) {
|
|
3005
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$
|
|
3025
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$c.marks, children: marks.map(({ value, label }) => {
|
|
3006
3026
|
const isActive = value >= activeFrom && value <= activeTo;
|
|
3007
3027
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3008
3028
|
"div",
|
|
3009
3029
|
{
|
|
3010
3030
|
"data-state": isActive ? "active" : "default",
|
|
3011
|
-
className: styles$
|
|
3031
|
+
className: styles$c.mark,
|
|
3012
3032
|
style: { insetInlineStart: `${getPercent(value, { min, max })}%` },
|
|
3013
3033
|
children: [
|
|
3014
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$
|
|
3034
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$c.markDot }),
|
|
3015
3035
|
label
|
|
3016
3036
|
]
|
|
3017
3037
|
},
|
|
@@ -3134,7 +3154,7 @@ function SliderBase({
|
|
|
3134
3154
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3135
3155
|
"div",
|
|
3136
3156
|
{
|
|
3137
|
-
className: classNames(styles$
|
|
3157
|
+
className: classNames(styles$c.slider, className),
|
|
3138
3158
|
"data-disabled": disabled,
|
|
3139
3159
|
"data-marks": Boolean(marks?.length),
|
|
3140
3160
|
...props,
|
|
@@ -3142,18 +3162,18 @@ function SliderBase({
|
|
|
3142
3162
|
"div",
|
|
3143
3163
|
{
|
|
3144
3164
|
ref: railRef,
|
|
3145
|
-
className: styles$
|
|
3165
|
+
className: styles$c.rail,
|
|
3146
3166
|
onPointerDown: handlePointerDown,
|
|
3147
3167
|
onPointerMove: handlePointerMove,
|
|
3148
3168
|
onPointerUp: stopDragging,
|
|
3149
3169
|
onPointerCancel: stopDragging,
|
|
3150
3170
|
onLostPointerCapture: handleLostPointerCapture,
|
|
3151
3171
|
children: [
|
|
3152
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$
|
|
3172
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$c.track }),
|
|
3153
3173
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3154
3174
|
"div",
|
|
3155
3175
|
{
|
|
3156
|
-
className: styles$
|
|
3176
|
+
className: styles$c.fill,
|
|
3157
3177
|
style: { insetInlineStart: `${toPercent(fillFrom)}%`, insetInlineEnd: `${100 - toPercent(fillTo)}%` }
|
|
3158
3178
|
}
|
|
3159
3179
|
),
|
|
@@ -3175,7 +3195,7 @@ function SliderBase({
|
|
|
3175
3195
|
"aria-describedby": ariaDescribedBy,
|
|
3176
3196
|
"aria-disabled": disabled,
|
|
3177
3197
|
"aria-orientation": "horizontal",
|
|
3178
|
-
className: styles$
|
|
3198
|
+
className: styles$c.handle,
|
|
3179
3199
|
style: { insetInlineStart: `${toPercent(value)}%` },
|
|
3180
3200
|
onKeyDown: (event) => handleKeyDown(event, index)
|
|
3181
3201
|
},
|
|
@@ -3209,7 +3229,7 @@ const lg = "_lg_103n3_24";
|
|
|
3209
3229
|
const primary$1 = "_primary_103n3_31";
|
|
3210
3230
|
const secondary$1 = "_secondary_103n3_41";
|
|
3211
3231
|
const value = "_value_103n3_50";
|
|
3212
|
-
const styles$
|
|
3232
|
+
const styles$b = {
|
|
3213
3233
|
stepper: stepper,
|
|
3214
3234
|
sm: sm$1,
|
|
3215
3235
|
md: md$1,
|
|
@@ -3250,7 +3270,7 @@ function Stepper({
|
|
|
3250
3270
|
{
|
|
3251
3271
|
role: "group",
|
|
3252
3272
|
"aria-label": "Stepper",
|
|
3253
|
-
className: classNames(styles$
|
|
3273
|
+
className: classNames(styles$b.stepper, styles$b[size], styles$b[mode], className),
|
|
3254
3274
|
"data-disabled": disabled,
|
|
3255
3275
|
...props,
|
|
3256
3276
|
children: [
|
|
@@ -3266,7 +3286,7 @@ function Stepper({
|
|
|
3266
3286
|
children: /* @__PURE__ */ jsxRuntime.jsx(IconMinus, {})
|
|
3267
3287
|
}
|
|
3268
3288
|
),
|
|
3269
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$
|
|
3289
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$b.value, "aria-live": "polite", children: value }),
|
|
3270
3290
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3271
3291
|
Button,
|
|
3272
3292
|
{
|
|
@@ -3286,7 +3306,7 @@ function Stepper({
|
|
|
3286
3306
|
|
|
3287
3307
|
const switchWrapper = "_switchWrapper_1yukb_2";
|
|
3288
3308
|
const icon = "_icon_1yukb_25";
|
|
3289
|
-
const styles$
|
|
3309
|
+
const styles$a = {
|
|
3290
3310
|
switchWrapper: switchWrapper,
|
|
3291
3311
|
icon: icon,
|
|
3292
3312
|
"switch": "_switch_1yukb_2"
|
|
@@ -3299,45 +3319,92 @@ function Switch({ className, label, indeterminate, ...props }) {
|
|
|
3299
3319
|
{
|
|
3300
3320
|
"data-disabled": `${Boolean(props.disabled)}`,
|
|
3301
3321
|
"data-state": dataState,
|
|
3302
|
-
className: classNames(styles$
|
|
3322
|
+
className: classNames(styles$a.switchWrapper, className),
|
|
3303
3323
|
children: [
|
|
3304
|
-
dataState === "indeterminate" && /* @__PURE__ */ jsxRuntime.jsx(IconMinus, { "data-disabled": `${Boolean(props.disabled)}`, className: styles$
|
|
3305
|
-
/* @__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 }),
|
|
3306
3326
|
label
|
|
3307
3327
|
]
|
|
3308
3328
|
}
|
|
3309
3329
|
);
|
|
3310
3330
|
}
|
|
3311
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
|
+
|
|
3312
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
|
+
}
|
|
3313
3352
|
return /* @__PURE__ */ jsxRuntime.jsx("tbody", { className, ...props, children });
|
|
3314
3353
|
}
|
|
3315
3354
|
|
|
3316
|
-
const tableCaption = "
|
|
3355
|
+
const tableCaption = "_tableCaption_tlco9_2";
|
|
3356
|
+
const stackedCaption = "_stackedCaption_tlco9_13";
|
|
3317
3357
|
const styles$8 = {
|
|
3318
|
-
tableCaption: tableCaption
|
|
3358
|
+
tableCaption: tableCaption,
|
|
3359
|
+
stackedCaption: stackedCaption
|
|
3319
3360
|
};
|
|
3320
3361
|
|
|
3321
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
|
+
}
|
|
3322
3367
|
return /* @__PURE__ */ jsxRuntime.jsx("caption", { className: classNames(styles$8.tableCaption, className), ...props, children });
|
|
3323
3368
|
}
|
|
3324
3369
|
|
|
3325
|
-
const tableCell = "
|
|
3326
|
-
const left$1 = "
|
|
3327
|
-
const center$1 = "
|
|
3328
|
-
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";
|
|
3329
3378
|
const styles$7 = {
|
|
3330
3379
|
tableCell: tableCell,
|
|
3331
3380
|
left: left$1,
|
|
3332
3381
|
center: center$1,
|
|
3333
|
-
right: right$1
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
|
|
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 });
|
|
3338
3401
|
}
|
|
3339
3402
|
|
|
3340
3403
|
function TableHeader({ className, children, ...props }) {
|
|
3404
|
+
const { layout } = useTableContext();
|
|
3405
|
+
if (layout === "stacked") {
|
|
3406
|
+
return null;
|
|
3407
|
+
}
|
|
3341
3408
|
return /* @__PURE__ */ jsxRuntime.jsx("thead", { className, ...props, children });
|
|
3342
3409
|
}
|
|
3343
3410
|
|
|
@@ -3359,34 +3426,89 @@ function TableHeaderCell({
|
|
|
3359
3426
|
scope = "col",
|
|
3360
3427
|
...props
|
|
3361
3428
|
}) {
|
|
3429
|
+
const { layout } = useTableContext();
|
|
3430
|
+
if (layout === "stacked") {
|
|
3431
|
+
return null;
|
|
3432
|
+
}
|
|
3362
3433
|
return /* @__PURE__ */ jsxRuntime.jsx("th", { scope, className: classNames(styles$6.tableHeaderCell, styles$6[align], className), ...props, children });
|
|
3363
3434
|
}
|
|
3364
3435
|
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
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";
|
|
3368
3465
|
const styles$5 = {
|
|
3466
|
+
container: container,
|
|
3369
3467
|
scrollContainer: scrollContainer,
|
|
3370
|
-
|
|
3468
|
+
stackedContainer: stackedContainer,
|
|
3469
|
+
"default": "_default_1s7gk_24",
|
|
3371
3470
|
bare: bare,
|
|
3372
3471
|
table: table
|
|
3373
3472
|
};
|
|
3374
3473
|
|
|
3375
|
-
function TableRoot({ className, children, mode = "default", ...props }) {
|
|
3376
|
-
|
|
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 }) }) });
|
|
3377
3481
|
}
|
|
3378
3482
|
|
|
3379
|
-
const tableRow = "
|
|
3380
|
-
const
|
|
3381
|
-
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";
|
|
3382
3488
|
const styles$4 = {
|
|
3383
3489
|
tableRow: tableRow,
|
|
3384
|
-
|
|
3490
|
+
stackedRow: stackedRow,
|
|
3491
|
+
stackedPairs: stackedPairs,
|
|
3492
|
+
"default": "_default_tf0oz_25",
|
|
3385
3493
|
group: group,
|
|
3386
3494
|
current: current
|
|
3387
3495
|
};
|
|
3388
3496
|
|
|
3389
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
|
+
}
|
|
3390
3512
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3391
3513
|
"tr",
|
|
3392
3514
|
{
|