@rescui/button 0.21.2 → 0.21.4-RUI-239-Allow-collapse-text-inside-button-0fe433a8.0
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.
- package/lib/_virtual/index.css.js +12 -7
- package/lib/_virtual/loading.js +100 -22
- package/lib/button.d.ts +4 -0
- package/lib/button.js +10 -3
- package/lib/button.p.module.css.js +32 -31
- package/lib/index.css +109 -68
- package/lib/index.d.ts +2 -0
- package/package.json +8 -8
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
var styles = {
|
|
2
|
-
"icon": "
|
|
3
|
-
"sizeXS": "
|
|
4
|
-
"sizeS": "
|
|
5
|
-
"sizeM": "
|
|
6
|
-
"sizeL": "
|
|
7
|
-
"light": "
|
|
8
|
-
"dark": "
|
|
2
|
+
"icon": "_icon_1yrim0e_4",
|
|
3
|
+
"sizeXS": "_sizeXS_1yrim0e_14",
|
|
4
|
+
"sizeS": "_sizeS_1yrim0e_18",
|
|
5
|
+
"sizeM": "_sizeM_1yrim0e_22",
|
|
6
|
+
"sizeL": "_sizeL_1yrim0e_26",
|
|
7
|
+
"light": "_light_1yrim0e_30",
|
|
8
|
+
"dark": "_dark_1yrim0e_34",
|
|
9
|
+
"allVariants": "_allVariants_1yrim0e_48",
|
|
10
|
+
"variant16": "_variant16_1yrim0e_53",
|
|
11
|
+
"variant20": "_variant20_1yrim0e_54",
|
|
12
|
+
"variant24": "_variant24_1yrim0e_55",
|
|
13
|
+
"variant28": "_variant28_1yrim0e_58"
|
|
9
14
|
};
|
|
10
15
|
export { styles as default };
|
package/lib/_virtual/loading.js
CHANGED
|
@@ -9,36 +9,114 @@ const sizeStyles = {
|
|
|
9
9
|
"m": styles.sizeM,
|
|
10
10
|
"l": styles.sizeL
|
|
11
11
|
};
|
|
12
|
+
const Size = {
|
|
13
|
+
"xs": "xs",
|
|
14
|
+
"s": "s",
|
|
15
|
+
"m": "m",
|
|
16
|
+
"l": "l"
|
|
17
|
+
};
|
|
18
|
+
const LoadingIcon16 = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement("svg", _extends({
|
|
19
|
+
viewBox: "0 0 16 16"
|
|
20
|
+
}, props, {
|
|
21
|
+
ref: ref
|
|
22
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
23
|
+
d: "M8 3.25a4.75 4.75 0 1 0 4.686 3.968.75.75 0 1 1 1.48-.245q.083.503.084 1.027a6.25 6.25 0 1 1-5.223-6.166.75.75 0 0 1-.245 1.48A5 5 0 0 0 8 3.25",
|
|
24
|
+
style: {
|
|
25
|
+
animation: "rs-icon-rotate 1s linear infinite",
|
|
26
|
+
transformOrigin: "center center"
|
|
27
|
+
}
|
|
28
|
+
})));
|
|
29
|
+
LoadingIcon16.displayName = 'LoadingIcon16';
|
|
30
|
+
const LoadingIcon20 = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement("svg", _extends({
|
|
31
|
+
viewBox: "0 0 20 20"
|
|
32
|
+
}, props, {
|
|
33
|
+
ref: ref
|
|
34
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
35
|
+
d: "M10 4a6 6 0 1 0 5.92 5.012 1 1 0 0 1 1.972-.326Q18 9.329 18 10a8 8 0 1 1-6.686-7.892 1 1 0 0 1-.326 1.973A6 6 0 0 0 10 4",
|
|
36
|
+
style: {
|
|
37
|
+
animation: "rs-icon-rotate 1s linear infinite",
|
|
38
|
+
transformOrigin: "center center"
|
|
39
|
+
}
|
|
40
|
+
})));
|
|
41
|
+
LoadingIcon20.displayName = 'LoadingIcon20';
|
|
42
|
+
const LoadingIcon24 = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement("svg", _extends({
|
|
43
|
+
viewBox: "0 0 24 24"
|
|
44
|
+
}, props, {
|
|
45
|
+
ref: ref
|
|
46
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
47
|
+
d: "M12 6a6 6 0 1 0 5.92 5.012 1.5 1.5 0 0 1 2.959-.49q.12.724.121 1.478a9 9 0 1 1-7.522-8.879 1.5 1.5 0 0 1-.49 2.96Q12.508 6 12 6",
|
|
48
|
+
style: {
|
|
49
|
+
animation: "rs-icon-rotate 1s linear infinite",
|
|
50
|
+
transformOrigin: "center center"
|
|
51
|
+
}
|
|
52
|
+
})));
|
|
53
|
+
LoadingIcon24.displayName = 'LoadingIcon24';
|
|
54
|
+
const LoadingIcon28 = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement("svg", _extends({
|
|
55
|
+
viewBox: "0 0 28 28"
|
|
56
|
+
}, props, {
|
|
57
|
+
ref: ref
|
|
58
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
59
|
+
d: "M14 6.5a7.5 7.5 0 1 0 7.399 6.265 1.5 1.5 0 0 1 2.96-.49q.14.844.141 1.725c0 5.799-4.701 10.5-10.5 10.5S3.5 19.799 3.5 14 8.201 3.5 14 3.5q.813 0 1.595.12a1.5 1.5 0 0 1-.453 2.966A7.6 7.6 0 0 0 14 6.5",
|
|
60
|
+
style: {
|
|
61
|
+
animation: "rs-icon-rotate 1s linear infinite",
|
|
62
|
+
transformOrigin: "center center"
|
|
63
|
+
}
|
|
64
|
+
})));
|
|
65
|
+
LoadingIcon28.displayName = 'LoadingIcon28';
|
|
12
66
|
const LoadingIcon = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
13
67
|
let {
|
|
14
68
|
theme,
|
|
15
|
-
size,
|
|
69
|
+
size: sizeFromProps = "m",
|
|
16
70
|
className,
|
|
71
|
+
style,
|
|
72
|
+
['data-render-all-sizes']: renderAllSizes = false,
|
|
17
73
|
...props
|
|
18
74
|
} = _ref;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
75
|
+
const size = sizeFromProps in Size ? sizeFromProps : "m";
|
|
76
|
+
const mainProps = { ...props,
|
|
77
|
+
className: cn(styles.icon, styles[theme], sizeStyles[size], renderAllSizes && styles.allVariants, className),
|
|
78
|
+
style: renderAllSizes ? {
|
|
79
|
+
'--rs-icon-ar-width': 28,
|
|
80
|
+
'--rs-icon-ar-height': 28,
|
|
81
|
+
...style
|
|
82
|
+
} : style,
|
|
83
|
+
ref
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
if (renderAllSizes) {
|
|
87
|
+
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
88
|
+
viewBox: "0 0 28 28"
|
|
89
|
+
}, mainProps), /*#__PURE__*/React.createElement(LoadingIcon16, {
|
|
90
|
+
className: styles.variant16
|
|
91
|
+
}), /*#__PURE__*/React.createElement(LoadingIcon20, {
|
|
92
|
+
className: styles.variant20
|
|
93
|
+
}), /*#__PURE__*/React.createElement(LoadingIcon24, {
|
|
94
|
+
className: styles.variant24
|
|
95
|
+
}), /*#__PURE__*/React.createElement(LoadingIcon28, {
|
|
96
|
+
className: styles.variant28
|
|
97
|
+
}));
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
if (size === Size['xs']) {
|
|
101
|
+
return /*#__PURE__*/React.createElement(LoadingIcon16, mainProps);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
if (size === Size['s']) {
|
|
105
|
+
return /*#__PURE__*/React.createElement(LoadingIcon20, mainProps);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
if (size === Size['m']) {
|
|
109
|
+
return /*#__PURE__*/React.createElement(LoadingIcon24, mainProps);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
return /*#__PURE__*/React.createElement(LoadingIcon28, mainProps);
|
|
35
113
|
});
|
|
114
|
+
LoadingIcon.displayName = 'LoadingIcon';
|
|
36
115
|
LoadingIcon.propTypes = {
|
|
37
116
|
className: PropTypes.string,
|
|
38
117
|
theme: PropTypes.oneOf(["light", "dark"]),
|
|
39
|
-
size: PropTypes.oneOf(["xs", "s", "m", "l"])
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
size: "m"
|
|
118
|
+
size: PropTypes.oneOf(["xs", "s", "m", "l"]),
|
|
119
|
+
'data-render-all-sizes': PropTypes.bool,
|
|
120
|
+
style: PropTypes.object
|
|
43
121
|
};
|
|
44
|
-
export { LoadingIcon as default };
|
|
122
|
+
export { Size, LoadingIcon as default };
|
package/lib/button.d.ts
CHANGED
|
@@ -35,6 +35,10 @@ declare type ButtonIntrinsicProps = {
|
|
|
35
35
|
* @ignore
|
|
36
36
|
* */
|
|
37
37
|
defaultMultiline?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Trim text by ellipsis when button content is larger than the button itself.
|
|
40
|
+
* */
|
|
41
|
+
truncateWithEllipsis?: boolean;
|
|
38
42
|
tabIndex?: number;
|
|
39
43
|
title?: string;
|
|
40
44
|
/** Button appearance */
|
package/lib/button.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _includesInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/includes";
|
|
2
2
|
import React, { useState, useRef, cloneElement } from 'react';
|
|
3
|
-
import cn from 'classnames';
|
|
4
3
|
import PropTypes from 'prop-types';
|
|
4
|
+
import cn from 'classnames';
|
|
5
5
|
import { useThemeWithUndefined } from '@rescui/ui-contexts';
|
|
6
6
|
import { useResizeObserver } from '@rescui/use-resize-observer';
|
|
7
7
|
import LoadingIcon from './_virtual/loading.js';
|
|
@@ -43,6 +43,7 @@ const Button = /*#__PURE__*/React.forwardRef( // eslint-disable-next-line comple
|
|
|
43
43
|
busy = false,
|
|
44
44
|
allowMultiline = false,
|
|
45
45
|
defaultMultiline = false,
|
|
46
|
+
truncateWithEllipsis = false,
|
|
46
47
|
flat,
|
|
47
48
|
notFocusable,
|
|
48
49
|
highlighted
|
|
@@ -90,11 +91,15 @@ const Button = /*#__PURE__*/React.forwardRef( // eslint-disable-next-line comple
|
|
|
90
91
|
|
|
91
92
|
if ( /*#__PURE__*/React.isValidElement(icon) && busy) {
|
|
92
93
|
iconSlot = /*#__PURE__*/React.createElement(LoadingIcon, {
|
|
93
|
-
className: styles.icon
|
|
94
|
+
className: styles.icon,
|
|
95
|
+
"data-render-all-sizes": true
|
|
94
96
|
});
|
|
95
97
|
} else if ( /*#__PURE__*/React.isValidElement(icon)) {
|
|
98
|
+
var _icon$props;
|
|
99
|
+
|
|
96
100
|
iconSlot = /*#__PURE__*/cloneElement(icon, {
|
|
97
|
-
className: cn(icon.props.className, styles.icon)
|
|
101
|
+
className: cn((_icon$props = icon.props) === null || _icon$props === void 0 ? void 0 : _icon$props.className, styles.icon),
|
|
102
|
+
'data-render-all-sizes': true
|
|
98
103
|
});
|
|
99
104
|
}
|
|
100
105
|
|
|
@@ -114,6 +119,7 @@ const Button = /*#__PURE__*/React.forwardRef( // eslint-disable-next-line comple
|
|
|
114
119
|
[styles.shiftedBottom]: shiftedBottom,
|
|
115
120
|
[styles.multiline]: multiline,
|
|
116
121
|
[styles.allowMultiline]: allowMultiline,
|
|
122
|
+
[styles.truncateWithEllipsis]: truncateWithEllipsis,
|
|
117
123
|
[styles.busy]: busy,
|
|
118
124
|
[styles.busyOverlay]: showBusyOverlay
|
|
119
125
|
}, className)
|
|
@@ -222,6 +228,7 @@ Button.propTypes = {
|
|
|
222
228
|
highlighted: PropTypes.bool,
|
|
223
229
|
allowMultiline: PropTypes.bool,
|
|
224
230
|
defaultMultiline: PropTypes.bool,
|
|
231
|
+
truncateWithEllipsis: PropTypes.bool,
|
|
225
232
|
shifted: PropTypes.oneOfType([PropTypes.oneOf(['all', 'left', 'right', 'top', 'bottom']), PropTypes.arrayOf(PropTypes.oneOf(['left', 'right', 'top', 'bottom']))])
|
|
226
233
|
};
|
|
227
234
|
export { Button, Button as default };
|
|
@@ -1,34 +1,35 @@
|
|
|
1
1
|
var styles = {
|
|
2
|
-
"light": "
|
|
3
|
-
"dark": "
|
|
4
|
-
"flatRight": "
|
|
5
|
-
"flatLeft": "
|
|
6
|
-
"sizeXs": "
|
|
7
|
-
"sizeS": "
|
|
8
|
-
"sizeM": "
|
|
9
|
-
"sizeL": "
|
|
10
|
-
"modeClassic": "
|
|
11
|
-
"modeRock": "
|
|
12
|
-
"modeTransparent": "
|
|
13
|
-
"modeOutline": "
|
|
14
|
-
"modeClear": "
|
|
15
|
-
"alignIconLeft": "
|
|
16
|
-
"alignIconLeftEdge": "
|
|
17
|
-
"alignIconRight": "
|
|
18
|
-
"alignIconRightEdge": "
|
|
19
|
-
"main": "
|
|
20
|
-
"disabled": "
|
|
21
|
-
"busy": "
|
|
22
|
-
"busyOverlay": "
|
|
23
|
-
"icon": "
|
|
24
|
-
"allowMultiline": "
|
|
25
|
-
"content": "
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
2
|
+
"light": "_light_ixfsjd_6",
|
|
3
|
+
"dark": "_dark_ixfsjd_9",
|
|
4
|
+
"flatRight": "_flatRight_ixfsjd_13",
|
|
5
|
+
"flatLeft": "_flatLeft_ixfsjd_16",
|
|
6
|
+
"sizeXs": "_sizeXs_ixfsjd_20",
|
|
7
|
+
"sizeS": "_sizeS_ixfsjd_23",
|
|
8
|
+
"sizeM": "_sizeM_ixfsjd_26",
|
|
9
|
+
"sizeL": "_sizeL_ixfsjd_29",
|
|
10
|
+
"modeClassic": "_modeClassic_ixfsjd_33",
|
|
11
|
+
"modeRock": "_modeRock_ixfsjd_36",
|
|
12
|
+
"modeTransparent": "_modeTransparent_ixfsjd_39",
|
|
13
|
+
"modeOutline": "_modeOutline_ixfsjd_42",
|
|
14
|
+
"modeClear": "_modeClear_ixfsjd_45",
|
|
15
|
+
"alignIconLeft": "_alignIconLeft_ixfsjd_49",
|
|
16
|
+
"alignIconLeftEdge": "_alignIconLeftEdge_ixfsjd_52",
|
|
17
|
+
"alignIconRight": "_alignIconRight_ixfsjd_55",
|
|
18
|
+
"alignIconRightEdge": "_alignIconRightEdge_ixfsjd_58",
|
|
19
|
+
"main": "_main_ixfsjd_62",
|
|
20
|
+
"disabled": "_disabled_ixfsjd_139",
|
|
21
|
+
"busy": "_busy_ixfsjd_149",
|
|
22
|
+
"busyOverlay": "_busyOverlay_ixfsjd_153",
|
|
23
|
+
"icon": "_icon_ixfsjd_188",
|
|
24
|
+
"allowMultiline": "_allowMultiline_ixfsjd_203",
|
|
25
|
+
"content": "_content_ixfsjd_207",
|
|
26
|
+
"truncateWithEllipsis": "_truncateWithEllipsis_ixfsjd_210",
|
|
27
|
+
"multiline": "_multiline_ixfsjd_217",
|
|
28
|
+
"withoutText": "_withoutText_ixfsjd_221",
|
|
29
|
+
"busyIcon": "_busyIcon_ixfsjd_226",
|
|
30
|
+
"shiftedLeft": "_shiftedLeft_ixfsjd_247",
|
|
31
|
+
"shiftedRight": "_shiftedRight_ixfsjd_250",
|
|
32
|
+
"shiftedTop": "_shiftedTop_ixfsjd_253",
|
|
33
|
+
"shiftedBottom": "_shiftedBottom_ixfsjd_256"
|
|
33
34
|
};
|
|
34
35
|
export { styles as default };
|
package/lib/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.
|
|
1
|
+
._icon_1yrim0e_4{
|
|
2
2
|
--_rs-theme-dark:var(
|
|
3
3
|
--_rs-internal-force-theme-dark-consult-rescui-before-using,
|
|
4
4
|
var(--rs-theme-dark, 0)
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
--_rs-theme-light-coefficient:calc(1 - var(--_rs-theme-dark-coefficient));
|
|
9
9
|
}
|
|
10
10
|
@supports (color: color-mix(in srgb, #fff 50%, #000 50%)){
|
|
11
|
-
.
|
|
11
|
+
._icon_1yrim0e_4{
|
|
12
12
|
--_rs-color-primary:color-mix(in srgb, var(--rs-color-primary-light-theme, #6B57FF) calc(100%*var(--_rs-theme-light-coefficient, 1)), var(--rs-color-primary-dark-theme, #8473FF) calc(100%*var(--_rs-theme-dark-coefficient, 0)));
|
|
13
13
|
--_rs-color-primary-dim:color-mix(in srgb, var(--rs-color-primary-dim-light-theme, #8979ff) calc(100%*var(--_rs-theme-light-coefficient, 1)), var(--rs-color-primary-dim-dark-theme, #6f61d2) calc(100%*var(--_rs-theme-dark-coefficient, 0)));
|
|
14
14
|
--_rs-color-primary-fog:color-mix(in srgb, var(--rs-color-primary-fog-light-theme, #e1ddff) calc(100%*var(--_rs-theme-light-coefficient, 1)), var(--rs-color-primary-fog-dark-theme, #2e2b49) calc(100%*var(--_rs-theme-dark-coefficient, 0)));
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
@supports not (color: color-mix(in srgb, #fff 50%, #000 50%)){
|
|
20
|
-
.
|
|
20
|
+
._icon_1yrim0e_4{
|
|
21
21
|
--_rs-color-primary:rgb(calc(var(--_rs-theme-light-coefficient, 1)*107 + var(--_rs-theme-dark-coefficient, 0)*132), calc(var(--_rs-theme-light-coefficient, 1)*87 + var(--_rs-theme-dark-coefficient, 0)*115), 255);
|
|
22
22
|
--_rs-color-primary-dim:rgb(calc(var(--_rs-theme-light-coefficient, 1)*137 + var(--_rs-theme-dark-coefficient, 0)*111), calc(var(--_rs-theme-light-coefficient, 1)*121 + var(--_rs-theme-dark-coefficient, 0)*97), calc(var(--_rs-theme-light-coefficient, 1)*255 + var(--_rs-theme-dark-coefficient, 0)*210));
|
|
23
23
|
--_rs-color-primary-fog:rgb(calc(var(--_rs-theme-light-coefficient, 1)*225 + var(--_rs-theme-dark-coefficient, 0)*46), calc(var(--_rs-theme-light-coefficient, 1)*221 + var(--_rs-theme-dark-coefficient, 0)*43), calc(var(--_rs-theme-light-coefficient, 1)*255 + var(--_rs-theme-dark-coefficient, 0)*73));
|
|
@@ -25,30 +25,30 @@
|
|
|
25
25
|
--_rs-color-primary-t-fog:rgba(calc(var(--_rs-theme-light-coefficient, 1)*107 + var(--_rs-theme-dark-coefficient, 0)*132), calc(var(--_rs-theme-light-coefficient, 1)*87 + var(--_rs-theme-dark-coefficient, 0)*115), 255, calc(var(--_rs-theme-light-coefficient, 1)*0.2 + var(--_rs-theme-dark-coefficient, 0)*0.3));
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
.
|
|
28
|
+
._icon_1yrim0e_4{
|
|
29
29
|
|
|
30
30
|
fill:var(--_rs-icons-themed-fill-or-initial, currentcolor);
|
|
31
31
|
|
|
32
32
|
width:auto;
|
|
33
33
|
height:var(--_rs-icons-height);
|
|
34
34
|
}
|
|
35
|
-
.
|
|
35
|
+
._sizeXS_1yrim0e_14{
|
|
36
36
|
--_rs-icons-height:16px;
|
|
37
37
|
}
|
|
38
|
-
.
|
|
38
|
+
._sizeS_1yrim0e_18{
|
|
39
39
|
--_rs-icons-height:20px;
|
|
40
40
|
}
|
|
41
|
-
.
|
|
41
|
+
._sizeM_1yrim0e_22{
|
|
42
42
|
--_rs-icons-height:24px;
|
|
43
43
|
}
|
|
44
|
-
.
|
|
44
|
+
._sizeL_1yrim0e_26{
|
|
45
45
|
--_rs-icons-height:28px;
|
|
46
46
|
}
|
|
47
|
-
.
|
|
47
|
+
._light_1yrim0e_30{
|
|
48
48
|
--rs-theme-dark:0;
|
|
49
49
|
--_rs-icons-themed-fill-or-initial:rgb(calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(28 + var(--_rs-theme-dark-coefficient, 0)*227));
|
|
50
50
|
}
|
|
51
|
-
.
|
|
51
|
+
._dark_1yrim0e_34{
|
|
52
52
|
--rs-theme-dark:1;
|
|
53
53
|
--_rs-icons-themed-fill-or-initial:rgb(calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(28 + var(--_rs-theme-dark-coefficient, 0)*227));
|
|
54
54
|
}
|
|
@@ -60,25 +60,61 @@
|
|
|
60
60
|
transform:rotate(360deg);
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
.
|
|
63
|
+
._allVariants_1yrim0e_48{
|
|
64
|
+
aspect-ratio:var(--rs-icon-ar-width, 1) / var(--rs-icon-ar-height, 1);
|
|
65
|
+
container:rs-icon / size;
|
|
66
|
+
}
|
|
67
|
+
._variant16_1yrim0e_53,
|
|
68
|
+
._variant20_1yrim0e_54,
|
|
69
|
+
._variant24_1yrim0e_55{
|
|
70
|
+
display:none;
|
|
71
|
+
}
|
|
72
|
+
._variant28_1yrim0e_58{
|
|
73
|
+
display:block;
|
|
74
|
+
}
|
|
75
|
+
@container rs-icon (max-height: 24px){
|
|
76
|
+
._variant24_1yrim0e_55{
|
|
77
|
+
display:block;
|
|
78
|
+
}
|
|
79
|
+
._variant28_1yrim0e_58{
|
|
80
|
+
display:none;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
@container rs-icon (max-height: 20px){
|
|
84
|
+
._variant20_1yrim0e_54{
|
|
85
|
+
display:block;
|
|
86
|
+
}
|
|
87
|
+
._variant24_1yrim0e_55{
|
|
88
|
+
display:none;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
@container rs-icon (max-height: 16px){
|
|
92
|
+
._variant16_1yrim0e_53{
|
|
93
|
+
display:block;
|
|
94
|
+
}
|
|
95
|
+
._variant20_1yrim0e_54{
|
|
96
|
+
display:none;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
._light_ixfsjd_6{
|
|
64
100
|
--rs-theme-dark:0;
|
|
65
101
|
}
|
|
66
|
-
.
|
|
102
|
+
._dark_ixfsjd_9{
|
|
67
103
|
--rs-theme-dark:1;
|
|
68
104
|
}
|
|
69
|
-
.
|
|
105
|
+
._flatRight_ixfsjd_13{
|
|
70
106
|
--_rs-button-top-right-border-radius-or-initial:0px;
|
|
71
107
|
--_rs-button-bottom-right-border-radius-or-initial:0px;
|
|
72
108
|
--_rs-button-top-right-multiline-border-radius-or-initial:0px;
|
|
73
109
|
--_rs-button-bottom-right-multiline-border-radius-or-initial:0px;
|
|
74
110
|
}
|
|
75
|
-
.
|
|
111
|
+
._flatLeft_ixfsjd_16{
|
|
76
112
|
--_rs-button-top-left-border-radius-or-initial:0px;
|
|
77
113
|
--_rs-button-bottom-left-border-radius-or-initial:0px;
|
|
78
114
|
--_rs-button-top-left-multiline-border-radius-or-initial:0px;
|
|
79
115
|
--_rs-button-bottom-left-multiline-border-radius-or-initial:0px;
|
|
80
116
|
}
|
|
81
|
-
.
|
|
117
|
+
._sizeXs_ixfsjd_20{
|
|
82
118
|
--_rs-button-border-radius-base:var(
|
|
83
119
|
--rs-button-xs-border-radius,
|
|
84
120
|
var(--rs-button-border-radius, 4px)
|
|
@@ -93,7 +129,7 @@
|
|
|
93
129
|
--_rs-button-icon-size:16px;
|
|
94
130
|
--_rs-button-icon-offset:4px;
|
|
95
131
|
}
|
|
96
|
-
.
|
|
132
|
+
._sizeXs_ixfsjd_20 [data-rs-internal='button__content']{
|
|
97
133
|
--_rs-typography-letter-spacing:var(--rs-text-3-letter-spacing, 0.0045em);
|
|
98
134
|
--_rs-typography-text-transform:initial;
|
|
99
135
|
--_rs-typography-font-variant-numeric:initial;
|
|
@@ -127,7 +163,7 @@
|
|
|
127
163
|
--_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
|
|
128
164
|
--_rs-typography-link-border-bottom-width-from-text:1px;
|
|
129
165
|
}
|
|
130
|
-
.
|
|
166
|
+
._sizeS_ixfsjd_23{
|
|
131
167
|
--_rs-button-border-radius-base:var(
|
|
132
168
|
--rs-button-s-border-radius,
|
|
133
169
|
var(--rs-button-border-radius, 16px)
|
|
@@ -142,7 +178,7 @@
|
|
|
142
178
|
--_rs-button-icon-size:20px;
|
|
143
179
|
--_rs-button-icon-offset:8px;
|
|
144
180
|
}
|
|
145
|
-
.
|
|
181
|
+
._sizeS_ixfsjd_23 [data-rs-internal='button__content']{
|
|
146
182
|
--_rs-typography-letter-spacing:var(--rs-text-3-letter-spacing, 0.0045em);
|
|
147
183
|
--_rs-typography-text-transform:initial;
|
|
148
184
|
--_rs-typography-font-variant-numeric:initial;
|
|
@@ -176,7 +212,7 @@
|
|
|
176
212
|
--_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
|
|
177
213
|
--_rs-typography-link-border-bottom-width-from-text:1px;
|
|
178
214
|
}
|
|
179
|
-
.
|
|
215
|
+
._sizeM_ixfsjd_26{
|
|
180
216
|
--_rs-button-border-radius-base:var(
|
|
181
217
|
--rs-button-m-border-radius,
|
|
182
218
|
var(--rs-button-border-radius, 20px)
|
|
@@ -191,7 +227,7 @@
|
|
|
191
227
|
--_rs-button-icon-size:24px;
|
|
192
228
|
--_rs-button-icon-offset:8px;
|
|
193
229
|
}
|
|
194
|
-
.
|
|
230
|
+
._sizeM_ixfsjd_26 [data-rs-internal='button__content']{
|
|
195
231
|
--_rs-typography-letter-spacing:var(--rs-text-2-letter-spacing, 0.0015em);
|
|
196
232
|
--_rs-typography-text-transform:initial;
|
|
197
233
|
--_rs-typography-font-variant-numeric:initial;
|
|
@@ -229,11 +265,11 @@
|
|
|
229
265
|
--_rs-typography-link-border-bottom-width-from-text:1px;
|
|
230
266
|
}
|
|
231
267
|
@media screen and (max-width: 640px){
|
|
232
|
-
.
|
|
268
|
+
._sizeM_ixfsjd_26 [data-rs-internal='button__content']{
|
|
233
269
|
--_rs-typography-text-2-sm-list-li-margin-top-from-text:12px;
|
|
234
270
|
}
|
|
235
271
|
}
|
|
236
|
-
.
|
|
272
|
+
._sizeL_ixfsjd_29{
|
|
237
273
|
--_rs-button-border-radius-base:var(
|
|
238
274
|
--rs-button-l-border-radius,
|
|
239
275
|
var(--rs-button-border-radius, 26px)
|
|
@@ -248,7 +284,7 @@
|
|
|
248
284
|
--_rs-button-icon-size:28px;
|
|
249
285
|
--_rs-button-icon-offset:16px;
|
|
250
286
|
}
|
|
251
|
-
.
|
|
287
|
+
._sizeL_ixfsjd_29 [data-rs-internal='button__content']{
|
|
252
288
|
--_rs-typography-letter-spacing:var(--rs-text-1-letter-spacing, normal);
|
|
253
289
|
--_rs-typography-text-transform:initial;
|
|
254
290
|
--_rs-typography-font-variant-numeric:initial;
|
|
@@ -286,11 +322,11 @@
|
|
|
286
322
|
--_rs-typography-link-border-bottom-width-from-text:1px;
|
|
287
323
|
}
|
|
288
324
|
@media screen and (max-width: 640px){
|
|
289
|
-
.
|
|
325
|
+
._sizeL_ixfsjd_29 [data-rs-internal='button__content']{
|
|
290
326
|
--_rs-typography-text-1-sm-list-li-margin-top-from-text:16px;
|
|
291
327
|
}
|
|
292
328
|
}
|
|
293
|
-
.
|
|
329
|
+
._modeClassic_ixfsjd_33{
|
|
294
330
|
--_rs-button-inner-border-display:none;
|
|
295
331
|
--_rs-button-color:rgb(
|
|
296
332
|
calc(255 - var(--rs-button-flip-text-color, 0)*230),
|
|
@@ -306,7 +342,7 @@
|
|
|
306
342
|
--_rs-button-disabled-color:rgba(calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(28 + var(--_rs-theme-dark-coefficient, 0)*227), 0.5);
|
|
307
343
|
--_rs-button-disabled-background:rgba(calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(28 + var(--_rs-theme-dark-coefficient, 0)*227), 0.2);
|
|
308
344
|
}
|
|
309
|
-
.
|
|
345
|
+
._modeRock_ixfsjd_36{
|
|
310
346
|
--_rs-button-inner-border-display:none;
|
|
311
347
|
--_rs-button-color:rgb(calc(255 - var(--_rs-theme-dark-coefficient, 0)*230), calc(255 - var(--_rs-theme-dark-coefficient, 0)*230), calc(255 - var(--_rs-theme-dark-coefficient, 0)*227));
|
|
312
348
|
--_rs-button-background:rgb(calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(28 + var(--_rs-theme-dark-coefficient, 0)*227));
|
|
@@ -319,7 +355,7 @@
|
|
|
319
355
|
--_rs-button-disabled-color:rgba(calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(28 + var(--_rs-theme-dark-coefficient, 0)*227), 0.5);
|
|
320
356
|
--_rs-button-disabled-background:rgba(calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(28 + var(--_rs-theme-dark-coefficient, 0)*227), 0.2);
|
|
321
357
|
}
|
|
322
|
-
.
|
|
358
|
+
._modeTransparent_ixfsjd_39{
|
|
323
359
|
--_rs-button-inner-border-display:none;
|
|
324
360
|
--_rs-button-color:rgb(calc(255 - var(--_rs-theme-dark-coefficient, 0)*230), calc(255 - var(--_rs-theme-dark-coefficient, 0)*230), calc(255 - var(--_rs-theme-dark-coefficient, 0)*227));
|
|
325
361
|
--_rs-button-background:rgba(calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(28 + var(--_rs-theme-dark-coefficient, 0)*227), 0.5);
|
|
@@ -331,7 +367,7 @@
|
|
|
331
367
|
--_rs-button-disabled-color:rgba(calc(255 - var(--_rs-theme-dark-coefficient, 0)*230), calc(255 - var(--_rs-theme-dark-coefficient, 0)*230), calc(255 - var(--_rs-theme-dark-coefficient, 0)*227), 0.5);
|
|
332
368
|
--_rs-button-disabled-background:rgba(calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(28 + var(--_rs-theme-dark-coefficient, 0)*227), 0.4);
|
|
333
369
|
}
|
|
334
|
-
.
|
|
370
|
+
._modeOutline_ixfsjd_42{
|
|
335
371
|
--_rs-button-inner-border-display:block;
|
|
336
372
|
--_rs-button-color:rgb(calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(28 + var(--_rs-theme-dark-coefficient, 0)*227));
|
|
337
373
|
--_rs-button-background:transparent;
|
|
@@ -343,7 +379,7 @@
|
|
|
343
379
|
--_rs-button-disabled-color:rgba(calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(28 + var(--_rs-theme-dark-coefficient, 0)*227), 0.5);
|
|
344
380
|
--_rs-button-disabled-background:transparent;
|
|
345
381
|
}
|
|
346
|
-
.
|
|
382
|
+
._modeClear_ixfsjd_45{
|
|
347
383
|
--_rs-button-inner-border-display:none;
|
|
348
384
|
--_rs-button-color:rgb(calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(28 + var(--_rs-theme-dark-coefficient, 0)*227));
|
|
349
385
|
--_rs-button-background:transparent;
|
|
@@ -355,23 +391,23 @@
|
|
|
355
391
|
--_rs-button-disabled-color:rgba(calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(28 + var(--_rs-theme-dark-coefficient, 0)*227), 0.5);
|
|
356
392
|
--_rs-button-disabled-background:transparent;
|
|
357
393
|
}
|
|
358
|
-
.
|
|
394
|
+
._alignIconLeft_ixfsjd_49{
|
|
359
395
|
--_rs-button-icon-flex-direction:row;
|
|
360
396
|
--_rs-button-content-grow:0;
|
|
361
397
|
}
|
|
362
|
-
.
|
|
398
|
+
._alignIconLeftEdge_ixfsjd_52{
|
|
363
399
|
--_rs-button-icon-flex-direction:row;
|
|
364
400
|
--_rs-button-content-grow:1;
|
|
365
401
|
}
|
|
366
|
-
.
|
|
402
|
+
._alignIconRight_ixfsjd_55{
|
|
367
403
|
--_rs-button-icon-flex-direction:row-reverse;
|
|
368
404
|
--_rs-button-content-grow:0;
|
|
369
405
|
}
|
|
370
|
-
.
|
|
406
|
+
._alignIconRightEdge_ixfsjd_58{
|
|
371
407
|
--_rs-button-icon-flex-direction:row-reverse;
|
|
372
408
|
--_rs-button-content-grow:1;
|
|
373
409
|
}
|
|
374
|
-
.
|
|
410
|
+
._main_ixfsjd_62{
|
|
375
411
|
--_rs-theme-dark:var(
|
|
376
412
|
--_rs-internal-force-theme-dark-consult-rescui-before-using,
|
|
377
413
|
var(--rs-theme-dark, 0)
|
|
@@ -381,7 +417,7 @@
|
|
|
381
417
|
--_rs-theme-light-coefficient:calc(1 - var(--_rs-theme-dark-coefficient));
|
|
382
418
|
}
|
|
383
419
|
@supports (color: color-mix(in srgb, #fff 50%, #000 50%)){
|
|
384
|
-
.
|
|
420
|
+
._main_ixfsjd_62{
|
|
385
421
|
--_rs-color-primary:color-mix(in srgb, var(--rs-color-primary-light-theme, #6B57FF) calc(100%*var(--_rs-theme-light-coefficient, 1)), var(--rs-color-primary-dark-theme, #8473FF) calc(100%*var(--_rs-theme-dark-coefficient, 0)));
|
|
386
422
|
--_rs-color-primary-dim:color-mix(in srgb, var(--rs-color-primary-dim-light-theme, #8979ff) calc(100%*var(--_rs-theme-light-coefficient, 1)), var(--rs-color-primary-dim-dark-theme, #6f61d2) calc(100%*var(--_rs-theme-dark-coefficient, 0)));
|
|
387
423
|
--_rs-color-primary-fog:color-mix(in srgb, var(--rs-color-primary-fog-light-theme, #e1ddff) calc(100%*var(--_rs-theme-light-coefficient, 1)), var(--rs-color-primary-fog-dark-theme, #2e2b49) calc(100%*var(--_rs-theme-dark-coefficient, 0)));
|
|
@@ -390,7 +426,7 @@
|
|
|
390
426
|
}
|
|
391
427
|
}
|
|
392
428
|
@supports not (color: color-mix(in srgb, #fff 50%, #000 50%)){
|
|
393
|
-
.
|
|
429
|
+
._main_ixfsjd_62{
|
|
394
430
|
--_rs-color-primary:rgb(calc(var(--_rs-theme-light-coefficient, 1)*107 + var(--_rs-theme-dark-coefficient, 0)*132), calc(var(--_rs-theme-light-coefficient, 1)*87 + var(--_rs-theme-dark-coefficient, 0)*115), 255);
|
|
395
431
|
--_rs-color-primary-dim:rgb(calc(var(--_rs-theme-light-coefficient, 1)*137 + var(--_rs-theme-dark-coefficient, 0)*111), calc(var(--_rs-theme-light-coefficient, 1)*121 + var(--_rs-theme-dark-coefficient, 0)*97), calc(var(--_rs-theme-light-coefficient, 1)*255 + var(--_rs-theme-dark-coefficient, 0)*210));
|
|
396
432
|
--_rs-color-primary-fog:rgb(calc(var(--_rs-theme-light-coefficient, 1)*225 + var(--_rs-theme-dark-coefficient, 0)*46), calc(var(--_rs-theme-light-coefficient, 1)*221 + var(--_rs-theme-dark-coefficient, 0)*43), calc(var(--_rs-theme-light-coefficient, 1)*255 + var(--_rs-theme-dark-coefficient, 0)*73));
|
|
@@ -398,7 +434,7 @@
|
|
|
398
434
|
--_rs-color-primary-t-fog:rgba(calc(var(--_rs-theme-light-coefficient, 1)*107 + var(--_rs-theme-dark-coefficient, 0)*132), calc(var(--_rs-theme-light-coefficient, 1)*87 + var(--_rs-theme-dark-coefficient, 0)*115), 255, calc(var(--_rs-theme-light-coefficient, 1)*0.2 + var(--_rs-theme-dark-coefficient, 0)*0.3));
|
|
399
435
|
}
|
|
400
436
|
}
|
|
401
|
-
.
|
|
437
|
+
._main_ixfsjd_62 {
|
|
402
438
|
--_rs-button-background-final:var(
|
|
403
439
|
--_rs-button-background-from-state-active-focus-visible-no-hover,
|
|
404
440
|
var(
|
|
@@ -479,19 +515,19 @@
|
|
|
479
515
|
-moz-column-gap:var(--_rs-button-icon-offset);
|
|
480
516
|
column-gap:var(--_rs-button-icon-offset);
|
|
481
517
|
}
|
|
482
|
-
.
|
|
483
|
-
.
|
|
484
|
-
.
|
|
518
|
+
._main_ixfsjd_62:hover,
|
|
519
|
+
._main_ixfsjd_62:focus,
|
|
520
|
+
._main_ixfsjd_62:active{
|
|
485
521
|
outline:none;
|
|
486
522
|
|
|
487
523
|
text-decoration:none;
|
|
488
524
|
}
|
|
489
|
-
.
|
|
525
|
+
._main_ixfsjd_62:focus{
|
|
490
526
|
color:var(--_rs-button-color);
|
|
491
527
|
background:var(--_rs-button-background-final);
|
|
492
528
|
}
|
|
493
529
|
@media (hover: hover){
|
|
494
|
-
.
|
|
530
|
+
._main_ixfsjd_62:hover{
|
|
495
531
|
--_rs-button-border-inner-color:rgba(
|
|
496
532
|
calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(28 + var(--_rs-theme-dark-coefficient, 0)*227),
|
|
497
533
|
calc(0.3 + var(--_rs-theme-dark-coefficient, 0)*0.1)
|
|
@@ -499,24 +535,24 @@
|
|
|
499
535
|
--_rs-button-background-from-state-hover:var(--_rs-button-hover-background);
|
|
500
536
|
}
|
|
501
537
|
}
|
|
502
|
-
.
|
|
538
|
+
._main_ixfsjd_62:active{
|
|
503
539
|
--_rs-button-border-inner-width:2px;
|
|
504
540
|
--_rs-button-border-inner-color:rgb(calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(28 + var(--_rs-theme-dark-coefficient, 0)*227));
|
|
505
541
|
--_rs-button-background-from-state-active:var(
|
|
506
542
|
--_rs-button-active-background
|
|
507
543
|
);
|
|
508
544
|
}
|
|
509
|
-
.
|
|
545
|
+
._main_ixfsjd_62:focus[data-focus-method='key']{
|
|
510
546
|
--_rs-button-box-shadow-from-state-focus-visible:var(
|
|
511
547
|
--_rs-color-primary-t-dim
|
|
512
548
|
) 0 0 0 4px;
|
|
513
549
|
}
|
|
514
|
-
.
|
|
550
|
+
._main_ixfsjd_62:active:not(:hover):focus[data-focus-method='key']{
|
|
515
551
|
--_rs-button-background-from-state-active-focus-visible-no-hover:var(
|
|
516
552
|
--_rs-button-active-focus-visible-no-hover-background
|
|
517
553
|
);
|
|
518
554
|
}
|
|
519
|
-
.
|
|
555
|
+
._main_ixfsjd_62._disabled_ixfsjd_139{
|
|
520
556
|
--_rs-button-border-inner-color:rgba(
|
|
521
557
|
calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(28 + var(--_rs-theme-dark-coefficient, 0)*227),
|
|
522
558
|
0.2
|
|
@@ -525,26 +561,26 @@
|
|
|
525
561
|
color:var(--_rs-button-disabled-color);
|
|
526
562
|
background:var(--_rs-button-disabled-background);
|
|
527
563
|
}
|
|
528
|
-
.
|
|
564
|
+
._main_ixfsjd_62._busy_ixfsjd_149{
|
|
529
565
|
pointer-events:none;
|
|
530
566
|
}
|
|
531
|
-
.
|
|
567
|
+
._main_ixfsjd_62._busyOverlay_ixfsjd_153{
|
|
532
568
|
display:inline-flex;
|
|
533
569
|
justify-content:center;
|
|
534
570
|
align-items:center;
|
|
535
571
|
}
|
|
536
|
-
.
|
|
537
|
-
.
|
|
538
|
-
.
|
|
539
|
-
.
|
|
540
|
-
.
|
|
572
|
+
._main_ixfsjd_62._busyOverlay_ixfsjd_153,
|
|
573
|
+
._main_ixfsjd_62._busyOverlay_ixfsjd_153:hover,
|
|
574
|
+
._main_ixfsjd_62._busyOverlay_ixfsjd_153:active,
|
|
575
|
+
._main_ixfsjd_62._busyOverlay_ixfsjd_153._disabled_ixfsjd_139,
|
|
576
|
+
._main_ixfsjd_62._busyOverlay_ixfsjd_153:focus{
|
|
541
577
|
-webkit-user-select:none;
|
|
542
578
|
-moz-user-select:none;
|
|
543
579
|
user-select:none;
|
|
544
580
|
|
|
545
581
|
color:transparent;
|
|
546
582
|
}
|
|
547
|
-
.
|
|
583
|
+
._main_ixfsjd_62::before{
|
|
548
584
|
position:absolute;
|
|
549
585
|
top:0;
|
|
550
586
|
right:0;
|
|
@@ -561,7 +597,7 @@
|
|
|
561
597
|
|
|
562
598
|
transition:border-color 100ms;
|
|
563
599
|
}
|
|
564
|
-
.
|
|
600
|
+
._main_ixfsjd_62 ._icon_ixfsjd_188{
|
|
565
601
|
flex:0 0 auto;
|
|
566
602
|
|
|
567
603
|
width:auto;
|
|
@@ -570,36 +606,41 @@
|
|
|
570
606
|
margin:0;
|
|
571
607
|
fill:currentColor;
|
|
572
608
|
}
|
|
573
|
-
.
|
|
609
|
+
._disabled_ixfsjd_139{
|
|
574
610
|
pointer-events:none;
|
|
575
611
|
}
|
|
576
|
-
.
|
|
612
|
+
._allowMultiline_ixfsjd_203{
|
|
577
613
|
white-space:normal;
|
|
578
614
|
}
|
|
579
|
-
.
|
|
615
|
+
._content_ixfsjd_207{
|
|
580
616
|
flex:var(--_rs-button-content-grow) 1 auto;
|
|
581
617
|
}
|
|
582
|
-
.
|
|
618
|
+
._truncateWithEllipsis_ixfsjd_210 ._content_ixfsjd_207{
|
|
619
|
+
overflow:hidden;
|
|
620
|
+
|
|
621
|
+
text-overflow:ellipsis;
|
|
622
|
+
}
|
|
623
|
+
._multiline_ixfsjd_217{
|
|
583
624
|
border-radius:var(--_rs-button-multiline-border-radius);
|
|
584
625
|
}
|
|
585
|
-
.
|
|
626
|
+
._withoutText_ixfsjd_221{
|
|
586
627
|
--_rs-button-horizontal-real-padding:var(--_rs-button-icon-only-padding);
|
|
587
628
|
--_rs-button-vertical-real-padding:var(--_rs-button-icon-only-padding);
|
|
588
629
|
}
|
|
589
|
-
.
|
|
630
|
+
._busyIcon_ixfsjd_226{
|
|
590
631
|
position:absolute;
|
|
591
632
|
top:50%;
|
|
592
633
|
left:50%;
|
|
593
634
|
|
|
594
635
|
transform:translate(-50%, -50%);
|
|
595
636
|
}
|
|
596
|
-
.
|
|
637
|
+
._main_ixfsjd_62 ._busyIcon_ixfsjd_226{
|
|
597
638
|
color:var(--_rs-button-color);
|
|
598
639
|
}
|
|
599
|
-
.
|
|
640
|
+
._main_ixfsjd_62._disabled_ixfsjd_139 ._busyIcon_ixfsjd_226{
|
|
600
641
|
color:var(--_rs-button-disabled-color);
|
|
601
642
|
}
|
|
602
|
-
.
|
|
643
|
+
._content_ixfsjd_207{
|
|
603
644
|
letter-spacing:var(
|
|
604
645
|
--rs-text-base-letter-spacing,
|
|
605
646
|
var(--_rs-typography-letter-spacing)
|
|
@@ -612,15 +653,15 @@
|
|
|
612
653
|
font-variant-numeric:var(--_rs-typography-font-variant-numeric);
|
|
613
654
|
font-feature-settings:'kern', 'liga', 'calt';
|
|
614
655
|
}
|
|
615
|
-
.
|
|
656
|
+
._shiftedLeft_ixfsjd_247{
|
|
616
657
|
margin-left:calc(var(--_rs-button-horizontal-real-padding)*-1);
|
|
617
658
|
}
|
|
618
|
-
.
|
|
659
|
+
._shiftedRight_ixfsjd_250{
|
|
619
660
|
margin-right:calc(var(--_rs-button-horizontal-real-padding)*-1);
|
|
620
661
|
}
|
|
621
|
-
.
|
|
662
|
+
._shiftedTop_ixfsjd_253{
|
|
622
663
|
margin-top:calc(var(--_rs-button-vertical-real-padding)*-1);
|
|
623
664
|
}
|
|
624
|
-
.
|
|
665
|
+
._shiftedBottom_ixfsjd_256{
|
|
625
666
|
margin-bottom:calc(var(--_rs-button-vertical-real-padding)*-1);
|
|
626
667
|
}
|
package/lib/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ declare const DefaultButton: import("react").ForwardRefExoticComponent<Omit<impo
|
|
|
13
13
|
flat?: import("./button").ButtonFlat;
|
|
14
14
|
allowMultiline?: boolean;
|
|
15
15
|
defaultMultiline?: boolean;
|
|
16
|
+
truncateWithEllipsis?: boolean;
|
|
16
17
|
tabIndex?: number;
|
|
17
18
|
title?: string;
|
|
18
19
|
mode?: import("./button").ButtonModeGeneric | "clear";
|
|
@@ -36,6 +37,7 @@ declare const DefaultButton: import("react").ForwardRefExoticComponent<Omit<impo
|
|
|
36
37
|
flat?: import("./button").ButtonFlat;
|
|
37
38
|
allowMultiline?: boolean;
|
|
38
39
|
defaultMultiline?: boolean;
|
|
40
|
+
truncateWithEllipsis?: boolean;
|
|
39
41
|
tabIndex?: number;
|
|
40
42
|
title?: string;
|
|
41
43
|
mode?: import("./button").ButtonModeGeneric | "clear";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rescui/button",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.4-RUI-239-Allow-collapse-text-inside-button-0fe433a8.0+0fe433a8",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "JetBrains",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@babel/runtime-corejs3": "^7.26.0",
|
|
19
|
-
"@rescui/use-resize-observer": "
|
|
19
|
+
"@rescui/use-resize-observer": "0.2.8-RUI-239-Allow-collapse-text-inside-button-0fe433a8.0+0fe433a8",
|
|
20
20
|
"classnames": "^2.2.6"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
"react": ">=16.8.0 <19"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@rescui/colors": "
|
|
29
|
-
"@rescui/icons": "
|
|
30
|
-
"@rescui/scripts": "
|
|
31
|
-
"@rescui/typography": "
|
|
32
|
-
"@rescui/visual-regression": "
|
|
28
|
+
"@rescui/colors": "0.2.9-RUI-239-Allow-collapse-text-inside-button-0fe433a8.0+0fe433a8",
|
|
29
|
+
"@rescui/icons": "1.0.1-RUI-239-Allow-collapse-text-inside-button-0fe433a8.0+0fe433a8",
|
|
30
|
+
"@rescui/scripts": "0.4.0",
|
|
31
|
+
"@rescui/typography": "0.23.2-RUI-239-Allow-collapse-text-inside-button-0fe433a8.0+0fe433a8",
|
|
32
|
+
"@rescui/visual-regression": "0.1.2",
|
|
33
33
|
"@types/classnames": "^2.2.11"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"build-pcss-api": "rescui-scripts build-pcss-api --file public-api.p.css"
|
|
38
38
|
},
|
|
39
39
|
"nx": {},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "0fe433a8b558a82a822caf687a9da723f44aa041"
|
|
41
41
|
}
|