@xsolla/xui-multi-select 0.221.1 → 0.222.0

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/README.md CHANGED
@@ -209,6 +209,28 @@ They solve different problems and can be combined:
209
209
 
210
210
  Use `removable: false` for a required, default-selected value that should still look like a normal selection.
211
211
 
212
+ #### Chip appearance (`variant="tag"`)
213
+
214
+ Selected options — and the `+N` overflow counter — render with a chip that is
215
+ **local to this package**, not the shared [`Tag`](./tag.md) component. Figma gave
216
+ MultiSelect its own item, which is **flat**: a background fill with no border,
217
+ where every `Tag` tone draws one.
218
+
219
+ - Geometry (height, padding, gap, icon and type scale) still comes from the
220
+ `Tag` size scale, so `size` behaves identically across both.
221
+ - The corner radius is the same at every size: `knob/lg/border-radius` (2px,
222
+ `theme.shape.knob.lg.borderRadius`), not the `Tag` radius scale.
223
+ - Colours come from the mono-secondary control tokens, with a hover fill on
224
+ chips the user can click and the input disable tokens when the control is
225
+ disabled.
226
+ - The chip is **internal** and deliberately not exported from the package
227
+ barrel — compose `<MultiSelect variant="tag">` rather than importing it. Use
228
+ `Tag` directly for standalone chips elsewhere in a UI.
229
+
230
+ Nothing about the props above changes with it: `removeTagsButtons`,
231
+ `MultiSelectOption.removable`, `+N` collapsing under `flexible={false}` and the
232
+ `text` variant all behave exactly as documented.
233
+
212
234
  ## Examples
213
235
 
214
236
  ### Sizes
@@ -395,3 +417,4 @@ const [selected, setSelected] = useState<MultiSelectValue>([]);
395
417
  - When `searchable`, the dropdown's search input exposes an `aria-label` matching `searchPlaceholder`; options filter in memory as the user types (web only).
396
418
  - When `selectAll`, the select-all row is exposed as a button whose `aria-label` matches its current action (`selectAllLabel` / `deselectAllLabel`), so the select ↔ deselect flip is announced.
397
419
  - A `removable: false` option renders no remove button, so assistive technology does not offer a removal action that would fail.
420
+ - Each chip's remove button is exposed as a button named *"Remove [label]"* when the option's label is a plain string, and *"Remove"* otherwise.
package/native/index.js CHANGED
@@ -376,19 +376,101 @@ var Icon = ({
376
376
  var isWeb = false;
377
377
 
378
378
  // src/MultiSelect.tsx
379
- var import_xui_core3 = require("@xsolla/xui-core");
380
- var import_xui_icons_base2 = require("@xsolla/xui-icons-base");
379
+ var import_xui_core4 = require("@xsolla/xui-core");
380
+ var import_xui_icons_base3 = require("@xsolla/xui-icons-base");
381
381
 
382
382
  // src/MultiSelectControl.tsx
383
383
  var import_react3 = require("react");
384
- var import_xui_core2 = require("@xsolla/xui-core");
385
- var import_xui_icons_base = require("@xsolla/xui-icons-base");
384
+ var import_xui_core3 = require("@xsolla/xui-core");
385
+ var import_xui_icons_base2 = require("@xsolla/xui-icons-base");
386
386
 
387
387
  // src/useMultiSelectControl.tsx
388
388
  var import_react2 = require("react");
389
- var import_xui_tag = require("@xsolla/xui-tag");
389
+ var import_xui_core2 = require("@xsolla/xui-core");
390
+
391
+ // src/MultiSelectItem.tsx
390
392
  var import_xui_core = require("@xsolla/xui-core");
393
+ var import_xui_icons_base = require("@xsolla/xui-icons-base");
391
394
  var import_jsx_runtime4 = require("react/jsx-runtime");
395
+ var MultiSelectItem = ({
396
+ size = "md",
397
+ children,
398
+ onRemove,
399
+ disabled = false,
400
+ interactive = false,
401
+ testID,
402
+ themeMode,
403
+ themeProductContext
404
+ }) => {
405
+ const { theme } = (0, import_xui_core.useResolvedTheme)({ themeMode, themeProductContext });
406
+ const sizeStyles = theme.sizing.tag(size);
407
+ const chipColors = theme.colors.control.mono.secondary;
408
+ const inputColors = theme.colors.control.input;
409
+ const backgroundColor = disabled ? inputColors.bgDisable : chipColors.bg;
410
+ const contentColor = disabled ? inputColors.textDisable : theme.colors.content.primary;
411
+ const removeLabel = typeof children === "string" ? `Remove ${children}` : "Remove";
412
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
413
+ Box,
414
+ {
415
+ testID,
416
+ backgroundColor,
417
+ borderRadius: theme.shape.knob.lg.borderRadius,
418
+ height: sizeStyles.height,
419
+ paddingHorizontal: sizeStyles.padding,
420
+ flexDirection: "row",
421
+ alignItems: "center",
422
+ justifyContent: "center",
423
+ gap: sizeStyles.gap,
424
+ borderWidth: 0,
425
+ hoverStyle: interactive && !disabled ? { backgroundColor: chipColors.bgHover } : void 0,
426
+ style: {
427
+ overflow: "hidden",
428
+ textOverflow: "ellipsis",
429
+ whiteSpace: "nowrap"
430
+ },
431
+ children: [
432
+ children !== void 0 && children !== null && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
433
+ Text,
434
+ {
435
+ color: contentColor,
436
+ fontSize: sizeStyles.fontSize,
437
+ fontWeight: "500",
438
+ whiteSpace: "nowrap",
439
+ style: {
440
+ overflow: "hidden",
441
+ textOverflow: "ellipsis"
442
+ },
443
+ children
444
+ }
445
+ ),
446
+ onRemove && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
447
+ Box,
448
+ {
449
+ role: "button",
450
+ "aria-label": removeLabel,
451
+ "aria-disabled": disabled || void 0,
452
+ alignItems: "center",
453
+ justifyContent: "center",
454
+ onPress: disabled ? void 0 : onRemove,
455
+ style: { cursor: disabled ? "not-allowed" : "pointer" },
456
+ children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
457
+ import_xui_icons_base.Remove,
458
+ {
459
+ size: sizeStyles.iconSize,
460
+ color: contentColor,
461
+ variant: "line"
462
+ }
463
+ )
464
+ }
465
+ )
466
+ ]
467
+ }
468
+ );
469
+ };
470
+ MultiSelectItem.displayName = "MultiSelectItem";
471
+
472
+ // src/useMultiSelectControl.tsx
473
+ var import_jsx_runtime5 = require("react/jsx-runtime");
392
474
  var COUNT_ITEM_VALUE = "count-item";
393
475
  var useMultiSelectControl = ({
394
476
  variant,
@@ -404,7 +486,7 @@ var useMultiSelectControl = ({
404
486
  themeMode,
405
487
  themeProductContext
406
488
  }) => {
407
- const { theme } = (0, import_xui_core.useResolvedTheme)({ themeMode, themeProductContext });
489
+ const { theme } = (0, import_xui_core2.useResolvedTheme)({ themeMode, themeProductContext });
408
490
  const displayStateRef = (0, import_react2.useRef)(0 /* Placeholder */);
409
491
  const savedWidthsRef = (0, import_react2.useRef)(null);
410
492
  const itemsRef = (0, import_react2.useRef)(null);
@@ -468,7 +550,7 @@ var useMultiSelectControl = ({
468
550
  };
469
551
  const setPlaceholder = () => {
470
552
  setSelectedContent(
471
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
553
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
472
554
  Text,
473
555
  {
474
556
  color: theme.colors.control.input.placeholder,
@@ -521,7 +603,7 @@ var useMultiSelectControl = ({
521
603
  const canRemove = !isCount && !isLocked;
522
604
  const isReducable = index === 0 && displayStateRef.current === 3 /* Render */ && displayedItemsCount === 0 || flexible;
523
605
  if (variant === "tag") {
524
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
606
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
525
607
  Box,
526
608
  {
527
609
  onPress: canRemove ? (e) => {
@@ -530,14 +612,14 @@ var useMultiSelectControl = ({
530
612
  } : void 0,
531
613
  style: {
532
614
  minWidth: isReducable ? 0 : "fit-content",
533
- opacity: disabled ? 0.5 : 1,
534
615
  cursor: isLocked ? "default" : disabled || isCount ? "not-allowed" : "pointer"
535
616
  },
536
- children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
537
- import_xui_tag.Tag,
617
+ children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
618
+ MultiSelectItem,
538
619
  {
539
620
  size,
540
- tone: "primary",
621
+ disabled,
622
+ interactive: canRemove,
541
623
  onRemove: removeTagsButtons && canRemove ? (e) => {
542
624
  e?.stopPropagation();
543
625
  if (!disabled) removeValue(item.value, e);
@@ -551,7 +633,7 @@ var useMultiSelectControl = ({
551
633
  }
552
634
  const isCountItem = hasHidden;
553
635
  const needsComma = index < displayedItems.length - 2 || index < displayedItems.length - 1 && !isCountItem;
554
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
636
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
555
637
  Text,
556
638
  {
557
639
  color: theme.colors.content.primary,
@@ -567,7 +649,7 @@ var useMultiSelectControl = ({
567
649
  },
568
650
  children: [
569
651
  item.label,
570
- needsComma ? ",\xA0" : "\xA0"
652
+ needsComma ? ", " : " "
571
653
  ]
572
654
  },
573
655
  item.value
@@ -653,7 +735,7 @@ var useMultiSelectControl = ({
653
735
  };
654
736
 
655
737
  // src/MultiSelectControl.tsx
656
- var import_jsx_runtime5 = require("react/jsx-runtime");
738
+ var import_jsx_runtime6 = require("react/jsx-runtime");
657
739
  var MultiSelectControl = (0, import_react3.forwardRef)(
658
740
  ({
659
741
  variant = "tag",
@@ -678,7 +760,7 @@ var MultiSelectControl = (0, import_react3.forwardRef)(
678
760
  themeMode,
679
761
  themeProductContext
680
762
  }, ref) => {
681
- const { theme } = (0, import_xui_core2.useResolvedTheme)({ themeMode, themeProductContext });
763
+ const { theme } = (0, import_xui_core3.useResolvedTheme)({ themeMode, themeProductContext });
682
764
  const sizeStyles = theme.sizing.input(size);
683
765
  const inputColors = theme.colors.control.input;
684
766
  const state = externalState || (disabled ? "disable" : "default");
@@ -713,7 +795,7 @@ var MultiSelectControl = (0, import_react3.forwardRef)(
713
795
  borderColor = inputColors.borderHover;
714
796
  }
715
797
  const iconColor = isDisable ? inputColors.textDisable : inputColors.placeholder;
716
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
798
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
717
799
  Box,
718
800
  {
719
801
  ref,
@@ -741,7 +823,7 @@ var MultiSelectControl = (0, import_react3.forwardRef)(
741
823
  borderColor: inputColors.borderHover
742
824
  } : void 0,
743
825
  children: [
744
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
826
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
745
827
  Box,
746
828
  {
747
829
  ref: containerRef,
@@ -751,8 +833,8 @@ var MultiSelectControl = (0, import_react3.forwardRef)(
751
833
  gap: 8,
752
834
  style: { minWidth: 0 },
753
835
  children: [
754
- iconLeft && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Icon, { size: sizeStyles.iconSize, color: iconColor, variant: "line", children: iconLeft }),
755
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
836
+ iconLeft && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Icon, { size: sizeStyles.iconSize, color: iconColor, variant: "line", children: iconLeft }),
837
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
756
838
  Box,
757
839
  {
758
840
  ref: itemsRef,
@@ -768,8 +850,8 @@ var MultiSelectControl = (0, import_react3.forwardRef)(
768
850
  ]
769
851
  }
770
852
  ),
771
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(Box, { flexDirection: "row", alignItems: "center", gap: 4, children: [
772
- extraClear && selectedItems.length > 0 && !isDisable && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
853
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(Box, { flexDirection: "row", alignItems: "center", gap: 4, children: [
854
+ extraClear && selectedItems.length > 0 && !isDisable && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
773
855
  Box,
774
856
  {
775
857
  onPress: (e) => {
@@ -777,11 +859,11 @@ var MultiSelectControl = (0, import_react3.forwardRef)(
777
859
  removeAllValues();
778
860
  },
779
861
  style: { cursor: "pointer" },
780
- children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_xui_icons_base.Remove, { size: 18, color: iconColor, variant: "line" })
862
+ children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_xui_icons_base2.Remove, { size: 18, color: iconColor, variant: "line" })
781
863
  }
782
864
  ),
783
- isError && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_xui_icons_base.ExclamationMarkCr, { size: 18, color: theme.colors.content.alert.primary }),
784
- iconRight ? iconRight : isOpen ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_xui_icons_base.ChevronUp, { size: 18, color: iconColor, variant: "line" }) : /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_xui_icons_base.ChevronDown, { size: 18, color: iconColor, variant: "line" })
865
+ isError && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_xui_icons_base2.ExclamationMarkCr, { size: 18, color: theme.colors.content.alert.primary }),
866
+ iconRight ? iconRight : isOpen ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_xui_icons_base2.ChevronUp, { size: 18, color: iconColor, variant: "line" }) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_xui_icons_base2.ChevronDown, { size: 18, color: iconColor, variant: "line" })
785
867
  ] })
786
868
  ]
787
869
  }
@@ -899,11 +981,11 @@ var useMultiSelect = ({
899
981
  };
900
982
 
901
983
  // src/Portal.native.tsx
902
- var import_jsx_runtime6 = require("react/jsx-runtime");
903
- var Portal = ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_jsx_runtime6.Fragment, { children });
984
+ var import_jsx_runtime7 = require("react/jsx-runtime");
985
+ var Portal = ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_jsx_runtime7.Fragment, { children });
904
986
 
905
987
  // src/MultiSelect.tsx
906
- var import_jsx_runtime7 = require("react/jsx-runtime");
988
+ var import_jsx_runtime8 = require("react/jsx-runtime");
907
989
  var EXTERNAL_MENU_MIN_WIDTH_DEFAULT = 540;
908
990
  var SEARCH_ROW_HEIGHT = 60;
909
991
  var SELECT_ALL_ROW_HEIGHT = 37;
@@ -940,9 +1022,9 @@ var MultiSelect = (0, import_react5.forwardRef)(
940
1022
  themeMode,
941
1023
  themeProductContext
942
1024
  }, ref) => {
943
- const { theme } = (0, import_xui_core3.useResolvedTheme)({ themeMode, themeProductContext });
944
- const modalId = (0, import_xui_core3.useModalId)();
945
- const overlayLayer = (0, import_xui_core3.useOverlayLayer)();
1025
+ const { theme } = (0, import_xui_core4.useResolvedTheme)({ themeMode, themeProductContext });
1026
+ const modalId = (0, import_xui_core4.useModalId)();
1027
+ const overlayLayer = (0, import_xui_core4.useOverlayLayer)();
946
1028
  const controlRef = (0, import_react5.useRef)(null);
947
1029
  const menuRef = (0, import_react5.useRef)(null);
948
1030
  const containerRef = (0, import_react5.useRef)(null);
@@ -1076,8 +1158,8 @@ var MultiSelect = (0, import_react5.forwardRef)(
1076
1158
  minWidth: menuMinWidth ?? EXTERNAL_MENU_MIN_WIDTH_DEFAULT,
1077
1159
  boxSizing: "border-box"
1078
1160
  } : void 0;
1079
- const dropdown = dropdownMenu && isOpen && !isDisable && (!isWeb || menuPosition) && /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_jsx_runtime7.Fragment, { children: [
1080
- !isWeb && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1161
+ const dropdown = dropdownMenu && isOpen && !isDisable && (!isWeb || menuPosition) && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
1162
+ !isWeb && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1081
1163
  Box,
1082
1164
  {
1083
1165
  "data-modal-id": modalId,
@@ -1087,13 +1169,13 @@ var MultiSelect = (0, import_react5.forwardRef)(
1087
1169
  left: 0,
1088
1170
  right: 0,
1089
1171
  bottom: 0,
1090
- zIndex: overlayLayer + import_xui_core3.LAYER_OFFSET.menu,
1172
+ zIndex: overlayLayer + import_xui_core4.LAYER_OFFSET.menu,
1091
1173
  cursor: "default"
1092
1174
  },
1093
1175
  onPress: onClose
1094
1176
  }
1095
1177
  ),
1096
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
1178
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
1097
1179
  Box,
1098
1180
  {
1099
1181
  ref: menuRef,
@@ -1112,18 +1194,18 @@ var MultiSelect = (0, import_react5.forwardRef)(
1112
1194
  right: isWeb ? void 0 : 0,
1113
1195
  width: isWeb ? menuPosition?.width : void 0,
1114
1196
  marginTop: isWeb ? void 0 : 4,
1115
- zIndex: overlayLayer + import_xui_core3.LAYER_OFFSET.popover,
1197
+ zIndex: overlayLayer + import_xui_core4.LAYER_OFFSET.popover,
1116
1198
  boxShadow: theme.shadow.popover
1117
1199
  },
1118
1200
  children: [
1119
- searchable && isWeb && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1201
+ searchable && isWeb && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1120
1202
  Box,
1121
1203
  {
1122
1204
  paddingHorizontal: sizeStyles.paddingHorizontal,
1123
1205
  paddingVertical: sizeStyles.paddingVertical,
1124
1206
  borderBottomWidth: 1,
1125
1207
  borderColor: theme.colors.border.secondary,
1126
- children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
1208
+ children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
1127
1209
  Box,
1128
1210
  {
1129
1211
  flexDirection: "row",
@@ -1131,15 +1213,15 @@ var MultiSelect = (0, import_react5.forwardRef)(
1131
1213
  gap: sizeStyles.paddingHorizontal / 2,
1132
1214
  paddingHorizontal: 4,
1133
1215
  children: [
1134
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1216
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1135
1217
  Icon,
1136
1218
  {
1137
1219
  size: sizeStyles.iconSize - 2,
1138
1220
  color: inputColors.placeholder,
1139
- children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_xui_icons_base2.Search, {})
1221
+ children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_xui_icons_base3.Search, {})
1140
1222
  }
1141
1223
  ),
1142
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1224
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1143
1225
  Box,
1144
1226
  {
1145
1227
  as: "input",
@@ -1166,7 +1248,7 @@ var MultiSelect = (0, import_react5.forwardRef)(
1166
1248
  )
1167
1249
  }
1168
1250
  ),
1169
- showSelectAll && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1251
+ showSelectAll && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1170
1252
  Box,
1171
1253
  {
1172
1254
  role: "button",
@@ -1183,7 +1265,7 @@ var MultiSelect = (0, import_react5.forwardRef)(
1183
1265
  backgroundColor: theme.colors.control.input.bgHover
1184
1266
  },
1185
1267
  style: { cursor: "pointer" },
1186
- children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1268
+ children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1187
1269
  Text,
1188
1270
  {
1189
1271
  color: theme.colors.content.brand.primary,
@@ -1195,7 +1277,7 @@ var MultiSelect = (0, import_react5.forwardRef)(
1195
1277
  )
1196
1278
  }
1197
1279
  ),
1198
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1280
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1199
1281
  Box,
1200
1282
  {
1201
1283
  paddingVertical: 4,
@@ -1205,13 +1287,13 @@ var MultiSelect = (0, import_react5.forwardRef)(
1205
1287
  overflowX: optionListOverflowX,
1206
1288
  scrollbarWidth: "none"
1207
1289
  },
1208
- children: menuItems.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1290
+ children: menuItems.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1209
1291
  Box,
1210
1292
  {
1211
1293
  paddingVertical: sizeStyles.paddingVertical * 2,
1212
1294
  paddingHorizontal: sizeStyles.paddingHorizontal,
1213
1295
  alignItems: "center",
1214
- children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1296
+ children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1215
1297
  Text,
1216
1298
  {
1217
1299
  color: theme.colors.content.tertiary,
@@ -1224,7 +1306,7 @@ var MultiSelect = (0, import_react5.forwardRef)(
1224
1306
  const brandColors = theme.colors.control.brand.primary;
1225
1307
  const contentColors = theme.colors.content;
1226
1308
  const isInert = item.locked && item.checked;
1227
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1309
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1228
1310
  Box,
1229
1311
  {
1230
1312
  testID,
@@ -1247,7 +1329,7 @@ var MultiSelect = (0, import_react5.forwardRef)(
1247
1329
  opacity: item.disabled ? 0.5 : 1,
1248
1330
  minWidth: optionRowMinWidth
1249
1331
  },
1250
- children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1332
+ children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1251
1333
  Text,
1252
1334
  {
1253
1335
  color: item.checked ? contentColors.on.brand : theme.colors.content.secondary,
@@ -1268,7 +1350,7 @@ var MultiSelect = (0, import_react5.forwardRef)(
1268
1350
  }
1269
1351
  )
1270
1352
  ] });
1271
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
1353
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
1272
1354
  Box,
1273
1355
  {
1274
1356
  ref: containerRef,
@@ -1277,7 +1359,7 @@ var MultiSelect = (0, import_react5.forwardRef)(
1277
1359
  gap: sizeStyles.fieldGap,
1278
1360
  style: externalFieldLayout,
1279
1361
  children: [
1280
- label && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1362
+ label && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1281
1363
  Text,
1282
1364
  {
1283
1365
  color: theme.colors.content.secondary,
@@ -1286,7 +1368,7 @@ var MultiSelect = (0, import_react5.forwardRef)(
1286
1368
  children: label
1287
1369
  }
1288
1370
  ),
1289
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
1371
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
1290
1372
  Box,
1291
1373
  {
1292
1374
  ref,
@@ -1295,7 +1377,7 @@ var MultiSelect = (0, import_react5.forwardRef)(
1295
1377
  ...externalFieldLayout ? { width: "100%" } : {}
1296
1378
  },
1297
1379
  children: [
1298
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1380
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1299
1381
  MultiSelectControl,
1300
1382
  {
1301
1383
  ref: controlRef,
@@ -1320,11 +1402,11 @@ var MultiSelect = (0, import_react5.forwardRef)(
1320
1402
  extraClear
1321
1403
  }
1322
1404
  ),
1323
- isWeb ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Portal, { children: dropdown }) : dropdown
1405
+ isWeb ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Portal, { children: dropdown }) : dropdown
1324
1406
  ]
1325
1407
  }
1326
1408
  ),
1327
- errorMessage && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1409
+ errorMessage && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1328
1410
  Text,
1329
1411
  {
1330
1412
  color: theme.colors.content.alert.primary,