code7-leia 0.2.31 → 0.2.33
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/code7-leia.cjs.development.js +11 -5
- package/dist/code7-leia.cjs.development.js.map +1 -1
- package/dist/code7-leia.cjs.production.min.js +1 -1
- package/dist/code7-leia.cjs.production.min.js.map +1 -1
- package/dist/code7-leia.esm.js +11 -5
- package/dist/code7-leia.esm.js.map +1 -1
- package/dist/contexts/SharedPropsProvider.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/components/FileArea/index.tsx +4 -4
- package/src/components/FileArea/styles.tsx +6 -1
- package/src/components/TestArea/index.tsx +2 -2
- package/src/contexts/SharedPropsProvider.tsx +2 -1
- package/src/index.tsx +2 -1
|
@@ -729,7 +729,7 @@ var _templateObject$1, _templateObject2$1, _templateObject3;
|
|
|
729
729
|
var Container = /*#__PURE__*/styled__default.div(_templateObject$1 || (_templateObject$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n\n\n .tag {\n padding: 4px 8px 4px 8px;\n background: #C7F9ED;\n border-radius: 4px;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n\n .tags {\n display: flex;\n justify-content: left;\n gap: 4px;\n }\n\n .divDelete {\n display: flex;\n align-items: center;\n justify-content: flex-start;\n gap: 4px;\n }\n\n .buttonDelete {\n color: #5b0a1f;\n background: #fae0d2;\n padding: 12px 20px;\n border-radius: 4px;\n }\n\n .buttonDelete:hover {\n background: #f5bba7;\n }\n\n .buttonTraining {\n color: #023906;\n background: #e3f8cc;\n padding: 12px 20px;\n border-radius: 4px;\n margin-right: 10px;\n }\n\n .buttonTraining:hover {\n background: #90d665;\n }\n\n .button {\n padding: 8px 16px 8px 16px;\n border-radius: 4px;\n gap: 10px;\n }\n\n .cancel {\n background: #F3F5F9;\n color: #5A5D68;\n }\n\n .send {\n background: #102693;\n color: white;\n }\n\n .delete {\n background: #871821;\n color: white;\n }\n\n .presset {\n padding-top: 10px;\n display: flex;\n flex-direction: column;\n\n p {\n font-size: 14px;\n font-weight: 600;\n padding: 4px 0;\n }\n }\n\n #warning {\n padding: 10px;\n background: #FAE0D2;\n color: #871821;\n }\n\n #info {\n padding: 10px;\n background: #c7f9ed;\n color: #00344e;\n }\n\n"])), function (props) {
|
|
730
730
|
return props.isloading && styled.css(_templateObject2$1 || (_templateObject2$1 = _taggedTemplateLiteralLoose(["\n #loading {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgb(151,154,165, 0.7);\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 9999;\n }\n\n #loading::after {\n content: \"\";\n border: 4px solid #f3f3f3; /* Cor do s\xEDmbolo de carregamento */\n border-top: 4px solid #5a5d68; /* Cor do s\xEDmbolo de carregamento */\n border-radius: 50%;\n width: 13px;\n height: 13px;\n animation: spin 1s linear infinite;\n }\n\n @keyframes spin {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n }\n "])));
|
|
731
731
|
});
|
|
732
|
-
var Header = /*#__PURE__*/styled__default.div(_templateObject3 || (_templateObject3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n\n #button-upload {\n margin-right: 10px;\n }\n\n .infos {\n display: flex;\n flex-direction: column;\n padding: 14px 0;\n\n h2 {\n font-size: 20px\n }\n\n p {\n font-size: 14px\n }\n }\n\n .actions {\n display: flex;\n justify-content: space-between;\n padding-bottom: 14px;\n\n button {\n background: #102693;\n padding: 10px 20px;\n color: white;\n border-radius: 4px;\n }\n }\n\n"])));
|
|
732
|
+
var Header = /*#__PURE__*/styled__default.div(_templateObject3 || (_templateObject3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n\n #button-upload {\n margin-right: 10px;\n }\n\n .infos {\n display: flex;\n flex-direction: column;\n padding: 14px 0;\n\n h2 {\n font-size: 20px\n }\n\n p {\n font-size: 14px\n }\n }\n\n .actions {\n display: flex;\n justify-content: space-between;\n padding-bottom: 14px;\n\n button {\n background: #102693;\n padding: 10px 20px;\n color: white;\n border-radius: 4px;\n\n &:disabled {\n cursor: not-allowed;\n opacity: 0.5;\n }\n }\n }\n\n"])));
|
|
733
733
|
|
|
734
734
|
var _templateObject$2, _templateObject2$2, _templateObject3$1;
|
|
735
735
|
var TableWrapper = /*#__PURE__*/styled__default.div(_templateObject$2 || (_templateObject$2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 100%;\n height: max-content;\n min-height: 50px;\n position: relative;\n"])));
|
|
@@ -1486,7 +1486,8 @@ var FileArea = function FileArea() {
|
|
|
1486
1486
|
language = _useSharedProps.language,
|
|
1487
1487
|
propTags = _useSharedProps.propTags,
|
|
1488
1488
|
token = _useSharedProps.token,
|
|
1489
|
-
env = _useSharedProps.env
|
|
1489
|
+
env = _useSharedProps.env,
|
|
1490
|
+
readonly = _useSharedProps.readonly;
|
|
1490
1491
|
var _useState = React.useState([]),
|
|
1491
1492
|
files = _useState[0],
|
|
1492
1493
|
setFiles = _useState[1];
|
|
@@ -1627,13 +1628,15 @@ var FileArea = function FileArea() {
|
|
|
1627
1628
|
initialFiles: initialFiles
|
|
1628
1629
|
}), React__default.createElement("div", null, React__default.createElement("button", {
|
|
1629
1630
|
id: 'button-upload',
|
|
1630
|
-
onClick: handleOpenModal
|
|
1631
|
+
onClick: handleOpenModal,
|
|
1632
|
+
disabled: readonly
|
|
1631
1633
|
}, React__default.createElement(fa.FaUpload, {
|
|
1632
1634
|
size: 14
|
|
1633
1635
|
}), " ", t.fileArea.fileUpload), React__default.createElement("button", {
|
|
1634
1636
|
onClick: function onClick() {
|
|
1635
1637
|
return handleOpenModalTraining(undefined);
|
|
1636
|
-
}
|
|
1638
|
+
},
|
|
1639
|
+
disabled: readonly
|
|
1637
1640
|
}, React__default.createElement(gi.GiWeightLiftingUp, {
|
|
1638
1641
|
size: 14
|
|
1639
1642
|
}), " ", t.fileArea.training)))), files.length === 0 ? React__default.createElement(EmptyState, {
|
|
@@ -1779,6 +1782,7 @@ var FileArea = function FileArea() {
|
|
|
1779
1782
|
}, t.buttons.send))));
|
|
1780
1783
|
};
|
|
1781
1784
|
return React__default.createElement(SharedPropsProvider, {
|
|
1785
|
+
readonly: readonly,
|
|
1782
1786
|
id: id,
|
|
1783
1787
|
language: language,
|
|
1784
1788
|
token: token,
|
|
@@ -1938,7 +1942,8 @@ var TestArea = function TestArea() {
|
|
|
1938
1942
|
personas = _useSharedProps.personas,
|
|
1939
1943
|
propTags = _useSharedProps.propTags,
|
|
1940
1944
|
token = _useSharedProps.token,
|
|
1941
|
-
env = _useSharedProps.env
|
|
1945
|
+
env = _useSharedProps.env,
|
|
1946
|
+
readonly = _useSharedProps.readonly;
|
|
1942
1947
|
var t = getLanguage(language);
|
|
1943
1948
|
var results = reactRedux.useSelector(function (state) {
|
|
1944
1949
|
return state.message;
|
|
@@ -2028,6 +2033,7 @@ var TestArea = function TestArea() {
|
|
|
2028
2033
|
return React__default.createElement(SharedPropsProvider, {
|
|
2029
2034
|
id: id,
|
|
2030
2035
|
token: token,
|
|
2036
|
+
readonly: readonly,
|
|
2031
2037
|
language: language,
|
|
2032
2038
|
env: env,
|
|
2033
2039
|
propTags: {
|