-
Notifications
You must be signed in to change notification settings - Fork 5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Component library adding global index and other housekeeping (#16441)
* Adding global index.js file * Removing style prop from button base * Fixing comment on generate-icon-names.js file * Re-ordering sass imports to atomic structure * Updating component paths code examples of MDX docs
- Loading branch information
1 parent
a5b70c3
commit 23b412c
Showing
14 changed files
with
93 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 13 additions & 6 deletions
19
ui/components/component-library/component-library-components.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,28 @@ | ||
/** Please import your files in alphabetical order **/ | ||
/** | ||
* Please import your styles in order of atomicity. | ||
* The most atomic styles should be imported first. | ||
* This will help improve specificity and reduce the chance of | ||
* unintended overrides. | ||
**/ | ||
// Atoms | ||
@import 'text/text'; | ||
@import 'icon/icon'; | ||
@import 'label/label'; | ||
@import 'tag/tag'; | ||
@import 'base-avatar/base-avatar'; | ||
@import 'avatar-account/avatar-account'; | ||
@import 'avatar-favicon/avatar-favicon'; | ||
@import 'avatar-network/avatar-network'; | ||
@import 'avatar-token/avatar-token'; | ||
@import 'avatar-with-badge/avatar-with-badge'; | ||
@import 'base-avatar/base-avatar'; | ||
@import 'button-base/button-base'; | ||
@import 'button-icon/button-icon'; | ||
@import 'button-link/button-link'; | ||
@import 'button-primary/button-primary'; | ||
@import 'button-secondary/button-secondary'; | ||
@import 'icon/icon'; | ||
@import 'label/label'; | ||
// Molecules | ||
@import 'picker-network/picker-network'; | ||
@import 'tag/tag'; | ||
@import 'tag-url/tag-url'; | ||
@import 'text/text'; | ||
@import 'text-field/text-field'; | ||
@import 'text-field-base/text-field-base'; | ||
@import 'text-field-search/text-field-search'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
export { AvatarAccount } from './avatar-account'; | ||
export { AvatarFavicon } from './avatar-favicon'; | ||
export { AvatarNetwork } from './avatar-network'; | ||
export { AvatarToken } from './avatar-token'; | ||
export { AvatarWithBadge } from './avatar-with-badge'; | ||
export { BaseAvatar } from './base-avatar'; | ||
export { Button } from './button'; | ||
export { ButtonBase } from './button-base'; | ||
export { ButtonIcon } from './button-icon'; | ||
export { ButtonLink } from './button-link'; | ||
export { ButtonPrimary } from './button-primary'; | ||
export { ButtonSecondary } from './button-secondary'; | ||
export { HelpText } from './help-text'; | ||
export { Icon, ICON_NAMES } from './icon'; | ||
export { Label } from './label'; | ||
export { PickerNetwork } from './picker-network'; | ||
export { Tag } from './tag'; | ||
export { TagUrl } from './tag-url'; | ||
export { Text } from './text'; | ||
export { TextField } from './text-field'; | ||
export { | ||
TextFieldBase, | ||
TEXT_FIELD_BASE_SIZES, | ||
TEXT_FIELD_BASE_TYPES, | ||
} from './text-field-base'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.