plataforma-fundacao-componentes 2.22.6 → 2.22.9

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.
@@ -4,6 +4,7 @@ interface DatePickerProps {
4
4
  initialValue?: string;
5
5
  onChange?: (evt: any) => void;
6
6
  queryToAppend: string;
7
+ disabled?: boolean;
7
8
  language?: {
8
9
  daysOfWeek: string[];
9
10
  months: string[];
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ import './TableUpperHeader.scss';
3
+ declare type upperHeaderButtonType = {
4
+ id?: string;
5
+ onClick?: () => void;
6
+ label?: string;
7
+ leftIcon?: JSX.Element | React.ReactNode;
8
+ rightIcon?: JSX.Element | React.ReactNode;
9
+ disabled?: boolean;
10
+ };
11
+ export interface TableUpperHeaderProps {
12
+ active?: boolean;
13
+ leftContent?: upperHeaderButtonType[];
14
+ rightContent?: upperHeaderButtonType[];
15
+ }
16
+ declare function TableUpperHeader(props: TableUpperHeaderProps): JSX.Element;
17
+ declare const _default: React.MemoExoticComponent<typeof TableUpperHeader>;
18
+ export default _default;
@@ -1,4 +1,5 @@
1
1
  import React, { HTMLAttributes } from 'react';
2
+ import { TooltipPosition } from '../../../../libraries/Tooltips';
2
3
  import { CheckboxProps } from '../../../checkbox/Checkbox';
3
4
  import './LeftCheckboxWithLabel.scss';
4
5
  export interface LeftCheckboxWithLabelElement extends CheckboxProps {
@@ -7,12 +8,18 @@ export interface LeftCheckboxWithLabelElement extends CheckboxProps {
7
8
  spanProps?: never;
8
9
  anchorLabelToCheckbox?: never;
9
10
  removeUserSelect?: never;
11
+ w100?: boolean;
12
+ }
13
+ export interface SpanPropsExtended extends HTMLAttributes<HTMLSpanElement> {
14
+ 'tooltip-position'?: TooltipPosition;
15
+ 'tooltip-text'?: string;
10
16
  }
11
17
  export interface LeftCheckboxWithLabelString extends CheckboxProps {
12
18
  label?: string;
13
19
  justifyContent?: string;
14
- spanProps?: HTMLAttributes<HTMLSpanElement>;
20
+ spanProps?: SpanPropsExtended;
15
21
  anchorLabelToCheckbox?: boolean;
16
22
  removeUserSelect?: boolean;
23
+ w100?: boolean;
17
24
  }
18
25
  export declare const LeftCheckboxWithLabel: (props: LeftCheckboxWithLabelElement | LeftCheckboxWithLabelString) => JSX.Element;
@@ -1,13 +1,33 @@
1
1
  import React from 'react';
2
- import { TableProps } from '../table/Table';
2
+ import { TableUpperHeaderProps } from '../table/components/TableUpperHeader/TableUpperHeader';
3
3
  import './TableWithOverflow.scss';
4
- interface TableWithOverflowProps extends TableProps {
4
+ interface TableCell extends React.HTMLAttributes<HTMLTableCellElement> {
5
+ align?: 'left' | 'center' | 'right' | 'justify' | 'char';
6
+ }
7
+ declare type ColumnObject = {
8
+ key: string;
9
+ props?: TableCell;
10
+ value: any;
11
+ absolute?: {
12
+ left?: string;
13
+ right?: string;
14
+ width: string;
15
+ };
16
+ };
17
+ interface TableWithOverflowProps {
18
+ upperHeader?: TableUpperHeaderProps;
5
19
  showArrowControl?: boolean;
20
+ hasActionsCol?: boolean;
21
+ showTopNavigator?: boolean;
22
+ columns: ColumnObject[];
23
+ lines?: any[];
6
24
  }
7
25
  declare function TableWithOverflow(props: TableWithOverflowProps): JSX.Element;
8
26
  declare namespace TableWithOverflow {
9
27
  var defaultProps: {
10
28
  showArrowControl: boolean;
29
+ hasActionsCol: boolean;
30
+ showTopNavigator: boolean;
11
31
  };
12
32
  }
13
33
  declare const _default: React.MemoExoticComponent<typeof TableWithOverflow>;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export default function useDraggableScroll<T extends HTMLElement>(reference: React.RefObject<T>): void;