Conversation
3d1f5a1 to
d4e3a24
Compare
9a1d24f to
bc81b50
Compare
Perf comparison
Potential regressions comparing to master
Perf tests with no regressions
Generated by 🚫 dangerJS |
| const { disabled } = this.props | ||
| const checked = !this.state.checked | ||
| const handleClick = (e: React.MouseEvent | React.KeyboardEvent) => { | ||
| const checked = !state.checked |
There was a problem hiding this comment.
nit: move this line in the condition below
|
|
||
| return ( | ||
| <ElementType {...getA11Props('root', { className: classes.root, ...unhandledProps })}> | ||
| {isSvgIcon && callable(maybeIcon.icon)({ classes, rtl: context.rtl, props })} |
There was a problem hiding this comment.
Maybe we should restrict the props sent here too. Not as part of this PR, though
There was a problem hiding this comment.
Agree, let's do it separately. I am even not sure that should pass there something
| const { classes, styles: resolvedStyles } = useStyles(Label.displayName, { | ||
| className: Label.className, | ||
| mapPropsToStyles: () => ({ | ||
| hasActionableIcon: _.has(icon, 'onClick'), |
|
|
||
| <div className=ui-provider__box dir=rtl> | ||
| <span className=ui-text a dir=auto> | ||
| <span dir=auto className=ui-text a> |
There was a problem hiding this comment.
I wonder why these are changed :\
There was a problem hiding this comment.
Small issue, I fixed order of props in Text and reverted this change 👍
miroslavstastny
left a comment
There was a problem hiding this comment.
It scares me that Checkbox does not render but no UTs fail 😟
…ithub.com/stardust-ui/react into chore/move-more-components � Conflicts: � CHANGELOG.md
| export type IconBehaviorProps = { | ||
| /** Alternative text. */ | ||
| alt?: string | ||
| 'aria-label'?: string |
| ...commonPropTypes.createCommon({ | ||
| children: false, | ||
| content: false, | ||
| const iconElement = Icon.create(icon, { |
| const { className, color, icon, size, state, design, styles, variables } = props | ||
| const { classes, styles: resolvedStyles } = useStyles(Status.displayName, { | ||
| className: Status.className, | ||
| mapPropsToStyles: () => ({ |
There was a problem hiding this comment.
Let's update the statusStyles with the new typings
| ReactionGroup?: ReactionGroupProps | ||
| Segment?: SegmentProps | ||
| Slider?: SliderProps | ||
| Slider?: SliderStylesProps |
…ithub.com/stardust-ui/react into chore/move-more-components
BREAKING CHANGES
Only specific props are now passed to component's style functions.
CheckboxcheckeddisabledlabelPositiontoggleIconborderedcircularcolordisablednameoutlinerotatesizexSpacingisFontIconisSvgIconLabelhasActionableIconhasImagecircularcolorimagePositionSliderfluidverticaldisabledStatuscolorsizestateTextatMentioncolorimportanttimestamptruncateddisablederrorsuccesstemporaryalignweightsize