-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Component library adding global index and other housekeeping #16441
Changes from all commits
bcb1b0e
ebd2636
8dab133
971cb5c
1f4c26b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -133,10 +133,6 @@ ButtonBase.propTypes = { | |
* Possible values could be 'SIZES.AUTO', 'SIZES.SM'(32px), 'SIZES.MD'(40px), 'SIZES.LG'(48px), | ||
*/ | ||
size: PropTypes.oneOf(Object.values(BUTTON_BASE_SIZES)), | ||
/** | ||
* Addition style properties to apply to the button. | ||
*/ | ||
style: PropTypes.object, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Missed from ButtonBase housekeeping |
||
/** | ||
* ButtonBase accepts all the props from Box | ||
*/ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,27 @@ | ||
/** 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'; |
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'; | ||||||||||||||||||||||||||
Comment on lines
+7
to
+12
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Similar to what you did with TextFieldBase, it would be nice to export the constants as well.
Suggested change
Looks like will need to actually add export of BUTTON_LINK_SIZES, BUTTON_PRIMARY_SIZES, and BUTTON_SECONDARY_SIZES to the index file of their folder. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, I can add any that are already exported from the index. Then we could add all the missing consts as apart of another housekeeping round? Otherwise this PR will just need to be constantly updated and waiting on others? |
||||||||||||||||||||||||||
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'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Corrects path