@nar-bus/ui-kit 1.2.0 → 1.4.0

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.
@@ -3,6 +3,8 @@ export interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
3
3
  variant?: "success" | "warning" | "error" | "info" | "default" | "primary-subtle";
4
4
  size?: "sm" | "md";
5
5
  dot?: boolean;
6
+ /** Force the dot to pulse (error already pulses regardless). */
7
+ pulse?: boolean;
6
8
  }
7
9
  export declare const Badge: import('react').ForwardRefExoticComponent<BadgeProps & import('react').RefAttributes<HTMLSpanElement>>;
8
10
  //# sourceMappingURL=Badge.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../src/atoms/Badge.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAGxD,MAAM,WAAW,UAAW,SAAQ,cAAc,CAAC,eAAe,CAAC;IACjE,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,GAAG,gBAAgB,CAAC;IAClF,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,GAAG,CAAC,EAAE,OAAO,CAAC;CACf;AAgBD,eAAO,MAAM,KAAK,wGA+BjB,CAAC"}
1
+ {"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../src/atoms/Badge.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAGxD,MAAM,WAAW,UAAW,SAAQ,cAAc,CAAC,eAAe,CAAC;IACjE,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,GAAG,gBAAgB,CAAC;IAClF,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,gEAAgE;IAChE,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAgBD,eAAO,MAAM,KAAK,wGAgCjB,CAAC"}
@@ -0,0 +1,28 @@
1
+ import { HTMLAttributes } from 'react';
2
+ /**
3
+ * Card family — a generic, token-only surface container (shadcn grammar).
4
+ *
5
+ * Every part is a bare styled `<div>` with `forwardRef` + full
6
+ * `HTMLAttributes<HTMLDivElement>` passthrough and NO semantic props
7
+ * (no variant/padding/onClick/hoverable) — the legacy `@nar-bus/lena-ui-shared`
8
+ * Card the MDM call sites consume is a pure className surface (0 semantic-prop
9
+ * usage across the family's 82 tags / 16 files — 22 of them bare `<Card>`), so
10
+ * this is a drop-in for `{ Card, CardHeader, CardTitle, CardContent }` (separate
11
+ * exports, not compound). Padding lives on the sub-parts
12
+ * (header/content/footer), matching shadcn's composition so a bare
13
+ * `<Card><CardHeader>…</CardHeader><CardContent>…</CardContent></Card>` renders
14
+ * with correct spacing.
15
+ *
16
+ * This is distinct from `KpiCard` (rich hero KPI) and the glass `DetailTile` —
17
+ * Card is the plain general-purpose surface.
18
+ */
19
+ export type CardProps = HTMLAttributes<HTMLDivElement>;
20
+ export declare const Card: import('react').ForwardRefExoticComponent<CardProps & import('react').RefAttributes<HTMLDivElement>>;
21
+ export declare const CardHeader: import('react').ForwardRefExoticComponent<CardProps & import('react').RefAttributes<HTMLDivElement>>;
22
+ export declare const CardTitle: import('react').ForwardRefExoticComponent<CardProps & import('react').RefAttributes<HTMLDivElement>>;
23
+ export declare const CardDescription: import('react').ForwardRefExoticComponent<CardProps & import('react').RefAttributes<HTMLDivElement>>;
24
+ export declare const CardContent: import('react').ForwardRefExoticComponent<CardProps & import('react').RefAttributes<HTMLDivElement>>;
25
+ export declare const CardFooter: import('react').ForwardRefExoticComponent<CardProps & import('react').RefAttributes<HTMLDivElement>>;
26
+ /** Right-aligned action slot for a CardHeader (e.g. a menu button). */
27
+ export declare const CardAction: import('react').ForwardRefExoticComponent<CardProps & import('react').RefAttributes<HTMLDivElement>>;
28
+ //# sourceMappingURL=Card.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../src/atoms/Card.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAGxD;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,MAAM,SAAS,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC;AAEvD,eAAO,MAAM,IAAI,sGASf,CAAC;AAGH,eAAO,MAAM,UAAU,sGASrB,CAAC;AAGH,eAAO,MAAM,SAAS,sGASpB,CAAC;AAGH,eAAO,MAAM,eAAe,sGAM1B,CAAC;AAGH,eAAO,MAAM,WAAW,sGAEtB,CAAC;AAGH,eAAO,MAAM,UAAU,sGAMrB,CAAC;AAGH,uEAAuE;AACvE,eAAO,MAAM,UAAU,sGAErB,CAAC"}
@@ -0,0 +1,23 @@
1
+ import { HTMLAttributes } from 'react';
2
+ export interface ProgressSegment {
3
+ /** Portion in the same [0, max] scale as the bar. */
4
+ value: number;
5
+ /** Color override via class (e.g. "bg-[var(--color-status-success)]"). */
6
+ className?: string;
7
+ /** Inline backgroundColor (e.g. "var(--color-status-success)") — for raw token colors. */
8
+ color?: string;
9
+ /** Optional native hover tooltip (maps to the fill's `title`). NOT announced by screen readers — the bar's overall value is exposed via aria-valuenow / the root aria-label. */
10
+ label?: string;
11
+ }
12
+ export interface ProgressProps extends HTMLAttributes<HTMLDivElement> {
13
+ /** Current value. Clamped to [0, max]. Default 0. Ignored when `segments` is set. */
14
+ value?: number;
15
+ /** Upper bound. Default 100. */
16
+ max?: number;
17
+ /** Class for the fill/indicator — override color for threshold/band/status bars. Ignored when `segments` is set. */
18
+ indicatorClassName?: string;
19
+ /** Stacked segments (composition bars: success/failure/pending). When non-empty, renders one width-% fill per segment instead of the single `value` fill. */
20
+ segments?: ProgressSegment[];
21
+ }
22
+ export declare const Progress: import('react').ForwardRefExoticComponent<ProgressProps & import('react').RefAttributes<HTMLDivElement>>;
23
+ //# sourceMappingURL=Progress.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Progress.d.ts","sourceRoot":"","sources":["../../src/atoms/Progress.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAGxD,MAAM,WAAW,eAAe;IAC9B,qDAAqD;IACrD,KAAK,EAAE,MAAM,CAAC;IACd,0EAA0E;IAC1E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0FAA0F;IAC1F,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gLAAgL;IAChL,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,aAAc,SAAQ,cAAc,CAAC,cAAc,CAAC;IACnE,qFAAqF;IACrF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gCAAgC;IAChC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,oHAAoH;IACpH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,6JAA6J;IAC7J,QAAQ,CAAC,EAAE,eAAe,EAAE,CAAC;CAC9B;AAgBD,eAAO,MAAM,QAAQ,0GA6CpB,CAAC"}
@@ -11,7 +11,9 @@ export { Icon, type IconProps } from './Icon';
11
11
  export { Spinner, type SpinnerProps } from './Spinner';
12
12
  export { BrandLoader, type BrandLoaderProps } from './BrandLoader';
13
13
  export { Skeleton, type SkeletonProps } from './Skeleton';
14
+ export { Progress, type ProgressProps, type ProgressSegment } from './Progress';
14
15
  export { Tooltip, type TooltipProps } from './Tooltip';
15
16
  export { Separator, type SeparatorProps } from './Separator';
16
17
  export { Textarea, type TextareaProps } from './Textarea';
18
+ export { Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter, CardAction, type CardProps, } from './Card';
17
19
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/atoms/index.ts"],"names":[],"mappings":"A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