@xfers/design-system 6.1.0-dev.4af6531584 → 6.1.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.
|
@@ -31,7 +31,7 @@ var antd_1 = require("antd");
|
|
|
31
31
|
var emotion_1 = require("emotion");
|
|
32
32
|
var colors_1 = require("src/constants/Colors/colors");
|
|
33
33
|
var TypographyStyles_1 = require("src/shared/TypographyStyles");
|
|
34
|
-
var baseStyle = (0, emotion_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n -webkit-font-smoothing: antialiased;\n font-family: ", ";\n color: ", ";\n"], ["\n -webkit-font-smoothing: antialiased;\n font-family: ", ";\n color: ", ";\n"])), TypographyStyles_1.MAIN_FONT, colors_1.
|
|
34
|
+
var baseStyle = (0, emotion_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n -webkit-font-smoothing: antialiased;\n font-family: ", ";\n color: ", ";\n width: 100%;\n\n .ant-table {\n border-radius: 0;\n }\n\n .ant-table-container {\n border-radius: 0;\n }\n\n .ant-table-container table {\n border-radius: 0 !important;\n }\n\n .ant-table-thead > tr > th {\n padding: 12px;\n height: 48px;\n max-height: 48px;\n background: ", ";\n font-weight: 700;\n font-size: 14px;\n color: ", ";\n border-bottom: 1px solid ", ";\n border-radius: 0 !important;\n }\n\n .ant-table-tbody > tr > td {\n padding: 12px;\n max-height: 60px;\n font-size: 14px;\n color: ", ";\n border-bottom: 1px solid ", ";\n overflow: hidden;\n }\n\n .ant-table-tbody > tr:hover > td {\n background: ", ";\n }\n"], ["\n -webkit-font-smoothing: antialiased;\n font-family: ", ";\n color: ", ";\n width: 100%;\n\n .ant-table {\n border-radius: 0;\n }\n\n .ant-table-container {\n border-radius: 0;\n }\n\n .ant-table-container table {\n border-radius: 0 !important;\n }\n\n .ant-table-thead > tr > th {\n padding: 12px;\n height: 48px;\n max-height: 48px;\n background: ", ";\n font-weight: 700;\n font-size: 14px;\n color: ", ";\n border-bottom: 1px solid ", ";\n border-radius: 0 !important;\n }\n\n .ant-table-tbody > tr > td {\n padding: 12px;\n max-height: 60px;\n font-size: 14px;\n color: ", ";\n border-bottom: 1px solid ", ";\n overflow: hidden;\n }\n\n .ant-table-tbody > tr:hover > td {\n background: ", ";\n }\n"])), TypographyStyles_1.MAIN_FONT, colors_1.BASE.ON_NEUTRAL, colors_1.SURFACE.SECONDARY_NEUTRAL, colors_1.BASE.ON_NEUTRAL, colors_1.BASE.LINE, colors_1.BASE.ON_NEUTRAL, colors_1.BASE.LINE, colors_1.INTERACTIVE.HOVER_SURFACE);
|
|
35
35
|
var CustomTable = function (_a) {
|
|
36
36
|
var className = _a.className, emptyText = _a.emptyText, restProps = __rest(_a, ["className", "emptyText"]);
|
|
37
37
|
return (react_1.default.createElement(antd_1.Table, __assign({ className: (0, emotion_1.cx)(baseStyle, className), locale: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Table/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAyB;AACzB,6BAAwC;AACxC,mCAAiC;AACjC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Table/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAyB;AACzB,6BAAwC;AACxC,mCAAiC;AACjC,sDAAwE;AACxE,gEAAuD;AASvD,IAAM,SAAS,OAAG,aAAG,+0BAAA,2DAEJ,EAAS,cACf,EAAe,oTAmBR,EAAyB,6DAG9B,EAAe,kCACG,EAAS,0JAQ3B,EAAe,kCACG,EAAS,yFAKtB,EAAyB,UAE1C,KAxCgB,4BAAS,EACf,aAAI,CAAC,UAAU,EAmBR,gBAAO,CAAC,iBAAiB,EAG9B,aAAI,CAAC,UAAU,EACG,aAAI,CAAC,IAAI,EAQ3B,aAAI,CAAC,UAAU,EACG,aAAI,CAAC,IAAI,EAKtB,oBAAW,CAAC,aAAa,CAE1C,CAAA;AAED,IAAM,WAAW,GAAG,UAAC,EAIF;IAHjB,IAAA,SAAS,eAAA,EACT,SAAS,eAAA,EACN,SAAS,cAHO,0BAIpB,CADa;IACU,OAAA,CACtB,8BAAC,YAAK,aACJ,SAAS,EAAE,IAAA,YAAE,EAAC,SAAS,EAAE,SAAS,CAAC,EACnC,MAAM,EAAE;YACN,SAAS,WAAA;SACV,IACG,SAAS,EACb,CACH,CAAA;CAAA,CAAA;AACD,kBAAe,WAAW,CAAA"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TableProps } from 'antd';
|
|
3
|
-
type CustomTableProps = TableProps<
|
|
3
|
+
type CustomTableProps = TableProps<Record<string, unknown>> & {
|
|
4
4
|
className?: string;
|
|
5
|
-
emptyText?:
|
|
5
|
+
emptyText?: NonNullable<TableProps<Record<string, unknown>>['locale']>['emptyText'];
|
|
6
6
|
};
|
|
7
7
|
declare const CustomTable: ({ className, emptyText, ...restProps }: CustomTableProps) => React.JSX.Element;
|
|
8
8
|
export default CustomTable;
|