@asdp/ferryui 0.1.22-dev.9336 → 0.1.22-dev.9339

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,
@@ -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 })
@@ -4390,13 +4396,16 @@ var useStyles9 = reactComponents.makeStyles({
4390
4396
  display: "flex",
4391
4397
  justifyContent: "center",
4392
4398
  position: "absolute",
4393
- left: "18px",
4399
+ // left: "1px",
4394
4400
  bottom: "-16px",
4395
- width: "90%"
4401
+ width: "100%"
4396
4402
  },
4397
4403
  buttonSwitch: {
4398
4404
  background: reactComponents.tokens.colorNeutralBackground1,
4399
- boxShadow: `0 1px 2px 0 ${reactComponents.tokens.colorNeutralShadowKey}, 0 0 2px 0 ${reactComponents.tokens.colorNeutralShadowAmbient}`
4405
+ boxShadow: `0 1px 2px 0 ${reactComponents.tokens.colorNeutralShadowKey}, 0 0 2px 0 ${reactComponents.tokens.colorNeutralShadowAmbient}`,
4406
+ position: "absolute",
4407
+ right: "1rem",
4408
+ bottom: "-20px"
4400
4409
  },
4401
4410
  switchIcon: {
4402
4411
  display: "inline-flex",
@@ -4427,11 +4436,15 @@ var useStyles9 = reactComponents.makeStyles({
4427
4436
  }
4428
4437
  },
4429
4438
  formContainerCol: {
4439
+ paddingTop: "1rem !important",
4440
+ paddingBottom: "1rem !important",
4430
4441
  [`@media (max-width: ${extendedTokens.breakpointXl})`]: {
4431
4442
  paddingLeft: "20px !important",
4432
4443
  paddingRight: "20px !important",
4433
4444
  marginBottom: "1rem",
4434
- marginTop: "8rem"
4445
+ marginTop: "8rem",
4446
+ paddingTop: "0px !mportant",
4447
+ paddingBottom: "0px !mportant"
4435
4448
  }
4436
4449
  },
4437
4450
  serviceCol: {
@@ -4609,7 +4622,7 @@ var CardTicketSearch = ({
4609
4622
  className: styles.formContainerCol,
4610
4623
  children: /* @__PURE__ */ jsxRuntime.jsx("form", { onSubmit: handleSubmit(handleFormSubmit), children: /* @__PURE__ */ jsxRuntime.jsxs(reactGridSystem.Row, { style: { width: "100%" }, className: styles.formInnerRow, children: [
4611
4624
  /* @__PURE__ */ jsxRuntime.jsx(reactGridSystem.Col, { xs: 12, sm: 12, lg: 12, xl: 6, xxl: 6, xxxl: 6, children: /* @__PURE__ */ jsxRuntime.jsxs(reactGridSystem.Row, { style: { gap: "16px" }, className: styles.formFieldRow, children: [
4612
- /* @__PURE__ */ jsxRuntime.jsx(reactGridSystem.Col, { xs: 12, sm: 12, lg: 12, xl: 12, xxl: 12, xxxl: 12, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles.formField, children: /* @__PURE__ */ jsxRuntime.jsxs(reactGridSystem.Row, { children: [
4625
+ /* @__PURE__ */ jsxRuntime.jsx(reactGridSystem.Col, { xs: 12, sm: 12, lg: 12, xl: 12, xxl: 12, xxxl: 12, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles.formField, children: /* @__PURE__ */ jsxRuntime.jsxs(reactGridSystem.Row, { style: { height: "100%", gap: "16px" }, children: [
4613
4626
  /* @__PURE__ */ jsxRuntime.jsxs(
4614
4627
  reactGridSystem.Col,
4615
4628
  {
@@ -4620,6 +4633,9 @@ var CardTicketSearch = ({
4620
4633
  xl: 12,
4621
4634
  xxl: 12,
4622
4635
  xxxl: 12,
4636
+ style: {
4637
+ borderBottom: `1px solid ${reactComponents.tokens.colorNeutralStroke1}`
4638
+ },
4623
4639
  children: [
4624
4640
  /* @__PURE__ */ jsxRuntime.jsx(
4625
4641
  InputDynamic_default,
@@ -4646,37 +4662,33 @@ var CardTicketSearch = ({
4646
4662
  required: true
4647
4663
  }
4648
4664
  ),
4649
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles.deviderButton, children: [
4650
- /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Divider, {}),
4651
- " ",
4652
- /* @__PURE__ */ jsxRuntime.jsx(
4653
- reactComponents.Button,
4654
- {
4655
- onClick: onSwitchClick,
4656
- className: styles.buttonSwitch,
4657
- shape: "circular",
4658
- appearance: "secondary",
4659
- size: "large",
4660
- disabled: switchDisabled,
4661
- "aria-label": labels.switchAriaLabel,
4662
- icon: /* @__PURE__ */ jsxRuntime.jsx(
4663
- "div",
4664
- {
4665
- className: `${styles.switchIcon} ${isRotating ? styles.switchIconRotate : ""}`,
4666
- children: /* @__PURE__ */ jsxRuntime.jsx(
4667
- "img",
4668
- {
4669
- src: "/assets/images/icons/switch.svg",
4670
- alt: labels.switchAriaLabel,
4671
- width: 26,
4672
- height: 26
4673
- }
4674
- )
4675
- }
4676
- )
4677
- }
4678
- )
4679
- ] })
4665
+ /* @__PURE__ */ jsxRuntime.jsx(
4666
+ reactComponents.Button,
4667
+ {
4668
+ onClick: onSwitchClick,
4669
+ className: styles.buttonSwitch,
4670
+ shape: "circular",
4671
+ appearance: "secondary",
4672
+ size: "large",
4673
+ disabled: switchDisabled,
4674
+ "aria-label": labels.switchAriaLabel,
4675
+ icon: /* @__PURE__ */ jsxRuntime.jsx(
4676
+ "div",
4677
+ {
4678
+ className: `${styles.switchIcon} ${isRotating ? styles.switchIconRotate : ""}`,
4679
+ children: /* @__PURE__ */ jsxRuntime.jsx(
4680
+ "img",
4681
+ {
4682
+ src: "/assets/images/icons/switch.svg",
4683
+ alt: labels.switchAriaLabel,
4684
+ width: 26,
4685
+ height: 26
4686
+ }
4687
+ )
4688
+ }
4689
+ )
4690
+ }
4691
+ )
4680
4692
  ]
4681
4693
  }
4682
4694
  ),
@@ -4851,6 +4863,40 @@ var CardTicketSearch = ({
4851
4863
  },
4852
4864
  className: styles.serviceCol,
4853
4865
  children: /* @__PURE__ */ jsxRuntime.jsxs(reactGridSystem.Row, { style: { height: "100%", gap: "16px" }, children: [
4866
+ /* @__PURE__ */ jsxRuntime.jsx(reactGridSystem.Col, { xs: 12, sm: 12, lg: 12, xl: 12, xxl: 12, xxxl: 12, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles.formField, children: /* @__PURE__ */ jsxRuntime.jsx(reactGridSystem.Row, { style: { height: "100%", gap: "16px" }, children: /* @__PURE__ */ jsxRuntime.jsx(
4867
+ reactGridSystem.Col,
4868
+ {
4869
+ xs: 12,
4870
+ sm: 12,
4871
+ md: 12,
4872
+ lg: 12,
4873
+ xl: 12,
4874
+ xxl: 12,
4875
+ xxxl: 12,
4876
+ children: /* @__PURE__ */ jsxRuntime.jsx(
4877
+ InputDynamic_default,
4878
+ {
4879
+ name: "serviceClass",
4880
+ label: labels.serviceClassLabel,
4881
+ control,
4882
+ type: "text",
4883
+ contentBefore: /* @__PURE__ */ jsxRuntime.jsx(
4884
+ react.Icon,
4885
+ {
4886
+ icon: "fluent:ribbon-star-24-filled",
4887
+ color: reactComponents.tokens.colorBrandBackground
4888
+ }
4889
+ ),
4890
+ appearance: "filled-lighter",
4891
+ size: "large",
4892
+ placeholder: labels.placeholderTypeClass,
4893
+ onClick: onServiceClassClick,
4894
+ required: true,
4895
+ disabled: serviceClassDisabled
4896
+ }
4897
+ )
4898
+ }
4899
+ ) }) }) }),
4854
4900
  /* @__PURE__ */ jsxRuntime.jsx(reactGridSystem.Col, { xs: 12, sm: 12, lg: 12, xl: 12, xxl: 12, xxxl: 12, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles.formField, children: /* @__PURE__ */ jsxRuntime.jsxs(reactGridSystem.Row, { style: { height: "100%", gap: "16px" }, children: [
4855
4901
  /* @__PURE__ */ jsxRuntime.jsx(
4856
4902
  reactGridSystem.Col,
@@ -4862,40 +4908,9 @@ var CardTicketSearch = ({
4862
4908
  xl: 12,
4863
4909
  xxl: 12,
4864
4910
  xxxl: 12,
4865
- children: /* @__PURE__ */ jsxRuntime.jsx(
4866
- InputDynamic_default,
4867
- {
4868
- name: "serviceClass",
4869
- label: labels.serviceClassLabel,
4870
- control,
4871
- type: "text",
4872
- contentBefore: /* @__PURE__ */ jsxRuntime.jsx(
4873
- react.Icon,
4874
- {
4875
- icon: "fluent:ribbon-star-24-filled",
4876
- color: reactComponents.tokens.colorBrandBackground
4877
- }
4878
- ),
4879
- appearance: "filled-lighter",
4880
- size: "large",
4881
- placeholder: labels.placeholderTypeClass,
4882
- onClick: onServiceClassClick,
4883
- required: true,
4884
- disabled: serviceClassDisabled
4885
- }
4886
- )
4887
- }
4888
- ),
4889
- /* @__PURE__ */ jsxRuntime.jsx(
4890
- reactGridSystem.Col,
4891
- {
4892
- xs: 12,
4893
- sm: 12,
4894
- md: 12,
4895
- lg: 12,
4896
- xl: 12,
4897
- xxl: 12,
4898
- xxxl: 12,
4911
+ style: {
4912
+ borderBottom: showPassengerField ? `1px solid ${reactComponents.tokens.colorNeutralStroke1}` : "none"
4913
+ },
4899
4914
  children: /* @__PURE__ */ jsxRuntime.jsx(
4900
4915
  InputDynamic_default,
4901
4916
  {
@@ -4921,7 +4936,7 @@ var CardTicketSearch = ({
4921
4936
  )
4922
4937
  }
4923
4938
  ),
4924
- showPassengerField && /* @__PURE__ */ jsxRuntime.jsx(
4939
+ showPassengerField && /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsx(
4925
4940
  reactGridSystem.Col,
4926
4941
  {
4927
4942
  xs: 12,
@@ -4953,7 +4968,7 @@ var CardTicketSearch = ({
4953
4968
  }
4954
4969
  )
4955
4970
  }
4956
- )
4971
+ ) })
4957
4972
  ] }) }) }),
4958
4973
  /* @__PURE__ */ jsxRuntime.jsx(reactGridSystem.Col, { xs: 12, sm: 12, lg: 12, xl: 12, xxl: 12, xxxl: 12, children: /* @__PURE__ */ jsxRuntime.jsx(
4959
4974
  reactComponents.Button,
@@ -5487,7 +5502,7 @@ var useStyles11 = reactComponents.makeStyles({
5487
5502
  circularButton: {
5488
5503
  borderRadius: reactComponents.tokens.borderRadius3XLarge,
5489
5504
  border: `1px solid ${reactComponents.tokens.colorBrandBackground}`,
5490
- backgroundColor: brandColors2["140"],
5505
+ backgroundColor: brandColors["140"],
5491
5506
  gap: "5px"
5492
5507
  },
5493
5508
  buttonContent: {
@@ -14169,7 +14184,7 @@ var FileUpload = React__default.default.forwardRef(
14169
14184
  icon: "fluent:document-pdf-32-regular",
14170
14185
  width: 32,
14171
14186
  height: 32,
14172
- style: { flexShrink: 0, color: brandColors2[80] }
14187
+ style: { flexShrink: 0, color: brandColors[80] }
14173
14188
  }
14174
14189
  )
14175
14190
  }
@@ -14188,7 +14203,7 @@ var FileUpload = React__default.default.forwardRef(
14188
14203
  {
14189
14204
  appearance: "transparent",
14190
14205
  size: "small",
14191
- style: { color: brandColors2[80] },
14206
+ style: { color: brandColors[80] },
14192
14207
  onClick: (e) => handlePreview(e, displayFile),
14193
14208
  children: mergedLabels.preview
14194
14209
  }
@@ -14245,7 +14260,7 @@ var FileUpload = React__default.default.forwardRef(
14245
14260
  {
14246
14261
  icon: "fluent:arrow-upload-32-filled",
14247
14262
  style: {
14248
- color: brandColors2[80],
14263
+ color: brandColors[80],
14249
14264
  maxWidth: "32px",
14250
14265
  width: "32px",
14251
14266
  maxHeight: "32px",
@@ -14294,7 +14309,7 @@ var FileUpload = React__default.default.forwardRef(
14294
14309
  icon: "fluent:document-pdf-32-regular",
14295
14310
  width: 32,
14296
14311
  height: 32,
14297
- style: { flexShrink: 0, color: brandColors2[80] }
14312
+ style: { flexShrink: 0, color: brandColors[80] }
14298
14313
  }
14299
14314
  )
14300
14315
  }
@@ -14350,7 +14365,7 @@ var FileUpload = React__default.default.forwardRef(
14350
14365
  {
14351
14366
  appearance: "transparent",
14352
14367
  size: "small",
14353
- style: { color: brandColors2[80] },
14368
+ style: { color: brandColors[80] },
14354
14369
  onClick: (e) => handlePreview(e, displayFile),
14355
14370
  children: mergedLabels.preview
14356
14371
  }
@@ -14404,7 +14419,7 @@ var FileUpload = React__default.default.forwardRef(
14404
14419
  appearance: "transparent",
14405
14420
  size: "small",
14406
14421
  icon: /* @__PURE__ */ jsxRuntime.jsx(reactIcons.ArrowDownloadRegular, {}),
14407
- style: { display: "flex", justifyContent: "end", color: brandColors2[80], width: "100%" },
14422
+ style: { display: "flex", justifyContent: "end", color: brandColors[80], width: "100%" },
14408
14423
  onClick: (e) => handleDownloadFile(e, displayFile),
14409
14424
  disabled: !(displayFile instanceof File),
14410
14425
  children: mergedLabels.downloadTemplateDocument
@@ -14527,6 +14542,107 @@ var CardProfileMenu = ({
14527
14542
  ) });
14528
14543
  };
14529
14544
 
14545
+ // src/components/NoContent/NoContent.constants.ts
14546
+ var DEFAULT_LABELS40 = {
14547
+ id: {
14548
+ defaultImageAlt: "Tidak ada konten",
14549
+ defaultTitle: "Data {konten} belum bisa dimuat",
14550
+ defaultMessage: "Silahkan coba muat ulang halaman ini atau cek kembali beberapa saat lagi.",
14551
+ defaultButtonText: "Muat Ulang"
14552
+ },
14553
+ en: {
14554
+ defaultImageAlt: "No content available",
14555
+ defaultTitle: "Data {content} could not be loaded",
14556
+ defaultMessage: "Please try reloading this page or check back in a few moments.",
14557
+ defaultButtonText: "Reload"
14558
+ }
14559
+ };
14560
+ var getFormattedDefaultTitle = (template, content) => {
14561
+ if (content) {
14562
+ return template.replace(/\{(konten|content)\}/g, content);
14563
+ }
14564
+ return template.replace(/\s*\{(konten|content)\}\s*/g, " ").trim();
14565
+ };
14566
+ var useStyles42 = reactComponents.makeStyles({
14567
+ root: {
14568
+ display: "flex",
14569
+ flexDirection: "column",
14570
+ alignItems: "center",
14571
+ justifyContent: "center",
14572
+ gap: reactComponents.tokens.spacingVerticalL,
14573
+ textAlign: "center",
14574
+ paddingTop: reactComponents.tokens.spacingVerticalXXL,
14575
+ paddingBottom: reactComponents.tokens.spacingVerticalXXL,
14576
+ paddingLeft: reactComponents.tokens.spacingHorizontalXL,
14577
+ paddingRight: reactComponents.tokens.spacingHorizontalXL,
14578
+ width: "100%"
14579
+ },
14580
+ image: {
14581
+ maxWidth: "100%",
14582
+ height: "auto"
14583
+ },
14584
+ textContainer: {
14585
+ display: "flex",
14586
+ flexDirection: "column",
14587
+ alignItems: "center",
14588
+ gap: reactComponents.tokens.spacingVerticalS,
14589
+ maxWidth: "400px"
14590
+ },
14591
+ title: {
14592
+ fontWeight: "600"
14593
+ },
14594
+ message: {
14595
+ color: reactComponents.tokens.colorNeutralForeground3,
14596
+ textAlign: "center"
14597
+ }
14598
+ });
14599
+ var NoContent = ({
14600
+ title,
14601
+ content,
14602
+ message,
14603
+ imageSrc = "/assets/images/illustrations/no-content.svg",
14604
+ imageAlt,
14605
+ imageWidth = 240,
14606
+ imageHeight = 180,
14607
+ actionButton,
14608
+ language = "id",
14609
+ labels,
14610
+ className
14611
+ }) => {
14612
+ const styles = useStyles42();
14613
+ const mergedLabels = { ...DEFAULT_LABELS40[language], ...labels };
14614
+ const displayTitle = title ?? getFormattedDefaultTitle(mergedLabels.defaultTitle, content);
14615
+ const displayMessage = message ?? mergedLabels.defaultMessage;
14616
+ const displayImageAlt = imageAlt ?? mergedLabels.defaultImageAlt;
14617
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: reactComponents.mergeClasses(styles.root, className), children: [
14618
+ /* @__PURE__ */ jsxRuntime.jsx(
14619
+ "img",
14620
+ {
14621
+ src: imageSrc,
14622
+ alt: displayImageAlt,
14623
+ width: imageWidth,
14624
+ height: imageHeight,
14625
+ className: styles.image
14626
+ }
14627
+ ),
14628
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles.textContainer, children: [
14629
+ /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Subtitle1, { className: styles.title, children: displayTitle }),
14630
+ typeof displayMessage === "string" ? /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Body1, { className: styles.message, children: displayMessage }) : displayMessage
14631
+ ] }),
14632
+ actionButton && /* @__PURE__ */ jsxRuntime.jsx(
14633
+ reactComponents.Button,
14634
+ {
14635
+ type: "button",
14636
+ appearance: actionButton.appearance || "primary",
14637
+ onClick: actionButton.onClick,
14638
+ shape: "circular",
14639
+ style: { width: "100%" },
14640
+ children: actionButton.text
14641
+ }
14642
+ )
14643
+ ] });
14644
+ };
14645
+
14530
14646
  exports.API_CONFIG = API_CONFIG;
14531
14647
  exports.API_ENDPOINTS = API_ENDPOINTS;
14532
14648
  exports.API_ERROR_MESSAGES = API_ERROR_MESSAGES;
@@ -14590,6 +14706,8 @@ exports.ModalSelectDate = ModalSelectDate;
14590
14706
  exports.ModalService = ModalService;
14591
14707
  exports.ModalTotalPassengers = ModalTotalPassengers;
14592
14708
  exports.ModalTypeOfService = ModalTypeOfService;
14709
+ exports.NoContent = NoContent;
14710
+ exports.NoContentDefaultLabels = DEFAULT_LABELS40;
14593
14711
  exports.PASSENGER_TYPE = PASSENGER_TYPE;
14594
14712
  exports.SortMenu = SortMenu;
14595
14713
  exports.Stepper = Stepper;