@jetbrains/ring-ui 5.0.91 → 5.0.92
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.
|
@@ -69,8 +69,6 @@
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
.huge {
|
|
72
|
-
--ring-input-padding-block: 5px;
|
|
73
|
-
|
|
74
72
|
max-height: calc(var(--ring-input-padding-inline) * 4);
|
|
75
73
|
|
|
76
74
|
padding: 0 0 0 var(--ring-input-padding-inline);
|
|
@@ -79,15 +77,9 @@
|
|
|
79
77
|
padding-right: var(--ring-input-padding-inline);
|
|
80
78
|
}
|
|
81
79
|
|
|
82
|
-
& .placeholder {
|
|
83
|
-
padding-left: 0;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
80
|
@nest [dir=rtl] & {
|
|
87
81
|
padding: 0 var(--ring-input-padding-inline) 0 0;
|
|
88
82
|
|
|
89
|
-
border: 1px solid var(--ring-borders-color);
|
|
90
|
-
|
|
91
83
|
& .actions {
|
|
92
84
|
padding: 0 var(--ring-input-padding-inline);
|
|
93
85
|
}
|
|
@@ -167,7 +159,7 @@
|
|
|
167
159
|
color: var(--ring-disabled-color);
|
|
168
160
|
|
|
169
161
|
@nest [dir=rtl] & {
|
|
170
|
-
padding-right: calc(var(--ring-input-padding-inline) * 3
|
|
162
|
+
padding-right: calc(var(--ring-input-padding-inline) * 3 + var(--ring-input-padding-block) * 2);
|
|
171
163
|
|
|
172
164
|
text-align: right;
|
|
173
165
|
}
|
|
@@ -229,6 +221,14 @@
|
|
|
229
221
|
|
|
230
222
|
border-color: var(--ring-border-hover-color);
|
|
231
223
|
}
|
|
224
|
+
|
|
225
|
+
@nest [dir=rtl] & {
|
|
226
|
+
border-right: 1px solid var(--ring-borders-color);
|
|
227
|
+
border-left: 0;
|
|
228
|
+
border-radius: var(--ring-border-radius);
|
|
229
|
+
border-top-right-radius: 0;
|
|
230
|
+
border-bottom-right-radius: 0;
|
|
231
|
+
}
|
|
232
232
|
}
|
|
233
233
|
|
|
234
234
|
.clear {
|
|
@@ -256,6 +256,10 @@
|
|
|
256
256
|
padding-left: 0;
|
|
257
257
|
|
|
258
258
|
@nest [dir=rtl] & {
|
|
259
|
-
padding-right:
|
|
259
|
+
padding-right: calc(var(--ring-input-padding-block) * 3);
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
|
+
|
|
263
|
+
.loaderActive {
|
|
264
|
+
padding-right: calc(var(--ring-input-padding-inline) - var(--ring-input-padding-block));
|
|
265
|
+
}
|
|
@@ -777,12 +777,11 @@ export default class QueryAssist extends Component {
|
|
|
777
777
|
const inputClasses = classNames(this.props.inputClassName, {
|
|
778
778
|
[`${styles.input} ring-js-shortcuts`]: true,
|
|
779
779
|
[styles.inputGap]: actions.length || this.isRenderingGlassOrLoader() && !glass,
|
|
780
|
-
[styles.inputGap2]: actions.length === 2
|
|
781
|
-
[styles.inputLeftGap]: this.isRenderingGlassOrLoader() && glass
|
|
780
|
+
[styles.inputGap2]: actions.length === 2 // TODO: replace with flex-box layout
|
|
782
781
|
});
|
|
783
782
|
const placeholderStyles = classNames({
|
|
784
783
|
[styles.placeholder]: true,
|
|
785
|
-
[styles.withoutGlass]: !
|
|
784
|
+
[styles.withoutGlass]: !this.isRenderingGlassOrLoader() || (!renderLoader && huge)
|
|
786
785
|
});
|
|
787
786
|
return (<ControlsHeightContext.Provider value={ControlsHeight.M}>
|
|
788
787
|
<div data-test={dataTests('ring-query-assist', dataTest)} className={containerClasses} role="presentation" ref={this.nodeRef}>
|
|
@@ -791,7 +790,8 @@ export default class QueryAssist extends Component {
|
|
|
791
790
|
{renderGlass && !huge && (<Icon glyph={searchIcon} className={styles.icon} title={this.props.translations.searchTitle} ref={this.glassRef} data-test="query-assist-search-icon"/>)}
|
|
792
791
|
|
|
793
792
|
{renderLoader && (<div className={classNames(styles.icon, styles.loader, {
|
|
794
|
-
[styles.loaderOnTheRight]: !glass
|
|
793
|
+
[styles.loaderOnTheRight]: !glass,
|
|
794
|
+
[styles.loaderActive]: renderLoader
|
|
795
795
|
})} ref={this.loaderRef}>
|
|
796
796
|
<LoaderInline />
|
|
797
797
|
</div>)}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import List from '../list/list.js';
|
|
3
3
|
|
|
4
|
-
var modules_da7ab055 = {"unit":"8px","button-shadow":"inset 0 0 0 1px","height":"var(--ring-button-height)","loaderWidth":"64px","overInputZIndex":"2","inputGap":"24px","light":"light_rui_d22e","heightS":"heightS_rui_d22e","heightM":"heightM_rui_d22e","heightL":"heightL_rui_d22e","button":"button_rui_d22e","active":"active_rui_d22e","withIcon":"withIcon_rui_d22e","icon":"icon_rui_d22e","primary":"primary_rui_d22e","loader":"loader_rui_d22e","loaderBackground":"loaderBackground_rui_d22e","danger":"danger_rui_d22e","text":"text_rui_d22e","content":"content_rui_d22e","text-loading":"text-loading_rui_d22e","inline":"inline_rui_d22e","withNormalIcon":"withNormalIcon_rui_d22e","withDangerIcon":"withDangerIcon_rui_d22e","progress":"progress_rui_d22e","delayed":"delayed_rui_d22e","short":"short_rui_d22e","dropdownIcon":"dropdownIcon_rui_d22e","queryAssist":"queryAssist_rui_d22e","error":"error_rui_d22e","queryAssistDisabled":"queryAssistDisabled_rui_d22e","huge":"huge_rui_d22e","actions":"actions_rui_d22e","
|
|
4
|
+
var modules_da7ab055 = {"unit":"8px","button-shadow":"inset 0 0 0 1px","height":"var(--ring-button-height)","loaderWidth":"64px","overInputZIndex":"2","inputGap":"24px","light":"light_rui_d22e","heightS":"heightS_rui_d22e","heightM":"heightM_rui_d22e","heightL":"heightL_rui_d22e","button":"button_rui_d22e","active":"active_rui_d22e","withIcon":"withIcon_rui_d22e","icon":"icon_rui_d22e","primary":"primary_rui_d22e","loader":"loader_rui_d22e","loaderBackground":"loaderBackground_rui_d22e","danger":"danger_rui_d22e","text":"text_rui_d22e","content":"content_rui_d22e","text-loading":"text-loading_rui_d22e","inline":"inline_rui_d22e","withNormalIcon":"withNormalIcon_rui_d22e","withDangerIcon":"withDangerIcon_rui_d22e","progress":"progress_rui_d22e","delayed":"delayed_rui_d22e","short":"short_rui_d22e","dropdownIcon":"dropdownIcon_rui_d22e","queryAssist":"queryAssist_rui_d22e","error":"error_rui_d22e","queryAssistDisabled":"queryAssistDisabled_rui_d22e","huge":"huge_rui_d22e","actions":"actions_rui_d22e","input":"input_rui_d22e","letter-text":"letter-text_rui_d22e","letterDefault":"letterDefault_rui_d22e","letter-field-name":"letter-field-name_rui_d22e","letter-field-value":"letter-field-value_rui_d22e","letter-operator":"letter-operator_rui_d22e","letter-error":"letter-error_rui_d22e","highlight":"highlight_rui_d22e","service":"service_rui_d22e","placeholder":"placeholder_rui_d22e resetButton_rui_8bff","letter":"letter_rui_d22e","rightSearchButton":"rightSearchButton_rui_d22e","clear":"clear_rui_d22e","loaderOnTheRight":"loaderOnTheRight_rui_d22e","withoutGlass":"withoutGlass_rui_d22e","loaderActive":"loaderActive_rui_d22e"};
|
|
5
5
|
|
|
6
6
|
const ICON_ID_LENGTH = 44;
|
|
7
7
|
class QueryAssistSuggestions {
|
|
@@ -776,12 +776,12 @@ class QueryAssist extends Component {
|
|
|
776
776
|
const inputClasses = classNames(this.props.inputClassName, {
|
|
777
777
|
[`${modules_da7ab055.input} ring-js-shortcuts`]: true,
|
|
778
778
|
[modules_da7ab055.inputGap]: actions.length || this.isRenderingGlassOrLoader() && !glass,
|
|
779
|
-
[modules_da7ab055.inputGap2]: actions.length === 2
|
|
780
|
-
[modules_da7ab055.inputLeftGap]: this.isRenderingGlassOrLoader() && glass
|
|
779
|
+
[modules_da7ab055.inputGap2]: actions.length === 2 // TODO: replace with flex-box layout
|
|
781
780
|
});
|
|
781
|
+
|
|
782
782
|
const placeholderStyles = classNames({
|
|
783
783
|
[modules_da7ab055.placeholder]: true,
|
|
784
|
-
[modules_da7ab055.withoutGlass]: !
|
|
784
|
+
[modules_da7ab055.withoutGlass]: !this.isRenderingGlassOrLoader() || !renderLoader && huge
|
|
785
785
|
});
|
|
786
786
|
return /*#__PURE__*/React.createElement(ControlsHeightContext.Provider, {
|
|
787
787
|
value: ControlsHeight.M
|
|
@@ -801,7 +801,8 @@ class QueryAssist extends Component {
|
|
|
801
801
|
"data-test": "query-assist-search-icon"
|
|
802
802
|
}), renderLoader && /*#__PURE__*/React.createElement("div", {
|
|
803
803
|
className: classNames(modules_da7ab055.icon, modules_da7ab055.loader, {
|
|
804
|
-
[modules_da7ab055.loaderOnTheRight]: !glass
|
|
804
|
+
[modules_da7ab055.loaderOnTheRight]: !glass,
|
|
805
|
+
[modules_da7ab055.loaderActive]: renderLoader
|
|
805
806
|
}),
|
|
806
807
|
ref: this.loaderRef
|
|
807
808
|
}, /*#__PURE__*/React.createElement(LoaderInline, null)), /*#__PURE__*/React.createElement(ContentEditable, {
|