@xfers/design-system 5.1.0 → 6.0.0-dev.253ef83467

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.BLACK.DEFAULT);
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,sDAAmD;AACnD,gEAAuD;AAQvD,IAAM,SAAS,OAAG,aAAG,sJAAA,2DAEJ,EAAS,cACf,EAAa,KACvB,KAFgB,4BAAS,EACf,cAAK,CAAC,OAAO,CACvB,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
+ {"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,4 +1,6 @@
1
- export declare const StyledAlert: import("@emotion/styled-base").StyledComponent<import("antd").AlertProps & import("react").RefAttributes<import("antd/es/alert/Alert").AlertRef>, {
1
+ export declare const StyledAlert: import("@emotion/styled-base").StyledComponent<Omit<import("antd").AlertProps & import("react").RefAttributes<import("antd/es/alert/Alert").AlertRef>, "ref"> & {
2
+ ref?: ((instance: import("antd/es/alert/Alert").AlertRef | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<import("antd/es/alert/Alert").AlertRef> | null | undefined;
3
+ }, {
2
4
  type: "success" | "warning" | "error" | "info";
3
5
  }, object>;
4
6
  export declare const StyledAlertMessageContainer: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
@@ -9,4 +9,8 @@ export declare const TextContainer: import("@emotion/styled-base").StyledCompone
9
9
  export declare const TextValueStyles: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
10
10
  isBankAddress: boolean;
11
11
  }, object>;
12
- export declare const CopyButton: import("@emotion/styled-base").StyledComponent<import("antd").ButtonProps & import("react").RefAttributes<HTMLButtonElement | HTMLAnchorElement>, Pick<import("antd").ButtonProps & import("react").RefAttributes<HTMLButtonElement | HTMLAnchorElement>, keyof import("antd").ButtonProps>, object>;
12
+ export declare const CopyButton: import("@emotion/styled-base").StyledComponent<Omit<import("antd").ButtonProps & import("react").RefAttributes<HTMLButtonElement | HTMLAnchorElement>, "ref"> & {
13
+ ref?: ((instance: HTMLButtonElement | HTMLAnchorElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLButtonElement | HTMLAnchorElement> | null | undefined;
14
+ }, Pick<Omit<import("antd").ButtonProps & import("react").RefAttributes<HTMLButtonElement | HTMLAnchorElement>, "ref"> & {
15
+ ref?: ((instance: HTMLButtonElement | HTMLAnchorElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLButtonElement | HTMLAnchorElement> | null | undefined;
16
+ }, keyof import("antd").ButtonProps>, object>;
@@ -18,15 +18,11 @@ declare const DynamicSelect: {
18
18
  export declare const AddIcon: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, Pick<React.ClassAttributes<HTMLImageElement> & React.ImgHTMLAttributes<HTMLImageElement>, keyof React.ImgHTMLAttributes<HTMLImageElement>>, object>;
19
19
  export declare const AddButton: import("@emotion/styled-base").StyledComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & Pick<Pick<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement>, keyof React.HTMLAttributes<HTMLDivElement>>, keyof React.HTMLAttributes<HTMLDivElement>> & {
20
20
  theme?: object | undefined;
21
- } & {
22
- children?: import("react").ReactNode | undefined;
23
21
  }, "ref"> & {
24
- ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
22
+ ref?: ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLDivElement> | null | undefined;
25
23
  }, Pick<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & Pick<Pick<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement>, keyof React.HTMLAttributes<HTMLDivElement>>, keyof React.HTMLAttributes<HTMLDivElement>> & {
26
24
  theme?: object | undefined;
27
- } & {
28
- children?: import("react").ReactNode | undefined;
29
25
  }, "ref"> & {
30
- ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
26
+ ref?: ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLDivElement> | null | undefined;
31
27
  }, "theme" | keyof React.HTMLAttributes<HTMLDivElement>>, object>;
32
28
  export default DynamicSelect;
@@ -1,29 +1,21 @@
1
1
  declare const Section: {
2
2
  Title: import("@emotion/styled-base").StyledComponent<Omit<import("react").ClassAttributes<HTMLHeadingElement> & import("react").HTMLAttributes<HTMLHeadingElement> & Pick<Pick<import("react").ClassAttributes<HTMLHeadingElement> & import("react").HTMLAttributes<HTMLHeadingElement>, keyof import("react").HTMLAttributes<HTMLHeadingElement>>, keyof import("react").HTMLAttributes<HTMLHeadingElement>> & {
3
3
  theme?: object | undefined;
4
- } & {
5
- children?: import("react").ReactNode | undefined;
6
4
  }, "ref"> & {
7
- ref?: ((instance: HTMLHeadingElement | null) => void) | import("react").RefObject<HTMLHeadingElement> | null | undefined;
5
+ ref?: ((instance: HTMLHeadingElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLHeadingElement> | null | undefined;
8
6
  }, Pick<Omit<import("react").ClassAttributes<HTMLHeadingElement> & import("react").HTMLAttributes<HTMLHeadingElement> & Pick<Pick<import("react").ClassAttributes<HTMLHeadingElement> & import("react").HTMLAttributes<HTMLHeadingElement>, keyof import("react").HTMLAttributes<HTMLHeadingElement>>, keyof import("react").HTMLAttributes<HTMLHeadingElement>> & {
9
7
  theme?: object | undefined;
10
- } & {
11
- children?: import("react").ReactNode | undefined;
12
8
  }, "ref"> & {
13
- ref?: ((instance: HTMLHeadingElement | null) => void) | import("react").RefObject<HTMLHeadingElement> | null | undefined;
9
+ ref?: ((instance: HTMLHeadingElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLHeadingElement> | null | undefined;
14
10
  }, "theme" | keyof import("react").HTMLAttributes<HTMLHeadingElement>>, object>;
15
11
  Subtitle: import("@emotion/styled-base").StyledComponent<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Pick<Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, keyof import("react").HTMLAttributes<HTMLDivElement>> & {
16
12
  theme?: object | undefined;
17
- } & {
18
- children?: import("react").ReactNode | undefined;
19
13
  }, "ref"> & {
20
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
14
+ ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
21
15
  }, Pick<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Pick<Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, keyof import("react").HTMLAttributes<HTMLDivElement>> & {
22
16
  theme?: object | undefined;
23
- } & {
24
- children?: import("react").ReactNode | undefined;
25
17
  }, "ref"> & {
26
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
18
+ ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
27
19
  }, "theme" | keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
28
20
  Row: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
29
21
  Left: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
@@ -25,7 +25,7 @@ declare const MainInput: {
25
25
  Password({ addonBefore, placeholder, disabled, className, label, required, optional, size, helperText, error, showInfoIcon, infoText, onInfoClick, ...rest }: PasswordProps): React.JSX.Element;
26
26
  Search({ addonBefore, placeholder, className, onChange, onSearch, size, helperText, error, ...rest }: SearchProps): React.JSX.Element;
27
27
  TextArea({ className, label, required, optional, size, helperText, error, showInfoIcon, infoText, onInfoClick, ...rest }: TextAreaProps): React.JSX.Element;
28
- Group: import("react").FC<import("antd/es/input").GroupProps>;
28
+ Group: React.FC<import("antd/es/input").GroupProps>;
29
29
  };
30
30
  type PasswordProps = BaseInputProps & {
31
31
  addonBefore?: string;
@@ -1,9 +1,11 @@
1
1
  export declare const LabelContainer: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
2
2
  export declare const OptionContainer: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
3
3
  export declare const SelectContainer: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
4
- export declare const StyledAntSelect: import("@emotion/styled-base").StyledComponent<import("antd").SelectProps<unknown, import("rc-select/lib/Select").DefaultOptionType | import("rc-select/lib/Select").BaseOptionType> & {
4
+ export declare const StyledAntSelect: import("@emotion/styled-base").StyledComponent<Omit<import("antd").SelectProps<unknown, import("rc-select/lib/Select").DefaultOptionType | import("rc-select/lib/Select").BaseOptionType> & {
5
5
  children?: import("react").ReactNode | undefined;
6
- } & import("react").RefAttributes<import("antd").RefSelectProps>, {
6
+ } & import("react").RefAttributes<import("antd").RefSelectProps>, "ref"> & {
7
+ ref?: ((instance: import("antd").RefSelectProps | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<import("antd").RefSelectProps> | null | undefined;
8
+ }, {
7
9
  $size: "sm" | "lg";
8
10
  $mode?: "multiple";
9
11
  disabled: boolean;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import { TableProps } from 'antd';
3
- type CustomTableProps = TableProps<any> & {
3
+ type CustomTableProps = TableProps<Record<string, unknown>> & {
4
4
  className?: string;
5
- emptyText?: React.ReactNode;
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;
@@ -7,6 +7,6 @@ type Props = {
7
7
  };
8
8
  declare const Tabs: {
9
9
  ({ children, ...rest }: Props): React.JSX.Element;
10
- TabPane: import("react").FC<import("antd").TabPaneProps>;
10
+ TabPane: React.FC<import("antd").TabPaneProps>;
11
11
  };
12
12
  export default Tabs;
@@ -2,6 +2,6 @@ import React from 'react';
2
2
  import { TimelineProps } from 'antd';
3
3
  declare const CustomTimeline: {
4
4
  ({ className, ...rest }: TimelineProps): React.JSX.Element;
5
- Item: import("react").FC<import("antd").TimelineItemProps>;
5
+ Item: React.FC<import("antd").TimelineItemProps>;
6
6
  };
7
7
  export default CustomTimeline;