@cambly/syntax-core 7.6.0 → 7.7.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/dist/index.js CHANGED
@@ -120,6 +120,7 @@ __export(src_exports, {
120
120
  ButtonGroup: () => ButtonGroup_default,
121
121
  Card: () => Card,
122
122
  Checkbox: () => Checkbox_default,
123
+ Chip: () => Chip_default,
123
124
  Divider: () => Divider,
124
125
  Heading: () => Heading_default,
125
126
  IconButton: () => IconButton_default,
@@ -655,11 +656,11 @@ var ButtonGroup = ({
655
656
  size = "md",
656
657
  children
657
658
  }) => {
658
- const classnames3 = (0, import_classnames5.default)(ButtonGroup_module_default.buttonGroup, gap[size], {
659
+ const classnames4 = (0, import_classnames5.default)(ButtonGroup_module_default.buttonGroup, gap[size], {
659
660
  [ButtonGroup_module_default.horizontal]: orientation === "horizontal",
660
661
  [ButtonGroup_module_default.vertical]: orientation === "vertical"
661
662
  });
662
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: classnames3, children });
663
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: classnames4, children });
663
664
  };
664
665
  var ButtonGroup_default = ButtonGroup;
665
666
 
@@ -874,18 +875,73 @@ var Checkbox = ({
874
875
  };
875
876
  var Checkbox_default = Checkbox;
876
877
 
878
+ // src/Chip/Chip.tsx
879
+ var import_react5 = require("react");
880
+ var import_classnames7 = __toESM(require_classnames());
881
+
882
+ // css-module:./Chip.module.css#css-module
883
+ var Chip_module_default = { "chip": "_chip_ev9ht_1", "selectedChip": "_selectedChip_ev9ht_11", "icon": "_icon_ev9ht_16", "selectedIcon": "_selectedIcon_ev9ht_24", "sm": "_sm_ev9ht_28", "lg": "_lg_ev9ht_34" };
884
+
885
+ // src/Chip/Chip.tsx
886
+ var import_jsx_runtime9 = require("react/jsx-runtime");
887
+ var Chip = (0, import_react5.forwardRef)(
888
+ ({
889
+ selected = false,
890
+ "data-testid": dataTestId,
891
+ size = "sm",
892
+ text,
893
+ onChange,
894
+ icon: Icon
895
+ }, ref) => {
896
+ const chipStyles = (0, import_classnames7.default)(Chip_module_default.chip, Chip_module_default[size], {
897
+ [Chip_module_default.selectedChip]: selected
898
+ });
899
+ const iconStyles = (0, import_classnames7.default)(Chip_module_default.icon, {
900
+ [Chip_module_default.selectedIcon]: selected
901
+ });
902
+ const typographySize2 = {
903
+ ["sm"]: 200,
904
+ ["lg"]: 300
905
+ };
906
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
907
+ "button",
908
+ {
909
+ className: chipStyles,
910
+ "data-testid": dataTestId,
911
+ ref,
912
+ type: "button",
913
+ "aria-pressed": selected,
914
+ onClick: onChange,
915
+ children: [
916
+ Icon && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Icon, { className: iconStyles }),
917
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Box_default, { paddingX: Icon ? 1 : 0, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
918
+ Typography_default,
919
+ {
920
+ size: typographySize2[size],
921
+ color: selected ? "white" : "gray900",
922
+ children: text
923
+ }
924
+ ) })
925
+ ]
926
+ }
927
+ );
928
+ }
929
+ );
930
+ Chip.displayName = "Chip";
931
+ var Chip_default = Chip;
932
+
877
933
  // css-module:./Divider.module.css#css-module
878
934
  var Divider_module_default = { "divider": "_divider_1ddgq_1" };
879
935
 
880
936
  // src/Divider/Divider.tsx
881
- var import_jsx_runtime9 = require("react/jsx-runtime");
937
+ var import_jsx_runtime10 = require("react/jsx-runtime");
882
938
  function Divider() {
883
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("hr", { className: Divider_module_default.divider });
939
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("hr", { className: Divider_module_default.divider });
884
940
  }
885
941
  Divider.displayName = "Divider";
886
942
 
887
943
  // src/Heading/Heading.tsx
888
- var import_jsx_runtime10 = require("react/jsx-runtime");
944
+ var import_jsx_runtime11 = require("react/jsx-runtime");
889
945
  var Heading = ({
890
946
  align = "start",
891
947
  as = "h1",
@@ -895,7 +951,7 @@ var Heading = ({
895
951
  size = 500
896
952
  }) => {
897
953
  const weight = [700, 800].includes(size) ? "heavy" : "bold";
898
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
954
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
899
955
  Typography_default,
900
956
  {
901
957
  align,
@@ -911,20 +967,20 @@ var Heading = ({
911
967
  var Heading_default = Heading;
912
968
 
913
969
  // src/IconButton/IconButton.tsx
914
- var import_classnames7 = __toESM(require_classnames());
915
- var import_react5 = require("react");
970
+ var import_classnames8 = __toESM(require_classnames());
971
+ var import_react6 = require("react");
916
972
 
917
973
  // css-module:./IconButton.module.css#css-module
918
974
  var IconButton_module_default = { "iconButton": "_iconButton_4e8qe_1", "sm": "_sm_4e8qe_46", "md": "_md_4e8qe_51", "lg": "_lg_4e8qe_56", "smIcon": "_smIcon_4e8qe_61", "mdIcon": "_mdIcon_4e8qe_68", "lgIcon": "_lgIcon_4e8qe_75", "secondaryBorder": "_secondaryBorder_4e8qe_82", "secondaryDestructiveBorder": "_secondaryDestructiveBorder_4e8qe_86" };
919
975
 
920
976
  // src/IconButton/IconButton.tsx
921
- var import_jsx_runtime11 = require("react/jsx-runtime");
977
+ var import_jsx_runtime12 = require("react/jsx-runtime");
922
978
  var iconSize2 = {
923
979
  ["sm"]: IconButton_module_default.smIcon,
924
980
  ["md"]: IconButton_module_default.mdIcon,
925
981
  ["lg"]: IconButton_module_default.lgIcon
926
982
  };
927
- var IconButton = (0, import_react5.forwardRef)(
983
+ var IconButton = (0, import_react6.forwardRef)(
928
984
  ({
929
985
  accessibilityLabel,
930
986
  color = "primary",
@@ -935,7 +991,7 @@ var IconButton = (0, import_react5.forwardRef)(
935
991
  tooltip,
936
992
  onClick
937
993
  }, ref) => {
938
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
994
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
939
995
  "button",
940
996
  {
941
997
  "aria-label": accessibilityLabel,
@@ -944,7 +1000,7 @@ var IconButton = (0, import_react5.forwardRef)(
944
1000
  title: tooltip,
945
1001
  disabled,
946
1002
  onClick,
947
- className: (0, import_classnames7.default)(
1003
+ className: (0, import_classnames8.default)(
948
1004
  IconButton_module_default.iconButton,
949
1005
  foregroundColor(color),
950
1006
  backgroundColor(color),
@@ -955,7 +1011,7 @@ var IconButton = (0, import_react5.forwardRef)(
955
1011
  }
956
1012
  ),
957
1013
  ref,
958
- children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Icon, { className: iconSize2[size] })
1014
+ children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Icon, { className: iconSize2[size] })
959
1015
  }
960
1016
  );
961
1017
  }
@@ -964,8 +1020,8 @@ IconButton.displayName = "IconButton";
964
1020
  var IconButton_default = IconButton;
965
1021
 
966
1022
  // src/LinkButton/LinkButton.tsx
967
- var import_react6 = require("react");
968
- var import_classnames8 = __toESM(require_classnames());
1023
+ var import_react7 = require("react");
1024
+ var import_classnames9 = __toESM(require_classnames());
969
1025
 
970
1026
  // css-module:../Button/Button.module.css#css-module
971
1027
  var Button_module_default3 = { "button": "_button_1iunh_1", "buttonGap": "_buttonGap_1iunh_9", "fullWidth": "_fullWidth_1iunh_50", "sm": "_sm_1iunh_54", "md": "_md_1iunh_61", "lg": "_lg_1iunh_68", "icon": "_icon_1iunh_75", "smIcon": "_smIcon_1iunh_79", "mdIcon": "_mdIcon_1iunh_86", "lgIcon": "_lgIcon_1iunh_93", "secondaryBorder": "_secondaryBorder_1iunh_100", "secondaryDestructiveBorder": "_secondaryDestructiveBorder_1iunh_104", "loading": "_loading_1iunh_118", "syntaxButtonLoadingRotate": "_syntaxButtonLoadingRotate_1iunh_1", "loadingCircle": "_loadingCircle_1iunh_122" };
@@ -974,8 +1030,8 @@ var Button_module_default3 = { "button": "_button_1iunh_1", "buttonGap": "_butto
974
1030
  var LinkButton_module_default = { "linkButton": "_linkButton_1b3ot_1", "fitContent": "_fitContent_1b3ot_10" };
975
1031
 
976
1032
  // src/LinkButton/LinkButton.tsx
977
- var import_jsx_runtime12 = require("react/jsx-runtime");
978
- var LinkButton = (0, import_react6.forwardRef)(
1033
+ var import_jsx_runtime13 = require("react/jsx-runtime");
1034
+ var LinkButton = (0, import_react7.forwardRef)(
979
1035
  ({
980
1036
  text,
981
1037
  href,
@@ -989,7 +1045,7 @@ var LinkButton = (0, import_react6.forwardRef)(
989
1045
  endIcon: EndIcon,
990
1046
  onClick
991
1047
  }, ref) => {
992
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
1048
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
993
1049
  "a",
994
1050
  {
995
1051
  href,
@@ -997,7 +1053,7 @@ var LinkButton = (0, import_react6.forwardRef)(
997
1053
  target,
998
1054
  ref,
999
1055
  rel,
1000
- className: (0, import_classnames8.default)(
1056
+ className: (0, import_classnames9.default)(
1001
1057
  LinkButton_module_default.linkButton,
1002
1058
  Button_module_default3.button,
1003
1059
  foregroundColor(color),
@@ -1013,21 +1069,21 @@ var LinkButton = (0, import_react6.forwardRef)(
1013
1069
  ),
1014
1070
  onClick,
1015
1071
  children: [
1016
- StartIcon && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1072
+ StartIcon && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1017
1073
  StartIcon,
1018
1074
  {
1019
- className: (0, import_classnames8.default)(Button_module_default3.icon, iconSize_default[size])
1075
+ className: (0, import_classnames9.default)(Button_module_default3.icon, iconSize_default[size])
1020
1076
  }
1021
1077
  ),
1022
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1078
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1023
1079
  Typography_default,
1024
1080
  {
1025
1081
  color: foregroundTypographyColor(color),
1026
1082
  size: textVariant_default[size],
1027
- children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { style: { fontWeight: 500 }, children: text })
1083
+ children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { style: { fontWeight: 500 }, children: text })
1028
1084
  }
1029
1085
  ),
1030
- EndIcon && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(EndIcon, { className: (0, import_classnames8.default)(Button_module_default3.icon, iconSize_default[size]) })
1086
+ EndIcon && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(EndIcon, { className: (0, import_classnames9.default)(Button_module_default3.icon, iconSize_default[size]) })
1031
1087
  ]
1032
1088
  }
1033
1089
  );
@@ -1040,18 +1096,18 @@ var LinkButton_default = LinkButton;
1040
1096
  var MiniActionCard_module_default = { "miniActionCard": "_miniActionCard_qebkn_1", "card": "_card_qebkn_9" };
1041
1097
 
1042
1098
  // src/MiniActionCard/MiniActionCard.tsx
1043
- var import_jsx_runtime13 = require("react/jsx-runtime");
1099
+ var import_jsx_runtime14 = require("react/jsx-runtime");
1044
1100
  var MiniActionCard = ({
1045
1101
  children
1046
- }) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: MiniActionCard_module_default.miniActionCard, children });
1102
+ }) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: MiniActionCard_module_default.miniActionCard, children });
1047
1103
  var MiniActionCard_default = MiniActionCard;
1048
1104
 
1049
1105
  // src/Modal/Modal.tsx
1050
- var import_classnames9 = __toESM(require_classnames());
1106
+ var import_classnames10 = __toESM(require_classnames());
1051
1107
 
1052
1108
  // src/Modal/FocusTrap.tsx
1053
- var import_react7 = require("react");
1054
- var import_jsx_runtime14 = require("react/jsx-runtime");
1109
+ var import_react8 = require("react");
1110
+ var import_jsx_runtime15 = require("react/jsx-runtime");
1055
1111
  function queryFocusableAll(el) {
1056
1112
  const selector = [
1057
1113
  "a[href]",
@@ -1080,9 +1136,9 @@ var focusElement = (el) => {
1080
1136
  function FocusTrap({
1081
1137
  children
1082
1138
  }) {
1083
- const elRef = (0, import_react7.useRef)(null);
1084
- const previouslyFocusedElRef = (0, import_react7.useRef)(null);
1085
- (0, import_react7.useEffect)(() => {
1139
+ const elRef = (0, import_react8.useRef)(null);
1140
+ const previouslyFocusedElRef = (0, import_react8.useRef)(null);
1141
+ (0, import_react8.useEffect)(() => {
1086
1142
  const { current: element } = elRef;
1087
1143
  const focusFirstChild = () => {
1088
1144
  const withinIframe = window !== window.parent;
@@ -1112,13 +1168,13 @@ function FocusTrap({
1112
1168
  }
1113
1169
  };
1114
1170
  }, [elRef, previouslyFocusedElRef]);
1115
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { "data-testid": "syntax-focus-trap", ref: elRef, children });
1171
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { "data-testid": "syntax-focus-trap", ref: elRef, children });
1116
1172
  }
1117
1173
 
1118
1174
  // src/Modal/StopScroll.tsx
1119
- var import_react8 = require("react");
1175
+ var import_react9 = require("react");
1120
1176
  function StopScroll(props) {
1121
- (0, import_react8.useEffect)(() => {
1177
+ (0, import_react9.useEffect)(() => {
1122
1178
  const originalStyle = window.getComputedStyle(document.body).overflow;
1123
1179
  document.body.style.overflow = "hidden";
1124
1180
  return () => {
@@ -1130,13 +1186,13 @@ function StopScroll(props) {
1130
1186
 
1131
1187
  // src/Modal/Layer.tsx
1132
1188
  var import_react_dom = require("react-dom");
1133
- var import_jsx_runtime15 = require("react/jsx-runtime");
1189
+ var import_jsx_runtime16 = require("react/jsx-runtime");
1134
1190
  function Layer({
1135
1191
  children,
1136
1192
  zIndex = 1
1137
1193
  }) {
1138
1194
  return (0, import_react_dom.createPortal)(
1139
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1195
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1140
1196
  Box_default,
1141
1197
  {
1142
1198
  "data-testid": "syntax-layer",
@@ -1155,9 +1211,9 @@ function Layer({
1155
1211
  var Modal_module_default = { "backdrop": "_backdrop_30t3h_1", "closeButton": "_closeButton_30t3h_12", "closeButtonWithImage": "_closeButtonWithImage_30t3h_32" };
1156
1212
 
1157
1213
  // src/Modal/Modal.tsx
1158
- var import_jsx_runtime16 = require("react/jsx-runtime");
1214
+ var import_jsx_runtime17 = require("react/jsx-runtime");
1159
1215
  function XIcon({ color = "#000" }) {
1160
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", fill: color, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1216
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", fill: color, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1161
1217
  "path",
1162
1218
  {
1163
1219
  fill: "inherit",
@@ -1180,14 +1236,14 @@ function Modal({
1180
1236
  zIndex = 1,
1181
1237
  "data-testid": dataTestId
1182
1238
  }) {
1183
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Layer, { zIndex, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(StopScroll, { children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(FocusTrap, { children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1239
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Layer, { zIndex, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(StopScroll, { children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(FocusTrap, { children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1184
1240
  "div",
1185
1241
  {
1186
1242
  className: Modal_module_default.backdrop,
1187
1243
  role: "presentation",
1188
1244
  onClick: (e) => e.target === e.currentTarget && onDismiss(),
1189
1245
  onKeyDown: (e) => e.key === "Escape" && onDismiss(),
1190
- children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
1246
+ children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
1191
1247
  Box_default,
1192
1248
  {
1193
1249
  "data-testid": dataTestId,
@@ -1200,23 +1256,23 @@ function Modal({
1200
1256
  width: "100%",
1201
1257
  dangerouslySetInlineStyle: { __style: { overflow: "hidden" } },
1202
1258
  children: [
1203
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Box_default, { position: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1259
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Box_default, { position: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1204
1260
  "button",
1205
1261
  {
1206
1262
  "aria-label": accessibilityCloseLabel,
1207
1263
  type: "button",
1208
- className: (0, import_classnames9.default)(Modal_module_default.closeButton, {
1264
+ className: (0, import_classnames10.default)(Modal_module_default.closeButton, {
1209
1265
  [Modal_module_default.closeButtonWithImage]: !!image
1210
1266
  }),
1211
1267
  onClick: onDismiss,
1212
- children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(XIcon, { color: image ? "#fff" : "#000" })
1268
+ children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(XIcon, { color: image ? "#fff" : "#000" })
1213
1269
  }
1214
1270
  ) }),
1215
- image && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Box_default, { maxHeight: 200, children: image }),
1216
- /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(Box_default, { display: "flex", gap: 3, direction: "column", padding: 9, children: [
1217
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Heading_default, { as: "h1", size: 500, children: header }),
1218
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Box_default, { marginBottom: 4, children }),
1219
- footer && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1271
+ image && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Box_default, { maxHeight: 200, children: image }),
1272
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(Box_default, { display: "flex", gap: 3, direction: "column", padding: 9, children: [
1273
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Heading_default, { as: "h1", size: 500, children: header }),
1274
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Box_default, { marginBottom: 4, children }),
1275
+ footer && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1220
1276
  Box_default,
1221
1277
  {
1222
1278
  display: "flex",
@@ -1239,14 +1295,14 @@ function Modal({
1239
1295
  Modal.displayName = "Modal";
1240
1296
 
1241
1297
  // src/RadioButton/RadioButton.tsx
1242
- var import_react9 = require("react");
1243
- var import_classnames10 = __toESM(require_classnames());
1298
+ var import_react10 = require("react");
1299
+ var import_classnames11 = __toESM(require_classnames());
1244
1300
 
1245
1301
  // css-module:./RadioButton.module.css#css-module
1246
1302
  var RadioButton_module_default = { "radioBaseContainer": "_radioBaseContainer_6h2zg_1", "disabled": "_disabled_6h2zg_9", "cursorDisabled": "_cursorDisabled_6h2zg_13", "cursorEnabled": "_cursorEnabled_6h2zg_17", "smBase": "_smBase_6h2zg_21", "mdBase": "_mdBase_6h2zg_25", "radioStyleOverride": "_radioStyleOverride_6h2zg_29", "smOverride": "_smOverride_6h2zg_34", "mdOverride": "_mdOverride_6h2zg_39", "background": "_background_6h2zg_44", "sm": "_sm_6h2zg_21", "md": "_md_6h2zg_25", "neutralBorder": "_neutralBorder_6h2zg_61", "smCheckedBorder": "_smCheckedBorder_6h2zg_65", "mdCheckedBorder": "_mdCheckedBorder_6h2zg_69", "errorBorderColor": "_errorBorderColor_6h2zg_73", "borderColor": "_borderColor_6h2zg_77" };
1247
1303
 
1248
1304
  // src/RadioButton/RadioButton.tsx
1249
- var import_jsx_runtime17 = require("react/jsx-runtime");
1305
+ var import_jsx_runtime18 = require("react/jsx-runtime");
1250
1306
  var RadioButton = ({
1251
1307
  checked = false,
1252
1308
  "data-testid": dataTestId,
@@ -1259,17 +1315,17 @@ var RadioButton = ({
1259
1315
  size = "md",
1260
1316
  value
1261
1317
  }) => {
1262
- const [isFocused, setIsFocused] = (0, import_react9.useState)(false);
1318
+ const [isFocused, setIsFocused] = (0, import_react10.useState)(false);
1263
1319
  const { isFocusVisible: isFocusVisible2 } = useFocusVisible();
1264
- const sharedStyles = (0, import_classnames10.default)(RadioButton_module_default.background, RadioButton_module_default[size], {
1320
+ const sharedStyles = (0, import_classnames11.default)(RadioButton_module_default.background, RadioButton_module_default[size], {
1265
1321
  [RadioButton_module_default.errorBorderColor]: error,
1266
1322
  [RadioButton_module_default.borderColor]: !error,
1267
1323
  [Focus_module_default.accessibilityOutlineFocus]: isFocused && isFocusVisible2
1268
1324
  });
1269
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
1325
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
1270
1326
  "label",
1271
1327
  {
1272
- className: (0, import_classnames10.default)(
1328
+ className: (0, import_classnames11.default)(
1273
1329
  RadioButton_module_default.radioBaseContainer,
1274
1330
  RadioButton_module_default[`cursor${disabled ? "Disabled" : "Enabled"}`],
1275
1331
  {
@@ -1279,23 +1335,23 @@ var RadioButton = ({
1279
1335
  }
1280
1336
  ),
1281
1337
  children: [
1282
- checked ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1338
+ checked ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1283
1339
  "div",
1284
1340
  {
1285
- className: (0, import_classnames10.default)(sharedStyles, {
1341
+ className: (0, import_classnames11.default)(sharedStyles, {
1286
1342
  [RadioButton_module_default.mdCheckedBorder]: size === "md",
1287
1343
  [RadioButton_module_default.smCheckedBorder]: size === "sm"
1288
1344
  })
1289
1345
  }
1290
- ) : /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: (0, import_classnames10.default)(sharedStyles, RadioButton_module_default.neutralBorder) }),
1291
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1346
+ ) : /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: (0, import_classnames11.default)(sharedStyles, RadioButton_module_default.neutralBorder) }),
1347
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1292
1348
  "input",
1293
1349
  {
1294
1350
  "data-testid": dataTestId,
1295
1351
  type: "radio",
1296
1352
  id,
1297
1353
  name,
1298
- className: (0, import_classnames10.default)(
1354
+ className: (0, import_classnames11.default)(
1299
1355
  RadioButton_module_default.radioStyleOverride,
1300
1356
  RadioButton_module_default[`cursor${disabled ? "Disabled" : "Enabled"}`],
1301
1357
  {
@@ -1315,7 +1371,7 @@ var RadioButton = ({
1315
1371
  }
1316
1372
  }
1317
1373
  ),
1318
- label && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1374
+ label && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1319
1375
  Typography_default,
1320
1376
  {
1321
1377
  size: size === "md" ? 200 : 100,
@@ -1330,28 +1386,28 @@ var RadioButton = ({
1330
1386
  var RadioButton_default = RadioButton;
1331
1387
 
1332
1388
  // src/SelectList/SelectList.tsx
1333
- var import_react10 = require("react");
1334
- var import_classnames11 = __toESM(require_classnames());
1389
+ var import_react11 = require("react");
1390
+ var import_classnames12 = __toESM(require_classnames());
1335
1391
 
1336
1392
  // ../syntax-design-tokens/dist/js/index.js
1337
1393
  var ColorBaseDestructive700 = "#d32a4b";
1338
1394
  var ColorBaseGray800 = "#353535";
1339
1395
 
1340
1396
  // css-module:./SelectList.module.css#css-module
1341
- var SelectList_module_default = { "selectContainer": "_selectContainer_1cdwo_1", "opacityOverlay": "_opacityOverlay_1cdwo_7", "outerTextContainer": "_outerTextContainer_1cdwo_11", "selectWrapper": "_selectWrapper_1cdwo_16", "selectBox": "_selectBox_1cdwo_21", "selectMouseFocusStyling": "_selectMouseFocusStyling_1cdwo_37", "unselected": "_unselected_1cdwo_42", "selected": "_selected_1cdwo_46", "arrowIcon": "_arrowIcon_1cdwo_50", "sm": "_sm_1cdwo_64", "md": "_md_1cdwo_70", "lg": "_lg_1cdwo_76", "selectError": "_selectError_1cdwo_82" };
1397
+ var SelectList_module_default = { "selectContainer": "_selectContainer_3ifov_1", "opacityOverlay": "_opacityOverlay_3ifov_7", "outerTextContainer": "_outerTextContainer_3ifov_11", "selectWrapper": "_selectWrapper_3ifov_16", "selectBox": "_selectBox_3ifov_21", "selectMouseFocusStyling": "_selectMouseFocusStyling_3ifov_37", "unselected": "_unselected_3ifov_42", "selected": "_selected_3ifov_46", "arrowIcon": "_arrowIcon_3ifov_50", "sm": "_sm_3ifov_64", "md": "_md_3ifov_70", "lg": "_lg_3ifov_76", "selectError": "_selectError_3ifov_82" };
1342
1398
 
1343
1399
  // src/SelectList/SelectOption.tsx
1344
- var import_jsx_runtime18 = require("react/jsx-runtime");
1400
+ var import_jsx_runtime19 = require("react/jsx-runtime");
1345
1401
  var SelectOption = ({
1346
1402
  "data-testid": dataTestId,
1347
1403
  value,
1348
1404
  label,
1349
1405
  disabled = false
1350
- }) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("option", { "data-testid": dataTestId, value, disabled, children: label });
1406
+ }) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("option", { "data-testid": dataTestId, value, disabled, children: label });
1351
1407
  var SelectOption_default = SelectOption;
1352
1408
 
1353
1409
  // src/SelectList/SelectList.tsx
1354
- var import_jsx_runtime19 = require("react/jsx-runtime");
1410
+ var import_jsx_runtime20 = require("react/jsx-runtime");
1355
1411
  var iconSize3 = {
1356
1412
  sm: 20,
1357
1413
  md: 24,
@@ -1370,25 +1426,25 @@ function SelectList({
1370
1426
  selectedValue = "",
1371
1427
  size = "md"
1372
1428
  }) {
1373
- const id = (0, import_react10.useId)();
1429
+ const id = (0, import_react11.useId)();
1374
1430
  const { isFocusVisible: isFocusVisible2 } = useFocusVisible();
1375
- const [isFocused, setIsFocused] = (0, import_react10.useState)(false);
1376
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
1431
+ const [isFocused, setIsFocused] = (0, import_react11.useState)(false);
1432
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
1377
1433
  "div",
1378
1434
  {
1379
- className: (0, import_classnames11.default)(SelectList_module_default.selectContainer, {
1435
+ className: (0, import_classnames12.default)(SelectList_module_default.selectContainer, {
1380
1436
  [SelectList_module_default.opacityOverlay]: disabled
1381
1437
  }),
1382
1438
  children: [
1383
- label && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("label", { htmlFor: id, className: SelectList_module_default.outerTextContainer, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Typography_default, { size: 100, color: "gray700", children: label }) }),
1384
- /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: SelectList_module_default.selectWrapper, children: [
1385
- /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
1439
+ label && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("label", { htmlFor: id, className: SelectList_module_default.outerTextContainer, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Typography_default, { size: 100, color: "gray700", children: label }) }),
1440
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: SelectList_module_default.selectWrapper, children: [
1441
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
1386
1442
  "select",
1387
1443
  {
1388
1444
  id,
1389
1445
  "data-testid": dataTestId,
1390
1446
  disabled,
1391
- className: (0, import_classnames11.default)(SelectList_module_default.selectBox, SelectList_module_default[size], {
1447
+ className: (0, import_classnames12.default)(SelectList_module_default.selectBox, SelectList_module_default[size], {
1392
1448
  [SelectList_module_default.unselected]: !selectedValue && !errorText,
1393
1449
  [SelectList_module_default.selected]: selectedValue && !errorText,
1394
1450
  [SelectList_module_default.selectError]: errorText,
@@ -1403,19 +1459,19 @@ function SelectList({
1403
1459
  onFocus: () => setIsFocused(true),
1404
1460
  onBlur: () => setIsFocused(false),
1405
1461
  children: [
1406
- placeholderText && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("option", { disabled: true, value: placeholderText, children: placeholderText }),
1462
+ placeholderText && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("option", { disabled: true, value: placeholderText, children: placeholderText }),
1407
1463
  children
1408
1464
  ]
1409
1465
  }
1410
1466
  ),
1411
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: SelectList_module_default.arrowIcon, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1467
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: SelectList_module_default.arrowIcon, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1412
1468
  "svg",
1413
1469
  {
1414
1470
  focusable: "false",
1415
1471
  "aria-hidden": "true",
1416
1472
  viewBox: "0 0 24 24",
1417
1473
  width: iconSize3[size],
1418
- children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1474
+ children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1419
1475
  "path",
1420
1476
  {
1421
1477
  fill: errorText ? ColorBaseDestructive700 : ColorBaseGray800,
@@ -1425,7 +1481,7 @@ function SelectList({
1425
1481
  }
1426
1482
  ) })
1427
1483
  ] }),
1428
- (helperText || errorText) && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: SelectList_module_default.outerTextContainer, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1484
+ (helperText || errorText) && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: SelectList_module_default.outerTextContainer, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1429
1485
  Typography_default,
1430
1486
  {
1431
1487
  size: 100,
@@ -1440,14 +1496,14 @@ function SelectList({
1440
1496
  SelectList.Option = SelectOption_default;
1441
1497
 
1442
1498
  // src/TextField/TextField.tsx
1443
- var import_react11 = require("react");
1444
- var import_classnames12 = __toESM(require_classnames());
1499
+ var import_react12 = require("react");
1500
+ var import_classnames13 = __toESM(require_classnames());
1445
1501
 
1446
1502
  // css-module:./TextField.module.css#css-module
1447
1503
  var TextField_module_default = { "textfield": "_textfield_cltsv_1", "label": "_label_cltsv_21", "sm": "_sm_cltsv_25", "md": "_md_cltsv_30", "lg": "_lg_cltsv_35", "inputError": "_inputError_cltsv_40" };
1448
1504
 
1449
1505
  // src/TextField/TextField.tsx
1450
- var import_jsx_runtime20 = require("react/jsx-runtime");
1506
+ var import_jsx_runtime21 = require("react/jsx-runtime");
1451
1507
  function TextField({
1452
1508
  autoComplete,
1453
1509
  "data-testid": dataTestId,
@@ -1462,9 +1518,9 @@ function TextField({
1462
1518
  type = "text",
1463
1519
  value = ""
1464
1520
  }) {
1465
- const reactId = (0, import_react11.useId)();
1521
+ const reactId = (0, import_react12.useId)();
1466
1522
  const inputId = id != null ? id : reactId;
1467
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
1523
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
1468
1524
  Box_default,
1469
1525
  {
1470
1526
  display: "flex",
@@ -1477,12 +1533,12 @@ function TextField({
1477
1533
  }
1478
1534
  },
1479
1535
  children: [
1480
- label && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("label", { className: TextField_module_default.label, htmlFor: inputId, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Box_default, { paddingX: 1, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Typography_default, { size: 100, color: "gray700", children: label }) }) }),
1481
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1536
+ label && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("label", { className: TextField_module_default.label, htmlFor: inputId, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Box_default, { paddingX: 1, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Typography_default, { size: 100, color: "gray700", children: label }) }) }),
1537
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1482
1538
  "input",
1483
1539
  {
1484
1540
  autoComplete,
1485
- className: (0, import_classnames12.default)(TextField_module_default.textfield, TextField_module_default[size], {
1541
+ className: (0, import_classnames13.default)(TextField_module_default.textfield, TextField_module_default[size], {
1486
1542
  [TextField_module_default.inputError]: errorText
1487
1543
  }),
1488
1544
  "data-testid": dataTestId,
@@ -1494,7 +1550,7 @@ function TextField({
1494
1550
  value
1495
1551
  }
1496
1552
  ),
1497
- (helperText || errorText) && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Box_default, { paddingX: 1, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1553
+ (helperText || errorText) && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Box_default, { paddingX: 1, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1498
1554
  Typography_default,
1499
1555
  {
1500
1556
  size: 100,
@@ -1515,6 +1571,7 @@ function TextField({
1515
1571
  ButtonGroup,
1516
1572
  Card,
1517
1573
  Checkbox,
1574
+ Chip,
1518
1575
  Divider,
1519
1576
  Heading,
1520
1577
  IconButton,