plataforma-fundacao-componentes 2.22.21 → 2.22.24

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.
@@ -0,0 +1,17 @@
1
+ import React, { ReactElement, ReactNode } from 'react';
2
+ import { ActionCardThemes } from '../../libraries/ActionCardThemes';
3
+ import './ActionCard.scss';
4
+ export interface ActionCardProps {
5
+ text: string;
6
+ theme?: ActionCardThemes;
7
+ element?: JSX.Element | ReactElement | ReactNode;
8
+ }
9
+ declare function ActionCard(props: ActionCardProps): JSX.Element;
10
+ declare namespace ActionCard {
11
+ var defaultProps: {
12
+ theme: ActionCardThemes;
13
+ text: string;
14
+ };
15
+ }
16
+ declare const _default: React.MemoExoticComponent<typeof ActionCard>;
17
+ export default _default;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ declare const _default: {
3
+ title: string;
4
+ };
5
+ export default _default;
6
+ export declare const White: () => JSX.Element;
7
+ export declare const Green: () => JSX.Element;
8
+ export declare const Danger: () => JSX.Element;
9
+ export declare const Dark: () => JSX.Element;
@@ -13,7 +13,10 @@ export function SecondaryWhiteBackground(): JSX.Element;
13
13
  export function SecondaryDisabled(): JSX.Element;
14
14
  export function StyleDefault(): JSX.Element;
15
15
  export function Danger(): JSX.Element;
16
+ export function DangerDarker(): JSX.Element;
17
+ export function DangerDarkerOutline(): JSX.Element;
16
18
  export function DangerDisabled(): JSX.Element;
19
+ export function Black(): JSX.Element;
17
20
  export function FullWidth(): JSX.Element;
18
21
  export function LeftIcon(): JSX.Element;
19
22
  export function LeftIconFullWidth(): JSX.Element;
@@ -1,8 +1,9 @@
1
- declare namespace _default {
2
- export const title: string;
3
- export { Notification as component };
4
- }
1
+ /// <reference types="react" />
2
+ import Notification from './Notification';
3
+ declare const _default: {
4
+ title: string;
5
+ component: typeof Notification;
6
+ };
5
7
  export default _default;
6
- export function NumberCount(): JSX.Element;
7
- export function ExclamationPoint(): JSX.Element;
8
- import Notification from "./Notification";
8
+ export declare const NumberCount: () => JSX.Element;
9
+ export declare const ExclamationPoint: () => JSX.Element;
@@ -10,6 +10,7 @@ export interface TableFileNameAndActionProps {
10
10
  error?: boolean;
11
11
  disabled?: boolean;
12
12
  }[];
13
+ white?: boolean;
13
14
  rightIcon?: React.ReactNode;
14
15
  onRightIconClick?: (event: number) => void;
15
16
  disabledRightIcon?: boolean;
@@ -4,5 +4,6 @@ declare namespace _default {
4
4
  }
5
5
  export default _default;
6
6
  export function Primary(): JSX.Element;
7
+ export function White(): JSX.Element;
7
8
  export function WithLoader(): JSX.Element;
8
9
  import TableFileNameAndAction from "./TableFileNameAndAction";
package/dist/index.css CHANGED
@@ -963,6 +963,167 @@ h5 {
963
963
  .scroll-white::-webkit-scrollbar-thumb:hover {
964
964
  background-color: #bfc7bf; }
965
965
 
966
+ .action-card {
967
+ position: relative;
968
+ border-radius: 8px;
969
+ padding: 16px 24px;
970
+ width: 100%; }
971
+ .action-card .action {
972
+ margin-top: 12px; }
973
+ .action-card .bar {
974
+ position: absolute;
975
+ left: 0;
976
+ top: 0;
977
+ width: 8px;
978
+ border-top-left-radius: 8px;
979
+ border-bottom-left-radius: 8px;
980
+ height: 100%; }
981
+ .action-card.primary {
982
+ background-color: #fefefe;
983
+ color: #121212; }
984
+ .action-card.primary .bar {
985
+ background-color: #3fa110; }
986
+ .action-card.secondary {
987
+ background-color: #3fa110;
988
+ color: #fefefe; }
989
+ .action-card.secondary .bar {
990
+ background-color: #33820d; }
991
+ .action-card.danger {
992
+ background-color: #ffb4b4;
993
+ color: #803230; }
994
+ .action-card.danger .bar {
995
+ background-color: #e60000; }
996
+ .action-card.darker {
997
+ background-color: #323c32;
998
+ color: #fefefe; }
999
+ .action-card.darker .bar {
1000
+ background-color: #121212; }
1001
+
1002
+ @import url("https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
1003
+ @import url("https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200;0,300;0,400;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,600;1,700;1,800;1,900&display=swap");
1004
+ :export {
1005
+ white: #fefefe;
1006
+ darkenWhite: #efefef;
1007
+ black: #121212;
1008
+ transparent: rgba(0, 0, 0, 0);
1009
+ primary: #3fa110;
1010
+ primaryDark: #33820d;
1011
+ primaryLight: #d7e6c8;
1012
+ secondaryDarker: #323c32;
1013
+ secondaryDark: #5a645a;
1014
+ secondary: #828a82;
1015
+ secondaryLight: #cdd3cd;
1016
+ secondaryLighter: #f8f9f7;
1017
+ danger: #e60000;
1018
+ dangerLight: #ffb4b4;
1019
+ dangerDark: #ab4745;
1020
+ warning: #ffcd00;
1021
+ warningLight: #ffeb98;
1022
+ warningDark: #765f00; }
1023
+
1024
+ :root {
1025
+ --rowPadding: 0;
1026
+ --colPadding: 8px; }
1027
+
1028
+ :export {
1029
+ widthXs: 575.98px;
1030
+ widthSm: 767.98px;
1031
+ widthMd: 991.98px;
1032
+ widthLg: 1199.98px; }
1033
+
1034
+ body.sb-show-main.sb-main-padded {
1035
+ padding: 15px; }
1036
+
1037
+ *.nunito {
1038
+ font-family: "Nunito", sans-serif; }
1039
+
1040
+ *:not(.nunito) {
1041
+ font-family: "Exo 2", sans-serif; }
1042
+
1043
+ .document-grabbing {
1044
+ cursor: -webkit-grabbing !important;
1045
+ cursor: grabbing !important; }
1046
+
1047
+ h1 {
1048
+ font-size: 36px;
1049
+ font-weight: 600;
1050
+ margin: 0; }
1051
+
1052
+ h2 {
1053
+ font-size: 32px;
1054
+ font-weight: 500;
1055
+ margin: 0; }
1056
+
1057
+ h3 {
1058
+ font-size: 24px;
1059
+ font-weight: 500;
1060
+ margin: 0; }
1061
+
1062
+ h4 {
1063
+ font-size: 18px;
1064
+ font-weight: 500;
1065
+ margin: 0; }
1066
+
1067
+ h5 {
1068
+ font-family: "Nunito", sans-serif;
1069
+ font-size: 24px;
1070
+ font-weight: 400;
1071
+ margin: 0; }
1072
+
1073
+ .fade-enter {
1074
+ transition: opacity 0.2s ease;
1075
+ position: absolute;
1076
+ opacity: 0; }
1077
+
1078
+ .fade-enter-active {
1079
+ position: absolute;
1080
+ opacity: 1; }
1081
+
1082
+ .fade-exit {
1083
+ transition: opacity 0.15s ease;
1084
+ position: absolute;
1085
+ opacity: 1; }
1086
+
1087
+ .fade-exit-active {
1088
+ position: absolute;
1089
+ opacity: 0; }
1090
+
1091
+ .fade-exit-done {
1092
+ position: absolute;
1093
+ opacity: 0; }
1094
+
1095
+ * {
1096
+ box-sizing: border-box; }
1097
+ *::-webkit-scrollbar-track {
1098
+ background-color: #f8f9f7;
1099
+ border-radius: 20px; }
1100
+ *::-webkit-scrollbar {
1101
+ width: 12px;
1102
+ height: 12px; }
1103
+ *::-webkit-scrollbar-thumb {
1104
+ -webkit-transition: all 0.3s ease;
1105
+ transition: all 0.3s ease;
1106
+ border-radius: 10px;
1107
+ background-color: #cdd3cd;
1108
+ border-width: 3px;
1109
+ border-style: solid;
1110
+ border-color: #f8f9f7; }
1111
+ *::-webkit-scrollbar-thumb:hover {
1112
+ border-width: 2px;
1113
+ background-color: #bfc7bf; }
1114
+ *::-webkit-scrollbar-button {
1115
+ display: none; }
1116
+
1117
+ .scroll-white::-webkit-scrollbar-track {
1118
+ background-color: #fefefe;
1119
+ border-radius: 20px; }
1120
+
1121
+ .scroll-white::-webkit-scrollbar-thumb {
1122
+ background-color: #cdd3cd;
1123
+ border-color: #fefefe; }
1124
+ .scroll-white::-webkit-scrollbar-thumb:hover {
1125
+ background-color: #bfc7bf; }
1126
+
966
1127
  @media screen and (max-width: 575.98px) {
967
1128
  .component-advanced-semi-header,
968
1129
  .component-advanced-semi-header-semi-clear,
@@ -1624,6 +1785,20 @@ h5 {
1624
1785
  background-color: #368a0e;
1625
1786
  transform: scale(0.95); }
1626
1787
 
1788
+ .component-button:not(:disabled).component-button-primary-dark {
1789
+ background-color: #33820d;
1790
+ border-color: #33820d;
1791
+ color: #fefefe; }
1792
+ .component-button:not(:disabled).component-button-primary-dark:focus {
1793
+ border-color: #33820d; }
1794
+ .component-button:not(:disabled).component-button-primary-dark:hover {
1795
+ border-color: #2a6b0b;
1796
+ background-color: #2a6b0b; }
1797
+ .component-button:not(:disabled).component-button-primary-dark:active {
1798
+ border-color: #2a6b0b;
1799
+ background-color: #2a6b0b;
1800
+ transform: scale(0.95); }
1801
+
1627
1802
  .component-button:not(:disabled).component-button-primary-light {
1628
1803
  background-color: #d7e6c8;
1629
1804
  border-color: #d7e6c8;
@@ -1667,6 +1842,27 @@ h5 {
1667
1842
  background-color: #cd0000;
1668
1843
  transform: scale(0.95); }
1669
1844
 
1845
+ .component-button:not(:disabled).component-button-danger-darker {
1846
+ background-color: #803230;
1847
+ border-color: #803230;
1848
+ color: #fefefe; }
1849
+ .component-button:not(:disabled).component-button-danger-darker:focus {
1850
+ border-color: #803230; }
1851
+ .component-button:not(:disabled).component-button-danger-darker:hover {
1852
+ border-color: #6d2b29;
1853
+ background-color: #6d2b29; }
1854
+ .component-button:not(:disabled).component-button-danger-darker:active {
1855
+ border-color: #6d2b29;
1856
+ background-color: #6d2b29;
1857
+ transform: scale(0.95); }
1858
+
1859
+ .component-button:not(:disabled).component-button-danger-darker-outline {
1860
+ background-color: rgba(0, 0, 0, 0);
1861
+ border-color: #803230;
1862
+ color: #803230; }
1863
+ .component-button:not(:disabled).component-button-danger-darker-outline:active {
1864
+ transform: scale(0.95); }
1865
+
1670
1866
  .component-button:not(:disabled).component-button-default {
1671
1867
  background-color: rgba(0, 0, 0, 0);
1672
1868
  border-color: rgba(0, 0, 0, 0);
@@ -1678,6 +1874,13 @@ h5 {
1678
1874
  .component-button:not(:disabled).component-button-default:active {
1679
1875
  transform: scale(0.95); }
1680
1876
 
1877
+ .component-button:not(:disabled).component-button-black {
1878
+ background-color: #121212;
1879
+ border-color: #121212;
1880
+ color: #fefefe; }
1881
+ .component-button:not(:disabled).component-button-black:active {
1882
+ transform: scale(0.95); }
1883
+
1681
1884
  .component-button:not(:disabled).component-button-default-primary {
1682
1885
  position: relative;
1683
1886
  background-color: rgba(0, 0, 0, 0);
@@ -7411,9 +7614,6 @@ h5 {
7411
7614
  align-items: center;
7412
7615
  justify-content: center;
7413
7616
  transition: transform 0.3s ease, opacity 0.3s ease; }
7414
- .component-date-picker-clear-button svg {
7415
- max-height: 0.72em;
7416
- max-width: 0.72em; }
7417
7617
 
7418
7618
  @import url("https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
7419
7619
  @import url("https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200;0,300;0,400;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,600;1,700;1,800;1,900&display=swap");
@@ -15098,15 +15298,31 @@ h5 {
15098
15298
  display: flex;
15099
15299
  align-items: center;
15100
15300
  justify-content: space-between;
15101
- padding: 12px 8px;
15301
+ padding: 12px;
15102
15302
  color: #323c32;
15103
15303
  font-size: 16px;
15104
15304
  word-break: break-all;
15105
- transition: color 0.3s ease; }
15305
+ transition: color 0.3s ease;
15306
+ position: relative; }
15307
+ .component-table-file-name-and-action .component-table-file-name-and-action-file.white {
15308
+ background-color: #fefefe; }
15309
+ .component-table-file-name-and-action .component-table-file-name-and-action-file:first-child {
15310
+ border-top-left-radius: 8px;
15311
+ border-top-right-radius: 8px; }
15312
+ .component-table-file-name-and-action .component-table-file-name-and-action-file:last-child {
15313
+ border-bottom-left-radius: 8px;
15314
+ border-bottom-right-radius: 8px; }
15106
15315
  .component-table-file-name-and-action .component-table-file-name-and-action-file span {
15107
- padding-right: 8px; }
15108
- .component-table-file-name-and-action .component-table-file-name-and-action-file:not(:last-child) {
15109
- border-bottom: 1px solid #cdd3cd; }
15316
+ padding-right: 8px;
15317
+ padding-bottom: 3px; }
15318
+ .component-table-file-name-and-action .component-table-file-name-and-action-file:not(:last-child)::after {
15319
+ content: '';
15320
+ position: absolute;
15321
+ left: 8px;
15322
+ bottom: 0;
15323
+ width: calc(100% - 16px);
15324
+ height: 1px;
15325
+ background-color: #cdd3cd; }
15110
15326
  .component-table-file-name-and-action .component-table-file-name-and-action-file.error * {
15111
15327
  color: #e60000; }
15112
15328
  .component-table-file-name-and-action .component-table-file-name-and-action-file.disabled * {
package/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import Accordion from './components/accordion/Accordion';
2
2
  import Aconteceu from './components/aconteceu/Aconteceu';
3
+ import ActionCard from './components/actionCard/ActionCard';
3
4
  import AdvancedSemiHeader from './components/advancedSemiHeader/AdvancedSemiHeader';
4
5
  import AnimatedLink from './components/animatedLink/AnimatedLink';
5
6
  import AssembleiaItem from './components/assembleiaItem/AssembleiaItem';
@@ -92,6 +93,7 @@ import useTimeElapsed from './hooks/useTimeElapsed/useTimeElapsed';
92
93
  import useToastManager from './hooks/useToastManager/useToastManager';
93
94
  import useValidatedState from './hooks/useValidatedState/useValidatedState';
94
95
  export * from './components/modal/ModalTypes';
96
+ export * from './libraries/ActionCardThemes';
95
97
  export * from './libraries/BlobFileTypes';
96
98
  export * from './libraries/ButtonTheme';
97
99
  export * from './libraries/CardThemes';
@@ -108,4 +110,4 @@ export * from './libraries/RadioButtonTheme';
108
110
  export * from './libraries/SicrediLogoThemes';
109
111
  export * from './libraries/Toast';
110
112
  export * from './libraries/Tooltips';
111
- export { Accordion, AdvancedSemiHeader, AssembleiaItem, AssembleiaPauta, Aconteceu, AnimatedLink, Banner, BannerAssembleia, BannerPesquisaCpfCnpj, BigBlockButton, BlocoDeNotas, BreadCrumb, Button, ButtonFileUpload, BlocoMinhasAssembleias, BottomNavigation, Card, Carousel, CarouselPersona, CarouselTouchFrendly, Checkbox, Col, Collapse, Container, DatePicker, Doughnut, DoughnutSquare, DropdownItem, DropdownMenu, EditableVideoItem, ElementPaginator, Etapas, Etiqueta, FileLoader, FileUpload, FooterSicredi, FullHeightContainer, Header, HeaderSeparator, HeaderSearchField, IconButton, IconButtonWithLabel, Information, Input, InputArea, ItemDropdownDownload, InformativoAssembleiasComImagem, InformativoAssembleiasComVideo, Menu, MenuItem, Modal, ModalManager, ModulosTitle, MoneyByMonth, MoneyMonthLineChart, NotaEdit, Notification, PageSubTitle, PageTitle, Paginator, PreviaVideo, ProgressBar, RadioButton, Row, SearchBlocoDeNotas, Select, Switch, Table, TypedTable, TableFileNameAndAction, TableActions, TableWithOverflow, TextEditor, LeftCheckboxWithLabel, ActionsColumn, Tabs, Toast, ToastManager, Tooltip, TooltipManager, TopLoader, VideoItem, VideoPlayer, VideoModal, useCallbackedState, useCarouselBehaviour, useControlledTimer, useDraggableContainer, useDropOpened, useModalManager, useProgressiveCount, useScreenSize, useTimeElapsed, useToastManager, useValidatedState };
113
+ export { Accordion, ActionCard, AdvancedSemiHeader, AssembleiaItem, AssembleiaPauta, Aconteceu, AnimatedLink, Banner, BannerAssembleia, BannerPesquisaCpfCnpj, BigBlockButton, BlocoDeNotas, BreadCrumb, Button, ButtonFileUpload, BlocoMinhasAssembleias, BottomNavigation, Card, Carousel, CarouselPersona, CarouselTouchFrendly, Checkbox, Col, Collapse, Container, DatePicker, Doughnut, DoughnutSquare, DropdownItem, DropdownMenu, EditableVideoItem, ElementPaginator, Etapas, Etiqueta, FileLoader, FileUpload, FooterSicredi, FullHeightContainer, Header, HeaderSeparator, HeaderSearchField, IconButton, IconButtonWithLabel, Information, Input, InputArea, ItemDropdownDownload, InformativoAssembleiasComImagem, InformativoAssembleiasComVideo, Menu, MenuItem, Modal, ModalManager, ModulosTitle, MoneyByMonth, MoneyMonthLineChart, NotaEdit, Notification, PageSubTitle, PageTitle, Paginator, PreviaVideo, ProgressBar, RadioButton, Row, SearchBlocoDeNotas, Select, Switch, Table, TypedTable, TableFileNameAndAction, TableActions, TableWithOverflow, TextEditor, LeftCheckboxWithLabel, ActionsColumn, Tabs, Toast, ToastManager, Tooltip, TooltipManager, TopLoader, VideoItem, VideoPlayer, VideoModal, useCallbackedState, useCarouselBehaviour, useControlledTimer, useDraggableContainer, useDropOpened, useModalManager, useProgressiveCount, useScreenSize, useTimeElapsed, useToastManager, useValidatedState, };