@asdp/ferryui 0.1.22-dev.9319 → 0.1.22-dev.9337

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
@@ -221,28 +221,8 @@ var DEFAULT_LABELS2 = {
221
221
  }
222
222
  };
223
223
 
224
- // src/constants/generated/tokens.ts
225
- var brandColors = {
226
- "10": "#000000",
227
- "20": "#03060e",
228
- "30": "#060b1c",
229
- "40": "#09112a",
230
- "50": "#0c1738",
231
- "60": "#122255",
232
- "70": "#182e71",
233
- "80": "#1e398d",
234
- "90": "#4b60a4",
235
- "100": "#7787bb",
236
- "110": "#a4afd1",
237
- "120": "#bac2dd",
238
- "130": "#d0d6e8",
239
- "140": "#e7e9f4",
240
- "150": "#fdfdff",
241
- "160": "#ffffff"
242
- };
243
-
244
224
  // src/constants/generated/tokensV2.ts
245
- var brandColors2 = {
225
+ var brandColors = {
246
226
  "10": "#001a1bff",
247
227
  "20": "#02383bff",
248
228
  "30": "#002426",
@@ -260,7 +240,7 @@ var brandColors2 = {
260
240
  "150": "#fdfdff",
261
241
  "160": "#ffffff"
262
242
  };
263
- var spacing2 = {
243
+ var spacing = {
264
244
  "360": 36};
265
245
  var fontWeight = {
266
246
  "Medium": 500};
@@ -268,36 +248,31 @@ var sharedColors = {
268
248
  "Shared_Cranberry_Primary": "#c50f1f",
269
249
  "Shared_Red_Primary": "#d13438",
270
250
  "Shared_Green_Primary": "#107c10"};
271
- var lightModeColors2 = {
251
+ var lightModeColors = {
272
252
  "Neutral_Foreground_Disabled_Rest": "#bdbdbd",
273
253
  "Brand_Stroke_1_Rest": "#00B3BD"};
274
254
  var tokensV2_default = {
275
- lightModeColors: lightModeColors2};
255
+ lightModeColors};
276
256
 
277
257
  // src/constants/brandColors.ts
278
- var isV2Path = typeof window !== "undefined" && window.location.pathname.startsWith("/v2");
279
- var brandColors3 = !isV2Path ? brandColors2 : brandColors;
280
258
  var customBrand = {
281
- 10: brandColors3["10"],
282
- 20: brandColors3["20"],
283
- 30: brandColors3["30"],
284
- 40: brandColors3["40"],
285
- 50: brandColors3["50"],
286
- 60: brandColors3["60"],
287
- 70: brandColors3["70"],
288
- 80: brandColors3["80"],
289
- 90: brandColors3["90"],
290
- 100: brandColors3["100"],
291
- 110: brandColors3["110"],
292
- 120: brandColors3["120"],
293
- 130: brandColors3["130"],
294
- 140: brandColors3["140"],
295
- 150: brandColors3["150"],
296
- 160: brandColors3["160"]
259
+ 10: brandColors["10"],
260
+ 20: brandColors["20"],
261
+ 30: brandColors["30"],
262
+ 40: brandColors["40"],
263
+ 50: brandColors["50"],
264
+ 60: brandColors["60"],
265
+ 70: brandColors["70"],
266
+ 80: brandColors["80"],
267
+ 90: brandColors["90"],
268
+ 100: brandColors["100"],
269
+ 110: brandColors["110"],
270
+ 120: brandColors["120"],
271
+ 130: brandColors["130"],
272
+ 140: brandColors["140"],
273
+ 150: brandColors["150"],
274
+ 160: brandColors["160"]
297
275
  };
298
-
299
- // src/constants/designTokens.ts
300
- typeof window !== "undefined" && window.location.pathname.startsWith("/v2");
301
276
  var designTokens = {
302
277
  // Breakpoints for responsive design
303
278
  breakpoints: {
@@ -492,7 +467,7 @@ var useStyles2 = reactComponents.makeStyles({
492
467
  carousel: {},
493
468
  carouselContainer: {
494
469
  display: "flex",
495
- gap: `${spacing2[360]}px`,
470
+ gap: `${spacing[360]}px`,
496
471
  alignItems: "center",
497
472
  justifyContent: "start",
498
473
  [`@media (max-width: ${extendedTokens.breakpointMd})`]: {
@@ -593,6 +568,7 @@ var useStyles2 = reactComponents.makeStyles({
593
568
  },
594
569
  singleIndicatorWrapper: {
595
570
  display: "flex",
571
+ width: "100%",
596
572
  justifyContent: "center",
597
573
  alignItems: "center",
598
574
  marginTop: reactComponents.tokens.spacingVerticalXXL,
@@ -648,10 +624,9 @@ var CarouselWithCustomNav = ({
648
624
  }),
649
625
  [language, customLabels, deprecatedAriaLabel]
650
626
  );
651
- const activeIndex = isSingleSlide ? 0 : controlledIndex !== void 0 ? controlledIndex : internalIndex;
627
+ const activeIndex = controlledIndex !== void 0 ? controlledIndex : internalIndex;
652
628
  const handleIndexChange = React.useCallback(
653
629
  (index) => {
654
- if (isSingleSlide) return;
655
630
  if (controlledIndex === void 0) {
656
631
  setInternalIndex(index);
657
632
  }
@@ -660,10 +635,11 @@ var CarouselWithCustomNav = ({
660
635
  [controlledIndex, onActiveIndexChange, isSingleSlide]
661
636
  );
662
637
  React__default.default.useEffect(() => {
663
- if (!autoPlay || isSingleSlide) return;
638
+ if (!autoPlay) return;
639
+ const effectiveTotalSlides = isSingleSlide ? 2 : totalSlides;
664
640
  const intervalId = setInterval(() => {
665
641
  let nextIndex = activeIndex + 1;
666
- if (nextIndex >= totalSlides) {
642
+ if (nextIndex >= effectiveTotalSlides) {
667
643
  nextIndex = circular ? 0 : activeIndex;
668
644
  }
669
645
  if (nextIndex !== activeIndex) {
@@ -759,7 +735,7 @@ var CarouselWithCustomNav = ({
759
735
  className: styles.singleIndicatorWrapper,
760
736
  style: {
761
737
  backgroundColor: darkNavBackground ? reactComponents.tokens.colorSubtleBackgroundInverted : reactComponents.tokens.colorSubtleBackground,
762
- justifyContent: align === "start" ? "flex-start" : align === "end" ? "flex-end" : "center"
738
+ justifyContent: "center"
763
739
  },
764
740
  children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles.singleIndicatorDot })
765
741
  }
@@ -767,9 +743,10 @@ var CarouselWithCustomNav = ({
767
743
  reactComponents.CarouselNav,
768
744
  {
769
745
  style: {
746
+ width: "100%",
770
747
  backgroundColor: darkNavBackground ? reactComponents.tokens.colorSubtleBackgroundInverted : reactComponents.tokens.colorSubtleBackground,
771
748
  marginTop: reactComponents.tokens.spacingVerticalXXL,
772
- justifyContent: align === "start" ? "flex-start" : align === "end" ? "flex-end" : "center"
749
+ justifyContent: "center"
773
750
  },
774
751
  appearance: "brand",
775
752
  className: styles.carouselNavButton,
@@ -1710,7 +1687,7 @@ var CardTicket = ({
1710
1687
  {
1711
1688
  onClick: onSelectTicket,
1712
1689
  appearance: "primary",
1713
- style: { backgroundColor: brandColors2["60"] },
1690
+ style: { backgroundColor: brandColors["60"] },
1714
1691
  size: "medium",
1715
1692
  shape: "circular",
1716
1693
  icon: /* @__PURE__ */ jsxRuntime.jsx(react.Icon, { icon: "fluent:ticket-diagonal-24-filled" }),
@@ -2214,7 +2191,7 @@ var useStyles7 = reactComponents.makeStyles({
2214
2191
  gap: "12px",
2215
2192
  width: "100%",
2216
2193
  "&:hover": {
2217
- backgroundColor: reactComponents.tokens.colorNeutralBackground1Hover
2194
+ backgroundColor: brandColors["140"]
2218
2195
  },
2219
2196
  // Tablet: compact column, fixed width, description visible (1 line)
2220
2197
  [`@media (${BP_TABLET2})`]: {
@@ -2236,10 +2213,10 @@ var useStyles7 = reactComponents.makeStyles({
2236
2213
  }
2237
2214
  },
2238
2215
  menuItemActive: {
2239
- backgroundColor: reactComponents.tokens.colorNeutralBackground3,
2216
+ backgroundColor: brandColors["140"],
2240
2217
  color: reactComponents.tokens.colorNeutralForeground1,
2241
2218
  "&:hover": {
2242
- backgroundColor: reactComponents.tokens.colorNeutralBackground3Hover
2219
+ backgroundColor: brandColors["140"]
2243
2220
  }
2244
2221
  },
2245
2222
  // Icon wrapper — rounded bg on mobile
@@ -2379,13 +2356,42 @@ var CardServiceMenu = ({
2379
2356
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
2380
2357
  /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Card, { className: reactComponents.mergeClasses(styles.card, className), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles.menuList, children: [
2381
2358
  isLoading ? Array.from({ length: skeletonCount }).map((_, index) => /* @__PURE__ */ jsxRuntime.jsxs(React__default.default.Fragment, { children: [
2382
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: reactComponents.mergeClasses(styles.menuItem, styles.skeletonOverride), children: [
2383
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles.logoWrapper, children: /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Skeleton, { children: /* @__PURE__ */ jsxRuntime.jsx(reactComponents.SkeletonItem, { className: styles.logo, style: { borderRadius: "50%" } }) }) }),
2384
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles.textContent, children: [
2385
- /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Skeleton, { children: /* @__PURE__ */ jsxRuntime.jsx(reactComponents.SkeletonItem, { style: { width: "60%", height: "16px" } }) }),
2386
- showDescriptions && /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Skeleton, { className: styles.description, children: /* @__PURE__ */ jsxRuntime.jsx(reactComponents.SkeletonItem, { style: { width: "90%", height: "12px", marginTop: "4px" } }) })
2387
- ] })
2388
- ] }),
2359
+ /* @__PURE__ */ jsxRuntime.jsxs(
2360
+ "div",
2361
+ {
2362
+ className: reactComponents.mergeClasses(
2363
+ styles.menuItem,
2364
+ styles.skeletonOverride
2365
+ ),
2366
+ children: [
2367
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles.logoWrapper, children: /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Skeleton, { children: /* @__PURE__ */ jsxRuntime.jsx(
2368
+ reactComponents.SkeletonItem,
2369
+ {
2370
+ className: styles.logo,
2371
+ style: { borderRadius: "50%" }
2372
+ }
2373
+ ) }) }),
2374
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles.textContent, children: [
2375
+ /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Skeleton, { children: /* @__PURE__ */ jsxRuntime.jsx(
2376
+ reactComponents.SkeletonItem,
2377
+ {
2378
+ style: { width: "60%", height: "16px" }
2379
+ }
2380
+ ) }),
2381
+ showDescriptions && /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Skeleton, { className: styles.description, children: /* @__PURE__ */ jsxRuntime.jsx(
2382
+ reactComponents.SkeletonItem,
2383
+ {
2384
+ style: {
2385
+ width: "90%",
2386
+ height: "12px",
2387
+ marginTop: "4px"
2388
+ }
2389
+ }
2390
+ ) })
2391
+ ] })
2392
+ ]
2393
+ }
2394
+ ),
2389
2395
  index < skeletonCount - 1 && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
2390
2396
  /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Divider, { className: styles.dividerHorizontal }),
2391
2397
  /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Divider, { vertical: true, className: styles.dividerVertical })
@@ -5487,7 +5493,7 @@ var useStyles11 = reactComponents.makeStyles({
5487
5493
  circularButton: {
5488
5494
  borderRadius: reactComponents.tokens.borderRadius3XLarge,
5489
5495
  border: `1px solid ${reactComponents.tokens.colorBrandBackground}`,
5490
- backgroundColor: brandColors2["140"],
5496
+ backgroundColor: brandColors["140"],
5491
5497
  gap: "5px"
5492
5498
  },
5493
5499
  buttonContent: {
@@ -14169,7 +14175,7 @@ var FileUpload = React__default.default.forwardRef(
14169
14175
  icon: "fluent:document-pdf-32-regular",
14170
14176
  width: 32,
14171
14177
  height: 32,
14172
- style: { flexShrink: 0, color: brandColors2[80] }
14178
+ style: { flexShrink: 0, color: brandColors[80] }
14173
14179
  }
14174
14180
  )
14175
14181
  }
@@ -14188,7 +14194,7 @@ var FileUpload = React__default.default.forwardRef(
14188
14194
  {
14189
14195
  appearance: "transparent",
14190
14196
  size: "small",
14191
- style: { color: brandColors2[80] },
14197
+ style: { color: brandColors[80] },
14192
14198
  onClick: (e) => handlePreview(e, displayFile),
14193
14199
  children: mergedLabels.preview
14194
14200
  }
@@ -14245,7 +14251,7 @@ var FileUpload = React__default.default.forwardRef(
14245
14251
  {
14246
14252
  icon: "fluent:arrow-upload-32-filled",
14247
14253
  style: {
14248
- color: brandColors2[80],
14254
+ color: brandColors[80],
14249
14255
  maxWidth: "32px",
14250
14256
  width: "32px",
14251
14257
  maxHeight: "32px",
@@ -14294,7 +14300,7 @@ var FileUpload = React__default.default.forwardRef(
14294
14300
  icon: "fluent:document-pdf-32-regular",
14295
14301
  width: 32,
14296
14302
  height: 32,
14297
- style: { flexShrink: 0, color: brandColors2[80] }
14303
+ style: { flexShrink: 0, color: brandColors[80] }
14298
14304
  }
14299
14305
  )
14300
14306
  }
@@ -14350,7 +14356,7 @@ var FileUpload = React__default.default.forwardRef(
14350
14356
  {
14351
14357
  appearance: "transparent",
14352
14358
  size: "small",
14353
- style: { color: brandColors2[80] },
14359
+ style: { color: brandColors[80] },
14354
14360
  onClick: (e) => handlePreview(e, displayFile),
14355
14361
  children: mergedLabels.preview
14356
14362
  }
@@ -14404,7 +14410,7 @@ var FileUpload = React__default.default.forwardRef(
14404
14410
  appearance: "transparent",
14405
14411
  size: "small",
14406
14412
  icon: /* @__PURE__ */ jsxRuntime.jsx(reactIcons.ArrowDownloadRegular, {}),
14407
- style: { display: "flex", justifyContent: "end", color: brandColors2[80], width: "100%" },
14413
+ style: { display: "flex", justifyContent: "end", color: brandColors[80], width: "100%" },
14408
14414
  onClick: (e) => handleDownloadFile(e, displayFile),
14409
14415
  disabled: !(displayFile instanceof File),
14410
14416
  children: mergedLabels.downloadTemplateDocument