@luscii-healthtech/web-ui 40.3.5 → 40.4.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/index.development.js +25 -4
- package/dist/index.development.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/src/components/PageWithCenteredContentLayout/PageWithCenteredContentLayout.d.ts +13 -0
- package/dist/src/components/VerticalMenu/VerticalMenu.d.ts +4 -11
- package/dist/src/index.d.ts +1 -0
- package/dist/stories/PageWithCenteredContentLayout.stories.d.ts +47 -0
- package/dist/stories/SplitViewLayout.stories.d.ts +4 -1
- package/dist/stories/VerticalMenu.stories.d.ts +5 -11
- package/dist/web-ui-tailwind.css +11 -1
- package/dist/web-ui.esm.js +1 -1
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -5057,14 +5057,14 @@ const useGetClassName = () => {
|
|
|
5057
5057
|
"ui:hover:bg-primary-background ui:hover:text-primary ui:focus:text-primary ui:active:scale-[0.98]",
|
|
5058
5058
|
{
|
|
5059
5059
|
"ui:bg-transparent ui:text-on-surface": !isActive,
|
|
5060
|
-
"ui:bg-
|
|
5060
|
+
"ui:bg-primary-background-active": isActive
|
|
5061
5061
|
},
|
|
5062
5062
|
classNameProp
|
|
5063
5063
|
);
|
|
5064
5064
|
case "secondary":
|
|
5065
5065
|
return classNames__default.default(base, "ui:hover:text-primary ui:focus:text-primary ui:active:scale-[0.98]", {
|
|
5066
5066
|
["ui:[&_span]:font-bold"]: isActive
|
|
5067
|
-
});
|
|
5067
|
+
}, classNameProp);
|
|
5068
5068
|
}
|
|
5069
5069
|
},
|
|
5070
5070
|
[variant]
|
|
@@ -5650,7 +5650,7 @@ const Body = (_a) => {
|
|
|
5650
5650
|
const classes = classNames__default.default(className, "ui:overflow-y-auto ui:flex-1");
|
|
5651
5651
|
return jsxRuntime.jsx(Box, Object.assign({ className: classes, p: "m" }, rest));
|
|
5652
5652
|
};
|
|
5653
|
-
const Header = (props) => {
|
|
5653
|
+
const Header$1 = (props) => {
|
|
5654
5654
|
return jsxRuntime.jsx(Stack, Object.assign({ axis: "x", justify: "between", align: "center", gap: "m", p: "m" }, props));
|
|
5655
5655
|
};
|
|
5656
5656
|
const Footer = (props) => {
|
|
@@ -5664,7 +5664,7 @@ const Actions = (_a) => {
|
|
|
5664
5664
|
const classes = classNames__default.default(className, "ui:self-end");
|
|
5665
5665
|
return jsxRuntime.jsx(Stack, Object.assign({ axis: "x", gap: "xs", className: classes }, rest));
|
|
5666
5666
|
};
|
|
5667
|
-
ModalDialog.Header = Header;
|
|
5667
|
+
ModalDialog.Header = Header$1;
|
|
5668
5668
|
ModalDialog.Title = Card.Title;
|
|
5669
5669
|
ModalDialog.CloseButton = CloseButton;
|
|
5670
5670
|
ModalDialog.Body = Body;
|
|
@@ -5810,6 +5810,26 @@ const Aside = (props) => {
|
|
|
5810
5810
|
};
|
|
5811
5811
|
SplitViewLayout.Aside = Aside;
|
|
5812
5812
|
|
|
5813
|
+
const Header = (props) => {
|
|
5814
|
+
const { children } = props, restProps = __rest(props, ["children"]);
|
|
5815
|
+
return jsxRuntime.jsx(Box, Object.assign({ as: "header", p: "xl" }, restProps, { children }));
|
|
5816
|
+
};
|
|
5817
|
+
Header.displayName = "PageWithCenteredContentLayout.Header";
|
|
5818
|
+
const Main = (props) => {
|
|
5819
|
+
const { children, className } = props, restProps = __rest(props, ["children", "className"]);
|
|
5820
|
+
const classes = classNames__default.default(className, "ui:max-w-[100vw] ui:content-center");
|
|
5821
|
+
return jsxRuntime.jsx(Stack, Object.assign({ as: "main", width: "full", align: "center", p: "xl", className: classes }, restProps, { children: jsxRuntime.jsx(Box, { width: "full", className: "ui:lg:max-w-[calc(100vw-(--spacing(132)))]", children }) }));
|
|
5822
|
+
};
|
|
5823
|
+
Main.displayName = "PageWithCenteredContentLayout.Main";
|
|
5824
|
+
const PageWithCenteredContentLayout = (props) => {
|
|
5825
|
+
const { header, className, children } = props, restProps = __rest(props, ["header", "className", "children"]);
|
|
5826
|
+
const classes = classNames__default.default("ui:min-h-screen", className);
|
|
5827
|
+
return jsxRuntime.jsxs(Stack, Object.assign({ width: "full", align: "stretch", className: classes }, restProps, { children: [header && jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [header, jsxRuntime.jsx(Divider, {})] }), children] }));
|
|
5828
|
+
};
|
|
5829
|
+
PageWithCenteredContentLayout.displayName = "PageWithCenteredContentLayout";
|
|
5830
|
+
PageWithCenteredContentLayout.Header = Header;
|
|
5831
|
+
PageWithCenteredContentLayout.Main = Main;
|
|
5832
|
+
|
|
5813
5833
|
Object.defineProperty(exports, "Toaster", {
|
|
5814
5834
|
enumerable: true,
|
|
5815
5835
|
get: function () { return sonner.Toaster; }
|
|
@@ -5980,6 +6000,7 @@ exports.PageHeader = PageHeader;
|
|
|
5980
6000
|
exports.PageIcon = PageIcon;
|
|
5981
6001
|
exports.PageTitle = PageTitle;
|
|
5982
6002
|
exports.PageViewIcon = PageViewIcon;
|
|
6003
|
+
exports.PageWithCenteredContentLayout = PageWithCenteredContentLayout;
|
|
5983
6004
|
exports.PaginationMenu = PaginationMenu;
|
|
5984
6005
|
exports.PaperclipIcon = PaperclipIcon;
|
|
5985
6006
|
exports.PatientIcon = PatientIcon;
|