Skip to content

Commit c6eb5c7

Browse files
authored
fix: diasbled flags (#5787)
1 parent ad4a930 commit c6eb5c7

File tree

22 files changed

+317
-94
lines changed

22 files changed

+317
-94
lines changed

.changeset/dry-groups-fly.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@ultraviolet/icons": patch
3+
---
4+
5+
`Flags`: disabled flags

packages/icons/src/components/Flags/Icon.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export type IconProps = {
88
size?: keyof typeof SIZES
99
className?: string
1010
children: ReactNode
11+
disabled?: boolean
1112
}
1213

1314
/**

packages/icons/src/components/Flags/__generated__/FranceFlag.tsx

Lines changed: 45 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/icons/src/components/Flags/__generated__/ItalyFlag.tsx

Lines changed: 45 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/icons/src/components/Flags/__generated__/NetherlandsFlag.tsx

Lines changed: 45 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/icons/src/components/Flags/__generated__/PolandFlag.tsx

Lines changed: 37 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/icons/src/components/Flags/__generated__/SwedenFlag.tsx

Lines changed: 47 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import type { StoryFn } from '@storybook/react-vite'
2+
import { FranceFlag } from '../__generated__'
3+
4+
export const Disabled: StoryFn<typeof FranceFlag> = props => (
5+
<FranceFlag {...props} disabled />
6+
)

packages/icons/src/components/Flags/__stories__/List.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,6 @@ export const List: StoryFn = props => (
2727
)
2828

2929
List.args = {
30+
disabled: false,
3031
size: 'large',
3132
}

packages/icons/src/components/Flags/__stories__/Playground.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@ import { Template } from './Template.stories'
22

33
export const Playground = Template.bind({})
44
Playground.args = {
5+
disabled: false,
56
size: 'large',
67
}

0 commit comments

Comments
 (0)