@grandbazar/ui-baza 1.4.1 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +201 -105
- package/dist/index.d.ts +80 -0
- package/dist/index.js +201 -106
- package/dist/style.css +99 -0
- 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$D = {
|
|
67
67
|
badge: badge,
|
|
68
68
|
primary: primary$4,
|
|
69
69
|
secondary: secondary$5,
|
|
@@ -79,13 +79,13 @@ const styles$y = {
|
|
|
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$D.badge, styles$D[size], styles$D[color], styles$D[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$C = {
|
|
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$C.badgeTabsItem, styles$C[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$B = {
|
|
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$B.badgeTabsRoot, className), ...props, children });
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
function BadgeTabs(props) {
|
|
@@ -1136,7 +1136,7 @@ function IconXMarkCircle(props) {
|
|
|
1136
1136
|
const breadcrumbs = "_breadcrumbs_1bfmb_2";
|
|
1137
1137
|
const breadcrumbsItem = "_breadcrumbsItem_1bfmb_8";
|
|
1138
1138
|
const defaultSeparator = "_defaultSeparator_1bfmb_14";
|
|
1139
|
-
const styles$
|
|
1139
|
+
const styles$A = {
|
|
1140
1140
|
breadcrumbs: breadcrumbs,
|
|
1141
1141
|
breadcrumbsItem: breadcrumbsItem,
|
|
1142
1142
|
defaultSeparator: defaultSeparator
|
|
@@ -1185,7 +1185,7 @@ function Slot({
|
|
|
1185
1185
|
}
|
|
1186
1186
|
|
|
1187
1187
|
const breadcrumbItem = "_breadcrumbItem_cua4v_2";
|
|
1188
|
-
const styles$
|
|
1188
|
+
const styles$z = {
|
|
1189
1189
|
breadcrumbItem: breadcrumbItem
|
|
1190
1190
|
};
|
|
1191
1191
|
|
|
@@ -1196,7 +1196,7 @@ function BreadcrumbItem({ children, className, isActive, asChild, ...props }) {
|
|
|
1196
1196
|
{
|
|
1197
1197
|
"data-active": isActive,
|
|
1198
1198
|
"data-disabled": props.disabled,
|
|
1199
|
-
className: classNames(styles$
|
|
1199
|
+
className: classNames(styles$z.breadcrumbItem, className),
|
|
1200
1200
|
...isActive && { "aria-current": "page" },
|
|
1201
1201
|
...!asChild && { type: "button" },
|
|
1202
1202
|
...props,
|
|
@@ -1208,13 +1208,13 @@ function BreadcrumbItem({ children, className, isActive, asChild, ...props }) {
|
|
|
1208
1208
|
function Breadcrumbs({
|
|
1209
1209
|
className,
|
|
1210
1210
|
children,
|
|
1211
|
-
separator = /* @__PURE__ */ jsxRuntime.jsx(IconChevron, { className: styles$
|
|
1211
|
+
separator = /* @__PURE__ */ jsxRuntime.jsx(IconChevron, { className: styles$A.defaultSeparator })
|
|
1212
1212
|
}) {
|
|
1213
1213
|
const childrenArray = Array.isArray(children) ? children : [children];
|
|
1214
1214
|
const lastIndex = childrenArray.length - 1;
|
|
1215
|
-
return /* @__PURE__ */ jsxRuntime.jsx("nav", { "aria-label": "breadcrumb", className, children: /* @__PURE__ */ jsxRuntime.jsx("ol", { className: styles$
|
|
1216
|
-
/* @__PURE__ */ jsxRuntime.jsx("li", { className: styles$
|
|
1217
|
-
index < lastIndex && /* @__PURE__ */ jsxRuntime.jsx("li", { className: styles$
|
|
1215
|
+
return /* @__PURE__ */ jsxRuntime.jsx("nav", { "aria-label": "breadcrumb", className, children: /* @__PURE__ */ jsxRuntime.jsx("ol", { className: styles$A.breadcrumbs, children: childrenArray.map((item, index) => /* @__PURE__ */ jsxRuntime.jsxs(React.Fragment, { children: [
|
|
1216
|
+
/* @__PURE__ */ jsxRuntime.jsx("li", { className: styles$A.breadcrumbsItem, children: item }),
|
|
1217
|
+
index < lastIndex && /* @__PURE__ */ jsxRuntime.jsx("li", { className: styles$A.breadcrumbsItem, "aria-hidden": "true", children: separator })
|
|
1218
1218
|
] }, index)) }) });
|
|
1219
1219
|
}
|
|
1220
1220
|
Breadcrumbs.Item = BreadcrumbItem;
|
|
@@ -1229,7 +1229,7 @@ const neutral$2 = "_neutral_1waqk_78";
|
|
|
1229
1229
|
const lg$6 = "_lg_1waqk_145";
|
|
1230
1230
|
const md$9 = "_md_1waqk_153";
|
|
1231
1231
|
const sm$4 = "_sm_1waqk_161";
|
|
1232
|
-
const styles$
|
|
1232
|
+
const styles$y = {
|
|
1233
1233
|
button: button,
|
|
1234
1234
|
accent: accent$3,
|
|
1235
1235
|
primary: primary$2,
|
|
@@ -1247,7 +1247,7 @@ const accent$2 = "_accent_o8iku_10";
|
|
|
1247
1247
|
const neutral$1 = "_neutral_o8iku_22";
|
|
1248
1248
|
const lg$5 = "_lg_o8iku_41";
|
|
1249
1249
|
const md$8 = "_md_o8iku_46";
|
|
1250
|
-
const styles$
|
|
1250
|
+
const styles$x = {
|
|
1251
1251
|
buttonFunction: buttonFunction,
|
|
1252
1252
|
accent: accent$2,
|
|
1253
1253
|
neutral: neutral$1,
|
|
@@ -1267,7 +1267,7 @@ function ButtonFunction({
|
|
|
1267
1267
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1268
1268
|
Component,
|
|
1269
1269
|
{
|
|
1270
|
-
className: classNames(styles$
|
|
1270
|
+
className: classNames(styles$x.buttonFunction, styles$x[color], styles$x[size], className),
|
|
1271
1271
|
...props.disabled && { "data-disabled": true },
|
|
1272
1272
|
...!asChild && { type: "button" },
|
|
1273
1273
|
...props,
|
|
@@ -1289,7 +1289,7 @@ function Button({
|
|
|
1289
1289
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1290
1290
|
Component,
|
|
1291
1291
|
{
|
|
1292
|
-
className: classNames(styles$
|
|
1292
|
+
className: classNames(styles$y.button, styles$y[color], styles$y[size], styles$y[mode], className),
|
|
1293
1293
|
...!asChild && { type: "button" },
|
|
1294
1294
|
...props,
|
|
1295
1295
|
children
|
|
@@ -1301,7 +1301,7 @@ Button.Function = ButtonFunction;
|
|
|
1301
1301
|
const checkboxWrapper = "_checkboxWrapper_k1shg_2";
|
|
1302
1302
|
const icon$2 = "_icon_k1shg_23";
|
|
1303
1303
|
const checkbox = "_checkbox_k1shg_2";
|
|
1304
|
-
const styles$
|
|
1304
|
+
const styles$w = {
|
|
1305
1305
|
checkboxWrapper: checkboxWrapper,
|
|
1306
1306
|
icon: icon$2,
|
|
1307
1307
|
checkbox: checkbox
|
|
@@ -1314,11 +1314,11 @@ function Checkbox({ className, label, indeterminate, ...props }) {
|
|
|
1314
1314
|
{
|
|
1315
1315
|
"data-disabled": `${Boolean(props.disabled)}`,
|
|
1316
1316
|
"data-state": dataState,
|
|
1317
|
-
className: classNames(styles$
|
|
1317
|
+
className: classNames(styles$w.checkboxWrapper, className),
|
|
1318
1318
|
children: [
|
|
1319
|
-
dataState === "checked" && /* @__PURE__ */ jsxRuntime.jsx(IconCheck, { "data-disabled": `${Boolean(props.disabled)}`, className: styles$
|
|
1320
|
-
dataState === "indeterminate" && /* @__PURE__ */ jsxRuntime.jsx(IconMinus, { "data-disabled": `${Boolean(props.disabled)}`, className: styles$
|
|
1321
|
-
/* @__PURE__ */ jsxRuntime.jsx("input", { "data-state": dataState, type: "checkbox", className: styles$
|
|
1319
|
+
dataState === "checked" && /* @__PURE__ */ jsxRuntime.jsx(IconCheck, { "data-disabled": `${Boolean(props.disabled)}`, className: styles$w.icon }),
|
|
1320
|
+
dataState === "indeterminate" && /* @__PURE__ */ jsxRuntime.jsx(IconMinus, { "data-disabled": `${Boolean(props.disabled)}`, className: styles$w.icon }),
|
|
1321
|
+
/* @__PURE__ */ jsxRuntime.jsx("input", { "data-state": dataState, type: "checkbox", className: styles$w.checkbox, ...props }),
|
|
1322
1322
|
label
|
|
1323
1323
|
]
|
|
1324
1324
|
}
|
|
@@ -1326,7 +1326,7 @@ function Checkbox({ className, label, indeterminate, ...props }) {
|
|
|
1326
1326
|
}
|
|
1327
1327
|
|
|
1328
1328
|
const chip = "_chip_dj4kw_2";
|
|
1329
|
-
const styles$
|
|
1329
|
+
const styles$v = {
|
|
1330
1330
|
chip: chip
|
|
1331
1331
|
};
|
|
1332
1332
|
|
|
@@ -1334,7 +1334,7 @@ function Chip({ isSelected, children, className, disabled, ...props }) {
|
|
|
1334
1334
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1335
1335
|
"div",
|
|
1336
1336
|
{
|
|
1337
|
-
className: classNames(styles$
|
|
1337
|
+
className: classNames(styles$v.chip, className),
|
|
1338
1338
|
"data-selected": isSelected,
|
|
1339
1339
|
"data-disabled": disabled,
|
|
1340
1340
|
"aria-disabled": disabled,
|
|
@@ -1352,7 +1352,7 @@ const accent$1 = "_accent_ww0fb_37";
|
|
|
1352
1352
|
const neutral = "_neutral_ww0fb_42";
|
|
1353
1353
|
const secondary$2 = "_secondary_ww0fb_47";
|
|
1354
1354
|
const white = "_white_ww0fb_52";
|
|
1355
|
-
const styles$
|
|
1355
|
+
const styles$u = {
|
|
1356
1356
|
root: root$1,
|
|
1357
1357
|
lg: lg$4,
|
|
1358
1358
|
md: md$7,
|
|
@@ -1364,7 +1364,7 @@ const styles$p = {
|
|
|
1364
1364
|
};
|
|
1365
1365
|
|
|
1366
1366
|
function Counter({ className, size = "lg", color = "red", ...props }) {
|
|
1367
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$
|
|
1367
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$u.root, styles$u[size], styles$u[color], className), ...props });
|
|
1368
1368
|
}
|
|
1369
1369
|
|
|
1370
1370
|
const LOCALE_FIRST_DAY_OF_WEEK = {
|
|
@@ -1374,7 +1374,7 @@ const LOCALE_FIRST_DAY_OF_WEEK = {
|
|
|
1374
1374
|
|
|
1375
1375
|
const datePickerCellWrapper = "_datePickerCellWrapper_np1gx_2";
|
|
1376
1376
|
const datePickerCell = "_datePickerCell_np1gx_2";
|
|
1377
|
-
const styles$
|
|
1377
|
+
const styles$t = {
|
|
1378
1378
|
datePickerCellWrapper: datePickerCellWrapper,
|
|
1379
1379
|
datePickerCell: datePickerCell,
|
|
1380
1380
|
"radius-none": "_radius-none_np1gx_83",
|
|
@@ -1384,10 +1384,10 @@ const styles$o = {
|
|
|
1384
1384
|
};
|
|
1385
1385
|
|
|
1386
1386
|
function DatePickerCell({ children, className, state, isCurrent, radius = "both", ...props }) {
|
|
1387
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$
|
|
1387
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$t.datePickerCellWrapper, styles$t[`radius-${radius}`]), "data-state": state, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1388
1388
|
"button",
|
|
1389
1389
|
{
|
|
1390
|
-
className: classNames(styles$
|
|
1390
|
+
className: classNames(styles$t.datePickerCell, styles$t[`radius-${radius}`], className),
|
|
1391
1391
|
type: "button",
|
|
1392
1392
|
role: "gridcell",
|
|
1393
1393
|
"aria-selected": state === "selected",
|
|
@@ -1457,7 +1457,7 @@ function normalizeDateRange(firstDate, secondDate) {
|
|
|
1457
1457
|
const datePickerField = "_datePickerField_1qk8s_2";
|
|
1458
1458
|
const datePickerFieldCalendar = "_datePickerFieldCalendar_1qk8s_8";
|
|
1459
1459
|
const datePickerFieldWeek = "_datePickerFieldWeek_1qk8s_14";
|
|
1460
|
-
const styles$
|
|
1460
|
+
const styles$s = {
|
|
1461
1461
|
datePickerField: datePickerField,
|
|
1462
1462
|
datePickerFieldCalendar: datePickerFieldCalendar,
|
|
1463
1463
|
datePickerFieldWeek: datePickerFieldWeek
|
|
@@ -1472,9 +1472,9 @@ function DatePickerField({
|
|
|
1472
1472
|
firstDayOfWeek = LOCALE_FIRST_DAY_OF_WEEK.ru
|
|
1473
1473
|
}) {
|
|
1474
1474
|
const weeks = React.useMemo(() => getCalendarGrid(month, year, firstDayOfWeek), [month, year, firstDayOfWeek]);
|
|
1475
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: classNames(styles$
|
|
1475
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: classNames(styles$s.datePickerField, className), role: "grid", children: [
|
|
1476
1476
|
renderWeekdays?.(),
|
|
1477
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$
|
|
1477
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$s.datePickerFieldCalendar, role: "rowgroup", children: weeks.map((week, weekIndex) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$s.datePickerFieldWeek, role: "row", "aria-rowindex": weekIndex + 1, children: week.map((day, dayIndex) => /* @__PURE__ */ jsxRuntime.jsx(Slot, { role: "gridcell", "aria-colindex": dayIndex + 1, children: children(day) }, `${day.year}-${day.month}-${day.date}`)) }, weekIndex)) })
|
|
1478
1478
|
] });
|
|
1479
1479
|
}
|
|
1480
1480
|
|
|
@@ -1515,13 +1515,13 @@ const I18N_MONTH_LABELS = {
|
|
|
1515
1515
|
|
|
1516
1516
|
const datePickerWeekdays = "_datePickerWeekdays_p8tsm_2";
|
|
1517
1517
|
const datePickerWeekday = "_datePickerWeekday_p8tsm_2";
|
|
1518
|
-
const styles$
|
|
1518
|
+
const styles$r = {
|
|
1519
1519
|
datePickerWeekdays: datePickerWeekdays,
|
|
1520
1520
|
datePickerWeekday: datePickerWeekday
|
|
1521
1521
|
};
|
|
1522
1522
|
|
|
1523
1523
|
function DatePickerWeekDays({ className, locale = "ru" }) {
|
|
1524
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$
|
|
1524
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$r.datePickerWeekdays, className), role: "row", children: I18N_WEEKDAY_LABELS[locale].map((label) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$r.datePickerWeekday, role: "columnheader", children: label }, label)) });
|
|
1525
1525
|
}
|
|
1526
1526
|
|
|
1527
1527
|
function DatePicker() {
|
|
@@ -1757,21 +1757,21 @@ const DROPDOWN_PORTAL_SIDE_CONFIG = {
|
|
|
1757
1757
|
};
|
|
1758
1758
|
|
|
1759
1759
|
const dropdownContent = "_dropdownContent_12tkb_2";
|
|
1760
|
-
const styles$
|
|
1760
|
+
const styles$q = {
|
|
1761
1761
|
dropdownContent: dropdownContent
|
|
1762
1762
|
};
|
|
1763
1763
|
|
|
1764
1764
|
function DropdownContent({ className, children, ...props }) {
|
|
1765
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$
|
|
1765
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$q.dropdownContent, className), ...props, children });
|
|
1766
1766
|
}
|
|
1767
1767
|
|
|
1768
1768
|
const dropdownItem = "_dropdownItem_msc4i_2";
|
|
1769
|
-
const styles$
|
|
1769
|
+
const styles$p = {
|
|
1770
1770
|
dropdownItem: dropdownItem
|
|
1771
1771
|
};
|
|
1772
1772
|
|
|
1773
1773
|
function DropdownItem({ className, children, disabled, ...props }) {
|
|
1774
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$
|
|
1774
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$p.dropdownItem, className), role: "menuitem", "data-disabled": disabled, ...props, children });
|
|
1775
1775
|
}
|
|
1776
1776
|
|
|
1777
1777
|
const CLICK_OUTSIDE_IGNORE_DATA_NAME = "data-clickoutside-ignore";
|
|
@@ -2199,7 +2199,7 @@ function useTriggerHandlersByEventTrigger() {
|
|
|
2199
2199
|
}
|
|
2200
2200
|
|
|
2201
2201
|
const dropdownPortal = "_dropdownPortal_p3tdk_2";
|
|
2202
|
-
const styles$
|
|
2202
|
+
const styles$o = {
|
|
2203
2203
|
dropdownPortal: dropdownPortal
|
|
2204
2204
|
};
|
|
2205
2205
|
|
|
@@ -2239,7 +2239,7 @@ function DropdownPortal({
|
|
|
2239
2239
|
...style
|
|
2240
2240
|
},
|
|
2241
2241
|
ref: portalRef,
|
|
2242
|
-
className: classNames(styles$
|
|
2242
|
+
className: classNames(styles$o.dropdownPortal, className),
|
|
2243
2243
|
...handlersByTrigger[triggerEvent],
|
|
2244
2244
|
...isNested && { [CLICK_OUTSIDE_IGNORE_DATA_NAME]: "true" },
|
|
2245
2245
|
children
|
|
@@ -2296,7 +2296,7 @@ const closeButton = "_closeButton_1kerp_74";
|
|
|
2296
2296
|
const closeIcon = "_closeIcon_1kerp_95";
|
|
2297
2297
|
const description = "_description_1kerp_100";
|
|
2298
2298
|
const actions = "_actions_1kerp_108";
|
|
2299
|
-
const styles$
|
|
2299
|
+
const styles$n = {
|
|
2300
2300
|
notificationInline: notificationInline,
|
|
2301
2301
|
accent: accent,
|
|
2302
2302
|
negative: negative,
|
|
@@ -2331,15 +2331,15 @@ function NotificationInline({
|
|
|
2331
2331
|
...props
|
|
2332
2332
|
}) {
|
|
2333
2333
|
const StatusIcon = STATUS_ICONS[color];
|
|
2334
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: classNames(styles$
|
|
2335
|
-
/* @__PURE__ */ jsxRuntime.jsx(StatusIcon, { className: styles$
|
|
2336
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: styles$
|
|
2337
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: styles$
|
|
2338
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$
|
|
2339
|
-
onClose && /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", "aria-label": "Close", className: styles$
|
|
2334
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: classNames(styles$n.notificationInline, styles$n[color], styles$n[mode], className), ...props, children: [
|
|
2335
|
+
/* @__PURE__ */ jsxRuntime.jsx(StatusIcon, { className: styles$n.statusIcon, "aria-hidden": "true" }),
|
|
2336
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: styles$n.body, children: [
|
|
2337
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: styles$n.titleRow, children: [
|
|
2338
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$n.title, children: title }),
|
|
2339
|
+
onClose && /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", "aria-label": "Close", className: styles$n.closeButton, onClick: onClose, children: /* @__PURE__ */ jsxRuntime.jsx(IconXMark.Small, { className: styles$n.closeIcon, "aria-hidden": "true" }) })
|
|
2340
2340
|
] }),
|
|
2341
|
-
description && /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$
|
|
2342
|
-
children && /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$
|
|
2341
|
+
description && /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$n.description, children: description }),
|
|
2342
|
+
children && /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$n.actions, children })
|
|
2343
2343
|
] })
|
|
2344
2344
|
] });
|
|
2345
2345
|
}
|
|
@@ -2355,7 +2355,7 @@ const BOUNDARY_PAGES = 2;
|
|
|
2355
2355
|
const paginationItem = "_paginationItem_1ll6p_2";
|
|
2356
2356
|
const md$6 = "_md_1ll6p_46";
|
|
2357
2357
|
const sm$3 = "_sm_1ll6p_60";
|
|
2358
|
-
const styles$
|
|
2358
|
+
const styles$m = {
|
|
2359
2359
|
paginationItem: paginationItem,
|
|
2360
2360
|
md: md$6,
|
|
2361
2361
|
sm: sm$3
|
|
@@ -2367,7 +2367,7 @@ function PaginationItem({ className, children, size = "md", isCurrent, ...props
|
|
|
2367
2367
|
{
|
|
2368
2368
|
type: "button",
|
|
2369
2369
|
...isCurrent && { "aria-current": "page" },
|
|
2370
|
-
className: classNames(styles$
|
|
2370
|
+
className: classNames(styles$m.paginationItem, styles$m[size], className),
|
|
2371
2371
|
...props,
|
|
2372
2372
|
children
|
|
2373
2373
|
}
|
|
@@ -2404,7 +2404,7 @@ function getVisiblePages(totalPages, maxVisiblePagesWithEllipsis, currentPage) {
|
|
|
2404
2404
|
const paginationRoot = "_paginationRoot_c5fwx_2";
|
|
2405
2405
|
const paginationList = "_paginationList_c5fwx_7";
|
|
2406
2406
|
const arrowLeft = "_arrowLeft_c5fwx_13";
|
|
2407
|
-
const styles$
|
|
2407
|
+
const styles$l = {
|
|
2408
2408
|
paginationRoot: paginationRoot,
|
|
2409
2409
|
paginationList: paginationList,
|
|
2410
2410
|
arrowLeft: arrowLeft
|
|
@@ -2431,9 +2431,9 @@ function PaginationRoot({
|
|
|
2431
2431
|
{
|
|
2432
2432
|
"aria-label": "pagination navigation",
|
|
2433
2433
|
role: "navigation",
|
|
2434
|
-
className: classNames(styles$
|
|
2434
|
+
className: classNames(styles$l.paginationRoot, className),
|
|
2435
2435
|
...props,
|
|
2436
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs("ul", { className: styles$
|
|
2436
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs("ul", { className: styles$l.paginationList, children: [
|
|
2437
2437
|
showArrows && /* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2438
2438
|
PaginationItem$1,
|
|
2439
2439
|
{
|
|
@@ -2441,7 +2441,7 @@ function PaginationRoot({
|
|
|
2441
2441
|
onClick: () => onPageChange(currentPage - 1),
|
|
2442
2442
|
disabled: isFirstPage,
|
|
2443
2443
|
size,
|
|
2444
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(IconChevron$1, { className: styles$
|
|
2444
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(IconChevron$1, { className: styles$l.arrowLeft })
|
|
2445
2445
|
}
|
|
2446
2446
|
) }),
|
|
2447
2447
|
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(
|
|
@@ -2481,7 +2481,7 @@ const fill$1 = "_fill_33gbh_23";
|
|
|
2481
2481
|
const trail = "_trail_33gbh_28";
|
|
2482
2482
|
const sm$2 = "_sm_33gbh_32";
|
|
2483
2483
|
const md$5 = "_md_33gbh_36";
|
|
2484
|
-
const styles$
|
|
2484
|
+
const styles$k = {
|
|
2485
2485
|
root: root,
|
|
2486
2486
|
segment: segment,
|
|
2487
2487
|
flexGrow: flexGrow,
|
|
@@ -2502,7 +2502,7 @@ function ProgressBarLinear({
|
|
|
2502
2502
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2503
2503
|
"div",
|
|
2504
2504
|
{
|
|
2505
|
-
className: classNames(styles$
|
|
2505
|
+
className: classNames(styles$k.root, styles$k[size], className),
|
|
2506
2506
|
role: "progressbar",
|
|
2507
2507
|
"aria-valuenow": clampedPercent,
|
|
2508
2508
|
"aria-valuemin": 0,
|
|
@@ -2514,14 +2514,14 @@ function ProgressBarLinear({
|
|
|
2514
2514
|
(Boolean(clampedPercent) || showFillOnZero) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2515
2515
|
"div",
|
|
2516
2516
|
{
|
|
2517
|
-
className: classNames(styles$
|
|
2517
|
+
className: classNames(styles$k.segment, styles$k.fill),
|
|
2518
2518
|
style: {
|
|
2519
2519
|
"--clamped-percent": `${clampedPercent}%`
|
|
2520
2520
|
},
|
|
2521
2521
|
"aria-hidden": "true"
|
|
2522
2522
|
}
|
|
2523
2523
|
),
|
|
2524
|
-
clampedPercent < 100 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$
|
|
2524
|
+
clampedPercent < 100 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$k.segment, styles$k.flexGrow, styles$k.trail), "aria-hidden": "true" })
|
|
2525
2525
|
]
|
|
2526
2526
|
}
|
|
2527
2527
|
);
|
|
@@ -2541,7 +2541,7 @@ function ProgressBarSteps({
|
|
|
2541
2541
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2542
2542
|
"div",
|
|
2543
2543
|
{
|
|
2544
|
-
className: classNames(styles$
|
|
2544
|
+
className: classNames(styles$k.segment, styles$k.flexGrow, isFilled ? styles$k.fill : styles$k.trail),
|
|
2545
2545
|
"aria-hidden": "true"
|
|
2546
2546
|
},
|
|
2547
2547
|
index
|
|
@@ -2550,7 +2550,7 @@ function ProgressBarSteps({
|
|
|
2550
2550
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2551
2551
|
"div",
|
|
2552
2552
|
{
|
|
2553
|
-
className: classNames(styles$
|
|
2553
|
+
className: classNames(styles$k.root, styles$k[size], className),
|
|
2554
2554
|
role: "progressbar",
|
|
2555
2555
|
"aria-valuenow": clampedCurrent,
|
|
2556
2556
|
"aria-valuemin": 0,
|
|
@@ -2570,14 +2570,14 @@ ProgressBar.Steps = ProgressBarSteps;
|
|
|
2570
2570
|
|
|
2571
2571
|
const radioWrapper = "_radioWrapper_13xie_2";
|
|
2572
2572
|
const radio = "_radio_13xie_2";
|
|
2573
|
-
const styles$
|
|
2573
|
+
const styles$j = {
|
|
2574
2574
|
radioWrapper: radioWrapper,
|
|
2575
2575
|
radio: radio
|
|
2576
2576
|
};
|
|
2577
2577
|
|
|
2578
2578
|
function RadioButton({ className, label, ...props }) {
|
|
2579
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("label", { "data-disabled": `${Boolean(props.disabled)}`, className: classNames(styles$
|
|
2580
|
-
/* @__PURE__ */ jsxRuntime.jsx("input", { type: "radio", className: styles$
|
|
2579
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("label", { "data-disabled": `${Boolean(props.disabled)}`, className: classNames(styles$j.radioWrapper, className), children: [
|
|
2580
|
+
/* @__PURE__ */ jsxRuntime.jsx("input", { type: "radio", className: styles$j.radio, ...props }),
|
|
2581
2581
|
label
|
|
2582
2582
|
] });
|
|
2583
2583
|
}
|
|
@@ -2588,7 +2588,7 @@ const textFieldAreaWrapper = "_textFieldAreaWrapper_pia91_2";
|
|
|
2588
2588
|
const textFieldAreaLabel = "_textFieldAreaLabel_pia91_14";
|
|
2589
2589
|
const textFieldAreaLabelSuffix = "_textFieldAreaLabelSuffix_pia91_24";
|
|
2590
2590
|
const textFieldArea = "_textFieldArea_pia91_2";
|
|
2591
|
-
const styles$
|
|
2591
|
+
const styles$i = {
|
|
2592
2592
|
textFieldAreaWrapper: textFieldAreaWrapper,
|
|
2593
2593
|
textFieldAreaLabel: textFieldAreaLabel,
|
|
2594
2594
|
textFieldAreaLabelSuffix: textFieldAreaLabelSuffix,
|
|
@@ -2609,14 +2609,14 @@ function TextFieldArea({
|
|
|
2609
2609
|
"data-invalid": isInvalid,
|
|
2610
2610
|
"aria-invalid": isInvalid,
|
|
2611
2611
|
"data-element": "field",
|
|
2612
|
-
className: classNames(styles$
|
|
2612
|
+
className: classNames(styles$i.textFieldArea, className),
|
|
2613
2613
|
placeholder,
|
|
2614
2614
|
...props
|
|
2615
2615
|
}
|
|
2616
2616
|
);
|
|
2617
|
-
return floatingLabel ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles$
|
|
2618
|
-
/* @__PURE__ */ jsxRuntime.jsx("label", { htmlFor: props.id, className: styles$
|
|
2619
|
-
floatingLabelSuffix && /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$
|
|
2617
|
+
return floatingLabel ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles$i.textFieldAreaWrapper, children: [
|
|
2618
|
+
/* @__PURE__ */ jsxRuntime.jsx("label", { htmlFor: props.id, className: styles$i.textFieldAreaLabel, "data-element": "label", children: floatingLabel }),
|
|
2619
|
+
floatingLabelSuffix && /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$i.textFieldAreaLabelSuffix, "data-element": "label-suffix", children: floatingLabelSuffix }),
|
|
2620
2620
|
textFieldArea
|
|
2621
2621
|
] }) : textFieldArea;
|
|
2622
2622
|
}
|
|
@@ -2624,7 +2624,7 @@ function TextFieldArea({
|
|
|
2624
2624
|
const textFieldInputWrapper = "_textFieldInputWrapper_1m8sa_2";
|
|
2625
2625
|
const textFieldInputLabel = "_textFieldInputLabel_1m8sa_9";
|
|
2626
2626
|
const textFieldInput = "_textFieldInput_1m8sa_2";
|
|
2627
|
-
const styles$
|
|
2627
|
+
const styles$h = {
|
|
2628
2628
|
textFieldInputWrapper: textFieldInputWrapper,
|
|
2629
2629
|
textFieldInputLabel: textFieldInputLabel,
|
|
2630
2630
|
textFieldInput: textFieldInput
|
|
@@ -2643,37 +2643,37 @@ function TextFieldInput({
|
|
|
2643
2643
|
"data-invalid": isInvalid,
|
|
2644
2644
|
"aria-invalid": isInvalid,
|
|
2645
2645
|
"data-element": "field",
|
|
2646
|
-
className: classNames(styles$
|
|
2646
|
+
className: classNames(styles$h.textFieldInput, className),
|
|
2647
2647
|
placeholder,
|
|
2648
2648
|
...props
|
|
2649
2649
|
}
|
|
2650
2650
|
);
|
|
2651
|
-
return floatingLabel ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles$
|
|
2652
|
-
/* @__PURE__ */ jsxRuntime.jsx("label", { htmlFor: props.id, className: styles$
|
|
2651
|
+
return floatingLabel ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles$h.textFieldInputWrapper, children: [
|
|
2652
|
+
/* @__PURE__ */ jsxRuntime.jsx("label", { htmlFor: props.id, className: styles$h.textFieldInputLabel, "data-element": "label", children: floatingLabel }),
|
|
2653
2653
|
textFieldInput
|
|
2654
2654
|
] }) : textFieldInput;
|
|
2655
2655
|
}
|
|
2656
2656
|
|
|
2657
2657
|
const textFieldLabel = "_textFieldLabel_1xy6x_2";
|
|
2658
|
-
const styles$
|
|
2658
|
+
const styles$g = {
|
|
2659
2659
|
textFieldLabel: textFieldLabel
|
|
2660
2660
|
};
|
|
2661
2661
|
|
|
2662
2662
|
function TextFieldLabel({ className, children, isRequired, ...props }) {
|
|
2663
|
-
return /* @__PURE__ */ jsxRuntime.jsx("label", { className: classNames(styles$
|
|
2663
|
+
return /* @__PURE__ */ jsxRuntime.jsx("label", { className: classNames(styles$g.textFieldLabel, className), "data-required": isRequired, ...props, children });
|
|
2664
2664
|
}
|
|
2665
2665
|
|
|
2666
2666
|
const textFieldRoot = "_textFieldRoot_cs7mv_2";
|
|
2667
2667
|
const lg$3 = "_lg_cs7mv_38";
|
|
2668
2668
|
const md$4 = "_md_cs7mv_70";
|
|
2669
|
-
const styles$
|
|
2669
|
+
const styles$f = {
|
|
2670
2670
|
textFieldRoot: textFieldRoot,
|
|
2671
2671
|
lg: lg$3,
|
|
2672
2672
|
md: md$4
|
|
2673
2673
|
};
|
|
2674
2674
|
|
|
2675
2675
|
function TextFieldRoot({ className, size = "lg", ...props }) {
|
|
2676
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$
|
|
2676
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$f.textFieldRoot, styles$f[size], className), ...props });
|
|
2677
2677
|
}
|
|
2678
2678
|
|
|
2679
2679
|
function TextField() {
|
|
@@ -2688,7 +2688,7 @@ const custom = "_custom_gh87y_15";
|
|
|
2688
2688
|
const icon$1 = "_icon_gh87y_25";
|
|
2689
2689
|
const inputCustomWrapper = "_inputCustomWrapper_gh87y_34";
|
|
2690
2690
|
const customButton = "_customButton_gh87y_49";
|
|
2691
|
-
const styles$
|
|
2691
|
+
const styles$e = {
|
|
2692
2692
|
search: search,
|
|
2693
2693
|
"default": "_default_gh87y_10",
|
|
2694
2694
|
custom: custom,
|
|
@@ -2714,7 +2714,7 @@ function Search(props) {
|
|
|
2714
2714
|
value && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2715
2715
|
IconXMark.Small,
|
|
2716
2716
|
{
|
|
2717
|
-
className: styles$
|
|
2717
|
+
className: styles$e.icon,
|
|
2718
2718
|
"aria-label": "clear search",
|
|
2719
2719
|
role: "button",
|
|
2720
2720
|
onClick: () => {
|
|
@@ -2728,13 +2728,13 @@ function Search(props) {
|
|
|
2728
2728
|
}
|
|
2729
2729
|
)
|
|
2730
2730
|
] });
|
|
2731
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(TextField.Root, { size: "md", className: classNames(styles$
|
|
2731
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(TextField.Root, { size: "md", className: classNames(styles$e.search, styles$e[mode], className), children: [
|
|
2732
2732
|
mode === "default" && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2733
|
-
/* @__PURE__ */ jsxRuntime.jsx(IconSearch, { className: styles$
|
|
2733
|
+
/* @__PURE__ */ jsxRuntime.jsx(IconSearch, { className: styles$e.icon, "data-element": "icon" }),
|
|
2734
2734
|
inputField
|
|
2735
2735
|
] }),
|
|
2736
2736
|
mode === "custom" && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2737
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$
|
|
2737
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$e.inputCustomWrapper, children: inputField }),
|
|
2738
2738
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2739
2739
|
"button",
|
|
2740
2740
|
{
|
|
@@ -2742,11 +2742,11 @@ function Search(props) {
|
|
|
2742
2742
|
type: "button",
|
|
2743
2743
|
onClick: props.onSearch,
|
|
2744
2744
|
"data-element": "custom-button",
|
|
2745
|
-
className: styles$
|
|
2745
|
+
className: styles$e.customButton,
|
|
2746
2746
|
style: {
|
|
2747
2747
|
"--custom-button-width": `${props.buttonWidth ?? DEFAULT_CUSTOM_SEARCH_BUTTON_WIDTH}px`
|
|
2748
2748
|
},
|
|
2749
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(IconSearch, { className: classNames(styles$
|
|
2749
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(IconSearch, { className: classNames(styles$e.icon), "data-element": "icon" })
|
|
2750
2750
|
}
|
|
2751
2751
|
)
|
|
2752
2752
|
] })
|
|
@@ -2772,7 +2772,7 @@ function useSegmentControlContext() {
|
|
|
2772
2772
|
const segmentControlItem = "_segmentControlItem_178px_2";
|
|
2773
2773
|
const lg$2 = "_lg_178px_23";
|
|
2774
2774
|
const md$3 = "_md_178px_28";
|
|
2775
|
-
const styles$
|
|
2775
|
+
const styles$d = {
|
|
2776
2776
|
segmentControlItem: segmentControlItem,
|
|
2777
2777
|
lg: lg$2,
|
|
2778
2778
|
md: md$3
|
|
@@ -2788,7 +2788,7 @@ function SegmentControlItem({ className, children, value, ...props }) {
|
|
|
2788
2788
|
"aria-checked": value === activeValue,
|
|
2789
2789
|
"data-state": value === activeValue ? "on" : "off",
|
|
2790
2790
|
"data-value": value,
|
|
2791
|
-
className: classNames(styles$
|
|
2791
|
+
className: classNames(styles$d.segmentControlItem, styles$d[size], className),
|
|
2792
2792
|
...props,
|
|
2793
2793
|
children
|
|
2794
2794
|
}
|
|
@@ -2825,7 +2825,7 @@ const showAfterDelay = "_showAfterDelay_pulca_1";
|
|
|
2825
2825
|
const lg$1 = "_lg_pulca_19";
|
|
2826
2826
|
const md$2 = "_md_pulca_23";
|
|
2827
2827
|
const indicator$1 = "_indicator_pulca_28";
|
|
2828
|
-
const styles$
|
|
2828
|
+
const styles$c = {
|
|
2829
2829
|
segmentControlRoot: segmentControlRoot,
|
|
2830
2830
|
showAfterDelay: showAfterDelay,
|
|
2831
2831
|
lg: lg$1,
|
|
@@ -2840,11 +2840,11 @@ function SegmentControlRoot({ className, children, value, size = "md", ...props
|
|
|
2840
2840
|
{
|
|
2841
2841
|
ref: rootRef,
|
|
2842
2842
|
role: "radiogroup",
|
|
2843
|
-
className: classNames(styles$
|
|
2843
|
+
className: classNames(styles$c.segmentControlRoot, styles$c[size], className),
|
|
2844
2844
|
...props,
|
|
2845
2845
|
children: [
|
|
2846
2846
|
children,
|
|
2847
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$
|
|
2847
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$c.indicator, styles$c[size]), style: indicatorStyle })
|
|
2848
2848
|
]
|
|
2849
2849
|
}
|
|
2850
2850
|
) });
|
|
@@ -2939,7 +2939,7 @@ const mark = "_mark_vuele_39";
|
|
|
2939
2939
|
const markDot = "_markDot_vuele_43";
|
|
2940
2940
|
const track = "_track_vuele_56";
|
|
2941
2941
|
const marks = "_marks_vuele_106";
|
|
2942
|
-
const styles$
|
|
2942
|
+
const styles$b = {
|
|
2943
2943
|
slider: slider,
|
|
2944
2944
|
fill: fill,
|
|
2945
2945
|
rail: rail,
|
|
@@ -2951,16 +2951,16 @@ const styles$6 = {
|
|
|
2951
2951
|
};
|
|
2952
2952
|
|
|
2953
2953
|
function SliderMarks({ marks, min, max, activeFrom, activeTo }) {
|
|
2954
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$
|
|
2954
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$b.marks, children: marks.map(({ value, label }) => {
|
|
2955
2955
|
const isActive = value >= activeFrom && value <= activeTo;
|
|
2956
2956
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2957
2957
|
"div",
|
|
2958
2958
|
{
|
|
2959
2959
|
"data-state": isActive ? "active" : "default",
|
|
2960
|
-
className: styles$
|
|
2960
|
+
className: styles$b.mark,
|
|
2961
2961
|
style: { insetInlineStart: `${getPercent(value, { min, max })}%` },
|
|
2962
2962
|
children: [
|
|
2963
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$
|
|
2963
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$b.markDot }),
|
|
2964
2964
|
label
|
|
2965
2965
|
]
|
|
2966
2966
|
},
|
|
@@ -3083,7 +3083,7 @@ function SliderBase({
|
|
|
3083
3083
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3084
3084
|
"div",
|
|
3085
3085
|
{
|
|
3086
|
-
className: classNames(styles$
|
|
3086
|
+
className: classNames(styles$b.slider, className),
|
|
3087
3087
|
"data-disabled": disabled,
|
|
3088
3088
|
"data-marks": Boolean(marks?.length),
|
|
3089
3089
|
...props,
|
|
@@ -3091,18 +3091,18 @@ function SliderBase({
|
|
|
3091
3091
|
"div",
|
|
3092
3092
|
{
|
|
3093
3093
|
ref: railRef,
|
|
3094
|
-
className: styles$
|
|
3094
|
+
className: styles$b.rail,
|
|
3095
3095
|
onPointerDown: handlePointerDown,
|
|
3096
3096
|
onPointerMove: handlePointerMove,
|
|
3097
3097
|
onPointerUp: stopDragging,
|
|
3098
3098
|
onPointerCancel: stopDragging,
|
|
3099
3099
|
onLostPointerCapture: handleLostPointerCapture,
|
|
3100
3100
|
children: [
|
|
3101
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$
|
|
3101
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$b.track }),
|
|
3102
3102
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3103
3103
|
"div",
|
|
3104
3104
|
{
|
|
3105
|
-
className: styles$
|
|
3105
|
+
className: styles$b.fill,
|
|
3106
3106
|
style: { insetInlineStart: `${toPercent(fillFrom)}%`, insetInlineEnd: `${100 - toPercent(fillTo)}%` }
|
|
3107
3107
|
}
|
|
3108
3108
|
),
|
|
@@ -3124,7 +3124,7 @@ function SliderBase({
|
|
|
3124
3124
|
"aria-describedby": ariaDescribedBy,
|
|
3125
3125
|
"aria-disabled": disabled,
|
|
3126
3126
|
"aria-orientation": "horizontal",
|
|
3127
|
-
className: styles$
|
|
3127
|
+
className: styles$b.handle,
|
|
3128
3128
|
style: { insetInlineStart: `${toPercent(value)}%` },
|
|
3129
3129
|
onKeyDown: (event) => handleKeyDown(event, index)
|
|
3130
3130
|
},
|
|
@@ -3158,7 +3158,7 @@ const lg = "_lg_103n3_24";
|
|
|
3158
3158
|
const primary$1 = "_primary_103n3_31";
|
|
3159
3159
|
const secondary$1 = "_secondary_103n3_41";
|
|
3160
3160
|
const value = "_value_103n3_50";
|
|
3161
|
-
const styles$
|
|
3161
|
+
const styles$a = {
|
|
3162
3162
|
stepper: stepper,
|
|
3163
3163
|
sm: sm$1,
|
|
3164
3164
|
md: md$1,
|
|
@@ -3199,7 +3199,7 @@ function Stepper({
|
|
|
3199
3199
|
{
|
|
3200
3200
|
role: "group",
|
|
3201
3201
|
"aria-label": "Stepper",
|
|
3202
|
-
className: classNames(styles$
|
|
3202
|
+
className: classNames(styles$a.stepper, styles$a[size], styles$a[mode], className),
|
|
3203
3203
|
"data-disabled": disabled,
|
|
3204
3204
|
...props,
|
|
3205
3205
|
children: [
|
|
@@ -3215,7 +3215,7 @@ function Stepper({
|
|
|
3215
3215
|
children: /* @__PURE__ */ jsxRuntime.jsx(IconMinus, {})
|
|
3216
3216
|
}
|
|
3217
3217
|
),
|
|
3218
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$
|
|
3218
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$a.value, "aria-live": "polite", children: value }),
|
|
3219
3219
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3220
3220
|
Button,
|
|
3221
3221
|
{
|
|
@@ -3235,7 +3235,7 @@ function Stepper({
|
|
|
3235
3235
|
|
|
3236
3236
|
const switchWrapper = "_switchWrapper_1yukb_2";
|
|
3237
3237
|
const icon = "_icon_1yukb_25";
|
|
3238
|
-
const styles$
|
|
3238
|
+
const styles$9 = {
|
|
3239
3239
|
switchWrapper: switchWrapper,
|
|
3240
3240
|
icon: icon,
|
|
3241
3241
|
"switch": "_switch_1yukb_2"
|
|
@@ -3248,16 +3248,111 @@ function Switch({ className, label, indeterminate, ...props }) {
|
|
|
3248
3248
|
{
|
|
3249
3249
|
"data-disabled": `${Boolean(props.disabled)}`,
|
|
3250
3250
|
"data-state": dataState,
|
|
3251
|
-
className: classNames(styles$
|
|
3251
|
+
className: classNames(styles$9.switchWrapper, className),
|
|
3252
3252
|
children: [
|
|
3253
|
-
dataState === "indeterminate" && /* @__PURE__ */ jsxRuntime.jsx(IconMinus, { "data-disabled": `${Boolean(props.disabled)}`, className: styles$
|
|
3254
|
-
/* @__PURE__ */ jsxRuntime.jsx("input", { "data-state": dataState, type: "checkbox", role: "switch", className: styles$
|
|
3253
|
+
dataState === "indeterminate" && /* @__PURE__ */ jsxRuntime.jsx(IconMinus, { "data-disabled": `${Boolean(props.disabled)}`, className: styles$9.icon }),
|
|
3254
|
+
/* @__PURE__ */ jsxRuntime.jsx("input", { "data-state": dataState, type: "checkbox", role: "switch", className: styles$9.switch, ...props }),
|
|
3255
3255
|
label
|
|
3256
3256
|
]
|
|
3257
3257
|
}
|
|
3258
3258
|
);
|
|
3259
3259
|
}
|
|
3260
3260
|
|
|
3261
|
+
function TableBody({ className, children, ...props }) {
|
|
3262
|
+
return /* @__PURE__ */ jsxRuntime.jsx("tbody", { className, ...props, children });
|
|
3263
|
+
}
|
|
3264
|
+
|
|
3265
|
+
const tableCaption = "_tableCaption_fn9c1_2";
|
|
3266
|
+
const styles$8 = {
|
|
3267
|
+
tableCaption: tableCaption
|
|
3268
|
+
};
|
|
3269
|
+
|
|
3270
|
+
function TableCaption({ className, children, ...props }) {
|
|
3271
|
+
return /* @__PURE__ */ jsxRuntime.jsx("caption", { className: classNames(styles$8.tableCaption, className), ...props, children });
|
|
3272
|
+
}
|
|
3273
|
+
|
|
3274
|
+
const tableCell = "_tableCell_fsw3w_2";
|
|
3275
|
+
const left$1 = "_left_fsw3w_6";
|
|
3276
|
+
const center$1 = "_center_fsw3w_10";
|
|
3277
|
+
const right$1 = "_right_fsw3w_14";
|
|
3278
|
+
const styles$7 = {
|
|
3279
|
+
tableCell: tableCell,
|
|
3280
|
+
left: left$1,
|
|
3281
|
+
center: center$1,
|
|
3282
|
+
right: right$1
|
|
3283
|
+
};
|
|
3284
|
+
|
|
3285
|
+
function TableCell({ className, children, align = "left", ...props }) {
|
|
3286
|
+
return /* @__PURE__ */ jsxRuntime.jsx("td", { className: classNames(styles$7.tableCell, styles$7[align], className), ...props, children });
|
|
3287
|
+
}
|
|
3288
|
+
|
|
3289
|
+
function TableHeader({ className, children, ...props }) {
|
|
3290
|
+
return /* @__PURE__ */ jsxRuntime.jsx("thead", { className, ...props, children });
|
|
3291
|
+
}
|
|
3292
|
+
|
|
3293
|
+
const tableHeaderCell = "_tableHeaderCell_1ubwo_2";
|
|
3294
|
+
const left = "_left_1ubwo_10";
|
|
3295
|
+
const center = "_center_1ubwo_14";
|
|
3296
|
+
const right = "_right_1ubwo_18";
|
|
3297
|
+
const styles$6 = {
|
|
3298
|
+
tableHeaderCell: tableHeaderCell,
|
|
3299
|
+
left: left,
|
|
3300
|
+
center: center,
|
|
3301
|
+
right: right
|
|
3302
|
+
};
|
|
3303
|
+
|
|
3304
|
+
function TableHeaderCell({
|
|
3305
|
+
className,
|
|
3306
|
+
children,
|
|
3307
|
+
align = "left",
|
|
3308
|
+
scope = "col",
|
|
3309
|
+
...props
|
|
3310
|
+
}) {
|
|
3311
|
+
return /* @__PURE__ */ jsxRuntime.jsx("th", { scope, className: classNames(styles$6.tableHeaderCell, styles$6[align], className), ...props, children });
|
|
3312
|
+
}
|
|
3313
|
+
|
|
3314
|
+
const scrollContainer = "_scrollContainer_3qaei_2";
|
|
3315
|
+
const table = "_table_3qaei_10";
|
|
3316
|
+
const styles$5 = {
|
|
3317
|
+
scrollContainer: scrollContainer,
|
|
3318
|
+
table: table
|
|
3319
|
+
};
|
|
3320
|
+
|
|
3321
|
+
function TableRoot({ className, children, ...props }) {
|
|
3322
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$5.scrollContainer, children: /* @__PURE__ */ jsxRuntime.jsx("table", { className: classNames(styles$5.table, className), ...props, children }) });
|
|
3323
|
+
}
|
|
3324
|
+
|
|
3325
|
+
const tableRow = "_tableRow_1p3oc_2";
|
|
3326
|
+
const group = "_group_1p3oc_16";
|
|
3327
|
+
const current = "_current_1p3oc_23";
|
|
3328
|
+
const styles$4 = {
|
|
3329
|
+
tableRow: tableRow,
|
|
3330
|
+
"default": "_default_1p3oc_12",
|
|
3331
|
+
group: group,
|
|
3332
|
+
current: current
|
|
3333
|
+
};
|
|
3334
|
+
|
|
3335
|
+
function TableRow({ className, children, mode = "default", isCurrent = false, ...props }) {
|
|
3336
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3337
|
+
"tr",
|
|
3338
|
+
{
|
|
3339
|
+
className: classNames(styles$4.tableRow, styles$4[mode], isCurrent ? styles$4.current : void 0, className),
|
|
3340
|
+
...props,
|
|
3341
|
+
children
|
|
3342
|
+
}
|
|
3343
|
+
);
|
|
3344
|
+
}
|
|
3345
|
+
|
|
3346
|
+
function Table(props) {
|
|
3347
|
+
return /* @__PURE__ */ jsxRuntime.jsx(TableRoot, { ...props });
|
|
3348
|
+
}
|
|
3349
|
+
Table.Caption = TableCaption;
|
|
3350
|
+
Table.Header = TableHeader;
|
|
3351
|
+
Table.Body = TableBody;
|
|
3352
|
+
Table.Row = TableRow;
|
|
3353
|
+
Table.HeaderCell = TableHeaderCell;
|
|
3354
|
+
Table.Cell = TableCell;
|
|
3355
|
+
|
|
3261
3356
|
const TabsContext = React.createContext(null);
|
|
3262
3357
|
|
|
3263
3358
|
function TabsProvider({ children, value }) {
|
|
@@ -3554,6 +3649,7 @@ exports.SegmentControl = SegmentControl;
|
|
|
3554
3649
|
exports.Slider = Slider;
|
|
3555
3650
|
exports.Stepper = Stepper;
|
|
3556
3651
|
exports.Switch = Switch;
|
|
3652
|
+
exports.Table = Table;
|
|
3557
3653
|
exports.Tabs = Tabs;
|
|
3558
3654
|
exports.Tag = Tag;
|
|
3559
3655
|
exports.TextField = TextField;
|