beth-clarity 1.1.30 → 1.1.33

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "beth-clarity",
3
3
  "type": "module",
4
- "version": "1.1.30",
4
+ "version": "1.1.33",
5
5
  "description": "Design System da Beth Health Tech com componentes React reutilizáveis",
6
6
  "main": "dist/clarity-design-system.umd.js",
7
7
  "module": "dist/clarity-design-system.es.js",
@@ -57,7 +57,8 @@
57
57
  "license": "MIT",
58
58
  "peerDependencies": {
59
59
  "react": ">=18.0.0",
60
- "react-dom": ">=18.0.0"
60
+ "react-dom": ">=18.0.0",
61
+ "react-icons": ">=4.12.0"
61
62
  },
62
63
  "devDependencies": {
63
64
  "@storybook/addon-a11y": "^8.6.14",
@@ -91,6 +92,7 @@
91
92
  "typescript": "~5.6.3",
92
93
  "typescript-eslint": "^8.44.1",
93
94
  "vite": "^6.3.5",
95
+ "react-icons": "^4.12.0",
94
96
  "vite-plugin-dts": "^4.3.0",
95
97
  "vitest": "^3.2.4"
96
98
  }
@@ -1,22 +0,0 @@
1
- import { default as React } from 'react';
2
- import { SystemVariant, ProductVariant } from '../../types/common';
3
- export interface CheckInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'type'> {
4
- /** Tipo do input */
5
- type: 'checkbox' | 'radio';
6
- /** Variante de cor */
7
- variant?: SystemVariant | ProductVariant;
8
- /** Tamanho do input */
9
- size?: 'small' | 'medium' | 'large';
10
- /** Label do input */
11
- label?: string;
12
- /** Texto de ajuda */
13
- helperText?: string;
14
- /** Estado de erro */
15
- error?: boolean;
16
- /** Mensagem de erro */
17
- errorMessage?: string;
18
- /** Posição do label */
19
- labelPosition?: 'left' | 'right';
20
- }
21
- export declare const CheckInput: React.ForwardRefExoticComponent<CheckInputProps & React.RefAttributes<HTMLInputElement>>;
22
- //# sourceMappingURL=CheckInput.d.ts.map
@@ -1,3 +0,0 @@
1
- export { CheckInput } from './CheckInput';
2
- export type { CheckInputProps } from './CheckInput';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1,20 +0,0 @@
1
- import { default as React } from 'react';
2
- import { SystemVariant, ProductVariant } from '../../types/common';
3
- export interface InputSwitchProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'type'> {
4
- /** Variante de cor */
5
- variant?: SystemVariant | ProductVariant;
6
- /** Tamanho do switch */
7
- size?: 'small' | 'medium' | 'large';
8
- /** Label do switch */
9
- label?: string;
10
- /** Texto de ajuda */
11
- helperText?: string;
12
- /** Estado de erro */
13
- error?: boolean;
14
- /** Mensagem de erro */
15
- errorMessage?: string;
16
- /** Posição do label */
17
- labelPosition?: 'left' | 'right';
18
- }
19
- export declare const InputSwitch: React.ForwardRefExoticComponent<InputSwitchProps & React.RefAttributes<HTMLInputElement>>;
20
- //# sourceMappingURL=InputSwitch.d.ts.map
@@ -1,3 +0,0 @@
1
- export { InputSwitch } from './InputSwitch';
2
- export type { InputSwitchProps } from './InputSwitch';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1,31 +0,0 @@
1
- import { default as React } from 'react';
2
- export type SystemVariant = 'primary' | 'secondary';
3
- export type ProductVariant = 'elisa-primary' | 'elisa-secondary' | 'dora-primary' | 'dora-secondary' | 'hub-primary' | 'hub-secondary' | 'selena-primary' | 'selena-secondary' | 'duda-primary' | 'duda-secondary';
4
- export type MultiSelectVariant = SystemVariant | ProductVariant;
5
- export interface MultiSelectOption {
6
- value: string | number;
7
- label: string;
8
- disabled?: boolean;
9
- }
10
- export interface MultiSelectProps {
11
- options: MultiSelectOption[];
12
- value?: (string | number)[];
13
- onChange?: (values: (string | number)[]) => void;
14
- placeholder?: string;
15
- label?: string;
16
- helperText?: string;
17
- error?: boolean;
18
- errorMessage?: string;
19
- disabled?: boolean;
20
- variant?: MultiSelectVariant;
21
- size?: 'small' | 'medium' | 'large';
22
- maxSelectedLabels?: number;
23
- selectionLimit?: number;
24
- className?: string;
25
- id?: string;
26
- name?: string;
27
- required?: boolean;
28
- 'data-testid'?: string;
29
- }
30
- export declare const MultiSelect: React.ForwardRefExoticComponent<MultiSelectProps & React.RefAttributes<HTMLDivElement>>;
31
- //# sourceMappingURL=MultiSelect.d.ts.map
@@ -1,3 +0,0 @@
1
- export { MultiSelect } from './MultiSelect';
2
- export type { MultiSelectProps, MultiSelectOption } from './MultiSelect';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1,50 +0,0 @@
1
- import { default as React } from 'react';
2
- type SystemVariant = 'primary' | 'secondary';
3
- export interface SelectOption {
4
- value: string | number;
5
- label: string;
6
- disabled?: boolean;
7
- }
8
- export interface SelectProps {
9
- /** Variante de cor */
10
- variant?: SystemVariant;
11
- /** Tamanho do select */
12
- size?: 'small' | 'medium' | 'large';
13
- /** Label do select */
14
- label?: string;
15
- /** Texto de ajuda */
16
- helperText?: string;
17
- /** Estado de erro */
18
- error?: boolean;
19
- /** Mensagem de erro */
20
- errorMessage?: string;
21
- /** Ícone no início */
22
- startIcon?: React.ReactNode;
23
- /** Ícone no final (substitui a seta padrão) */
24
- endIcon?: React.ReactNode;
25
- /** Opções do select */
26
- options: SelectOption[];
27
- /** Placeholder quando nenhuma opção está selecionada */
28
- placeholder?: string;
29
- /** Valor selecionado */
30
- value?: string | number;
31
- /** Valor padrão */
32
- defaultValue?: string | number;
33
- /** Callback quando o valor muda */
34
- onChange?: (value: string | number) => void;
35
- /** Estado desabilitado */
36
- disabled?: boolean;
37
- /** Permite limpar a seleção */
38
- isClearable?: boolean;
39
- /** Permite busca dentro das opções */
40
- isSearchable?: boolean;
41
- /** Callback de foco */
42
- onFocus?: () => void;
43
- /** Callback de blur */
44
- onBlur?: () => void;
45
- /** Classe CSS adicional */
46
- className?: string;
47
- }
48
- export declare const Select: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<HTMLDivElement>>;
49
- export { };
50
- //# sourceMappingURL=Select.d.ts.map
@@ -1,3 +0,0 @@
1
- export { Select } from './Select';
2
- export type { SelectProps, SelectOption } from './Select';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1,4 +0,0 @@
1
- import { default as React } from 'react';
2
- import { TableProps } from '../../types/table';
3
- export declare const Table: React.FC<TableProps>;
4
- //# sourceMappingURL=Table.d.ts.map
@@ -1,3 +0,0 @@
1
- export * from './Table';
2
- export * from '../../types/table';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1,30 +0,0 @@
1
- import { default as React } from 'react';
2
- // import './Textarea.css';
3
- type SystemVariant = 'primary' | 'secondary';
4
- export interface TextareaProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'size'> {
5
- /** Variante de cor */
6
- variant?: SystemVariant;
7
- /** Tamanho do textarea */
8
- size?: 'small' | 'medium' | 'large';
9
- /** Label do textarea */
10
- label?: string;
11
- /** Texto de ajuda */
12
- helperText?: string;
13
- /** Estado de erro */
14
- error?: boolean;
15
- /** Mensagem de erro */
16
- errorMessage?: string;
17
- /** Ícone no início */
18
- startIcon?: React.ReactNode;
19
- /** Ícone no final */
20
- endIcon?: React.ReactNode;
21
- /** Altura mínima para textarea redimensionável */
22
- minHeight?: number;
23
- /** Altura máxima para textarea redimensionável */
24
- maxHeight?: number;
25
- /** Permitir redimensionamento da textarea */
26
- resizable?: boolean;
27
- }
28
- export declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
29
- export { };
30
- //# sourceMappingURL=Textarea.d.ts.map
@@ -1,3 +0,0 @@
1
- export { Textarea } from './Textarea';
2
- export type { TextareaProps } from './Textarea';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1,7 +0,0 @@
1
- import { default as React } from 'react';
2
- import { ToastContextType } from '@/types/toast';
3
- export declare const useToast: () => ToastContextType;
4
- export declare const ToastProvider: React.FC<{
5
- children: React.ReactNode;
6
- }>;
7
- //# sourceMappingURL=Toast.d.ts.map
@@ -1,2 +0,0 @@
1
- export { ToastProvider, useToast } from './Toast';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1,24 +0,0 @@
1
- import { default as React } from 'react';
2
- import { SystemVariant, ProductVariant } from '../../types/common';
3
- type ProductName = 'elisa' | 'dora' | 'hub' | 'selena' | 'duda' | 'gray';
4
- type ColorTone = '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
5
- export type TooltipPosition = 'top' | 'bottom' | 'left' | 'right' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
6
- export interface TooltipProps {
7
- content: React.ReactNode;
8
- position?: TooltipPosition;
9
- variant?: ProductVariant | SystemVariant | 'primary' | 'secondary';
10
- product?: ProductName;
11
- tone?: ColorTone;
12
- bgColor?: string;
13
- textColor?: string;
14
- children: React.ReactNode;
15
- className?: string;
16
- disabled?: boolean;
17
- delay?: number;
18
- hideDelay?: number;
19
- trigger?: 'hover' | 'click' | 'focus';
20
- arrow?: boolean;
21
- }
22
- export declare const Tooltip: React.FC<TooltipProps>;
23
- export default Tooltip;
24
- //# sourceMappingURL=Tooltip.d.ts.map
@@ -1,3 +0,0 @@
1
- export { Tooltip, type TooltipProps, type TooltipPosition } from './Tooltip';
2
- export { default } from './Tooltip';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1,42 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { ProductVariant, SystemVariant } from './common';
3
- export interface TableProps {
4
- variant?: ProductVariant | SystemVariant;
5
- columns: TableColumn[];
6
- data: TableData[];
7
- viewMode?: 'table' | 'card';
8
- isScrollable?: boolean;
9
- isLoading?: boolean;
10
- }
11
- export interface TableHeaderProps {
12
- variant?: ProductVariant | SystemVariant;
13
- children: ReactNode;
14
- }
15
- export interface TableBodyProps {
16
- children: ReactNode;
17
- }
18
- export interface TableRowProps {
19
- children: ReactNode;
20
- }
21
- export interface TableHeaderCellProps {
22
- children: ReactNode;
23
- onClick?: () => void;
24
- className?: string;
25
- }
26
- export interface TableCellProps {
27
- children: ReactNode;
28
- className?: string;
29
- }
30
- export interface TableData {
31
- [key: string]: any;
32
- }
33
- export type SortDirection = 'asc' | 'desc' | 'none';
34
- export interface TableColumn {
35
- key: string;
36
- header: string;
37
- sortable?: boolean;
38
- minWidth?: string;
39
- render?: (row: TableData) => ReactNode;
40
- align?: 'left' | 'center' | 'right';
41
- }
42
- //# sourceMappingURL=table.d.ts.map