@luscii-healthtech/web-ui 2.43.0 → 2.44.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/components/Breadcrumbs/Breadcrumbs.d.ts +1 -0
- package/dist/components/Card/Card.d.ts +12 -0
- package/dist/index.d.ts +1 -0
- package/dist/web-ui-tailwind.css +10 -0
- package/dist/web-ui.cjs.development.js +26 -4
- package/dist/web-ui.cjs.development.js.map +1 -1
- package/dist/web-ui.cjs.production.min.js +1 -1
- package/dist/web-ui.cjs.production.min.js.map +1 -1
- package/dist/web-ui.esm.js +26 -5
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare type CardProps = {
|
|
3
|
+
title: string;
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
dataTestId?: string;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Card component that centralizes itself inside a container.
|
|
9
|
+
* Specific variant made with w-135 to suffice the use case needed,
|
|
10
|
+
* more variants can be added.
|
|
11
|
+
*/
|
|
12
|
+
export declare const Card: React.FC<CardProps>;
|
package/dist/index.d.ts
CHANGED
|
@@ -77,3 +77,4 @@ export { IconProps } from "./components/Icons/types/IconProps.type";
|
|
|
77
77
|
export * from "./components/Icons";
|
|
78
78
|
export { Divider } from "./components/Divider/Divider";
|
|
79
79
|
export { FullPageModal } from "./components/Modal/FullPageModal";
|
|
80
|
+
export { Card, type CardProps } from "./components/Card/Card";
|
package/dist/web-ui-tailwind.css
CHANGED
|
@@ -645,6 +645,12 @@ video {
|
|
|
645
645
|
margin-left: calc(1rem * calc(1 - var(--space-x-reverse)));
|
|
646
646
|
}
|
|
647
647
|
|
|
648
|
+
.space-y-6 > :not(template) ~ :not(template) {
|
|
649
|
+
--space-y-reverse: 0;
|
|
650
|
+
margin-top: calc(1.5rem * calc(1 - var(--space-y-reverse)));
|
|
651
|
+
margin-bottom: calc(1.5rem * var(--space-y-reverse));
|
|
652
|
+
}
|
|
653
|
+
|
|
648
654
|
.space-x-6 > :not(template) ~ :not(template) {
|
|
649
655
|
--space-x-reverse: 0;
|
|
650
656
|
margin-right: calc(1.5rem * var(--space-x-reverse));
|
|
@@ -2218,6 +2224,10 @@ video {
|
|
|
2218
2224
|
width: 33rem;
|
|
2219
2225
|
}
|
|
2220
2226
|
|
|
2227
|
+
.w-135 {
|
|
2228
|
+
width: 33.75rem;
|
|
2229
|
+
}
|
|
2230
|
+
|
|
2221
2231
|
.w-216 {
|
|
2222
2232
|
width: 54rem;
|
|
2223
2233
|
}
|
|
@@ -6138,9 +6138,10 @@ var Breadcrumbs = function Breadcrumbs(_ref) {
|
|
|
6138
6138
|
var crumbs = _ref.crumbs;
|
|
6139
6139
|
var breadcrumbItems = crumbs.map(function (_ref2) {
|
|
6140
6140
|
var name = _ref2.name,
|
|
6141
|
-
link = _ref2.link
|
|
6141
|
+
link = _ref2.link,
|
|
6142
|
+
key = _ref2.key;
|
|
6142
6143
|
return /*#__PURE__*/React__default.createElement("li", {
|
|
6143
|
-
key: name,
|
|
6144
|
+
key: key || name,
|
|
6144
6145
|
className: "flex flex-row items-center slash-split "
|
|
6145
6146
|
}, link ? /*#__PURE__*/React__default.createElement(router.Link, {
|
|
6146
6147
|
to: link
|
|
@@ -6796,7 +6797,7 @@ function GenericForm(_ref) {
|
|
|
6796
6797
|
}, [defaultValues]);
|
|
6797
6798
|
var handleSubmit = useFormReturn.handleSubmit;
|
|
6798
6799
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
6799
|
-
className: "space-y-
|
|
6800
|
+
className: "space-y-6"
|
|
6800
6801
|
}, /*#__PURE__*/React__default.createElement(Form, {
|
|
6801
6802
|
fields: fields,
|
|
6802
6803
|
useFormReturn: useFormReturn
|
|
@@ -6817,7 +6818,7 @@ function Form(_ref2) {
|
|
|
6817
6818
|
var fields = _ref2.fields,
|
|
6818
6819
|
useFormReturn = _ref2.useFormReturn;
|
|
6819
6820
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
6820
|
-
className: "space-y-
|
|
6821
|
+
className: "space-y-6"
|
|
6821
6822
|
}, fields.map(function (props) {
|
|
6822
6823
|
return FormFieldMapper(props, useFormReturn);
|
|
6823
6824
|
}));
|
|
@@ -7864,6 +7865,26 @@ var FullPageModal = function FullPageModal(_ref) {
|
|
|
7864
7865
|
}, children)));
|
|
7865
7866
|
};
|
|
7866
7867
|
|
|
7868
|
+
/**
|
|
7869
|
+
* Card component that centralizes itself inside a container.
|
|
7870
|
+
* Specific variant made with w-135 to suffice the use case needed,
|
|
7871
|
+
* more variants can be added.
|
|
7872
|
+
*/
|
|
7873
|
+
|
|
7874
|
+
var Card = function Card(_ref) {
|
|
7875
|
+
var title = _ref.title,
|
|
7876
|
+
children = _ref.children,
|
|
7877
|
+
dataTestId = _ref.dataTestId;
|
|
7878
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
7879
|
+
"data-test-id": dataTestId,
|
|
7880
|
+
className: "flex flex-col p-6 mx-auto bg-white rounded-lg w-135"
|
|
7881
|
+
}, /*#__PURE__*/React__default.createElement(Title, {
|
|
7882
|
+
className: "mb-6",
|
|
7883
|
+
type: "sm",
|
|
7884
|
+
text: title
|
|
7885
|
+
}), children);
|
|
7886
|
+
};
|
|
7887
|
+
|
|
7867
7888
|
exports.AccordionList = AccordionList;
|
|
7868
7889
|
exports.AddIcon = AddIcon;
|
|
7869
7890
|
exports.AlertsIcon = AlertsIcon;
|
|
@@ -7872,6 +7893,7 @@ exports.Badge = Badge;
|
|
|
7872
7893
|
exports.BellIcon = BellIcon;
|
|
7873
7894
|
exports.Breadcrumbs = Breadcrumbs;
|
|
7874
7895
|
exports.CRUDPage = CRUDPage;
|
|
7896
|
+
exports.Card = Card;
|
|
7875
7897
|
exports.Carousel = Carousel;
|
|
7876
7898
|
exports.CenteredHero = CenteredHero;
|
|
7877
7899
|
exports.ChartIcon = ChartIcon;
|