@jackcrane/ui 0.1.14 → 0.1.16
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/components/SegmentedControl/segmented-control.d.ts +34 -0
- package/dist/index.d.ts +1 -0
- package/dist/jcui.cjs.js +706 -253
- package/dist/jcui.es.js +706 -253
- package/package.json +3 -1
package/dist/jcui.cjs.js
CHANGED
|
@@ -1097,6 +1097,186 @@ div.jcui_chamfer:not(.jcui_disabled):focus-within {
|
|
|
1097
1097
|
._secondary_1u214_129:hover {
|
|
1098
1098
|
--select-bg: var(--secondary-color-200);
|
|
1099
1099
|
}
|
|
1100
|
+
@property --segment-bg {
|
|
1101
|
+
syntax: "<color>";
|
|
1102
|
+
inherits: true;
|
|
1103
|
+
initial-value: transparent;
|
|
1104
|
+
}
|
|
1105
|
+
@property --segment-item-hover-bg {
|
|
1106
|
+
syntax: "<color>";
|
|
1107
|
+
inherits: true;
|
|
1108
|
+
initial-value: transparent;
|
|
1109
|
+
}
|
|
1110
|
+
@property --segment-item-active-bg {
|
|
1111
|
+
syntax: "<color>";
|
|
1112
|
+
inherits: true;
|
|
1113
|
+
initial-value: transparent;
|
|
1114
|
+
}
|
|
1115
|
+
@property --segment-item-color {
|
|
1116
|
+
syntax: "<color>";
|
|
1117
|
+
inherits: true;
|
|
1118
|
+
initial-value: inherit;
|
|
1119
|
+
}
|
|
1120
|
+
@property --segment-item-active-color {
|
|
1121
|
+
syntax: "<color>";
|
|
1122
|
+
inherits: true;
|
|
1123
|
+
initial-value: inherit;
|
|
1124
|
+
}
|
|
1125
|
+
._root_wrsjc_31 {
|
|
1126
|
+
--segment-bg: var(--body-bg);
|
|
1127
|
+
--segment-item-hover-bg: var(--secondary-color-100);
|
|
1128
|
+
--segment-item-active-bg: var(--secondary-color-300);
|
|
1129
|
+
--segment-item-color: var(--body-color);
|
|
1130
|
+
--segment-item-active-color: var(--body-color);
|
|
1131
|
+
--button-bg: var(--segment-bg);
|
|
1132
|
+
display: inline-flex;
|
|
1133
|
+
align-items: stretch;
|
|
1134
|
+
justify-content: flex-start;
|
|
1135
|
+
isolation: isolate;
|
|
1136
|
+
background-color: var(--segment-bg);
|
|
1137
|
+
color: var(--segment-item-color);
|
|
1138
|
+
}
|
|
1139
|
+
._item_wrsjc_47 {
|
|
1140
|
+
all: unset;
|
|
1141
|
+
box-sizing: border-box;
|
|
1142
|
+
position: relative;
|
|
1143
|
+
display: inline-flex;
|
|
1144
|
+
align-items: center;
|
|
1145
|
+
justify-content: center;
|
|
1146
|
+
font-size: 1rem;
|
|
1147
|
+
line-height: 1;
|
|
1148
|
+
padding: 0.5rem 1rem;
|
|
1149
|
+
color: var(--segment-item-color);
|
|
1150
|
+
cursor: pointer;
|
|
1151
|
+
user-select: none;
|
|
1152
|
+
background-color: transparent;
|
|
1153
|
+
border-top: var(--border-thickness) solid var(--border-color);
|
|
1154
|
+
border-bottom: var(--border-thickness) solid var(--border-color);
|
|
1155
|
+
border-left: var(--border-thickness) solid var(--border-color);
|
|
1156
|
+
margin-right: calc(-1 * var(--border-thickness));
|
|
1157
|
+
}
|
|
1158
|
+
._item_wrsjc_47:last-child {
|
|
1159
|
+
border-right: var(--border-thickness) solid var(--border-color);
|
|
1160
|
+
margin-right: 0;
|
|
1161
|
+
}
|
|
1162
|
+
._item_wrsjc_47:hover {
|
|
1163
|
+
background-color: var(--segment-item-hover-bg);
|
|
1164
|
+
}
|
|
1165
|
+
._item_wrsjc_47:focus-visible {
|
|
1166
|
+
outline: none;
|
|
1167
|
+
box-shadow: inset 0 0 0 1px var(--border-accent-color);
|
|
1168
|
+
}
|
|
1169
|
+
._item_wrsjc_47[data-state="on"] {
|
|
1170
|
+
background-color: var(--segment-item-active-bg);
|
|
1171
|
+
color: var(--segment-item-active-color);
|
|
1172
|
+
z-index: 1;
|
|
1173
|
+
}
|
|
1174
|
+
._chamferEnabled_wrsjc_87 ._item_wrsjc_47[data-state="on"]::after {
|
|
1175
|
+
content: "";
|
|
1176
|
+
position: absolute;
|
|
1177
|
+
top: calc(-1 * var(--border-thickness));
|
|
1178
|
+
right: 0;
|
|
1179
|
+
bottom: calc(-1 * var(--border-thickness));
|
|
1180
|
+
left: calc(-1 * var(--border-thickness));
|
|
1181
|
+
pointer-events: none;
|
|
1182
|
+
--bt: var(--border-thickness);
|
|
1183
|
+
--cd: var(--chamfer-distance);
|
|
1184
|
+
--chamfer-color: var(--border-accent-color);
|
|
1185
|
+
background:
|
|
1186
|
+
linear-gradient(var(--chamfer-color), var(--chamfer-color)) left top /
|
|
1187
|
+
var(--cd) var(--bt) no-repeat,
|
|
1188
|
+
linear-gradient(var(--chamfer-color), var(--chamfer-color)) left top /
|
|
1189
|
+
var(--bt) var(--cd) no-repeat,
|
|
1190
|
+
linear-gradient(var(--chamfer-color), var(--chamfer-color)) right top /
|
|
1191
|
+
var(--cd) var(--bt) no-repeat,
|
|
1192
|
+
linear-gradient(var(--chamfer-color), var(--chamfer-color)) right top /
|
|
1193
|
+
var(--bt) var(--cd) no-repeat,
|
|
1194
|
+
linear-gradient(var(--chamfer-color), var(--chamfer-color)) right bottom /
|
|
1195
|
+
var(--cd) var(--bt) no-repeat,
|
|
1196
|
+
linear-gradient(var(--chamfer-color), var(--chamfer-color)) right bottom /
|
|
1197
|
+
var(--bt) var(--cd) no-repeat,
|
|
1198
|
+
linear-gradient(var(--chamfer-color), var(--chamfer-color)) left bottom /
|
|
1199
|
+
var(--cd) var(--bt) no-repeat,
|
|
1200
|
+
linear-gradient(var(--chamfer-color), var(--chamfer-color)) left bottom /
|
|
1201
|
+
var(--bt) var(--cd) no-repeat;
|
|
1202
|
+
}
|
|
1203
|
+
._chamferEnabled_wrsjc_87 ._item_wrsjc_47[data-state="on"]:last-child::after {
|
|
1204
|
+
right: calc(-1 * var(--border-thickness));
|
|
1205
|
+
}
|
|
1206
|
+
._item_wrsjc_47[data-disabled] {
|
|
1207
|
+
opacity: 0.5;
|
|
1208
|
+
pointer-events: none;
|
|
1209
|
+
}
|
|
1210
|
+
._large_wrsjc_127 ._item_wrsjc_47 {
|
|
1211
|
+
font-size: 1.25rem;
|
|
1212
|
+
padding: 0.75rem 1.25rem;
|
|
1213
|
+
}
|
|
1214
|
+
._small_wrsjc_132 ._item_wrsjc_47 {
|
|
1215
|
+
font-size: 0.75rem;
|
|
1216
|
+
padding: 0.25rem 0.5rem;
|
|
1217
|
+
}
|
|
1218
|
+
._disabled_wrsjc_137 {
|
|
1219
|
+
opacity: 0.6;
|
|
1220
|
+
cursor: not-allowed;
|
|
1221
|
+
}
|
|
1222
|
+
._itemDisabled_wrsjc_142 {
|
|
1223
|
+
cursor: not-allowed;
|
|
1224
|
+
}
|
|
1225
|
+
/* Variants */
|
|
1226
|
+
._primary_wrsjc_148 {
|
|
1227
|
+
--segment-bg: var(--primary-color-100);
|
|
1228
|
+
--border-color: var(--primary-color-300);
|
|
1229
|
+
--border-accent-color: var(--primary-color-600);
|
|
1230
|
+
--segment-item-hover-bg: var(--primary-color-200);
|
|
1231
|
+
--segment-item-active-bg: var(--primary-color-300);
|
|
1232
|
+
--segment-item-color: var(--primary-color-800);
|
|
1233
|
+
--segment-item-active-color: var(--primary-color-900);
|
|
1234
|
+
}
|
|
1235
|
+
._secondary_wrsjc_158 {
|
|
1236
|
+
--segment-bg: var(--secondary-color-100);
|
|
1237
|
+
--border-color: var(--secondary-color-300);
|
|
1238
|
+
--border-accent-color: var(--secondary-color-600);
|
|
1239
|
+
--segment-item-hover-bg: var(--secondary-color-200);
|
|
1240
|
+
--segment-item-active-bg: var(--secondary-color-300);
|
|
1241
|
+
--segment-item-color: var(--secondary-color-800);
|
|
1242
|
+
--segment-item-active-color: var(--secondary-color-900);
|
|
1243
|
+
}
|
|
1244
|
+
._success_wrsjc_168 {
|
|
1245
|
+
--segment-bg: var(--success-color-100);
|
|
1246
|
+
--border-color: var(--success-color-300);
|
|
1247
|
+
--border-accent-color: var(--success-color-600);
|
|
1248
|
+
--segment-item-hover-bg: var(--success-color-200);
|
|
1249
|
+
--segment-item-active-bg: var(--success-color-300);
|
|
1250
|
+
--segment-item-color: var(--success-color-800);
|
|
1251
|
+
--segment-item-active-color: var(--success-color-900);
|
|
1252
|
+
}
|
|
1253
|
+
._warning_wrsjc_178 {
|
|
1254
|
+
--segment-bg: var(--warning-color-100);
|
|
1255
|
+
--border-color: var(--warning-color-300);
|
|
1256
|
+
--border-accent-color: var(--warning-color-600);
|
|
1257
|
+
--segment-item-hover-bg: var(--warning-color-200);
|
|
1258
|
+
--segment-item-active-bg: var(--warning-color-300);
|
|
1259
|
+
--segment-item-color: var(--warning-color-800);
|
|
1260
|
+
--segment-item-active-color: var(--warning-color-900);
|
|
1261
|
+
}
|
|
1262
|
+
._danger_wrsjc_188 {
|
|
1263
|
+
--segment-bg: var(--danger-color-100);
|
|
1264
|
+
--border-color: var(--danger-color-300);
|
|
1265
|
+
--border-accent-color: var(--danger-color-600);
|
|
1266
|
+
--segment-item-hover-bg: var(--danger-color-200);
|
|
1267
|
+
--segment-item-active-bg: var(--danger-color-300);
|
|
1268
|
+
--segment-item-color: var(--danger-color-800);
|
|
1269
|
+
--segment-item-active-color: var(--danger-color-900);
|
|
1270
|
+
}
|
|
1271
|
+
._info_wrsjc_198 {
|
|
1272
|
+
--segment-bg: var(--info-color-100);
|
|
1273
|
+
--border-color: var(--info-color-300);
|
|
1274
|
+
--border-accent-color: var(--info-color-600);
|
|
1275
|
+
--segment-item-hover-bg: var(--info-color-200);
|
|
1276
|
+
--segment-item-active-bg: var(--info-color-300);
|
|
1277
|
+
--segment-item-color: var(--info-color-800);
|
|
1278
|
+
--segment-item-active-color: var(--info-color-900);
|
|
1279
|
+
}
|
|
1100
1280
|
@property --dropdown-bg {
|
|
1101
1281
|
syntax: "<color>";
|
|
1102
1282
|
inherits: true;
|
|
@@ -2250,34 +2430,34 @@ function clsx() {
|
|
|
2250
2430
|
}
|
|
2251
2431
|
const button = "_button_105y0_7";
|
|
2252
2432
|
const pageBackground$4 = "_pageBackground_105y0_24";
|
|
2253
|
-
const large$
|
|
2254
|
-
const small$
|
|
2255
|
-
const disabled$
|
|
2256
|
-
const primary$
|
|
2257
|
-
const success$
|
|
2258
|
-
const warning$
|
|
2259
|
-
const danger$
|
|
2260
|
-
const info$
|
|
2261
|
-
const secondary$
|
|
2262
|
-
const styles$
|
|
2433
|
+
const large$8 = "_large_105y0_34";
|
|
2434
|
+
const small$8 = "_small_105y0_39";
|
|
2435
|
+
const disabled$8 = "_disabled_105y0_44";
|
|
2436
|
+
const primary$a = "_primary_105y0_51";
|
|
2437
|
+
const success$a = "_success_105y0_64";
|
|
2438
|
+
const warning$a = "_warning_105y0_77";
|
|
2439
|
+
const danger$a = "_danger_105y0_90";
|
|
2440
|
+
const info$a = "_info_105y0_103";
|
|
2441
|
+
const secondary$a = "_secondary_105y0_116";
|
|
2442
|
+
const styles$d = {
|
|
2263
2443
|
button,
|
|
2264
2444
|
pageBackground: pageBackground$4,
|
|
2265
|
-
large: large$
|
|
2266
|
-
small: small$
|
|
2267
|
-
disabled: disabled$
|
|
2268
|
-
primary: primary$
|
|
2269
|
-
success: success$
|
|
2270
|
-
warning: warning$
|
|
2271
|
-
danger: danger$
|
|
2272
|
-
info: info$
|
|
2273
|
-
secondary: secondary$
|
|
2445
|
+
large: large$8,
|
|
2446
|
+
small: small$8,
|
|
2447
|
+
disabled: disabled$8,
|
|
2448
|
+
primary: primary$a,
|
|
2449
|
+
success: success$a,
|
|
2450
|
+
warning: warning$a,
|
|
2451
|
+
danger: danger$a,
|
|
2452
|
+
info: info$a,
|
|
2453
|
+
secondary: secondary$a
|
|
2274
2454
|
};
|
|
2275
2455
|
const chamfer$1 = "_chamfer_1unae_1";
|
|
2276
|
-
const disabled$
|
|
2456
|
+
const disabled$7 = "_disabled_1unae_16";
|
|
2277
2457
|
const chamferOnHover = "_chamferOnHover_1unae_67";
|
|
2278
2458
|
const chamferStyles = {
|
|
2279
2459
|
chamfer: chamfer$1,
|
|
2280
|
-
disabled: disabled$
|
|
2460
|
+
disabled: disabled$7,
|
|
2281
2461
|
chamferOnHover
|
|
2282
2462
|
};
|
|
2283
2463
|
const hatch$1 = "_hatch_rrcdt_1";
|
|
@@ -2292,10 +2472,10 @@ const ThemeContext = React.createContext({
|
|
|
2292
2472
|
});
|
|
2293
2473
|
const useJCUITheme = () => React.useContext(ThemeContext);
|
|
2294
2474
|
const loader = "_loader_1y0fe_1";
|
|
2295
|
-
const styles$
|
|
2475
|
+
const styles$c = {
|
|
2296
2476
|
loader
|
|
2297
2477
|
};
|
|
2298
|
-
const Loader = (props) => /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$
|
|
2478
|
+
const Loader = (props) => /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$c.loader, ...props });
|
|
2299
2479
|
function Button({
|
|
2300
2480
|
children: children2,
|
|
2301
2481
|
variant,
|
|
@@ -2309,15 +2489,15 @@ function Button({
|
|
|
2309
2489
|
"button",
|
|
2310
2490
|
{
|
|
2311
2491
|
className: clsx(
|
|
2312
|
-
styles$
|
|
2313
|
-
!variant && styles$
|
|
2314
|
-
styles$
|
|
2492
|
+
styles$d.button,
|
|
2493
|
+
!variant && styles$d.pageBackground,
|
|
2494
|
+
styles$d[variant],
|
|
2315
2495
|
chamfer2 && chamferStyles.chamfer,
|
|
2316
|
-
size2 === "large" && styles$
|
|
2317
|
-
size2 === "small" && styles$
|
|
2496
|
+
size2 === "large" && styles$d.large,
|
|
2497
|
+
size2 === "small" && styles$d.small,
|
|
2318
2498
|
disabled2 && chamferStyles.disabled,
|
|
2319
2499
|
disabled2 && hatchStyles.hatch,
|
|
2320
|
-
disabled2 && styles$
|
|
2500
|
+
disabled2 && styles$d.disabled
|
|
2321
2501
|
),
|
|
2322
2502
|
disabled: disabled2,
|
|
2323
2503
|
...props,
|
|
@@ -2430,28 +2610,28 @@ const pageBackground$3 = "_pageBackground_et6fi_11";
|
|
|
2430
2610
|
const title$1 = "_title_et6fi_18";
|
|
2431
2611
|
const body$1 = "_body_et6fi_25";
|
|
2432
2612
|
const footer$1 = "_footer_et6fi_30";
|
|
2433
|
-
const large$
|
|
2434
|
-
const small$
|
|
2435
|
-
const primary$
|
|
2436
|
-
const success$
|
|
2437
|
-
const warning$
|
|
2438
|
-
const danger$
|
|
2439
|
-
const info$
|
|
2440
|
-
const secondary$
|
|
2441
|
-
const styles$
|
|
2613
|
+
const large$7 = "_large_et6fi_37";
|
|
2614
|
+
const small$7 = "_small_et6fi_43";
|
|
2615
|
+
const primary$9 = "_primary_et6fi_51";
|
|
2616
|
+
const success$9 = "_success_et6fi_58";
|
|
2617
|
+
const warning$9 = "_warning_et6fi_65";
|
|
2618
|
+
const danger$9 = "_danger_et6fi_72";
|
|
2619
|
+
const info$9 = "_info_et6fi_79";
|
|
2620
|
+
const secondary$9 = "_secondary_et6fi_86";
|
|
2621
|
+
const styles$b = {
|
|
2442
2622
|
card,
|
|
2443
2623
|
pageBackground: pageBackground$3,
|
|
2444
2624
|
title: title$1,
|
|
2445
2625
|
body: body$1,
|
|
2446
2626
|
footer: footer$1,
|
|
2447
|
-
large: large$
|
|
2448
|
-
small: small$
|
|
2449
|
-
primary: primary$
|
|
2450
|
-
success: success$
|
|
2451
|
-
warning: warning$
|
|
2452
|
-
danger: danger$
|
|
2453
|
-
info: info$
|
|
2454
|
-
secondary: secondary$
|
|
2627
|
+
large: large$7,
|
|
2628
|
+
small: small$7,
|
|
2629
|
+
primary: primary$9,
|
|
2630
|
+
success: success$9,
|
|
2631
|
+
warning: warning$9,
|
|
2632
|
+
danger: danger$9,
|
|
2633
|
+
info: info$9,
|
|
2634
|
+
secondary: secondary$9
|
|
2455
2635
|
};
|
|
2456
2636
|
function Card({
|
|
2457
2637
|
children: children2,
|
|
@@ -2468,21 +2648,21 @@ function Card({
|
|
|
2468
2648
|
"div",
|
|
2469
2649
|
{
|
|
2470
2650
|
className: classNames(
|
|
2471
|
-
styles$
|
|
2472
|
-
!variant && styles$
|
|
2473
|
-
styles$
|
|
2651
|
+
styles$b.card,
|
|
2652
|
+
!variant && styles$b.pageBackground,
|
|
2653
|
+
styles$b[variant],
|
|
2474
2654
|
chamfer2 && chamferStyles.chamfer,
|
|
2475
|
-
size2 === "large" && styles$
|
|
2476
|
-
size2 === "small" && styles$
|
|
2655
|
+
size2 === "large" && styles$b.large,
|
|
2656
|
+
size2 === "small" && styles$b.small
|
|
2477
2657
|
),
|
|
2478
2658
|
...props,
|
|
2479
2659
|
children: [
|
|
2480
|
-
title2 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: classNames(styles$
|
|
2481
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$
|
|
2660
|
+
title2 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: classNames(styles$b.title, hatchStyles.hatch), children: title2 }),
|
|
2661
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$b.body, children: children2 }),
|
|
2482
2662
|
footerHeight > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
2483
2663
|
"div",
|
|
2484
2664
|
{
|
|
2485
|
-
className: classNames(hatchStyles.hatch, styles$
|
|
2665
|
+
className: classNames(hatchStyles.hatch, styles$b.footer),
|
|
2486
2666
|
style: { flexBasis: footerHeight },
|
|
2487
2667
|
children: footer2
|
|
2488
2668
|
}
|
|
@@ -3213,34 +3393,34 @@ function getState$2(checked) {
|
|
|
3213
3393
|
return isIndeterminate$1(checked) ? "indeterminate" : checked ? "checked" : "unchecked";
|
|
3214
3394
|
}
|
|
3215
3395
|
const wrapper$1 = "_wrapper_178xv_25";
|
|
3216
|
-
const disabled$
|
|
3217
|
-
const root$
|
|
3396
|
+
const disabled$6 = "_disabled_178xv_34";
|
|
3397
|
+
const root$4 = "_root_178xv_39";
|
|
3218
3398
|
const indicator$1 = "_indicator_178xv_76";
|
|
3219
|
-
const large$
|
|
3220
|
-
const small$
|
|
3399
|
+
const large$6 = "_large_178xv_94";
|
|
3400
|
+
const small$6 = "_small_178xv_99";
|
|
3221
3401
|
const disabledBox = "_disabledBox_178xv_104";
|
|
3222
3402
|
const label$3 = "_label_178xv_109";
|
|
3223
|
-
const primary$
|
|
3224
|
-
const secondary$
|
|
3225
|
-
const success$
|
|
3226
|
-
const warning$
|
|
3227
|
-
const danger$
|
|
3228
|
-
const info$
|
|
3229
|
-
const styles$
|
|
3403
|
+
const primary$8 = "_primary_178xv_117";
|
|
3404
|
+
const secondary$8 = "_secondary_178xv_126";
|
|
3405
|
+
const success$8 = "_success_178xv_135";
|
|
3406
|
+
const warning$8 = "_warning_178xv_144";
|
|
3407
|
+
const danger$8 = "_danger_178xv_153";
|
|
3408
|
+
const info$8 = "_info_178xv_162";
|
|
3409
|
+
const styles$a = {
|
|
3230
3410
|
wrapper: wrapper$1,
|
|
3231
|
-
disabled: disabled$
|
|
3232
|
-
root: root$
|
|
3411
|
+
disabled: disabled$6,
|
|
3412
|
+
root: root$4,
|
|
3233
3413
|
indicator: indicator$1,
|
|
3234
|
-
large: large$
|
|
3235
|
-
small: small$
|
|
3414
|
+
large: large$6,
|
|
3415
|
+
small: small$6,
|
|
3236
3416
|
disabledBox,
|
|
3237
3417
|
label: label$3,
|
|
3238
|
-
primary: primary$
|
|
3239
|
-
secondary: secondary$
|
|
3240
|
-
success: success$
|
|
3241
|
-
warning: warning$
|
|
3242
|
-
danger: danger$
|
|
3243
|
-
info: info$
|
|
3418
|
+
primary: primary$8,
|
|
3419
|
+
secondary: secondary$8,
|
|
3420
|
+
success: success$8,
|
|
3421
|
+
warning: warning$8,
|
|
3422
|
+
danger: danger$8,
|
|
3423
|
+
info: info$8
|
|
3244
3424
|
};
|
|
3245
3425
|
const CheckIcon = () => /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { viewBox: "0 0 24 24", fill: "none", role: "presentation", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
3246
3426
|
"polyline",
|
|
@@ -3263,32 +3443,32 @@ function Checkbox({
|
|
|
3263
3443
|
...props
|
|
3264
3444
|
}) {
|
|
3265
3445
|
const labelContent = label2 ?? children2;
|
|
3266
|
-
const variantClass = variant && styles$
|
|
3267
|
-
const sizeClass = size2 === "large" ? styles$
|
|
3446
|
+
const variantClass = variant && styles$a[variant];
|
|
3447
|
+
const sizeClass = size2 === "large" ? styles$a.large : size2 === "small" ? styles$a.small : null;
|
|
3268
3448
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
3269
3449
|
"label",
|
|
3270
3450
|
{
|
|
3271
|
-
className: clsx(styles$
|
|
3451
|
+
className: clsx(styles$a.wrapper, variantClass, disabled2 && styles$a.disabled),
|
|
3272
3452
|
children: [
|
|
3273
3453
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
3274
3454
|
Checkbox$1,
|
|
3275
3455
|
{
|
|
3276
3456
|
className: clsx(
|
|
3277
|
-
styles$
|
|
3457
|
+
styles$a.root,
|
|
3278
3458
|
variantClass,
|
|
3279
3459
|
sizeClass,
|
|
3280
3460
|
chamfer2 && chamferStyles.chamfer,
|
|
3281
3461
|
disabled2 && chamferStyles.disabled,
|
|
3282
3462
|
disabled2 && hatchStyles.hatch,
|
|
3283
|
-
disabled2 && styles$
|
|
3463
|
+
disabled2 && styles$a.disabledBox,
|
|
3284
3464
|
className
|
|
3285
3465
|
),
|
|
3286
3466
|
disabled: disabled2,
|
|
3287
3467
|
...props,
|
|
3288
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(CheckboxIndicator, { className: styles$
|
|
3468
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(CheckboxIndicator, { className: styles$a.indicator, children: /* @__PURE__ */ jsxRuntimeExports.jsx(CheckIcon, {}) })
|
|
3289
3469
|
}
|
|
3290
3470
|
),
|
|
3291
|
-
labelContent && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$
|
|
3471
|
+
labelContent && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$a.label, children: labelContent })
|
|
3292
3472
|
]
|
|
3293
3473
|
}
|
|
3294
3474
|
);
|
|
@@ -4738,13 +4918,13 @@ function* selection_iterator() {
|
|
|
4738
4918
|
}
|
|
4739
4919
|
}
|
|
4740
4920
|
}
|
|
4741
|
-
var root$
|
|
4921
|
+
var root$3 = [null];
|
|
4742
4922
|
function Selection$1(groups, parents) {
|
|
4743
4923
|
this._groups = groups;
|
|
4744
4924
|
this._parents = parents;
|
|
4745
4925
|
}
|
|
4746
4926
|
function selection() {
|
|
4747
|
-
return new Selection$1([[document.documentElement]], root$
|
|
4927
|
+
return new Selection$1([[document.documentElement]], root$3);
|
|
4748
4928
|
}
|
|
4749
4929
|
function selection_selection() {
|
|
4750
4930
|
return this;
|
|
@@ -4788,7 +4968,7 @@ Selection$1.prototype = selection.prototype = {
|
|
|
4788
4968
|
[Symbol.iterator]: selection_iterator
|
|
4789
4969
|
};
|
|
4790
4970
|
function select(selector2) {
|
|
4791
|
-
return typeof selector2 === "string" ? new Selection$1([[document.querySelector(selector2)]], [document.documentElement]) : new Selection$1([[selector2]], root$
|
|
4971
|
+
return typeof selector2 === "string" ? new Selection$1([[document.querySelector(selector2)]], [document.documentElement]) : new Selection$1([[selector2]], root$3);
|
|
4792
4972
|
}
|
|
4793
4973
|
function sourceEvent(event) {
|
|
4794
4974
|
let sourceEvent2;
|
|
@@ -14138,7 +14318,7 @@ let nextClipId = 0;
|
|
|
14138
14318
|
function getClipId() {
|
|
14139
14319
|
return `plot-clip-${++nextClipId}`;
|
|
14140
14320
|
}
|
|
14141
|
-
function styles$
|
|
14321
|
+
function styles$9(mark, {
|
|
14142
14322
|
title: title2,
|
|
14143
14323
|
href,
|
|
14144
14324
|
ariaLabel: variaLabel,
|
|
@@ -14504,7 +14684,7 @@ class Mark {
|
|
|
14504
14684
|
this.facetAnchor = maybeFacetAnchor(facetAnchor);
|
|
14505
14685
|
channels = maybeNamed(channels);
|
|
14506
14686
|
if (extraChannels !== void 0) channels = { ...maybeChannels(extraChannels), ...channels };
|
|
14507
|
-
if (defaults2 !== void 0) channels = { ...styles$
|
|
14687
|
+
if (defaults2 !== void 0) channels = { ...styles$9(this, options, defaults2), ...channels };
|
|
14508
14688
|
this.channels = Object.fromEntries(
|
|
14509
14689
|
Object.entries(channels).map(([name, channel]) => {
|
|
14510
14690
|
if (isOptions(channel.value)) {
|
|
@@ -19532,29 +19712,29 @@ const RadarChart = ({
|
|
|
19532
19712
|
};
|
|
19533
19713
|
const input$1 = "_input_1ymvl_7";
|
|
19534
19714
|
const pageBackground$2 = "_pageBackground_1ymvl_24";
|
|
19535
|
-
const large$
|
|
19536
|
-
const small$
|
|
19537
|
-
const disabled$
|
|
19538
|
-
const primary$
|
|
19539
|
-
const success$
|
|
19540
|
-
const warning$
|
|
19541
|
-
const danger$
|
|
19542
|
-
const info$
|
|
19543
|
-
const secondary$
|
|
19715
|
+
const large$5 = "_large_1ymvl_38";
|
|
19716
|
+
const small$5 = "_small_1ymvl_43";
|
|
19717
|
+
const disabled$5 = "_disabled_1ymvl_48";
|
|
19718
|
+
const primary$7 = "_primary_1ymvl_55";
|
|
19719
|
+
const success$7 = "_success_1ymvl_64";
|
|
19720
|
+
const warning$7 = "_warning_1ymvl_72";
|
|
19721
|
+
const danger$7 = "_danger_1ymvl_80";
|
|
19722
|
+
const info$7 = "_info_1ymvl_88";
|
|
19723
|
+
const secondary$7 = "_secondary_1ymvl_97";
|
|
19544
19724
|
const field = "_field_1ymvl_106";
|
|
19545
19725
|
const label$2 = "_label_1ymvl_112";
|
|
19546
|
-
const styles$
|
|
19726
|
+
const styles$8 = {
|
|
19547
19727
|
input: input$1,
|
|
19548
19728
|
pageBackground: pageBackground$2,
|
|
19549
|
-
large: large$
|
|
19550
|
-
small: small$
|
|
19551
|
-
disabled: disabled$
|
|
19552
|
-
primary: primary$
|
|
19553
|
-
success: success$
|
|
19554
|
-
warning: warning$
|
|
19555
|
-
danger: danger$
|
|
19556
|
-
info: info$
|
|
19557
|
-
secondary: secondary$
|
|
19729
|
+
large: large$5,
|
|
19730
|
+
small: small$5,
|
|
19731
|
+
disabled: disabled$5,
|
|
19732
|
+
primary: primary$7,
|
|
19733
|
+
success: success$7,
|
|
19734
|
+
warning: warning$7,
|
|
19735
|
+
danger: danger$7,
|
|
19736
|
+
info: info$7,
|
|
19737
|
+
secondary: secondary$7,
|
|
19558
19738
|
field,
|
|
19559
19739
|
label: label$2
|
|
19560
19740
|
};
|
|
@@ -19567,28 +19747,28 @@ function Input({
|
|
|
19567
19747
|
...props
|
|
19568
19748
|
}) {
|
|
19569
19749
|
const inputId = React.useId();
|
|
19570
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$
|
|
19571
|
-
label2 && /* @__PURE__ */ jsxRuntimeExports.jsx("label", { className: styles$
|
|
19750
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$8.field, children: [
|
|
19751
|
+
label2 && /* @__PURE__ */ jsxRuntimeExports.jsx("label", { className: styles$8.label, htmlFor: inputId, children: label2 }),
|
|
19572
19752
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
19573
19753
|
"div",
|
|
19574
19754
|
{
|
|
19575
19755
|
className: classNames(
|
|
19576
19756
|
chamfer2 && chamferStyles.chamfer,
|
|
19577
|
-
!variant && styles$
|
|
19578
|
-
styles$
|
|
19757
|
+
!variant && styles$8.pageBackground,
|
|
19758
|
+
styles$8[variant]
|
|
19579
19759
|
),
|
|
19580
19760
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
19581
19761
|
"input",
|
|
19582
19762
|
{
|
|
19583
19763
|
id: inputId,
|
|
19584
19764
|
className: classNames(
|
|
19585
|
-
styles$
|
|
19586
|
-
!variant && styles$
|
|
19587
|
-
styles$
|
|
19588
|
-
size2 === "large" && styles$
|
|
19589
|
-
size2 === "small" && styles$
|
|
19765
|
+
styles$8.input,
|
|
19766
|
+
!variant && styles$8.pageBackground,
|
|
19767
|
+
styles$8[variant],
|
|
19768
|
+
size2 === "large" && styles$8.large,
|
|
19769
|
+
size2 === "small" && styles$8.small,
|
|
19590
19770
|
disabled2 && chamferStyles.disabled,
|
|
19591
|
-
disabled2 && styles$
|
|
19771
|
+
disabled2 && styles$8.disabled,
|
|
19592
19772
|
disabled2 && hatchStyles.hatch
|
|
19593
19773
|
),
|
|
19594
19774
|
disabled: disabled2,
|
|
@@ -19603,7 +19783,7 @@ function Input({
|
|
|
19603
19783
|
)
|
|
19604
19784
|
] });
|
|
19605
19785
|
}
|
|
19606
|
-
const root$
|
|
19786
|
+
const root$2 = "_root_i158m_7";
|
|
19607
19787
|
const label$1 = "_label_i158m_14";
|
|
19608
19788
|
const dropzone = "_dropzone_i158m_18";
|
|
19609
19789
|
const pageBackground$1 = "_pageBackground_i158m_42";
|
|
@@ -19627,19 +19807,19 @@ const customFile = "_customFile_i158m_182";
|
|
|
19627
19807
|
const removeButton = "_removeButton_i158m_195";
|
|
19628
19808
|
const trashIcon = "_trashIcon_i158m_222";
|
|
19629
19809
|
const trashLid = "_trashLid_i158m_227";
|
|
19630
|
-
const large$
|
|
19631
|
-
const small$
|
|
19810
|
+
const large$4 = "_large_i158m_249";
|
|
19811
|
+
const small$4 = "_small_i158m_258";
|
|
19632
19812
|
const hasFiles = "_hasFiles_i158m_271";
|
|
19633
19813
|
const dragging = "_dragging_i158m_275";
|
|
19634
|
-
const disabled$
|
|
19635
|
-
const primary$
|
|
19636
|
-
const success$
|
|
19637
|
-
const warning$
|
|
19638
|
-
const danger$
|
|
19639
|
-
const info$
|
|
19640
|
-
const secondary$
|
|
19641
|
-
const styles$
|
|
19642
|
-
root: root$
|
|
19814
|
+
const disabled$4 = "_disabled_i158m_280";
|
|
19815
|
+
const primary$6 = "_primary_i158m_285";
|
|
19816
|
+
const success$6 = "_success_i158m_297";
|
|
19817
|
+
const warning$6 = "_warning_i158m_309";
|
|
19818
|
+
const danger$6 = "_danger_i158m_321";
|
|
19819
|
+
const info$6 = "_info_i158m_333";
|
|
19820
|
+
const secondary$6 = "_secondary_i158m_345";
|
|
19821
|
+
const styles$7 = {
|
|
19822
|
+
root: root$2,
|
|
19643
19823
|
label: label$1,
|
|
19644
19824
|
dropzone,
|
|
19645
19825
|
pageBackground: pageBackground$1,
|
|
@@ -19663,17 +19843,17 @@ const styles$6 = {
|
|
|
19663
19843
|
removeButton,
|
|
19664
19844
|
trashIcon,
|
|
19665
19845
|
trashLid,
|
|
19666
|
-
large: large$
|
|
19667
|
-
small: small$
|
|
19846
|
+
large: large$4,
|
|
19847
|
+
small: small$4,
|
|
19668
19848
|
hasFiles,
|
|
19669
19849
|
dragging,
|
|
19670
|
-
disabled: disabled$
|
|
19671
|
-
primary: primary$
|
|
19672
|
-
success: success$
|
|
19673
|
-
warning: warning$
|
|
19674
|
-
danger: danger$
|
|
19675
|
-
info: info$
|
|
19676
|
-
secondary: secondary$
|
|
19850
|
+
disabled: disabled$4,
|
|
19851
|
+
primary: primary$6,
|
|
19852
|
+
success: success$6,
|
|
19853
|
+
warning: warning$6,
|
|
19854
|
+
danger: danger$6,
|
|
19855
|
+
info: info$6,
|
|
19856
|
+
secondary: secondary$6
|
|
19677
19857
|
};
|
|
19678
19858
|
const normalizeFiles = (value, multiple = false) => {
|
|
19679
19859
|
if (!value) {
|
|
@@ -19776,9 +19956,9 @@ const TrashIcon = () => /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
|
19776
19956
|
fill: "none",
|
|
19777
19957
|
role: "presentation",
|
|
19778
19958
|
"aria-hidden": true,
|
|
19779
|
-
className: styles$
|
|
19959
|
+
className: styles$7.trashIcon,
|
|
19780
19960
|
children: [
|
|
19781
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("g", { className: styles$
|
|
19961
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("g", { className: styles$7.trashLid, children: [
|
|
19782
19962
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
19783
19963
|
"path",
|
|
19784
19964
|
{
|
|
@@ -20017,23 +20197,23 @@ const FileUpload = React.forwardRef(function FileUpload2({
|
|
|
20017
20197
|
const selectedSummary = selectedFiles.length > 0 ? `${selectedFiles.length} file${selectedFiles.length === 1 ? "" : "s"} selected` : placeholder;
|
|
20018
20198
|
const dropzoneIcon2 = icon2 ?? /* @__PURE__ */ jsxRuntimeExports.jsx(UploadIcon, {});
|
|
20019
20199
|
const fileFallbackIcon = icon2 ?? /* @__PURE__ */ jsxRuntimeExports.jsx(FileIcon, {});
|
|
20020
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$
|
|
20021
|
-
label2 && /* @__PURE__ */ jsxRuntimeExports.jsx("label", { className: styles$
|
|
20200
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$7.root, className), children: [
|
|
20201
|
+
label2 && /* @__PURE__ */ jsxRuntimeExports.jsx("label", { className: styles$7.label, htmlFor: inputId, children: label2 }),
|
|
20022
20202
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
20023
20203
|
"div",
|
|
20024
20204
|
{
|
|
20025
20205
|
className: clsx(
|
|
20026
|
-
styles$
|
|
20027
|
-
!variant && styles$
|
|
20028
|
-
variant && styles$
|
|
20206
|
+
styles$7.dropzone,
|
|
20207
|
+
!variant && styles$7.pageBackground,
|
|
20208
|
+
variant && styles$7[variant],
|
|
20029
20209
|
chamfer2 && chamferStyles.chamfer,
|
|
20030
|
-
size2 === "large" && styles$
|
|
20031
|
-
size2 === "small" && styles$
|
|
20032
|
-
disabled2 && styles$
|
|
20210
|
+
size2 === "large" && styles$7.large,
|
|
20211
|
+
size2 === "small" && styles$7.small,
|
|
20212
|
+
disabled2 && styles$7.disabled,
|
|
20033
20213
|
disabled2 && chamferStyles.disabled,
|
|
20034
20214
|
disabled2 && hatchStyles.hatch,
|
|
20035
|
-
isDragging && styles$
|
|
20036
|
-
selectedFiles.length > 0 && styles$
|
|
20215
|
+
isDragging && styles$7.dragging,
|
|
20216
|
+
selectedFiles.length > 0 && styles$7.hasFiles,
|
|
20037
20217
|
dropzoneClassName
|
|
20038
20218
|
),
|
|
20039
20219
|
onClick: handleDropzoneClick,
|
|
@@ -20051,34 +20231,34 @@ const FileUpload = React.forwardRef(function FileUpload2({
|
|
|
20051
20231
|
{
|
|
20052
20232
|
ref: setInputNode,
|
|
20053
20233
|
id: inputId,
|
|
20054
|
-
className: styles$
|
|
20234
|
+
className: styles$7.input,
|
|
20055
20235
|
type: "file",
|
|
20056
20236
|
disabled: disabled2,
|
|
20057
20237
|
...inputProps,
|
|
20058
20238
|
onChange: handleInputChange
|
|
20059
20239
|
}
|
|
20060
20240
|
),
|
|
20061
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$
|
|
20062
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$
|
|
20063
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: styles$
|
|
20064
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$
|
|
20065
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$
|
|
20241
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$7.dropzoneContent, children: [
|
|
20242
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$7.dropzoneIcon, "aria-hidden": true, children: dropzoneIcon2 }),
|
|
20243
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: styles$7.dropzoneText, children: [
|
|
20244
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$7.dropzoneTitle, children: selectedSummary }),
|
|
20245
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$7.dropzoneHint, children: hintText })
|
|
20066
20246
|
] })
|
|
20067
20247
|
] }),
|
|
20068
20248
|
children2
|
|
20069
20249
|
]
|
|
20070
20250
|
}
|
|
20071
20251
|
),
|
|
20072
|
-
helperText2 && /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: styles$
|
|
20073
|
-
showFileList && selectedFiles.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$
|
|
20252
|
+
helperText2 && /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: styles$7.helperText, children: helperText2 }),
|
|
20253
|
+
showFileList && selectedFiles.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$7.fileList, children: previewItems.map((item2, index2) => {
|
|
20074
20254
|
if (renderFile) {
|
|
20075
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$
|
|
20076
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$
|
|
20255
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$7.customFileRow, children: [
|
|
20256
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$7.customFile, children: renderFile(item2.file, index2) }),
|
|
20077
20257
|
removable && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
20078
20258
|
"button",
|
|
20079
20259
|
{
|
|
20080
20260
|
type: "button",
|
|
20081
|
-
className: styles$
|
|
20261
|
+
className: styles$7.removeButton,
|
|
20082
20262
|
onClick: (event) => handleRemoveFile(index2, event),
|
|
20083
20263
|
"aria-label": `Remove ${item2.name}`,
|
|
20084
20264
|
disabled: disabled2,
|
|
@@ -20087,26 +20267,26 @@ const FileUpload = React.forwardRef(function FileUpload2({
|
|
|
20087
20267
|
)
|
|
20088
20268
|
] }, `${item2.name}-${index2}`);
|
|
20089
20269
|
}
|
|
20090
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$
|
|
20091
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: styles$
|
|
20092
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$
|
|
20270
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$7.fileItem, children: [
|
|
20271
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: styles$7.fileInfo, children: [
|
|
20272
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$7.filePreview, "aria-hidden": true, children: item2.previewUrl ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
20093
20273
|
"img",
|
|
20094
20274
|
{
|
|
20095
|
-
className: styles$
|
|
20275
|
+
className: styles$7.filePreviewImage,
|
|
20096
20276
|
src: item2.previewUrl,
|
|
20097
20277
|
alt: ""
|
|
20098
20278
|
}
|
|
20099
20279
|
) : fileFallbackIcon }),
|
|
20100
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: styles$
|
|
20101
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$
|
|
20102
|
-
item2.sizeText && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$
|
|
20280
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: styles$7.fileMeta, children: [
|
|
20281
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$7.fileName, children: item2.name }),
|
|
20282
|
+
item2.sizeText && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$7.fileSize, children: item2.sizeText })
|
|
20103
20283
|
] })
|
|
20104
20284
|
] }),
|
|
20105
20285
|
removable && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
20106
20286
|
"button",
|
|
20107
20287
|
{
|
|
20108
20288
|
type: "button",
|
|
20109
|
-
className: styles$
|
|
20289
|
+
className: styles$7.removeButton,
|
|
20110
20290
|
onClick: (event) => handleRemoveFile(index2, event),
|
|
20111
20291
|
"aria-label": `Remove ${item2.name}`,
|
|
20112
20292
|
disabled: disabled2,
|
|
@@ -20305,7 +20485,7 @@ var RovingFocusGroupImpl = React__namespace.forwardRef((props, forwardedRef) =>
|
|
|
20305
20485
|
}
|
|
20306
20486
|
);
|
|
20307
20487
|
});
|
|
20308
|
-
var ITEM_NAME$
|
|
20488
|
+
var ITEM_NAME$5 = "RovingFocusGroupItem";
|
|
20309
20489
|
var RovingFocusGroupItem = React__namespace.forwardRef(
|
|
20310
20490
|
(props, forwardedRef) => {
|
|
20311
20491
|
const {
|
|
@@ -20318,7 +20498,7 @@ var RovingFocusGroupItem = React__namespace.forwardRef(
|
|
|
20318
20498
|
} = props;
|
|
20319
20499
|
const autoId = useId();
|
|
20320
20500
|
const id2 = tabStopId || autoId;
|
|
20321
|
-
const context = useRovingFocusContext(ITEM_NAME$
|
|
20501
|
+
const context = useRovingFocusContext(ITEM_NAME$5, __scopeRovingFocusGroup);
|
|
20322
20502
|
const isCurrentTabStop = context.currentTabStopId === id2;
|
|
20323
20503
|
const getItems = useCollection$2(__scopeRovingFocusGroup);
|
|
20324
20504
|
const { onFocusableItemAdd, onFocusableItemRemove, currentTabStopId } = context;
|
|
@@ -20375,7 +20555,7 @@ var RovingFocusGroupItem = React__namespace.forwardRef(
|
|
|
20375
20555
|
);
|
|
20376
20556
|
}
|
|
20377
20557
|
);
|
|
20378
|
-
RovingFocusGroupItem.displayName = ITEM_NAME$
|
|
20558
|
+
RovingFocusGroupItem.displayName = ITEM_NAME$5;
|
|
20379
20559
|
var MAP_KEY_TO_FOCUS_INTENT = {
|
|
20380
20560
|
ArrowLeft: "prev",
|
|
20381
20561
|
ArrowUp: "prev",
|
|
@@ -20545,7 +20725,7 @@ var [createRadioGroupContext] = createContextScope(RADIO_GROUP_NAME$2, [
|
|
|
20545
20725
|
createRovingFocusGroupScope,
|
|
20546
20726
|
createRadioScope
|
|
20547
20727
|
]);
|
|
20548
|
-
var useRovingFocusGroupScope$
|
|
20728
|
+
var useRovingFocusGroupScope$2 = createRovingFocusGroupScope();
|
|
20549
20729
|
var useRadioScope = createRadioScope();
|
|
20550
20730
|
var [RadioGroupProvider$1, useRadioGroupContext$1] = createRadioGroupContext(RADIO_GROUP_NAME$2);
|
|
20551
20731
|
var RadioGroup$2 = React__namespace.forwardRef(
|
|
@@ -20563,7 +20743,7 @@ var RadioGroup$2 = React__namespace.forwardRef(
|
|
|
20563
20743
|
onValueChange,
|
|
20564
20744
|
...groupProps
|
|
20565
20745
|
} = props;
|
|
20566
|
-
const rovingFocusGroupScope = useRovingFocusGroupScope$
|
|
20746
|
+
const rovingFocusGroupScope = useRovingFocusGroupScope$2(__scopeRadioGroup);
|
|
20567
20747
|
const direction = useDirection(dir);
|
|
20568
20748
|
const [value, setValue] = useControllableState({
|
|
20569
20749
|
prop: valueProp,
|
|
@@ -20607,13 +20787,13 @@ var RadioGroup$2 = React__namespace.forwardRef(
|
|
|
20607
20787
|
}
|
|
20608
20788
|
);
|
|
20609
20789
|
RadioGroup$2.displayName = RADIO_GROUP_NAME$2;
|
|
20610
|
-
var ITEM_NAME$
|
|
20790
|
+
var ITEM_NAME$4 = "RadioGroupItem";
|
|
20611
20791
|
var RadioGroupItem = React__namespace.forwardRef(
|
|
20612
20792
|
(props, forwardedRef) => {
|
|
20613
20793
|
const { __scopeRadioGroup, disabled: disabled2, ...itemProps } = props;
|
|
20614
|
-
const context = useRadioGroupContext$1(ITEM_NAME$
|
|
20794
|
+
const context = useRadioGroupContext$1(ITEM_NAME$4, __scopeRadioGroup);
|
|
20615
20795
|
const isDisabled = context.disabled || disabled2;
|
|
20616
|
-
const rovingFocusGroupScope = useRovingFocusGroupScope$
|
|
20796
|
+
const rovingFocusGroupScope = useRovingFocusGroupScope$2(__scopeRadioGroup);
|
|
20617
20797
|
const radioScope = useRadioScope(__scopeRadioGroup);
|
|
20618
20798
|
const ref = React__namespace.useRef(null);
|
|
20619
20799
|
const composedRefs = useComposedRefs(forwardedRef, ref);
|
|
@@ -20663,7 +20843,7 @@ var RadioGroupItem = React__namespace.forwardRef(
|
|
|
20663
20843
|
);
|
|
20664
20844
|
}
|
|
20665
20845
|
);
|
|
20666
|
-
RadioGroupItem.displayName = ITEM_NAME$
|
|
20846
|
+
RadioGroupItem.displayName = ITEM_NAME$4;
|
|
20667
20847
|
var INDICATOR_NAME2 = "RadioGroupIndicator";
|
|
20668
20848
|
var RadioGroupIndicator = React__namespace.forwardRef(
|
|
20669
20849
|
(props, forwardedRef) => {
|
|
@@ -20673,49 +20853,49 @@ var RadioGroupIndicator = React__namespace.forwardRef(
|
|
|
20673
20853
|
}
|
|
20674
20854
|
);
|
|
20675
20855
|
RadioGroupIndicator.displayName = INDICATOR_NAME2;
|
|
20676
|
-
var Root2$
|
|
20677
|
-
var Item2$
|
|
20856
|
+
var Root2$4 = RadioGroup$2;
|
|
20857
|
+
var Item2$3 = RadioGroupItem;
|
|
20678
20858
|
var Indicator = RadioGroupIndicator;
|
|
20679
20859
|
const group = "_group_hpxu6_19";
|
|
20680
20860
|
const wrapper = "_wrapper_hpxu6_25";
|
|
20681
|
-
const disabled$
|
|
20682
|
-
const root = "_root_hpxu6_39";
|
|
20861
|
+
const disabled$3 = "_disabled_hpxu6_34";
|
|
20862
|
+
const root$1 = "_root_hpxu6_39";
|
|
20683
20863
|
const indicator = "_indicator_hpxu6_72";
|
|
20684
20864
|
const dot = "_dot_hpxu6_81";
|
|
20685
|
-
const large$
|
|
20686
|
-
const small$
|
|
20865
|
+
const large$3 = "_large_hpxu6_88";
|
|
20866
|
+
const small$3 = "_small_hpxu6_93";
|
|
20687
20867
|
const disabledDot = "_disabledDot_hpxu6_98";
|
|
20688
20868
|
const label = "_label_hpxu6_102";
|
|
20689
20869
|
const chamfer = "_chamfer_hpxu6_107";
|
|
20690
|
-
const primary$
|
|
20691
|
-
const secondary$
|
|
20692
|
-
const success$
|
|
20693
|
-
const warning$
|
|
20694
|
-
const danger$
|
|
20695
|
-
const info$
|
|
20696
|
-
const styles$
|
|
20870
|
+
const primary$5 = "_primary_hpxu6_112";
|
|
20871
|
+
const secondary$5 = "_secondary_hpxu6_121";
|
|
20872
|
+
const success$5 = "_success_hpxu6_130";
|
|
20873
|
+
const warning$5 = "_warning_hpxu6_139";
|
|
20874
|
+
const danger$5 = "_danger_hpxu6_148";
|
|
20875
|
+
const info$5 = "_info_hpxu6_157";
|
|
20876
|
+
const styles$6 = {
|
|
20697
20877
|
group,
|
|
20698
20878
|
wrapper,
|
|
20699
|
-
disabled: disabled$
|
|
20700
|
-
root,
|
|
20879
|
+
disabled: disabled$3,
|
|
20880
|
+
root: root$1,
|
|
20701
20881
|
indicator,
|
|
20702
20882
|
dot,
|
|
20703
|
-
large: large$
|
|
20704
|
-
small: small$
|
|
20883
|
+
large: large$3,
|
|
20884
|
+
small: small$3,
|
|
20705
20885
|
disabledDot,
|
|
20706
20886
|
label,
|
|
20707
20887
|
chamfer,
|
|
20708
|
-
primary: primary$
|
|
20709
|
-
secondary: secondary$
|
|
20710
|
-
success: success$
|
|
20711
|
-
warning: warning$
|
|
20712
|
-
danger: danger$
|
|
20713
|
-
info: info$
|
|
20888
|
+
primary: primary$5,
|
|
20889
|
+
secondary: secondary$5,
|
|
20890
|
+
success: success$5,
|
|
20891
|
+
warning: warning$5,
|
|
20892
|
+
danger: danger$5,
|
|
20893
|
+
info: info$5
|
|
20714
20894
|
};
|
|
20715
20895
|
const RadioGroup$1 = ({ className, children: children2, ...props }) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
20716
|
-
Root2$
|
|
20896
|
+
Root2$4,
|
|
20717
20897
|
{
|
|
20718
|
-
className: clsx(styles$
|
|
20898
|
+
className: clsx(styles$6.group, className),
|
|
20719
20899
|
...props,
|
|
20720
20900
|
children: children2
|
|
20721
20901
|
}
|
|
@@ -20730,33 +20910,33 @@ function Radio({
|
|
|
20730
20910
|
className,
|
|
20731
20911
|
...props
|
|
20732
20912
|
}) {
|
|
20733
|
-
const variantClass = variant && styles$
|
|
20734
|
-
const sizeClass = size2 === "large" ? styles$
|
|
20913
|
+
const variantClass = variant && styles$6[variant];
|
|
20914
|
+
const sizeClass = size2 === "large" ? styles$6.large : size2 === "small" ? styles$6.small : null;
|
|
20735
20915
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
20736
20916
|
"label",
|
|
20737
20917
|
{
|
|
20738
|
-
className: clsx(styles$
|
|
20918
|
+
className: clsx(styles$6.wrapper, variantClass, disabled2 && styles$6.disabled),
|
|
20739
20919
|
children: [
|
|
20740
20920
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
20741
|
-
Item2$
|
|
20921
|
+
Item2$3,
|
|
20742
20922
|
{
|
|
20743
20923
|
className: clsx(
|
|
20744
|
-
styles$
|
|
20924
|
+
styles$6.root,
|
|
20745
20925
|
variantClass,
|
|
20746
20926
|
sizeClass,
|
|
20747
20927
|
chamfer2 && chamferStyles.chamfer,
|
|
20748
20928
|
disabled2 && chamferStyles.disabled,
|
|
20749
20929
|
disabled2 && hatchStyles.hatch,
|
|
20750
|
-
disabled2 && styles$
|
|
20930
|
+
disabled2 && styles$6.disabledDot,
|
|
20751
20931
|
className
|
|
20752
20932
|
),
|
|
20753
20933
|
value,
|
|
20754
20934
|
disabled: disabled2,
|
|
20755
20935
|
...props,
|
|
20756
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Indicator, { className: styles$
|
|
20936
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Indicator, { className: styles$6.indicator, children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$6.dot }) })
|
|
20757
20937
|
}
|
|
20758
20938
|
),
|
|
20759
|
-
label2 && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$
|
|
20939
|
+
label2 && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$6.label, children: label2 })
|
|
20760
20940
|
]
|
|
20761
20941
|
}
|
|
20762
20942
|
);
|
|
@@ -23078,7 +23258,7 @@ const arrow$2 = (options, deps) => ({
|
|
|
23078
23258
|
...arrow$1(options),
|
|
23079
23259
|
options: [options, deps]
|
|
23080
23260
|
});
|
|
23081
|
-
var NAME$
|
|
23261
|
+
var NAME$2 = "Arrow";
|
|
23082
23262
|
var Arrow$1 = React__namespace.forwardRef((props, forwardedRef) => {
|
|
23083
23263
|
const { children: children2, width = 10, height = 5, ...arrowProps } = props;
|
|
23084
23264
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -23094,7 +23274,7 @@ var Arrow$1 = React__namespace.forwardRef((props, forwardedRef) => {
|
|
|
23094
23274
|
}
|
|
23095
23275
|
);
|
|
23096
23276
|
});
|
|
23097
|
-
Arrow$1.displayName = NAME$
|
|
23277
|
+
Arrow$1.displayName = NAME$2;
|
|
23098
23278
|
var Root$1 = Arrow$1;
|
|
23099
23279
|
var POPPER_NAME = "Popper";
|
|
23100
23280
|
var [createPopperContext, createPopperScope] = createContextScope(POPPER_NAME);
|
|
@@ -23361,7 +23541,7 @@ function getSideAndAlignFromPlacement(placement) {
|
|
|
23361
23541
|
const [side, align = "center"] = placement.split("-");
|
|
23362
23542
|
return [side, align];
|
|
23363
23543
|
}
|
|
23364
|
-
var Root2$
|
|
23544
|
+
var Root2$3 = Popper;
|
|
23365
23545
|
var Anchor = PopperAnchor;
|
|
23366
23546
|
var Content$1 = PopperContent;
|
|
23367
23547
|
var Arrow = PopperArrow;
|
|
@@ -23387,7 +23567,7 @@ var VISUALLY_HIDDEN_STYLES = Object.freeze({
|
|
|
23387
23567
|
whiteSpace: "nowrap",
|
|
23388
23568
|
wordWrap: "normal"
|
|
23389
23569
|
});
|
|
23390
|
-
var NAME = "VisuallyHidden";
|
|
23570
|
+
var NAME$1 = "VisuallyHidden";
|
|
23391
23571
|
var VisuallyHidden = React__namespace.forwardRef(
|
|
23392
23572
|
(props, forwardedRef) => {
|
|
23393
23573
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -23400,7 +23580,7 @@ var VisuallyHidden = React__namespace.forwardRef(
|
|
|
23400
23580
|
);
|
|
23401
23581
|
}
|
|
23402
23582
|
);
|
|
23403
|
-
VisuallyHidden.displayName = NAME;
|
|
23583
|
+
VisuallyHidden.displayName = NAME$1;
|
|
23404
23584
|
var getDefaultParent = function(originalTarget) {
|
|
23405
23585
|
if (typeof document === "undefined") {
|
|
23406
23586
|
return null;
|
|
@@ -24229,7 +24409,7 @@ var Select = (props) => {
|
|
|
24229
24409
|
const isFormControl = trigger2 ? form || !!trigger2.closest("form") : true;
|
|
24230
24410
|
const [nativeOptionsSet, setNativeOptionsSet] = React__namespace.useState(/* @__PURE__ */ new Set());
|
|
24231
24411
|
const nativeSelectKey = Array.from(nativeOptionsSet).map((option) => option.props.value).join(";");
|
|
24232
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Root2$
|
|
24412
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Root2$3, { ...popperScope, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
24233
24413
|
SelectProvider,
|
|
24234
24414
|
{
|
|
24235
24415
|
required,
|
|
@@ -24946,8 +25126,8 @@ var SelectLabel = React__namespace.forwardRef(
|
|
|
24946
25126
|
}
|
|
24947
25127
|
);
|
|
24948
25128
|
SelectLabel.displayName = LABEL_NAME$2;
|
|
24949
|
-
var ITEM_NAME$
|
|
24950
|
-
var [SelectItemContextProvider, useSelectItemContext] = createSelectContext(ITEM_NAME$
|
|
25129
|
+
var ITEM_NAME$3 = "SelectItem";
|
|
25130
|
+
var [SelectItemContextProvider, useSelectItemContext] = createSelectContext(ITEM_NAME$3);
|
|
24951
25131
|
var SelectItem = React__namespace.forwardRef(
|
|
24952
25132
|
(props, forwardedRef) => {
|
|
24953
25133
|
const {
|
|
@@ -24957,8 +25137,8 @@ var SelectItem = React__namespace.forwardRef(
|
|
|
24957
25137
|
textValue: textValueProp,
|
|
24958
25138
|
...itemProps
|
|
24959
25139
|
} = props;
|
|
24960
|
-
const context = useSelectContext(ITEM_NAME$
|
|
24961
|
-
const contentContext = useSelectContentContext(ITEM_NAME$
|
|
25140
|
+
const context = useSelectContext(ITEM_NAME$3, __scopeSelect);
|
|
25141
|
+
const contentContext = useSelectContentContext(ITEM_NAME$3, __scopeSelect);
|
|
24962
25142
|
const isSelected = context.value === value;
|
|
24963
25143
|
const [textValue, setTextValue] = React__namespace.useState(textValueProp ?? "");
|
|
24964
25144
|
const [isFocused, setIsFocused] = React__namespace.useState(false);
|
|
@@ -25048,7 +25228,7 @@ var SelectItem = React__namespace.forwardRef(
|
|
|
25048
25228
|
);
|
|
25049
25229
|
}
|
|
25050
25230
|
);
|
|
25051
|
-
SelectItem.displayName = ITEM_NAME$
|
|
25231
|
+
SelectItem.displayName = ITEM_NAME$3;
|
|
25052
25232
|
var ITEM_TEXT_NAME = "SelectItemText";
|
|
25053
25233
|
var SelectItemText = React__namespace.forwardRef(
|
|
25054
25234
|
(props, forwardedRef) => {
|
|
@@ -25294,7 +25474,7 @@ function findNextItem(items, search, currentItem) {
|
|
|
25294
25474
|
function wrapArray$1(array2, startIndex) {
|
|
25295
25475
|
return array2.map((_2, index2) => array2[(startIndex + index2) % array2.length]);
|
|
25296
25476
|
}
|
|
25297
|
-
var Root2$
|
|
25477
|
+
var Root2$2 = Select;
|
|
25298
25478
|
var Trigger$2 = SelectTrigger;
|
|
25299
25479
|
var Value = SelectValue;
|
|
25300
25480
|
var Icon = SelectIcon;
|
|
@@ -25304,32 +25484,32 @@ var Viewport = SelectViewport;
|
|
|
25304
25484
|
var Item = SelectItem;
|
|
25305
25485
|
var ItemText = SelectItemText;
|
|
25306
25486
|
const trigger$1 = "_trigger_1u214_7";
|
|
25307
|
-
const large$
|
|
25308
|
-
const small$
|
|
25309
|
-
const disabled$
|
|
25487
|
+
const large$2 = "_large_1u214_31";
|
|
25488
|
+
const small$2 = "_small_1u214_36";
|
|
25489
|
+
const disabled$2 = "_disabled_1u214_41";
|
|
25310
25490
|
const icon$1 = "_icon_1u214_46";
|
|
25311
25491
|
const content$3 = "_content_1u214_52";
|
|
25312
|
-
const item$
|
|
25313
|
-
const primary$
|
|
25314
|
-
const success$
|
|
25315
|
-
const warning$
|
|
25316
|
-
const danger$
|
|
25317
|
-
const info$
|
|
25318
|
-
const secondary$
|
|
25319
|
-
const styles$
|
|
25492
|
+
const item$2 = "_item_1u214_57";
|
|
25493
|
+
const primary$4 = "_primary_1u214_79";
|
|
25494
|
+
const success$4 = "_success_1u214_89";
|
|
25495
|
+
const warning$4 = "_warning_1u214_99";
|
|
25496
|
+
const danger$4 = "_danger_1u214_109";
|
|
25497
|
+
const info$4 = "_info_1u214_119";
|
|
25498
|
+
const secondary$4 = "_secondary_1u214_129";
|
|
25499
|
+
const styles$5 = {
|
|
25320
25500
|
trigger: trigger$1,
|
|
25321
|
-
large: large$
|
|
25322
|
-
small: small$
|
|
25323
|
-
disabled: disabled$
|
|
25501
|
+
large: large$2,
|
|
25502
|
+
small: small$2,
|
|
25503
|
+
disabled: disabled$2,
|
|
25324
25504
|
icon: icon$1,
|
|
25325
25505
|
content: content$3,
|
|
25326
|
-
item: item$
|
|
25327
|
-
primary: primary$
|
|
25328
|
-
success: success$
|
|
25329
|
-
warning: warning$
|
|
25330
|
-
danger: danger$
|
|
25331
|
-
info: info$
|
|
25332
|
-
secondary: secondary$
|
|
25506
|
+
item: item$2,
|
|
25507
|
+
primary: primary$4,
|
|
25508
|
+
success: success$4,
|
|
25509
|
+
warning: warning$4,
|
|
25510
|
+
danger: danger$4,
|
|
25511
|
+
info: info$4,
|
|
25512
|
+
secondary: secondary$4
|
|
25333
25513
|
};
|
|
25334
25514
|
function SelectInput({
|
|
25335
25515
|
options,
|
|
@@ -25342,7 +25522,7 @@ function SelectInput({
|
|
|
25342
25522
|
loading = false
|
|
25343
25523
|
}) {
|
|
25344
25524
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
25345
|
-
Root2$
|
|
25525
|
+
Root2$2,
|
|
25346
25526
|
{
|
|
25347
25527
|
value,
|
|
25348
25528
|
onValueChange,
|
|
@@ -25352,18 +25532,18 @@ function SelectInput({
|
|
|
25352
25532
|
Trigger$2,
|
|
25353
25533
|
{
|
|
25354
25534
|
className: clsx(
|
|
25355
|
-
styles$
|
|
25356
|
-
styles$
|
|
25535
|
+
styles$5.trigger,
|
|
25536
|
+
styles$5[variant],
|
|
25357
25537
|
chamfer2 && chamferStyles.chamfer,
|
|
25358
|
-
size2 === "large" && styles$
|
|
25359
|
-
size2 === "small" && styles$
|
|
25360
|
-
disabled2 && styles$
|
|
25538
|
+
size2 === "large" && styles$5.large,
|
|
25539
|
+
size2 === "small" && styles$5.small,
|
|
25540
|
+
disabled2 && styles$5.disabled,
|
|
25361
25541
|
disabled2 && hatchStyles.hatch
|
|
25362
25542
|
// loading && styles.disabled
|
|
25363
25543
|
),
|
|
25364
25544
|
children: [
|
|
25365
25545
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Value, {}),
|
|
25366
|
-
loading ? /* @__PURE__ */ jsxRuntimeExports.jsx(Loader, {}) : /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, { className: styles$
|
|
25546
|
+
loading ? /* @__PURE__ */ jsxRuntimeExports.jsx(Loader, {}) : /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, { className: styles$5.icon, children: "▾" })
|
|
25367
25547
|
]
|
|
25368
25548
|
}
|
|
25369
25549
|
),
|
|
@@ -25371,7 +25551,7 @@ function SelectInput({
|
|
|
25371
25551
|
Content2$2,
|
|
25372
25552
|
{
|
|
25373
25553
|
className: classNames(
|
|
25374
|
-
styles$
|
|
25554
|
+
styles$5.content,
|
|
25375
25555
|
chamfer2 && chamferStyles.chamfer
|
|
25376
25556
|
),
|
|
25377
25557
|
sideOffset: 6,
|
|
@@ -25380,7 +25560,7 @@ function SelectInput({
|
|
|
25380
25560
|
{
|
|
25381
25561
|
value: opt.value,
|
|
25382
25562
|
disabled: opt.disabled,
|
|
25383
|
-
className: styles$
|
|
25563
|
+
className: styles$5.item,
|
|
25384
25564
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(ItemText, { children: opt.label })
|
|
25385
25565
|
},
|
|
25386
25566
|
opt.value
|
|
@@ -25391,6 +25571,278 @@ function SelectInput({
|
|
|
25391
25571
|
}
|
|
25392
25572
|
);
|
|
25393
25573
|
}
|
|
25574
|
+
var NAME = "Toggle";
|
|
25575
|
+
var Toggle = React__namespace.forwardRef((props, forwardedRef) => {
|
|
25576
|
+
const { pressed: pressedProp, defaultPressed, onPressedChange, ...buttonProps } = props;
|
|
25577
|
+
const [pressed, setPressed] = useControllableState({
|
|
25578
|
+
prop: pressedProp,
|
|
25579
|
+
onChange: onPressedChange,
|
|
25580
|
+
defaultProp: defaultPressed ?? false,
|
|
25581
|
+
caller: NAME
|
|
25582
|
+
});
|
|
25583
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
25584
|
+
Primitive.button,
|
|
25585
|
+
{
|
|
25586
|
+
type: "button",
|
|
25587
|
+
"aria-pressed": pressed,
|
|
25588
|
+
"data-state": pressed ? "on" : "off",
|
|
25589
|
+
"data-disabled": props.disabled ? "" : void 0,
|
|
25590
|
+
...buttonProps,
|
|
25591
|
+
ref: forwardedRef,
|
|
25592
|
+
onClick: composeEventHandlers(props.onClick, () => {
|
|
25593
|
+
if (!props.disabled) {
|
|
25594
|
+
setPressed(!pressed);
|
|
25595
|
+
}
|
|
25596
|
+
})
|
|
25597
|
+
}
|
|
25598
|
+
);
|
|
25599
|
+
});
|
|
25600
|
+
Toggle.displayName = NAME;
|
|
25601
|
+
var TOGGLE_GROUP_NAME = "ToggleGroup";
|
|
25602
|
+
var [createToggleGroupContext] = createContextScope(TOGGLE_GROUP_NAME, [
|
|
25603
|
+
createRovingFocusGroupScope
|
|
25604
|
+
]);
|
|
25605
|
+
var useRovingFocusGroupScope$1 = createRovingFocusGroupScope();
|
|
25606
|
+
var ToggleGroup = React.forwardRef((props, forwardedRef) => {
|
|
25607
|
+
const { type, ...toggleGroupProps } = props;
|
|
25608
|
+
if (type === "single") {
|
|
25609
|
+
const singleProps = toggleGroupProps;
|
|
25610
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(ToggleGroupImplSingle, { ...singleProps, ref: forwardedRef });
|
|
25611
|
+
}
|
|
25612
|
+
if (type === "multiple") {
|
|
25613
|
+
const multipleProps = toggleGroupProps;
|
|
25614
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(ToggleGroupImplMultiple, { ...multipleProps, ref: forwardedRef });
|
|
25615
|
+
}
|
|
25616
|
+
throw new Error(`Missing prop \`type\` expected on \`${TOGGLE_GROUP_NAME}\``);
|
|
25617
|
+
});
|
|
25618
|
+
ToggleGroup.displayName = TOGGLE_GROUP_NAME;
|
|
25619
|
+
var [ToggleGroupValueProvider, useToggleGroupValueContext] = createToggleGroupContext(TOGGLE_GROUP_NAME);
|
|
25620
|
+
var ToggleGroupImplSingle = React.forwardRef((props, forwardedRef) => {
|
|
25621
|
+
const {
|
|
25622
|
+
value: valueProp,
|
|
25623
|
+
defaultValue,
|
|
25624
|
+
onValueChange = () => {
|
|
25625
|
+
},
|
|
25626
|
+
...toggleGroupSingleProps
|
|
25627
|
+
} = props;
|
|
25628
|
+
const [value, setValue] = useControllableState({
|
|
25629
|
+
prop: valueProp,
|
|
25630
|
+
defaultProp: defaultValue ?? "",
|
|
25631
|
+
onChange: onValueChange,
|
|
25632
|
+
caller: TOGGLE_GROUP_NAME
|
|
25633
|
+
});
|
|
25634
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
25635
|
+
ToggleGroupValueProvider,
|
|
25636
|
+
{
|
|
25637
|
+
scope: props.__scopeToggleGroup,
|
|
25638
|
+
type: "single",
|
|
25639
|
+
value: React.useMemo(() => value ? [value] : [], [value]),
|
|
25640
|
+
onItemActivate: setValue,
|
|
25641
|
+
onItemDeactivate: React.useCallback(() => setValue(""), [setValue]),
|
|
25642
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(ToggleGroupImpl, { ...toggleGroupSingleProps, ref: forwardedRef })
|
|
25643
|
+
}
|
|
25644
|
+
);
|
|
25645
|
+
});
|
|
25646
|
+
var ToggleGroupImplMultiple = React.forwardRef((props, forwardedRef) => {
|
|
25647
|
+
const {
|
|
25648
|
+
value: valueProp,
|
|
25649
|
+
defaultValue,
|
|
25650
|
+
onValueChange = () => {
|
|
25651
|
+
},
|
|
25652
|
+
...toggleGroupMultipleProps
|
|
25653
|
+
} = props;
|
|
25654
|
+
const [value, setValue] = useControllableState({
|
|
25655
|
+
prop: valueProp,
|
|
25656
|
+
defaultProp: defaultValue ?? [],
|
|
25657
|
+
onChange: onValueChange,
|
|
25658
|
+
caller: TOGGLE_GROUP_NAME
|
|
25659
|
+
});
|
|
25660
|
+
const handleButtonActivate = React.useCallback(
|
|
25661
|
+
(itemValue) => setValue((prevValue = []) => [...prevValue, itemValue]),
|
|
25662
|
+
[setValue]
|
|
25663
|
+
);
|
|
25664
|
+
const handleButtonDeactivate = React.useCallback(
|
|
25665
|
+
(itemValue) => setValue((prevValue = []) => prevValue.filter((value2) => value2 !== itemValue)),
|
|
25666
|
+
[setValue]
|
|
25667
|
+
);
|
|
25668
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
25669
|
+
ToggleGroupValueProvider,
|
|
25670
|
+
{
|
|
25671
|
+
scope: props.__scopeToggleGroup,
|
|
25672
|
+
type: "multiple",
|
|
25673
|
+
value,
|
|
25674
|
+
onItemActivate: handleButtonActivate,
|
|
25675
|
+
onItemDeactivate: handleButtonDeactivate,
|
|
25676
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(ToggleGroupImpl, { ...toggleGroupMultipleProps, ref: forwardedRef })
|
|
25677
|
+
}
|
|
25678
|
+
);
|
|
25679
|
+
});
|
|
25680
|
+
ToggleGroup.displayName = TOGGLE_GROUP_NAME;
|
|
25681
|
+
var [ToggleGroupContext, useToggleGroupContext] = createToggleGroupContext(TOGGLE_GROUP_NAME);
|
|
25682
|
+
var ToggleGroupImpl = React.forwardRef(
|
|
25683
|
+
(props, forwardedRef) => {
|
|
25684
|
+
const {
|
|
25685
|
+
__scopeToggleGroup,
|
|
25686
|
+
disabled: disabled2 = false,
|
|
25687
|
+
rovingFocus = true,
|
|
25688
|
+
orientation,
|
|
25689
|
+
dir,
|
|
25690
|
+
loop = true,
|
|
25691
|
+
...toggleGroupProps
|
|
25692
|
+
} = props;
|
|
25693
|
+
const rovingFocusGroupScope = useRovingFocusGroupScope$1(__scopeToggleGroup);
|
|
25694
|
+
const direction = useDirection(dir);
|
|
25695
|
+
const commonProps = { role: "group", dir: direction, ...toggleGroupProps };
|
|
25696
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(ToggleGroupContext, { scope: __scopeToggleGroup, rovingFocus, disabled: disabled2, children: rovingFocus ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
25697
|
+
Root$2,
|
|
25698
|
+
{
|
|
25699
|
+
asChild: true,
|
|
25700
|
+
...rovingFocusGroupScope,
|
|
25701
|
+
orientation,
|
|
25702
|
+
dir: direction,
|
|
25703
|
+
loop,
|
|
25704
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Primitive.div, { ...commonProps, ref: forwardedRef })
|
|
25705
|
+
}
|
|
25706
|
+
) : /* @__PURE__ */ jsxRuntimeExports.jsx(Primitive.div, { ...commonProps, ref: forwardedRef }) });
|
|
25707
|
+
}
|
|
25708
|
+
);
|
|
25709
|
+
var ITEM_NAME$2 = "ToggleGroupItem";
|
|
25710
|
+
var ToggleGroupItem = React.forwardRef(
|
|
25711
|
+
(props, forwardedRef) => {
|
|
25712
|
+
const valueContext = useToggleGroupValueContext(ITEM_NAME$2, props.__scopeToggleGroup);
|
|
25713
|
+
const context = useToggleGroupContext(ITEM_NAME$2, props.__scopeToggleGroup);
|
|
25714
|
+
const rovingFocusGroupScope = useRovingFocusGroupScope$1(props.__scopeToggleGroup);
|
|
25715
|
+
const pressed = valueContext.value.includes(props.value);
|
|
25716
|
+
const disabled2 = context.disabled || props.disabled;
|
|
25717
|
+
const commonProps = { ...props, pressed, disabled: disabled2 };
|
|
25718
|
+
const ref = React.useRef(null);
|
|
25719
|
+
return context.rovingFocus ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
25720
|
+
Item$1,
|
|
25721
|
+
{
|
|
25722
|
+
asChild: true,
|
|
25723
|
+
...rovingFocusGroupScope,
|
|
25724
|
+
focusable: !disabled2,
|
|
25725
|
+
active: pressed,
|
|
25726
|
+
ref,
|
|
25727
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(ToggleGroupItemImpl, { ...commonProps, ref: forwardedRef })
|
|
25728
|
+
}
|
|
25729
|
+
) : /* @__PURE__ */ jsxRuntimeExports.jsx(ToggleGroupItemImpl, { ...commonProps, ref: forwardedRef });
|
|
25730
|
+
}
|
|
25731
|
+
);
|
|
25732
|
+
ToggleGroupItem.displayName = ITEM_NAME$2;
|
|
25733
|
+
var ToggleGroupItemImpl = React.forwardRef(
|
|
25734
|
+
(props, forwardedRef) => {
|
|
25735
|
+
const { __scopeToggleGroup, value, ...itemProps } = props;
|
|
25736
|
+
const valueContext = useToggleGroupValueContext(ITEM_NAME$2, __scopeToggleGroup);
|
|
25737
|
+
const singleProps = { role: "radio", "aria-checked": props.pressed, "aria-pressed": void 0 };
|
|
25738
|
+
const typeProps = valueContext.type === "single" ? singleProps : void 0;
|
|
25739
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
25740
|
+
Toggle,
|
|
25741
|
+
{
|
|
25742
|
+
...typeProps,
|
|
25743
|
+
...itemProps,
|
|
25744
|
+
ref: forwardedRef,
|
|
25745
|
+
onPressedChange: (pressed) => {
|
|
25746
|
+
if (pressed) {
|
|
25747
|
+
valueContext.onItemActivate(value);
|
|
25748
|
+
} else {
|
|
25749
|
+
valueContext.onItemDeactivate(value);
|
|
25750
|
+
}
|
|
25751
|
+
}
|
|
25752
|
+
}
|
|
25753
|
+
);
|
|
25754
|
+
}
|
|
25755
|
+
);
|
|
25756
|
+
var Root2$1 = ToggleGroup;
|
|
25757
|
+
var Item2$2 = ToggleGroupItem;
|
|
25758
|
+
const root = "_root_wrsjc_31";
|
|
25759
|
+
const item$1 = "_item_wrsjc_47";
|
|
25760
|
+
const chamferEnabled = "_chamferEnabled_wrsjc_87";
|
|
25761
|
+
const large$1 = "_large_wrsjc_127";
|
|
25762
|
+
const small$1 = "_small_wrsjc_132";
|
|
25763
|
+
const disabled$1 = "_disabled_wrsjc_137";
|
|
25764
|
+
const itemDisabled = "_itemDisabled_wrsjc_142";
|
|
25765
|
+
const primary$3 = "_primary_wrsjc_148";
|
|
25766
|
+
const secondary$3 = "_secondary_wrsjc_158";
|
|
25767
|
+
const success$3 = "_success_wrsjc_168";
|
|
25768
|
+
const warning$3 = "_warning_wrsjc_178";
|
|
25769
|
+
const danger$3 = "_danger_wrsjc_188";
|
|
25770
|
+
const info$3 = "_info_wrsjc_198";
|
|
25771
|
+
const styles$4 = {
|
|
25772
|
+
root,
|
|
25773
|
+
item: item$1,
|
|
25774
|
+
chamferEnabled,
|
|
25775
|
+
large: large$1,
|
|
25776
|
+
small: small$1,
|
|
25777
|
+
disabled: disabled$1,
|
|
25778
|
+
itemDisabled,
|
|
25779
|
+
primary: primary$3,
|
|
25780
|
+
secondary: secondary$3,
|
|
25781
|
+
success: success$3,
|
|
25782
|
+
warning: warning$3,
|
|
25783
|
+
danger: danger$3,
|
|
25784
|
+
info: info$3
|
|
25785
|
+
};
|
|
25786
|
+
function SegmentedControl({
|
|
25787
|
+
options = [],
|
|
25788
|
+
value,
|
|
25789
|
+
defaultValue,
|
|
25790
|
+
onValueChange,
|
|
25791
|
+
allowEmpty = false,
|
|
25792
|
+
variant,
|
|
25793
|
+
size: size2,
|
|
25794
|
+
disabled: disabled2,
|
|
25795
|
+
chamfer: chamfer2 = true,
|
|
25796
|
+
className,
|
|
25797
|
+
itemClassName,
|
|
25798
|
+
...props
|
|
25799
|
+
}) {
|
|
25800
|
+
const isControlled = value !== void 0;
|
|
25801
|
+
const [internalValue, setInternalValue] = React.useState(defaultValue ?? "");
|
|
25802
|
+
const selectedValue = isControlled ? value : internalValue;
|
|
25803
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
25804
|
+
Root2$1,
|
|
25805
|
+
{
|
|
25806
|
+
type: "single",
|
|
25807
|
+
value: selectedValue,
|
|
25808
|
+
onValueChange: (nextValue) => {
|
|
25809
|
+
if (!allowEmpty && !nextValue) {
|
|
25810
|
+
return;
|
|
25811
|
+
}
|
|
25812
|
+
if (!isControlled) {
|
|
25813
|
+
setInternalValue(nextValue);
|
|
25814
|
+
}
|
|
25815
|
+
onValueChange?.(nextValue);
|
|
25816
|
+
},
|
|
25817
|
+
disabled: disabled2,
|
|
25818
|
+
className: clsx(
|
|
25819
|
+
styles$4.root,
|
|
25820
|
+
styles$4[variant],
|
|
25821
|
+
chamfer2 && styles$4.chamferEnabled,
|
|
25822
|
+
size2 === "large" && styles$4.large,
|
|
25823
|
+
size2 === "small" && styles$4.small,
|
|
25824
|
+
disabled2 && hatchStyles.hatch,
|
|
25825
|
+
disabled2 && styles$4.disabled,
|
|
25826
|
+
className
|
|
25827
|
+
),
|
|
25828
|
+
...props,
|
|
25829
|
+
children: options.map((option) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
25830
|
+
Item2$2,
|
|
25831
|
+
{
|
|
25832
|
+
value: option.value,
|
|
25833
|
+
disabled: disabled2 || option.disabled,
|
|
25834
|
+
className: clsx(
|
|
25835
|
+
styles$4.item,
|
|
25836
|
+
(disabled2 || option.disabled) && styles$4.itemDisabled,
|
|
25837
|
+
itemClassName
|
|
25838
|
+
),
|
|
25839
|
+
children: option.label
|
|
25840
|
+
},
|
|
25841
|
+
option.value
|
|
25842
|
+
))
|
|
25843
|
+
}
|
|
25844
|
+
);
|
|
25845
|
+
}
|
|
25394
25846
|
var SELECTION_KEYS = ["Enter", " "];
|
|
25395
25847
|
var FIRST_KEYS = ["ArrowDown", "PageUp", "Home"];
|
|
25396
25848
|
var LAST_KEYS = ["ArrowUp", "PageDown", "End"];
|
|
@@ -25435,7 +25887,7 @@ var Menu = (props) => {
|
|
|
25435
25887
|
document.removeEventListener("pointermove", handlePointer, { capture: true });
|
|
25436
25888
|
};
|
|
25437
25889
|
}, []);
|
|
25438
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Root2$
|
|
25890
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Root2$3, { ...popperScope, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
25439
25891
|
MenuProvider,
|
|
25440
25892
|
{
|
|
25441
25893
|
scope: __scopeMenu,
|
|
@@ -27791,6 +28243,7 @@ exports.Loader = Loader;
|
|
|
27791
28243
|
exports.RadarChart = RadarChart;
|
|
27792
28244
|
exports.Radio = Radio;
|
|
27793
28245
|
exports.RadioGroup = RadioGroup$1;
|
|
28246
|
+
exports.SegmentedControl = SegmentedControl;
|
|
27794
28247
|
exports.Select = SelectInput;
|
|
27795
28248
|
exports.toast = toast;
|
|
27796
28249
|
exports.useJCUITheme = useJCUITheme;
|