plataforma-fundacao-componentes 2.22.25 → 2.22.28

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.
@@ -10,6 +10,8 @@ interface AccordionProps {
10
10
  onChange: (value: boolean) => void;
11
11
  className?: string;
12
12
  children?: React.ReactNode;
13
+ shadow?: boolean;
14
+ animateOpacity?: boolean;
13
15
  }
14
16
  export default function Accordion(props: AccordionProps): JSX.Element;
15
17
  export {};
@@ -5,6 +5,7 @@ declare namespace _default {
5
5
  export default _default;
6
6
  export function Primary(): JSX.Element;
7
7
  export function WithIcon(): JSX.Element;
8
+ export function Shadow(): JSX.Element;
8
9
  export function FigmaExample(): JSX.Element;
9
10
  export function FigmaOnlyOneOpenedExample(): JSX.Element;
10
11
  import Accordion from "./Accordion";
@@ -3,7 +3,7 @@ import { BlobFileTypes } from '../../libraries/BlobFileTypes';
3
3
  import { ButtonThemes } from '../../libraries/ButtonTheme';
4
4
  import { ButtonProps } from '../button/Button';
5
5
  import './ButtonFileUpload.scss';
6
- interface ButtonFileUploadProps {
6
+ export interface ButtonFileUploadProps {
7
7
  label?: string;
8
8
  leftIcon?: React.ReactNode;
9
9
  theme?: ButtonThemes;
@@ -12,6 +12,7 @@ interface ButtonFileUploadProps {
12
12
  disabled?: boolean;
13
13
  value: object | object[] | Blob | Blob[] | File | File[];
14
14
  onChange: (value: File | File[] | Blob | Blob[] | object | object[]) => void;
15
+ onTypeNotAllowed?: () => void;
15
16
  buttonProps?: ButtonProps | object;
16
17
  w100?: boolean;
17
18
  }
@@ -7,4 +7,5 @@ export function Single(): JSX.Element;
7
7
  export function SingleFileTypes(): JSX.Element;
8
8
  export function Multiple(): JSX.Element;
9
9
  export function MultipleW100(): JSX.Element;
10
+ export function NotAllowedEvent(): JSX.Element;
10
11
  import ButtonFileUpload from "./ButtonFileUpload";
package/dist/index.css CHANGED
@@ -306,6 +306,8 @@ h5 {
306
306
  border-bottom: 1px solid #cdd3cd; }
307
307
  .component-accordion.component-accordion-opened .component-accordion-arrow {
308
308
  transform: rotateZ(180deg); }
309
+ .component-accordion.component-accordion-shadow {
310
+ box-shadow: 0 1px 2px 0 rgba(90, 100, 90, 0.3); }
309
311
 
310
312
  @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");
311
313
  @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");
@@ -9692,8 +9694,10 @@ h5 {
9692
9694
  display: flex;
9693
9695
  flex-flow: column; }
9694
9696
  .full-height-container .full-height-container-row-header {
9695
- flex: 0 1 auto; }
9697
+ flex: 0 1 auto;
9698
+ z-index: +2; }
9696
9699
  .full-height-container .full-height-container-row-content {
9700
+ z-index: +1;
9697
9701
  display: flex;
9698
9702
  flex-flow: column;
9699
9703
  flex: 1 1 auto;
@@ -9707,7 +9711,8 @@ h5 {
9707
9711
  padding-left: 12px;
9708
9712
  padding-right: 12px; }
9709
9713
  .full-height-container .full-height-container-row-footer {
9710
- flex: 0 1 auto; }
9714
+ flex: 0 1 auto;
9715
+ z-index: +2; }
9711
9716
 
9712
9717
  @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");
9713
9718
  @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");
package/dist/index.d.ts CHANGED
@@ -111,4 +111,4 @@ export * from './libraries/RadioButtonTheme';
111
111
  export * from './libraries/SicrediLogoThemes';
112
112
  export * from './libraries/Toast';
113
113
  export * from './libraries/Tooltips';
114
- 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, useStorageState, useTimeElapsed, useToastManager, useValidatedState, };
114
+ 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, ModulosTitle as Title, 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, useStorageState, useTimeElapsed, useToastManager, useValidatedState, };
package/dist/index.js CHANGED
@@ -186,9 +186,11 @@ var rootClassName$2 = 'component-accordion';
186
186
  function Accordion(props) {
187
187
  var getProps = function getProps() {
188
188
  var p = _extends({}, props, {
189
- className: getMergedClassNames([rootClassName$2, props.className, props.opened ? rootClassName$2 + "-opened" : ''])
189
+ className: getMergedClassNames([rootClassName$2, props.className, props.opened ? rootClassName$2 + "-opened" : '', props.shadow ? rootClassName$2 + "-shadow" : ''])
190
190
  });
191
191
 
192
+ delete p.animateOpacity;
193
+ delete p.shadow;
192
194
  delete p.opened;
193
195
  delete p.children;
194
196
  delete p.label;
@@ -213,7 +215,8 @@ function Accordion(props) {
213
215
  }, React__default.createElement(ChevronArrowDownIcon, null))), React__default.createElement("div", {
214
216
  className: rootClassName$2 + "-content"
215
217
  }, React__default.createElement(Collapse$1, {
216
- opened: props.opened
218
+ opened: props.opened,
219
+ animateOpacity: props.animateOpacity
217
220
  }, props.children)));
218
221
  }
219
222
 
@@ -1778,7 +1781,8 @@ function ButtonFileUpload(props) {
1778
1781
  }
1779
1782
  },
1780
1783
  disabled: props.disabled,
1781
- leftIcon: props.leftIcon
1784
+ leftIcon: props.leftIcon,
1785
+ w100: props.w100
1782
1786
  }, props.buttonProps);
1783
1787
 
1784
1788
  return p;
@@ -1793,6 +1797,13 @@ function ButtonFileUpload(props) {
1793
1797
  tabIndex: -1,
1794
1798
  onChange: function onChange(evt) {
1795
1799
  var files = evt.target.files || [];
1800
+
1801
+ if (Array.from(files).some(function (file) {
1802
+ return props.allowedFileTypes && props.allowedFileTypes.length && !isAllowedFileType(file.name) && props.onTypeNotAllowed;
1803
+ })) {
1804
+ props.onTypeNotAllowed();
1805
+ }
1806
+
1796
1807
  var filteredFiles = Array.from(files).filter(function (file) {
1797
1808
  return !props.allowedFileTypes || !props.allowedFileTypes.length || isAllowedFileType(file.name);
1798
1809
  });
@@ -12051,6 +12062,7 @@ exports.TableFileNameAndAction = TableFileNameAndAction$1;
12051
12062
  exports.TableWithOverflow = TableWithOverflow$1;
12052
12063
  exports.Tabs = Tabs$1;
12053
12064
  exports.TextEditor = TextEditor;
12065
+ exports.Title = ModulosTitle;
12054
12066
  exports.Toast = Toast;
12055
12067
  exports.ToastManager = ToastManager;
12056
12068
  exports.Tooltip = Tooltip;