plataforma-fundacao-componentes 2.25.1 → 2.25.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.
- package/dist/components/etiqueta/Etiqueta.d.ts +1 -0
- package/dist/components/pagination/Pagination.d.ts +1 -0
- package/dist/index.css +65 -63
- package/dist/index.js +407 -405
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +407 -405
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -7916,24 +7916,25 @@ var EtiquetasStyle;
|
|
|
7916
7916
|
EtiquetasStyle["OutlineWarningDark"] = "outline-warning-dark";
|
|
7917
7917
|
})(EtiquetasStyle || (EtiquetasStyle = {}));
|
|
7918
7918
|
|
|
7919
|
+
var rootClassName$21 = 'component-etiqueta';
|
|
7919
7920
|
function Etiqueta(props) {
|
|
7920
7921
|
return React$1.createElement("div", {
|
|
7921
|
-
className: getMergedClassNames([
|
|
7922
|
+
className: getMergedClassNames([rootClassName$21, props.theme, props.fitContent ? 'fit-content' : undefined])
|
|
7922
7923
|
}, props.icon ? React$1.createElement("div", {
|
|
7923
|
-
className:
|
|
7924
|
+
className: rootClassName$21 + "-icon"
|
|
7924
7925
|
}, props.icon) : undefined, React$1.createElement("div", {
|
|
7925
|
-
className:
|
|
7926
|
+
className: rootClassName$21 + "-text"
|
|
7926
7927
|
}, props.label));
|
|
7927
7928
|
}
|
|
7928
7929
|
Etiqueta.defaultProps = {
|
|
7929
7930
|
theme: EtiquetasStyle.Programas
|
|
7930
7931
|
};
|
|
7931
7932
|
|
|
7932
|
-
var rootClassName$
|
|
7933
|
+
var rootClassName$22 = 'component-file-loader';
|
|
7933
7934
|
function FileLoader(props) {
|
|
7934
7935
|
var getProps = function getProps() {
|
|
7935
7936
|
var p = _extends({}, props, {
|
|
7936
|
-
className: getMergedClassNames([props.className || '', rootClassName$
|
|
7937
|
+
className: getMergedClassNames([props.className || '', rootClassName$22])
|
|
7937
7938
|
});
|
|
7938
7939
|
delete p.percent;
|
|
7939
7940
|
delete p.totalSize;
|
|
@@ -7953,24 +7954,24 @@ function FileLoader(props) {
|
|
|
7953
7954
|
return percent;
|
|
7954
7955
|
};
|
|
7955
7956
|
return React$1.createElement("div", Object.assign({}, getProps()), React$1.createElement("div", {
|
|
7956
|
-
className: rootClassName$
|
|
7957
|
+
className: rootClassName$22 + "-percent-line"
|
|
7957
7958
|
}, languageValues.components.fileLoader.carregando + ":", ' ', React$1.createElement("span", {
|
|
7958
|
-
className: rootClassName$
|
|
7959
|
+
className: rootClassName$22 + "-downloaded-percent"
|
|
7959
7960
|
}, getPercent(), "%")), React$1.createElement("div", {
|
|
7960
|
-
className: rootClassName$
|
|
7961
|
+
className: rootClassName$22 + "-loader-bar"
|
|
7961
7962
|
}, React$1.createElement("div", {
|
|
7962
|
-
className: rootClassName$
|
|
7963
|
+
className: rootClassName$22 + "-loader-progress",
|
|
7963
7964
|
style: {
|
|
7964
7965
|
width: getPercent() + "%"
|
|
7965
7966
|
}
|
|
7966
7967
|
})), props.totalSize && React$1.createElement("div", {
|
|
7967
|
-
className: rootClassName$
|
|
7968
|
+
className: rootClassName$22 + "-progress-info"
|
|
7968
7969
|
}, React$1.createElement("div", {
|
|
7969
|
-
className: rootClassName$
|
|
7970
|
+
className: rootClassName$22 + "-downloaded-size"
|
|
7970
7971
|
}, getSizeDownloaded()), React$1.createElement("div", {
|
|
7971
|
-
className: rootClassName$
|
|
7972
|
+
className: rootClassName$22 + "-bar"
|
|
7972
7973
|
}, "/"), React$1.createElement("div", {
|
|
7973
|
-
className: rootClassName$
|
|
7974
|
+
className: rootClassName$22 + "-total-size"
|
|
7974
7975
|
}, props.totalSize)));
|
|
7975
7976
|
}
|
|
7976
7977
|
FileLoader.defaultProps = {
|
|
@@ -7978,20 +7979,20 @@ FileLoader.defaultProps = {
|
|
|
7978
7979
|
percent: 0
|
|
7979
7980
|
};
|
|
7980
7981
|
|
|
7981
|
-
var rootClassName$
|
|
7982
|
+
var rootClassName$23 = 'component-file-upload';
|
|
7982
7983
|
var DRAG_ENTER_CLASS_NAME = 'drag-enter';
|
|
7983
7984
|
var DRAG_ENTER_DISABLED_CLASS_NAME = 'drag-disabled';
|
|
7984
7985
|
function FileUpload(props) {
|
|
7985
7986
|
var _useState = useState(getUniqueKey()),
|
|
7986
7987
|
id = _useState[0];
|
|
7987
7988
|
var addClass = function addClass(className) {
|
|
7988
|
-
var el = document.querySelector("#" + id + " ." + rootClassName$
|
|
7989
|
+
var el = document.querySelector("#" + id + " ." + rootClassName$23 + "-droppable");
|
|
7989
7990
|
if (el) {
|
|
7990
7991
|
el.classList.add(className);
|
|
7991
7992
|
}
|
|
7992
7993
|
};
|
|
7993
7994
|
var removeClass = function removeClass(className) {
|
|
7994
|
-
var el = document.querySelector("#" + id + " ." + rootClassName$
|
|
7995
|
+
var el = document.querySelector("#" + id + " ." + rootClassName$23 + "-droppable");
|
|
7995
7996
|
if (el) {
|
|
7996
7997
|
el.classList.remove(className);
|
|
7997
7998
|
}
|
|
@@ -8031,15 +8032,15 @@ function FileUpload(props) {
|
|
|
8031
8032
|
return true;
|
|
8032
8033
|
};
|
|
8033
8034
|
return React$1.createElement("div", {
|
|
8034
|
-
className: rootClassName$
|
|
8035
|
+
className: rootClassName$23 + "-outer"
|
|
8035
8036
|
}, !props.hideTopLabel && React$1.createElement("div", {
|
|
8036
|
-
className: getMergedClassNames([rootClassName$
|
|
8037
|
+
className: getMergedClassNames([rootClassName$23 + "-top-label", props.disabled ? 'disabled' : '', props.error ? 'error' : '', 'nunito'])
|
|
8037
8038
|
}, props.topLabel), React$1.createElement("div", {
|
|
8038
8039
|
id: id,
|
|
8039
|
-
className: getMergedClassNames([rootClassName$
|
|
8040
|
+
className: getMergedClassNames([rootClassName$23, props.disabled ? 'disabled' : '', props.error ? 'error' : ''])
|
|
8040
8041
|
}, React$1.createElement("div", {
|
|
8041
8042
|
onClick: handleClick,
|
|
8042
|
-
className: getMergedClassNames([rootClassName$
|
|
8043
|
+
className: getMergedClassNames([rootClassName$23 + "-droppable", props.disabled ? 'disabled' : '', props.error ? 'error' : '']),
|
|
8043
8044
|
onDragEnter: function onDragEnter(event) {
|
|
8044
8045
|
event.preventDefault();
|
|
8045
8046
|
event.stopPropagation();
|
|
@@ -8065,11 +8066,11 @@ function FileUpload(props) {
|
|
|
8065
8066
|
addClass(props.disabled ? DRAG_ENTER_DISABLED_CLASS_NAME : DRAG_ENTER_CLASS_NAME);
|
|
8066
8067
|
}
|
|
8067
8068
|
}), React$1.createElement("div", {
|
|
8068
|
-
className: rootClassName$
|
|
8069
|
+
className: rootClassName$23 + "-row"
|
|
8069
8070
|
}, React$1.createElement("div", {
|
|
8070
|
-
className: rootClassName$
|
|
8071
|
+
className: rootClassName$23 + "-upload-icon"
|
|
8071
8072
|
}, React$1.createElement(CloudUploadIcon, null)), React$1.createElement("div", {
|
|
8072
|
-
className: rootClassName$
|
|
8073
|
+
className: rootClassName$23 + "-label"
|
|
8073
8074
|
}, props.label)), React$1.createElement("input", Object.assign({
|
|
8074
8075
|
type: 'file',
|
|
8075
8076
|
accept: props.allowedFileTypes ? Array(props.allowedFileTypes).join(', ') : undefined
|
|
@@ -8092,7 +8093,7 @@ function FileUpload(props) {
|
|
|
8092
8093
|
multiple: props.multiple,
|
|
8093
8094
|
disabled: props.disabled
|
|
8094
8095
|
}))), !props.hideHelperText && React$1.createElement("div", {
|
|
8095
|
-
className: getMergedClassNames([rootClassName$
|
|
8096
|
+
className: getMergedClassNames([rootClassName$23 + "-helper-text", props.disabled ? 'disabled' : '', props.error ? 'error' : ''])
|
|
8096
8097
|
}, props.helperText));
|
|
8097
8098
|
}
|
|
8098
8099
|
FileUpload.defaultProps = {
|
|
@@ -8106,11 +8107,11 @@ FileUpload.defaultProps = {
|
|
|
8106
8107
|
error: false
|
|
8107
8108
|
};
|
|
8108
8109
|
|
|
8109
|
-
var rootClassName$
|
|
8110
|
+
var rootClassName$24 = 'component-row';
|
|
8110
8111
|
function Row(props) {
|
|
8111
8112
|
var getProps = function getProps() {
|
|
8112
8113
|
var p = _extends({}, props, {
|
|
8113
|
-
className: getMergedClassNames([rootClassName$
|
|
8114
|
+
className: getMergedClassNames([rootClassName$24, props.centralized ? 'centralized' : '', props.columnDirection ? 'column' : '', props.className])
|
|
8114
8115
|
});
|
|
8115
8116
|
delete p.centralized;
|
|
8116
8117
|
delete p.columnDirection;
|
|
@@ -8123,7 +8124,7 @@ Row.defaultProps = {
|
|
|
8123
8124
|
};
|
|
8124
8125
|
var Row$1 = memo(Row);
|
|
8125
8126
|
|
|
8126
|
-
var rootClassName$
|
|
8127
|
+
var rootClassName$25 = 'footer-sicredi';
|
|
8127
8128
|
function FooterSicredi(props) {
|
|
8128
8129
|
var colSize = [12, 12, 3, 3, 3];
|
|
8129
8130
|
var qrCodeColor = useMemo(function () {
|
|
@@ -8143,136 +8144,136 @@ function FooterSicredi(props) {
|
|
|
8143
8144
|
}
|
|
8144
8145
|
}, [props.theme]);
|
|
8145
8146
|
return React$1.createElement("footer", {
|
|
8146
|
-
className: getMergedClassNames([rootClassName$
|
|
8147
|
+
className: getMergedClassNames([rootClassName$25, props.theme])
|
|
8147
8148
|
}, React$1.createElement(Row$1, {
|
|
8148
|
-
className: rootClassName$
|
|
8149
|
+
className: rootClassName$25 + "-section",
|
|
8149
8150
|
style: {
|
|
8150
8151
|
maxWidth: props.maxWidth ? props.maxWidth + "px" : 'none'
|
|
8151
8152
|
}
|
|
8152
8153
|
}, React$1.createElement(Col$1, {
|
|
8153
8154
|
cols: colSize,
|
|
8154
|
-
className: rootClassName$
|
|
8155
|
+
className: rootClassName$25 + "-cell"
|
|
8155
8156
|
}, React$1.createElement("div", {
|
|
8156
|
-
className: rootClassName$
|
|
8157
|
+
className: rootClassName$25 + "-title"
|
|
8157
8158
|
}, "WhatsApp Corporativo"), React$1.createElement("div", {
|
|
8158
|
-
className: rootClassName$
|
|
8159
|
+
className: rootClassName$25 + "-subtitle nunito"
|
|
8159
8160
|
}, "Todas as regi\xF5es"), React$1.createElement("div", {
|
|
8160
|
-
className: rootClassName$
|
|
8161
|
+
className: rootClassName$25 + "-number"
|
|
8161
8162
|
}, React$1.createElement(AnimatedLink$1, {
|
|
8162
8163
|
href: 'https://wa.me/555133584770/?text=Oi%20Sicredi',
|
|
8163
8164
|
target: '_blank',
|
|
8164
8165
|
rel: 'noopener noreferrer'
|
|
8165
8166
|
}, "51 3358 4770")), React$1.createElement("div", {
|
|
8166
|
-
className: rootClassName$
|
|
8167
|
+
className: rootClassName$25 + "-asterisco nunito"
|
|
8167
8168
|
}, "* Servi\xE7o dispon\xEDvel conforme ades\xE3o das cooperativas"), React$1.createElement("div", {
|
|
8168
|
-
className: rootClassName$
|
|
8169
|
+
className: rootClassName$25 + "-space"
|
|
8169
8170
|
}), React$1.createElement("div", {
|
|
8170
|
-
className: rootClassName$
|
|
8171
|
+
className: rootClassName$25 + "-qr-code"
|
|
8171
8172
|
}, React$1.createElement("a", {
|
|
8172
8173
|
href: 'https://wa.me/555133584770/?text=Oi%20Sicredi',
|
|
8173
8174
|
target: '_blank',
|
|
8174
8175
|
rel: 'noopener noreferrer'
|
|
8175
8176
|
}, React$1.createElement(QRCodeWhatsapp, Object.assign({}, qrCodeColor))))), React$1.createElement(Col$1, {
|
|
8176
8177
|
cols: colSize,
|
|
8177
|
-
className: rootClassName$
|
|
8178
|
+
className: rootClassName$25 + "-cell"
|
|
8178
8179
|
}, React$1.createElement("div", {
|
|
8179
|
-
className: rootClassName$
|
|
8180
|
+
className: rootClassName$25 + "-title"
|
|
8180
8181
|
}, "Servi\xE7os por telefone"), React$1.createElement("div", {
|
|
8181
|
-
className: rootClassName$
|
|
8182
|
+
className: rootClassName$25 + "-subtitle nunito"
|
|
8182
8183
|
}, "Capitais e regi\xF5es metropolitanas"), React$1.createElement("div", {
|
|
8183
|
-
className: rootClassName$
|
|
8184
|
+
className: rootClassName$25 + "-number"
|
|
8184
8185
|
}, React$1.createElement(AnimatedLink$1, {
|
|
8185
8186
|
href: 'tel:+555130034770'
|
|
8186
8187
|
}, "3003 4770")), React$1.createElement("div", {
|
|
8187
|
-
className: rootClassName$
|
|
8188
|
+
className: rootClassName$25 + "-asterisco nunito"
|
|
8188
8189
|
}, "* Custo de uma liga\xE7\xE3o local"), React$1.createElement("div", {
|
|
8189
|
-
className: rootClassName$
|
|
8190
|
+
className: rootClassName$25 + "-space"
|
|
8190
8191
|
}), React$1.createElement("div", {
|
|
8191
|
-
className: rootClassName$
|
|
8192
|
+
className: rootClassName$25 + "-title"
|
|
8192
8193
|
}, "Demais regi\xF5es"), React$1.createElement("div", {
|
|
8193
|
-
className: rootClassName$
|
|
8194
|
+
className: rootClassName$25 + "-number"
|
|
8194
8195
|
}, React$1.createElement(AnimatedLink$1, {
|
|
8195
8196
|
href: 'tel:08007244770'
|
|
8196
8197
|
}, "0800 724 4770")), React$1.createElement("div", {
|
|
8197
|
-
className: rootClassName$
|
|
8198
|
+
className: rootClassName$25 + "-asterisco nunito"
|
|
8198
8199
|
}, "* Sem custo")), React$1.createElement(Col$1, {
|
|
8199
8200
|
cols: colSize,
|
|
8200
|
-
className: rootClassName$
|
|
8201
|
+
className: rootClassName$25 + "-cell"
|
|
8201
8202
|
}, React$1.createElement("div", {
|
|
8202
|
-
className: rootClassName$
|
|
8203
|
+
className: rootClassName$25 + "-title"
|
|
8203
8204
|
}, "SAC"), React$1.createElement("div", {
|
|
8204
|
-
className: rootClassName$
|
|
8205
|
+
className: rootClassName$25 + "-subtitle nunito"
|
|
8205
8206
|
}, "Informa\xE7\xF5es, elogios e reclama\xE7\xF5es"), React$1.createElement("div", {
|
|
8206
|
-
className: rootClassName$
|
|
8207
|
+
className: rootClassName$25 + "-number"
|
|
8207
8208
|
}, React$1.createElement(AnimatedLink$1, {
|
|
8208
8209
|
href: 'tel:08007247220'
|
|
8209
8210
|
}, "0800 724 7220")), React$1.createElement("div", {
|
|
8210
|
-
className: rootClassName$
|
|
8211
|
+
className: rootClassName$25 + "-space"
|
|
8211
8212
|
}), React$1.createElement("div", {
|
|
8212
|
-
className: rootClassName$
|
|
8213
|
+
className: rootClassName$25 + "-space"
|
|
8213
8214
|
}), React$1.createElement("div", {
|
|
8214
|
-
className: rootClassName$
|
|
8215
|
+
className: rootClassName$25 + "-title"
|
|
8215
8216
|
}, "Ouvidoria"), React$1.createElement("div", {
|
|
8216
|
-
className: rootClassName$
|
|
8217
|
+
className: rootClassName$25 + "-subtitle nunito"
|
|
8217
8218
|
}, "Reclama\xE7\xF5es e den\xFAncias"), React$1.createElement("div", {
|
|
8218
|
-
className: rootClassName$
|
|
8219
|
+
className: rootClassName$25 + "-number"
|
|
8219
8220
|
}, React$1.createElement(AnimatedLink$1, {
|
|
8220
8221
|
href: 'tel:08006462519'
|
|
8221
8222
|
}, "0800 646 2519"))), React$1.createElement(Col$1, {
|
|
8222
8223
|
cols: colSize,
|
|
8223
|
-
className: rootClassName$
|
|
8224
|
+
className: rootClassName$25 + "-cell"
|
|
8224
8225
|
}, React$1.createElement("div", {
|
|
8225
|
-
className: rootClassName$
|
|
8226
|
+
className: rootClassName$25 + "-title"
|
|
8226
8227
|
}, "Chamadas internacionais"), React$1.createElement("div", {
|
|
8227
|
-
className: rootClassName$
|
|
8228
|
+
className: rootClassName$25 + "-subtitle nunito"
|
|
8228
8229
|
}, "(a cobrar)"), React$1.createElement("div", {
|
|
8229
|
-
className: rootClassName$
|
|
8230
|
+
className: rootClassName$25 + "-number"
|
|
8230
8231
|
}, React$1.createElement(AnimatedLink$1, {
|
|
8231
8232
|
href: 'tel:+555133784472'
|
|
8232
8233
|
}, "+55 51 3378 4472")), React$1.createElement("div", {
|
|
8233
|
-
className: rootClassName$
|
|
8234
|
+
className: rootClassName$25 + "-space"
|
|
8234
8235
|
}), React$1.createElement("div", {
|
|
8235
|
-
className: rootClassName$
|
|
8236
|
+
className: rootClassName$25 + "-space"
|
|
8236
8237
|
}), React$1.createElement("div", {
|
|
8237
|
-
className: rootClassName$
|
|
8238
|
+
className: rootClassName$25 + "-title"
|
|
8238
8239
|
}, "Atendimento \xE0 pessoas com defici\xEAncia"), React$1.createElement("div", {
|
|
8239
|
-
className: rootClassName$
|
|
8240
|
+
className: rootClassName$25 + "-subtitle nunito"
|
|
8240
8241
|
}, "Auditivos ou de fala"), React$1.createElement("div", {
|
|
8241
|
-
className: rootClassName$
|
|
8242
|
+
className: rootClassName$25 + "-number"
|
|
8242
8243
|
}, React$1.createElement(AnimatedLink$1, {
|
|
8243
8244
|
href: 'tel:08007240525'
|
|
8244
8245
|
}, "0800 724 0525")))), props.midiasSociais ? React$1.createElement(Row$1, {
|
|
8245
|
-
className: rootClassName$
|
|
8246
|
+
className: rootClassName$25 + "-section",
|
|
8246
8247
|
style: {
|
|
8247
8248
|
maxWidth: props.maxWidth + "px"
|
|
8248
8249
|
}
|
|
8249
8250
|
}, React$1.createElement(Row$1, null, React$1.createElement(AnimatedLink$1, {
|
|
8250
|
-
className: rootClassName$
|
|
8251
|
+
className: rootClassName$25 + "-social-media nunito",
|
|
8251
8252
|
href: 'https://www.youtube.com/user/sicredioficial',
|
|
8252
8253
|
target: '_blank',
|
|
8253
8254
|
rel: 'noopener noreferrer'
|
|
8254
8255
|
}, "youtube"), React$1.createElement(AnimatedLink$1, {
|
|
8255
|
-
className: rootClassName$
|
|
8256
|
+
className: rootClassName$25 + "-social-media nunito",
|
|
8256
8257
|
href: 'https://twitter.com/sicredi',
|
|
8257
8258
|
target: '_blank',
|
|
8258
8259
|
rel: 'noopener noreferrer'
|
|
8259
8260
|
}, "twitter"), React$1.createElement(AnimatedLink$1, {
|
|
8260
|
-
className: rootClassName$
|
|
8261
|
+
className: rootClassName$25 + "-social-media nunito",
|
|
8261
8262
|
href: 'https://www.linkedin.com/company/sicredi',
|
|
8262
8263
|
target: '_blank',
|
|
8263
8264
|
rel: 'noopener noreferrer'
|
|
8264
8265
|
}, "linkedin"), React$1.createElement(AnimatedLink$1, {
|
|
8265
|
-
className: rootClassName$
|
|
8266
|
+
className: rootClassName$25 + "-social-media nunito",
|
|
8266
8267
|
href: 'https://www.instagram.com/sicredi/',
|
|
8267
8268
|
target: '_blank',
|
|
8268
8269
|
rel: 'noopener noreferrer'
|
|
8269
8270
|
}, "instagram"), React$1.createElement(AnimatedLink$1, {
|
|
8270
|
-
className: rootClassName$
|
|
8271
|
+
className: rootClassName$25 + "-social-media nunito",
|
|
8271
8272
|
href: 'https://www.facebook.com/Sicredi',
|
|
8272
8273
|
target: '_blank',
|
|
8273
8274
|
rel: 'noopener noreferrer'
|
|
8274
8275
|
}, "facebook")), React$1.createElement(Row$1, {
|
|
8275
|
-
className: rootClassName$
|
|
8276
|
+
className: rootClassName$25 + "-endereco"
|
|
8276
8277
|
}, React$1.createElement(Row$1, {
|
|
8277
8278
|
className: 'nunito'
|
|
8278
8279
|
}, "Confedera\xE7\xE3o das Cooperativas do Sicredi"), React$1.createElement(Row$1, {
|
|
@@ -8285,16 +8286,16 @@ function FooterSicredi(props) {
|
|
|
8285
8286
|
}
|
|
8286
8287
|
var FooterSicredi$1 = memo(FooterSicredi);
|
|
8287
8288
|
|
|
8288
|
-
var rootClassName$
|
|
8289
|
+
var rootClassName$26 = 'full-height-container';
|
|
8289
8290
|
function FullHeightContainer(props) {
|
|
8290
8291
|
return React$1.createElement("div", {
|
|
8291
|
-
className: rootClassName$
|
|
8292
|
+
className: rootClassName$26
|
|
8292
8293
|
}, React$1.createElement("div", {
|
|
8293
|
-
className: rootClassName$
|
|
8294
|
+
className: rootClassName$26 + "-row-header"
|
|
8294
8295
|
}, props.header), React$1.createElement("div", {
|
|
8295
|
-
className: getMergedClassNames([rootClassName$
|
|
8296
|
+
className: getMergedClassNames([rootClassName$26 + "-row-content", props.verticalPadding ? 'vertical-padding' : '', props.horizontalPadding ? 'horizontal-padding' : ''])
|
|
8296
8297
|
}, props.children), props.fixedFooter ? React$1.createElement("div", {
|
|
8297
|
-
className: rootClassName$
|
|
8298
|
+
className: rootClassName$26 + "-row-footer"
|
|
8298
8299
|
}, props.fixedFooter) : undefined);
|
|
8299
8300
|
}
|
|
8300
8301
|
FullHeightContainer.defaultProps = {
|
|
@@ -8306,10 +8307,10 @@ var FullHeightContainer$1 = memo(FullHeightContainer);
|
|
|
8306
8307
|
var HEADER_SEPARATOR_PRIMARY = 'primary';
|
|
8307
8308
|
var HEADER_SEPARATOR_SECONDARY = 'secondary';
|
|
8308
8309
|
|
|
8309
|
-
var rootClassName$
|
|
8310
|
+
var rootClassName$27 = 'component-header-separator';
|
|
8310
8311
|
function HeaderSeparator(props) {
|
|
8311
8312
|
return React$1.createElement("div", {
|
|
8312
|
-
className: getMergedClassNames([rootClassName$
|
|
8313
|
+
className: getMergedClassNames([rootClassName$27, rootClassName$27 + "-" + props.theme])
|
|
8313
8314
|
});
|
|
8314
8315
|
}
|
|
8315
8316
|
HeaderSeparator.defaultProps = {
|
|
@@ -8324,7 +8325,7 @@ var HeaderType;
|
|
|
8324
8325
|
HeaderType["Assembleia"] = "assembleia";
|
|
8325
8326
|
})(HeaderType || (HeaderType = {}));
|
|
8326
8327
|
|
|
8327
|
-
var rootClassName$
|
|
8328
|
+
var rootClassName$28 = 'component-header';
|
|
8328
8329
|
function Header(props) {
|
|
8329
8330
|
var _props$blackBar;
|
|
8330
8331
|
var handleClick = function handleClick() {
|
|
@@ -8335,32 +8336,32 @@ function Header(props) {
|
|
|
8335
8336
|
var getProps = function getProps() {
|
|
8336
8337
|
var p = {
|
|
8337
8338
|
onClick: handleClick,
|
|
8338
|
-
className: getMergedClassNames([rootClassName$
|
|
8339
|
+
className: getMergedClassNames([rootClassName$28, props.className, rootClassName$28 + "-" + props.theme, props.blackBar && props.blackBar.show ? 'has-black-bar' : ''])
|
|
8339
8340
|
};
|
|
8340
8341
|
return p;
|
|
8341
8342
|
};
|
|
8342
|
-
var clearfixClassNames = getMergedClassNames([rootClassName$
|
|
8343
|
+
var clearfixClassNames = getMergedClassNames([rootClassName$28 + "-clearfix", rootClassName$28 + "-" + props.theme]);
|
|
8343
8344
|
return React$1.createElement(React$1.Fragment, null, React$1.createElement("header", Object.assign({}, getProps(), {
|
|
8344
8345
|
style: {
|
|
8345
8346
|
position: props.position
|
|
8346
8347
|
}
|
|
8347
8348
|
}), props.blackBar && props.blackBar.show ? React$1.createElement("div", {
|
|
8348
|
-
className: rootClassName$
|
|
8349
|
+
className: rootClassName$28 + "-black-bar"
|
|
8349
8350
|
}, React$1.createElement("a", {
|
|
8350
8351
|
href: props.blackBar.link,
|
|
8351
8352
|
target: (_props$blackBar = props.blackBar) === null || _props$blackBar === void 0 ? void 0 : _props$blackBar.target
|
|
8352
8353
|
}, props.blackBar.icon, React$1.createElement("span", {
|
|
8353
8354
|
className: 'nunito'
|
|
8354
8355
|
}, props.blackBar.label))) : undefined, React$1.createElement("div", {
|
|
8355
|
-
className: rootClassName$
|
|
8356
|
+
className: rootClassName$28 + "-header-item"
|
|
8356
8357
|
}, props.leftContent, props.separator && props.separator.show ? React$1.createElement("div", {
|
|
8357
|
-
className: rootClassName$
|
|
8358
|
+
className: rootClassName$28 + "-separator-logo"
|
|
8358
8359
|
}, props.separator.label) : undefined), React$1.createElement("div", {
|
|
8359
|
-
className: rootClassName$
|
|
8360
|
+
className: rootClassName$28 + "-header-item"
|
|
8360
8361
|
}, props.centerContent), React$1.createElement("div", {
|
|
8361
|
-
className: rootClassName$
|
|
8362
|
+
className: rootClassName$28 + "-header-item"
|
|
8362
8363
|
}, props.rightContent)), props.theme === HeaderType.Semi && React$1.createElement("div", {
|
|
8363
|
-
className: rootClassName$
|
|
8364
|
+
className: rootClassName$28 + "-semi-clear"
|
|
8364
8365
|
}), props.clearfix && React$1.createElement("div", {
|
|
8365
8366
|
className: clearfixClassNames
|
|
8366
8367
|
}));
|
|
@@ -8372,11 +8373,11 @@ Header.defaultProps = {
|
|
|
8372
8373
|
};
|
|
8373
8374
|
var Header$1 = memo(Header);
|
|
8374
8375
|
|
|
8375
|
-
var rootClassName$
|
|
8376
|
+
var rootClassName$29 = 'component-information-icon';
|
|
8376
8377
|
function Information(props) {
|
|
8377
8378
|
var getProps = function getProps() {
|
|
8378
8379
|
var p = _extends({}, props, {
|
|
8379
|
-
className: getMergedClassNames([rootClassName$
|
|
8380
|
+
className: getMergedClassNames([rootClassName$29, props.className || ''])
|
|
8380
8381
|
});
|
|
8381
8382
|
delete p.icon;
|
|
8382
8383
|
delete p['tooltip-text'];
|
|
@@ -8384,7 +8385,7 @@ function Information(props) {
|
|
|
8384
8385
|
return p;
|
|
8385
8386
|
};
|
|
8386
8387
|
return React$1.createElement("div", Object.assign({}, getProps()), React$1.createElement("div", {
|
|
8387
|
-
className: rootClassName$
|
|
8388
|
+
className: rootClassName$29 + "-icon",
|
|
8388
8389
|
"tooltip-text": props['tooltip-text'],
|
|
8389
8390
|
"tooltip-position": props['tooltip-position']
|
|
8390
8391
|
}, props.icon));
|
|
@@ -8393,12 +8394,12 @@ Information.defaultProps = {
|
|
|
8393
8394
|
icon: React$1.createElement(InformationIcon, null)
|
|
8394
8395
|
};
|
|
8395
8396
|
|
|
8396
|
-
var rootClassName$
|
|
8397
|
+
var rootClassName$2a = 'component-input';
|
|
8397
8398
|
function Input(props) {
|
|
8398
8399
|
var getProps = function getProps() {
|
|
8399
8400
|
var p = _extends({}, props, {
|
|
8400
8401
|
id: props.id ? props.id + "-input" : undefined,
|
|
8401
|
-
className: getMergedClassNames(['nunito', rootClassName$
|
|
8402
|
+
className: getMergedClassNames(['nunito', rootClassName$2a + "-input", props.className || ''])
|
|
8402
8403
|
});
|
|
8403
8404
|
delete p.loading;
|
|
8404
8405
|
delete p.error;
|
|
@@ -8411,23 +8412,23 @@ function Input(props) {
|
|
|
8411
8412
|
return p;
|
|
8412
8413
|
};
|
|
8413
8414
|
var getContainerClassNames = function getContainerClassNames() {
|
|
8414
|
-
return getMergedClassNames([rootClassName$
|
|
8415
|
+
return getMergedClassNames([rootClassName$2a, props.error ? rootClassName$2a + "-error" : '', props.loading ? rootClassName$2a + "-loading" : '', props.disabled ? rootClassName$2a + "-disabled" : '', props.forceFocus ? 'force-focus' : '']);
|
|
8415
8416
|
};
|
|
8416
8417
|
return React$1.createElement("div", {
|
|
8417
8418
|
id: props.id,
|
|
8418
8419
|
className: getContainerClassNames()
|
|
8419
8420
|
}, !props.hideLabelAndHelperText && React$1.createElement("div", {
|
|
8420
|
-
className: rootClassName$
|
|
8421
|
+
className: rootClassName$2a + "-label nunito"
|
|
8421
8422
|
}, props.label || ''), React$1.createElement("div", {
|
|
8422
|
-
className: rootClassName$
|
|
8423
|
+
className: rootClassName$2a + "-input-container"
|
|
8423
8424
|
}, React$1.createElement("input", Object.assign({}, getProps())), props.rightObject && React$1.createElement("div", {
|
|
8424
|
-
className: rootClassName$
|
|
8425
|
+
className: rootClassName$2a + "-right-object"
|
|
8425
8426
|
}, props.rightObject)), !props.hideLabelAndHelperText && React$1.createElement("div", {
|
|
8426
|
-
className: rootClassName$
|
|
8427
|
+
className: rootClassName$2a + "-helper-and-counter"
|
|
8427
8428
|
}, React$1.createElement("div", {
|
|
8428
|
-
className: rootClassName$
|
|
8429
|
+
className: rootClassName$2a + "-helper-text nunito"
|
|
8429
8430
|
}, props.helperText || ''), props.counter && React$1.createElement("div", {
|
|
8430
|
-
className: rootClassName$
|
|
8431
|
+
className: rootClassName$2a + "-counter"
|
|
8431
8432
|
}, "" + String(props.value || '').length + (props.maxLength || props.maxLength === 0 ? "/" + props.maxLength : ''))));
|
|
8432
8433
|
}
|
|
8433
8434
|
Input.defaultProps = {
|
|
@@ -8442,7 +8443,7 @@ Input.defaultProps = {
|
|
|
8442
8443
|
};
|
|
8443
8444
|
var Input$1 = memo(Input);
|
|
8444
8445
|
|
|
8445
|
-
var rootClassName$
|
|
8446
|
+
var rootClassName$2b = 'component-input-area';
|
|
8446
8447
|
function InputArea(props) {
|
|
8447
8448
|
var _useState = useState(props.id ? props.id : getUniqueKey()),
|
|
8448
8449
|
id = _useState[0];
|
|
@@ -8450,7 +8451,7 @@ function InputArea(props) {
|
|
|
8450
8451
|
var p = _extends({}, props, {
|
|
8451
8452
|
rows: 1,
|
|
8452
8453
|
id: id ? id + "-input" : undefined,
|
|
8453
|
-
className: getMergedClassNames(['nunito', rootClassName$
|
|
8454
|
+
className: getMergedClassNames(['nunito', rootClassName$2b + "-input-area", props.className || ''])
|
|
8454
8455
|
});
|
|
8455
8456
|
delete p.loading;
|
|
8456
8457
|
delete p.error;
|
|
@@ -8470,23 +8471,23 @@ function InputArea(props) {
|
|
|
8470
8471
|
}
|
|
8471
8472
|
}, [props.value]);
|
|
8472
8473
|
var getContainerClassNames = function getContainerClassNames() {
|
|
8473
|
-
return getMergedClassNames([rootClassName$
|
|
8474
|
+
return getMergedClassNames([rootClassName$2b, props.error ? rootClassName$2b + "-error" : '', props.loading ? rootClassName$2b + "-loading" : '', props.disabled ? rootClassName$2b + "-disabled" : '', props.forceFocus ? 'force-focus' : '']);
|
|
8474
8475
|
};
|
|
8475
8476
|
return React$1.createElement("div", {
|
|
8476
8477
|
id: id,
|
|
8477
8478
|
className: getContainerClassNames()
|
|
8478
8479
|
}, !props.hideLabelAndHelperText && React$1.createElement("div", {
|
|
8479
|
-
className: rootClassName$
|
|
8480
|
+
className: rootClassName$2b + "-label nunito"
|
|
8480
8481
|
}, props.label || ''), React$1.createElement("div", {
|
|
8481
|
-
className: rootClassName$
|
|
8482
|
+
className: rootClassName$2b + "-input-container"
|
|
8482
8483
|
}, React$1.createElement("textarea", Object.assign({}, getProps())), props.rightObject && React$1.createElement("div", {
|
|
8483
|
-
className: rootClassName$
|
|
8484
|
+
className: rootClassName$2b + "-right-object"
|
|
8484
8485
|
}, props.rightObject)), !props.hideLabelAndHelperText && React$1.createElement("div", {
|
|
8485
|
-
className: rootClassName$
|
|
8486
|
+
className: rootClassName$2b + "-helper-and-counter"
|
|
8486
8487
|
}, React$1.createElement("div", {
|
|
8487
|
-
className: rootClassName$
|
|
8488
|
+
className: rootClassName$2b + "-helper-text nunito"
|
|
8488
8489
|
}, props.helperText || ''), props.counter && React$1.createElement("div", {
|
|
8489
|
-
className: rootClassName$
|
|
8490
|
+
className: rootClassName$2b + "-counter"
|
|
8490
8491
|
}, "" + String(props.value || '').length + (props.maxLength || props.maxLength === 0 ? "/" + props.maxLength : ''))));
|
|
8491
8492
|
}
|
|
8492
8493
|
InputArea.defaultProps = {
|
|
@@ -8502,14 +8503,14 @@ InputArea.defaultProps = {
|
|
|
8502
8503
|
};
|
|
8503
8504
|
var InputArea$1 = memo(InputArea);
|
|
8504
8505
|
|
|
8505
|
-
var rootClassName$
|
|
8506
|
+
var rootClassName$2c = 'component-item-dropdown-download';
|
|
8506
8507
|
function ItemDropdownDownload(props) {
|
|
8507
8508
|
var id = useMemo(function () {
|
|
8508
8509
|
return props.id ? props.id : getUniqueKey();
|
|
8509
8510
|
}, [props.id]);
|
|
8510
8511
|
var filteredProps = useMemo(function () {
|
|
8511
8512
|
var p = _extends({}, props, {
|
|
8512
|
-
className: getMergedClassNames([rootClassName$
|
|
8513
|
+
className: getMergedClassNames([rootClassName$2c, props.className || '', props.opened ? 'opened' : 'closed']),
|
|
8513
8514
|
onClick: function onClick(event) {
|
|
8514
8515
|
if (typeof props.onClick === 'function') {
|
|
8515
8516
|
props.onClick(event);
|
|
@@ -8530,12 +8531,12 @@ function ItemDropdownDownload(props) {
|
|
|
8530
8531
|
useEffect(function () {
|
|
8531
8532
|
var onHandleClick = function onHandleClick(evt) {
|
|
8532
8533
|
if (evt.path) {
|
|
8533
|
-
if (document.querySelector("#" + id + " ." + rootClassName$
|
|
8534
|
+
if (document.querySelector("#" + id + " ." + rootClassName$2c + "-panel.panel-fade-enter-done") && !evt.path.includes(document.querySelector("#" + id))) props.setOpened(false);
|
|
8534
8535
|
} else {
|
|
8535
8536
|
var aux = evt.target;
|
|
8536
8537
|
var deveFechar = true;
|
|
8537
8538
|
while (aux && aux.id !== 'root') {
|
|
8538
|
-
if (aux && aux.id && aux.id === id && aux.classList.contains(rootClassName$
|
|
8539
|
+
if (aux && aux.id && aux.id === id && aux.classList.contains(rootClassName$2c + "-outer")) {
|
|
8539
8540
|
deveFechar = false;
|
|
8540
8541
|
break;
|
|
8541
8542
|
}
|
|
@@ -8572,23 +8573,23 @@ function ItemDropdownDownload(props) {
|
|
|
8572
8573
|
};
|
|
8573
8574
|
}, [props.opened]);
|
|
8574
8575
|
return React$1.createElement("div", {
|
|
8575
|
-
className: rootClassName$
|
|
8576
|
+
className: rootClassName$2c + "-outer",
|
|
8576
8577
|
id: id
|
|
8577
8578
|
}, React$1.createElement("button", Object.assign({}, filteredProps), React$1.createElement("div", {
|
|
8578
|
-
className: rootClassName$
|
|
8579
|
+
className: rootClassName$2c + "-label"
|
|
8579
8580
|
}, props.label), React$1.createElement("div", {
|
|
8580
|
-
className: getMergedClassNames([rootClassName$
|
|
8581
|
+
className: getMergedClassNames([rootClassName$2c + "-arrow", props.opened ? 'up' : 'down'])
|
|
8581
8582
|
}, React$1.createElement(ChevronArrowDownIcon, null))), React$1.createElement(CSSTransition, {
|
|
8582
8583
|
"in": props.opened,
|
|
8583
8584
|
timeout: 300,
|
|
8584
8585
|
classNames: 'panel-fade',
|
|
8585
8586
|
unmountOnExit: true
|
|
8586
8587
|
}, React$1.createElement("div", {
|
|
8587
|
-
className: rootClassName$
|
|
8588
|
+
className: rootClassName$2c + "-panel"
|
|
8588
8589
|
}, props.downloads && props.downloads.length ? props.downloads.map(function (download, index) {
|
|
8589
8590
|
return React$1.createElement("button", {
|
|
8590
8591
|
id: download.id || undefined,
|
|
8591
|
-
className: rootClassName$
|
|
8592
|
+
className: rootClassName$2c + "-item " + (download.loading ? 'loading' : ''),
|
|
8592
8593
|
onClick: function onClick(evt) {
|
|
8593
8594
|
if (!download.loading && typeof download.onClick === 'function') {
|
|
8594
8595
|
download.onClick(evt);
|
|
@@ -8596,9 +8597,9 @@ function ItemDropdownDownload(props) {
|
|
|
8596
8597
|
},
|
|
8597
8598
|
key: index
|
|
8598
8599
|
}, React$1.createElement("div", {
|
|
8599
|
-
className: rootClassName$
|
|
8600
|
+
className: rootClassName$2c + "-item-label"
|
|
8600
8601
|
}, download.label), React$1.createElement("div", {
|
|
8601
|
-
className: rootClassName$
|
|
8602
|
+
className: rootClassName$2c + "-download-icon"
|
|
8602
8603
|
}, download.loading ? React$1.createElement(PercentLoaderIcon, {
|
|
8603
8604
|
indefinido: true
|
|
8604
8605
|
}) : React$1.createElement(CloudDownloadIcon, null)));
|
|
@@ -8610,7 +8611,7 @@ ItemDropdownDownload.defaultProps = {
|
|
|
8610
8611
|
};
|
|
8611
8612
|
var ItemDropdownDownload$1 = memo(ItemDropdownDownload);
|
|
8612
8613
|
|
|
8613
|
-
var rootClassName$
|
|
8614
|
+
var rootClassName$2d = 'component-menu-item';
|
|
8614
8615
|
function MenuItem(props) {
|
|
8615
8616
|
var handleClick = function handleClick() {
|
|
8616
8617
|
if (!props.disabled) {
|
|
@@ -8620,7 +8621,7 @@ function MenuItem(props) {
|
|
|
8620
8621
|
var getProps = function getProps() {
|
|
8621
8622
|
var p = _extends({}, props, {
|
|
8622
8623
|
onClick: handleClick,
|
|
8623
|
-
className: getMergedClassNames([rootClassName$
|
|
8624
|
+
className: getMergedClassNames([rootClassName$2d, props.className, props.active ? rootClassName$2d + "-active" : ''])
|
|
8624
8625
|
});
|
|
8625
8626
|
delete p.icon;
|
|
8626
8627
|
delete p.active;
|
|
@@ -8633,15 +8634,15 @@ function MenuItem(props) {
|
|
|
8633
8634
|
return p;
|
|
8634
8635
|
};
|
|
8635
8636
|
return React$1.createElement(React$1.Fragment, null, React$1.createElement("button", Object.assign({}, getProps()), React$1.createElement("div", {
|
|
8636
|
-
className: rootClassName$
|
|
8637
|
+
className: rootClassName$2d + "-icon"
|
|
8637
8638
|
}, props.icon), React$1.createElement("div", {
|
|
8638
|
-
className: rootClassName$
|
|
8639
|
+
className: rootClassName$2d + "-label"
|
|
8639
8640
|
}, props.label)), props.subList && props.subList.length ? React$1.createElement(Collapse$1, {
|
|
8640
8641
|
opened: Boolean(props.buscar && props.buscarValue || props.subListOpened)
|
|
8641
8642
|
}, React$1.createElement("div", {
|
|
8642
|
-
className: rootClassName$
|
|
8643
|
+
className: rootClassName$2d + "-sub-list"
|
|
8643
8644
|
}, props.subList.map(function (subItem) {
|
|
8644
|
-
var itemClassNames = getMergedClassNames([rootClassName$
|
|
8645
|
+
var itemClassNames = getMergedClassNames([rootClassName$2d + "-sub-item", subItem.active ? rootClassName$2d + "-active" : '']);
|
|
8645
8646
|
var idAndKey = subItem.id ? subItem.id : getUniqueKey();
|
|
8646
8647
|
return React$1.createElement("div", {
|
|
8647
8648
|
id: idAndKey,
|
|
@@ -8649,9 +8650,9 @@ function MenuItem(props) {
|
|
|
8649
8650
|
key: idAndKey,
|
|
8650
8651
|
onClick: subItem.onClick
|
|
8651
8652
|
}, React$1.createElement("div", {
|
|
8652
|
-
className: rootClassName$
|
|
8653
|
+
className: rootClassName$2d + "-sub-item-icon"
|
|
8653
8654
|
}, subItem.icon), React$1.createElement("div", {
|
|
8654
|
-
className: rootClassName$
|
|
8655
|
+
className: rootClassName$2d + "-sub-item-label"
|
|
8655
8656
|
}, subItem.label));
|
|
8656
8657
|
}))) : undefined);
|
|
8657
8658
|
}
|
|
@@ -8662,7 +8663,7 @@ MenuItem.defaultProps = {
|
|
|
8662
8663
|
label: ''
|
|
8663
8664
|
};
|
|
8664
8665
|
|
|
8665
|
-
var rootClassName$
|
|
8666
|
+
var rootClassName$2e = 'component-menu';
|
|
8666
8667
|
var timeout;
|
|
8667
8668
|
var format = function format(s) {
|
|
8668
8669
|
return getStringWithoutSpecialChar(s).trim().toLowerCase();
|
|
@@ -8704,11 +8705,11 @@ function Menu(props) {
|
|
|
8704
8705
|
}, [props.openOnClick]);
|
|
8705
8706
|
var getProps = function getProps() {
|
|
8706
8707
|
var openedOrNot = function openedOrNot(condition) {
|
|
8707
|
-
if (condition) return rootClassName$
|
|
8708
|
+
if (condition) return rootClassName$2e + "-opened";
|
|
8708
8709
|
return '';
|
|
8709
8710
|
};
|
|
8710
8711
|
var p = _extends({}, props, {
|
|
8711
|
-
className: getMergedClassNames([rootClassName$
|
|
8712
|
+
className: getMergedClassNames([rootClassName$2e, 'scroll-white', props.className, props.shortOnMD ? rootClassName$2e + "-short-on-md" : '', props.openOnClick ? rootClassName$2e + "-open-on-click" : '', props.hamburgerMenu ? rootClassName$2e + "-hamburger-menu" : '', (props.openOnClick || props.hamburgerMenu) && (props.opened !== undefined ? openedOrNot(props.opened) : openedOrNot(opened))])
|
|
8712
8713
|
});
|
|
8713
8714
|
delete p.loading;
|
|
8714
8715
|
delete p.openOnClick;
|
|
@@ -8744,14 +8745,14 @@ function Menu(props) {
|
|
|
8744
8745
|
});
|
|
8745
8746
|
}, [buscarValue, props.items]);
|
|
8746
8747
|
return React$1.createElement(React$1.Fragment, null, React$1.createElement("div", Object.assign({}, getProps()), props.hamburgerMenu && React$1.createElement(IconButton$1, {
|
|
8747
|
-
className: rootClassName$
|
|
8748
|
+
className: rootClassName$2e + "-close-button",
|
|
8748
8749
|
icon: React$1.createElement(CloseIcon, null),
|
|
8749
8750
|
onClick: function onClick() {
|
|
8750
8751
|
setOpened(false);
|
|
8751
8752
|
if (typeof props.setOpened === 'function') props.setOpened(false);
|
|
8752
8753
|
}
|
|
8753
8754
|
}), React$1.createElement("div", {
|
|
8754
|
-
className: rootClassName$
|
|
8755
|
+
className: rootClassName$2e + "-logo"
|
|
8755
8756
|
}, props.logo), React$1.createElement(Collapse$1, {
|
|
8756
8757
|
animateOpacity: true,
|
|
8757
8758
|
opened: props.loading
|
|
@@ -8763,7 +8764,7 @@ function Menu(props) {
|
|
|
8763
8764
|
animateOpacity: true,
|
|
8764
8765
|
opened: props.buscar && !props.loading
|
|
8765
8766
|
}, React$1.createElement("div", {
|
|
8766
|
-
className: rootClassName$
|
|
8767
|
+
className: rootClassName$2e + "-buscar"
|
|
8767
8768
|
}, React$1.createElement(Input$1, {
|
|
8768
8769
|
disabled: props.loading || !props.buscar,
|
|
8769
8770
|
id: 'buscar-menu',
|
|
@@ -8779,29 +8780,29 @@ function Menu(props) {
|
|
|
8779
8780
|
animateOpacity: true,
|
|
8780
8781
|
opened: itens.length > 0
|
|
8781
8782
|
}, React$1.createElement("div", {
|
|
8782
|
-
className: rootClassName$
|
|
8783
|
+
className: rootClassName$2e + "-items"
|
|
8783
8784
|
}, itens.map(function (it, index) {
|
|
8784
8785
|
return React$1.createElement("div", {
|
|
8785
|
-
className: rootClassName$
|
|
8786
|
+
className: rootClassName$2e + "-it",
|
|
8786
8787
|
key: index
|
|
8787
8788
|
}, React$1.createElement(MenuItem, Object.assign({}, it, {
|
|
8788
8789
|
buscar: props.buscar,
|
|
8789
8790
|
buscarValue: buscarValue
|
|
8790
8791
|
})));
|
|
8791
8792
|
})))), React$1.createElement(React$1.Fragment, null, props.openOnClick && React$1.createElement("button", {
|
|
8792
|
-
className: rootClassName$
|
|
8793
|
+
className: rootClassName$2e + "-toggle " + (opened ? rootClassName$2e + "-opened" : ''),
|
|
8793
8794
|
onClick: function onClick() {
|
|
8794
8795
|
setOpened(!opened);
|
|
8795
8796
|
if (typeof props.setOpened === 'function') props.setOpened(false);
|
|
8796
8797
|
}
|
|
8797
8798
|
}, React$1.createElement(ChevronArrowRightIcon, null))), React$1.createElement(React$1.Fragment, null, (props.openOnClick || props.hamburgerMenu) && React$1.createElement(CSSTransition, {
|
|
8798
8799
|
timeout: 300,
|
|
8799
|
-
classNames: rootClassName$
|
|
8800
|
+
classNames: rootClassName$2e + "-background",
|
|
8800
8801
|
"in": (props.openOnClick || props.hamburgerMenu) && (props.opened !== undefined ? props.opened : opened),
|
|
8801
8802
|
mountOnEnter: true,
|
|
8802
8803
|
unmountOnExit: true
|
|
8803
8804
|
}, React$1.createElement("div", {
|
|
8804
|
-
className: rootClassName$
|
|
8805
|
+
className: rootClassName$2e + "-background",
|
|
8805
8806
|
onClick: function onClick() {
|
|
8806
8807
|
setOpened(false);
|
|
8807
8808
|
if (typeof props.setOpened === 'function') props.setOpened(false);
|
|
@@ -8821,12 +8822,12 @@ Menu.defaultProps = {
|
|
|
8821
8822
|
};
|
|
8822
8823
|
var Menu$1 = memo(Menu);
|
|
8823
8824
|
|
|
8824
|
-
var rootClassName$
|
|
8825
|
+
var rootClassName$2f = 'component-modal';
|
|
8825
8826
|
function Modal(props) {
|
|
8826
8827
|
var filteredProps = useMemo(function () {
|
|
8827
8828
|
var p = _extends({}, props, {
|
|
8828
8829
|
id: props.id ? props.id : props.modalKey ? props.modalKey : "modal" + getUniqueKey(),
|
|
8829
|
-
className: getMergedClassNames([props.className || '', rootClassName$
|
|
8830
|
+
className: getMergedClassNames([props.className || '', rootClassName$2f, props.mobileOnXS ? 'mobile-on-xs' : '', rootClassName$2f + "-" + String(props.size).toLowerCase()])
|
|
8830
8831
|
});
|
|
8831
8832
|
delete p.footer;
|
|
8832
8833
|
delete p.title;
|
|
@@ -8856,18 +8857,18 @@ function Modal(props) {
|
|
|
8856
8857
|
if (typeof props.onClose === 'function') props.onClose(props.modalKey);
|
|
8857
8858
|
};
|
|
8858
8859
|
return React$1.createElement("div", Object.assign({}, filteredProps), React$1.createElement("div", {
|
|
8859
|
-
className: rootClassName$
|
|
8860
|
+
className: rootClassName$2f + "-header"
|
|
8860
8861
|
}, React$1.createElement("div", {
|
|
8861
|
-
className: rootClassName$
|
|
8862
|
+
className: rootClassName$2f + "-title"
|
|
8862
8863
|
}, props.title), React$1.createElement("div", {
|
|
8863
|
-
className: rootClassName$
|
|
8864
|
+
className: rootClassName$2f + "-close-button"
|
|
8864
8865
|
}, React$1.createElement(IconButton$1, {
|
|
8865
8866
|
onClick: handleClose,
|
|
8866
8867
|
icon: React$1.createElement(CloseIcon, null)
|
|
8867
8868
|
}))), React$1.createElement("div", {
|
|
8868
|
-
className: getMergedClassNames([rootClassName$
|
|
8869
|
+
className: getMergedClassNames([rootClassName$2f + "-content", props.compenseColPaddingContent ? 'compense' : ''])
|
|
8869
8870
|
}, props.children), props.footer ? React$1.createElement("div", {
|
|
8870
|
-
className: rootClassName$
|
|
8871
|
+
className: rootClassName$2f + "-footer"
|
|
8871
8872
|
}, footer) : undefined);
|
|
8872
8873
|
}
|
|
8873
8874
|
Modal.defaultProps = {
|
|
@@ -8876,11 +8877,11 @@ Modal.defaultProps = {
|
|
|
8876
8877
|
size: 'large'
|
|
8877
8878
|
};
|
|
8878
8879
|
|
|
8879
|
-
var rootClassName$
|
|
8880
|
+
var rootClassName$2g = 'component-modal-mask';
|
|
8880
8881
|
var ModalMask = function ModalMask(props) {
|
|
8881
8882
|
var getProps = function getProps() {
|
|
8882
8883
|
var p = _extends({}, props, {
|
|
8883
|
-
className: getMergedClassNames([rootClassName$
|
|
8884
|
+
className: getMergedClassNames([rootClassName$2g, props.className || '', props.mobileOnXS ? 'mobile-on-xs' : ''])
|
|
8884
8885
|
});
|
|
8885
8886
|
delete p.mobileOnXS;
|
|
8886
8887
|
return p;
|
|
@@ -8888,7 +8889,7 @@ var ModalMask = function ModalMask(props) {
|
|
|
8888
8889
|
return React$1.createElement("div", Object.assign({}, getProps()), props.children);
|
|
8889
8890
|
};
|
|
8890
8891
|
|
|
8891
|
-
var rootClassName$
|
|
8892
|
+
var rootClassName$2h = 'comp-modal-manager';
|
|
8892
8893
|
var maskRootClassName = 'component-modal-mask';
|
|
8893
8894
|
var hackFocus = function hackFocus() {
|
|
8894
8895
|
var tmp = document.createElement('input');
|
|
@@ -8963,7 +8964,7 @@ var ModalManager = forwardRef(function (_props, ref) {
|
|
|
8963
8964
|
};
|
|
8964
8965
|
});
|
|
8965
8966
|
var getClassNames = function getClassNames() {
|
|
8966
|
-
return getMergedClassNames([rootClassName$
|
|
8967
|
+
return getMergedClassNames([rootClassName$2h + "-modals"]);
|
|
8967
8968
|
};
|
|
8968
8969
|
return React$1.createElement(React$1.Fragment, null, React$1.createElement(TransitionGroup, {
|
|
8969
8970
|
className: getClassNames()
|
|
@@ -8972,7 +8973,7 @@ var ModalManager = forwardRef(function (_props, ref) {
|
|
|
8972
8973
|
var ModalComponent = React$1.createElement(obj.component, obj.props);
|
|
8973
8974
|
return React$1.createElement(CSSTransition, {
|
|
8974
8975
|
timeout: 300,
|
|
8975
|
-
classNames: (_obj$props2 = obj.props) !== null && _obj$props2 !== void 0 && _obj$props2.mobileOnXS ? rootClassName$
|
|
8976
|
+
classNames: (_obj$props2 = obj.props) !== null && _obj$props2 !== void 0 && _obj$props2.mobileOnXS ? rootClassName$2h + "-mask-mobile-on-xs" : rootClassName$2h + "-mask",
|
|
8976
8977
|
key: (_obj$props3 = obj.props) === null || _obj$props3 === void 0 ? void 0 : _obj$props3.modalKey,
|
|
8977
8978
|
unmountOnExit: true
|
|
8978
8979
|
}, React$1.createElement(ModalMask, {
|
|
@@ -9010,7 +9011,7 @@ PageSubTitle.defaultProps = {
|
|
|
9010
9011
|
text: ''
|
|
9011
9012
|
};
|
|
9012
9013
|
|
|
9013
|
-
var rootClassName$
|
|
9014
|
+
var rootClassName$2i = 'component-paginator';
|
|
9014
9015
|
function Paginator(props) {
|
|
9015
9016
|
var _useState = useState([]),
|
|
9016
9017
|
arrOfNumbers = _useState[0],
|
|
@@ -9036,11 +9037,11 @@ function Paginator(props) {
|
|
|
9036
9037
|
}, [props.quantidadeDePaginas, props.maxLength, props.paginaAtual]);
|
|
9037
9038
|
return React$1.createElement("div", {
|
|
9038
9039
|
id: props.id ? props.id : undefined,
|
|
9039
|
-
className: getMergedClassNames([rootClassName$
|
|
9040
|
+
className: getMergedClassNames([rootClassName$2i, props.className || ''])
|
|
9040
9041
|
}, React$1.createElement("div", {
|
|
9041
|
-
className: rootClassName$
|
|
9042
|
+
className: rootClassName$2i + "-center-content"
|
|
9042
9043
|
}, props.quantidadeDePaginas > 1 ? React$1.createElement("div", {
|
|
9043
|
-
className: rootClassName$
|
|
9044
|
+
className: rootClassName$2i + "-left-arrow"
|
|
9044
9045
|
}, React$1.createElement(IconButton$1, {
|
|
9045
9046
|
disabled: props.paginaAtual === 1,
|
|
9046
9047
|
icon: React$1.createElement(ChevronArrowLeftIcon, null),
|
|
@@ -9050,11 +9051,11 @@ function Paginator(props) {
|
|
|
9050
9051
|
}
|
|
9051
9052
|
}
|
|
9052
9053
|
})) : undefined, React$1.createElement("div", {
|
|
9053
|
-
className: rootClassName$
|
|
9054
|
+
className: rootClassName$2i + "-numbers"
|
|
9054
9055
|
}, arrOfNumbers.map(function (num) {
|
|
9055
9056
|
return React$1.createElement("button", {
|
|
9056
9057
|
key: num,
|
|
9057
|
-
className: getMergedClassNames([rootClassName$
|
|
9058
|
+
className: getMergedClassNames([rootClassName$2i + "-number", num === props.paginaAtual ? 'active' : '']),
|
|
9058
9059
|
onClick: function onClick() {
|
|
9059
9060
|
if (typeof props.onChange === 'function' && num !== props.paginaAtual) {
|
|
9060
9061
|
props.onChange(num);
|
|
@@ -9062,7 +9063,7 @@ function Paginator(props) {
|
|
|
9062
9063
|
}
|
|
9063
9064
|
}, num);
|
|
9064
9065
|
})), props.quantidadeDePaginas > 1 ? React$1.createElement("div", {
|
|
9065
|
-
className: rootClassName$
|
|
9066
|
+
className: rootClassName$2i + "-right-arrow"
|
|
9066
9067
|
}, React$1.createElement(IconButton$1, {
|
|
9067
9068
|
icon: React$1.createElement(ChevronArrowRightIcon, null),
|
|
9068
9069
|
onClick: function onClick() {
|
|
@@ -9072,12 +9073,12 @@ function Paginator(props) {
|
|
|
9072
9073
|
},
|
|
9073
9074
|
disabled: props.paginaAtual >= props.quantidadeDePaginas
|
|
9074
9075
|
})) : undefined, React$1.createElement(CSSTransition, {
|
|
9075
|
-
classNames: rootClassName$
|
|
9076
|
+
classNames: rootClassName$2i + "-loader",
|
|
9076
9077
|
"in": props.loading,
|
|
9077
9078
|
timeout: 300,
|
|
9078
9079
|
unmountOnExit: true
|
|
9079
9080
|
}, React$1.createElement("div", {
|
|
9080
|
-
className: rootClassName$
|
|
9081
|
+
className: rootClassName$2i + "-loader"
|
|
9081
9082
|
}, React$1.createElement(ThreeDotsLoader, {
|
|
9082
9083
|
size: 2
|
|
9083
9084
|
})))));
|
|
@@ -9186,10 +9187,10 @@ function usePagination(props) {
|
|
|
9186
9187
|
}, other);
|
|
9187
9188
|
}
|
|
9188
9189
|
|
|
9189
|
-
var rootClassName$
|
|
9190
|
+
var rootClassName$2j = 'icon-component';
|
|
9190
9191
|
var ThreeDots = function ThreeDots() {
|
|
9191
9192
|
return React$1.createElement("svg", {
|
|
9192
|
-
className: rootClassName$
|
|
9193
|
+
className: rootClassName$2j,
|
|
9193
9194
|
xmlns: 'http://www.w3.org/2000/svg',
|
|
9194
9195
|
fill: 'none',
|
|
9195
9196
|
viewBox: '0.8 0.71 10.32 2.37'
|
|
@@ -9247,6 +9248,7 @@ function useScreenSize() {
|
|
|
9247
9248
|
}
|
|
9248
9249
|
|
|
9249
9250
|
var _excluded$1 = ["page", "type", "selected"];
|
|
9251
|
+
var rootClassName$2k = 'pagination-component';
|
|
9250
9252
|
var Pagination = function Pagination(props) {
|
|
9251
9253
|
var screenSize = useScreenSize();
|
|
9252
9254
|
var _useState = useState(false),
|
|
@@ -9316,20 +9318,20 @@ var Pagination = function Pagination(props) {
|
|
|
9316
9318
|
return false;
|
|
9317
9319
|
}, [rowsPerPage, countPages, screenSize]);
|
|
9318
9320
|
return React$1.createElement(Row$1, {
|
|
9319
|
-
className: getMergedClassNames([
|
|
9321
|
+
className: getMergedClassNames([rootClassName$2k, countPages ? 'hasLeftItem' : '', countPages || rowsPerPage ? 'oneOf' : ''])
|
|
9320
9322
|
}, countPages || rowsPerPage ? React$1.createElement(Col$1, {
|
|
9321
9323
|
noPadding: true,
|
|
9322
9324
|
cols: rowsPerPage && countPages ? [12, 12, 6, 6, 6] : rowsPerPage || countPages ? [12, 6, 6, 6, 6] : [12, 12, 12, 12, 12]
|
|
9323
9325
|
}, countPages || rowsPerPage ? React$1.createElement("div", {
|
|
9324
|
-
className: getMergedClassNames([
|
|
9326
|
+
className: getMergedClassNames(['paginationLeftContainer', 'nunito', countPages && rowsPerPage ? 'both' : countPages || rowsPerPage ? 'oneOf' : ''])
|
|
9325
9327
|
}, countPages ? React$1.createElement("div", null, React$1.createElement("p", null, defaultLabelDisplayedRows({
|
|
9326
9328
|
from: countPages.rows === 0 ? 0 : countPages.rows * pageCurrent - countPages.rows + 1,
|
|
9327
9329
|
to: Number(pageCurrent === lastPage ? countPages.totalItems : countPages.rows * pageCurrent),
|
|
9328
9330
|
count: countPages.totalItems === -1 ? -1 : countPages.totalItems
|
|
9329
9331
|
}))) : undefined, rowsPerPage ? React$1.createElement("div", null, React$1.createElement("div", {
|
|
9330
|
-
className:
|
|
9331
|
-
}, countPages ?
|
|
9332
|
-
className: getMergedClassNames([
|
|
9332
|
+
className: 'linesPerPage'
|
|
9333
|
+
}, countPages ? ['md', 'lg', 'xl'].includes(screenSize) ? React$1.createElement("span", null, React$1.createElement(ListDotIcon, null)) : '' : undefined, React$1.createElement("div", {
|
|
9334
|
+
className: getMergedClassNames(['wrapper', loading || disabled ? 'disabled' : ''])
|
|
9333
9335
|
}, React$1.createElement("p", null, "Linhas por p\xE1gina:"), React$1.createElement(DropdownMenu, {
|
|
9334
9336
|
opened: !loading && !disabled && dropdownOpened,
|
|
9335
9337
|
setOpened: setDropdownOpened,
|
|
@@ -9357,7 +9359,7 @@ var Pagination = function Pagination(props) {
|
|
|
9357
9359
|
onClick: function onClick() {
|
|
9358
9360
|
return setDropdownOpened(!dropdownOpened);
|
|
9359
9361
|
},
|
|
9360
|
-
className: getMergedClassNames([
|
|
9362
|
+
className: getMergedClassNames(['drop', dropdownOpened ? 'active' : ''])
|
|
9361
9363
|
}, React$1.createElement("p", {
|
|
9362
9364
|
className: 'nunito'
|
|
9363
9365
|
}, rowsPerPage && rows, " "), React$1.createElement(ChevronArrowDownIcon, null)))))) : undefined) : undefined) : undefined, React$1.createElement(Col$1, {
|
|
@@ -9374,17 +9376,17 @@ var Pagination = function Pagination(props) {
|
|
|
9374
9376
|
if (type === 'start-ellipsis' || type === 'end-ellipsis') {
|
|
9375
9377
|
children = React$1.createElement("li", {
|
|
9376
9378
|
key: index,
|
|
9377
|
-
className: getMergedClassNames([
|
|
9379
|
+
className: getMergedClassNames(['paginationItem', 'dots', disabled ? 'disabled' : ''])
|
|
9378
9380
|
}, React$1.createElement(ThreeDots, null));
|
|
9379
9381
|
} else if (type === 'page') {
|
|
9380
9382
|
children = React$1.createElement("li", Object.assign({
|
|
9381
9383
|
key: index,
|
|
9382
|
-
className: getMergedClassNames([
|
|
9384
|
+
className: getMergedClassNames(['paginationItem', disabled ? 'disabled' : '', selected ? 'selected' : '', !loading ? 'nonLoader' : '']),
|
|
9383
9385
|
tabIndex: disabled ? -1 : 0
|
|
9384
9386
|
}, item), page);
|
|
9385
9387
|
} else if (type === 'voltar') {
|
|
9386
9388
|
children = React$1.createElement("div", {
|
|
9387
|
-
className:
|
|
9389
|
+
className: 'arrows',
|
|
9388
9390
|
"aria-label": 'previous page'
|
|
9389
9391
|
}, React$1.createElement(IconButton$1, Object.assign({
|
|
9390
9392
|
icon: React$1.createElement(ChevronArrowLeftIcon, null),
|
|
@@ -9392,7 +9394,7 @@ var Pagination = function Pagination(props) {
|
|
|
9392
9394
|
}, item)));
|
|
9393
9395
|
} else if (type === 'próximo') {
|
|
9394
9396
|
children = React$1.createElement("div", {
|
|
9395
|
-
className:
|
|
9397
|
+
className: 'arrows',
|
|
9396
9398
|
"aria-label": 'previous page'
|
|
9397
9399
|
}, React$1.createElement(IconButton$1, Object.assign({
|
|
9398
9400
|
icon: React$1.createElement(ChevronArrowRightIcon, null),
|
|
@@ -9401,27 +9403,27 @@ var Pagination = function Pagination(props) {
|
|
|
9401
9403
|
}
|
|
9402
9404
|
return React$1.createElement("ul", {
|
|
9403
9405
|
key: index,
|
|
9404
|
-
className:
|
|
9406
|
+
className: 'paginationContainer'
|
|
9405
9407
|
}, children);
|
|
9406
9408
|
}), React$1.createElement(CSSTransition, {
|
|
9407
9409
|
"in": loading,
|
|
9408
9410
|
timeout: 300,
|
|
9409
9411
|
unmountOnExit: true,
|
|
9410
9412
|
classNames: {
|
|
9411
|
-
enter:
|
|
9412
|
-
enterActive:
|
|
9413
|
-
exit:
|
|
9414
|
-
exitActive:
|
|
9415
|
-
exitDone:
|
|
9413
|
+
enter: 'enter',
|
|
9414
|
+
enterActive: 'enterActive',
|
|
9415
|
+
exit: 'exit',
|
|
9416
|
+
exitActive: 'exitActive',
|
|
9417
|
+
exitDone: 'exitDone'
|
|
9416
9418
|
}
|
|
9417
9419
|
}, React$1.createElement("div", {
|
|
9418
|
-
className:
|
|
9420
|
+
className: 'paginationContainerLoader'
|
|
9419
9421
|
}, React$1.createElement(ThreeDotsLoader, {
|
|
9420
9422
|
size: 2
|
|
9421
9423
|
}))))));
|
|
9422
9424
|
};
|
|
9423
9425
|
|
|
9424
|
-
var rootClassName$
|
|
9426
|
+
var rootClassName$2l = 'component-video-player';
|
|
9425
9427
|
function VideoPlayer(props) {
|
|
9426
9428
|
var youtubeRegex = /youtu(\.){0,1}be/;
|
|
9427
9429
|
var alreadyPlayed = false;
|
|
@@ -9462,7 +9464,7 @@ function VideoPlayer(props) {
|
|
|
9462
9464
|
}, []);
|
|
9463
9465
|
var getProps = function getProps() {
|
|
9464
9466
|
var p = _extends({}, props, {
|
|
9465
|
-
className: getMergedClassNames([rootClassName$
|
|
9467
|
+
className: getMergedClassNames([rootClassName$2l, props.className, props.blackGround ? 'blackground' : ''])
|
|
9466
9468
|
});
|
|
9467
9469
|
delete p.id;
|
|
9468
9470
|
delete p.url;
|
|
@@ -9558,7 +9560,7 @@ VideoPlayer.defaultProps = {
|
|
|
9558
9560
|
formatUrl: true
|
|
9559
9561
|
};
|
|
9560
9562
|
|
|
9561
|
-
var rootClassName$
|
|
9563
|
+
var rootClassName$2m = 'previa-video';
|
|
9562
9564
|
function PreviaVideo(props) {
|
|
9563
9565
|
var _useState = useState(getUniqueKey()),
|
|
9564
9566
|
id = _useState[0];
|
|
@@ -9594,21 +9596,21 @@ function PreviaVideo(props) {
|
|
|
9594
9596
|
}, [props.videoPlayerProps]);
|
|
9595
9597
|
return React$1.createElement("div", {
|
|
9596
9598
|
id: id,
|
|
9597
|
-
className: rootClassName$
|
|
9599
|
+
className: rootClassName$2m,
|
|
9598
9600
|
onClick: function onClick() {
|
|
9599
9601
|
if (!clicou) setClicou(true);
|
|
9600
9602
|
}
|
|
9601
9603
|
}, React$1.createElement("div", {
|
|
9602
|
-
className: rootClassName$
|
|
9604
|
+
className: rootClassName$2m + "-img",
|
|
9603
9605
|
style: {
|
|
9604
9606
|
backgroundImage: "url(" + props.imgUrl + ")"
|
|
9605
9607
|
}
|
|
9606
9608
|
}), React$1.createElement("div", {
|
|
9607
|
-
className: rootClassName$
|
|
9609
|
+
className: rootClassName$2m + "-icon"
|
|
9608
9610
|
}, React$1.createElement(BigPlayIcon, {
|
|
9609
9611
|
hideBackground: true
|
|
9610
9612
|
})), React$1.createElement("div", {
|
|
9611
|
-
className: rootClassName$
|
|
9613
|
+
className: rootClassName$2m + "-label"
|
|
9612
9614
|
}, props.label), React$1.createElement(CSSTransition, {
|
|
9613
9615
|
"in": clicou,
|
|
9614
9616
|
timeout: 300,
|
|
@@ -9619,7 +9621,7 @@ function PreviaVideo(props) {
|
|
|
9619
9621
|
el.style.height = firstHeight.current;
|
|
9620
9622
|
}
|
|
9621
9623
|
}, React$1.createElement("div", {
|
|
9622
|
-
className: rootClassName$
|
|
9624
|
+
className: rootClassName$2m + "-video"
|
|
9623
9625
|
}, React$1.createElement(VideoPlayer, Object.assign({
|
|
9624
9626
|
blackGround: true
|
|
9625
9627
|
}, videoPlayerProps, {
|
|
@@ -9634,11 +9636,11 @@ var RadioButtonType;
|
|
|
9634
9636
|
RadioButtonType["New"] = "new";
|
|
9635
9637
|
})(RadioButtonType || (RadioButtonType = {}));
|
|
9636
9638
|
|
|
9637
|
-
var rootClassName$
|
|
9639
|
+
var rootClassName$2n = 'component-radio-button';
|
|
9638
9640
|
function RadioButton(props) {
|
|
9639
9641
|
var buttonProps = useMemo(function () {
|
|
9640
9642
|
var p = _extends({}, props, {
|
|
9641
|
-
className: getMergedClassNames([rootClassName$
|
|
9643
|
+
className: getMergedClassNames([rootClassName$2n, props.theme, props.className, rootClassName$2n + "-" + (props.value ? 'checked' : 'not')]),
|
|
9642
9644
|
onClick: function onClick() {
|
|
9643
9645
|
if (!props.disabled) {
|
|
9644
9646
|
props.onChange(!props.value);
|
|
@@ -9659,11 +9661,11 @@ RadioButton.defaultProps = {
|
|
|
9659
9661
|
};
|
|
9660
9662
|
var RadioButton$1 = memo(RadioButton);
|
|
9661
9663
|
|
|
9662
|
-
var rootClassName$
|
|
9664
|
+
var rootClassName$2o = 'component-chip';
|
|
9663
9665
|
function Chip(props) {
|
|
9664
9666
|
var _props$theme;
|
|
9665
9667
|
return React$1.createElement("div", {
|
|
9666
|
-
className: useMergedClassNames([rootClassName$
|
|
9668
|
+
className: useMergedClassNames([rootClassName$2o, props.w100 ? 'w100' : '', props.allClickable ? 'all-clickable' : '', (_props$theme = props.theme) != null ? _props$theme : 'primary-outline']),
|
|
9667
9669
|
onClick: function onClick() {
|
|
9668
9670
|
if (!props.disabled && props.allClickable && typeof props.onClick === 'function') {
|
|
9669
9671
|
props.onClick();
|
|
@@ -9672,7 +9674,7 @@ function Chip(props) {
|
|
|
9672
9674
|
}, React$1.createElement("span", {
|
|
9673
9675
|
className: 'nunito'
|
|
9674
9676
|
}, props.label), React$1.createElement("div", {
|
|
9675
|
-
className: rootClassName$
|
|
9677
|
+
className: rootClassName$2o + "-button",
|
|
9676
9678
|
onClick: function onClick() {
|
|
9677
9679
|
if (!props.disabled && typeof props.onClick === 'function') {
|
|
9678
9680
|
props.onClick();
|
|
@@ -9706,7 +9708,7 @@ function useOutsideClick(refs, handler) {
|
|
|
9706
9708
|
}, [refs, handler, handleClickOutside]);
|
|
9707
9709
|
}
|
|
9708
9710
|
|
|
9709
|
-
var rootClassName$
|
|
9711
|
+
var rootClassName$2p = 'component-search';
|
|
9710
9712
|
function Search(props) {
|
|
9711
9713
|
var _wrapperRef$current;
|
|
9712
9714
|
var _useState = useState(),
|
|
@@ -9815,7 +9817,7 @@ function Search(props) {
|
|
|
9815
9817
|
return React$1.createElement("div", {
|
|
9816
9818
|
tabIndex: 1,
|
|
9817
9819
|
id: id,
|
|
9818
|
-
className: rootClassName$
|
|
9820
|
+
className: rootClassName$2p,
|
|
9819
9821
|
ref: wrapperRef
|
|
9820
9822
|
}, React$1.createElement(Input$1, {
|
|
9821
9823
|
id: getUniqueKey(),
|
|
@@ -9825,7 +9827,7 @@ function Search(props) {
|
|
|
9825
9827
|
placeholder: props.placeholder,
|
|
9826
9828
|
onKeyDown: function onKeyDown(evt) {
|
|
9827
9829
|
if (evt.key === 'Tab' && !evt.shiftKey || evt.key === 'ArrowDown') {
|
|
9828
|
-
var query = "#" + panelId + " ." + rootClassName$
|
|
9830
|
+
var query = "#" + panelId + " ." + rootClassName$2p + "-options:nth-child(1)";
|
|
9829
9831
|
var optionToFocus = document.querySelector(query);
|
|
9830
9832
|
if (optionToFocus) {
|
|
9831
9833
|
optionToFocus.focus();
|
|
@@ -9834,7 +9836,7 @@ function Search(props) {
|
|
|
9834
9836
|
}
|
|
9835
9837
|
},
|
|
9836
9838
|
rightObject: React$1.createElement("div", {
|
|
9837
|
-
className: rootClassName$
|
|
9839
|
+
className: rootClassName$2p + "-right-container"
|
|
9838
9840
|
}, props.showSelected && selected ? React$1.createElement(Chip$1, {
|
|
9839
9841
|
label: selected,
|
|
9840
9842
|
allClickable: false,
|
|
@@ -9887,7 +9889,7 @@ function Search(props) {
|
|
|
9887
9889
|
unmountOnExit: true
|
|
9888
9890
|
}, React$1.createElement("div", {
|
|
9889
9891
|
id: panelId,
|
|
9890
|
-
className: rootClassName$
|
|
9892
|
+
className: rootClassName$2p + "-panel scroll-white",
|
|
9891
9893
|
style: {
|
|
9892
9894
|
width: ((_wrapperRef$current = wrapperRef.current) === null || _wrapperRef$current === void 0 ? void 0 : _wrapperRef$current.offsetWidth) + "px"
|
|
9893
9895
|
}
|
|
@@ -9895,7 +9897,7 @@ function Search(props) {
|
|
|
9895
9897
|
return React$1.createElement("div", {
|
|
9896
9898
|
key: i,
|
|
9897
9899
|
tabIndex: 1,
|
|
9898
|
-
className: rootClassName$
|
|
9900
|
+
className: rootClassName$2p + "-options",
|
|
9899
9901
|
onClick: function onClick() {
|
|
9900
9902
|
handleSelectItem(e);
|
|
9901
9903
|
},
|
|
@@ -9951,7 +9953,7 @@ function Search(props) {
|
|
|
9951
9953
|
return React$1.createElement("div", {
|
|
9952
9954
|
key: i,
|
|
9953
9955
|
tabIndex: 1,
|
|
9954
|
-
className: rootClassName$
|
|
9956
|
+
className: rootClassName$2p + "-options",
|
|
9955
9957
|
onClick: function onClick() {
|
|
9956
9958
|
handleSelectItem(results);
|
|
9957
9959
|
},
|
|
@@ -10008,7 +10010,7 @@ Search.defaultProps = {
|
|
|
10008
10010
|
};
|
|
10009
10011
|
var Search$1 = memo(Search);
|
|
10010
10012
|
|
|
10011
|
-
var rootClassName$
|
|
10013
|
+
var rootClassName$2q = 'component-select';
|
|
10012
10014
|
function Select(props) {
|
|
10013
10015
|
var _props$options3;
|
|
10014
10016
|
var _useState = useState(getUniqueKey()),
|
|
@@ -10041,7 +10043,7 @@ function Select(props) {
|
|
|
10041
10043
|
var aux = evt.target;
|
|
10042
10044
|
var deveFechar = true;
|
|
10043
10045
|
while (aux && aux.id !== 'root') {
|
|
10044
|
-
if (aux && aux.id && aux.id === id && aux.classList.contains(rootClassName$
|
|
10046
|
+
if (aux && aux.id && aux.id === id && aux.classList.contains(rootClassName$2q + "-outer")) {
|
|
10045
10047
|
deveFechar = false;
|
|
10046
10048
|
break;
|
|
10047
10049
|
}
|
|
@@ -10139,11 +10141,11 @@ function Select(props) {
|
|
|
10139
10141
|
}, [opcoes]);
|
|
10140
10142
|
var getRightObject = function getRightObject() {
|
|
10141
10143
|
return React$1.createElement("div", {
|
|
10142
|
-
className: rootClassName$
|
|
10144
|
+
className: rootClassName$2q + "-objects"
|
|
10143
10145
|
}, props.clearButton && !props.readOnly && (props.multiple && props.value && Array.isArray(props.value) && props.value.length || !props.multiple && (props.value || props.value === 0 || props.value === false)) ? React$1.createElement(IconButton$1, {
|
|
10144
10146
|
disabled: props.disabled || false,
|
|
10145
10147
|
tabIndex: -1,
|
|
10146
|
-
className: rootClassName$
|
|
10148
|
+
className: rootClassName$2q + "-clear-button",
|
|
10147
10149
|
icon: React$1.createElement(CloseIcon, null),
|
|
10148
10150
|
onClick: function onClick() {
|
|
10149
10151
|
if (props.multiple) {
|
|
@@ -10159,7 +10161,7 @@ function Select(props) {
|
|
|
10159
10161
|
}) : undefined, React$1.createElement(IconButton$1, {
|
|
10160
10162
|
disabled: props.disabled || false,
|
|
10161
10163
|
tabIndex: -1,
|
|
10162
|
-
className: rootClassName$
|
|
10164
|
+
className: rootClassName$2q + "-arrow " + rootClassName$2q + "-arrow-" + (panelOpened ? 'up' : 'down'),
|
|
10163
10165
|
onClick: function onClick() {
|
|
10164
10166
|
return setPanelOpened(!panelOpened);
|
|
10165
10167
|
},
|
|
@@ -10169,12 +10171,12 @@ function Select(props) {
|
|
|
10169
10171
|
var getInputProps = function getInputProps() {
|
|
10170
10172
|
var _props$options;
|
|
10171
10173
|
var p = _extends({}, props, {
|
|
10172
|
-
className: getMergedClassNames([rootClassName$
|
|
10174
|
+
className: getMergedClassNames([rootClassName$2q, props.className]),
|
|
10173
10175
|
forceFocus: fakeSelectFocused,
|
|
10174
10176
|
readOnly: true,
|
|
10175
10177
|
rightObject: getRightObject(),
|
|
10176
10178
|
onClick: function onClick() {
|
|
10177
|
-
var selectFake = document.querySelector("#" + id + " ." + rootClassName$
|
|
10179
|
+
var selectFake = document.querySelector("#" + id + " ." + rootClassName$2q + "-select-fake");
|
|
10178
10180
|
if (!props.multiple && isiPhone() && selectFake) {
|
|
10179
10181
|
selectFake.focus();
|
|
10180
10182
|
} else {
|
|
@@ -10182,7 +10184,7 @@ function Select(props) {
|
|
|
10182
10184
|
}
|
|
10183
10185
|
},
|
|
10184
10186
|
onFocus: function onFocus(evt) {
|
|
10185
|
-
var selectFake = document.querySelector("#" + id + " ." + rootClassName$
|
|
10187
|
+
var selectFake = document.querySelector("#" + id + " ." + rootClassName$2q + "-select-fake");
|
|
10186
10188
|
if (!props.multiple && isiPhone() && selectFake) {
|
|
10187
10189
|
selectFake.focus();
|
|
10188
10190
|
} else {
|
|
@@ -10195,12 +10197,12 @@ function Select(props) {
|
|
|
10195
10197
|
evt.preventDefault();
|
|
10196
10198
|
}
|
|
10197
10199
|
if (evt.keyCode === 9 && panelOpened) {
|
|
10198
|
-
var inputFilter = document.querySelector("#" + panelId + " ." + rootClassName$
|
|
10200
|
+
var inputFilter = document.querySelector("#" + panelId + " ." + rootClassName$2q + "-panel-input input");
|
|
10199
10201
|
if (inputFilter) {
|
|
10200
10202
|
inputFilter.focus();
|
|
10201
10203
|
evt.preventDefault();
|
|
10202
10204
|
} else {
|
|
10203
|
-
var firstOption = document.querySelector("#" + id + " ." + rootClassName$
|
|
10205
|
+
var firstOption = document.querySelector("#" + id + " ." + rootClassName$2q + "-options div");
|
|
10204
10206
|
if (firstOption) {
|
|
10205
10207
|
firstOption.focus();
|
|
10206
10208
|
evt.preventDefault();
|
|
@@ -10249,7 +10251,7 @@ function Select(props) {
|
|
|
10249
10251
|
return React$1.createElement("div", {
|
|
10250
10252
|
tabIndex: 1,
|
|
10251
10253
|
key: getKey(option),
|
|
10252
|
-
className: rootClassName$
|
|
10254
|
+
className: rootClassName$2q + "-multiple-option " + (props.readOnly ? 'read-only' : ''),
|
|
10253
10255
|
onKeyDown: function onKeyDown(evt) {
|
|
10254
10256
|
var child = evt.currentTarget;
|
|
10255
10257
|
var parent = child.parentNode;
|
|
@@ -10259,14 +10261,14 @@ function Select(props) {
|
|
|
10259
10261
|
case 'Tab':
|
|
10260
10262
|
if (evt.shiftKey) {
|
|
10261
10263
|
if (index === 0) {
|
|
10262
|
-
var inputFilter = document.querySelector("#" + panelId + " ." + rootClassName$
|
|
10264
|
+
var inputFilter = document.querySelector("#" + panelId + " ." + rootClassName$2q + "-panel-input input");
|
|
10263
10265
|
if (inputFilter) {
|
|
10264
10266
|
inputFilter.focus();
|
|
10265
10267
|
evt.preventDefault();
|
|
10266
10268
|
}
|
|
10267
10269
|
}
|
|
10268
10270
|
} else if (index === total - 1) {
|
|
10269
|
-
var selectAll = document.querySelector("#" + panelId + " " + rootClassName$
|
|
10271
|
+
var selectAll = document.querySelector("#" + panelId + " " + rootClassName$2q + "-footer-button." + rootClassName$2q + "-selectAll");
|
|
10270
10272
|
if (selectAll) {
|
|
10271
10273
|
selectAll.focus();
|
|
10272
10274
|
}
|
|
@@ -10287,7 +10289,7 @@ function Select(props) {
|
|
|
10287
10289
|
if (index > 0) {
|
|
10288
10290
|
parent.children[index - 1].focus();
|
|
10289
10291
|
} else {
|
|
10290
|
-
var _inputFilter = document.querySelector("#" + panelId + " ." + rootClassName$
|
|
10292
|
+
var _inputFilter = document.querySelector("#" + panelId + " ." + rootClassName$2q + "-panel-input input");
|
|
10291
10293
|
if (_inputFilter) _inputFilter.focus();
|
|
10292
10294
|
}
|
|
10293
10295
|
evt.preventDefault();
|
|
@@ -10308,7 +10310,7 @@ function Select(props) {
|
|
|
10308
10310
|
handleChange();
|
|
10309
10311
|
}
|
|
10310
10312
|
}), React$1.createElement("div", {
|
|
10311
|
-
className: rootClassName$
|
|
10313
|
+
className: rootClassName$2q + "-multiple-option-label"
|
|
10312
10314
|
}, option.label));
|
|
10313
10315
|
};
|
|
10314
10316
|
var getSingleOption = function getSingleOption(option) {
|
|
@@ -10324,7 +10326,7 @@ function Select(props) {
|
|
|
10324
10326
|
return React$1.createElement("div", {
|
|
10325
10327
|
key: getKey(option),
|
|
10326
10328
|
tabIndex: 1,
|
|
10327
|
-
className: rootClassName$
|
|
10329
|
+
className: rootClassName$2q + "-single-option " + (props.readOnly ? 'read-only' : ''),
|
|
10328
10330
|
onClick: handleChange,
|
|
10329
10331
|
onKeyDown: function onKeyDown(evt) {
|
|
10330
10332
|
var child = evt.currentTarget;
|
|
@@ -10335,7 +10337,7 @@ function Select(props) {
|
|
|
10335
10337
|
case 'Tab':
|
|
10336
10338
|
if (evt.shiftKey) {
|
|
10337
10339
|
if (index === 0) {
|
|
10338
|
-
var inputPanel = document.querySelector("#" + panelId + " ." + rootClassName$
|
|
10340
|
+
var inputPanel = document.querySelector("#" + panelId + " ." + rootClassName$2q + "-panel-input input");
|
|
10339
10341
|
if (inputPanel) {
|
|
10340
10342
|
inputPanel.focus();
|
|
10341
10343
|
evt.preventDefault();
|
|
@@ -10356,7 +10358,7 @@ function Select(props) {
|
|
|
10356
10358
|
if (index > 0) {
|
|
10357
10359
|
parent.children[index - 1].focus();
|
|
10358
10360
|
} else {
|
|
10359
|
-
var el = document.querySelector("#" + panelId + " ." + rootClassName$
|
|
10361
|
+
var el = document.querySelector("#" + panelId + " ." + rootClassName$2q + "-panel-input input");
|
|
10360
10362
|
if (el) el.focus();
|
|
10361
10363
|
}
|
|
10362
10364
|
evt.preventDefault();
|
|
@@ -10373,7 +10375,7 @@ function Select(props) {
|
|
|
10373
10375
|
};
|
|
10374
10376
|
var noOptionsMessage = useMemo(function () {
|
|
10375
10377
|
return React$1.createElement("div", {
|
|
10376
|
-
className: rootClassName$
|
|
10378
|
+
className: rootClassName$2q + "-no-result"
|
|
10377
10379
|
}, props.noOptionMessage);
|
|
10378
10380
|
}, [props.noOptionMessage]);
|
|
10379
10381
|
var optionsFiltered = useMemo(function () {
|
|
@@ -10384,9 +10386,9 @@ function Select(props) {
|
|
|
10384
10386
|
}, [props.options, filterInput]);
|
|
10385
10387
|
return React$1.createElement("div", {
|
|
10386
10388
|
id: id,
|
|
10387
|
-
className: rootClassName$
|
|
10389
|
+
className: rootClassName$2q + "-outer"
|
|
10388
10390
|
}, !props.multiple && isiPhone() && React$1.createElement("select", {
|
|
10389
|
-
className: rootClassName$
|
|
10391
|
+
className: rootClassName$2q + "-select-fake",
|
|
10390
10392
|
value: props.value ? String(props.value) : '',
|
|
10391
10393
|
onChange: function onChange(evt) {
|
|
10392
10394
|
return props.onChange(evt.target.value, {
|
|
@@ -10419,14 +10421,14 @@ function Select(props) {
|
|
|
10419
10421
|
panel.style.top = 'unset';
|
|
10420
10422
|
panel.style.bottom = '0';
|
|
10421
10423
|
}
|
|
10422
|
-
var firstInput = document.querySelector("#" + panelId + " ." + rootClassName$
|
|
10424
|
+
var firstInput = document.querySelector("#" + panelId + " ." + rootClassName$2q + "-panel-input input");
|
|
10423
10425
|
if (firstInput && !isiPhone()) {
|
|
10424
10426
|
setTimeout(function () {
|
|
10425
10427
|
firstInput.focus();
|
|
10426
10428
|
}, 50);
|
|
10427
10429
|
} else {
|
|
10428
10430
|
if (props.multiple) {
|
|
10429
|
-
var optionToFocus = document.querySelector("#" + panelId + " ." + rootClassName$
|
|
10431
|
+
var optionToFocus = document.querySelector("#" + panelId + " ." + rootClassName$2q + "-options div");
|
|
10430
10432
|
if (optionToFocus) {
|
|
10431
10433
|
setTimeout(function () {
|
|
10432
10434
|
optionToFocus.focus();
|
|
@@ -10442,7 +10444,7 @@ function Select(props) {
|
|
|
10442
10444
|
return opt.value === props.value;
|
|
10443
10445
|
});
|
|
10444
10446
|
var index = elProps ? elProps.ind + 1 : 1;
|
|
10445
|
-
var query = "#" + panelId + " ." + rootClassName$
|
|
10447
|
+
var query = "#" + panelId + " ." + rootClassName$2q + "-options div:nth-child(" + index + ")";
|
|
10446
10448
|
var _optionToFocus = document.querySelector(query);
|
|
10447
10449
|
if (_optionToFocus) {
|
|
10448
10450
|
setTimeout(function () {
|
|
@@ -10460,9 +10462,9 @@ function Select(props) {
|
|
|
10460
10462
|
}
|
|
10461
10463
|
}, React$1.createElement("div", {
|
|
10462
10464
|
id: panelId,
|
|
10463
|
-
className: rootClassName$
|
|
10465
|
+
className: rootClassName$2q + "-panel " + (props.multiple ? 'multiple' : '')
|
|
10464
10466
|
}, props.panelFilter && props.options && !!props.options.length && React$1.createElement("div", {
|
|
10465
|
-
className: rootClassName$
|
|
10467
|
+
className: rootClassName$2q + "-panel-input"
|
|
10466
10468
|
}, React$1.createElement(Input$1, {
|
|
10467
10469
|
value: filterInput,
|
|
10468
10470
|
onChange: function onChange(evt) {
|
|
@@ -10472,7 +10474,7 @@ function Select(props) {
|
|
|
10472
10474
|
hideLabelAndHelperText: true,
|
|
10473
10475
|
onKeyDown: function onKeyDown(evt) {
|
|
10474
10476
|
if (evt.key === 'Tab' && !evt.shiftKey || evt.key === 'ArrowDown') {
|
|
10475
|
-
var el = document.querySelector("#" + id + " ." + rootClassName$
|
|
10477
|
+
var el = document.querySelector("#" + id + " ." + rootClassName$2q + "-options div");
|
|
10476
10478
|
if (el) {
|
|
10477
10479
|
el.focus();
|
|
10478
10480
|
evt.preventDefault();
|
|
@@ -10480,20 +10482,20 @@ function Select(props) {
|
|
|
10480
10482
|
}
|
|
10481
10483
|
}
|
|
10482
10484
|
})), React$1.createElement("div", {
|
|
10483
|
-
className: rootClassName$
|
|
10485
|
+
className: rootClassName$2q + "-options scroll-white"
|
|
10484
10486
|
}, props.options && props.options.length ? optionsFiltered.map(function (option) {
|
|
10485
10487
|
if (props.multiple) {
|
|
10486
10488
|
return getMultipleOption(option);
|
|
10487
10489
|
}
|
|
10488
10490
|
return getSingleOption(option);
|
|
10489
10491
|
}) : noOptionsMessage), props.multiple && props.showPanelFooter && props.options && !!props.options.length && React$1.createElement(React$1.Fragment, null, React$1.createElement("div", {
|
|
10490
|
-
className: rootClassName$
|
|
10492
|
+
className: rootClassName$2q + "-panel-footer-clearfix"
|
|
10491
10493
|
}), React$1.createElement("div", {
|
|
10492
|
-
className: rootClassName$
|
|
10494
|
+
className: rootClassName$2q + "-panel-footer"
|
|
10493
10495
|
}, React$1.createElement(Button$1, {
|
|
10494
10496
|
theme: ButtonThemes.DefaultPrimary,
|
|
10495
10497
|
disabled: props.readOnly,
|
|
10496
|
-
className: rootClassName$
|
|
10498
|
+
className: rootClassName$2q + "-footer-button",
|
|
10497
10499
|
onClick: function onClick() {
|
|
10498
10500
|
return props.onChange(optionsFiltered.map(function (op) {
|
|
10499
10501
|
return op.value;
|
|
@@ -10506,7 +10508,7 @@ function Select(props) {
|
|
|
10506
10508
|
tabIndex: 1,
|
|
10507
10509
|
theme: ButtonThemes.DefaultPrimary,
|
|
10508
10510
|
disabled: props.readOnly,
|
|
10509
|
-
className: rootClassName$
|
|
10511
|
+
className: rootClassName$2q + "-footer-button",
|
|
10510
10512
|
onClick: function onClick() {
|
|
10511
10513
|
return props.onChange([], {
|
|
10512
10514
|
setPanelOpened: setPanelOpened
|
|
@@ -10528,7 +10530,7 @@ Select.defaultProps = {
|
|
|
10528
10530
|
};
|
|
10529
10531
|
var Select$1 = memo(Select);
|
|
10530
10532
|
|
|
10531
|
-
var rootClassName$
|
|
10533
|
+
var rootClassName$2r = 'component-switch';
|
|
10532
10534
|
function Switch(props) {
|
|
10533
10535
|
var handleClick = function handleClick() {
|
|
10534
10536
|
if (typeof props.onChange === 'function' && !props.disabled) {
|
|
@@ -10537,7 +10539,7 @@ function Switch(props) {
|
|
|
10537
10539
|
};
|
|
10538
10540
|
var getProps = function getProps() {
|
|
10539
10541
|
var p = _extends({}, props, {
|
|
10540
|
-
className: getMergedClassNames([rootClassName$
|
|
10542
|
+
className: getMergedClassNames([rootClassName$2r, props.className || '', rootClassName$2r + "-" + (props.value ? 'on' : 'off')]),
|
|
10541
10543
|
onClick: handleClick,
|
|
10542
10544
|
style: _extends({
|
|
10543
10545
|
transform: "scale(" + props.scale + ")"
|
|
@@ -10549,9 +10551,9 @@ function Switch(props) {
|
|
|
10549
10551
|
return p;
|
|
10550
10552
|
};
|
|
10551
10553
|
return React$1.createElement("button", Object.assign({}, getProps()), React$1.createElement("div", {
|
|
10552
|
-
className: rootClassName$
|
|
10554
|
+
className: rootClassName$2r + "-track"
|
|
10553
10555
|
}), React$1.createElement("div", {
|
|
10554
|
-
className: rootClassName$
|
|
10556
|
+
className: rootClassName$2r + "-thumb"
|
|
10555
10557
|
}));
|
|
10556
10558
|
}
|
|
10557
10559
|
Switch.defaultProps = {
|
|
@@ -10561,10 +10563,10 @@ Switch.defaultProps = {
|
|
|
10561
10563
|
scale: 1
|
|
10562
10564
|
};
|
|
10563
10565
|
|
|
10564
|
-
var rootClassName$
|
|
10566
|
+
var rootClassName$2s = 'component-table-actions-column';
|
|
10565
10567
|
var ActionsColumn = function ActionsColumn(props) {
|
|
10566
10568
|
return React$1.createElement("div", {
|
|
10567
|
-
className: rootClassName$
|
|
10569
|
+
className: rootClassName$2s
|
|
10568
10570
|
}, props.buttons && props.buttons.length ? props.buttons.map(function (btn, index) {
|
|
10569
10571
|
return React$1.createElement(IconButton$1, Object.assign({
|
|
10570
10572
|
key: index
|
|
@@ -10575,7 +10577,7 @@ ActionsColumn.defaultProps = {
|
|
|
10575
10577
|
buttons: []
|
|
10576
10578
|
};
|
|
10577
10579
|
|
|
10578
|
-
var rootClassName$
|
|
10580
|
+
var rootClassName$2t = 'component-table';
|
|
10579
10581
|
function TypedTable(props) {
|
|
10580
10582
|
return React$1.createElement(Table, Object.assign({}, props));
|
|
10581
10583
|
}
|
|
@@ -10587,8 +10589,8 @@ function Table(props) {
|
|
|
10587
10589
|
var el = document.getElementById(itemsId);
|
|
10588
10590
|
var sortable = new Sortable(el, {
|
|
10589
10591
|
animation: 300,
|
|
10590
|
-
ghostClass: rootClassName$
|
|
10591
|
-
dragClass: rootClassName$
|
|
10592
|
+
ghostClass: rootClassName$2t + "-item-ghost",
|
|
10593
|
+
dragClass: rootClassName$2t + "-item-dragging",
|
|
10592
10594
|
onStart: function onStart() {
|
|
10593
10595
|
document.body.classList.add('document-grabbing');
|
|
10594
10596
|
},
|
|
@@ -10621,7 +10623,7 @@ function Table(props) {
|
|
|
10621
10623
|
}, []);
|
|
10622
10624
|
var getProps = function getProps() {
|
|
10623
10625
|
var p = _extends({}, props, {
|
|
10624
|
-
className: getMergedClassNames([rootClassName$
|
|
10626
|
+
className: getMergedClassNames([rootClassName$2t, props.className || '', props.upperHeader ? 'has-upper-header' : ''])
|
|
10625
10627
|
});
|
|
10626
10628
|
delete p.columns;
|
|
10627
10629
|
delete p.lines;
|
|
@@ -10632,9 +10634,9 @@ function Table(props) {
|
|
|
10632
10634
|
return p;
|
|
10633
10635
|
};
|
|
10634
10636
|
return React$1.createElement("div", {
|
|
10635
|
-
className: rootClassName$
|
|
10637
|
+
className: rootClassName$2t + "-outer"
|
|
10636
10638
|
}, props.upperHeader ? React$1.createElement(React$1.Fragment, null, React$1.createElement("div", {
|
|
10637
|
-
className: getMergedClassNames([rootClassName$
|
|
10639
|
+
className: getMergedClassNames([rootClassName$2t + "-upper-header", props.upperHeader.active ? 'active' : ''])
|
|
10638
10640
|
}, props.upperHeader.buttons && props.upperHeader.buttons.length ? props.upperHeader.buttons.map(function (btn, index) {
|
|
10639
10641
|
var _props$upperHeader;
|
|
10640
10642
|
return React$1.createElement("button", {
|
|
@@ -10644,7 +10646,7 @@ function Table(props) {
|
|
|
10644
10646
|
disabled: !((_props$upperHeader = props.upperHeader) !== null && _props$upperHeader !== void 0 && _props$upperHeader.active) || (btn === null || btn === void 0 ? void 0 : btn.disabled) || false
|
|
10645
10647
|
}, React$1.createElement("span", null, btn.icon), btn.label);
|
|
10646
10648
|
}) : undefined)) : undefined, React$1.createElement("div", {
|
|
10647
|
-
className: rootClassName$
|
|
10649
|
+
className: rootClassName$2t + "-outer-table"
|
|
10648
10650
|
}, React$1.createElement("table", Object.assign({}, getProps()), React$1.createElement("thead", null, React$1.createElement("tr", null, React$1.createElement("th", null), props.columns && props.columns.length ? Array.from(props.columns).map(function (column, columnIndex) {
|
|
10649
10651
|
return React$1.createElement("th", Object.assign({}, column.props, {
|
|
10650
10652
|
key: column.key ? column.key : columnIndex
|
|
@@ -10690,15 +10692,15 @@ TableActions.defaultProps = {
|
|
|
10690
10692
|
actions: []
|
|
10691
10693
|
};
|
|
10692
10694
|
|
|
10693
|
-
var rootClassName$
|
|
10695
|
+
var rootClassName$2u = 'component-table-file-name-and-action';
|
|
10694
10696
|
function TableFileNameAndAction(props) {
|
|
10695
10697
|
return React$1.createElement("div", {
|
|
10696
|
-
className: rootClassName$
|
|
10698
|
+
className: rootClassName$2u
|
|
10697
10699
|
}, props.files && props.files.length ? props.files.map(function (line, index) {
|
|
10698
10700
|
var obj = line.file ? line.file : line;
|
|
10699
10701
|
return React$1.createElement("div", {
|
|
10700
10702
|
key: index,
|
|
10701
|
-
className: getMergedClassNames([rootClassName$
|
|
10703
|
+
className: getMergedClassNames([rootClassName$2u + "-file", props.white ? 'white' : '', line.disabled ? 'disabled' : '', line.error ? 'error' : ''])
|
|
10702
10704
|
}, React$1.createElement("span", null, obj.name), React$1.createElement(IconButton$1, {
|
|
10703
10705
|
icon: line.uploading ? React$1.createElement(PercentLoaderIcon, {
|
|
10704
10706
|
indefinido: line.indefinido,
|
|
@@ -10756,20 +10758,20 @@ function useDraggableScroll(reference, options) {
|
|
|
10756
10758
|
}, [reference]);
|
|
10757
10759
|
}
|
|
10758
10760
|
|
|
10759
|
-
var rootClassName$
|
|
10761
|
+
var rootClassName$2v = 'component-upper-header-table';
|
|
10760
10762
|
function TableUpperHeader(props) {
|
|
10761
10763
|
var _props$leftContent, _props$rightContent;
|
|
10762
10764
|
return React$1.createElement("div", {
|
|
10763
|
-
className: getMergedClassNames([rootClassName$
|
|
10765
|
+
className: getMergedClassNames([rootClassName$2v, props.active ? 'active' : ''])
|
|
10764
10766
|
}, React$1.createElement("div", {
|
|
10765
|
-
className: rootClassName$
|
|
10767
|
+
className: rootClassName$2v + "-left"
|
|
10766
10768
|
}, (_props$leftContent = props.leftContent) === null || _props$leftContent === void 0 ? void 0 : _props$leftContent.map(function (btn, i) {
|
|
10767
10769
|
return btn.type === 'Button' ? React$1.createElement("button", {
|
|
10768
10770
|
key: i,
|
|
10769
10771
|
id: btn.id,
|
|
10770
10772
|
onClick: btn.onClick,
|
|
10771
10773
|
disabled: !props.active || (btn === null || btn === void 0 ? void 0 : btn.disabled) || false,
|
|
10772
|
-
className: rootClassName$
|
|
10774
|
+
className: rootClassName$2v + "-btn",
|
|
10773
10775
|
type: 'button'
|
|
10774
10776
|
}, btn.leftIcon && React$1.createElement("span", null, btn.leftIcon), btn.label, btn.rightIcon && React$1.createElement("span", null, btn.rightIcon)) : React$1.createElement(DropdownMenu, Object.assign({}, btn, {
|
|
10775
10777
|
key: i
|
|
@@ -10777,19 +10779,19 @@ function TableUpperHeader(props) {
|
|
|
10777
10779
|
key: i,
|
|
10778
10780
|
id: btn.children.id,
|
|
10779
10781
|
onClick: btn.children.onClick,
|
|
10780
|
-
className: rootClassName$
|
|
10782
|
+
className: rootClassName$2v + "-btn",
|
|
10781
10783
|
disabled: !props.active || (btn === null || btn === void 0 ? void 0 : btn.children.disabled) || false,
|
|
10782
10784
|
type: 'button'
|
|
10783
10785
|
}, btn.children.leftIcon && React$1.createElement("span", null, btn.children.leftIcon), btn.children.label, btn.children.rightIcon && React$1.createElement("span", null, btn.children.rightIcon)));
|
|
10784
10786
|
})), React$1.createElement("div", {
|
|
10785
|
-
className: rootClassName$
|
|
10787
|
+
className: rootClassName$2v + "-right"
|
|
10786
10788
|
}, (_props$rightContent = props.rightContent) === null || _props$rightContent === void 0 ? void 0 : _props$rightContent.map(function (btn, i) {
|
|
10787
10789
|
return btn.type === 'Button' ? React$1.createElement("button", {
|
|
10788
10790
|
key: i,
|
|
10789
10791
|
id: btn.id,
|
|
10790
10792
|
onClick: btn.onClick,
|
|
10791
10793
|
disabled: !props.active || (btn === null || btn === void 0 ? void 0 : btn.disabled) || false,
|
|
10792
|
-
className: rootClassName$
|
|
10794
|
+
className: rootClassName$2v + "-btn",
|
|
10793
10795
|
type: 'button'
|
|
10794
10796
|
}, btn.leftIcon && React$1.createElement("span", null, btn.leftIcon), btn.label, btn.rightIcon && React$1.createElement("span", null, btn.rightIcon)) : React$1.createElement(DropdownMenu, Object.assign({}, btn, {
|
|
10795
10797
|
key: "children_" + i
|
|
@@ -10798,23 +10800,23 @@ function TableUpperHeader(props) {
|
|
|
10798
10800
|
id: btn.children.id,
|
|
10799
10801
|
onClick: btn.children.onClick,
|
|
10800
10802
|
disabled: !props.active || (btn === null || btn === void 0 ? void 0 : btn.children.disabled) || false,
|
|
10801
|
-
className: rootClassName$
|
|
10803
|
+
className: rootClassName$2v + "-btn",
|
|
10802
10804
|
type: 'button'
|
|
10803
10805
|
}, btn.children.leftIcon && React$1.createElement("span", null, btn.children.leftIcon), btn.children.label, btn.children.rightIcon && React$1.createElement("span", null, btn.children.rightIcon)));
|
|
10804
10806
|
})), props.collapsedContent ? React$1.createElement(Collapse$1, {
|
|
10805
10807
|
opened: props.opened,
|
|
10806
10808
|
animateOpacity: true
|
|
10807
10809
|
}, React$1.createElement(Row$1, {
|
|
10808
|
-
className: rootClassName$
|
|
10810
|
+
className: rootClassName$2v + "-collapsed"
|
|
10809
10811
|
}, props.collapsedContent)) : undefined);
|
|
10810
10812
|
}
|
|
10811
10813
|
var TableUpperHeader$1 = memo(TableUpperHeader);
|
|
10812
10814
|
|
|
10813
|
-
var rootClassName$
|
|
10815
|
+
var rootClassName$2w = 'component-table-with-overflow';
|
|
10814
10816
|
function TableWithOverflow(props) {
|
|
10815
10817
|
var mediaQuery = useScreenSize();
|
|
10816
10818
|
var wrapperClassName = useMemo(function () {
|
|
10817
|
-
return getMergedClassNames([rootClassName$
|
|
10819
|
+
return getMergedClassNames([rootClassName$2w + "-wrapper", props.upperHeader ? 'has-upper-header' : '', props.noResultMessage && !props.lines.length ? 'no-result' : '', 'left-columns-padding']);
|
|
10818
10820
|
}, [props.upperHeader, props.lines, props.noResultMessage]);
|
|
10819
10821
|
var outerTableRef = createRef();
|
|
10820
10822
|
useDraggableScroll(outerTableRef, {
|
|
@@ -10902,9 +10904,9 @@ function TableWithOverflow(props) {
|
|
|
10902
10904
|
});
|
|
10903
10905
|
}, [props.lines, props.columns, atLeastOneStaticColumn, someAbsoluteColumn]);
|
|
10904
10906
|
return React$1.createElement("div", {
|
|
10905
|
-
className: rootClassName$
|
|
10907
|
+
className: rootClassName$2w
|
|
10906
10908
|
}, props.upperHeader ? React$1.createElement("div", {
|
|
10907
|
-
className: rootClassName$
|
|
10909
|
+
className: rootClassName$2w + "-upper-header"
|
|
10908
10910
|
}, React$1.createElement(TableUpperHeader$1, Object.assign({}, props.upperHeader))) : undefined, React$1.createElement("div", {
|
|
10909
10911
|
className: wrapperClassName,
|
|
10910
10912
|
style: {
|
|
@@ -10912,7 +10914,7 @@ function TableWithOverflow(props) {
|
|
|
10912
10914
|
paddingRight: paddingRight
|
|
10913
10915
|
}
|
|
10914
10916
|
}, props.showTopNavigator && React$1.createElement("div", {
|
|
10915
|
-
className: rootClassName$
|
|
10917
|
+
className: rootClassName$2w + "-table-arrows"
|
|
10916
10918
|
}, React$1.createElement(IconButton$1, {
|
|
10917
10919
|
icon: React$1.createElement(CircleArrowLeft, null),
|
|
10918
10920
|
onClick: function onClick() {
|
|
@@ -10924,14 +10926,14 @@ function TableWithOverflow(props) {
|
|
|
10924
10926
|
handleArrowClick(150);
|
|
10925
10927
|
}
|
|
10926
10928
|
})), React$1.createElement("div", {
|
|
10927
|
-
className: rootClassName$
|
|
10929
|
+
className: rootClassName$2w + "-outer-table",
|
|
10928
10930
|
ref: outerTableRef
|
|
10929
10931
|
}, React$1.createElement("table", null, React$1.createElement("thead", null, React$1.createElement("tr", null, React$1.createElement("th", {
|
|
10930
10932
|
className: 'absolute left-0'
|
|
10931
10933
|
}), columnsHeader, React$1.createElement("th", {
|
|
10932
10934
|
className: 'absolute right-0'
|
|
10933
10935
|
})), React$1.createElement("tr", null)), React$1.createElement("tbody", null, lines))), props.noResultMessage && !props.lines.length ? React$1.createElement("div", {
|
|
10934
|
-
className: rootClassName$
|
|
10936
|
+
className: rootClassName$2w + "-no-result"
|
|
10935
10937
|
}, props.noResultMessage) : undefined));
|
|
10936
10938
|
}
|
|
10937
10939
|
TableWithOverflow.defaultProps = {
|
|
@@ -10939,7 +10941,7 @@ TableWithOverflow.defaultProps = {
|
|
|
10939
10941
|
};
|
|
10940
10942
|
var TableWithOverflow$1 = memo(TableWithOverflow);
|
|
10941
10943
|
|
|
10942
|
-
var rootClassName$
|
|
10944
|
+
var rootClassName$2x = 'component-tabs';
|
|
10943
10945
|
function Tabs(props) {
|
|
10944
10946
|
var _props$tabs;
|
|
10945
10947
|
var navRef = createRef();
|
|
@@ -10965,14 +10967,14 @@ function Tabs(props) {
|
|
|
10965
10967
|
};
|
|
10966
10968
|
}, [startBar]);
|
|
10967
10969
|
return React$1.createElement("nav", {
|
|
10968
|
-
className: rootClassName$
|
|
10970
|
+
className: rootClassName$2x,
|
|
10969
10971
|
style: {
|
|
10970
10972
|
justifyContent: props.justify
|
|
10971
10973
|
},
|
|
10972
10974
|
ref: navRef
|
|
10973
10975
|
}, (_props$tabs = props.tabs) === null || _props$tabs === void 0 ? void 0 : _props$tabs.map(function (tab, index) {
|
|
10974
10976
|
return React$1.createElement("button", {
|
|
10975
|
-
className: getMergedClassNames([rootClassName$
|
|
10977
|
+
className: getMergedClassNames([rootClassName$2x + "-tab", props.atual === index ? 'atual' : '', props.atual && props.changeTitleColor ? 'change' : '']),
|
|
10976
10978
|
onClick: function onClick() {
|
|
10977
10979
|
props.onChange(index);
|
|
10978
10980
|
},
|
|
@@ -10982,12 +10984,12 @@ function Tabs(props) {
|
|
|
10982
10984
|
}, React$1.createElement("span", null, tab.title));
|
|
10983
10985
|
}), React$1.createElement("div", {
|
|
10984
10986
|
ref: actualRef,
|
|
10985
|
-
className: rootClassName$
|
|
10987
|
+
className: rootClassName$2x + "-bar"
|
|
10986
10988
|
}));
|
|
10987
10989
|
}
|
|
10988
10990
|
var Tabs$1 = memo(Tabs);
|
|
10989
10991
|
|
|
10990
|
-
var rootClassName$
|
|
10992
|
+
var rootClassName$2y = 'text-editor-header-input';
|
|
10991
10993
|
function TextEditorHeaderInput(props) {
|
|
10992
10994
|
var _useState = useState(getUniqueKey()),
|
|
10993
10995
|
inputLabelId = _useState[0];
|
|
@@ -11006,7 +11008,7 @@ function TextEditorHeaderInput(props) {
|
|
|
11006
11008
|
props.onChange(evt);
|
|
11007
11009
|
evt.stopPropagation();
|
|
11008
11010
|
},
|
|
11009
|
-
className: getMergedClassNames([rootClassName$
|
|
11011
|
+
className: getMergedClassNames([rootClassName$2y + "-input", props.className || '']),
|
|
11010
11012
|
value: props.value,
|
|
11011
11013
|
onKeyUp: function onKeyUp(evt) {
|
|
11012
11014
|
if (evt.key === 'Enter' && typeof props.onEnter === 'function') {
|
|
@@ -11016,10 +11018,10 @@ function TextEditorHeaderInput(props) {
|
|
|
11016
11018
|
};
|
|
11017
11019
|
};
|
|
11018
11020
|
return /*#__PURE__*/React.createElement("div", {
|
|
11019
|
-
className: rootClassName$
|
|
11021
|
+
className: rootClassName$2y
|
|
11020
11022
|
}, /*#__PURE__*/React.createElement("div", {
|
|
11021
11023
|
id: inputLabelId,
|
|
11022
|
-
className: getMergedClassNames([rootClassName$
|
|
11024
|
+
className: getMergedClassNames([rootClassName$2y + "-label", props.value ? 'top' : ''])
|
|
11023
11025
|
}, props.label), /*#__PURE__*/React.createElement("input", getInputProps()));
|
|
11024
11026
|
}
|
|
11025
11027
|
TextEditorHeaderInput.propTypes = {
|
|
@@ -11032,10 +11034,10 @@ TextEditorHeaderInput.defaultProps = {
|
|
|
11032
11034
|
onChange: function onChange() {}
|
|
11033
11035
|
};
|
|
11034
11036
|
|
|
11035
|
-
var rootClassName$
|
|
11037
|
+
var rootClassName$2z = 'text-editor-menu-button';
|
|
11036
11038
|
function TextEditorMenuButton(props) {
|
|
11037
11039
|
return /*#__PURE__*/React.createElement("button", _extends({}, props, {
|
|
11038
|
-
className: getMergedClassNames([props.className || '', rootClassName$
|
|
11040
|
+
className: getMergedClassNames([props.className || '', rootClassName$2z])
|
|
11039
11041
|
}));
|
|
11040
11042
|
}
|
|
11041
11043
|
TextEditorMenuButton.propTypes = {
|
|
@@ -11043,8 +11045,8 @@ TextEditorMenuButton.propTypes = {
|
|
|
11043
11045
|
disabled: propTypes.bool
|
|
11044
11046
|
};
|
|
11045
11047
|
|
|
11046
|
-
var rootClassName$
|
|
11047
|
-
var colorClassName = rootClassName$
|
|
11048
|
+
var rootClassName$2A = 'text-editor-color-picker';
|
|
11049
|
+
var colorClassName = rootClassName$2A + "-color-button";
|
|
11048
11050
|
var defaultColors = ['#121212', '#323c32', '#5a645a', '#828a82', '#33820d', '#3fa110'];
|
|
11049
11051
|
var ColorButton = function ColorButton(props) {
|
|
11050
11052
|
return /*#__PURE__*/React.createElement("button", {
|
|
@@ -11114,9 +11116,9 @@ function TextEditorColorPicker(props) {
|
|
|
11114
11116
|
};
|
|
11115
11117
|
return /*#__PURE__*/React.createElement("div", {
|
|
11116
11118
|
id: id,
|
|
11117
|
-
className: rootClassName$
|
|
11119
|
+
className: rootClassName$2A
|
|
11118
11120
|
}, /*#__PURE__*/React.createElement("div", {
|
|
11119
|
-
className: rootClassName$
|
|
11121
|
+
className: rootClassName$2A + "-colors"
|
|
11120
11122
|
}, defaultColors.map(function (color, index) {
|
|
11121
11123
|
return /*#__PURE__*/React.createElement(ColorButton, {
|
|
11122
11124
|
key: index,
|
|
@@ -11126,7 +11128,7 @@ function TextEditorColorPicker(props) {
|
|
|
11126
11128
|
}
|
|
11127
11129
|
});
|
|
11128
11130
|
})), /*#__PURE__*/React.createElement("div", {
|
|
11129
|
-
className: rootClassName$
|
|
11131
|
+
className: rootClassName$2A + "-colors"
|
|
11130
11132
|
}, lastUsedColors.map(function (color, index) {
|
|
11131
11133
|
return /*#__PURE__*/React.createElement(ColorButton, {
|
|
11132
11134
|
key: index,
|
|
@@ -11137,9 +11139,9 @@ function TextEditorColorPicker(props) {
|
|
|
11137
11139
|
}
|
|
11138
11140
|
});
|
|
11139
11141
|
})), /*#__PURE__*/React.createElement("div", {
|
|
11140
|
-
className: rootClassName$
|
|
11142
|
+
className: rootClassName$2A + "-hexa-row"
|
|
11141
11143
|
}, /*#__PURE__*/React.createElement("div", {
|
|
11142
|
-
className: rootClassName$
|
|
11144
|
+
className: rootClassName$2A + "-picker-col"
|
|
11143
11145
|
}, /*#__PURE__*/React.createElement("input", {
|
|
11144
11146
|
value: hexa,
|
|
11145
11147
|
onChange: function onChange(evt) {
|
|
@@ -11150,7 +11152,7 @@ function TextEditorColorPicker(props) {
|
|
|
11150
11152
|
setHexa(val);
|
|
11151
11153
|
}, 200);
|
|
11152
11154
|
},
|
|
11153
|
-
className: rootClassName$
|
|
11155
|
+
className: rootClassName$2A + "-color-picker",
|
|
11154
11156
|
type: "color"
|
|
11155
11157
|
})), /*#__PURE__*/React.createElement(TextEditorHeaderInput, {
|
|
11156
11158
|
label: "Hexadecimal",
|
|
@@ -11176,10 +11178,10 @@ TextEditorColorPicker.defaultProps = {
|
|
|
11176
11178
|
onChange: function onChange() {}
|
|
11177
11179
|
};
|
|
11178
11180
|
|
|
11179
|
-
var rootClassName$
|
|
11181
|
+
var rootClassName$2B = 'text-editor-header-button';
|
|
11180
11182
|
function TextEditorHeaderButton(props) {
|
|
11181
11183
|
return /*#__PURE__*/React$1.createElement("button", {
|
|
11182
|
-
className: getMergedClassNames([rootClassName$
|
|
11184
|
+
className: getMergedClassNames([rootClassName$2B, props.active ? 'active' : '']),
|
|
11183
11185
|
onClick: props.onClick,
|
|
11184
11186
|
disabled: props.disabled
|
|
11185
11187
|
}, props.icon);
|
|
@@ -11191,7 +11193,7 @@ TextEditorHeaderButton.propTypes = {
|
|
|
11191
11193
|
disabled: propTypes.bool
|
|
11192
11194
|
};
|
|
11193
11195
|
|
|
11194
|
-
var rootClassName$
|
|
11196
|
+
var rootClassName$2C = 'text-editor-title-choser';
|
|
11195
11197
|
function TextEditorTitleChoser(props) {
|
|
11196
11198
|
var _useState = useState(getUniqueKey()),
|
|
11197
11199
|
id = _useState[0];
|
|
@@ -11227,7 +11229,7 @@ function TextEditorTitleChoser(props) {
|
|
|
11227
11229
|
}
|
|
11228
11230
|
};
|
|
11229
11231
|
return /*#__PURE__*/React.createElement("div", {
|
|
11230
|
-
className: rootClassName$
|
|
11232
|
+
className: rootClassName$2C,
|
|
11231
11233
|
id: id
|
|
11232
11234
|
}, /*#__PURE__*/React.createElement("button", {
|
|
11233
11235
|
onClick: function onClick() {
|
|
@@ -11247,7 +11249,7 @@ TextEditorTitleChoser.defaultProps = {
|
|
|
11247
11249
|
onChange: function onChange() {}
|
|
11248
11250
|
};
|
|
11249
11251
|
|
|
11250
|
-
var rootClassName$
|
|
11252
|
+
var rootClassName$2D = 'text-editor-url-creator';
|
|
11251
11253
|
function TextEditorUrlCreator(props) {
|
|
11252
11254
|
var _useState = useState(getUniqueKey()),
|
|
11253
11255
|
id = _useState[0];
|
|
@@ -11308,9 +11310,9 @@ function TextEditorUrlCreator(props) {
|
|
|
11308
11310
|
};
|
|
11309
11311
|
return /*#__PURE__*/React.createElement("div", {
|
|
11310
11312
|
id: id,
|
|
11311
|
-
className: rootClassName$
|
|
11313
|
+
className: rootClassName$2D
|
|
11312
11314
|
}, /*#__PURE__*/React.createElement(Row$1, {
|
|
11313
|
-
className: rootClassName$
|
|
11315
|
+
className: rootClassName$2D + "-url-row"
|
|
11314
11316
|
}, /*#__PURE__*/React.createElement(TextEditorHeaderInput, {
|
|
11315
11317
|
label: "Url",
|
|
11316
11318
|
value: urlValue,
|
|
@@ -11319,7 +11321,7 @@ function TextEditorUrlCreator(props) {
|
|
|
11319
11321
|
},
|
|
11320
11322
|
onEnter: handleSubmit
|
|
11321
11323
|
})), /*#__PURE__*/React.createElement(Row$1, {
|
|
11322
|
-
className: rootClassName$
|
|
11324
|
+
className: rootClassName$2D + "-text-row"
|
|
11323
11325
|
}, /*#__PURE__*/React.createElement(TextEditorHeaderInput, {
|
|
11324
11326
|
label: "Texto",
|
|
11325
11327
|
value: textValue,
|
|
@@ -11328,7 +11330,7 @@ function TextEditorUrlCreator(props) {
|
|
|
11328
11330
|
},
|
|
11329
11331
|
onEnter: handleSubmit
|
|
11330
11332
|
})), /*#__PURE__*/React.createElement(Row$1, {
|
|
11331
|
-
className: rootClassName$
|
|
11333
|
+
className: rootClassName$2D + "-new-tab-row"
|
|
11332
11334
|
}, /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
11333
11335
|
value: newTab,
|
|
11334
11336
|
onChange: function onChange(value) {
|
|
@@ -11339,7 +11341,7 @@ function TextEditorUrlCreator(props) {
|
|
|
11339
11341
|
return setNewTab(!newTab);
|
|
11340
11342
|
}
|
|
11341
11343
|
}, "Nova Guia")), /*#__PURE__*/React.createElement(Row$1, {
|
|
11342
|
-
className: rootClassName$
|
|
11344
|
+
className: rootClassName$2D + "-ok-row"
|
|
11343
11345
|
}, /*#__PURE__*/React.createElement(TextEditorMenuButton, {
|
|
11344
11346
|
disabled: !urlValue || !textValue,
|
|
11345
11347
|
onClick: handleSubmit
|
|
@@ -11354,7 +11356,7 @@ TextEditorUrlCreator.defaultProps = {
|
|
|
11354
11356
|
onChange: function onChange() {}
|
|
11355
11357
|
};
|
|
11356
11358
|
|
|
11357
|
-
var rootClassName$
|
|
11359
|
+
var rootClassName$2E = 'component-text-editor';
|
|
11358
11360
|
function TextEditor(props) {
|
|
11359
11361
|
var _useState = useState(getUniqueKey()),
|
|
11360
11362
|
id = _useState[0];
|
|
@@ -11372,7 +11374,7 @@ function TextEditor(props) {
|
|
|
11372
11374
|
setCursor = _useState5[1];
|
|
11373
11375
|
var getProps = function getProps() {
|
|
11374
11376
|
var p = _extends({}, props, {
|
|
11375
|
-
className: getMergedClassNames([rootClassName$
|
|
11377
|
+
className: getMergedClassNames([rootClassName$2E, props.className || '', props.disabled ? 'disabled' : '', props.error ? 'error' : ''])
|
|
11376
11378
|
});
|
|
11377
11379
|
delete p.topLabel;
|
|
11378
11380
|
delete p.helperText;
|
|
@@ -11394,7 +11396,7 @@ function TextEditor(props) {
|
|
|
11394
11396
|
var selection = window.getSelection();
|
|
11395
11397
|
if (!selection || !selection.anchorNode) return;
|
|
11396
11398
|
var aux = selection.anchorNode.parentElement;
|
|
11397
|
-
while (!aux.hasAttribute('class', rootClassName$
|
|
11399
|
+
while (!aux.hasAttribute('class', rootClassName$2E + "-editor")) {
|
|
11398
11400
|
if (aux.tagName === 'A') {
|
|
11399
11401
|
isLink = true;
|
|
11400
11402
|
} else if (aux.tagName === 'FONT') {
|
|
@@ -11451,13 +11453,13 @@ function TextEditor(props) {
|
|
|
11451
11453
|
}
|
|
11452
11454
|
}, [props.value]);
|
|
11453
11455
|
return /*#__PURE__*/React.createElement("div", {
|
|
11454
|
-
className: rootClassName$
|
|
11456
|
+
className: rootClassName$2E + "-outer"
|
|
11455
11457
|
}, !props.hideTopLabel && /*#__PURE__*/React.createElement("div", {
|
|
11456
|
-
className: getMergedClassNames([rootClassName$
|
|
11458
|
+
className: getMergedClassNames([rootClassName$2E + "-top-label", props.disabled ? 'disabled' : '', props.error ? 'error' : ''])
|
|
11457
11459
|
}, props.topLabel), /*#__PURE__*/React.createElement("div", getProps(), /*#__PURE__*/React.createElement("div", {
|
|
11458
|
-
className: rootClassName$
|
|
11460
|
+
className: rootClassName$2E + "-header"
|
|
11459
11461
|
}, /*#__PURE__*/React.createElement("div", {
|
|
11460
|
-
className: rootClassName$
|
|
11462
|
+
className: rootClassName$2E + "-left-content"
|
|
11461
11463
|
}, /*#__PURE__*/React.createElement(DropdownMenu, {
|
|
11462
11464
|
opened: fontOpened,
|
|
11463
11465
|
setOpened: setFontOpened,
|
|
@@ -11576,7 +11578,7 @@ function TextEditor(props) {
|
|
|
11576
11578
|
document.querySelector("#" + id).focus();
|
|
11577
11579
|
}
|
|
11578
11580
|
})), /*#__PURE__*/React.createElement("div", {
|
|
11579
|
-
className: rootClassName$
|
|
11581
|
+
className: rootClassName$2E + "-right-content"
|
|
11580
11582
|
}, /*#__PURE__*/React.createElement(TextEditorHeaderButton, {
|
|
11581
11583
|
disabled: props.disabled,
|
|
11582
11584
|
icon: /*#__PURE__*/React.createElement(UndoIcon, null),
|
|
@@ -11591,12 +11593,12 @@ function TextEditor(props) {
|
|
|
11591
11593
|
}
|
|
11592
11594
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
11593
11595
|
id: id,
|
|
11594
|
-
className: rootClassName$
|
|
11596
|
+
className: rootClassName$2E + "-editor",
|
|
11595
11597
|
contentEditable: !props.disabled,
|
|
11596
11598
|
onClick: verifyCursor,
|
|
11597
11599
|
onKeyUp: verifyCursor
|
|
11598
11600
|
})), !props.hideHelperText && /*#__PURE__*/React.createElement("div", {
|
|
11599
|
-
className: getMergedClassNames([rootClassName$
|
|
11601
|
+
className: getMergedClassNames([rootClassName$2E + "-helper-text", props.disabled ? 'disabled' : '', props.error ? 'error' : ''])
|
|
11600
11602
|
}, props.helperText));
|
|
11601
11603
|
}
|
|
11602
11604
|
TextEditor.propTypes = {
|
|
@@ -11615,21 +11617,21 @@ TextEditor.defaultProps = {
|
|
|
11615
11617
|
onChange: function onChange() {}
|
|
11616
11618
|
};
|
|
11617
11619
|
|
|
11618
|
-
var rootClassName$
|
|
11620
|
+
var rootClassName$2F = 'component-title';
|
|
11619
11621
|
function Title(props) {
|
|
11620
11622
|
return React$1.createElement("div", {
|
|
11621
|
-
className: rootClassName$
|
|
11623
|
+
className: rootClassName$2F
|
|
11622
11624
|
}, React$1.createElement("div", {
|
|
11623
|
-
className: rootClassName$
|
|
11625
|
+
className: rootClassName$2F + "-wrapper"
|
|
11624
11626
|
}, props.showBackButton ? React$1.createElement("div", {
|
|
11625
|
-
className: rootClassName$
|
|
11627
|
+
className: rootClassName$2F + "-icon"
|
|
11626
11628
|
}, React$1.createElement(IconButton$1, {
|
|
11627
11629
|
icon: React$1.createElement(ArrowLeftIcon, null),
|
|
11628
11630
|
onClick: props.onBackClick
|
|
11629
11631
|
})) : undefined, React$1.createElement("div", {
|
|
11630
|
-
className: getMergedClassNames([rootClassName$
|
|
11632
|
+
className: getMergedClassNames([rootClassName$2F + "-text", props.rightElement ? 'ellipsis' : ''])
|
|
11631
11633
|
}, props.children)), props.rightElement ? React$1.createElement("div", {
|
|
11632
|
-
className: rootClassName$
|
|
11634
|
+
className: rootClassName$2F + "-right-element"
|
|
11633
11635
|
}, props.rightElement) : undefined);
|
|
11634
11636
|
}
|
|
11635
11637
|
Title.defaultProps = {};
|
|
@@ -11641,15 +11643,15 @@ var ToastTypes;
|
|
|
11641
11643
|
ToastTypes["Error"] = "error";
|
|
11642
11644
|
})(ToastTypes || (ToastTypes = {}));
|
|
11643
11645
|
|
|
11644
|
-
var rootClassName$
|
|
11646
|
+
var rootClassName$2G = 'component-toast';
|
|
11645
11647
|
function Toast(props) {
|
|
11646
11648
|
var _useState = useState(props.id || getUniqueKey()),
|
|
11647
11649
|
id = _useState[0];
|
|
11648
11650
|
var getClassNames = function getClassNames() {
|
|
11649
|
-
return getMergedClassNames([rootClassName$
|
|
11651
|
+
return getMergedClassNames([rootClassName$2G, rootClassName$2G + "-" + props.theme]);
|
|
11650
11652
|
};
|
|
11651
11653
|
useEffect(function () {
|
|
11652
|
-
var el = document.querySelector("#" + id + " ." + rootClassName$
|
|
11654
|
+
var el = document.querySelector("#" + id + " ." + rootClassName$2G + "-fill");
|
|
11653
11655
|
if (el) {
|
|
11654
11656
|
el.style.animation = "fillToZero " + props.timeout + "ms linear forwards";
|
|
11655
11657
|
}
|
|
@@ -11688,22 +11690,22 @@ function Toast(props) {
|
|
|
11688
11690
|
id: id,
|
|
11689
11691
|
className: getClassNames()
|
|
11690
11692
|
}, React$1.createElement("div", {
|
|
11691
|
-
className: rootClassName$
|
|
11693
|
+
className: rootClassName$2G + "-left-content"
|
|
11692
11694
|
}, props.label), React$1.createElement("div", {
|
|
11693
|
-
className: rootClassName$
|
|
11695
|
+
className: rootClassName$2G + "-right-content"
|
|
11694
11696
|
}, props.showActionButton && React$1.createElement("div", {
|
|
11695
|
-
className: rootClassName$
|
|
11697
|
+
className: rootClassName$2G + "-action-button"
|
|
11696
11698
|
}, props.actionButtonText), React$1.createElement("div", {
|
|
11697
|
-
className: rootClassName$
|
|
11699
|
+
className: rootClassName$2G + "-close-button"
|
|
11698
11700
|
}, React$1.createElement(IconButton$1, {
|
|
11699
11701
|
icon: React$1.createElement(CloseIcon, null),
|
|
11700
11702
|
onClick: function onClick() {
|
|
11701
11703
|
if (typeof props.onClose === 'function') props.onClose();
|
|
11702
11704
|
}
|
|
11703
11705
|
}))), props.timeout ? React$1.createElement("div", {
|
|
11704
|
-
className: getMergedClassNames([rootClassName$
|
|
11706
|
+
className: getMergedClassNames([rootClassName$2G + "-bar", props.showStatusBar ? '' : 'hide'])
|
|
11705
11707
|
}, React$1.createElement("div", {
|
|
11706
|
-
className: rootClassName$
|
|
11708
|
+
className: rootClassName$2G + "-fill",
|
|
11707
11709
|
onAnimationEnd: function onAnimationEnd() {
|
|
11708
11710
|
if (typeof props.onClose === 'function') props.onClose();
|
|
11709
11711
|
}
|
|
@@ -11718,7 +11720,7 @@ Toast.defaultProps = {
|
|
|
11718
11720
|
onClose: function onClose() {}
|
|
11719
11721
|
};
|
|
11720
11722
|
|
|
11721
|
-
var rootClassName$
|
|
11723
|
+
var rootClassName$2H = 'comp-toast-manager';
|
|
11722
11724
|
var count = 0;
|
|
11723
11725
|
var ToastManager = forwardRef(function (props, ref) {
|
|
11724
11726
|
var _useState = useState([]),
|
|
@@ -11782,17 +11784,17 @@ var ToastManager = forwardRef(function (props, ref) {
|
|
|
11782
11784
|
};
|
|
11783
11785
|
});
|
|
11784
11786
|
var getClassNames = function getClassNames() {
|
|
11785
|
-
return getMergedClassNames([rootClassName$
|
|
11787
|
+
return getMergedClassNames([rootClassName$2H + "-toasts", rootClassName$2H + "-" + props.verticalPosition, rootClassName$2H + "-" + props.horizontalPosition, props.reverse ? rootClassName$2H + "-reverse" : '', props.animateSize ? rootClassName$2H + "-animate-size" : '']);
|
|
11786
11788
|
};
|
|
11787
11789
|
useLayoutEffect(function () {
|
|
11788
|
-
var wrapper = document.querySelector("." + rootClassName$
|
|
11790
|
+
var wrapper = document.querySelector("." + rootClassName$2H + "-toasts");
|
|
11789
11791
|
if (wrapper && wrapper.childElementCount > 0) {
|
|
11790
11792
|
var somaDasAlturas = 0;
|
|
11791
11793
|
if (props.verticalPosition === 'top' && !props.reverse) {
|
|
11792
11794
|
somaDasAlturas = 12;
|
|
11793
11795
|
for (var i = 0; i < wrapper.children.length; i++) {
|
|
11794
11796
|
var el = wrapper.children[i];
|
|
11795
|
-
if (!el.classList.contains(rootClassName$
|
|
11797
|
+
if (!el.classList.contains(rootClassName$2H + "-toast-exit")) {
|
|
11796
11798
|
el.style.transform = "translateY(" + somaDasAlturas + "px)";
|
|
11797
11799
|
somaDasAlturas += el.getBoundingClientRect().height + 12;
|
|
11798
11800
|
}
|
|
@@ -11800,7 +11802,7 @@ var ToastManager = forwardRef(function (props, ref) {
|
|
|
11800
11802
|
} else if (props.verticalPosition === 'top') {
|
|
11801
11803
|
for (var _i = wrapper.children.length - 1; _i >= 0; _i--) {
|
|
11802
11804
|
var _el = wrapper.children[_i];
|
|
11803
|
-
if (!_el.classList.contains(rootClassName$
|
|
11805
|
+
if (!_el.classList.contains(rootClassName$2H + "-toast-exit")) {
|
|
11804
11806
|
somaDasAlturas += _el.getBoundingClientRect().height + 12;
|
|
11805
11807
|
_el.style.transform = "translateY(" + somaDasAlturas + "px)";
|
|
11806
11808
|
}
|
|
@@ -11808,7 +11810,7 @@ var ToastManager = forwardRef(function (props, ref) {
|
|
|
11808
11810
|
} else if (props.verticalPosition === 'bottom' && !props.reverse) {
|
|
11809
11811
|
for (var _i2 = 0; _i2 < wrapper.children.length; _i2++) {
|
|
11810
11812
|
var _el2 = wrapper.children[_i2];
|
|
11811
|
-
if (!_el2.classList.contains(rootClassName$
|
|
11813
|
+
if (!_el2.classList.contains(rootClassName$2H + "-toast-exit")) {
|
|
11812
11814
|
somaDasAlturas += _el2.getBoundingClientRect().height + 12;
|
|
11813
11815
|
_el2.style.transform = "translateY(-" + somaDasAlturas + "px)";
|
|
11814
11816
|
}
|
|
@@ -11817,7 +11819,7 @@ var ToastManager = forwardRef(function (props, ref) {
|
|
|
11817
11819
|
somaDasAlturas = 12;
|
|
11818
11820
|
for (var _i3 = wrapper.children.length - 1; _i3 >= 0; _i3--) {
|
|
11819
11821
|
var _el3 = wrapper.children[_i3];
|
|
11820
|
-
if (!_el3.classList.contains(rootClassName$
|
|
11822
|
+
if (!_el3.classList.contains(rootClassName$2H + "-toast-exit")) {
|
|
11821
11823
|
_el3.style.transform = "translateY(-" + somaDasAlturas + "px)";
|
|
11822
11824
|
somaDasAlturas += _el3.getBoundingClientRect().height + 12;
|
|
11823
11825
|
}
|
|
@@ -11830,11 +11832,11 @@ var ToastManager = forwardRef(function (props, ref) {
|
|
|
11830
11832
|
}, arrayOfToast.map(function (toast) {
|
|
11831
11833
|
return React$1.createElement(CSSTransition, {
|
|
11832
11834
|
timeout: 300,
|
|
11833
|
-
classNames: rootClassName$
|
|
11835
|
+
classNames: rootClassName$2H + "-toast",
|
|
11834
11836
|
key: toast.id,
|
|
11835
11837
|
unmountOnExit: true
|
|
11836
11838
|
}, React$1.createElement("div", {
|
|
11837
|
-
className: rootClassName$
|
|
11839
|
+
className: rootClassName$2H + "-toastzin"
|
|
11838
11840
|
}, React$1.createElement(Toast, {
|
|
11839
11841
|
theme: toast.type,
|
|
11840
11842
|
label: toast.label,
|
|
@@ -11863,19 +11865,19 @@ var TooltipPosition;
|
|
|
11863
11865
|
TooltipPosition["Bottom"] = "bottom";
|
|
11864
11866
|
})(TooltipPosition || (TooltipPosition = {}));
|
|
11865
11867
|
|
|
11866
|
-
var rootClassName$
|
|
11868
|
+
var rootClassName$2I = 'component-tooltip';
|
|
11867
11869
|
function Tooltip(props) {
|
|
11868
11870
|
var _useState = useState(props.id || getUniqueKey()),
|
|
11869
11871
|
id = _useState[0];
|
|
11870
11872
|
var getProps = function getProps() {
|
|
11871
11873
|
return _extends({}, props, {
|
|
11872
11874
|
id: id,
|
|
11873
|
-
className: getMergedClassNames([rootClassName$
|
|
11875
|
+
className: getMergedClassNames([rootClassName$2I, props.className, rootClassName$2I + "-" + props.position])
|
|
11874
11876
|
});
|
|
11875
11877
|
};
|
|
11876
11878
|
useEffect(function () {
|
|
11877
11879
|
var element = document.querySelector("#" + id);
|
|
11878
|
-
var triangle = element.querySelector("." + rootClassName$
|
|
11880
|
+
var triangle = element.querySelector("." + rootClassName$2I + "-triangle");
|
|
11879
11881
|
var bounding = element.getBoundingClientRect();
|
|
11880
11882
|
var ScreenWidth = window.innerWidth;
|
|
11881
11883
|
if (props.position === TooltipPosition.Top || props.position === TooltipPosition.Bottom) {
|
|
@@ -11893,16 +11895,16 @@ function Tooltip(props) {
|
|
|
11893
11895
|
}
|
|
11894
11896
|
}, [id, props.position]);
|
|
11895
11897
|
return React$1.createElement("div", {
|
|
11896
|
-
className: rootClassName$
|
|
11898
|
+
className: rootClassName$2I + "-outer"
|
|
11897
11899
|
}, React$1.createElement("div", Object.assign({}, getProps()), props.children, React$1.createElement("div", {
|
|
11898
|
-
className: rootClassName$
|
|
11900
|
+
className: rootClassName$2I + "-triangle"
|
|
11899
11901
|
})));
|
|
11900
11902
|
}
|
|
11901
11903
|
Tooltip.defaultProps = {
|
|
11902
11904
|
position: TooltipPosition.Top
|
|
11903
11905
|
};
|
|
11904
11906
|
|
|
11905
|
-
var rootClassName$
|
|
11907
|
+
var rootClassName$2J = 'tooltip-manager';
|
|
11906
11908
|
function TooltipManager() {
|
|
11907
11909
|
var _useState = useState([]),
|
|
11908
11910
|
arrayOfTooltips = _useState[0],
|
|
@@ -11989,17 +11991,17 @@ function TooltipManager() {
|
|
|
11989
11991
|
};
|
|
11990
11992
|
}, []);
|
|
11991
11993
|
return React$1.createElement(React$1.Fragment, null, React$1.createElement(TransitionGroup, {
|
|
11992
|
-
className: rootClassName$
|
|
11994
|
+
className: rootClassName$2J
|
|
11993
11995
|
}, arrayOfTooltips.map(function (tooltip) {
|
|
11994
11996
|
return React$1.createElement(CSSTransition, {
|
|
11995
11997
|
timeout: 300,
|
|
11996
|
-
classNames: rootClassName$
|
|
11998
|
+
classNames: rootClassName$2J + "-tooltip",
|
|
11997
11999
|
key: tooltip.id,
|
|
11998
12000
|
unmountOnExit: true
|
|
11999
12001
|
}, React$1.createElement(Tooltip, {
|
|
12000
12002
|
id: tooltip.id,
|
|
12001
12003
|
position: tooltip.position,
|
|
12002
|
-
className: rootClassName$
|
|
12004
|
+
className: rootClassName$2J + "-tooltip",
|
|
12003
12005
|
style: _extends({}, tooltip.style),
|
|
12004
12006
|
onMouseLeave: function onMouseLeave() {
|
|
12005
12007
|
if (!document.querySelectorAll("[tooltip-id=" + tooltip.id + "]").length) {
|
|
@@ -12016,7 +12018,7 @@ function TooltipManager() {
|
|
|
12016
12018
|
TooltipManager.propTypes = {};
|
|
12017
12019
|
TooltipManager.defaultProps = {};
|
|
12018
12020
|
|
|
12019
|
-
var rootClassName$
|
|
12021
|
+
var rootClassName$2K = 'component-top-loader';
|
|
12020
12022
|
function TopLoader(props) {
|
|
12021
12023
|
return React$1.createElement(CSSTransition, {
|
|
12022
12024
|
classNames: 'fade',
|
|
@@ -12024,11 +12026,11 @@ function TopLoader(props) {
|
|
|
12024
12026
|
"in": props.opened,
|
|
12025
12027
|
unmountOnExit: true
|
|
12026
12028
|
}, React$1.createElement("div", {
|
|
12027
|
-
className: rootClassName$
|
|
12029
|
+
className: rootClassName$2K
|
|
12028
12030
|
}, React$1.createElement("div", {
|
|
12029
|
-
className: rootClassName$
|
|
12031
|
+
className: rootClassName$2K + "-logo"
|
|
12030
12032
|
}, props.logo), props.status && React$1.createElement("div", {
|
|
12031
|
-
className: rootClassName$
|
|
12033
|
+
className: rootClassName$2K + "-status"
|
|
12032
12034
|
}, props.status)));
|
|
12033
12035
|
}
|
|
12034
12036
|
TopLoader.defaultProps = {
|
|
@@ -12037,7 +12039,7 @@ TopLoader.defaultProps = {
|
|
|
12037
12039
|
})
|
|
12038
12040
|
};
|
|
12039
12041
|
|
|
12040
|
-
var rootClassName$
|
|
12042
|
+
var rootClassName$2L = 'video-modal';
|
|
12041
12043
|
function VideoModal(props) {
|
|
12042
12044
|
var handleClose = useCallback(function () {
|
|
12043
12045
|
props.onClose(props.modalKey);
|
|
@@ -12045,7 +12047,7 @@ function VideoModal(props) {
|
|
|
12045
12047
|
var filteredProps = useMemo(function () {
|
|
12046
12048
|
var p = _extends({}, props, {
|
|
12047
12049
|
id: props.id ? props.id : props.modalKey ? props.modalKey : "modal" + getUniqueKey(),
|
|
12048
|
-
className: getMergedClassNames([rootClassName$
|
|
12050
|
+
className: getMergedClassNames([rootClassName$2L, props.className || '', props.mobileOnXS ? 'mobile-on-xs' : '', rootClassName$2L + "-" + String(props.size).toLowerCase()])
|
|
12049
12051
|
});
|
|
12050
12052
|
delete p.urlVideo;
|
|
12051
12053
|
delete p.footer;
|
|
@@ -12063,12 +12065,12 @@ function VideoModal(props) {
|
|
|
12063
12065
|
return p;
|
|
12064
12066
|
}, [props]);
|
|
12065
12067
|
return React$1.createElement("div", Object.assign({}, filteredProps), React$1.createElement("div", {
|
|
12066
|
-
className: rootClassName$
|
|
12068
|
+
className: rootClassName$2L + "-close-button"
|
|
12067
12069
|
}, React$1.createElement(IconButton$1, {
|
|
12068
12070
|
onClick: handleClose,
|
|
12069
12071
|
icon: React$1.createElement(CloseIcon, null)
|
|
12070
12072
|
})), React$1.createElement("div", {
|
|
12071
|
-
className: rootClassName$
|
|
12073
|
+
className: rootClassName$2L + "-video-row"
|
|
12072
12074
|
}, React$1.createElement(VideoPlayer, Object.assign({
|
|
12073
12075
|
blackGround: true
|
|
12074
12076
|
}, props.videoPlayerProps, {
|
|
@@ -12079,10 +12081,10 @@ VideoModal.defaultProps = {
|
|
|
12079
12081
|
size: 'md'
|
|
12080
12082
|
};
|
|
12081
12083
|
|
|
12082
|
-
var rootClassName$
|
|
12084
|
+
var rootClassName$2M = 'icon-component';
|
|
12083
12085
|
var PhonePlusIcon = function PhonePlusIcon() {
|
|
12084
12086
|
return React$1.createElement("svg", {
|
|
12085
|
-
className: rootClassName$
|
|
12087
|
+
className: rootClassName$2M,
|
|
12086
12088
|
viewBox: '0 0 24 24',
|
|
12087
12089
|
fill: 'currentColor',
|
|
12088
12090
|
xmlns: 'http://www.w3.org/2000/svg'
|
|
@@ -12093,7 +12095,7 @@ var PhonePlusIcon = function PhonePlusIcon() {
|
|
|
12093
12095
|
}));
|
|
12094
12096
|
};
|
|
12095
12097
|
|
|
12096
|
-
var rootClassName$
|
|
12098
|
+
var rootClassName$2N = 'calendar-header';
|
|
12097
12099
|
function CalendarHeader(props) {
|
|
12098
12100
|
var size = useScreenSize();
|
|
12099
12101
|
var days = useMemo(function () {
|
|
@@ -12103,16 +12105,16 @@ function CalendarHeader(props) {
|
|
|
12103
12105
|
return props.language.daysOfWeek;
|
|
12104
12106
|
}, [props.language.daysOfWeek, props.language.daysOfWeekAbrev, size]);
|
|
12105
12107
|
return React$1.createElement("div", {
|
|
12106
|
-
className: rootClassName$
|
|
12108
|
+
className: rootClassName$2N
|
|
12107
12109
|
}, days.map(function (d, i) {
|
|
12108
12110
|
return React$1.createElement("div", {
|
|
12109
|
-
className: rootClassName$
|
|
12111
|
+
className: rootClassName$2N + "-day",
|
|
12110
12112
|
key: i
|
|
12111
12113
|
}, d);
|
|
12112
12114
|
}));
|
|
12113
12115
|
}
|
|
12114
12116
|
|
|
12115
|
-
var rootClassName$
|
|
12117
|
+
var rootClassName$2O = 'evento-calendario';
|
|
12116
12118
|
function CalendarEvent(props) {
|
|
12117
12119
|
var _useState = useState(props.forceExpanded || false),
|
|
12118
12120
|
expanded = _useState[0],
|
|
@@ -12141,12 +12143,12 @@ function CalendarEvent(props) {
|
|
|
12141
12143
|
return React$1.createElement(Fragment$1, null, "large");
|
|
12142
12144
|
case 'medium':
|
|
12143
12145
|
return React$1.createElement(Fragment$1, null, React$1.createElement("div", {
|
|
12144
|
-
className: rootClassName$
|
|
12146
|
+
className: rootClassName$2O + "-tipo",
|
|
12145
12147
|
style: {
|
|
12146
12148
|
borderColor: props.color
|
|
12147
12149
|
}
|
|
12148
12150
|
}, props.tipoEvento), React$1.createElement("div", {
|
|
12149
|
-
className: rootClassName$
|
|
12151
|
+
className: rootClassName$2O + "-label"
|
|
12150
12152
|
}, React$1.createElement(CSSTransition, {
|
|
12151
12153
|
"in": !props.forceExpanded && (!expanded || !props.expandedLabel),
|
|
12152
12154
|
timeout: 300,
|
|
@@ -12156,26 +12158,26 @@ function CalendarEvent(props) {
|
|
|
12156
12158
|
opened: props.forceExpanded || expanded && !!props.expandedLabel,
|
|
12157
12159
|
animateOpacity: true
|
|
12158
12160
|
}, React$1.createElement(Fragment$1, null, React$1.createElement("span", null, props.expandedLabel), React$1.createElement("div", {
|
|
12159
|
-
className: rootClassName$
|
|
12161
|
+
className: rootClassName$2O + "-date-label"
|
|
12160
12162
|
}, props.expandedDate)))), React$1.createElement("div", {
|
|
12161
|
-
className: rootClassName$
|
|
12163
|
+
className: rootClassName$2O + "-modalidade"
|
|
12162
12164
|
}, React$1.createElement("div", {
|
|
12163
|
-
className: rootClassName$
|
|
12165
|
+
className: rootClassName$2O + "-icon"
|
|
12164
12166
|
}, props.icon), React$1.createElement("div", {
|
|
12165
|
-
className: rootClassName$
|
|
12167
|
+
className: rootClassName$2O + "-modalidade-label nunito"
|
|
12166
12168
|
}, props.iconLabel)));
|
|
12167
12169
|
case 'small':
|
|
12168
12170
|
default:
|
|
12169
12171
|
return React$1.createElement(Fragment$1, null, React$1.createElement("div", {
|
|
12170
|
-
className: rootClassName$
|
|
12172
|
+
className: rootClassName$2O + "-icon"
|
|
12171
12173
|
}, props.icon), React$1.createElement("div", {
|
|
12172
|
-
className: rootClassName$
|
|
12174
|
+
className: rootClassName$2O + "-label nunito"
|
|
12173
12175
|
}, props.tipoEvento, " | ", props.label));
|
|
12174
12176
|
}
|
|
12175
12177
|
}, [expanded, props.color, props.expandedDate, props.expandedLabel, props.forceExpanded, props.icon, props.iconLabel, props.label, props.size, props.tipoEvento]);
|
|
12176
12178
|
return React$1.createElement("button", {
|
|
12177
12179
|
ref: ref,
|
|
12178
|
-
className: useMergedClassNames([rootClassName$
|
|
12180
|
+
className: useMergedClassNames([rootClassName$2O, props.size, props.borderStyle]),
|
|
12179
12181
|
disabled: props.disabled,
|
|
12180
12182
|
onClick: function onClick(evt) {
|
|
12181
12183
|
if (typeof props.onClick === 'function') {
|
|
@@ -12201,10 +12203,10 @@ CalendarEvent.defaultProps = {
|
|
|
12201
12203
|
};
|
|
12202
12204
|
var CalendarEvent$1 = memo(CalendarEvent);
|
|
12203
12205
|
|
|
12204
|
-
var rootClassName$
|
|
12206
|
+
var rootClassName$2P = 'calendar-chip';
|
|
12205
12207
|
function CalendarChip(props) {
|
|
12206
12208
|
return React$1.createElement("button", {
|
|
12207
|
-
className: useMergedClassNames([rootClassName$
|
|
12209
|
+
className: useMergedClassNames([rootClassName$2P, 'nunito']),
|
|
12208
12210
|
onClick: props.onClick,
|
|
12209
12211
|
disabled: props.disabled,
|
|
12210
12212
|
style: {
|
|
@@ -12219,11 +12221,11 @@ CalendarChip.defaultProps = {
|
|
|
12219
12221
|
};
|
|
12220
12222
|
var CalendarChip$1 = memo(CalendarChip);
|
|
12221
12223
|
|
|
12222
|
-
var rootClassName$
|
|
12224
|
+
var rootClassName$2Q = 'calendar-month-day';
|
|
12223
12225
|
function CalendarMonthDay(props) {
|
|
12224
12226
|
var _props$eventos, _props$eventos2, _props$eventos3, _props$eventos4, _props$eventos4$slice;
|
|
12225
12227
|
var classNames = useMemo(function () {
|
|
12226
|
-
return getMergedClassNames([rootClassName$
|
|
12228
|
+
return getMergedClassNames([rootClassName$2Q, props.pocket ? 'pocket' : '', props.isToday ? 'today' : '', props.disabled ? 'disabled' : '', props.highlightWeekends && (props.day.getDay() === 0 || props.day.getDay() === 6) ? 'highlight' : '']);
|
|
12227
12229
|
}, [props.day, props.disabled, props.highlightWeekends, props.isToday, props.pocket]);
|
|
12228
12230
|
var date = new Date();
|
|
12229
12231
|
date.setDate(date.getDate() - 1);
|
|
@@ -12236,9 +12238,9 @@ function CalendarMonthDay(props) {
|
|
|
12236
12238
|
}
|
|
12237
12239
|
}
|
|
12238
12240
|
}, React$1.createElement("div", {
|
|
12239
|
-
className: rootClassName$
|
|
12241
|
+
className: rootClassName$2Q + "-label-line"
|
|
12240
12242
|
}, React$1.createElement("div", {
|
|
12241
|
-
className: rootClassName$
|
|
12243
|
+
className: rootClassName$2Q + "-day nunito",
|
|
12242
12244
|
onClick: function onClick(evt) {
|
|
12243
12245
|
if (props.pocket && !props.disabled && typeof props.onPlusButtonClick === 'function') {
|
|
12244
12246
|
props.onPlusButtonClick(props.day, evt);
|
|
@@ -12259,7 +12261,7 @@ function CalendarMonthDay(props) {
|
|
|
12259
12261
|
},
|
|
12260
12262
|
disabled: props.disabled
|
|
12261
12263
|
}) : undefined)), !props.pocket ? React$1.createElement(Fragment$1, null, React$1.createElement("div", {
|
|
12262
|
-
className: rootClassName$
|
|
12264
|
+
className: rootClassName$2Q + "-eventos"
|
|
12263
12265
|
}, (_props$eventos4 = props.eventos) === null || _props$eventos4 === void 0 ? void 0 : (_props$eventos4$slice = _props$eventos4.slice(0, 2)) === null || _props$eventos4$slice === void 0 ? void 0 : _props$eventos4$slice.map(function (e) {
|
|
12264
12266
|
return React$1.createElement(CalendarEvent$1, Object.assign({
|
|
12265
12267
|
key: e.id
|
|
@@ -12268,7 +12270,7 @@ function CalendarMonthDay(props) {
|
|
|
12268
12270
|
}));
|
|
12269
12271
|
})), props.showAddButton ? React$1.createElement("button", {
|
|
12270
12272
|
disabled: props.disabledPrevAddButton ? props.day < date ? true : false : false,
|
|
12271
|
-
className: rootClassName$
|
|
12273
|
+
className: rootClassName$2Q + "-button",
|
|
12272
12274
|
onClick: function onClick(evt) {
|
|
12273
12275
|
if (typeof props.onAddButtonClick === 'function') {
|
|
12274
12276
|
props.onAddButtonClick(props.day, evt);
|
|
@@ -12279,7 +12281,7 @@ function CalendarMonthDay(props) {
|
|
|
12279
12281
|
}
|
|
12280
12282
|
var CalendarMonthDay$1 = memo(CalendarMonthDay);
|
|
12281
12283
|
|
|
12282
|
-
var rootClassName$
|
|
12284
|
+
var rootClassName$2R = 'calendar-days';
|
|
12283
12285
|
function CalendarDays(props) {
|
|
12284
12286
|
var today = useMemo(function () {
|
|
12285
12287
|
return new Date();
|
|
@@ -12297,7 +12299,7 @@ function CalendarDays(props) {
|
|
|
12297
12299
|
return false;
|
|
12298
12300
|
}, [props.referencia, props.disabledNextMonth, props.disabledPrevMonth]);
|
|
12299
12301
|
return React$1.createElement("div", {
|
|
12300
|
-
className: rootClassName$
|
|
12302
|
+
className: rootClassName$2R
|
|
12301
12303
|
}, days.map(function (d) {
|
|
12302
12304
|
var _props$eventos;
|
|
12303
12305
|
var k = "" + d.getFullYear() + getTwoNumbersIfNotTen(d.getMonth() + 1) + getTwoNumbersIfNotTen(d.getDate());
|
|
@@ -12322,7 +12324,7 @@ function CalendarDays(props) {
|
|
|
12322
12324
|
}
|
|
12323
12325
|
var CalendarDays$1 = memo(CalendarDays);
|
|
12324
12326
|
|
|
12325
|
-
var rootClassName$
|
|
12327
|
+
var rootClassName$2S = 'calendar';
|
|
12326
12328
|
function Calendar(props) {
|
|
12327
12329
|
var id = useMemo(getUniqueKey, []);
|
|
12328
12330
|
var _useState = useState(false),
|
|
@@ -12331,7 +12333,7 @@ function Calendar(props) {
|
|
|
12331
12333
|
var pocketRef = useRef(pocket);
|
|
12332
12334
|
pocketRef.current = pocket;
|
|
12333
12335
|
var classNames = useMemo(function () {
|
|
12334
|
-
return getMergedClassNames([rootClassName$
|
|
12336
|
+
return getMergedClassNames([rootClassName$2S, props.loading ? 'loading' : '']);
|
|
12335
12337
|
}, [props.loading]);
|
|
12336
12338
|
var cbResize = useCallback(function (evt) {
|
|
12337
12339
|
if (pocketRef.current) {
|
|
@@ -12391,7 +12393,7 @@ Calendar.defaultProps = {
|
|
|
12391
12393
|
};
|
|
12392
12394
|
var Calendar$1 = memo(Calendar);
|
|
12393
12395
|
|
|
12394
|
-
var rootClassName$
|
|
12396
|
+
var rootClassName$2T = 'scroll-arrow-overflow';
|
|
12395
12397
|
function ScrollArrowOverflow(props) {
|
|
12396
12398
|
var ref = createRef();
|
|
12397
12399
|
var atualRef = useRef(0);
|
|
@@ -12463,9 +12465,9 @@ function ScrollArrowOverflow(props) {
|
|
|
12463
12465
|
};
|
|
12464
12466
|
}, []);
|
|
12465
12467
|
return React$1.createElement("div", {
|
|
12466
|
-
className: useMergedClassNames([rootClassName$
|
|
12468
|
+
className: useMergedClassNames([rootClassName$2T, props.arrows])
|
|
12467
12469
|
}, React$1.createElement("div", {
|
|
12468
|
-
className: rootClassName$
|
|
12470
|
+
className: rootClassName$2T + "-navigation"
|
|
12469
12471
|
}, React$1.createElement(IconButton$1, {
|
|
12470
12472
|
disabled: start,
|
|
12471
12473
|
icon: React$1.createElement(CircleArrowLeft, null),
|
|
@@ -12480,7 +12482,7 @@ function ScrollArrowOverflow(props) {
|
|
|
12480
12482
|
}
|
|
12481
12483
|
})), React$1.createElement("div", {
|
|
12482
12484
|
ref: ref,
|
|
12483
|
-
className: rootClassName$
|
|
12485
|
+
className: rootClassName$2T + "-overflow"
|
|
12484
12486
|
}, props.children));
|
|
12485
12487
|
}
|
|
12486
12488
|
ScrollArrowOverflow.defaultProps = {
|
|
@@ -12489,26 +12491,26 @@ ScrollArrowOverflow.defaultProps = {
|
|
|
12489
12491
|
};
|
|
12490
12492
|
var ScrollArrowOverflow$1 = memo(ScrollArrowOverflow);
|
|
12491
12493
|
|
|
12492
|
-
var rootClassName$
|
|
12494
|
+
var rootClassName$2U = 'hour-events';
|
|
12493
12495
|
function HourEvents(props) {
|
|
12494
12496
|
var _props$language, _props$language2, _props$events, _props$events2, _props$language3, _props$events3;
|
|
12495
12497
|
var _useState = useState(props.defaultOpened),
|
|
12496
12498
|
opened = _useState[0],
|
|
12497
12499
|
setOpened = _useState[1];
|
|
12498
12500
|
return React$1.createElement("div", {
|
|
12499
|
-
className: rootClassName$
|
|
12501
|
+
className: rootClassName$2U
|
|
12500
12502
|
}, React$1.createElement("div", {
|
|
12501
|
-
className: rootClassName$
|
|
12503
|
+
className: rootClassName$2U + "-first-line"
|
|
12502
12504
|
}, React$1.createElement("div", {
|
|
12503
|
-
className: rootClassName$
|
|
12505
|
+
className: rootClassName$2U + "-hour"
|
|
12504
12506
|
}, props.hour), React$1.createElement("div", {
|
|
12505
|
-
className: rootClassName$
|
|
12507
|
+
className: rootClassName$2U + "-line"
|
|
12506
12508
|
}), !props.events || !props.events.length ? React$1.createElement("div", {
|
|
12507
|
-
className: rootClassName$
|
|
12509
|
+
className: rootClassName$2U + "-no-events nunito"
|
|
12508
12510
|
}, (_props$language = props.language) === null || _props$language === void 0 ? void 0 : _props$language.noEvent) : React$1.createElement("div", {
|
|
12509
|
-
className: rootClassName$
|
|
12511
|
+
className: rootClassName$2U + "-counter nunito"
|
|
12510
12512
|
}, (_props$language2 = props.language) === null || _props$language2 === void 0 ? void 0 : _props$language2.events((_props$events = props.events) === null || _props$events === void 0 ? void 0 : _props$events.length))), (_props$events2 = props.events) !== null && _props$events2 !== void 0 && _props$events2.length ? React$1.createElement(Fragment$1, null, React$1.createElement("div", {
|
|
12511
|
-
className: rootClassName$
|
|
12513
|
+
className: rootClassName$2U + "-toggle"
|
|
12512
12514
|
}, React$1.createElement(Button$1, {
|
|
12513
12515
|
theme: ButtonThemes.DefaultPrimary,
|
|
12514
12516
|
onClick: function onClick() {
|
|
@@ -12543,7 +12545,7 @@ HourEvents.defaultProps = {
|
|
|
12543
12545
|
};
|
|
12544
12546
|
var HourEvents$1 = memo(HourEvents);
|
|
12545
12547
|
|
|
12546
|
-
var rootClassName$
|
|
12548
|
+
var rootClassName$2V = 'inline-month-picker';
|
|
12547
12549
|
function InlineMonthPicker(props) {
|
|
12548
12550
|
var d = new Date(props.value.getTime());
|
|
12549
12551
|
var fix31st = function fix31st(months) {
|
|
@@ -12554,13 +12556,13 @@ function InlineMonthPicker(props) {
|
|
|
12554
12556
|
}
|
|
12555
12557
|
};
|
|
12556
12558
|
return React$1.createElement("div", {
|
|
12557
|
-
className: rootClassName$
|
|
12559
|
+
className: rootClassName$2V
|
|
12558
12560
|
}, React$1.createElement("div", {
|
|
12559
|
-
className: rootClassName$
|
|
12561
|
+
className: rootClassName$2V + "-icon"
|
|
12560
12562
|
}, React$1.createElement(CalendarCheckIcon, null)), React$1.createElement("div", {
|
|
12561
|
-
className: rootClassName$
|
|
12563
|
+
className: rootClassName$2V + "-label"
|
|
12562
12564
|
}, props.labelGen(props.value)), React$1.createElement("div", {
|
|
12563
|
-
className: rootClassName$
|
|
12565
|
+
className: rootClassName$2V + "-actions"
|
|
12564
12566
|
}, React$1.createElement(IconButton$1, {
|
|
12565
12567
|
icon: React$1.createElement(ChevronArrowLeftIcon, null),
|
|
12566
12568
|
onClick: function onClick() {
|
|
@@ -12584,7 +12586,7 @@ InlineMonthPicker.defaultProps = {
|
|
|
12584
12586
|
};
|
|
12585
12587
|
var InlineMonthPicker$1 = memo(InlineMonthPicker);
|
|
12586
12588
|
|
|
12587
|
-
var rootClassName$
|
|
12589
|
+
var rootClassName$2W = 'qrcode';
|
|
12588
12590
|
function QRCode(props) {
|
|
12589
12591
|
var ref = createRef();
|
|
12590
12592
|
useEffect(function () {
|
|
@@ -12603,7 +12605,7 @@ function QRCode(props) {
|
|
|
12603
12605
|
});
|
|
12604
12606
|
}, [props, ref]);
|
|
12605
12607
|
var className = useMemo(function () {
|
|
12606
|
-
return getMergedClassNames([rootClassName$
|
|
12608
|
+
return getMergedClassNames([rootClassName$2W, props.button ? 'button' : '']);
|
|
12607
12609
|
}, [props.button]);
|
|
12608
12610
|
return React$1.createElement("div", {
|
|
12609
12611
|
className: className,
|
|
@@ -43651,7 +43653,7 @@ function useHTMLShare() {
|
|
|
43651
43653
|
};
|
|
43652
43654
|
}
|
|
43653
43655
|
|
|
43654
|
-
var rootClassName$
|
|
43656
|
+
var rootClassName$2X = 'comp-modal-manager';
|
|
43655
43657
|
var maskRootClassName$1 = 'component-modal-mask';
|
|
43656
43658
|
var hackFocus$1 = function hackFocus() {
|
|
43657
43659
|
var tmp = document.createElement('input');
|
|
@@ -43719,13 +43721,13 @@ function useModalManager() {
|
|
|
43719
43721
|
return [React$1.createElement(React$1.Fragment, {
|
|
43720
43722
|
key: 1
|
|
43721
43723
|
}, React$1.createElement(TransitionGroup, {
|
|
43722
|
-
className: rootClassName$
|
|
43724
|
+
className: rootClassName$2X + "-modals"
|
|
43723
43725
|
}, arrayOfModal.map(function (obj) {
|
|
43724
43726
|
var _obj$props2, _obj$props3, _obj$props4;
|
|
43725
43727
|
var ModalComponent = React$1.createElement(obj.component, obj.props);
|
|
43726
43728
|
return React$1.createElement(CSSTransition, {
|
|
43727
43729
|
timeout: 300,
|
|
43728
|
-
classNames: (_obj$props2 = obj.props) !== null && _obj$props2 !== void 0 && _obj$props2.mobileOnXS ? rootClassName$
|
|
43730
|
+
classNames: (_obj$props2 = obj.props) !== null && _obj$props2 !== void 0 && _obj$props2.mobileOnXS ? rootClassName$2X + "-mask-mobile-on-xs" : rootClassName$2X + "-mask",
|
|
43729
43731
|
key: (_obj$props3 = obj.props) === null || _obj$props3 === void 0 ? void 0 : _obj$props3.modalKey,
|
|
43730
43732
|
unmountOnExit: true
|
|
43731
43733
|
}, React$1.createElement(ModalMask, {
|
|
@@ -43866,7 +43868,7 @@ function useTimeElapsed(timeLeftInSeconds, callBackZero) {
|
|
|
43866
43868
|
return timeToReturn;
|
|
43867
43869
|
}
|
|
43868
43870
|
|
|
43869
|
-
var rootClassName$
|
|
43871
|
+
var rootClassName$2Y = 'comp-toast-manager';
|
|
43870
43872
|
var count$1 = 0;
|
|
43871
43873
|
function useToastManager(props) {
|
|
43872
43874
|
var _useState = useState([]),
|
|
@@ -43907,17 +43909,17 @@ function useToastManager(props) {
|
|
|
43907
43909
|
setArrayOfToast([]);
|
|
43908
43910
|
}, []);
|
|
43909
43911
|
var classNames = useMemo(function () {
|
|
43910
|
-
return getMergedClassNames([rootClassName$
|
|
43912
|
+
return getMergedClassNames([rootClassName$2Y + "-toasts", rootClassName$2Y + "-" + verticalPosition, rootClassName$2Y + "-" + horizontalPosition, reverse ? rootClassName$2Y + "-reverse" : '', animateSize ? rootClassName$2Y + "-animate-size" : '']);
|
|
43911
43913
|
}, [reverse, animateSize, horizontalPosition, verticalPosition]);
|
|
43912
43914
|
useLayoutEffect(function () {
|
|
43913
|
-
var wrapper = document.querySelector("." + rootClassName$
|
|
43915
|
+
var wrapper = document.querySelector("." + rootClassName$2Y + "-toasts");
|
|
43914
43916
|
if (wrapper && wrapper.childElementCount > 0) {
|
|
43915
43917
|
var somaDasAlturas = 0;
|
|
43916
43918
|
if (verticalPosition === 'top' && !reverse) {
|
|
43917
43919
|
somaDasAlturas = 12;
|
|
43918
43920
|
for (var i = 0; i < wrapper.children.length; i++) {
|
|
43919
43921
|
var el = wrapper.children[i];
|
|
43920
|
-
if (!el.classList.contains(rootClassName$
|
|
43922
|
+
if (!el.classList.contains(rootClassName$2Y + "-toast-exit")) {
|
|
43921
43923
|
el.style.transform = "translateY(" + somaDasAlturas + "px)";
|
|
43922
43924
|
somaDasAlturas += el.getBoundingClientRect().height + 12;
|
|
43923
43925
|
}
|
|
@@ -43925,7 +43927,7 @@ function useToastManager(props) {
|
|
|
43925
43927
|
} else if (verticalPosition === 'top') {
|
|
43926
43928
|
for (var _i = wrapper.children.length - 1; _i >= 0; _i--) {
|
|
43927
43929
|
var _el = wrapper.children[_i];
|
|
43928
|
-
if (!_el.classList.contains(rootClassName$
|
|
43930
|
+
if (!_el.classList.contains(rootClassName$2Y + "-toast-exit")) {
|
|
43929
43931
|
somaDasAlturas += _el.getBoundingClientRect().height + 12;
|
|
43930
43932
|
_el.style.transform = "translateY(" + somaDasAlturas + "px)";
|
|
43931
43933
|
}
|
|
@@ -43933,7 +43935,7 @@ function useToastManager(props) {
|
|
|
43933
43935
|
} else if (verticalPosition === 'bottom' && !reverse) {
|
|
43934
43936
|
for (var _i2 = 0; _i2 < wrapper.children.length; _i2++) {
|
|
43935
43937
|
var _el2 = wrapper.children[_i2];
|
|
43936
|
-
if (!_el2.classList.contains(rootClassName$
|
|
43938
|
+
if (!_el2.classList.contains(rootClassName$2Y + "-toast-exit")) {
|
|
43937
43939
|
somaDasAlturas += _el2.getBoundingClientRect().height + 12;
|
|
43938
43940
|
_el2.style.transform = "translateY(-" + somaDasAlturas + "px)";
|
|
43939
43941
|
}
|
|
@@ -43942,7 +43944,7 @@ function useToastManager(props) {
|
|
|
43942
43944
|
somaDasAlturas = 12;
|
|
43943
43945
|
for (var _i3 = wrapper.children.length - 1; _i3 >= 0; _i3--) {
|
|
43944
43946
|
var _el3 = wrapper.children[_i3];
|
|
43945
|
-
if (!_el3.classList.contains(rootClassName$
|
|
43947
|
+
if (!_el3.classList.contains(rootClassName$2Y + "-toast-exit")) {
|
|
43946
43948
|
_el3.style.transform = "translateY(-" + somaDasAlturas + "px)";
|
|
43947
43949
|
somaDasAlturas += _el3.getBoundingClientRect().height + 12;
|
|
43948
43950
|
}
|
|
@@ -43955,11 +43957,11 @@ function useToastManager(props) {
|
|
|
43955
43957
|
}, arrayOfToast.map(function (toast) {
|
|
43956
43958
|
return React$1.createElement(CSSTransition, {
|
|
43957
43959
|
timeout: 300,
|
|
43958
|
-
classNames: rootClassName$
|
|
43960
|
+
classNames: rootClassName$2Y + "-toast",
|
|
43959
43961
|
key: toast.id,
|
|
43960
43962
|
unmountOnExit: true
|
|
43961
43963
|
}, React$1.createElement("div", {
|
|
43962
|
-
className: rootClassName$
|
|
43964
|
+
className: rootClassName$2Y + "-toastzin"
|
|
43963
43965
|
}, React$1.createElement(Toast, {
|
|
43964
43966
|
theme: toast.theme,
|
|
43965
43967
|
label: toast.label,
|
|
@@ -44133,10 +44135,10 @@ function FormattedText(text) {
|
|
|
44133
44135
|
}));
|
|
44134
44136
|
}
|
|
44135
44137
|
|
|
44136
|
-
var rootClassName$
|
|
44138
|
+
var rootClassName$2Z = 'icon-component';
|
|
44137
44139
|
var DecreaseIcon = function DecreaseIcon() {
|
|
44138
44140
|
return React$1.createElement("svg", {
|
|
44139
|
-
className: rootClassName$
|
|
44141
|
+
className: rootClassName$2Z,
|
|
44140
44142
|
viewBox: '0 0 24 24',
|
|
44141
44143
|
xmlns: 'http://www.w3.org/2000/svg'
|
|
44142
44144
|
}, React$1.createElement("path", {
|
|
@@ -44147,7 +44149,7 @@ var DecreaseIcon = function DecreaseIcon() {
|
|
|
44147
44149
|
}));
|
|
44148
44150
|
};
|
|
44149
44151
|
|
|
44150
|
-
var rootClassName$
|
|
44152
|
+
var rootClassName$2_ = 'component-table-left-checkbox-with-label';
|
|
44151
44153
|
var LeftControlWithLabel = function LeftControlWithLabel(props) {
|
|
44152
44154
|
var _props$spanProps2;
|
|
44153
44155
|
var style = useMemo(function () {
|
|
@@ -44164,13 +44166,13 @@ var LeftControlWithLabel = function LeftControlWithLabel(props) {
|
|
|
44164
44166
|
return style;
|
|
44165
44167
|
}, [props.anchorLabelToCheckbox, props.disabled, props.justifyContent, props.removeUserSelect, props.spanProps]);
|
|
44166
44168
|
return React$1.createElement("div", {
|
|
44167
|
-
className: getMergedClassNames([rootClassName$
|
|
44169
|
+
className: getMergedClassNames([rootClassName$2_, props.w100 ? 'w-100' : ''])
|
|
44168
44170
|
}, React$1.createElement("span", {
|
|
44169
|
-
className: rootClassName$
|
|
44171
|
+
className: rootClassName$2_ + "-checkbox-wrapper",
|
|
44170
44172
|
"tooltip-position": props['tooltip-position'],
|
|
44171
44173
|
"tooltip-text": props['tooltip-text']
|
|
44172
44174
|
}, props.type === 'addRemove' ? React$1.createElement(IconButton$1, {
|
|
44173
|
-
className: getMergedClassNames([rootClassName$
|
|
44175
|
+
className: getMergedClassNames([rootClassName$2_ + "-add-remove-button", props.value ? rootClassName$2_ + "-danger" : '']),
|
|
44174
44176
|
icon: props.value ? React$1.createElement(DecreaseIcon, null) : React$1.createElement(AddIcon, null),
|
|
44175
44177
|
disabled: props.disabled,
|
|
44176
44178
|
onClick: function onClick(evt) {
|
|
@@ -44184,7 +44186,7 @@ var LeftControlWithLabel = function LeftControlWithLabel(props) {
|
|
|
44184
44186
|
onChange: props.onChange,
|
|
44185
44187
|
theme: props.theme
|
|
44186
44188
|
})), React$1.createElement("span", Object.assign({}, props.spanProps || {}, {
|
|
44187
|
-
className: getMergedClassNames([rootClassName$
|
|
44189
|
+
className: getMergedClassNames([rootClassName$2_ + "-label-wrapper", ((_props$spanProps2 = props.spanProps) === null || _props$spanProps2 === void 0 ? void 0 : _props$spanProps2.className) || '']),
|
|
44188
44190
|
style: style,
|
|
44189
44191
|
onClick: function onClick(evt) {
|
|
44190
44192
|
if (props.anchorLabelToCheckbox) {
|