Skip to content

Commit

Permalink
docs: Update old references from USWDS 2.0 to USWDS 3.0 (#2317)
Browse files Browse the repository at this point in the history
Co-authored-by: John Gedeon <[email protected]>
  • Loading branch information
jcbcapps and gidjin authored Apr 3, 2023
1 parent 445f67e commit 6232c5c
Show file tree
Hide file tree
Showing 63 changed files with 77 additions and 74 deletions.
2 changes: 1 addition & 1 deletion src/components/Accordion/Accordion.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default {
docs: {
description: {
component: `
### USWDS 2.0 Accordion component
### USWDS 3.0 Accordion component
Source: https://designsystem.digital.gov/components/accordion/
`,
Expand Down
2 changes: 1 addition & 1 deletion src/components/Alert/Alert.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default {
docs: {
description: {
component: `
### USWDS 2.0 Alert component
### USWDS 3.0 Alert component
Source: https://designsystem.digital.gov/components/alert/
`,
Expand Down
2 changes: 1 addition & 1 deletion src/components/Button/Button.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default {
docs: {
description: {
component: `
### USWDS 2.0 Button component
### USWDS 3.0 Button component
Source: https://designsystem.digital.gov/components/button/
`,
Expand Down
2 changes: 1 addition & 1 deletion src/components/ButtonGroup/ButtonGroup.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default {
docs: {
description: {
component: `
### USWDS 2.0 ButtonGroup component
### USWDS 3.0 ButtonGroup component
Source: https://designsystem.digital.gov/components/button-groups/
`,
Expand Down
2 changes: 1 addition & 1 deletion src/components/Collection/Collection.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default {
docs: {
description: {
component: `
### USWDS 2.10.0 Collection component
### USWDS 3.0 Collection component
`,
},
},
Expand Down
2 changes: 1 addition & 1 deletion src/components/Footer/Address/Address.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default {
docs: {
description: {
component: `
Display address items (most likely links or simple text) in a row, wrapped in address tag. Used in USWDS 2.0 Footer component.
Display address items (most likely links or simple text) in a row, wrapped in address tag. Used in USWDS 3.0 Footer component.
Source: https://designsystem.digital.gov/components/footer
`,
Expand Down
2 changes: 1 addition & 1 deletion src/components/Footer/Footer/Footer.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default {
docs: {
description: {
component: `
### USWDS 2.0 Footer component
### USWDS 3.0 Footer component
Source: https://designsystem.digital.gov/components/footer
`,
Expand Down
2 changes: 1 addition & 1 deletion src/components/Footer/FooterNav/FooterNav.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default {
docs: {
description: {
component: `
Display single list of nav items, or grouped nav items in an extended nav. Used in USWDS 2.0 Footer component.
Display single list of nav items, or grouped nav items in an extended nav. Used in USWDS 3.0 Footer component.
Source: https://designsystem.digital.gov/components/footer
`,
Expand Down
2 changes: 1 addition & 1 deletion src/components/Footer/Logo/Logo.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default {
docs: {
description: {
component: `
Display logo image with optional heading. Used in USWDS 2.0 Footer component.
Display logo image with optional heading. Used in USWDS 3.0 Footer component.
Source: https://designsystem.digital.gov/components/footer
`,
Expand Down
2 changes: 1 addition & 1 deletion src/components/Footer/SocialLinks/SocialLinks.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default {
docs: {
description: {
component: `
Display social links in styled row. Used in USWDS 2.0 Footer component.
Display social links in styled row. Used in USWDS 3.0 Footer component.
Source: https://designsystem.digital.gov/components/footer
`,
Expand Down
3 changes: 2 additions & 1 deletion src/components/Icon/Icon.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ export default {
docs: {
description: {
component: `
###USWDS 2.0 Icon component
###USWDS 3.0 Icon component
Source: https://designsystem.digital.gov/components/icon/
`,
},
Expand Down
2 changes: 1 addition & 1 deletion src/components/Icon/Icons.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default {
docs: {
description: {
component: `
###USWDS 2.0 Icon component
###USWDS 3.0 Icon component
Source: https://designsystem.digital.gov/components/icon/
`,
},
Expand Down
2 changes: 1 addition & 1 deletion src/components/IconList/IconList.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default {
docs: {
description: {
component: `
###USWDS 2.0 Icon list component
###USWDS 3.0 Icon list component
Source: https://designsystem.digital.gov/components/icon-list/
`,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default {
docs: {
description: {
component: `
### USWDS 2.0 Identifier component
### USWDS 3.0 Identifier component
Source: https://designsystem.digital.gov/components/identifier/
`,
Expand Down
2 changes: 1 addition & 1 deletion src/components/Modal/Modal.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default {
docs: {
description: {
component: `
### USWDS 2.0 Modal component
### USWDS 3.0 Modal component
Source: http://designsystem.digital.gov/components/modal
Expand Down
2 changes: 1 addition & 1 deletion src/components/Modal/OpenModal.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default {
docs: {
description: {
component: `
### USWDS 2.0 Modal component
### USWDS 3.0 Modal component
Source: http://designsystem.digital.gov/components/modal
`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default {
docs: {
description: {
component: `
### USWDS 2.0 ProcessList component
### USWDS 3.0 ProcessList component
Source: https://designsystem.digital.gov/components/process-list
`,
Expand Down
2 changes: 1 addition & 1 deletion src/components/Search/Search/Search.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default {
docs: {
description: {
component: `
### USWDS 2.0 Search component
### USWDS 3.0 Search component
Source: https://designsystem.digital.gov/components/search/
`,
Expand Down
6 changes: 2 additions & 4 deletions src/components/Search/SearchButton/SearchButton.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default {
docs: {
description: {
component: `
### USWDS 2.0 Search component
### USWDS 3.0 Search component
Source: https://designsystem.digital.gov/components/search/
`,
Expand All @@ -21,9 +21,7 @@ const sampleLocalization = {
buttonText: 'Buscar',
}

export const defaultSearchButton = (): React.ReactElement => (
<SearchButton />
)
export const defaultSearchButton = (): React.ReactElement => <SearchButton />

export const bigSearchButton = (): React.ReactElement => (
<SearchButton size="big" />
Expand Down
7 changes: 3 additions & 4 deletions src/components/Search/SearchField/SearchField.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default {
docs: {
description: {
component: `
### USWDS 2.0 Search Field component
### USWDS 3.0 Search Field component
Source: https://designsystem.digital.gov/components/search/
`,
Expand All @@ -17,11 +17,10 @@ Source: https://designsystem.digital.gov/components/search/
},
}


export const defaultSearchField = (): React.ReactElement => (
<SearchField placeholder='Search...' />
<SearchField placeholder="Search..." />
)

export const bigSearchField = (): React.ReactElement => (
<SearchField placeholder='Type something here...' isBig />
<SearchField placeholder="Type something here..." isBig />
)
2 changes: 1 addition & 1 deletion src/components/SiteAlert/SiteAlert.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default {
docs: {
description: {
component: `
### USWDS 2.0 SiteAlert component
### USWDS 3.0 SiteAlert component
Source: http://designsystem.digital.gov/components/site-alert
`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default {
docs: {
description: {
component: `
### USWDS 2.0 SummaryBox component
### USWDS 3.0 SummaryBox component
Source: https://designsystem.digital.gov/components/summary-box
`,
Expand Down
2 changes: 1 addition & 1 deletion src/components/Table/Table.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default {
docs: {
description: {
component: `
### USWDS 2.0 Table component
### USWDS 3.0 Table component
Source: https://designsystem.digital.gov/components/table/
`,
Expand Down
2 changes: 1 addition & 1 deletion src/components/Table/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import classnames from 'classnames'

import styles from './Table.module.css'

interface TableProps {
type TableProps = {
bordered?: boolean
caption?: React.ReactNode
children: React.ReactNode
Expand Down
2 changes: 1 addition & 1 deletion src/components/Tag/Tag.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default {
docs: {
description: {
component: `
### USWDS 2.0 Tag component
### USWDS 3.0 Tag component
Source: https://designsystem.digital.gov/components/tag/
`,
Expand Down
2 changes: 1 addition & 1 deletion src/components/Tooltip/Tooltip.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default {
docs: {
description: {
component: `
### USWDS 2.0 Tooltip component
### USWDS 3.0 Tooltip component
Source: https://designsystem.digital.gov/components/tooltip/
`,
Expand Down
2 changes: 1 addition & 1 deletion src/components/banner/CustomBanner.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default {
docs: {
description: {
component: `
### USWDS 2.0 Banner component
### USWDS 3.0 Banner component
Source: https://designsystem.digital.gov/components/banner/
`,
Expand Down
2 changes: 1 addition & 1 deletion src/components/banner/GovBanner/GovBanner.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default {
docs: {
description: {
component: `
### USWDS 2.0 Banner component
### USWDS 3.0 Banner component
Source: https://designsystem.digital.gov/components/banner/
`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default {
docs: {
description: {
component: `
### USWDS 2.0 Breadcrumb component
### USWDS 3.0 Breadcrumb component
Provide secondary navigation to help users understand where they are in a website.
Expand Down
2 changes: 1 addition & 1 deletion src/components/card/Card.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default {
docs: {
description: {
component: `
### USWDS 2.0 Card components
### USWDS 3.0 Card components
Source: https://designsystem.digital.gov/components/card/
`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default {
docs: {
description: {
component: `
### USWDS 2.0 Character count component
### USWDS 3.0 Character count component
Source: https://designsystem.digital.gov/components/character-count
`,
Expand Down
2 changes: 1 addition & 1 deletion src/components/forms/Checkbox/Checkbox.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default {
docs: {
description: {
component: `
### USWDS 2.0 Checkbox component
### USWDS 3.0 Checkbox component
Source: https://designsystem.digital.gov/components/checkbox
`,
Expand Down
2 changes: 1 addition & 1 deletion src/components/forms/ComboBox/ComboBox.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default {
docs: {
description: {
component: `
### USWDS 2.0 ComboBox component
### USWDS 3.0 ComboBox component
Source: https://designsystem.digital.gov/components/combo-box
`,
Expand Down
4 changes: 2 additions & 2 deletions src/components/forms/DateInput/DateInput.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ export default {
docs: {
description: {
component: `
### USWDS 2.0 DateInput component
### USWDS 3.0 DateInput component
Source: https://designsystem.digital.gov/components/date-input
Source: https://designsystem.digital.gov/components/text-input/
`,
},
},
Expand Down
2 changes: 1 addition & 1 deletion src/components/forms/DatePicker/DatePicker.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default {
docs: {
description: {
component: `
### USWDS 2.0 DatePicker component
### USWDS 3.0 DatePicker component
Source: https://designsystem.digital.gov/components/date-picker
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default {
docs: {
description: {
component: `
### USWDS 2.0 Date Range Picker component
### USWDS 3.0 Date Range Picker component
Source: https://designsystem.digital.gov/components/date-range-picker
`,
},
Expand Down
4 changes: 2 additions & 2 deletions src/components/forms/Dropdown/Dropdown.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ export default {
docs: {
description: {
component: `
### USWDS 2.0 Dropdown component
### USWDS 3.0 Dropdown component
Source: https://designsystem.digital.gov/components/dropdown
Source: https://designsystem.digital.gov/components/select/
`,
},
},
Expand Down
2 changes: 1 addition & 1 deletion src/components/forms/ErrorMessage/ErrorMessage.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default {
docs: {
description: {
component: `
### USWDS 2.0 ErrorMessage component
### USWDS 3.0 ErrorMessage component
Source: https://designsystem.digital.gov/components/form-controls/
`,
Expand Down
2 changes: 1 addition & 1 deletion src/components/forms/Fieldset/Fieldset.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default {
docs: {
description: {
component: `
### USWDS 2.0 Fieldset component
### USWDS 3.0 Fieldset component
Source: https://designsystem.digital.gov/components/form-controls/
`,
Expand Down
2 changes: 1 addition & 1 deletion src/components/forms/FileInput/FileInput.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default {
docs: {
description: {
component: `
### USWDS 2.0 FileInput component
### USWDS 3.0 FileInput component
Source: https://designsystem.digital.gov/components/file-input
`,
},
Expand Down
Loading

0 comments on commit 6232c5c

Please sign in to comment.