@jackcrane/ui 0.1.14 → 0.1.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/jcui.es.js CHANGED
@@ -1097,6 +1097,186 @@ div.jcui_chamfer:not(.jcui_disabled):focus-within {
1097
1097
  ._secondary_1u214_129:hover {
1098
1098
  --select-bg: var(--secondary-color-200);
1099
1099
  }
1100
+ @property --segment-bg {
1101
+ syntax: "<color>";
1102
+ inherits: true;
1103
+ initial-value: transparent;
1104
+ }
1105
+ @property --segment-item-hover-bg {
1106
+ syntax: "<color>";
1107
+ inherits: true;
1108
+ initial-value: transparent;
1109
+ }
1110
+ @property --segment-item-active-bg {
1111
+ syntax: "<color>";
1112
+ inherits: true;
1113
+ initial-value: transparent;
1114
+ }
1115
+ @property --segment-item-color {
1116
+ syntax: "<color>";
1117
+ inherits: true;
1118
+ initial-value: inherit;
1119
+ }
1120
+ @property --segment-item-active-color {
1121
+ syntax: "<color>";
1122
+ inherits: true;
1123
+ initial-value: inherit;
1124
+ }
1125
+ ._root_wrsjc_31 {
1126
+ --segment-bg: var(--body-bg);
1127
+ --segment-item-hover-bg: var(--secondary-color-100);
1128
+ --segment-item-active-bg: var(--secondary-color-300);
1129
+ --segment-item-color: var(--body-color);
1130
+ --segment-item-active-color: var(--body-color);
1131
+ --button-bg: var(--segment-bg);
1132
+ display: inline-flex;
1133
+ align-items: stretch;
1134
+ justify-content: flex-start;
1135
+ isolation: isolate;
1136
+ background-color: var(--segment-bg);
1137
+ color: var(--segment-item-color);
1138
+ }
1139
+ ._item_wrsjc_47 {
1140
+ all: unset;
1141
+ box-sizing: border-box;
1142
+ position: relative;
1143
+ display: inline-flex;
1144
+ align-items: center;
1145
+ justify-content: center;
1146
+ font-size: 1rem;
1147
+ line-height: 1;
1148
+ padding: 0.5rem 1rem;
1149
+ color: var(--segment-item-color);
1150
+ cursor: pointer;
1151
+ user-select: none;
1152
+ background-color: transparent;
1153
+ border-top: var(--border-thickness) solid var(--border-color);
1154
+ border-bottom: var(--border-thickness) solid var(--border-color);
1155
+ border-left: var(--border-thickness) solid var(--border-color);
1156
+ margin-right: calc(-1 * var(--border-thickness));
1157
+ }
1158
+ ._item_wrsjc_47:last-child {
1159
+ border-right: var(--border-thickness) solid var(--border-color);
1160
+ margin-right: 0;
1161
+ }
1162
+ ._item_wrsjc_47:hover {
1163
+ background-color: var(--segment-item-hover-bg);
1164
+ }
1165
+ ._item_wrsjc_47:focus-visible {
1166
+ outline: none;
1167
+ box-shadow: inset 0 0 0 1px var(--border-accent-color);
1168
+ }
1169
+ ._item_wrsjc_47[data-state="on"] {
1170
+ background-color: var(--segment-item-active-bg);
1171
+ color: var(--segment-item-active-color);
1172
+ z-index: 1;
1173
+ }
1174
+ ._chamferEnabled_wrsjc_87 ._item_wrsjc_47[data-state="on"]::after {
1175
+ content: "";
1176
+ position: absolute;
1177
+ top: calc(-1 * var(--border-thickness));
1178
+ right: 0;
1179
+ bottom: calc(-1 * var(--border-thickness));
1180
+ left: calc(-1 * var(--border-thickness));
1181
+ pointer-events: none;
1182
+ --bt: var(--border-thickness);
1183
+ --cd: var(--chamfer-distance);
1184
+ --chamfer-color: var(--border-accent-color);
1185
+ background:
1186
+ linear-gradient(var(--chamfer-color), var(--chamfer-color)) left top /
1187
+ var(--cd) var(--bt) no-repeat,
1188
+ linear-gradient(var(--chamfer-color), var(--chamfer-color)) left top /
1189
+ var(--bt) var(--cd) no-repeat,
1190
+ linear-gradient(var(--chamfer-color), var(--chamfer-color)) right top /
1191
+ var(--cd) var(--bt) no-repeat,
1192
+ linear-gradient(var(--chamfer-color), var(--chamfer-color)) right top /
1193
+ var(--bt) var(--cd) no-repeat,
1194
+ linear-gradient(var(--chamfer-color), var(--chamfer-color)) right bottom /
1195
+ var(--cd) var(--bt) no-repeat,
1196
+ linear-gradient(var(--chamfer-color), var(--chamfer-color)) right bottom /
1197
+ var(--bt) var(--cd) no-repeat,
1198
+ linear-gradient(var(--chamfer-color), var(--chamfer-color)) left bottom /
1199
+ var(--cd) var(--bt) no-repeat,
1200
+ linear-gradient(var(--chamfer-color), var(--chamfer-color)) left bottom /
1201
+ var(--bt) var(--cd) no-repeat;
1202
+ }
1203
+ ._chamferEnabled_wrsjc_87 ._item_wrsjc_47[data-state="on"]:last-child::after {
1204
+ right: calc(-1 * var(--border-thickness));
1205
+ }
1206
+ ._item_wrsjc_47[data-disabled] {
1207
+ opacity: 0.5;
1208
+ pointer-events: none;
1209
+ }
1210
+ ._large_wrsjc_127 ._item_wrsjc_47 {
1211
+ font-size: 1.25rem;
1212
+ padding: 0.75rem 1.25rem;
1213
+ }
1214
+ ._small_wrsjc_132 ._item_wrsjc_47 {
1215
+ font-size: 0.75rem;
1216
+ padding: 0.25rem 0.5rem;
1217
+ }
1218
+ ._disabled_wrsjc_137 {
1219
+ opacity: 0.6;
1220
+ cursor: not-allowed;
1221
+ }
1222
+ ._itemDisabled_wrsjc_142 {
1223
+ cursor: not-allowed;
1224
+ }
1225
+ /* Variants */
1226
+ ._primary_wrsjc_148 {
1227
+ --segment-bg: var(--primary-color-100);
1228
+ --border-color: var(--primary-color-300);
1229
+ --border-accent-color: var(--primary-color-600);
1230
+ --segment-item-hover-bg: var(--primary-color-200);
1231
+ --segment-item-active-bg: var(--primary-color-300);
1232
+ --segment-item-color: var(--primary-color-800);
1233
+ --segment-item-active-color: var(--primary-color-900);
1234
+ }
1235
+ ._secondary_wrsjc_158 {
1236
+ --segment-bg: var(--secondary-color-100);
1237
+ --border-color: var(--secondary-color-300);
1238
+ --border-accent-color: var(--secondary-color-600);
1239
+ --segment-item-hover-bg: var(--secondary-color-200);
1240
+ --segment-item-active-bg: var(--secondary-color-300);
1241
+ --segment-item-color: var(--secondary-color-800);
1242
+ --segment-item-active-color: var(--secondary-color-900);
1243
+ }
1244
+ ._success_wrsjc_168 {
1245
+ --segment-bg: var(--success-color-100);
1246
+ --border-color: var(--success-color-300);
1247
+ --border-accent-color: var(--success-color-600);
1248
+ --segment-item-hover-bg: var(--success-color-200);
1249
+ --segment-item-active-bg: var(--success-color-300);
1250
+ --segment-item-color: var(--success-color-800);
1251
+ --segment-item-active-color: var(--success-color-900);
1252
+ }
1253
+ ._warning_wrsjc_178 {
1254
+ --segment-bg: var(--warning-color-100);
1255
+ --border-color: var(--warning-color-300);
1256
+ --border-accent-color: var(--warning-color-600);
1257
+ --segment-item-hover-bg: var(--warning-color-200);
1258
+ --segment-item-active-bg: var(--warning-color-300);
1259
+ --segment-item-color: var(--warning-color-800);
1260
+ --segment-item-active-color: var(--warning-color-900);
1261
+ }
1262
+ ._danger_wrsjc_188 {
1263
+ --segment-bg: var(--danger-color-100);
1264
+ --border-color: var(--danger-color-300);
1265
+ --border-accent-color: var(--danger-color-600);
1266
+ --segment-item-hover-bg: var(--danger-color-200);
1267
+ --segment-item-active-bg: var(--danger-color-300);
1268
+ --segment-item-color: var(--danger-color-800);
1269
+ --segment-item-active-color: var(--danger-color-900);
1270
+ }
1271
+ ._info_wrsjc_198 {
1272
+ --segment-bg: var(--info-color-100);
1273
+ --border-color: var(--info-color-300);
1274
+ --border-accent-color: var(--info-color-600);
1275
+ --segment-item-hover-bg: var(--info-color-200);
1276
+ --segment-item-active-bg: var(--info-color-300);
1277
+ --segment-item-color: var(--info-color-800);
1278
+ --segment-item-active-color: var(--info-color-900);
1279
+ }
1100
1280
  @property --dropdown-bg {
1101
1281
  syntax: "<color>";
1102
1282
  inherits: true;
@@ -2232,34 +2412,34 @@ function clsx() {
2232
2412
  }
2233
2413
  const button = "_button_105y0_7";
2234
2414
  const pageBackground$4 = "_pageBackground_105y0_24";
2235
- const large$7 = "_large_105y0_34";
2236
- const small$7 = "_small_105y0_39";
2237
- const disabled$7 = "_disabled_105y0_44";
2238
- const primary$9 = "_primary_105y0_51";
2239
- const success$9 = "_success_105y0_64";
2240
- const warning$9 = "_warning_105y0_77";
2241
- const danger$9 = "_danger_105y0_90";
2242
- const info$9 = "_info_105y0_103";
2243
- const secondary$9 = "_secondary_105y0_116";
2244
- const styles$c = {
2415
+ const large$8 = "_large_105y0_34";
2416
+ const small$8 = "_small_105y0_39";
2417
+ const disabled$8 = "_disabled_105y0_44";
2418
+ const primary$a = "_primary_105y0_51";
2419
+ const success$a = "_success_105y0_64";
2420
+ const warning$a = "_warning_105y0_77";
2421
+ const danger$a = "_danger_105y0_90";
2422
+ const info$a = "_info_105y0_103";
2423
+ const secondary$a = "_secondary_105y0_116";
2424
+ const styles$d = {
2245
2425
  button,
2246
2426
  pageBackground: pageBackground$4,
2247
- large: large$7,
2248
- small: small$7,
2249
- disabled: disabled$7,
2250
- primary: primary$9,
2251
- success: success$9,
2252
- warning: warning$9,
2253
- danger: danger$9,
2254
- info: info$9,
2255
- secondary: secondary$9
2427
+ large: large$8,
2428
+ small: small$8,
2429
+ disabled: disabled$8,
2430
+ primary: primary$a,
2431
+ success: success$a,
2432
+ warning: warning$a,
2433
+ danger: danger$a,
2434
+ info: info$a,
2435
+ secondary: secondary$a
2256
2436
  };
2257
2437
  const chamfer$1 = "_chamfer_1unae_1";
2258
- const disabled$6 = "_disabled_1unae_16";
2438
+ const disabled$7 = "_disabled_1unae_16";
2259
2439
  const chamferOnHover = "_chamferOnHover_1unae_67";
2260
2440
  const chamferStyles = {
2261
2441
  chamfer: chamfer$1,
2262
- disabled: disabled$6,
2442
+ disabled: disabled$7,
2263
2443
  chamferOnHover
2264
2444
  };
2265
2445
  const hatch$1 = "_hatch_rrcdt_1";
@@ -2274,10 +2454,10 @@ const ThemeContext = createContext$1({
2274
2454
  });
2275
2455
  const useJCUITheme = () => useContext(ThemeContext);
2276
2456
  const loader = "_loader_1y0fe_1";
2277
- const styles$b = {
2457
+ const styles$c = {
2278
2458
  loader
2279
2459
  };
2280
- const Loader = (props) => /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$b.loader, ...props });
2460
+ const Loader = (props) => /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$c.loader, ...props });
2281
2461
  function Button({
2282
2462
  children: children2,
2283
2463
  variant,
@@ -2291,15 +2471,15 @@ function Button({
2291
2471
  "button",
2292
2472
  {
2293
2473
  className: clsx(
2294
- styles$c.button,
2295
- !variant && styles$c.pageBackground,
2296
- styles$c[variant],
2474
+ styles$d.button,
2475
+ !variant && styles$d.pageBackground,
2476
+ styles$d[variant],
2297
2477
  chamfer2 && chamferStyles.chamfer,
2298
- size2 === "large" && styles$c.large,
2299
- size2 === "small" && styles$c.small,
2478
+ size2 === "large" && styles$d.large,
2479
+ size2 === "small" && styles$d.small,
2300
2480
  disabled2 && chamferStyles.disabled,
2301
2481
  disabled2 && hatchStyles.hatch,
2302
- disabled2 && styles$c.disabled
2482
+ disabled2 && styles$d.disabled
2303
2483
  ),
2304
2484
  disabled: disabled2,
2305
2485
  ...props,
@@ -2412,28 +2592,28 @@ const pageBackground$3 = "_pageBackground_et6fi_11";
2412
2592
  const title$1 = "_title_et6fi_18";
2413
2593
  const body$1 = "_body_et6fi_25";
2414
2594
  const footer$1 = "_footer_et6fi_30";
2415
- const large$6 = "_large_et6fi_37";
2416
- const small$6 = "_small_et6fi_43";
2417
- const primary$8 = "_primary_et6fi_51";
2418
- const success$8 = "_success_et6fi_58";
2419
- const warning$8 = "_warning_et6fi_65";
2420
- const danger$8 = "_danger_et6fi_72";
2421
- const info$8 = "_info_et6fi_79";
2422
- const secondary$8 = "_secondary_et6fi_86";
2423
- const styles$a = {
2595
+ const large$7 = "_large_et6fi_37";
2596
+ const small$7 = "_small_et6fi_43";
2597
+ const primary$9 = "_primary_et6fi_51";
2598
+ const success$9 = "_success_et6fi_58";
2599
+ const warning$9 = "_warning_et6fi_65";
2600
+ const danger$9 = "_danger_et6fi_72";
2601
+ const info$9 = "_info_et6fi_79";
2602
+ const secondary$9 = "_secondary_et6fi_86";
2603
+ const styles$b = {
2424
2604
  card,
2425
2605
  pageBackground: pageBackground$3,
2426
2606
  title: title$1,
2427
2607
  body: body$1,
2428
2608
  footer: footer$1,
2429
- large: large$6,
2430
- small: small$6,
2431
- primary: primary$8,
2432
- success: success$8,
2433
- warning: warning$8,
2434
- danger: danger$8,
2435
- info: info$8,
2436
- secondary: secondary$8
2609
+ large: large$7,
2610
+ small: small$7,
2611
+ primary: primary$9,
2612
+ success: success$9,
2613
+ warning: warning$9,
2614
+ danger: danger$9,
2615
+ info: info$9,
2616
+ secondary: secondary$9
2437
2617
  };
2438
2618
  function Card({
2439
2619
  children: children2,
@@ -2450,21 +2630,21 @@ function Card({
2450
2630
  "div",
2451
2631
  {
2452
2632
  className: classNames(
2453
- styles$a.card,
2454
- !variant && styles$a.pageBackground,
2455
- styles$a[variant],
2633
+ styles$b.card,
2634
+ !variant && styles$b.pageBackground,
2635
+ styles$b[variant],
2456
2636
  chamfer2 && chamferStyles.chamfer,
2457
- size2 === "large" && styles$a.large,
2458
- size2 === "small" && styles$a.small
2637
+ size2 === "large" && styles$b.large,
2638
+ size2 === "small" && styles$b.small
2459
2639
  ),
2460
2640
  ...props,
2461
2641
  children: [
2462
- title2 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: classNames(styles$a.title, hatchStyles.hatch), children: title2 }),
2463
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$a.body, children: children2 }),
2642
+ title2 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: classNames(styles$b.title, hatchStyles.hatch), children: title2 }),
2643
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$b.body, children: children2 }),
2464
2644
  footerHeight > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(
2465
2645
  "div",
2466
2646
  {
2467
- className: classNames(hatchStyles.hatch, styles$a.footer),
2647
+ className: classNames(hatchStyles.hatch, styles$b.footer),
2468
2648
  style: { flexBasis: footerHeight },
2469
2649
  children: footer2
2470
2650
  }
@@ -3195,34 +3375,34 @@ function getState$2(checked) {
3195
3375
  return isIndeterminate$1(checked) ? "indeterminate" : checked ? "checked" : "unchecked";
3196
3376
  }
3197
3377
  const wrapper$1 = "_wrapper_178xv_25";
3198
- const disabled$5 = "_disabled_178xv_34";
3199
- const root$3 = "_root_178xv_39";
3378
+ const disabled$6 = "_disabled_178xv_34";
3379
+ const root$4 = "_root_178xv_39";
3200
3380
  const indicator$1 = "_indicator_178xv_76";
3201
- const large$5 = "_large_178xv_94";
3202
- const small$5 = "_small_178xv_99";
3381
+ const large$6 = "_large_178xv_94";
3382
+ const small$6 = "_small_178xv_99";
3203
3383
  const disabledBox = "_disabledBox_178xv_104";
3204
3384
  const label$3 = "_label_178xv_109";
3205
- const primary$7 = "_primary_178xv_117";
3206
- const secondary$7 = "_secondary_178xv_126";
3207
- const success$7 = "_success_178xv_135";
3208
- const warning$7 = "_warning_178xv_144";
3209
- const danger$7 = "_danger_178xv_153";
3210
- const info$7 = "_info_178xv_162";
3211
- const styles$9 = {
3385
+ const primary$8 = "_primary_178xv_117";
3386
+ const secondary$8 = "_secondary_178xv_126";
3387
+ const success$8 = "_success_178xv_135";
3388
+ const warning$8 = "_warning_178xv_144";
3389
+ const danger$8 = "_danger_178xv_153";
3390
+ const info$8 = "_info_178xv_162";
3391
+ const styles$a = {
3212
3392
  wrapper: wrapper$1,
3213
- disabled: disabled$5,
3214
- root: root$3,
3393
+ disabled: disabled$6,
3394
+ root: root$4,
3215
3395
  indicator: indicator$1,
3216
- large: large$5,
3217
- small: small$5,
3396
+ large: large$6,
3397
+ small: small$6,
3218
3398
  disabledBox,
3219
3399
  label: label$3,
3220
- primary: primary$7,
3221
- secondary: secondary$7,
3222
- success: success$7,
3223
- warning: warning$7,
3224
- danger: danger$7,
3225
- info: info$7
3400
+ primary: primary$8,
3401
+ secondary: secondary$8,
3402
+ success: success$8,
3403
+ warning: warning$8,
3404
+ danger: danger$8,
3405
+ info: info$8
3226
3406
  };
3227
3407
  const CheckIcon = () => /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { viewBox: "0 0 24 24", fill: "none", role: "presentation", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
3228
3408
  "polyline",
@@ -3245,32 +3425,32 @@ function Checkbox({
3245
3425
  ...props
3246
3426
  }) {
3247
3427
  const labelContent = label2 ?? children2;
3248
- const variantClass = variant && styles$9[variant];
3249
- const sizeClass = size2 === "large" ? styles$9.large : size2 === "small" ? styles$9.small : null;
3428
+ const variantClass = variant && styles$a[variant];
3429
+ const sizeClass = size2 === "large" ? styles$a.large : size2 === "small" ? styles$a.small : null;
3250
3430
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
3251
3431
  "label",
3252
3432
  {
3253
- className: clsx(styles$9.wrapper, variantClass, disabled2 && styles$9.disabled),
3433
+ className: clsx(styles$a.wrapper, variantClass, disabled2 && styles$a.disabled),
3254
3434
  children: [
3255
3435
  /* @__PURE__ */ jsxRuntimeExports.jsx(
3256
3436
  Checkbox$1,
3257
3437
  {
3258
3438
  className: clsx(
3259
- styles$9.root,
3439
+ styles$a.root,
3260
3440
  variantClass,
3261
3441
  sizeClass,
3262
3442
  chamfer2 && chamferStyles.chamfer,
3263
3443
  disabled2 && chamferStyles.disabled,
3264
3444
  disabled2 && hatchStyles.hatch,
3265
- disabled2 && styles$9.disabledBox,
3445
+ disabled2 && styles$a.disabledBox,
3266
3446
  className
3267
3447
  ),
3268
3448
  disabled: disabled2,
3269
3449
  ...props,
3270
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(CheckboxIndicator, { className: styles$9.indicator, children: /* @__PURE__ */ jsxRuntimeExports.jsx(CheckIcon, {}) })
3450
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(CheckboxIndicator, { className: styles$a.indicator, children: /* @__PURE__ */ jsxRuntimeExports.jsx(CheckIcon, {}) })
3271
3451
  }
3272
3452
  ),
3273
- labelContent && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$9.label, children: labelContent })
3453
+ labelContent && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$a.label, children: labelContent })
3274
3454
  ]
3275
3455
  }
3276
3456
  );
@@ -4720,13 +4900,13 @@ function* selection_iterator() {
4720
4900
  }
4721
4901
  }
4722
4902
  }
4723
- var root$2 = [null];
4903
+ var root$3 = [null];
4724
4904
  function Selection$1(groups, parents) {
4725
4905
  this._groups = groups;
4726
4906
  this._parents = parents;
4727
4907
  }
4728
4908
  function selection() {
4729
- return new Selection$1([[document.documentElement]], root$2);
4909
+ return new Selection$1([[document.documentElement]], root$3);
4730
4910
  }
4731
4911
  function selection_selection() {
4732
4912
  return this;
@@ -4770,7 +4950,7 @@ Selection$1.prototype = selection.prototype = {
4770
4950
  [Symbol.iterator]: selection_iterator
4771
4951
  };
4772
4952
  function select(selector2) {
4773
- return typeof selector2 === "string" ? new Selection$1([[document.querySelector(selector2)]], [document.documentElement]) : new Selection$1([[selector2]], root$2);
4953
+ return typeof selector2 === "string" ? new Selection$1([[document.querySelector(selector2)]], [document.documentElement]) : new Selection$1([[selector2]], root$3);
4774
4954
  }
4775
4955
  function sourceEvent(event) {
4776
4956
  let sourceEvent2;
@@ -14120,7 +14300,7 @@ let nextClipId = 0;
14120
14300
  function getClipId() {
14121
14301
  return `plot-clip-${++nextClipId}`;
14122
14302
  }
14123
- function styles$8(mark, {
14303
+ function styles$9(mark, {
14124
14304
  title: title2,
14125
14305
  href,
14126
14306
  ariaLabel: variaLabel,
@@ -14486,7 +14666,7 @@ class Mark {
14486
14666
  this.facetAnchor = maybeFacetAnchor(facetAnchor);
14487
14667
  channels = maybeNamed(channels);
14488
14668
  if (extraChannels !== void 0) channels = { ...maybeChannels(extraChannels), ...channels };
14489
- if (defaults2 !== void 0) channels = { ...styles$8(this, options, defaults2), ...channels };
14669
+ if (defaults2 !== void 0) channels = { ...styles$9(this, options, defaults2), ...channels };
14490
14670
  this.channels = Object.fromEntries(
14491
14671
  Object.entries(channels).map(([name, channel]) => {
14492
14672
  if (isOptions(channel.value)) {
@@ -19514,29 +19694,29 @@ const RadarChart = ({
19514
19694
  };
19515
19695
  const input$1 = "_input_1ymvl_7";
19516
19696
  const pageBackground$2 = "_pageBackground_1ymvl_24";
19517
- const large$4 = "_large_1ymvl_38";
19518
- const small$4 = "_small_1ymvl_43";
19519
- const disabled$4 = "_disabled_1ymvl_48";
19520
- const primary$6 = "_primary_1ymvl_55";
19521
- const success$6 = "_success_1ymvl_64";
19522
- const warning$6 = "_warning_1ymvl_72";
19523
- const danger$6 = "_danger_1ymvl_80";
19524
- const info$6 = "_info_1ymvl_88";
19525
- const secondary$6 = "_secondary_1ymvl_97";
19697
+ const large$5 = "_large_1ymvl_38";
19698
+ const small$5 = "_small_1ymvl_43";
19699
+ const disabled$5 = "_disabled_1ymvl_48";
19700
+ const primary$7 = "_primary_1ymvl_55";
19701
+ const success$7 = "_success_1ymvl_64";
19702
+ const warning$7 = "_warning_1ymvl_72";
19703
+ const danger$7 = "_danger_1ymvl_80";
19704
+ const info$7 = "_info_1ymvl_88";
19705
+ const secondary$7 = "_secondary_1ymvl_97";
19526
19706
  const field = "_field_1ymvl_106";
19527
19707
  const label$2 = "_label_1ymvl_112";
19528
- const styles$7 = {
19708
+ const styles$8 = {
19529
19709
  input: input$1,
19530
19710
  pageBackground: pageBackground$2,
19531
- large: large$4,
19532
- small: small$4,
19533
- disabled: disabled$4,
19534
- primary: primary$6,
19535
- success: success$6,
19536
- warning: warning$6,
19537
- danger: danger$6,
19538
- info: info$6,
19539
- secondary: secondary$6,
19711
+ large: large$5,
19712
+ small: small$5,
19713
+ disabled: disabled$5,
19714
+ primary: primary$7,
19715
+ success: success$7,
19716
+ warning: warning$7,
19717
+ danger: danger$7,
19718
+ info: info$7,
19719
+ secondary: secondary$7,
19540
19720
  field,
19541
19721
  label: label$2
19542
19722
  };
@@ -19549,28 +19729,28 @@ function Input({
19549
19729
  ...props
19550
19730
  }) {
19551
19731
  const inputId = useId$1();
19552
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$7.field, children: [
19553
- label2 && /* @__PURE__ */ jsxRuntimeExports.jsx("label", { className: styles$7.label, htmlFor: inputId, children: label2 }),
19732
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$8.field, children: [
19733
+ label2 && /* @__PURE__ */ jsxRuntimeExports.jsx("label", { className: styles$8.label, htmlFor: inputId, children: label2 }),
19554
19734
  /* @__PURE__ */ jsxRuntimeExports.jsx(
19555
19735
  "div",
19556
19736
  {
19557
19737
  className: classNames(
19558
19738
  chamfer2 && chamferStyles.chamfer,
19559
- !variant && styles$7.pageBackground,
19560
- styles$7[variant]
19739
+ !variant && styles$8.pageBackground,
19740
+ styles$8[variant]
19561
19741
  ),
19562
19742
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(
19563
19743
  "input",
19564
19744
  {
19565
19745
  id: inputId,
19566
19746
  className: classNames(
19567
- styles$7.input,
19568
- !variant && styles$7.pageBackground,
19569
- styles$7[variant],
19570
- size2 === "large" && styles$7.large,
19571
- size2 === "small" && styles$7.small,
19747
+ styles$8.input,
19748
+ !variant && styles$8.pageBackground,
19749
+ styles$8[variant],
19750
+ size2 === "large" && styles$8.large,
19751
+ size2 === "small" && styles$8.small,
19572
19752
  disabled2 && chamferStyles.disabled,
19573
- disabled2 && styles$7.disabled,
19753
+ disabled2 && styles$8.disabled,
19574
19754
  disabled2 && hatchStyles.hatch
19575
19755
  ),
19576
19756
  disabled: disabled2,
@@ -19585,7 +19765,7 @@ function Input({
19585
19765
  )
19586
19766
  ] });
19587
19767
  }
19588
- const root$1 = "_root_i158m_7";
19768
+ const root$2 = "_root_i158m_7";
19589
19769
  const label$1 = "_label_i158m_14";
19590
19770
  const dropzone = "_dropzone_i158m_18";
19591
19771
  const pageBackground$1 = "_pageBackground_i158m_42";
@@ -19609,19 +19789,19 @@ const customFile = "_customFile_i158m_182";
19609
19789
  const removeButton = "_removeButton_i158m_195";
19610
19790
  const trashIcon = "_trashIcon_i158m_222";
19611
19791
  const trashLid = "_trashLid_i158m_227";
19612
- const large$3 = "_large_i158m_249";
19613
- const small$3 = "_small_i158m_258";
19792
+ const large$4 = "_large_i158m_249";
19793
+ const small$4 = "_small_i158m_258";
19614
19794
  const hasFiles = "_hasFiles_i158m_271";
19615
19795
  const dragging = "_dragging_i158m_275";
19616
- const disabled$3 = "_disabled_i158m_280";
19617
- const primary$5 = "_primary_i158m_285";
19618
- const success$5 = "_success_i158m_297";
19619
- const warning$5 = "_warning_i158m_309";
19620
- const danger$5 = "_danger_i158m_321";
19621
- const info$5 = "_info_i158m_333";
19622
- const secondary$5 = "_secondary_i158m_345";
19623
- const styles$6 = {
19624
- root: root$1,
19796
+ const disabled$4 = "_disabled_i158m_280";
19797
+ const primary$6 = "_primary_i158m_285";
19798
+ const success$6 = "_success_i158m_297";
19799
+ const warning$6 = "_warning_i158m_309";
19800
+ const danger$6 = "_danger_i158m_321";
19801
+ const info$6 = "_info_i158m_333";
19802
+ const secondary$6 = "_secondary_i158m_345";
19803
+ const styles$7 = {
19804
+ root: root$2,
19625
19805
  label: label$1,
19626
19806
  dropzone,
19627
19807
  pageBackground: pageBackground$1,
@@ -19645,17 +19825,17 @@ const styles$6 = {
19645
19825
  removeButton,
19646
19826
  trashIcon,
19647
19827
  trashLid,
19648
- large: large$3,
19649
- small: small$3,
19828
+ large: large$4,
19829
+ small: small$4,
19650
19830
  hasFiles,
19651
19831
  dragging,
19652
- disabled: disabled$3,
19653
- primary: primary$5,
19654
- success: success$5,
19655
- warning: warning$5,
19656
- danger: danger$5,
19657
- info: info$5,
19658
- secondary: secondary$5
19832
+ disabled: disabled$4,
19833
+ primary: primary$6,
19834
+ success: success$6,
19835
+ warning: warning$6,
19836
+ danger: danger$6,
19837
+ info: info$6,
19838
+ secondary: secondary$6
19659
19839
  };
19660
19840
  const normalizeFiles = (value, multiple = false) => {
19661
19841
  if (!value) {
@@ -19758,9 +19938,9 @@ const TrashIcon = () => /* @__PURE__ */ jsxRuntimeExports.jsxs(
19758
19938
  fill: "none",
19759
19939
  role: "presentation",
19760
19940
  "aria-hidden": true,
19761
- className: styles$6.trashIcon,
19941
+ className: styles$7.trashIcon,
19762
19942
  children: [
19763
- /* @__PURE__ */ jsxRuntimeExports.jsxs("g", { className: styles$6.trashLid, children: [
19943
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("g", { className: styles$7.trashLid, children: [
19764
19944
  /* @__PURE__ */ jsxRuntimeExports.jsx(
19765
19945
  "path",
19766
19946
  {
@@ -19999,23 +20179,23 @@ const FileUpload = forwardRef(function FileUpload2({
19999
20179
  const selectedSummary = selectedFiles.length > 0 ? `${selectedFiles.length} file${selectedFiles.length === 1 ? "" : "s"} selected` : placeholder;
20000
20180
  const dropzoneIcon2 = icon2 ?? /* @__PURE__ */ jsxRuntimeExports.jsx(UploadIcon, {});
20001
20181
  const fileFallbackIcon = icon2 ?? /* @__PURE__ */ jsxRuntimeExports.jsx(FileIcon, {});
20002
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$6.root, className), children: [
20003
- label2 && /* @__PURE__ */ jsxRuntimeExports.jsx("label", { className: styles$6.label, htmlFor: inputId, children: label2 }),
20182
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$7.root, className), children: [
20183
+ label2 && /* @__PURE__ */ jsxRuntimeExports.jsx("label", { className: styles$7.label, htmlFor: inputId, children: label2 }),
20004
20184
  /* @__PURE__ */ jsxRuntimeExports.jsxs(
20005
20185
  "div",
20006
20186
  {
20007
20187
  className: clsx(
20008
- styles$6.dropzone,
20009
- !variant && styles$6.pageBackground,
20010
- variant && styles$6[variant],
20188
+ styles$7.dropzone,
20189
+ !variant && styles$7.pageBackground,
20190
+ variant && styles$7[variant],
20011
20191
  chamfer2 && chamferStyles.chamfer,
20012
- size2 === "large" && styles$6.large,
20013
- size2 === "small" && styles$6.small,
20014
- disabled2 && styles$6.disabled,
20192
+ size2 === "large" && styles$7.large,
20193
+ size2 === "small" && styles$7.small,
20194
+ disabled2 && styles$7.disabled,
20015
20195
  disabled2 && chamferStyles.disabled,
20016
20196
  disabled2 && hatchStyles.hatch,
20017
- isDragging && styles$6.dragging,
20018
- selectedFiles.length > 0 && styles$6.hasFiles,
20197
+ isDragging && styles$7.dragging,
20198
+ selectedFiles.length > 0 && styles$7.hasFiles,
20019
20199
  dropzoneClassName
20020
20200
  ),
20021
20201
  onClick: handleDropzoneClick,
@@ -20033,34 +20213,34 @@ const FileUpload = forwardRef(function FileUpload2({
20033
20213
  {
20034
20214
  ref: setInputNode,
20035
20215
  id: inputId,
20036
- className: styles$6.input,
20216
+ className: styles$7.input,
20037
20217
  type: "file",
20038
20218
  disabled: disabled2,
20039
20219
  ...inputProps,
20040
20220
  onChange: handleInputChange
20041
20221
  }
20042
20222
  ),
20043
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$6.dropzoneContent, children: [
20044
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$6.dropzoneIcon, "aria-hidden": true, children: dropzoneIcon2 }),
20045
- /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: styles$6.dropzoneText, children: [
20046
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$6.dropzoneTitle, children: selectedSummary }),
20047
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$6.dropzoneHint, children: hintText })
20223
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$7.dropzoneContent, children: [
20224
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$7.dropzoneIcon, "aria-hidden": true, children: dropzoneIcon2 }),
20225
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: styles$7.dropzoneText, children: [
20226
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$7.dropzoneTitle, children: selectedSummary }),
20227
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$7.dropzoneHint, children: hintText })
20048
20228
  ] })
20049
20229
  ] }),
20050
20230
  children2
20051
20231
  ]
20052
20232
  }
20053
20233
  ),
20054
- helperText2 && /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: styles$6.helperText, children: helperText2 }),
20055
- showFileList && selectedFiles.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$6.fileList, children: previewItems.map((item2, index2) => {
20234
+ helperText2 && /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: styles$7.helperText, children: helperText2 }),
20235
+ showFileList && selectedFiles.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$7.fileList, children: previewItems.map((item2, index2) => {
20056
20236
  if (renderFile) {
20057
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$6.customFileRow, children: [
20058
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$6.customFile, children: renderFile(item2.file, index2) }),
20237
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$7.customFileRow, children: [
20238
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$7.customFile, children: renderFile(item2.file, index2) }),
20059
20239
  removable && /* @__PURE__ */ jsxRuntimeExports.jsx(
20060
20240
  "button",
20061
20241
  {
20062
20242
  type: "button",
20063
- className: styles$6.removeButton,
20243
+ className: styles$7.removeButton,
20064
20244
  onClick: (event) => handleRemoveFile(index2, event),
20065
20245
  "aria-label": `Remove ${item2.name}`,
20066
20246
  disabled: disabled2,
@@ -20069,26 +20249,26 @@ const FileUpload = forwardRef(function FileUpload2({
20069
20249
  )
20070
20250
  ] }, `${item2.name}-${index2}`);
20071
20251
  }
20072
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$6.fileItem, children: [
20073
- /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: styles$6.fileInfo, children: [
20074
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$6.filePreview, "aria-hidden": true, children: item2.previewUrl ? /* @__PURE__ */ jsxRuntimeExports.jsx(
20252
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$7.fileItem, children: [
20253
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: styles$7.fileInfo, children: [
20254
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$7.filePreview, "aria-hidden": true, children: item2.previewUrl ? /* @__PURE__ */ jsxRuntimeExports.jsx(
20075
20255
  "img",
20076
20256
  {
20077
- className: styles$6.filePreviewImage,
20257
+ className: styles$7.filePreviewImage,
20078
20258
  src: item2.previewUrl,
20079
20259
  alt: ""
20080
20260
  }
20081
20261
  ) : fileFallbackIcon }),
20082
- /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: styles$6.fileMeta, children: [
20083
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$6.fileName, children: item2.name }),
20084
- item2.sizeText && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$6.fileSize, children: item2.sizeText })
20262
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: styles$7.fileMeta, children: [
20263
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$7.fileName, children: item2.name }),
20264
+ item2.sizeText && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$7.fileSize, children: item2.sizeText })
20085
20265
  ] })
20086
20266
  ] }),
20087
20267
  removable && /* @__PURE__ */ jsxRuntimeExports.jsx(
20088
20268
  "button",
20089
20269
  {
20090
20270
  type: "button",
20091
- className: styles$6.removeButton,
20271
+ className: styles$7.removeButton,
20092
20272
  onClick: (event) => handleRemoveFile(index2, event),
20093
20273
  "aria-label": `Remove ${item2.name}`,
20094
20274
  disabled: disabled2,
@@ -20287,7 +20467,7 @@ var RovingFocusGroupImpl = React.forwardRef((props, forwardedRef) => {
20287
20467
  }
20288
20468
  );
20289
20469
  });
20290
- var ITEM_NAME$4 = "RovingFocusGroupItem";
20470
+ var ITEM_NAME$5 = "RovingFocusGroupItem";
20291
20471
  var RovingFocusGroupItem = React.forwardRef(
20292
20472
  (props, forwardedRef) => {
20293
20473
  const {
@@ -20300,7 +20480,7 @@ var RovingFocusGroupItem = React.forwardRef(
20300
20480
  } = props;
20301
20481
  const autoId = useId();
20302
20482
  const id2 = tabStopId || autoId;
20303
- const context = useRovingFocusContext(ITEM_NAME$4, __scopeRovingFocusGroup);
20483
+ const context = useRovingFocusContext(ITEM_NAME$5, __scopeRovingFocusGroup);
20304
20484
  const isCurrentTabStop = context.currentTabStopId === id2;
20305
20485
  const getItems = useCollection$2(__scopeRovingFocusGroup);
20306
20486
  const { onFocusableItemAdd, onFocusableItemRemove, currentTabStopId } = context;
@@ -20357,7 +20537,7 @@ var RovingFocusGroupItem = React.forwardRef(
20357
20537
  );
20358
20538
  }
20359
20539
  );
20360
- RovingFocusGroupItem.displayName = ITEM_NAME$4;
20540
+ RovingFocusGroupItem.displayName = ITEM_NAME$5;
20361
20541
  var MAP_KEY_TO_FOCUS_INTENT = {
20362
20542
  ArrowLeft: "prev",
20363
20543
  ArrowUp: "prev",
@@ -20527,7 +20707,7 @@ var [createRadioGroupContext] = createContextScope(RADIO_GROUP_NAME$2, [
20527
20707
  createRovingFocusGroupScope,
20528
20708
  createRadioScope
20529
20709
  ]);
20530
- var useRovingFocusGroupScope$1 = createRovingFocusGroupScope();
20710
+ var useRovingFocusGroupScope$2 = createRovingFocusGroupScope();
20531
20711
  var useRadioScope = createRadioScope();
20532
20712
  var [RadioGroupProvider$1, useRadioGroupContext$1] = createRadioGroupContext(RADIO_GROUP_NAME$2);
20533
20713
  var RadioGroup$2 = React.forwardRef(
@@ -20545,7 +20725,7 @@ var RadioGroup$2 = React.forwardRef(
20545
20725
  onValueChange,
20546
20726
  ...groupProps
20547
20727
  } = props;
20548
- const rovingFocusGroupScope = useRovingFocusGroupScope$1(__scopeRadioGroup);
20728
+ const rovingFocusGroupScope = useRovingFocusGroupScope$2(__scopeRadioGroup);
20549
20729
  const direction = useDirection(dir);
20550
20730
  const [value, setValue] = useControllableState({
20551
20731
  prop: valueProp,
@@ -20589,13 +20769,13 @@ var RadioGroup$2 = React.forwardRef(
20589
20769
  }
20590
20770
  );
20591
20771
  RadioGroup$2.displayName = RADIO_GROUP_NAME$2;
20592
- var ITEM_NAME$3 = "RadioGroupItem";
20772
+ var ITEM_NAME$4 = "RadioGroupItem";
20593
20773
  var RadioGroupItem = React.forwardRef(
20594
20774
  (props, forwardedRef) => {
20595
20775
  const { __scopeRadioGroup, disabled: disabled2, ...itemProps } = props;
20596
- const context = useRadioGroupContext$1(ITEM_NAME$3, __scopeRadioGroup);
20776
+ const context = useRadioGroupContext$1(ITEM_NAME$4, __scopeRadioGroup);
20597
20777
  const isDisabled = context.disabled || disabled2;
20598
- const rovingFocusGroupScope = useRovingFocusGroupScope$1(__scopeRadioGroup);
20778
+ const rovingFocusGroupScope = useRovingFocusGroupScope$2(__scopeRadioGroup);
20599
20779
  const radioScope = useRadioScope(__scopeRadioGroup);
20600
20780
  const ref = React.useRef(null);
20601
20781
  const composedRefs = useComposedRefs(forwardedRef, ref);
@@ -20645,7 +20825,7 @@ var RadioGroupItem = React.forwardRef(
20645
20825
  );
20646
20826
  }
20647
20827
  );
20648
- RadioGroupItem.displayName = ITEM_NAME$3;
20828
+ RadioGroupItem.displayName = ITEM_NAME$4;
20649
20829
  var INDICATOR_NAME2 = "RadioGroupIndicator";
20650
20830
  var RadioGroupIndicator = React.forwardRef(
20651
20831
  (props, forwardedRef) => {
@@ -20655,49 +20835,49 @@ var RadioGroupIndicator = React.forwardRef(
20655
20835
  }
20656
20836
  );
20657
20837
  RadioGroupIndicator.displayName = INDICATOR_NAME2;
20658
- var Root2$3 = RadioGroup$2;
20659
- var Item2$2 = RadioGroupItem;
20838
+ var Root2$4 = RadioGroup$2;
20839
+ var Item2$3 = RadioGroupItem;
20660
20840
  var Indicator = RadioGroupIndicator;
20661
20841
  const group = "_group_hpxu6_19";
20662
20842
  const wrapper = "_wrapper_hpxu6_25";
20663
- const disabled$2 = "_disabled_hpxu6_34";
20664
- const root = "_root_hpxu6_39";
20843
+ const disabled$3 = "_disabled_hpxu6_34";
20844
+ const root$1 = "_root_hpxu6_39";
20665
20845
  const indicator = "_indicator_hpxu6_72";
20666
20846
  const dot = "_dot_hpxu6_81";
20667
- const large$2 = "_large_hpxu6_88";
20668
- const small$2 = "_small_hpxu6_93";
20847
+ const large$3 = "_large_hpxu6_88";
20848
+ const small$3 = "_small_hpxu6_93";
20669
20849
  const disabledDot = "_disabledDot_hpxu6_98";
20670
20850
  const label = "_label_hpxu6_102";
20671
20851
  const chamfer = "_chamfer_hpxu6_107";
20672
- const primary$4 = "_primary_hpxu6_112";
20673
- const secondary$4 = "_secondary_hpxu6_121";
20674
- const success$4 = "_success_hpxu6_130";
20675
- const warning$4 = "_warning_hpxu6_139";
20676
- const danger$4 = "_danger_hpxu6_148";
20677
- const info$4 = "_info_hpxu6_157";
20678
- const styles$5 = {
20852
+ const primary$5 = "_primary_hpxu6_112";
20853
+ const secondary$5 = "_secondary_hpxu6_121";
20854
+ const success$5 = "_success_hpxu6_130";
20855
+ const warning$5 = "_warning_hpxu6_139";
20856
+ const danger$5 = "_danger_hpxu6_148";
20857
+ const info$5 = "_info_hpxu6_157";
20858
+ const styles$6 = {
20679
20859
  group,
20680
20860
  wrapper,
20681
- disabled: disabled$2,
20682
- root,
20861
+ disabled: disabled$3,
20862
+ root: root$1,
20683
20863
  indicator,
20684
20864
  dot,
20685
- large: large$2,
20686
- small: small$2,
20865
+ large: large$3,
20866
+ small: small$3,
20687
20867
  disabledDot,
20688
20868
  label,
20689
20869
  chamfer,
20690
- primary: primary$4,
20691
- secondary: secondary$4,
20692
- success: success$4,
20693
- warning: warning$4,
20694
- danger: danger$4,
20695
- info: info$4
20870
+ primary: primary$5,
20871
+ secondary: secondary$5,
20872
+ success: success$5,
20873
+ warning: warning$5,
20874
+ danger: danger$5,
20875
+ info: info$5
20696
20876
  };
20697
20877
  const RadioGroup$1 = ({ className, children: children2, ...props }) => /* @__PURE__ */ jsxRuntimeExports.jsx(
20698
- Root2$3,
20878
+ Root2$4,
20699
20879
  {
20700
- className: clsx(styles$5.group, className),
20880
+ className: clsx(styles$6.group, className),
20701
20881
  ...props,
20702
20882
  children: children2
20703
20883
  }
@@ -20712,33 +20892,33 @@ function Radio({
20712
20892
  className,
20713
20893
  ...props
20714
20894
  }) {
20715
- const variantClass = variant && styles$5[variant];
20716
- const sizeClass = size2 === "large" ? styles$5.large : size2 === "small" ? styles$5.small : null;
20895
+ const variantClass = variant && styles$6[variant];
20896
+ const sizeClass = size2 === "large" ? styles$6.large : size2 === "small" ? styles$6.small : null;
20717
20897
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
20718
20898
  "label",
20719
20899
  {
20720
- className: clsx(styles$5.wrapper, variantClass, disabled2 && styles$5.disabled),
20900
+ className: clsx(styles$6.wrapper, variantClass, disabled2 && styles$6.disabled),
20721
20901
  children: [
20722
20902
  /* @__PURE__ */ jsxRuntimeExports.jsx(
20723
- Item2$2,
20903
+ Item2$3,
20724
20904
  {
20725
20905
  className: clsx(
20726
- styles$5.root,
20906
+ styles$6.root,
20727
20907
  variantClass,
20728
20908
  sizeClass,
20729
20909
  chamfer2 && chamferStyles.chamfer,
20730
20910
  disabled2 && chamferStyles.disabled,
20731
20911
  disabled2 && hatchStyles.hatch,
20732
- disabled2 && styles$5.disabledDot,
20912
+ disabled2 && styles$6.disabledDot,
20733
20913
  className
20734
20914
  ),
20735
20915
  value,
20736
20916
  disabled: disabled2,
20737
20917
  ...props,
20738
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(Indicator, { className: styles$5.indicator, children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$5.dot }) })
20918
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(Indicator, { className: styles$6.indicator, children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$6.dot }) })
20739
20919
  }
20740
20920
  ),
20741
- label2 && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$5.label, children: label2 })
20921
+ label2 && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$6.label, children: label2 })
20742
20922
  ]
20743
20923
  }
20744
20924
  );
@@ -23060,7 +23240,7 @@ const arrow$2 = (options, deps) => ({
23060
23240
  ...arrow$1(options),
23061
23241
  options: [options, deps]
23062
23242
  });
23063
- var NAME$1 = "Arrow";
23243
+ var NAME$2 = "Arrow";
23064
23244
  var Arrow$1 = React.forwardRef((props, forwardedRef) => {
23065
23245
  const { children: children2, width = 10, height = 5, ...arrowProps } = props;
23066
23246
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -23076,7 +23256,7 @@ var Arrow$1 = React.forwardRef((props, forwardedRef) => {
23076
23256
  }
23077
23257
  );
23078
23258
  });
23079
- Arrow$1.displayName = NAME$1;
23259
+ Arrow$1.displayName = NAME$2;
23080
23260
  var Root$1 = Arrow$1;
23081
23261
  var POPPER_NAME = "Popper";
23082
23262
  var [createPopperContext, createPopperScope] = createContextScope(POPPER_NAME);
@@ -23343,7 +23523,7 @@ function getSideAndAlignFromPlacement(placement) {
23343
23523
  const [side, align = "center"] = placement.split("-");
23344
23524
  return [side, align];
23345
23525
  }
23346
- var Root2$2 = Popper;
23526
+ var Root2$3 = Popper;
23347
23527
  var Anchor = PopperAnchor;
23348
23528
  var Content$1 = PopperContent;
23349
23529
  var Arrow = PopperArrow;
@@ -23369,7 +23549,7 @@ var VISUALLY_HIDDEN_STYLES = Object.freeze({
23369
23549
  whiteSpace: "nowrap",
23370
23550
  wordWrap: "normal"
23371
23551
  });
23372
- var NAME = "VisuallyHidden";
23552
+ var NAME$1 = "VisuallyHidden";
23373
23553
  var VisuallyHidden = React.forwardRef(
23374
23554
  (props, forwardedRef) => {
23375
23555
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -23382,7 +23562,7 @@ var VisuallyHidden = React.forwardRef(
23382
23562
  );
23383
23563
  }
23384
23564
  );
23385
- VisuallyHidden.displayName = NAME;
23565
+ VisuallyHidden.displayName = NAME$1;
23386
23566
  var getDefaultParent = function(originalTarget) {
23387
23567
  if (typeof document === "undefined") {
23388
23568
  return null;
@@ -24211,7 +24391,7 @@ var Select = (props) => {
24211
24391
  const isFormControl = trigger2 ? form || !!trigger2.closest("form") : true;
24212
24392
  const [nativeOptionsSet, setNativeOptionsSet] = React.useState(/* @__PURE__ */ new Set());
24213
24393
  const nativeSelectKey = Array.from(nativeOptionsSet).map((option) => option.props.value).join(";");
24214
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Root2$2, { ...popperScope, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
24394
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Root2$3, { ...popperScope, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
24215
24395
  SelectProvider,
24216
24396
  {
24217
24397
  required,
@@ -24928,8 +25108,8 @@ var SelectLabel = React.forwardRef(
24928
25108
  }
24929
25109
  );
24930
25110
  SelectLabel.displayName = LABEL_NAME$2;
24931
- var ITEM_NAME$2 = "SelectItem";
24932
- var [SelectItemContextProvider, useSelectItemContext] = createSelectContext(ITEM_NAME$2);
25111
+ var ITEM_NAME$3 = "SelectItem";
25112
+ var [SelectItemContextProvider, useSelectItemContext] = createSelectContext(ITEM_NAME$3);
24933
25113
  var SelectItem = React.forwardRef(
24934
25114
  (props, forwardedRef) => {
24935
25115
  const {
@@ -24939,8 +25119,8 @@ var SelectItem = React.forwardRef(
24939
25119
  textValue: textValueProp,
24940
25120
  ...itemProps
24941
25121
  } = props;
24942
- const context = useSelectContext(ITEM_NAME$2, __scopeSelect);
24943
- const contentContext = useSelectContentContext(ITEM_NAME$2, __scopeSelect);
25122
+ const context = useSelectContext(ITEM_NAME$3, __scopeSelect);
25123
+ const contentContext = useSelectContentContext(ITEM_NAME$3, __scopeSelect);
24944
25124
  const isSelected = context.value === value;
24945
25125
  const [textValue, setTextValue] = React.useState(textValueProp ?? "");
24946
25126
  const [isFocused, setIsFocused] = React.useState(false);
@@ -25030,7 +25210,7 @@ var SelectItem = React.forwardRef(
25030
25210
  );
25031
25211
  }
25032
25212
  );
25033
- SelectItem.displayName = ITEM_NAME$2;
25213
+ SelectItem.displayName = ITEM_NAME$3;
25034
25214
  var ITEM_TEXT_NAME = "SelectItemText";
25035
25215
  var SelectItemText = React.forwardRef(
25036
25216
  (props, forwardedRef) => {
@@ -25276,7 +25456,7 @@ function findNextItem(items, search, currentItem) {
25276
25456
  function wrapArray$1(array2, startIndex) {
25277
25457
  return array2.map((_2, index2) => array2[(startIndex + index2) % array2.length]);
25278
25458
  }
25279
- var Root2$1 = Select;
25459
+ var Root2$2 = Select;
25280
25460
  var Trigger$2 = SelectTrigger;
25281
25461
  var Value = SelectValue;
25282
25462
  var Icon = SelectIcon;
@@ -25286,32 +25466,32 @@ var Viewport = SelectViewport;
25286
25466
  var Item = SelectItem;
25287
25467
  var ItemText = SelectItemText;
25288
25468
  const trigger$1 = "_trigger_1u214_7";
25289
- const large$1 = "_large_1u214_31";
25290
- const small$1 = "_small_1u214_36";
25291
- const disabled$1 = "_disabled_1u214_41";
25469
+ const large$2 = "_large_1u214_31";
25470
+ const small$2 = "_small_1u214_36";
25471
+ const disabled$2 = "_disabled_1u214_41";
25292
25472
  const icon$1 = "_icon_1u214_46";
25293
25473
  const content$3 = "_content_1u214_52";
25294
- const item$1 = "_item_1u214_57";
25295
- const primary$3 = "_primary_1u214_79";
25296
- const success$3 = "_success_1u214_89";
25297
- const warning$3 = "_warning_1u214_99";
25298
- const danger$3 = "_danger_1u214_109";
25299
- const info$3 = "_info_1u214_119";
25300
- const secondary$3 = "_secondary_1u214_129";
25301
- const styles$4 = {
25474
+ const item$2 = "_item_1u214_57";
25475
+ const primary$4 = "_primary_1u214_79";
25476
+ const success$4 = "_success_1u214_89";
25477
+ const warning$4 = "_warning_1u214_99";
25478
+ const danger$4 = "_danger_1u214_109";
25479
+ const info$4 = "_info_1u214_119";
25480
+ const secondary$4 = "_secondary_1u214_129";
25481
+ const styles$5 = {
25302
25482
  trigger: trigger$1,
25303
- large: large$1,
25304
- small: small$1,
25305
- disabled: disabled$1,
25483
+ large: large$2,
25484
+ small: small$2,
25485
+ disabled: disabled$2,
25306
25486
  icon: icon$1,
25307
25487
  content: content$3,
25308
- item: item$1,
25309
- primary: primary$3,
25310
- success: success$3,
25311
- warning: warning$3,
25312
- danger: danger$3,
25313
- info: info$3,
25314
- secondary: secondary$3
25488
+ item: item$2,
25489
+ primary: primary$4,
25490
+ success: success$4,
25491
+ warning: warning$4,
25492
+ danger: danger$4,
25493
+ info: info$4,
25494
+ secondary: secondary$4
25315
25495
  };
25316
25496
  function SelectInput({
25317
25497
  options,
@@ -25324,7 +25504,7 @@ function SelectInput({
25324
25504
  loading = false
25325
25505
  }) {
25326
25506
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
25327
- Root2$1,
25507
+ Root2$2,
25328
25508
  {
25329
25509
  value,
25330
25510
  onValueChange,
@@ -25334,18 +25514,18 @@ function SelectInput({
25334
25514
  Trigger$2,
25335
25515
  {
25336
25516
  className: clsx(
25337
- styles$4.trigger,
25338
- styles$4[variant],
25517
+ styles$5.trigger,
25518
+ styles$5[variant],
25339
25519
  chamfer2 && chamferStyles.chamfer,
25340
- size2 === "large" && styles$4.large,
25341
- size2 === "small" && styles$4.small,
25342
- disabled2 && styles$4.disabled,
25520
+ size2 === "large" && styles$5.large,
25521
+ size2 === "small" && styles$5.small,
25522
+ disabled2 && styles$5.disabled,
25343
25523
  disabled2 && hatchStyles.hatch
25344
25524
  // loading && styles.disabled
25345
25525
  ),
25346
25526
  children: [
25347
25527
  /* @__PURE__ */ jsxRuntimeExports.jsx(Value, {}),
25348
- loading ? /* @__PURE__ */ jsxRuntimeExports.jsx(Loader, {}) : /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, { className: styles$4.icon, children: "▾" })
25528
+ loading ? /* @__PURE__ */ jsxRuntimeExports.jsx(Loader, {}) : /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, { className: styles$5.icon, children: "▾" })
25349
25529
  ]
25350
25530
  }
25351
25531
  ),
@@ -25353,7 +25533,7 @@ function SelectInput({
25353
25533
  Content2$2,
25354
25534
  {
25355
25535
  className: classNames(
25356
- styles$4.content,
25536
+ styles$5.content,
25357
25537
  chamfer2 && chamferStyles.chamfer
25358
25538
  ),
25359
25539
  sideOffset: 6,
@@ -25362,7 +25542,7 @@ function SelectInput({
25362
25542
  {
25363
25543
  value: opt.value,
25364
25544
  disabled: opt.disabled,
25365
- className: styles$4.item,
25545
+ className: styles$5.item,
25366
25546
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(ItemText, { children: opt.label })
25367
25547
  },
25368
25548
  opt.value
@@ -25373,6 +25553,278 @@ function SelectInput({
25373
25553
  }
25374
25554
  );
25375
25555
  }
25556
+ var NAME = "Toggle";
25557
+ var Toggle = React.forwardRef((props, forwardedRef) => {
25558
+ const { pressed: pressedProp, defaultPressed, onPressedChange, ...buttonProps } = props;
25559
+ const [pressed, setPressed] = useControllableState({
25560
+ prop: pressedProp,
25561
+ onChange: onPressedChange,
25562
+ defaultProp: defaultPressed ?? false,
25563
+ caller: NAME
25564
+ });
25565
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
25566
+ Primitive.button,
25567
+ {
25568
+ type: "button",
25569
+ "aria-pressed": pressed,
25570
+ "data-state": pressed ? "on" : "off",
25571
+ "data-disabled": props.disabled ? "" : void 0,
25572
+ ...buttonProps,
25573
+ ref: forwardedRef,
25574
+ onClick: composeEventHandlers(props.onClick, () => {
25575
+ if (!props.disabled) {
25576
+ setPressed(!pressed);
25577
+ }
25578
+ })
25579
+ }
25580
+ );
25581
+ });
25582
+ Toggle.displayName = NAME;
25583
+ var TOGGLE_GROUP_NAME = "ToggleGroup";
25584
+ var [createToggleGroupContext] = createContextScope(TOGGLE_GROUP_NAME, [
25585
+ createRovingFocusGroupScope
25586
+ ]);
25587
+ var useRovingFocusGroupScope$1 = createRovingFocusGroupScope();
25588
+ var ToggleGroup = React__default.forwardRef((props, forwardedRef) => {
25589
+ const { type, ...toggleGroupProps } = props;
25590
+ if (type === "single") {
25591
+ const singleProps = toggleGroupProps;
25592
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(ToggleGroupImplSingle, { ...singleProps, ref: forwardedRef });
25593
+ }
25594
+ if (type === "multiple") {
25595
+ const multipleProps = toggleGroupProps;
25596
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(ToggleGroupImplMultiple, { ...multipleProps, ref: forwardedRef });
25597
+ }
25598
+ throw new Error(`Missing prop \`type\` expected on \`${TOGGLE_GROUP_NAME}\``);
25599
+ });
25600
+ ToggleGroup.displayName = TOGGLE_GROUP_NAME;
25601
+ var [ToggleGroupValueProvider, useToggleGroupValueContext] = createToggleGroupContext(TOGGLE_GROUP_NAME);
25602
+ var ToggleGroupImplSingle = React__default.forwardRef((props, forwardedRef) => {
25603
+ const {
25604
+ value: valueProp,
25605
+ defaultValue,
25606
+ onValueChange = () => {
25607
+ },
25608
+ ...toggleGroupSingleProps
25609
+ } = props;
25610
+ const [value, setValue] = useControllableState({
25611
+ prop: valueProp,
25612
+ defaultProp: defaultValue ?? "",
25613
+ onChange: onValueChange,
25614
+ caller: TOGGLE_GROUP_NAME
25615
+ });
25616
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
25617
+ ToggleGroupValueProvider,
25618
+ {
25619
+ scope: props.__scopeToggleGroup,
25620
+ type: "single",
25621
+ value: React__default.useMemo(() => value ? [value] : [], [value]),
25622
+ onItemActivate: setValue,
25623
+ onItemDeactivate: React__default.useCallback(() => setValue(""), [setValue]),
25624
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(ToggleGroupImpl, { ...toggleGroupSingleProps, ref: forwardedRef })
25625
+ }
25626
+ );
25627
+ });
25628
+ var ToggleGroupImplMultiple = React__default.forwardRef((props, forwardedRef) => {
25629
+ const {
25630
+ value: valueProp,
25631
+ defaultValue,
25632
+ onValueChange = () => {
25633
+ },
25634
+ ...toggleGroupMultipleProps
25635
+ } = props;
25636
+ const [value, setValue] = useControllableState({
25637
+ prop: valueProp,
25638
+ defaultProp: defaultValue ?? [],
25639
+ onChange: onValueChange,
25640
+ caller: TOGGLE_GROUP_NAME
25641
+ });
25642
+ const handleButtonActivate = React__default.useCallback(
25643
+ (itemValue) => setValue((prevValue = []) => [...prevValue, itemValue]),
25644
+ [setValue]
25645
+ );
25646
+ const handleButtonDeactivate = React__default.useCallback(
25647
+ (itemValue) => setValue((prevValue = []) => prevValue.filter((value2) => value2 !== itemValue)),
25648
+ [setValue]
25649
+ );
25650
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
25651
+ ToggleGroupValueProvider,
25652
+ {
25653
+ scope: props.__scopeToggleGroup,
25654
+ type: "multiple",
25655
+ value,
25656
+ onItemActivate: handleButtonActivate,
25657
+ onItemDeactivate: handleButtonDeactivate,
25658
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(ToggleGroupImpl, { ...toggleGroupMultipleProps, ref: forwardedRef })
25659
+ }
25660
+ );
25661
+ });
25662
+ ToggleGroup.displayName = TOGGLE_GROUP_NAME;
25663
+ var [ToggleGroupContext, useToggleGroupContext] = createToggleGroupContext(TOGGLE_GROUP_NAME);
25664
+ var ToggleGroupImpl = React__default.forwardRef(
25665
+ (props, forwardedRef) => {
25666
+ const {
25667
+ __scopeToggleGroup,
25668
+ disabled: disabled2 = false,
25669
+ rovingFocus = true,
25670
+ orientation,
25671
+ dir,
25672
+ loop = true,
25673
+ ...toggleGroupProps
25674
+ } = props;
25675
+ const rovingFocusGroupScope = useRovingFocusGroupScope$1(__scopeToggleGroup);
25676
+ const direction = useDirection(dir);
25677
+ const commonProps = { role: "group", dir: direction, ...toggleGroupProps };
25678
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(ToggleGroupContext, { scope: __scopeToggleGroup, rovingFocus, disabled: disabled2, children: rovingFocus ? /* @__PURE__ */ jsxRuntimeExports.jsx(
25679
+ Root$2,
25680
+ {
25681
+ asChild: true,
25682
+ ...rovingFocusGroupScope,
25683
+ orientation,
25684
+ dir: direction,
25685
+ loop,
25686
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(Primitive.div, { ...commonProps, ref: forwardedRef })
25687
+ }
25688
+ ) : /* @__PURE__ */ jsxRuntimeExports.jsx(Primitive.div, { ...commonProps, ref: forwardedRef }) });
25689
+ }
25690
+ );
25691
+ var ITEM_NAME$2 = "ToggleGroupItem";
25692
+ var ToggleGroupItem = React__default.forwardRef(
25693
+ (props, forwardedRef) => {
25694
+ const valueContext = useToggleGroupValueContext(ITEM_NAME$2, props.__scopeToggleGroup);
25695
+ const context = useToggleGroupContext(ITEM_NAME$2, props.__scopeToggleGroup);
25696
+ const rovingFocusGroupScope = useRovingFocusGroupScope$1(props.__scopeToggleGroup);
25697
+ const pressed = valueContext.value.includes(props.value);
25698
+ const disabled2 = context.disabled || props.disabled;
25699
+ const commonProps = { ...props, pressed, disabled: disabled2 };
25700
+ const ref = React__default.useRef(null);
25701
+ return context.rovingFocus ? /* @__PURE__ */ jsxRuntimeExports.jsx(
25702
+ Item$1,
25703
+ {
25704
+ asChild: true,
25705
+ ...rovingFocusGroupScope,
25706
+ focusable: !disabled2,
25707
+ active: pressed,
25708
+ ref,
25709
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(ToggleGroupItemImpl, { ...commonProps, ref: forwardedRef })
25710
+ }
25711
+ ) : /* @__PURE__ */ jsxRuntimeExports.jsx(ToggleGroupItemImpl, { ...commonProps, ref: forwardedRef });
25712
+ }
25713
+ );
25714
+ ToggleGroupItem.displayName = ITEM_NAME$2;
25715
+ var ToggleGroupItemImpl = React__default.forwardRef(
25716
+ (props, forwardedRef) => {
25717
+ const { __scopeToggleGroup, value, ...itemProps } = props;
25718
+ const valueContext = useToggleGroupValueContext(ITEM_NAME$2, __scopeToggleGroup);
25719
+ const singleProps = { role: "radio", "aria-checked": props.pressed, "aria-pressed": void 0 };
25720
+ const typeProps = valueContext.type === "single" ? singleProps : void 0;
25721
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
25722
+ Toggle,
25723
+ {
25724
+ ...typeProps,
25725
+ ...itemProps,
25726
+ ref: forwardedRef,
25727
+ onPressedChange: (pressed) => {
25728
+ if (pressed) {
25729
+ valueContext.onItemActivate(value);
25730
+ } else {
25731
+ valueContext.onItemDeactivate(value);
25732
+ }
25733
+ }
25734
+ }
25735
+ );
25736
+ }
25737
+ );
25738
+ var Root2$1 = ToggleGroup;
25739
+ var Item2$2 = ToggleGroupItem;
25740
+ const root = "_root_wrsjc_31";
25741
+ const item$1 = "_item_wrsjc_47";
25742
+ const chamferEnabled = "_chamferEnabled_wrsjc_87";
25743
+ const large$1 = "_large_wrsjc_127";
25744
+ const small$1 = "_small_wrsjc_132";
25745
+ const disabled$1 = "_disabled_wrsjc_137";
25746
+ const itemDisabled = "_itemDisabled_wrsjc_142";
25747
+ const primary$3 = "_primary_wrsjc_148";
25748
+ const secondary$3 = "_secondary_wrsjc_158";
25749
+ const success$3 = "_success_wrsjc_168";
25750
+ const warning$3 = "_warning_wrsjc_178";
25751
+ const danger$3 = "_danger_wrsjc_188";
25752
+ const info$3 = "_info_wrsjc_198";
25753
+ const styles$4 = {
25754
+ root,
25755
+ item: item$1,
25756
+ chamferEnabled,
25757
+ large: large$1,
25758
+ small: small$1,
25759
+ disabled: disabled$1,
25760
+ itemDisabled,
25761
+ primary: primary$3,
25762
+ secondary: secondary$3,
25763
+ success: success$3,
25764
+ warning: warning$3,
25765
+ danger: danger$3,
25766
+ info: info$3
25767
+ };
25768
+ function SegmentedControl({
25769
+ options = [],
25770
+ value,
25771
+ defaultValue,
25772
+ onValueChange,
25773
+ allowEmpty = false,
25774
+ variant,
25775
+ size: size2,
25776
+ disabled: disabled2,
25777
+ chamfer: chamfer2 = true,
25778
+ className,
25779
+ itemClassName,
25780
+ ...props
25781
+ }) {
25782
+ const isControlled = value !== void 0;
25783
+ const [internalValue, setInternalValue] = useState(defaultValue ?? "");
25784
+ const selectedValue = isControlled ? value : internalValue;
25785
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
25786
+ Root2$1,
25787
+ {
25788
+ type: "single",
25789
+ value: selectedValue,
25790
+ onValueChange: (nextValue) => {
25791
+ if (!allowEmpty && !nextValue) {
25792
+ return;
25793
+ }
25794
+ if (!isControlled) {
25795
+ setInternalValue(nextValue);
25796
+ }
25797
+ onValueChange?.(nextValue);
25798
+ },
25799
+ disabled: disabled2,
25800
+ className: clsx(
25801
+ styles$4.root,
25802
+ styles$4[variant],
25803
+ chamfer2 && styles$4.chamferEnabled,
25804
+ size2 === "large" && styles$4.large,
25805
+ size2 === "small" && styles$4.small,
25806
+ disabled2 && hatchStyles.hatch,
25807
+ disabled2 && styles$4.disabled,
25808
+ className
25809
+ ),
25810
+ ...props,
25811
+ children: options.map((option) => /* @__PURE__ */ jsxRuntimeExports.jsx(
25812
+ Item2$2,
25813
+ {
25814
+ value: option.value,
25815
+ disabled: disabled2 || option.disabled,
25816
+ className: clsx(
25817
+ styles$4.item,
25818
+ (disabled2 || option.disabled) && styles$4.itemDisabled,
25819
+ itemClassName
25820
+ ),
25821
+ children: option.label
25822
+ },
25823
+ option.value
25824
+ ))
25825
+ }
25826
+ );
25827
+ }
25376
25828
  var SELECTION_KEYS = ["Enter", " "];
25377
25829
  var FIRST_KEYS = ["ArrowDown", "PageUp", "Home"];
25378
25830
  var LAST_KEYS = ["ArrowUp", "PageDown", "End"];
@@ -25417,7 +25869,7 @@ var Menu = (props) => {
25417
25869
  document.removeEventListener("pointermove", handlePointer, { capture: true });
25418
25870
  };
25419
25871
  }, []);
25420
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Root2$2, { ...popperScope, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
25872
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Root2$3, { ...popperScope, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
25421
25873
  MenuProvider,
25422
25874
  {
25423
25875
  scope: __scopeMenu,
@@ -27774,6 +28226,7 @@ export {
27774
28226
  RadarChart,
27775
28227
  Radio,
27776
28228
  RadioGroup$1 as RadioGroup,
28229
+ SegmentedControl,
27777
28230
  SelectInput as Select,
27778
28231
  toast,
27779
28232
  useJCUITheme,