@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.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +30 -16
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +30 -16
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -969,7 +969,7 @@ interface EmptyContentProps {
|
|
|
969
969
|
* Title for the empty state
|
|
970
970
|
* If not provided, falls back to the default label for the given language
|
|
971
971
|
*/
|
|
972
|
-
title?: string;
|
|
972
|
+
title?: ReactNode | string;
|
|
973
973
|
/**
|
|
974
974
|
* Dynamic content name to replace `{konten}` or `{content}` placeholder in the default title
|
|
975
975
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -969,7 +969,7 @@ interface EmptyContentProps {
|
|
|
969
969
|
* Title for the empty state
|
|
970
970
|
* If not provided, falls back to the default label for the given language
|
|
971
971
|
*/
|
|
972
|
-
title?: string;
|
|
972
|
+
title?: ReactNode | string;
|
|
973
973
|
/**
|
|
974
974
|
* Dynamic content name to replace `{konten}` or `{content}` placeholder in the default title
|
|
975
975
|
*/
|
package/dist/index.js
CHANGED
|
@@ -1614,7 +1614,7 @@ var CardTicket = ({
|
|
|
1614
1614
|
) }),
|
|
1615
1615
|
/* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles.ticketInfo, children: [
|
|
1616
1616
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles.ticketTime, children: [
|
|
1617
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactComponents.Caption1, { children:
|
|
1617
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactComponents.Caption1, { children: departureItem?.departureDay }),
|
|
1618
1618
|
/* @__PURE__ */ jsxRuntime.jsx(reactComponents.Title2, { children: departureItem?.departureTime }),
|
|
1619
1619
|
/* @__PURE__ */ jsxRuntime.jsx(reactComponents.Caption1, { children: routeItem?.portFrom + ", " + routeItem?.branchFrom })
|
|
1620
1620
|
] }),
|
|
@@ -1627,7 +1627,7 @@ var CardTicket = ({
|
|
|
1627
1627
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles.dividerContainer, children: /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Divider, { children: /* @__PURE__ */ jsxRuntime.jsx(react.Icon, { icon: "fluent:vehicle-ship-24-regular", height: 24 }) }) })
|
|
1628
1628
|
] }),
|
|
1629
1629
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles.ticketTime, children: [
|
|
1630
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactComponents.Caption1, { children:
|
|
1630
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactComponents.Caption1, { children: departureItem?.arrivedDay }),
|
|
1631
1631
|
/* @__PURE__ */ jsxRuntime.jsxs(reactComponents.Title2, { children: [
|
|
1632
1632
|
departureItem?.arrivedTime,
|
|
1633
1633
|
" ",
|
|
@@ -4260,6 +4260,15 @@ var InputDynamic = ({
|
|
|
4260
4260
|
const shouldFocusRef = React.useRef(false);
|
|
4261
4261
|
const isBackspaceNavigationRef = React.useRef(false);
|
|
4262
4262
|
const rawEmailOrPhoneInputRef = React.useRef("");
|
|
4263
|
+
const [selectPortalTarget, setSelectPortalTarget] = React.useState(null);
|
|
4264
|
+
React.useEffect(() => {
|
|
4265
|
+
if (typeof document !== "undefined") {
|
|
4266
|
+
const provider = document.querySelector(
|
|
4267
|
+
".fui-FluentProvider"
|
|
4268
|
+
);
|
|
4269
|
+
setSelectPortalTarget(provider ?? document.body);
|
|
4270
|
+
}
|
|
4271
|
+
}, []);
|
|
4263
4272
|
const getPhoneInputValue = (val) => {
|
|
4264
4273
|
let cleaned = val.startsWith("+") ? stripNonDigits(val.substring(1)) : stripNonDigits(val);
|
|
4265
4274
|
if (onlyCountries && onlyCountries.length > 0 && cleaned) {
|
|
@@ -4345,7 +4354,12 @@ var InputDynamic = ({
|
|
|
4345
4354
|
menuPortal: (base) => ({
|
|
4346
4355
|
...base,
|
|
4347
4356
|
zIndex: 9999999,
|
|
4348
|
-
borderRadius: reactComponents.tokens.borderRadiusMedium
|
|
4357
|
+
borderRadius: reactComponents.tokens.borderRadiusMedium,
|
|
4358
|
+
// Explicitly set typography so portal children inherit correct values
|
|
4359
|
+
// regardless of where in the DOM tree the portal is mounted
|
|
4360
|
+
fontSize: reactComponents.tokens.fontSizeBase400,
|
|
4361
|
+
fontFamily: reactComponents.tokens.fontFamilyBase,
|
|
4362
|
+
lineHeight: reactComponents.tokens.lineHeightBase400
|
|
4349
4363
|
}),
|
|
4350
4364
|
control: getControlStyles,
|
|
4351
4365
|
menu: (provided) => ({
|
|
@@ -4848,7 +4862,10 @@ var InputDynamic = ({
|
|
|
4848
4862
|
getOptionLabel: (option) => option.label,
|
|
4849
4863
|
getOptionValue: (option) => option.value,
|
|
4850
4864
|
isOptionDisabled: (option) => option.disabled || false,
|
|
4851
|
-
menuPlacement
|
|
4865
|
+
menuPlacement: menuPlacement || "auto",
|
|
4866
|
+
menuShouldScrollIntoView: false,
|
|
4867
|
+
menuPortalTarget: selectPortalTarget,
|
|
4868
|
+
menuPosition: "fixed"
|
|
4852
4869
|
}
|
|
4853
4870
|
);
|
|
4854
4871
|
case "country":
|
|
@@ -4908,7 +4925,10 @@ var InputDynamic = ({
|
|
|
4908
4925
|
]
|
|
4909
4926
|
}
|
|
4910
4927
|
),
|
|
4911
|
-
menuPlacement
|
|
4928
|
+
menuPlacement: menuPlacement || "auto",
|
|
4929
|
+
menuShouldScrollIntoView: false,
|
|
4930
|
+
menuPortalTarget: selectPortalTarget,
|
|
4931
|
+
menuPosition: "fixed"
|
|
4912
4932
|
}
|
|
4913
4933
|
);
|
|
4914
4934
|
case "phone": {
|
|
@@ -6625,8 +6645,8 @@ var useStyles11 = reactComponents.makeStyles({
|
|
|
6625
6645
|
display: "flex",
|
|
6626
6646
|
flexDirection: "column",
|
|
6627
6647
|
alignItems: "center",
|
|
6628
|
-
gap: reactComponents.tokens.spacingVerticalS
|
|
6629
|
-
maxWidth: "400px"
|
|
6648
|
+
gap: reactComponents.tokens.spacingVerticalS
|
|
6649
|
+
// maxWidth: "400px",
|
|
6630
6650
|
},
|
|
6631
6651
|
title: {
|
|
6632
6652
|
fontWeight: "600"
|
|
@@ -6666,7 +6686,7 @@ var EmptyContent = ({
|
|
|
6666
6686
|
}
|
|
6667
6687
|
),
|
|
6668
6688
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles.textContainer, children: [
|
|
6669
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactComponents.Subtitle1, { className: styles.title, children: displayTitle }),
|
|
6689
|
+
typeof displayTitle === "string" ? /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Subtitle1, { className: styles.title, children: displayTitle }) : displayTitle,
|
|
6670
6690
|
typeof displayMessage === "string" ? /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Body1, { className: styles.message, children: displayMessage }) : displayMessage
|
|
6671
6691
|
] }),
|
|
6672
6692
|
actionButton && /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -16139,10 +16159,7 @@ var FileUpload = React__default.default.forwardRef(
|
|
|
16139
16159
|
reactComponents.Field,
|
|
16140
16160
|
{
|
|
16141
16161
|
ref,
|
|
16142
|
-
required,
|
|
16143
|
-
label: {
|
|
16144
|
-
children: (_, slotProps) => infoLabel ? /* @__PURE__ */ jsxRuntime.jsx(reactComponents.InfoLabel, { ...slotProps, info: infoLabel, className: styles.infoLabel, children: /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Body1, { className: styles.label, children: label }) }) : /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Body1, { className: styles.label, children: label })
|
|
16145
|
-
},
|
|
16162
|
+
label: /* @__PURE__ */ jsxRuntime.jsx(reactComponents.InfoLabel, { info: infoLabel, required, className: styles.infoLabel, children: /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Body1, { children: label }) }),
|
|
16146
16163
|
className: styles.fieldContainer,
|
|
16147
16164
|
children: [
|
|
16148
16165
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -16221,11 +16238,8 @@ var FileUpload = React__default.default.forwardRef(
|
|
|
16221
16238
|
reactComponents.Field,
|
|
16222
16239
|
{
|
|
16223
16240
|
ref,
|
|
16224
|
-
required,
|
|
16225
16241
|
className: styles.fieldContainer,
|
|
16226
|
-
label: {
|
|
16227
|
-
children: (_, slotProps) => infoLabel ? /* @__PURE__ */ jsxRuntime.jsx(reactComponents.InfoLabel, { ...slotProps, info: infoLabel, className: styles.infoLabel, children: /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Body1, { className: styles.label, children: label }) }) : /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Body1, { className: styles.label, children: label })
|
|
16228
|
-
},
|
|
16242
|
+
label: /* @__PURE__ */ jsxRuntime.jsx(reactComponents.InfoLabel, { info: infoLabel, required, className: styles.infoLabel, children: /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Body1, { children: label }) }),
|
|
16229
16243
|
children: [
|
|
16230
16244
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
16231
16245
|
reactGridSystem.Container,
|