atenea-components 1.4.28 → 1.4.30

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,6 +7,7 @@ interface DashboardCardProps {
7
7
  button?: {
8
8
  label: string;
9
9
  onClick: () => void;
10
+ iconRight?: React.ReactNode;
10
11
  };
11
12
  }
12
13
  export declare const DashboardCard: React.FC<DashboardCardProps>;
@@ -4,6 +4,6 @@ exports.DashboardCard = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const Button_1 = require("../atoms/Button");
6
6
  const DashboardCard = ({ title, mainText, countdown, caption, button, }) => {
7
- return ((0, jsx_runtime_1.jsxs)("div", { className: "bg-white border border-grey-200 rounded-lg p-6 flex flex-col h-full", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col gap-2 flex-grow", children: [title && (0, jsx_runtime_1.jsx)("p", { className: "text-s2 text-grey-400", children: title }), mainText && (0, jsx_runtime_1.jsx)("p", { className: "text-s1 text-grey-900", children: mainText }), countdown && ((0, jsx_runtime_1.jsx)("div", { className: "text-h1 text-violetAtenea-500", children: countdown })), caption && (0, jsx_runtime_1.jsx)("p", { className: "text-c1 text-grey-500", children: caption })] }), button && ((0, jsx_runtime_1.jsx)("div", { className: "pt-4 mt-auto", children: (0, jsx_runtime_1.jsx)(Button_1.Button, { onClick: button.onClick, variant: "secondary", size: "small", children: button.label }) }))] }));
7
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "bg-white-100 border border-grey-200 rounded-lg p-6 flex flex-col h-full", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col gap-2 flex-grow", children: [title && (0, jsx_runtime_1.jsx)("p", { className: "text-s2 text-grey-700", children: title }), mainText && (0, jsx_runtime_1.jsx)("p", { className: "text-s1 text-grey-900", children: mainText }), countdown && ((0, jsx_runtime_1.jsx)("div", { className: "text-h1 text-violetAtenea-500", children: countdown })), caption && (0, jsx_runtime_1.jsx)("p", { className: "text-c1 text-grey-500", children: caption })] }), button && ((0, jsx_runtime_1.jsx)("div", { className: "pt-4 mt-auto", children: (0, jsx_runtime_1.jsx)(Button_1.Button, { onClick: button.onClick, variant: "secondary", size: "small", iconRight: button.iconRight, children: button.label }) }))] }));
8
8
  };
9
9
  exports.DashboardCard = DashboardCard;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "atenea-components",
3
- "version": "1.4.28",
3
+ "version": "1.4.30",
4
4
  "description": "React component library for Atenea",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",