Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
[styles.done]: this.props.successColor &&
(this.props.valueNow / this.props.valueMax >= 1)
}
const {
formatDisplayedValue,
formatValueText,
valueNow,
valueMax,
label
} = this.props
const valueText = formatValueText(valueNow, valueMax)
const value = (typeof formatDisplayedValue === 'function') && formatDisplayedValue(valueNow, valueMax)
const passthroughProps = View.omitViewProps(
omitProps(this.props, ProgressBar.propTypes, ['animateOnMount']),
ProgressBar
)
/* eslint-disable jsx-a11y/no-redundant-roles, jsx-a11y/no-noninteractive-element-to-interactive-role */
return (
display,
elementRef,
focused,
href,
margin,
onClick,
role,
shape,
className, // eslint-disable-line react/prop-types
to, // eslint-disable-line react/prop-types
width,
tabIndex,
...props
} = this.props
const passthroughProps = View.omitViewProps(
omitProps(props, FocusableView.propTypes),
FocusableView
)
return (
render () {
// eslint-disable-next-line react/prop-types
const { margin, elementRef, layout, caption, children, hover, mode } = this.props
const isStacked = layout === 'stacked' || mode === 'stacked'
const headers = isStacked ? this.getHeaders() : null
return (
render () {
const { children, hover, isStacked, headers } = this.props
return (
title,
onClick,
margin,
variant
} = this.props
const classes = {
[styles.root]: true,
[styles[variant]]: true,
[styles[size]]: size,
[styles.dismissible]: dismissible,
[styles.button]: onClick,
[styles.disabled]: disabled
}
const passthroughProps = View.omitViewProps(
omitProps(this.props, Tag.propTypes),
Tag
)
return (
render () {
if (!this.props.children) return null
const currentPageIndex = fastFindIndex(
this.props.children,
p => p && p.props && p.props.current
)
const passthroughProps = View.omitViewProps(
omitProps(this.props, Pagination.propTypes),
Pagination
)
return (
render () {
const passthroughProps = View.omitViewProps(
omitProps(this.props, Calendar.propTypes),
Calendar
)
return (
)
render () {
const { children, textAlign, isStacked, header } = this.props
return (
)
}
}
render () {
const passthroughProps = View.omitViewProps(
omitProps(this.props, Media.propTypes),
Media
)
return (
} = this.props
const {
elementType,
isDisabled
} = this
const classes = classnames({
[styles.day]: true,
[styles.outsideMonth]: isOutsideMonth,
[styles.selected]: isSelected,
[styles.today]: isToday && !isSelected,
[styles.disabled]: isDisabled
})
const passthroughProps = View.omitViewProps(
omitProps(props, Day.propTypes),
Day
)
return (