@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/jcui.cjs.js CHANGED
@@ -113,7 +113,8 @@
113
113
  ._secondary_105y0_116:active {
114
114
  --button-bg: var(--secondary-color-300);
115
115
  }
116
- ._chamfer_1o5rm_1 {
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
- ._chamfer_1o5rm_1:not(._disabled_1o5rm_15):hover {
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
- ._chamfer_1o5rm_1:active,
131
- div._chamfer_1o5rm_1:focus-within {
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
- ._chamfer_1o5rm_1:not(._disabled_1o5rm_15):active,
135
- div._chamfer_1o5rm_1:not(._disabled_1o5rm_15):focus-within {
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
- ._chamfer_1o5rm_1::before {
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
- ._chamferOnHover_1o5rm_60 {
172
+ ._chamferOnHover_1unae_67 {
166
173
  border: none;
167
174
  }
168
- ._chamferOnHover_1o5rm_60::before {
175
+ ._chamferOnHover_1unae_67::before {
169
176
  opacity: 0;
170
177
  }
171
178
  /* Enable effects only on hover / focus / active */
172
- ._chamferOnHover_1o5rm_60:hover,
173
- ._chamferOnHover_1o5rm_60:focus-within,
174
- ._chamferOnHover_1o5rm_60:active {
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
- ._chamferOnHover_1o5rm_60:hover::before,
178
- ._chamferOnHover_1o5rm_60:focus-within::before,
179
- ._chamferOnHover_1o5rm_60:active::before {
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
- ._hatch_owfoz_1 {
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;
@@ -2242,37 +2429,37 @@ function clsx() {
2242
2429
  }
2243
2430
  const button = "_button_105y0_7";
2244
2431
  const pageBackground$4 = "_pageBackground_105y0_24";
2245
- const large$7 = "_large_105y0_34";
2246
- const small$7 = "_small_105y0_39";
2247
- const disabled$7 = "_disabled_105y0_44";
2248
- const primary$9 = "_primary_105y0_51";
2249
- const success$9 = "_success_105y0_64";
2250
- const warning$9 = "_warning_105y0_77";
2251
- const danger$9 = "_danger_105y0_90";
2252
- const info$9 = "_info_105y0_103";
2253
- const secondary$9 = "_secondary_105y0_116";
2254
- const styles$c = {
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 = {
2255
2442
  button,
2256
2443
  pageBackground: pageBackground$4,
2257
- large: large$7,
2258
- small: small$7,
2259
- disabled: disabled$7,
2260
- primary: primary$9,
2261
- success: success$9,
2262
- warning: warning$9,
2263
- danger: danger$9,
2264
- info: info$9,
2265
- secondary: secondary$9
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
2266
2453
  };
2267
- const chamfer$1 = "_chamfer_1o5rm_1";
2268
- const disabled$6 = "_disabled_1o5rm_15";
2269
- const chamferOnHover = "_chamferOnHover_1o5rm_60";
2454
+ const chamfer$1 = "_chamfer_1unae_1";
2455
+ const disabled$7 = "_disabled_1unae_16";
2456
+ const chamferOnHover = "_chamferOnHover_1unae_67";
2270
2457
  const chamferStyles = {
2271
2458
  chamfer: chamfer$1,
2272
- disabled: disabled$6,
2459
+ disabled: disabled$7,
2273
2460
  chamferOnHover
2274
2461
  };
2275
- const hatch$1 = "_hatch_owfoz_1";
2462
+ const hatch$1 = "_hatch_rrcdt_1";
2276
2463
  const hatchStyles = {
2277
2464
  hatch: hatch$1
2278
2465
  };
@@ -2284,10 +2471,10 @@ const ThemeContext = React.createContext({
2284
2471
  });
2285
2472
  const useJCUITheme = () => React.useContext(ThemeContext);
2286
2473
  const loader = "_loader_1y0fe_1";
2287
- const styles$b = {
2474
+ const styles$c = {
2288
2475
  loader
2289
2476
  };
2290
- const Loader = (props) => /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$b.loader, ...props });
2477
+ const Loader = (props) => /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$c.loader, ...props });
2291
2478
  function Button({
2292
2479
  children: children2,
2293
2480
  variant,
@@ -2301,15 +2488,15 @@ function Button({
2301
2488
  "button",
2302
2489
  {
2303
2490
  className: clsx(
2304
- styles$c.button,
2305
- !variant && styles$c.pageBackground,
2306
- styles$c[variant],
2491
+ styles$d.button,
2492
+ !variant && styles$d.pageBackground,
2493
+ styles$d[variant],
2307
2494
  chamfer2 && chamferStyles.chamfer,
2308
- size2 === "large" && styles$c.large,
2309
- size2 === "small" && styles$c.small,
2495
+ size2 === "large" && styles$d.large,
2496
+ size2 === "small" && styles$d.small,
2310
2497
  disabled2 && chamferStyles.disabled,
2311
2498
  disabled2 && hatchStyles.hatch,
2312
- disabled2 && styles$c.disabled
2499
+ disabled2 && styles$d.disabled
2313
2500
  ),
2314
2501
  disabled: disabled2,
2315
2502
  ...props,
@@ -2422,28 +2609,28 @@ const pageBackground$3 = "_pageBackground_et6fi_11";
2422
2609
  const title$1 = "_title_et6fi_18";
2423
2610
  const body$1 = "_body_et6fi_25";
2424
2611
  const footer$1 = "_footer_et6fi_30";
2425
- const large$6 = "_large_et6fi_37";
2426
- const small$6 = "_small_et6fi_43";
2427
- const primary$8 = "_primary_et6fi_51";
2428
- const success$8 = "_success_et6fi_58";
2429
- const warning$8 = "_warning_et6fi_65";
2430
- const danger$8 = "_danger_et6fi_72";
2431
- const info$8 = "_info_et6fi_79";
2432
- const secondary$8 = "_secondary_et6fi_86";
2433
- const styles$a = {
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 = {
2434
2621
  card,
2435
2622
  pageBackground: pageBackground$3,
2436
2623
  title: title$1,
2437
2624
  body: body$1,
2438
2625
  footer: footer$1,
2439
- large: large$6,
2440
- small: small$6,
2441
- primary: primary$8,
2442
- success: success$8,
2443
- warning: warning$8,
2444
- danger: danger$8,
2445
- info: info$8,
2446
- secondary: secondary$8
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
2447
2634
  };
2448
2635
  function Card({
2449
2636
  children: children2,
@@ -2460,21 +2647,21 @@ function Card({
2460
2647
  "div",
2461
2648
  {
2462
2649
  className: classNames(
2463
- styles$a.card,
2464
- !variant && styles$a.pageBackground,
2465
- styles$a[variant],
2650
+ styles$b.card,
2651
+ !variant && styles$b.pageBackground,
2652
+ styles$b[variant],
2466
2653
  chamfer2 && chamferStyles.chamfer,
2467
- size2 === "large" && styles$a.large,
2468
- size2 === "small" && styles$a.small
2654
+ size2 === "large" && styles$b.large,
2655
+ size2 === "small" && styles$b.small
2469
2656
  ),
2470
2657
  ...props,
2471
2658
  children: [
2472
- title2 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: classNames(styles$a.title, hatchStyles.hatch), children: title2 }),
2473
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$a.body, children: children2 }),
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 }),
2474
2661
  footerHeight > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(
2475
2662
  "div",
2476
2663
  {
2477
- className: classNames(hatchStyles.hatch, styles$a.footer),
2664
+ className: classNames(hatchStyles.hatch, styles$b.footer),
2478
2665
  style: { flexBasis: footerHeight },
2479
2666
  children: footer2
2480
2667
  }
@@ -3205,34 +3392,34 @@ function getState$2(checked) {
3205
3392
  return isIndeterminate$1(checked) ? "indeterminate" : checked ? "checked" : "unchecked";
3206
3393
  }
3207
3394
  const wrapper$1 = "_wrapper_178xv_25";
3208
- const disabled$5 = "_disabled_178xv_34";
3209
- const root$3 = "_root_178xv_39";
3395
+ const disabled$6 = "_disabled_178xv_34";
3396
+ const root$4 = "_root_178xv_39";
3210
3397
  const indicator$1 = "_indicator_178xv_76";
3211
- const large$5 = "_large_178xv_94";
3212
- const small$5 = "_small_178xv_99";
3398
+ const large$6 = "_large_178xv_94";
3399
+ const small$6 = "_small_178xv_99";
3213
3400
  const disabledBox = "_disabledBox_178xv_104";
3214
3401
  const label$3 = "_label_178xv_109";
3215
- const primary$7 = "_primary_178xv_117";
3216
- const secondary$7 = "_secondary_178xv_126";
3217
- const success$7 = "_success_178xv_135";
3218
- const warning$7 = "_warning_178xv_144";
3219
- const danger$7 = "_danger_178xv_153";
3220
- const info$7 = "_info_178xv_162";
3221
- const styles$9 = {
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 = {
3222
3409
  wrapper: wrapper$1,
3223
- disabled: disabled$5,
3224
- root: root$3,
3410
+ disabled: disabled$6,
3411
+ root: root$4,
3225
3412
  indicator: indicator$1,
3226
- large: large$5,
3227
- small: small$5,
3413
+ large: large$6,
3414
+ small: small$6,
3228
3415
  disabledBox,
3229
3416
  label: label$3,
3230
- primary: primary$7,
3231
- secondary: secondary$7,
3232
- success: success$7,
3233
- warning: warning$7,
3234
- danger: danger$7,
3235
- info: info$7
3417
+ primary: primary$8,
3418
+ secondary: secondary$8,
3419
+ success: success$8,
3420
+ warning: warning$8,
3421
+ danger: danger$8,
3422
+ info: info$8
3236
3423
  };
3237
3424
  const CheckIcon = () => /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { viewBox: "0 0 24 24", fill: "none", role: "presentation", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
3238
3425
  "polyline",
@@ -3255,32 +3442,32 @@ function Checkbox({
3255
3442
  ...props
3256
3443
  }) {
3257
3444
  const labelContent = label2 ?? children2;
3258
- const variantClass = variant && styles$9[variant];
3259
- const sizeClass = size2 === "large" ? styles$9.large : size2 === "small" ? styles$9.small : null;
3445
+ const variantClass = variant && styles$a[variant];
3446
+ const sizeClass = size2 === "large" ? styles$a.large : size2 === "small" ? styles$a.small : null;
3260
3447
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
3261
3448
  "label",
3262
3449
  {
3263
- className: clsx(styles$9.wrapper, variantClass, disabled2 && styles$9.disabled),
3450
+ className: clsx(styles$a.wrapper, variantClass, disabled2 && styles$a.disabled),
3264
3451
  children: [
3265
3452
  /* @__PURE__ */ jsxRuntimeExports.jsx(
3266
3453
  Checkbox$1,
3267
3454
  {
3268
3455
  className: clsx(
3269
- styles$9.root,
3456
+ styles$a.root,
3270
3457
  variantClass,
3271
3458
  sizeClass,
3272
3459
  chamfer2 && chamferStyles.chamfer,
3273
3460
  disabled2 && chamferStyles.disabled,
3274
3461
  disabled2 && hatchStyles.hatch,
3275
- disabled2 && styles$9.disabledBox,
3462
+ disabled2 && styles$a.disabledBox,
3276
3463
  className
3277
3464
  ),
3278
3465
  disabled: disabled2,
3279
3466
  ...props,
3280
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(CheckboxIndicator, { className: styles$9.indicator, children: /* @__PURE__ */ jsxRuntimeExports.jsx(CheckIcon, {}) })
3467
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(CheckboxIndicator, { className: styles$a.indicator, children: /* @__PURE__ */ jsxRuntimeExports.jsx(CheckIcon, {}) })
3281
3468
  }
3282
3469
  ),
3283
- labelContent && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$9.label, children: labelContent })
3470
+ labelContent && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$a.label, children: labelContent })
3284
3471
  ]
3285
3472
  }
3286
3473
  );
@@ -4730,13 +4917,13 @@ function* selection_iterator() {
4730
4917
  }
4731
4918
  }
4732
4919
  }
4733
- var root$2 = [null];
4920
+ var root$3 = [null];
4734
4921
  function Selection$1(groups, parents) {
4735
4922
  this._groups = groups;
4736
4923
  this._parents = parents;
4737
4924
  }
4738
4925
  function selection() {
4739
- return new Selection$1([[document.documentElement]], root$2);
4926
+ return new Selection$1([[document.documentElement]], root$3);
4740
4927
  }
4741
4928
  function selection_selection() {
4742
4929
  return this;
@@ -4780,7 +4967,7 @@ Selection$1.prototype = selection.prototype = {
4780
4967
  [Symbol.iterator]: selection_iterator
4781
4968
  };
4782
4969
  function select(selector2) {
4783
- return typeof selector2 === "string" ? new Selection$1([[document.querySelector(selector2)]], [document.documentElement]) : new Selection$1([[selector2]], root$2);
4970
+ return typeof selector2 === "string" ? new Selection$1([[document.querySelector(selector2)]], [document.documentElement]) : new Selection$1([[selector2]], root$3);
4784
4971
  }
4785
4972
  function sourceEvent(event) {
4786
4973
  let sourceEvent2;
@@ -14130,7 +14317,7 @@ let nextClipId = 0;
14130
14317
  function getClipId() {
14131
14318
  return `plot-clip-${++nextClipId}`;
14132
14319
  }
14133
- function styles$8(mark, {
14320
+ function styles$9(mark, {
14134
14321
  title: title2,
14135
14322
  href,
14136
14323
  ariaLabel: variaLabel,
@@ -14496,7 +14683,7 @@ class Mark {
14496
14683
  this.facetAnchor = maybeFacetAnchor(facetAnchor);
14497
14684
  channels = maybeNamed(channels);
14498
14685
  if (extraChannels !== void 0) channels = { ...maybeChannels(extraChannels), ...channels };
14499
- if (defaults2 !== void 0) channels = { ...styles$8(this, options, defaults2), ...channels };
14686
+ if (defaults2 !== void 0) channels = { ...styles$9(this, options, defaults2), ...channels };
14500
14687
  this.channels = Object.fromEntries(
14501
14688
  Object.entries(channels).map(([name, channel]) => {
14502
14689
  if (isOptions(channel.value)) {
@@ -19524,29 +19711,29 @@ const RadarChart = ({
19524
19711
  };
19525
19712
  const input$1 = "_input_1ymvl_7";
19526
19713
  const pageBackground$2 = "_pageBackground_1ymvl_24";
19527
- const large$4 = "_large_1ymvl_38";
19528
- const small$4 = "_small_1ymvl_43";
19529
- const disabled$4 = "_disabled_1ymvl_48";
19530
- const primary$6 = "_primary_1ymvl_55";
19531
- const success$6 = "_success_1ymvl_64";
19532
- const warning$6 = "_warning_1ymvl_72";
19533
- const danger$6 = "_danger_1ymvl_80";
19534
- const info$6 = "_info_1ymvl_88";
19535
- const secondary$6 = "_secondary_1ymvl_97";
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";
19536
19723
  const field = "_field_1ymvl_106";
19537
19724
  const label$2 = "_label_1ymvl_112";
19538
- const styles$7 = {
19725
+ const styles$8 = {
19539
19726
  input: input$1,
19540
19727
  pageBackground: pageBackground$2,
19541
- large: large$4,
19542
- small: small$4,
19543
- disabled: disabled$4,
19544
- primary: primary$6,
19545
- success: success$6,
19546
- warning: warning$6,
19547
- danger: danger$6,
19548
- info: info$6,
19549
- secondary: secondary$6,
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,
19550
19737
  field,
19551
19738
  label: label$2
19552
19739
  };
@@ -19559,28 +19746,28 @@ function Input({
19559
19746
  ...props
19560
19747
  }) {
19561
19748
  const inputId = React.useId();
19562
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$7.field, children: [
19563
- label2 && /* @__PURE__ */ jsxRuntimeExports.jsx("label", { className: styles$7.label, htmlFor: inputId, children: label2 }),
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 }),
19564
19751
  /* @__PURE__ */ jsxRuntimeExports.jsx(
19565
19752
  "div",
19566
19753
  {
19567
19754
  className: classNames(
19568
19755
  chamfer2 && chamferStyles.chamfer,
19569
- !variant && styles$7.pageBackground,
19570
- styles$7[variant]
19756
+ !variant && styles$8.pageBackground,
19757
+ styles$8[variant]
19571
19758
  ),
19572
19759
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(
19573
19760
  "input",
19574
19761
  {
19575
19762
  id: inputId,
19576
19763
  className: classNames(
19577
- styles$7.input,
19578
- !variant && styles$7.pageBackground,
19579
- styles$7[variant],
19580
- size2 === "large" && styles$7.large,
19581
- size2 === "small" && styles$7.small,
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,
19582
19769
  disabled2 && chamferStyles.disabled,
19583
- disabled2 && styles$7.disabled,
19770
+ disabled2 && styles$8.disabled,
19584
19771
  disabled2 && hatchStyles.hatch
19585
19772
  ),
19586
19773
  disabled: disabled2,
@@ -19595,7 +19782,7 @@ function Input({
19595
19782
  )
19596
19783
  ] });
19597
19784
  }
19598
- const root$1 = "_root_i158m_7";
19785
+ const root$2 = "_root_i158m_7";
19599
19786
  const label$1 = "_label_i158m_14";
19600
19787
  const dropzone = "_dropzone_i158m_18";
19601
19788
  const pageBackground$1 = "_pageBackground_i158m_42";
@@ -19619,19 +19806,19 @@ const customFile = "_customFile_i158m_182";
19619
19806
  const removeButton = "_removeButton_i158m_195";
19620
19807
  const trashIcon = "_trashIcon_i158m_222";
19621
19808
  const trashLid = "_trashLid_i158m_227";
19622
- const large$3 = "_large_i158m_249";
19623
- const small$3 = "_small_i158m_258";
19809
+ const large$4 = "_large_i158m_249";
19810
+ const small$4 = "_small_i158m_258";
19624
19811
  const hasFiles = "_hasFiles_i158m_271";
19625
19812
  const dragging = "_dragging_i158m_275";
19626
- const disabled$3 = "_disabled_i158m_280";
19627
- const primary$5 = "_primary_i158m_285";
19628
- const success$5 = "_success_i158m_297";
19629
- const warning$5 = "_warning_i158m_309";
19630
- const danger$5 = "_danger_i158m_321";
19631
- const info$5 = "_info_i158m_333";
19632
- const secondary$5 = "_secondary_i158m_345";
19633
- const styles$6 = {
19634
- root: root$1,
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,
19635
19822
  label: label$1,
19636
19823
  dropzone,
19637
19824
  pageBackground: pageBackground$1,
@@ -19655,17 +19842,17 @@ const styles$6 = {
19655
19842
  removeButton,
19656
19843
  trashIcon,
19657
19844
  trashLid,
19658
- large: large$3,
19659
- small: small$3,
19845
+ large: large$4,
19846
+ small: small$4,
19660
19847
  hasFiles,
19661
19848
  dragging,
19662
- disabled: disabled$3,
19663
- primary: primary$5,
19664
- success: success$5,
19665
- warning: warning$5,
19666
- danger: danger$5,
19667
- info: info$5,
19668
- secondary: secondary$5
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
19669
19856
  };
19670
19857
  const normalizeFiles = (value, multiple = false) => {
19671
19858
  if (!value) {
@@ -19768,9 +19955,9 @@ const TrashIcon = () => /* @__PURE__ */ jsxRuntimeExports.jsxs(
19768
19955
  fill: "none",
19769
19956
  role: "presentation",
19770
19957
  "aria-hidden": true,
19771
- className: styles$6.trashIcon,
19958
+ className: styles$7.trashIcon,
19772
19959
  children: [
19773
- /* @__PURE__ */ jsxRuntimeExports.jsxs("g", { className: styles$6.trashLid, children: [
19960
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("g", { className: styles$7.trashLid, children: [
19774
19961
  /* @__PURE__ */ jsxRuntimeExports.jsx(
19775
19962
  "path",
19776
19963
  {
@@ -20009,23 +20196,23 @@ const FileUpload = React.forwardRef(function FileUpload2({
20009
20196
  const selectedSummary = selectedFiles.length > 0 ? `${selectedFiles.length} file${selectedFiles.length === 1 ? "" : "s"} selected` : placeholder;
20010
20197
  const dropzoneIcon2 = icon2 ?? /* @__PURE__ */ jsxRuntimeExports.jsx(UploadIcon, {});
20011
20198
  const fileFallbackIcon = icon2 ?? /* @__PURE__ */ jsxRuntimeExports.jsx(FileIcon, {});
20012
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$6.root, className), children: [
20013
- label2 && /* @__PURE__ */ jsxRuntimeExports.jsx("label", { className: styles$6.label, htmlFor: inputId, children: label2 }),
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 }),
20014
20201
  /* @__PURE__ */ jsxRuntimeExports.jsxs(
20015
20202
  "div",
20016
20203
  {
20017
20204
  className: clsx(
20018
- styles$6.dropzone,
20019
- !variant && styles$6.pageBackground,
20020
- variant && styles$6[variant],
20205
+ styles$7.dropzone,
20206
+ !variant && styles$7.pageBackground,
20207
+ variant && styles$7[variant],
20021
20208
  chamfer2 && chamferStyles.chamfer,
20022
- size2 === "large" && styles$6.large,
20023
- size2 === "small" && styles$6.small,
20024
- disabled2 && styles$6.disabled,
20209
+ size2 === "large" && styles$7.large,
20210
+ size2 === "small" && styles$7.small,
20211
+ disabled2 && styles$7.disabled,
20025
20212
  disabled2 && chamferStyles.disabled,
20026
20213
  disabled2 && hatchStyles.hatch,
20027
- isDragging && styles$6.dragging,
20028
- selectedFiles.length > 0 && styles$6.hasFiles,
20214
+ isDragging && styles$7.dragging,
20215
+ selectedFiles.length > 0 && styles$7.hasFiles,
20029
20216
  dropzoneClassName
20030
20217
  ),
20031
20218
  onClick: handleDropzoneClick,
@@ -20043,34 +20230,34 @@ const FileUpload = React.forwardRef(function FileUpload2({
20043
20230
  {
20044
20231
  ref: setInputNode,
20045
20232
  id: inputId,
20046
- className: styles$6.input,
20233
+ className: styles$7.input,
20047
20234
  type: "file",
20048
20235
  disabled: disabled2,
20049
20236
  ...inputProps,
20050
20237
  onChange: handleInputChange
20051
20238
  }
20052
20239
  ),
20053
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$6.dropzoneContent, children: [
20054
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$6.dropzoneIcon, "aria-hidden": true, children: dropzoneIcon2 }),
20055
- /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: styles$6.dropzoneText, children: [
20056
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$6.dropzoneTitle, children: selectedSummary }),
20057
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$6.dropzoneHint, children: hintText })
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 })
20058
20245
  ] })
20059
20246
  ] }),
20060
20247
  children2
20061
20248
  ]
20062
20249
  }
20063
20250
  ),
20064
- helperText2 && /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: styles$6.helperText, children: helperText2 }),
20065
- showFileList && selectedFiles.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$6.fileList, children: previewItems.map((item2, index2) => {
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) => {
20066
20253
  if (renderFile) {
20067
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$6.customFileRow, children: [
20068
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$6.customFile, children: renderFile(item2.file, index2) }),
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) }),
20069
20256
  removable && /* @__PURE__ */ jsxRuntimeExports.jsx(
20070
20257
  "button",
20071
20258
  {
20072
20259
  type: "button",
20073
- className: styles$6.removeButton,
20260
+ className: styles$7.removeButton,
20074
20261
  onClick: (event) => handleRemoveFile(index2, event),
20075
20262
  "aria-label": `Remove ${item2.name}`,
20076
20263
  disabled: disabled2,
@@ -20079,26 +20266,26 @@ const FileUpload = React.forwardRef(function FileUpload2({
20079
20266
  )
20080
20267
  ] }, `${item2.name}-${index2}`);
20081
20268
  }
20082
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$6.fileItem, children: [
20083
- /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: styles$6.fileInfo, children: [
20084
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$6.filePreview, "aria-hidden": true, children: item2.previewUrl ? /* @__PURE__ */ jsxRuntimeExports.jsx(
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(
20085
20272
  "img",
20086
20273
  {
20087
- className: styles$6.filePreviewImage,
20274
+ className: styles$7.filePreviewImage,
20088
20275
  src: item2.previewUrl,
20089
20276
  alt: ""
20090
20277
  }
20091
20278
  ) : fileFallbackIcon }),
20092
- /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: styles$6.fileMeta, children: [
20093
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$6.fileName, children: item2.name }),
20094
- item2.sizeText && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$6.fileSize, children: item2.sizeText })
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 })
20095
20282
  ] })
20096
20283
  ] }),
20097
20284
  removable && /* @__PURE__ */ jsxRuntimeExports.jsx(
20098
20285
  "button",
20099
20286
  {
20100
20287
  type: "button",
20101
- className: styles$6.removeButton,
20288
+ className: styles$7.removeButton,
20102
20289
  onClick: (event) => handleRemoveFile(index2, event),
20103
20290
  "aria-label": `Remove ${item2.name}`,
20104
20291
  disabled: disabled2,
@@ -20297,7 +20484,7 @@ var RovingFocusGroupImpl = React__namespace.forwardRef((props, forwardedRef) =>
20297
20484
  }
20298
20485
  );
20299
20486
  });
20300
- var ITEM_NAME$4 = "RovingFocusGroupItem";
20487
+ var ITEM_NAME$5 = "RovingFocusGroupItem";
20301
20488
  var RovingFocusGroupItem = React__namespace.forwardRef(
20302
20489
  (props, forwardedRef) => {
20303
20490
  const {
@@ -20310,7 +20497,7 @@ var RovingFocusGroupItem = React__namespace.forwardRef(
20310
20497
  } = props;
20311
20498
  const autoId = useId();
20312
20499
  const id2 = tabStopId || autoId;
20313
- const context = useRovingFocusContext(ITEM_NAME$4, __scopeRovingFocusGroup);
20500
+ const context = useRovingFocusContext(ITEM_NAME$5, __scopeRovingFocusGroup);
20314
20501
  const isCurrentTabStop = context.currentTabStopId === id2;
20315
20502
  const getItems = useCollection$2(__scopeRovingFocusGroup);
20316
20503
  const { onFocusableItemAdd, onFocusableItemRemove, currentTabStopId } = context;
@@ -20367,7 +20554,7 @@ var RovingFocusGroupItem = React__namespace.forwardRef(
20367
20554
  );
20368
20555
  }
20369
20556
  );
20370
- RovingFocusGroupItem.displayName = ITEM_NAME$4;
20557
+ RovingFocusGroupItem.displayName = ITEM_NAME$5;
20371
20558
  var MAP_KEY_TO_FOCUS_INTENT = {
20372
20559
  ArrowLeft: "prev",
20373
20560
  ArrowUp: "prev",
@@ -20537,7 +20724,7 @@ var [createRadioGroupContext] = createContextScope(RADIO_GROUP_NAME$2, [
20537
20724
  createRovingFocusGroupScope,
20538
20725
  createRadioScope
20539
20726
  ]);
20540
- var useRovingFocusGroupScope$1 = createRovingFocusGroupScope();
20727
+ var useRovingFocusGroupScope$2 = createRovingFocusGroupScope();
20541
20728
  var useRadioScope = createRadioScope();
20542
20729
  var [RadioGroupProvider$1, useRadioGroupContext$1] = createRadioGroupContext(RADIO_GROUP_NAME$2);
20543
20730
  var RadioGroup$2 = React__namespace.forwardRef(
@@ -20555,7 +20742,7 @@ var RadioGroup$2 = React__namespace.forwardRef(
20555
20742
  onValueChange,
20556
20743
  ...groupProps
20557
20744
  } = props;
20558
- const rovingFocusGroupScope = useRovingFocusGroupScope$1(__scopeRadioGroup);
20745
+ const rovingFocusGroupScope = useRovingFocusGroupScope$2(__scopeRadioGroup);
20559
20746
  const direction = useDirection(dir);
20560
20747
  const [value, setValue] = useControllableState({
20561
20748
  prop: valueProp,
@@ -20599,13 +20786,13 @@ var RadioGroup$2 = React__namespace.forwardRef(
20599
20786
  }
20600
20787
  );
20601
20788
  RadioGroup$2.displayName = RADIO_GROUP_NAME$2;
20602
- var ITEM_NAME$3 = "RadioGroupItem";
20789
+ var ITEM_NAME$4 = "RadioGroupItem";
20603
20790
  var RadioGroupItem = React__namespace.forwardRef(
20604
20791
  (props, forwardedRef) => {
20605
20792
  const { __scopeRadioGroup, disabled: disabled2, ...itemProps } = props;
20606
- const context = useRadioGroupContext$1(ITEM_NAME$3, __scopeRadioGroup);
20793
+ const context = useRadioGroupContext$1(ITEM_NAME$4, __scopeRadioGroup);
20607
20794
  const isDisabled = context.disabled || disabled2;
20608
- const rovingFocusGroupScope = useRovingFocusGroupScope$1(__scopeRadioGroup);
20795
+ const rovingFocusGroupScope = useRovingFocusGroupScope$2(__scopeRadioGroup);
20609
20796
  const radioScope = useRadioScope(__scopeRadioGroup);
20610
20797
  const ref = React__namespace.useRef(null);
20611
20798
  const composedRefs = useComposedRefs(forwardedRef, ref);
@@ -20655,7 +20842,7 @@ var RadioGroupItem = React__namespace.forwardRef(
20655
20842
  );
20656
20843
  }
20657
20844
  );
20658
- RadioGroupItem.displayName = ITEM_NAME$3;
20845
+ RadioGroupItem.displayName = ITEM_NAME$4;
20659
20846
  var INDICATOR_NAME2 = "RadioGroupIndicator";
20660
20847
  var RadioGroupIndicator = React__namespace.forwardRef(
20661
20848
  (props, forwardedRef) => {
@@ -20665,49 +20852,49 @@ var RadioGroupIndicator = React__namespace.forwardRef(
20665
20852
  }
20666
20853
  );
20667
20854
  RadioGroupIndicator.displayName = INDICATOR_NAME2;
20668
- var Root2$3 = RadioGroup$2;
20669
- var Item2$2 = RadioGroupItem;
20855
+ var Root2$4 = RadioGroup$2;
20856
+ var Item2$3 = RadioGroupItem;
20670
20857
  var Indicator = RadioGroupIndicator;
20671
20858
  const group = "_group_hpxu6_19";
20672
20859
  const wrapper = "_wrapper_hpxu6_25";
20673
- const disabled$2 = "_disabled_hpxu6_34";
20674
- const root = "_root_hpxu6_39";
20860
+ const disabled$3 = "_disabled_hpxu6_34";
20861
+ const root$1 = "_root_hpxu6_39";
20675
20862
  const indicator = "_indicator_hpxu6_72";
20676
20863
  const dot = "_dot_hpxu6_81";
20677
- const large$2 = "_large_hpxu6_88";
20678
- const small$2 = "_small_hpxu6_93";
20864
+ const large$3 = "_large_hpxu6_88";
20865
+ const small$3 = "_small_hpxu6_93";
20679
20866
  const disabledDot = "_disabledDot_hpxu6_98";
20680
20867
  const label = "_label_hpxu6_102";
20681
20868
  const chamfer = "_chamfer_hpxu6_107";
20682
- const primary$4 = "_primary_hpxu6_112";
20683
- const secondary$4 = "_secondary_hpxu6_121";
20684
- const success$4 = "_success_hpxu6_130";
20685
- const warning$4 = "_warning_hpxu6_139";
20686
- const danger$4 = "_danger_hpxu6_148";
20687
- const info$4 = "_info_hpxu6_157";
20688
- const styles$5 = {
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 = {
20689
20876
  group,
20690
20877
  wrapper,
20691
- disabled: disabled$2,
20692
- root,
20878
+ disabled: disabled$3,
20879
+ root: root$1,
20693
20880
  indicator,
20694
20881
  dot,
20695
- large: large$2,
20696
- small: small$2,
20882
+ large: large$3,
20883
+ small: small$3,
20697
20884
  disabledDot,
20698
20885
  label,
20699
20886
  chamfer,
20700
- primary: primary$4,
20701
- secondary: secondary$4,
20702
- success: success$4,
20703
- warning: warning$4,
20704
- danger: danger$4,
20705
- info: info$4
20887
+ primary: primary$5,
20888
+ secondary: secondary$5,
20889
+ success: success$5,
20890
+ warning: warning$5,
20891
+ danger: danger$5,
20892
+ info: info$5
20706
20893
  };
20707
20894
  const RadioGroup$1 = ({ className, children: children2, ...props }) => /* @__PURE__ */ jsxRuntimeExports.jsx(
20708
- Root2$3,
20895
+ Root2$4,
20709
20896
  {
20710
- className: clsx(styles$5.group, className),
20897
+ className: clsx(styles$6.group, className),
20711
20898
  ...props,
20712
20899
  children: children2
20713
20900
  }
@@ -20722,33 +20909,33 @@ function Radio({
20722
20909
  className,
20723
20910
  ...props
20724
20911
  }) {
20725
- const variantClass = variant && styles$5[variant];
20726
- const sizeClass = size2 === "large" ? styles$5.large : size2 === "small" ? styles$5.small : null;
20912
+ const variantClass = variant && styles$6[variant];
20913
+ const sizeClass = size2 === "large" ? styles$6.large : size2 === "small" ? styles$6.small : null;
20727
20914
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
20728
20915
  "label",
20729
20916
  {
20730
- className: clsx(styles$5.wrapper, variantClass, disabled2 && styles$5.disabled),
20917
+ className: clsx(styles$6.wrapper, variantClass, disabled2 && styles$6.disabled),
20731
20918
  children: [
20732
20919
  /* @__PURE__ */ jsxRuntimeExports.jsx(
20733
- Item2$2,
20920
+ Item2$3,
20734
20921
  {
20735
20922
  className: clsx(
20736
- styles$5.root,
20923
+ styles$6.root,
20737
20924
  variantClass,
20738
20925
  sizeClass,
20739
20926
  chamfer2 && chamferStyles.chamfer,
20740
20927
  disabled2 && chamferStyles.disabled,
20741
20928
  disabled2 && hatchStyles.hatch,
20742
- disabled2 && styles$5.disabledDot,
20929
+ disabled2 && styles$6.disabledDot,
20743
20930
  className
20744
20931
  ),
20745
20932
  value,
20746
20933
  disabled: disabled2,
20747
20934
  ...props,
20748
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(Indicator, { className: styles$5.indicator, children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$5.dot }) })
20935
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(Indicator, { className: styles$6.indicator, children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$6.dot }) })
20749
20936
  }
20750
20937
  ),
20751
- label2 && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$5.label, children: label2 })
20938
+ label2 && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$6.label, children: label2 })
20752
20939
  ]
20753
20940
  }
20754
20941
  );
@@ -23070,7 +23257,7 @@ const arrow$2 = (options, deps) => ({
23070
23257
  ...arrow$1(options),
23071
23258
  options: [options, deps]
23072
23259
  });
23073
- var NAME$1 = "Arrow";
23260
+ var NAME$2 = "Arrow";
23074
23261
  var Arrow$1 = React__namespace.forwardRef((props, forwardedRef) => {
23075
23262
  const { children: children2, width = 10, height = 5, ...arrowProps } = props;
23076
23263
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -23086,7 +23273,7 @@ var Arrow$1 = React__namespace.forwardRef((props, forwardedRef) => {
23086
23273
  }
23087
23274
  );
23088
23275
  });
23089
- Arrow$1.displayName = NAME$1;
23276
+ Arrow$1.displayName = NAME$2;
23090
23277
  var Root$1 = Arrow$1;
23091
23278
  var POPPER_NAME = "Popper";
23092
23279
  var [createPopperContext, createPopperScope] = createContextScope(POPPER_NAME);
@@ -23353,7 +23540,7 @@ function getSideAndAlignFromPlacement(placement) {
23353
23540
  const [side, align = "center"] = placement.split("-");
23354
23541
  return [side, align];
23355
23542
  }
23356
- var Root2$2 = Popper;
23543
+ var Root2$3 = Popper;
23357
23544
  var Anchor = PopperAnchor;
23358
23545
  var Content$1 = PopperContent;
23359
23546
  var Arrow = PopperArrow;
@@ -23379,7 +23566,7 @@ var VISUALLY_HIDDEN_STYLES = Object.freeze({
23379
23566
  whiteSpace: "nowrap",
23380
23567
  wordWrap: "normal"
23381
23568
  });
23382
- var NAME = "VisuallyHidden";
23569
+ var NAME$1 = "VisuallyHidden";
23383
23570
  var VisuallyHidden = React__namespace.forwardRef(
23384
23571
  (props, forwardedRef) => {
23385
23572
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -23392,7 +23579,7 @@ var VisuallyHidden = React__namespace.forwardRef(
23392
23579
  );
23393
23580
  }
23394
23581
  );
23395
- VisuallyHidden.displayName = NAME;
23582
+ VisuallyHidden.displayName = NAME$1;
23396
23583
  var getDefaultParent = function(originalTarget) {
23397
23584
  if (typeof document === "undefined") {
23398
23585
  return null;
@@ -24221,7 +24408,7 @@ var Select = (props) => {
24221
24408
  const isFormControl = trigger2 ? form || !!trigger2.closest("form") : true;
24222
24409
  const [nativeOptionsSet, setNativeOptionsSet] = React__namespace.useState(/* @__PURE__ */ new Set());
24223
24410
  const nativeSelectKey = Array.from(nativeOptionsSet).map((option) => option.props.value).join(";");
24224
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Root2$2, { ...popperScope, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
24411
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Root2$3, { ...popperScope, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
24225
24412
  SelectProvider,
24226
24413
  {
24227
24414
  required,
@@ -24938,8 +25125,8 @@ var SelectLabel = React__namespace.forwardRef(
24938
25125
  }
24939
25126
  );
24940
25127
  SelectLabel.displayName = LABEL_NAME$2;
24941
- var ITEM_NAME$2 = "SelectItem";
24942
- var [SelectItemContextProvider, useSelectItemContext] = createSelectContext(ITEM_NAME$2);
25128
+ var ITEM_NAME$3 = "SelectItem";
25129
+ var [SelectItemContextProvider, useSelectItemContext] = createSelectContext(ITEM_NAME$3);
24943
25130
  var SelectItem = React__namespace.forwardRef(
24944
25131
  (props, forwardedRef) => {
24945
25132
  const {
@@ -24949,8 +25136,8 @@ var SelectItem = React__namespace.forwardRef(
24949
25136
  textValue: textValueProp,
24950
25137
  ...itemProps
24951
25138
  } = props;
24952
- const context = useSelectContext(ITEM_NAME$2, __scopeSelect);
24953
- const contentContext = useSelectContentContext(ITEM_NAME$2, __scopeSelect);
25139
+ const context = useSelectContext(ITEM_NAME$3, __scopeSelect);
25140
+ const contentContext = useSelectContentContext(ITEM_NAME$3, __scopeSelect);
24954
25141
  const isSelected = context.value === value;
24955
25142
  const [textValue, setTextValue] = React__namespace.useState(textValueProp ?? "");
24956
25143
  const [isFocused, setIsFocused] = React__namespace.useState(false);
@@ -25040,7 +25227,7 @@ var SelectItem = React__namespace.forwardRef(
25040
25227
  );
25041
25228
  }
25042
25229
  );
25043
- SelectItem.displayName = ITEM_NAME$2;
25230
+ SelectItem.displayName = ITEM_NAME$3;
25044
25231
  var ITEM_TEXT_NAME = "SelectItemText";
25045
25232
  var SelectItemText = React__namespace.forwardRef(
25046
25233
  (props, forwardedRef) => {
@@ -25286,7 +25473,7 @@ function findNextItem(items, search, currentItem) {
25286
25473
  function wrapArray$1(array2, startIndex) {
25287
25474
  return array2.map((_2, index2) => array2[(startIndex + index2) % array2.length]);
25288
25475
  }
25289
- var Root2$1 = Select;
25476
+ var Root2$2 = Select;
25290
25477
  var Trigger$2 = SelectTrigger;
25291
25478
  var Value = SelectValue;
25292
25479
  var Icon = SelectIcon;
@@ -25296,32 +25483,32 @@ var Viewport = SelectViewport;
25296
25483
  var Item = SelectItem;
25297
25484
  var ItemText = SelectItemText;
25298
25485
  const trigger$1 = "_trigger_1u214_7";
25299
- const large$1 = "_large_1u214_31";
25300
- const small$1 = "_small_1u214_36";
25301
- const disabled$1 = "_disabled_1u214_41";
25486
+ const large$2 = "_large_1u214_31";
25487
+ const small$2 = "_small_1u214_36";
25488
+ const disabled$2 = "_disabled_1u214_41";
25302
25489
  const icon$1 = "_icon_1u214_46";
25303
25490
  const content$3 = "_content_1u214_52";
25304
- const item$1 = "_item_1u214_57";
25305
- const primary$3 = "_primary_1u214_79";
25306
- const success$3 = "_success_1u214_89";
25307
- const warning$3 = "_warning_1u214_99";
25308
- const danger$3 = "_danger_1u214_109";
25309
- const info$3 = "_info_1u214_119";
25310
- const secondary$3 = "_secondary_1u214_129";
25311
- const styles$4 = {
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 = {
25312
25499
  trigger: trigger$1,
25313
- large: large$1,
25314
- small: small$1,
25315
- disabled: disabled$1,
25500
+ large: large$2,
25501
+ small: small$2,
25502
+ disabled: disabled$2,
25316
25503
  icon: icon$1,
25317
25504
  content: content$3,
25318
- item: item$1,
25319
- primary: primary$3,
25320
- success: success$3,
25321
- warning: warning$3,
25322
- danger: danger$3,
25323
- info: info$3,
25324
- secondary: secondary$3
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
25325
25512
  };
25326
25513
  function SelectInput({
25327
25514
  options,
@@ -25334,7 +25521,7 @@ function SelectInput({
25334
25521
  loading = false
25335
25522
  }) {
25336
25523
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
25337
- Root2$1,
25524
+ Root2$2,
25338
25525
  {
25339
25526
  value,
25340
25527
  onValueChange,
@@ -25344,18 +25531,18 @@ function SelectInput({
25344
25531
  Trigger$2,
25345
25532
  {
25346
25533
  className: clsx(
25347
- styles$4.trigger,
25348
- styles$4[variant],
25534
+ styles$5.trigger,
25535
+ styles$5[variant],
25349
25536
  chamfer2 && chamferStyles.chamfer,
25350
- size2 === "large" && styles$4.large,
25351
- size2 === "small" && styles$4.small,
25352
- disabled2 && styles$4.disabled,
25537
+ size2 === "large" && styles$5.large,
25538
+ size2 === "small" && styles$5.small,
25539
+ disabled2 && styles$5.disabled,
25353
25540
  disabled2 && hatchStyles.hatch
25354
25541
  // loading && styles.disabled
25355
25542
  ),
25356
25543
  children: [
25357
25544
  /* @__PURE__ */ jsxRuntimeExports.jsx(Value, {}),
25358
- loading ? /* @__PURE__ */ jsxRuntimeExports.jsx(Loader, {}) : /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, { className: styles$4.icon, children: "▾" })
25545
+ loading ? /* @__PURE__ */ jsxRuntimeExports.jsx(Loader, {}) : /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, { className: styles$5.icon, children: "▾" })
25359
25546
  ]
25360
25547
  }
25361
25548
  ),
@@ -25363,7 +25550,7 @@ function SelectInput({
25363
25550
  Content2$2,
25364
25551
  {
25365
25552
  className: classNames(
25366
- styles$4.content,
25553
+ styles$5.content,
25367
25554
  chamfer2 && chamferStyles.chamfer
25368
25555
  ),
25369
25556
  sideOffset: 6,
@@ -25372,7 +25559,7 @@ function SelectInput({
25372
25559
  {
25373
25560
  value: opt.value,
25374
25561
  disabled: opt.disabled,
25375
- className: styles$4.item,
25562
+ className: styles$5.item,
25376
25563
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(ItemText, { children: opt.label })
25377
25564
  },
25378
25565
  opt.value
@@ -25383,6 +25570,278 @@ function SelectInput({
25383
25570
  }
25384
25571
  );
25385
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
+ }
25386
25845
  var SELECTION_KEYS = ["Enter", " "];
25387
25846
  var FIRST_KEYS = ["ArrowDown", "PageUp", "Home"];
25388
25847
  var LAST_KEYS = ["ArrowUp", "PageDown", "End"];
@@ -25427,7 +25886,7 @@ var Menu = (props) => {
25427
25886
  document.removeEventListener("pointermove", handlePointer, { capture: true });
25428
25887
  };
25429
25888
  }, []);
25430
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Root2$2, { ...popperScope, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
25889
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Root2$3, { ...popperScope, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
25431
25890
  MenuProvider,
25432
25891
  {
25433
25892
  scope: __scopeMenu,
@@ -27783,6 +28242,7 @@ exports.Loader = Loader;
27783
28242
  exports.RadarChart = RadarChart;
27784
28243
  exports.Radio = Radio;
27785
28244
  exports.RadioGroup = RadioGroup$1;
28245
+ exports.SegmentedControl = SegmentedControl;
27786
28246
  exports.Select = SelectInput;
27787
28247
  exports.toast = toast;
27788
28248
  exports.useJCUITheme = useJCUITheme;