@asdp/ferryui 0.1.22-dev.9838 → 0.1.22-dev.9856

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"};
@@ -13129,11 +13136,7 @@ var CardVehicleOwnerForm = ({
13129
13136
  cargoItems: updatedCargoItems
13130
13137
  });
13131
13138
  },
13132
- options: loadTypeOptions.filter(
13133
- (lt) => lt.commodityId === (getValues(
13134
- `owners.${index}.cargo.${cargoIndex}.commodity`
13135
- ) || "")
13136
- ).map((lt) => ({
13139
+ options: loadTypeOptions.map((lt) => ({
13137
13140
  value: lt.id.toString(),
13138
13141
  label: `${lt.name} (${lt.unit?.name})`
13139
13142
  })),
@@ -13159,7 +13162,7 @@ var CardVehicleOwnerForm = ({
13159
13162
  `owners.${index}.cargo.${cargoIndex}.cargoType`
13160
13163
  );
13161
13164
  const selectedLoadType = loadTypes.find(
13162
- (loadType) => loadType.id === type
13165
+ (loadType) => loadType.id.toString() === type
13163
13166
  );
13164
13167
  if (!selectedLoadType) {
13165
13168
  return /* @__PURE__ */ jsxRuntime.jsxs(reactGridSystem.Col, { md: 3, children: [
@@ -13348,9 +13351,9 @@ var CardVehicleOwnerForm = ({
13348
13351
  `owners.${index}.cargo.${cargoIndex}.cargoType`
13349
13352
  );
13350
13353
  const selectedLoadType2 = loadTypes.find(
13351
- (loadType) => loadType.id === type2
13354
+ (loadType) => loadType.id.toString() === type2
13352
13355
  );
13353
- return selectedLoadType2?.unit?.name || "----87----";
13356
+ return selectedLoadType2?.unit?.name;
13354
13357
  })()
13355
13358
  }
13356
13359
  )
@@ -15337,7 +15340,6 @@ var useStyles37 = reactComponents.makeStyles({
15337
15340
  },
15338
15341
  title: {
15339
15342
  color: reactComponents.tokens.colorNeutralForeground2
15340
- // Neutral_Stroke_Accessible_Rest based on Review.tsx usually
15341
15343
  },
15342
15344
  list: {
15343
15345
  margin: 0,
@@ -15367,7 +15369,7 @@ var CardPaymentGuide = ({
15367
15369
  const mergedLabels = { ...DEFAULT_LABELS35[language], ...labels };
15368
15370
  const displayTitle = title || mergedLabels.title;
15369
15371
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `${styles.container} ${className || ""}`, children: [
15370
- title && /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles.titleContainer, children: /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Subtitle1, { className: styles.title, children: displayTitle }) }),
15372
+ displayTitle && /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles.titleContainer, children: /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Subtitle1, { className: styles.title, children: displayTitle }) }),
15371
15373
  /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Accordion, { collapsible: true, multiple: true, children: guides.map((guide, index) => /* @__PURE__ */ jsxRuntime.jsxs(
15372
15374
  reactComponents.AccordionItem,
15373
15375
  {
@@ -15419,10 +15421,10 @@ var useStyles38 = reactComponents.makeStyles({
15419
15421
  textAlign: "center"
15420
15422
  },
15421
15423
  expiryTitle: {
15422
- fontSize: reactComponents.tokens.fontSizeBase500,
15424
+ fontSize: `${fontSize[190]}px`,
15423
15425
  // 19px approx/mapping
15424
- color: reactComponents.tokens.colorPaletteRedBackground3
15425
- // Foundation_Danger_error
15426
+ fontWeight: fontWeight.Bold,
15427
+ color: foundationColors.Foundation_Danger_error
15426
15428
  },
15427
15429
  infoCard: {
15428
15430
  border: `${reactComponents.tokens.strokeWidthThin} solid ${reactComponents.tokens.colorNeutralStroke1}`,
@@ -15517,6 +15519,7 @@ var CardPaymentInfo = ({
15517
15519
  size: "large",
15518
15520
  shape: "circular",
15519
15521
  onClick: onCopyVA,
15522
+ style: { width: "80%" },
15520
15523
  children: mergedLabels.copyCodeButton
15521
15524
  }
15522
15525
  )
@@ -15549,7 +15552,7 @@ var CardPaymentInfo = ({
15549
15552
  )
15550
15553
  ] }),
15551
15554
  /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
15552
- /* @__PURE__ */ jsxRuntime.jsx("div", { style: { marginBottom: reactComponents.tokens.spacingVerticalM }, children: /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Subtitle2, { style: { color: reactComponents.tokens.colorNeutralForeground2 }, children: mergedLabels.checkStatusInfo }) }),
15555
+ /* @__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 }) }),
15553
15556
  /* @__PURE__ */ jsxRuntime.jsx(
15554
15557
  reactComponents.Button,
15555
15558
  {