@asdp/ferryui 0.1.22-dev.9706 → 0.1.22-dev.9767

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
@@ -1605,7 +1605,7 @@ var CardTicket = ({
1605
1605
  ) }),
1606
1606
  /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs("div", { className: styles.ticketInfo, children: [
1607
1607
  /* @__PURE__ */ jsxs("div", { className: styles.ticketTime, children: [
1608
- /* @__PURE__ */ jsx(Caption1, { children: "KAMIS" }),
1608
+ /* @__PURE__ */ jsx(Caption1, { children: departureItem?.departureDay }),
1609
1609
  /* @__PURE__ */ jsx(Title2, { children: departureItem?.departureTime }),
1610
1610
  /* @__PURE__ */ jsx(Caption1, { children: routeItem?.portFrom + ", " + routeItem?.branchFrom })
1611
1611
  ] }),
@@ -1618,7 +1618,7 @@ var CardTicket = ({
1618
1618
  /* @__PURE__ */ jsx("div", { className: styles.dividerContainer, children: /* @__PURE__ */ jsx(Divider, { children: /* @__PURE__ */ jsx(Icon, { icon: "fluent:vehicle-ship-24-regular", height: 24 }) }) })
1619
1619
  ] }),
1620
1620
  /* @__PURE__ */ jsxs("div", { className: styles.ticketTime, children: [
1621
- /* @__PURE__ */ jsx(Caption1, { children: "KAMIS" }),
1621
+ /* @__PURE__ */ jsx(Caption1, { children: departureItem?.arrivedDay }),
1622
1622
  /* @__PURE__ */ jsxs(Title2, { children: [
1623
1623
  departureItem?.arrivedTime,
1624
1624
  " ",
@@ -4251,6 +4251,15 @@ var InputDynamic = ({
4251
4251
  const shouldFocusRef = useRef(false);
4252
4252
  const isBackspaceNavigationRef = useRef(false);
4253
4253
  const rawEmailOrPhoneInputRef = useRef("");
4254
+ const [selectPortalTarget, setSelectPortalTarget] = useState(null);
4255
+ useEffect(() => {
4256
+ if (typeof document !== "undefined") {
4257
+ const provider = document.querySelector(
4258
+ ".fui-FluentProvider"
4259
+ );
4260
+ setSelectPortalTarget(provider ?? document.body);
4261
+ }
4262
+ }, []);
4254
4263
  const getPhoneInputValue = (val) => {
4255
4264
  let cleaned = val.startsWith("+") ? stripNonDigits(val.substring(1)) : stripNonDigits(val);
4256
4265
  if (onlyCountries && onlyCountries.length > 0 && cleaned) {
@@ -4336,7 +4345,12 @@ var InputDynamic = ({
4336
4345
  menuPortal: (base) => ({
4337
4346
  ...base,
4338
4347
  zIndex: 9999999,
4339
- borderRadius: tokens.borderRadiusMedium
4348
+ borderRadius: tokens.borderRadiusMedium,
4349
+ // Explicitly set typography so portal children inherit correct values
4350
+ // regardless of where in the DOM tree the portal is mounted
4351
+ fontSize: tokens.fontSizeBase400,
4352
+ fontFamily: tokens.fontFamilyBase,
4353
+ lineHeight: tokens.lineHeightBase400
4340
4354
  }),
4341
4355
  control: getControlStyles,
4342
4356
  menu: (provided) => ({
@@ -4839,7 +4853,10 @@ var InputDynamic = ({
4839
4853
  getOptionLabel: (option) => option.label,
4840
4854
  getOptionValue: (option) => option.value,
4841
4855
  isOptionDisabled: (option) => option.disabled || false,
4842
- menuPlacement
4856
+ menuPlacement: menuPlacement || "auto",
4857
+ menuShouldScrollIntoView: false,
4858
+ menuPortalTarget: selectPortalTarget,
4859
+ menuPosition: "fixed"
4843
4860
  }
4844
4861
  );
4845
4862
  case "country":
@@ -4899,7 +4916,10 @@ var InputDynamic = ({
4899
4916
  ]
4900
4917
  }
4901
4918
  ),
4902
- menuPlacement
4919
+ menuPlacement: menuPlacement || "auto",
4920
+ menuShouldScrollIntoView: false,
4921
+ menuPortalTarget: selectPortalTarget,
4922
+ menuPosition: "fixed"
4903
4923
  }
4904
4924
  );
4905
4925
  case "phone": {
@@ -6616,8 +6636,8 @@ var useStyles11 = makeStyles({
6616
6636
  display: "flex",
6617
6637
  flexDirection: "column",
6618
6638
  alignItems: "center",
6619
- gap: tokens.spacingVerticalS,
6620
- maxWidth: "400px"
6639
+ gap: tokens.spacingVerticalS
6640
+ // maxWidth: "400px",
6621
6641
  },
6622
6642
  title: {
6623
6643
  fontWeight: "600"
@@ -6657,7 +6677,7 @@ var EmptyContent = ({
6657
6677
  }
6658
6678
  ),
6659
6679
  /* @__PURE__ */ jsxs("div", { className: styles.textContainer, children: [
6660
- /* @__PURE__ */ jsx(Subtitle1, { className: styles.title, children: displayTitle }),
6680
+ typeof displayTitle === "string" ? /* @__PURE__ */ jsx(Subtitle1, { className: styles.title, children: displayTitle }) : displayTitle,
6661
6681
  typeof displayMessage === "string" ? /* @__PURE__ */ jsx(Body1, { className: styles.message, children: displayMessage }) : displayMessage
6662
6682
  ] }),
6663
6683
  actionButton && /* @__PURE__ */ jsx(
@@ -16130,10 +16150,7 @@ var FileUpload = React.forwardRef(
16130
16150
  Field,
16131
16151
  {
16132
16152
  ref,
16133
- required,
16134
- label: {
16135
- children: (_, slotProps) => infoLabel ? /* @__PURE__ */ jsx(InfoLabel, { ...slotProps, info: infoLabel, className: styles.infoLabel, children: /* @__PURE__ */ jsx(Body1, { className: styles.label, children: label }) }) : /* @__PURE__ */ jsx(Body1, { className: styles.label, children: label })
16136
- },
16153
+ label: /* @__PURE__ */ jsx(InfoLabel, { info: infoLabel, required, className: styles.infoLabel, children: /* @__PURE__ */ jsx(Body1, { children: label }) }),
16137
16154
  className: styles.fieldContainer,
16138
16155
  children: [
16139
16156
  /* @__PURE__ */ jsx(
@@ -16212,11 +16229,8 @@ var FileUpload = React.forwardRef(
16212
16229
  Field,
16213
16230
  {
16214
16231
  ref,
16215
- required,
16216
16232
  className: styles.fieldContainer,
16217
- label: {
16218
- children: (_, slotProps) => infoLabel ? /* @__PURE__ */ jsx(InfoLabel, { ...slotProps, info: infoLabel, className: styles.infoLabel, children: /* @__PURE__ */ jsx(Body1, { className: styles.label, children: label }) }) : /* @__PURE__ */ jsx(Body1, { className: styles.label, children: label })
16219
- },
16233
+ label: /* @__PURE__ */ jsx(InfoLabel, { info: infoLabel, required, className: styles.infoLabel, children: /* @__PURE__ */ jsx(Body1, { children: label }) }),
16220
16234
  children: [
16221
16235
  /* @__PURE__ */ jsxs(
16222
16236
  Container,