@g4rcez/components 2.0.16 → 2.0.17
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/display/card.d.ts +4 -4
- package/dist/components/display/card.d.ts.map +1 -1
- package/dist/components/display/card.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +362 -362
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +13 -13
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -18,12 +18,12 @@ export type CardHeaderTitleProps<T extends React.ElementType = "div"> = Polymorp
|
|
|
18
18
|
titleTag?: React.ElementType;
|
|
19
19
|
title: React.ReactElement | string;
|
|
20
20
|
}, T>;
|
|
21
|
-
export
|
|
22
|
-
Icon
|
|
21
|
+
export type StatsCardProps = CardProps & {
|
|
22
|
+
Icon?: LucideIcon;
|
|
23
23
|
title: string;
|
|
24
24
|
value: Label;
|
|
25
|
-
href?: string;
|
|
26
25
|
mark?: string;
|
|
27
26
|
interactive?: boolean;
|
|
28
|
-
}
|
|
27
|
+
};
|
|
28
|
+
export declare const StatsCard: (props: StatsCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
29
29
|
//# sourceMappingURL=card.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../src/components/display/card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAGjD,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAa,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,EAAY,UAAU,EAAE,MAAM,cAAc,CAAC;AAGpD,MAAM,MAAM,SAAS,GAAG,gBAAgB,CACpC,QAAQ,CACJ,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAC3B,OAAO,CAAC;IACJ,KAAK,E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,eAAO,MAAM,IAAI;+FAUd,iBAAiB,CAAC,SAAS,CAAC;wDAuC6B,iBAAiB,CAAC,oBAAoB,CAAC;CAXlG,CAAC;AAEF,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,KAAK,IAAI,gBAAgB,CACpF;IACI,MAAM,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IAC3B,QAAQ,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IAC7B,KAAK,EAAE,KAAK,CAAC,YAAY,GAAG,MAAM,CAAC;CACtC,EACD,CAAC,CACJ,CAAC;AAoBF,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG;IACrC,IAAI,CAAC,EAAE,UAAU,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,KAAK,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,OAAO,CAAA;CACvF,CAAA;AAED,eAAO,MAAM,SAAS,GAAI,OAAO,cAAc,4CAuB9C,CAAC"}
|
|
@@ -14,5 +14,5 @@ Card.Title = ({ as, titleTag, navTag, children, ...props }) => {
|
|
|
14
14
|
export const StatsCard = (props) => {
|
|
15
15
|
const interactive = props.interactive ?? true;
|
|
16
16
|
const Icon = props.Icon ?? InfoIcon;
|
|
17
|
-
return (_jsx(Card, { ...props, title: null, container: "px-0 py-0", className: "flex gap-4 items-center px-0 lg:px-0", children: _jsxs("div", { className: `flex w-full items-center gap-4 rounded-card px-0 lg:px-0 ${interactive ? "transition-colors duration-300 ease-linear hover:bg-primary-hover/10" : ""}`, children: [_jsx("div", { className: css("flex aspect-square h-[stretch] w-20 items-center justify-center rounded-l-card bg-primary p-4 text-primary-foreground", props.mark), children: _jsx(Icon, { size: 48 }) }), _jsxs("div", { className: "flex flex-col gap-2 justify-center py-2", children: [_jsx("p", { className: "text-lg", children: props.title }), _jsx("p", { className: "text-4xl font-bold tracking-wide", children: props.value })] })] }) }));
|
|
17
|
+
return (_jsx(Card, { ...props, title: null, loading: undefined, container: "px-0 py-0", className: "flex gap-4 items-center px-0 lg:px-0", children: _jsxs("div", { className: `flex w-full items-center gap-4 rounded-card px-0 lg:px-0 ${interactive ? "transition-colors duration-300 ease-linear hover:bg-primary-hover/10" : ""}`, children: [_jsx("div", { className: css("flex aspect-square h-[stretch] w-20 items-center justify-center rounded-l-card bg-primary p-4 text-primary-foreground", props.mark), children: _jsx(Icon, { size: 48 }) }), _jsxs("div", { className: "flex flex-col gap-2 justify-center py-2", children: [_jsx("p", { className: "text-lg", children: props.title }), props.loading ? _jsx(Skeleton, { className: "h-10" }) : _jsx("p", { className: "text-4xl font-bold tracking-wide", children: props.value })] })] }) }));
|
|
18
18
|
};
|