plataforma-fundacao-componentes 2.22.3 → 2.22.6

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.
@@ -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 {
@@ -12,6 +12,7 @@ export interface ModalProps {
12
12
  onClose?: (modalKey?: string | number) => void;
13
13
  size?: ModalSizes;
14
14
  mobileOnXS?: boolean;
15
+ compenseColPaddingContent?: boolean;
15
16
  footer?: ButtonProps[] | any;
16
17
  children?: any;
17
18
  }
@@ -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
@@ -3147,6 +3147,7 @@ h5 {
3147
3147
  width: 100%;
3148
3148
  position: relative;
3149
3149
  display: flex;
3150
+ flex-wrap: nowrap;
3150
3151
  align-items: center;
3151
3152
  border-width: 0 0 2px 0;
3152
3153
  border-style: solid;
@@ -3165,14 +3166,13 @@ h5 {
3165
3166
  .component-input .component-input-input-container .component-input-input:focus {
3166
3167
  outline: none; }
3167
3168
  .component-input .component-input-input-container::before {
3168
- content: "";
3169
+ content: '';
3169
3170
  transition: visibility 0.3s ease, opacity 0.3s ease;
3170
3171
  opacity: 0;
3171
3172
  visibility: hidden; }
3172
3173
  .component-input .component-input-input-container .component-input-right-object {
3173
- position: absolute;
3174
- right: 5px;
3175
- padding-bottom: 1px; }
3174
+ position: static;
3175
+ padding: 0 5px 1px 5px; }
3176
3176
  .component-input .component-input-input-container .component-input-right-object svg {
3177
3177
  width: 23px;
3178
3178
  height: 23px; }
@@ -3211,7 +3211,7 @@ h5 {
3211
3211
  color: #e60000 !important; }
3212
3212
 
3213
3213
  .component-input.component-input-loading .component-input-input-container::after {
3214
- content: "";
3214
+ content: '';
3215
3215
  height: 2px;
3216
3216
  width: 0;
3217
3217
  left: 0;
@@ -3283,7 +3283,7 @@ h5 {
3283
3283
  .component-input:not(.component-input-error):not(.force-focus):not(.component-input-disabled):not(.component-input-loading) .component-input-input-container:focus-within::before {
3284
3284
  opacity: 1;
3285
3285
  visibility: visible;
3286
- content: "";
3286
+ content: '';
3287
3287
  height: 2px;
3288
3288
  display: block;
3289
3289
  position: absolute;
@@ -3294,7 +3294,7 @@ h5 {
3294
3294
 
3295
3295
  .component-input:not(.component-input-error):not(.force-focus):not(.component-input-disabled):not(.component-input-loading) .component-input-input-container:not(:focus-within):not(.force-focus)::before {
3296
3296
  opacity: 0;
3297
- content: "";
3297
+ content: '';
3298
3298
  height: 2px;
3299
3299
  display: block;
3300
3300
  position: absolute;
@@ -3306,7 +3306,7 @@ h5 {
3306
3306
  .component-input:not(.component-input-error).force-focus .component-input-input-container::before {
3307
3307
  opacity: 1;
3308
3308
  visibility: visible;
3309
- content: "";
3309
+ content: '';
3310
3310
  height: 2px;
3311
3311
  display: block;
3312
3312
  position: absolute;
@@ -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); }
@@ -10913,6 +10923,7 @@ h5 {
10913
10923
  width: 100%;
10914
10924
  position: relative;
10915
10925
  display: flex;
10926
+ flex-wrap: nowrap;
10916
10927
  align-items: center;
10917
10928
  border-width: 0 0 2px 0;
10918
10929
  border-style: solid;
@@ -10932,13 +10943,16 @@ h5 {
10932
10943
  .component-input-area .component-input-area-input-container .component-input-area-input-area:focus {
10933
10944
  outline: none; }
10934
10945
  .component-input-area .component-input-area-input-container::before {
10935
- content: "";
10946
+ content: '';
10936
10947
  transition: visibility 0.3s ease, opacity 0.3s ease;
10937
10948
  opacity: 0;
10938
10949
  visibility: hidden; }
10939
10950
  .component-input-area .component-input-area-input-container .component-input-area-right-object {
10940
- position: absolute;
10941
- right: 5px; }
10951
+ position: static;
10952
+ padding: 0 5px 1px; }
10953
+ .component-input-area .component-input-area-input-container .component-input-area-right-object svg {
10954
+ width: 23px;
10955
+ height: 23px; }
10942
10956
  .component-input-area .component-input-area-helper-and-counter {
10943
10957
  position: relative;
10944
10958
  display: flex;
@@ -10974,7 +10988,7 @@ h5 {
10974
10988
  color: #e60000 !important; }
10975
10989
 
10976
10990
  .component-input-area.component-input-area-loading .component-input-area-input-container::after {
10977
- content: "";
10991
+ content: '';
10978
10992
  height: 2px;
10979
10993
  width: 0;
10980
10994
  left: 0;
@@ -11046,7 +11060,7 @@ h5 {
11046
11060
  .component-input-area:not(.component-input-area-error):not(.force-focus):not(.component-input-area-disabled):not(.component-input-area-loading) .component-input-area-input-container:focus-within::before {
11047
11061
  opacity: 1;
11048
11062
  visibility: visible;
11049
- content: "";
11063
+ content: '';
11050
11064
  height: 2px;
11051
11065
  display: block;
11052
11066
  position: absolute;
@@ -11057,7 +11071,7 @@ h5 {
11057
11071
 
11058
11072
  .component-input-area:not(.component-input-area-error):not(.force-focus):not(.component-input-area-disabled):not(.component-input-area-loading) .component-input-area-input-container:not(:focus-within):not(.force-focus)::before {
11059
11073
  opacity: 0;
11060
- content: "";
11074
+ content: '';
11061
11075
  height: 2px;
11062
11076
  display: block;
11063
11077
  position: absolute;
@@ -11069,7 +11083,7 @@ h5 {
11069
11083
  .component-input-area:not(.component-input-area-error).force-focus .component-input-area-input-container::before {
11070
11084
  opacity: 1;
11071
11085
  visibility: visible;
11072
- content: "";
11086
+ content: '';
11073
11087
  height: 2px;
11074
11088
  display: block;
11075
11089
  position: absolute;
@@ -12286,6 +12300,8 @@ h5 {
12286
12300
  flex-flow: column;
12287
12301
  overflow-y: overlay;
12288
12302
  padding: 24px; }
12303
+ .component-modal .component-modal-content.compense {
12304
+ padding: calc(24px - var(--colPadding)); }
12289
12305
  .component-modal .component-modal-footer {
12290
12306
  display: flex;
12291
12307
  justify-content: flex-end;
@@ -14515,7 +14531,7 @@ table.component-table {
14515
14531
  padding: 8px;
14516
14532
  border-collapse: collapse; }
14517
14533
  table.component-table * {
14518
- font-family: "Nunito", sans-serif; }
14534
+ font-family: "Nunito", sans-serif !important; }
14519
14535
  table.component-table thead tr th {
14520
14536
  background-color: #fefefe;
14521
14537
  font-weight: 800;
@@ -15057,8 +15073,11 @@ h5 {
15057
15073
  background-color: #bfc7bf; }
15058
15074
 
15059
15075
  .component-table-with-overflow {
15076
+ font-family: "Nunito", sans-serif;
15060
15077
  position: relative;
15061
15078
  width: 100%; }
15079
+ .component-table-with-overflow * {
15080
+ font-family: "Nunito", sans-serif !important; }
15062
15081
  .component-table-with-overflow .component-table-with-overflow-outer-table {
15063
15082
  width: 100%;
15064
15083
  overflow-x: auto; }
@@ -15109,9 +15128,6 @@ h5 {
15109
15128
  .component-table-with-overflow .component-table-with-overflow-outer-table .component-table-with-overflow-table .component-table-with-overflow-mid:not(.over) {
15110
15129
  cursor: inherit;
15111
15130
  overflow-x: visible; }
15112
- .component-table-with-overflow .component-table-with-overflow-outer-table .component-table-with-overflow-table .component-table-with-overflow-mid .component-table-with-overflow-row.disabled .component-table-with-overflow-cell {
15113
- color: #828a82;
15114
- background-color: #efefef; }
15115
15131
  .component-table-with-overflow .component-table-with-overflow-outer-table .component-table-with-overflow-table .component-table-with-overflow-mid .component-table-with-overflow-cell {
15116
15132
  justify-content: center;
15117
15133
  background-color: #fefefe; }
@@ -15145,6 +15161,7 @@ h5 {
15145
15161
  margin-bottom: 16px;
15146
15162
  background-color: #fefefe; }
15147
15163
  .component-table-with-overflow .component-table-with-overflow-outer-table .component-table-with-overflow-table .component-table-with-overflow-header .component-table-with-overflow-cell {
15164
+ color: #323c32;
15148
15165
  display: flex;
15149
15166
  align-items: center;
15150
15167
  justify-content: center;
@@ -15156,12 +15173,13 @@ h5 {
15156
15173
  width: 100%; }
15157
15174
  .component-table-with-overflow .component-table-with-overflow-outer-table .component-table-with-overflow-table .component-table-with-overflow-body .component-table-with-overflow-row {
15158
15175
  display: flex; }
15159
- .component-table-with-overflow .component-table-with-overflow-outer-table .component-table-with-overflow-table .component-table-with-overflow-body .component-table-with-overflow-row.disabled {
15176
+ .component-table-with-overflow .component-table-with-overflow-outer-table .component-table-with-overflow-table .component-table-with-overflow-body .component-table-with-overflow-row.disabled .component-table-with-overflow-cell {
15160
15177
  color: #828a82;
15161
15178
  background-color: #efefef; }
15162
15179
  .component-table-with-overflow .component-table-with-overflow-outer-table .component-table-with-overflow-table .component-table-with-overflow-body .component-table-with-overflow-row:not(:last-child) .component-table-with-overflow-cell {
15163
15180
  border-bottom: 1px solid #cdd3cd; }
15164
15181
  .component-table-with-overflow .component-table-with-overflow-outer-table .component-table-with-overflow-table .component-table-with-overflow-body .component-table-with-overflow-row .component-table-with-overflow-cell {
15182
+ color: #323c32;
15165
15183
  text-align: center;
15166
15184
  vertical-align: middle;
15167
15185
  display: flex;
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([rootClassName$1k, props.className || '', props.mobileOnXS ? 'mobile-on-xs' : '', rootClassName$1k + "-" + String(props.size).toLowerCase()])
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;
@@ -8428,6 +8428,7 @@ function Modal(props) {
8428
8428
  delete p.mobileOnXS;
8429
8429
  delete p.preventEscExit;
8430
8430
  delete p.preventMaskExit;
8431
+ delete p.compenseColPaddingContent;
8431
8432
  delete p.modalKey;
8432
8433
  return p;
8433
8434
  }, [props]);
@@ -8459,7 +8460,7 @@ function Modal(props) {
8459
8460
  onClick: handleClose,
8460
8461
  icon: React__default.createElement(CloseIcon, null)
8461
8462
  }))), React__default.createElement("div", {
8462
- className: rootClassName$1k + "-content"
8463
+ className: getMergedClassNames([rootClassName$1k + "-content", props.compenseColPaddingContent ? 'compense' : ''])
8463
8464
  }, props.children), props.footer ? React__default.createElement("div", {
8464
8465
  className: rootClassName$1k + "-footer"
8465
8466
  }, footer) : undefined);
@@ -9890,7 +9891,9 @@ function TableWithOverflow(props) {
9890
9891
  var column = Array.from(props.columns).find(function (c) {
9891
9892
  return c.key === cell[0];
9892
9893
  });
9893
- return (column === null || column === void 0 ? void 0 : column.key) === 'actions' ? React__default.createElement("td", null) : React__default.createElement("td", Object.assign({
9894
+ return (column === null || column === void 0 ? void 0 : column.key) === 'actions' ? React__default.createElement("td", {
9895
+ key: fakeId + "-actions"
9896
+ }) : React__default.createElement("td", Object.assign({
9894
9897
  key: cell[1].key ? cell[1].key : valueIndex
9895
9898
  }, column === null || column === void 0 ? void 0 : column.props, cell[1].props), cell[1]);
9896
9899
  }), React__default.createElement("td", null));