plataforma-fundacao-componentes 2.23.17 → 2.23.19
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/buttonFileUpload/ButtonFileUpload.d.ts +1 -1
- package/dist/components/chip/Chip.d.ts +11 -0
- package/dist/components/chip/Chip.stories.d.ts +10 -0
- package/dist/index.css +67 -4
- package/dist/index.d.ts +2 -1
- package/dist/index.js +27 -11
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +27 -12
- package/dist/index.modern.js.map +1 -1
- package/package.json +13 -13
|
@@ -10,7 +10,7 @@ export interface ButtonFileUploadProps {
|
|
|
10
10
|
allowedFileTypes?: Array<BlobFileTypes>;
|
|
11
11
|
multiple?: boolean;
|
|
12
12
|
disabled?: boolean;
|
|
13
|
-
value
|
|
13
|
+
value?: null | object | object[] | Blob | Blob[] | File | File[];
|
|
14
14
|
onChange: (value: File | File[] | Blob | Blob[] | object | object[]) => void;
|
|
15
15
|
onTypeNotAllowed?: () => void;
|
|
16
16
|
buttonProps?: ButtonProps | object;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './Chip.scss';
|
|
3
|
+
export interface ChipProps {
|
|
4
|
+
label?: string;
|
|
5
|
+
w100?: boolean;
|
|
6
|
+
allClickable?: boolean;
|
|
7
|
+
onClick: () => void;
|
|
8
|
+
}
|
|
9
|
+
declare function Chip(props: ChipProps): JSX.Element;
|
|
10
|
+
declare const _default: React.MemoExoticComponent<typeof Chip>;
|
|
11
|
+
export default _default;
|
package/dist/index.css
CHANGED
|
@@ -7351,8 +7351,8 @@ header.component-header {
|
|
|
7351
7351
|
justify-content: flex-end;
|
|
7352
7352
|
padding: 24px;
|
|
7353
7353
|
-webkit-user-select: none;
|
|
7354
|
-
|
|
7355
|
-
|
|
7354
|
+
-moz-user-select: none;
|
|
7355
|
+
user-select: none;
|
|
7356
7356
|
background-color: black;
|
|
7357
7357
|
transition: min-height 0.3s ease, height 0.3s ease; }
|
|
7358
7358
|
.previa-video:hover .previa-video-img {
|
|
@@ -7394,8 +7394,7 @@ header.component-header {
|
|
|
7394
7394
|
top: 0;
|
|
7395
7395
|
left: 0;
|
|
7396
7396
|
position: absolute;
|
|
7397
|
-
display: flex;
|
|
7398
|
-
opacity: 0; }
|
|
7397
|
+
display: flex; }
|
|
7399
7398
|
.previa-video .previa-video-video iframe {
|
|
7400
7399
|
width: 100%;
|
|
7401
7400
|
height: 100%; }
|
|
@@ -10218,3 +10217,67 @@ nav.component-tabs {
|
|
|
10218
10217
|
transition: transform 0.3s ease; }
|
|
10219
10218
|
.qrcode.button:active {
|
|
10220
10219
|
transform: scale(0.95); }
|
|
10220
|
+
|
|
10221
|
+
:export {
|
|
10222
|
+
widthXs: 575.98px;
|
|
10223
|
+
widthSm: 767.98px;
|
|
10224
|
+
widthMd: 991.98px;
|
|
10225
|
+
widthLg: 1199.98px; }
|
|
10226
|
+
|
|
10227
|
+
:export {
|
|
10228
|
+
white: #fefefe;
|
|
10229
|
+
darkenWhite: #efefef;
|
|
10230
|
+
black: #121212;
|
|
10231
|
+
transparent: rgba(0, 0, 0, 0);
|
|
10232
|
+
primary: #3fa110;
|
|
10233
|
+
primaryDark: #33820d;
|
|
10234
|
+
primaryLight: #d7e6c8;
|
|
10235
|
+
secondaryDarker: #323c32;
|
|
10236
|
+
secondaryDark: #5a645a;
|
|
10237
|
+
blueDarker: #2b517b;
|
|
10238
|
+
secondary: #828a82;
|
|
10239
|
+
secondaryLight: #cdd3cd;
|
|
10240
|
+
secondaryLighter: #f8f9f7;
|
|
10241
|
+
danger: #e60000;
|
|
10242
|
+
dangerLight: #ffb4b4;
|
|
10243
|
+
dangerDark: #ab4745;
|
|
10244
|
+
warning: #ffcd00;
|
|
10245
|
+
warningLight: #ffeb98;
|
|
10246
|
+
warningDark: #765f00; }
|
|
10247
|
+
|
|
10248
|
+
.component-chip {
|
|
10249
|
+
font-size: 14px;
|
|
10250
|
+
-webkit-user-select: none;
|
|
10251
|
+
-moz-user-select: none;
|
|
10252
|
+
user-select: none;
|
|
10253
|
+
display: flex;
|
|
10254
|
+
align-items: center;
|
|
10255
|
+
justify-content: space-between;
|
|
10256
|
+
border-radius: 200px;
|
|
10257
|
+
border: 1px solid #3fa110;
|
|
10258
|
+
color: #3fa110;
|
|
10259
|
+
background-color: rgba(0, 0, 0, 0);
|
|
10260
|
+
font-weight: 600; }
|
|
10261
|
+
.component-chip span {
|
|
10262
|
+
max-width: calc(100% - 24px);
|
|
10263
|
+
padding-left: 4px;
|
|
10264
|
+
text-overflow: ellipsis;
|
|
10265
|
+
overflow: hidden; }
|
|
10266
|
+
.component-chip.w100 {
|
|
10267
|
+
width: 100%; }
|
|
10268
|
+
.component-chip.all-clickable,
|
|
10269
|
+
.component-chip .component-chip-button {
|
|
10270
|
+
transform: scale(1);
|
|
10271
|
+
transition: transform 0.3s ease;
|
|
10272
|
+
cursor: pointer; }
|
|
10273
|
+
.component-chip.all-clickable:active,
|
|
10274
|
+
.component-chip .component-chip-button:active {
|
|
10275
|
+
transform: scale(0.95); }
|
|
10276
|
+
.component-chip .component-chip-button {
|
|
10277
|
+
display: flex;
|
|
10278
|
+
align-items: center;
|
|
10279
|
+
justify-content: center;
|
|
10280
|
+
padding: 2px; }
|
|
10281
|
+
.component-chip .component-chip-button svg {
|
|
10282
|
+
width: 20px;
|
|
10283
|
+
height: 20px; }
|
package/dist/index.d.ts
CHANGED
|
@@ -207,6 +207,7 @@ import useStorageState from './hooks/useStorageState/useStorageState';
|
|
|
207
207
|
import useTimeElapsed from './hooks/useTimeElapsed/useTimeElapsed';
|
|
208
208
|
import useToastManager from './hooks/useToastManager/useToastManager';
|
|
209
209
|
import useValidatedState from './hooks/useValidatedState/useValidatedState';
|
|
210
|
+
import Chip from './components/chip/Chip';
|
|
210
211
|
export * from './components/modal/ModalTypes';
|
|
211
212
|
export * from './libraries/ActionCardThemes';
|
|
212
213
|
export * from './libraries/BlobFileTypes';
|
|
@@ -229,4 +230,4 @@ export { Accordion, ActionCard, AdvancedSemiHeader, AssembleiaItem, AssembleiaPa
|
|
|
229
230
|
/**
|
|
230
231
|
* @deprecated
|
|
231
232
|
*/
|
|
232
|
-
Title as ModulosTitle, MoneyByMonth, MoneyMonthLineChart, NotaEdit, Notification, HourEvents, Calendar, CalendarEvent, FloatingPanel, InlineMonthPicker, ScrollArrowOverflow, PageSubTitle, PageTitle, Paginator, PreviaVideo, ProgressBar, RadioButton, QRCode, 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, useHTMLShare, useDropOpened, useModalManager, useProgressiveCount, useScreenSize, useStorageState, useTimeElapsed, useToastManager, useValidatedState, AconteceuIcon, ChevronArrowRightIcon, FontIcon, PaymentIcon, AddCircleIcon, CircleArrowLeft, CopyIcon, QRCodeIcon, PrintIcon, FormacaoIcon, PercentLoaderIcon, AddIcon, AddAssemblyIcon, CircleArrowRight, FundacaoLogo, PieChartIcon, AlignCenterIcon, ClockIcon, CalendarCheckIcon, DevicePlusIcon, NotebookIcon, AgencyIcon, FundoSocialIcon, PlayIcon, AlignJustifyIcon, CloseIcon, GlobeIcon, QRCodeWhatsapp, AlignLeftIcon, CloudDownloadIcon, GraduationIcon, RedoIcon, AlignRightIcon, CloudUploadIcon, HamburgerIcon, RefreshIcon, ArrowLeftIcon, ComitesIcon, HandUpIcon, SearchIcon, ArrowRightIcon, ComunidadeIcon, HomeIcon, SettingsIcon, AssembleiasIcon, CreditIcon, InformationIcon, SicrediLogo, ATMIcon, CrescerIcon, InvestimentIcon, PhonePlusIcon, SquaresIcon, BackOfficeIcon, CrescerLogo, ItalicIcon, SustentabilidadeIcon, BarChartIcon, DownloadIcon, LinkIcon, ThreeDotsLoader, BeeIcon, DraggableIcon, LinksUteisIcon, ThumbsUpIcon, BigPlayIcon, EditIcon, ListDotIcon, TimesCircleIcon, BoldIcon, EvidenciasIcon, ListIcon, TransferenciaIcon, CalendarIcon, ExclamationIcon, LoaderIcon, TrashIcon, CardsIcon, ExitIconArrowLeft, LocalIcon, TrianguloInferior, CataventoVerde, ExitIconArrowRight, LockIcon, TwoFileIcon, CheckCircleIcon, EyeIcon, MessageIcon, UnderlineIcon, CheckIcon, FilePlusIcon, MoneyFileIcon, UndoIcon, ChequeIcon, FilesIcon, NavigatorWithMouse, UserIcon, ChevronArrowDownIcon, FilterIcon, OptionsIcon, WebsiteIcon, ChevronArrowLeftIcon, FontColorIcon, ParticipantesIcon, };
|
|
233
|
+
Title as ModulosTitle, MoneyByMonth, MoneyMonthLineChart, NotaEdit, Notification, HourEvents, Calendar, CalendarEvent, FloatingPanel, InlineMonthPicker, ScrollArrowOverflow, PageSubTitle, PageTitle, Paginator, PreviaVideo, ProgressBar, RadioButton, QRCode, 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, useHTMLShare, useDropOpened, useModalManager, useProgressiveCount, useScreenSize, useStorageState, useTimeElapsed, useToastManager, useValidatedState, AconteceuIcon, ChevronArrowRightIcon, FontIcon, PaymentIcon, AddCircleIcon, CircleArrowLeft, CopyIcon, QRCodeIcon, PrintIcon, FormacaoIcon, PercentLoaderIcon, AddIcon, AddAssemblyIcon, CircleArrowRight, FundacaoLogo, PieChartIcon, AlignCenterIcon, ClockIcon, CalendarCheckIcon, DevicePlusIcon, NotebookIcon, AgencyIcon, FundoSocialIcon, PlayIcon, AlignJustifyIcon, CloseIcon, GlobeIcon, QRCodeWhatsapp, AlignLeftIcon, CloudDownloadIcon, GraduationIcon, RedoIcon, AlignRightIcon, CloudUploadIcon, HamburgerIcon, RefreshIcon, ArrowLeftIcon, ComitesIcon, HandUpIcon, SearchIcon, ArrowRightIcon, ComunidadeIcon, HomeIcon, SettingsIcon, AssembleiasIcon, CreditIcon, InformationIcon, SicrediLogo, ATMIcon, CrescerIcon, InvestimentIcon, PhonePlusIcon, SquaresIcon, BackOfficeIcon, CrescerLogo, ItalicIcon, SustentabilidadeIcon, BarChartIcon, Chip, DownloadIcon, LinkIcon, ThreeDotsLoader, BeeIcon, DraggableIcon, LinksUteisIcon, ThumbsUpIcon, BigPlayIcon, EditIcon, ListDotIcon, TimesCircleIcon, BoldIcon, EvidenciasIcon, ListIcon, TransferenciaIcon, CalendarIcon, ExclamationIcon, LoaderIcon, TrashIcon, CardsIcon, ExitIconArrowLeft, LocalIcon, TrianguloInferior, CataventoVerde, ExitIconArrowRight, LockIcon, TwoFileIcon, CheckCircleIcon, EyeIcon, MessageIcon, UnderlineIcon, CheckIcon, FilePlusIcon, MoneyFileIcon, UndoIcon, ChequeIcon, FilesIcon, NavigatorWithMouse, UserIcon, ChevronArrowDownIcon, FilterIcon, OptionsIcon, WebsiteIcon, ChevronArrowLeftIcon, FontColorIcon, ParticipantesIcon, };
|
package/dist/index.js
CHANGED
|
@@ -10631,7 +10631,6 @@ function PreviaVideo(props) {
|
|
|
10631
10631
|
}, props.label), React__default.createElement(reactTransitionGroup.CSSTransition, {
|
|
10632
10632
|
"in": clicou,
|
|
10633
10633
|
timeout: 300,
|
|
10634
|
-
mountOnEnter: true,
|
|
10635
10634
|
unmountOnExit: true,
|
|
10636
10635
|
classNames: 'video',
|
|
10637
10636
|
onExiting: function onExiting() {
|
|
@@ -40467,8 +40466,7 @@ function useModalManager() {
|
|
|
40467
40466
|
document.removeEventListener('keydown', escapeCall);
|
|
40468
40467
|
};
|
|
40469
40468
|
}, []);
|
|
40470
|
-
|
|
40471
|
-
var openModal = function openModal(component, modalProps) {
|
|
40469
|
+
var openModal = React.useCallback(function (component, modalProps) {
|
|
40472
40470
|
var modalKey = modalProps.modalKey ? modalProps.modalKey : getUniqueKey();
|
|
40473
40471
|
var arr = refModals.current.slice();
|
|
40474
40472
|
|
|
@@ -40490,9 +40488,8 @@ function useModalManager() {
|
|
|
40490
40488
|
setArrayOfModal(arr);
|
|
40491
40489
|
hackFocus$1();
|
|
40492
40490
|
return modalKey;
|
|
40493
|
-
};
|
|
40494
|
-
|
|
40495
|
-
var closeModal = function closeModal(modalKey) {
|
|
40491
|
+
}, []);
|
|
40492
|
+
var closeModal = React.useCallback(function (modalKey) {
|
|
40496
40493
|
if (modalKey) {
|
|
40497
40494
|
closeModalByKey(modalKey);
|
|
40498
40495
|
} else if (refModals.current.length) {
|
|
@@ -40500,8 +40497,7 @@ function useModalManager() {
|
|
|
40500
40497
|
|
|
40501
40498
|
closeModalByKey((_refModals$current = refModals.current[refModals.current.length - 1]) === null || _refModals$current === void 0 ? void 0 : (_refModals$current$pr = _refModals$current.props) === null || _refModals$current$pr === void 0 ? void 0 : _refModals$current$pr.modalKey);
|
|
40502
40499
|
}
|
|
40503
|
-
};
|
|
40504
|
-
|
|
40500
|
+
}, []);
|
|
40505
40501
|
return [React__default.createElement(React__default.Fragment, {
|
|
40506
40502
|
key: 1
|
|
40507
40503
|
}, React__default.createElement(reactTransitionGroup.TransitionGroup, {
|
|
@@ -40574,7 +40570,7 @@ function useToastManager(props) {
|
|
|
40574
40570
|
setArrayOfToast(arr);
|
|
40575
40571
|
};
|
|
40576
40572
|
|
|
40577
|
-
var showToast = function
|
|
40573
|
+
var showToast = React.useCallback(function (toast) {
|
|
40578
40574
|
var id = "toaster-" + count$1;
|
|
40579
40575
|
var arr = toastsRef.current.slice();
|
|
40580
40576
|
var obj = {};
|
|
@@ -40594,8 +40590,7 @@ function useToastManager(props) {
|
|
|
40594
40590
|
setArrayOfToast(arr);
|
|
40595
40591
|
count$1++;
|
|
40596
40592
|
}
|
|
40597
|
-
};
|
|
40598
|
-
|
|
40593
|
+
}, [max]);
|
|
40599
40594
|
var clearToast = React.useCallback(function () {
|
|
40600
40595
|
setArrayOfToast([]);
|
|
40601
40596
|
}, []);
|
|
@@ -40689,6 +40684,26 @@ function useValidatedState(validation, initialValue) {
|
|
|
40689
40684
|
return [value, setValue, validation(value)];
|
|
40690
40685
|
}
|
|
40691
40686
|
|
|
40687
|
+
var rootClassName$3b = 'component-chip';
|
|
40688
|
+
|
|
40689
|
+
function Chip(props) {
|
|
40690
|
+
return React__default.createElement("div", {
|
|
40691
|
+
className: useMergedClassNames([rootClassName$3b, props.w100 ? 'w100' : '', props.allClickable ? 'all-clickable' : '']),
|
|
40692
|
+
onClick: function onClick() {
|
|
40693
|
+
if (props.allClickable && typeof props.onClick === 'function') {
|
|
40694
|
+
props.onClick();
|
|
40695
|
+
}
|
|
40696
|
+
}
|
|
40697
|
+
}, React__default.createElement("span", {
|
|
40698
|
+
className: 'nunito'
|
|
40699
|
+
}, props.label), React__default.createElement("div", {
|
|
40700
|
+
className: rootClassName$3b + "-button",
|
|
40701
|
+
onClick: props.onClick
|
|
40702
|
+
}, React__default.createElement(TimesCircleIcon, null)));
|
|
40703
|
+
}
|
|
40704
|
+
|
|
40705
|
+
var Chip$1 = React.memo(Chip);
|
|
40706
|
+
|
|
40692
40707
|
function AlertModal(props) {
|
|
40693
40708
|
var _useState = React.useState(false),
|
|
40694
40709
|
loading = _useState[0],
|
|
@@ -40890,6 +40905,7 @@ exports.ChequeIcon = ChequeIcon;
|
|
|
40890
40905
|
exports.ChevronArrowDownIcon = ChevronArrowDownIcon;
|
|
40891
40906
|
exports.ChevronArrowLeftIcon = ChevronArrowLeftIcon;
|
|
40892
40907
|
exports.ChevronArrowRightIcon = ChevronArrowRightIcon;
|
|
40908
|
+
exports.Chip = Chip$1;
|
|
40893
40909
|
exports.CircleArrowLeft = CircleArrowLeft;
|
|
40894
40910
|
exports.CircleArrowRight = CircleArrowRight;
|
|
40895
40911
|
exports.ClockIcon = ClockIcon;
|