Skip to content

Commit 9544348

Browse files
committed
fix(docs): remove show-if-style
1 parent d33a7ed commit 9544348

31 files changed

+2
-901
lines changed

apps/docs/components/show-if-style.tsx

Lines changed: 0 additions & 21 deletions
This file was deleted.

apps/docs/content/docs/components/accordion.mdx

Lines changed: 1 addition & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ import { ExternalLinks } from "@docs/components/external-links";
88
import { PreviewCard } from "@docs/components/preview-card";
99
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@docs/components/ui/tabs";
1010
import { AccordionPreview } from "@docs/components/examples";
11-
import { Step, Steps } from 'fumadocs-ui/components/steps';
12-
import { ShowIfStyle } from "@docs/components/show-if-style";
11+
import { Step, Steps } from 'fumadocs-ui/components/steps';
1312

1413
<ExternalLinks
1514
links={[
@@ -104,8 +103,6 @@ import { ShowIfStyle } from "@docs/components/show-if-style";
104103

105104
**Copy and paste the following code into your project.**
106105

107-
<ShowIfStyle style="new-york">
108-
109106
```json doc-gen:file
110107
{
111108
"file": "./node_modules/@rnr/registry/src/new-york/components/ui/text.tsx",
@@ -135,43 +132,6 @@ import { ShowIfStyle } from "@docs/components/show-if-style";
135132
}
136133
}
137134
```
138-
139-
</ShowIfStyle>
140-
141-
<ShowIfStyle style="default">
142-
143-
```json doc-gen:file
144-
{
145-
"file": "./node_modules/@rnr/registry/src/default/components/ui/text.tsx",
146-
"codeblock": {
147-
"lang": "tsx",
148-
"meta": "title=\"@/components/ui/text.tsx\""
149-
}
150-
}
151-
```
152-
153-
```json doc-gen:file
154-
{
155-
"file": "./node_modules/@rnr/registry/src/default/components/ui/icon.tsx",
156-
"codeblock": {
157-
"lang": "tsx",
158-
"meta": "title=\"@/components/ui/icon.tsx\""
159-
}
160-
}
161-
```
162-
163-
```json doc-gen:file
164-
{
165-
"file": "./node_modules/@rnr/registry/src/default/components/ui/accordion.tsx",
166-
"codeblock": {
167-
"lang": "tsx",
168-
"meta": "title=\"@/components/ui/accordion.tsx\""
169-
}
170-
}
171-
```
172-
173-
</ShowIfStyle>
174-
175135
</Step>
176136
<Step>
177137

apps/docs/content/docs/components/alert-dialog.mdx

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import { PreviewCard } from "@docs/components/preview-card";
1010
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@docs/components/ui/tabs";
1111
import { AlertDialogPreview } from "@docs/components/examples";
1212
import { Step, Steps } from 'fumadocs-ui/components/steps';
13-
import { ShowIfStyle } from "@docs/components/show-if-style";
1413

1514
<ExternalLinks
1615
links={[
@@ -70,8 +69,6 @@ import { ShowIfStyle } from "@docs/components/show-if-style";
7069

7170
**Copy and paste the following code into your project.**
7271

73-
<ShowIfStyle style="new-york">
74-
7572
```json doc-gen:file
7673
{
7774
"file": "./node_modules/@rnr/registry/src/new-york/components/ui/text.tsx",
@@ -112,53 +109,6 @@ import { ShowIfStyle } from "@docs/components/show-if-style";
112109
}
113110
```
114111

115-
</ShowIfStyle>
116-
117-
<ShowIfStyle style="default">
118-
119-
```json doc-gen:file
120-
{
121-
"file": "./node_modules/@rnr/registry/src/default/components/ui/text.tsx",
122-
"codeblock": {
123-
"lang": "tsx",
124-
"meta": "title=\"@/components/ui/text.tsx\""
125-
}
126-
}
127-
```
128-
129-
```json doc-gen:file
130-
{
131-
"file": "./node_modules/@rnr/registry/src/default/components/ui/button.tsx",
132-
"codeblock": {
133-
"lang": "tsx",
134-
"meta": "title=\"@/components/ui/button.tsx\""
135-
}
136-
}
137-
```
138-
139-
```json doc-gen:file
140-
{
141-
"file": "./node_modules/@rnr/registry/src/default/components/ui/native-only-animated-view.tsx",
142-
"codeblock": {
143-
"lang": "tsx",
144-
"meta": "title=\"@/components/ui/native-only-animated-view.tsx\""
145-
}
146-
}
147-
```
148-
149-
```json doc-gen:file
150-
{
151-
"file": "./node_modules/@rnr/registry/src/default/components/ui/alert-dialog.tsx",
152-
"codeblock": {
153-
"lang": "tsx",
154-
"meta": "title=\"@/components/ui/alert-dialog.tsx\""
155-
}
156-
}
157-
```
158-
159-
</ShowIfStyle>
160-
161-
162112
</Step>
163113
<Step>
164114

apps/docs/content/docs/components/alert.mdx

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import { PreviewCard } from "@docs/components/preview-card";
88
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@docs/components/ui/tabs";
99
import { AlertPreview } from "@docs/components/examples";
1010
import { Step, Steps } from 'fumadocs-ui/components/steps';
11-
import { ShowIfStyle } from "@docs/components/show-if-style";
1211

1312
<div className="h-5"/>
1413

@@ -52,8 +51,6 @@ import { ShowIfStyle } from "@docs/components/show-if-style";
5251

5352
**Copy and paste the following code into your project.**
5453

55-
<ShowIfStyle style="new-york">
56-
5754
```json doc-gen:file
5855
{
5956
"file": "./node_modules/@rnr/registry/src/new-york/components/ui/text.tsx",
@@ -84,42 +81,6 @@ import { ShowIfStyle } from "@docs/components/show-if-style";
8481
}
8582
```
8683

87-
</ShowIfStyle>
88-
89-
<ShowIfStyle style="default">
90-
91-
```json doc-gen:file
92-
{
93-
"file": "./node_modules/@rnr/registry/src/default/components/ui/text.tsx",
94-
"codeblock": {
95-
"lang": "tsx",
96-
"meta": "title=\"@/components/ui/text.tsx\""
97-
}
98-
}
99-
```
100-
101-
```json doc-gen:file
102-
{
103-
"file": "./node_modules/@rnr/registry/src/default/components/ui/icon.tsx",
104-
"codeblock": {
105-
"lang": "tsx",
106-
"meta": "title=\"@/components/ui/icon.tsx\""
107-
}
108-
}
109-
```
110-
111-
```json doc-gen:file
112-
{
113-
"file": "./node_modules/@rnr/registry/src/default/components/ui/alert.tsx",
114-
"codeblock": {
115-
"lang": "tsx",
116-
"meta": "title=\"@/components/ui/alert.tsx\""
117-
}
118-
}
119-
```
120-
121-
</ShowIfStyle>
122-
12384
</Step>
12485
<Step>
12586

apps/docs/content/docs/components/aspect-ratio.mdx

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import { PreviewCard } from "@docs/components/preview-card";
99
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@docs/components/ui/tabs";
1010
import { AspectRatioPreview } from "@docs/components/examples";
1111
import { Step, Steps } from 'fumadocs-ui/components/steps';
12-
import { ShowIfStyle } from "@docs/components/show-if-style";
1312

1413
<ExternalLinks
1514
links={[
@@ -69,8 +68,6 @@ import { ShowIfStyle } from "@docs/components/show-if-style";
6968

7069
**Copy and paste the following code into your project.**
7170

72-
<ShowIfStyle style="new-york">
73-
7471
```json doc-gen:file
7572
{
7673
"file": "./node_modules/@rnr/registry/src/new-york/components/ui/aspect-ratio.tsx",
@@ -81,22 +78,6 @@ import { ShowIfStyle } from "@docs/components/show-if-style";
8178
}
8279
```
8380

84-
</ShowIfStyle>
85-
86-
<ShowIfStyle style="default">
87-
88-
```json doc-gen:file
89-
{
90-
"file": "./node_modules/@rnr/registry/src/default/components/ui/aspect-ratio.tsx",
91-
"codeblock": {
92-
"lang": "tsx",
93-
"meta": "title=\"@/components/ui/aspect-ratio.tsx\""
94-
}
95-
}
96-
```
97-
98-
</ShowIfStyle>
99-
10081
</Step>
10182
</Steps>
10283

apps/docs/content/docs/components/avatar.mdx

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import { PreviewCard } from "@docs/components/preview-card";
99
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@docs/components/ui/tabs";
1010
import { AvatarPreview } from "@docs/components/examples";
1111
import { Step, Steps } from 'fumadocs-ui/components/steps';
12-
import { ShowIfStyle } from "@docs/components/show-if-style";
1312

1413
<ExternalLinks
1514
links={[
@@ -69,8 +68,6 @@ import { ShowIfStyle } from "@docs/components/show-if-style";
6968

7069
**Copy and paste the following code into your project.**
7170

72-
<ShowIfStyle style="new-york">
73-
7471
```json doc-gen:file
7572
{
7673
"file": "./node_modules/@rnr/registry/src/new-york/components/ui/avatar.tsx",
@@ -81,22 +78,6 @@ import { ShowIfStyle } from "@docs/components/show-if-style";
8178
}
8279
```
8380

84-
</ShowIfStyle>
85-
86-
<ShowIfStyle style="default">
87-
88-
```json doc-gen:file
89-
{
90-
"file": "./node_modules/@rnr/registry/src/default/components/ui/avatar.tsx",
91-
"codeblock": {
92-
"lang": "tsx",
93-
"meta": "title=\"@/components/ui/avatar.tsx\""
94-
}
95-
}
96-
```
97-
98-
</ShowIfStyle>
99-
10081
</Step>
10182
<Step>
10283

apps/docs/content/docs/components/badge.mdx

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import { PreviewCard } from "@docs/components/preview-card";
99
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@docs/components/ui/tabs";
1010
import { BadgePreview } from "@docs/components/examples";
1111
import { Step, Steps } from 'fumadocs-ui/components/steps';
12-
import { ShowIfStyle } from "@docs/components/show-if-style";
1312

1413
<div className="h-5"/>
1514

@@ -62,8 +61,6 @@ import { ShowIfStyle } from "@docs/components/show-if-style";
6261

6362
**Copy and paste the following code into your project.**
6463

65-
<ShowIfStyle style="new-york">
66-
6764
```json doc-gen:file
6865
{
6966
"file": "./node_modules/@rnr/registry/src/new-york/components/ui/text.tsx",
@@ -83,32 +80,6 @@ import { ShowIfStyle } from "@docs/components/show-if-style";
8380
}
8481
}
8582
```
86-
87-
</ShowIfStyle>
88-
89-
<ShowIfStyle style="default">
90-
91-
```json doc-gen:file
92-
{
93-
"file": "./node_modules/@rnr/registry/src/default/components/ui/text.tsx",
94-
"codeblock": {
95-
"lang": "tsx",
96-
"meta": "title=\"@/components/ui/text.tsx\""
97-
}
98-
}
99-
```
100-
101-
```json doc-gen:file
102-
{
103-
"file": "./node_modules/@rnr/registry/src/default/components/ui/badge.tsx",
104-
"codeblock": {
105-
"lang": "tsx",
106-
"meta": "title=\"@/components/ui/badge.tsx\""
107-
}
108-
}
109-
```
110-
111-
</ShowIfStyle>
11283

11384
</Step>
11485
<Step>

apps/docs/content/docs/components/button.mdx

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import { PreviewCard } from "@docs/components/preview-card";
99
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@docs/components/ui/tabs";
1010
import { ButtonPreview, ButtonDestructivePreview, ButtonOutlinePreview, ButtonSecondaryPreview, ButtonGhostPreview, ButtonLinkPreview, ButtonIconPreview, ButtonWithIconPreview, ButtonLoadingPreview } from "@docs/components/examples";
1111
import { Step, Steps } from 'fumadocs-ui/components/steps';
12-
import { ShowIfStyle } from "@docs/components/show-if-style";
1312

1413
<div className="h-5"/>
1514

@@ -62,8 +61,6 @@ import { ShowIfStyle } from "@docs/components/show-if-style";
6261

6362
**Copy and paste the following code into your project.**
6463

65-
<ShowIfStyle style="new-york">
66-
6764
```json doc-gen:file
6865
{
6966
"file": "./node_modules/@rnr/registry/src/new-york/components/ui/text.tsx",
@@ -84,32 +81,6 @@ import { ShowIfStyle } from "@docs/components/show-if-style";
8481
}
8582
```
8683

87-
</ShowIfStyle>
88-
89-
<ShowIfStyle style="default">
90-
91-
```json doc-gen:file
92-
{
93-
"file": "./node_modules/@rnr/registry/src/default/components/ui/text.tsx",
94-
"codeblock": {
95-
"lang": "tsx",
96-
"meta": "title=\"@/components/ui/text.tsx\""
97-
}
98-
}
99-
```
100-
101-
```json doc-gen:file
102-
{
103-
"file": "./node_modules/@rnr/registry/src/default/components/ui/button.tsx",
104-
"codeblock": {
105-
"lang": "tsx",
106-
"meta": "title=\"@/components/ui/button.tsx\""
107-
}
108-
}
109-
```
110-
111-
</ShowIfStyle>
112-
11384
</Step>
11485
<Step>
11586

0 commit comments

Comments
 (0)