plataforma-fundacao-componentes 2.23.17 → 2.23.18
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 +3 -4
- package/dist/index.js +6 -11
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +6 -11
- 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%; }
|
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
|
}, []);
|