@eml-payments/ui-kit 0.1.24 → 0.1.25
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/src/components/Card/Card.d.ts +7 -7
- package/dist/src/components/Card/Card.js +7 -21
- package/dist/src/components/Card/Card.stories.d.ts +2 -2
- package/dist/src/components/Card/CardContainer.d.ts +1 -1
- package/dist/src/components/Card/CardContainer.js +2 -2
- package/dist/src/components/Card/index.d.ts +2 -0
- package/dist/src/components/Card/index.js +2 -0
- package/dist/src/components/index.d.ts +1 -0
- package/dist/src/components/index.js +1 -0
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { ComponentProps } from 'react';
|
|
2
|
-
declare
|
|
3
|
-
declare
|
|
4
|
-
declare
|
|
5
|
-
declare
|
|
6
|
-
declare
|
|
7
|
-
declare
|
|
8
|
-
declare
|
|
2
|
+
declare const Card: ({ className, ...props }: ComponentProps<"div">) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const CardHeader: ({ className, ...props }: ComponentProps<"div">) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare const CardTitle: ({ className, ...props }: ComponentProps<"div">) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare const CardDescription: ({ className, ...props }: ComponentProps<"div">) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare const CardAction: ({ className, ...props }: ComponentProps<"div">) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare const CardContent: ({ className, ...props }: ComponentProps<"div">) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare const CardFooter: ({ className, ...props }: ComponentProps<"div">) => import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent };
|
|
@@ -1,24 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { cn } from '../../lib/utils';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
return _jsx("div", { "data-slot": "card-title", className: cn('leading-none font-semibold', className), ...props });
|
|
11
|
-
}
|
|
12
|
-
function CardDescription({ className, ...props }) {
|
|
13
|
-
return _jsx("div", { "data-slot": "card-description", className: cn('text-muted-foreground text-sm', className), ...props });
|
|
14
|
-
}
|
|
15
|
-
function CardAction({ className, ...props }) {
|
|
16
|
-
return (_jsx("div", { "data-slot": "card-action", className: cn('col-start-2 row-span-2 row-start-1 self-start justify-self-end', className), ...props }));
|
|
17
|
-
}
|
|
18
|
-
function CardContent({ className, ...props }) {
|
|
19
|
-
return _jsx("div", { "data-slot": "card-content", className: cn('px-6', className), ...props });
|
|
20
|
-
}
|
|
21
|
-
function CardFooter({ className, ...props }) {
|
|
22
|
-
return (_jsx("div", { "data-slot": "card-footer", className: cn('flex items-center px-6 [.border-t]:pt-6', className), ...props }));
|
|
23
|
-
}
|
|
3
|
+
const Card = ({ className, ...props }) => (_jsx("div", { "data-slot": "card", className: cn('bg-card text-card-foreground flex flex-col gap-6 rounded-[var(--uikit-radius)] border py-6 shadow-sm', className), ...props }));
|
|
4
|
+
const CardHeader = ({ className, ...props }) => (_jsx("div", { "data-slot": "card-header", className: cn('@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6', className), ...props }));
|
|
5
|
+
const CardTitle = ({ className, ...props }) => (_jsx("div", { "data-slot": "card-title", className: cn('leading-none font-semibold', className), ...props }));
|
|
6
|
+
const CardDescription = ({ className, ...props }) => (_jsx("div", { "data-slot": "card-description", className: cn('text-muted-foreground text-sm', className), ...props }));
|
|
7
|
+
const CardAction = ({ className, ...props }) => (_jsx("div", { "data-slot": "card-action", className: cn('col-start-2 row-span-2 row-start-1 self-start justify-self-end', className), ...props }));
|
|
8
|
+
const CardContent = ({ className, ...props }) => (_jsx("div", { "data-slot": "card-content", className: cn('px-6', className), ...props }));
|
|
9
|
+
const CardFooter = ({ className, ...props }) => (_jsx("div", { "data-slot": "card-footer", className: cn('flex items-center px-6 [.border-t]:pt-6', className), ...props }));
|
|
24
10
|
export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
declare const _default: {
|
|
3
3
|
title: string;
|
|
4
|
-
component:
|
|
4
|
+
component: ({ className, ...props }: React.ComponentProps<"div">) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
};
|
|
6
6
|
export default _default;
|
|
7
7
|
export declare const Basic: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -5,5 +5,5 @@ interface CardContainerProps {
|
|
|
5
5
|
children: ReactNode;
|
|
6
6
|
className?: string;
|
|
7
7
|
}
|
|
8
|
-
export declare
|
|
8
|
+
export declare const CardContainer: ({ title, icon, children, className }: CardContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Card, CardHeader, CardTitle, CardContent } from './Card';
|
|
3
|
-
export
|
|
3
|
+
export const CardContainer = ({ title, icon, children, className }) => {
|
|
4
4
|
return (_jsxs(Card, { className: className, children: [_jsx(CardHeader, { children: _jsxs(CardTitle, { className: "flex items-center gap-2", children: [icon, _jsx("span", { children: title })] }) }), _jsx(CardContent, { children: children })] }));
|
|
5
|
-
}
|
|
5
|
+
};
|