File tree Expand file tree Collapse file tree 9 files changed +30
-278
lines changed
Expand file tree Collapse file tree 9 files changed +30
-278
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ export * from './hidden'
1010export * from './hidden-visually'
1111
1212// alerts, notifications, etc.
13- export * from './alert'
1413export * from './banner'
1514export * from './loading'
1615export * from './notice'
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import * as React from 'react'
22
33import Button from '../../src/components/deprecated-button'
44import Dropdown from '../../src/components/deprecated-dropdown'
5- import { Alert } from '../../src/alert '
5+ import { Banner } from '../../src/banner '
66import { Stack } from '../../src/stack'
77import LinkTo from '@storybook/addon-links/react'
88
@@ -18,10 +18,15 @@ export default {
1818export const DropdownStory = ( ) => (
1919 < section className = "story" >
2020 < Stack as = "section" exceptionallySetClassName = "story" space = "large" >
21- < Alert tone = "critical" >
22- < strong > Deprecated:</ strong > While not a 1:1 replacement, consider using{ ' ' }
23- < LinkTo kind = "design-system-menu" > Menu</ LinkTo > as an alternative
24- </ Alert >
21+ < Banner
22+ tone = "error"
23+ description = {
24+ < >
25+ < strong > Deprecated:</ strong > While not a 1:1 replacement, consider using{ ' ' }
26+ < LinkTo kind = "design-system-menu" > Menu</ LinkTo > as an alternative
27+ </ >
28+ }
29+ />
2530
2631 < Dropdown . Box >
2732 < Dropdown . Trigger >
Original file line number Diff line number Diff line change 11import * as React from 'react'
22
33import Input from '../../src/components/deprecated-input'
4- import { Alert } from '../../src/alert '
4+ import { Banner } from '../../src/banner '
55import './styles/input_story.less'
66import LinkTo from '@storybook/addon-links/react'
77
@@ -20,10 +20,15 @@ export default {
2020export const InputStory = ( ) => (
2121 < section className = "story" >
2222 < div className = "story-info" >
23- < Alert tone = "critical" >
24- < strong > Deprecated:</ strong > Please use{ ' ' }
25- < LinkTo kind = "design-system-textfield" > TextField</ LinkTo > instead
26- </ Alert >
23+ < Banner
24+ tone = "error"
25+ description = {
26+ < >
27+ < strong > Deprecated:</ strong > Please use{ ' ' }
28+ < LinkTo kind = "design-system-textfield" > TextField</ LinkTo > instead
29+ </ >
30+ }
31+ />
2732 < p >
2833 This component is a dumb wrapper around the
2934 < code > <input /></ code > element which justs add a class name to give it is
Original file line number Diff line number Diff line change 11import * as React from 'react'
22
33import Select from '../../src/components/deprecated-select'
4- import { Alert } from '../../src/alert '
4+ import { Banner } from '../../src/banner '
55import { Stack } from '../../src/stack'
66import LinkTo from '@storybook/addon-links/react'
77
@@ -31,10 +31,15 @@ export function SelectStory() {
3131
3232 return (
3333 < Stack as = "section" exceptionallySetClassName = "story" space = "large" >
34- < Alert tone = "critical" >
35- < strong > Deprecated:</ strong > Please use{ ' ' }
36- < LinkTo kind = "design-system-selectfield" > SelectField</ LinkTo > instead
37- </ Alert >
34+ < Banner
35+ tone = "error"
36+ description = {
37+ < >
38+ < strong > Deprecated:</ strong > Please use{ ' ' }
39+ < LinkTo kind = "design-system-selectfield" > SelectField</ LinkTo > instead
40+ </ >
41+ }
42+ />
3843
3944 < Select value = { value } options = { options } onChange = { setValue } />
4045 </ Stack >
You can’t perform that action at this time.
0 commit comments