@skalar-saas/design-system 0.1.149 → 0.1.151

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.
@@ -0,0 +1,32 @@
1
+ import React from "react";
2
+ import { BadgeProps } from "../Badge/Badge";
3
+ export interface WidgetSummaryCardProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onChange"> {
4
+ /** Widget glyph shown in the header box (iconsax element or image). */
5
+ icon?: React.ReactNode;
6
+ name: string;
7
+ /** Widget type copy, e.g. "Formulario", "Tabla", "KPI". */
8
+ typeLabel: React.ReactNode;
9
+ /** Bound module name, e.g. "Pedidos". Hidden when omitted. */
10
+ moduleLabel?: React.ReactNode;
11
+ /** Relative-time copy, e.g. "hace 2 días". Hidden when omitted. */
12
+ updatedLabel?: React.ReactNode;
13
+ statusLabel: string;
14
+ statusTheme?: BadgeProps["theme"];
15
+ /** Open / view the widget (also fired when the card body is clicked). */
16
+ onView?: () => void;
17
+ onDuplicate?: () => void;
18
+ onDelete?: () => void;
19
+ viewLabel?: string;
20
+ duplicateLabel?: string;
21
+ deleteLabel?: string;
22
+ }
23
+ /**
24
+ * Compact card for a single widget in a grid: type glyph + name on top, with a meta
25
+ * row (widget type, bound module, last updated) and a status badge. A kebab menu
26
+ * exposes view / duplicate / delete; the card body is also clickable to view.
27
+ * Mirrors {@link ModuleSummaryCard}; confirmation logic lives in the consumer.
28
+ */
29
+ export declare const WidgetSummaryCard: {
30
+ ({ className, icon, name, typeLabel, moduleLabel, updatedLabel, statusLabel, statusTheme, onView, onDuplicate, onDelete, viewLabel, duplicateLabel, deleteLabel, ...props }: WidgetSummaryCardProps): import("react/jsx-runtime").JSX.Element;
31
+ displayName: string;
32
+ };
@@ -0,0 +1,2 @@
1
+ export { WidgetSummaryCard } from "./WidgetSummaryCard";
2
+ export type { WidgetSummaryCardProps } from "./WidgetSummaryCard";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skalar-saas/design-system",
3
- "version": "0.1.149",
3
+ "version": "0.1.151",
4
4
  "type": "module",
5
5
  "description": "Skalar Design System - UI component library",
6
6
  "author": "Skalar Team",