@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.
@@ -1,9 +1,9 @@
1
1
  import type { ComponentProps } from 'react';
2
- declare function Card({ className, ...props }: ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
3
- declare function CardHeader({ className, ...props }: ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
4
- declare function CardTitle({ className, ...props }: ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
5
- declare function CardDescription({ className, ...props }: ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
6
- declare function CardAction({ className, ...props }: ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
7
- declare function CardContent({ className, ...props }: ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
8
- declare function CardFooter({ className, ...props }: ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
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
- function Card({ className, ...props }) {
4
- return (_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 }));
5
- }
6
- function CardHeader({ className, ...props }) {
7
- return (_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 }));
8
- }
9
- function CardTitle({ className, ...props }) {
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 { Card } from './Card';
1
+ import React from 'react';
2
2
  declare const _default: {
3
3
  title: string;
4
- component: typeof Card;
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 function CardContainer({ title, icon, children, className }: CardContainerProps): import("react/jsx-runtime").JSX.Element;
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 function CardContainer({ title, icon, children, className }) {
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
+ };
@@ -0,0 +1,2 @@
1
+ export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent } from './Card';
2
+ export { CardContainer } from './CardContainer';
@@ -0,0 +1,2 @@
1
+ export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent } from './Card';
2
+ export { CardContainer } from './CardContainer';
@@ -10,3 +10,4 @@ export * from './Switch/Switch';
10
10
  export * from './Label/Label';
11
11
  export * from './DropdownWrapper/DropdownWrapper';
12
12
  export * from './Dropdown/Dropdown';
13
+ export * from './Card';
@@ -10,3 +10,4 @@ export * from './Switch/Switch';
10
10
  export * from './Label/Label';
11
11
  export * from './DropdownWrapper/DropdownWrapper';
12
12
  export * from './Dropdown/Dropdown';
13
+ export * from './Card';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eml-payments/ui-kit",
3
- "version": "0.1.24",
3
+ "version": "0.1.25",
4
4
  "private": false,
5
5
  "description": "ARLO UIKit",
6
6
  "homepage": "https://github.com/EML-Payments/arlo.npm.uikit#readme",