@repobuddy/storybook 2.23.1 → 2.25.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.
|
@@ -8,7 +8,7 @@ type TagBadgeParameter = TagBadgeParameters[0];
|
|
|
8
8
|
/**
|
|
9
9
|
* Type representing the names of predefined tags used in Storybook stories.
|
|
10
10
|
*/
|
|
11
|
-
type TagNames = '!test' | 'editor' | 'source' | 'type' | '!type' | 'func' | '!func' | 'var' | '!var' | 'new' | 'alpha' | 'beta' | 'rc' | 'props' | 'deprecated' | 'outdated' | 'danger' | 'todo' | 'code-only' | 'snapshot' | '!snapshot' | 'unit' | 'integration' | 'keyboard' | 'internal' | 'usecase' | 'use-case' | 'example' | 'perf' | 'version:next' | 'remove' | 'remove:next' | 'autodocs';
|
|
11
|
+
type TagNames = '!test' | 'editor' | 'source' | 'type' | '!type' | 'func' | '!func' | 'var' | '!var' | 'new' | 'alpha' | 'beta' | 'rc' | 'props' | 'deprecated' | 'outdated' | 'danger' | 'todo' | 'code-only' | 'spec' | 'snapshot' | '!snapshot' | 'unit' | 'integration' | 'keyboard' | 'internal' | 'usecase' | 'use-case' | 'playground' | 'example' | 'perf' | 'version:next' | 'remove' | 'remove:next' | 'autodocs';
|
|
12
12
|
/** Badge (✏️) for stories with a live editor. Shown in sidebar on story and inherited. */
|
|
13
13
|
declare const editorBadge: TagBadgeParameter;
|
|
14
14
|
/** Badge (🆕) for recently added stories. */
|
|
@@ -29,6 +29,8 @@ declare const removeBadge: TagBadgeParameter;
|
|
|
29
29
|
declare const outdatedBadge: TagBadgeParameter;
|
|
30
30
|
/** Badge (🚨) for stories demonstrating dangerous or cautionary patterns. */
|
|
31
31
|
declare const dangerBadge: TagBadgeParameter;
|
|
32
|
+
/** Badge (📜) for stories that serve as the specification of the component or code. */
|
|
33
|
+
declare const specBadge: TagBadgeParameter;
|
|
32
34
|
/** Badge (📋) for stories marked as todo or incomplete. */
|
|
33
35
|
declare const todoBadge: TagBadgeParameter;
|
|
34
36
|
/** Badge (📝) for stories without visual examples (code-only). Hidden in MDX. */
|
|
@@ -53,6 +55,8 @@ declare const keyboardBadge: TagBadgeParameter;
|
|
|
53
55
|
declare const internalBadge: TagBadgeParameter;
|
|
54
56
|
/** Badge (🎯) for stories that demonstrate a specific use case or scenario. */
|
|
55
57
|
declare const useCaseBadge: TagBadgeParameter;
|
|
58
|
+
/** Badge (▶️) for high-quality interactive playground stories where users can explore and interact with the component. */
|
|
59
|
+
declare const playgroundBadge: TagBadgeParameter;
|
|
56
60
|
/** Badge (✨) for example or demo stories. */
|
|
57
61
|
declare const exampleBadge: TagBadgeParameter;
|
|
58
62
|
/** Badge (⚡) for stories that demonstrate or test performance. */
|
|
@@ -62,8 +66,8 @@ declare const perfBadge: TagBadgeParameter;
|
|
|
62
66
|
* Each badge is associated with a specific tag and displays an emoji or symbol with a tooltip.
|
|
63
67
|
*
|
|
64
68
|
* Badge order (first match wins): New → Alpha → Beta → RC → Deprecated → Remove → Outdated → Danger → Use Case →
|
|
65
|
-
* Example → Perf → Keyboard → Source → Type → Function → Var → Props → Todo → Unit →
|
|
66
|
-
* Editor → Code Only → Version → Internal → Snapshot.
|
|
69
|
+
* Spec → Playground → Example → Perf → Keyboard → Source → Type → Function → Var → Props → Todo → Unit →
|
|
70
|
+
* Integration → Editor → Code Only → Version → Internal → Snapshot.
|
|
67
71
|
*
|
|
68
72
|
* - 🆕 New - Recently added stories
|
|
69
73
|
* - 🔴 Alpha - Stories for features in alpha
|
|
@@ -74,6 +78,8 @@ declare const perfBadge: TagBadgeParameter;
|
|
|
74
78
|
* - ⚠️ Outdated - Stories that need updating
|
|
75
79
|
* - 🚨 Danger - Stories demonstrating dangerous patterns
|
|
76
80
|
* - 🎯 Use Case - Stories that demonstrate a specific use case or scenario
|
|
81
|
+
* - 📜 Spec - Stories that serve as the specification of the component or code
|
|
82
|
+
* - ▶️ Playground - High-quality interactive stories for users to explore and interact with the component
|
|
77
83
|
* - ✨ Example - Example or demo stories
|
|
78
84
|
* - ⚡ Perf - Stories that demonstrate or test performance
|
|
79
85
|
* - ⌨️ Keyboard - Stories that demonstrate or test keyboard interaction
|
|
@@ -165,4 +171,4 @@ type StoryObj<TMetaOrCmpOrArgs = Args> = ExtendStoryObj<TMetaOrCmpOrArgs, StoryO
|
|
|
165
171
|
tag: TagNames;
|
|
166
172
|
}>;
|
|
167
173
|
//#endregion
|
|
168
|
-
export { Meta, StoryObj, TagNames, alphaBadge, betaBadge, codeOnlyBadge, dangerBadge, deprecatedBadge, editorBadge, exampleBadge, functionBadge, integrationBadge, internalBadge, keyboardBadge, newBadge, outdatedBadge, perfBadge, propsBadge, rcBadge, removeBadge, snapshotBadge, sourceBadge, tagBadges, todoBadge, typeBadge, unitBadge, useCaseBadge, varBadge };
|
|
174
|
+
export { Meta, StoryObj, TagNames, alphaBadge, betaBadge, codeOnlyBadge, dangerBadge, deprecatedBadge, editorBadge, exampleBadge, functionBadge, integrationBadge, internalBadge, keyboardBadge, newBadge, outdatedBadge, perfBadge, playgroundBadge, propsBadge, rcBadge, removeBadge, snapshotBadge, sourceBadge, specBadge, tagBadges, todoBadge, typeBadge, unitBadge, useCaseBadge, varBadge };
|
|
@@ -144,6 +144,22 @@ const dangerBadge = {
|
|
|
144
144
|
tooltip: "Dangerous"
|
|
145
145
|
}
|
|
146
146
|
};
|
|
147
|
+
/** Badge (📜) for stories that serve as the specification of the component or code. */
|
|
148
|
+
const specBadge = {
|
|
149
|
+
tags: "spec",
|
|
150
|
+
badge: {
|
|
151
|
+
text: "📜",
|
|
152
|
+
style: {
|
|
153
|
+
backgroundColor: "transparent",
|
|
154
|
+
borderColor: "transparent"
|
|
155
|
+
},
|
|
156
|
+
tooltip: "Specification"
|
|
157
|
+
},
|
|
158
|
+
display: { sidebar: {
|
|
159
|
+
type: "story",
|
|
160
|
+
skipInherited: false
|
|
161
|
+
} }
|
|
162
|
+
};
|
|
147
163
|
/** Badge (📋) for stories marked as todo or incomplete. */
|
|
148
164
|
const todoBadge = {
|
|
149
165
|
tags: "todo",
|
|
@@ -315,6 +331,22 @@ const useCaseBadge = {
|
|
|
315
331
|
skipInherited: false
|
|
316
332
|
} }
|
|
317
333
|
};
|
|
334
|
+
/** Badge (▶️) for high-quality interactive playground stories where users can explore and interact with the component. */
|
|
335
|
+
const playgroundBadge = {
|
|
336
|
+
tags: "playground",
|
|
337
|
+
badge: {
|
|
338
|
+
text: "▶️",
|
|
339
|
+
style: {
|
|
340
|
+
backgroundColor: "transparent",
|
|
341
|
+
borderColor: "transparent"
|
|
342
|
+
},
|
|
343
|
+
tooltip: "Playground"
|
|
344
|
+
},
|
|
345
|
+
display: { sidebar: {
|
|
346
|
+
type: "story",
|
|
347
|
+
skipInherited: false
|
|
348
|
+
} }
|
|
349
|
+
};
|
|
318
350
|
/** Badge (✨) for example or demo stories. */
|
|
319
351
|
const exampleBadge = {
|
|
320
352
|
tags: "example",
|
|
@@ -352,8 +384,8 @@ const perfBadge = {
|
|
|
352
384
|
* Each badge is associated with a specific tag and displays an emoji or symbol with a tooltip.
|
|
353
385
|
*
|
|
354
386
|
* Badge order (first match wins): New → Alpha → Beta → RC → Deprecated → Remove → Outdated → Danger → Use Case →
|
|
355
|
-
* Example → Perf → Keyboard → Source → Type → Function → Var → Props → Todo → Unit →
|
|
356
|
-
* Editor → Code Only → Version → Internal → Snapshot.
|
|
387
|
+
* Spec → Playground → Example → Perf → Keyboard → Source → Type → Function → Var → Props → Todo → Unit →
|
|
388
|
+
* Integration → Editor → Code Only → Version → Internal → Snapshot.
|
|
357
389
|
*
|
|
358
390
|
* - 🆕 New - Recently added stories
|
|
359
391
|
* - 🔴 Alpha - Stories for features in alpha
|
|
@@ -364,6 +396,8 @@ const perfBadge = {
|
|
|
364
396
|
* - ⚠️ Outdated - Stories that need updating
|
|
365
397
|
* - 🚨 Danger - Stories demonstrating dangerous patterns
|
|
366
398
|
* - 🎯 Use Case - Stories that demonstrate a specific use case or scenario
|
|
399
|
+
* - 📜 Spec - Stories that serve as the specification of the component or code
|
|
400
|
+
* - ▶️ Playground - High-quality interactive stories for users to explore and interact with the component
|
|
367
401
|
* - ✨ Example - Example or demo stories
|
|
368
402
|
* - ⚡ Perf - Stories that demonstrate or test performance
|
|
369
403
|
* - ⌨️ Keyboard - Stories that demonstrate or test keyboard interaction
|
|
@@ -392,6 +426,8 @@ const tagBadges = [
|
|
|
392
426
|
outdatedBadge,
|
|
393
427
|
dangerBadge,
|
|
394
428
|
useCaseBadge,
|
|
429
|
+
specBadge,
|
|
430
|
+
playgroundBadge,
|
|
395
431
|
exampleBadge,
|
|
396
432
|
perfBadge,
|
|
397
433
|
keyboardBadge,
|
|
@@ -411,4 +447,4 @@ const tagBadges = [
|
|
|
411
447
|
];
|
|
412
448
|
|
|
413
449
|
//#endregion
|
|
414
|
-
export { alphaBadge, betaBadge, codeOnlyBadge, dangerBadge, deprecatedBadge, editorBadge, exampleBadge, functionBadge, integrationBadge, internalBadge, keyboardBadge, newBadge, outdatedBadge, perfBadge, propsBadge, rcBadge, removeBadge, snapshotBadge, sourceBadge, tagBadges, todoBadge, typeBadge, unitBadge, useCaseBadge, varBadge };
|
|
450
|
+
export { alphaBadge, betaBadge, codeOnlyBadge, dangerBadge, deprecatedBadge, editorBadge, exampleBadge, functionBadge, integrationBadge, internalBadge, keyboardBadge, newBadge, outdatedBadge, perfBadge, playgroundBadge, propsBadge, rcBadge, removeBadge, snapshotBadge, sourceBadge, specBadge, tagBadges, todoBadge, typeBadge, unitBadge, useCaseBadge, varBadge };
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -89,6 +89,8 @@ we provide a different set of badges that uses emojis (order: first match wins):
|
|
|
89
89
|
| ⚠️ | `outdated` | Stories that need updating |
|
|
90
90
|
| 🚨 | `danger` | Dangerous or cautionary patterns |
|
|
91
91
|
| 🎯 | `use-case` | Specific use case or scenario |
|
|
92
|
+
| 📜 | `spec` | Specification of the component or code |
|
|
93
|
+
| ▶️ | `playground` | High-quality interactive stories for users to explore and interact with the component |
|
|
92
94
|
| ✨ | `example` | Example or demo stories |
|
|
93
95
|
| ⚡ | `perf` | Performance (stories that demonstrate or test performance) |
|
|
94
96
|
| ⌨️ | `keyboard` | Keyboard interaction |
|
|
@@ -27,6 +27,7 @@ export type TagNames =
|
|
|
27
27
|
| 'danger'
|
|
28
28
|
| 'todo'
|
|
29
29
|
| 'code-only'
|
|
30
|
+
| 'spec'
|
|
30
31
|
| 'snapshot'
|
|
31
32
|
| '!snapshot'
|
|
32
33
|
| 'unit'
|
|
@@ -35,6 +36,7 @@ export type TagNames =
|
|
|
35
36
|
| 'internal'
|
|
36
37
|
| 'usecase'
|
|
37
38
|
| 'use-case'
|
|
39
|
+
| 'playground'
|
|
38
40
|
| 'example'
|
|
39
41
|
| 'perf'
|
|
40
42
|
| 'version:next'
|
|
@@ -198,6 +200,25 @@ export const dangerBadge: TagBadgeParameter = {
|
|
|
198
200
|
}
|
|
199
201
|
}
|
|
200
202
|
|
|
203
|
+
/** Badge (📜) for stories that serve as the specification of the component or code. */
|
|
204
|
+
export const specBadge: TagBadgeParameter = {
|
|
205
|
+
tags: 'spec',
|
|
206
|
+
badge: {
|
|
207
|
+
text: '📜',
|
|
208
|
+
style: {
|
|
209
|
+
backgroundColor: 'transparent',
|
|
210
|
+
borderColor: 'transparent'
|
|
211
|
+
},
|
|
212
|
+
tooltip: 'Specification'
|
|
213
|
+
},
|
|
214
|
+
display: {
|
|
215
|
+
sidebar: {
|
|
216
|
+
type: 'story',
|
|
217
|
+
skipInherited: false
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
|
|
201
222
|
/** Badge (📋) for stories marked as todo or incomplete. */
|
|
202
223
|
export const todoBadge: TagBadgeParameter = {
|
|
203
224
|
tags: 'todo',
|
|
@@ -395,6 +416,25 @@ export const useCaseBadge: TagBadgeParameter = {
|
|
|
395
416
|
}
|
|
396
417
|
}
|
|
397
418
|
|
|
419
|
+
/** Badge (▶️) for high-quality interactive playground stories where users can explore and interact with the component. */
|
|
420
|
+
export const playgroundBadge: TagBadgeParameter = {
|
|
421
|
+
tags: 'playground',
|
|
422
|
+
badge: {
|
|
423
|
+
text: '▶️',
|
|
424
|
+
style: {
|
|
425
|
+
backgroundColor: 'transparent',
|
|
426
|
+
borderColor: 'transparent'
|
|
427
|
+
},
|
|
428
|
+
tooltip: 'Playground'
|
|
429
|
+
},
|
|
430
|
+
display: {
|
|
431
|
+
sidebar: {
|
|
432
|
+
type: 'story',
|
|
433
|
+
skipInherited: false
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
|
|
398
438
|
/** Badge (✨) for example or demo stories. */
|
|
399
439
|
export const exampleBadge: TagBadgeParameter = {
|
|
400
440
|
tags: 'example',
|
|
@@ -438,8 +478,8 @@ export const perfBadge: TagBadgeParameter = {
|
|
|
438
478
|
* Each badge is associated with a specific tag and displays an emoji or symbol with a tooltip.
|
|
439
479
|
*
|
|
440
480
|
* Badge order (first match wins): New → Alpha → Beta → RC → Deprecated → Remove → Outdated → Danger → Use Case →
|
|
441
|
-
* Example → Perf → Keyboard → Source → Type → Function → Var → Props → Todo → Unit →
|
|
442
|
-
* Editor → Code Only → Version → Internal → Snapshot.
|
|
481
|
+
* Spec → Playground → Example → Perf → Keyboard → Source → Type → Function → Var → Props → Todo → Unit →
|
|
482
|
+
* Integration → Editor → Code Only → Version → Internal → Snapshot.
|
|
443
483
|
*
|
|
444
484
|
* - 🆕 New - Recently added stories
|
|
445
485
|
* - 🔴 Alpha - Stories for features in alpha
|
|
@@ -450,6 +490,8 @@ export const perfBadge: TagBadgeParameter = {
|
|
|
450
490
|
* - ⚠️ Outdated - Stories that need updating
|
|
451
491
|
* - 🚨 Danger - Stories demonstrating dangerous patterns
|
|
452
492
|
* - 🎯 Use Case - Stories that demonstrate a specific use case or scenario
|
|
493
|
+
* - 📜 Spec - Stories that serve as the specification of the component or code
|
|
494
|
+
* - ▶️ Playground - High-quality interactive stories for users to explore and interact with the component
|
|
453
495
|
* - ✨ Example - Example or demo stories
|
|
454
496
|
* - ⚡ Perf - Stories that demonstrate or test performance
|
|
455
497
|
* - ⌨️ Keyboard - Stories that demonstrate or test keyboard interaction
|
|
@@ -478,6 +520,8 @@ export const tagBadges: TagBadgeParameters = [
|
|
|
478
520
|
outdatedBadge,
|
|
479
521
|
dangerBadge,
|
|
480
522
|
useCaseBadge,
|
|
523
|
+
specBadge,
|
|
524
|
+
playgroundBadge,
|
|
481
525
|
exampleBadge,
|
|
482
526
|
perfBadge,
|
|
483
527
|
keyboardBadge,
|