@asdp/ferryui 0.1.22-dev.9840 → 0.1.22-dev.9939
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 +27 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +27 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -264,14 +264,21 @@ var brandColors = {
|
|
|
264
264
|
};
|
|
265
265
|
var spacing = {
|
|
266
266
|
"360": 36};
|
|
267
|
+
var fontSize = {
|
|
268
|
+
"190": 19};
|
|
267
269
|
var fontWeight = {
|
|
268
|
-
"Medium": 500
|
|
270
|
+
"Medium": 500,
|
|
271
|
+
"Bold": 700
|
|
272
|
+
};
|
|
269
273
|
var sharedColors = {
|
|
270
274
|
"Shared_Cranberry_Primary": "#c50f1f",
|
|
271
275
|
"Shared_Red_Primary": "#d13438",
|
|
272
276
|
"Shared_Orange_Shade_20": "#bc4b09",
|
|
273
277
|
"Shared_Orange_Tint_60": "#fff9f5",
|
|
274
278
|
"Shared_Green_Primary": "#107c10"};
|
|
279
|
+
var foundationColors = {
|
|
280
|
+
"Foundation_Danger_error": "#FD3A3A"
|
|
281
|
+
};
|
|
275
282
|
var lightModeColors = {
|
|
276
283
|
"Neutral_Foreground_Disabled_Rest": "#bdbdbd",
|
|
277
284
|
"Brand_Stroke_1_Rest": "#00B3BD"};
|
|
@@ -11210,7 +11217,15 @@ var ModalPassengerForm = ({
|
|
|
11210
11217
|
const [capturedImage, setCapturedImage] = useState(null);
|
|
11211
11218
|
const [stream, setStream] = useState(null);
|
|
11212
11219
|
const videoRef = useRef(null);
|
|
11213
|
-
const {
|
|
11220
|
+
const {
|
|
11221
|
+
control,
|
|
11222
|
+
handleSubmit,
|
|
11223
|
+
reset,
|
|
11224
|
+
watch,
|
|
11225
|
+
setValue,
|
|
11226
|
+
trigger,
|
|
11227
|
+
formState: { isValid }
|
|
11228
|
+
} = useForm({
|
|
11214
11229
|
mode: "all",
|
|
11215
11230
|
defaultValues
|
|
11216
11231
|
});
|
|
@@ -11758,6 +11773,10 @@ var ModalPassengerForm = ({
|
|
|
11758
11773
|
control,
|
|
11759
11774
|
type: "text",
|
|
11760
11775
|
label: mergedLabels.nameLabel,
|
|
11776
|
+
onInput: (e) => {
|
|
11777
|
+
const target = e.currentTarget;
|
|
11778
|
+
target.value = target.value.replace(/[^a-zA-Z\s]/g, "");
|
|
11779
|
+
},
|
|
11761
11780
|
placeholder: mergedLabels.namePlaceholder,
|
|
11762
11781
|
size: "large",
|
|
11763
11782
|
required: true,
|
|
@@ -15324,7 +15343,6 @@ var useStyles37 = makeStyles({
|
|
|
15324
15343
|
},
|
|
15325
15344
|
title: {
|
|
15326
15345
|
color: tokens.colorNeutralForeground2
|
|
15327
|
-
// Neutral_Stroke_Accessible_Rest based on Review.tsx usually
|
|
15328
15346
|
},
|
|
15329
15347
|
list: {
|
|
15330
15348
|
margin: 0,
|
|
@@ -15354,7 +15372,7 @@ var CardPaymentGuide = ({
|
|
|
15354
15372
|
const mergedLabels = { ...DEFAULT_LABELS35[language], ...labels };
|
|
15355
15373
|
const displayTitle = title || mergedLabels.title;
|
|
15356
15374
|
return /* @__PURE__ */ jsxs("div", { className: `${styles.container} ${className || ""}`, children: [
|
|
15357
|
-
|
|
15375
|
+
displayTitle && /* @__PURE__ */ jsx("div", { className: styles.titleContainer, children: /* @__PURE__ */ jsx(Subtitle1, { className: styles.title, children: displayTitle }) }),
|
|
15358
15376
|
/* @__PURE__ */ jsx(Accordion, { collapsible: true, multiple: true, children: guides.map((guide, index) => /* @__PURE__ */ jsxs(
|
|
15359
15377
|
AccordionItem,
|
|
15360
15378
|
{
|
|
@@ -15406,10 +15424,10 @@ var useStyles38 = makeStyles({
|
|
|
15406
15424
|
textAlign: "center"
|
|
15407
15425
|
},
|
|
15408
15426
|
expiryTitle: {
|
|
15409
|
-
fontSize:
|
|
15427
|
+
fontSize: `${fontSize[190]}px`,
|
|
15410
15428
|
// 19px approx/mapping
|
|
15411
|
-
|
|
15412
|
-
|
|
15429
|
+
fontWeight: fontWeight.Bold,
|
|
15430
|
+
color: foundationColors.Foundation_Danger_error
|
|
15413
15431
|
},
|
|
15414
15432
|
infoCard: {
|
|
15415
15433
|
border: `${tokens.strokeWidthThin} solid ${tokens.colorNeutralStroke1}`,
|
|
@@ -15504,6 +15522,7 @@ var CardPaymentInfo = ({
|
|
|
15504
15522
|
size: "large",
|
|
15505
15523
|
shape: "circular",
|
|
15506
15524
|
onClick: onCopyVA,
|
|
15525
|
+
style: { width: "80%" },
|
|
15507
15526
|
children: mergedLabels.copyCodeButton
|
|
15508
15527
|
}
|
|
15509
15528
|
)
|
|
@@ -15536,7 +15555,7 @@ var CardPaymentInfo = ({
|
|
|
15536
15555
|
)
|
|
15537
15556
|
] }),
|
|
15538
15557
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
15539
|
-
/* @__PURE__ */ jsx("div", { style: { marginBottom: tokens.spacingVerticalM }, children: /* @__PURE__ */ jsx(Subtitle2, { style: { color: tokens.
|
|
15558
|
+
/* @__PURE__ */ jsx("div", { style: { marginBottom: tokens.spacingVerticalM }, children: /* @__PURE__ */ jsx(Subtitle2, { style: { color: tokens.colorNeutralStrokeAccessible, fontWeight: fontWeight.Medium }, children: mergedLabels.checkStatusInfo }) }),
|
|
15540
15559
|
/* @__PURE__ */ jsx(
|
|
15541
15560
|
Button,
|
|
15542
15561
|
{
|