@transferwise/components 41.5.2-next-ba35a7d67f.28 → 41.5.2-next-b02429c613.28
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
import{CrossCircle,CrossCircleFill,CheckCircle,CheckCircleFill,InfoCircle,InfoCircleFill}from"@transferwise/icons";import classNames from"classnames";import Body from"../body/Body";import{
|
|
1
|
+
import{CrossCircle,CrossCircleFill,CheckCircle,CheckCircleFill,InfoCircle,InfoCircleFill}from"@transferwise/icons";import classNames from"classnames";import Body from"../body/Body";import{useTheme}from"../common/hooks";import{Typography}from"../common/propsValues/typography";import{jsx as _jsx}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";var InstructionsList=function(a){var b=useTheme(),c=b.isThemeModern,d=a.dos,e=a.donts,f=a.sometimes,g=c?CrossCircleFill:CrossCircle,h=c?CheckCircleFill:CheckCircle,i=c?InfoCircleFill:InfoCircle;return/*#__PURE__*/_jsxs("div",{className:"tw-instructions",children:[d&&d.map(function(a){return/*#__PURE__*/_jsxs("div",{className:"instruction m-t-1",children:[/*#__PURE__*/_jsx(g,{size:24,className:"do"}),/*#__PURE__*/_jsx(Body,{className:classNames("m-l-2 m-b-0 text-primary"),type:Typography.BODY_LARGE,children:a})]},a)}),e&&e.map(function(a){return/*#__PURE__*/_jsxs("div",{className:"instruction m-t-1",children:[/*#__PURE__*/_jsx(h,{size:24,className:"dont"}),/*#__PURE__*/_jsx(Body,{className:classNames("m-l-2 m-b-0 text-primary"),type:Typography.BODY_LARGE,children:a})]},a)}),f&&f.map(function(a){return/*#__PURE__*/_jsxs("div",{className:"instruction m-t-1",children:[/*#__PURE__*/_jsx(i,{size:24,className:"sometimes"}),/*#__PURE__*/_jsx(Body,{className:classNames("m-l-2 m-b-0 text-primary"),type:Typography.BODY_LARGE,children:a})]},a)})]})};export default InstructionsList;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"core-js/modules/es.array.map.js";import{CrossCircle,CrossCircleFill,CheckCircle,CheckCircleFill,InfoCircle,InfoCircleFill}from"@transferwise/icons";import classNames from"classnames";import Body from"../body/Body";import{
|
|
1
|
+
import"core-js/modules/es.array.map.js";import{CrossCircle,CrossCircleFill,CheckCircle,CheckCircleFill,InfoCircle,InfoCircleFill}from"@transferwise/icons";import classNames from"classnames";import Body from"../body/Body";import{useTheme}from"../common/hooks";import{Typography}from"../common/propsValues/typography";import{jsx as _jsx}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";var InstructionsList=function(a){var b=useTheme(),c=b.isThemeModern,d=a.dos,e=a.donts,f=a.sometimes,g=c?CrossCircleFill:CrossCircle,h=c?CheckCircleFill:CheckCircle,i=c?InfoCircleFill:InfoCircle;return/*#__PURE__*/_jsxs("div",{className:"tw-instructions",children:[d&&d.map(function(a){return/*#__PURE__*/_jsxs("div",{className:"instruction m-t-1",children:[/*#__PURE__*/_jsx(g,{size:24,className:"do"}),/*#__PURE__*/_jsx(Body,{className:classNames("m-l-2 m-b-0 text-primary"),type:Typography.BODY_LARGE,children:a})]},a)}),e&&e.map(function(a){return/*#__PURE__*/_jsxs("div",{className:"instruction m-t-1",children:[/*#__PURE__*/_jsx(h,{size:24,className:"dont"}),/*#__PURE__*/_jsx(Body,{className:classNames("m-l-2 m-b-0 text-primary"),type:Typography.BODY_LARGE,children:a})]},a)}),f&&f.map(function(a){return/*#__PURE__*/_jsxs("div",{className:"instruction m-t-1",children:[/*#__PURE__*/_jsx(i,{size:24,className:"sometimes"}),/*#__PURE__*/_jsx(Body,{className:classNames("m-l-2 m-b-0 text-primary"),type:Typography.BODY_LARGE,children:a})]},a)})]})};export default InstructionsList;
|