@luscii-healthtech/web-ui 28.3.1 → 28.3.3
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/index.development.js +19 -25
- 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 +5 -0
- package/dist/web-ui.esm.js +1 -1
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -1521,7 +1521,7 @@ const StyledInput = React__namespace.default.forwardRef((_a, ref) => {
|
|
|
1521
1521
|
"focus:ui-border-primary": !isError,
|
|
1522
1522
|
"focus:ui-outline-primary": !isError,
|
|
1523
1523
|
"ui-bg-white": !attributes.disabled
|
|
1524
|
-
}, "ui-h-11", "ui-p-2", "ui-border", "ui-text-sm", "ui-placeholder-slate-500", "ui-border-solid", "ui-transition-colors", "ui-duration-300", {
|
|
1524
|
+
}, "ui-h-11", "ui-p-2", "ui-border", "ui-text-base sm:ui-text-sm", "ui-placeholder-slate-500", "ui-border-solid", "ui-transition-colors", "ui-duration-300", {
|
|
1525
1525
|
"ui-z-10": hasSuffix || hasPrefix,
|
|
1526
1526
|
// to make sure the ui-outline is displayed completely
|
|
1527
1527
|
"ui-rounded": hasNoExtraContent,
|
|
@@ -2154,32 +2154,26 @@ const ModalBase = (props) => {
|
|
|
2154
2154
|
var _a;
|
|
2155
2155
|
const { size = "medium", withContentPaddingY = true, isOpen = false } = props;
|
|
2156
2156
|
return React__namespace.default.createElement(
|
|
2157
|
-
|
|
2158
|
-
{ "
|
|
2159
|
-
|
|
2160
|
-
|
|
2157
|
+
ReactModal__default.default,
|
|
2158
|
+
{ isOpen, data: { "test-id": (_a = props.dataTestId) !== null && _a !== void 0 ? _a : "react-modal" }, contentLabel: props.title, overlayClassName: classNames__default.default("ui-px-2 ui-py-15", "ui-z-20", "ui-fixed ui-top-0 ui-bottom-0 ui-left-0 ui-right-0", "ui-overflow-x-hidden ui-overflow-y-auto", "ui-bg-overlay"), onRequestClose: props.onCloseClick, shouldFocusAfterRender: false, shouldCloseOnOverlayClick: false, className: classNames__default.default("ui-mx-auto ui-my-0", "ui-relative", "ui-rounded-lg ui-bg-white ui-shadow-lg ui-outline-none", {
|
|
2159
|
+
"ui-overflow-y-hidden": props.scrollableContent,
|
|
2160
|
+
"ui-mt-17": props.withExtraMarginTop,
|
|
2161
|
+
"md:ui-w-80": size === "small",
|
|
2162
|
+
"md:ui-w-132": size === "medium",
|
|
2163
|
+
"md:ui-w-216": size === "wide"
|
|
2164
|
+
}) },
|
|
2165
|
+
props.title && React__namespace.default.createElement(ModalHeader, { title: props.title, onCloseClick: props.onCloseClick }),
|
|
2161
2166
|
React__namespace.default.createElement(
|
|
2162
|
-
|
|
2163
|
-
{
|
|
2164
|
-
"ui-
|
|
2165
|
-
"ui-
|
|
2166
|
-
"md:ui-w-80": size === "small",
|
|
2167
|
-
"md:ui-w-132": size === "medium",
|
|
2168
|
-
"md:ui-w-216": size === "wide"
|
|
2167
|
+
"div",
|
|
2168
|
+
{ className: classNames__default.default({
|
|
2169
|
+
"ui-rounded-t-lg": !props.title,
|
|
2170
|
+
"ui-max-h-135 ui-overflow-y-auto": props.scrollableContent
|
|
2169
2171
|
}) },
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
"ui-max-h-135 ui-overflow-y-auto": props.scrollableContent
|
|
2176
|
-
}) },
|
|
2177
|
-
React__namespace.default.createElement("div", { className: classNames__default.default("ui-px-6", {
|
|
2178
|
-
"ui-py-6": withContentPaddingY
|
|
2179
|
-
}) }, props.children)
|
|
2180
|
-
),
|
|
2181
|
-
React__namespace.default.createElement(ModalFooter, { footerLeadingComponent: props.footerLeadingComponent, footerTrailingComponents: props.footerTrailingComponents })
|
|
2182
|
-
)
|
|
2172
|
+
React__namespace.default.createElement("div", { className: classNames__default.default("ui-px-6", {
|
|
2173
|
+
"ui-py-6": withContentPaddingY
|
|
2174
|
+
}) }, props.children)
|
|
2175
|
+
),
|
|
2176
|
+
React__namespace.default.createElement(ModalFooter, { footerLeadingComponent: props.footerLeadingComponent, footerTrailingComponents: props.footerTrailingComponents })
|
|
2183
2177
|
);
|
|
2184
2178
|
};
|
|
2185
2179
|
|