@@ -2,6 +2,7 @@ import React from "react";
22import Title from "../../.storybook/components/Title" ;
33import ExampleContainer from "../../.storybook/components/ExampleContainer" ;
44import DxcBox from "./Box" ;
5+ import DxcInset from "../inset/Inset" ;
56import { HalstackProvider } from "../HalstackContext" ;
67
78export default {
@@ -19,99 +20,70 @@ export const Chromatic = () => (
1920 < >
2021 < Title title = "Display flex" theme = "light" level = { 2 } />
2122 < ExampleContainer >
22- < DxcBox display = "flex" padding = "medium" >
23- Box
23+ < DxcBox display = "flex" >
24+ < DxcInset space = "2rem" > Box</ DxcInset >
2425 </ DxcBox >
2526 </ ExampleContainer >
2627 < Title title = "ShadowDepth" theme = "light" level = { 2 } />
2728 < ExampleContainer >
2829 < Title title = "ShadowDepth 0" theme = "light" level = { 4 } />
29- < DxcBox shadowDepth = { 0 } margin = "medium" padding = "medium" >
30- Box
30+ < DxcBox shadowDepth = { 0 } margin = "medium" >
31+ < DxcInset space = "2rem" > Box</ DxcInset >
3132 </ DxcBox >
3233 </ ExampleContainer >
3334 < ExampleContainer >
3435 < Title title = "ShadowDepth 1" theme = "light" level = { 4 } />
35- < DxcBox shadowDepth = { 1 } margin = "medium" padding = "medium" >
36- Box
36+ < DxcBox shadowDepth = { 1 } margin = "medium" >
37+ < DxcInset space = "2rem" > Box</ DxcInset >
3738 </ DxcBox >
3839 </ ExampleContainer >
3940 < ExampleContainer >
4041 < Title title = "ShadowDepth 2" theme = "light" level = { 4 } />
41- < DxcBox shadowDepth = { 2 } margin = "medium" padding = "medium" >
42- Box
42+ < DxcBox shadowDepth = { 2 } margin = "medium" >
43+ < DxcInset space = "2rem" > Box</ DxcInset >
4344 </ DxcBox >
4445 </ ExampleContainer >
45- < Title title = "Paddings" theme = "light" level = { 2 } />
46- < ExampleContainer >
47- < Title title = "Xxsmall padding" theme = "light" level = { 4 } />
48- < DxcBox padding = "xxsmall" > Box</ DxcBox >
49- </ ExampleContainer >
50- < ExampleContainer >
51- < Title title = "Xsmall padding" theme = "light" level = { 4 } />
52- < DxcBox padding = "xsmall" > Box</ DxcBox >
53- </ ExampleContainer >
54- < ExampleContainer >
55- < Title title = "Small padding" theme = "light" level = { 4 } />
56- < DxcBox padding = "small" > Box</ DxcBox >
57- </ ExampleContainer >
58- < ExampleContainer >
59- < Title title = "Medium padding" theme = "light" level = { 4 } />
60- < DxcBox padding = "medium" > Box</ DxcBox >
61- </ ExampleContainer >
62- < ExampleContainer >
63- < Title title = "Large padding" theme = "light" level = { 4 } />
64- < DxcBox padding = "large" > Box</ DxcBox >
65- </ ExampleContainer >
66- < ExampleContainer >
67- < Title title = "Xlarge padding" theme = "light" level = { 4 } />
68- < DxcBox padding = "xlarge" > Box</ DxcBox >
69- </ ExampleContainer >
70- < ExampleContainer >
71- < Title title = "Xxlarge padding" theme = "light" level = { 4 } />
72- < DxcBox padding = "xxlarge" > Box</ DxcBox >
73- </ ExampleContainer >
7446 < Title title = "Margins" theme = "light" level = { 2 } />
7547 < ExampleContainer >
7648 < Title title = "Xxsmall margin" theme = "light" level = { 4 } />
77- < DxcBox margin = "xxsmall" padding = "medium" >
78- Box
49+ < DxcBox margin = "xxsmall" >
50+ < DxcInset space = "2rem" > Box</ DxcInset >
7951 </ DxcBox >
8052 </ ExampleContainer >
8153 < ExampleContainer >
8254 < Title title = "Xsmall margin" theme = "light" level = { 4 } />
83- < DxcBox margin = "xsmall" padding = "medium" >
84- Box
55+ < DxcBox margin = "xsmall" >
56+ < DxcInset space = "2rem" > Box</ DxcInset >
8557 </ DxcBox >
8658 </ ExampleContainer >
8759 < ExampleContainer >
8860 < Title title = "Small margin" theme = "light" level = { 4 } />
89- < DxcBox margin = "small" padding = "medium" >
90- Box
61+ < DxcBox margin = "small" >
62+ < DxcInset space = "2rem" > Box</ DxcInset >
9163 </ DxcBox >
9264 </ ExampleContainer >
9365 < ExampleContainer >
9466 < Title title = "Medium margin" theme = "light" level = { 4 } />
95- < DxcBox margin = "medium" padding = "medium" >
96- Box
67+ < DxcBox margin = "medium" >
68+ < DxcInset space = "2rem" > Box</ DxcInset >
9769 </ DxcBox >
9870 </ ExampleContainer >
9971 < ExampleContainer >
10072 < Title title = "Large margin" theme = "light" level = { 4 } />
101- < DxcBox margin = "large" padding = "medium" >
102- Box
73+ < DxcBox margin = "large" >
74+ < DxcInset space = "2rem" > Box</ DxcInset >
10375 </ DxcBox >
10476 </ ExampleContainer >
10577 < ExampleContainer >
10678 < Title title = "Xlarge margin" theme = "light" level = { 4 } />
107- < DxcBox margin = "xlarge" padding = "medium" >
108- Box
79+ < DxcBox margin = "xlarge" >
80+ < DxcInset space = "2rem" > Box</ DxcInset >
10981 </ DxcBox >
11082 </ ExampleContainer >
11183 < ExampleContainer >
11284 < Title title = "Xxlarge margin" theme = "light" level = { 4 } />
113- < DxcBox margin = "xxlarge" padding = "medium" >
114- Box
85+ < DxcBox margin = "xxlarge" >
86+ < DxcInset space = "2rem" > Box</ DxcInset >
11587 </ DxcBox >
11688 </ ExampleContainer >
11789 < Title title = "Sizes" theme = "light" level = { 2 } />
@@ -138,8 +110,8 @@ export const Chromatic = () => (
138110 < Title title = "Opinionated theme" theme = "light" level = { 2 } />
139111 < ExampleContainer >
140112 < HalstackProvider theme = { opinionatedTheme } >
141- < DxcBox display = "flex" padding = "medium" >
142- Box
113+ < DxcBox display = "flex" >
114+ < DxcInset space = "2rem" > Box</ DxcInset >
143115 </ DxcBox >
144116 </ HalstackProvider >
145117 </ ExampleContainer >
0 commit comments