@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.mjs CHANGED
@@ -212,28 +212,8 @@ var DEFAULT_LABELS2 = {
212
212
  }
213
213
  };
214
214
 
215
- // src/constants/generated/tokens.ts
216
- var brandColors = {
217
- "10": "#000000",
218
- "20": "#03060e",
219
- "30": "#060b1c",
220
- "40": "#09112a",
221
- "50": "#0c1738",
222
- "60": "#122255",
223
- "70": "#182e71",
224
- "80": "#1e398d",
225
- "90": "#4b60a4",
226
- "100": "#7787bb",
227
- "110": "#a4afd1",
228
- "120": "#bac2dd",
229
- "130": "#d0d6e8",
230
- "140": "#e7e9f4",
231
- "150": "#fdfdff",
232
- "160": "#ffffff"
233
- };
234
-
235
215
  // src/constants/generated/tokensV2.ts
236
- var brandColors2 = {
216
+ var brandColors = {
237
217
  "10": "#001a1bff",
238
218
  "20": "#02383bff",
239
219
  "30": "#002426",
@@ -251,7 +231,7 @@ var brandColors2 = {
251
231
  "150": "#fdfdff",
252
232
  "160": "#ffffff"
253
233
  };
254
- var spacing2 = {
234
+ var spacing = {
255
235
  "360": 36};
256
236
  var fontWeight = {
257
237
  "Medium": 500};
@@ -259,36 +239,31 @@ var sharedColors = {
259
239
  "Shared_Cranberry_Primary": "#c50f1f",
260
240
  "Shared_Red_Primary": "#d13438",
261
241
  "Shared_Green_Primary": "#107c10"};
262
- var lightModeColors2 = {
242
+ var lightModeColors = {
263
243
  "Neutral_Foreground_Disabled_Rest": "#bdbdbd",
264
244
  "Brand_Stroke_1_Rest": "#00B3BD"};
265
245
  var tokensV2_default = {
266
- lightModeColors: lightModeColors2};
246
+ lightModeColors};
267
247
 
268
248
  // src/constants/brandColors.ts
269
- var isV2Path = typeof window !== "undefined" && window.location.pathname.startsWith("/v2");
270
- var brandColors3 = !isV2Path ? brandColors2 : brandColors;
271
249
  var customBrand = {
272
- 10: brandColors3["10"],
273
- 20: brandColors3["20"],
274
- 30: brandColors3["30"],
275
- 40: brandColors3["40"],
276
- 50: brandColors3["50"],
277
- 60: brandColors3["60"],
278
- 70: brandColors3["70"],
279
- 80: brandColors3["80"],
280
- 90: brandColors3["90"],
281
- 100: brandColors3["100"],
282
- 110: brandColors3["110"],
283
- 120: brandColors3["120"],
284
- 130: brandColors3["130"],
285
- 140: brandColors3["140"],
286
- 150: brandColors3["150"],
287
- 160: brandColors3["160"]
250
+ 10: brandColors["10"],
251
+ 20: brandColors["20"],
252
+ 30: brandColors["30"],
253
+ 40: brandColors["40"],
254
+ 50: brandColors["50"],
255
+ 60: brandColors["60"],
256
+ 70: brandColors["70"],
257
+ 80: brandColors["80"],
258
+ 90: brandColors["90"],
259
+ 100: brandColors["100"],
260
+ 110: brandColors["110"],
261
+ 120: brandColors["120"],
262
+ 130: brandColors["130"],
263
+ 140: brandColors["140"],
264
+ 150: brandColors["150"],
265
+ 160: brandColors["160"]
288
266
  };
289
-
290
- // src/constants/designTokens.ts
291
- typeof window !== "undefined" && window.location.pathname.startsWith("/v2");
292
267
  var designTokens = {
293
268
  // Breakpoints for responsive design
294
269
  breakpoints: {
@@ -483,7 +458,7 @@ var useStyles2 = makeStyles({
483
458
  carousel: {},
484
459
  carouselContainer: {
485
460
  display: "flex",
486
- gap: `${spacing2[360]}px`,
461
+ gap: `${spacing[360]}px`,
487
462
  alignItems: "center",
488
463
  justifyContent: "start",
489
464
  [`@media (max-width: ${extendedTokens.breakpointMd})`]: {
@@ -584,6 +559,7 @@ var useStyles2 = makeStyles({
584
559
  },
585
560
  singleIndicatorWrapper: {
586
561
  display: "flex",
562
+ width: "100%",
587
563
  justifyContent: "center",
588
564
  alignItems: "center",
589
565
  marginTop: tokens.spacingVerticalXXL,
@@ -639,10 +615,9 @@ var CarouselWithCustomNav = ({
639
615
  }),
640
616
  [language, customLabels, deprecatedAriaLabel]
641
617
  );
642
- const activeIndex = isSingleSlide ? 0 : controlledIndex !== void 0 ? controlledIndex : internalIndex;
618
+ const activeIndex = controlledIndex !== void 0 ? controlledIndex : internalIndex;
643
619
  const handleIndexChange = useCallback(
644
620
  (index) => {
645
- if (isSingleSlide) return;
646
621
  if (controlledIndex === void 0) {
647
622
  setInternalIndex(index);
648
623
  }
@@ -651,10 +626,11 @@ var CarouselWithCustomNav = ({
651
626
  [controlledIndex, onActiveIndexChange, isSingleSlide]
652
627
  );
653
628
  React.useEffect(() => {
654
- if (!autoPlay || isSingleSlide) return;
629
+ if (!autoPlay) return;
630
+ const effectiveTotalSlides = isSingleSlide ? 2 : totalSlides;
655
631
  const intervalId = setInterval(() => {
656
632
  let nextIndex = activeIndex + 1;
657
- if (nextIndex >= totalSlides) {
633
+ if (nextIndex >= effectiveTotalSlides) {
658
634
  nextIndex = circular ? 0 : activeIndex;
659
635
  }
660
636
  if (nextIndex !== activeIndex) {
@@ -750,7 +726,7 @@ var CarouselWithCustomNav = ({
750
726
  className: styles.singleIndicatorWrapper,
751
727
  style: {
752
728
  backgroundColor: darkNavBackground ? tokens.colorSubtleBackgroundInverted : tokens.colorSubtleBackground,
753
- justifyContent: align === "start" ? "flex-start" : align === "end" ? "flex-end" : "center"
729
+ justifyContent: "center"
754
730
  },
755
731
  children: /* @__PURE__ */ jsx("span", { className: styles.singleIndicatorDot })
756
732
  }
@@ -758,9 +734,10 @@ var CarouselWithCustomNav = ({
758
734
  CarouselNav,
759
735
  {
760
736
  style: {
737
+ width: "100%",
761
738
  backgroundColor: darkNavBackground ? tokens.colorSubtleBackgroundInverted : tokens.colorSubtleBackground,
762
739
  marginTop: tokens.spacingVerticalXXL,
763
- justifyContent: align === "start" ? "flex-start" : align === "end" ? "flex-end" : "center"
740
+ justifyContent: "center"
764
741
  },
765
742
  appearance: "brand",
766
743
  className: styles.carouselNavButton,
@@ -1701,7 +1678,7 @@ var CardTicket = ({
1701
1678
  {
1702
1679
  onClick: onSelectTicket,
1703
1680
  appearance: "primary",
1704
- style: { backgroundColor: brandColors2["60"] },
1681
+ style: { backgroundColor: brandColors["60"] },
1705
1682
  size: "medium",
1706
1683
  shape: "circular",
1707
1684
  icon: /* @__PURE__ */ jsx(Icon, { icon: "fluent:ticket-diagonal-24-filled" }),
@@ -2205,7 +2182,7 @@ var useStyles7 = makeStyles({
2205
2182
  gap: "12px",
2206
2183
  width: "100%",
2207
2184
  "&:hover": {
2208
- backgroundColor: tokens.colorNeutralBackground1Hover
2185
+ backgroundColor: brandColors["140"]
2209
2186
  },
2210
2187
  // Tablet: compact column, fixed width, description visible (1 line)
2211
2188
  [`@media (${BP_TABLET2})`]: {
@@ -2227,10 +2204,10 @@ var useStyles7 = makeStyles({
2227
2204
  }
2228
2205
  },
2229
2206
  menuItemActive: {
2230
- backgroundColor: tokens.colorNeutralBackground3,
2207
+ backgroundColor: brandColors["140"],
2231
2208
  color: tokens.colorNeutralForeground1,
2232
2209
  "&:hover": {
2233
- backgroundColor: tokens.colorNeutralBackground3Hover
2210
+ backgroundColor: brandColors["140"]
2234
2211
  }
2235
2212
  },
2236
2213
  // Icon wrapper — rounded bg on mobile
@@ -2370,13 +2347,42 @@ var CardServiceMenu = ({
2370
2347
  return /* @__PURE__ */ jsxs(Fragment, { children: [
2371
2348
  /* @__PURE__ */ jsx(Card, { className: mergeClasses(styles.card, className), children: /* @__PURE__ */ jsxs("div", { className: styles.menuList, children: [
2372
2349
  isLoading ? Array.from({ length: skeletonCount }).map((_, index) => /* @__PURE__ */ jsxs(React.Fragment, { children: [
2373
- /* @__PURE__ */ jsxs("div", { className: mergeClasses(styles.menuItem, styles.skeletonOverride), children: [
2374
- /* @__PURE__ */ jsx("div", { className: styles.logoWrapper, children: /* @__PURE__ */ jsx(Skeleton, { children: /* @__PURE__ */ jsx(SkeletonItem, { className: styles.logo, style: { borderRadius: "50%" } }) }) }),
2375
- /* @__PURE__ */ jsxs("div", { className: styles.textContent, children: [
2376
- /* @__PURE__ */ jsx(Skeleton, { children: /* @__PURE__ */ jsx(SkeletonItem, { style: { width: "60%", height: "16px" } }) }),
2377
- showDescriptions && /* @__PURE__ */ jsx(Skeleton, { className: styles.description, children: /* @__PURE__ */ jsx(SkeletonItem, { style: { width: "90%", height: "12px", marginTop: "4px" } }) })
2378
- ] })
2379
- ] }),
2350
+ /* @__PURE__ */ jsxs(
2351
+ "div",
2352
+ {
2353
+ className: mergeClasses(
2354
+ styles.menuItem,
2355
+ styles.skeletonOverride
2356
+ ),
2357
+ children: [
2358
+ /* @__PURE__ */ jsx("div", { className: styles.logoWrapper, children: /* @__PURE__ */ jsx(Skeleton, { children: /* @__PURE__ */ jsx(
2359
+ SkeletonItem,
2360
+ {
2361
+ className: styles.logo,
2362
+ style: { borderRadius: "50%" }
2363
+ }
2364
+ ) }) }),
2365
+ /* @__PURE__ */ jsxs("div", { className: styles.textContent, children: [
2366
+ /* @__PURE__ */ jsx(Skeleton, { children: /* @__PURE__ */ jsx(
2367
+ SkeletonItem,
2368
+ {
2369
+ style: { width: "60%", height: "16px" }
2370
+ }
2371
+ ) }),
2372
+ showDescriptions && /* @__PURE__ */ jsx(Skeleton, { className: styles.description, children: /* @__PURE__ */ jsx(
2373
+ SkeletonItem,
2374
+ {
2375
+ style: {
2376
+ width: "90%",
2377
+ height: "12px",
2378
+ marginTop: "4px"
2379
+ }
2380
+ }
2381
+ ) })
2382
+ ] })
2383
+ ]
2384
+ }
2385
+ ),
2380
2386
  index < skeletonCount - 1 && /* @__PURE__ */ jsxs(Fragment, { children: [
2381
2387
  /* @__PURE__ */ jsx(Divider, { className: styles.dividerHorizontal }),
2382
2388
  /* @__PURE__ */ jsx(Divider, { vertical: true, className: styles.dividerVertical })
@@ -5478,7 +5484,7 @@ var useStyles11 = makeStyles({
5478
5484
  circularButton: {
5479
5485
  borderRadius: tokens.borderRadius3XLarge,
5480
5486
  border: `1px solid ${tokens.colorBrandBackground}`,
5481
- backgroundColor: brandColors2["140"],
5487
+ backgroundColor: brandColors["140"],
5482
5488
  gap: "5px"
5483
5489
  },
5484
5490
  buttonContent: {
@@ -14160,7 +14166,7 @@ var FileUpload = React.forwardRef(
14160
14166
  icon: "fluent:document-pdf-32-regular",
14161
14167
  width: 32,
14162
14168
  height: 32,
14163
- style: { flexShrink: 0, color: brandColors2[80] }
14169
+ style: { flexShrink: 0, color: brandColors[80] }
14164
14170
  }
14165
14171
  )
14166
14172
  }
@@ -14179,7 +14185,7 @@ var FileUpload = React.forwardRef(
14179
14185
  {
14180
14186
  appearance: "transparent",
14181
14187
  size: "small",
14182
- style: { color: brandColors2[80] },
14188
+ style: { color: brandColors[80] },
14183
14189
  onClick: (e) => handlePreview(e, displayFile),
14184
14190
  children: mergedLabels.preview
14185
14191
  }
@@ -14236,7 +14242,7 @@ var FileUpload = React.forwardRef(
14236
14242
  {
14237
14243
  icon: "fluent:arrow-upload-32-filled",
14238
14244
  style: {
14239
- color: brandColors2[80],
14245
+ color: brandColors[80],
14240
14246
  maxWidth: "32px",
14241
14247
  width: "32px",
14242
14248
  maxHeight: "32px",
@@ -14285,7 +14291,7 @@ var FileUpload = React.forwardRef(
14285
14291
  icon: "fluent:document-pdf-32-regular",
14286
14292
  width: 32,
14287
14293
  height: 32,
14288
- style: { flexShrink: 0, color: brandColors2[80] }
14294
+ style: { flexShrink: 0, color: brandColors[80] }
14289
14295
  }
14290
14296
  )
14291
14297
  }
@@ -14341,7 +14347,7 @@ var FileUpload = React.forwardRef(
14341
14347
  {
14342
14348
  appearance: "transparent",
14343
14349
  size: "small",
14344
- style: { color: brandColors2[80] },
14350
+ style: { color: brandColors[80] },
14345
14351
  onClick: (e) => handlePreview(e, displayFile),
14346
14352
  children: mergedLabels.preview
14347
14353
  }
@@ -14395,7 +14401,7 @@ var FileUpload = React.forwardRef(
14395
14401
  appearance: "transparent",
14396
14402
  size: "small",
14397
14403
  icon: /* @__PURE__ */ jsx(ArrowDownloadRegular, {}),
14398
- style: { display: "flex", justifyContent: "end", color: brandColors2[80], width: "100%" },
14404
+ style: { display: "flex", justifyContent: "end", color: brandColors[80], width: "100%" },
14399
14405
  onClick: (e) => handleDownloadFile(e, displayFile),
14400
14406
  disabled: !(displayFile instanceof File),
14401
14407
  children: mergedLabels.downloadTemplateDocument