@repobuddy/storybook 2.24.0 → 2.26.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' | 'playground' | 'example' | 'perf' | 'version:next' | 'remove' | 'remove:next' | 'autodocs';
|
|
11
|
+
type TagNames = '!test' | 'editor' | 'source' | 'type' | '!type' | 'func' | '!func' | 'var' | '!var' | 'new' | 'a11y' | '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. */
|
|
@@ -47,6 +49,8 @@ declare const snapshotBadge: TagBadgeParameter;
|
|
|
47
49
|
declare const unitBadge: TagBadgeParameter;
|
|
48
50
|
/** Badge (🔗) for stories with integration tests. Hidden in sidebar. */
|
|
49
51
|
declare const integrationBadge: TagBadgeParameter;
|
|
52
|
+
/** Badge (♿) for stories that demonstrate or test accessibility. */
|
|
53
|
+
declare const a11yBadge: TagBadgeParameter;
|
|
50
54
|
/** Badge (⌨️) for stories that demonstrate or test keyboard interaction. */
|
|
51
55
|
declare const keyboardBadge: TagBadgeParameter;
|
|
52
56
|
/** Badge (🔒) for internal or private-use-only stories. */
|
|
@@ -64,8 +68,8 @@ declare const perfBadge: TagBadgeParameter;
|
|
|
64
68
|
* Each badge is associated with a specific tag and displays an emoji or symbol with a tooltip.
|
|
65
69
|
*
|
|
66
70
|
* Badge order (first match wins): New → Alpha → Beta → RC → Deprecated → Remove → Outdated → Danger → Use Case →
|
|
67
|
-
* Playground → Example → Perf → Keyboard → Source → Type → Function → Var → Props → Todo → Unit →
|
|
68
|
-
* Editor → Code Only → Version → Internal → Snapshot.
|
|
71
|
+
* Spec → Playground → Example → Perf → A11y → Keyboard → Source → Type → Function → Var → Props → Todo → Unit →
|
|
72
|
+
* Integration → Editor → Code Only → Version → Internal → Snapshot.
|
|
69
73
|
*
|
|
70
74
|
* - 🆕 New - Recently added stories
|
|
71
75
|
* - 🔴 Alpha - Stories for features in alpha
|
|
@@ -76,9 +80,11 @@ declare const perfBadge: TagBadgeParameter;
|
|
|
76
80
|
* - ⚠️ Outdated - Stories that need updating
|
|
77
81
|
* - 🚨 Danger - Stories demonstrating dangerous patterns
|
|
78
82
|
* - 🎯 Use Case - Stories that demonstrate a specific use case or scenario
|
|
83
|
+
* - 📜 Spec - Stories that serve as the specification of the component or code
|
|
79
84
|
* - ▶️ Playground - High-quality interactive stories for users to explore and interact with the component
|
|
80
85
|
* - ✨ Example - Example or demo stories
|
|
81
86
|
* - ⚡ Perf - Stories that demonstrate or test performance
|
|
87
|
+
* - ♿ A11y - Stories that demonstrate or test accessibility
|
|
82
88
|
* - ⌨️ Keyboard - Stories that demonstrate or test keyboard interaction
|
|
83
89
|
* - `</>` Source - Source-code-focused stories
|
|
84
90
|
* - `<T>` Type - Stories that showcase or document TypeScript types
|
|
@@ -168,4 +174,4 @@ type StoryObj<TMetaOrCmpOrArgs = Args> = ExtendStoryObj<TMetaOrCmpOrArgs, StoryO
|
|
|
168
174
|
tag: TagNames;
|
|
169
175
|
}>;
|
|
170
176
|
//#endregion
|
|
171
|
-
export { Meta, StoryObj, TagNames, alphaBadge, betaBadge, codeOnlyBadge, dangerBadge, deprecatedBadge, editorBadge, exampleBadge, functionBadge, integrationBadge, internalBadge, keyboardBadge, newBadge, outdatedBadge, perfBadge, playgroundBadge, propsBadge, rcBadge, removeBadge, snapshotBadge, sourceBadge, tagBadges, todoBadge, typeBadge, unitBadge, useCaseBadge, varBadge };
|
|
177
|
+
export { Meta, StoryObj, TagNames, a11yBadge, 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",
|
|
@@ -275,6 +291,22 @@ const integrationBadge = {
|
|
|
275
291
|
skipInherited: false
|
|
276
292
|
} }
|
|
277
293
|
};
|
|
294
|
+
/** Badge (♿) for stories that demonstrate or test accessibility. */
|
|
295
|
+
const a11yBadge = {
|
|
296
|
+
tags: "a11y",
|
|
297
|
+
badge: {
|
|
298
|
+
text: "♿",
|
|
299
|
+
style: {
|
|
300
|
+
backgroundColor: "transparent",
|
|
301
|
+
borderColor: "transparent"
|
|
302
|
+
},
|
|
303
|
+
tooltip: "Accessibility"
|
|
304
|
+
},
|
|
305
|
+
display: { sidebar: {
|
|
306
|
+
type: "story",
|
|
307
|
+
skipInherited: false
|
|
308
|
+
} }
|
|
309
|
+
};
|
|
278
310
|
/** Badge (⌨️) for stories that demonstrate or test keyboard interaction. */
|
|
279
311
|
const keyboardBadge = {
|
|
280
312
|
tags: "keyboard",
|
|
@@ -368,8 +400,8 @@ const perfBadge = {
|
|
|
368
400
|
* Each badge is associated with a specific tag and displays an emoji or symbol with a tooltip.
|
|
369
401
|
*
|
|
370
402
|
* Badge order (first match wins): New → Alpha → Beta → RC → Deprecated → Remove → Outdated → Danger → Use Case →
|
|
371
|
-
* Playground → Example → Perf → Keyboard → Source → Type → Function → Var → Props → Todo → Unit →
|
|
372
|
-
* Editor → Code Only → Version → Internal → Snapshot.
|
|
403
|
+
* Spec → Playground → Example → Perf → A11y → Keyboard → Source → Type → Function → Var → Props → Todo → Unit →
|
|
404
|
+
* Integration → Editor → Code Only → Version → Internal → Snapshot.
|
|
373
405
|
*
|
|
374
406
|
* - 🆕 New - Recently added stories
|
|
375
407
|
* - 🔴 Alpha - Stories for features in alpha
|
|
@@ -380,9 +412,11 @@ const perfBadge = {
|
|
|
380
412
|
* - ⚠️ Outdated - Stories that need updating
|
|
381
413
|
* - 🚨 Danger - Stories demonstrating dangerous patterns
|
|
382
414
|
* - 🎯 Use Case - Stories that demonstrate a specific use case or scenario
|
|
415
|
+
* - 📜 Spec - Stories that serve as the specification of the component or code
|
|
383
416
|
* - ▶️ Playground - High-quality interactive stories for users to explore and interact with the component
|
|
384
417
|
* - ✨ Example - Example or demo stories
|
|
385
418
|
* - ⚡ Perf - Stories that demonstrate or test performance
|
|
419
|
+
* - ♿ A11y - Stories that demonstrate or test accessibility
|
|
386
420
|
* - ⌨️ Keyboard - Stories that demonstrate or test keyboard interaction
|
|
387
421
|
* - `</>` Source - Source-code-focused stories
|
|
388
422
|
* - `<T>` Type - Stories that showcase or document TypeScript types
|
|
@@ -409,9 +443,11 @@ const tagBadges = [
|
|
|
409
443
|
outdatedBadge,
|
|
410
444
|
dangerBadge,
|
|
411
445
|
useCaseBadge,
|
|
446
|
+
specBadge,
|
|
412
447
|
playgroundBadge,
|
|
413
448
|
exampleBadge,
|
|
414
449
|
perfBadge,
|
|
450
|
+
a11yBadge,
|
|
415
451
|
keyboardBadge,
|
|
416
452
|
sourceBadge,
|
|
417
453
|
typeBadge,
|
|
@@ -429,4 +465,4 @@ const tagBadges = [
|
|
|
429
465
|
];
|
|
430
466
|
|
|
431
467
|
//#endregion
|
|
432
|
-
export { alphaBadge, betaBadge, codeOnlyBadge, dangerBadge, deprecatedBadge, editorBadge, exampleBadge, functionBadge, integrationBadge, internalBadge, keyboardBadge, newBadge, outdatedBadge, perfBadge, playgroundBadge, propsBadge, rcBadge, removeBadge, snapshotBadge, sourceBadge, tagBadges, todoBadge, typeBadge, unitBadge, useCaseBadge, varBadge };
|
|
468
|
+
export { a11yBadge, 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,9 +89,11 @@ 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 |
|
|
92
93
|
| ▶️ | `playground` | High-quality interactive stories for users to explore and interact with the component |
|
|
93
94
|
| ✨ | `example` | Example or demo stories |
|
|
94
95
|
| ⚡ | `perf` | Performance (stories that demonstrate or test performance) |
|
|
96
|
+
| ♿ | `a11y` | Accessibility (stories that demonstrate or test accessibility) |
|
|
95
97
|
| ⌨️ | `keyboard` | Keyboard interaction |
|
|
96
98
|
| `</>` | `source` | Source-code-focused stories |
|
|
97
99
|
| `<T>` | `type` | TypeScript types (shown in MDX) |
|
|
@@ -18,6 +18,7 @@ export type TagNames =
|
|
|
18
18
|
| 'var'
|
|
19
19
|
| '!var'
|
|
20
20
|
| 'new'
|
|
21
|
+
| 'a11y'
|
|
21
22
|
| 'alpha'
|
|
22
23
|
| 'beta'
|
|
23
24
|
| 'rc'
|
|
@@ -27,6 +28,7 @@ export type TagNames =
|
|
|
27
28
|
| 'danger'
|
|
28
29
|
| 'todo'
|
|
29
30
|
| 'code-only'
|
|
31
|
+
| 'spec'
|
|
30
32
|
| 'snapshot'
|
|
31
33
|
| '!snapshot'
|
|
32
34
|
| 'unit'
|
|
@@ -199,6 +201,25 @@ export const dangerBadge: TagBadgeParameter = {
|
|
|
199
201
|
}
|
|
200
202
|
}
|
|
201
203
|
|
|
204
|
+
/** Badge (📜) for stories that serve as the specification of the component or code. */
|
|
205
|
+
export const specBadge: TagBadgeParameter = {
|
|
206
|
+
tags: 'spec',
|
|
207
|
+
badge: {
|
|
208
|
+
text: '📜',
|
|
209
|
+
style: {
|
|
210
|
+
backgroundColor: 'transparent',
|
|
211
|
+
borderColor: 'transparent'
|
|
212
|
+
},
|
|
213
|
+
tooltip: 'Specification'
|
|
214
|
+
},
|
|
215
|
+
display: {
|
|
216
|
+
sidebar: {
|
|
217
|
+
type: 'story',
|
|
218
|
+
skipInherited: false
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
|
|
202
223
|
/** Badge (📋) for stories marked as todo or incomplete. */
|
|
203
224
|
export const todoBadge: TagBadgeParameter = {
|
|
204
225
|
tags: 'todo',
|
|
@@ -351,6 +372,25 @@ export const integrationBadge: TagBadgeParameter = {
|
|
|
351
372
|
}
|
|
352
373
|
}
|
|
353
374
|
|
|
375
|
+
/** Badge (♿) for stories that demonstrate or test accessibility. */
|
|
376
|
+
export const a11yBadge: TagBadgeParameter = {
|
|
377
|
+
tags: 'a11y',
|
|
378
|
+
badge: {
|
|
379
|
+
text: '♿',
|
|
380
|
+
style: {
|
|
381
|
+
backgroundColor: 'transparent',
|
|
382
|
+
borderColor: 'transparent'
|
|
383
|
+
},
|
|
384
|
+
tooltip: 'Accessibility'
|
|
385
|
+
},
|
|
386
|
+
display: {
|
|
387
|
+
sidebar: {
|
|
388
|
+
type: 'story',
|
|
389
|
+
skipInherited: false
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
|
|
354
394
|
/** Badge (⌨️) for stories that demonstrate or test keyboard interaction. */
|
|
355
395
|
export const keyboardBadge: TagBadgeParameter = {
|
|
356
396
|
tags: 'keyboard',
|
|
@@ -458,8 +498,8 @@ export const perfBadge: TagBadgeParameter = {
|
|
|
458
498
|
* Each badge is associated with a specific tag and displays an emoji or symbol with a tooltip.
|
|
459
499
|
*
|
|
460
500
|
* Badge order (first match wins): New → Alpha → Beta → RC → Deprecated → Remove → Outdated → Danger → Use Case →
|
|
461
|
-
* Playground → Example → Perf → Keyboard → Source → Type → Function → Var → Props → Todo → Unit →
|
|
462
|
-
* Editor → Code Only → Version → Internal → Snapshot.
|
|
501
|
+
* Spec → Playground → Example → Perf → A11y → Keyboard → Source → Type → Function → Var → Props → Todo → Unit →
|
|
502
|
+
* Integration → Editor → Code Only → Version → Internal → Snapshot.
|
|
463
503
|
*
|
|
464
504
|
* - 🆕 New - Recently added stories
|
|
465
505
|
* - 🔴 Alpha - Stories for features in alpha
|
|
@@ -470,9 +510,11 @@ export const perfBadge: TagBadgeParameter = {
|
|
|
470
510
|
* - ⚠️ Outdated - Stories that need updating
|
|
471
511
|
* - 🚨 Danger - Stories demonstrating dangerous patterns
|
|
472
512
|
* - 🎯 Use Case - Stories that demonstrate a specific use case or scenario
|
|
513
|
+
* - 📜 Spec - Stories that serve as the specification of the component or code
|
|
473
514
|
* - ▶️ Playground - High-quality interactive stories for users to explore and interact with the component
|
|
474
515
|
* - ✨ Example - Example or demo stories
|
|
475
516
|
* - ⚡ Perf - Stories that demonstrate or test performance
|
|
517
|
+
* - ♿ A11y - Stories that demonstrate or test accessibility
|
|
476
518
|
* - ⌨️ Keyboard - Stories that demonstrate or test keyboard interaction
|
|
477
519
|
* - `</>` Source - Source-code-focused stories
|
|
478
520
|
* - `<T>` Type - Stories that showcase or document TypeScript types
|
|
@@ -499,9 +541,11 @@ export const tagBadges: TagBadgeParameters = [
|
|
|
499
541
|
outdatedBadge,
|
|
500
542
|
dangerBadge,
|
|
501
543
|
useCaseBadge,
|
|
544
|
+
specBadge,
|
|
502
545
|
playgroundBadge,
|
|
503
546
|
exampleBadge,
|
|
504
547
|
perfBadge,
|
|
548
|
+
a11yBadge,
|
|
505
549
|
keyboardBadge,
|
|
506
550
|
sourceBadge,
|
|
507
551
|
typeBadge,
|