@behavioral-agentic-design-system/core 0.18.0 → 0.21.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.
- package/package.json +1 -1
- package/src/app/preview/components/page.tsx +247 -234
- package/src/app/shell.tsx +57 -4
- package/src/components/onboarding-wizard.tsx +1 -1
- package/src/components/ui/color-picker.tsx +454 -74
- package/src/stories/Accordion.stories.tsx +12 -9
- package/src/stories/ButtonGroup.stories.tsx +16 -16
- package/src/stories/ColorPicker.stories.tsx +53 -1
- package/src/stories/DatePicker.stories.tsx +2 -2
- package/src/stories/EmptyState.stories.tsx +21 -21
- package/src/stories/List.stories.tsx +28 -28
- package/src/stories/RatingGroup.stories.tsx +2 -2
- package/src/stories/SegmentedControl.stories.tsx +3 -3
- package/src/stories/TagsInput.stories.tsx +21 -21
- package/src/stories/Timeline.stories.tsx +50 -50
|
@@ -26,10 +26,10 @@ export const Default: Story = {
|
|
|
26
26
|
render: () => (
|
|
27
27
|
<div className="w-80">
|
|
28
28
|
<Timeline>
|
|
29
|
-
<TimelineItem status="complete" title="
|
|
30
|
-
<TimelineItem status="complete" title="
|
|
31
|
-
<TimelineItem status="active" title="
|
|
32
|
-
<TimelineItem status="pending" title="
|
|
29
|
+
<TimelineItem status="complete" title="PR #142 opened" time="Jun 20, 9:00 AM" />
|
|
30
|
+
<TimelineItem status="complete" title="CI checks passed" time="Jun 21, 2:30 PM" />
|
|
31
|
+
<TimelineItem status="active" title="In review" time="Jun 25 (today)" />
|
|
32
|
+
<TimelineItem status="pending" title="Merge to main" time="Jun 28 (estimated)" />
|
|
33
33
|
</Timeline>
|
|
34
34
|
</div>
|
|
35
35
|
),
|
|
@@ -75,29 +75,29 @@ export const WithIcons: Story = {
|
|
|
75
75
|
<TimelineItem
|
|
76
76
|
status="complete"
|
|
77
77
|
icon={<UserCheckIcon className="size-3" strokeWidth={1.5} aria-hidden />}
|
|
78
|
-
title="
|
|
79
|
-
description="
|
|
78
|
+
title="Contributor added"
|
|
79
|
+
description="Maya Chen joined as a reviewer"
|
|
80
80
|
time="Jun 20"
|
|
81
81
|
/>
|
|
82
82
|
<TimelineItem
|
|
83
83
|
status="complete"
|
|
84
84
|
icon={<CreditCardIcon className="size-3" strokeWidth={1.5} aria-hidden />}
|
|
85
|
-
title="
|
|
86
|
-
description="
|
|
85
|
+
title="Chromatic plan renewed"
|
|
86
|
+
description="500 visual snapshots per month"
|
|
87
87
|
time="Jun 21"
|
|
88
88
|
/>
|
|
89
89
|
<TimelineItem
|
|
90
90
|
status="active"
|
|
91
91
|
icon={<ClipboardCheckIcon className="size-3" strokeWidth={1.5} aria-hidden />}
|
|
92
|
-
title="
|
|
93
|
-
description="
|
|
92
|
+
title="Accessibility audit"
|
|
93
|
+
description="12 of 18 components checked, all AAA"
|
|
94
94
|
time="Jun 25"
|
|
95
95
|
/>
|
|
96
96
|
<TimelineItem
|
|
97
97
|
status="pending"
|
|
98
98
|
icon={<TrophyIcon className="size-3" strokeWidth={1.5} aria-hidden />}
|
|
99
|
-
title="
|
|
100
|
-
description="
|
|
99
|
+
title="v2.4.0 released"
|
|
100
|
+
description="Published to npm and Storybook"
|
|
101
101
|
time="Jun 28"
|
|
102
102
|
/>
|
|
103
103
|
</Timeline>
|
|
@@ -111,26 +111,26 @@ export const WithDescriptions: Story = {
|
|
|
111
111
|
<Timeline>
|
|
112
112
|
<TimelineItem
|
|
113
113
|
status="complete"
|
|
114
|
-
title="
|
|
115
|
-
description="
|
|
114
|
+
title="Release branch cut"
|
|
115
|
+
description="release/2.4.0 branched from main. Changelog drafted and shared with the team."
|
|
116
116
|
time="Jun 20, 9:00 AM"
|
|
117
117
|
/>
|
|
118
118
|
<TimelineItem
|
|
119
119
|
status="complete"
|
|
120
|
-
title="
|
|
121
|
-
description="
|
|
120
|
+
title="Tokens synced from Figma"
|
|
121
|
+
description="142 variables pulled in via Tokens Studio."
|
|
122
122
|
time="Jun 21, 4:15 PM"
|
|
123
123
|
/>
|
|
124
124
|
<TimelineItem
|
|
125
125
|
status="active"
|
|
126
|
-
title="
|
|
127
|
-
description="
|
|
126
|
+
title="Accessibility audit in progress"
|
|
127
|
+
description="12 of 18 components reviewed. Full report expected Jun 26."
|
|
128
128
|
time="Jun 25"
|
|
129
129
|
/>
|
|
130
130
|
<TimelineItem
|
|
131
131
|
status="pending"
|
|
132
|
-
title="
|
|
133
|
-
description="
|
|
132
|
+
title="Storybook publish opens"
|
|
133
|
+
description="Docs deploy goes live about 30 minutes after the release tag lands."
|
|
134
134
|
time="Jun 28, 7:30 AM"
|
|
135
135
|
/>
|
|
136
136
|
</Timeline>
|
|
@@ -142,20 +142,20 @@ export const WithCustomContent: Story = {
|
|
|
142
142
|
render: () => (
|
|
143
143
|
<div className="w-80">
|
|
144
144
|
<Timeline>
|
|
145
|
-
<TimelineItem status="complete" title="
|
|
145
|
+
<TimelineItem status="complete" title="Design review scheduled">
|
|
146
146
|
<div className="space-y-0.5">
|
|
147
|
-
<p className="text-sm text-muted-foreground">Tue/Thu
|
|
148
|
-
<p className="text-sm text-muted-foreground">
|
|
147
|
+
<p className="text-sm text-muted-foreground">Tue/Thu 10:00–11:00 AM</p>
|
|
148
|
+
<p className="text-sm text-muted-foreground">Figma file · Jordan Reeves</p>
|
|
149
149
|
</div>
|
|
150
150
|
</TimelineItem>
|
|
151
|
-
<TimelineItem status="active" title="
|
|
151
|
+
<TimelineItem status="active" title="Component triage">
|
|
152
152
|
<p className="text-sm text-muted-foreground">
|
|
153
|
-
14 of 16
|
|
153
|
+
14 of 16 components confirmed. 2 pending token sign-off.
|
|
154
154
|
</p>
|
|
155
155
|
</TimelineItem>
|
|
156
|
-
<TimelineItem status="pending" title="
|
|
156
|
+
<TimelineItem status="pending" title="v2.4.0 kickoff">
|
|
157
157
|
<p className="text-sm text-muted-foreground">
|
|
158
|
-
All
|
|
158
|
+
All contributors + reviewers invited. Release window confirmed.
|
|
159
159
|
</p>
|
|
160
160
|
</TimelineItem>
|
|
161
161
|
</Timeline>
|
|
@@ -169,8 +169,8 @@ export const SingleItem: Story = {
|
|
|
169
169
|
<Timeline>
|
|
170
170
|
<TimelineItem
|
|
171
171
|
status="active"
|
|
172
|
-
title="
|
|
173
|
-
description="
|
|
172
|
+
title="Contributions open"
|
|
173
|
+
description="v2.5.0 milestone is accepting proposals. First come, first served."
|
|
174
174
|
time="Jun 25, 2026"
|
|
175
175
|
/>
|
|
176
176
|
</Timeline>
|
|
@@ -185,28 +185,28 @@ export const ActivityFeed: Story = {
|
|
|
185
185
|
<TimelineItem
|
|
186
186
|
status="complete"
|
|
187
187
|
icon={<FlameIcon className="size-3" strokeWidth={1.5} aria-hidden />}
|
|
188
|
-
title="
|
|
189
|
-
description="
|
|
188
|
+
title="Bundle size dropped"
|
|
189
|
+
description="@bads/core · 48.2kb (prev: 51.0kb)"
|
|
190
190
|
time="2 hours ago"
|
|
191
191
|
/>
|
|
192
192
|
<TimelineItem
|
|
193
193
|
status="complete"
|
|
194
194
|
icon={<CalendarIcon className="size-3" strokeWidth={1.5} aria-hidden />}
|
|
195
|
-
title="
|
|
196
|
-
description="
|
|
195
|
+
title="Design review logged"
|
|
196
|
+
description="18 components · 6 contributors"
|
|
197
197
|
time="Yesterday"
|
|
198
198
|
/>
|
|
199
199
|
<TimelineItem
|
|
200
200
|
status="complete"
|
|
201
201
|
icon={<AlertCircleIcon className="size-3" strokeWidth={1.5} aria-hidden />}
|
|
202
|
-
title="
|
|
203
|
-
description="
|
|
202
|
+
title="Deprecation notice"
|
|
203
|
+
description="LegacyButton removed in v3.0"
|
|
204
204
|
time="Jun 24"
|
|
205
205
|
/>
|
|
206
206
|
<TimelineItem
|
|
207
207
|
status="complete"
|
|
208
|
-
title="
|
|
209
|
-
description="
|
|
208
|
+
title="Roadmap published"
|
|
209
|
+
description="9 milestones · 5 shipped, 4 planned"
|
|
210
210
|
time="Jun 20"
|
|
211
211
|
/>
|
|
212
212
|
</Timeline>
|
|
@@ -214,47 +214,47 @@ export const ActivityFeed: Story = {
|
|
|
214
214
|
),
|
|
215
215
|
};
|
|
216
216
|
|
|
217
|
-
// Realistic use:
|
|
217
|
+
// Realistic use: BADS Design System, v2.4.0 release journey
|
|
218
218
|
export const RealisticUse: Story = {
|
|
219
219
|
render: () => (
|
|
220
220
|
<div className="w-96 rounded-lg border border-border bg-card p-5">
|
|
221
221
|
<div className="mb-4 space-y-1">
|
|
222
|
-
<p className="text-sm font-semibold">
|
|
223
|
-
<p className="text-xs text-muted-foreground">
|
|
222
|
+
<p className="text-sm font-semibold">core@2.4.0 · Release</p>
|
|
223
|
+
<p className="text-xs text-muted-foreground">BADS Design System</p>
|
|
224
224
|
</div>
|
|
225
225
|
<Timeline>
|
|
226
226
|
<TimelineItem
|
|
227
227
|
status="complete"
|
|
228
228
|
icon={<UserCheckIcon className="size-3" strokeWidth={1.5} aria-hidden />}
|
|
229
|
-
title="
|
|
230
|
-
description="
|
|
229
|
+
title="Release kicked off"
|
|
230
|
+
description="Owned by Maya Chen · release/2.4.0"
|
|
231
231
|
time="Jun 20, 9:00 AM"
|
|
232
232
|
/>
|
|
233
233
|
<TimelineItem
|
|
234
234
|
status="complete"
|
|
235
235
|
icon={<CreditCardIcon className="size-3" strokeWidth={1.5} aria-hidden />}
|
|
236
|
-
title="
|
|
237
|
-
description="
|
|
236
|
+
title="Chromatic plan renewed"
|
|
237
|
+
description="500 visual snapshots per month"
|
|
238
238
|
time="Jun 21, 11:30 AM"
|
|
239
239
|
/>
|
|
240
240
|
<TimelineItem
|
|
241
241
|
status="complete"
|
|
242
242
|
icon={<ClipboardCheckIcon className="size-3" strokeWidth={1.5} aria-hidden />}
|
|
243
|
-
title="
|
|
244
|
-
description="
|
|
243
|
+
title="Accessibility audit passed"
|
|
244
|
+
description="18 components reviewed, all AAA"
|
|
245
245
|
time="Jun 22, 3:15 PM"
|
|
246
246
|
/>
|
|
247
247
|
<TimelineItem
|
|
248
248
|
status="active"
|
|
249
|
-
title="
|
|
250
|
-
description="
|
|
249
|
+
title="Storybook deploy pending"
|
|
250
|
+
description="Docs go live once the tag lands. Expected Jun 26."
|
|
251
251
|
time="Jun 25 (today)"
|
|
252
252
|
/>
|
|
253
253
|
<TimelineItem
|
|
254
254
|
status="pending"
|
|
255
255
|
icon={<TrophyIcon className="size-3" strokeWidth={1.5} aria-hidden />}
|
|
256
|
-
title="
|
|
257
|
-
description="
|
|
256
|
+
title="v2.4.0 released"
|
|
257
|
+
description="Published to npm · changelog live"
|
|
258
258
|
time="Jun 28, 2026"
|
|
259
259
|
/>
|
|
260
260
|
</Timeline>
|