@transferwise/components 0.0.0-experimental-07c2308 → 0.0.0-experimental-1059ea7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transferwise/components",
3
- "version": "0.0.0-experimental-07c2308",
3
+ "version": "0.0.0-experimental-1059ea7",
4
4
  "description": "Neptune React components",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -95,13 +95,13 @@
95
95
  "rollup-preserve-directives": "^1.1.1",
96
96
  "storybook": "^8.2.2",
97
97
  "@transferwise/less-config": "3.1.1",
98
- "@transferwise/neptune-css": "0.0.0-experimental-07c2308",
98
+ "@transferwise/neptune-css": "0.0.0-experimental-1059ea7",
99
99
  "@wise/components-theming": "1.6.2",
100
100
  "@wise/wds-configs": "0.0.0"
101
101
  },
102
102
  "peerDependencies": {
103
103
  "@transferwise/icons": "^3.20.0",
104
- "@transferwise/neptune-css": "0.0.0-experimental-07c2308",
104
+ "@transferwise/neptune-css": "0.0.0-experimental-1059ea7",
105
105
  "@wise/art": "^2.16",
106
106
  "@wise/components-theming": "^1.0.0",
107
107
  "react": ">=18",
@@ -1,4 +1,5 @@
1
1
  import { Typography } from '../common/propsValues/typography';
2
+ import Modal from '../modal';
2
3
  import { lorem1000 } from '../test-utils';
3
4
 
4
5
  import Title from './Title';
@@ -10,9 +11,15 @@ export default {
10
11
 
11
12
  export const Hyphenation = () => {
12
13
  return (
13
- <Title type={Typography.TITLE_SCREEN}>
14
- This Screen Title is mostly one very long word and it hyphenates{' '}
15
- {lorem1000.replaceAll(' ', '')}
16
- </Title>
14
+ <Modal
15
+ open
16
+ body={
17
+ <Title type={Typography.TITLE_SCREEN} style={{ maxWidth: '600px' }}>
18
+ This Screen Title is mostly one very long word and it hyphenates{' '}
19
+ {lorem1000.replaceAll(' ', '')}
20
+ </Title>
21
+ }
22
+ onClose={() => {}}
23
+ />
17
24
  );
18
25
  };