@cambly/syntax-core 8.1.0 → 9.0.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.css +6 -25
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +7 -13
- package/dist/index.js +48 -57
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +41 -49
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -125,7 +125,6 @@ __export(src_exports, {
|
|
|
125
125
|
Heading: () => Heading_default,
|
|
126
126
|
IconButton: () => IconButton_default,
|
|
127
127
|
LinkButton: () => LinkButton_default,
|
|
128
|
-
MiniActionCard: () => MiniActionCard_default,
|
|
129
128
|
Modal: () => Modal,
|
|
130
129
|
RadioButton: () => RadioButton_default,
|
|
131
130
|
SelectList: () => SelectList,
|
|
@@ -241,7 +240,7 @@ var margin_module_default = { "marginBottom-12": "_marginBottom-12_1whn1_2", "ma
|
|
|
241
240
|
var padding_module_default = { "paddingX0": "_paddingX0_1aqye_2", "paddingX1": "_paddingX1_1aqye_7", "paddingX2": "_paddingX2_1aqye_12", "paddingX3": "_paddingX3_1aqye_17", "paddingX4": "_paddingX4_1aqye_22", "paddingX5": "_paddingX5_1aqye_27", "paddingX6": "_paddingX6_1aqye_32", "paddingX7": "_paddingX7_1aqye_37", "paddingX8": "_paddingX8_1aqye_42", "paddingX9": "_paddingX9_1aqye_47", "paddingX10": "_paddingX10_1aqye_52", "paddingX11": "_paddingX11_1aqye_57", "paddingX12": "_paddingX12_1aqye_62", "paddingY0": "_paddingY0_1aqye_67", "paddingY1": "_paddingY1_1aqye_72", "paddingY2": "_paddingY2_1aqye_77", "paddingY3": "_paddingY3_1aqye_82", "paddingY4": "_paddingY4_1aqye_87", "paddingY5": "_paddingY5_1aqye_92", "paddingY6": "_paddingY6_1aqye_97", "paddingY7": "_paddingY7_1aqye_102", "paddingY8": "_paddingY8_1aqye_107", "paddingY9": "_paddingY9_1aqye_112", "paddingY10": "_paddingY10_1aqye_117", "paddingY11": "_paddingY11_1aqye_122", "paddingY12": "_paddingY12_1aqye_127", "paddingX0Small": "_paddingX0Small_1aqye_134", "paddingX1Small": "_paddingX1Small_1aqye_139", "paddingX2Small": "_paddingX2Small_1aqye_144", "paddingX3Small": "_paddingX3Small_1aqye_149", "paddingX4Small": "_paddingX4Small_1aqye_154", "paddingX5Small": "_paddingX5Small_1aqye_159", "paddingX6Small": "_paddingX6Small_1aqye_164", "paddingX7Small": "_paddingX7Small_1aqye_169", "paddingX8Small": "_paddingX8Small_1aqye_174", "paddingX9Small": "_paddingX9Small_1aqye_179", "paddingX10Small": "_paddingX10Small_1aqye_184", "paddingX11Small": "_paddingX11Small_1aqye_189", "paddingX12Small": "_paddingX12Small_1aqye_194", "paddingY0Small": "_paddingY0Small_1aqye_199", "paddingY1Small": "_paddingY1Small_1aqye_204", "paddingY2Small": "_paddingY2Small_1aqye_209", "paddingY3Small": "_paddingY3Small_1aqye_214", "paddingY4Small": "_paddingY4Small_1aqye_219", "paddingY5Small": "_paddingY5Small_1aqye_224", "paddingY6Small": "_paddingY6Small_1aqye_229", "paddingY7Small": "_paddingY7Small_1aqye_234", "paddingY8Small": "_paddingY8Small_1aqye_239", "paddingY9Small": "_paddingY9Small_1aqye_244", "paddingY10Small": "_paddingY10Small_1aqye_249", "paddingY11Small": "_paddingY11Small_1aqye_254", "paddingY12Small": "_paddingY12Small_1aqye_259", "paddingX0Large": "_paddingX0Large_1aqye_267", "paddingX1Large": "_paddingX1Large_1aqye_272", "paddingX2Large": "_paddingX2Large_1aqye_277", "paddingX3Large": "_paddingX3Large_1aqye_282", "paddingX4Large": "_paddingX4Large_1aqye_287", "paddingX5Large": "_paddingX5Large_1aqye_292", "paddingX6Large": "_paddingX6Large_1aqye_297", "paddingX7Large": "_paddingX7Large_1aqye_302", "paddingX8Large": "_paddingX8Large_1aqye_307", "paddingX9Large": "_paddingX9Large_1aqye_312", "paddingX10Large": "_paddingX10Large_1aqye_317", "paddingX11Large": "_paddingX11Large_1aqye_322", "paddingX12Large": "_paddingX12Large_1aqye_327", "paddingY0Large": "_paddingY0Large_1aqye_332", "paddingY1Large": "_paddingY1Large_1aqye_337", "paddingY2Large": "_paddingY2Large_1aqye_342", "paddingY3Large": "_paddingY3Large_1aqye_347", "paddingY4Large": "_paddingY4Large_1aqye_352", "paddingY5Large": "_paddingY5Large_1aqye_357", "paddingY6Large": "_paddingY6Large_1aqye_362", "paddingY7Large": "_paddingY7Large_1aqye_367", "paddingY8Large": "_paddingY8Large_1aqye_372", "paddingY9Large": "_paddingY9Large_1aqye_377", "paddingY10Large": "_paddingY10Large_1aqye_382", "paddingY11Large": "_paddingY11Large_1aqye_387", "paddingY12Large": "_paddingY12Large_1aqye_392" };
|
|
242
241
|
|
|
243
242
|
// css-module:../rounding.module.css#css-module
|
|
244
|
-
var rounding_module_default = { "roundingsm": "
|
|
243
|
+
var rounding_module_default = { "roundingsm": "_roundingsm_1bo6p_2", "roundingmd": "_roundingmd_1bo6p_6", "roundinglg": "_roundinglg_1bo6p_10", "roundingxl": "_roundingxl_1bo6p_14", "roundingfull": "_roundingfull_1bo6p_18" };
|
|
245
244
|
|
|
246
245
|
// src/Box/Box.tsx
|
|
247
246
|
var import_react = require("react");
|
|
@@ -694,9 +693,10 @@ function Card({
|
|
|
694
693
|
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
695
694
|
Box_default,
|
|
696
695
|
{
|
|
697
|
-
rounding: "
|
|
698
|
-
padding:
|
|
699
|
-
smPadding:
|
|
696
|
+
rounding: "lg",
|
|
697
|
+
padding: 5,
|
|
698
|
+
smPadding: 7,
|
|
699
|
+
lgPadding: 7,
|
|
700
700
|
maxWidth: size && sizeWidth2[size],
|
|
701
701
|
width: "100%",
|
|
702
702
|
backgroundColor: "white",
|
|
@@ -1108,22 +1108,12 @@ var LinkButton = (0, import_react7.forwardRef)(
|
|
|
1108
1108
|
LinkButton.displayName = "LinkButton";
|
|
1109
1109
|
var LinkButton_default = LinkButton;
|
|
1110
1110
|
|
|
1111
|
-
// css-module:./MiniActionCard.module.css#css-module
|
|
1112
|
-
var MiniActionCard_module_default = { "miniActionCard": "_miniActionCard_qebkn_1", "card": "_card_qebkn_9" };
|
|
1113
|
-
|
|
1114
|
-
// src/MiniActionCard/MiniActionCard.tsx
|
|
1115
|
-
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
1116
|
-
var MiniActionCard = ({
|
|
1117
|
-
children
|
|
1118
|
-
}) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: MiniActionCard_module_default.miniActionCard, children });
|
|
1119
|
-
var MiniActionCard_default = MiniActionCard;
|
|
1120
|
-
|
|
1121
1111
|
// src/Modal/Modal.tsx
|
|
1122
1112
|
var import_classnames10 = __toESM(require_classnames());
|
|
1123
1113
|
|
|
1124
1114
|
// src/Modal/FocusTrap.tsx
|
|
1125
1115
|
var import_react8 = require("react");
|
|
1126
|
-
var
|
|
1116
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
1127
1117
|
function queryFocusableAll(el) {
|
|
1128
1118
|
const selector = [
|
|
1129
1119
|
"a[href]",
|
|
@@ -1184,7 +1174,7 @@ function FocusTrap({
|
|
|
1184
1174
|
}
|
|
1185
1175
|
};
|
|
1186
1176
|
}, [elRef, previouslyFocusedElRef]);
|
|
1187
|
-
return /* @__PURE__ */ (0,
|
|
1177
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { "data-testid": "syntax-focus-trap", ref: elRef, children });
|
|
1188
1178
|
}
|
|
1189
1179
|
|
|
1190
1180
|
// src/Modal/StopScroll.tsx
|
|
@@ -1202,13 +1192,13 @@ function StopScroll(props) {
|
|
|
1202
1192
|
|
|
1203
1193
|
// src/Modal/Layer.tsx
|
|
1204
1194
|
var import_react_dom = require("react-dom");
|
|
1205
|
-
var
|
|
1195
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
1206
1196
|
function Layer({
|
|
1207
1197
|
children,
|
|
1208
1198
|
zIndex = 1
|
|
1209
1199
|
}) {
|
|
1210
1200
|
return typeof document !== "undefined" ? (0, import_react_dom.createPortal)(
|
|
1211
|
-
/* @__PURE__ */ (0,
|
|
1201
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1212
1202
|
Box_default,
|
|
1213
1203
|
{
|
|
1214
1204
|
"data-testid": "syntax-layer",
|
|
@@ -1227,9 +1217,9 @@ function Layer({
|
|
|
1227
1217
|
var Modal_module_default = { "backdrop": "_backdrop_30t3h_1", "closeButton": "_closeButton_30t3h_12", "closeButtonWithImage": "_closeButtonWithImage_30t3h_32" };
|
|
1228
1218
|
|
|
1229
1219
|
// src/Modal/Modal.tsx
|
|
1230
|
-
var
|
|
1220
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
1231
1221
|
function XIcon({ color = "#000" }) {
|
|
1232
|
-
return /* @__PURE__ */ (0,
|
|
1222
|
+
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)(
|
|
1233
1223
|
"path",
|
|
1234
1224
|
{
|
|
1235
1225
|
fill: "inherit",
|
|
@@ -1252,14 +1242,14 @@ function Modal({
|
|
|
1252
1242
|
zIndex = 1,
|
|
1253
1243
|
"data-testid": dataTestId
|
|
1254
1244
|
}) {
|
|
1255
|
-
return /* @__PURE__ */ (0,
|
|
1245
|
+
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)(
|
|
1256
1246
|
"div",
|
|
1257
1247
|
{
|
|
1258
1248
|
className: Modal_module_default.backdrop,
|
|
1259
1249
|
role: "presentation",
|
|
1260
1250
|
onClick: (e) => e.target === e.currentTarget && onDismiss(),
|
|
1261
1251
|
onKeyDown: (e) => e.key === "Escape" && onDismiss(),
|
|
1262
|
-
children: /* @__PURE__ */ (0,
|
|
1252
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
|
|
1263
1253
|
Box_default,
|
|
1264
1254
|
{
|
|
1265
1255
|
"data-testid": dataTestId,
|
|
@@ -1272,7 +1262,7 @@ function Modal({
|
|
|
1272
1262
|
width: "100%",
|
|
1273
1263
|
dangerouslySetInlineStyle: { __style: { overflow: "hidden" } },
|
|
1274
1264
|
children: [
|
|
1275
|
-
/* @__PURE__ */ (0,
|
|
1265
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Box_default, { position: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1276
1266
|
"button",
|
|
1277
1267
|
{
|
|
1278
1268
|
"aria-label": accessibilityCloseLabel,
|
|
@@ -1281,14 +1271,14 @@ function Modal({
|
|
|
1281
1271
|
[Modal_module_default.closeButtonWithImage]: !!image
|
|
1282
1272
|
}),
|
|
1283
1273
|
onClick: onDismiss,
|
|
1284
|
-
children: /* @__PURE__ */ (0,
|
|
1274
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(XIcon, { color: image ? "#fff" : "#000" })
|
|
1285
1275
|
}
|
|
1286
1276
|
) }),
|
|
1287
|
-
image && /* @__PURE__ */ (0,
|
|
1288
|
-
/* @__PURE__ */ (0,
|
|
1289
|
-
/* @__PURE__ */ (0,
|
|
1290
|
-
/* @__PURE__ */ (0,
|
|
1291
|
-
footer && /* @__PURE__ */ (0,
|
|
1277
|
+
image && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Box_default, { maxHeight: 200, children: image }),
|
|
1278
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(Box_default, { display: "flex", gap: 3, direction: "column", padding: 9, children: [
|
|
1279
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Heading_default, { as: "h1", size: 500, children: header }),
|
|
1280
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Box_default, { marginBottom: 4, children }),
|
|
1281
|
+
footer && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1292
1282
|
Box_default,
|
|
1293
1283
|
{
|
|
1294
1284
|
display: "flex",
|
|
@@ -1318,7 +1308,7 @@ var import_classnames11 = __toESM(require_classnames());
|
|
|
1318
1308
|
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" };
|
|
1319
1309
|
|
|
1320
1310
|
// src/RadioButton/RadioButton.tsx
|
|
1321
|
-
var
|
|
1311
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
1322
1312
|
var RadioButton = ({
|
|
1323
1313
|
checked = false,
|
|
1324
1314
|
"data-testid": dataTestId,
|
|
@@ -1338,7 +1328,7 @@ var RadioButton = ({
|
|
|
1338
1328
|
[RadioButton_module_default.borderColor]: !error,
|
|
1339
1329
|
[Focus_module_default.accessibilityOutlineFocus]: isFocused && isFocusVisible2
|
|
1340
1330
|
});
|
|
1341
|
-
return /* @__PURE__ */ (0,
|
|
1331
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
1342
1332
|
"label",
|
|
1343
1333
|
{
|
|
1344
1334
|
className: (0, import_classnames11.default)(
|
|
@@ -1351,7 +1341,7 @@ var RadioButton = ({
|
|
|
1351
1341
|
}
|
|
1352
1342
|
),
|
|
1353
1343
|
children: [
|
|
1354
|
-
checked ? /* @__PURE__ */ (0,
|
|
1344
|
+
checked ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1355
1345
|
"div",
|
|
1356
1346
|
{
|
|
1357
1347
|
className: (0, import_classnames11.default)(sharedStyles, {
|
|
@@ -1359,8 +1349,8 @@ var RadioButton = ({
|
|
|
1359
1349
|
[RadioButton_module_default.smCheckedBorder]: size === "sm"
|
|
1360
1350
|
})
|
|
1361
1351
|
}
|
|
1362
|
-
) : /* @__PURE__ */ (0,
|
|
1363
|
-
/* @__PURE__ */ (0,
|
|
1352
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: (0, import_classnames11.default)(sharedStyles, RadioButton_module_default.neutralBorder) }),
|
|
1353
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1364
1354
|
"input",
|
|
1365
1355
|
{
|
|
1366
1356
|
"data-testid": dataTestId,
|
|
@@ -1387,7 +1377,7 @@ var RadioButton = ({
|
|
|
1387
1377
|
}
|
|
1388
1378
|
}
|
|
1389
1379
|
),
|
|
1390
|
-
label && /* @__PURE__ */ (0,
|
|
1380
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1391
1381
|
Typography_default,
|
|
1392
1382
|
{
|
|
1393
1383
|
size: size === "md" ? 200 : 100,
|
|
@@ -1413,17 +1403,17 @@ var ColorBaseGray800 = "#353535";
|
|
|
1413
1403
|
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" };
|
|
1414
1404
|
|
|
1415
1405
|
// src/SelectList/SelectOption.tsx
|
|
1416
|
-
var
|
|
1406
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
1417
1407
|
var SelectOption = ({
|
|
1418
1408
|
"data-testid": dataTestId,
|
|
1419
1409
|
value,
|
|
1420
1410
|
label,
|
|
1421
1411
|
disabled = false
|
|
1422
|
-
}) => /* @__PURE__ */ (0,
|
|
1412
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("option", { "data-testid": dataTestId, value, disabled, children: label });
|
|
1423
1413
|
var SelectOption_default = SelectOption;
|
|
1424
1414
|
|
|
1425
1415
|
// src/SelectList/SelectList.tsx
|
|
1426
|
-
var
|
|
1416
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
1427
1417
|
var iconSize3 = {
|
|
1428
1418
|
sm: 20,
|
|
1429
1419
|
md: 24,
|
|
@@ -1435,6 +1425,7 @@ function SelectList({
|
|
|
1435
1425
|
disabled = false,
|
|
1436
1426
|
errorText,
|
|
1437
1427
|
helperText,
|
|
1428
|
+
id,
|
|
1438
1429
|
label,
|
|
1439
1430
|
onChange,
|
|
1440
1431
|
onClick,
|
|
@@ -1442,22 +1433,23 @@ function SelectList({
|
|
|
1442
1433
|
selectedValue = "",
|
|
1443
1434
|
size = "md"
|
|
1444
1435
|
}) {
|
|
1445
|
-
const
|
|
1436
|
+
const reactId = (0, import_react11.useId)();
|
|
1437
|
+
const selectId = id != null ? id : reactId;
|
|
1446
1438
|
const { isFocusVisible: isFocusVisible2 } = useFocusVisible();
|
|
1447
1439
|
const [isFocused, setIsFocused] = (0, import_react11.useState)(false);
|
|
1448
|
-
return /* @__PURE__ */ (0,
|
|
1440
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
|
|
1449
1441
|
"div",
|
|
1450
1442
|
{
|
|
1451
1443
|
className: (0, import_classnames12.default)(SelectList_module_default.selectContainer, {
|
|
1452
1444
|
[SelectList_module_default.opacityOverlay]: disabled
|
|
1453
1445
|
}),
|
|
1454
1446
|
children: [
|
|
1455
|
-
label && /* @__PURE__ */ (0,
|
|
1456
|
-
/* @__PURE__ */ (0,
|
|
1457
|
-
/* @__PURE__ */ (0,
|
|
1447
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("label", { htmlFor: selectId, className: SelectList_module_default.outerTextContainer, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Typography_default, { size: 100, color: "gray700", children: label }) }),
|
|
1448
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: SelectList_module_default.selectWrapper, children: [
|
|
1449
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
|
|
1458
1450
|
"select",
|
|
1459
1451
|
{
|
|
1460
|
-
id,
|
|
1452
|
+
id: selectId,
|
|
1461
1453
|
"data-testid": dataTestId,
|
|
1462
1454
|
disabled,
|
|
1463
1455
|
className: (0, import_classnames12.default)(SelectList_module_default.selectBox, SelectList_module_default[size], {
|
|
@@ -1475,19 +1467,19 @@ function SelectList({
|
|
|
1475
1467
|
onFocus: () => setIsFocused(true),
|
|
1476
1468
|
onBlur: () => setIsFocused(false),
|
|
1477
1469
|
children: [
|
|
1478
|
-
placeholderText && /* @__PURE__ */ (0,
|
|
1470
|
+
placeholderText && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("option", { disabled: true, value: placeholderText, children: placeholderText }),
|
|
1479
1471
|
children
|
|
1480
1472
|
]
|
|
1481
1473
|
}
|
|
1482
1474
|
),
|
|
1483
|
-
/* @__PURE__ */ (0,
|
|
1475
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: SelectList_module_default.arrowIcon, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1484
1476
|
"svg",
|
|
1485
1477
|
{
|
|
1486
1478
|
focusable: "false",
|
|
1487
1479
|
"aria-hidden": "true",
|
|
1488
1480
|
viewBox: "0 0 24 24",
|
|
1489
1481
|
width: iconSize3[size],
|
|
1490
|
-
children: /* @__PURE__ */ (0,
|
|
1482
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1491
1483
|
"path",
|
|
1492
1484
|
{
|
|
1493
1485
|
fill: errorText ? ColorBaseDestructive700 : ColorBaseGray800,
|
|
@@ -1497,7 +1489,7 @@ function SelectList({
|
|
|
1497
1489
|
}
|
|
1498
1490
|
) })
|
|
1499
1491
|
] }),
|
|
1500
|
-
(helperText || errorText) && /* @__PURE__ */ (0,
|
|
1492
|
+
(helperText || errorText) && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: SelectList_module_default.outerTextContainer, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1501
1493
|
Typography_default,
|
|
1502
1494
|
{
|
|
1503
1495
|
size: 100,
|
|
@@ -1519,7 +1511,7 @@ var import_classnames13 = __toESM(require_classnames());
|
|
|
1519
1511
|
var TapArea_module_default = { "tapArea": "_tapArea_1rlyl_1", "fullWidth": "_fullWidth_1rlyl_5", "disabled": "_disabled_1rlyl_9", "enabled": "_enabled_1rlyl_16" };
|
|
1520
1512
|
|
|
1521
1513
|
// src/TapArea/TapArea.tsx
|
|
1522
|
-
var
|
|
1514
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
1523
1515
|
var TapArea = (0, import_react12.forwardRef)(
|
|
1524
1516
|
({
|
|
1525
1517
|
children,
|
|
@@ -1540,7 +1532,7 @@ var TapArea = (0, import_react12.forwardRef)(
|
|
|
1540
1532
|
onClick(event);
|
|
1541
1533
|
}
|
|
1542
1534
|
};
|
|
1543
|
-
return /* @__PURE__ */ (0,
|
|
1535
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1544
1536
|
"div",
|
|
1545
1537
|
{
|
|
1546
1538
|
"aria-disabled": disabled,
|
|
@@ -1573,7 +1565,7 @@ var import_classnames14 = __toESM(require_classnames());
|
|
|
1573
1565
|
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" };
|
|
1574
1566
|
|
|
1575
1567
|
// src/TextField/TextField.tsx
|
|
1576
|
-
var
|
|
1568
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
1577
1569
|
function TextField({
|
|
1578
1570
|
autoComplete,
|
|
1579
1571
|
"data-testid": dataTestId,
|
|
@@ -1590,7 +1582,7 @@ function TextField({
|
|
|
1590
1582
|
}) {
|
|
1591
1583
|
const reactId = (0, import_react13.useId)();
|
|
1592
1584
|
const inputId = id != null ? id : reactId;
|
|
1593
|
-
return /* @__PURE__ */ (0,
|
|
1585
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
1594
1586
|
Box_default,
|
|
1595
1587
|
{
|
|
1596
1588
|
display: "flex",
|
|
@@ -1603,8 +1595,8 @@ function TextField({
|
|
|
1603
1595
|
}
|
|
1604
1596
|
},
|
|
1605
1597
|
children: [
|
|
1606
|
-
label && /* @__PURE__ */ (0,
|
|
1607
|
-
/* @__PURE__ */ (0,
|
|
1598
|
+
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 }) }) }),
|
|
1599
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1608
1600
|
"input",
|
|
1609
1601
|
{
|
|
1610
1602
|
autoComplete,
|
|
@@ -1620,7 +1612,7 @@ function TextField({
|
|
|
1620
1612
|
value
|
|
1621
1613
|
}
|
|
1622
1614
|
),
|
|
1623
|
-
(helperText || errorText) && /* @__PURE__ */ (0,
|
|
1615
|
+
(helperText || errorText) && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Box_default, { paddingX: 1, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1624
1616
|
Typography_default,
|
|
1625
1617
|
{
|
|
1626
1618
|
size: 100,
|
|
@@ -1646,7 +1638,6 @@ function TextField({
|
|
|
1646
1638
|
Heading,
|
|
1647
1639
|
IconButton,
|
|
1648
1640
|
LinkButton,
|
|
1649
|
-
MiniActionCard,
|
|
1650
1641
|
Modal,
|
|
1651
1642
|
RadioButton,
|
|
1652
1643
|
SelectList,
|