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