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.js
CHANGED
|
@@ -7027,37 +7027,51 @@ Checkbox.defaultProps = {
|
|
|
7027
7027
|
};
|
|
7028
7028
|
var Checkbox$1 = React.memo(Checkbox);
|
|
7029
7029
|
|
|
7030
|
+
var _excluded$8 = ["cols", "xs", "sm", "md", "lg", "xl", "centralized", "end", "padding", "noPaddingTop", "buttonActionsCol", "gap", "children", "className", "style", "fullfill", "tag"];
|
|
7030
7031
|
var rootClassName$1T = 'component-col';
|
|
7031
|
-
function Col(
|
|
7032
|
-
var
|
|
7033
|
-
|
|
7034
|
-
|
|
7035
|
-
|
|
7036
|
-
|
|
7037
|
-
|
|
7038
|
-
|
|
7039
|
-
|
|
7040
|
-
|
|
7041
|
-
|
|
7042
|
-
|
|
7043
|
-
|
|
7044
|
-
|
|
7045
|
-
|
|
7046
|
-
|
|
7047
|
-
|
|
7048
|
-
|
|
7049
|
-
|
|
7050
|
-
|
|
7051
|
-
|
|
7052
|
-
|
|
7053
|
-
|
|
7032
|
+
function Col(_ref) {
|
|
7033
|
+
var cols = _ref.cols,
|
|
7034
|
+
xs = _ref.xs,
|
|
7035
|
+
sm = _ref.sm,
|
|
7036
|
+
md = _ref.md,
|
|
7037
|
+
lg = _ref.lg,
|
|
7038
|
+
xl = _ref.xl,
|
|
7039
|
+
centralized = _ref.centralized,
|
|
7040
|
+
end = _ref.end,
|
|
7041
|
+
padding = _ref.padding,
|
|
7042
|
+
noPaddingTop = _ref.noPaddingTop,
|
|
7043
|
+
buttonActionsCol = _ref.buttonActionsCol,
|
|
7044
|
+
gap = _ref.gap,
|
|
7045
|
+
children = _ref.children,
|
|
7046
|
+
_ref$className = _ref.className,
|
|
7047
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
7048
|
+
_ref$style = _ref.style,
|
|
7049
|
+
style = _ref$style === void 0 ? {} : _ref$style,
|
|
7050
|
+
_ref$fullfill = _ref.fullfill,
|
|
7051
|
+
fullfill = _ref$fullfill === void 0 ? false : _ref$fullfill,
|
|
7052
|
+
_ref$tag = _ref.tag,
|
|
7053
|
+
tag = _ref$tag === void 0 ? 'div' : _ref$tag,
|
|
7054
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
|
|
7055
|
+
var sizeClasses = React.useMemo(function () {
|
|
7056
|
+
if (cols) {
|
|
7057
|
+
var columns = cols ? cols : [12, 12, 12, 12, 12];
|
|
7058
|
+
var sizes = ['xs', 'sm', 'md', 'lg', 'xl'];
|
|
7059
|
+
return columns.map(function (n, index) {
|
|
7060
|
+
return rootClassName$1T + "-" + sizes[index] + "-" + n;
|
|
7061
|
+
});
|
|
7062
|
+
} else {
|
|
7063
|
+
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];
|
|
7064
|
+
}
|
|
7065
|
+
}, [cols, lg, md, sm, xl, xs]);
|
|
7066
|
+
var classNames = useMergedClassNames([rootClassName$1T, className].concat(sizeClasses, [centralized ? 'centralized' : '', end ? 'end' : '', noPaddingTop ? 'no-padding-top' : '', buttonActionsCol ? 'button-actions-col' : '', fullfill ? 'fullfill' : '']));
|
|
7067
|
+
return React.createElement(tag, _extends({}, props, {
|
|
7068
|
+
className: classNames,
|
|
7069
|
+
style: _extends({}, style, {
|
|
7070
|
+
gap: gap,
|
|
7071
|
+
padding: padding
|
|
7072
|
+
})
|
|
7073
|
+
}), children);
|
|
7054
7074
|
}
|
|
7055
|
-
Col.defaultProps = {
|
|
7056
|
-
cols: [12, 12, 12, 12, 12],
|
|
7057
|
-
centralized: false,
|
|
7058
|
-
end: false,
|
|
7059
|
-
noPadding: false
|
|
7060
|
-
};
|
|
7061
7075
|
var Col$1 = React.memo(Col);
|
|
7062
7076
|
|
|
7063
7077
|
(function (OS) {
|
|
@@ -7112,7 +7126,7 @@ function useSystemInfo() {
|
|
|
7112
7126
|
};
|
|
7113
7127
|
}
|
|
7114
7128
|
|
|
7115
|
-
var _excluded$
|
|
7129
|
+
var _excluded$9 = ["position", "fluid", "verticalPadding", "hasMobileButton", "hasHeader", "hasAdvancedHeader", "horizontalPadding", "className", "style", "insiderProps"];
|
|
7116
7130
|
var rootClassName$1U = 'component-container';
|
|
7117
7131
|
function Container(_ref) {
|
|
7118
7132
|
var _insiderProps$classNa;
|
|
@@ -7135,7 +7149,7 @@ function Container(_ref) {
|
|
|
7135
7149
|
style = _ref$style === void 0 ? {} : _ref$style,
|
|
7136
7150
|
_ref$insiderProps = _ref.insiderProps,
|
|
7137
7151
|
insiderProps = _ref$insiderProps === void 0 ? {} : _ref$insiderProps,
|
|
7138
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7152
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
|
|
7139
7153
|
var mobile = useSystemInfo().isMobile;
|
|
7140
7154
|
var classNames = useMergedClassNames([rootClassName$1U, className, fluid ? 'fluid' : '', verticalPadding ? 'vertical-padding' : '', hasMobileButton ? 'has-mobile-button' : '', hasHeader ? 'has-header' : '', hasAdvancedHeader ? 'has-advanced-header' : '', mobile ? 'mobile' : '']);
|
|
7141
7155
|
var insiderClassNames = useMergedClassNames([rootClassName$1U + "-insider", horizontalPadding ? 'horizontal-padding' : '', (_insiderProps$classNa = insiderProps.className) != null ? _insiderProps$classNa : '']);
|
|
@@ -7150,7 +7164,7 @@ function Container(_ref) {
|
|
|
7150
7164
|
}
|
|
7151
7165
|
var Container$1 = React.memo(Container);
|
|
7152
7166
|
|
|
7153
|
-
var _excluded$
|
|
7167
|
+
var _excluded$a = ["control", "labelPosition", "labelGap", "label", "className"];
|
|
7154
7168
|
var rootClassName$1V = 'component-control-label';
|
|
7155
7169
|
function ControlLabel(_ref) {
|
|
7156
7170
|
var _control$props;
|
|
@@ -7159,7 +7173,7 @@ function ControlLabel(_ref) {
|
|
|
7159
7173
|
labelGap = _ref.labelGap,
|
|
7160
7174
|
label = _ref.label,
|
|
7161
7175
|
className = _ref.className,
|
|
7162
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7176
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
|
|
7163
7177
|
var ref = React.useRef();
|
|
7164
7178
|
return React__default.createElement("label", Object.assign({}, props, {
|
|
7165
7179
|
className: getMergedClassNames([className, rootClassName$1V, labelPosition ? labelPosition : '', (_control$props = control.props) !== null && _control$props !== void 0 && _control$props.disabled ? 'disabled' : '']),
|
|
@@ -7391,7 +7405,7 @@ function DatePickerCalendar(props) {
|
|
|
7391
7405
|
}
|
|
7392
7406
|
var DatePickerCalendar$1 = React.memo(DatePickerCalendar);
|
|
7393
7407
|
|
|
7394
|
-
var _excluded$
|
|
7408
|
+
var _excluded$b = ["language"];
|
|
7395
7409
|
var rootClassName$1X = 'component-date-picker';
|
|
7396
7410
|
function DatePicker(_ref) {
|
|
7397
7411
|
var _ref$language = _ref.language,
|
|
@@ -7401,7 +7415,7 @@ function DatePicker(_ref) {
|
|
|
7401
7415
|
months: ['Janeiro', 'Fevereiro', 'Março', 'Abril', 'Maio', 'Junho', 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro'],
|
|
7402
7416
|
monthsAbrev: ['jan', 'fev', 'mar', 'abr', 'mai', 'jun', 'jul', 'ago', 'set', 'out', 'nov', 'dez']
|
|
7403
7417
|
} : _ref$language,
|
|
7404
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7418
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
|
|
7405
7419
|
var id = React.useMemo(function () {
|
|
7406
7420
|
return "picker_" + getUniqueKey();
|
|
7407
7421
|
}, []);
|
|
@@ -7539,11 +7553,11 @@ DatePicker.defaultProps = {
|
|
|
7539
7553
|
};
|
|
7540
7554
|
var DatePicker$1 = React.memo(DatePicker);
|
|
7541
7555
|
|
|
7542
|
-
var _excluded$
|
|
7556
|
+
var _excluded$c = ["showLabel"];
|
|
7543
7557
|
var rootClassName$1Y = 'component-doughnut';
|
|
7544
7558
|
function Doughnut(_ref) {
|
|
7545
7559
|
var showLabel = _ref.showLabel,
|
|
7546
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7560
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
|
|
7547
7561
|
var _useProgressiveCount = useProgressiveCount(),
|
|
7548
7562
|
val = _useProgressiveCount[0],
|
|
7549
7563
|
setVal = _useProgressiveCount[1];
|
|
@@ -7727,7 +7741,7 @@ function useOutsideClick(refs, handler, options) {
|
|
|
7727
7741
|
}, [refs, handler, handleClickOutside, (_options3 = options) === null || _options3 === void 0 ? void 0 : _options3.events]);
|
|
7728
7742
|
}
|
|
7729
7743
|
|
|
7730
|
-
var _excluded$
|
|
7744
|
+
var _excluded$d = ["opened", "setOpened", "className", "statedAnchorRef", "matchWidth", "placement", "closeOnEsc", "closeOnOutClick", "style", "fallbackPlacements", "offset", "heightAvaliableCallback"];
|
|
7731
7745
|
var rootClassName$1_ = 'floating-panel';
|
|
7732
7746
|
function FloatingPanel(_ref) {
|
|
7733
7747
|
var opened = _ref.opened,
|
|
@@ -7749,7 +7763,7 @@ function FloatingPanel(_ref) {
|
|
|
7749
7763
|
_ref$offset = _ref.offset,
|
|
7750
7764
|
offset = _ref$offset === void 0 ? 0 : _ref$offset,
|
|
7751
7765
|
heightAvaliableCallback = _ref.heightAvaliableCallback,
|
|
7752
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7766
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
|
|
7753
7767
|
var _useState = React.useState(),
|
|
7754
7768
|
panelRef = _useState[0],
|
|
7755
7769
|
setPanelRef = _useState[1];
|
|
@@ -7796,7 +7810,7 @@ function FloatingPanel(_ref) {
|
|
|
7796
7810
|
}
|
|
7797
7811
|
var FloatingPanel$1 = React.memo(FloatingPanel);
|
|
7798
7812
|
|
|
7799
|
-
var _excluded$
|
|
7813
|
+
var _excluded$e = ["opened", "setOpened", "content", "closeOnEsc", "closeOnOutClick", "children", "panelProps", "removePadding"];
|
|
7800
7814
|
var rootClassName$1$ = 'component-dropdown-menu';
|
|
7801
7815
|
function DropdownMenu(_ref) {
|
|
7802
7816
|
var _panelProps$className;
|
|
@@ -7809,7 +7823,7 @@ function DropdownMenu(_ref) {
|
|
|
7809
7823
|
_ref$panelProps = _ref.panelProps,
|
|
7810
7824
|
panelProps = _ref$panelProps === void 0 ? {} : _ref$panelProps,
|
|
7811
7825
|
removePadding = _ref.removePadding,
|
|
7812
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7826
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
|
|
7813
7827
|
var _useState = React.useState(),
|
|
7814
7828
|
ref = _useState[0],
|
|
7815
7829
|
setRef = _useState[1];
|
|
@@ -8013,7 +8027,7 @@ var Etapas$1 = React.memo(Etapas);
|
|
|
8013
8027
|
EtiquetasStyle["Yellow"] = "yellow";
|
|
8014
8028
|
})(exports.EtiquetasStyle || (exports.EtiquetasStyle = {}));
|
|
8015
8029
|
|
|
8016
|
-
var _excluded$
|
|
8030
|
+
var _excluded$f = ["theme", "label", "icon", "fitContent"];
|
|
8017
8031
|
var rootClassName$22 = 'component-etiqueta';
|
|
8018
8032
|
function Etiqueta(_ref) {
|
|
8019
8033
|
var _ref$theme = _ref.theme,
|
|
@@ -8021,7 +8035,7 @@ function Etiqueta(_ref) {
|
|
|
8021
8035
|
label = _ref.label,
|
|
8022
8036
|
icon = _ref.icon,
|
|
8023
8037
|
fitContent = _ref.fitContent,
|
|
8024
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
8038
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$f);
|
|
8025
8039
|
return React__default.createElement("div", Object.assign({}, props, {
|
|
8026
8040
|
className: getMergedClassNames([rootClassName$22, theme, fitContent ? 'fit-content' : undefined])
|
|
8027
8041
|
}), icon ? React__default.createElement("div", {
|
|
@@ -8211,21 +8225,31 @@ FileUpload.defaultProps = {
|
|
|
8211
8225
|
error: false
|
|
8212
8226
|
};
|
|
8213
8227
|
|
|
8228
|
+
var _excluded$g = ["tag", "centralized", "columnDirection", "className", "verticalMargin", "children", "style"];
|
|
8214
8229
|
var rootClassName$25 = 'component-row';
|
|
8215
|
-
function Row(
|
|
8216
|
-
var
|
|
8217
|
-
|
|
8218
|
-
|
|
8219
|
-
|
|
8220
|
-
|
|
8221
|
-
|
|
8222
|
-
|
|
8223
|
-
|
|
8224
|
-
|
|
8230
|
+
function Row(_ref) {
|
|
8231
|
+
var _style$marginTop;
|
|
8232
|
+
var _ref$tag = _ref.tag,
|
|
8233
|
+
tag = _ref$tag === void 0 ? 'div' : _ref$tag,
|
|
8234
|
+
_ref$centralized = _ref.centralized,
|
|
8235
|
+
centralized = _ref$centralized === void 0 ? false : _ref$centralized,
|
|
8236
|
+
columnDirection = _ref.columnDirection,
|
|
8237
|
+
_ref$className = _ref.className,
|
|
8238
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
8239
|
+
verticalMargin = _ref.verticalMargin,
|
|
8240
|
+
children = _ref.children,
|
|
8241
|
+
_ref$style = _ref.style,
|
|
8242
|
+
style = _ref$style === void 0 ? {} : _ref$style,
|
|
8243
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$g);
|
|
8244
|
+
var classNames = useMergedClassNames([rootClassName$25, centralized ? 'centralized' : '', columnDirection ? 'column' : '', className]);
|
|
8245
|
+
return React.createElement(tag, _extends({
|
|
8246
|
+
className: classNames,
|
|
8247
|
+
style: _extends({}, style, {
|
|
8248
|
+
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,
|
|
8249
|
+
marginBottom: verticalMargin !== null && verticalMargin !== void 0 && verticalMargin[1] ? (verticalMargin === null || verticalMargin === void 0 ? void 0 : verticalMargin[1]) + "px" : style.marginBottom
|
|
8250
|
+
})
|
|
8251
|
+
}, props), children);
|
|
8225
8252
|
}
|
|
8226
|
-
Row.defaultProps = {
|
|
8227
|
-
centralized: false
|
|
8228
|
-
};
|
|
8229
8253
|
var Row$1 = React.memo(Row);
|
|
8230
8254
|
|
|
8231
8255
|
var rootClassName$26 = 'footer-sicredi';
|
|
@@ -8390,12 +8414,12 @@ function FooterSicredi(props) {
|
|
|
8390
8414
|
}
|
|
8391
8415
|
var FooterSicredi$1 = React.memo(FooterSicredi);
|
|
8392
8416
|
|
|
8393
|
-
var _excluded$
|
|
8417
|
+
var _excluded$h = ["header", "footer"];
|
|
8394
8418
|
var rootClassName$27 = 'full-height-container';
|
|
8395
8419
|
function FullHeightContainer(_ref) {
|
|
8396
8420
|
var header = _ref.header,
|
|
8397
8421
|
footer = _ref.footer,
|
|
8398
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
8422
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
|
|
8399
8423
|
var headerRef = React.createRef();
|
|
8400
8424
|
var contentRef = React.createRef();
|
|
8401
8425
|
var footerRef = React.createRef();
|
|
@@ -8636,7 +8660,7 @@ InputArea.defaultProps = {
|
|
|
8636
8660
|
};
|
|
8637
8661
|
var InputArea$1 = React.memo(InputArea);
|
|
8638
8662
|
|
|
8639
|
-
var _excluded$
|
|
8663
|
+
var _excluded$i = ["label", "opened", "setOpened", "closeOnOutClick", "closeOnEsc", "downloads"];
|
|
8640
8664
|
var rootClassName$2d = 'component-item-dropdown-download';
|
|
8641
8665
|
function ItemDropdownDownload(_ref) {
|
|
8642
8666
|
var label = _ref.label,
|
|
@@ -8644,7 +8668,7 @@ function ItemDropdownDownload(_ref) {
|
|
|
8644
8668
|
setOpened = _ref.setOpened,
|
|
8645
8669
|
_ref$downloads = _ref.downloads,
|
|
8646
8670
|
downloads = _ref$downloads === void 0 ? [] : _ref$downloads,
|
|
8647
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
8671
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
|
|
8648
8672
|
var _useState = React.useState(null),
|
|
8649
8673
|
ref = _useState[0],
|
|
8650
8674
|
setRef = _useState[1];
|
|
@@ -8964,7 +8988,7 @@ function useScreenSize() {
|
|
|
8964
8988
|
return value;
|
|
8965
8989
|
}
|
|
8966
8990
|
|
|
8967
|
-
var _excluded$
|
|
8991
|
+
var _excluded$j = ["className", "compenseColPaddingContent", "footer", "id", "mobileOn", "modalKey", "onClose", "preventEscExit", "preventMaskExit", "size", "tag", "title"];
|
|
8968
8992
|
var rootClassName$2g = 'component-modal';
|
|
8969
8993
|
function Modal(_ref) {
|
|
8970
8994
|
var className = _ref.className,
|
|
@@ -8978,7 +9002,7 @@ function Modal(_ref) {
|
|
|
8978
9002
|
_ref$tag = _ref.tag,
|
|
8979
9003
|
tag = _ref$tag === void 0 ? 'dialog' : _ref$tag,
|
|
8980
9004
|
title = _ref.title,
|
|
8981
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
9005
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
|
|
8982
9006
|
var _useScreenSize = useScreenSize(),
|
|
8983
9007
|
rankedSize = _useScreenSize.rankedSize;
|
|
8984
9008
|
var modalProps = React.useMemo(function () {
|
|
@@ -9151,7 +9175,7 @@ PageSubTitle.defaultProps = {
|
|
|
9151
9175
|
text: ''
|
|
9152
9176
|
};
|
|
9153
9177
|
|
|
9154
|
-
var _excluded$
|
|
9178
|
+
var _excluded$k = ["boundaryCount", "count", "currentPage", "disabled", "hideNextButton", "hidePrevButton", "onChange", "page", "siblingCount", "maxLength"];
|
|
9155
9179
|
function usePagination(props) {
|
|
9156
9180
|
var _ref;
|
|
9157
9181
|
if (props === void 0) {
|
|
@@ -9175,7 +9199,7 @@ function usePagination(props) {
|
|
|
9175
9199
|
_props$siblingCount = _props.siblingCount,
|
|
9176
9200
|
siblingCount = _props$siblingCount === void 0 ? 1 : _props$siblingCount,
|
|
9177
9201
|
maxLength = _props.maxLength,
|
|
9178
|
-
other = _objectWithoutPropertiesLoose(_props, _excluded$
|
|
9202
|
+
other = _objectWithoutPropertiesLoose(_props, _excluded$k);
|
|
9179
9203
|
var isControlledRef = React.useRef(pageProp !== undefined);
|
|
9180
9204
|
var _useState = React.useState(currentPage),
|
|
9181
9205
|
pageCurrent = _useState[0],
|
|
@@ -9267,7 +9291,7 @@ var ThreeDots = function ThreeDots() {
|
|
|
9267
9291
|
}));
|
|
9268
9292
|
};
|
|
9269
9293
|
|
|
9270
|
-
var _excluded$
|
|
9294
|
+
var _excluded$l = ["page", "type", "selected"];
|
|
9271
9295
|
var rootClassName$2k = 'pagination-component';
|
|
9272
9296
|
var Pagination = function Pagination(props) {
|
|
9273
9297
|
var _useScreenSize = useScreenSize(),
|
|
@@ -9342,7 +9366,7 @@ var Pagination = function Pagination(props) {
|
|
|
9342
9366
|
return React__default.createElement(Row$1, {
|
|
9343
9367
|
className: getMergedClassNames([rootClassName$2k, countPages ? 'hasLeftItem' : '', countPages || rowsPerPage ? 'oneOf' : ''])
|
|
9344
9368
|
}, countPages || rowsPerPage ? React__default.createElement(Col$1, {
|
|
9345
|
-
|
|
9369
|
+
padding: 0,
|
|
9346
9370
|
cols: rowsPerPage && countPages ? [12, 12, 6, 6, 6] : rowsPerPage || countPages ? [12, 6, 6, 6, 6] : [12, 12, 12, 12, 12]
|
|
9347
9371
|
}, countPages || rowsPerPage ? React__default.createElement("div", {
|
|
9348
9372
|
className: getMergedClassNames(['paginationLeftContainer', 'nunito', countPages && rowsPerPage ? 'both' : countPages || rowsPerPage ? 'oneOf' : ''])
|
|
@@ -9385,7 +9409,7 @@ var Pagination = function Pagination(props) {
|
|
|
9385
9409
|
}, React__default.createElement("p", {
|
|
9386
9410
|
className: 'nunito'
|
|
9387
9411
|
}, rowsPerPage && rows, " "), React__default.createElement(ChevronArrowDownIcon, null)))))) : undefined) : undefined) : undefined, React__default.createElement(Col$1, {
|
|
9388
|
-
|
|
9412
|
+
padding: 0,
|
|
9389
9413
|
cols: rowsPerPage && countPages ? [12, 12, 6, 6, 6] : rowsPerPage || countPages ? [12, 6, 6, 6, 6] : [12, 12, 12, 12, 12],
|
|
9390
9414
|
centralized: alignCenter,
|
|
9391
9415
|
end: alignEnd
|
|
@@ -9393,7 +9417,7 @@ var Pagination = function Pagination(props) {
|
|
|
9393
9417
|
var page = _ref2.page,
|
|
9394
9418
|
type = _ref2.type,
|
|
9395
9419
|
selected = _ref2.selected,
|
|
9396
|
-
item = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
9420
|
+
item = _objectWithoutPropertiesLoose(_ref2, _excluded$l);
|
|
9397
9421
|
var children = null;
|
|
9398
9422
|
if (type === 'start-ellipsis' || type === 'end-ellipsis') {
|
|
9399
9423
|
children = React__default.createElement("li", {
|
|
@@ -9733,7 +9757,7 @@ var PreviaVideo$1 = React.memo(PreviaVideo);
|
|
|
9733
9757
|
RadioButtonType["New"] = "new";
|
|
9734
9758
|
})(exports.RadioButtonType || (exports.RadioButtonType = {}));
|
|
9735
9759
|
|
|
9736
|
-
var _excluded$
|
|
9760
|
+
var _excluded$m = ["onChange", "value", "className", "theme", "error", "type"];
|
|
9737
9761
|
var rootClassName$2o = 'component-radio-button';
|
|
9738
9762
|
function RadioButton(_ref) {
|
|
9739
9763
|
var onChange = _ref.onChange,
|
|
@@ -9746,7 +9770,7 @@ function RadioButton(_ref) {
|
|
|
9746
9770
|
error = _ref$error === void 0 ? false : _ref$error,
|
|
9747
9771
|
_ref$type = _ref.type,
|
|
9748
9772
|
type = _ref$type === void 0 ? 'button' : _ref$type,
|
|
9749
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
9773
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$m);
|
|
9750
9774
|
var classNames = useMergedClassNames([rootClassName$2o, theme, className]);
|
|
9751
9775
|
return React__default.createElement("button", Object.assign({}, props, {
|
|
9752
9776
|
type: type,
|
|
@@ -10555,38 +10579,35 @@ Select.defaultProps = {
|
|
|
10555
10579
|
};
|
|
10556
10580
|
var Select$1 = React.memo(Select);
|
|
10557
10581
|
|
|
10582
|
+
var _excluded$n = ["theme", "value", "onChange", "className", "error"];
|
|
10558
10583
|
var rootClassName$2s = 'component-switch';
|
|
10559
|
-
function Switch(
|
|
10560
|
-
var
|
|
10561
|
-
|
|
10562
|
-
|
|
10563
|
-
|
|
10564
|
-
|
|
10565
|
-
|
|
10566
|
-
|
|
10567
|
-
|
|
10568
|
-
|
|
10569
|
-
|
|
10570
|
-
|
|
10571
|
-
|
|
10572
|
-
|
|
10573
|
-
|
|
10574
|
-
|
|
10575
|
-
|
|
10576
|
-
|
|
10577
|
-
|
|
10584
|
+
function Switch(_ref) {
|
|
10585
|
+
var _ref$theme = _ref.theme,
|
|
10586
|
+
theme = _ref$theme === void 0 ? 'android' : _ref$theme,
|
|
10587
|
+
_ref$value = _ref.value,
|
|
10588
|
+
value = _ref$value === void 0 ? false : _ref$value,
|
|
10589
|
+
onChange = _ref.onChange,
|
|
10590
|
+
_ref$className = _ref.className,
|
|
10591
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
10592
|
+
_ref$error = _ref.error,
|
|
10593
|
+
error = _ref$error === void 0 ? false : _ref$error,
|
|
10594
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
|
|
10595
|
+
var classNames = useMergedClassNames([rootClassName$2s, className, theme]);
|
|
10596
|
+
return React__default.createElement("button", Object.assign({}, props, {
|
|
10597
|
+
className: classNames,
|
|
10598
|
+
"data-checked": value ? 'true' : 'false',
|
|
10599
|
+
"data-error": error ? 'true' : 'false',
|
|
10600
|
+
onClick: function onClick(event) {
|
|
10601
|
+
return onChange === null || onChange === void 0 ? void 0 : onChange(!value, event);
|
|
10602
|
+
}
|
|
10603
|
+
}), React__default.createElement("div", {
|
|
10578
10604
|
className: rootClassName$2s + "-track"
|
|
10579
10605
|
}), React__default.createElement("div", {
|
|
10580
10606
|
className: rootClassName$2s + "-thumb"
|
|
10581
10607
|
}));
|
|
10582
10608
|
}
|
|
10583
|
-
Switch.defaultProps = {
|
|
10584
|
-
disabled: false,
|
|
10585
|
-
value: false,
|
|
10586
|
-
scale: 1
|
|
10587
|
-
};
|
|
10588
10609
|
|
|
10589
|
-
var _excluded$
|
|
10610
|
+
var _excluded$o = ["columns", "lines", "onSort", "confirmSort", "sortable", "upperHeader", "className"];
|
|
10590
10611
|
var rootClassName$2t = 'component-table';
|
|
10591
10612
|
function TypedTable(props) {
|
|
10592
10613
|
return React__default.createElement(Table, Object.assign({}, props));
|
|
@@ -10599,7 +10620,7 @@ function Table(_ref) {
|
|
|
10599
10620
|
sortable = _ref.sortable,
|
|
10600
10621
|
upperHeader = _ref.upperHeader,
|
|
10601
10622
|
className = _ref.className,
|
|
10602
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
10623
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
|
|
10603
10624
|
var itemsId = React.useMemo(function () {
|
|
10604
10625
|
return "table" + getUniqueKey();
|
|
10605
10626
|
}, []);
|
|
@@ -11198,13 +11219,13 @@ function TextEditorColorPicker(props) {
|
|
|
11198
11219
|
}, "OK")));
|
|
11199
11220
|
}
|
|
11200
11221
|
|
|
11201
|
-
var _excluded$
|
|
11222
|
+
var _excluded$p = ["icon", "active"];
|
|
11202
11223
|
var rootClassName$2C = 'text-editor-header-button';
|
|
11203
11224
|
function TextEditorHeaderButton(_ref) {
|
|
11204
11225
|
var _props$className;
|
|
11205
11226
|
var icon = _ref.icon,
|
|
11206
11227
|
active = _ref.active,
|
|
11207
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
11228
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
|
|
11208
11229
|
return React__default.createElement("button", Object.assign({
|
|
11209
11230
|
className: getMergedClassNames([rootClassName$2C, active ? 'active' : '', (_props$className = props.className) != null ? _props$className : ''])
|
|
11210
11231
|
}, props), icon);
|
|
@@ -12061,7 +12082,7 @@ TopLoader.defaultProps = {
|
|
|
12061
12082
|
})
|
|
12062
12083
|
};
|
|
12063
12084
|
|
|
12064
|
-
var _excluded$
|
|
12085
|
+
var _excluded$q = ["className", "id", "mobileOn", "modalKey", "onClose", "preventEscExit", "preventMaskExit", "size", "tag", "urlVideo", "videoPlayerProps"];
|
|
12065
12086
|
var rootClassName$2M = 'video-modal';
|
|
12066
12087
|
function VideoModal(_ref) {
|
|
12067
12088
|
var _ref2;
|
|
@@ -12075,7 +12096,7 @@ function VideoModal(_ref) {
|
|
|
12075
12096
|
tag = _ref$tag === void 0 ? 'dialog' : _ref$tag,
|
|
12076
12097
|
urlVideo = _ref.urlVideo,
|
|
12077
12098
|
videoPlayerProps = _ref.videoPlayerProps,
|
|
12078
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
12099
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
|
|
12079
12100
|
var _useScreenSize = useScreenSize(),
|
|
12080
12101
|
rankedSize = _useScreenSize.rankedSize;
|
|
12081
12102
|
var handleClose = React.useCallback(function () {
|
|
@@ -12101,12 +12122,12 @@ VideoModal.defaultProps = {
|
|
|
12101
12122
|
size: 'md'
|
|
12102
12123
|
};
|
|
12103
12124
|
|
|
12104
|
-
var _excluded$
|
|
12125
|
+
var _excluded$r = ["className"];
|
|
12105
12126
|
var rootClassName$2N = 'icon-component';
|
|
12106
12127
|
var Bell16Icon = function Bell16Icon(_ref) {
|
|
12107
12128
|
var _ref$className = _ref.className,
|
|
12108
12129
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
12109
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
12130
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$r);
|
|
12110
12131
|
var classNames = useMergedClassNames([rootClassName$2N, className]);
|
|
12111
12132
|
return React__default.createElement("svg", Object.assign({
|
|
12112
12133
|
width: '16',
|
|
@@ -12123,12 +12144,12 @@ var Bell16Icon = function Bell16Icon(_ref) {
|
|
|
12123
12144
|
}));
|
|
12124
12145
|
};
|
|
12125
12146
|
|
|
12126
|
-
var _excluded$
|
|
12147
|
+
var _excluded$s = ["className"];
|
|
12127
12148
|
var rootClassName$2O = 'icon-component';
|
|
12128
12149
|
var BellIcon = function BellIcon(_ref) {
|
|
12129
12150
|
var _ref$className = _ref.className,
|
|
12130
12151
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
12131
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
12152
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$s);
|
|
12132
12153
|
var classNames = useMergedClassNames([rootClassName$2O, className]);
|
|
12133
12154
|
return React__default.createElement("svg", Object.assign({
|
|
12134
12155
|
width: '24',
|
|
@@ -12145,12 +12166,12 @@ var BellIcon = function BellIcon(_ref) {
|
|
|
12145
12166
|
}));
|
|
12146
12167
|
};
|
|
12147
12168
|
|
|
12148
|
-
var _excluded$
|
|
12169
|
+
var _excluded$t = ["className"];
|
|
12149
12170
|
var rootClassName$2P = 'icon-component';
|
|
12150
12171
|
var MiniInformationIcon = function MiniInformationIcon(_ref) {
|
|
12151
12172
|
var _ref$className = _ref.className,
|
|
12152
12173
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
12153
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
12174
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$t);
|
|
12154
12175
|
var classNames = useMergedClassNames([rootClassName$2P, className]);
|
|
12155
12176
|
return React__default.createElement("svg", Object.assign({
|
|
12156
12177
|
viewBox: '0 0 12 12',
|
|
@@ -12426,7 +12447,7 @@ function CalendarDays(props) {
|
|
|
12426
12447
|
}
|
|
12427
12448
|
var CalendarDays$1 = React.memo(CalendarDays);
|
|
12428
12449
|
|
|
12429
|
-
var _excluded$
|
|
12450
|
+
var _excluded$u = ["language", "visao", "referencia"];
|
|
12430
12451
|
var rootClassName$2X = 'calendar';
|
|
12431
12452
|
function Calendar(_ref) {
|
|
12432
12453
|
var _ref$language = _ref.language,
|
|
@@ -12435,7 +12456,7 @@ function Calendar(_ref) {
|
|
|
12435
12456
|
visao = _ref$visao === void 0 ? CalendarView.Mensal : _ref$visao,
|
|
12436
12457
|
_ref$referencia = _ref.referencia,
|
|
12437
12458
|
referencia = _ref$referencia === void 0 ? new Date() : _ref$referencia,
|
|
12438
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
12459
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$u);
|
|
12439
12460
|
var id = React.useMemo(getUniqueKey, []);
|
|
12440
12461
|
var _useState = React.useState(false),
|
|
12441
12462
|
pocket = _useState[0],
|
|
@@ -12875,12 +12896,12 @@ var DecreaseIcon = function DecreaseIcon() {
|
|
|
12875
12896
|
}));
|
|
12876
12897
|
};
|
|
12877
12898
|
|
|
12878
|
-
var _excluded$
|
|
12899
|
+
var _excluded$v = ["type"];
|
|
12879
12900
|
var rootClassName$32 = 'component-table-left-checkbox-with-label';
|
|
12880
12901
|
var LeftControlWithLabel = function LeftControlWithLabel(_ref) {
|
|
12881
12902
|
var _props$spanProps2, _props$spanProps3;
|
|
12882
12903
|
var type = _ref.type,
|
|
12883
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
12904
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$v);
|
|
12884
12905
|
var style = React.useMemo(function () {
|
|
12885
12906
|
var _props$spanProps$styl, _props$spanProps;
|
|
12886
12907
|
var style = _extends({
|
|
@@ -13002,7 +13023,7 @@ function TooltipElement(_ref) {
|
|
|
13002
13023
|
}))));
|
|
13003
13024
|
}
|
|
13004
13025
|
|
|
13005
|
-
var _excluded$
|
|
13026
|
+
var _excluded$w = ["className", "variant", "color", "focus", "style", "alignment", "format", "dangerouslySetInnerHTML", "children"];
|
|
13006
13027
|
var rootClassName$34 = 'typography';
|
|
13007
13028
|
var Typography = React.forwardRef(function (_ref, ref) {
|
|
13008
13029
|
var _ref$className = _ref.className,
|
|
@@ -13022,7 +13043,7 @@ var Typography = React.forwardRef(function (_ref, ref) {
|
|
|
13022
13043
|
} : _ref$format,
|
|
13023
13044
|
dangerouslySetInnerHTML = _ref.dangerouslySetInnerHTML,
|
|
13024
13045
|
children = _ref.children,
|
|
13025
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
13046
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$w);
|
|
13026
13047
|
var classNames = useMergedClassNames([rootClassName$34 + "-tp", focus ? rootClassName$34 + "-focus" : '', color, variant, className]);
|
|
13027
13048
|
var tag = React.useMemo(function () {
|
|
13028
13049
|
switch (variant) {
|
|
@@ -44560,7 +44581,7 @@ function useValidatedState(validation, initialValue) {
|
|
|
44560
44581
|
return [value, setValue, validation(value)];
|
|
44561
44582
|
}
|
|
44562
44583
|
|
|
44563
|
-
var _excluded$
|
|
44584
|
+
var _excluded$x = ["disabled", "language", "onConfirm", "showIcons"],
|
|
44564
44585
|
_excluded2 = ["disabled", "language", "onCancel", "onConfirm", "showIcons"],
|
|
44565
44586
|
_excluded3 = ["disabled", "language", "onCancel", "onConfirm", "showIcons"];
|
|
44566
44587
|
function AlertModal(_ref) {
|
|
@@ -44570,7 +44591,7 @@ function AlertModal(_ref) {
|
|
|
44570
44591
|
onConfirm = _ref.onConfirm,
|
|
44571
44592
|
_ref$showIcons = _ref.showIcons,
|
|
44572
44593
|
showIcons = _ref$showIcons === void 0 ? true : _ref$showIcons,
|
|
44573
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
44594
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$x);
|
|
44574
44595
|
var _useState = React.useState(false),
|
|
44575
44596
|
loading = _useState[0],
|
|
44576
44597
|
setLoading = _useState[1];
|