plataforma-fundacao-componentes 2.22.20 → 2.22.23
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/tableFileNameAndAction/TableFileNameAndAction.d.ts +1 -0
- package/dist/components/tableFileNameAndAction/TableFileNameAndAction.stories.d.ts +1 -0
- package/dist/index.css +21 -5
- package/dist/index.js +33 -33
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +33 -33
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -15098,15 +15098,31 @@ h5 {
|
|
|
15098
15098
|
display: flex;
|
|
15099
15099
|
align-items: center;
|
|
15100
15100
|
justify-content: space-between;
|
|
15101
|
-
padding: 12px
|
|
15101
|
+
padding: 12px;
|
|
15102
15102
|
color: #323c32;
|
|
15103
15103
|
font-size: 16px;
|
|
15104
15104
|
word-break: break-all;
|
|
15105
|
-
transition: color 0.3s ease;
|
|
15105
|
+
transition: color 0.3s ease;
|
|
15106
|
+
position: relative; }
|
|
15107
|
+
.component-table-file-name-and-action .component-table-file-name-and-action-file.white {
|
|
15108
|
+
background-color: #fefefe; }
|
|
15109
|
+
.component-table-file-name-and-action .component-table-file-name-and-action-file:first-child {
|
|
15110
|
+
border-top-left-radius: 8px;
|
|
15111
|
+
border-top-right-radius: 8px; }
|
|
15112
|
+
.component-table-file-name-and-action .component-table-file-name-and-action-file:last-child {
|
|
15113
|
+
border-bottom-left-radius: 8px;
|
|
15114
|
+
border-bottom-right-radius: 8px; }
|
|
15106
15115
|
.component-table-file-name-and-action .component-table-file-name-and-action-file span {
|
|
15107
|
-
padding-right: 8px;
|
|
15108
|
-
|
|
15109
|
-
|
|
15116
|
+
padding-right: 8px;
|
|
15117
|
+
padding-bottom: 3px; }
|
|
15118
|
+
.component-table-file-name-and-action .component-table-file-name-and-action-file:not(:last-child)::after {
|
|
15119
|
+
content: '';
|
|
15120
|
+
position: absolute;
|
|
15121
|
+
left: 8px;
|
|
15122
|
+
bottom: 0;
|
|
15123
|
+
width: calc(100% - 16px);
|
|
15124
|
+
height: 1px;
|
|
15125
|
+
background-color: #cdd3cd; }
|
|
15110
15126
|
.component-table-file-name-and-action .component-table-file-name-and-action-file.error * {
|
|
15111
15127
|
color: #e60000; }
|
|
15112
15128
|
.component-table-file-name-and-action .component-table-file-name-and-action-file.disabled * {
|
package/dist/index.js
CHANGED
|
@@ -9722,7 +9722,7 @@ function TableFileNameAndAction(props) {
|
|
|
9722
9722
|
var obj = line.file ? line.file : line;
|
|
9723
9723
|
return React__default.createElement("div", {
|
|
9724
9724
|
key: index,
|
|
9725
|
-
className: getMergedClassNames([rootClassName$1y + "-file", line.disabled ? 'disabled' : '', line.error ? 'error' : ''])
|
|
9725
|
+
className: getMergedClassNames([rootClassName$1y + "-file", props.white ? 'white' : '', line.disabled ? 'disabled' : '', line.error ? 'error' : ''])
|
|
9726
9726
|
}, React__default.createElement("span", null, obj.name), React__default.createElement(IconButton$1, {
|
|
9727
9727
|
icon: line.uploading ? React__default.createElement(PercentLoaderIcon, {
|
|
9728
9728
|
indefinido: line.indefinido,
|
|
@@ -9925,8 +9925,6 @@ var TableUpperHeader$1 = React.memo(TableUpperHeader);
|
|
|
9925
9925
|
var rootClassName$1B = 'component-table-with-overflow';
|
|
9926
9926
|
|
|
9927
9927
|
function TableWithOverflow(props) {
|
|
9928
|
-
var _props$lines;
|
|
9929
|
-
|
|
9930
9928
|
var mediaQuery = useScreenSize();
|
|
9931
9929
|
var wrapperClassName = React.useMemo(function () {
|
|
9932
9930
|
return getMergedClassNames([rootClassName$1B + "-wrapper", props.upperHeader ? 'has-upper-header' : '', props.noResultMessage && !props.lines.length ? 'no-result' : '', 'left-columns-padding']);
|
|
@@ -9976,9 +9974,6 @@ function TableWithOverflow(props) {
|
|
|
9976
9974
|
return prev + n;
|
|
9977
9975
|
}, 8) + "px" : '8px';
|
|
9978
9976
|
}, [props.columns, atLeastOneStaticColumn]);
|
|
9979
|
-
var renderKey = React.useMemo(function () {
|
|
9980
|
-
return getUniqueKey();
|
|
9981
|
-
}, [props.lines]);
|
|
9982
9977
|
var columnsHeader = React.useMemo(function () {
|
|
9983
9978
|
var _props$columns;
|
|
9984
9979
|
|
|
@@ -9987,14 +9982,43 @@ function TableWithOverflow(props) {
|
|
|
9987
9982
|
|
|
9988
9983
|
var absoluteObj = atLeastOneStaticColumn && column.absolute ? column.absolute : {};
|
|
9989
9984
|
return React__default.createElement("th", Object.assign({
|
|
9990
|
-
key: "header-" + column.key,
|
|
9985
|
+
key: "header-" + column.key + "-" + atLeastOneStaticColumn,
|
|
9991
9986
|
"data-draggable": atLeastOneStaticColumn && !Boolean(column.absolute)
|
|
9992
9987
|
}, column.props, {
|
|
9993
9988
|
style: _extends({}, (_column$props = column.props) === null || _column$props === void 0 ? void 0 : _column$props.style, absoluteObj),
|
|
9994
9989
|
className: getMergedClassNames([column.key + "-cell", atLeastOneStaticColumn && column.absolute ? 'absolute' : ''])
|
|
9995
9990
|
}), column.value);
|
|
9996
9991
|
});
|
|
9997
|
-
}, [props.columns,
|
|
9992
|
+
}, [props.columns, atLeastOneStaticColumn]);
|
|
9993
|
+
var lines = React.useMemo(function () {
|
|
9994
|
+
var _props$lines;
|
|
9995
|
+
|
|
9996
|
+
return (_props$lines = props.lines) === null || _props$lines === void 0 ? void 0 : _props$lines.map(function (line, lineIndex) {
|
|
9997
|
+
var _props$columns2;
|
|
9998
|
+
|
|
9999
|
+
var k = line.key ? line.key : lineIndex;
|
|
10000
|
+
return React__default.createElement("tr", {
|
|
10001
|
+
key: k,
|
|
10002
|
+
"aria-disabled": line.disabled || false
|
|
10003
|
+
}, React__default.createElement("td", {
|
|
10004
|
+
"data-draggable": false,
|
|
10005
|
+
className: 'absolute left-0'
|
|
10006
|
+
}), (_props$columns2 = props.columns) === null || _props$columns2 === void 0 ? void 0 : _props$columns2.map(function (column) {
|
|
10007
|
+
var _column$props2, _column$props3;
|
|
10008
|
+
|
|
10009
|
+
var absoluteObj = atLeastOneStaticColumn && column.absolute ? column.absolute : {};
|
|
10010
|
+
return React__default.createElement("td", Object.assign({
|
|
10011
|
+
"data-draggable": atLeastOneStaticColumn && !Boolean(column.absolute),
|
|
10012
|
+
key: k + "-" + column.key + "-" + atLeastOneStaticColumn
|
|
10013
|
+
}, column.props, {
|
|
10014
|
+
style: _extends({}, (_column$props2 = column.props) === null || _column$props2 === void 0 ? void 0 : _column$props2.style, absoluteObj),
|
|
10015
|
+
className: getMergedClassNames([(_column$props3 = column.props) === null || _column$props3 === void 0 ? void 0 : _column$props3.className, column.key + "-cell", atLeastOneStaticColumn && column.absolute ? 'absolute' : ''])
|
|
10016
|
+
}), line[column.key]);
|
|
10017
|
+
}), React__default.createElement("td", {
|
|
10018
|
+
className: 'absolute right-0'
|
|
10019
|
+
}));
|
|
10020
|
+
});
|
|
10021
|
+
}, [props.columns, props.lines, atLeastOneStaticColumn]);
|
|
9998
10022
|
return React__default.createElement("div", {
|
|
9999
10023
|
className: rootClassName$1B
|
|
10000
10024
|
}, props.upperHeader ? React__default.createElement("div", {
|
|
@@ -10024,31 +10048,7 @@ function TableWithOverflow(props) {
|
|
|
10024
10048
|
className: 'absolute left-0'
|
|
10025
10049
|
}), columnsHeader, React__default.createElement("th", {
|
|
10026
10050
|
className: 'absolute right-0'
|
|
10027
|
-
})), React__default.createElement("tr", null)), React__default.createElement("tbody", null,
|
|
10028
|
-
var _props$columns2;
|
|
10029
|
-
|
|
10030
|
-
var k = line.key ? line.key : lineIndex;
|
|
10031
|
-
return React__default.createElement("tr", {
|
|
10032
|
-
key: k,
|
|
10033
|
-
"aria-disabled": line.disabled || false
|
|
10034
|
-
}, React__default.createElement("td", {
|
|
10035
|
-
"data-draggable": false,
|
|
10036
|
-
className: 'absolute left-0'
|
|
10037
|
-
}), (_props$columns2 = props.columns) === null || _props$columns2 === void 0 ? void 0 : _props$columns2.map(function (column) {
|
|
10038
|
-
var _column$props2, _column$props3;
|
|
10039
|
-
|
|
10040
|
-
var absoluteObj = atLeastOneStaticColumn && column.absolute ? column.absolute : {};
|
|
10041
|
-
return React__default.createElement("td", Object.assign({
|
|
10042
|
-
"data-draggable": atLeastOneStaticColumn && !Boolean(column.absolute),
|
|
10043
|
-
key: k + "-" + column.key
|
|
10044
|
-
}, column.props, {
|
|
10045
|
-
style: _extends({}, (_column$props2 = column.props) === null || _column$props2 === void 0 ? void 0 : _column$props2.style, absoluteObj),
|
|
10046
|
-
className: getMergedClassNames([(_column$props3 = column.props) === null || _column$props3 === void 0 ? void 0 : _column$props3.className, column.key + "-cell", atLeastOneStaticColumn && column.absolute ? 'absolute' : ''])
|
|
10047
|
-
}), line[column.key]);
|
|
10048
|
-
}), React__default.createElement("td", {
|
|
10049
|
-
className: 'absolute right-0'
|
|
10050
|
-
}));
|
|
10051
|
-
})))), props.noResultMessage && !props.lines.length ? React__default.createElement("div", {
|
|
10051
|
+
})), React__default.createElement("tr", null)), React__default.createElement("tbody", null, lines))), props.noResultMessage && !props.lines.length ? React__default.createElement("div", {
|
|
10052
10052
|
className: rootClassName$1B + "-no-result"
|
|
10053
10053
|
}, props.noResultMessage) : undefined));
|
|
10054
10054
|
}
|