@luscii-healthtech/web-ui 2.6.0 → 2.7.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 +11 -21
- package/dist/web-ui-tailwind.css +8 -13
- package/dist/web-ui.cjs.development.js +14 -21
- 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 +14 -21
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/CenteredHero/CenteredHero.tsx +63 -0
- package/src/components/CenteredHero/CenteredHero.js +0 -50
package/dist/web-ui.esm.js
CHANGED
|
@@ -1122,49 +1122,42 @@ Title.defaultProps = {
|
|
|
1122
1122
|
type: "base"
|
|
1123
1123
|
};
|
|
1124
1124
|
|
|
1125
|
-
CenteredHero
|
|
1126
|
-
title: PropTypes.string,
|
|
1127
|
-
text: PropTypes.string,
|
|
1128
|
-
image: PropTypes.string,
|
|
1129
|
-
buttons: /*#__PURE__*/PropTypes.arrayOf( /*#__PURE__*/PropTypes.shape({
|
|
1130
|
-
title: PropTypes.string.isRequired,
|
|
1131
|
-
handleOnClick: PropTypes.func.isRequired,
|
|
1132
|
-
type: /*#__PURE__*/PropTypes.oneOf([BUTTON_ROLES.PRIMARY, BUTTON_ROLES.SECONDARY]).isRequired
|
|
1133
|
-
})),
|
|
1134
|
-
className: PropTypes.string
|
|
1135
|
-
};
|
|
1136
|
-
|
|
1137
|
-
function CenteredHero(_ref) {
|
|
1125
|
+
var CenteredHero = function CenteredHero(_ref) {
|
|
1138
1126
|
var title = _ref.title,
|
|
1139
1127
|
text = _ref.text,
|
|
1140
1128
|
image = _ref.image,
|
|
1141
1129
|
buttons = _ref.buttons,
|
|
1142
|
-
|
|
1130
|
+
_ref$background = _ref.background,
|
|
1131
|
+
background = _ref$background === void 0 ? "slate-50" : _ref$background;
|
|
1143
1132
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
1144
|
-
className: classNames(
|
|
1133
|
+
className: classNames("p-6 flex flex-col items-center align-center w-full", {
|
|
1134
|
+
"bg-white": background === "white",
|
|
1135
|
+
"bg-slate-50": background === "slate-50"
|
|
1136
|
+
})
|
|
1145
1137
|
}, image && /*#__PURE__*/React__default.createElement("img", {
|
|
1146
|
-
src: image
|
|
1138
|
+
src: image,
|
|
1139
|
+
className: "h-36 w-36 mb-4"
|
|
1147
1140
|
}), title && /*#__PURE__*/React__default.createElement(Title, {
|
|
1148
|
-
className: "mt-8 mb-2",
|
|
1149
1141
|
text: title,
|
|
1150
1142
|
type: "base"
|
|
1151
1143
|
}), text && /*#__PURE__*/React__default.createElement(Text, {
|
|
1152
1144
|
text: text
|
|
1153
1145
|
}), (buttons == null ? void 0 : buttons.length) > 0 && /*#__PURE__*/React__default.createElement("div", {
|
|
1154
|
-
className: "flex flex-row mt-
|
|
1146
|
+
className: "flex flex-row mt-4"
|
|
1155
1147
|
}, buttons.filter(function (button) {
|
|
1156
1148
|
return button.title && button.handleOnClick && button.type;
|
|
1157
1149
|
}).map(function (button) {
|
|
1158
1150
|
return /*#__PURE__*/React__default.createElement(Button, {
|
|
1159
1151
|
className: "mr-4 last:mr-0",
|
|
1160
1152
|
key: button.title,
|
|
1161
|
-
role: button.
|
|
1153
|
+
role: button.role,
|
|
1154
|
+
type: button.type,
|
|
1162
1155
|
title: button.title,
|
|
1163
|
-
text: button.
|
|
1156
|
+
text: button.text,
|
|
1164
1157
|
onClick: button.handleOnClick
|
|
1165
1158
|
});
|
|
1166
1159
|
})));
|
|
1167
|
-
}
|
|
1160
|
+
};
|
|
1168
1161
|
|
|
1169
1162
|
var css_248z$5 = ".cweb-checkbox {\n outline: none;\n transition: all 0.3s ease;\n}\n\n.cweb-checkbox .cweb-checkbox-input {\n position: absolute;\n -webkit-appearance: none;\n height: 1px;\n opacity: 0;\n width: 1px;\n}\n\n.cweb-checkbox.type-regular .cweb-checkbox-label {\n display: flex;\n align-items: center;\n margin-bottom: 0;\n}\n\n.cweb-checkbox.type-regular .cweb-checkbox-icon-container {\n width: 16px;\n height: 16px;\n display: flex;\n align-items: center;\n justify-content: center;\n flex: 0 0 auto;\n border: 1px solid #cccccc;\n border-radius: 4px;\n}\n\n.cweb-checkbox.type-regular.hasError .cweb-checkbox-icon-container {\n border: 1px solid #ff6266;\n}\n\n.cweb-checkbox.type-regular .cweb-checkbox-icon {\n display: block;\n}\n\n.cweb-checkbox.type-regular.is-focused .cweb-checkbox-icon-container {\n border-color: #0074dd;\n}\n\n.cweb-checkbox.type-regular.is-checked .cweb-checkbox-icon {\n width: 0.5rem;\n height: 0.5rem;\n padding: 4px;\n background: url(\"data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2210%22 height%3D%228%22 viewBox%3D%220 0 10 8%22 fill%3D%22none%22%3E %3Cpath d%3D%22M9.207 0.792787C9.39447 0.980314 9.49979 1.23462 9.49979 1.49979C9.49979 1.76495 9.39447 2.01926 9.207 2.20679L4.207 7.20679C4.01947 7.39426 3.76516 7.49957 3.5 7.49957C3.23484 7.49957 2.98053 7.39426 2.793 7.20679L0.793 5.20679C0.610842 5.01818 0.510047 4.76558 0.512326 4.50339C0.514604 4.24119 0.619773 3.99038 0.805181 3.80497C0.990589 3.61956 1.2414 3.51439 1.5036 3.51211C1.7658 3.50983 2.0184 3.61063 2.207 3.79279L3.5 5.08579L7.793 0.792787C7.98053 0.605316 8.23484 0.5 8.5 0.5C8.76516 0.5 9.01947 0.605316 9.207 0.792787Z%22 fill%3D%22white%22%2F%3E%3C%2Fsvg%3E\") no-repeat center;\n background-size: contain;\n}\n\n.cweb-checkbox.type-regular.is-indeterminate .cweb-checkbox-icon {\n width: 0.5rem;\n height: 0.5rem;\n padding: 4px;\n background: url(\"data:image/svg+xml,%3Csvg width%3D%2210%22 height%3D%222%22 viewBox%3D%220 0 10 2%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath d%3D%22M9 -4.37114e-08C9.55228 -1.95703e-08 10 0.447715 10 1C10 1.55228 9.55228 2 9 2L1 2C0.447716 2 -6.78525e-08 1.55228 -4.37114e-08 1C-1.95703e-08 0.447715 0.447715 -4.17544e-07 1 -3.93402e-07L9 -4.37114e-08Z%22 fill%3D%22white%22%2F%3E%3C%2Fsvg%3E\") no-repeat center;\n background-size: contain;\n}\n\n.cweb-checkbox.type-regular.is-disabled.show-cross-when-disabled .cweb-checkbox-icon {\n width: 10px;\n height: 10px;\n background: url(\"data:image/svg+xml,%3Csvg width%3D%2211px%22 height%3D%2211px%22 viewBox%3D%220 0 11 11%22 version%3D%221.1%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E %3Cg stroke%3D%22none%22 stroke-width%3D%221%22 fill%3D%22none%22 fill-rule%3D%22evenodd%22 stroke-linecap%3D%22round%22%3E %3Cg transform%3D%22translate(-6.000000%2C -7.000000)%22 stroke%3D%22%232D2D2D%22 stroke-width%3D%222%22%3E %3Cpath d%3D%22M7%2C17 L16%2C8 M16%2C17 L7%2C8%22 %2F%3E %3C%2Fg%3E %3C%2Fg%3E%3C%2Fsvg%3E\") no-repeat center;\n background-size: contain;\n opacity: 0.6;\n}\n\n.cweb-checkbox.type-switch .cweb-checkbox-label {\n display: flex;\n align-items: center;\n margin-bottom: 0;\n width: 56px;\n height: 28px;\n position: relative;\n}\n\n.cweb-checkbox.type-switch .cweb-checkbox-icon-container {\n position: absolute;\n cursor: pointer;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: #d1d5db;\n border-radius: 16px;\n}\n\n.cweb-checkbox.type-switch .cweb-checkbox-icon-container:after {\n position: relative;\n display: block;\n content: \"\";\n height: 20px;\n width: 20px;\n top: 4px;\n left: 4px;\n background-color: white;\n border-radius: 50%;\n transition: all 0.2s ease;\n}\n\n.cweb-checkbox.type-switch.is-checked .cweb-checkbox-icon-container {\n background-color: #6abfa6;\n}\n\n.cweb-checkbox.type-switch.is-checked .cweb-checkbox-icon-container:after {\n left: 32px;\n}\n";
|
|
1170
1163
|
styleInject(css_248z$5);
|