Skip to content

Commit aff1232

Browse files
committed
chore: fix TS errors in DS package
1 parent 96b1c34 commit aff1232

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+787
-1019
lines changed

.changeset/famous-trainers-pretend.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@strapi/design-system": major
3+
---
4+
5+
chore!: default color for Typography is currentColor

docs/.storybook/preview.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ const preview: Preview = {
136136
'Primitives',
137137
['Overview', '*'],
138138
'Inputs',
139+
'Components',
139140
'Design System',
140141
['Technical Components', 'Components'],
141142
'Utilities',

docs/public/stories/strapi-img.png

2.47 KB
Loading

docs/stories/Accordion.stories.tsx

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

docs/stories/MainNav.stories.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@ export const Base = {
3131
return (
3232
<Box background="neutral100" height="100vh" paddingLeft={10}>
3333
<MainNav condensed={condensed}>
34-
<NavBrand workplace="Workplace" title="Strapi Dashboard" icon={<img src={'/strapi-img.png'} alt="" />} />
34+
<NavBrand
35+
workplace="Workplace"
36+
title="Strapi Dashboard"
37+
icon={<img src={'/stories/strapi-img.png'} alt="" />}
38+
/>
3539
<Divider />
3640
<NavSections>
3741
<NavLink href="/cm" icon={<Feather />} className="active">

docs/stories/Accordion.mdx renamed to docs/stories/components/Accordion.mdx

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -36,19 +36,6 @@ import { Accordion, AccordionToggle, AccordionContent, AccordionGroup } from '@s
3636

3737
<Canvas of={AccordionStories.Group} />
3838

39-
## Accordion keyboard navigable
40-
41-
The accordion component has two main states: collapsed and expanded. By default it has a collapsed state. If
42-
Call-to-actions are required, use them on the right side and use chevron icon on the left one.
43-
44-
<Canvas of={AccordionStories.Keyboard} />
45-
46-
## Accordion expanded
47-
48-
The Accordion component can also be open by default using the parameter `expanded={true}`.
49-
50-
<Canvas of={AccordionStories.Expanded} />
51-
5239
## Accordion props
5340

5441
<ArgTypes of={Accordion} />

0 commit comments

Comments
 (0)