plataforma-fundacao-componentes 2.25.8 → 2.25.10
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/button/Button.stories.d.ts +31 -32
- package/dist/components/buttonFileUpload/ButtonFileUpload.d.ts +19 -9
- package/dist/components/buttonFileUpload/ButtonFileUpload.stories.d.ts +9 -10
- package/dist/components/checkbox/Checkbox.d.ts +1 -0
- package/dist/components/datePicker/components/datePickerCalendar/DatePickerCalendar.d.ts +1 -0
- package/dist/components/dropdownMenu/DropdownMenu.d.ts +5 -7
- package/dist/components/fileUpload/FileUpload.d.ts +2 -2
- package/dist/components/table/components/TableUpperHeader/TableUpperHeader.d.ts +1 -1
- package/dist/hooks/useOutsideClick/useOutsideClick.d.ts +3 -1
- package/dist/index.css +79 -79
- package/dist/index.d.ts +1 -1
- package/dist/index.js +116 -118
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +119 -121
- package/dist/index.modern.js.map +1 -1
- package/dist/libraries/{BlobFileTypes.d.ts → FileTypes.d.ts} +15 -12
- package/dist/libraries/IconButtonTheme.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,33 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
5
|
export default _default;
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
-
export
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
export
|
|
19
|
-
export
|
|
20
|
-
export
|
|
21
|
-
export
|
|
22
|
-
export
|
|
23
|
-
export
|
|
24
|
-
export
|
|
25
|
-
export
|
|
26
|
-
export
|
|
27
|
-
export
|
|
28
|
-
export
|
|
29
|
-
export
|
|
30
|
-
export
|
|
31
|
-
export
|
|
32
|
-
export
|
|
33
|
-
import Button from "./Button";
|
|
6
|
+
export declare const Primary: () => React.JSX.Element;
|
|
7
|
+
export declare const LoadingOnClick: () => React.JSX.Element;
|
|
8
|
+
export declare const PrimaryLight: () => React.JSX.Element;
|
|
9
|
+
export declare const PrimaryDisabled: () => React.JSX.Element;
|
|
10
|
+
export declare const PrimaryLightDisabled: () => React.JSX.Element;
|
|
11
|
+
export declare const PrimaryLoading: () => React.JSX.Element;
|
|
12
|
+
export declare const Secondary: () => React.JSX.Element;
|
|
13
|
+
export declare const SecondaryWhiteBackground: () => React.JSX.Element;
|
|
14
|
+
export declare const SecondaryDisabled: () => React.JSX.Element;
|
|
15
|
+
export declare const StyleDefault: () => React.JSX.Element;
|
|
16
|
+
export declare const Danger: () => React.JSX.Element;
|
|
17
|
+
export declare const DangerDarker: () => React.JSX.Element;
|
|
18
|
+
export declare const DangerDarkerOutline: () => React.JSX.Element;
|
|
19
|
+
export declare const DangerDisabled: () => React.JSX.Element;
|
|
20
|
+
export declare const Black: () => React.JSX.Element;
|
|
21
|
+
export declare const FullWidth: () => React.JSX.Element;
|
|
22
|
+
export declare const LeftIcon: () => React.JSX.Element;
|
|
23
|
+
export declare const LeftIconFullWidth: () => React.JSX.Element;
|
|
24
|
+
export declare const RightIcon: () => React.JSX.Element;
|
|
25
|
+
export declare const RightIconFullWidth: () => React.JSX.Element;
|
|
26
|
+
export declare const TDLoader: () => React.JSX.Element;
|
|
27
|
+
export declare const TDLoaderFullWidth: () => React.JSX.Element;
|
|
28
|
+
export declare const BottomMobileWithLoader: () => React.JSX.Element;
|
|
29
|
+
export declare const headerButtonPrimary: () => React.JSX.Element;
|
|
30
|
+
export declare const headerButtonSecondary: () => React.JSX.Element;
|
|
31
|
+
export declare const headerUserButtonPrimary: () => React.JSX.Element;
|
|
32
|
+
export declare const headerUserButtonSecondary: () => React.JSX.Element;
|
|
@@ -1,21 +1,31 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BlobFileTypes } from '../../libraries/BlobFileTypes';
|
|
1
|
+
import React, { InputHTMLAttributes } from 'react';
|
|
3
2
|
import { ButtonThemes } from '../../libraries/ButtonTheme';
|
|
3
|
+
import { FileTypes } from '../../libraries/FileTypes';
|
|
4
4
|
import { ButtonProps } from '../button/Button';
|
|
5
5
|
import './ButtonFileUpload.scss';
|
|
6
|
-
export
|
|
6
|
+
export declare type ButtonFileUploadProps = {
|
|
7
7
|
label?: string;
|
|
8
8
|
leftIcon?: React.ReactNode;
|
|
9
9
|
theme?: ButtonThemes;
|
|
10
|
-
allowedFileTypes?: Array<
|
|
11
|
-
multiple?: boolean;
|
|
10
|
+
allowedFileTypes?: Array<FileTypes | string>;
|
|
12
11
|
disabled?: boolean;
|
|
13
|
-
value?: null | object | object[] | Blob | Blob[] | File | File[];
|
|
14
|
-
onChange: (value: File | File[] | Blob | Blob[] | object | object[]) => void;
|
|
15
12
|
onTypeNotAllowed?: () => void;
|
|
16
|
-
buttonProps?: ButtonProps |
|
|
13
|
+
buttonProps?: Omit<ButtonProps, 'theme' | 'onClick' | 'disabled' | 'leftIcon' | 'w100' | 'children'> & {
|
|
14
|
+
'data-testid'?: string;
|
|
15
|
+
};
|
|
17
16
|
w100?: boolean;
|
|
18
|
-
|
|
17
|
+
inputProps?: Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'multiple' | 'tabIndex' | 'type' | 'accept' | 'hidden'> & {
|
|
18
|
+
'data-testid'?: string;
|
|
19
|
+
};
|
|
20
|
+
} & ({
|
|
21
|
+
multiple: true;
|
|
22
|
+
value?: File[];
|
|
23
|
+
onChange?: (value: File[]) => void;
|
|
24
|
+
} | {
|
|
25
|
+
multiple?: false;
|
|
26
|
+
value?: File;
|
|
27
|
+
onChange?: (value?: File) => void;
|
|
28
|
+
});
|
|
19
29
|
declare function ButtonFileUpload(props: ButtonFileUploadProps): React.JSX.Element;
|
|
20
30
|
declare namespace ButtonFileUpload {
|
|
21
31
|
var defaultProps: {
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
5
|
export default _default;
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
import ButtonFileUpload from "./ButtonFileUpload";
|
|
6
|
+
export declare const Single: () => React.JSX.Element;
|
|
7
|
+
export declare const SingleFileTypes: () => React.JSX.Element;
|
|
8
|
+
export declare const Multiple: () => React.JSX.Element;
|
|
9
|
+
export declare const MultipleW100: () => React.JSX.Element;
|
|
10
|
+
export declare const NotAllowedEvent: () => React.JSX.Element;
|
|
@@ -6,6 +6,7 @@ export interface CheckboxProps {
|
|
|
6
6
|
'tooltip-position'?: TooltipPosition;
|
|
7
7
|
'tooltip-text'?: string;
|
|
8
8
|
disabled?: boolean;
|
|
9
|
+
'aria-disabled'?: boolean;
|
|
9
10
|
value?: boolean;
|
|
10
11
|
onChange?: (value: boolean, evt: React.MouseEvent<HTMLElement>) => void;
|
|
11
12
|
theme?: CheckboxThemes;
|
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { HTMLAttributes } from 'react';
|
|
2
2
|
import './DropdownMenu.scss';
|
|
3
|
-
export interface DropdownMenuProps {
|
|
4
|
-
id?: string;
|
|
3
|
+
export interface DropdownMenuProps extends Omit<HTMLAttributes<HTMLDivElement>, 'content'> {
|
|
5
4
|
opened?: boolean;
|
|
6
|
-
setOpened: (evt
|
|
5
|
+
setOpened: (evt: boolean) => void;
|
|
7
6
|
content?: React.ReactNode;
|
|
8
7
|
closeOnOutClick?: boolean;
|
|
9
8
|
closeOnEsc?: boolean;
|
|
10
|
-
|
|
11
|
-
children?: any;
|
|
9
|
+
panelProps?: HTMLAttributes<HTMLDivElement>;
|
|
12
10
|
}
|
|
13
|
-
declare function DropdownMenu(props: DropdownMenuProps): React.JSX.Element;
|
|
11
|
+
declare function DropdownMenu({ opened, setOpened, content, closeOnEsc, closeOnOutClick, children, panelProps, ...props }: DropdownMenuProps): React.JSX.Element;
|
|
14
12
|
declare namespace DropdownMenu {
|
|
15
13
|
var defaultProps: {
|
|
16
14
|
closeOnOutClick: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { FileTypes } from '../../libraries/FileTypes';
|
|
3
3
|
import './FileUpload.scss';
|
|
4
4
|
interface FileUploadProps {
|
|
5
5
|
label: string | React.ReactNode;
|
|
@@ -10,7 +10,7 @@ interface FileUploadProps {
|
|
|
10
10
|
error?: boolean;
|
|
11
11
|
onChange: (evt?: any) => void;
|
|
12
12
|
inputFileProps?: object;
|
|
13
|
-
allowedFileTypes?:
|
|
13
|
+
allowedFileTypes?: FileTypes[];
|
|
14
14
|
multiple?: boolean;
|
|
15
15
|
disabled?: boolean;
|
|
16
16
|
className?: string;
|
|
@@ -10,7 +10,7 @@ interface upperHeaderButtonType {
|
|
|
10
10
|
rightIcon?: JSX.Element | React.ReactNode;
|
|
11
11
|
disabled?: boolean;
|
|
12
12
|
}
|
|
13
|
-
export interface upperHeaderDropdownMenuType extends DropdownMenuProps {
|
|
13
|
+
export interface upperHeaderDropdownMenuType extends Omit<DropdownMenuProps, 'children'> {
|
|
14
14
|
type: 'DropdownMenu';
|
|
15
15
|
children: upperHeaderButtonType;
|
|
16
16
|
}
|
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
import { RefObject } from 'react';
|
|
2
|
-
export default function useOutsideClick(refs:
|
|
2
|
+
export default function useOutsideClick(refs: Array<RefObject<null | HTMLButtonElement | HTMLDivElement | HTMLInputElement | HTMLLabelElement | HTMLParagraphElement | HTMLSpanElement>>, handler: (isInside: boolean) => void, options?: {
|
|
3
|
+
events: (keyof DocumentEventMap)[];
|
|
4
|
+
}): void;
|
package/dist/index.css
CHANGED
|
@@ -1432,9 +1432,6 @@ h5 {
|
|
|
1432
1432
|
.component-button-file-upload.w100 {
|
|
1433
1433
|
width: 100%; }
|
|
1434
1434
|
|
|
1435
|
-
.component-button-file-upload input {
|
|
1436
|
-
display: none; }
|
|
1437
|
-
|
|
1438
1435
|
:export {
|
|
1439
1436
|
widthXs: 575.98px;
|
|
1440
1437
|
widthSm: 767.98px;
|
|
@@ -1719,6 +1716,9 @@ h5 {
|
|
|
1719
1716
|
.component-icon-button:not(:disabled).component-icon-button-secondary {
|
|
1720
1717
|
color: #fefefe; }
|
|
1721
1718
|
|
|
1719
|
+
.component-icon-button:not(:disabled).component-icon-button-gray {
|
|
1720
|
+
color: #cdd3cd; }
|
|
1721
|
+
|
|
1722
1722
|
.component-icon-button:not(:disabled).component-icon-button-dark {
|
|
1723
1723
|
color: #323c32; }
|
|
1724
1724
|
|
|
@@ -5943,6 +5943,82 @@ h5 {
|
|
|
5943
5943
|
warningLight: #ffeb98;
|
|
5944
5944
|
warningDark: #765f00; }
|
|
5945
5945
|
|
|
5946
|
+
.component-chip {
|
|
5947
|
+
font-size: 14px;
|
|
5948
|
+
-webkit-user-select: none;
|
|
5949
|
+
-moz-user-select: none;
|
|
5950
|
+
user-select: none;
|
|
5951
|
+
display: flex;
|
|
5952
|
+
align-items: center;
|
|
5953
|
+
justify-content: space-between;
|
|
5954
|
+
border-radius: 200px;
|
|
5955
|
+
border-width: 1px;
|
|
5956
|
+
border-style: solid;
|
|
5957
|
+
font-weight: 600;
|
|
5958
|
+
transition: all 0.3s ease; }
|
|
5959
|
+
.component-chip span {
|
|
5960
|
+
max-width: calc(100% - 24px);
|
|
5961
|
+
padding-left: 4px;
|
|
5962
|
+
text-overflow: ellipsis;
|
|
5963
|
+
overflow: hidden; }
|
|
5964
|
+
.component-chip.w100 {
|
|
5965
|
+
width: 100%; }
|
|
5966
|
+
.component-chip.all-clickable,
|
|
5967
|
+
.component-chip .component-chip-button {
|
|
5968
|
+
transform: scale(1);
|
|
5969
|
+
transition: transform 0.3s ease;
|
|
5970
|
+
cursor: pointer; }
|
|
5971
|
+
.component-chip.all-clickable:active,
|
|
5972
|
+
.component-chip .component-chip-button:active {
|
|
5973
|
+
transform: scale(0.95); }
|
|
5974
|
+
.component-chip .component-chip-button {
|
|
5975
|
+
display: flex;
|
|
5976
|
+
align-items: center;
|
|
5977
|
+
justify-content: center;
|
|
5978
|
+
padding: 2px; }
|
|
5979
|
+
.component-chip .component-chip-button svg {
|
|
5980
|
+
width: 20px;
|
|
5981
|
+
height: 20px; }
|
|
5982
|
+
.component-chip.primary-outline {
|
|
5983
|
+
color: #3fa110;
|
|
5984
|
+
background-color: rgba(0, 0, 0, 0);
|
|
5985
|
+
border: 1px solid #3fa110; }
|
|
5986
|
+
.component-chip.primary {
|
|
5987
|
+
color: #fefefe;
|
|
5988
|
+
background-color: #3fa110;
|
|
5989
|
+
border: 1px solid #3fa110; }
|
|
5990
|
+
.component-chip.danger {
|
|
5991
|
+
color: #fefefe;
|
|
5992
|
+
background-color: #e60000;
|
|
5993
|
+
border: 1px solid #e60000; }
|
|
5994
|
+
|
|
5995
|
+
:export {
|
|
5996
|
+
widthXs: 575.98px;
|
|
5997
|
+
widthSm: 767.98px;
|
|
5998
|
+
widthMd: 991.98px;
|
|
5999
|
+
widthLg: 1199.98px; }
|
|
6000
|
+
|
|
6001
|
+
:export {
|
|
6002
|
+
white: #fefefe;
|
|
6003
|
+
darkenWhite: #efefef;
|
|
6004
|
+
black: #121212;
|
|
6005
|
+
transparent: rgba(0, 0, 0, 0);
|
|
6006
|
+
primary: #3fa110;
|
|
6007
|
+
primaryDark: #33820d;
|
|
6008
|
+
primaryLight: #d7e6c8;
|
|
6009
|
+
secondaryDarker: #323c32;
|
|
6010
|
+
secondaryDark: #5a645a;
|
|
6011
|
+
blueDarker: #2b517b;
|
|
6012
|
+
secondary: #828a82;
|
|
6013
|
+
secondaryLight: #cdd3cd;
|
|
6014
|
+
secondaryLighter: #f8f9f7;
|
|
6015
|
+
danger: #e60000;
|
|
6016
|
+
dangerLight: #ffb4b4;
|
|
6017
|
+
dangerDark: #ab4745;
|
|
6018
|
+
warning: #ffcd00;
|
|
6019
|
+
warningLight: #ffeb98;
|
|
6020
|
+
warningDark: #765f00; }
|
|
6021
|
+
|
|
5946
6022
|
.component-search {
|
|
5947
6023
|
position: relative;
|
|
5948
6024
|
width: 100%; }
|
|
@@ -6038,82 +6114,6 @@ h5 {
|
|
|
6038
6114
|
warningLight: #ffeb98;
|
|
6039
6115
|
warningDark: #765f00; }
|
|
6040
6116
|
|
|
6041
|
-
.component-chip {
|
|
6042
|
-
font-size: 14px;
|
|
6043
|
-
-webkit-user-select: none;
|
|
6044
|
-
-moz-user-select: none;
|
|
6045
|
-
user-select: none;
|
|
6046
|
-
display: flex;
|
|
6047
|
-
align-items: center;
|
|
6048
|
-
justify-content: space-between;
|
|
6049
|
-
border-radius: 200px;
|
|
6050
|
-
border-width: 1px;
|
|
6051
|
-
border-style: solid;
|
|
6052
|
-
font-weight: 600;
|
|
6053
|
-
transition: all 0.3s ease; }
|
|
6054
|
-
.component-chip span {
|
|
6055
|
-
max-width: calc(100% - 24px);
|
|
6056
|
-
padding-left: 4px;
|
|
6057
|
-
text-overflow: ellipsis;
|
|
6058
|
-
overflow: hidden; }
|
|
6059
|
-
.component-chip.w100 {
|
|
6060
|
-
width: 100%; }
|
|
6061
|
-
.component-chip.all-clickable,
|
|
6062
|
-
.component-chip .component-chip-button {
|
|
6063
|
-
transform: scale(1);
|
|
6064
|
-
transition: transform 0.3s ease;
|
|
6065
|
-
cursor: pointer; }
|
|
6066
|
-
.component-chip.all-clickable:active,
|
|
6067
|
-
.component-chip .component-chip-button:active {
|
|
6068
|
-
transform: scale(0.95); }
|
|
6069
|
-
.component-chip .component-chip-button {
|
|
6070
|
-
display: flex;
|
|
6071
|
-
align-items: center;
|
|
6072
|
-
justify-content: center;
|
|
6073
|
-
padding: 2px; }
|
|
6074
|
-
.component-chip .component-chip-button svg {
|
|
6075
|
-
width: 20px;
|
|
6076
|
-
height: 20px; }
|
|
6077
|
-
.component-chip.primary-outline {
|
|
6078
|
-
color: #3fa110;
|
|
6079
|
-
background-color: rgba(0, 0, 0, 0);
|
|
6080
|
-
border: 1px solid #3fa110; }
|
|
6081
|
-
.component-chip.primary {
|
|
6082
|
-
color: #fefefe;
|
|
6083
|
-
background-color: #3fa110;
|
|
6084
|
-
border: 1px solid #3fa110; }
|
|
6085
|
-
.component-chip.danger {
|
|
6086
|
-
color: #fefefe;
|
|
6087
|
-
background-color: #e60000;
|
|
6088
|
-
border: 1px solid #e60000; }
|
|
6089
|
-
|
|
6090
|
-
:export {
|
|
6091
|
-
widthXs: 575.98px;
|
|
6092
|
-
widthSm: 767.98px;
|
|
6093
|
-
widthMd: 991.98px;
|
|
6094
|
-
widthLg: 1199.98px; }
|
|
6095
|
-
|
|
6096
|
-
:export {
|
|
6097
|
-
white: #fefefe;
|
|
6098
|
-
darkenWhite: #efefef;
|
|
6099
|
-
black: #121212;
|
|
6100
|
-
transparent: rgba(0, 0, 0, 0);
|
|
6101
|
-
primary: #3fa110;
|
|
6102
|
-
primaryDark: #33820d;
|
|
6103
|
-
primaryLight: #d7e6c8;
|
|
6104
|
-
secondaryDarker: #323c32;
|
|
6105
|
-
secondaryDark: #5a645a;
|
|
6106
|
-
blueDarker: #2b517b;
|
|
6107
|
-
secondary: #828a82;
|
|
6108
|
-
secondaryLight: #cdd3cd;
|
|
6109
|
-
secondaryLighter: #f8f9f7;
|
|
6110
|
-
danger: #e60000;
|
|
6111
|
-
dangerLight: #ffb4b4;
|
|
6112
|
-
dangerDark: #ab4745;
|
|
6113
|
-
warning: #ffcd00;
|
|
6114
|
-
warningLight: #ffeb98;
|
|
6115
|
-
warningDark: #765f00; }
|
|
6116
|
-
|
|
6117
6117
|
.component-select-outer {
|
|
6118
6118
|
position: relative;
|
|
6119
6119
|
width: 100%; }
|
package/dist/index.d.ts
CHANGED
|
@@ -200,7 +200,7 @@ import FormattedText from './components/formattedText/FormattedText';
|
|
|
200
200
|
import { LeftControlWithLabel } from './components/table/components/leftControlWithLabel/LeftControlWithLabel';
|
|
201
201
|
export * from './components/modal/ModalTypes';
|
|
202
202
|
export * from './libraries/ActionCardThemes';
|
|
203
|
-
export * from './libraries/
|
|
203
|
+
export * from './libraries/FileTypes';
|
|
204
204
|
export * from './libraries/ButtonTheme';
|
|
205
205
|
export * from './libraries/ControlLabelPosition';
|
|
206
206
|
export * from './libraries/CardThemes';
|