@esperanca-ui/componentes 2.14.24 → 2.16.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.
@@ -2,7 +2,6 @@ import { default as React } from 'react';
2
2
 
3
3
  export interface BackgroundProps {
4
4
  theme?: 'light' | 'dark';
5
- variant?: 'decorated' | 'solid';
6
5
  gradient?: string;
7
6
  pattern?: 'none' | 'dots' | 'grid' | 'waves';
8
7
  opacity?: number;
@@ -12,4 +11,4 @@ export interface BackgroundProps {
12
11
  className?: string;
13
12
  style?: React.CSSProperties;
14
13
  }
15
- export declare function Background({ theme, variant, gradient, pattern, opacity, blendMode, fullScreen, children, className, style, }: BackgroundProps): import("react/jsx-runtime").JSX.Element;
14
+ export declare function Background({ theme, gradient, pattern, opacity, blendMode, fullScreen, children, className, style, }: BackgroundProps): import("react/jsx-runtime").JSX.Element;
@@ -10,7 +10,7 @@ export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElemen
10
10
  * The size of the button.
11
11
  * @default 'md'
12
12
  */
13
- size?: 'xs' | 'sm' | 'md' | 'lg';
13
+ size?: 'sm' | 'md' | 'lg';
14
14
  /**
15
15
  * If `true`, the button will take up the full width of its container.
16
16
  * @default false
@@ -7,7 +7,6 @@ type ChartPreferenceAvailability = {
7
7
  showXAxisLabel?: boolean;
8
8
  showYAxisLabel?: boolean;
9
9
  showValueLabels?: boolean;
10
- showAllXLabels?: boolean;
11
10
  xTickRotation?: boolean;
12
11
  };
13
12
  type ChartPreferencesMenuProps = {
@@ -22,7 +22,6 @@ export interface ChartDisplayPreferences {
22
22
  showXAxisLabel: boolean;
23
23
  showYAxisLabel: boolean;
24
24
  showValueLabels: boolean;
25
- showAllXLabels: boolean;
26
25
  xTickRotation: ChartTickRotation;
27
26
  }
28
27
  export interface ChartBaseProps extends Omit<CardProps, 'children' | 'title'> {
@@ -35,15 +35,6 @@ export interface GanttChartGroup {
35
35
  meta?: React.ReactNode;
36
36
  color?: string;
37
37
  }
38
- export interface GanttChartDayHighlight {
39
- date: GanttChartDateValue;
40
- endDate?: GanttChartDateValue;
41
- color: string;
42
- label?: React.ReactNode;
43
- background?: string;
44
- borderColor?: string;
45
- textColor?: string;
46
- }
47
38
  export interface GanttChartRenderContext {
48
39
  view: GanttChartView;
49
40
  anchorDate: Date;
@@ -62,7 +53,6 @@ export interface GanttChartProps extends Omit<CardProps, 'children'> {
62
53
  heading?: React.ReactNode;
63
54
  description?: React.ReactNode;
64
55
  emptyLabel?: React.ReactNode;
65
- dayHighlights?: GanttChartDayHighlight[];
66
56
  showViewSwitcher?: boolean;
67
57
  views?: GanttChartView[];
68
58
  leftColumnWidth?: number;
@@ -3,11 +3,10 @@ import { default as React } from 'react';
3
3
  export interface PageHeaderProps extends React.HTMLAttributes<HTMLElement> {
4
4
  title: string;
5
5
  description?: string;
6
- variant?: 'page' | 'section';
7
6
  inverted?: boolean;
8
7
  actions?: React.ReactNode;
9
8
  breadcrumbs?: React.ReactNode;
10
9
  tabs?: React.ReactNode;
11
10
  sticky?: boolean;
12
11
  }
13
- export declare const PageHeader: ({ title, description, variant, inverted, actions, breadcrumbs, tabs, sticky, className, style, ...props }: PageHeaderProps) => import("react/jsx-runtime").JSX.Element;
12
+ export declare const PageHeader: ({ title, description, inverted, actions, breadcrumbs, tabs, sticky, className, style, ...props }: PageHeaderProps) => import("react/jsx-runtime").JSX.Element;
@@ -7,6 +7,8 @@ export interface Column<T> {
7
7
  sortable?: boolean;
8
8
  }
9
9
  export type SortDirection = 'asc' | 'desc';
10
+ /** Densidade das linhas da tabela (altura/padding das células). */
11
+ export type TableDensity = 'compact' | 'comfortable' | 'spacious';
10
12
  export interface PaginationProps {
11
13
  currentPage: number;
12
14
  totalPages: number;
@@ -21,6 +23,17 @@ export interface DataTableProps<T> {
21
23
  layoutMode?: 'fit' | 'scroll';
22
24
  onLayoutModeChange?: (mode: 'fit' | 'scroll') => void;
23
25
  layoutModeStorageKey?: string;
26
+ /** Densidade das linhas. Segue a mesma escala de `esp-shell-density-*`. Padrão: 'comfortable'. */
27
+ density?: TableDensity;
28
+ onDensityChange?: (density: TableDensity) => void;
29
+ /** Chave usada para salvar a preferência de densidade no localStorage */
30
+ densityStorageKey?: string;
31
+ /**
32
+ * Limita a altura da area de linhas e liga o scroll vertical dentro da tabela,
33
+ * mantendo o cabecalho fixo. Numero vira px; string e usada como veio ('60vh', 'calc(100vh - 240px)').
34
+ * Sem essa prop a tabela cresce e quem rola e a pagina.
35
+ */
36
+ maxHeight?: number | string;
24
37
  dragToScroll?: boolean;
25
38
  allColumns?: Column<T>[];
26
39
  preferences?: {
@@ -39,4 +52,4 @@ export interface DataTableProps<T> {
39
52
  sortDirection?: SortDirection;
40
53
  onSortChange?: (key: string, direction: SortDirection) => void;
41
54
  }
42
- export declare function DataTable<T extends Record<string, any>>({ columns, data, isLoading, variant, layoutMode, onLayoutModeChange, layoutModeStorageKey, dragToScroll, allColumns, preferences, toggleColumnVisibility, setColumnOrder, pagination, onPageChange, onPageSizeChange, pageSizeOptions, pageSizeStorageKey, sortKey: sortKeyProp, sortDirection: sortDirectionProp, onSortChange, }: DataTableProps<T>): import("react/jsx-runtime").JSX.Element;
55
+ export declare function DataTable<T extends Record<string, any>>({ columns, data, isLoading, variant, layoutMode, onLayoutModeChange, layoutModeStorageKey, density, onDensityChange, densityStorageKey, maxHeight, dragToScroll, allColumns, preferences, toggleColumnVisibility, setColumnOrder, pagination, onPageChange, onPageSizeChange, pageSizeOptions, pageSizeStorageKey, sortKey: sortKeyProp, sortDirection: sortDirectionProp, onSortChange, }: DataTableProps<T>): import("react/jsx-runtime").JSX.Element;
@@ -23,19 +23,6 @@ export interface TaskCalendarItem {
23
23
  project?: React.ReactNode;
24
24
  progress?: number;
25
25
  tags?: React.ReactNode[];
26
- hours?: React.ReactNode;
27
- monthTitle?: React.ReactNode;
28
- monthAssignee?: React.ReactNode;
29
- monthProject?: React.ReactNode;
30
- }
31
- export interface TaskCalendarDayHighlight {
32
- date: TaskCalendarDateValue;
33
- endDate?: TaskCalendarDateValue;
34
- color: string;
35
- label?: React.ReactNode;
36
- background?: string;
37
- borderColor?: string;
38
- textColor?: string;
39
26
  }
40
27
  export interface TaskCalendarRenderContext {
41
28
  date: Date;
@@ -63,12 +50,8 @@ export interface TaskCalendarProps extends Omit<CardProps, 'children'> {
63
50
  heading?: React.ReactNode;
64
51
  description?: React.ReactNode;
65
52
  emptyLabel?: React.ReactNode;
66
- dayHighlights?: TaskCalendarDayHighlight[];
67
53
  renderTask?: (task: TaskCalendarItem, context: TaskCalendarRenderContext) => React.ReactNode;
68
54
  showViewSwitcher?: boolean;
69
55
  views?: TaskCalendarView[];
70
- dragToScroll?: boolean;
71
- monthTaskVariant?: 'stacked' | 'badge';
72
- monthDayMinHeight?: number | string;
73
56
  }
74
57
  export declare const TaskCalendar: React.ForwardRefExoticComponent<TaskCalendarProps & React.RefAttributes<HTMLDivElement>>;
package/dist/index.d.ts CHANGED
@@ -2,8 +2,6 @@
2
2
  export { DataTable } from './components/Table/DataTable';
3
3
  export { Sidebar } from './components/Sidebar/Sidebar';
4
4
  export { FormSidebar } from './components/FormSidebar/FormSidebar';
5
- export { DateInput } from './components/DateInput/DateInput';
6
- export { DateTimeInput } from './components/DateTimeInput/DateTimeInput';
7
5
  export { Input } from './components/Input/Input';
8
6
  export { ComboBox } from './components/ComboBox/ComboBox';
9
7
  export { Checkbox } from './components/Checkbox/Checkbox';
@@ -38,8 +36,6 @@ export { useAnnouncements } from './hooks/useAnnouncements';
38
36
  export { useMediaQuery, useBreakpoint } from './hooks/useMediaQuery';
39
37
  export { mergeClasses, createComponentClasses } from './utils/styles';
40
38
  export type { InputProps } from './components/Input/Input';
41
- export type { DateInputProps } from './components/DateInput/DateInput';
42
- export type { DateTimeInputProps } from './components/DateTimeInput/DateTimeInput';
43
39
  export type { ComboBoxProps, ComboBoxOption } from './components/ComboBox/ComboBox';
44
40
  export type { CheckboxProps } from './components/Checkbox/Checkbox';
45
41
  export type { RadioProps, RadioGroupProps, RadioOption } from './components/Radio/Radio';
@@ -56,8 +52,8 @@ export type { ChartBaseProps, ChartCurve, ChartDatum, ChartDisplayPreferences, C
56
52
  export type { TaskStatusBadgeProps, TaskStatus } from './components/TaskStatusBadge/TaskStatusBadge';
57
53
  export type { TaskPriorityBadgeProps, TaskPriority } from './components/TaskPriorityBadge/TaskPriorityBadge';
58
54
  export type { TaskCardProps } from './components/TaskCard/TaskCard';
59
- export type { TaskCalendarProps, TaskCalendarDayHighlight, TaskCalendarItem, TaskCalendarDateValue, TaskCalendarView, TaskCalendarRenderContext, } from './components/TaskCalendar/TaskCalendar';
60
- export type { GanttChartProps, GanttChartDayHighlight, GanttChartGroup, GanttChartItem, GanttChartDateValue, GanttChartView, GanttChartRenderContext, } from './components/GanttChart/GanttChart';
55
+ export type { TaskCalendarProps, TaskCalendarItem, TaskCalendarDateValue, TaskCalendarView, TaskCalendarRenderContext, } from './components/TaskCalendar/TaskCalendar';
56
+ export type { GanttChartProps, GanttChartGroup, GanttChartItem, GanttChartDateValue, GanttChartView, GanttChartRenderContext, } from './components/GanttChart/GanttChart';
61
57
  export type { BackgroundProps } from './components/Background/Background';
62
58
  export type { ThemeProviderProps, Theme } from './components/ThemeProvider/ThemeProvider';
63
59
  export type { GridProps } from './components/Grid/Grid';
@@ -68,4 +64,4 @@ export type { TooltipProps } from './components/Tooltip/Tooltip';
68
64
  export type { LoadingProps } from './components/Loading/Loading';
69
65
  export type { PortalProps } from './components/Portal/Portal';
70
66
  export type { SidebarProps, SidebarItem, SidebarSection, SidebarIconMap, SidebarIconName } from './components/Sidebar/Sidebar';
71
- export type { Column, DataTableProps, PaginationProps, SortDirection } from './components/Table/DataTable';
67
+ export type { Column, DataTableProps, PaginationProps, SortDirection, TableDensity } from './components/Table/DataTable';