@atlaskit/ds-explorations 0.1.4 → 1.0.0

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.
Files changed (101) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/box/package.json +15 -0
  3. package/dist/cjs/components/box.partial.js +184 -201
  4. package/dist/cjs/components/inline.partial.js +49 -30
  5. package/dist/cjs/components/interaction-surface.partial.js +35 -3
  6. package/dist/cjs/components/stack.partial.js +49 -30
  7. package/dist/cjs/components/text.partial.js +116 -85
  8. package/dist/cjs/index.js +1 -9
  9. package/dist/cjs/internal/color-map.js +6 -5
  10. package/dist/cjs/internal/spacing-scale.js +17 -0
  11. package/dist/cjs/version.json +1 -1
  12. package/dist/es2019/components/box.partial.js +182 -184
  13. package/dist/es2019/components/inline.partial.js +49 -29
  14. package/dist/es2019/components/interaction-surface.partial.js +35 -3
  15. package/dist/es2019/components/stack.partial.js +49 -29
  16. package/dist/es2019/components/text.partial.js +73 -35
  17. package/dist/es2019/index.js +1 -2
  18. package/dist/es2019/internal/color-map.js +4 -3
  19. package/dist/es2019/internal/spacing-scale.js +9 -0
  20. package/dist/es2019/version.json +1 -1
  21. package/dist/esm/components/box.partial.js +183 -197
  22. package/dist/esm/components/inline.partial.js +49 -29
  23. package/dist/esm/components/interaction-surface.partial.js +35 -3
  24. package/dist/esm/components/stack.partial.js +49 -29
  25. package/dist/esm/components/text.partial.js +78 -46
  26. package/dist/esm/index.js +1 -2
  27. package/dist/esm/internal/color-map.js +4 -3
  28. package/dist/esm/internal/spacing-scale.js +9 -0
  29. package/dist/esm/version.json +1 -1
  30. package/dist/types/components/box.partial.d.ts +114 -18
  31. package/dist/types/components/inline.partial.d.ts +38 -4
  32. package/dist/types/components/interaction-surface.partial.d.ts +7 -3
  33. package/dist/types/components/stack.partial.d.ts +39 -6
  34. package/dist/types/components/text.partial.d.ts +5 -3
  35. package/dist/types/components/types.d.ts +1 -0
  36. package/dist/types/index.d.ts +0 -1
  37. package/dist/types/internal/color-map.d.ts +11 -9
  38. package/dist/types/internal/spacing-scale.d.ts +9 -0
  39. package/dist/types-ts4.0/components/box.partial.d.ts +114 -24
  40. package/dist/types-ts4.0/components/inline.partial.d.ts +38 -4
  41. package/dist/types-ts4.0/components/interaction-surface.partial.d.ts +7 -3
  42. package/dist/types-ts4.0/components/stack.partial.d.ts +39 -6
  43. package/dist/types-ts4.0/components/text.partial.d.ts +5 -6
  44. package/dist/types-ts4.0/components/types.d.ts +1 -0
  45. package/dist/types-ts4.0/index.d.ts +0 -1
  46. package/dist/types-ts4.0/internal/color-map.d.ts +11 -9
  47. package/dist/types-ts4.0/internal/spacing-scale.d.ts +22 -0
  48. package/examples/00-basic.tsx +4 -4
  49. package/examples/01-box.tsx +29 -46
  50. package/examples/02-text-advanced.tsx +38 -0
  51. package/examples/02-text.tsx +72 -62
  52. package/examples/03-stack.tsx +48 -74
  53. package/examples/04-inline.tsx +46 -75
  54. package/examples/05-badge.tsx +2 -2
  55. package/examples/06-section-message.tsx +7 -7
  56. package/examples/07-comment.tsx +4 -6
  57. package/examples/08-lozenge.tsx +9 -5
  58. package/examples/99-interactions.tsx +53 -46
  59. package/examples/config.jsonc +11 -0
  60. package/package.json +5 -2
  61. package/report.api.md +240 -54
  62. package/scripts/__tests__/__snapshots__/codegen.test.tsx.snap +52 -64
  63. package/scripts/codegen-styles.tsx +34 -6
  64. package/scripts/color-codegen-template.tsx +10 -15
  65. package/scripts/color-map-template.tsx +1 -1
  66. package/scripts/spacing-codegen-template.tsx +48 -12
  67. package/scripts/spacing-scale-template.tsx +40 -0
  68. package/scripts/utils.tsx +1 -3
  69. package/src/components/__tests__/unit/box.test.tsx +18 -13
  70. package/src/components/__tests__/unit/inline.test.tsx +10 -10
  71. package/src/components/__tests__/unit/interaction-suface.test.tsx +14 -8
  72. package/src/components/__tests__/unit/stack.test.tsx +7 -7
  73. package/src/components/__tests__/unit/text.test.tsx +23 -0
  74. package/src/components/__tests__/visual-regression/__image_snapshots__/box-snapshot-test-tsx-box-example-with-background-and-padding-block-should-match-snapshot-1-snap.png +2 -2
  75. package/src/components/__tests__/visual-regression/__image_snapshots__/box-snapshot-test-tsx-box-example-with-background-and-padding-inline-should-match-snapshot-1-snap.png +2 -2
  76. package/src/components/__tests__/visual-regression/__image_snapshots__/box-snapshot-test-tsx-box-example-with-background-and-padding-should-match-snapshot-1-snap.png +2 -2
  77. package/src/components/__tests__/visual-regression/__image_snapshots__/box-snapshot-test-tsx-box-example-with-background-color-should-match-snapshot-1-snap.png +2 -2
  78. package/src/components/__tests__/visual-regression/__image_snapshots__/box-snapshot-test-tsx-box-example-with-border-color-should-match-snapshot-1-snap.png +2 -2
  79. package/src/components/__tests__/visual-regression/__image_snapshots__/inline-snapshot-test-tsx-inline-alignment-example-should-match-snapshot-1-snap.png +2 -2
  80. package/src/components/__tests__/visual-regression/__image_snapshots__/inline-snapshot-test-tsx-inline-spacing-example-should-match-snapshot-1-snap.png +2 -2
  81. package/src/components/__tests__/visual-regression/__image_snapshots__/stack-snapshot-test-tsx-stack-alignment-example-should-match-snapshot-1-snap.png +2 -2
  82. package/src/components/__tests__/visual-regression/__image_snapshots__/stack-snapshot-test-tsx-stack-spacing-example-should-match-snapshot-1-snap.png +2 -2
  83. package/src/components/__tests__/visual-regression/__image_snapshots__/text-snapshot-test-tsx-text-example-with-line-heights-should-match-snapshot-1-snap.png +2 -2
  84. package/src/components/__tests__/visual-regression/__image_snapshots__/text-snapshot-test-tsx-text-example-with-testing-should-match-snapshot-1-snap.png +2 -2
  85. package/src/components/box.partial.tsx +296 -159
  86. package/src/components/inline.partial.tsx +75 -21
  87. package/src/components/interaction-surface.partial.tsx +6 -4
  88. package/src/components/stack.partial.tsx +75 -22
  89. package/src/components/text.partial.tsx +78 -41
  90. package/src/components/types.tsx +2 -0
  91. package/src/index.tsx +0 -1
  92. package/src/internal/color-map.tsx +4 -3
  93. package/src/internal/spacing-scale.tsx +22 -0
  94. package/text/package.json +15 -0
  95. package/tmp/api-report-tmp.d.ts +583 -0
  96. package/dist/cjs/constants.js +0 -21
  97. package/dist/es2019/constants.js +0 -14
  98. package/dist/esm/constants.js +0 -14
  99. package/dist/types/constants.d.ts +0 -15
  100. package/dist/types-ts4.0/constants.d.ts +0 -15
  101. package/src/constants.tsx +0 -16
@@ -8,27 +8,24 @@ import {
8
8
  UNSAFE_Stack as Stack,
9
9
  UNSAFE_Text as Text,
10
10
  } from '../src';
11
- import { GlobalSpacingToken, SPACING_SCALE } from '../src/constants';
11
+ import { spacingScale } from '../src/internal/spacing-scale';
12
12
 
13
13
  /**
14
14
  * Box permutations
15
15
  */
16
16
  export default () => {
17
17
  return (
18
- <Stack gap="sp-400" alignItems="flexStart">
19
- <Stack gap="sp-200" testId="box-with-background-and-paddingBlock">
18
+ <Stack gap="scale.400" alignItems="flexStart">
19
+ <Stack gap="scale.200" testId="box-with-background-and-paddingBlock">
20
20
  <Heading level="h600">paddingBlock</Heading>
21
- <Inline gap="sp-200" alignItems="center">
22
- {Object.keys(SPACING_SCALE).map((space) => (
21
+ <Inline gap="scale.200" alignItems="center">
22
+ {spacingScale.map((space) => (
23
23
  <Box
24
24
  key={space}
25
- backgroundColor={['discovery.bold', 'purple']}
26
- paddingBlock={space as GlobalSpacingToken}
25
+ backgroundColor="discovery.bold"
26
+ paddingBlock={space}
27
27
  >
28
- <Box
29
- backgroundColor={['elevation.surface', 'white']}
30
- justifyContent="center"
31
- >
28
+ <Box backgroundColor="elevation.surface" justifyContent="center">
32
29
  <Text>{space}</Text>
33
30
  </Box>
34
31
  </Box>
@@ -36,19 +33,16 @@ export default () => {
36
33
  </Inline>
37
34
  </Stack>
38
35
 
39
- <Stack gap="sp-200" testId="box-with-background-and-paddingInline">
36
+ <Stack gap="scale.200" testId="box-with-background-and-paddingInline">
40
37
  <Heading level="h600">paddingInline</Heading>
41
- <Stack gap="sp-200" alignItems="center">
42
- {Object.keys(SPACING_SCALE).map((space) => (
38
+ <Stack gap="scale.200" alignItems="center">
39
+ {spacingScale.map((space) => (
43
40
  <Box
44
41
  key={space}
45
- backgroundColor={['discovery.bold', 'purple']}
46
- paddingInline={space as GlobalSpacingToken}
42
+ backgroundColor="discovery.bold"
43
+ paddingInline={space}
47
44
  >
48
- <Box
49
- backgroundColor={['elevation.surface', 'white']}
50
- justifyContent="center"
51
- >
45
+ <Box backgroundColor="elevation.surface" justifyContent="center">
52
46
  <Text>{space}</Text>
53
47
  </Box>
54
48
  </Box>
@@ -56,19 +50,12 @@ export default () => {
56
50
  </Stack>
57
51
  </Stack>
58
52
 
59
- <Stack gap="sp-200" testId="box-with-background-and-padding">
53
+ <Stack gap="scale.200" testId="box-with-background-and-padding">
60
54
  <Heading level="h600">padding</Heading>
61
- <Inline gap="sp-200" alignItems="center">
62
- {Object.keys(SPACING_SCALE).map((space) => (
63
- <Box
64
- key={space}
65
- backgroundColor={['discovery.bold', 'purple']}
66
- padding={space as GlobalSpacingToken}
67
- >
68
- <Box
69
- backgroundColor={['elevation.surface', 'white']}
70
- justifyContent="center"
71
- >
55
+ <Inline gap="scale.200" alignItems="center">
56
+ {spacingScale.map((space) => (
57
+ <Box key={space} backgroundColor="discovery.bold" padding={space}>
58
+ <Box backgroundColor="elevation.surface" justifyContent="center">
72
59
  <Text>{space}</Text>
73
60
  </Box>
74
61
  </Box>
@@ -76,9 +63,9 @@ export default () => {
76
63
  </Inline>
77
64
  </Stack>
78
65
 
79
- <Stack gap="sp-200" testId="box-with-backgroundColor">
66
+ <Stack gap="scale.200" testId="box-with-backgroundColor">
80
67
  <Heading level="h600">backgroundColor</Heading>
81
- <Inline gap="sp-200" alignItems="center">
68
+ <Inline gap="scale.200" alignItems="center">
82
69
  {([
83
70
  'discovery.bold',
84
71
  'success.bold',
@@ -87,22 +74,18 @@ export default () => {
87
74
  'information.bold',
88
75
  'brand.bold',
89
76
  ] as const).map((bgColor) => (
90
- <Box
91
- key={bgColor}
92
- backgroundColor={[bgColor, 'purple']}
93
- padding={'sp-400'}
94
- >
77
+ <Box key={bgColor} backgroundColor={bgColor} padding="scale.400">
95
78
  <Box justifyContent="center">
96
- <Text color={['inverse', 'white']}>{bgColor}</Text>
79
+ <Text>{bgColor}</Text>
97
80
  </Box>
98
81
  </Box>
99
82
  ))}
100
83
  </Inline>
101
84
  </Stack>
102
85
 
103
- <Stack gap="sp-200" testId="box-with-borderColor">
86
+ <Stack gap="scale.200" testId="box-with-borderColor">
104
87
  <Heading level="h600">borderColor</Heading>
105
- <Inline gap="sp-200" alignItems="center">
88
+ <Inline gap="scale.200" alignItems="center">
106
89
  {([
107
90
  'discovery',
108
91
  'success',
@@ -113,14 +96,14 @@ export default () => {
113
96
  ] as const).map((borderColor) => (
114
97
  <Box
115
98
  key={borderColor}
116
- backgroundColor={['neutral', 'grey']}
117
- borderColor={[borderColor, 'purple']}
99
+ backgroundColor="neutral"
100
+ borderColor={borderColor}
118
101
  borderStyle="solid"
119
102
  borderWidth="2px"
120
- padding={'sp-400'}
103
+ padding="scale.400"
121
104
  >
122
105
  <Box justifyContent="center">
123
- <Text color={['color.text', 'black']}>{borderColor}</Text>
106
+ <Text color="color.text">{borderColor}</Text>
124
107
  </Box>
125
108
  </Box>
126
109
  ))}
@@ -0,0 +1,38 @@
1
+ import React from 'react';
2
+
3
+ import Box from '../src/components/box.partial';
4
+ import Inline from '../src/components/inline.partial';
5
+ import Text from '../src/components/text.partial';
6
+
7
+ export default () => {
8
+ return (
9
+ <Inline gap="scale.100">
10
+ <Box
11
+ paddingBlock="scale.400"
12
+ paddingInline="scale.400"
13
+ alignItems="center"
14
+ backgroundColor="information"
15
+ >
16
+ <Text>
17
+ <Text>Text that deletes its redundant wrapping</Text>
18
+ </Text>
19
+ </Box>
20
+ <Box
21
+ paddingBlock="scale.400"
22
+ paddingInline="scale.400"
23
+ alignItems="center"
24
+ backgroundColor="information"
25
+ >
26
+ <Text fontWeight="600">Text on information</Text>
27
+ </Box>
28
+ <Box
29
+ paddingBlock="scale.400"
30
+ paddingInline="scale.400"
31
+ alignItems="center"
32
+ backgroundColor="brand.bold"
33
+ >
34
+ <Text fontWeight="600">Text on brand bold</Text>
35
+ </Box>
36
+ </Inline>
37
+ );
38
+ };
@@ -11,69 +11,79 @@ import {
11
11
 
12
12
  export default () => {
13
13
  return (
14
- <Stack gap="sp-200">
15
- <Heading as="h2" level="h100">
16
- Font size
14
+ <Stack gap="scale.300">
15
+ <Heading level="h400" as="h3">
16
+ Text examples
17
17
  </Heading>
18
- <Inline gap="sp-200" testId="font-sizes">
19
- {(['11px', '12px', '14px'] as const).map((fontSize) => (
20
- <Text key={fontSize} fontSize={fontSize}>
21
- fontSize {fontSize}
22
- </Text>
23
- ))}
24
- </Inline>
25
-
26
- <Heading as="h2" level="h100">
27
- Font weight
28
- </Heading>
29
- <Inline gap="sp-200" testId="font-weights">
30
- {(['400', '500'] as const).map((fontWeight) => (
31
- <Text key={fontWeight} fontWeight={fontWeight}>
32
- fontWeight {fontWeight}
33
- </Text>
34
- ))}
35
- </Inline>
36
-
37
- <Heading as="h2" level="h100">
38
- Line height
39
- </Heading>
40
- <Inline gap="sp-200" testId="line-heights" alignItems="center">
41
- {([
42
- '12px',
43
- '16px',
44
- '20px',
45
- '24px',
46
- '28px',
47
- '32px',
48
- '40px',
49
- ] as const).map((lineHeight) => (
50
- <Box
51
- key={lineHeight}
52
- display="inlineFlex"
53
- backgroundColor={['neutral', 'lightgrey']}
54
- >
55
- <Text lineHeight={lineHeight}>lineHeight {lineHeight}</Text>
56
- </Box>
57
- ))}
58
- </Inline>
59
-
60
- <Heading as="h2" level="h100">
61
- Testing
62
- </Heading>
63
- <Stack gap="sp-200" testId="testing">
64
- <Text as="p">Paragraph</Text>
65
- <Text as="div">A div</Text>
66
- <Text>Basic</Text>
67
- <Text
68
- color={['brand', 'blue']}
69
- fontSize="14px"
70
- lineHeight="16px"
71
- fontWeight="500"
72
- >
73
- Text with various props
74
- </Text>
75
- <Box UNSAFE_style={{ width: '200px' }}>
76
- <Text shouldTruncate>Long truncated text that is cut off.</Text>
18
+ <Stack gap="scale.200">
19
+ <Box display="block">
20
+ <Heading level="h300">Font size</Heading>
21
+ <Inline gap="scale.200" testId="font-sizes">
22
+ {(['11px', '12px', '14px'] as const).map((fontSize) => (
23
+ <Text key={fontSize} fontSize={fontSize}>
24
+ fontSize {fontSize}
25
+ </Text>
26
+ ))}
27
+ </Inline>
28
+ </Box>
29
+ <Box display="block">
30
+ <Heading level="h300" as="h4">
31
+ Font weight
32
+ </Heading>
33
+ <Inline gap="scale.200" testId="font-weights">
34
+ {(['400', '500'] as const).map((fontWeight) => (
35
+ <Text key={fontWeight} fontWeight={fontWeight}>
36
+ fontWeight {fontWeight}
37
+ </Text>
38
+ ))}
39
+ </Inline>
40
+ </Box>
41
+ <Box display="block">
42
+ <Heading level="h300" as="h4">
43
+ Line height
44
+ </Heading>
45
+ <Inline gap="scale.200" testId="line-heights" alignItems="center">
46
+ {([
47
+ '12px',
48
+ '16px',
49
+ '20px',
50
+ '24px',
51
+ '28px',
52
+ '32px',
53
+ '40px',
54
+ ] as const).map((lineHeight) => (
55
+ <Box
56
+ key={lineHeight}
57
+ display="inlineFlex"
58
+ backgroundColor="neutral"
59
+ >
60
+ <Text lineHeight={lineHeight}>lineHeight {lineHeight}</Text>
61
+ </Box>
62
+ ))}
63
+ </Inline>
64
+ </Box>
65
+ <Box display="block">
66
+ <Heading level="h300" as="h4">
67
+ Testing
68
+ </Heading>
69
+ <Stack gap="scale.050" testId="testing">
70
+ <Text as="p">Paragraph</Text>
71
+ <Text as="div">A div</Text>
72
+ <Text>
73
+ <Text>This text tag will have its dom element stripped</Text>
74
+ </Text>
75
+ <Text
76
+ color="brand"
77
+ fontSize="14px"
78
+ lineHeight="16px"
79
+ fontWeight="500"
80
+ >
81
+ Text with various props
82
+ </Text>
83
+ <Box UNSAFE_style={{ width: '200px' }}>
84
+ <Text shouldTruncate>Long truncated text that is cut off.</Text>
85
+ </Box>
86
+ </Stack>
77
87
  </Box>
78
88
  </Stack>
79
89
  </Stack>
@@ -7,78 +7,49 @@ import {
7
7
  UNSAFE_Inline as Inline,
8
8
  UNSAFE_Stack as Stack,
9
9
  } from '../src';
10
- import { GlobalSpacingToken, SPACING_SCALE } from '../src/constants';
10
+ import { spacingScale } from '../src/internal/spacing-scale';
11
11
 
12
12
  const flexAlignItems = ['center', 'baseline', 'flexStart', 'flexEnd'];
13
13
  const flexJustifyContent = ['center', 'flexStart', 'flexEnd'];
14
+ const flexWrap = ['wrap'];
14
15
 
15
16
  /**
16
17
  * Stack permutations
17
18
  */
18
19
  export default () => {
19
20
  return (
20
- <Stack gap="sp-300">
21
- <Stack gap="sp-300" testId="stack-spacing">
21
+ <Stack gap="scale.300">
22
+ <Stack gap="scale.300" testId="stack-spacing">
22
23
  <Heading level="h700">Spacing</Heading>
23
- <Inline gap="sp-400">
24
- {Object.keys(SPACING_SCALE).map((space) => (
25
- <Stack gap="sp-300">
24
+ <Inline gap="scale.400">
25
+ {spacingScale.map((space) => (
26
+ <Stack key={space} gap="scale.300">
26
27
  <Heading level="h500">{space}</Heading>
27
28
 
28
- <Box backgroundColor={['neutral', 'grey']}>
29
- <Stack gap={space as GlobalSpacingToken} alignItems="center">
30
- <Box
31
- padding="sp-100"
32
- backgroundColor={['success.bold', 'green']}
33
- >
34
- {' '}
35
- </Box>
36
- <Box
37
- padding="sp-100"
38
- backgroundColor={['success.bold', 'green']}
39
- >
40
- {' '}
41
- </Box>
42
- <Box
43
- padding="sp-100"
44
- backgroundColor={['success.bold', 'green']}
45
- >
46
- {' '}
47
- </Box>
29
+ <Box backgroundColor="neutral">
30
+ <Stack gap={space} alignItems="center">
31
+ <Box padding="scale.100" backgroundColor="success.bold" />
32
+ <Box padding="scale.100" backgroundColor="success.bold" />
33
+ <Box padding="scale.100" backgroundColor="success.bold" />
48
34
  </Stack>
49
35
  </Box>
50
36
  </Stack>
51
37
  ))}
52
38
  </Inline>
53
39
  </Stack>
54
- <Stack gap="sp-300" testId="stack-alignment">
40
+ <Stack gap="scale.300" testId="stack-alignment">
55
41
  <Heading level="h700">Alignment</Heading>
56
42
  <Heading level="h600">alignItems</Heading>
57
- <Inline gap="sp-400">
43
+ <Inline gap="scale.400">
58
44
  {flexAlignItems.map((alignItemsValue) => (
59
- <Stack gap="sp-300">
45
+ <Stack key={alignItemsValue} gap="scale.300">
60
46
  <Heading level="h500">{alignItemsValue}</Heading>
61
47
 
62
- <Box backgroundColor={['neutral', 'grey']} display="block">
63
- <Stack gap="sp-200" alignItems={alignItemsValue as any}>
64
- <Box
65
- padding="sp-100"
66
- backgroundColor={['success.bold', 'green']}
67
- >
68
- {' '}
69
- </Box>
70
- <Box
71
- padding="sp-100"
72
- backgroundColor={['success.bold', 'green']}
73
- >
74
- {' '}
75
- </Box>
76
- <Box
77
- padding="sp-100"
78
- backgroundColor={['success.bold', 'green']}
79
- >
80
- {' '}
81
- </Box>
48
+ <Box backgroundColor="neutral" display="block">
49
+ <Stack gap="scale.200" alignItems={alignItemsValue as any}>
50
+ <Box padding="scale.100" backgroundColor="success.bold" />
51
+ <Box padding="scale.100" backgroundColor="success.bold" />
52
+ <Box padding="scale.100" backgroundColor="success.bold" />
82
53
  </Stack>
83
54
  </Box>
84
55
  </Stack>
@@ -86,34 +57,37 @@ export default () => {
86
57
  </Inline>
87
58
 
88
59
  <Heading level="h600">justifyContent</Heading>
89
- <Inline gap="sp-400">
60
+ <Inline gap="scale.400">
90
61
  {flexJustifyContent.map((justifyContentValue) => (
91
- <Stack gap="sp-300">
62
+ <Stack key={justifyContentValue} gap="scale.300">
92
63
  <Heading level="h500">{justifyContentValue}</Heading>
93
64
 
94
- <Box
95
- backgroundColor={['neutral', 'grey']}
96
- UNSAFE_style={{ height: '200px' }}
97
- >
98
- <Stack gap="sp-200" justifyContent={justifyContentValue as any}>
99
- <Box
100
- padding="sp-100"
101
- backgroundColor={['success.bold', 'green']}
102
- >
103
- {' '}
104
- </Box>
105
- <Box
106
- padding="sp-100"
107
- backgroundColor={['success.bold', 'green']}
108
- >
109
- {' '}
110
- </Box>
111
- <Box
112
- padding="sp-100"
113
- backgroundColor={['success.bold', 'green']}
114
- >
115
- {' '}
116
- </Box>
65
+ <Box backgroundColor="neutral" UNSAFE_style={{ height: '200px' }}>
66
+ <Stack
67
+ gap="scale.200"
68
+ justifyContent={justifyContentValue as any}
69
+ >
70
+ <Box padding="scale.100" backgroundColor="success.bold" />
71
+ <Box padding="scale.100" backgroundColor="success.bold" />
72
+ <Box padding="scale.100" backgroundColor="success.bold" />
73
+ </Stack>
74
+ </Box>
75
+ </Stack>
76
+ ))}
77
+ </Inline>
78
+
79
+ <Heading level="h700">Overflow</Heading>
80
+ <Heading level="h600">flexWrap</Heading>
81
+ <Inline gap="scale.400">
82
+ {flexWrap.map((flexWrapValue) => (
83
+ <Stack key={flexWrapValue} gap="scale.300">
84
+ <Heading level="h500">{flexWrapValue}</Heading>
85
+
86
+ <Box backgroundColor="neutral" UNSAFE_style={{ height: '50px' }}>
87
+ <Stack gap="scale.200" flexWrap={flexWrapValue as any}>
88
+ <Box padding="scale.100" backgroundColor="success.bold" />
89
+ <Box padding="scale.100" backgroundColor="success.bold" />
90
+ <Box padding="scale.100" backgroundColor="success.bold" />
117
91
  </Stack>
118
92
  </Box>
119
93
  </Stack>