@ezfit/ui 1.0.0 → 1.2.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.
- package/README.md +1 -1
- package/dist/components/DateNavigator/DateNavigator.d.ts +8 -0
- package/dist/components/DateNavigator/index.d.ts +1 -0
- package/dist/components/SegmentedControl/SegmentedControl.d.ts +15 -0
- package/dist/components/SegmentedControl/index.d.ts +1 -0
- package/dist/components/SelectableCard/SelectableCard.d.ts +26 -0
- package/dist/components/SelectableCard/index.d.ts +1 -0
- package/dist/components/StatCard/StatCard.d.ts +1 -0
- package/dist/components/Textarea/Textarea.d.ts +6 -0
- package/dist/components/Textarea/index.d.ts +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +787 -585
- package/dist/lib/tokens.d.ts +30 -29
- package/dist/styles.css +1 -1
- package/package.json +5 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @ezfit/ui
|
|
2
2
|
|
|
3
|
-
Design system EZFIT em React + TypeScript para dashboards de saude, dieta e treino. Estilizado com Tailwind v4 (CSS variables + CVA), acessibilidade via Radix UI, graficos com Recharts e icones
|
|
3
|
+
Design system EZFIT em React + TypeScript para dashboards de saude, dieta e treino. Estilizado com Tailwind v4 (CSS variables + CVA), acessibilidade via Radix UI, graficos com Recharts e icones hugeicons.
|
|
4
4
|
|
|
5
5
|
## Desenvolvimento
|
|
6
6
|
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface DateNavigatorProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
2
|
+
label: string;
|
|
3
|
+
onPrev: () => void;
|
|
4
|
+
onNext: () => void;
|
|
5
|
+
onLabelClick?: () => void;
|
|
6
|
+
nextDisabled?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const DateNavigator: import('react').ForwardRefExoticComponent<DateNavigatorProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DateNavigator, type DateNavigatorProps } from './DateNavigator';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
export interface SegmentedControlOption {
|
|
3
|
+
value: string;
|
|
4
|
+
label: string;
|
|
5
|
+
}
|
|
6
|
+
declare const segmentedControlVariants: (props?: ({
|
|
7
|
+
size?: "sm" | "md" | null | undefined;
|
|
8
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
9
|
+
export interface SegmentedControlProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onChange">, VariantProps<typeof segmentedControlVariants> {
|
|
10
|
+
options: SegmentedControlOption[];
|
|
11
|
+
value: string;
|
|
12
|
+
onValueChange: (value: string) => void;
|
|
13
|
+
}
|
|
14
|
+
export declare function SegmentedControl({ className, options, value, onValueChange, size, ...props }: SegmentedControlProps): import("react").JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, } from './SegmentedControl';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { IconSvgElement } from '@hugeicons/react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { IconTileProps } from '../IconTile';
|
|
4
|
+
export interface SelectableCardProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
5
|
+
title: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
icon?: IconSvgElement;
|
|
8
|
+
iconTone?: IconTileProps["tone"];
|
|
9
|
+
selected?: boolean;
|
|
10
|
+
trailing?: ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export declare const SelectableCard: import('react').ForwardRefExoticComponent<SelectableCardProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
13
|
+
export interface SelectableCardItem {
|
|
14
|
+
value: string;
|
|
15
|
+
title: string;
|
|
16
|
+
description?: string;
|
|
17
|
+
icon?: IconSvgElement;
|
|
18
|
+
iconTone?: IconTileProps["tone"];
|
|
19
|
+
}
|
|
20
|
+
export interface SelectableCardGroupProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onChange"> {
|
|
21
|
+
items: SelectableCardItem[];
|
|
22
|
+
value: string;
|
|
23
|
+
onValueChange: (value: string) => void;
|
|
24
|
+
columns?: number;
|
|
25
|
+
}
|
|
26
|
+
export declare function SelectableCardGroup({ className, items, value, onValueChange, columns, ...props }: SelectableCardGroupProps): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SelectableCard, SelectableCardGroup, type SelectableCardGroupProps, type SelectableCardItem, type SelectableCardProps, } from './SelectableCard';
|
|
@@ -17,6 +17,7 @@ export interface StatCardProps extends React.HTMLAttributes<HTMLDivElement>, Var
|
|
|
17
17
|
caption?: string;
|
|
18
18
|
color?: string;
|
|
19
19
|
};
|
|
20
|
+
footer?: ReactNode;
|
|
20
21
|
}
|
|
21
22
|
export declare const StatCard: import('react').ForwardRefExoticComponent<StatCardProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
22
23
|
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
2
|
+
label?: string;
|
|
3
|
+
error?: string;
|
|
4
|
+
hint?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const Textarea: import('react').ForwardRefExoticComponent<TextareaProps & import('react').RefAttributes<HTMLTextAreaElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Textarea, type TextareaProps } from './Textarea';
|
package/dist/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export * from './components/Card';
|
|
|
6
6
|
export * from './components/Chart';
|
|
7
7
|
export * from './components/Checkbox';
|
|
8
8
|
export * from './components/DataTable';
|
|
9
|
+
export * from './components/DateNavigator';
|
|
9
10
|
export * from './components/Dialog';
|
|
10
11
|
export * from './components/EmptyState';
|
|
11
12
|
export * from './components/FilterChips';
|
|
@@ -18,7 +19,9 @@ export * from './components/ProfileCard';
|
|
|
18
19
|
export * from './components/ProgressBar';
|
|
19
20
|
export * from './components/ProgressRing';
|
|
20
21
|
export * from './components/RadioGroup';
|
|
22
|
+
export * from './components/SegmentedControl';
|
|
21
23
|
export * from './components/Select';
|
|
24
|
+
export * from './components/SelectableCard';
|
|
22
25
|
export * from './components/Sidebar';
|
|
23
26
|
export * from './components/Skeleton';
|
|
24
27
|
export * from './components/Slider';
|
|
@@ -26,6 +29,7 @@ export * from './components/Spinner';
|
|
|
26
29
|
export * from './components/StatCard';
|
|
27
30
|
export * from './components/Switch';
|
|
28
31
|
export * from './components/Tabs';
|
|
32
|
+
export * from './components/Textarea';
|
|
29
33
|
export * from './components/Toast';
|
|
30
34
|
export * from './components/Tooltip';
|
|
31
35
|
export * from './components/Topbar';
|