@moving-walls/design-system 1.0.14 → 1.0.16
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/ui/Form.d.ts +2 -1
- package/dist/components/ui/MetricCard.d.ts +16 -0
- package/dist/components/ui/ProgressBar.d.ts +18 -0
- package/dist/components/ui/index.d.ts +4 -0
- package/dist/index.esm.js +365 -228
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +366 -227
- package/dist/index.js.map +1 -1
- package/dist/styles/index.css +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -10,6 +10,7 @@ interface FormProps {
|
|
|
10
10
|
disabled?: boolean;
|
|
11
11
|
size?: 'sm' | 'md' | 'lg';
|
|
12
12
|
layout?: 'vertical' | 'horizontal' | 'inline';
|
|
13
|
+
id?: string;
|
|
13
14
|
}
|
|
14
15
|
interface FormSectionProps {
|
|
15
16
|
children: React.ReactNode;
|
|
@@ -49,7 +50,7 @@ interface FormActionsProps {
|
|
|
49
50
|
className?: string;
|
|
50
51
|
align?: 'left' | 'center' | 'right';
|
|
51
52
|
}
|
|
52
|
-
export declare function Form({ children, onSubmit, className, disabled, size, layout }: FormProps): import("react/jsx-runtime").JSX.Element;
|
|
53
|
+
export declare function Form({ children, onSubmit, className, disabled, size, layout, id, }: FormProps): import("react/jsx-runtime").JSX.Element;
|
|
53
54
|
export declare function FormSection({ children, title, description, className }: FormSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
54
55
|
export declare function FormGroup({ children, className, required }: FormGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
55
56
|
export declare function FormField({ children, className }: FormFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface MetricCardChange {
|
|
3
|
+
value: string;
|
|
4
|
+
isPositive: boolean;
|
|
5
|
+
}
|
|
6
|
+
export interface MetricCardProps {
|
|
7
|
+
title: string;
|
|
8
|
+
value: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
icon?: React.ReactNode;
|
|
11
|
+
change?: MetricCardChange;
|
|
12
|
+
showTrendIcon?: boolean;
|
|
13
|
+
centerY?: boolean;
|
|
14
|
+
className?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare function MetricCard({ title, value, description, icon, change, showTrendIcon, centerY, className, }: MetricCardProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface ProgressBarProps {
|
|
3
|
+
/** Current progress percentage (0–100) */
|
|
4
|
+
value: number;
|
|
5
|
+
/** Size variant */
|
|
6
|
+
size?: 'small' | 'medium';
|
|
7
|
+
/** Color variant */
|
|
8
|
+
color?: 'primary' | 'success' | 'danger' | 'warning' | 'neutral';
|
|
9
|
+
/** Disabled state */
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
/** Show percentage label on the right */
|
|
12
|
+
showLabel?: boolean;
|
|
13
|
+
/** Additional CSS classes */
|
|
14
|
+
className?: string;
|
|
15
|
+
/** Accessibility label */
|
|
16
|
+
ariaLabel?: string;
|
|
17
|
+
}
|
|
18
|
+
export declare const ProgressBar: React.ForwardRefExoticComponent<ProgressBarProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -24,6 +24,10 @@ export { Filter } from './Filter';
|
|
|
24
24
|
export type { FilterRule, FilterField, FilterOperator, FilterType } from './Filter';
|
|
25
25
|
export { RichTextEditor } from './RichTextEditor';
|
|
26
26
|
export { DocumentEditor } from './DocumentEditor';
|
|
27
|
+
export { MetricCard } from './MetricCard';
|
|
28
|
+
export type { MetricCardProps, MetricCardChange } from './MetricCard';
|
|
29
|
+
export { ProgressBar } from './ProgressBar';
|
|
30
|
+
export type { ProgressBarProps } from './ProgressBar';
|
|
27
31
|
export { Card, CardHeader, CardContent, CardFooter, CardTitle, CardDescription } from './Card';
|
|
28
32
|
export { Badge } from './Badge';
|
|
29
33
|
export { Alert } from './Alert';
|