utopia-ui 3.0.22 → 3.0.24
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.
@@ -7,5 +7,5 @@ interface TitleCardProps {
|
|
7
7
|
className?: string;
|
8
8
|
TopSideButtons?: any;
|
9
9
|
}
|
10
|
-
export declare
|
10
|
+
export declare const TitleCard: ({ title, hideTitle, children, topMargin, TopSideButtons, className, }: TitleCardProps) => import("react/jsx-runtime").JSX.Element;
|
11
11
|
export {};
|
@@ -1,6 +1,5 @@
|
|
1
|
-
|
2
|
-
declare function Subtitle({ styleClass, children }: {
|
1
|
+
import { ReactNode } from 'react';
|
2
|
+
export declare function Subtitle({ styleClass, children }: {
|
3
3
|
styleClass: string;
|
4
|
-
children:
|
4
|
+
children: ReactNode;
|
5
5
|
}): import("react/jsx-runtime").JSX.Element;
|
6
|
-
export default Subtitle;
|
package/dist/index.js
CHANGED
@@ -4267,13 +4267,13 @@ function Subtitle(_a) {
|
|
4267
4267
|
return jsx("div", __assign({ className: "tw-text-xl tw-font-semibold ".concat(styleClass) }, { children: children }));
|
4268
4268
|
}
|
4269
4269
|
|
4270
|
-
function
|
4270
|
+
var TitleCard = function (_a) {
|
4271
4271
|
var title = _a.title, hideTitle = _a.hideTitle, children = _a.children, topMargin = _a.topMargin, TopSideButtons = _a.TopSideButtons, className = _a.className;
|
4272
4272
|
return (jsxs("div", __assign({ className: 'tw-card tw-w-full tw-p-6 tw-bg-base-100 tw-shadow-xl tw-h-fit tw-mb-4 ' +
|
4273
4273
|
(className || '') +
|
4274
4274
|
' ' +
|
4275
4275
|
(topMargin || 'tw-mt-6') }, { children: [!hideTitle && (jsxs(Fragment, { children: [jsxs(Subtitle, __assign({ styleClass: TopSideButtons ? 'tw-inline-block' : '' }, { children: [title, TopSideButtons && (jsx("div", __assign({ className: 'tw-inline-block tw-float-right' }, { children: TopSideButtons })))] })), jsx("div", { className: 'tw-divider tw-mt-2' })] })), jsx("div", __assign({ className: 'tw-h-full tw-bg-transparent tw-w-full tw-pb-6 tw-bg-base-100' }, { children: children }))] })));
|
4276
|
-
}
|
4276
|
+
};
|
4277
4277
|
|
4278
4278
|
function CardPage(_a) {
|
4279
4279
|
var title = _a.title, hideTitle = _a.hideTitle, children = _a.children, parents = _a.parents;
|