plataforma-fundacao-componentes 2.26.9 → 2.26.10
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 +1108 -12
- package/dist/components/col/Col.stories.d.ts +1 -0
- package/dist/components/hourEvents/HourEvents.d.ts +3 -2
- package/dist/components/row/Row.d.ts +1082 -5
- package/dist/components/switch/Switch.d.ts +7 -16
- package/dist/components/switch/Switch.stories.d.ts +6 -9
- package/dist/index.css +178 -142
- package/dist/index.js +135 -114
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +135 -114
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -7034,37 +7034,51 @@ Checkbox.defaultProps = {
|
|
|
7034
7034
|
};
|
|
7035
7035
|
var Checkbox$1 = memo(Checkbox);
|
|
7036
7036
|
|
|
7037
|
+
var _excluded$8 = ["cols", "xs", "sm", "md", "lg", "xl", "centralized", "end", "padding", "noPaddingTop", "buttonActionsCol", "gap", "children", "className", "style", "fullfill", "tag"];
|
|
7037
7038
|
var rootClassName$1T = 'component-col';
|
|
7038
|
-
function Col(
|
|
7039
|
-
var
|
|
7040
|
-
|
|
7041
|
-
|
|
7042
|
-
|
|
7043
|
-
|
|
7044
|
-
|
|
7045
|
-
|
|
7046
|
-
|
|
7047
|
-
|
|
7048
|
-
|
|
7049
|
-
|
|
7050
|
-
|
|
7051
|
-
|
|
7052
|
-
|
|
7053
|
-
|
|
7054
|
-
|
|
7055
|
-
|
|
7056
|
-
|
|
7057
|
-
|
|
7058
|
-
|
|
7059
|
-
|
|
7060
|
-
|
|
7039
|
+
function Col(_ref) {
|
|
7040
|
+
var cols = _ref.cols,
|
|
7041
|
+
xs = _ref.xs,
|
|
7042
|
+
sm = _ref.sm,
|
|
7043
|
+
md = _ref.md,
|
|
7044
|
+
lg = _ref.lg,
|
|
7045
|
+
xl = _ref.xl,
|
|
7046
|
+
centralized = _ref.centralized,
|
|
7047
|
+
end = _ref.end,
|
|
7048
|
+
padding = _ref.padding,
|
|
7049
|
+
noPaddingTop = _ref.noPaddingTop,
|
|
7050
|
+
buttonActionsCol = _ref.buttonActionsCol,
|
|
7051
|
+
gap = _ref.gap,
|
|
7052
|
+
children = _ref.children,
|
|
7053
|
+
_ref$className = _ref.className,
|
|
7054
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
7055
|
+
_ref$style = _ref.style,
|
|
7056
|
+
style = _ref$style === void 0 ? {} : _ref$style,
|
|
7057
|
+
_ref$fullfill = _ref.fullfill,
|
|
7058
|
+
fullfill = _ref$fullfill === void 0 ? false : _ref$fullfill,
|
|
7059
|
+
_ref$tag = _ref.tag,
|
|
7060
|
+
tag = _ref$tag === void 0 ? 'div' : _ref$tag,
|
|
7061
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
|
|
7062
|
+
var sizeClasses = useMemo(function () {
|
|
7063
|
+
if (cols) {
|
|
7064
|
+
var columns = cols ? cols : [12, 12, 12, 12, 12];
|
|
7065
|
+
var sizes = ['xs', 'sm', 'md', 'lg', 'xl'];
|
|
7066
|
+
return columns.map(function (n, index) {
|
|
7067
|
+
return rootClassName$1T + "-" + sizes[index] + "-" + n;
|
|
7068
|
+
});
|
|
7069
|
+
} else {
|
|
7070
|
+
return [xs && rootClassName$1T + "-xs-" + xs, sm && rootClassName$1T + "-sm-" + sm, md && rootClassName$1T + "-md-" + md, lg && rootClassName$1T + "-lg-" + lg, xl && rootClassName$1T + "-xl-" + xl];
|
|
7071
|
+
}
|
|
7072
|
+
}, [cols, lg, md, sm, xl, xs]);
|
|
7073
|
+
var classNames = useMergedClassNames([rootClassName$1T, className].concat(sizeClasses, [centralized ? 'centralized' : '', end ? 'end' : '', noPaddingTop ? 'no-padding-top' : '', buttonActionsCol ? 'button-actions-col' : '', fullfill ? 'fullfill' : '']));
|
|
7074
|
+
return createElement(tag, _extends({}, props, {
|
|
7075
|
+
className: classNames,
|
|
7076
|
+
style: _extends({}, style, {
|
|
7077
|
+
gap: gap,
|
|
7078
|
+
padding: padding
|
|
7079
|
+
})
|
|
7080
|
+
}), children);
|
|
7061
7081
|
}
|
|
7062
|
-
Col.defaultProps = {
|
|
7063
|
-
cols: [12, 12, 12, 12, 12],
|
|
7064
|
-
centralized: false,
|
|
7065
|
-
end: false,
|
|
7066
|
-
noPadding: false
|
|
7067
|
-
};
|
|
7068
7082
|
var Col$1 = memo(Col);
|
|
7069
7083
|
|
|
7070
7084
|
var OS;
|
|
@@ -7121,7 +7135,7 @@ function useSystemInfo() {
|
|
|
7121
7135
|
};
|
|
7122
7136
|
}
|
|
7123
7137
|
|
|
7124
|
-
var _excluded$
|
|
7138
|
+
var _excluded$9 = ["position", "fluid", "verticalPadding", "hasMobileButton", "hasHeader", "hasAdvancedHeader", "horizontalPadding", "className", "style", "insiderProps"];
|
|
7125
7139
|
var rootClassName$1U = 'component-container';
|
|
7126
7140
|
function Container(_ref) {
|
|
7127
7141
|
var _insiderProps$classNa;
|
|
@@ -7144,7 +7158,7 @@ function Container(_ref) {
|
|
|
7144
7158
|
style = _ref$style === void 0 ? {} : _ref$style,
|
|
7145
7159
|
_ref$insiderProps = _ref.insiderProps,
|
|
7146
7160
|
insiderProps = _ref$insiderProps === void 0 ? {} : _ref$insiderProps,
|
|
7147
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7161
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
|
|
7148
7162
|
var mobile = useSystemInfo().isMobile;
|
|
7149
7163
|
var classNames = useMergedClassNames([rootClassName$1U, className, fluid ? 'fluid' : '', verticalPadding ? 'vertical-padding' : '', hasMobileButton ? 'has-mobile-button' : '', hasHeader ? 'has-header' : '', hasAdvancedHeader ? 'has-advanced-header' : '', mobile ? 'mobile' : '']);
|
|
7150
7164
|
var insiderClassNames = useMergedClassNames([rootClassName$1U + "-insider", horizontalPadding ? 'horizontal-padding' : '', (_insiderProps$classNa = insiderProps.className) != null ? _insiderProps$classNa : '']);
|
|
@@ -7159,7 +7173,7 @@ function Container(_ref) {
|
|
|
7159
7173
|
}
|
|
7160
7174
|
var Container$1 = memo(Container);
|
|
7161
7175
|
|
|
7162
|
-
var _excluded$
|
|
7176
|
+
var _excluded$a = ["control", "labelPosition", "labelGap", "label", "className"];
|
|
7163
7177
|
var rootClassName$1V = 'component-control-label';
|
|
7164
7178
|
function ControlLabel(_ref) {
|
|
7165
7179
|
var _control$props;
|
|
@@ -7168,7 +7182,7 @@ function ControlLabel(_ref) {
|
|
|
7168
7182
|
labelGap = _ref.labelGap,
|
|
7169
7183
|
label = _ref.label,
|
|
7170
7184
|
className = _ref.className,
|
|
7171
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7185
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
|
|
7172
7186
|
var ref = useRef();
|
|
7173
7187
|
return React.createElement("label", Object.assign({}, props, {
|
|
7174
7188
|
className: getMergedClassNames([className, rootClassName$1V, labelPosition ? labelPosition : '', (_control$props = control.props) !== null && _control$props !== void 0 && _control$props.disabled ? 'disabled' : '']),
|
|
@@ -7400,7 +7414,7 @@ function DatePickerCalendar(props) {
|
|
|
7400
7414
|
}
|
|
7401
7415
|
var DatePickerCalendar$1 = memo(DatePickerCalendar);
|
|
7402
7416
|
|
|
7403
|
-
var _excluded$
|
|
7417
|
+
var _excluded$b = ["language"];
|
|
7404
7418
|
var rootClassName$1X = 'component-date-picker';
|
|
7405
7419
|
function DatePicker(_ref) {
|
|
7406
7420
|
var _ref$language = _ref.language,
|
|
@@ -7410,7 +7424,7 @@ function DatePicker(_ref) {
|
|
|
7410
7424
|
months: ['Janeiro', 'Fevereiro', 'Março', 'Abril', 'Maio', 'Junho', 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro'],
|
|
7411
7425
|
monthsAbrev: ['jan', 'fev', 'mar', 'abr', 'mai', 'jun', 'jul', 'ago', 'set', 'out', 'nov', 'dez']
|
|
7412
7426
|
} : _ref$language,
|
|
7413
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7427
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
|
|
7414
7428
|
var id = useMemo(function () {
|
|
7415
7429
|
return "picker_" + getUniqueKey();
|
|
7416
7430
|
}, []);
|
|
@@ -7548,11 +7562,11 @@ DatePicker.defaultProps = {
|
|
|
7548
7562
|
};
|
|
7549
7563
|
var DatePicker$1 = memo(DatePicker);
|
|
7550
7564
|
|
|
7551
|
-
var _excluded$
|
|
7565
|
+
var _excluded$c = ["showLabel"];
|
|
7552
7566
|
var rootClassName$1Y = 'component-doughnut';
|
|
7553
7567
|
function Doughnut(_ref) {
|
|
7554
7568
|
var showLabel = _ref.showLabel,
|
|
7555
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7569
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
|
|
7556
7570
|
var _useProgressiveCount = useProgressiveCount(),
|
|
7557
7571
|
val = _useProgressiveCount[0],
|
|
7558
7572
|
setVal = _useProgressiveCount[1];
|
|
@@ -7736,7 +7750,7 @@ function useOutsideClick(refs, handler, options) {
|
|
|
7736
7750
|
}, [refs, handler, handleClickOutside, (_options3 = options) === null || _options3 === void 0 ? void 0 : _options3.events]);
|
|
7737
7751
|
}
|
|
7738
7752
|
|
|
7739
|
-
var _excluded$
|
|
7753
|
+
var _excluded$d = ["opened", "setOpened", "className", "statedAnchorRef", "matchWidth", "placement", "closeOnEsc", "closeOnOutClick", "style", "fallbackPlacements", "offset", "heightAvaliableCallback"];
|
|
7740
7754
|
var rootClassName$1_ = 'floating-panel';
|
|
7741
7755
|
function FloatingPanel(_ref) {
|
|
7742
7756
|
var opened = _ref.opened,
|
|
@@ -7758,7 +7772,7 @@ function FloatingPanel(_ref) {
|
|
|
7758
7772
|
_ref$offset = _ref.offset,
|
|
7759
7773
|
offset = _ref$offset === void 0 ? 0 : _ref$offset,
|
|
7760
7774
|
heightAvaliableCallback = _ref.heightAvaliableCallback,
|
|
7761
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7775
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
|
|
7762
7776
|
var _useState = useState(),
|
|
7763
7777
|
panelRef = _useState[0],
|
|
7764
7778
|
setPanelRef = _useState[1];
|
|
@@ -7805,7 +7819,7 @@ function FloatingPanel(_ref) {
|
|
|
7805
7819
|
}
|
|
7806
7820
|
var FloatingPanel$1 = memo(FloatingPanel);
|
|
7807
7821
|
|
|
7808
|
-
var _excluded$
|
|
7822
|
+
var _excluded$e = ["opened", "setOpened", "content", "closeOnEsc", "closeOnOutClick", "children", "panelProps", "removePadding"];
|
|
7809
7823
|
var rootClassName$1$ = 'component-dropdown-menu';
|
|
7810
7824
|
function DropdownMenu(_ref) {
|
|
7811
7825
|
var _panelProps$className;
|
|
@@ -7818,7 +7832,7 @@ function DropdownMenu(_ref) {
|
|
|
7818
7832
|
_ref$panelProps = _ref.panelProps,
|
|
7819
7833
|
panelProps = _ref$panelProps === void 0 ? {} : _ref$panelProps,
|
|
7820
7834
|
removePadding = _ref.removePadding,
|
|
7821
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7835
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
|
|
7822
7836
|
var _useState = useState(),
|
|
7823
7837
|
ref = _useState[0],
|
|
7824
7838
|
setRef = _useState[1];
|
|
@@ -8023,7 +8037,7 @@ var EtiquetasStyle;
|
|
|
8023
8037
|
EtiquetasStyle["Yellow"] = "yellow";
|
|
8024
8038
|
})(EtiquetasStyle || (EtiquetasStyle = {}));
|
|
8025
8039
|
|
|
8026
|
-
var _excluded$
|
|
8040
|
+
var _excluded$f = ["theme", "label", "icon", "fitContent"];
|
|
8027
8041
|
var rootClassName$22 = 'component-etiqueta';
|
|
8028
8042
|
function Etiqueta(_ref) {
|
|
8029
8043
|
var _ref$theme = _ref.theme,
|
|
@@ -8031,7 +8045,7 @@ function Etiqueta(_ref) {
|
|
|
8031
8045
|
label = _ref.label,
|
|
8032
8046
|
icon = _ref.icon,
|
|
8033
8047
|
fitContent = _ref.fitContent,
|
|
8034
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
8048
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$f);
|
|
8035
8049
|
return React.createElement("div", Object.assign({}, props, {
|
|
8036
8050
|
className: getMergedClassNames([rootClassName$22, theme, fitContent ? 'fit-content' : undefined])
|
|
8037
8051
|
}), icon ? React.createElement("div", {
|
|
@@ -8221,21 +8235,31 @@ FileUpload.defaultProps = {
|
|
|
8221
8235
|
error: false
|
|
8222
8236
|
};
|
|
8223
8237
|
|
|
8238
|
+
var _excluded$g = ["tag", "centralized", "columnDirection", "className", "verticalMargin", "children", "style"];
|
|
8224
8239
|
var rootClassName$25 = 'component-row';
|
|
8225
|
-
function Row(
|
|
8226
|
-
var
|
|
8227
|
-
|
|
8228
|
-
|
|
8229
|
-
|
|
8230
|
-
|
|
8231
|
-
|
|
8232
|
-
|
|
8233
|
-
|
|
8234
|
-
|
|
8240
|
+
function Row(_ref) {
|
|
8241
|
+
var _style$marginTop;
|
|
8242
|
+
var _ref$tag = _ref.tag,
|
|
8243
|
+
tag = _ref$tag === void 0 ? 'div' : _ref$tag,
|
|
8244
|
+
_ref$centralized = _ref.centralized,
|
|
8245
|
+
centralized = _ref$centralized === void 0 ? false : _ref$centralized,
|
|
8246
|
+
columnDirection = _ref.columnDirection,
|
|
8247
|
+
_ref$className = _ref.className,
|
|
8248
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
8249
|
+
verticalMargin = _ref.verticalMargin,
|
|
8250
|
+
children = _ref.children,
|
|
8251
|
+
_ref$style = _ref.style,
|
|
8252
|
+
style = _ref$style === void 0 ? {} : _ref$style,
|
|
8253
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$g);
|
|
8254
|
+
var classNames = useMergedClassNames([rootClassName$25, centralized ? 'centralized' : '', columnDirection ? 'column' : '', className]);
|
|
8255
|
+
return createElement(tag, _extends({
|
|
8256
|
+
className: classNames,
|
|
8257
|
+
style: _extends({}, style, {
|
|
8258
|
+
marginTop: verticalMargin !== null && verticalMargin !== void 0 && verticalMargin[0] ? (verticalMargin === null || verticalMargin === void 0 ? void 0 : verticalMargin[0]) + "px" : (_style$marginTop = style.marginTop) != null ? _style$marginTop : undefined,
|
|
8259
|
+
marginBottom: verticalMargin !== null && verticalMargin !== void 0 && verticalMargin[1] ? (verticalMargin === null || verticalMargin === void 0 ? void 0 : verticalMargin[1]) + "px" : style.marginBottom
|
|
8260
|
+
})
|
|
8261
|
+
}, props), children);
|
|
8235
8262
|
}
|
|
8236
|
-
Row.defaultProps = {
|
|
8237
|
-
centralized: false
|
|
8238
|
-
};
|
|
8239
8263
|
var Row$1 = memo(Row);
|
|
8240
8264
|
|
|
8241
8265
|
var rootClassName$26 = 'footer-sicredi';
|
|
@@ -8400,12 +8424,12 @@ function FooterSicredi(props) {
|
|
|
8400
8424
|
}
|
|
8401
8425
|
var FooterSicredi$1 = memo(FooterSicredi);
|
|
8402
8426
|
|
|
8403
|
-
var _excluded$
|
|
8427
|
+
var _excluded$h = ["header", "footer"];
|
|
8404
8428
|
var rootClassName$27 = 'full-height-container';
|
|
8405
8429
|
function FullHeightContainer(_ref) {
|
|
8406
8430
|
var header = _ref.header,
|
|
8407
8431
|
footer = _ref.footer,
|
|
8408
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
8432
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
|
|
8409
8433
|
var headerRef = createRef();
|
|
8410
8434
|
var contentRef = createRef();
|
|
8411
8435
|
var footerRef = createRef();
|
|
@@ -8647,7 +8671,7 @@ InputArea.defaultProps = {
|
|
|
8647
8671
|
};
|
|
8648
8672
|
var InputArea$1 = memo(InputArea);
|
|
8649
8673
|
|
|
8650
|
-
var _excluded$
|
|
8674
|
+
var _excluded$i = ["label", "opened", "setOpened", "closeOnOutClick", "closeOnEsc", "downloads"];
|
|
8651
8675
|
var rootClassName$2d = 'component-item-dropdown-download';
|
|
8652
8676
|
function ItemDropdownDownload(_ref) {
|
|
8653
8677
|
var label = _ref.label,
|
|
@@ -8655,7 +8679,7 @@ function ItemDropdownDownload(_ref) {
|
|
|
8655
8679
|
setOpened = _ref.setOpened,
|
|
8656
8680
|
_ref$downloads = _ref.downloads,
|
|
8657
8681
|
downloads = _ref$downloads === void 0 ? [] : _ref$downloads,
|
|
8658
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
8682
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
|
|
8659
8683
|
var _useState = useState(null),
|
|
8660
8684
|
ref = _useState[0],
|
|
8661
8685
|
setRef = _useState[1];
|
|
@@ -8976,7 +9000,7 @@ function useScreenSize() {
|
|
|
8976
9000
|
return value;
|
|
8977
9001
|
}
|
|
8978
9002
|
|
|
8979
|
-
var _excluded$
|
|
9003
|
+
var _excluded$j = ["className", "compenseColPaddingContent", "footer", "id", "mobileOn", "modalKey", "onClose", "preventEscExit", "preventMaskExit", "size", "tag", "title"];
|
|
8980
9004
|
var rootClassName$2g = 'component-modal';
|
|
8981
9005
|
function Modal(_ref) {
|
|
8982
9006
|
var className = _ref.className,
|
|
@@ -8990,7 +9014,7 @@ function Modal(_ref) {
|
|
|
8990
9014
|
_ref$tag = _ref.tag,
|
|
8991
9015
|
tag = _ref$tag === void 0 ? 'dialog' : _ref$tag,
|
|
8992
9016
|
title = _ref.title,
|
|
8993
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
9017
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
|
|
8994
9018
|
var _useScreenSize = useScreenSize(),
|
|
8995
9019
|
rankedSize = _useScreenSize.rankedSize;
|
|
8996
9020
|
var modalProps = useMemo(function () {
|
|
@@ -9163,7 +9187,7 @@ PageSubTitle.defaultProps = {
|
|
|
9163
9187
|
text: ''
|
|
9164
9188
|
};
|
|
9165
9189
|
|
|
9166
|
-
var _excluded$
|
|
9190
|
+
var _excluded$k = ["boundaryCount", "count", "currentPage", "disabled", "hideNextButton", "hidePrevButton", "onChange", "page", "siblingCount", "maxLength"];
|
|
9167
9191
|
function usePagination(props) {
|
|
9168
9192
|
var _ref;
|
|
9169
9193
|
if (props === void 0) {
|
|
@@ -9187,7 +9211,7 @@ function usePagination(props) {
|
|
|
9187
9211
|
_props$siblingCount = _props.siblingCount,
|
|
9188
9212
|
siblingCount = _props$siblingCount === void 0 ? 1 : _props$siblingCount,
|
|
9189
9213
|
maxLength = _props.maxLength,
|
|
9190
|
-
other = _objectWithoutPropertiesLoose(_props, _excluded$
|
|
9214
|
+
other = _objectWithoutPropertiesLoose(_props, _excluded$k);
|
|
9191
9215
|
var isControlledRef = useRef(pageProp !== undefined);
|
|
9192
9216
|
var _useState = useState(currentPage),
|
|
9193
9217
|
pageCurrent = _useState[0],
|
|
@@ -9279,7 +9303,7 @@ var ThreeDots = function ThreeDots() {
|
|
|
9279
9303
|
}));
|
|
9280
9304
|
};
|
|
9281
9305
|
|
|
9282
|
-
var _excluded$
|
|
9306
|
+
var _excluded$l = ["page", "type", "selected"];
|
|
9283
9307
|
var rootClassName$2k = 'pagination-component';
|
|
9284
9308
|
var Pagination = function Pagination(props) {
|
|
9285
9309
|
var _useScreenSize = useScreenSize(),
|
|
@@ -9354,7 +9378,7 @@ var Pagination = function Pagination(props) {
|
|
|
9354
9378
|
return React.createElement(Row$1, {
|
|
9355
9379
|
className: getMergedClassNames([rootClassName$2k, countPages ? 'hasLeftItem' : '', countPages || rowsPerPage ? 'oneOf' : ''])
|
|
9356
9380
|
}, countPages || rowsPerPage ? React.createElement(Col$1, {
|
|
9357
|
-
|
|
9381
|
+
padding: 0,
|
|
9358
9382
|
cols: rowsPerPage && countPages ? [12, 12, 6, 6, 6] : rowsPerPage || countPages ? [12, 6, 6, 6, 6] : [12, 12, 12, 12, 12]
|
|
9359
9383
|
}, countPages || rowsPerPage ? React.createElement("div", {
|
|
9360
9384
|
className: getMergedClassNames(['paginationLeftContainer', 'nunito', countPages && rowsPerPage ? 'both' : countPages || rowsPerPage ? 'oneOf' : ''])
|
|
@@ -9397,7 +9421,7 @@ var Pagination = function Pagination(props) {
|
|
|
9397
9421
|
}, React.createElement("p", {
|
|
9398
9422
|
className: 'nunito'
|
|
9399
9423
|
}, rowsPerPage && rows, " "), React.createElement(ChevronArrowDownIcon, null)))))) : undefined) : undefined) : undefined, React.createElement(Col$1, {
|
|
9400
|
-
|
|
9424
|
+
padding: 0,
|
|
9401
9425
|
cols: rowsPerPage && countPages ? [12, 12, 6, 6, 6] : rowsPerPage || countPages ? [12, 6, 6, 6, 6] : [12, 12, 12, 12, 12],
|
|
9402
9426
|
centralized: alignCenter,
|
|
9403
9427
|
end: alignEnd
|
|
@@ -9405,7 +9429,7 @@ var Pagination = function Pagination(props) {
|
|
|
9405
9429
|
var page = _ref2.page,
|
|
9406
9430
|
type = _ref2.type,
|
|
9407
9431
|
selected = _ref2.selected,
|
|
9408
|
-
item = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
9432
|
+
item = _objectWithoutPropertiesLoose(_ref2, _excluded$l);
|
|
9409
9433
|
var children = null;
|
|
9410
9434
|
if (type === 'start-ellipsis' || type === 'end-ellipsis') {
|
|
9411
9435
|
children = React.createElement("li", {
|
|
@@ -9746,7 +9770,7 @@ var RadioButtonType;
|
|
|
9746
9770
|
RadioButtonType["New"] = "new";
|
|
9747
9771
|
})(RadioButtonType || (RadioButtonType = {}));
|
|
9748
9772
|
|
|
9749
|
-
var _excluded$
|
|
9773
|
+
var _excluded$m = ["onChange", "value", "className", "theme", "error", "type"];
|
|
9750
9774
|
var rootClassName$2o = 'component-radio-button';
|
|
9751
9775
|
function RadioButton(_ref) {
|
|
9752
9776
|
var onChange = _ref.onChange,
|
|
@@ -9759,7 +9783,7 @@ function RadioButton(_ref) {
|
|
|
9759
9783
|
error = _ref$error === void 0 ? false : _ref$error,
|
|
9760
9784
|
_ref$type = _ref.type,
|
|
9761
9785
|
type = _ref$type === void 0 ? 'button' : _ref$type,
|
|
9762
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
9786
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$m);
|
|
9763
9787
|
var classNames = useMergedClassNames([rootClassName$2o, theme, className]);
|
|
9764
9788
|
return React.createElement("button", Object.assign({}, props, {
|
|
9765
9789
|
type: type,
|
|
@@ -10568,38 +10592,35 @@ Select.defaultProps = {
|
|
|
10568
10592
|
};
|
|
10569
10593
|
var Select$1 = memo(Select);
|
|
10570
10594
|
|
|
10595
|
+
var _excluded$n = ["theme", "value", "onChange", "className", "error"];
|
|
10571
10596
|
var rootClassName$2s = 'component-switch';
|
|
10572
|
-
function Switch(
|
|
10573
|
-
var
|
|
10574
|
-
|
|
10575
|
-
|
|
10576
|
-
|
|
10577
|
-
|
|
10578
|
-
|
|
10579
|
-
|
|
10580
|
-
|
|
10581
|
-
|
|
10582
|
-
|
|
10583
|
-
|
|
10584
|
-
|
|
10585
|
-
|
|
10586
|
-
|
|
10587
|
-
|
|
10588
|
-
|
|
10589
|
-
|
|
10590
|
-
|
|
10597
|
+
function Switch(_ref) {
|
|
10598
|
+
var _ref$theme = _ref.theme,
|
|
10599
|
+
theme = _ref$theme === void 0 ? 'android' : _ref$theme,
|
|
10600
|
+
_ref$value = _ref.value,
|
|
10601
|
+
value = _ref$value === void 0 ? false : _ref$value,
|
|
10602
|
+
onChange = _ref.onChange,
|
|
10603
|
+
_ref$className = _ref.className,
|
|
10604
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
10605
|
+
_ref$error = _ref.error,
|
|
10606
|
+
error = _ref$error === void 0 ? false : _ref$error,
|
|
10607
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
|
|
10608
|
+
var classNames = useMergedClassNames([rootClassName$2s, className, theme]);
|
|
10609
|
+
return React.createElement("button", Object.assign({}, props, {
|
|
10610
|
+
className: classNames,
|
|
10611
|
+
"data-checked": value ? 'true' : 'false',
|
|
10612
|
+
"data-error": error ? 'true' : 'false',
|
|
10613
|
+
onClick: function onClick(event) {
|
|
10614
|
+
return onChange === null || onChange === void 0 ? void 0 : onChange(!value, event);
|
|
10615
|
+
}
|
|
10616
|
+
}), React.createElement("div", {
|
|
10591
10617
|
className: rootClassName$2s + "-track"
|
|
10592
10618
|
}), React.createElement("div", {
|
|
10593
10619
|
className: rootClassName$2s + "-thumb"
|
|
10594
10620
|
}));
|
|
10595
10621
|
}
|
|
10596
|
-
Switch.defaultProps = {
|
|
10597
|
-
disabled: false,
|
|
10598
|
-
value: false,
|
|
10599
|
-
scale: 1
|
|
10600
|
-
};
|
|
10601
10622
|
|
|
10602
|
-
var _excluded$
|
|
10623
|
+
var _excluded$o = ["columns", "lines", "onSort", "confirmSort", "sortable", "upperHeader", "className"];
|
|
10603
10624
|
var rootClassName$2t = 'component-table';
|
|
10604
10625
|
function TypedTable(props) {
|
|
10605
10626
|
return React.createElement(Table, Object.assign({}, props));
|
|
@@ -10612,7 +10633,7 @@ function Table(_ref) {
|
|
|
10612
10633
|
sortable = _ref.sortable,
|
|
10613
10634
|
upperHeader = _ref.upperHeader,
|
|
10614
10635
|
className = _ref.className,
|
|
10615
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
10636
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
|
|
10616
10637
|
var itemsId = useMemo(function () {
|
|
10617
10638
|
return "table" + getUniqueKey();
|
|
10618
10639
|
}, []);
|
|
@@ -11212,13 +11233,13 @@ function TextEditorColorPicker(props) {
|
|
|
11212
11233
|
}, "OK")));
|
|
11213
11234
|
}
|
|
11214
11235
|
|
|
11215
|
-
var _excluded$
|
|
11236
|
+
var _excluded$p = ["icon", "active"];
|
|
11216
11237
|
var rootClassName$2C = 'text-editor-header-button';
|
|
11217
11238
|
function TextEditorHeaderButton(_ref) {
|
|
11218
11239
|
var _props$className;
|
|
11219
11240
|
var icon = _ref.icon,
|
|
11220
11241
|
active = _ref.active,
|
|
11221
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
11242
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
|
|
11222
11243
|
return React.createElement("button", Object.assign({
|
|
11223
11244
|
className: getMergedClassNames([rootClassName$2C, active ? 'active' : '', (_props$className = props.className) != null ? _props$className : ''])
|
|
11224
11245
|
}, props), icon);
|
|
@@ -12077,7 +12098,7 @@ TopLoader.defaultProps = {
|
|
|
12077
12098
|
})
|
|
12078
12099
|
};
|
|
12079
12100
|
|
|
12080
|
-
var _excluded$
|
|
12101
|
+
var _excluded$q = ["className", "id", "mobileOn", "modalKey", "onClose", "preventEscExit", "preventMaskExit", "size", "tag", "urlVideo", "videoPlayerProps"];
|
|
12081
12102
|
var rootClassName$2M = 'video-modal';
|
|
12082
12103
|
function VideoModal(_ref) {
|
|
12083
12104
|
var _ref2;
|
|
@@ -12091,7 +12112,7 @@ function VideoModal(_ref) {
|
|
|
12091
12112
|
tag = _ref$tag === void 0 ? 'dialog' : _ref$tag,
|
|
12092
12113
|
urlVideo = _ref.urlVideo,
|
|
12093
12114
|
videoPlayerProps = _ref.videoPlayerProps,
|
|
12094
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
12115
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
|
|
12095
12116
|
var _useScreenSize = useScreenSize(),
|
|
12096
12117
|
rankedSize = _useScreenSize.rankedSize;
|
|
12097
12118
|
var handleClose = useCallback(function () {
|
|
@@ -12117,12 +12138,12 @@ VideoModal.defaultProps = {
|
|
|
12117
12138
|
size: 'md'
|
|
12118
12139
|
};
|
|
12119
12140
|
|
|
12120
|
-
var _excluded$
|
|
12141
|
+
var _excluded$r = ["className"];
|
|
12121
12142
|
var rootClassName$2N = 'icon-component';
|
|
12122
12143
|
var Bell16Icon = function Bell16Icon(_ref) {
|
|
12123
12144
|
var _ref$className = _ref.className,
|
|
12124
12145
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
12125
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
12146
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$r);
|
|
12126
12147
|
var classNames = useMergedClassNames([rootClassName$2N, className]);
|
|
12127
12148
|
return React.createElement("svg", Object.assign({
|
|
12128
12149
|
width: '16',
|
|
@@ -12139,12 +12160,12 @@ var Bell16Icon = function Bell16Icon(_ref) {
|
|
|
12139
12160
|
}));
|
|
12140
12161
|
};
|
|
12141
12162
|
|
|
12142
|
-
var _excluded$
|
|
12163
|
+
var _excluded$s = ["className"];
|
|
12143
12164
|
var rootClassName$2O = 'icon-component';
|
|
12144
12165
|
var BellIcon = function BellIcon(_ref) {
|
|
12145
12166
|
var _ref$className = _ref.className,
|
|
12146
12167
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
12147
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
12168
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$s);
|
|
12148
12169
|
var classNames = useMergedClassNames([rootClassName$2O, className]);
|
|
12149
12170
|
return React.createElement("svg", Object.assign({
|
|
12150
12171
|
width: '24',
|
|
@@ -12161,12 +12182,12 @@ var BellIcon = function BellIcon(_ref) {
|
|
|
12161
12182
|
}));
|
|
12162
12183
|
};
|
|
12163
12184
|
|
|
12164
|
-
var _excluded$
|
|
12185
|
+
var _excluded$t = ["className"];
|
|
12165
12186
|
var rootClassName$2P = 'icon-component';
|
|
12166
12187
|
var MiniInformationIcon = function MiniInformationIcon(_ref) {
|
|
12167
12188
|
var _ref$className = _ref.className,
|
|
12168
12189
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
12169
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
12190
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$t);
|
|
12170
12191
|
var classNames = useMergedClassNames([rootClassName$2P, className]);
|
|
12171
12192
|
return React.createElement("svg", Object.assign({
|
|
12172
12193
|
viewBox: '0 0 12 12',
|
|
@@ -12442,7 +12463,7 @@ function CalendarDays(props) {
|
|
|
12442
12463
|
}
|
|
12443
12464
|
var CalendarDays$1 = memo(CalendarDays);
|
|
12444
12465
|
|
|
12445
|
-
var _excluded$
|
|
12466
|
+
var _excluded$u = ["language", "visao", "referencia"];
|
|
12446
12467
|
var rootClassName$2X = 'calendar';
|
|
12447
12468
|
function Calendar(_ref) {
|
|
12448
12469
|
var _ref$language = _ref.language,
|
|
@@ -12451,7 +12472,7 @@ function Calendar(_ref) {
|
|
|
12451
12472
|
visao = _ref$visao === void 0 ? CalendarView.Mensal : _ref$visao,
|
|
12452
12473
|
_ref$referencia = _ref.referencia,
|
|
12453
12474
|
referencia = _ref$referencia === void 0 ? new Date() : _ref$referencia,
|
|
12454
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
12475
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$u);
|
|
12455
12476
|
var id = useMemo(getUniqueKey, []);
|
|
12456
12477
|
var _useState = useState(false),
|
|
12457
12478
|
pocket = _useState[0],
|
|
@@ -12891,12 +12912,12 @@ var DecreaseIcon = function DecreaseIcon() {
|
|
|
12891
12912
|
}));
|
|
12892
12913
|
};
|
|
12893
12914
|
|
|
12894
|
-
var _excluded$
|
|
12915
|
+
var _excluded$v = ["type"];
|
|
12895
12916
|
var rootClassName$32 = 'component-table-left-checkbox-with-label';
|
|
12896
12917
|
var LeftControlWithLabel = function LeftControlWithLabel(_ref) {
|
|
12897
12918
|
var _props$spanProps2, _props$spanProps3;
|
|
12898
12919
|
var type = _ref.type,
|
|
12899
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
12920
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$v);
|
|
12900
12921
|
var style = useMemo(function () {
|
|
12901
12922
|
var _props$spanProps$styl, _props$spanProps;
|
|
12902
12923
|
var style = _extends({
|
|
@@ -13018,7 +13039,7 @@ function TooltipElement(_ref) {
|
|
|
13018
13039
|
}))));
|
|
13019
13040
|
}
|
|
13020
13041
|
|
|
13021
|
-
var _excluded$
|
|
13042
|
+
var _excluded$w = ["className", "variant", "color", "focus", "style", "alignment", "format", "dangerouslySetInnerHTML", "children"];
|
|
13022
13043
|
var rootClassName$34 = 'typography';
|
|
13023
13044
|
var Typography = forwardRef(function (_ref, ref) {
|
|
13024
13045
|
var _ref$className = _ref.className,
|
|
@@ -13038,7 +13059,7 @@ var Typography = forwardRef(function (_ref, ref) {
|
|
|
13038
13059
|
} : _ref$format,
|
|
13039
13060
|
dangerouslySetInnerHTML = _ref.dangerouslySetInnerHTML,
|
|
13040
13061
|
children = _ref.children,
|
|
13041
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
13062
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$w);
|
|
13042
13063
|
var classNames = useMergedClassNames([rootClassName$34 + "-tp", focus ? rootClassName$34 + "-focus" : '', color, variant, className]);
|
|
13043
13064
|
var tag = useMemo(function () {
|
|
13044
13065
|
switch (variant) {
|
|
@@ -44576,7 +44597,7 @@ function useValidatedState(validation, initialValue) {
|
|
|
44576
44597
|
return [value, setValue, validation(value)];
|
|
44577
44598
|
}
|
|
44578
44599
|
|
|
44579
|
-
var _excluded$
|
|
44600
|
+
var _excluded$x = ["disabled", "language", "onConfirm", "showIcons"],
|
|
44580
44601
|
_excluded2 = ["disabled", "language", "onCancel", "onConfirm", "showIcons"],
|
|
44581
44602
|
_excluded3 = ["disabled", "language", "onCancel", "onConfirm", "showIcons"];
|
|
44582
44603
|
function AlertModal(_ref) {
|
|
@@ -44586,7 +44607,7 @@ function AlertModal(_ref) {
|
|
|
44586
44607
|
onConfirm = _ref.onConfirm,
|
|
44587
44608
|
_ref$showIcons = _ref.showIcons,
|
|
44588
44609
|
showIcons = _ref$showIcons === void 0 ? true : _ref$showIcons,
|
|
44589
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
44610
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$x);
|
|
44590
44611
|
var _useState = useState(false),
|
|
44591
44612
|
loading = _useState[0],
|
|
44592
44613
|
setLoading = _useState[1];
|