@transferwise/components 0.0.0-experimental-4cc7a3c → 0.0.0-experimental-2089a70
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/logo/Logo.js +25 -70
- package/build/logo/Logo.js.map +1 -1
- package/build/logo/Logo.mjs +27 -72
- package/build/logo/Logo.mjs.map +1 -1
- package/build/logo/logo-assets.js +97 -68
- package/build/logo/logo-assets.js.map +1 -1
- package/build/logo/logo-assets.mjs +90 -62
- package/build/logo/logo-assets.mjs.map +1 -1
- package/build/main.css +29 -3
- package/build/styles/logo/Logo.css +23 -3
- package/build/styles/main.css +29 -3
- package/build/types/logo/Logo.d.ts +1 -30
- package/build/types/logo/Logo.d.ts.map +1 -1
- package/build/types/logo/logo-assets.d.ts +9 -33
- package/build/types/logo/logo-assets.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/logo/Logo.css +23 -3
- package/src/logo/Logo.less +29 -3
- package/src/logo/Logo.story.tsx +88 -120
- package/src/logo/Logo.test.story.tsx +23 -12
- package/src/logo/Logo.tsx +28 -85
- package/src/logo/logo-assets.tsx +92 -36
- package/src/main.css +29 -3
|
@@ -1,21 +1,14 @@
|
|
|
1
|
-
import { AriaAttributes } from 'react';
|
|
2
1
|
export declare enum LogoType {
|
|
3
2
|
WISE = "WISE",
|
|
4
3
|
WISE_BUSINESS = "WISE_BUSINESS",
|
|
5
4
|
WISE_PLATFORM = "WISE_PLATFORM"
|
|
6
5
|
}
|
|
7
|
-
export declare enum LogoDisplay {
|
|
8
|
-
RESPONSIVE = "responsive",
|
|
9
|
-
COMPACT = "compact",
|
|
10
|
-
FULL = "full"
|
|
11
|
-
}
|
|
12
6
|
export interface LogoProps {
|
|
13
7
|
/** Extra classes applied to Logo */
|
|
14
8
|
className?: string;
|
|
15
9
|
/**
|
|
16
10
|
* Renders a light-coloured version suited for dark backgrounds.
|
|
17
11
|
* @default false
|
|
18
|
-
* @deprecated dark mode comes out of the box, this property has no effect
|
|
19
12
|
*/
|
|
20
13
|
inverse?: boolean;
|
|
21
14
|
/**
|
|
@@ -23,28 +16,6 @@ export interface LogoProps {
|
|
|
23
16
|
* @default 'WISE'
|
|
24
17
|
*/
|
|
25
18
|
type?: `${LogoType}`;
|
|
26
|
-
/**
|
|
27
|
-
* Controls which logo variant is shown.
|
|
28
|
-
* - `"responsive"` (default): full wordmark on large screens, fast-flag mark on small screens (<600 px).
|
|
29
|
-
* - `"compact"`: always renders the fast-flag mark regardless of screen size.
|
|
30
|
-
* - `"full"`: always renders the full wordmark/lockup regardless of screen size.
|
|
31
|
-
* @default 'responsive'
|
|
32
|
-
*/
|
|
33
|
-
display?: `${LogoDisplay}`;
|
|
34
|
-
/**
|
|
35
|
-
* Show the product name alongside the Wise wordmark (e.g. "Wise Business", "Wise Platform").
|
|
36
|
-
* @default false
|
|
37
|
-
*/
|
|
38
|
-
lockup?: boolean;
|
|
39
|
-
/**
|
|
40
|
-
* Use the stacked (two-line) logo variant. Requires `lockup` to be true.
|
|
41
|
-
* @default false
|
|
42
|
-
*/
|
|
43
|
-
secondary?: boolean;
|
|
44
|
-
/**
|
|
45
|
-
* Override default ({@link labelByType}) screen reader messages
|
|
46
|
-
*/
|
|
47
|
-
'aria-label'?: AriaAttributes['aria-label'];
|
|
48
19
|
}
|
|
49
20
|
/**
|
|
50
21
|
* Renders the Wise wordmark logo. Responsive — shows the flag-only mark on small viewports
|
|
@@ -52,5 +23,5 @@ export interface LogoProps {
|
|
|
52
23
|
*
|
|
53
24
|
* @see {@link https://wise.design/foundations/logo Design Spec}
|
|
54
25
|
*/
|
|
55
|
-
export default function Logo({ className,
|
|
26
|
+
export default function Logo({ className, inverse, type }: LogoProps): import("react").JSX.Element;
|
|
56
27
|
//# sourceMappingURL=Logo.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Logo.d.ts","sourceRoot":"","sources":["../../../src/logo/Logo.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Logo.d.ts","sourceRoot":"","sources":["../../../src/logo/Logo.tsx"],"names":[],"mappings":"AA0BA,oBAAY,QAAQ;IAClB,IAAI,SAAS;IACb,aAAa,kBAAkB;IAC/B,aAAa,kBAAkB;CAChC;AAED,MAAM,WAAW,SAAS;IACxB,oCAAoC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,IAAI,CAAC,EAAE,GAAG,QAAQ,EAAE,CAAC;CACtB;AAQD;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,IAAI,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,IAAa,EAAE,EAAE,SAAS,+BAW5E"}
|
|
@@ -1,34 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
readonly WiseBusinessPrimary: {
|
|
11
|
-
readonly width: 210;
|
|
12
|
-
readonly height: 24;
|
|
13
|
-
};
|
|
14
|
-
readonly WiseBusinessSecondary: {
|
|
15
|
-
readonly width: 97;
|
|
16
|
-
readonly height: 46;
|
|
17
|
-
};
|
|
18
|
-
readonly WisePlatformPrimary: {
|
|
19
|
-
readonly width: 205;
|
|
20
|
-
readonly height: 24;
|
|
21
|
-
};
|
|
22
|
-
readonly WisePlatformSecondary: {
|
|
23
|
-
readonly width: 94;
|
|
24
|
-
readonly height: 46;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
export type LogoAssetName = keyof typeof logoAssetsDimensions;
|
|
28
|
-
export declare function FastFlag(): import("react").JSX.Element;
|
|
29
|
-
export declare function WiseLogo(): import("react").JSX.Element;
|
|
30
|
-
export declare function WiseBusinessPrimary(): import("react").JSX.Element;
|
|
31
|
-
export declare function WiseBusinessSecondary(): import("react").JSX.Element;
|
|
32
|
-
export declare function WisePlatformPrimary(): import("react").JSX.Element;
|
|
33
|
-
export declare function WisePlatformSecondary(): import("react").JSX.Element;
|
|
1
|
+
import { CommonProps } from '../common';
|
|
2
|
+
export declare function LogoFlagInverse({ className }: CommonProps): import("react").JSX.Element;
|
|
3
|
+
export declare function LogoFlagPlatformInverse({ className }: CommonProps): import("react").JSX.Element;
|
|
4
|
+
export declare function LogoFlagPlatform({ className }: CommonProps): import("react").JSX.Element;
|
|
5
|
+
export declare function LogoFlag({ className }: CommonProps): import("react").JSX.Element;
|
|
6
|
+
export declare function LogoWiseInverse({ className }: CommonProps): import("react").JSX.Element;
|
|
7
|
+
export declare function LogoWisePlatformInverse({ className }: CommonProps): import("react").JSX.Element;
|
|
8
|
+
export declare function LogoWisePlatform({ className }: CommonProps): import("react").JSX.Element;
|
|
9
|
+
export declare function LogoWise({ className }: CommonProps): import("react").JSX.Element;
|
|
34
10
|
//# sourceMappingURL=logo-assets.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logo-assets.d.ts","sourceRoot":"","sources":["../../../src/logo/logo-assets.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"logo-assets.d.ts","sourceRoot":"","sources":["../../../src/logo/logo-assets.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAExC,wBAAgB,eAAe,CAAC,EAAE,SAAS,EAAE,EAAE,WAAW,+BAezD;AAED,wBAAgB,uBAAuB,CAAC,EAAE,SAAS,EAAE,EAAE,WAAW,+BAejE;AAED,wBAAgB,gBAAgB,CAAC,EAAE,SAAS,EAAE,EAAE,WAAW,+BAe1D;AAED,wBAAgB,QAAQ,CAAC,EAAE,SAAS,EAAE,EAAE,WAAW,+BAelD;AAED,wBAAgB,eAAe,CAAC,EAAE,SAAS,EAAE,EAAE,WAAW,+BAezD;AAED,wBAAgB,uBAAuB,CAAC,EAAE,SAAS,EAAE,EAAE,WAAW,+BAejE;AAED,wBAAgB,gBAAgB,CAAC,EAAE,SAAS,EAAE,EAAE,WAAW,+BAe1D;AAED,wBAAgB,QAAQ,CAAC,EAAE,SAAS,EAAE,EAAE,WAAW,+BAelD"}
|
package/package.json
CHANGED
package/src/logo/Logo.css
CHANGED
|
@@ -1,6 +1,26 @@
|
|
|
1
1
|
.np-logo {
|
|
2
2
|
display: inline-block;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
}
|
|
4
|
+
.np-theme-personal--forest-green .np-logo-svg path,
|
|
5
|
+
.np-theme-personal--bright-green .np-logo-svg path {
|
|
6
|
+
fill: var(--color-interactive-primary);
|
|
7
|
+
}
|
|
8
|
+
.np-theme-personal--dark .np-logo-svg path {
|
|
9
|
+
fill: var(--color-white);
|
|
10
|
+
}
|
|
11
|
+
.np-logo-svg--size-sm {
|
|
12
|
+
display: block;
|
|
13
|
+
}
|
|
14
|
+
@media (min-width: 576px) {
|
|
15
|
+
.np-logo-svg--size-sm {
|
|
16
|
+
display: none;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
.np-logo-svg--size-md {
|
|
20
|
+
display: none;
|
|
21
|
+
}
|
|
22
|
+
@media (min-width: 576px) {
|
|
23
|
+
.np-logo-svg--size-md {
|
|
24
|
+
display: block;
|
|
25
|
+
}
|
|
6
26
|
}
|
package/src/logo/Logo.less
CHANGED
|
@@ -1,6 +1,32 @@
|
|
|
1
1
|
.np-logo {
|
|
2
2
|
display: inline-block;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.np-logo-svg {
|
|
6
|
+
path {
|
|
7
|
+
.np-theme-personal--forest-green &,
|
|
8
|
+
.np-theme-personal--bright-green & {
|
|
9
|
+
fill: var(--color-interactive-primary);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.np-theme-personal--dark & {
|
|
13
|
+
fill: var(--color-white);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&--size-sm {
|
|
18
|
+
display: block;
|
|
19
|
+
|
|
20
|
+
@media (--screen-sm) {
|
|
21
|
+
display: none;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&--size-md {
|
|
26
|
+
display: none;
|
|
27
|
+
|
|
28
|
+
@media (--screen-sm) {
|
|
29
|
+
display: block;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
6
32
|
}
|
package/src/logo/Logo.story.tsx
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
|
|
3
|
-
import Logo, { LogoType
|
|
4
|
-
import { withVariantConfig } from '../../.storybook/helpers';
|
|
3
|
+
import Logo, { LogoType } from '.';
|
|
5
4
|
|
|
6
5
|
/**
|
|
7
6
|
* **Design guidance**: <a href="https://wise.design/foundations/logo" target="_blank">wise.design/foundations/logo</a>
|
|
@@ -11,17 +10,13 @@ const meta: Meta<typeof Logo> = {
|
|
|
11
10
|
title: 'Content/Logo',
|
|
12
11
|
args: {
|
|
13
12
|
type: 'WISE',
|
|
14
|
-
|
|
13
|
+
inverse: false,
|
|
15
14
|
},
|
|
16
15
|
argTypes: {
|
|
17
16
|
type: {
|
|
18
17
|
control: 'radio',
|
|
19
18
|
options: Object.values(LogoType),
|
|
20
19
|
},
|
|
21
|
-
display: {
|
|
22
|
-
control: 'radio',
|
|
23
|
-
options: Object.values(LogoDisplay),
|
|
24
|
-
},
|
|
25
20
|
},
|
|
26
21
|
parameters: {
|
|
27
22
|
docs: { toc: true },
|
|
@@ -34,15 +29,23 @@ type Story = StoryObj<typeof Logo>;
|
|
|
34
29
|
|
|
35
30
|
/** Explore all props via the controls panel. */
|
|
36
31
|
export const Playground: Story = {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
32
|
+
render: (args) => (
|
|
33
|
+
<div
|
|
34
|
+
style={{
|
|
35
|
+
padding: '2rem',
|
|
36
|
+
...(args.inverse
|
|
37
|
+
? { backgroundColor: 'var(--color-background-screen-dark, #0e0f0c)' }
|
|
38
|
+
: {}),
|
|
39
|
+
}}
|
|
40
|
+
>
|
|
41
|
+
<Logo {...args} />
|
|
42
|
+
</div>
|
|
43
|
+
),
|
|
42
44
|
};
|
|
43
45
|
|
|
44
46
|
/**
|
|
45
|
-
* The three logo types: standard Wise, Wise Business, and Wise Platform.
|
|
47
|
+
* The three logo types: standard Wise, Wise Business, and Wise Platform. <br />
|
|
48
|
+
* `WISE_BUSINESS` renders the same SVG as `WISE` but with the accessible label "Wise Business".
|
|
46
49
|
*/
|
|
47
50
|
export const Types: Story = {
|
|
48
51
|
argTypes: {
|
|
@@ -56,6 +59,9 @@ export const Types: Story = {
|
|
|
56
59
|
alignItems: 'center',
|
|
57
60
|
padding: '2rem',
|
|
58
61
|
borderRadius: '8px',
|
|
62
|
+
...(args.inverse
|
|
63
|
+
? { backgroundColor: 'var(--color-background-screen-dark, #0e0f0c)' }
|
|
64
|
+
: {}),
|
|
59
65
|
}}
|
|
60
66
|
>
|
|
61
67
|
{Object.values(LogoType).map((type) => (
|
|
@@ -69,6 +75,14 @@ export const Types: Story = {
|
|
|
69
75
|
}}
|
|
70
76
|
>
|
|
71
77
|
<Logo {...args} type={type} />
|
|
78
|
+
<span
|
|
79
|
+
style={{
|
|
80
|
+
fontSize: '12px',
|
|
81
|
+
...(args.inverse ? { color: 'rgba(255,255,255,0.6)' } : { opacity: 0.6 }),
|
|
82
|
+
}}
|
|
83
|
+
>
|
|
84
|
+
{type}
|
|
85
|
+
</span>
|
|
72
86
|
</div>
|
|
73
87
|
))}
|
|
74
88
|
</div>
|
|
@@ -85,145 +99,99 @@ export const Types: Story = {
|
|
|
85
99
|
};
|
|
86
100
|
|
|
87
101
|
/**
|
|
88
|
-
*
|
|
102
|
+
* Below `576px` the flag-only mark is shown; at `576px` and above the full wordmark is displayed.
|
|
89
103
|
*/
|
|
90
|
-
export const
|
|
104
|
+
export const Responsive: Story = {
|
|
91
105
|
argTypes: {
|
|
92
106
|
type: { table: { disable: true } },
|
|
93
|
-
|
|
107
|
+
inverse: { table: { disable: true } },
|
|
94
108
|
},
|
|
95
109
|
render: (args) => (
|
|
96
|
-
<div style={{ display: 'flex',
|
|
97
|
-
|
|
98
|
-
<
|
|
99
|
-
<
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
110
|
+
<div style={{ display: 'flex', flexDirection: 'column', gap: '2rem' }}>
|
|
111
|
+
<div>
|
|
112
|
+
<span style={{ fontSize: '12px', opacity: 0.6, display: 'block', marginBottom: '0.5rem' }}>
|
|
113
|
+
{'< 576px (flag only)'}
|
|
114
|
+
</span>
|
|
115
|
+
<div style={{ display: 'flex', gap: '3rem', alignItems: 'center' }}>
|
|
116
|
+
{Object.values(LogoType).map((type) => (
|
|
117
|
+
<span key={type} className="np-logo" style={{ display: 'inline-block' }}>
|
|
118
|
+
<style>{`.responsive-sm .np-logo-svg--size-md { display: none !important; } .responsive-sm .np-logo-svg--size-sm { display: block !important; }`}</style>
|
|
119
|
+
<span className="responsive-sm">
|
|
120
|
+
<Logo type={type} />
|
|
121
|
+
</span>
|
|
122
|
+
</span>
|
|
123
|
+
))}
|
|
109
124
|
</div>
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
<Logo type=
|
|
118
|
-
|
|
119
|
-
},
|
|
120
|
-
},
|
|
121
|
-
},
|
|
122
|
-
};
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* The `secondary` prop (combined with `lockup`) uses a stacked two-line layout.
|
|
126
|
-
*/
|
|
127
|
-
export const Secondary: Story = {
|
|
128
|
-
argTypes: {
|
|
129
|
-
type: { table: { disable: true } },
|
|
130
|
-
lockup: { table: { disable: true } },
|
|
131
|
-
secondary: { table: { disable: true } },
|
|
132
|
-
},
|
|
133
|
-
render: (args) => (
|
|
134
|
-
<div style={{ display: 'flex', gap: '3rem', alignItems: 'flex-end', padding: '2rem' }}>
|
|
135
|
-
{Object.values(LogoType).map((type) => (
|
|
136
|
-
<div key={type} style={{ display: 'flex', gap: '3rem', alignItems: 'flex-end' }}>
|
|
137
|
-
<div
|
|
138
|
-
style={{
|
|
139
|
-
display: 'flex',
|
|
140
|
-
flexDirection: 'column',
|
|
141
|
-
alignItems: 'center',
|
|
142
|
-
gap: '0.5rem',
|
|
143
|
-
}}
|
|
144
|
-
>
|
|
145
|
-
<Logo {...args} type={type} lockup secondary />
|
|
146
|
-
</div>
|
|
125
|
+
</div>
|
|
126
|
+
<div>
|
|
127
|
+
<span style={{ fontSize: '12px', opacity: 0.6, display: 'block', marginBottom: '0.5rem' }}>
|
|
128
|
+
{'\u2265 576px (full wordmark)'}
|
|
129
|
+
</span>
|
|
130
|
+
<div style={{ display: 'flex', gap: '3rem', alignItems: 'center' }}>
|
|
131
|
+
{Object.values(LogoType).map((type) => (
|
|
132
|
+
<Logo key={type} type={type} />
|
|
133
|
+
))}
|
|
147
134
|
</div>
|
|
148
|
-
|
|
135
|
+
</div>
|
|
149
136
|
</div>
|
|
150
137
|
),
|
|
151
138
|
parameters: {
|
|
152
139
|
docs: {
|
|
153
|
-
source: {
|
|
154
|
-
code: `<Logo type="WISE" lockup secondary />
|
|
155
|
-
<Logo type="WISE_BUSINESS" lockup secondary />
|
|
156
|
-
<Logo type="WISE_PLATFORM" lockup secondary />`,
|
|
157
|
-
},
|
|
140
|
+
source: { code: null },
|
|
158
141
|
},
|
|
159
142
|
},
|
|
160
143
|
};
|
|
161
144
|
|
|
162
145
|
/**
|
|
163
|
-
*
|
|
146
|
+
* All logo types on a dark background using the `inverse` prop, which renders a
|
|
147
|
+
* light-coloured version suited for dark surfaces.
|
|
164
148
|
*/
|
|
165
|
-
export const
|
|
149
|
+
export const Inverse: Story = {
|
|
166
150
|
argTypes: {
|
|
167
151
|
type: { table: { disable: true } },
|
|
168
|
-
|
|
152
|
+
inverse: { table: { disable: true } },
|
|
169
153
|
},
|
|
154
|
+
decorators: [
|
|
155
|
+
(Story) => (
|
|
156
|
+
<div
|
|
157
|
+
style={{
|
|
158
|
+
display: 'flex',
|
|
159
|
+
gap: '3rem',
|
|
160
|
+
alignItems: 'center',
|
|
161
|
+
backgroundColor: 'var(--color-background-screen-dark, #0e0f0c)',
|
|
162
|
+
padding: '2rem',
|
|
163
|
+
borderRadius: '8px',
|
|
164
|
+
}}
|
|
165
|
+
>
|
|
166
|
+
<Story />
|
|
167
|
+
</div>
|
|
168
|
+
),
|
|
169
|
+
],
|
|
170
170
|
render: (args) => (
|
|
171
|
-
|
|
171
|
+
<>
|
|
172
172
|
{Object.values(LogoType).map((type) => (
|
|
173
173
|
<div
|
|
174
174
|
key={type}
|
|
175
|
-
style={{
|
|
175
|
+
style={{
|
|
176
|
+
display: 'flex',
|
|
177
|
+
flexDirection: 'column',
|
|
178
|
+
alignItems: 'center',
|
|
179
|
+
gap: '0.5rem',
|
|
180
|
+
}}
|
|
176
181
|
>
|
|
177
|
-
<Logo
|
|
178
|
-
<
|
|
179
|
-
<Logo {...args} type={type} lockup secondary display="compact" />
|
|
182
|
+
<Logo type={type} inverse />
|
|
183
|
+
<span style={{ fontSize: '12px', color: 'rgba(255,255,255,0.6)' }}>{type}</span>
|
|
180
184
|
</div>
|
|
181
185
|
))}
|
|
182
|
-
|
|
186
|
+
</>
|
|
183
187
|
),
|
|
184
188
|
parameters: {
|
|
185
189
|
docs: {
|
|
186
190
|
source: {
|
|
187
|
-
code: `<Logo type="WISE"
|
|
188
|
-
<Logo type="WISE_BUSINESS"
|
|
189
|
-
<Logo type="WISE_PLATFORM"
|
|
191
|
+
code: `<Logo type="WISE" inverse />
|
|
192
|
+
<Logo type="WISE_BUSINESS" inverse />
|
|
193
|
+
<Logo type="WISE_PLATFORM" inverse />`,
|
|
190
194
|
},
|
|
191
195
|
},
|
|
192
196
|
},
|
|
193
197
|
};
|
|
194
|
-
|
|
195
|
-
/**
|
|
196
|
-
* When `display` is `"full"`, the full wordmark/lockup is rendered regardless of screen width.
|
|
197
|
-
*/
|
|
198
|
-
export const Full: Story = {
|
|
199
|
-
render: (args) => (
|
|
200
|
-
<div style={{ display: 'flex', gap: '3rem', alignItems: 'flex-end', padding: '2rem' }}>
|
|
201
|
-
{Object.values(LogoType).map((type) => (
|
|
202
|
-
<div key={type} style={{ display: 'flex', gap: '3rem', alignItems: 'flex-end' }}>
|
|
203
|
-
<div
|
|
204
|
-
style={{
|
|
205
|
-
display: 'flex',
|
|
206
|
-
flexDirection: 'column',
|
|
207
|
-
alignItems: 'center',
|
|
208
|
-
gap: '0.5rem',
|
|
209
|
-
}}
|
|
210
|
-
>
|
|
211
|
-
<Logo type={type} lockup display="full" />
|
|
212
|
-
<Logo type={type} lockup secondary display="full" />
|
|
213
|
-
</div>
|
|
214
|
-
</div>
|
|
215
|
-
))}
|
|
216
|
-
</div>
|
|
217
|
-
),
|
|
218
|
-
...withVariantConfig(['mobile'], {
|
|
219
|
-
parameters: {
|
|
220
|
-
docs: {
|
|
221
|
-
source: {
|
|
222
|
-
code: `<Logo type="WISE" display="full" />
|
|
223
|
-
<Logo type="WISE_BUSINESS" secondary display="full" />
|
|
224
|
-
<Logo type="WISE_PLATFORM" lockup secondary display="full" />`,
|
|
225
|
-
},
|
|
226
|
-
},
|
|
227
|
-
},
|
|
228
|
-
}),
|
|
229
|
-
};
|
|
@@ -17,11 +17,21 @@ const AllVariants = () => (
|
|
|
17
17
|
<div style={{ display: 'flex', flexDirection: 'column', gap: '2rem' }}>
|
|
18
18
|
<div style={{ display: 'flex', gap: '2rem', alignItems: 'center' }}>
|
|
19
19
|
{Object.values(LogoType).map((type) => (
|
|
20
|
-
<
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
<Logo key={type} type={type} />
|
|
21
|
+
))}
|
|
22
|
+
</div>
|
|
23
|
+
<div
|
|
24
|
+
style={{
|
|
25
|
+
display: 'flex',
|
|
26
|
+
gap: '2rem',
|
|
27
|
+
alignItems: 'center',
|
|
28
|
+
backgroundColor: 'var(--color-content-primary)',
|
|
29
|
+
padding: '1rem',
|
|
30
|
+
borderRadius: '8px',
|
|
31
|
+
}}
|
|
32
|
+
>
|
|
33
|
+
{Object.values(LogoType).map((type) => (
|
|
34
|
+
<Logo key={type} type={type} inverse />
|
|
25
35
|
))}
|
|
26
36
|
</div>
|
|
27
37
|
</div>
|
|
@@ -29,14 +39,15 @@ const AllVariants = () => (
|
|
|
29
39
|
|
|
30
40
|
export const Variants: Story = {
|
|
31
41
|
render: () => <AllVariants />,
|
|
32
|
-
...withVariantConfig(['default', 'dark', 'bright-green', 'forest-green'],
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
42
|
+
...withVariantConfig(['default', 'dark', 'bright-green', 'forest-green']),
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export const RTL: Story = {
|
|
46
|
+
render: () => <AllVariants />,
|
|
47
|
+
...withVariantConfig(['rtl']),
|
|
37
48
|
};
|
|
38
49
|
|
|
39
|
-
export const
|
|
50
|
+
export const Zoom400: Story = {
|
|
40
51
|
render: () => <AllVariants />,
|
|
41
|
-
...withVariantConfig(['
|
|
52
|
+
...withVariantConfig(['400%']),
|
|
42
53
|
};
|