@rescui/button 0.15.5-RUI-201-Support-css-modules-in-typography-6efea65f.14 → 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_1qr6zj5_6",
3
- "dark": "_dark_1qr6zj5_9",
4
- "flatRight": "_flatRight_1qr6zj5_13",
5
- "flatLeft": "_flatLeft_1qr6zj5_16",
6
- "sizeXs": "_sizeXs_1qr6zj5_20",
7
- "sizeS": "_sizeS_1qr6zj5_23",
8
- "sizeM": "_sizeM_1qr6zj5_26",
9
- "sizeL": "_sizeL_1qr6zj5_29",
10
- "modeClassic": "_modeClassic_1qr6zj5_33",
11
- "modeRock": "_modeRock_1qr6zj5_36",
12
- "modeTransparent": "_modeTransparent_1qr6zj5_39",
13
- "modeOutline": "_modeOutline_1qr6zj5_42",
14
- "modeClear": "_modeClear_1qr6zj5_45",
15
- "alignIconLeft": "_alignIconLeft_1qr6zj5_49",
16
- "alignIconRight": "_alignIconRight_1qr6zj5_52",
17
- "main": "_main_1qr6zj5_56",
18
- "disabled": "_disabled_1qr6zj5_131",
19
- "busy": "_busy_1qr6zj5_141",
20
- "busyOverlay": "_busyOverlay_1qr6zj5_145",
21
- "allowMultiline": "_allowMultiline_1qr6zj5_185",
22
- "multiline": "_multiline_1qr6zj5_189",
23
- "withoutText": "_withoutText_1qr6zj5_193",
24
- "withIcon": "_withIcon_1qr6zj5_201",
25
- "icon": "_icon_1qr6zj5_207",
26
- "busyIcon": "_busyIcon_1qr6zj5_221",
27
- "shiftedLeft": "_shiftedLeft_1qr6zj5_238",
28
- "shiftedRight": "_shiftedRight_1qr6zj5_241",
29
- "shiftedTop": "_shiftedTop_1qr6zj5_244",
30
- "shiftedBottom": "_shiftedBottom_1qr6zj5_247"
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_1qr6zj5_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{
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));
50
+ }
51
+ ._dark_9r22zb_34{
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));
54
+ }
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{
2
76
  --rs-theme-dark:0;
3
77
  }
4
- ._dark_1qr6zj5_9{
78
+ ._dark_1wgyh4l_9{
5
79
  --rs-theme-dark:1;
6
80
  }
7
- ._flatRight_1qr6zj5_13{
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_1qr6zj5_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_1qr6zj5_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_1qr6zj5_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_1qr6zj5_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_1qr6zj5_26{
222
+ ._sizeM_1wgyh4l_26{
149
223
  --_rs-typography-list-li-margin-top-from-text:12px;
150
224
  }
151
225
  }
152
- ._sizeM_1qr6zj5_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_1qr6zj5_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_1qr6zj5_29{
276
+ ._sizeL_1wgyh4l_29{
203
277
  --_rs-typography-list-li-margin-top-from-text:16px;
204
278
  }
205
279
  }
206
- ._sizeL_1qr6zj5_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_1qr6zj5_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_1qr6zj5_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_1qr6zj5_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_1qr6zj5_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_1qr6zj5_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_1qr6zj5_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_1qr6zj5_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_1qr6zj5_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_1qr6zj5_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_1qr6zj5_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_1qr6zj5_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)
@@ -389,19 +463,19 @@
389
463
 
390
464
  transition:color 100ms, background-color 100ms;
391
465
  }
392
- ._main_1qr6zj5_56:hover,
393
- ._main_1qr6zj5_56:focus,
394
- ._main_1qr6zj5_56:active{
466
+ ._main_1wgyh4l_56:hover,
467
+ ._main_1wgyh4l_56:focus,
468
+ ._main_1wgyh4l_56:active{
395
469
  outline:none;
396
470
 
397
471
  text-decoration:none;
398
472
  }
399
- ._main_1qr6zj5_56:focus{
473
+ ._main_1wgyh4l_56:focus{
400
474
  color:var(--_rs-button-color);
401
475
  background:var(--_rs-button-background);
402
476
  }
403
477
  @media (hover: hover){
404
- ._main_1qr6zj5_56:hover{
478
+ ._main_1wgyh4l_56:hover{
405
479
  --_rs-button-border-inner-color:rgba(
406
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),
407
481
  calc(0.3 + var(--_rs-theme-dark-coefficient, 0)*0.1)
@@ -411,21 +485,21 @@
411
485
  background:var(--_rs-button-hover-background);
412
486
  }
413
487
  }
414
- ._main_1qr6zj5_56:active{
488
+ ._main_1wgyh4l_56:active{
415
489
  --_rs-button-border-inner-width:2px;
416
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));
417
491
 
418
492
  color:var(--_rs-button-color);
419
493
  background:var(--_rs-button-active-background);
420
494
  }
421
- ._main_1qr6zj5_56:focus[data-focus-method='key']{
495
+ ._main_1wgyh4l_56:focus[data-focus-method='key']{
422
496
  -webkit-box-shadow:var(--_rs-color-primary-t-dim) 0 0 0 4px;
423
497
  box-shadow:var(--_rs-color-primary-t-dim) 0 0 0 4px;
424
498
  }
425
- ._main_1qr6zj5_56:active:not(:hover):focus[data-focus-method='key']{
499
+ ._main_1wgyh4l_56:active:not(:hover):focus[data-focus-method='key']{
426
500
  background:var(--_rs-button-active-focus-visible-no-hover-background);
427
501
  }
428
- ._main_1qr6zj5_56._disabled_1qr6zj5_131{
502
+ ._main_1wgyh4l_56._disabled_1wgyh4l_131{
429
503
  --_rs-button-border-inner-color:rgba(
430
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),
431
505
  0.2
@@ -434,10 +508,10 @@
434
508
  color:var(--_rs-button-disabled-color);
435
509
  background:var(--_rs-button-disabled-background);
436
510
  }
437
- ._main_1qr6zj5_56._busy_1qr6zj5_141{
511
+ ._main_1wgyh4l_56._busy_1wgyh4l_141{
438
512
  pointer-events:none;
439
513
  }
440
- ._main_1qr6zj5_56._busyOverlay_1qr6zj5_145{
514
+ ._main_1wgyh4l_56._busyOverlay_1wgyh4l_145{
441
515
  display:-webkit-inline-box;
442
516
  display:-ms-inline-flexbox;
443
517
  display:inline-flex;
@@ -448,11 +522,11 @@
448
522
  -ms-flex-align:center;
449
523
  align-items:center;
450
524
  }
451
- ._main_1qr6zj5_56._busyOverlay_1qr6zj5_145,
452
- ._main_1qr6zj5_56._busyOverlay_1qr6zj5_145:hover,
453
- ._main_1qr6zj5_56._busyOverlay_1qr6zj5_145:active,
454
- ._main_1qr6zj5_56._busyOverlay_1qr6zj5_145._disabled_1qr6zj5_131,
455
- ._main_1qr6zj5_56._busyOverlay_1qr6zj5_145: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{
456
530
  -webkit-user-select:none;
457
531
  -moz-user-select:none;
458
532
  -ms-user-select:none;
@@ -460,7 +534,7 @@
460
534
 
461
535
  color:transparent;
462
536
  }
463
- ._main_1qr6zj5_56::before{
537
+ ._main_1wgyh4l_56::before{
464
538
  position:absolute;
465
539
  top:0;
466
540
  right:0;
@@ -479,16 +553,16 @@
479
553
 
480
554
  transition:border-color 100ms;
481
555
  }
482
- ._disabled_1qr6zj5_131{
556
+ ._disabled_1wgyh4l_131{
483
557
  pointer-events:none;
484
558
  }
485
- ._allowMultiline_1qr6zj5_185{
559
+ ._allowMultiline_1wgyh4l_185{
486
560
  white-space:normal;
487
561
  }
488
- ._multiline_1qr6zj5_189{
562
+ ._multiline_1wgyh4l_189{
489
563
  border-radius:var(--_rs-button-multiline-border-radius);
490
564
  }
491
- ._withoutText_1qr6zj5_193{
565
+ ._withoutText_1wgyh4l_193{
492
566
  display:-webkit-inline-box;
493
567
  display:-ms-inline-flexbox;
494
568
  display:inline-flex;
@@ -501,7 +575,7 @@
501
575
 
502
576
  padding:var(--_rs-button-vertical-padding);
503
577
  }
504
- ._withIcon_1qr6zj5_201{
578
+ ._withIcon_1wgyh4l_201{
505
579
  display:-webkit-inline-box;
506
580
  display:-ms-inline-flexbox;
507
581
  display:inline-flex;
@@ -516,17 +590,17 @@
516
590
  -ms-flex-align:center;
517
591
  align-items:center;
518
592
  }
519
- ._withIcon_1qr6zj5_201 ._icon_1qr6zj5_207{
593
+ ._withIcon_1wgyh4l_201 ._icon_1wgyh4l_207{
520
594
  width:auto;
521
595
  height:var(--_rs-button-icon-size);
522
596
 
523
597
  margin:var(--_rs-button-icon-margin-top) var(--_rs-button-icon-margin-right) 0 var(--_rs-button-icon-margin-left);
524
598
  fill:currentColor;
525
599
  }
526
- ._withIcon_1qr6zj5_201._withoutText_1qr6zj5_193 ._icon_1qr6zj5_207{
600
+ ._withIcon_1wgyh4l_201._withoutText_1wgyh4l_193 ._icon_1wgyh4l_207{
527
601
  margin:0;
528
602
  }
529
- ._busyIcon_1qr6zj5_221{
603
+ ._busyIcon_1wgyh4l_221{
530
604
  position:absolute;
531
605
  top:50%;
532
606
  left:50%;
@@ -535,21 +609,21 @@
535
609
 
536
610
  transform:translate(-50%, -50%);
537
611
  }
538
- ._main_1qr6zj5_56 ._busyIcon_1qr6zj5_221{
612
+ ._main_1wgyh4l_56 ._busyIcon_1wgyh4l_221{
539
613
  color:var(--_rs-button-color);
540
614
  }
541
- ._main_1qr6zj5_56._disabled_1qr6zj5_131 ._busyIcon_1qr6zj5_221{
615
+ ._main_1wgyh4l_56._disabled_1wgyh4l_131 ._busyIcon_1wgyh4l_221{
542
616
  color:var(--_rs-button-disabled-color);
543
617
  }
544
- ._shiftedLeft_1qr6zj5_238{
618
+ ._shiftedLeft_1wgyh4l_238{
545
619
  margin-left:calc(var(--_rs-button-horizontal-padding)*-1);
546
620
  }
547
- ._shiftedRight_1qr6zj5_241{
621
+ ._shiftedRight_1wgyh4l_241{
548
622
  margin-right:calc(var(--_rs-button-horizontal-padding)*-1);
549
623
  }
550
- ._shiftedTop_1qr6zj5_244{
624
+ ._shiftedTop_1wgyh4l_244{
551
625
  margin-top:calc(var(--_rs-button-vertical-padding)*-1);
552
626
  }
553
- ._shiftedBottom_1qr6zj5_247{
627
+ ._shiftedBottom_1wgyh4l_247{
554
628
  margin-bottom:calc(var(--_rs-button-vertical-padding)*-1);
555
629
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rescui/button",
3
- "version": "0.15.5-RUI-201-Support-css-modules-in-typography-6efea65f.14+6efea65f",
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-RUI-201-Support-css-modules-in-typography-6efea65f.26+6efea65f",
19
- "@rescui/use-resize-observer": "0.2.1-RUI-201-Support-css-modules-in-typography-6efea65f.28+6efea65f",
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,9 +25,10 @@
26
25
  "react": ">=16.8.0 <19"
27
26
  },
28
27
  "devDependencies": {
29
- "@rescui/colors": "0.2.1-RUI-201-Support-css-modules-in-typography-6efea65f.28+6efea65f",
30
- "@rescui/scripts": "0.3.1",
31
- "@rescui/typography": "0.16.2-RUI-201-Support-css-modules-in-typography-6efea65f.26+6efea65f",
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
32
  "@rescui/visual-regression": "0.1.2",
33
33
  "@types/classnames": "^2.2.11"
34
34
  },
@@ -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": "6efea65fdcd5dea2f275be4be0e30ee7eb6ad136"
40
+ "gitHead": "48b1e9e1ea4e38ec28a5bc9f9be82e5b69f7fe44"
41
41
  }