Skip to content

Commit 7c01c8b

Browse files
committed
feat(Stack): remove deprecated spacing values
BREAKING CHANGE: deprecated spacing prop values were removed.
1 parent c2198a5 commit 7c01c8b

File tree

2 files changed

+16
-33
lines changed

2 files changed

+16
-33
lines changed

packages/orbit-components/src/Stack/README.md

+15-23
Original file line numberDiff line numberDiff line change
@@ -81,26 +81,18 @@ All these properties - objects have the same own properties and none is required
8181

8282
### spacing
8383

84-
| name | size on `992px - ∞` |
85-
| :------------------------------------------ | :------------------ |
86-
| `"none"` | `null` |
87-
| `"XXXSmall"` - **deprecated (use `"50"`)** | `2px` |
88-
| `"XXSmall"` - **deprecated (use `"100"`)** | `4px` |
89-
| `"XSmall"` - **deprecated (use `"200"`)** | `8px` |
90-
| `"small"` - **deprecated (use `"300"`)** | `12px` |
91-
| `"medium"` - **deprecated (use `"400"`)** | `16px` |
92-
| `"large"` - **deprecated (use `"600"`)** | `24px` |
93-
| `"XLarge"` - **deprecated (use `"800"`)** | `32px` |
94-
| `"XXLarge"` - **deprecated (use `"1000"`)** | `40px` |
95-
| `"50"` | `2px` |
96-
| `"100"` | `4px` |
97-
| `"150"` | `6px` |
98-
| `"200"` | `8px` |
99-
| `"300"` | `12px` |
100-
| `"400"` | `16px` |
101-
| `"500"` | `20px` |
102-
| `"600"` | `24px` |
103-
| `"800"` | `32px` |
104-
| `"1000"` | `40px` |
105-
| `"1200"` | `48px` |
106-
| `"1600"` | `64px` |
84+
| name | size on `992px - ∞` |
85+
| :------- | :------------------ |
86+
| `"none"` | `null` |
87+
| `"50"` | `2px` |
88+
| `"100"` | `4px` |
89+
| `"150"` | `6px` |
90+
| `"200"` | `8px` |
91+
| `"300"` | `12px` |
92+
| `"400"` | `16px` |
93+
| `"500"` | `20px` |
94+
| `"600"` | `24px` |
95+
| `"800"` | `32px` |
96+
| `"1000"` | `40px` |
97+
| `"1200"` | `48px` |
98+
| `"1600"` | `64px` |

packages/orbit-components/src/Stack/types.d.ts

+1-10
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,7 @@ export type Spacing =
2424
| "800"
2525
| "1000"
2626
| "1200"
27-
| "1600"
28-
| "XXXSmall"
29-
| "XXSmall"
30-
| "XSmall"
31-
| "small"
32-
| "medium"
33-
| "large"
34-
| "XLarge"
35-
| "XXLarge"
36-
| "XXXLarge";
27+
| "1600";
3728

3829
export interface CommonProps extends Common.SpaceAfter {
3930
readonly inline?: boolean;

0 commit comments

Comments
 (0)