plataforma-fundacao-componentes 2.26.0 → 2.26.1

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.
@@ -1,16 +1,11 @@
1
- import React from 'react';
1
+ import React, { HTMLAttributes } from 'react';
2
2
  import { EtiquetasStyle } from '../../libraries/EtiquetasThemes';
3
3
  import './Etiqueta.scss';
4
- interface EtiquetaProps {
4
+ interface EtiquetaProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'label'> {
5
5
  theme?: EtiquetasStyle;
6
6
  label?: string | number;
7
7
  icon?: React.ReactNode;
8
8
  fitContent?: boolean;
9
9
  }
10
- declare function Etiqueta(props: EtiquetaProps): React.JSX.Element;
11
- declare namespace Etiqueta {
12
- var defaultProps: {
13
- theme: EtiquetasStyle;
14
- };
15
- }
16
- export default Etiqueta;
10
+ export default function Etiqueta({ theme, label, icon, fitContent, ...props }: EtiquetaProps): React.JSX.Element;
11
+ export {};
package/dist/index.css CHANGED
@@ -3503,7 +3503,6 @@ max-width 100% 540px 720px 960px 1140px
3503
3503
  -webkit-user-select: none;
3504
3504
  -moz-user-select: none;
3505
3505
  user-select: none;
3506
- margin-bottom: 2px;
3507
3506
  max-width: 100%;
3508
3507
  overflow: hidden;
3509
3508
  text-overflow: ellipsis;
@@ -3596,6 +3595,16 @@ max-width 100% 540px 720px 960px 1140px
3596
3595
  color: #765f00;
3597
3596
  border-color: #ffeb98; }
3598
3597
 
3598
+ .component-etiqueta.excluido {
3599
+ background-color: #f58c96;
3600
+ color: #730028;
3601
+ border-color: #f58c96; }
3602
+
3603
+ .component-etiqueta.orange {
3604
+ background-color: #ffd098;
3605
+ color: #cf7308;
3606
+ border-color: #ffd098; }
3607
+
3599
3608
  :export {
3600
3609
  widthXs: 575.98px;
3601
3610
  widthSm: 767.98px;
@@ -6215,7 +6224,7 @@ h5 {
6215
6224
  margin-left: 8px;
6216
6225
  font-size: 16px; }
6217
6226
  .component-select-panel .component-select-panel-footer-clearfix {
6218
- height: calc(40px + 6px);
6227
+ height: calc(40px + 2px);
6219
6228
  width: 0; }
6220
6229
  .component-select-panel .component-select-panel-footer {
6221
6230
  position: absolute;
@@ -6227,13 +6236,18 @@ h5 {
6227
6236
  display: flex;
6228
6237
  align-items: center;
6229
6238
  justify-content: space-between;
6230
- padding: 8px 24px; }
6239
+ padding: 0px 24px; }
6231
6240
  .component-select-panel .component-select-panel-footer div {
6232
6241
  font-family: "Nunito", sans-serif; }
6233
6242
  .component-select-panel .component-select-panel-footer .component-select-footer-button {
6243
+ max-width: 50%;
6234
6244
  font-weight: 700;
6235
6245
  font-size: 16px;
6236
- color: #3fa110; }
6246
+ color: #3fa110;
6247
+ padding: 0 8px 4px; }
6248
+ .component-select-panel .component-select-panel-footer .component-select-footer-button > div {
6249
+ text-overflow: ellipsis;
6250
+ overflow: hidden; }
6237
6251
  @media screen and (max-width: 575.98px) {
6238
6252
  .component-select-panel .component-select-panel-footer .component-select-footer-button {
6239
6253
  font-size: 11px; } }
package/dist/index.js CHANGED
@@ -7953,9 +7953,11 @@ var Etapas$1 = React.memo(Etapas);
7953
7953
  EtiquetasStyle["Aprovacao"] = "em-aprovacao";
7954
7954
  EtiquetasStyle["Finalizado"] = "finalizado";
7955
7955
  EtiquetasStyle["Aprovado"] = "aprovado";
7956
+ EtiquetasStyle["Excluido"] = "excluido";
7956
7957
  EtiquetasStyle["Reprovado"] = "reprovado";
7957
7958
  EtiquetasStyle["Cancelado"] = "cancelado";
7958
7959
  EtiquetasStyle["OutlinePrimary"] = "outline-primary";
7960
+ EtiquetasStyle["Orange"] = "orange";
7959
7961
  EtiquetasStyle["OutlineDanger"] = "outline-danger";
7960
7962
  EtiquetasStyle["OutlineDark"] = "outline-dark";
7961
7963
  EtiquetasStyle["OutlineBlue"] = "outline-blue";
@@ -7963,19 +7965,23 @@ var Etapas$1 = React.memo(Etapas);
7963
7965
  EtiquetasStyle["Yellow"] = "yellow";
7964
7966
  })(exports.EtiquetasStyle || (exports.EtiquetasStyle = {}));
7965
7967
 
7968
+ var _excluded$7 = ["theme", "label", "icon", "fitContent"];
7966
7969
  var rootClassName$22 = 'component-etiqueta';
7967
- function Etiqueta(props) {
7968
- return React__default.createElement("div", {
7969
- className: getMergedClassNames([rootClassName$22, props.theme, props.fitContent ? 'fit-content' : undefined])
7970
- }, props.icon ? React__default.createElement("div", {
7970
+ function Etiqueta(_ref) {
7971
+ var _ref$theme = _ref.theme,
7972
+ theme = _ref$theme === void 0 ? exports.EtiquetasStyle.Programas : _ref$theme,
7973
+ label = _ref.label,
7974
+ icon = _ref.icon,
7975
+ fitContent = _ref.fitContent,
7976
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
7977
+ return React__default.createElement("div", Object.assign({}, props, {
7978
+ className: getMergedClassNames([rootClassName$22, theme, fitContent ? 'fit-content' : undefined])
7979
+ }), icon ? React__default.createElement("div", {
7971
7980
  className: rootClassName$22 + "-icon"
7972
- }, props.icon) : undefined, React__default.createElement("div", {
7973
- className: rootClassName$22 + "-text"
7974
- }, props.label));
7981
+ }, icon) : undefined, React__default.createElement("div", {
7982
+ className: rootClassName$22 + "-text nunito"
7983
+ }, label));
7975
7984
  }
7976
- Etiqueta.defaultProps = {
7977
- theme: exports.EtiquetasStyle.Programas
7978
- };
7979
7985
 
7980
7986
  var rootClassName$23 = 'component-file-loader';
7981
7987
  function FileLoader(props) {
@@ -8925,7 +8931,7 @@ function useScreenSize() {
8925
8931
  return value;
8926
8932
  }
8927
8933
 
8928
- var _excluded$7 = ["className", "compenseColPaddingContent", "footer", "id", "mobileOn", "modalKey", "onClose", "preventEscExit", "preventMaskExit", "size", "tag", "title"];
8934
+ var _excluded$8 = ["className", "compenseColPaddingContent", "footer", "id", "mobileOn", "modalKey", "onClose", "preventEscExit", "preventMaskExit", "size", "tag", "title"];
8929
8935
  var rootClassName$2g = 'component-modal';
8930
8936
  function Modal(_ref) {
8931
8937
  var className = _ref.className,
@@ -8939,7 +8945,7 @@ function Modal(_ref) {
8939
8945
  _ref$tag = _ref.tag,
8940
8946
  tag = _ref$tag === void 0 ? 'dialog' : _ref$tag,
8941
8947
  title = _ref.title,
8942
- props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
8948
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
8943
8949
  var _useScreenSize = useScreenSize(),
8944
8950
  rankedSize = _useScreenSize.rankedSize;
8945
8951
  var modalProps = React.useMemo(function () {
@@ -9188,7 +9194,7 @@ function Paginator(props) {
9188
9194
  }
9189
9195
  Paginator.defaultProps = {};
9190
9196
 
9191
- var _excluded$8 = ["boundaryCount", "count", "currentPage", "disabled", "hideNextButton", "hidePrevButton", "onChange", "page", "siblingCount", "maxLength"];
9197
+ var _excluded$9 = ["boundaryCount", "count", "currentPage", "disabled", "hideNextButton", "hidePrevButton", "onChange", "page", "siblingCount", "maxLength"];
9192
9198
  function usePagination(props) {
9193
9199
  var _ref;
9194
9200
  if (props === void 0) {
@@ -9212,7 +9218,7 @@ function usePagination(props) {
9212
9218
  _props$siblingCount = _props.siblingCount,
9213
9219
  siblingCount = _props$siblingCount === void 0 ? 1 : _props$siblingCount,
9214
9220
  maxLength = _props.maxLength,
9215
- other = _objectWithoutPropertiesLoose(_props, _excluded$8);
9221
+ other = _objectWithoutPropertiesLoose(_props, _excluded$9);
9216
9222
  var isControlledRef = React.useRef(pageProp !== undefined);
9217
9223
  var _useState = React.useState(currentPage),
9218
9224
  pageCurrent = _useState[0],
@@ -9304,7 +9310,7 @@ var ThreeDots = function ThreeDots() {
9304
9310
  }));
9305
9311
  };
9306
9312
 
9307
- var _excluded$9 = ["page", "type", "selected"];
9313
+ var _excluded$a = ["page", "type", "selected"];
9308
9314
  var rootClassName$2l = 'pagination-component';
9309
9315
  var Pagination = function Pagination(props) {
9310
9316
  var _useScreenSize = useScreenSize(),
@@ -9430,7 +9436,7 @@ var Pagination = function Pagination(props) {
9430
9436
  var page = _ref2.page,
9431
9437
  type = _ref2.type,
9432
9438
  selected = _ref2.selected,
9433
- item = _objectWithoutPropertiesLoose(_ref2, _excluded$9);
9439
+ item = _objectWithoutPropertiesLoose(_ref2, _excluded$a);
9434
9440
  var children = null;
9435
9441
  if (type === 'start-ellipsis' || type === 'end-ellipsis') {
9436
9442
  children = React__default.createElement("li", {
@@ -10621,7 +10627,7 @@ ActionsColumn.defaultProps = {
10621
10627
  buttons: []
10622
10628
  };
10623
10629
 
10624
- var _excluded$a = ["columns", "lines", "onSort", "confirmSort", "sortable", "upperHeader", "className"];
10630
+ var _excluded$b = ["columns", "lines", "onSort", "confirmSort", "sortable", "upperHeader", "className"];
10625
10631
  var rootClassName$2u = 'component-table';
10626
10632
  function TypedTable(props) {
10627
10633
  return React__default.createElement(Table, Object.assign({}, props));
@@ -10634,7 +10640,7 @@ function Table(_ref) {
10634
10640
  sortable = _ref.sortable,
10635
10641
  upperHeader = _ref.upperHeader,
10636
10642
  className = _ref.className,
10637
- props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
10643
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
10638
10644
  var itemsId = React.useMemo(function () {
10639
10645
  return "table" + getUniqueKey();
10640
10646
  }, []);
@@ -10712,7 +10718,7 @@ function Table(_ref) {
10712
10718
  var columnProps = (_columns$valueIndex$p = (_columns$valueIndex = columns[valueIndex]) === null || _columns$valueIndex === void 0 ? void 0 : _columns$valueIndex.props) != null ? _columns$valueIndex$p : {};
10713
10719
  return React__default.createElement("td", Object.assign({
10714
10720
  key: cell && cell.key ? cell.key : valueIndex
10715
- }, columnProps, cell && cell.props ? cell.props : {}), cell);
10721
+ }, columnProps, cell && cell.props && !React__default.isValidElement(cell) ? cell.props : {}), cell);
10716
10722
  }), React__default.createElement("td", null));
10717
10723
  }) : undefined))));
10718
10724
  }
@@ -11210,13 +11216,13 @@ function TextEditorColorPicker(props) {
11210
11216
  }, "OK")));
11211
11217
  }
11212
11218
 
11213
- var _excluded$b = ["icon", "active"];
11219
+ var _excluded$c = ["icon", "active"];
11214
11220
  var rootClassName$2C = 'text-editor-header-button';
11215
11221
  function TextEditorHeaderButton(_ref) {
11216
11222
  var _props$className;
11217
11223
  var icon = _ref.icon,
11218
11224
  active = _ref.active,
11219
- props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
11225
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
11220
11226
  return React__default.createElement("button", Object.assign({
11221
11227
  className: getMergedClassNames([rootClassName$2C, active ? 'active' : '', (_props$className = props.className) != null ? _props$className : ''])
11222
11228
  }, props), icon);
@@ -12072,7 +12078,7 @@ TopLoader.defaultProps = {
12072
12078
  })
12073
12079
  };
12074
12080
 
12075
- var _excluded$c = ["className", "id", "mobileOn", "modalKey", "onClose", "preventEscExit", "preventMaskExit", "size", "tag", "urlVideo", "videoPlayerProps"];
12081
+ var _excluded$d = ["className", "id", "mobileOn", "modalKey", "onClose", "preventEscExit", "preventMaskExit", "size", "tag", "urlVideo", "videoPlayerProps"];
12076
12082
  var rootClassName$2M = 'video-modal';
12077
12083
  function VideoModal(_ref) {
12078
12084
  var _ref2;
@@ -12086,7 +12092,7 @@ function VideoModal(_ref) {
12086
12092
  tag = _ref$tag === void 0 ? 'dialog' : _ref$tag,
12087
12093
  urlVideo = _ref.urlVideo,
12088
12094
  videoPlayerProps = _ref.videoPlayerProps,
12089
- props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
12095
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
12090
12096
  var _useScreenSize = useScreenSize(),
12091
12097
  rankedSize = _useScreenSize.rankedSize;
12092
12098
  var handleClose = React.useCallback(function () {
@@ -12357,7 +12363,7 @@ function CalendarDays(props) {
12357
12363
  }
12358
12364
  var CalendarDays$1 = React.memo(CalendarDays);
12359
12365
 
12360
- var _excluded$d = ["language", "visao", "referencia"];
12366
+ var _excluded$e = ["language", "visao", "referencia"];
12361
12367
  var rootClassName$2T = 'calendar';
12362
12368
  function Calendar(_ref) {
12363
12369
  var _ref$language = _ref.language,
@@ -12366,7 +12372,7 @@ function Calendar(_ref) {
12366
12372
  visao = _ref$visao === void 0 ? CalendarView.Mensal : _ref$visao,
12367
12373
  _ref$referencia = _ref.referencia,
12368
12374
  referencia = _ref$referencia === void 0 ? new Date() : _ref$referencia,
12369
- props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
12375
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
12370
12376
  var id = React.useMemo(getUniqueKey, []);
12371
12377
  var _useState = React.useState(false),
12372
12378
  pocket = _useState[0],
@@ -44164,17 +44170,17 @@ function usePublicMenuList(props) {
44164
44170
  }
44165
44171
 
44166
44172
  function FormattedText(text) {
44167
- var _text$tag, _text$props;
44168
- var _final = typeof text === 'string' ? text : text.text;
44173
+ var _text$text, _text$tag, _text$props;
44174
+ var _final = typeof text === 'string' ? text : (_text$text = text.text) != null ? _text$text : '';
44169
44175
  var tag = typeof text === 'string' ? 'span' : (_text$tag = text.tag) != null ? _text$tag : 'span';
44170
44176
  var props = typeof text === 'string' ? {} : (_text$props = text.props) != null ? _text$props : {};
44177
+ _final = _final.replaceAll(/_([^_]*)_/g, '<i>$1</i>').replaceAll(/\*([^*]*)\*/g, '<b>$1</b>').replaceAll(/~([^~]*)~/g, '<del>$1</del>');
44171
44178
  for (var _len = arguments.length, replacers = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
44172
44179
  replacers[_key - 1] = arguments[_key];
44173
44180
  }
44174
44181
  replacers.forEach(function (s, i) {
44175
44182
  _final = _final.replaceAll("#" + (i + 1) + "#", s);
44176
44183
  });
44177
- _final = _final.replaceAll(/_([^_]*)_/g, '<i>$1</i>').replaceAll(/\*([^*]*)\*/g, '<b>$1</b>').replaceAll(/~([^~]*)~/g, '<del>$1</del>');
44178
44184
  return React__default.createElement(tag, _extends({}, props, {
44179
44185
  dangerouslySetInnerHTML: {
44180
44186
  __html: DOMPurify.sanitize(_final)
@@ -44246,7 +44252,7 @@ var LeftControlWithLabel = function LeftControlWithLabel(props) {
44246
44252
  }), props.label));
44247
44253
  };
44248
44254
 
44249
- var _excluded$e = ["disabled", "language", "onConfirm", "showIcons"],
44255
+ var _excluded$f = ["disabled", "language", "onConfirm", "showIcons"],
44250
44256
  _excluded2 = ["disabled", "language", "onCancel", "onConfirm", "showIcons"],
44251
44257
  _excluded3 = ["disabled", "language", "onCancel", "onConfirm", "showIcons"];
44252
44258
  function AlertModal(_ref) {
@@ -44256,7 +44262,7 @@ function AlertModal(_ref) {
44256
44262
  onConfirm = _ref.onConfirm,
44257
44263
  _ref$showIcons = _ref.showIcons,
44258
44264
  showIcons = _ref$showIcons === void 0 ? true : _ref$showIcons,
44259
- props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
44265
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$f);
44260
44266
  var _useState = React.useState(false),
44261
44267
  loading = _useState[0],
44262
44268
  setLoading = _useState[1];