fui-material 2.2.18 → 2.3.1
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/f-ui-kit.es.js +51 -19
- package/dist/f-ui-kit.es.js.map +1 -1
- package/dist/main.css +1 -1
- package/dist/types/material/MenuLinks/FMenuBlockLinks/FMenuBlockLinks.d.ts +55 -0
- package/dist/types/material/MenuLinks/FMenuBlockLinks/index.d.ts +1 -0
- package/dist/types/material/MenuLinks/FMenuLinks/FMenuLinks.d.ts +44 -0
- package/dist/types/material/index.d.ts +2 -1
- package/package.json +1 -1
- package/dist/types/material/FMenuLinks/FMenuLinks.d.ts +0 -70
- /package/dist/types/material/{FMenuLinks → MenuLinks/FMenuLinks}/index.d.ts +0 -0
package/dist/f-ui-kit.es.js
CHANGED
|
@@ -2052,7 +2052,7 @@ const warning$4 = "_warning_1lhk7_58";
|
|
|
2052
2052
|
const info$2 = "_info_1lhk7_62";
|
|
2053
2053
|
const light = "_light_1lhk7_66";
|
|
2054
2054
|
const dark = "_dark_1lhk7_70";
|
|
2055
|
-
const link
|
|
2055
|
+
const link = "_link_1lhk7_74";
|
|
2056
2056
|
const styles$o = {
|
|
2057
2057
|
"authorization-spinner": "_authorization-spinner_1lhk7_1",
|
|
2058
2058
|
"spinner-item": "_spinner-item_1lhk7_7",
|
|
@@ -2065,7 +2065,7 @@ const styles$o = {
|
|
|
2065
2065
|
info: info$2,
|
|
2066
2066
|
light,
|
|
2067
2067
|
dark,
|
|
2068
|
-
link
|
|
2068
|
+
link
|
|
2069
2069
|
};
|
|
2070
2070
|
const FProgress = ({ st, color = "primary", id, className }) => {
|
|
2071
2071
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -4014,32 +4014,63 @@ const FNavigateBarItem = ({
|
|
|
4014
4014
|
}
|
|
4015
4015
|
);
|
|
4016
4016
|
};
|
|
4017
|
-
const
|
|
4018
|
-
const disabled = "_disabled_1desp_36";
|
|
4017
|
+
const disabled = "_disabled_w47ps_49";
|
|
4019
4018
|
const styles$6 = {
|
|
4020
|
-
"
|
|
4021
|
-
|
|
4019
|
+
"sections-routes": "_sections-routes_w47ps_2",
|
|
4020
|
+
"sections-routes_card": "_sections-routes_card_w47ps_9",
|
|
4021
|
+
"sections-routes_card__title": "_sections-routes_card__title_w47ps_25",
|
|
4022
|
+
"sections-routes_card__links": "_sections-routes_card__links_w47ps_31",
|
|
4022
4023
|
disabled
|
|
4023
4024
|
};
|
|
4024
|
-
const
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
|
|
4025
|
+
const FMenuBlockLinks = ({
|
|
4026
|
+
children,
|
|
4027
|
+
className,
|
|
4028
|
+
st,
|
|
4029
|
+
id,
|
|
4030
|
+
columns = 3
|
|
4031
|
+
}) => {
|
|
4032
|
+
const style = st !== void 0 ? { ...st, columns } : { columns };
|
|
4033
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
4034
|
+
"div",
|
|
4035
|
+
{
|
|
4036
|
+
className: `${styles$6["sections-routes"]} ${className ?? ""}`.trim(),
|
|
4037
|
+
style,
|
|
4038
|
+
id,
|
|
4039
|
+
children
|
|
4033
4040
|
}
|
|
4034
|
-
|
|
4041
|
+
);
|
|
4042
|
+
};
|
|
4043
|
+
const FMenuLinks = ({
|
|
4044
|
+
children,
|
|
4045
|
+
className,
|
|
4046
|
+
st,
|
|
4047
|
+
id,
|
|
4048
|
+
disabled: disabled2 = [],
|
|
4049
|
+
title
|
|
4050
|
+
}) => {
|
|
4051
|
+
const enhancedChildren = React.Children.map(children, (child, index) => {
|
|
4052
|
+
if (!React.isValidElement(child)) return child;
|
|
4053
|
+
const isDisabled = disabled2.includes(index);
|
|
4054
|
+
const childClass = [
|
|
4055
|
+
child.props.className,
|
|
4056
|
+
styles$6.link,
|
|
4057
|
+
isDisabled && styles$6.disabled
|
|
4058
|
+
].filter(Boolean).join(" ");
|
|
4059
|
+
return React.cloneElement(child, {
|
|
4060
|
+
className: childClass,
|
|
4061
|
+
...isDisabled && { onClick: (e) => e.preventDefault() }
|
|
4062
|
+
});
|
|
4035
4063
|
});
|
|
4036
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
4064
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
4037
4065
|
"div",
|
|
4038
4066
|
{
|
|
4039
|
-
className: `${styles$6["
|
|
4067
|
+
className: `${styles$6["sections-routes_card"]} ${className ?? ""}`.trim(),
|
|
4040
4068
|
style: st,
|
|
4041
4069
|
id,
|
|
4042
|
-
children:
|
|
4070
|
+
children: [
|
|
4071
|
+
title && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$6["sections-routes_card__title"], children: title }),
|
|
4072
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$6["sections-routes_card__links"], children: enhancedChildren })
|
|
4073
|
+
]
|
|
4043
4074
|
}
|
|
4044
4075
|
);
|
|
4045
4076
|
};
|
|
@@ -52658,6 +52689,7 @@ export {
|
|
|
52658
52689
|
FInputFileForm,
|
|
52659
52690
|
FListIcon,
|
|
52660
52691
|
FLoadIcon,
|
|
52692
|
+
FMenuBlockLinks,
|
|
52661
52693
|
FMenuLinks,
|
|
52662
52694
|
FMinusIcon,
|
|
52663
52695
|
FNative,
|