plataforma-fundacao-componentes 2.26.0 → 2.26.2

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.
@@ -7960,9 +7960,11 @@ var EtiquetasStyle;
7960
7960
  EtiquetasStyle["Aprovacao"] = "em-aprovacao";
7961
7961
  EtiquetasStyle["Finalizado"] = "finalizado";
7962
7962
  EtiquetasStyle["Aprovado"] = "aprovado";
7963
+ EtiquetasStyle["Excluido"] = "excluido";
7963
7964
  EtiquetasStyle["Reprovado"] = "reprovado";
7964
7965
  EtiquetasStyle["Cancelado"] = "cancelado";
7965
7966
  EtiquetasStyle["OutlinePrimary"] = "outline-primary";
7967
+ EtiquetasStyle["Orange"] = "orange";
7966
7968
  EtiquetasStyle["OutlineDanger"] = "outline-danger";
7967
7969
  EtiquetasStyle["OutlineDark"] = "outline-dark";
7968
7970
  EtiquetasStyle["OutlineBlue"] = "outline-blue";
@@ -7970,19 +7972,23 @@ var EtiquetasStyle;
7970
7972
  EtiquetasStyle["Yellow"] = "yellow";
7971
7973
  })(EtiquetasStyle || (EtiquetasStyle = {}));
7972
7974
 
7975
+ var _excluded$7 = ["theme", "label", "icon", "fitContent"];
7973
7976
  var rootClassName$22 = 'component-etiqueta';
7974
- function Etiqueta(props) {
7975
- return React.createElement("div", {
7976
- className: getMergedClassNames([rootClassName$22, props.theme, props.fitContent ? 'fit-content' : undefined])
7977
- }, props.icon ? React.createElement("div", {
7977
+ function Etiqueta(_ref) {
7978
+ var _ref$theme = _ref.theme,
7979
+ theme = _ref$theme === void 0 ? EtiquetasStyle.Programas : _ref$theme,
7980
+ label = _ref.label,
7981
+ icon = _ref.icon,
7982
+ fitContent = _ref.fitContent,
7983
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
7984
+ return React.createElement("div", Object.assign({}, props, {
7985
+ className: getMergedClassNames([rootClassName$22, theme, fitContent ? 'fit-content' : undefined])
7986
+ }), icon ? React.createElement("div", {
7978
7987
  className: rootClassName$22 + "-icon"
7979
- }, props.icon) : undefined, React.createElement("div", {
7980
- className: rootClassName$22 + "-text"
7981
- }, props.label));
7988
+ }, icon) : undefined, React.createElement("div", {
7989
+ className: rootClassName$22 + "-text nunito"
7990
+ }, label));
7982
7991
  }
7983
- Etiqueta.defaultProps = {
7984
- theme: EtiquetasStyle.Programas
7985
- };
7986
7992
 
7987
7993
  var rootClassName$23 = 'component-file-loader';
7988
7994
  function FileLoader(props) {
@@ -8934,7 +8940,7 @@ function useScreenSize() {
8934
8940
  return value;
8935
8941
  }
8936
8942
 
8937
- var _excluded$7 = ["className", "compenseColPaddingContent", "footer", "id", "mobileOn", "modalKey", "onClose", "preventEscExit", "preventMaskExit", "size", "tag", "title"];
8943
+ var _excluded$8 = ["className", "compenseColPaddingContent", "footer", "id", "mobileOn", "modalKey", "onClose", "preventEscExit", "preventMaskExit", "size", "tag", "title"];
8938
8944
  var rootClassName$2g = 'component-modal';
8939
8945
  function Modal(_ref) {
8940
8946
  var className = _ref.className,
@@ -8948,7 +8954,7 @@ function Modal(_ref) {
8948
8954
  _ref$tag = _ref.tag,
8949
8955
  tag = _ref$tag === void 0 ? 'dialog' : _ref$tag,
8950
8956
  title = _ref.title,
8951
- props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
8957
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
8952
8958
  var _useScreenSize = useScreenSize(),
8953
8959
  rankedSize = _useScreenSize.rankedSize;
8954
8960
  var modalProps = useMemo(function () {
@@ -9197,7 +9203,7 @@ function Paginator(props) {
9197
9203
  }
9198
9204
  Paginator.defaultProps = {};
9199
9205
 
9200
- var _excluded$8 = ["boundaryCount", "count", "currentPage", "disabled", "hideNextButton", "hidePrevButton", "onChange", "page", "siblingCount", "maxLength"];
9206
+ var _excluded$9 = ["boundaryCount", "count", "currentPage", "disabled", "hideNextButton", "hidePrevButton", "onChange", "page", "siblingCount", "maxLength"];
9201
9207
  function usePagination(props) {
9202
9208
  var _ref;
9203
9209
  if (props === void 0) {
@@ -9221,7 +9227,7 @@ function usePagination(props) {
9221
9227
  _props$siblingCount = _props.siblingCount,
9222
9228
  siblingCount = _props$siblingCount === void 0 ? 1 : _props$siblingCount,
9223
9229
  maxLength = _props.maxLength,
9224
- other = _objectWithoutPropertiesLoose(_props, _excluded$8);
9230
+ other = _objectWithoutPropertiesLoose(_props, _excluded$9);
9225
9231
  var isControlledRef = useRef(pageProp !== undefined);
9226
9232
  var _useState = useState(currentPage),
9227
9233
  pageCurrent = _useState[0],
@@ -9313,7 +9319,7 @@ var ThreeDots = function ThreeDots() {
9313
9319
  }));
9314
9320
  };
9315
9321
 
9316
- var _excluded$9 = ["page", "type", "selected"];
9322
+ var _excluded$a = ["page", "type", "selected"];
9317
9323
  var rootClassName$2l = 'pagination-component';
9318
9324
  var Pagination = function Pagination(props) {
9319
9325
  var _useScreenSize = useScreenSize(),
@@ -9439,7 +9445,7 @@ var Pagination = function Pagination(props) {
9439
9445
  var page = _ref2.page,
9440
9446
  type = _ref2.type,
9441
9447
  selected = _ref2.selected,
9442
- item = _objectWithoutPropertiesLoose(_ref2, _excluded$9);
9448
+ item = _objectWithoutPropertiesLoose(_ref2, _excluded$a);
9443
9449
  var children = null;
9444
9450
  if (type === 'start-ellipsis' || type === 'end-ellipsis') {
9445
9451
  children = React.createElement("li", {
@@ -10632,7 +10638,7 @@ ActionsColumn.defaultProps = {
10632
10638
  buttons: []
10633
10639
  };
10634
10640
 
10635
- var _excluded$a = ["columns", "lines", "onSort", "confirmSort", "sortable", "upperHeader", "className"];
10641
+ var _excluded$b = ["columns", "lines", "onSort", "confirmSort", "sortable", "upperHeader", "className"];
10636
10642
  var rootClassName$2u = 'component-table';
10637
10643
  function TypedTable(props) {
10638
10644
  return React.createElement(Table, Object.assign({}, props));
@@ -10645,7 +10651,7 @@ function Table(_ref) {
10645
10651
  sortable = _ref.sortable,
10646
10652
  upperHeader = _ref.upperHeader,
10647
10653
  className = _ref.className,
10648
- props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
10654
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
10649
10655
  var itemsId = useMemo(function () {
10650
10656
  return "table" + getUniqueKey();
10651
10657
  }, []);
@@ -10723,7 +10729,7 @@ function Table(_ref) {
10723
10729
  var columnProps = (_columns$valueIndex$p = (_columns$valueIndex = columns[valueIndex]) === null || _columns$valueIndex === void 0 ? void 0 : _columns$valueIndex.props) != null ? _columns$valueIndex$p : {};
10724
10730
  return React.createElement("td", Object.assign({
10725
10731
  key: cell && cell.key ? cell.key : valueIndex
10726
- }, columnProps, cell && cell.props ? cell.props : {}), cell);
10732
+ }, columnProps, cell && cell.props && !React.isValidElement(cell) ? cell.props : {}), cell);
10727
10733
  }), React.createElement("td", null));
10728
10734
  }) : undefined))));
10729
10735
  }
@@ -11221,13 +11227,13 @@ function TextEditorColorPicker(props) {
11221
11227
  }, "OK")));
11222
11228
  }
11223
11229
 
11224
- var _excluded$b = ["icon", "active"];
11230
+ var _excluded$c = ["icon", "active"];
11225
11231
  var rootClassName$2C = 'text-editor-header-button';
11226
11232
  function TextEditorHeaderButton(_ref) {
11227
11233
  var _props$className;
11228
11234
  var icon = _ref.icon,
11229
11235
  active = _ref.active,
11230
- props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
11236
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
11231
11237
  return React.createElement("button", Object.assign({
11232
11238
  className: getMergedClassNames([rootClassName$2C, active ? 'active' : '', (_props$className = props.className) != null ? _props$className : ''])
11233
11239
  }, props), icon);
@@ -12085,7 +12091,7 @@ TopLoader.defaultProps = {
12085
12091
  })
12086
12092
  };
12087
12093
 
12088
- var _excluded$c = ["className", "id", "mobileOn", "modalKey", "onClose", "preventEscExit", "preventMaskExit", "size", "tag", "urlVideo", "videoPlayerProps"];
12094
+ var _excluded$d = ["className", "id", "mobileOn", "modalKey", "onClose", "preventEscExit", "preventMaskExit", "size", "tag", "urlVideo", "videoPlayerProps"];
12089
12095
  var rootClassName$2M = 'video-modal';
12090
12096
  function VideoModal(_ref) {
12091
12097
  var _ref2;
@@ -12099,7 +12105,7 @@ function VideoModal(_ref) {
12099
12105
  tag = _ref$tag === void 0 ? 'dialog' : _ref$tag,
12100
12106
  urlVideo = _ref.urlVideo,
12101
12107
  videoPlayerProps = _ref.videoPlayerProps,
12102
- props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
12108
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
12103
12109
  var _useScreenSize = useScreenSize(),
12104
12110
  rankedSize = _useScreenSize.rankedSize;
12105
12111
  var handleClose = useCallback(function () {
@@ -12370,7 +12376,7 @@ function CalendarDays(props) {
12370
12376
  }
12371
12377
  var CalendarDays$1 = memo(CalendarDays);
12372
12378
 
12373
- var _excluded$d = ["language", "visao", "referencia"];
12379
+ var _excluded$e = ["language", "visao", "referencia"];
12374
12380
  var rootClassName$2T = 'calendar';
12375
12381
  function Calendar(_ref) {
12376
12382
  var _ref$language = _ref.language,
@@ -12379,7 +12385,7 @@ function Calendar(_ref) {
12379
12385
  visao = _ref$visao === void 0 ? CalendarView.Mensal : _ref$visao,
12380
12386
  _ref$referencia = _ref.referencia,
12381
12387
  referencia = _ref$referencia === void 0 ? new Date() : _ref$referencia,
12382
- props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
12388
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
12383
12389
  var id = useMemo(getUniqueKey, []);
12384
12390
  var _useState = useState(false),
12385
12391
  pocket = _useState[0],
@@ -44177,17 +44183,17 @@ function usePublicMenuList(props) {
44177
44183
  }
44178
44184
 
44179
44185
  function FormattedText(text) {
44180
- var _text$tag, _text$props;
44181
- var _final = typeof text === 'string' ? text : text.text;
44186
+ var _text$text, _text$tag, _text$props;
44187
+ var _final = typeof text === 'string' ? text : (_text$text = text.text) != null ? _text$text : '';
44182
44188
  var tag = typeof text === 'string' ? 'span' : (_text$tag = text.tag) != null ? _text$tag : 'span';
44183
44189
  var props = typeof text === 'string' ? {} : (_text$props = text.props) != null ? _text$props : {};
44190
+ _final = _final.replaceAll(/_([^_]*)_/g, '<i>$1</i>').replaceAll(/\*([^*]*)\*/g, '<b>$1</b>').replaceAll(/~([^~]*)~/g, '<del>$1</del>');
44184
44191
  for (var _len = arguments.length, replacers = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
44185
44192
  replacers[_key - 1] = arguments[_key];
44186
44193
  }
44187
44194
  replacers.forEach(function (s, i) {
44188
44195
  _final = _final.replaceAll("#" + (i + 1) + "#", s);
44189
44196
  });
44190
- _final = _final.replaceAll(/_([^_]*)_/g, '<i>$1</i>').replaceAll(/\*([^*]*)\*/g, '<b>$1</b>').replaceAll(/~([^~]*)~/g, '<del>$1</del>');
44191
44197
  return React.createElement(tag, _extends({}, props, {
44192
44198
  dangerouslySetInnerHTML: {
44193
44199
  __html: DOMPurify.sanitize(_final)
@@ -44259,7 +44265,7 @@ var LeftControlWithLabel = function LeftControlWithLabel(props) {
44259
44265
  }), props.label));
44260
44266
  };
44261
44267
 
44262
- var _excluded$e = ["disabled", "language", "onConfirm", "showIcons"],
44268
+ var _excluded$f = ["disabled", "language", "onConfirm", "showIcons"],
44263
44269
  _excluded2 = ["disabled", "language", "onCancel", "onConfirm", "showIcons"],
44264
44270
  _excluded3 = ["disabled", "language", "onCancel", "onConfirm", "showIcons"];
44265
44271
  function AlertModal(_ref) {
@@ -44269,7 +44275,7 @@ function AlertModal(_ref) {
44269
44275
  onConfirm = _ref.onConfirm,
44270
44276
  _ref$showIcons = _ref.showIcons,
44271
44277
  showIcons = _ref$showIcons === void 0 ? true : _ref$showIcons,
44272
- props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
44278
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$f);
44273
44279
  var _useState = useState(false),
44274
44280
  loading = _useState[0],
44275
44281
  setLoading = _useState[1];