@rescui/button 0.15.5 → 0.15.6-RUI-198-Support-different-hardness-for-headings-in-mixins-api-48b1e9e1.18

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.
@@ -0,0 +1,10 @@
1
+ var styles = {
2
+ "icon": "_icon_9r22zb_4",
3
+ "sizeXS": "_sizeXS_9r22zb_14",
4
+ "sizeS": "_sizeS_9r22zb_18",
5
+ "sizeM": "_sizeM_9r22zb_22",
6
+ "sizeL": "_sizeL_9r22zb_26",
7
+ "light": "_light_9r22zb_30",
8
+ "dark": "_dark_9r22zb_34"
9
+ };
10
+ export { styles as default };
@@ -0,0 +1,45 @@
1
+ import _extends from '@babel/runtime-corejs3/helpers/esm/extends';
2
+ import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/esm/objectWithoutProperties';
3
+ import React from 'react';
4
+ import PropTypes from 'prop-types';
5
+ import cn from 'classnames';
6
+ import styles from './index.css.js';
7
+ var _excluded = ["theme", "size", "className"];
8
+ var sizeStyles = {
9
+ "xs": styles.sizeXS,
10
+ "s": styles.sizeS,
11
+ "m": styles.sizeM,
12
+ "l": styles.sizeL
13
+ };
14
+ var LoadingIcon = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
15
+ var theme = _ref.theme,
16
+ size = _ref.size,
17
+ className = _ref.className,
18
+ props = _objectWithoutProperties(_ref, _excluded);
19
+
20
+ return /*#__PURE__*/React.createElement("svg", _extends({
21
+ viewBox: "0 0 24 24"
22
+ }, props, {
23
+ className: cn(styles.icon, styles[theme], sizeStyles[size], className),
24
+ ref: ref
25
+ }), /*#__PURE__*/React.createElement("g", {
26
+ style: {
27
+ animation: "rs-icon-rotate 1s linear infinite",
28
+ transformOrigin: "center center"
29
+ }
30
+ }, /*#__PURE__*/React.createElement("path", {
31
+ opacity: 0.2,
32
+ d: "M12 2c5.523 0 10 4.477 10 10h-2a8 8 0 00-8-8V2z"
33
+ }), /*#__PURE__*/React.createElement("path", {
34
+ d: "M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10h-2a8 8 0 11-8-8V2z"
35
+ })));
36
+ });
37
+ LoadingIcon.propTypes = {
38
+ className: PropTypes.string,
39
+ theme: PropTypes.oneOf(["light", "dark"]),
40
+ size: PropTypes.oneOf(["xs", "s", "m", "l"])
41
+ };
42
+ LoadingIcon.defaultProps = {
43
+ size: "m"
44
+ };
45
+ export { LoadingIcon as default };
package/lib/button.js CHANGED
@@ -20,8 +20,8 @@ import React, { useState, cloneElement, useRef, useEffect } from 'react';
20
20
  import cn from 'classnames';
21
21
  import PropTypes from 'prop-types';
22
22
  import { useThemeWithUndefined } from '@rescui/ui-contexts';
23
- import { LoadingIcon } from '@rescui/icons';
24
23
  import { useResizeObserver } from '@rescui/use-resize-observer';
24
+ import LoadingIcon from './_virtual/loading.js';
25
25
  import styles from './button.p.module.css.js';
26
26
 
27
27
  var calculateShifted = function calculateShifted(shiftedProp, side) {
@@ -1,32 +1,32 @@
1
1
  var styles = {
2
- "light": "_light_4m8blj_6",
3
- "dark": "_dark_4m8blj_9",
4
- "flatRight": "_flatRight_4m8blj_13",
5
- "flatLeft": "_flatLeft_4m8blj_16",
6
- "sizeXs": "_sizeXs_4m8blj_20",
7
- "sizeS": "_sizeS_4m8blj_23",
8
- "sizeM": "_sizeM_4m8blj_26",
9
- "sizeL": "_sizeL_4m8blj_29",
10
- "modeClassic": "_modeClassic_4m8blj_33",
11
- "modeRock": "_modeRock_4m8blj_36",
12
- "modeTransparent": "_modeTransparent_4m8blj_39",
13
- "modeOutline": "_modeOutline_4m8blj_42",
14
- "modeClear": "_modeClear_4m8blj_45",
15
- "alignIconLeft": "_alignIconLeft_4m8blj_49",
16
- "alignIconRight": "_alignIconRight_4m8blj_52",
17
- "main": "_main_4m8blj_56",
18
- "disabled": "_disabled_4m8blj_132",
19
- "busy": "_busy_4m8blj_142",
20
- "busyOverlay": "_busyOverlay_4m8blj_146",
21
- "allowMultiline": "_allowMultiline_4m8blj_186",
22
- "multiline": "_multiline_4m8blj_190",
23
- "withoutText": "_withoutText_4m8blj_194",
24
- "withIcon": "_withIcon_4m8blj_202",
25
- "icon": "_icon_4m8blj_208",
26
- "busyIcon": "_busyIcon_4m8blj_222",
27
- "shiftedLeft": "_shiftedLeft_4m8blj_239",
28
- "shiftedRight": "_shiftedRight_4m8blj_242",
29
- "shiftedTop": "_shiftedTop_4m8blj_245",
30
- "shiftedBottom": "_shiftedBottom_4m8blj_248"
2
+ "light": "_light_1wgyh4l_6",
3
+ "dark": "_dark_1wgyh4l_9",
4
+ "flatRight": "_flatRight_1wgyh4l_13",
5
+ "flatLeft": "_flatLeft_1wgyh4l_16",
6
+ "sizeXs": "_sizeXs_1wgyh4l_20",
7
+ "sizeS": "_sizeS_1wgyh4l_23",
8
+ "sizeM": "_sizeM_1wgyh4l_26",
9
+ "sizeL": "_sizeL_1wgyh4l_29",
10
+ "modeClassic": "_modeClassic_1wgyh4l_33",
11
+ "modeRock": "_modeRock_1wgyh4l_36",
12
+ "modeTransparent": "_modeTransparent_1wgyh4l_39",
13
+ "modeOutline": "_modeOutline_1wgyh4l_42",
14
+ "modeClear": "_modeClear_1wgyh4l_45",
15
+ "alignIconLeft": "_alignIconLeft_1wgyh4l_49",
16
+ "alignIconRight": "_alignIconRight_1wgyh4l_52",
17
+ "main": "_main_1wgyh4l_56",
18
+ "disabled": "_disabled_1wgyh4l_131",
19
+ "busy": "_busy_1wgyh4l_141",
20
+ "busyOverlay": "_busyOverlay_1wgyh4l_145",
21
+ "allowMultiline": "_allowMultiline_1wgyh4l_185",
22
+ "multiline": "_multiline_1wgyh4l_189",
23
+ "withoutText": "_withoutText_1wgyh4l_193",
24
+ "withIcon": "_withIcon_1wgyh4l_201",
25
+ "icon": "_icon_1wgyh4l_207",
26
+ "busyIcon": "_busyIcon_1wgyh4l_221",
27
+ "shiftedLeft": "_shiftedLeft_1wgyh4l_238",
28
+ "shiftedRight": "_shiftedRight_1wgyh4l_241",
29
+ "shiftedTop": "_shiftedTop_1wgyh4l_244",
30
+ "shiftedBottom": "_shiftedBottom_1wgyh4l_247"
31
31
  };
32
32
  export { styles as default };
package/lib/index.css CHANGED
@@ -1,22 +1,96 @@
1
- ._light_4m8blj_6{
1
+ ._icon_9r22zb_4{
2
+ --_rs-theme-dark:var(
3
+ --_rs-internal-force-theme-dark-consult-rescui-before-using,
4
+ var(--rs-theme-dark, 0)
5
+ );
6
+ --_rs-theme-flip:var(--rs-theme-flip, 0);
7
+ --_rs-theme-dark-coefficient:calc(var(--_rs-theme-dark)*(1 - var(--_rs-theme-flip)) + var(--_rs-theme-flip)*(1 - var(--_rs-theme-dark)));
8
+ --_rs-theme-light-coefficient:calc(1 - var(--_rs-theme-dark-coefficient));
9
+ }
10
+ @supports (color: color-mix(in srgb, #fff 50%, #000 50%)){
11
+ ._icon_9r22zb_4{
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
+ --_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
+ --_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)));
15
+ --_rs-color-primary-t-dim:color-mix(in srgb, var(--rs-color-primary-t-dim-light-theme, rgba(107, 87, 255, 0.8)) calc(100%*var(--_rs-theme-light-coefficient, 1)), var(--rs-color-primary-t-dim-dark-theme, rgba(132, 115, 255,0.8)) calc(100%*var(--_rs-theme-dark-coefficient, 0)));
16
+ --_rs-color-primary-t-fog:color-mix(in srgb, var(--rs-color-primary-t-fog-light-theme, rgba(107, 87, 255,0.2)) calc(100%*var(--_rs-theme-light-coefficient, 1)), var(--rs-color-primary-t-fog-dark-theme, rgba(132, 115, 255,0.3)) calc(100%*var(--_rs-theme-dark-coefficient, 0)));
17
+ }
18
+ }
19
+ @supports not (color: color-mix(in srgb, #fff 50%, #000 50%)){
20
+ ._icon_9r22zb_4{
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
+ --_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
+ --_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));
24
+ --_rs-color-primary-t-dim: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, 0.8);
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
+ }
27
+ }
28
+ ._icon_9r22zb_4{
29
+
30
+ fill:var(--_rs-icons-themed-fill-or-initial, currentcolor);
31
+
32
+ width:auto;
33
+ height:var(--_rs-icons-height);
34
+ }
35
+ ._sizeXS_9r22zb_14{
36
+ --_rs-icons-height:16px;
37
+ }
38
+ ._sizeS_9r22zb_18{
39
+ --_rs-icons-height:20px;
40
+ }
41
+ ._sizeM_9r22zb_22{
42
+ --_rs-icons-height:24px;
43
+ }
44
+ ._sizeL_9r22zb_26{
45
+ --_rs-icons-height:28px;
46
+ }
47
+ ._light_9r22zb_30{
2
48
  --rs-theme-dark:0;
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));
3
50
  }
4
- ._dark_4m8blj_9{
51
+ ._dark_9r22zb_34{
5
52
  --rs-theme-dark:1;
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));
6
54
  }
7
- ._flatRight_4m8blj_13{
55
+ @-webkit-keyframes rs-icon-rotate{
56
+ from{
57
+ -webkit-transform:rotate(0deg);
58
+ transform:rotate(0deg);
59
+ }
60
+ to{
61
+ -webkit-transform:rotate(360deg);
62
+ transform:rotate(360deg);
63
+ }
64
+ }
65
+ @keyframes rs-icon-rotate{
66
+ from{
67
+ -webkit-transform:rotate(0deg);
68
+ transform:rotate(0deg);
69
+ }
70
+ to{
71
+ -webkit-transform:rotate(360deg);
72
+ transform:rotate(360deg);
73
+ }
74
+ }
75
+ ._light_1wgyh4l_6{
76
+ --rs-theme-dark:0;
77
+ }
78
+ ._dark_1wgyh4l_9{
79
+ --rs-theme-dark:1;
80
+ }
81
+ ._flatRight_1wgyh4l_13{
8
82
  --_rs-button-top-right-border-radius-or-initial:0px;
9
83
  --_rs-button-bottom-right-border-radius-or-initial:0px;
10
84
  --_rs-button-top-right-multiline-border-radius-or-initial:0px;
11
85
  --_rs-button-bottom-right-multiline-border-radius-or-initial:0px;
12
86
  }
13
- ._flatLeft_4m8blj_16{
87
+ ._flatLeft_1wgyh4l_16{
14
88
  --_rs-button-top-left-border-radius-or-initial:0px;
15
89
  --_rs-button-bottom-left-border-radius-or-initial:0px;
16
90
  --_rs-button-top-left-multiline-border-radius-or-initial:0px;
17
91
  --_rs-button-bottom-left-multiline-border-radius-or-initial:0px;
18
92
  }
19
- ._sizeXs_4m8blj_20{
93
+ ._sizeXs_1wgyh4l_20{
20
94
  --_rs-typography-letter-spacing:0.0045em;
21
95
  --_rs-typography-text-transform:initial;
22
96
  --_rs-typography-font-variant-numeric:initial;
@@ -63,7 +137,7 @@
63
137
  --_rs-button-icon-offset:8px;
64
138
  --_rs-button-icon-margin-top:2px;
65
139
  }
66
- ._sizeS_4m8blj_23{
140
+ ._sizeS_1wgyh4l_23{
67
141
  --_rs-typography-letter-spacing:0.0045em;
68
142
  --_rs-typography-text-transform:initial;
69
143
  --_rs-typography-font-variant-numeric:initial;
@@ -110,7 +184,7 @@
110
184
  --_rs-button-icon-offset:8px;
111
185
  --_rs-button-icon-margin-top:0px;
112
186
  }
113
- ._sizeM_4m8blj_26{
187
+ ._sizeM_1wgyh4l_26{
114
188
  --_rs-typography-letter-spacing:0.0015em;
115
189
  --_rs-typography-text-transform:initial;
116
190
  --_rs-typography-font-variant-numeric:initial;
@@ -145,11 +219,11 @@
145
219
  --_rs-typography-link-border-bottom-width-from-text:1px;
146
220
  }
147
221
  @media screen and (max-width: 640px){
148
- ._sizeM_4m8blj_26{
222
+ ._sizeM_1wgyh4l_26{
149
223
  --_rs-typography-list-li-margin-top-from-text:12px;
150
224
  }
151
225
  }
152
- ._sizeM_4m8blj_26 {
226
+ ._sizeM_1wgyh4l_26 {
153
227
  --_rs-button-border-radius-base:var(
154
228
  --rs-button-m-border-radius,
155
229
  var(--rs-button-border-radius, 20px)
@@ -164,7 +238,7 @@
164
238
  --_rs-button-icon-offset:8px;
165
239
  --_rs-button-icon-margin-top:0px;
166
240
  }
167
- ._sizeL_4m8blj_29{
241
+ ._sizeL_1wgyh4l_29{
168
242
  --_rs-typography-letter-spacing:normal;
169
243
  --_rs-typography-text-transform:initial;
170
244
  --_rs-typography-font-variant-numeric:initial;
@@ -199,11 +273,11 @@
199
273
  --_rs-typography-link-border-bottom-width-from-text:1px;
200
274
  }
201
275
  @media screen and (max-width: 640px){
202
- ._sizeL_4m8blj_29{
276
+ ._sizeL_1wgyh4l_29{
203
277
  --_rs-typography-list-li-margin-top-from-text:16px;
204
278
  }
205
279
  }
206
- ._sizeL_4m8blj_29 {
280
+ ._sizeL_1wgyh4l_29 {
207
281
  --_rs-button-border-radius-base:var(
208
282
  --rs-button-l-border-radius,
209
283
  var(--rs-button-border-radius, 26px)
@@ -218,7 +292,7 @@
218
292
  --_rs-button-icon-offset:16px;
219
293
  --_rs-button-icon-margin-top:0px;
220
294
  }
221
- ._modeClassic_4m8blj_33{
295
+ ._modeClassic_1wgyh4l_33{
222
296
  --_rs-button-inner-border-display:none;
223
297
  --_rs-button-color:#FFFFFF;
224
298
  --_rs-button-background:var(--_rs-color-primary);
@@ -230,7 +304,7 @@
230
304
  --_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);
231
305
  --_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);
232
306
  }
233
- ._modeRock_4m8blj_36{
307
+ ._modeRock_1wgyh4l_36{
234
308
  --_rs-button-inner-border-display:none;
235
309
  --_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));
236
310
  --_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));
@@ -243,7 +317,7 @@
243
317
  --_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);
244
318
  --_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);
245
319
  }
246
- ._modeTransparent_4m8blj_39{
320
+ ._modeTransparent_1wgyh4l_39{
247
321
  --_rs-button-inner-border-display:none;
248
322
  --_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));
249
323
  --_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);
@@ -255,7 +329,7 @@
255
329
  --_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);
256
330
  --_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);
257
331
  }
258
- ._modeOutline_4m8blj_42{
332
+ ._modeOutline_1wgyh4l_42{
259
333
  --_rs-button-inner-border-display:block;
260
334
  --_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));
261
335
  --_rs-button-background:transparent;
@@ -267,7 +341,7 @@
267
341
  --_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);
268
342
  --_rs-button-disabled-background:transparent;
269
343
  }
270
- ._modeClear_4m8blj_45{
344
+ ._modeClear_1wgyh4l_45{
271
345
  --_rs-button-inner-border-display:none;
272
346
  --_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));
273
347
  --_rs-button-background:transparent;
@@ -279,17 +353,17 @@
279
353
  --_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);
280
354
  --_rs-button-disabled-background:transparent;
281
355
  }
282
- ._alignIconLeft_4m8blj_49{
356
+ ._alignIconLeft_1wgyh4l_49{
283
357
  --_rs-button-icon-flex-direction:row;
284
358
  --_rs-button-icon-position-multiplier-left:1;
285
359
  --_rs-button-icon-position-multiplier-right:0;
286
360
  }
287
- ._alignIconRight_4m8blj_52{
361
+ ._alignIconRight_1wgyh4l_52{
288
362
  --_rs-button-icon-flex-direction:row-reverse;
289
363
  --_rs-button-icon-position-multiplier-left:0;
290
364
  --_rs-button-icon-position-multiplier-right:1;
291
365
  }
292
- ._main_4m8blj_56{
366
+ ._main_1wgyh4l_56{
293
367
  --_rs-theme-dark:var(
294
368
  --_rs-internal-force-theme-dark-consult-rescui-before-using,
295
369
  var(--rs-theme-dark, 0)
@@ -299,7 +373,7 @@
299
373
  --_rs-theme-light-coefficient:calc(1 - var(--_rs-theme-dark-coefficient));
300
374
  }
301
375
  @supports (color: color-mix(in srgb, #fff 50%, #000 50%)){
302
- ._main_4m8blj_56{
376
+ ._main_1wgyh4l_56{
303
377
  --_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)));
304
378
  --_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)));
305
379
  --_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)));
@@ -308,7 +382,7 @@
308
382
  }
309
383
  }
310
384
  @supports not (color: color-mix(in srgb, #fff 50%, #000 50%)){
311
- ._main_4m8blj_56{
385
+ ._main_1wgyh4l_56{
312
386
  --_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);
313
387
  --_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));
314
388
  --_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));
@@ -316,7 +390,7 @@
316
390
  --_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));
317
391
  }
318
392
  }
319
- ._main_4m8blj_56 {
393
+ ._main_1wgyh4l_56 {
320
394
  --_rs-button-border-radius:var(
321
395
  --_rs-button-top-left-border-radius-or-initial,
322
396
  var(--_rs-button-border-radius-base)
@@ -357,18 +431,11 @@
357
431
  font-variant-numeric:var(--_rs-typography-font-variant-numeric);
358
432
  -webkit-font-feature-settings:'kern', 'liga', 'calt';
359
433
  font-feature-settings:'kern', 'liga', 'calt';
360
- }
361
- ._main_4m8blj_56 > p:not(:nth-child(1)),
362
- ._main_4m8blj_56 > pre:not(:nth-child(1)){
363
- padding-top:var(--_rs-typography-auto-offset-or-initial);
364
- }
365
- ._main_4m8blj_56 {
366
434
 
367
435
  --_rs-button-border-inner-width:1px;
368
436
  --_rs-button-border-inner-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.3);
369
437
 
370
438
  position:relative;
371
- z-index:1;
372
439
 
373
440
  display:inline-block;
374
441
 
@@ -396,19 +463,19 @@
396
463
 
397
464
  transition:color 100ms, background-color 100ms;
398
465
  }
399
- ._main_4m8blj_56:hover,
400
- ._main_4m8blj_56:focus,
401
- ._main_4m8blj_56:active{
466
+ ._main_1wgyh4l_56:hover,
467
+ ._main_1wgyh4l_56:focus,
468
+ ._main_1wgyh4l_56:active{
402
469
  outline:none;
403
470
 
404
471
  text-decoration:none;
405
472
  }
406
- ._main_4m8blj_56:focus{
473
+ ._main_1wgyh4l_56:focus{
407
474
  color:var(--_rs-button-color);
408
475
  background:var(--_rs-button-background);
409
476
  }
410
477
  @media (hover: hover){
411
- ._main_4m8blj_56:hover{
478
+ ._main_1wgyh4l_56:hover{
412
479
  --_rs-button-border-inner-color:rgba(
413
480
  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),
414
481
  calc(0.3 + var(--_rs-theme-dark-coefficient, 0)*0.1)
@@ -418,21 +485,21 @@
418
485
  background:var(--_rs-button-hover-background);
419
486
  }
420
487
  }
421
- ._main_4m8blj_56:active{
488
+ ._main_1wgyh4l_56:active{
422
489
  --_rs-button-border-inner-width:2px;
423
490
  --_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));
424
491
 
425
492
  color:var(--_rs-button-color);
426
493
  background:var(--_rs-button-active-background);
427
494
  }
428
- ._main_4m8blj_56:focus[data-focus-method='key']{
495
+ ._main_1wgyh4l_56:focus[data-focus-method='key']{
429
496
  -webkit-box-shadow:var(--_rs-color-primary-t-dim) 0 0 0 4px;
430
497
  box-shadow:var(--_rs-color-primary-t-dim) 0 0 0 4px;
431
498
  }
432
- ._main_4m8blj_56:active:not(:hover):focus[data-focus-method='key']{
499
+ ._main_1wgyh4l_56:active:not(:hover):focus[data-focus-method='key']{
433
500
  background:var(--_rs-button-active-focus-visible-no-hover-background);
434
501
  }
435
- ._main_4m8blj_56._disabled_4m8blj_132{
502
+ ._main_1wgyh4l_56._disabled_1wgyh4l_131{
436
503
  --_rs-button-border-inner-color:rgba(
437
504
  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),
438
505
  0.2
@@ -441,10 +508,10 @@
441
508
  color:var(--_rs-button-disabled-color);
442
509
  background:var(--_rs-button-disabled-background);
443
510
  }
444
- ._main_4m8blj_56._busy_4m8blj_142{
511
+ ._main_1wgyh4l_56._busy_1wgyh4l_141{
445
512
  pointer-events:none;
446
513
  }
447
- ._main_4m8blj_56._busyOverlay_4m8blj_146{
514
+ ._main_1wgyh4l_56._busyOverlay_1wgyh4l_145{
448
515
  display:-webkit-inline-box;
449
516
  display:-ms-inline-flexbox;
450
517
  display:inline-flex;
@@ -455,11 +522,11 @@
455
522
  -ms-flex-align:center;
456
523
  align-items:center;
457
524
  }
458
- ._main_4m8blj_56._busyOverlay_4m8blj_146,
459
- ._main_4m8blj_56._busyOverlay_4m8blj_146:hover,
460
- ._main_4m8blj_56._busyOverlay_4m8blj_146:active,
461
- ._main_4m8blj_56._busyOverlay_4m8blj_146._disabled_4m8blj_132,
462
- ._main_4m8blj_56._busyOverlay_4m8blj_146:focus{
525
+ ._main_1wgyh4l_56._busyOverlay_1wgyh4l_145,
526
+ ._main_1wgyh4l_56._busyOverlay_1wgyh4l_145:hover,
527
+ ._main_1wgyh4l_56._busyOverlay_1wgyh4l_145:active,
528
+ ._main_1wgyh4l_56._busyOverlay_1wgyh4l_145._disabled_1wgyh4l_131,
529
+ ._main_1wgyh4l_56._busyOverlay_1wgyh4l_145:focus{
463
530
  -webkit-user-select:none;
464
531
  -moz-user-select:none;
465
532
  -ms-user-select:none;
@@ -467,7 +534,7 @@
467
534
 
468
535
  color:transparent;
469
536
  }
470
- ._main_4m8blj_56::before{
537
+ ._main_1wgyh4l_56::before{
471
538
  position:absolute;
472
539
  top:0;
473
540
  right:0;
@@ -486,16 +553,16 @@
486
553
 
487
554
  transition:border-color 100ms;
488
555
  }
489
- ._disabled_4m8blj_132{
556
+ ._disabled_1wgyh4l_131{
490
557
  pointer-events:none;
491
558
  }
492
- ._allowMultiline_4m8blj_186{
559
+ ._allowMultiline_1wgyh4l_185{
493
560
  white-space:normal;
494
561
  }
495
- ._multiline_4m8blj_190{
562
+ ._multiline_1wgyh4l_189{
496
563
  border-radius:var(--_rs-button-multiline-border-radius);
497
564
  }
498
- ._withoutText_4m8blj_194{
565
+ ._withoutText_1wgyh4l_193{
499
566
  display:-webkit-inline-box;
500
567
  display:-ms-inline-flexbox;
501
568
  display:inline-flex;
@@ -508,7 +575,7 @@
508
575
 
509
576
  padding:var(--_rs-button-vertical-padding);
510
577
  }
511
- ._withIcon_4m8blj_202{
578
+ ._withIcon_1wgyh4l_201{
512
579
  display:-webkit-inline-box;
513
580
  display:-ms-inline-flexbox;
514
581
  display:inline-flex;
@@ -523,17 +590,17 @@
523
590
  -ms-flex-align:center;
524
591
  align-items:center;
525
592
  }
526
- ._withIcon_4m8blj_202 ._icon_4m8blj_208{
593
+ ._withIcon_1wgyh4l_201 ._icon_1wgyh4l_207{
527
594
  width:auto;
528
595
  height:var(--_rs-button-icon-size);
529
596
 
530
597
  margin:var(--_rs-button-icon-margin-top) var(--_rs-button-icon-margin-right) 0 var(--_rs-button-icon-margin-left);
531
598
  fill:currentColor;
532
599
  }
533
- ._withIcon_4m8blj_202._withoutText_4m8blj_194 ._icon_4m8blj_208{
600
+ ._withIcon_1wgyh4l_201._withoutText_1wgyh4l_193 ._icon_1wgyh4l_207{
534
601
  margin:0;
535
602
  }
536
- ._busyIcon_4m8blj_222{
603
+ ._busyIcon_1wgyh4l_221{
537
604
  position:absolute;
538
605
  top:50%;
539
606
  left:50%;
@@ -542,21 +609,21 @@
542
609
 
543
610
  transform:translate(-50%, -50%);
544
611
  }
545
- ._main_4m8blj_56 ._busyIcon_4m8blj_222{
612
+ ._main_1wgyh4l_56 ._busyIcon_1wgyh4l_221{
546
613
  color:var(--_rs-button-color);
547
614
  }
548
- ._main_4m8blj_56._disabled_4m8blj_132 ._busyIcon_4m8blj_222{
615
+ ._main_1wgyh4l_56._disabled_1wgyh4l_131 ._busyIcon_1wgyh4l_221{
549
616
  color:var(--_rs-button-disabled-color);
550
617
  }
551
- ._shiftedLeft_4m8blj_239{
618
+ ._shiftedLeft_1wgyh4l_238{
552
619
  margin-left:calc(var(--_rs-button-horizontal-padding)*-1);
553
620
  }
554
- ._shiftedRight_4m8blj_242{
621
+ ._shiftedRight_1wgyh4l_241{
555
622
  margin-right:calc(var(--_rs-button-horizontal-padding)*-1);
556
623
  }
557
- ._shiftedTop_4m8blj_245{
624
+ ._shiftedTop_1wgyh4l_244{
558
625
  margin-top:calc(var(--_rs-button-vertical-padding)*-1);
559
626
  }
560
- ._shiftedBottom_4m8blj_248{
627
+ ._shiftedBottom_1wgyh4l_247{
561
628
  margin-bottom:calc(var(--_rs-button-vertical-padding)*-1);
562
629
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rescui/button",
3
- "version": "0.15.5",
3
+ "version": "0.15.6-RUI-198-Support-different-hardness-for-headings-in-mixins-api-48b1e9e1.18+48b1e9e1",
4
4
  "description": "",
5
5
  "license": "Apache-2.0",
6
6
  "author": "JetBrains",
@@ -15,8 +15,7 @@
15
15
  },
16
16
  "dependencies": {
17
17
  "@babel/runtime-corejs3": "^7.14.0",
18
- "@rescui/icons": "^0.16.2",
19
- "@rescui/use-resize-observer": "^0.2.0",
18
+ "@rescui/use-resize-observer": "0.2.1-RUI-198-Support-different-hardness-for-headings-in-mixins-api-48b1e9e1.41+48b1e9e1",
20
19
  "classnames": "^2.2.6",
21
20
  "core-js": "^3.9.1"
22
21
  },
@@ -26,15 +25,17 @@
26
25
  "react": ">=16.8.0 <19"
27
26
  },
28
27
  "devDependencies": {
29
- "@rescui/colors": "^0.2.0",
30
- "@rescui/scripts": "^0.3.0",
31
- "@rescui/typography": "^0.16.2",
32
- "@rescui/visual-regression": "^0.1.1",
28
+ "@rescui/colors": "0.2.1-RUI-198-Support-different-hardness-for-headings-in-mixins-api-48b1e9e1.41+48b1e9e1",
29
+ "@rescui/icons": "0.16.3-RUI-198-Support-different-hardness-for-headings-in-mixins-api-48b1e9e1.18+48b1e9e1",
30
+ "@rescui/scripts": "0.3.2",
31
+ "@rescui/typography": "0.16.3-RUI-198-Support-different-hardness-for-headings-in-mixins-api-48b1e9e1.18+48b1e9e1",
32
+ "@rescui/visual-regression": "0.1.2",
33
33
  "@types/classnames": "^2.2.11"
34
34
  },
35
35
  "scripts": {
36
36
  "build": "rescui-scripts build && yarn run build-pcss-api",
37
37
  "build-pcss-api": "rescui-scripts build-pcss-api --file public-api.p.css"
38
38
  },
39
- "gitHead": "a2e1fabd391841605a1f7d06800f60fb82a50feb"
39
+ "nx": {},
40
+ "gitHead": "48b1e9e1ea4e38ec28a5bc9f9be82e5b69f7fe44"
40
41
  }