@jetbrains/ring-ui 7.0.9 → 7.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -11,6 +11,9 @@ export interface ButtonBaseProps {
|
|
|
11
11
|
loader?: boolean | null | undefined;
|
|
12
12
|
primary?: boolean | null | undefined;
|
|
13
13
|
short?: boolean | null | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated Use inline instead
|
|
16
|
+
*/
|
|
14
17
|
text?: boolean | null | undefined;
|
|
15
18
|
inline?: boolean | null | undefined;
|
|
16
19
|
dropdown?: boolean | null | undefined;
|
|
@@ -160,7 +160,7 @@ export default class DatePicker extends PureComponent {
|
|
|
160
160
|
});
|
|
161
161
|
return (<Dropdown className={classes} disabled={this.props.disabled} data-test="ring-date-picker" anchor={inline ? (<Link data-test-ring-dropdown-anchor className={styles.anchor} disabled={this.props.disabled ?? false} pseudo>
|
|
162
162
|
{this.getAnchorText()}
|
|
163
|
-
</Link>) : (<Button data-test-ring-dropdown-anchor className={styles.anchor}
|
|
163
|
+
</Link>) : (<Button data-test-ring-dropdown-anchor className={styles.anchor} inline={false} disabled={this.props.disabled ?? false} {...this.props.buttonAttributes}>
|
|
164
164
|
{anchorContent}
|
|
165
165
|
</Button>)} {...dropdownProps}>
|
|
166
166
|
<PopupComponent className={popupClassName} popupRef={this.popupRef} onClear={clear ? this.clear : null} datePopupProps={{
|
|
@@ -111,7 +111,7 @@ export default class Message extends Component {
|
|
|
111
111
|
{(onClose || buttonProps) && (<Button className={styles.gotIt} onClick={onClose} primary {...buttonProps}>
|
|
112
112
|
{translations?.gotIt ?? translate('gotIt')}
|
|
113
113
|
</Button>)}
|
|
114
|
-
{onDismiss && (<Button onClick={onDismiss}
|
|
114
|
+
{onDismiss && (<Button onClick={onDismiss} inline>
|
|
115
115
|
{translations?.dismiss ?? translate('dismiss')}
|
|
116
116
|
</Button>)}
|
|
117
117
|
</ThemeProvider>
|
|
@@ -411,7 +411,7 @@ export default class Select extends Component {
|
|
|
411
411
|
separator: reset.separator,
|
|
412
412
|
key: reset.label,
|
|
413
413
|
rgItemType: List.ListProps.Type.CUSTOM,
|
|
414
|
-
template: (<Button
|
|
414
|
+
template: (<Button inline className={styles.button} data-test="ring-select-reset-tags-button" height={ControlsHeight.S}>
|
|
415
415
|
{reset.label}
|
|
416
416
|
</Button>),
|
|
417
417
|
glyph: reset.glyph,
|
|
@@ -486,7 +486,7 @@ export default class Select extends Component {
|
|
|
486
486
|
[styles.toolbar]: Boolean(this.state.addButton || renderBottomToolbar),
|
|
487
487
|
})} data-test="ring-select-toolbar">
|
|
488
488
|
{renderBottomToolbar && renderBottomToolbar()}
|
|
489
|
-
{this.state.addButton && (<Button
|
|
489
|
+
{this.state.addButton && (<Button inline delayed={delayed} className={classNames(styles.button, styles.buttonSpaced)} onClick={this.addHandler} data-test="ring-select-toolbar-button">
|
|
490
490
|
{prefix ? `${prefix} ${label}` : label}
|
|
491
491
|
</Button>)}
|
|
492
492
|
{hint && <List.ListHint label={hint} data-test="ring-select-toolbar-hint"/>}
|
|
@@ -259,7 +259,7 @@ export default class SelectPopup extends PureComponent {
|
|
|
259
259
|
const multiple = this.props.multiple;
|
|
260
260
|
const activeFilters = this.props.data.filter(item => !item.disabled);
|
|
261
261
|
return (Array.isArray(this.props.selected) && (<div className={styles.selectAll}>
|
|
262
|
-
{activeFilters.length === 0 ? (<span />) : (<Button
|
|
262
|
+
{activeFilters.length === 0 ? (<span />) : (<Button inline onClick={this.handleSelectAll}>
|
|
263
263
|
{activeFilters.length !== this.props.selected.length
|
|
264
264
|
? multiple.selectAllLabel || 'Select all'
|
|
265
265
|
: multiple.deselectAllLabel || 'Deselect all'}
|