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