plataforma-fundacao-componentes 2.20.21 → 2.20.22
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 +2 -0
- package/dist/components/checkbox/Checkbox.stories.d.ts +1 -0
- package/dist/components/etiqueta/Etiqueta.stories.d.ts +1 -1
- package/dist/index.css +126 -94
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +3 -2
- package/dist/index.modern.js.map +1 -1
- package/dist/libraries/BlobFileTypes.d.ts +3 -2
- package/dist/libraries/ButtonTheme.d.ts +2 -1
- package/dist/libraries/CardThemes.d.ts +1 -1
- package/dist/libraries/CheckboxThemes.d.ts +2 -1
- package/dist/libraries/EtiquetasThemes.d.ts +1 -1
- package/dist/libraries/HeaderThemes.d.ts +1 -1
- package/dist/libraries/IconButtonTheme.d.ts +1 -1
- package/dist/libraries/ModalSize.d.ts +1 -1
- package/dist/libraries/Notification.d.ts +2 -2
- package/dist/libraries/Pautas.d.ts +1 -1
- package/dist/libraries/RadioButtonTheme.d.ts +1 -1
- package/dist/libraries/SicrediLogoThemes.d.ts +1 -1
- package/dist/libraries/Toast.d.ts +1 -1
- package/dist/libraries/Tooltips.d.ts +1 -1
- package/package.json +4 -3
|
@@ -14,6 +14,7 @@ export declare const EXTENSION_ALL_IMAGES = "image/*";
|
|
|
14
14
|
export declare const EXTENSION_AVI = ".avi";
|
|
15
15
|
export declare const EXTENSION_WMV = ".wmv";
|
|
16
16
|
export declare const EXTENSION_MP4 = ".mp4";
|
|
17
|
-
export declare const IMAGE_EXTENSIONS:
|
|
18
|
-
export declare const EXTENSIONS:
|
|
17
|
+
export declare const IMAGE_EXTENSIONS: readonly [".png", ".gif", ".jpg", ".jpeg"];
|
|
18
|
+
export declare const EXTENSIONS: readonly [".png", ".gif", ".jpg", ".jpeg", ".svg", ".pdf", ".doc", ".docx", ".ppt", ".pptx", ".xls", ".xlsx", ".avi", ".wmv", ".mp4", "image/*"];
|
|
19
19
|
export declare type BlobFileTypes = typeof EXTENSIONS[number];
|
|
20
|
+
export declare type ImageTypes = typeof IMAGE_EXTENSIONS[number];
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare const BUTTON_STYLE_PRIMARY = "primary";
|
|
2
|
+
export declare const BUTTON_STYLE_PRIMARY_LIGHT = "primary-light";
|
|
2
3
|
export declare const BUTTON_STYLE_SECONDARY = "secondary";
|
|
3
4
|
export declare const BUTTON_STYLE_SECONDARY_WHITE_BACKGROUND = "secondary-white-background";
|
|
4
5
|
export declare const BUTTON_STYLE_DANGER = "danger";
|
|
@@ -11,5 +12,5 @@ export declare const BUTTON_STYLE_HEADER_SECONDARY = "header-secondary";
|
|
|
11
12
|
export declare const BUTTON_STYLE_HEADER_USER_PRIMARY = "header-user-primary";
|
|
12
13
|
export declare const BUTTON_STYLE_HEADER_USER_SECONDARY = "header-user-secondary";
|
|
13
14
|
export declare const BUTTON_STYLE_HEADER_USER_BOLD = "header-user-bold";
|
|
14
|
-
export declare const ButtonThemes:
|
|
15
|
+
export declare const ButtonThemes: readonly ["primary", "primary-light", "secondary", "secondary-white-background", "danger", "default", "default-primary", "blue", "pauta", "header-primary", "header-secondary", "header-user-primary", "header-user-secondary", "header-user-bold"];
|
|
15
16
|
export declare type ButtonThemesType = typeof ButtonThemes[number];
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare const CHECKBOX_STYLE_PRIMARY = "primary";
|
|
2
|
+
export declare const CHECKBOX_STYLE_CLASSIC = "classic";
|
|
2
3
|
export declare const CHECKBOX_STYLE_DARK = "dark";
|
|
3
4
|
export declare const CHECKBOX_STYLE_BLUE = "blue";
|
|
4
|
-
export declare const CheckboxThemes:
|
|
5
|
+
export declare const CheckboxThemes: readonly ["primary", "classic", "dark", "blue"];
|
|
5
6
|
export declare type CheckboxThemesType = typeof CheckboxThemes[number];
|
|
@@ -6,5 +6,5 @@ export declare const ETIQUETA_STYLE_STATUS_FINALIZADO = "finalizado";
|
|
|
6
6
|
export declare const ETIQUETA_STYLE_STATUS_APROVADO = "aprovado";
|
|
7
7
|
export declare const ETIQUETA_STYLE_STATUS_REPROVADO = "reprovado";
|
|
8
8
|
export declare const ETIQUETA_STYLE_STATUS_CANCELADO = "cancelado";
|
|
9
|
-
export declare const EtiquetasThemes:
|
|
9
|
+
export declare const EtiquetasThemes: readonly ["programas", "em-edicao", "em-revisao", "em-aprovacao", "finalizado", "aprovado", "reprovado", "cancelado"];
|
|
10
10
|
export declare type EtiquetaTypes = typeof EtiquetasThemes[number];
|
|
@@ -2,5 +2,5 @@ export declare const HEADER_GREEN = "primary";
|
|
|
2
2
|
export declare const HEADER_WHITE = "secondary";
|
|
3
3
|
export declare const HEADER_SEMI = "semi";
|
|
4
4
|
export declare const HEADER_ASSEMBLEIA = "assembleia";
|
|
5
|
-
export declare const HEADER_THEMES:
|
|
5
|
+
export declare const HEADER_THEMES: readonly ["primary", "secondary", "semi", "assembleia"];
|
|
6
6
|
export declare type HeaderType = typeof HEADER_THEMES[number];
|
|
@@ -2,5 +2,5 @@ export declare const ICON_BUTTON_STYLE_PRIMARY = "primary";
|
|
|
2
2
|
export declare const ICON_BUTTON_STYLE_SECONDARY = "secondary";
|
|
3
3
|
export declare const ICON_BUTTON_STYLE_DARK = "dark";
|
|
4
4
|
export declare const ICON_BUTTON_STYLE_BLUE = "blue";
|
|
5
|
-
export declare const ICON_BUTTON_THEMES:
|
|
5
|
+
export declare const ICON_BUTTON_THEMES: readonly ["primary", "secondary", "dark", "blue"];
|
|
6
6
|
export declare type IconButtonType = typeof ICON_BUTTON_THEMES[number];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const MODAL_SIZE_SMALL = "small";
|
|
2
2
|
export declare const MODAL_SIZE_LARGE = "large";
|
|
3
3
|
export declare const MODAL_SIZE_EXTRA_LARGE = "extra-large";
|
|
4
|
-
export declare const MODAL_SIZES:
|
|
4
|
+
export declare const MODAL_SIZES: readonly ["small", "large", "extra-large"];
|
|
5
5
|
export declare type ModalSizes = typeof MODAL_SIZES[number];
|
|
@@ -2,12 +2,12 @@ export declare const NOTIFICATION_TOP_LEFT = "top-left";
|
|
|
2
2
|
export declare const NOTIFICATION_TOP_RIGHT = "top-right";
|
|
3
3
|
export declare const NOTIFICATION_BOTTOM_LEFT = "bottom-left";
|
|
4
4
|
export declare const NOTIFICATION_BOTTOM_RIGHT = "bottom-right";
|
|
5
|
-
export declare const NotificationPositions:
|
|
5
|
+
export declare const NotificationPositions: readonly ["top-left", "top-right", "bottom-left", "bottom-right"];
|
|
6
6
|
export declare type NotificationPositionType = typeof NotificationPositions[number];
|
|
7
7
|
export declare const NOTIFICATION_TYPE_PRIMARY = "primary";
|
|
8
8
|
export declare const NOTIFICATION_TYPE_PRIMARY_DARK = "primary-dark";
|
|
9
9
|
export declare const NOTIFICATION_TYPE_PRIMARY_INVERT = "primary-invert";
|
|
10
10
|
export declare const NOTIFICATION_TYPE_ERROR = "error";
|
|
11
11
|
export declare const NOTIFICATION_TYPE_DEFAULT = "default";
|
|
12
|
-
export declare const NotificationTypes:
|
|
12
|
+
export declare const NotificationTypes: readonly ["primary", "primary-dark", "primary-invert", "error", "default"];
|
|
13
13
|
export declare type NotificationTypeType = typeof NotificationTypes[number];
|
|
@@ -2,5 +2,5 @@ export declare const STATUS_PAUTA_BLOQUEADA = 0;
|
|
|
2
2
|
export declare const STATUS_PAUTA_LIBERADA = 1;
|
|
3
3
|
export declare const STATUS_PAUTA_ENCERRADA = 2;
|
|
4
4
|
export declare const getStatusClassName: (status?: number) => "encerrada" | "liberada" | "bloqueada";
|
|
5
|
-
export declare const STATUS_PAUTA:
|
|
5
|
+
export declare const STATUS_PAUTA: readonly [0, 1, 2];
|
|
6
6
|
export declare type PautaStatusType = typeof STATUS_PAUTA[number];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const RADIO_BUTTON_CLASSIC = "classic";
|
|
2
2
|
export declare const RADIO_BUTTON_NEW = "new";
|
|
3
|
-
export declare const RadioButtonThemes:
|
|
3
|
+
export declare const RadioButtonThemes: readonly ["classic", "new"];
|
|
4
4
|
export declare type RadioButtonType = typeof RadioButtonThemes[number];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const SICREDI_LOGO_VERDE = "verde";
|
|
2
2
|
export declare const SICREDI_LOGO_BRANCO = "branco";
|
|
3
|
-
export declare const HeaderThemes:
|
|
3
|
+
export declare const HeaderThemes: readonly ["branco", "verde"];
|
|
4
4
|
export declare type HeaderThemeType = typeof HeaderThemes[number];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const TOAST_TYPE_DEFAULT = "default";
|
|
2
2
|
export declare const TOAST_TYPE_SUCCESS = "success";
|
|
3
3
|
export declare const TOAST_TYPE_ERROR = "error";
|
|
4
|
-
export declare const TOAST_TYPES:
|
|
4
|
+
export declare const TOAST_TYPES: readonly ["default", "success", "error"];
|
|
5
5
|
export declare type ToastTypes = typeof TOAST_TYPES[number];
|
|
@@ -2,5 +2,5 @@ export declare const TOOLTIP_POSITION_TOP = "top";
|
|
|
2
2
|
export declare const TOOLTIP_POSITION_RIGHT = "right";
|
|
3
3
|
export declare const TOOLTIP_POSITION_LEFT = "left";
|
|
4
4
|
export declare const TOOLTIP_POSITION_BOTTOM = "bottom";
|
|
5
|
-
export declare const TOOLTIP_POSITIONS:
|
|
5
|
+
export declare const TOOLTIP_POSITIONS: readonly ["top", "bottom", "left", "right"];
|
|
6
6
|
export declare type TooltipPositionTypes = typeof TOOLTIP_POSITIONS[number];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "plataforma-fundacao-componentes",
|
|
3
|
-
"version": "2.20.
|
|
3
|
+
"version": "2.20.22",
|
|
4
4
|
"description": "Made with create-react-library",
|
|
5
5
|
"author": "Guvidaletti",
|
|
6
6
|
"license": "MIT",
|
|
@@ -67,14 +67,15 @@
|
|
|
67
67
|
"eslint-plugin-react-hooks": "^4.2.0",
|
|
68
68
|
"eslint-plugin-standard": "^4.0.1",
|
|
69
69
|
"gh-pages": "^2.2.0",
|
|
70
|
+
"husky": "^7.0.0",
|
|
70
71
|
"microbundle-crl": "^0.13.10",
|
|
72
|
+
"node-sass-import-once": "^1.2.0",
|
|
71
73
|
"npm-run-all": "^4.1.5",
|
|
72
74
|
"prettier": "^2.0.4",
|
|
73
75
|
"react": "^16.14.0",
|
|
74
76
|
"react-dom": "^16.14.0",
|
|
75
77
|
"react-scripts": "3.4.3",
|
|
76
|
-
"typescript": "^3.7.5"
|
|
77
|
-
"husky": "^7.0.0"
|
|
78
|
+
"typescript": "^3.7.5"
|
|
78
79
|
},
|
|
79
80
|
"files": [
|
|
80
81
|
"dist"
|