@indico-data/design-system 2.29.1 → 2.30.0
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/lib/index.css +75 -105
- package/lib/index.esm.css +75 -105
- package/lib/index.esm.js +5 -2
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +5 -2
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/table/Table.tsx +9 -2
- package/src/components/table/styles/Table.scss +73 -57
- package/src/components/table/styles/_variables.scss +9 -9
- package/src/styles/globals.scss +9 -0
- package/src/styles/variables/_typography.scss +0 -12
package/lib/index.js
CHANGED
|
@@ -20961,8 +20961,11 @@ const LoadingComponent = () => {
|
|
|
20961
20961
|
};
|
|
20962
20962
|
|
|
20963
20963
|
const Table$1 = (props) => {
|
|
20964
|
-
const { responsive = true, direction = 'auto', keyField = 'id', striped = true, noDataComponent = 'built-in', isDisabled, isLoading, subHeaderAlign = 'left' } = props, rest = __rest$1(props, ["responsive", "direction", "keyField", "striped", "noDataComponent", "isDisabled", "isLoading", "subHeaderAlign"]);
|
|
20965
|
-
|
|
20964
|
+
const { responsive = true, direction = 'auto', keyField = 'id', striped = true, noDataComponent = 'built-in', isDisabled, isLoading, subHeaderAlign = 'left', className } = props, rest = __rest$1(props, ["responsive", "direction", "keyField", "striped", "noDataComponent", "isDisabled", "isLoading", "subHeaderAlign", "className"]);
|
|
20965
|
+
const combinedClassName = classNames(className, {
|
|
20966
|
+
'table--striped': striped,
|
|
20967
|
+
});
|
|
20968
|
+
return (jsxRuntime.jsx("div", { className: "table", children: jsxRuntime.jsx(Xe, Object.assign({ responsive: responsive, direction: direction, subHeaderAlign: subHeaderAlign, keyField: keyField, striped: striped, className: combinedClassName, disabled: isDisabled, noDataComponent: noDataComponent, progressPending: isLoading, progressComponent: jsxRuntime.jsx(LoadingComponent, {}) }, rest)) }));
|
|
20966
20969
|
};
|
|
20967
20970
|
|
|
20968
20971
|
const Label = ({ label, name, isRequired }) => {
|