@ztwoint/z-ui 0.1.139 → 0.1.140

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,11 +1,11 @@
1
- import * as React from 'react';
1
+ import { ReactNode } from 'react';
2
2
  declare const kpiCardVariants: (props?: ({
3
3
  active?: boolean | null | undefined;
4
4
  } & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
5
5
  export interface KpiCardProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'title'> {
6
6
  titleText?: string;
7
7
  subtitleText?: string;
8
- bottomText?: string;
8
+ bottomText?: string | ReactNode;
9
9
  /** Whether the card is in an active/selected state */
10
10
  active?: boolean;
11
11
  /** React node to render in the top-right corner (e.g., action buttons) */
@@ -13,5 +13,5 @@ export interface KpiCardProps extends Omit<React.ButtonHTMLAttributes<HTMLButton
13
13
  /** React node to render in the bottom-right corner (e.g., an icon) */
14
14
  bottomRightIcon?: React.ReactNode;
15
15
  }
16
- declare const KpiCard: React.ForwardRefExoticComponent<KpiCardProps & React.RefAttributes<HTMLButtonElement>>;
16
+ declare const KpiCard: import('react').ForwardRefExoticComponent<KpiCardProps & import('react').RefAttributes<HTMLButtonElement>>;
17
17
  export { KpiCard, kpiCardVariants };
@@ -1,8 +1,8 @@
1
1
  import { jsxs as r, jsx as e } from "react/jsx-runtime";
2
- import * as m from "react";
3
- import { cva as p } from "class-variance-authority";
2
+ import { cva as m } from "class-variance-authority";
3
+ import { forwardRef as p } from "react";
4
4
  import { cn as f } from "../../lib/utils.js";
5
- const x = p(
5
+ const x = m(
6
6
  [
7
7
  "flex flex-col gap-2 items-start overflow-clip text-left",
8
8
  "px-3.5 py-3.5 rounded-xl border border-stroke-solid-high",
@@ -22,7 +22,7 @@ const x = p(
22
22
  active: !1
23
23
  }
24
24
  }
25
- ), u = m.forwardRef(
25
+ ), u = p(
26
26
  ({
27
27
  className: t,
28
28
  titleText: i = "Title Text",
@@ -1,11 +1,11 @@
1
- import * as React from 'react';
1
+ import { ReactNode } from 'react';
2
2
  declare const kpiCardVariants: (props?: ({
3
3
  active?: boolean | null | undefined;
4
4
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
5
5
  export interface KpiCardProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'title'> {
6
6
  titleText?: string;
7
7
  subtitleText?: string;
8
- bottomText?: string;
8
+ bottomText?: string | ReactNode;
9
9
  /** Whether the card is in an active/selected state */
10
10
  active?: boolean;
11
11
  /** React node to render in the top-right corner (e.g., action buttons) */
@@ -13,5 +13,5 @@ export interface KpiCardProps extends Omit<React.ButtonHTMLAttributes<HTMLButton
13
13
  /** React node to render in the bottom-right corner (e.g., an icon) */
14
14
  bottomRightIcon?: React.ReactNode;
15
15
  }
16
- declare const KpiCard: React.ForwardRefExoticComponent<KpiCardProps & React.RefAttributes<HTMLButtonElement>>;
16
+ declare const KpiCard: import("react").ForwardRefExoticComponent<KpiCardProps & import("react").RefAttributes<HTMLButtonElement>>;
17
17
  export { KpiCard, kpiCardVariants };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ztwoint/z-ui",
3
- "version": "0.1.139",
3
+ "version": "0.1.140",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",