@asdp/ferryui 0.1.22-dev.9151 → 0.1.22-dev.9152
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 +13 -1
- package/dist/index.d.ts +13 -1
- package/dist/index.js +325 -54
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +325 -55
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1875,50 +1875,74 @@ var ALIAS_MENU_ITEMS = [
|
|
|
1875
1875
|
"sortOrder": 4
|
|
1876
1876
|
}
|
|
1877
1877
|
];
|
|
1878
|
+
var BP_TABLET = `max-width: ${extendedTokens.breakpointXl}`;
|
|
1879
|
+
var BP_MOBILE = `max-width: ${extendedTokens.breakpointMd}`;
|
|
1878
1880
|
var useStyles6 = makeStyles({
|
|
1879
1881
|
card: {
|
|
1880
1882
|
width: "100%",
|
|
1881
1883
|
boxSizing: "border-box",
|
|
1882
1884
|
padding: "0px",
|
|
1883
|
-
borderRadius: tokens.borderRadiusXLarge
|
|
1885
|
+
borderRadius: tokens.borderRadiusXLarge,
|
|
1886
|
+
[`@media (${BP_MOBILE})`]: {
|
|
1887
|
+
borderRadius: tokens.borderRadiusLarge
|
|
1888
|
+
}
|
|
1884
1889
|
},
|
|
1890
|
+
// Desktop: vertical column list
|
|
1885
1891
|
menuList: {
|
|
1886
1892
|
display: "flex",
|
|
1887
1893
|
flexDirection: "column",
|
|
1888
|
-
|
|
1894
|
+
justifyContent: "space-around",
|
|
1895
|
+
// Tablet + Mobile: horizontal scroll row
|
|
1896
|
+
[`@media (${BP_TABLET})`]: {
|
|
1889
1897
|
flexDirection: "row",
|
|
1890
1898
|
overflowX: "auto",
|
|
1899
|
+
overflowY: "visible",
|
|
1891
1900
|
flexWrap: "nowrap",
|
|
1892
|
-
gap: "0px",
|
|
1893
1901
|
WebkitOverflowScrolling: "touch",
|
|
1894
|
-
|
|
1895
|
-
|
|
1902
|
+
scrollSnapType: "x mandatory",
|
|
1903
|
+
// Thin scrollbar on tablet, hidden on mobile
|
|
1904
|
+
scrollbarWidth: "thin"
|
|
1905
|
+
},
|
|
1906
|
+
[`@media (${BP_MOBILE})`]: {
|
|
1907
|
+
scrollbarWidth: "none"
|
|
1896
1908
|
}
|
|
1897
1909
|
},
|
|
1910
|
+
// Desktop: full-width horizontal row (icon left, text right)
|
|
1898
1911
|
menuItem: {
|
|
1899
1912
|
display: "flex",
|
|
1900
1913
|
flexDirection: "row",
|
|
1901
1914
|
alignItems: "center",
|
|
1902
1915
|
justifyContent: "flex-start",
|
|
1903
|
-
padding: "12px",
|
|
1916
|
+
padding: "12px 16px",
|
|
1904
1917
|
borderRadius: tokens.borderRadiusMedium,
|
|
1905
1918
|
cursor: "pointer",
|
|
1906
1919
|
textAlign: "left",
|
|
1907
1920
|
transition: "background-color 0.2s ease",
|
|
1908
|
-
textDecoration: "none",
|
|
1909
1921
|
color: tokens.colorNeutralForeground1,
|
|
1910
1922
|
backgroundColor: tokens.colorNeutralBackground1,
|
|
1911
1923
|
border: "none",
|
|
1912
1924
|
gap: "12px",
|
|
1925
|
+
width: "100%",
|
|
1913
1926
|
"&:hover": {
|
|
1914
1927
|
backgroundColor: tokens.colorNeutralBackground1Hover
|
|
1915
1928
|
},
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
flexShrink: 0,
|
|
1929
|
+
// Tablet: compact column, fixed width, description visible (1 line)
|
|
1930
|
+
[`@media (${BP_TABLET})`]: {
|
|
1919
1931
|
flexDirection: "column",
|
|
1920
1932
|
alignItems: "center",
|
|
1921
|
-
textAlign: "center"
|
|
1933
|
+
textAlign: "center",
|
|
1934
|
+
padding: "10px 8px",
|
|
1935
|
+
flexShrink: 0,
|
|
1936
|
+
width: "90px",
|
|
1937
|
+
// compact fixed width
|
|
1938
|
+
gap: "4px",
|
|
1939
|
+
scrollSnapAlign: "start"
|
|
1940
|
+
},
|
|
1941
|
+
// Mobile: even tighter, no description
|
|
1942
|
+
[`@media (${BP_MOBILE})`]: {
|
|
1943
|
+
padding: "8px 6px",
|
|
1944
|
+
width: "72px",
|
|
1945
|
+
gap: "4px"
|
|
1922
1946
|
}
|
|
1923
1947
|
},
|
|
1924
1948
|
menuItemActive: {
|
|
@@ -1928,47 +1952,92 @@ var useStyles6 = makeStyles({
|
|
|
1928
1952
|
backgroundColor: tokens.colorNeutralBackground3Hover
|
|
1929
1953
|
}
|
|
1930
1954
|
},
|
|
1955
|
+
// Icon wrapper — rounded bg on mobile
|
|
1956
|
+
logoWrapper: {
|
|
1957
|
+
display: "flex",
|
|
1958
|
+
alignItems: "center",
|
|
1959
|
+
justifyContent: "center",
|
|
1960
|
+
flexShrink: 0
|
|
1961
|
+
},
|
|
1931
1962
|
logo: {
|
|
1932
1963
|
height: "32px",
|
|
1933
1964
|
width: "32px",
|
|
1934
|
-
flexShrink: 0
|
|
1965
|
+
flexShrink: 0,
|
|
1966
|
+
objectFit: "contain",
|
|
1967
|
+
[`@media (${BP_TABLET})`]: {
|
|
1968
|
+
height: "28px",
|
|
1969
|
+
width: "28px"
|
|
1970
|
+
},
|
|
1971
|
+
[`@media (${BP_MOBILE})`]: {
|
|
1972
|
+
height: "24px",
|
|
1973
|
+
width: "24px"
|
|
1974
|
+
}
|
|
1935
1975
|
},
|
|
1936
1976
|
textContent: {
|
|
1937
1977
|
display: "flex",
|
|
1938
1978
|
flexDirection: "column",
|
|
1939
1979
|
gap: "4px",
|
|
1940
|
-
|
|
1941
|
-
|
|
1980
|
+
minWidth: 0,
|
|
1981
|
+
width: "100%",
|
|
1982
|
+
// allow ellipsis to work
|
|
1983
|
+
[`@media (${BP_TABLET})`]: {
|
|
1984
|
+
alignItems: "center",
|
|
1985
|
+
gap: "2px"
|
|
1942
1986
|
}
|
|
1943
1987
|
},
|
|
1944
1988
|
label: {
|
|
1945
1989
|
fontSize: tokens.fontSizeBase300,
|
|
1946
1990
|
fontWeight: tokens.fontWeightSemibold,
|
|
1947
|
-
lineHeight: "1.2"
|
|
1991
|
+
lineHeight: "1.2",
|
|
1992
|
+
[`@media (${BP_TABLET})`]: {
|
|
1993
|
+
fontSize: tokens.fontSizeBase200,
|
|
1994
|
+
whiteSpace: "nowrap",
|
|
1995
|
+
overflow: "hidden",
|
|
1996
|
+
textOverflow: "ellipsis",
|
|
1997
|
+
width: "100%",
|
|
1998
|
+
textAlign: "center"
|
|
1999
|
+
},
|
|
2000
|
+
[`@media (${BP_MOBILE})`]: {
|
|
2001
|
+
fontSize: tokens.fontSizeBase100
|
|
2002
|
+
}
|
|
1948
2003
|
},
|
|
1949
2004
|
description: {
|
|
1950
2005
|
fontSize: tokens.fontSizeBase200,
|
|
1951
2006
|
fontWeight: tokens.fontWeightRegular,
|
|
1952
2007
|
color: tokens.colorNeutralForeground2,
|
|
1953
|
-
//
|
|
2008
|
+
// 2-line clamp on desktop
|
|
1954
2009
|
display: "-webkit-box",
|
|
1955
2010
|
WebkitLineClamp: 2,
|
|
1956
2011
|
WebkitBoxOrient: "vertical",
|
|
1957
2012
|
overflow: "hidden",
|
|
1958
2013
|
textOverflow: "ellipsis",
|
|
1959
2014
|
lineHeight: "1.4",
|
|
1960
|
-
|
|
2015
|
+
// Tablet: 1-line clamp, compact
|
|
2016
|
+
[`@media (${BP_TABLET})`]: {
|
|
1961
2017
|
fontSize: tokens.fontSizeBase100,
|
|
1962
|
-
|
|
2018
|
+
WebkitLineClamp: 1,
|
|
2019
|
+
whiteSpace: "nowrap",
|
|
2020
|
+
width: "100%",
|
|
2021
|
+
textAlign: "center"
|
|
2022
|
+
},
|
|
2023
|
+
// Mobile: hide description entirely
|
|
2024
|
+
[`@media (${BP_MOBILE})`]: {
|
|
2025
|
+
display: "none"
|
|
1963
2026
|
}
|
|
1964
2027
|
},
|
|
2028
|
+
// Dividers
|
|
1965
2029
|
dividerVertical: {
|
|
1966
|
-
|
|
2030
|
+
// Only visible on tablet (horizontal layout)
|
|
2031
|
+
[`@media (min-width: ${extendedTokens.breakpointXl})`]: {
|
|
2032
|
+
display: "none"
|
|
2033
|
+
},
|
|
2034
|
+
[`@media (${BP_MOBILE})`]: {
|
|
1967
2035
|
display: "none"
|
|
1968
2036
|
}
|
|
1969
2037
|
},
|
|
1970
2038
|
dividerHorizontal: {
|
|
1971
|
-
|
|
2039
|
+
// Only visible on desktop (vertical layout)
|
|
2040
|
+
[`@media (${BP_TABLET})`]: {
|
|
1972
2041
|
display: "none"
|
|
1973
2042
|
}
|
|
1974
2043
|
}
|
|
@@ -1997,14 +2066,14 @@ var CardServiceMenu = ({
|
|
|
1997
2066
|
onClick: () => onServiceClick?.(item.id),
|
|
1998
2067
|
"aria-label": item.name,
|
|
1999
2068
|
children: [
|
|
2000
|
-
/* @__PURE__ */ jsx(
|
|
2069
|
+
/* @__PURE__ */ jsx("div", { className: styles.logoWrapper, children: /* @__PURE__ */ jsx(
|
|
2001
2070
|
"img",
|
|
2002
2071
|
{
|
|
2003
2072
|
src: item.imageUrl,
|
|
2004
2073
|
alt: item.name,
|
|
2005
2074
|
className: styles.logo
|
|
2006
2075
|
}
|
|
2007
|
-
),
|
|
2076
|
+
) }),
|
|
2008
2077
|
/* @__PURE__ */ jsxs("div", { className: styles.textContent, children: [
|
|
2009
2078
|
/* @__PURE__ */ jsx("span", { className: styles.label, children: item.name }),
|
|
2010
2079
|
showDescriptions && /* @__PURE__ */ jsx(
|
|
@@ -2025,13 +2094,16 @@ var CardServiceMenu = ({
|
|
|
2025
2094
|
] }, item.id);
|
|
2026
2095
|
}) }) });
|
|
2027
2096
|
};
|
|
2028
|
-
|
|
2097
|
+
var MenuItemDescription = ({ description, className }) => {
|
|
2029
2098
|
const ref = useRef(null);
|
|
2030
2099
|
const [isClamped, setIsClamped] = useState(false);
|
|
2100
|
+
const [tooltipVisible, setTooltipVisible] = useState(false);
|
|
2031
2101
|
useEffect(() => {
|
|
2032
2102
|
const el = ref.current;
|
|
2033
2103
|
if (!el) return;
|
|
2034
|
-
const check = () => setIsClamped(
|
|
2104
|
+
const check = () => setIsClamped(
|
|
2105
|
+
el.scrollHeight > el.clientHeight || el.scrollWidth > el.clientWidth
|
|
2106
|
+
);
|
|
2035
2107
|
const timer = setTimeout(check, 0);
|
|
2036
2108
|
const observer = new ResizeObserver(check);
|
|
2037
2109
|
observer.observe(el);
|
|
@@ -2039,25 +2111,29 @@ function useIsClamped(deps) {
|
|
|
2039
2111
|
clearTimeout(timer);
|
|
2040
2112
|
observer.disconnect();
|
|
2041
2113
|
};
|
|
2042
|
-
},
|
|
2043
|
-
return
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2114
|
+
}, [description]);
|
|
2115
|
+
return /* @__PURE__ */ jsx(
|
|
2116
|
+
Tooltip,
|
|
2117
|
+
{
|
|
2118
|
+
appearance: "inverted",
|
|
2119
|
+
content: description,
|
|
2120
|
+
relationship: "description",
|
|
2121
|
+
positioning: "after",
|
|
2122
|
+
visible: tooltipVisible,
|
|
2123
|
+
onVisibleChange: (_, data) => setTooltipVisible(isClamped && data.visible),
|
|
2124
|
+
children: /* @__PURE__ */ jsx(
|
|
2125
|
+
"span",
|
|
2126
|
+
{
|
|
2127
|
+
ref,
|
|
2128
|
+
className,
|
|
2129
|
+
style: { pointerEvents: "auto" },
|
|
2130
|
+
onMouseEnter: () => isClamped && setTooltipVisible(true),
|
|
2131
|
+
onMouseLeave: () => setTooltipVisible(false),
|
|
2132
|
+
children: description
|
|
2133
|
+
}
|
|
2134
|
+
)
|
|
2135
|
+
}
|
|
2136
|
+
);
|
|
2061
2137
|
};
|
|
2062
2138
|
var DatePickerInput = forwardRef(
|
|
2063
2139
|
({
|
|
@@ -2575,6 +2651,7 @@ var InputDynamic = ({
|
|
|
2575
2651
|
appearance = "outline",
|
|
2576
2652
|
validationRules,
|
|
2577
2653
|
helperText,
|
|
2654
|
+
helperIcon,
|
|
2578
2655
|
className,
|
|
2579
2656
|
layout,
|
|
2580
2657
|
size = "large",
|
|
@@ -3495,7 +3572,7 @@ var InputDynamic = ({
|
|
|
3495
3572
|
if (!stringValue) return true;
|
|
3496
3573
|
const detectedType = detectEmailOrPhoneStrict(stringValue);
|
|
3497
3574
|
if (detectedType === "email") {
|
|
3498
|
-
if (!/^[
|
|
3575
|
+
if (!/^[a-zA-Z0-9._%+\-]+@[a-zA-Z0-9.\-]+\.[a-zA-Z]{2,}$/i.test(stringValue)) {
|
|
3499
3576
|
return "Format email tidak valid";
|
|
3500
3577
|
}
|
|
3501
3578
|
} else if (detectedType === "phone") {
|
|
@@ -3524,7 +3601,7 @@ var InputDynamic = ({
|
|
|
3524
3601
|
if (!stringValue) return true;
|
|
3525
3602
|
const detectedType = detectIdentityType(stringValue);
|
|
3526
3603
|
if (detectedType === "email") {
|
|
3527
|
-
if (!/^[
|
|
3604
|
+
if (!/^[a-zA-Z0-9._%+\-]+@[a-zA-Z0-9.\-]+\.[a-zA-Z]{2,}$/i.test(stringValue)) {
|
|
3528
3605
|
return "Format email tidak valid";
|
|
3529
3606
|
}
|
|
3530
3607
|
} else if (detectedType === "phone") {
|
|
@@ -3571,15 +3648,29 @@ var InputDynamic = ({
|
|
|
3571
3648
|
}
|
|
3572
3649
|
),
|
|
3573
3650
|
renderInput(field, error?.message),
|
|
3574
|
-
helperText && !error && /* @__PURE__ */
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3651
|
+
helperText && !error && /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "flex-start", gap: "4px", marginTop: "4px" }, children: [
|
|
3652
|
+
helperIcon && /* @__PURE__ */ jsx(
|
|
3653
|
+
Icon,
|
|
3654
|
+
{
|
|
3655
|
+
icon: helperIcon,
|
|
3656
|
+
style: {
|
|
3657
|
+
color: tokens.colorNeutralForeground3,
|
|
3658
|
+
flexShrink: 0
|
|
3659
|
+
},
|
|
3660
|
+
width: 16,
|
|
3661
|
+
height: 16
|
|
3662
|
+
}
|
|
3663
|
+
),
|
|
3664
|
+
/* @__PURE__ */ jsx(
|
|
3665
|
+
Text,
|
|
3666
|
+
{
|
|
3667
|
+
size: 200,
|
|
3668
|
+
style: { textAlign: "left" },
|
|
3669
|
+
className: styles.helperText,
|
|
3670
|
+
children: helperText
|
|
3671
|
+
}
|
|
3672
|
+
)
|
|
3673
|
+
] })
|
|
3583
3674
|
]
|
|
3584
3675
|
}
|
|
3585
3676
|
)
|
|
@@ -13504,7 +13595,186 @@ var CardProfileMenu = ({
|
|
|
13504
13595
|
}
|
|
13505
13596
|
) });
|
|
13506
13597
|
};
|
|
13598
|
+
var BP_TABLET2 = `max-width: ${extendedTokens.breakpointXl}`;
|
|
13599
|
+
var BP_MOBILE2 = `max-width: ${extendedTokens.breakpointMd}`;
|
|
13600
|
+
var useStyles41 = makeStyles({
|
|
13601
|
+
dialogSurface: {
|
|
13602
|
+
maxWidth: "900px",
|
|
13603
|
+
width: "100%"
|
|
13604
|
+
},
|
|
13605
|
+
closeButton: {
|
|
13606
|
+
minWidth: "32px",
|
|
13607
|
+
minHeight: "32px"
|
|
13608
|
+
},
|
|
13609
|
+
content: {
|
|
13610
|
+
paddingTop: "8px",
|
|
13611
|
+
paddingBottom: "16px"
|
|
13612
|
+
},
|
|
13613
|
+
// Horizontal row layout: icon left, text right — same as CardServiceMenu desktop
|
|
13614
|
+
menuItem: {
|
|
13615
|
+
display: "flex",
|
|
13616
|
+
flexDirection: "row",
|
|
13617
|
+
alignItems: "center",
|
|
13618
|
+
justifyContent: "flex-start",
|
|
13619
|
+
padding: "12px 16px",
|
|
13620
|
+
borderRadius: tokens.borderRadiusMedium,
|
|
13621
|
+
cursor: "pointer",
|
|
13622
|
+
textAlign: "left",
|
|
13623
|
+
transition: "background-color 0.2s ease",
|
|
13624
|
+
color: tokens.colorNeutralForeground1,
|
|
13625
|
+
backgroundColor: tokens.colorNeutralBackground1,
|
|
13626
|
+
border: "none",
|
|
13627
|
+
gap: "12px",
|
|
13628
|
+
width: "100%",
|
|
13629
|
+
"&:hover": {
|
|
13630
|
+
backgroundColor: tokens.colorNeutralBackground1Hover
|
|
13631
|
+
},
|
|
13632
|
+
[`@media (${BP_TABLET2})`]: {
|
|
13633
|
+
padding: "10px 10px",
|
|
13634
|
+
gap: "8px"
|
|
13635
|
+
},
|
|
13636
|
+
[`@media (${BP_MOBILE2})`]: {
|
|
13637
|
+
flexDirection: "column",
|
|
13638
|
+
alignItems: "center",
|
|
13639
|
+
textAlign: "center",
|
|
13640
|
+
padding: "8px 6px",
|
|
13641
|
+
gap: "4px"
|
|
13642
|
+
}
|
|
13643
|
+
},
|
|
13644
|
+
logoWrapper: {
|
|
13645
|
+
display: "flex",
|
|
13646
|
+
alignItems: "center",
|
|
13647
|
+
justifyContent: "center",
|
|
13648
|
+
flexShrink: 0
|
|
13649
|
+
},
|
|
13650
|
+
logo: {
|
|
13651
|
+
height: "32px",
|
|
13652
|
+
width: "32px",
|
|
13653
|
+
flexShrink: 0,
|
|
13654
|
+
objectFit: "contain",
|
|
13655
|
+
[`@media (${BP_TABLET2})`]: {
|
|
13656
|
+
height: "28px",
|
|
13657
|
+
width: "28px"
|
|
13658
|
+
},
|
|
13659
|
+
[`@media (${BP_MOBILE2})`]: {
|
|
13660
|
+
height: "24px",
|
|
13661
|
+
width: "24px"
|
|
13662
|
+
}
|
|
13663
|
+
},
|
|
13664
|
+
textContent: {
|
|
13665
|
+
display: "flex",
|
|
13666
|
+
flexDirection: "column",
|
|
13667
|
+
gap: "2px",
|
|
13668
|
+
minWidth: 0,
|
|
13669
|
+
width: "100%",
|
|
13670
|
+
[`@media (${BP_MOBILE2})`]: {
|
|
13671
|
+
alignItems: "center"
|
|
13672
|
+
}
|
|
13673
|
+
},
|
|
13674
|
+
label: {
|
|
13675
|
+
fontSize: tokens.fontSizeBase300,
|
|
13676
|
+
fontWeight: tokens.fontWeightSemibold,
|
|
13677
|
+
lineHeight: "1.2",
|
|
13678
|
+
whiteSpace: "nowrap",
|
|
13679
|
+
overflow: "hidden",
|
|
13680
|
+
textOverflow: "ellipsis",
|
|
13681
|
+
width: "100%",
|
|
13682
|
+
[`@media (${BP_TABLET2})`]: {
|
|
13683
|
+
fontSize: tokens.fontSizeBase200
|
|
13684
|
+
},
|
|
13685
|
+
[`@media (${BP_MOBILE2})`]: {
|
|
13686
|
+
fontSize: tokens.fontSizeBase100,
|
|
13687
|
+
textAlign: "center"
|
|
13688
|
+
}
|
|
13689
|
+
},
|
|
13690
|
+
description: {
|
|
13691
|
+
fontSize: tokens.fontSizeBase200,
|
|
13692
|
+
fontWeight: tokens.fontWeightRegular,
|
|
13693
|
+
color: tokens.colorNeutralForeground2,
|
|
13694
|
+
display: "-webkit-box",
|
|
13695
|
+
WebkitLineClamp: 2,
|
|
13696
|
+
WebkitBoxOrient: "vertical",
|
|
13697
|
+
overflow: "hidden",
|
|
13698
|
+
textOverflow: "ellipsis",
|
|
13699
|
+
lineHeight: "1.4",
|
|
13700
|
+
[`@media (${BP_TABLET2})`]: {
|
|
13701
|
+
fontSize: tokens.fontSizeBase100,
|
|
13702
|
+
WebkitLineClamp: 1
|
|
13703
|
+
},
|
|
13704
|
+
[`@media (${BP_MOBILE2})`]: {
|
|
13705
|
+
display: "none"
|
|
13706
|
+
}
|
|
13707
|
+
}
|
|
13708
|
+
});
|
|
13709
|
+
var ModalListMenuService = ({
|
|
13710
|
+
open = false,
|
|
13711
|
+
onClose = () => {
|
|
13712
|
+
},
|
|
13713
|
+
title = "",
|
|
13714
|
+
menuItems = ALIAS_MENU_ITEMS,
|
|
13715
|
+
onItemClick,
|
|
13716
|
+
showDescriptions = true
|
|
13717
|
+
}) => {
|
|
13718
|
+
const styles = useStyles41();
|
|
13719
|
+
return /* @__PURE__ */ jsx(
|
|
13720
|
+
Dialog,
|
|
13721
|
+
{
|
|
13722
|
+
open,
|
|
13723
|
+
onOpenChange: (_, data) => {
|
|
13724
|
+
if (!data.open) {
|
|
13725
|
+
onClose();
|
|
13726
|
+
}
|
|
13727
|
+
},
|
|
13728
|
+
children: /* @__PURE__ */ jsx(DialogSurface, { className: styles.dialogSurface, children: /* @__PURE__ */ jsxs(DialogBody, { children: [
|
|
13729
|
+
/* @__PURE__ */ jsx(
|
|
13730
|
+
DialogTitle,
|
|
13731
|
+
{
|
|
13732
|
+
action: /* @__PURE__ */ jsx(
|
|
13733
|
+
Button,
|
|
13734
|
+
{
|
|
13735
|
+
appearance: "subtle",
|
|
13736
|
+
"aria-label": "close",
|
|
13737
|
+
icon: /* @__PURE__ */ jsx(Icon, { icon: "fluent:dismiss-24-regular" }),
|
|
13738
|
+
onClick: onClose,
|
|
13739
|
+
className: styles.closeButton
|
|
13740
|
+
}
|
|
13741
|
+
),
|
|
13742
|
+
children: title
|
|
13743
|
+
}
|
|
13744
|
+
),
|
|
13745
|
+
/* @__PURE__ */ jsx(DialogContent, { className: styles.content, children: /* @__PURE__ */ jsx(Row, { gutterWidth: 0, children: menuItems.map((item) => /* @__PURE__ */ jsx(Col, { xs: 6, sm: 6, md: 3, lg: 3, children: /* @__PURE__ */ jsxs(
|
|
13746
|
+
Button,
|
|
13747
|
+
{
|
|
13748
|
+
className: styles.menuItem,
|
|
13749
|
+
onClick: () => onItemClick?.(item),
|
|
13750
|
+
"aria-label": item.name,
|
|
13751
|
+
children: [
|
|
13752
|
+
/* @__PURE__ */ jsx("div", { className: styles.logoWrapper, children: /* @__PURE__ */ jsx(
|
|
13753
|
+
"img",
|
|
13754
|
+
{
|
|
13755
|
+
src: item.imageUrl,
|
|
13756
|
+
alt: item.name,
|
|
13757
|
+
className: styles.logo
|
|
13758
|
+
}
|
|
13759
|
+
) }),
|
|
13760
|
+
/* @__PURE__ */ jsxs("div", { className: styles.textContent, children: [
|
|
13761
|
+
/* @__PURE__ */ jsx("span", { className: styles.label, children: item.name }),
|
|
13762
|
+
showDescriptions && /* @__PURE__ */ jsx(
|
|
13763
|
+
MenuItemDescription,
|
|
13764
|
+
{
|
|
13765
|
+
description: item.description,
|
|
13766
|
+
className: styles.description
|
|
13767
|
+
}
|
|
13768
|
+
)
|
|
13769
|
+
] })
|
|
13770
|
+
]
|
|
13771
|
+
}
|
|
13772
|
+
) }, item.id)) }) })
|
|
13773
|
+
] }) })
|
|
13774
|
+
}
|
|
13775
|
+
);
|
|
13776
|
+
};
|
|
13507
13777
|
|
|
13508
|
-
export { API_CONFIG, API_ENDPOINTS, API_ERROR_MESSAGES, BackgroundTicketCard_default as BackgroundTicketCard, BackgroundTicketCardVertical_default as BackgroundTicketCardVertical, COUNTRIES, CardAddon, CardBanner, CardBookingTicket, CardFAQ, CardMealCatalog, CardOrdererInfo, CardPassengerList, CardPaymentGuide, CardPaymentInfo, CardPaymentMethodList, CardPriceDetails, CardProfileMenu, CardPromo, CardReview, CardReviewPassenger, CardServiceMenu, CardStatusOrder, CardTicket, CardTicketSearch, DEFAULT_LABELS8 as CardTicketSearchDefaultLabels, CardTicketSearchSummary, DEFAULT_LABELS9 as CardTicketSearchSummaryDefaultLabels, CardVehicleDetail, CardVehicleOwnerForm, CarouselWithCustomNav, DEFAULT_DURATION_RANGE, DEFAULT_PRICE_RANGE, DEFAULT_SCROLL_AMOUNT, DEFAULT_SERVICE_TYPES, DEFAULT_SORT_OPTIONS, DEFAULT_TIME_SLOTS, DEFAULT_VEHICLE_ICONS, DateFilter, DEFAULT_LABELS17 as DateFilterDefaultLabels, FileUpload_default as FileUpload, GENDER, HTTP_STATUS, IDENTITY_TYPE, InputDynamic_default as InputDynamic, LOAD_TYPE, MODAL_PRESETS, MY_TICKET_STATUS, MY_TICKET_TAB, ModalFilterTicket, DEFAULT_LABELS16 as ModalFilterTicketDefaultLabels, ModalIllustration, ModalListPassenger, ModalPassengerForm, ModalPreviewImage, ModalPriceDetail, ModalSearchHarbor, ModalSearchTicket, ModalSelectDate, ModalService, ModalTotalPassengers, ModalTypeOfService, PASSENGER_TYPE, SortMenu, Stepper, getBadgeConfig, getModalPreset, getSortLabel };
|
|
13778
|
+
export { API_CONFIG, API_ENDPOINTS, API_ERROR_MESSAGES, BackgroundTicketCard_default as BackgroundTicketCard, BackgroundTicketCardVertical_default as BackgroundTicketCardVertical, COUNTRIES, CardAddon, CardBanner, CardBookingTicket, CardFAQ, CardMealCatalog, CardOrdererInfo, CardPassengerList, CardPaymentGuide, CardPaymentInfo, CardPaymentMethodList, CardPriceDetails, CardProfileMenu, CardPromo, CardReview, CardReviewPassenger, CardServiceMenu, CardStatusOrder, CardTicket, CardTicketSearch, DEFAULT_LABELS8 as CardTicketSearchDefaultLabels, CardTicketSearchSummary, DEFAULT_LABELS9 as CardTicketSearchSummaryDefaultLabels, CardVehicleDetail, CardVehicleOwnerForm, CarouselWithCustomNav, DEFAULT_DURATION_RANGE, DEFAULT_PRICE_RANGE, DEFAULT_SCROLL_AMOUNT, DEFAULT_SERVICE_TYPES, DEFAULT_SORT_OPTIONS, DEFAULT_TIME_SLOTS, DEFAULT_VEHICLE_ICONS, DateFilter, DEFAULT_LABELS17 as DateFilterDefaultLabels, FileUpload_default as FileUpload, GENDER, HTTP_STATUS, IDENTITY_TYPE, InputDynamic_default as InputDynamic, LOAD_TYPE, MODAL_PRESETS, MY_TICKET_STATUS, MY_TICKET_TAB, ModalFilterTicket, DEFAULT_LABELS16 as ModalFilterTicketDefaultLabels, ModalIllustration, ModalListMenuService, ModalListPassenger, ModalPassengerForm, ModalPreviewImage, ModalPriceDetail, ModalSearchHarbor, ModalSearchTicket, ModalSelectDate, ModalService, ModalTotalPassengers, ModalTypeOfService, PASSENGER_TYPE, SortMenu, Stepper, getBadgeConfig, getModalPreset, getSortLabel };
|
|
13509
13779
|
//# sourceMappingURL=index.mjs.map
|
|
13510
13780
|
//# sourceMappingURL=index.mjs.map
|