@transferwise/components 0.0.0-experimental-60cb1a1 → 0.0.0-experimental-af50fa6
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/build/avatarLayout/AvatarLayout.js +1 -2
- package/build/avatarLayout/AvatarLayout.js.map +1 -1
- package/build/avatarLayout/AvatarLayout.mjs +1 -2
- package/build/avatarLayout/AvatarLayout.mjs.map +1 -1
- package/build/button/Button.js +2 -1
- package/build/button/Button.js.map +1 -1
- package/build/button/Button.mjs +2 -1
- package/build/button/Button.mjs.map +1 -1
- package/build/index.js +0 -2
- package/build/index.js.map +1 -1
- package/build/index.mjs +0 -1
- package/build/index.mjs.map +1 -1
- package/build/main.css +14 -5
- package/build/primitives/PrimitiveAnchor/src/PrimitiveAnchor.js +1 -1
- package/build/primitives/PrimitiveAnchor/src/PrimitiveAnchor.js.map +1 -1
- package/build/primitives/PrimitiveAnchor/src/PrimitiveAnchor.mjs +1 -1
- package/build/primitives/PrimitiveAnchor/src/PrimitiveAnchor.mjs.map +1 -1
- package/build/primitives/PrimitiveButton/src/PrimitiveButton.js +2 -1
- package/build/primitives/PrimitiveButton/src/PrimitiveButton.js.map +1 -1
- package/build/primitives/PrimitiveButton/src/PrimitiveButton.mjs +2 -1
- package/build/primitives/PrimitiveButton/src/PrimitiveButton.mjs.map +1 -1
- package/build/styles/avatarLayout/AvatarLayout.css +1 -2
- package/build/styles/button/Button.css +13 -3
- package/build/styles/button/Button.vars.css +10 -3
- package/build/styles/main.css +14 -5
- package/build/types/avatarLayout/AvatarLayout.d.ts.map +1 -1
- package/build/types/button/Button.d.ts.map +1 -1
- package/build/types/index.d.ts +0 -2
- package/build/types/index.d.ts.map +1 -1
- package/build/types/primitives/PrimitiveButton/src/PrimitiveButton.d.ts.map +1 -1
- package/build/types/uploadInput/uploadButton/getAllowedFileTypes.d.ts.map +1 -1
- package/build/uploadInput/uploadButton/getAllowedFileTypes.js +3 -23
- package/build/uploadInput/uploadButton/getAllowedFileTypes.js.map +1 -1
- package/build/uploadInput/uploadButton/getAllowedFileTypes.mjs +3 -23
- package/build/uploadInput/uploadButton/getAllowedFileTypes.mjs.map +1 -1
- package/package.json +3 -3
- package/src/avatarLayout/AvatarLayout.css +1 -2
- package/src/avatarLayout/AvatarLayout.less +1 -1
- package/src/avatarLayout/AvatarLayout.tsx +0 -1
- package/src/button/Button.css +13 -3
- package/src/button/Button.less +7 -1
- package/src/button/Button.spec.tsx +103 -0
- package/src/button/Button.tsx +2 -1
- package/src/button/Button.vars.css +10 -3
- package/src/button/Button.vars.less +16 -6
- package/src/flowNavigation/__snapshots__/FlowNavigation.spec.js.snap +0 -1
- package/src/index.ts +0 -12
- package/src/main.css +14 -5
- package/src/primitives/PrimitiveAnchor/src/PrimitiveAnchor.tsx +1 -1
- package/src/primitives/PrimitiveButton/src/PrimitiveButton.tsx +3 -4
- package/src/primitives/PrimitiveButton/test/PrimitiveButton.spec.tsx +15 -9
- package/src/uploadInput/UploadInput.tests.story.tsx +5 -5
- package/src/uploadInput/uploadButton/getAllowedFileTypes.spec.ts +0 -12
- package/src/uploadInput/uploadButton/getAllowedFileTypes.ts +7 -33
- package/build/table/Table.js +0 -166
- package/build/table/Table.js.map +0 -1
- package/build/table/Table.messages.js +0 -24
- package/build/table/Table.messages.js.map +0 -1
- package/build/table/Table.messages.mjs +0 -22
- package/build/table/Table.messages.mjs.map +0 -1
- package/build/table/Table.mjs +0 -164
- package/build/table/Table.mjs.map +0 -1
- package/build/table/TableCell.js +0 -86
- package/build/table/TableCell.js.map +0 -1
- package/build/table/TableCell.mjs +0 -84
- package/build/table/TableCell.mjs.map +0 -1
- package/build/table/TableHeader.js +0 -57
- package/build/table/TableHeader.js.map +0 -1
- package/build/table/TableHeader.mjs +0 -55
- package/build/table/TableHeader.mjs.map +0 -1
- package/build/table/TableRow.js +0 -85
- package/build/table/TableRow.js.map +0 -1
- package/build/table/TableRow.mjs +0 -83
- package/build/table/TableRow.mjs.map +0 -1
- package/build/table/TableStatusText.js +0 -54
- package/build/table/TableStatusText.js.map +0 -1
- package/build/table/TableStatusText.mjs +0 -52
- package/build/table/TableStatusText.mjs.map +0 -1
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { CheckCircle, AlertCircle } from '@transferwise/icons';
|
|
2
|
-
import { clsx } from 'clsx';
|
|
3
|
-
import 'react';
|
|
4
|
-
import Body from '../body/Body.mjs';
|
|
5
|
-
import '../common/theme.mjs';
|
|
6
|
-
import '../common/direction.mjs';
|
|
7
|
-
import '../common/propsValues/control.mjs';
|
|
8
|
-
import '../common/propsValues/breakpoint.mjs';
|
|
9
|
-
import '../common/propsValues/size.mjs';
|
|
10
|
-
import { Typography } from '../common/propsValues/typography.mjs';
|
|
11
|
-
import '../common/propsValues/width.mjs';
|
|
12
|
-
import '../common/propsValues/type.mjs';
|
|
13
|
-
import '../common/propsValues/dateMode.mjs';
|
|
14
|
-
import '../common/propsValues/monthFormat.mjs';
|
|
15
|
-
import '../common/propsValues/position.mjs';
|
|
16
|
-
import '../common/propsValues/layouts.mjs';
|
|
17
|
-
import '../common/propsValues/status.mjs';
|
|
18
|
-
import '../common/propsValues/sentiment.mjs';
|
|
19
|
-
import '../common/propsValues/profileType.mjs';
|
|
20
|
-
import '../common/propsValues/variant.mjs';
|
|
21
|
-
import '../common/propsValues/scroll.mjs';
|
|
22
|
-
import '../common/propsValues/markdownNodeType.mjs';
|
|
23
|
-
import '../common/fileType.mjs';
|
|
24
|
-
import 'react-intl';
|
|
25
|
-
import '../common/closeButton/CloseButton.messages.mjs';
|
|
26
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
27
|
-
|
|
28
|
-
const TableStatusText = ({
|
|
29
|
-
text,
|
|
30
|
-
className,
|
|
31
|
-
status,
|
|
32
|
-
typography = 'default'
|
|
33
|
-
}) => {
|
|
34
|
-
const typographyType = status ?? typography === 'default-bold' ? Typography.BODY_DEFAULT_BOLD : Typography.BODY_DEFAULT;
|
|
35
|
-
return /*#__PURE__*/jsxs(Body, {
|
|
36
|
-
type: typographyType,
|
|
37
|
-
className: clsx(className, {
|
|
38
|
-
'np-table-content--success': status === 'success',
|
|
39
|
-
'np-table-content--error': status === 'error'
|
|
40
|
-
}),
|
|
41
|
-
children: [text, status === 'success' && /*#__PURE__*/jsx(CheckCircle, {
|
|
42
|
-
className: "tw-icon--status",
|
|
43
|
-
"data-testid": "check-icon"
|
|
44
|
-
}), status === 'error' && /*#__PURE__*/jsx(AlertCircle, {
|
|
45
|
-
className: "tw-icon--status",
|
|
46
|
-
"data-testid": "alert-icon"
|
|
47
|
-
})]
|
|
48
|
-
});
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
export { TableStatusText as default };
|
|
52
|
-
//# sourceMappingURL=TableStatusText.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TableStatusText.mjs","sources":["../../src/table/TableStatusText.tsx"],"sourcesContent":["import { AlertCircle, CheckCircle } from '@transferwise/icons';\nimport { clsx } from 'clsx';\nimport React from 'react';\nimport Body from '../body';\nimport { Typography } from '../common';\n\nexport interface TableStatusTextProps {\n text: string | React.ReactNode;\n className?: string;\n status?: 'success' | 'error';\n typography?: 'default' | 'default-bold';\n}\n\nconst TableStatusText = ({\n text,\n className,\n status,\n typography = 'default',\n}: TableStatusTextProps) => {\n const typographyType =\n (status ?? typography === 'default-bold')\n ? Typography.BODY_DEFAULT_BOLD\n : Typography.BODY_DEFAULT;\n\n return (\n <Body\n type={typographyType}\n className={clsx(className, {\n 'np-table-content--success': status === 'success',\n 'np-table-content--error': status === 'error',\n })}\n >\n {text}\n {status === 'success' && <CheckCircle className=\"tw-icon--status\" data-testid=\"check-icon\" />}\n {status === 'error' && <AlertCircle className=\"tw-icon--status\" data-testid=\"alert-icon\" />}\n </Body>\n );\n};\n\nexport default TableStatusText;\n"],"names":["TableStatusText","text","className","status","typography","typographyType","Typography","BODY_DEFAULT_BOLD","BODY_DEFAULT","_jsxs","Body","type","clsx","children","_jsx","CheckCircle","AlertCircle"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAaMA,MAAAA,eAAe,GAAGA,CAAC;EACvBC,IAAI;EACJC,SAAS;EACTC,MAAM;AACNC,EAAAA,UAAU,GAAG,SAAA;AAAS,CACD,KAAI;AACzB,EAAA,MAAMC,cAAc,GACjBF,MAAM,IAAIC,UAAU,KAAK,cAAc,GACpCE,UAAU,CAACC,iBAAiB,GAC5BD,UAAU,CAACE,YAAY,CAAA;EAE7B,oBACEC,IAAA,CAACC,IAAI,EAAA;AACHC,IAAAA,IAAI,EAAEN,cAAe;AACrBH,IAAAA,SAAS,EAAEU,IAAI,CAACV,SAAS,EAAE;MACzB,2BAA2B,EAAEC,MAAM,KAAK,SAAS;MACjD,yBAAyB,EAAEA,MAAM,KAAK,OAAA;AACvC,KAAA,CAAE;IAAAU,QAAA,EAAA,CAEFZ,IAAI,EACJE,MAAM,KAAK,SAAS,iBAAIW,GAAA,CAACC,WAAW,EAAA;AAACb,MAAAA,SAAS,EAAC,iBAAiB;MAAC,aAAY,EAAA,YAAA;MAAe,EAC5FC,MAAM,KAAK,OAAO,iBAAIW,GAAA,CAACE,WAAW,EAAA;AAACd,MAAAA,SAAS,EAAC,iBAAiB;MAAC,aAAY,EAAA,YAAA;AAAY,MAAG,CAAA;AAAA,GACvF,CAAC,CAAA;AAEX;;;;"}
|