plataforma-fundacao-componentes 2.22.4 → 2.22.5
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/col/Col.d.ts +2 -0
- package/dist/components/modal/Modal.d.ts +1 -0
- package/dist/components/modal/Modal.stories.d.ts +1 -0
- package/dist/components/modal/ModalTypes.d.ts +3 -4
- package/dist/index.css +14 -2
- package/dist/index.js +6 -4
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +6 -4
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
|
@@ -9,6 +9,8 @@ interface ColProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
9
9
|
end?: boolean;
|
|
10
10
|
noPadding?: boolean;
|
|
11
11
|
children?: React.ReactNode;
|
|
12
|
+
noPaddingTop?: boolean;
|
|
13
|
+
buttonActionsCol?: boolean;
|
|
12
14
|
}
|
|
13
15
|
declare function Col(props: ColProps): JSX.Element;
|
|
14
16
|
declare namespace Col {
|
|
@@ -4,6 +4,7 @@ declare namespace _default {
|
|
|
4
4
|
}
|
|
5
5
|
export default _default;
|
|
6
6
|
export function Small(): JSX.Element;
|
|
7
|
+
export function SmallCompensePadding(): JSX.Element;
|
|
7
8
|
export function Large(): JSX.Element;
|
|
8
9
|
export function ExtraLarge(): JSX.Element;
|
|
9
10
|
export function Alert(): JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ModalProps } from './Modal';
|
|
3
|
-
interface AlertModalProps extends ModalProps {
|
|
3
|
+
export interface AlertModalProps extends ModalProps {
|
|
4
4
|
language?: {
|
|
5
5
|
confirm: string;
|
|
6
6
|
};
|
|
@@ -13,7 +13,7 @@ export declare namespace AlertModal {
|
|
|
13
13
|
showIcons: boolean;
|
|
14
14
|
};
|
|
15
15
|
}
|
|
16
|
-
interface ConfirmModalProps extends ModalProps {
|
|
16
|
+
export interface ConfirmModalProps extends ModalProps {
|
|
17
17
|
language?: {
|
|
18
18
|
confirm: string;
|
|
19
19
|
cancel: string;
|
|
@@ -28,7 +28,7 @@ export declare namespace ConfirmModal {
|
|
|
28
28
|
showIcons: boolean;
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
|
-
interface DestructiveModalProps extends ModalProps {
|
|
31
|
+
export interface DestructiveModalProps extends ModalProps {
|
|
32
32
|
language?: {
|
|
33
33
|
confirm: string;
|
|
34
34
|
cancel: string;
|
|
@@ -43,4 +43,3 @@ export declare namespace DestructiveModal {
|
|
|
43
43
|
showIcons: boolean;
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
export {};
|
package/dist/index.css
CHANGED
|
@@ -6438,12 +6438,22 @@ h5 {
|
|
|
6438
6438
|
width: 100%; }
|
|
6439
6439
|
.component-col:not(.no-padding) {
|
|
6440
6440
|
padding: var(--colPadding); }
|
|
6441
|
+
.component-col.no-padding-top {
|
|
6442
|
+
padding-top: 0 !important; }
|
|
6441
6443
|
.component-col.centralized {
|
|
6442
6444
|
justify-content: center;
|
|
6443
6445
|
align-items: center; }
|
|
6444
6446
|
.component-col.end {
|
|
6445
6447
|
justify-content: flex-end;
|
|
6446
6448
|
align-items: center; }
|
|
6449
|
+
.component-col.button-actions-col {
|
|
6450
|
+
padding: 0;
|
|
6451
|
+
flex-wrap: wrap; }
|
|
6452
|
+
.component-col.button-actions-col button {
|
|
6453
|
+
margin: var(--colPadding); }
|
|
6454
|
+
@media screen and (max-width: 575.98px) {
|
|
6455
|
+
.component-col.button-actions-col button {
|
|
6456
|
+
width: 100% !important; } }
|
|
6447
6457
|
.component-col.component-col-xl-1 {
|
|
6448
6458
|
flex: 0 0 calc(100% * 1 / 12);
|
|
6449
6459
|
max-width: calc(100% * 1 / 12); }
|
|
@@ -12286,6 +12296,8 @@ h5 {
|
|
|
12286
12296
|
flex-flow: column;
|
|
12287
12297
|
overflow-y: overlay;
|
|
12288
12298
|
padding: 24px; }
|
|
12299
|
+
.component-modal .component-modal-content.compense {
|
|
12300
|
+
padding: calc(24px - var(--colPadding)); }
|
|
12289
12301
|
.component-modal .component-modal-footer {
|
|
12290
12302
|
display: flex;
|
|
12291
12303
|
justify-content: flex-end;
|
|
@@ -14515,7 +14527,7 @@ table.component-table {
|
|
|
14515
14527
|
padding: 8px;
|
|
14516
14528
|
border-collapse: collapse; }
|
|
14517
14529
|
table.component-table * {
|
|
14518
|
-
font-family: "Nunito", sans-serif; }
|
|
14530
|
+
font-family: "Nunito", sans-serif !important; }
|
|
14519
14531
|
table.component-table thead tr th {
|
|
14520
14532
|
background-color: #fefefe;
|
|
14521
14533
|
font-weight: 800;
|
|
@@ -15061,7 +15073,7 @@ h5 {
|
|
|
15061
15073
|
position: relative;
|
|
15062
15074
|
width: 100%; }
|
|
15063
15075
|
.component-table-with-overflow * {
|
|
15064
|
-
font-family: "Nunito", sans-serif; }
|
|
15076
|
+
font-family: "Nunito", sans-serif !important; }
|
|
15065
15077
|
.component-table-with-overflow .component-table-with-overflow-outer-table {
|
|
15066
15078
|
width: 100%;
|
|
15067
15079
|
overflow-x: auto; }
|
package/dist/index.js
CHANGED
|
@@ -3948,7 +3948,7 @@ function Col(props) {
|
|
|
3948
3948
|
});
|
|
3949
3949
|
|
|
3950
3950
|
var rp = _extends({}, props, {
|
|
3951
|
-
className: getMergedClassNames([props.className, rootClassName$L].concat(getSizes, [props.centralized ? 'centralized' : '', props.end ? 'end' : '', props.noPadding ? 'no-padding' : '']))
|
|
3951
|
+
className: getMergedClassNames([props.className, rootClassName$L].concat(getSizes, [props.centralized ? 'centralized' : '', props.end ? 'end' : '', props.noPadding ? 'no-padding' : '', props.noPaddingTop ? 'no-padding-top' : '', props.buttonActionsCol ? 'button-actions-col' : '']))
|
|
3952
3952
|
});
|
|
3953
3953
|
|
|
3954
3954
|
delete rp.noPadding;
|
|
@@ -8416,7 +8416,7 @@ function Modal(props) {
|
|
|
8416
8416
|
var filteredProps = React.useMemo(function () {
|
|
8417
8417
|
var p = _extends({}, props, {
|
|
8418
8418
|
id: props.id ? props.id : props.modalKey ? props.modalKey : "modal" + getUniqueKey(),
|
|
8419
|
-
className: getMergedClassNames([
|
|
8419
|
+
className: getMergedClassNames([props.className || '', rootClassName$1k, props.mobileOnXS ? 'mobile-on-xs' : '', rootClassName$1k + "-" + String(props.size).toLowerCase()])
|
|
8420
8420
|
});
|
|
8421
8421
|
|
|
8422
8422
|
delete p.footer;
|
|
@@ -8459,7 +8459,7 @@ function Modal(props) {
|
|
|
8459
8459
|
onClick: handleClose,
|
|
8460
8460
|
icon: React__default.createElement(CloseIcon, null)
|
|
8461
8461
|
}))), React__default.createElement("div", {
|
|
8462
|
-
className: rootClassName$1k + "-content"
|
|
8462
|
+
className: getMergedClassNames([rootClassName$1k + "-content", props.compenseColPaddingContent ? 'compense' : ''])
|
|
8463
8463
|
}, props.children), props.footer ? React__default.createElement("div", {
|
|
8464
8464
|
className: rootClassName$1k + "-footer"
|
|
8465
8465
|
}, footer) : undefined);
|
|
@@ -9890,7 +9890,9 @@ function TableWithOverflow(props) {
|
|
|
9890
9890
|
var column = Array.from(props.columns).find(function (c) {
|
|
9891
9891
|
return c.key === cell[0];
|
|
9892
9892
|
});
|
|
9893
|
-
return (column === null || column === void 0 ? void 0 : column.key) === 'actions' ? React__default.createElement("td",
|
|
9893
|
+
return (column === null || column === void 0 ? void 0 : column.key) === 'actions' ? React__default.createElement("td", {
|
|
9894
|
+
key: fakeId + "-actions"
|
|
9895
|
+
}) : React__default.createElement("td", Object.assign({
|
|
9894
9896
|
key: cell[1].key ? cell[1].key : valueIndex
|
|
9895
9897
|
}, column === null || column === void 0 ? void 0 : column.props, cell[1].props), cell[1]);
|
|
9896
9898
|
}), React__default.createElement("td", null));
|