@rescui/checkbox 0.11.3-RUI-297-Add-react-compiler-to-the-packages-build-dbbefd7b8.14 → 0.11.3-RUI-297-Add-react-compiler-to-the-packages-build-8aaaed4be.43
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/checkbox.js +168 -47
- package/lib/index.css +79 -69
- package/lib/parts/checkbox-control-inner.js +168 -36
- package/lib/parts/checkbox-control.js +57 -45
- package/lib/parts/checkbox-list.js +232 -67
- package/lib/parts/checkbox-list.p.module.css.js +13 -13
- package/lib/parts/checkbox-manager.js +139 -39
- package/lib/parts/checkbox.p.module.css.js +22 -22
- package/lib/parts/group-context.js +1 -1
- package/lib/parts/marks.js +139 -35
- package/lib/parts/use-safe-id.d.ts +4 -0
- package/lib/parts/use-safe-id.js +10 -0
- package/lib/public-api.p.css +5 -0
- package/lib/public-api.pcss +5 -0
- package/package.json +9 -8
- package/lib/parts/use-backward-compatible-id.d.ts +0 -4
- package/lib/parts/use-backward-compatible-id.js +0 -14
package/lib/checkbox.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import _extends from '@babel/runtime-corejs3/helpers/esm/extends';
|
|
3
|
+
import { c } from 'react-compiler-runtime';
|
|
2
4
|
import React, { useContext } from 'react';
|
|
3
5
|
import PropTypes from 'prop-types';
|
|
4
6
|
import { MenuItem } from '@rescui/menu';
|
|
@@ -7,7 +9,7 @@ import cn from 'classnames';
|
|
|
7
9
|
import { ErrorMessage } from '@rescui/form-field';
|
|
8
10
|
import { GroupContext } from './parts/group-context.js';
|
|
9
11
|
import CheckboxControl from './parts/checkbox-control.js';
|
|
10
|
-
import {
|
|
12
|
+
import { useSafeId } from './parts/use-safe-id.js';
|
|
11
13
|
import styles from './parts/checkbox.p.module.css.js';
|
|
12
14
|
const THEME_STYLES = {
|
|
13
15
|
light: styles.themeLight,
|
|
@@ -18,65 +20,184 @@ const SIZE_STYLES = {
|
|
|
18
20
|
m: styles.checkboxSizeM,
|
|
19
21
|
l: styles.checkboxSizeL
|
|
20
22
|
};
|
|
21
|
-
const Checkbox = /*#__PURE__*/React.forwardRef(function Checkbox(
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
23
|
+
const Checkbox = /*#__PURE__*/React.forwardRef(function Checkbox(t0, ref) {
|
|
24
|
+
const $ = c(45);
|
|
25
|
+
let children;
|
|
26
|
+
let className;
|
|
27
|
+
let disabled;
|
|
28
|
+
let error;
|
|
29
|
+
let id;
|
|
30
|
+
let onClick;
|
|
31
|
+
let onMouseEnter;
|
|
32
|
+
let onMouseLeave;
|
|
33
|
+
let restProps;
|
|
34
|
+
let t1;
|
|
35
|
+
let t2;
|
|
36
|
+
let t3;
|
|
37
|
+
let themeFromProps;
|
|
38
|
+
|
|
39
|
+
if ($[0] !== t0) {
|
|
40
|
+
({
|
|
41
|
+
children,
|
|
42
|
+
className,
|
|
43
|
+
id,
|
|
44
|
+
disabled,
|
|
45
|
+
mode: t1,
|
|
46
|
+
size: t2,
|
|
47
|
+
theme: themeFromProps,
|
|
48
|
+
onMouseEnter,
|
|
49
|
+
onMouseLeave,
|
|
50
|
+
onClick,
|
|
51
|
+
error,
|
|
52
|
+
reserveErrorLine: t3,
|
|
53
|
+
...restProps
|
|
54
|
+
} = t0);
|
|
55
|
+
$[0] = t0;
|
|
56
|
+
$[1] = children;
|
|
57
|
+
$[2] = className;
|
|
58
|
+
$[3] = disabled;
|
|
59
|
+
$[4] = error;
|
|
60
|
+
$[5] = id;
|
|
61
|
+
$[6] = onClick;
|
|
62
|
+
$[7] = onMouseEnter;
|
|
63
|
+
$[8] = onMouseLeave;
|
|
64
|
+
$[9] = restProps;
|
|
65
|
+
$[10] = t1;
|
|
66
|
+
$[11] = t2;
|
|
67
|
+
$[12] = t3;
|
|
68
|
+
$[13] = themeFromProps;
|
|
69
|
+
} else {
|
|
70
|
+
children = $[1];
|
|
71
|
+
className = $[2];
|
|
72
|
+
disabled = $[3];
|
|
73
|
+
error = $[4];
|
|
74
|
+
id = $[5];
|
|
75
|
+
onClick = $[6];
|
|
76
|
+
onMouseEnter = $[7];
|
|
77
|
+
onMouseLeave = $[8];
|
|
78
|
+
restProps = $[9];
|
|
79
|
+
t1 = $[10];
|
|
80
|
+
t2 = $[11];
|
|
81
|
+
t3 = $[12];
|
|
82
|
+
themeFromProps = $[13];
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
const mode = t1 === undefined ? "classic" : t1;
|
|
86
|
+
const propsSize = t2 === undefined ? "m" : t2;
|
|
87
|
+
const reserveErrorLine = t3 === undefined ? false : t3;
|
|
40
88
|
const theme = useThemeWithUndefined(themeFromProps);
|
|
41
89
|
const {
|
|
42
90
|
inGroup,
|
|
43
91
|
size: contextSize
|
|
44
92
|
} = useContext(GroupContext);
|
|
45
93
|
const size = !inGroup ? propsSize : contextSize || propsSize;
|
|
46
|
-
const uniqueId = `checkbox-list-${
|
|
94
|
+
const uniqueId = `checkbox-list-${useSafeId()}`;
|
|
47
95
|
const errorId = `${id ? id : uniqueId}-error`;
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
96
|
+
const t4 = THEME_STYLES[theme];
|
|
97
|
+
const t5 = SIZE_STYLES[size];
|
|
98
|
+
let t6;
|
|
99
|
+
|
|
100
|
+
if ($[14] !== className || $[15] !== t4 || $[16] !== t5) {
|
|
101
|
+
t6 = cn(className, styles.container, t4, t5);
|
|
102
|
+
$[14] = className;
|
|
103
|
+
$[15] = t4;
|
|
104
|
+
$[16] = t5;
|
|
105
|
+
$[17] = t6;
|
|
106
|
+
} else {
|
|
107
|
+
t6 = $[17];
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
const t7 = Boolean(error);
|
|
111
|
+
let t8;
|
|
112
|
+
|
|
113
|
+
if ($[18] !== disabled || $[19] !== errorId || $[20] !== mode || $[21] !== ref || $[22] !== restProps || $[23] !== size || $[24] !== t7 || $[25] !== theme) {
|
|
114
|
+
t8 = /*#__PURE__*/React.createElement(CheckboxControl, _extends({
|
|
64
115
|
ref: ref,
|
|
65
116
|
disabled: disabled,
|
|
66
117
|
size: size,
|
|
67
118
|
mode: mode,
|
|
68
119
|
theme: theme,
|
|
69
|
-
isError:
|
|
120
|
+
isError: t7,
|
|
70
121
|
errorId: errorId,
|
|
71
|
-
notUseLabelTag: true
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
122
|
+
notUseLabelTag: true
|
|
123
|
+
}, restProps));
|
|
124
|
+
$[18] = disabled;
|
|
125
|
+
$[19] = errorId;
|
|
126
|
+
$[20] = mode;
|
|
127
|
+
$[21] = ref;
|
|
128
|
+
$[22] = restProps;
|
|
129
|
+
$[23] = size;
|
|
130
|
+
$[24] = t7;
|
|
131
|
+
$[25] = theme;
|
|
132
|
+
$[26] = t8;
|
|
133
|
+
} else {
|
|
134
|
+
t8 = $[26];
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
let t9;
|
|
138
|
+
|
|
139
|
+
if ($[27] !== children || $[28] !== disabled || $[29] !== onClick || $[30] !== onMouseEnter || $[31] !== onMouseLeave || $[32] !== size || $[33] !== t8 || $[34] !== theme) {
|
|
140
|
+
t9 = /*#__PURE__*/React.createElement(MenuItem, {
|
|
141
|
+
tag: "label",
|
|
142
|
+
mode: "clear",
|
|
143
|
+
size: size,
|
|
144
|
+
theme: theme,
|
|
145
|
+
disabled: disabled,
|
|
146
|
+
onMouseEnter: onMouseEnter,
|
|
147
|
+
onMouseLeave: onMouseLeave,
|
|
148
|
+
onClick: onClick,
|
|
149
|
+
tabIndex: null,
|
|
150
|
+
icon: t8
|
|
151
|
+
}, children);
|
|
152
|
+
$[27] = children;
|
|
153
|
+
$[28] = disabled;
|
|
154
|
+
$[29] = onClick;
|
|
155
|
+
$[30] = onMouseEnter;
|
|
156
|
+
$[31] = onMouseLeave;
|
|
157
|
+
$[32] = size;
|
|
158
|
+
$[33] = t8;
|
|
159
|
+
$[34] = theme;
|
|
160
|
+
$[35] = t9;
|
|
161
|
+
} else {
|
|
162
|
+
t9 = $[35];
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
let t10;
|
|
166
|
+
|
|
167
|
+
if ($[36] !== error || $[37] !== errorId || $[38] !== reserveErrorLine) {
|
|
168
|
+
t10 = /*#__PURE__*/React.createElement(ErrorMessage, {
|
|
169
|
+
id: errorId,
|
|
170
|
+
className: styles.errorMessage,
|
|
171
|
+
"data-test": "checkbox__error",
|
|
172
|
+
reserveLine: reserveErrorLine
|
|
173
|
+
}, error);
|
|
174
|
+
$[36] = error;
|
|
175
|
+
$[37] = errorId;
|
|
176
|
+
$[38] = reserveErrorLine;
|
|
177
|
+
$[39] = t10;
|
|
178
|
+
} else {
|
|
179
|
+
t10 = $[39];
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
let t11;
|
|
183
|
+
|
|
184
|
+
if ($[40] !== id || $[41] !== t10 || $[42] !== t6 || $[43] !== t9) {
|
|
185
|
+
t11 = /*#__PURE__*/React.createElement("div", {
|
|
186
|
+
className: t6,
|
|
187
|
+
id: id,
|
|
188
|
+
"data-test": "checkbox__wrapper",
|
|
189
|
+
"data-rs-internal": "checkbox"
|
|
190
|
+
}, t9, t10);
|
|
191
|
+
$[40] = id;
|
|
192
|
+
$[41] = t10;
|
|
193
|
+
$[42] = t6;
|
|
194
|
+
$[43] = t9;
|
|
195
|
+
$[44] = t11;
|
|
196
|
+
} else {
|
|
197
|
+
t11 = $[44];
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
return t11;
|
|
80
201
|
});
|
|
81
202
|
Checkbox.propTypes = {
|
|
82
203
|
checked: PropTypes.bool,
|
package/lib/index.css
CHANGED
|
@@ -1,19 +1,24 @@
|
|
|
1
|
-
|
|
1
|
+
@property --_rs-theme-dark-coefficient{
|
|
2
|
+
syntax:'<number>';
|
|
3
|
+
inherits:true;
|
|
4
|
+
initial-value:0;
|
|
5
|
+
}
|
|
6
|
+
._themeLight_4xy4v3_8{
|
|
2
7
|
--rs-theme-dark:0;
|
|
3
8
|
}
|
|
4
|
-
.
|
|
9
|
+
._themeDark_4xy4v3_11{
|
|
5
10
|
--rs-theme-dark:1;
|
|
6
11
|
}
|
|
7
|
-
.
|
|
12
|
+
._checkboxSizeS_4xy4v3_15{
|
|
8
13
|
--_rs-checkbox-parts-offset:4px;
|
|
9
14
|
}
|
|
10
|
-
.
|
|
15
|
+
._checkboxSizeM_4xy4v3_18{
|
|
11
16
|
--_rs-checkbox-parts-offset:8px;
|
|
12
17
|
}
|
|
13
|
-
.
|
|
18
|
+
._checkboxSizeL_4xy4v3_21{
|
|
14
19
|
--_rs-checkbox-parts-offset:8px;
|
|
15
20
|
}
|
|
16
|
-
.
|
|
21
|
+
._sizeS_4xy4v3_25{
|
|
17
22
|
--_rs-checkbox-ci-mark-s-display:initial;
|
|
18
23
|
--_rs-checkbox-ci-mark-m-display:none;
|
|
19
24
|
--_rs-checkbox-ci-mark-l-display:none;
|
|
@@ -21,7 +26,7 @@
|
|
|
21
26
|
--_rs-checkbox-ci-shadow-size:3px;
|
|
22
27
|
--_rs-checkbox-ci-indeterminate-icon-border-width:6px 3px;
|
|
23
28
|
}
|
|
24
|
-
.
|
|
29
|
+
._sizeM_4xy4v3_28{
|
|
25
30
|
--_rs-checkbox-ci-mark-s-display:none;
|
|
26
31
|
--_rs-checkbox-ci-mark-m-display:initial;
|
|
27
32
|
--_rs-checkbox-ci-mark-l-display:none;
|
|
@@ -29,7 +34,7 @@
|
|
|
29
34
|
--_rs-checkbox-ci-shadow-size:3px;
|
|
30
35
|
--_rs-checkbox-ci-indeterminate-icon-border-width:8px 3px;
|
|
31
36
|
}
|
|
32
|
-
.
|
|
37
|
+
._sizeL_4xy4v3_31{
|
|
33
38
|
--_rs-checkbox-ci-mark-s-display:none;
|
|
34
39
|
--_rs-checkbox-ci-mark-m-display:none;
|
|
35
40
|
--_rs-checkbox-ci-mark-l-display:initial;
|
|
@@ -37,14 +42,14 @@
|
|
|
37
42
|
--_rs-checkbox-ci-shadow-size:4px;
|
|
38
43
|
--_rs-checkbox-ci-indeterminate-icon-border-width:9px 3px;
|
|
39
44
|
}
|
|
40
|
-
.
|
|
45
|
+
._classic_4xy4v3_35{
|
|
41
46
|
--_rs-checkbox-ci-mark-color:#FFFFFF;
|
|
42
47
|
--_rs-checkbox-ci-indeterminate-icon-border-color:var(--_rs-color-primary);
|
|
43
48
|
--_rs-checkbox-ci-indeterminate-icon-background-color:#FFFFFF;
|
|
44
49
|
--_rs-checkbox-ci-checked-icon-border-color:var(--_rs-color-primary);
|
|
45
50
|
--_rs-checkbox-ci-hover-icon-box-shadow:var(--_rs-color-primary-t-fog);
|
|
46
51
|
}
|
|
47
|
-
.
|
|
52
|
+
._rock_4xy4v3_38{
|
|
48
53
|
--_rs-checkbox-ci-mark-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));
|
|
49
54
|
--_rs-checkbox-ci-indeterminate-icon-border-color:rgb(
|
|
50
55
|
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)
|
|
@@ -60,7 +65,7 @@
|
|
|
60
65
|
0.1
|
|
61
66
|
);
|
|
62
67
|
}
|
|
63
|
-
.
|
|
68
|
+
._checkbox_4xy4v3_15{
|
|
64
69
|
--_rs-theme-dark:var(
|
|
65
70
|
--_rs-internal-force-theme-dark-consult-rescui-before-using,
|
|
66
71
|
var(--rs-theme-dark, 0)
|
|
@@ -70,7 +75,7 @@
|
|
|
70
75
|
--_rs-theme-light-coefficient:calc(1 - var(--_rs-theme-dark-coefficient));
|
|
71
76
|
}
|
|
72
77
|
@supports (color: color-mix(in srgb, #fff 50%, #000 50%)){
|
|
73
|
-
.
|
|
78
|
+
._checkbox_4xy4v3_15{
|
|
74
79
|
--_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)));
|
|
75
80
|
--_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)));
|
|
76
81
|
--_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)));
|
|
@@ -79,7 +84,7 @@
|
|
|
79
84
|
}
|
|
80
85
|
}
|
|
81
86
|
@supports not (color: color-mix(in srgb, #fff 50%, #000 50%)){
|
|
82
|
-
.
|
|
87
|
+
._checkbox_4xy4v3_15{
|
|
83
88
|
--_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);
|
|
84
89
|
--_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));
|
|
85
90
|
--_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));
|
|
@@ -88,18 +93,18 @@
|
|
|
88
93
|
}
|
|
89
94
|
}
|
|
90
95
|
@supports (color: color-mix(in srgb, #fff 50%, #000 50%)){
|
|
91
|
-
.
|
|
96
|
+
._checkbox_4xy4v3_15{
|
|
92
97
|
--_rs-color-danger:color-mix(in srgb, #CC1400 calc(100%*var(--_rs-theme-light-coefficient, 1)), #FF6553 calc(100%*var(--_rs-theme-dark-coefficient, 0)));
|
|
93
98
|
--_rs-color-danger-bg:color-mix(in srgb, rgba(204,20,0, 0.2) calc(100%*var(--_rs-theme-light-coefficient, 1)), rgba(255,101,83, 0.2) calc(100%*var(--_rs-theme-dark-coefficient, 0)));
|
|
94
99
|
}
|
|
95
100
|
}
|
|
96
101
|
@supports not (color: color-mix(in srgb, #fff 50%, #000 50%)){
|
|
97
|
-
.
|
|
102
|
+
._checkbox_4xy4v3_15{
|
|
98
103
|
--_rs-color-danger:rgb(calc(var(--_rs-theme-light-coefficient, 1)*204 + var(--_rs-theme-dark-coefficient, 0)*255), calc(var(--_rs-theme-light-coefficient, 1)*20 + var(--_rs-theme-dark-coefficient, 0)*101), calc(var(--_rs-theme-light-coefficient, 1)*0 + var(--_rs-theme-dark-coefficient, 0)*83));
|
|
99
104
|
--_rs-color-danger-bg:rgba(calc(var(--_rs-theme-light-coefficient, 1)*204 + var(--_rs-theme-dark-coefficient, 0)*255), calc(var(--_rs-theme-light-coefficient, 1)*20 + var(--_rs-theme-dark-coefficient, 0)*101), calc(var(--_rs-theme-light-coefficient, 1)*0 + var(--_rs-theme-dark-coefficient, 0)*83), 0.2);
|
|
100
105
|
}
|
|
101
106
|
}
|
|
102
|
-
.
|
|
107
|
+
._checkbox_4xy4v3_15 {
|
|
103
108
|
|
|
104
109
|
position:relative;
|
|
105
110
|
|
|
@@ -114,7 +119,7 @@
|
|
|
114
119
|
|
|
115
120
|
text-align:left;
|
|
116
121
|
}
|
|
117
|
-
.
|
|
122
|
+
._input_4xy4v3_65{
|
|
118
123
|
position:absolute;
|
|
119
124
|
z-index:-1;
|
|
120
125
|
|
|
@@ -124,7 +129,7 @@
|
|
|
124
129
|
|
|
125
130
|
border:0;
|
|
126
131
|
}
|
|
127
|
-
.
|
|
132
|
+
._icon_4xy4v3_76{
|
|
128
133
|
display:inline-block;
|
|
129
134
|
float:left;
|
|
130
135
|
|
|
@@ -140,17 +145,17 @@
|
|
|
140
145
|
|
|
141
146
|
transition:border-width var(--rs-transition-function, ease-out) 100ms, border-color var(--rs-transition-function, ease-out) 100ms;
|
|
142
147
|
}
|
|
143
|
-
.
|
|
148
|
+
._enabled_4xy4v3_93 ._icon_4xy4v3_76{
|
|
144
149
|
cursor:pointer;
|
|
145
150
|
}
|
|
146
|
-
.
|
|
151
|
+
._indeterminate_4xy4v3_97 ._icon_4xy4v3_76{
|
|
147
152
|
border-width:var(--_rs-checkbox-ci-indeterminate-icon-border-width);
|
|
148
153
|
}
|
|
149
|
-
.
|
|
154
|
+
._input_4xy4v3_65:checked + ._icon_4xy4v3_76{
|
|
150
155
|
border-width:calc(var(--_rs-checkbox-ci-size)/2);
|
|
151
156
|
}
|
|
152
|
-
.
|
|
153
|
-
.
|
|
157
|
+
._disabled_4xy4v3_105 ._icon_4xy4v3_76._icon_4xy4v3_76,
|
|
158
|
+
._input_4xy4v3_65:disabled + ._icon_4xy4v3_76{
|
|
154
159
|
border-color:rgb(calc(186 - var(--_rs-theme-dark-coefficient, 0)*92), calc(186 - var(--_rs-theme-dark-coefficient, 0)*92), calc(187 - var(--_rs-theme-dark-coefficient, 0)*91));
|
|
155
160
|
|
|
156
161
|
cursor:not-allowed;
|
|
@@ -158,27 +163,27 @@
|
|
|
158
163
|
|
|
159
164
|
background:rgb(calc(244 - var(--_rs-theme-dark-coefficient, 0)*196), calc(244 - var(--_rs-theme-dark-coefficient, 0)*196), calc(244 - var(--_rs-theme-dark-coefficient, 0)*193));
|
|
160
165
|
}
|
|
161
|
-
.
|
|
162
|
-
.
|
|
166
|
+
._input_4xy4v3_65:hover + ._icon_4xy4v3_76,
|
|
167
|
+
._enabled_4xy4v3_93:hover ._icon_4xy4v3_76{
|
|
163
168
|
background:rgb(calc(255 - var(--_rs-theme-dark-coefficient, 0)*184), calc(255 - var(--_rs-theme-dark-coefficient, 0)*184), calc(255 - var(--_rs-theme-dark-coefficient, 0)*182));
|
|
164
169
|
}
|
|
165
|
-
.
|
|
166
|
-
.
|
|
167
|
-
.
|
|
170
|
+
._enabled_4xy4v3_93._indeterminate_4xy4v3_97 ._icon_4xy4v3_76,
|
|
171
|
+
._enabled_4xy4v3_93._indeterminate_4xy4v3_97:hover ._icon_4xy4v3_76,
|
|
172
|
+
._enabled_4xy4v3_93._indeterminate_4xy4v3_97 ._input_4xy4v3_65:hover + ._icon_4xy4v3_76{
|
|
168
173
|
border-color:var(--_rs-checkbox-ci-indeterminate-icon-border-color);
|
|
169
174
|
|
|
170
175
|
background-color:var(
|
|
171
176
|
--_rs-checkbox-ci-indeterminate-icon-background-color
|
|
172
177
|
);
|
|
173
178
|
}
|
|
174
|
-
.
|
|
179
|
+
._enabled_4xy4v3_93 ._input_4xy4v3_65:checked + ._icon_4xy4v3_76._icon_4xy4v3_76{
|
|
175
180
|
border-color:var(--_rs-checkbox-ci-checked-icon-border-color);
|
|
176
181
|
}
|
|
177
|
-
.
|
|
178
|
-
.
|
|
182
|
+
._error_4xy4v3_134 ._icon_4xy4v3_76._icon_4xy4v3_76._icon_4xy4v3_76._icon_4xy4v3_76,
|
|
183
|
+
._input_4xy4v3_65:invalid + ._icon_4xy4v3_76._icon_4xy4v3_76._icon_4xy4v3_76{
|
|
179
184
|
border-color:var(--_rs-color-danger);
|
|
180
185
|
}
|
|
181
|
-
.
|
|
186
|
+
._icon_4xy4v3_76::after{
|
|
182
187
|
position:absolute;
|
|
183
188
|
top:var(--_rs-checkbox-ci-shadow-size);
|
|
184
189
|
right:var(--_rs-checkbox-ci-shadow-size);
|
|
@@ -187,15 +192,15 @@
|
|
|
187
192
|
|
|
188
193
|
content:'';
|
|
189
194
|
}
|
|
190
|
-
.
|
|
191
|
-
label:hover .
|
|
192
|
-
.
|
|
195
|
+
._enabled_4xy4v3_93:hover > ._icon_4xy4v3_76::after,
|
|
196
|
+
label:hover ._enabled_4xy4v3_93 > ._icon_4xy4v3_76::after,
|
|
197
|
+
._enabled_4xy4v3_93 ._input_4xy4v3_65:active + ._icon_4xy4v3_76::after{
|
|
193
198
|
box-shadow:0 0 0 var(--_rs-checkbox-ci-shadow-size) var(--_rs-checkbox-ci-hover-icon-box-shadow);
|
|
194
199
|
}
|
|
195
|
-
.
|
|
200
|
+
._enabled_4xy4v3_93 ._input_4xy4v3_65:focus[data-focus-method='key'] + ._icon_4xy4v3_76::after{
|
|
196
201
|
box-shadow:0 0 0 1px rgb(calc(232 - var(--_rs-theme-dark-coefficient, 0)*184), calc(232 - var(--_rs-theme-dark-coefficient, 0)*184), calc(232 - var(--_rs-theme-dark-coefficient, 0)*181)), 0 0 0 var(--_rs-checkbox-ci-shadow-size) var(--_rs-color-primary-t-dim);
|
|
197
202
|
}
|
|
198
|
-
.
|
|
203
|
+
._checkmark_4xy4v3_161{
|
|
199
204
|
position:absolute;
|
|
200
205
|
top:var(--_rs-checkbox-ci-shadow-size);
|
|
201
206
|
left:var(--_rs-checkbox-ci-shadow-size);
|
|
@@ -206,36 +211,41 @@
|
|
|
206
211
|
height:var(--_rs-checkbox-ci-size);
|
|
207
212
|
fill:currentColor;
|
|
208
213
|
}
|
|
209
|
-
.
|
|
214
|
+
._enabled_4xy4v3_93 ._checkmark_4xy4v3_161{
|
|
210
215
|
color:var(--_rs-checkbox-ci-mark-color);
|
|
211
216
|
}
|
|
212
|
-
.
|
|
213
|
-
.
|
|
217
|
+
._disabled_4xy4v3_105 ._checkmark_4xy4v3_161,
|
|
218
|
+
._input_4xy4v3_65:disabled + ._icon_4xy4v3_76 > ._checkmark_4xy4v3_161{
|
|
214
219
|
color:rgb(calc(244 - var(--_rs-theme-dark-coefficient, 0)*196), calc(244 - var(--_rs-theme-dark-coefficient, 0)*196), calc(244 - var(--_rs-theme-dark-coefficient, 0)*193));
|
|
215
220
|
}
|
|
216
|
-
.
|
|
221
|
+
._input_4xy4v3_65:checked + ._icon_4xy4v3_76 > ._checkmark_4xy4v3_161{
|
|
217
222
|
display:block;
|
|
218
223
|
}
|
|
219
|
-
.
|
|
224
|
+
._markS_4xy4v3_186{
|
|
220
225
|
display:var(--_rs-checkbox-ci-mark-s-display);
|
|
221
226
|
}
|
|
222
|
-
.
|
|
227
|
+
._markM_4xy4v3_189{
|
|
223
228
|
display:var(--_rs-checkbox-ci-mark-m-display);
|
|
224
229
|
}
|
|
225
|
-
.
|
|
230
|
+
._markL_4xy4v3_192{
|
|
226
231
|
display:var(--_rs-checkbox-ci-mark-l-display);
|
|
227
232
|
}
|
|
228
|
-
.
|
|
233
|
+
._errorMessage_4xy4v3_196{
|
|
229
234
|
margin-top:var(--_rs-checkbox-parts-offset);
|
|
230
235
|
}
|
|
231
236
|
|
|
232
|
-
|
|
237
|
+
@property --_rs-theme-dark-coefficient{
|
|
238
|
+
syntax:'<number>';
|
|
239
|
+
inherits:true;
|
|
240
|
+
initial-value:0;
|
|
241
|
+
}
|
|
242
|
+
._themeLight_1nd8rkm_6{
|
|
233
243
|
--rs-theme-dark:0;
|
|
234
244
|
}
|
|
235
|
-
.
|
|
245
|
+
._themeDark_1nd8rkm_9{
|
|
236
246
|
--rs-theme-dark:1;
|
|
237
247
|
}
|
|
238
|
-
.
|
|
248
|
+
._container_1nd8rkm_13{
|
|
239
249
|
--_rs-theme-dark:var(
|
|
240
250
|
--_rs-internal-force-theme-dark-consult-rescui-before-using,
|
|
241
251
|
var(--rs-theme-dark, 0)
|
|
@@ -245,7 +255,7 @@
|
|
|
245
255
|
--_rs-theme-light-coefficient:calc(1 - var(--_rs-theme-dark-coefficient));
|
|
246
256
|
}
|
|
247
257
|
@supports (color: color-mix(in srgb, #fff 50%, #000 50%)){
|
|
248
|
-
.
|
|
258
|
+
._container_1nd8rkm_13{
|
|
249
259
|
--_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)));
|
|
250
260
|
--_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)));
|
|
251
261
|
--_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)));
|
|
@@ -254,7 +264,7 @@
|
|
|
254
264
|
}
|
|
255
265
|
}
|
|
256
266
|
@supports not (color: color-mix(in srgb, #fff 50%, #000 50%)){
|
|
257
|
-
.
|
|
267
|
+
._container_1nd8rkm_13{
|
|
258
268
|
--_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);
|
|
259
269
|
--_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));
|
|
260
270
|
--_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));
|
|
@@ -262,11 +272,11 @@
|
|
|
262
272
|
--_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));
|
|
263
273
|
}
|
|
264
274
|
}
|
|
265
|
-
.
|
|
275
|
+
._sizeS_1nd8rkm_18{
|
|
266
276
|
--_rs-checkbox-list-label-offset:4px;
|
|
267
277
|
--_rs-checkbox-list-left-offset:28px;
|
|
268
278
|
}
|
|
269
|
-
.
|
|
279
|
+
._sizeS_1nd8rkm_18 [data-rs-internal='checkbox-list__label']{
|
|
270
280
|
--_rs-typography-letter-spacing:var(--rs-text-3-letter-spacing, 0.0045em);
|
|
271
281
|
--_rs-typography-text-transform:initial;
|
|
272
282
|
--_rs-typography-font-variant-numeric:initial;
|
|
@@ -301,7 +311,7 @@
|
|
|
301
311
|
--_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
|
|
302
312
|
--_rs-typography-link-border-bottom-width-from-text:1px;
|
|
303
313
|
}
|
|
304
|
-
.
|
|
314
|
+
._sizeS_1nd8rkm_18 [data-rs-internal='checkbox-list__bold-label']{
|
|
305
315
|
--_rs-typography-letter-spacing:var(--rs-h5-letter-spacing, normal);
|
|
306
316
|
--_rs-typography-text-transform:initial;
|
|
307
317
|
--_rs-typography-font-variant-numeric:initial;
|
|
@@ -333,11 +343,11 @@
|
|
|
333
343
|
--_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
|
|
334
344
|
--_rs-typography-link-border-bottom-width-from-text:2px;
|
|
335
345
|
}
|
|
336
|
-
.
|
|
346
|
+
._sizeM_1nd8rkm_21{
|
|
337
347
|
--_rs-checkbox-list-label-offset:8px;
|
|
338
348
|
--_rs-checkbox-list-left-offset:32px;
|
|
339
349
|
}
|
|
340
|
-
.
|
|
350
|
+
._sizeM_1nd8rkm_21 [data-rs-internal='checkbox-list__label']{
|
|
341
351
|
--_rs-typography-letter-spacing:var(--rs-text-2-letter-spacing, 0.0015em);
|
|
342
352
|
--_rs-typography-text-transform:initial;
|
|
343
353
|
--_rs-typography-font-variant-numeric:initial;
|
|
@@ -376,11 +386,11 @@
|
|
|
376
386
|
--_rs-typography-link-border-bottom-width-from-text:1px;
|
|
377
387
|
}
|
|
378
388
|
@media screen and (max-width: 640px){
|
|
379
|
-
.
|
|
389
|
+
._sizeM_1nd8rkm_21 [data-rs-internal='checkbox-list__label']{
|
|
380
390
|
--_rs-typography-text-2-sm-list-li-margin-top-from-text:12px;
|
|
381
391
|
}
|
|
382
392
|
}
|
|
383
|
-
.
|
|
393
|
+
._sizeM_1nd8rkm_21 [data-rs-internal='checkbox-list__bold-label']{
|
|
384
394
|
--_rs-typography-letter-spacing:var(--rs-h4-letter-spacing, normal);
|
|
385
395
|
--_rs-typography-text-transform:initial;
|
|
386
396
|
--_rs-typography-font-variant-numeric:initial;
|
|
@@ -412,11 +422,11 @@
|
|
|
412
422
|
--_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
|
|
413
423
|
--_rs-typography-link-border-bottom-width-from-text:2px;
|
|
414
424
|
}
|
|
415
|
-
.
|
|
425
|
+
._sizeL_1nd8rkm_24{
|
|
416
426
|
--_rs-checkbox-list-label-offset:12px;
|
|
417
427
|
--_rs-checkbox-list-left-offset:44px;
|
|
418
428
|
}
|
|
419
|
-
.
|
|
429
|
+
._sizeL_1nd8rkm_24 [data-rs-internal='checkbox-list__label']{
|
|
420
430
|
--_rs-typography-letter-spacing:var(--rs-text-1-letter-spacing, normal);
|
|
421
431
|
--_rs-typography-text-transform:initial;
|
|
422
432
|
--_rs-typography-font-variant-numeric:initial;
|
|
@@ -455,11 +465,11 @@
|
|
|
455
465
|
--_rs-typography-link-border-bottom-width-from-text:1px;
|
|
456
466
|
}
|
|
457
467
|
@media screen and (max-width: 640px){
|
|
458
|
-
.
|
|
468
|
+
._sizeL_1nd8rkm_24 [data-rs-internal='checkbox-list__label']{
|
|
459
469
|
--_rs-typography-text-1-sm-list-li-margin-top-from-text:16px;
|
|
460
470
|
}
|
|
461
471
|
}
|
|
462
|
-
.
|
|
472
|
+
._sizeL_1nd8rkm_24 [data-rs-internal='checkbox-list__bold-label']{
|
|
463
473
|
--_rs-typography-letter-spacing:var(--rs-h3-letter-spacing, normal);
|
|
464
474
|
--_rs-typography-text-transform:initial;
|
|
465
475
|
--_rs-typography-font-variant-numeric:initial;
|
|
@@ -491,10 +501,10 @@
|
|
|
491
501
|
--_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
|
|
492
502
|
--_rs-typography-link-border-bottom-width-from-text:2px;
|
|
493
503
|
}
|
|
494
|
-
.
|
|
504
|
+
._inner_1nd8rkm_28{
|
|
495
505
|
--rs-out-checkbox-list-left-offset:var(--_rs-checkbox-list-left-offset);
|
|
496
506
|
}
|
|
497
|
-
.
|
|
507
|
+
._label_1nd8rkm_32{
|
|
498
508
|
letter-spacing:var(
|
|
499
509
|
--rs-text-base-letter-spacing,
|
|
500
510
|
var(--_rs-typography-letter-spacing)
|
|
@@ -514,23 +524,23 @@
|
|
|
514
524
|
margin:0 0 var(--_rs-checkbox-list-label-offset) 0;
|
|
515
525
|
padding:0;
|
|
516
526
|
}
|
|
517
|
-
.
|
|
527
|
+
._disabled_1nd8rkm_39 ._label_1nd8rkm_32{
|
|
518
528
|
color:var(
|
|
519
529
|
--rs-color-pale,
|
|
520
530
|
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)
|
|
521
531
|
);
|
|
522
532
|
}
|
|
523
|
-
.
|
|
533
|
+
._footer_1nd8rkm_44{
|
|
524
534
|
display:flex;
|
|
525
535
|
flex-direction:column;
|
|
526
536
|
}
|
|
527
|
-
.
|
|
537
|
+
._errorMessage_1nd8rkm_49{
|
|
528
538
|
order:99;
|
|
529
539
|
}
|
|
530
|
-
.
|
|
540
|
+
._error_1nd8rkm_49 ._errorMessage_1nd8rkm_49{
|
|
531
541
|
order:0;
|
|
532
542
|
}
|
|
533
|
-
.
|
|
543
|
+
._note_1nd8rkm_58{
|
|
534
544
|
--_rs-typography-letter-spacing:var(--rs-text-3-letter-spacing, 0.0045em);
|
|
535
545
|
--_rs-typography-text-transform:initial;
|
|
536
546
|
--_rs-typography-font-variant-numeric:initial;
|
|
@@ -590,7 +600,7 @@
|
|
|
590
600
|
|
|
591
601
|
order:1;
|
|
592
602
|
}
|
|
593
|
-
.
|
|
603
|
+
._disabled_1nd8rkm_39 ._note_1nd8rkm_58{
|
|
594
604
|
--_rs-typography-hardness-color:var(
|
|
595
605
|
--rs-color-pale,
|
|
596
606
|
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)
|