@luscii-healthtech/web-ui 23.2.7 → 23.2.9
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/CenteredHero/CenteredHero.d.ts +2 -1
- package/dist/index.development.js +5 -4
- package/dist/index.development.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/web-ui-tailwind.css +0 -4
- package/dist/web-ui.esm.js +1 -1
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -9,6 +9,7 @@ export interface CenteredHeroProps {
|
|
|
9
9
|
imageSize?: ImageSize;
|
|
10
10
|
buttons?: ButtonProps[];
|
|
11
11
|
background?: BackgroundColor;
|
|
12
|
+
dataTestId?: string;
|
|
12
13
|
}
|
|
13
|
-
declare const CenteredHero: ({ title, text, image, buttons, background, imageSize, }: CenteredHeroProps) => JSX.Element;
|
|
14
|
+
declare const CenteredHero: ({ title, text, image, buttons, background, imageSize, dataTestId, }: CenteredHeroProps) => JSX.Element;
|
|
14
15
|
export default CenteredHero;
|
|
@@ -1185,12 +1185,13 @@ function createAssetLoadError(payload, callback) {
|
|
|
1185
1185
|
}
|
|
1186
1186
|
const BaseListItem = React__namespace.default.forwardRef(({ itemId, title, tooltipId, roundTop, roundBottom = true, isDraggable, isSelected, subtitle, accessories, icon, onClick, handleItemClick, onAssetLoadError, dataTestId, renderDragHandle, withBorder, htmlProps }, ref) => {
|
|
1187
1187
|
const clickHandler = onClick !== null && onClick !== void 0 ? onClick : handleItemClick;
|
|
1188
|
-
const className = classNames__default.default("ui-flex ui-flex-row ui-items-center ui-space-x-4 ui-bg-white", "ui-px-4 ui-border-b
|
|
1188
|
+
const className = classNames__default.default("ui-flex ui-flex-row ui-items-center ui-space-x-4 ui-bg-white", "ui-px-4 ui-border-b ui-border-slate-200", {
|
|
1189
1189
|
"first:ui-rounded-t": roundTop,
|
|
1190
1190
|
"ui-cursor-pointer": clickHandler,
|
|
1191
1191
|
"hover:ui-bg-blue-50 ui-transition-colors ui-ease-in-out ui-duration-300": clickHandler,
|
|
1192
1192
|
"last:ui-rounded-b ": roundBottom,
|
|
1193
|
-
"
|
|
1193
|
+
"last:ui-border-b-0": !withBorder,
|
|
1194
|
+
"first:ui-border-t ui-border-l ui-border-r": withBorder
|
|
1194
1195
|
});
|
|
1195
1196
|
return React__namespace.default.createElement(
|
|
1196
1197
|
"li",
|
|
@@ -2310,13 +2311,13 @@ const Carousel = ({ slides, className, id }) => {
|
|
|
2310
2311
|
) : React__namespace.default.createElement(React__namespace.default.Fragment, null);
|
|
2311
2312
|
};
|
|
2312
2313
|
|
|
2313
|
-
const CenteredHero = ({ title, text, image, buttons = [], background = "slate-50", imageSize = "small" }) => {
|
|
2314
|
+
const CenteredHero = ({ title, text, image, buttons = [], background = "slate-50", imageSize = "small", dataTestId = "centered-hero" }) => {
|
|
2314
2315
|
return React__namespace.default.createElement(
|
|
2315
2316
|
"div",
|
|
2316
2317
|
{ className: classNames__default.default("ui-align-center ui-flex ui-w-full ui-flex-col ui-items-center ui-p-6", {
|
|
2317
2318
|
"ui-bg-white": background === "white",
|
|
2318
2319
|
"ui-bg-slate-50": background === "slate-50"
|
|
2319
|
-
}) },
|
|
2320
|
+
}), "data-test-id": dataTestId },
|
|
2320
2321
|
image && React__namespace.default.createElement("img", { src: image, className: classNames__default.default("ui-mb-4", {
|
|
2321
2322
|
"ui-h-36 ui-w-36": imageSize === "small",
|
|
2322
2323
|
"ui-h-72 ui-w-72": imageSize === "large"
|