@luscii-healthtech/web-ui 2.42.0 → 2.44.0
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/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 +25 -3
- 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 +25 -4
- 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
|
}
|
|
@@ -1168,7 +1168,8 @@ var ListItem = function ListItem(_ref) {
|
|
|
1168
1168
|
text: title
|
|
1169
1169
|
}), subtitle && /*#__PURE__*/React__default.createElement(Text, {
|
|
1170
1170
|
text: subtitle,
|
|
1171
|
-
type: "sm"
|
|
1171
|
+
type: "sm",
|
|
1172
|
+
color: "slate-500"
|
|
1172
1173
|
})), /*#__PURE__*/React__default.createElement("div", {
|
|
1173
1174
|
className: "flex-grow"
|
|
1174
1175
|
}), accessories);
|
|
@@ -6795,7 +6796,7 @@ function GenericForm(_ref) {
|
|
|
6795
6796
|
}, [defaultValues]);
|
|
6796
6797
|
var handleSubmit = useFormReturn.handleSubmit;
|
|
6797
6798
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
6798
|
-
className: "space-y-
|
|
6799
|
+
className: "space-y-6"
|
|
6799
6800
|
}, /*#__PURE__*/React__default.createElement(Form, {
|
|
6800
6801
|
fields: fields,
|
|
6801
6802
|
useFormReturn: useFormReturn
|
|
@@ -6816,7 +6817,7 @@ function Form(_ref2) {
|
|
|
6816
6817
|
var fields = _ref2.fields,
|
|
6817
6818
|
useFormReturn = _ref2.useFormReturn;
|
|
6818
6819
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
6819
|
-
className: "space-y-
|
|
6820
|
+
className: "space-y-6"
|
|
6820
6821
|
}, fields.map(function (props) {
|
|
6821
6822
|
return FormFieldMapper(props, useFormReturn);
|
|
6822
6823
|
}));
|
|
@@ -7863,6 +7864,26 @@ var FullPageModal = function FullPageModal(_ref) {
|
|
|
7863
7864
|
}, children)));
|
|
7864
7865
|
};
|
|
7865
7866
|
|
|
7867
|
+
/**
|
|
7868
|
+
* Card component that centralizes itself inside a container.
|
|
7869
|
+
* Specific variant made with w-135 to suffice the use case needed,
|
|
7870
|
+
* more variants can be added.
|
|
7871
|
+
*/
|
|
7872
|
+
|
|
7873
|
+
var Card = function Card(_ref) {
|
|
7874
|
+
var title = _ref.title,
|
|
7875
|
+
children = _ref.children,
|
|
7876
|
+
dataTestId = _ref.dataTestId;
|
|
7877
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
7878
|
+
"data-test-id": dataTestId,
|
|
7879
|
+
className: "flex flex-col p-6 mx-auto bg-white rounded-lg w-135"
|
|
7880
|
+
}, /*#__PURE__*/React__default.createElement(Title, {
|
|
7881
|
+
className: "mb-6",
|
|
7882
|
+
type: "sm",
|
|
7883
|
+
text: title
|
|
7884
|
+
}), children);
|
|
7885
|
+
};
|
|
7886
|
+
|
|
7866
7887
|
exports.AccordionList = AccordionList;
|
|
7867
7888
|
exports.AddIcon = AddIcon;
|
|
7868
7889
|
exports.AlertsIcon = AlertsIcon;
|
|
@@ -7871,6 +7892,7 @@ exports.Badge = Badge;
|
|
|
7871
7892
|
exports.BellIcon = BellIcon;
|
|
7872
7893
|
exports.Breadcrumbs = Breadcrumbs;
|
|
7873
7894
|
exports.CRUDPage = CRUDPage;
|
|
7895
|
+
exports.Card = Card;
|
|
7874
7896
|
exports.Carousel = Carousel;
|
|
7875
7897
|
exports.CenteredHero = CenteredHero;
|
|
7876
7898
|
exports.ChartIcon = ChartIcon;
|