@luscii-healthtech/web-ui 2.9.0 → 2.10.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/CenteredHero/CenteredHero.d.ts +1 -1
- package/dist/web-ui.cjs.development.js +3 -2
- 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 +3 -2
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/CenteredHero/CenteredHero.tsx +3 -3
|
@@ -5,7 +5,7 @@ export interface CenteredHeroProps {
|
|
|
5
5
|
title: string;
|
|
6
6
|
text: string;
|
|
7
7
|
image: string;
|
|
8
|
-
buttons
|
|
8
|
+
buttons?: ButtonProps[];
|
|
9
9
|
background?: BackgroundColor;
|
|
10
10
|
}
|
|
11
11
|
declare const CenteredHero: ({ title, text, image, buttons, background, }: CenteredHeroProps) => JSX.Element;
|
|
@@ -1202,7 +1202,8 @@ var CenteredHero = function CenteredHero(_ref) {
|
|
|
1202
1202
|
var title = _ref.title,
|
|
1203
1203
|
text = _ref.text,
|
|
1204
1204
|
image = _ref.image,
|
|
1205
|
-
buttons = _ref.buttons,
|
|
1205
|
+
_ref$buttons = _ref.buttons,
|
|
1206
|
+
buttons = _ref$buttons === void 0 ? [] : _ref$buttons,
|
|
1206
1207
|
_ref$background = _ref.background,
|
|
1207
1208
|
background = _ref$background === void 0 ? "slate-50" : _ref$background;
|
|
1208
1209
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -1221,7 +1222,7 @@ var CenteredHero = function CenteredHero(_ref) {
|
|
|
1221
1222
|
}), (buttons == null ? void 0 : buttons.length) > 0 && /*#__PURE__*/React__default.createElement("div", {
|
|
1222
1223
|
className: "flex flex-row mt-4"
|
|
1223
1224
|
}, buttons.filter(function (button) {
|
|
1224
|
-
return button.
|
|
1225
|
+
return button.text && button.handleOnClick && button.type;
|
|
1225
1226
|
}).map(function (button) {
|
|
1226
1227
|
return /*#__PURE__*/React__default.createElement(Button, {
|
|
1227
1228
|
className: "mr-4 last:mr-0",
|