Skip to content

Commit

Permalink
remove pre and pre-wrap options
Browse files Browse the repository at this point in the history
  • Loading branch information
dasfrosty committed Oct 23, 2024
1 parent 25df284 commit 1e84c7d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 36 deletions.
8 changes: 0 additions & 8 deletions packages/syntax-core/src/Typography/Typography.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -226,14 +226,6 @@
white-space: nowrap;
}

.pre {
white-space: pre;
}

.preLine {
white-space: pre-line;
}

.preWrap {
white-space: pre-wrap;
}
22 changes: 1 addition & 21 deletions packages/syntax-core/src/Typography/Typography.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export default {
control: { type: "radio" },
},
whiteSpace: {
options: ["inherit", "normal", "nowrap", "pre", "preLine", "preWrap"],
options: ["inherit", "normal", "nowrap", "preLine"],
control: { type: "radio" },
},
},
Expand Down Expand Up @@ -267,16 +267,6 @@ export const WhiteSpaceNowrap: StoryObj<typeof Typography> = {
),
};

export const WhiteSpacePre: StoryObj<typeof Typography> = {
render: (args) => (
<>
<Typography {...args} whiteSpace="pre">
{WHITE_SPACE_SAMPLE}
</Typography>
</>
),
};

export const WhiteSpacePreLine: StoryObj<typeof Typography> = {
render: (args) => (
<>
Expand All @@ -286,13 +276,3 @@ export const WhiteSpacePreLine: StoryObj<typeof Typography> = {
</>
),
};

export const WhiteSpacePreWrap: StoryObj<typeof Typography> = {
render: (args) => (
<>
<Typography {...args} whiteSpace="preWrap">
{WHITE_SPACE_SAMPLE}
</Typography>
</>
),
};
8 changes: 1 addition & 7 deletions packages/syntax-core/src/Typography/Typography.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,13 +134,7 @@ const Typography = forwardRef<
*
* @defaultValue "inherit"
*/
whiteSpace?:
| "inherit"
| "normal"
| "nowrap"
| "pre"
| "preLine"
| "preWrap";
whiteSpace?: "inherit" | "normal" | "nowrap" | "preLine";
}
>(function Typography(
{
Expand Down

0 comments on commit 1e84c7d

Please sign in to comment.