@jackcrane/ui 0.1.13 → 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 +732 -272
- package/dist/jcui.es.js +732 -272
- package/package.json +2 -1
package/dist/jcui.es.js
CHANGED
|
@@ -113,7 +113,8 @@
|
|
|
113
113
|
._secondary_105y0_116:active {
|
|
114
114
|
--button-bg: var(--secondary-color-300);
|
|
115
115
|
}
|
|
116
|
-
.
|
|
116
|
+
._chamfer_1unae_1,
|
|
117
|
+
.jcui_chamfer {
|
|
117
118
|
--bt: var(--border-thickness);
|
|
118
119
|
--cd: var(--chamfer-distance);
|
|
119
120
|
--chamfer-color: var(--border-accent-color);
|
|
@@ -124,18 +125,24 @@
|
|
|
124
125
|
--cd 180ms ease,
|
|
125
126
|
background-color 180ms ease;
|
|
126
127
|
}
|
|
127
|
-
.
|
|
128
|
+
._chamfer_1unae_1:not(._disabled_1unae_16):hover,
|
|
129
|
+
.jcui_chamfer:not(.jcui_disabled):hover {
|
|
128
130
|
--cd: calc(var(--chamfer-distance) * 1.5);
|
|
129
131
|
}
|
|
130
|
-
.
|
|
131
|
-
div.
|
|
132
|
+
._chamfer_1unae_1:active,
|
|
133
|
+
div._chamfer_1unae_1:focus-within,
|
|
134
|
+
.jcui_chamfer:active,
|
|
135
|
+
div.jcui_chamfer:focus-within {
|
|
132
136
|
--cd: calc(var(--chamfer-distance) * 1.75);
|
|
133
137
|
}
|
|
134
|
-
.
|
|
135
|
-
div.
|
|
138
|
+
._chamfer_1unae_1:not(._disabled_1unae_16):active,
|
|
139
|
+
div._chamfer_1unae_1:not(._disabled_1unae_16):focus-within,
|
|
140
|
+
.jcui_chamfer:not(.jcui_disabled):active,
|
|
141
|
+
div.jcui_chamfer:not(.jcui_disabled):focus-within {
|
|
136
142
|
--cd: calc(var(--chamfer-distance) * 1.75);
|
|
137
143
|
}
|
|
138
|
-
.
|
|
144
|
+
._chamfer_1unae_1::before,
|
|
145
|
+
.jcui_chamfer::before {
|
|
139
146
|
content: "";
|
|
140
147
|
position: absolute;
|
|
141
148
|
inset: 0;
|
|
@@ -162,24 +169,25 @@ div._chamfer_1o5rm_1:not(._disabled_1o5rm_15):focus-within {
|
|
|
162
169
|
/* ========================= */
|
|
163
170
|
/* Hover-only variant */
|
|
164
171
|
/* ========================= */
|
|
165
|
-
.
|
|
172
|
+
._chamferOnHover_1unae_67 {
|
|
166
173
|
border: none;
|
|
167
174
|
}
|
|
168
|
-
.
|
|
175
|
+
._chamferOnHover_1unae_67::before {
|
|
169
176
|
opacity: 0;
|
|
170
177
|
}
|
|
171
178
|
/* Enable effects only on hover / focus / active */
|
|
172
|
-
.
|
|
173
|
-
.
|
|
174
|
-
.
|
|
179
|
+
._chamferOnHover_1unae_67:hover,
|
|
180
|
+
._chamferOnHover_1unae_67:focus-within,
|
|
181
|
+
._chamferOnHover_1unae_67:active {
|
|
175
182
|
border: var(--bt) solid var(--border-color);
|
|
176
183
|
}
|
|
177
|
-
.
|
|
178
|
-
.
|
|
179
|
-
.
|
|
184
|
+
._chamferOnHover_1unae_67:hover::before,
|
|
185
|
+
._chamferOnHover_1unae_67:focus-within::before,
|
|
186
|
+
._chamferOnHover_1unae_67:active::before {
|
|
180
187
|
opacity: 1;
|
|
181
188
|
}
|
|
182
|
-
.
|
|
189
|
+
._hatch_rrcdt_1,
|
|
190
|
+
.jcui_hatch {
|
|
183
191
|
--bc: var(--border-color);
|
|
184
192
|
--bg: transparent;
|
|
185
193
|
--stripe: var(--border-thickness);
|
|
@@ -1089,6 +1097,185 @@ div._chamfer_1o5rm_1:not(._disabled_1o5rm_15):focus-within {
|
|
|
1089
1097
|
._secondary_1u214_129:hover {
|
|
1090
1098
|
--select-bg: var(--secondary-color-200);
|
|
1091
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
|
+
}
|
|
1092
1279
|
@property --dropdown-bg {
|
|
1093
1280
|
syntax: "<color>";
|
|
1094
1281
|
inherits: true;
|
|
@@ -2224,37 +2411,37 @@ function clsx() {
|
|
|
2224
2411
|
}
|
|
2225
2412
|
const button = "_button_105y0_7";
|
|
2226
2413
|
const pageBackground$4 = "_pageBackground_105y0_24";
|
|
2227
|
-
const large$
|
|
2228
|
-
const small$
|
|
2229
|
-
const disabled$
|
|
2230
|
-
const primary$
|
|
2231
|
-
const success$
|
|
2232
|
-
const warning$
|
|
2233
|
-
const danger$
|
|
2234
|
-
const info$
|
|
2235
|
-
const secondary$
|
|
2236
|
-
const styles$
|
|
2414
|
+
const large$8 = "_large_105y0_34";
|
|
2415
|
+
const small$8 = "_small_105y0_39";
|
|
2416
|
+
const disabled$8 = "_disabled_105y0_44";
|
|
2417
|
+
const primary$a = "_primary_105y0_51";
|
|
2418
|
+
const success$a = "_success_105y0_64";
|
|
2419
|
+
const warning$a = "_warning_105y0_77";
|
|
2420
|
+
const danger$a = "_danger_105y0_90";
|
|
2421
|
+
const info$a = "_info_105y0_103";
|
|
2422
|
+
const secondary$a = "_secondary_105y0_116";
|
|
2423
|
+
const styles$d = {
|
|
2237
2424
|
button,
|
|
2238
2425
|
pageBackground: pageBackground$4,
|
|
2239
|
-
large: large$
|
|
2240
|
-
small: small$
|
|
2241
|
-
disabled: disabled$
|
|
2242
|
-
primary: primary$
|
|
2243
|
-
success: success$
|
|
2244
|
-
warning: warning$
|
|
2245
|
-
danger: danger$
|
|
2246
|
-
info: info$
|
|
2247
|
-
secondary: secondary$
|
|
2426
|
+
large: large$8,
|
|
2427
|
+
small: small$8,
|
|
2428
|
+
disabled: disabled$8,
|
|
2429
|
+
primary: primary$a,
|
|
2430
|
+
success: success$a,
|
|
2431
|
+
warning: warning$a,
|
|
2432
|
+
danger: danger$a,
|
|
2433
|
+
info: info$a,
|
|
2434
|
+
secondary: secondary$a
|
|
2248
2435
|
};
|
|
2249
|
-
const chamfer$1 = "
|
|
2250
|
-
const disabled$
|
|
2251
|
-
const chamferOnHover = "
|
|
2436
|
+
const chamfer$1 = "_chamfer_1unae_1";
|
|
2437
|
+
const disabled$7 = "_disabled_1unae_16";
|
|
2438
|
+
const chamferOnHover = "_chamferOnHover_1unae_67";
|
|
2252
2439
|
const chamferStyles = {
|
|
2253
2440
|
chamfer: chamfer$1,
|
|
2254
|
-
disabled: disabled$
|
|
2441
|
+
disabled: disabled$7,
|
|
2255
2442
|
chamferOnHover
|
|
2256
2443
|
};
|
|
2257
|
-
const hatch$1 = "
|
|
2444
|
+
const hatch$1 = "_hatch_rrcdt_1";
|
|
2258
2445
|
const hatchStyles = {
|
|
2259
2446
|
hatch: hatch$1
|
|
2260
2447
|
};
|
|
@@ -2266,10 +2453,10 @@ const ThemeContext = createContext$1({
|
|
|
2266
2453
|
});
|
|
2267
2454
|
const useJCUITheme = () => useContext(ThemeContext);
|
|
2268
2455
|
const loader = "_loader_1y0fe_1";
|
|
2269
|
-
const styles$
|
|
2456
|
+
const styles$c = {
|
|
2270
2457
|
loader
|
|
2271
2458
|
};
|
|
2272
|
-
const Loader = (props) => /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$
|
|
2459
|
+
const Loader = (props) => /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$c.loader, ...props });
|
|
2273
2460
|
function Button({
|
|
2274
2461
|
children: children2,
|
|
2275
2462
|
variant,
|
|
@@ -2283,15 +2470,15 @@ function Button({
|
|
|
2283
2470
|
"button",
|
|
2284
2471
|
{
|
|
2285
2472
|
className: clsx(
|
|
2286
|
-
styles$
|
|
2287
|
-
!variant && styles$
|
|
2288
|
-
styles$
|
|
2473
|
+
styles$d.button,
|
|
2474
|
+
!variant && styles$d.pageBackground,
|
|
2475
|
+
styles$d[variant],
|
|
2289
2476
|
chamfer2 && chamferStyles.chamfer,
|
|
2290
|
-
size2 === "large" && styles$
|
|
2291
|
-
size2 === "small" && styles$
|
|
2477
|
+
size2 === "large" && styles$d.large,
|
|
2478
|
+
size2 === "small" && styles$d.small,
|
|
2292
2479
|
disabled2 && chamferStyles.disabled,
|
|
2293
2480
|
disabled2 && hatchStyles.hatch,
|
|
2294
|
-
disabled2 && styles$
|
|
2481
|
+
disabled2 && styles$d.disabled
|
|
2295
2482
|
),
|
|
2296
2483
|
disabled: disabled2,
|
|
2297
2484
|
...props,
|
|
@@ -2404,28 +2591,28 @@ const pageBackground$3 = "_pageBackground_et6fi_11";
|
|
|
2404
2591
|
const title$1 = "_title_et6fi_18";
|
|
2405
2592
|
const body$1 = "_body_et6fi_25";
|
|
2406
2593
|
const footer$1 = "_footer_et6fi_30";
|
|
2407
|
-
const large$
|
|
2408
|
-
const small$
|
|
2409
|
-
const primary$
|
|
2410
|
-
const success$
|
|
2411
|
-
const warning$
|
|
2412
|
-
const danger$
|
|
2413
|
-
const info$
|
|
2414
|
-
const secondary$
|
|
2415
|
-
const styles$
|
|
2594
|
+
const large$7 = "_large_et6fi_37";
|
|
2595
|
+
const small$7 = "_small_et6fi_43";
|
|
2596
|
+
const primary$9 = "_primary_et6fi_51";
|
|
2597
|
+
const success$9 = "_success_et6fi_58";
|
|
2598
|
+
const warning$9 = "_warning_et6fi_65";
|
|
2599
|
+
const danger$9 = "_danger_et6fi_72";
|
|
2600
|
+
const info$9 = "_info_et6fi_79";
|
|
2601
|
+
const secondary$9 = "_secondary_et6fi_86";
|
|
2602
|
+
const styles$b = {
|
|
2416
2603
|
card,
|
|
2417
2604
|
pageBackground: pageBackground$3,
|
|
2418
2605
|
title: title$1,
|
|
2419
2606
|
body: body$1,
|
|
2420
2607
|
footer: footer$1,
|
|
2421
|
-
large: large$
|
|
2422
|
-
small: small$
|
|
2423
|
-
primary: primary$
|
|
2424
|
-
success: success$
|
|
2425
|
-
warning: warning$
|
|
2426
|
-
danger: danger$
|
|
2427
|
-
info: info$
|
|
2428
|
-
secondary: secondary$
|
|
2608
|
+
large: large$7,
|
|
2609
|
+
small: small$7,
|
|
2610
|
+
primary: primary$9,
|
|
2611
|
+
success: success$9,
|
|
2612
|
+
warning: warning$9,
|
|
2613
|
+
danger: danger$9,
|
|
2614
|
+
info: info$9,
|
|
2615
|
+
secondary: secondary$9
|
|
2429
2616
|
};
|
|
2430
2617
|
function Card({
|
|
2431
2618
|
children: children2,
|
|
@@ -2442,21 +2629,21 @@ function Card({
|
|
|
2442
2629
|
"div",
|
|
2443
2630
|
{
|
|
2444
2631
|
className: classNames(
|
|
2445
|
-
styles$
|
|
2446
|
-
!variant && styles$
|
|
2447
|
-
styles$
|
|
2632
|
+
styles$b.card,
|
|
2633
|
+
!variant && styles$b.pageBackground,
|
|
2634
|
+
styles$b[variant],
|
|
2448
2635
|
chamfer2 && chamferStyles.chamfer,
|
|
2449
|
-
size2 === "large" && styles$
|
|
2450
|
-
size2 === "small" && styles$
|
|
2636
|
+
size2 === "large" && styles$b.large,
|
|
2637
|
+
size2 === "small" && styles$b.small
|
|
2451
2638
|
),
|
|
2452
2639
|
...props,
|
|
2453
2640
|
children: [
|
|
2454
|
-
title2 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: classNames(styles$
|
|
2455
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$
|
|
2641
|
+
title2 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: classNames(styles$b.title, hatchStyles.hatch), children: title2 }),
|
|
2642
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$b.body, children: children2 }),
|
|
2456
2643
|
footerHeight > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
2457
2644
|
"div",
|
|
2458
2645
|
{
|
|
2459
|
-
className: classNames(hatchStyles.hatch, styles$
|
|
2646
|
+
className: classNames(hatchStyles.hatch, styles$b.footer),
|
|
2460
2647
|
style: { flexBasis: footerHeight },
|
|
2461
2648
|
children: footer2
|
|
2462
2649
|
}
|
|
@@ -3187,34 +3374,34 @@ function getState$2(checked) {
|
|
|
3187
3374
|
return isIndeterminate$1(checked) ? "indeterminate" : checked ? "checked" : "unchecked";
|
|
3188
3375
|
}
|
|
3189
3376
|
const wrapper$1 = "_wrapper_178xv_25";
|
|
3190
|
-
const disabled$
|
|
3191
|
-
const root$
|
|
3377
|
+
const disabled$6 = "_disabled_178xv_34";
|
|
3378
|
+
const root$4 = "_root_178xv_39";
|
|
3192
3379
|
const indicator$1 = "_indicator_178xv_76";
|
|
3193
|
-
const large$
|
|
3194
|
-
const small$
|
|
3380
|
+
const large$6 = "_large_178xv_94";
|
|
3381
|
+
const small$6 = "_small_178xv_99";
|
|
3195
3382
|
const disabledBox = "_disabledBox_178xv_104";
|
|
3196
3383
|
const label$3 = "_label_178xv_109";
|
|
3197
|
-
const primary$
|
|
3198
|
-
const secondary$
|
|
3199
|
-
const success$
|
|
3200
|
-
const warning$
|
|
3201
|
-
const danger$
|
|
3202
|
-
const info$
|
|
3203
|
-
const styles$
|
|
3384
|
+
const primary$8 = "_primary_178xv_117";
|
|
3385
|
+
const secondary$8 = "_secondary_178xv_126";
|
|
3386
|
+
const success$8 = "_success_178xv_135";
|
|
3387
|
+
const warning$8 = "_warning_178xv_144";
|
|
3388
|
+
const danger$8 = "_danger_178xv_153";
|
|
3389
|
+
const info$8 = "_info_178xv_162";
|
|
3390
|
+
const styles$a = {
|
|
3204
3391
|
wrapper: wrapper$1,
|
|
3205
|
-
disabled: disabled$
|
|
3206
|
-
root: root$
|
|
3392
|
+
disabled: disabled$6,
|
|
3393
|
+
root: root$4,
|
|
3207
3394
|
indicator: indicator$1,
|
|
3208
|
-
large: large$
|
|
3209
|
-
small: small$
|
|
3395
|
+
large: large$6,
|
|
3396
|
+
small: small$6,
|
|
3210
3397
|
disabledBox,
|
|
3211
3398
|
label: label$3,
|
|
3212
|
-
primary: primary$
|
|
3213
|
-
secondary: secondary$
|
|
3214
|
-
success: success$
|
|
3215
|
-
warning: warning$
|
|
3216
|
-
danger: danger$
|
|
3217
|
-
info: info$
|
|
3399
|
+
primary: primary$8,
|
|
3400
|
+
secondary: secondary$8,
|
|
3401
|
+
success: success$8,
|
|
3402
|
+
warning: warning$8,
|
|
3403
|
+
danger: danger$8,
|
|
3404
|
+
info: info$8
|
|
3218
3405
|
};
|
|
3219
3406
|
const CheckIcon = () => /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { viewBox: "0 0 24 24", fill: "none", role: "presentation", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
3220
3407
|
"polyline",
|
|
@@ -3237,32 +3424,32 @@ function Checkbox({
|
|
|
3237
3424
|
...props
|
|
3238
3425
|
}) {
|
|
3239
3426
|
const labelContent = label2 ?? children2;
|
|
3240
|
-
const variantClass = variant && styles$
|
|
3241
|
-
const sizeClass = size2 === "large" ? styles$
|
|
3427
|
+
const variantClass = variant && styles$a[variant];
|
|
3428
|
+
const sizeClass = size2 === "large" ? styles$a.large : size2 === "small" ? styles$a.small : null;
|
|
3242
3429
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
3243
3430
|
"label",
|
|
3244
3431
|
{
|
|
3245
|
-
className: clsx(styles$
|
|
3432
|
+
className: clsx(styles$a.wrapper, variantClass, disabled2 && styles$a.disabled),
|
|
3246
3433
|
children: [
|
|
3247
3434
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
3248
3435
|
Checkbox$1,
|
|
3249
3436
|
{
|
|
3250
3437
|
className: clsx(
|
|
3251
|
-
styles$
|
|
3438
|
+
styles$a.root,
|
|
3252
3439
|
variantClass,
|
|
3253
3440
|
sizeClass,
|
|
3254
3441
|
chamfer2 && chamferStyles.chamfer,
|
|
3255
3442
|
disabled2 && chamferStyles.disabled,
|
|
3256
3443
|
disabled2 && hatchStyles.hatch,
|
|
3257
|
-
disabled2 && styles$
|
|
3444
|
+
disabled2 && styles$a.disabledBox,
|
|
3258
3445
|
className
|
|
3259
3446
|
),
|
|
3260
3447
|
disabled: disabled2,
|
|
3261
3448
|
...props,
|
|
3262
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(CheckboxIndicator, { className: styles$
|
|
3449
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(CheckboxIndicator, { className: styles$a.indicator, children: /* @__PURE__ */ jsxRuntimeExports.jsx(CheckIcon, {}) })
|
|
3263
3450
|
}
|
|
3264
3451
|
),
|
|
3265
|
-
labelContent && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$
|
|
3452
|
+
labelContent && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$a.label, children: labelContent })
|
|
3266
3453
|
]
|
|
3267
3454
|
}
|
|
3268
3455
|
);
|
|
@@ -4712,13 +4899,13 @@ function* selection_iterator() {
|
|
|
4712
4899
|
}
|
|
4713
4900
|
}
|
|
4714
4901
|
}
|
|
4715
|
-
var root$
|
|
4902
|
+
var root$3 = [null];
|
|
4716
4903
|
function Selection$1(groups, parents) {
|
|
4717
4904
|
this._groups = groups;
|
|
4718
4905
|
this._parents = parents;
|
|
4719
4906
|
}
|
|
4720
4907
|
function selection() {
|
|
4721
|
-
return new Selection$1([[document.documentElement]], root$
|
|
4908
|
+
return new Selection$1([[document.documentElement]], root$3);
|
|
4722
4909
|
}
|
|
4723
4910
|
function selection_selection() {
|
|
4724
4911
|
return this;
|
|
@@ -4762,7 +4949,7 @@ Selection$1.prototype = selection.prototype = {
|
|
|
4762
4949
|
[Symbol.iterator]: selection_iterator
|
|
4763
4950
|
};
|
|
4764
4951
|
function select(selector2) {
|
|
4765
|
-
return typeof selector2 === "string" ? new Selection$1([[document.querySelector(selector2)]], [document.documentElement]) : new Selection$1([[selector2]], root$
|
|
4952
|
+
return typeof selector2 === "string" ? new Selection$1([[document.querySelector(selector2)]], [document.documentElement]) : new Selection$1([[selector2]], root$3);
|
|
4766
4953
|
}
|
|
4767
4954
|
function sourceEvent(event) {
|
|
4768
4955
|
let sourceEvent2;
|
|
@@ -14112,7 +14299,7 @@ let nextClipId = 0;
|
|
|
14112
14299
|
function getClipId() {
|
|
14113
14300
|
return `plot-clip-${++nextClipId}`;
|
|
14114
14301
|
}
|
|
14115
|
-
function styles$
|
|
14302
|
+
function styles$9(mark, {
|
|
14116
14303
|
title: title2,
|
|
14117
14304
|
href,
|
|
14118
14305
|
ariaLabel: variaLabel,
|
|
@@ -14478,7 +14665,7 @@ class Mark {
|
|
|
14478
14665
|
this.facetAnchor = maybeFacetAnchor(facetAnchor);
|
|
14479
14666
|
channels = maybeNamed(channels);
|
|
14480
14667
|
if (extraChannels !== void 0) channels = { ...maybeChannels(extraChannels), ...channels };
|
|
14481
|
-
if (defaults2 !== void 0) channels = { ...styles$
|
|
14668
|
+
if (defaults2 !== void 0) channels = { ...styles$9(this, options, defaults2), ...channels };
|
|
14482
14669
|
this.channels = Object.fromEntries(
|
|
14483
14670
|
Object.entries(channels).map(([name, channel]) => {
|
|
14484
14671
|
if (isOptions(channel.value)) {
|
|
@@ -19506,29 +19693,29 @@ const RadarChart = ({
|
|
|
19506
19693
|
};
|
|
19507
19694
|
const input$1 = "_input_1ymvl_7";
|
|
19508
19695
|
const pageBackground$2 = "_pageBackground_1ymvl_24";
|
|
19509
|
-
const large$
|
|
19510
|
-
const small$
|
|
19511
|
-
const disabled$
|
|
19512
|
-
const primary$
|
|
19513
|
-
const success$
|
|
19514
|
-
const warning$
|
|
19515
|
-
const danger$
|
|
19516
|
-
const info$
|
|
19517
|
-
const secondary$
|
|
19696
|
+
const large$5 = "_large_1ymvl_38";
|
|
19697
|
+
const small$5 = "_small_1ymvl_43";
|
|
19698
|
+
const disabled$5 = "_disabled_1ymvl_48";
|
|
19699
|
+
const primary$7 = "_primary_1ymvl_55";
|
|
19700
|
+
const success$7 = "_success_1ymvl_64";
|
|
19701
|
+
const warning$7 = "_warning_1ymvl_72";
|
|
19702
|
+
const danger$7 = "_danger_1ymvl_80";
|
|
19703
|
+
const info$7 = "_info_1ymvl_88";
|
|
19704
|
+
const secondary$7 = "_secondary_1ymvl_97";
|
|
19518
19705
|
const field = "_field_1ymvl_106";
|
|
19519
19706
|
const label$2 = "_label_1ymvl_112";
|
|
19520
|
-
const styles$
|
|
19707
|
+
const styles$8 = {
|
|
19521
19708
|
input: input$1,
|
|
19522
19709
|
pageBackground: pageBackground$2,
|
|
19523
|
-
large: large$
|
|
19524
|
-
small: small$
|
|
19525
|
-
disabled: disabled$
|
|
19526
|
-
primary: primary$
|
|
19527
|
-
success: success$
|
|
19528
|
-
warning: warning$
|
|
19529
|
-
danger: danger$
|
|
19530
|
-
info: info$
|
|
19531
|
-
secondary: secondary$
|
|
19710
|
+
large: large$5,
|
|
19711
|
+
small: small$5,
|
|
19712
|
+
disabled: disabled$5,
|
|
19713
|
+
primary: primary$7,
|
|
19714
|
+
success: success$7,
|
|
19715
|
+
warning: warning$7,
|
|
19716
|
+
danger: danger$7,
|
|
19717
|
+
info: info$7,
|
|
19718
|
+
secondary: secondary$7,
|
|
19532
19719
|
field,
|
|
19533
19720
|
label: label$2
|
|
19534
19721
|
};
|
|
@@ -19541,28 +19728,28 @@ function Input({
|
|
|
19541
19728
|
...props
|
|
19542
19729
|
}) {
|
|
19543
19730
|
const inputId = useId$1();
|
|
19544
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$
|
|
19545
|
-
label2 && /* @__PURE__ */ jsxRuntimeExports.jsx("label", { className: styles$
|
|
19731
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$8.field, children: [
|
|
19732
|
+
label2 && /* @__PURE__ */ jsxRuntimeExports.jsx("label", { className: styles$8.label, htmlFor: inputId, children: label2 }),
|
|
19546
19733
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
19547
19734
|
"div",
|
|
19548
19735
|
{
|
|
19549
19736
|
className: classNames(
|
|
19550
19737
|
chamfer2 && chamferStyles.chamfer,
|
|
19551
|
-
!variant && styles$
|
|
19552
|
-
styles$
|
|
19738
|
+
!variant && styles$8.pageBackground,
|
|
19739
|
+
styles$8[variant]
|
|
19553
19740
|
),
|
|
19554
19741
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
19555
19742
|
"input",
|
|
19556
19743
|
{
|
|
19557
19744
|
id: inputId,
|
|
19558
19745
|
className: classNames(
|
|
19559
|
-
styles$
|
|
19560
|
-
!variant && styles$
|
|
19561
|
-
styles$
|
|
19562
|
-
size2 === "large" && styles$
|
|
19563
|
-
size2 === "small" && styles$
|
|
19746
|
+
styles$8.input,
|
|
19747
|
+
!variant && styles$8.pageBackground,
|
|
19748
|
+
styles$8[variant],
|
|
19749
|
+
size2 === "large" && styles$8.large,
|
|
19750
|
+
size2 === "small" && styles$8.small,
|
|
19564
19751
|
disabled2 && chamferStyles.disabled,
|
|
19565
|
-
disabled2 && styles$
|
|
19752
|
+
disabled2 && styles$8.disabled,
|
|
19566
19753
|
disabled2 && hatchStyles.hatch
|
|
19567
19754
|
),
|
|
19568
19755
|
disabled: disabled2,
|
|
@@ -19577,7 +19764,7 @@ function Input({
|
|
|
19577
19764
|
)
|
|
19578
19765
|
] });
|
|
19579
19766
|
}
|
|
19580
|
-
const root$
|
|
19767
|
+
const root$2 = "_root_i158m_7";
|
|
19581
19768
|
const label$1 = "_label_i158m_14";
|
|
19582
19769
|
const dropzone = "_dropzone_i158m_18";
|
|
19583
19770
|
const pageBackground$1 = "_pageBackground_i158m_42";
|
|
@@ -19601,19 +19788,19 @@ const customFile = "_customFile_i158m_182";
|
|
|
19601
19788
|
const removeButton = "_removeButton_i158m_195";
|
|
19602
19789
|
const trashIcon = "_trashIcon_i158m_222";
|
|
19603
19790
|
const trashLid = "_trashLid_i158m_227";
|
|
19604
|
-
const large$
|
|
19605
|
-
const small$
|
|
19791
|
+
const large$4 = "_large_i158m_249";
|
|
19792
|
+
const small$4 = "_small_i158m_258";
|
|
19606
19793
|
const hasFiles = "_hasFiles_i158m_271";
|
|
19607
19794
|
const dragging = "_dragging_i158m_275";
|
|
19608
|
-
const disabled$
|
|
19609
|
-
const primary$
|
|
19610
|
-
const success$
|
|
19611
|
-
const warning$
|
|
19612
|
-
const danger$
|
|
19613
|
-
const info$
|
|
19614
|
-
const secondary$
|
|
19615
|
-
const styles$
|
|
19616
|
-
root: root$
|
|
19795
|
+
const disabled$4 = "_disabled_i158m_280";
|
|
19796
|
+
const primary$6 = "_primary_i158m_285";
|
|
19797
|
+
const success$6 = "_success_i158m_297";
|
|
19798
|
+
const warning$6 = "_warning_i158m_309";
|
|
19799
|
+
const danger$6 = "_danger_i158m_321";
|
|
19800
|
+
const info$6 = "_info_i158m_333";
|
|
19801
|
+
const secondary$6 = "_secondary_i158m_345";
|
|
19802
|
+
const styles$7 = {
|
|
19803
|
+
root: root$2,
|
|
19617
19804
|
label: label$1,
|
|
19618
19805
|
dropzone,
|
|
19619
19806
|
pageBackground: pageBackground$1,
|
|
@@ -19637,17 +19824,17 @@ const styles$6 = {
|
|
|
19637
19824
|
removeButton,
|
|
19638
19825
|
trashIcon,
|
|
19639
19826
|
trashLid,
|
|
19640
|
-
large: large$
|
|
19641
|
-
small: small$
|
|
19827
|
+
large: large$4,
|
|
19828
|
+
small: small$4,
|
|
19642
19829
|
hasFiles,
|
|
19643
19830
|
dragging,
|
|
19644
|
-
disabled: disabled$
|
|
19645
|
-
primary: primary$
|
|
19646
|
-
success: success$
|
|
19647
|
-
warning: warning$
|
|
19648
|
-
danger: danger$
|
|
19649
|
-
info: info$
|
|
19650
|
-
secondary: secondary$
|
|
19831
|
+
disabled: disabled$4,
|
|
19832
|
+
primary: primary$6,
|
|
19833
|
+
success: success$6,
|
|
19834
|
+
warning: warning$6,
|
|
19835
|
+
danger: danger$6,
|
|
19836
|
+
info: info$6,
|
|
19837
|
+
secondary: secondary$6
|
|
19651
19838
|
};
|
|
19652
19839
|
const normalizeFiles = (value, multiple = false) => {
|
|
19653
19840
|
if (!value) {
|
|
@@ -19750,9 +19937,9 @@ const TrashIcon = () => /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
|
19750
19937
|
fill: "none",
|
|
19751
19938
|
role: "presentation",
|
|
19752
19939
|
"aria-hidden": true,
|
|
19753
|
-
className: styles$
|
|
19940
|
+
className: styles$7.trashIcon,
|
|
19754
19941
|
children: [
|
|
19755
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("g", { className: styles$
|
|
19942
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("g", { className: styles$7.trashLid, children: [
|
|
19756
19943
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
19757
19944
|
"path",
|
|
19758
19945
|
{
|
|
@@ -19991,23 +20178,23 @@ const FileUpload = forwardRef(function FileUpload2({
|
|
|
19991
20178
|
const selectedSummary = selectedFiles.length > 0 ? `${selectedFiles.length} file${selectedFiles.length === 1 ? "" : "s"} selected` : placeholder;
|
|
19992
20179
|
const dropzoneIcon2 = icon2 ?? /* @__PURE__ */ jsxRuntimeExports.jsx(UploadIcon, {});
|
|
19993
20180
|
const fileFallbackIcon = icon2 ?? /* @__PURE__ */ jsxRuntimeExports.jsx(FileIcon, {});
|
|
19994
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$
|
|
19995
|
-
label2 && /* @__PURE__ */ jsxRuntimeExports.jsx("label", { className: styles$
|
|
20181
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$7.root, className), children: [
|
|
20182
|
+
label2 && /* @__PURE__ */ jsxRuntimeExports.jsx("label", { className: styles$7.label, htmlFor: inputId, children: label2 }),
|
|
19996
20183
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
19997
20184
|
"div",
|
|
19998
20185
|
{
|
|
19999
20186
|
className: clsx(
|
|
20000
|
-
styles$
|
|
20001
|
-
!variant && styles$
|
|
20002
|
-
variant && styles$
|
|
20187
|
+
styles$7.dropzone,
|
|
20188
|
+
!variant && styles$7.pageBackground,
|
|
20189
|
+
variant && styles$7[variant],
|
|
20003
20190
|
chamfer2 && chamferStyles.chamfer,
|
|
20004
|
-
size2 === "large" && styles$
|
|
20005
|
-
size2 === "small" && styles$
|
|
20006
|
-
disabled2 && styles$
|
|
20191
|
+
size2 === "large" && styles$7.large,
|
|
20192
|
+
size2 === "small" && styles$7.small,
|
|
20193
|
+
disabled2 && styles$7.disabled,
|
|
20007
20194
|
disabled2 && chamferStyles.disabled,
|
|
20008
20195
|
disabled2 && hatchStyles.hatch,
|
|
20009
|
-
isDragging && styles$
|
|
20010
|
-
selectedFiles.length > 0 && styles$
|
|
20196
|
+
isDragging && styles$7.dragging,
|
|
20197
|
+
selectedFiles.length > 0 && styles$7.hasFiles,
|
|
20011
20198
|
dropzoneClassName
|
|
20012
20199
|
),
|
|
20013
20200
|
onClick: handleDropzoneClick,
|
|
@@ -20025,34 +20212,34 @@ const FileUpload = forwardRef(function FileUpload2({
|
|
|
20025
20212
|
{
|
|
20026
20213
|
ref: setInputNode,
|
|
20027
20214
|
id: inputId,
|
|
20028
|
-
className: styles$
|
|
20215
|
+
className: styles$7.input,
|
|
20029
20216
|
type: "file",
|
|
20030
20217
|
disabled: disabled2,
|
|
20031
20218
|
...inputProps,
|
|
20032
20219
|
onChange: handleInputChange
|
|
20033
20220
|
}
|
|
20034
20221
|
),
|
|
20035
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$
|
|
20036
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$
|
|
20037
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: styles$
|
|
20038
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$
|
|
20039
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$
|
|
20222
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$7.dropzoneContent, children: [
|
|
20223
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$7.dropzoneIcon, "aria-hidden": true, children: dropzoneIcon2 }),
|
|
20224
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: styles$7.dropzoneText, children: [
|
|
20225
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$7.dropzoneTitle, children: selectedSummary }),
|
|
20226
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$7.dropzoneHint, children: hintText })
|
|
20040
20227
|
] })
|
|
20041
20228
|
] }),
|
|
20042
20229
|
children2
|
|
20043
20230
|
]
|
|
20044
20231
|
}
|
|
20045
20232
|
),
|
|
20046
|
-
helperText2 && /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: styles$
|
|
20047
|
-
showFileList && selectedFiles.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$
|
|
20233
|
+
helperText2 && /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: styles$7.helperText, children: helperText2 }),
|
|
20234
|
+
showFileList && selectedFiles.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$7.fileList, children: previewItems.map((item2, index2) => {
|
|
20048
20235
|
if (renderFile) {
|
|
20049
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$
|
|
20050
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$
|
|
20236
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$7.customFileRow, children: [
|
|
20237
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$7.customFile, children: renderFile(item2.file, index2) }),
|
|
20051
20238
|
removable && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
20052
20239
|
"button",
|
|
20053
20240
|
{
|
|
20054
20241
|
type: "button",
|
|
20055
|
-
className: styles$
|
|
20242
|
+
className: styles$7.removeButton,
|
|
20056
20243
|
onClick: (event) => handleRemoveFile(index2, event),
|
|
20057
20244
|
"aria-label": `Remove ${item2.name}`,
|
|
20058
20245
|
disabled: disabled2,
|
|
@@ -20061,26 +20248,26 @@ const FileUpload = forwardRef(function FileUpload2({
|
|
|
20061
20248
|
)
|
|
20062
20249
|
] }, `${item2.name}-${index2}`);
|
|
20063
20250
|
}
|
|
20064
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$
|
|
20065
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: styles$
|
|
20066
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$
|
|
20251
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$7.fileItem, children: [
|
|
20252
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: styles$7.fileInfo, children: [
|
|
20253
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$7.filePreview, "aria-hidden": true, children: item2.previewUrl ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
20067
20254
|
"img",
|
|
20068
20255
|
{
|
|
20069
|
-
className: styles$
|
|
20256
|
+
className: styles$7.filePreviewImage,
|
|
20070
20257
|
src: item2.previewUrl,
|
|
20071
20258
|
alt: ""
|
|
20072
20259
|
}
|
|
20073
20260
|
) : fileFallbackIcon }),
|
|
20074
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: styles$
|
|
20075
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$
|
|
20076
|
-
item2.sizeText && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$
|
|
20261
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: styles$7.fileMeta, children: [
|
|
20262
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$7.fileName, children: item2.name }),
|
|
20263
|
+
item2.sizeText && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$7.fileSize, children: item2.sizeText })
|
|
20077
20264
|
] })
|
|
20078
20265
|
] }),
|
|
20079
20266
|
removable && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
20080
20267
|
"button",
|
|
20081
20268
|
{
|
|
20082
20269
|
type: "button",
|
|
20083
|
-
className: styles$
|
|
20270
|
+
className: styles$7.removeButton,
|
|
20084
20271
|
onClick: (event) => handleRemoveFile(index2, event),
|
|
20085
20272
|
"aria-label": `Remove ${item2.name}`,
|
|
20086
20273
|
disabled: disabled2,
|
|
@@ -20279,7 +20466,7 @@ var RovingFocusGroupImpl = React.forwardRef((props, forwardedRef) => {
|
|
|
20279
20466
|
}
|
|
20280
20467
|
);
|
|
20281
20468
|
});
|
|
20282
|
-
var ITEM_NAME$
|
|
20469
|
+
var ITEM_NAME$5 = "RovingFocusGroupItem";
|
|
20283
20470
|
var RovingFocusGroupItem = React.forwardRef(
|
|
20284
20471
|
(props, forwardedRef) => {
|
|
20285
20472
|
const {
|
|
@@ -20292,7 +20479,7 @@ var RovingFocusGroupItem = React.forwardRef(
|
|
|
20292
20479
|
} = props;
|
|
20293
20480
|
const autoId = useId();
|
|
20294
20481
|
const id2 = tabStopId || autoId;
|
|
20295
|
-
const context = useRovingFocusContext(ITEM_NAME$
|
|
20482
|
+
const context = useRovingFocusContext(ITEM_NAME$5, __scopeRovingFocusGroup);
|
|
20296
20483
|
const isCurrentTabStop = context.currentTabStopId === id2;
|
|
20297
20484
|
const getItems = useCollection$2(__scopeRovingFocusGroup);
|
|
20298
20485
|
const { onFocusableItemAdd, onFocusableItemRemove, currentTabStopId } = context;
|
|
@@ -20349,7 +20536,7 @@ var RovingFocusGroupItem = React.forwardRef(
|
|
|
20349
20536
|
);
|
|
20350
20537
|
}
|
|
20351
20538
|
);
|
|
20352
|
-
RovingFocusGroupItem.displayName = ITEM_NAME$
|
|
20539
|
+
RovingFocusGroupItem.displayName = ITEM_NAME$5;
|
|
20353
20540
|
var MAP_KEY_TO_FOCUS_INTENT = {
|
|
20354
20541
|
ArrowLeft: "prev",
|
|
20355
20542
|
ArrowUp: "prev",
|
|
@@ -20519,7 +20706,7 @@ var [createRadioGroupContext] = createContextScope(RADIO_GROUP_NAME$2, [
|
|
|
20519
20706
|
createRovingFocusGroupScope,
|
|
20520
20707
|
createRadioScope
|
|
20521
20708
|
]);
|
|
20522
|
-
var useRovingFocusGroupScope$
|
|
20709
|
+
var useRovingFocusGroupScope$2 = createRovingFocusGroupScope();
|
|
20523
20710
|
var useRadioScope = createRadioScope();
|
|
20524
20711
|
var [RadioGroupProvider$1, useRadioGroupContext$1] = createRadioGroupContext(RADIO_GROUP_NAME$2);
|
|
20525
20712
|
var RadioGroup$2 = React.forwardRef(
|
|
@@ -20537,7 +20724,7 @@ var RadioGroup$2 = React.forwardRef(
|
|
|
20537
20724
|
onValueChange,
|
|
20538
20725
|
...groupProps
|
|
20539
20726
|
} = props;
|
|
20540
|
-
const rovingFocusGroupScope = useRovingFocusGroupScope$
|
|
20727
|
+
const rovingFocusGroupScope = useRovingFocusGroupScope$2(__scopeRadioGroup);
|
|
20541
20728
|
const direction = useDirection(dir);
|
|
20542
20729
|
const [value, setValue] = useControllableState({
|
|
20543
20730
|
prop: valueProp,
|
|
@@ -20581,13 +20768,13 @@ var RadioGroup$2 = React.forwardRef(
|
|
|
20581
20768
|
}
|
|
20582
20769
|
);
|
|
20583
20770
|
RadioGroup$2.displayName = RADIO_GROUP_NAME$2;
|
|
20584
|
-
var ITEM_NAME$
|
|
20771
|
+
var ITEM_NAME$4 = "RadioGroupItem";
|
|
20585
20772
|
var RadioGroupItem = React.forwardRef(
|
|
20586
20773
|
(props, forwardedRef) => {
|
|
20587
20774
|
const { __scopeRadioGroup, disabled: disabled2, ...itemProps } = props;
|
|
20588
|
-
const context = useRadioGroupContext$1(ITEM_NAME$
|
|
20775
|
+
const context = useRadioGroupContext$1(ITEM_NAME$4, __scopeRadioGroup);
|
|
20589
20776
|
const isDisabled = context.disabled || disabled2;
|
|
20590
|
-
const rovingFocusGroupScope = useRovingFocusGroupScope$
|
|
20777
|
+
const rovingFocusGroupScope = useRovingFocusGroupScope$2(__scopeRadioGroup);
|
|
20591
20778
|
const radioScope = useRadioScope(__scopeRadioGroup);
|
|
20592
20779
|
const ref = React.useRef(null);
|
|
20593
20780
|
const composedRefs = useComposedRefs(forwardedRef, ref);
|
|
@@ -20637,7 +20824,7 @@ var RadioGroupItem = React.forwardRef(
|
|
|
20637
20824
|
);
|
|
20638
20825
|
}
|
|
20639
20826
|
);
|
|
20640
|
-
RadioGroupItem.displayName = ITEM_NAME$
|
|
20827
|
+
RadioGroupItem.displayName = ITEM_NAME$4;
|
|
20641
20828
|
var INDICATOR_NAME2 = "RadioGroupIndicator";
|
|
20642
20829
|
var RadioGroupIndicator = React.forwardRef(
|
|
20643
20830
|
(props, forwardedRef) => {
|
|
@@ -20647,49 +20834,49 @@ var RadioGroupIndicator = React.forwardRef(
|
|
|
20647
20834
|
}
|
|
20648
20835
|
);
|
|
20649
20836
|
RadioGroupIndicator.displayName = INDICATOR_NAME2;
|
|
20650
|
-
var Root2$
|
|
20651
|
-
var Item2$
|
|
20837
|
+
var Root2$4 = RadioGroup$2;
|
|
20838
|
+
var Item2$3 = RadioGroupItem;
|
|
20652
20839
|
var Indicator = RadioGroupIndicator;
|
|
20653
20840
|
const group = "_group_hpxu6_19";
|
|
20654
20841
|
const wrapper = "_wrapper_hpxu6_25";
|
|
20655
|
-
const disabled$
|
|
20656
|
-
const root = "_root_hpxu6_39";
|
|
20842
|
+
const disabled$3 = "_disabled_hpxu6_34";
|
|
20843
|
+
const root$1 = "_root_hpxu6_39";
|
|
20657
20844
|
const indicator = "_indicator_hpxu6_72";
|
|
20658
20845
|
const dot = "_dot_hpxu6_81";
|
|
20659
|
-
const large$
|
|
20660
|
-
const small$
|
|
20846
|
+
const large$3 = "_large_hpxu6_88";
|
|
20847
|
+
const small$3 = "_small_hpxu6_93";
|
|
20661
20848
|
const disabledDot = "_disabledDot_hpxu6_98";
|
|
20662
20849
|
const label = "_label_hpxu6_102";
|
|
20663
20850
|
const chamfer = "_chamfer_hpxu6_107";
|
|
20664
|
-
const primary$
|
|
20665
|
-
const secondary$
|
|
20666
|
-
const success$
|
|
20667
|
-
const warning$
|
|
20668
|
-
const danger$
|
|
20669
|
-
const info$
|
|
20670
|
-
const styles$
|
|
20851
|
+
const primary$5 = "_primary_hpxu6_112";
|
|
20852
|
+
const secondary$5 = "_secondary_hpxu6_121";
|
|
20853
|
+
const success$5 = "_success_hpxu6_130";
|
|
20854
|
+
const warning$5 = "_warning_hpxu6_139";
|
|
20855
|
+
const danger$5 = "_danger_hpxu6_148";
|
|
20856
|
+
const info$5 = "_info_hpxu6_157";
|
|
20857
|
+
const styles$6 = {
|
|
20671
20858
|
group,
|
|
20672
20859
|
wrapper,
|
|
20673
|
-
disabled: disabled$
|
|
20674
|
-
root,
|
|
20860
|
+
disabled: disabled$3,
|
|
20861
|
+
root: root$1,
|
|
20675
20862
|
indicator,
|
|
20676
20863
|
dot,
|
|
20677
|
-
large: large$
|
|
20678
|
-
small: small$
|
|
20864
|
+
large: large$3,
|
|
20865
|
+
small: small$3,
|
|
20679
20866
|
disabledDot,
|
|
20680
20867
|
label,
|
|
20681
20868
|
chamfer,
|
|
20682
|
-
primary: primary$
|
|
20683
|
-
secondary: secondary$
|
|
20684
|
-
success: success$
|
|
20685
|
-
warning: warning$
|
|
20686
|
-
danger: danger$
|
|
20687
|
-
info: info$
|
|
20869
|
+
primary: primary$5,
|
|
20870
|
+
secondary: secondary$5,
|
|
20871
|
+
success: success$5,
|
|
20872
|
+
warning: warning$5,
|
|
20873
|
+
danger: danger$5,
|
|
20874
|
+
info: info$5
|
|
20688
20875
|
};
|
|
20689
20876
|
const RadioGroup$1 = ({ className, children: children2, ...props }) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
20690
|
-
Root2$
|
|
20877
|
+
Root2$4,
|
|
20691
20878
|
{
|
|
20692
|
-
className: clsx(styles$
|
|
20879
|
+
className: clsx(styles$6.group, className),
|
|
20693
20880
|
...props,
|
|
20694
20881
|
children: children2
|
|
20695
20882
|
}
|
|
@@ -20704,33 +20891,33 @@ function Radio({
|
|
|
20704
20891
|
className,
|
|
20705
20892
|
...props
|
|
20706
20893
|
}) {
|
|
20707
|
-
const variantClass = variant && styles$
|
|
20708
|
-
const sizeClass = size2 === "large" ? styles$
|
|
20894
|
+
const variantClass = variant && styles$6[variant];
|
|
20895
|
+
const sizeClass = size2 === "large" ? styles$6.large : size2 === "small" ? styles$6.small : null;
|
|
20709
20896
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
20710
20897
|
"label",
|
|
20711
20898
|
{
|
|
20712
|
-
className: clsx(styles$
|
|
20899
|
+
className: clsx(styles$6.wrapper, variantClass, disabled2 && styles$6.disabled),
|
|
20713
20900
|
children: [
|
|
20714
20901
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
20715
|
-
Item2$
|
|
20902
|
+
Item2$3,
|
|
20716
20903
|
{
|
|
20717
20904
|
className: clsx(
|
|
20718
|
-
styles$
|
|
20905
|
+
styles$6.root,
|
|
20719
20906
|
variantClass,
|
|
20720
20907
|
sizeClass,
|
|
20721
20908
|
chamfer2 && chamferStyles.chamfer,
|
|
20722
20909
|
disabled2 && chamferStyles.disabled,
|
|
20723
20910
|
disabled2 && hatchStyles.hatch,
|
|
20724
|
-
disabled2 && styles$
|
|
20911
|
+
disabled2 && styles$6.disabledDot,
|
|
20725
20912
|
className
|
|
20726
20913
|
),
|
|
20727
20914
|
value,
|
|
20728
20915
|
disabled: disabled2,
|
|
20729
20916
|
...props,
|
|
20730
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Indicator, { className: styles$
|
|
20917
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Indicator, { className: styles$6.indicator, children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$6.dot }) })
|
|
20731
20918
|
}
|
|
20732
20919
|
),
|
|
20733
|
-
label2 && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$
|
|
20920
|
+
label2 && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$6.label, children: label2 })
|
|
20734
20921
|
]
|
|
20735
20922
|
}
|
|
20736
20923
|
);
|
|
@@ -23052,7 +23239,7 @@ const arrow$2 = (options, deps) => ({
|
|
|
23052
23239
|
...arrow$1(options),
|
|
23053
23240
|
options: [options, deps]
|
|
23054
23241
|
});
|
|
23055
|
-
var NAME$
|
|
23242
|
+
var NAME$2 = "Arrow";
|
|
23056
23243
|
var Arrow$1 = React.forwardRef((props, forwardedRef) => {
|
|
23057
23244
|
const { children: children2, width = 10, height = 5, ...arrowProps } = props;
|
|
23058
23245
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -23068,7 +23255,7 @@ var Arrow$1 = React.forwardRef((props, forwardedRef) => {
|
|
|
23068
23255
|
}
|
|
23069
23256
|
);
|
|
23070
23257
|
});
|
|
23071
|
-
Arrow$1.displayName = NAME$
|
|
23258
|
+
Arrow$1.displayName = NAME$2;
|
|
23072
23259
|
var Root$1 = Arrow$1;
|
|
23073
23260
|
var POPPER_NAME = "Popper";
|
|
23074
23261
|
var [createPopperContext, createPopperScope] = createContextScope(POPPER_NAME);
|
|
@@ -23335,7 +23522,7 @@ function getSideAndAlignFromPlacement(placement) {
|
|
|
23335
23522
|
const [side, align = "center"] = placement.split("-");
|
|
23336
23523
|
return [side, align];
|
|
23337
23524
|
}
|
|
23338
|
-
var Root2$
|
|
23525
|
+
var Root2$3 = Popper;
|
|
23339
23526
|
var Anchor = PopperAnchor;
|
|
23340
23527
|
var Content$1 = PopperContent;
|
|
23341
23528
|
var Arrow = PopperArrow;
|
|
@@ -23361,7 +23548,7 @@ var VISUALLY_HIDDEN_STYLES = Object.freeze({
|
|
|
23361
23548
|
whiteSpace: "nowrap",
|
|
23362
23549
|
wordWrap: "normal"
|
|
23363
23550
|
});
|
|
23364
|
-
var NAME = "VisuallyHidden";
|
|
23551
|
+
var NAME$1 = "VisuallyHidden";
|
|
23365
23552
|
var VisuallyHidden = React.forwardRef(
|
|
23366
23553
|
(props, forwardedRef) => {
|
|
23367
23554
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -23374,7 +23561,7 @@ var VisuallyHidden = React.forwardRef(
|
|
|
23374
23561
|
);
|
|
23375
23562
|
}
|
|
23376
23563
|
);
|
|
23377
|
-
VisuallyHidden.displayName = NAME;
|
|
23564
|
+
VisuallyHidden.displayName = NAME$1;
|
|
23378
23565
|
var getDefaultParent = function(originalTarget) {
|
|
23379
23566
|
if (typeof document === "undefined") {
|
|
23380
23567
|
return null;
|
|
@@ -24203,7 +24390,7 @@ var Select = (props) => {
|
|
|
24203
24390
|
const isFormControl = trigger2 ? form || !!trigger2.closest("form") : true;
|
|
24204
24391
|
const [nativeOptionsSet, setNativeOptionsSet] = React.useState(/* @__PURE__ */ new Set());
|
|
24205
24392
|
const nativeSelectKey = Array.from(nativeOptionsSet).map((option) => option.props.value).join(";");
|
|
24206
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Root2$
|
|
24393
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Root2$3, { ...popperScope, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
24207
24394
|
SelectProvider,
|
|
24208
24395
|
{
|
|
24209
24396
|
required,
|
|
@@ -24920,8 +25107,8 @@ var SelectLabel = React.forwardRef(
|
|
|
24920
25107
|
}
|
|
24921
25108
|
);
|
|
24922
25109
|
SelectLabel.displayName = LABEL_NAME$2;
|
|
24923
|
-
var ITEM_NAME$
|
|
24924
|
-
var [SelectItemContextProvider, useSelectItemContext] = createSelectContext(ITEM_NAME$
|
|
25110
|
+
var ITEM_NAME$3 = "SelectItem";
|
|
25111
|
+
var [SelectItemContextProvider, useSelectItemContext] = createSelectContext(ITEM_NAME$3);
|
|
24925
25112
|
var SelectItem = React.forwardRef(
|
|
24926
25113
|
(props, forwardedRef) => {
|
|
24927
25114
|
const {
|
|
@@ -24931,8 +25118,8 @@ var SelectItem = React.forwardRef(
|
|
|
24931
25118
|
textValue: textValueProp,
|
|
24932
25119
|
...itemProps
|
|
24933
25120
|
} = props;
|
|
24934
|
-
const context = useSelectContext(ITEM_NAME$
|
|
24935
|
-
const contentContext = useSelectContentContext(ITEM_NAME$
|
|
25121
|
+
const context = useSelectContext(ITEM_NAME$3, __scopeSelect);
|
|
25122
|
+
const contentContext = useSelectContentContext(ITEM_NAME$3, __scopeSelect);
|
|
24936
25123
|
const isSelected = context.value === value;
|
|
24937
25124
|
const [textValue, setTextValue] = React.useState(textValueProp ?? "");
|
|
24938
25125
|
const [isFocused, setIsFocused] = React.useState(false);
|
|
@@ -25022,7 +25209,7 @@ var SelectItem = React.forwardRef(
|
|
|
25022
25209
|
);
|
|
25023
25210
|
}
|
|
25024
25211
|
);
|
|
25025
|
-
SelectItem.displayName = ITEM_NAME$
|
|
25212
|
+
SelectItem.displayName = ITEM_NAME$3;
|
|
25026
25213
|
var ITEM_TEXT_NAME = "SelectItemText";
|
|
25027
25214
|
var SelectItemText = React.forwardRef(
|
|
25028
25215
|
(props, forwardedRef) => {
|
|
@@ -25268,7 +25455,7 @@ function findNextItem(items, search, currentItem) {
|
|
|
25268
25455
|
function wrapArray$1(array2, startIndex) {
|
|
25269
25456
|
return array2.map((_2, index2) => array2[(startIndex + index2) % array2.length]);
|
|
25270
25457
|
}
|
|
25271
|
-
var Root2$
|
|
25458
|
+
var Root2$2 = Select;
|
|
25272
25459
|
var Trigger$2 = SelectTrigger;
|
|
25273
25460
|
var Value = SelectValue;
|
|
25274
25461
|
var Icon = SelectIcon;
|
|
@@ -25278,32 +25465,32 @@ var Viewport = SelectViewport;
|
|
|
25278
25465
|
var Item = SelectItem;
|
|
25279
25466
|
var ItemText = SelectItemText;
|
|
25280
25467
|
const trigger$1 = "_trigger_1u214_7";
|
|
25281
|
-
const large$
|
|
25282
|
-
const small$
|
|
25283
|
-
const disabled$
|
|
25468
|
+
const large$2 = "_large_1u214_31";
|
|
25469
|
+
const small$2 = "_small_1u214_36";
|
|
25470
|
+
const disabled$2 = "_disabled_1u214_41";
|
|
25284
25471
|
const icon$1 = "_icon_1u214_46";
|
|
25285
25472
|
const content$3 = "_content_1u214_52";
|
|
25286
|
-
const item$
|
|
25287
|
-
const primary$
|
|
25288
|
-
const success$
|
|
25289
|
-
const warning$
|
|
25290
|
-
const danger$
|
|
25291
|
-
const info$
|
|
25292
|
-
const secondary$
|
|
25293
|
-
const styles$
|
|
25473
|
+
const item$2 = "_item_1u214_57";
|
|
25474
|
+
const primary$4 = "_primary_1u214_79";
|
|
25475
|
+
const success$4 = "_success_1u214_89";
|
|
25476
|
+
const warning$4 = "_warning_1u214_99";
|
|
25477
|
+
const danger$4 = "_danger_1u214_109";
|
|
25478
|
+
const info$4 = "_info_1u214_119";
|
|
25479
|
+
const secondary$4 = "_secondary_1u214_129";
|
|
25480
|
+
const styles$5 = {
|
|
25294
25481
|
trigger: trigger$1,
|
|
25295
|
-
large: large$
|
|
25296
|
-
small: small$
|
|
25297
|
-
disabled: disabled$
|
|
25482
|
+
large: large$2,
|
|
25483
|
+
small: small$2,
|
|
25484
|
+
disabled: disabled$2,
|
|
25298
25485
|
icon: icon$1,
|
|
25299
25486
|
content: content$3,
|
|
25300
|
-
item: item$
|
|
25301
|
-
primary: primary$
|
|
25302
|
-
success: success$
|
|
25303
|
-
warning: warning$
|
|
25304
|
-
danger: danger$
|
|
25305
|
-
info: info$
|
|
25306
|
-
secondary: secondary$
|
|
25487
|
+
item: item$2,
|
|
25488
|
+
primary: primary$4,
|
|
25489
|
+
success: success$4,
|
|
25490
|
+
warning: warning$4,
|
|
25491
|
+
danger: danger$4,
|
|
25492
|
+
info: info$4,
|
|
25493
|
+
secondary: secondary$4
|
|
25307
25494
|
};
|
|
25308
25495
|
function SelectInput({
|
|
25309
25496
|
options,
|
|
@@ -25316,7 +25503,7 @@ function SelectInput({
|
|
|
25316
25503
|
loading = false
|
|
25317
25504
|
}) {
|
|
25318
25505
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
25319
|
-
Root2$
|
|
25506
|
+
Root2$2,
|
|
25320
25507
|
{
|
|
25321
25508
|
value,
|
|
25322
25509
|
onValueChange,
|
|
@@ -25326,18 +25513,18 @@ function SelectInput({
|
|
|
25326
25513
|
Trigger$2,
|
|
25327
25514
|
{
|
|
25328
25515
|
className: clsx(
|
|
25329
|
-
styles$
|
|
25330
|
-
styles$
|
|
25516
|
+
styles$5.trigger,
|
|
25517
|
+
styles$5[variant],
|
|
25331
25518
|
chamfer2 && chamferStyles.chamfer,
|
|
25332
|
-
size2 === "large" && styles$
|
|
25333
|
-
size2 === "small" && styles$
|
|
25334
|
-
disabled2 && styles$
|
|
25519
|
+
size2 === "large" && styles$5.large,
|
|
25520
|
+
size2 === "small" && styles$5.small,
|
|
25521
|
+
disabled2 && styles$5.disabled,
|
|
25335
25522
|
disabled2 && hatchStyles.hatch
|
|
25336
25523
|
// loading && styles.disabled
|
|
25337
25524
|
),
|
|
25338
25525
|
children: [
|
|
25339
25526
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Value, {}),
|
|
25340
|
-
loading ? /* @__PURE__ */ jsxRuntimeExports.jsx(Loader, {}) : /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, { className: styles$
|
|
25527
|
+
loading ? /* @__PURE__ */ jsxRuntimeExports.jsx(Loader, {}) : /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, { className: styles$5.icon, children: "▾" })
|
|
25341
25528
|
]
|
|
25342
25529
|
}
|
|
25343
25530
|
),
|
|
@@ -25345,7 +25532,7 @@ function SelectInput({
|
|
|
25345
25532
|
Content2$2,
|
|
25346
25533
|
{
|
|
25347
25534
|
className: classNames(
|
|
25348
|
-
styles$
|
|
25535
|
+
styles$5.content,
|
|
25349
25536
|
chamfer2 && chamferStyles.chamfer
|
|
25350
25537
|
),
|
|
25351
25538
|
sideOffset: 6,
|
|
@@ -25354,7 +25541,7 @@ function SelectInput({
|
|
|
25354
25541
|
{
|
|
25355
25542
|
value: opt.value,
|
|
25356
25543
|
disabled: opt.disabled,
|
|
25357
|
-
className: styles$
|
|
25544
|
+
className: styles$5.item,
|
|
25358
25545
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(ItemText, { children: opt.label })
|
|
25359
25546
|
},
|
|
25360
25547
|
opt.value
|
|
@@ -25365,6 +25552,278 @@ function SelectInput({
|
|
|
25365
25552
|
}
|
|
25366
25553
|
);
|
|
25367
25554
|
}
|
|
25555
|
+
var NAME = "Toggle";
|
|
25556
|
+
var Toggle = React.forwardRef((props, forwardedRef) => {
|
|
25557
|
+
const { pressed: pressedProp, defaultPressed, onPressedChange, ...buttonProps } = props;
|
|
25558
|
+
const [pressed, setPressed] = useControllableState({
|
|
25559
|
+
prop: pressedProp,
|
|
25560
|
+
onChange: onPressedChange,
|
|
25561
|
+
defaultProp: defaultPressed ?? false,
|
|
25562
|
+
caller: NAME
|
|
25563
|
+
});
|
|
25564
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
25565
|
+
Primitive.button,
|
|
25566
|
+
{
|
|
25567
|
+
type: "button",
|
|
25568
|
+
"aria-pressed": pressed,
|
|
25569
|
+
"data-state": pressed ? "on" : "off",
|
|
25570
|
+
"data-disabled": props.disabled ? "" : void 0,
|
|
25571
|
+
...buttonProps,
|
|
25572
|
+
ref: forwardedRef,
|
|
25573
|
+
onClick: composeEventHandlers(props.onClick, () => {
|
|
25574
|
+
if (!props.disabled) {
|
|
25575
|
+
setPressed(!pressed);
|
|
25576
|
+
}
|
|
25577
|
+
})
|
|
25578
|
+
}
|
|
25579
|
+
);
|
|
25580
|
+
});
|
|
25581
|
+
Toggle.displayName = NAME;
|
|
25582
|
+
var TOGGLE_GROUP_NAME = "ToggleGroup";
|
|
25583
|
+
var [createToggleGroupContext] = createContextScope(TOGGLE_GROUP_NAME, [
|
|
25584
|
+
createRovingFocusGroupScope
|
|
25585
|
+
]);
|
|
25586
|
+
var useRovingFocusGroupScope$1 = createRovingFocusGroupScope();
|
|
25587
|
+
var ToggleGroup = React__default.forwardRef((props, forwardedRef) => {
|
|
25588
|
+
const { type, ...toggleGroupProps } = props;
|
|
25589
|
+
if (type === "single") {
|
|
25590
|
+
const singleProps = toggleGroupProps;
|
|
25591
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(ToggleGroupImplSingle, { ...singleProps, ref: forwardedRef });
|
|
25592
|
+
}
|
|
25593
|
+
if (type === "multiple") {
|
|
25594
|
+
const multipleProps = toggleGroupProps;
|
|
25595
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(ToggleGroupImplMultiple, { ...multipleProps, ref: forwardedRef });
|
|
25596
|
+
}
|
|
25597
|
+
throw new Error(`Missing prop \`type\` expected on \`${TOGGLE_GROUP_NAME}\``);
|
|
25598
|
+
});
|
|
25599
|
+
ToggleGroup.displayName = TOGGLE_GROUP_NAME;
|
|
25600
|
+
var [ToggleGroupValueProvider, useToggleGroupValueContext] = createToggleGroupContext(TOGGLE_GROUP_NAME);
|
|
25601
|
+
var ToggleGroupImplSingle = React__default.forwardRef((props, forwardedRef) => {
|
|
25602
|
+
const {
|
|
25603
|
+
value: valueProp,
|
|
25604
|
+
defaultValue,
|
|
25605
|
+
onValueChange = () => {
|
|
25606
|
+
},
|
|
25607
|
+
...toggleGroupSingleProps
|
|
25608
|
+
} = props;
|
|
25609
|
+
const [value, setValue] = useControllableState({
|
|
25610
|
+
prop: valueProp,
|
|
25611
|
+
defaultProp: defaultValue ?? "",
|
|
25612
|
+
onChange: onValueChange,
|
|
25613
|
+
caller: TOGGLE_GROUP_NAME
|
|
25614
|
+
});
|
|
25615
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
25616
|
+
ToggleGroupValueProvider,
|
|
25617
|
+
{
|
|
25618
|
+
scope: props.__scopeToggleGroup,
|
|
25619
|
+
type: "single",
|
|
25620
|
+
value: React__default.useMemo(() => value ? [value] : [], [value]),
|
|
25621
|
+
onItemActivate: setValue,
|
|
25622
|
+
onItemDeactivate: React__default.useCallback(() => setValue(""), [setValue]),
|
|
25623
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(ToggleGroupImpl, { ...toggleGroupSingleProps, ref: forwardedRef })
|
|
25624
|
+
}
|
|
25625
|
+
);
|
|
25626
|
+
});
|
|
25627
|
+
var ToggleGroupImplMultiple = React__default.forwardRef((props, forwardedRef) => {
|
|
25628
|
+
const {
|
|
25629
|
+
value: valueProp,
|
|
25630
|
+
defaultValue,
|
|
25631
|
+
onValueChange = () => {
|
|
25632
|
+
},
|
|
25633
|
+
...toggleGroupMultipleProps
|
|
25634
|
+
} = props;
|
|
25635
|
+
const [value, setValue] = useControllableState({
|
|
25636
|
+
prop: valueProp,
|
|
25637
|
+
defaultProp: defaultValue ?? [],
|
|
25638
|
+
onChange: onValueChange,
|
|
25639
|
+
caller: TOGGLE_GROUP_NAME
|
|
25640
|
+
});
|
|
25641
|
+
const handleButtonActivate = React__default.useCallback(
|
|
25642
|
+
(itemValue) => setValue((prevValue = []) => [...prevValue, itemValue]),
|
|
25643
|
+
[setValue]
|
|
25644
|
+
);
|
|
25645
|
+
const handleButtonDeactivate = React__default.useCallback(
|
|
25646
|
+
(itemValue) => setValue((prevValue = []) => prevValue.filter((value2) => value2 !== itemValue)),
|
|
25647
|
+
[setValue]
|
|
25648
|
+
);
|
|
25649
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
25650
|
+
ToggleGroupValueProvider,
|
|
25651
|
+
{
|
|
25652
|
+
scope: props.__scopeToggleGroup,
|
|
25653
|
+
type: "multiple",
|
|
25654
|
+
value,
|
|
25655
|
+
onItemActivate: handleButtonActivate,
|
|
25656
|
+
onItemDeactivate: handleButtonDeactivate,
|
|
25657
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(ToggleGroupImpl, { ...toggleGroupMultipleProps, ref: forwardedRef })
|
|
25658
|
+
}
|
|
25659
|
+
);
|
|
25660
|
+
});
|
|
25661
|
+
ToggleGroup.displayName = TOGGLE_GROUP_NAME;
|
|
25662
|
+
var [ToggleGroupContext, useToggleGroupContext] = createToggleGroupContext(TOGGLE_GROUP_NAME);
|
|
25663
|
+
var ToggleGroupImpl = React__default.forwardRef(
|
|
25664
|
+
(props, forwardedRef) => {
|
|
25665
|
+
const {
|
|
25666
|
+
__scopeToggleGroup,
|
|
25667
|
+
disabled: disabled2 = false,
|
|
25668
|
+
rovingFocus = true,
|
|
25669
|
+
orientation,
|
|
25670
|
+
dir,
|
|
25671
|
+
loop = true,
|
|
25672
|
+
...toggleGroupProps
|
|
25673
|
+
} = props;
|
|
25674
|
+
const rovingFocusGroupScope = useRovingFocusGroupScope$1(__scopeToggleGroup);
|
|
25675
|
+
const direction = useDirection(dir);
|
|
25676
|
+
const commonProps = { role: "group", dir: direction, ...toggleGroupProps };
|
|
25677
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(ToggleGroupContext, { scope: __scopeToggleGroup, rovingFocus, disabled: disabled2, children: rovingFocus ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
25678
|
+
Root$2,
|
|
25679
|
+
{
|
|
25680
|
+
asChild: true,
|
|
25681
|
+
...rovingFocusGroupScope,
|
|
25682
|
+
orientation,
|
|
25683
|
+
dir: direction,
|
|
25684
|
+
loop,
|
|
25685
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Primitive.div, { ...commonProps, ref: forwardedRef })
|
|
25686
|
+
}
|
|
25687
|
+
) : /* @__PURE__ */ jsxRuntimeExports.jsx(Primitive.div, { ...commonProps, ref: forwardedRef }) });
|
|
25688
|
+
}
|
|
25689
|
+
);
|
|
25690
|
+
var ITEM_NAME$2 = "ToggleGroupItem";
|
|
25691
|
+
var ToggleGroupItem = React__default.forwardRef(
|
|
25692
|
+
(props, forwardedRef) => {
|
|
25693
|
+
const valueContext = useToggleGroupValueContext(ITEM_NAME$2, props.__scopeToggleGroup);
|
|
25694
|
+
const context = useToggleGroupContext(ITEM_NAME$2, props.__scopeToggleGroup);
|
|
25695
|
+
const rovingFocusGroupScope = useRovingFocusGroupScope$1(props.__scopeToggleGroup);
|
|
25696
|
+
const pressed = valueContext.value.includes(props.value);
|
|
25697
|
+
const disabled2 = context.disabled || props.disabled;
|
|
25698
|
+
const commonProps = { ...props, pressed, disabled: disabled2 };
|
|
25699
|
+
const ref = React__default.useRef(null);
|
|
25700
|
+
return context.rovingFocus ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
25701
|
+
Item$1,
|
|
25702
|
+
{
|
|
25703
|
+
asChild: true,
|
|
25704
|
+
...rovingFocusGroupScope,
|
|
25705
|
+
focusable: !disabled2,
|
|
25706
|
+
active: pressed,
|
|
25707
|
+
ref,
|
|
25708
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(ToggleGroupItemImpl, { ...commonProps, ref: forwardedRef })
|
|
25709
|
+
}
|
|
25710
|
+
) : /* @__PURE__ */ jsxRuntimeExports.jsx(ToggleGroupItemImpl, { ...commonProps, ref: forwardedRef });
|
|
25711
|
+
}
|
|
25712
|
+
);
|
|
25713
|
+
ToggleGroupItem.displayName = ITEM_NAME$2;
|
|
25714
|
+
var ToggleGroupItemImpl = React__default.forwardRef(
|
|
25715
|
+
(props, forwardedRef) => {
|
|
25716
|
+
const { __scopeToggleGroup, value, ...itemProps } = props;
|
|
25717
|
+
const valueContext = useToggleGroupValueContext(ITEM_NAME$2, __scopeToggleGroup);
|
|
25718
|
+
const singleProps = { role: "radio", "aria-checked": props.pressed, "aria-pressed": void 0 };
|
|
25719
|
+
const typeProps = valueContext.type === "single" ? singleProps : void 0;
|
|
25720
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
25721
|
+
Toggle,
|
|
25722
|
+
{
|
|
25723
|
+
...typeProps,
|
|
25724
|
+
...itemProps,
|
|
25725
|
+
ref: forwardedRef,
|
|
25726
|
+
onPressedChange: (pressed) => {
|
|
25727
|
+
if (pressed) {
|
|
25728
|
+
valueContext.onItemActivate(value);
|
|
25729
|
+
} else {
|
|
25730
|
+
valueContext.onItemDeactivate(value);
|
|
25731
|
+
}
|
|
25732
|
+
}
|
|
25733
|
+
}
|
|
25734
|
+
);
|
|
25735
|
+
}
|
|
25736
|
+
);
|
|
25737
|
+
var Root2$1 = ToggleGroup;
|
|
25738
|
+
var Item2$2 = ToggleGroupItem;
|
|
25739
|
+
const root = "_root_1dix2_31";
|
|
25740
|
+
const item$1 = "_item_1dix2_46";
|
|
25741
|
+
const chamferEnabled = "_chamferEnabled_1dix2_86";
|
|
25742
|
+
const large$1 = "_large_1dix2_126";
|
|
25743
|
+
const small$1 = "_small_1dix2_131";
|
|
25744
|
+
const disabled$1 = "_disabled_1dix2_136";
|
|
25745
|
+
const itemDisabled = "_itemDisabled_1dix2_141";
|
|
25746
|
+
const primary$3 = "_primary_1dix2_147";
|
|
25747
|
+
const secondary$3 = "_secondary_1dix2_157";
|
|
25748
|
+
const success$3 = "_success_1dix2_167";
|
|
25749
|
+
const warning$3 = "_warning_1dix2_177";
|
|
25750
|
+
const danger$3 = "_danger_1dix2_187";
|
|
25751
|
+
const info$3 = "_info_1dix2_197";
|
|
25752
|
+
const styles$4 = {
|
|
25753
|
+
root,
|
|
25754
|
+
item: item$1,
|
|
25755
|
+
chamferEnabled,
|
|
25756
|
+
large: large$1,
|
|
25757
|
+
small: small$1,
|
|
25758
|
+
disabled: disabled$1,
|
|
25759
|
+
itemDisabled,
|
|
25760
|
+
primary: primary$3,
|
|
25761
|
+
secondary: secondary$3,
|
|
25762
|
+
success: success$3,
|
|
25763
|
+
warning: warning$3,
|
|
25764
|
+
danger: danger$3,
|
|
25765
|
+
info: info$3
|
|
25766
|
+
};
|
|
25767
|
+
function SegmentedControl({
|
|
25768
|
+
options = [],
|
|
25769
|
+
value,
|
|
25770
|
+
defaultValue,
|
|
25771
|
+
onValueChange,
|
|
25772
|
+
allowEmpty = false,
|
|
25773
|
+
variant,
|
|
25774
|
+
size: size2,
|
|
25775
|
+
disabled: disabled2,
|
|
25776
|
+
chamfer: chamfer2 = true,
|
|
25777
|
+
className,
|
|
25778
|
+
itemClassName,
|
|
25779
|
+
...props
|
|
25780
|
+
}) {
|
|
25781
|
+
const isControlled = value !== void 0;
|
|
25782
|
+
const [internalValue, setInternalValue] = useState(defaultValue ?? "");
|
|
25783
|
+
const selectedValue = isControlled ? value : internalValue;
|
|
25784
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
25785
|
+
Root2$1,
|
|
25786
|
+
{
|
|
25787
|
+
type: "single",
|
|
25788
|
+
value: selectedValue,
|
|
25789
|
+
onValueChange: (nextValue) => {
|
|
25790
|
+
if (!allowEmpty && !nextValue) {
|
|
25791
|
+
return;
|
|
25792
|
+
}
|
|
25793
|
+
if (!isControlled) {
|
|
25794
|
+
setInternalValue(nextValue);
|
|
25795
|
+
}
|
|
25796
|
+
onValueChange?.(nextValue);
|
|
25797
|
+
},
|
|
25798
|
+
disabled: disabled2,
|
|
25799
|
+
className: clsx(
|
|
25800
|
+
styles$4.root,
|
|
25801
|
+
styles$4[variant],
|
|
25802
|
+
chamfer2 && styles$4.chamferEnabled,
|
|
25803
|
+
size2 === "large" && styles$4.large,
|
|
25804
|
+
size2 === "small" && styles$4.small,
|
|
25805
|
+
disabled2 && hatchStyles.hatch,
|
|
25806
|
+
disabled2 && styles$4.disabled,
|
|
25807
|
+
className
|
|
25808
|
+
),
|
|
25809
|
+
...props,
|
|
25810
|
+
children: options.map((option) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
25811
|
+
Item2$2,
|
|
25812
|
+
{
|
|
25813
|
+
value: option.value,
|
|
25814
|
+
disabled: disabled2 || option.disabled,
|
|
25815
|
+
className: clsx(
|
|
25816
|
+
styles$4.item,
|
|
25817
|
+
(disabled2 || option.disabled) && styles$4.itemDisabled,
|
|
25818
|
+
itemClassName
|
|
25819
|
+
),
|
|
25820
|
+
children: option.label
|
|
25821
|
+
},
|
|
25822
|
+
option.value
|
|
25823
|
+
))
|
|
25824
|
+
}
|
|
25825
|
+
);
|
|
25826
|
+
}
|
|
25368
25827
|
var SELECTION_KEYS = ["Enter", " "];
|
|
25369
25828
|
var FIRST_KEYS = ["ArrowDown", "PageUp", "Home"];
|
|
25370
25829
|
var LAST_KEYS = ["ArrowUp", "PageDown", "End"];
|
|
@@ -25409,7 +25868,7 @@ var Menu = (props) => {
|
|
|
25409
25868
|
document.removeEventListener("pointermove", handlePointer, { capture: true });
|
|
25410
25869
|
};
|
|
25411
25870
|
}, []);
|
|
25412
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Root2$
|
|
25871
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Root2$3, { ...popperScope, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
25413
25872
|
MenuProvider,
|
|
25414
25873
|
{
|
|
25415
25874
|
scope: __scopeMenu,
|
|
@@ -27766,6 +28225,7 @@ export {
|
|
|
27766
28225
|
RadarChart,
|
|
27767
28226
|
Radio,
|
|
27768
28227
|
RadioGroup$1 as RadioGroup,
|
|
28228
|
+
SegmentedControl,
|
|
27769
28229
|
SelectInput as Select,
|
|
27770
28230
|
toast,
|
|
27771
28231
|
useJCUITheme,
|