plataforma-fundacao-componentes 2.22.24 → 2.22.27

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.
@@ -183,9 +183,11 @@ var rootClassName$2 = 'component-accordion';
183
183
  function Accordion(props) {
184
184
  var getProps = function getProps() {
185
185
  var p = _extends({}, props, {
186
- className: getMergedClassNames([rootClassName$2, props.className, props.opened ? rootClassName$2 + "-opened" : ''])
186
+ className: getMergedClassNames([rootClassName$2, props.className, props.opened ? rootClassName$2 + "-opened" : '', props.shadow ? rootClassName$2 + "-shadow" : ''])
187
187
  });
188
188
 
189
+ delete p.animateOpacity;
190
+ delete p.shadow;
189
191
  delete p.opened;
190
192
  delete p.children;
191
193
  delete p.label;
@@ -210,7 +212,8 @@ function Accordion(props) {
210
212
  }, React.createElement(ChevronArrowDownIcon, null))), React.createElement("div", {
211
213
  className: rootClassName$2 + "-content"
212
214
  }, React.createElement(Collapse$1, {
213
- opened: props.opened
215
+ opened: props.opened,
216
+ animateOpacity: props.animateOpacity
214
217
  }, props.children)));
215
218
  }
216
219
 
@@ -1791,7 +1794,8 @@ function ButtonFileUpload(props) {
1791
1794
  }
1792
1795
  },
1793
1796
  disabled: props.disabled,
1794
- leftIcon: props.leftIcon
1797
+ leftIcon: props.leftIcon,
1798
+ w100: props.w100
1795
1799
  }, props.buttonProps);
1796
1800
 
1797
1801
  return p;
@@ -1806,6 +1810,13 @@ function ButtonFileUpload(props) {
1806
1810
  tabIndex: -1,
1807
1811
  onChange: function onChange(evt) {
1808
1812
  var files = evt.target.files || [];
1813
+
1814
+ if (Array.from(files).some(function (file) {
1815
+ return props.allowedFileTypes && props.allowedFileTypes.length && !isAllowedFileType(file.name) && props.onTypeNotAllowed;
1816
+ })) {
1817
+ props.onTypeNotAllowed();
1818
+ }
1819
+
1809
1820
  var filteredFiles = Array.from(files).filter(function (file) {
1810
1821
  return !props.allowedFileTypes || !props.allowedFileTypes.length || isAllowedFileType(file.name);
1811
1822
  });
@@ -4031,9 +4042,13 @@ var rootClassName$N = 'component-container';
4031
4042
  function Container(props) {
4032
4043
  var getProps = function getProps() {
4033
4044
  var p = _extends({}, props, {
4034
- className: getMergedClassNames([rootClassName$N, props.className, props.fluid ? 'fluid' : '', props.verticalPadding ? 'vertical-padding' : '', props.hasMobileButton ? 'has-mobile-button' : '', props.hasHeader ? 'has-header' : '', props.hasAdvancedHeader ? 'has-advanced-header' : ''])
4045
+ className: getMergedClassNames([rootClassName$N, props.className, props.fluid ? 'fluid' : '', props.verticalPadding ? 'vertical-padding' : '', props.hasMobileButton ? 'has-mobile-button' : '', props.hasHeader ? 'has-header' : '', props.hasAdvancedHeader ? 'has-advanced-header' : '']),
4046
+ style: _extends({}, props.style, {
4047
+ position: props.position
4048
+ })
4035
4049
  });
4036
4050
 
4051
+ delete p.position;
4037
4052
  delete p.fluid;
4038
4053
  delete p.verticalPadding;
4039
4054
  delete p.hasMobileButton;
@@ -11673,6 +11688,26 @@ function useModalManager() {
11673
11688
  }))), openModal, closeModal];
11674
11689
  }
11675
11690
 
11691
+ function useStorageState(storage, key, initialValue) {
11692
+ var _useState = useState(initialValue),
11693
+ value = _useState[0],
11694
+ setValue = _useState[1];
11695
+
11696
+ useEffect(function () {
11697
+ if (!initialValue && storage.getItem(key) && storage.getItem(key) !== 'undefined') {
11698
+ try {
11699
+ setValue(JSON.parse(storage.getItem(key)));
11700
+ } catch (e) {
11701
+ console.error(e);
11702
+ }
11703
+ }
11704
+ }, []);
11705
+ useEffect(function () {
11706
+ storage.setItem(key, JSON.stringify(value));
11707
+ }, [key, storage, value]);
11708
+ return [value, setValue];
11709
+ }
11710
+
11676
11711
  var rootClassName$23 = 'comp-toast-manager';
11677
11712
  var count$1 = 0;
11678
11713
  function useToastManager(props) {
@@ -11970,5 +12005,5 @@ var ModalSizes;
11970
12005
  ModalSizes["ExtraLarge"] = "extra-large";
11971
12006
  })(ModalSizes || (ModalSizes = {}));
11972
12007
 
11973
- export { Accordion, Aconteceu, ActionCard$1 as ActionCard, ActionCardThemes, ActionsColumn, AdvancedSemiHeader, AlertModal, AnimatedLink$1 as AnimatedLink, AssembleiaItem$1 as AssembleiaItem, AssembleiaPauta$1 as AssembleiaPauta, Banner, BannerAssembleia$1 as BannerAssembleia, BannerPesquisaCpfCnpj$1 as BannerPesquisaCpfCnpj, BigBlockButton, BlobFileTypes, BlocoDeNotas, BlocoMinhasAssembleias$1 as BlocoMinhasAssembleias, BottomNavigation$1 as BottomNavigation, BreadCrumb, Button$1 as Button, ButtonFileUpload$1 as ButtonFileUpload, ButtonThemes, Card, CardTypes, Carousel, CarouselPersona$1 as CarouselPersona, CarouselTouchFrendly$1 as CarouselTouchFrendly, Checkbox$1 as Checkbox, CheckboxThemes, Col$1 as Col, Collapse$1 as Collapse, ConfirmModal, Container$1 as Container, DatePicker$1 as DatePicker, DestructiveModal, Doughnut$1 as Doughnut, DoughnutSquare, DropdownItem$1 as DropdownItem, DropdownMenu, EditableVideoItem$1 as EditableVideoItem, ElementPaginator$1 as ElementPaginator, Etapas$1 as Etapas, Etiqueta, EtiquetasStyle, FUNDACAO_LOGO_BRANCO, FUNDACAO_LOGO_VERDE, FileLoader, FileUpload, FooterSicredi$1 as FooterSicredi, FullHeightContainer$1 as FullHeightContainer, FundacaoLogoTheme, HEADER_SEPARATOR_PRIMARY, HEADER_SEPARATOR_SECONDARY, Header$1 as Header, HeaderSearchField, HeaderSeparator, HeaderType, IconButton$1 as IconButton, IconButtonType, IconButtonWithLabel$1 as IconButtonWithLabel, ImageTypes, Information, InformativoAssembleiasComImagem$1 as InformativoAssembleiasComImagem, InformativoAssembleiasComVideo$1 as InformativoAssembleiasComVideo, Input$1 as Input, InputArea$1 as InputArea, ItemDropdownDownload$1 as ItemDropdownDownload, LeftCheckboxWithLabel, Menu$1 as Menu, MenuItem, Modal, ModalManager, ModalSizes, ModulosTitle, MoneyByMonth, MoneyMonthLineChart, NotaEdit, Notification, NotificationPosition, NotificationType, PageSubTitle, PageTitle, Paginator, PreviaVideo$1 as PreviaVideo, ProgressBar, RadioButton$1 as RadioButton, RadioButtonType, Row$1 as Row, STATUS_PAUTA, STATUS_PAUTA_BLOQUEADA, STATUS_PAUTA_ENCERRADA, STATUS_PAUTA_LIBERADA, SearchBlocoDeNotas, Select$1 as Select, SicrediLogoTheme, Switch, Table, TableActions, TableFileNameAndAction$1 as TableFileNameAndAction, TableWithOverflow$1 as TableWithOverflow, Tabs$1 as Tabs, TextEditor, Toast, ToastManager, ToastTypes, Tooltip, TooltipManager, TooltipPosition, TopLoader, TypedTable, VideoItem, VideoModal, VideoPlayer, getStatusClassName, useCallbackedState, useCarouselBehaviour, useControlledTimer, useDraggableContainer, useDropOpened, useModalManager, useProgressiveCount, useScreenSize, useTimeElapsed, useToastManager, useValidatedState };
12008
+ export { Accordion, Aconteceu, ActionCard$1 as ActionCard, ActionCardThemes, ActionsColumn, AdvancedSemiHeader, AlertModal, AnimatedLink$1 as AnimatedLink, AssembleiaItem$1 as AssembleiaItem, AssembleiaPauta$1 as AssembleiaPauta, Banner, BannerAssembleia$1 as BannerAssembleia, BannerPesquisaCpfCnpj$1 as BannerPesquisaCpfCnpj, BigBlockButton, BlobFileTypes, BlocoDeNotas, BlocoMinhasAssembleias$1 as BlocoMinhasAssembleias, BottomNavigation$1 as BottomNavigation, BreadCrumb, Button$1 as Button, ButtonFileUpload$1 as ButtonFileUpload, ButtonThemes, Card, CardTypes, Carousel, CarouselPersona$1 as CarouselPersona, CarouselTouchFrendly$1 as CarouselTouchFrendly, Checkbox$1 as Checkbox, CheckboxThemes, Col$1 as Col, Collapse$1 as Collapse, ConfirmModal, Container$1 as Container, DatePicker$1 as DatePicker, DestructiveModal, Doughnut$1 as Doughnut, DoughnutSquare, DropdownItem$1 as DropdownItem, DropdownMenu, EditableVideoItem$1 as EditableVideoItem, ElementPaginator$1 as ElementPaginator, Etapas$1 as Etapas, Etiqueta, EtiquetasStyle, FUNDACAO_LOGO_BRANCO, FUNDACAO_LOGO_VERDE, FileLoader, FileUpload, FooterSicredi$1 as FooterSicredi, FullHeightContainer$1 as FullHeightContainer, FundacaoLogoTheme, HEADER_SEPARATOR_PRIMARY, HEADER_SEPARATOR_SECONDARY, Header$1 as Header, HeaderSearchField, HeaderSeparator, HeaderType, IconButton$1 as IconButton, IconButtonType, IconButtonWithLabel$1 as IconButtonWithLabel, ImageTypes, Information, InformativoAssembleiasComImagem$1 as InformativoAssembleiasComImagem, InformativoAssembleiasComVideo$1 as InformativoAssembleiasComVideo, Input$1 as Input, InputArea$1 as InputArea, ItemDropdownDownload$1 as ItemDropdownDownload, LeftCheckboxWithLabel, Menu$1 as Menu, MenuItem, Modal, ModalManager, ModalSizes, ModulosTitle, MoneyByMonth, MoneyMonthLineChart, NotaEdit, Notification, NotificationPosition, NotificationType, PageSubTitle, PageTitle, Paginator, PreviaVideo$1 as PreviaVideo, ProgressBar, RadioButton$1 as RadioButton, RadioButtonType, Row$1 as Row, STATUS_PAUTA, STATUS_PAUTA_BLOQUEADA, STATUS_PAUTA_ENCERRADA, STATUS_PAUTA_LIBERADA, SearchBlocoDeNotas, Select$1 as Select, SicrediLogoTheme, Switch, Table, TableActions, TableFileNameAndAction$1 as TableFileNameAndAction, TableWithOverflow$1 as TableWithOverflow, Tabs$1 as Tabs, TextEditor, ModulosTitle as Title, Toast, ToastManager, ToastTypes, Tooltip, TooltipManager, TooltipPosition, TopLoader, TypedTable, VideoItem, VideoModal, VideoPlayer, getStatusClassName, useCallbackedState, useCarouselBehaviour, useControlledTimer, useDraggableContainer, useDropOpened, useModalManager, useProgressiveCount, useScreenSize, useStorageState, useTimeElapsed, useToastManager, useValidatedState };
11974
12009
  //# sourceMappingURL=index.modern.js.map