@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 CHANGED
@@ -273,14 +273,21 @@ var brandColors = {
273
273
  };
274
274
  var spacing = {
275
275
  "360": 36};
276
+ var fontSize = {
277
+ "190": 19};
276
278
  var fontWeight = {
277
- "Medium": 500};
279
+ "Medium": 500,
280
+ "Bold": 700
281
+ };
278
282
  var sharedColors = {
279
283
  "Shared_Cranberry_Primary": "#c50f1f",
280
284
  "Shared_Red_Primary": "#d13438",
281
285
  "Shared_Orange_Shade_20": "#bc4b09",
282
286
  "Shared_Orange_Tint_60": "#fff9f5",
283
287
  "Shared_Green_Primary": "#107c10"};
288
+ var foundationColors = {
289
+ "Foundation_Danger_error": "#FD3A3A"
290
+ };
284
291
  var lightModeColors = {
285
292
  "Neutral_Foreground_Disabled_Rest": "#bdbdbd",
286
293
  "Brand_Stroke_1_Rest": "#00B3BD"};
@@ -11219,7 +11226,15 @@ var ModalPassengerForm = ({
11219
11226
  const [capturedImage, setCapturedImage] = React.useState(null);
11220
11227
  const [stream, setStream] = React.useState(null);
11221
11228
  const videoRef = React.useRef(null);
11222
- const { control, handleSubmit, reset, watch, setValue, trigger, formState: { isValid } } = reactHookForm.useForm({
11229
+ const {
11230
+ control,
11231
+ handleSubmit,
11232
+ reset,
11233
+ watch,
11234
+ setValue,
11235
+ trigger,
11236
+ formState: { isValid }
11237
+ } = reactHookForm.useForm({
11223
11238
  mode: "all",
11224
11239
  defaultValues
11225
11240
  });
@@ -11767,6 +11782,10 @@ var ModalPassengerForm = ({
11767
11782
  control,
11768
11783
  type: "text",
11769
11784
  label: mergedLabels.nameLabel,
11785
+ onInput: (e) => {
11786
+ const target = e.currentTarget;
11787
+ target.value = target.value.replace(/[^a-zA-Z\s]/g, "");
11788
+ },
11770
11789
  placeholder: mergedLabels.namePlaceholder,
11771
11790
  size: "large",
11772
11791
  required: true,
@@ -15333,7 +15352,6 @@ var useStyles37 = reactComponents.makeStyles({
15333
15352
  },
15334
15353
  title: {
15335
15354
  color: reactComponents.tokens.colorNeutralForeground2
15336
- // Neutral_Stroke_Accessible_Rest based on Review.tsx usually
15337
15355
  },
15338
15356
  list: {
15339
15357
  margin: 0,
@@ -15363,7 +15381,7 @@ var CardPaymentGuide = ({
15363
15381
  const mergedLabels = { ...DEFAULT_LABELS35[language], ...labels };
15364
15382
  const displayTitle = title || mergedLabels.title;
15365
15383
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `${styles.container} ${className || ""}`, children: [
15366
- title && /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles.titleContainer, children: /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Subtitle1, { className: styles.title, children: displayTitle }) }),
15384
+ displayTitle && /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles.titleContainer, children: /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Subtitle1, { className: styles.title, children: displayTitle }) }),
15367
15385
  /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Accordion, { collapsible: true, multiple: true, children: guides.map((guide, index) => /* @__PURE__ */ jsxRuntime.jsxs(
15368
15386
  reactComponents.AccordionItem,
15369
15387
  {
@@ -15415,10 +15433,10 @@ var useStyles38 = reactComponents.makeStyles({
15415
15433
  textAlign: "center"
15416
15434
  },
15417
15435
  expiryTitle: {
15418
- fontSize: reactComponents.tokens.fontSizeBase500,
15436
+ fontSize: `${fontSize[190]}px`,
15419
15437
  // 19px approx/mapping
15420
- color: reactComponents.tokens.colorPaletteRedBackground3
15421
- // Foundation_Danger_error
15438
+ fontWeight: fontWeight.Bold,
15439
+ color: foundationColors.Foundation_Danger_error
15422
15440
  },
15423
15441
  infoCard: {
15424
15442
  border: `${reactComponents.tokens.strokeWidthThin} solid ${reactComponents.tokens.colorNeutralStroke1}`,
@@ -15513,6 +15531,7 @@ var CardPaymentInfo = ({
15513
15531
  size: "large",
15514
15532
  shape: "circular",
15515
15533
  onClick: onCopyVA,
15534
+ style: { width: "80%" },
15516
15535
  children: mergedLabels.copyCodeButton
15517
15536
  }
15518
15537
  )
@@ -15545,7 +15564,7 @@ var CardPaymentInfo = ({
15545
15564
  )
15546
15565
  ] }),
15547
15566
  /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
15548
- /* @__PURE__ */ jsxRuntime.jsx("div", { style: { marginBottom: reactComponents.tokens.spacingVerticalM }, children: /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Subtitle2, { style: { color: reactComponents.tokens.colorNeutralForeground2 }, children: mergedLabels.checkStatusInfo }) }),
15567
+ /* @__PURE__ */ jsxRuntime.jsx("div", { style: { marginBottom: reactComponents.tokens.spacingVerticalM }, children: /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Subtitle2, { style: { color: reactComponents.tokens.colorNeutralStrokeAccessible, fontWeight: fontWeight.Medium }, children: mergedLabels.checkStatusInfo }) }),
15549
15568
  /* @__PURE__ */ jsxRuntime.jsx(
15550
15569
  reactComponents.Button,
15551
15570
  {