ar-design 0.2.84 → 0.2.85
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/dist/assets/css/components/form/checkbox/checkbox.css +18 -0
- package/dist/assets/css/components/form/checkbox/core/border.css +198 -121
- package/dist/assets/css/components/form/radio/core/border.css +252 -0
- package/dist/assets/css/components/form/radio/radio.css +2 -2
- package/dist/components/form/checkbox/index.js +4 -4
- package/dist/components/form/radio/IProps.d.ts +2 -2
- package/dist/components/form/radio/index.js +2 -2
- package/dist/libs/types/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -18,6 +18,9 @@
|
|
|
18
18
|
min-width: 1rem;
|
|
19
19
|
min-height: 1rem;
|
|
20
20
|
}
|
|
21
|
+
.ar-checkbox-wrapper > label > :is(input[type="checkbox"]):checked + span > .ar-checkbox {
|
|
22
|
+
z-index: 2;
|
|
23
|
+
}
|
|
21
24
|
.ar-checkbox-wrapper > label > :is(input[type="checkbox"]):checked + span > .ar-checkbox::before {
|
|
22
25
|
position: absolute;
|
|
23
26
|
top: 50%;
|
|
@@ -28,6 +31,21 @@
|
|
|
28
31
|
width: 0.25rem;
|
|
29
32
|
height: 0.5rem;
|
|
30
33
|
border: solid 1px transparent;
|
|
34
|
+
border-right-color: var(--white);
|
|
35
|
+
border-bottom-color: var(--white);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.ar-checkbox-wrapper > label > span > .trace {
|
|
39
|
+
position: absolute;
|
|
40
|
+
top: 50%;
|
|
41
|
+
left: 50%;
|
|
42
|
+
transform: translate(-50%, -50%);
|
|
43
|
+
display: inline-block;
|
|
44
|
+
content: "";
|
|
45
|
+
width: 1rem;
|
|
46
|
+
height: 1rem;
|
|
47
|
+
border-radius: var(--border-radius-pill);
|
|
48
|
+
z-index: 1;
|
|
31
49
|
}
|
|
32
50
|
|
|
33
51
|
@import url("./core/border.css");
|
|
@@ -1,175 +1,252 @@
|
|
|
1
1
|
/* #region Border Color -> BLUE */
|
|
2
|
-
.ar-checkbox-wrapper
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
2
|
+
.ar-checkbox-wrapper {
|
|
3
|
+
> label {
|
|
4
|
+
> input[type="checkbox"] {
|
|
5
|
+
&:checked {
|
|
6
|
+
+ span {
|
|
7
|
+
> .ar-checkbox.filled.blue::before {
|
|
8
|
+
border-right-color: var(--white);
|
|
9
|
+
border-bottom-color: var(--white);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
> .ar-checkbox.filled.blue {
|
|
13
|
+
background-color: var(--blue-500);
|
|
14
|
+
box-shadow: 0 0 0 3.5px var(--blue-100);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
13
20
|
}
|
|
14
21
|
/* #endregion */
|
|
15
22
|
/* Border Color -> BLUE */
|
|
16
23
|
|
|
17
24
|
/* #region Border Color -> PURPLE */
|
|
18
|
-
.ar-checkbox-wrapper
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
.ar-checkbox-wrapper {
|
|
26
|
+
> label {
|
|
27
|
+
> input[type="checkbox"] {
|
|
28
|
+
&:checked {
|
|
29
|
+
+ span {
|
|
30
|
+
> .ar-checkbox.filled.purple::before {
|
|
31
|
+
border-right-color: var(--white);
|
|
32
|
+
border-bottom-color: var(--white);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
> .ar-checkbox.filled.purple {
|
|
36
|
+
background-color: var(--purple-500);
|
|
37
|
+
box-shadow: 0 0 0 3.5px var(--purple-100);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
29
43
|
}
|
|
30
44
|
/* #endregion */
|
|
31
45
|
/* Border Color -> PURPLE */
|
|
32
46
|
|
|
33
47
|
/* #region Border Color -> PINK */
|
|
34
|
-
.ar-checkbox-wrapper
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
48
|
+
.ar-checkbox-wrapper {
|
|
49
|
+
> label {
|
|
50
|
+
> input[type="checkbox"] {
|
|
51
|
+
&:checked {
|
|
52
|
+
+ span {
|
|
53
|
+
> .ar-checkbox.filled.pink::before {
|
|
54
|
+
border-right-color: var(--white);
|
|
55
|
+
border-bottom-color: var(--white);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
> .ar-checkbox.filled.pink {
|
|
59
|
+
background-color: var(--pink-500);
|
|
60
|
+
box-shadow: 0 0 0 3.5px var(--pink-100);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
45
66
|
}
|
|
46
67
|
/* #endregion */
|
|
47
68
|
/* Border Color -> PINK */
|
|
48
69
|
|
|
49
70
|
/* #region Border Color -> RED */
|
|
50
|
-
.ar-checkbox-wrapper
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
71
|
+
.ar-checkbox-wrapper {
|
|
72
|
+
> label {
|
|
73
|
+
> input[type="checkbox"] {
|
|
74
|
+
&:checked {
|
|
75
|
+
+ span {
|
|
76
|
+
> .ar-checkbox.filled.red::before {
|
|
77
|
+
border-right-color: var(--white);
|
|
78
|
+
border-bottom-color: var(--white);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
> .ar-checkbox.filled.red {
|
|
82
|
+
background-color: var(--red-500);
|
|
83
|
+
box-shadow: 0 0 0 3.5px var(--red-100);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
61
89
|
}
|
|
62
90
|
/* #endregion */
|
|
63
91
|
/* Border Color -> RED */
|
|
64
92
|
|
|
65
93
|
/* #region Border Color -> ORANGE */
|
|
66
|
-
.ar-checkbox-wrapper
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
94
|
+
.ar-checkbox-wrapper {
|
|
95
|
+
> label {
|
|
96
|
+
> input[type="checkbox"] {
|
|
97
|
+
&:checked {
|
|
98
|
+
+ span {
|
|
99
|
+
> .ar-checkbox.filled.orange::before {
|
|
100
|
+
border-right-color: var(--white);
|
|
101
|
+
border-bottom-color: var(--white);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
> .ar-checkbox.filled.orange {
|
|
105
|
+
background-color: var(--orange-500);
|
|
106
|
+
box-shadow: 0 0 0 3.5px var(--orange-100);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
77
112
|
}
|
|
78
113
|
/* #endregion */
|
|
79
114
|
/* Border Color -> ORANGE */
|
|
80
115
|
|
|
81
116
|
/* #region Border Color -> YELLOW */
|
|
82
|
-
.ar-checkbox-wrapper
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
117
|
+
.ar-checkbox-wrapper {
|
|
118
|
+
> label {
|
|
119
|
+
> input[type="checkbox"] {
|
|
120
|
+
&:checked {
|
|
121
|
+
+ span {
|
|
122
|
+
> .ar-checkbox.filled.yellow::before {
|
|
123
|
+
border-right-color: var(--white);
|
|
124
|
+
border-bottom-color: var(--white);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
> .ar-checkbox.filled.yellow {
|
|
128
|
+
background-color: var(--yellow-500);
|
|
129
|
+
box-shadow: 0 0 0 3.5px var(--yellow-100);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
93
135
|
}
|
|
94
136
|
/* #endregion */
|
|
95
137
|
/* Border Color -> YELLOW */
|
|
96
138
|
|
|
97
139
|
/* #region Border Color -> GREEN */
|
|
98
|
-
.ar-checkbox-wrapper
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
140
|
+
.ar-checkbox-wrapper {
|
|
141
|
+
> label {
|
|
142
|
+
> input[type="checkbox"] {
|
|
143
|
+
&:checked {
|
|
144
|
+
+ span {
|
|
145
|
+
> .ar-checkbox.filled.green::before {
|
|
146
|
+
border-right-color: var(--white);
|
|
147
|
+
border-bottom-color: var(--white);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
> .ar-checkbox.filled.green {
|
|
151
|
+
background-color: var(--green-500);
|
|
152
|
+
box-shadow: 0 0 0 3.5px var(--green-100);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
109
158
|
}
|
|
110
159
|
/* #endregion */
|
|
111
160
|
/* Border Color -> GREEN */
|
|
112
161
|
|
|
113
162
|
/* #region Border Color -> TEAL */
|
|
114
|
-
.ar-checkbox-wrapper
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
163
|
+
.ar-checkbox-wrapper {
|
|
164
|
+
> label {
|
|
165
|
+
> input[type="checkbox"] {
|
|
166
|
+
&:checked {
|
|
167
|
+
+ span {
|
|
168
|
+
> .ar-checkbox.filled.teal::before {
|
|
169
|
+
border-right-color: var(--white);
|
|
170
|
+
border-bottom-color: var(--white);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
> .ar-checkbox.filled.teal {
|
|
174
|
+
background-color: var(--teal-500);
|
|
175
|
+
box-shadow: 0 0 0 3.5px var(--teal-100);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
125
181
|
}
|
|
126
182
|
/* #endregion */
|
|
127
183
|
/* Border Color -> TEAL */
|
|
128
184
|
|
|
129
185
|
/* #region Border Color -> CYAN */
|
|
130
|
-
.ar-checkbox-wrapper
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
186
|
+
.ar-checkbox-wrapper {
|
|
187
|
+
> label {
|
|
188
|
+
> input[type="checkbox"] {
|
|
189
|
+
&:checked {
|
|
190
|
+
+ span {
|
|
191
|
+
> .ar-checkbox.filled.cyan::before {
|
|
192
|
+
border-right-color: var(--white);
|
|
193
|
+
border-bottom-color: var(--white);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
> .ar-checkbox.filled.cyan {
|
|
197
|
+
background-color: var(--cyan-500);
|
|
198
|
+
box-shadow: 0 0 0 3.5px var(--cyan-100);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
141
204
|
}
|
|
142
205
|
/* #endregion */
|
|
143
206
|
/* Border Color -> CYAN */
|
|
144
207
|
|
|
145
208
|
/* #region Border Color -> GRAY */
|
|
146
|
-
.ar-checkbox-wrapper
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
209
|
+
.ar-checkbox-wrapper {
|
|
210
|
+
> label {
|
|
211
|
+
> input[type="checkbox"] {
|
|
212
|
+
&:checked {
|
|
213
|
+
+ span {
|
|
214
|
+
> .ar-checkbox.filled.gray::before {
|
|
215
|
+
border-right-color: var(--white);
|
|
216
|
+
border-bottom-color: var(--white);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
> .ar-checkbox.filled.gray {
|
|
220
|
+
background-color: var(--gray-500);
|
|
221
|
+
box-shadow: 0 0 0 3.5px var(--gray-100);
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
}
|
|
157
227
|
}
|
|
158
228
|
/* #endregion */
|
|
159
229
|
/* Border Color -> GRAY */
|
|
160
230
|
|
|
161
231
|
/* #region Border Color -> LIGHT */
|
|
162
|
-
.ar-checkbox-wrapper
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
232
|
+
.ar-checkbox-wrapper {
|
|
233
|
+
> label {
|
|
234
|
+
> input[type="checkbox"] {
|
|
235
|
+
&:checked {
|
|
236
|
+
+ span {
|
|
237
|
+
> .ar-checkbox.filled.light::before {
|
|
238
|
+
border-right-color: var(--white);
|
|
239
|
+
border-bottom-color: var(--white);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
> .ar-checkbox.filled.light {
|
|
243
|
+
background-color: var(--light-500);
|
|
244
|
+
box-shadow: 0 0 0 3.5px var(--light-100);
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
}
|
|
173
250
|
}
|
|
174
251
|
/* #endregion */
|
|
175
252
|
/* Border Color -> LIGHT */
|
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
/* #region Border Color -> BLUE */
|
|
2
|
+
.ar-radio-wrapper {
|
|
3
|
+
> label {
|
|
4
|
+
> input[type="radio"] {
|
|
5
|
+
&:checked {
|
|
6
|
+
+ span {
|
|
7
|
+
> .ar-radio.filled.blue::before {
|
|
8
|
+
border-right-color: var(--white);
|
|
9
|
+
border-bottom-color: var(--white);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
> .ar-radio.filled.blue {
|
|
13
|
+
background-color: var(--blue-500);
|
|
14
|
+
box-shadow: 0 0 0 3.5px var(--blue-100);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
/* #endregion */
|
|
22
|
+
/* Border Color -> BLUE */
|
|
23
|
+
|
|
24
|
+
/* #region Border Color -> PURPLE */
|
|
25
|
+
.ar-radio-wrapper {
|
|
26
|
+
> label {
|
|
27
|
+
> input[type="radio"] {
|
|
28
|
+
&:checked {
|
|
29
|
+
+ span {
|
|
30
|
+
> .ar-radio.filled.purple::before {
|
|
31
|
+
border-right-color: var(--white);
|
|
32
|
+
border-bottom-color: var(--white);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
> .ar-radio.filled.purple {
|
|
36
|
+
background-color: var(--purple-500);
|
|
37
|
+
box-shadow: 0 0 0 3.5px var(--purple-100);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
/* #endregion */
|
|
45
|
+
/* Border Color -> PURPLE */
|
|
46
|
+
|
|
47
|
+
/* #region Border Color -> PINK */
|
|
48
|
+
.ar-radio-wrapper {
|
|
49
|
+
> label {
|
|
50
|
+
> input[type="radio"] {
|
|
51
|
+
&:checked {
|
|
52
|
+
+ span {
|
|
53
|
+
> .ar-radio.filled.pink::before {
|
|
54
|
+
border-right-color: var(--white);
|
|
55
|
+
border-bottom-color: var(--white);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
> .ar-radio.filled.pink {
|
|
59
|
+
background-color: var(--pink-500);
|
|
60
|
+
box-shadow: 0 0 0 3.5px var(--pink-100);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
/* #endregion */
|
|
68
|
+
/* Border Color -> PINK */
|
|
69
|
+
|
|
70
|
+
/* #region Border Color -> RED */
|
|
71
|
+
.ar-radio-wrapper {
|
|
72
|
+
> label {
|
|
73
|
+
> input[type="radio"] {
|
|
74
|
+
&:checked {
|
|
75
|
+
+ span {
|
|
76
|
+
> .ar-radio.filled.red::before {
|
|
77
|
+
border-right-color: var(--white);
|
|
78
|
+
border-bottom-color: var(--white);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
> .ar-radio.filled.red {
|
|
82
|
+
background-color: var(--red-500);
|
|
83
|
+
box-shadow: 0 0 0 3.5px var(--red-100);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
/* #endregion */
|
|
91
|
+
/* Border Color -> RED */
|
|
92
|
+
|
|
93
|
+
/* #region Border Color -> ORANGE */
|
|
94
|
+
.ar-radio-wrapper {
|
|
95
|
+
> label {
|
|
96
|
+
> input[type="radio"] {
|
|
97
|
+
&:checked {
|
|
98
|
+
+ span {
|
|
99
|
+
> .ar-radio.filled.orange::before {
|
|
100
|
+
border-right-color: var(--white);
|
|
101
|
+
border-bottom-color: var(--white);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
> .ar-radio.filled.orange {
|
|
105
|
+
background-color: var(--orange-500);
|
|
106
|
+
box-shadow: 0 0 0 3.5px var(--orange-100);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
/* #endregion */
|
|
114
|
+
/* Border Color -> ORANGE */
|
|
115
|
+
|
|
116
|
+
/* #region Border Color -> YELLOW */
|
|
117
|
+
.ar-radio-wrapper {
|
|
118
|
+
> label {
|
|
119
|
+
> input[type="radio"] {
|
|
120
|
+
&:checked {
|
|
121
|
+
+ span {
|
|
122
|
+
> .ar-radio.filled.yellow::before {
|
|
123
|
+
border-right-color: var(--white);
|
|
124
|
+
border-bottom-color: var(--white);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
> .ar-radio.filled.yellow {
|
|
128
|
+
background-color: var(--yellow-500);
|
|
129
|
+
box-shadow: 0 0 0 3.5px var(--yellow-100);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
/* #endregion */
|
|
137
|
+
/* Border Color -> YELLOW */
|
|
138
|
+
|
|
139
|
+
/* #region Border Color -> GREEN */
|
|
140
|
+
.ar-radio-wrapper {
|
|
141
|
+
> label {
|
|
142
|
+
> input[type="radio"] {
|
|
143
|
+
&:checked {
|
|
144
|
+
+ span {
|
|
145
|
+
> .ar-radio.filled.green::before {
|
|
146
|
+
border-right-color: var(--white);
|
|
147
|
+
border-bottom-color: var(--white);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
> .ar-radio.filled.green {
|
|
151
|
+
background-color: var(--green-500);
|
|
152
|
+
box-shadow: 0 0 0 3.5px var(--green-100);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
/* #endregion */
|
|
160
|
+
/* Border Color -> GREEN */
|
|
161
|
+
|
|
162
|
+
/* #region Border Color -> TEAL */
|
|
163
|
+
.ar-radio-wrapper {
|
|
164
|
+
> label {
|
|
165
|
+
> input[type="radio"] {
|
|
166
|
+
&:checked {
|
|
167
|
+
+ span {
|
|
168
|
+
> .ar-radio.filled.teal::before {
|
|
169
|
+
border-right-color: var(--white);
|
|
170
|
+
border-bottom-color: var(--white);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
> .ar-radio.filled.teal {
|
|
174
|
+
background-color: var(--teal-500);
|
|
175
|
+
box-shadow: 0 0 0 3.5px var(--teal-100);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
/* #endregion */
|
|
183
|
+
/* Border Color -> TEAL */
|
|
184
|
+
|
|
185
|
+
/* #region Border Color -> CYAN */
|
|
186
|
+
.ar-radio-wrapper {
|
|
187
|
+
> label {
|
|
188
|
+
> input[type="radio"] {
|
|
189
|
+
&:checked {
|
|
190
|
+
+ span {
|
|
191
|
+
> .ar-radio.filled.cyan::before {
|
|
192
|
+
border-right-color: var(--white);
|
|
193
|
+
border-bottom-color: var(--white);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
> .ar-radio.filled.cyan {
|
|
197
|
+
background-color: var(--cyan-500);
|
|
198
|
+
box-shadow: 0 0 0 3.5px var(--cyan-100);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
/* #endregion */
|
|
206
|
+
/* Border Color -> CYAN */
|
|
207
|
+
|
|
208
|
+
/* #region Border Color -> GRAY */
|
|
209
|
+
.ar-radio-wrapper {
|
|
210
|
+
> label {
|
|
211
|
+
> input[type="radio"] {
|
|
212
|
+
&:checked {
|
|
213
|
+
+ span {
|
|
214
|
+
> .ar-radio.filled.gray::before {
|
|
215
|
+
border-right-color: var(--white);
|
|
216
|
+
border-bottom-color: var(--white);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
> .ar-radio.filled.gray {
|
|
220
|
+
background-color: var(--gray-500);
|
|
221
|
+
box-shadow: 0 0 0 3.5px var(--gray-100);
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
/* #endregion */
|
|
229
|
+
/* Border Color -> GRAY */
|
|
230
|
+
|
|
231
|
+
/* #region Border Color -> LIGHT */
|
|
232
|
+
.ar-radio-wrapper {
|
|
233
|
+
> label {
|
|
234
|
+
> input[type="radio"] {
|
|
235
|
+
&:checked {
|
|
236
|
+
+ span {
|
|
237
|
+
> .ar-radio.filled.light::before {
|
|
238
|
+
border-right-color: var(--white);
|
|
239
|
+
border-bottom-color: var(--white);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
> .ar-radio.filled.light {
|
|
243
|
+
background-color: var(--light-500);
|
|
244
|
+
box-shadow: 0 0 0 3.5px var(--light-100);
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
/* #endregion */
|
|
252
|
+
/* Border Color -> LIGHT */
|
|
@@ -19,8 +19,6 @@
|
|
|
19
19
|
min-height: 1rem;
|
|
20
20
|
}
|
|
21
21
|
.ar-radio-wrapper > label > :is(input[type="radio"]):checked + span > .ar-radio {
|
|
22
|
-
background-color: var(--primary);
|
|
23
|
-
box-shadow: 0 0 0 3.5px rgba(var(--primary-rgb), 0.25);
|
|
24
22
|
z-index: 2;
|
|
25
23
|
}
|
|
26
24
|
.ar-radio-wrapper > label > :is(input[type="radio"]):checked + span > .ar-radio::before {
|
|
@@ -49,3 +47,5 @@
|
|
|
49
47
|
border-radius: var(--border-radius-pill);
|
|
50
48
|
z-index: 1;
|
|
51
49
|
}
|
|
50
|
+
|
|
51
|
+
@import url("./core/border.css");
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
import Utils from "../../../libs/infrastructure/shared/Utils";
|
|
3
3
|
import React, { forwardRef, useRef } from "react";
|
|
4
4
|
import "../../../assets/css/components/form/checkbox/checkbox.css";
|
|
5
|
-
const Checkbox = forwardRef(({ label, size = "normal", color, border = { radius: "sm" }, upperCase, ...attributes }, ref) => {
|
|
5
|
+
const Checkbox = forwardRef(({ label, size = "normal", color = "blue", border = { radius: "sm" }, upperCase, ...attributes }, ref) => {
|
|
6
6
|
// refs
|
|
7
7
|
const _checkbox = useRef(null);
|
|
8
8
|
const _checkboxClassName = ["ar-checkbox"];
|
|
9
|
-
|
|
10
|
-
_checkboxClassName.push(...Utils.GetClassName("filled", undefined, isChecked ? color : "light", border, size, undefined, attributes.className));
|
|
9
|
+
_checkboxClassName.push(...Utils.GetClassName("filled", undefined, attributes.checked ? color : "light", border, size, undefined, attributes.className));
|
|
11
10
|
return (React.createElement("div", { className: "ar-checkbox-wrapper" },
|
|
12
11
|
React.createElement("label", null,
|
|
13
12
|
React.createElement("input", { ref: ref, type: "checkbox", ...attributes, size: 0, onChange: (event) => {
|
|
14
13
|
// (() => {
|
|
15
|
-
//
|
|
14
|
+
// const _current = _checkbox.current;
|
|
15
|
+
// if (!_current) return;
|
|
16
16
|
// })();
|
|
17
17
|
(() => attributes.onChange && attributes.onChange(event))();
|
|
18
18
|
} }),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IBorder, IColors, IIcon, ISize,
|
|
1
|
+
import { IBorder, IColors, IIcon, ISize, IUpperCase, IValidation, IVariant } from "../../../libs/types/IGlobalProps";
|
|
2
2
|
import { Status } from "../../../libs/types";
|
|
3
|
-
interface IProps extends IVariant,
|
|
3
|
+
interface IProps extends IVariant, IColors, IBorder, IIcon, ISize, IUpperCase, IValidation, Omit<React.InputHTMLAttributes<HTMLInputElement>, "children" | "size" | "color"> {
|
|
4
4
|
/**
|
|
5
5
|
* Bileşenin başlığı veya etiket metnidir.
|
|
6
6
|
*
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import React, { forwardRef, useRef } from "react";
|
|
3
3
|
import "../../../assets/css/components/form/radio/radio.css";
|
|
4
4
|
import Utils from "../../../libs/infrastructure/shared/Utils";
|
|
5
|
-
const Radio = forwardRef(({ label, size = "normal",
|
|
5
|
+
const Radio = forwardRef(({ label, size = "normal", color = "blue", border = { radius: "pill" }, trace, upperCase, ...attributes }, ref) => {
|
|
6
6
|
// refs
|
|
7
7
|
const _checkbox = useRef(null);
|
|
8
8
|
const _checkboxClassName = ["ar-radio"];
|
|
9
9
|
const _traceClassName = ["trace", "filled"];
|
|
10
|
-
_checkboxClassName.push(...Utils.GetClassName("filled",
|
|
10
|
+
_checkboxClassName.push(...Utils.GetClassName("filled", undefined, attributes.checked ? color : "light", border, size, undefined, attributes.className));
|
|
11
11
|
if (trace && Object.keys(trace).length > 0)
|
|
12
12
|
_traceClassName.push(trace.color);
|
|
13
13
|
return (React.createElement("div", { className: "ar-radio-wrapper" },
|
|
@@ -71,7 +71,7 @@ export type Errors<TData> = Partial<{
|
|
|
71
71
|
export type MimeTypes = "image/jpeg" | "image/png" | "image/gif" | "image/webp" | "image/svg+xml" | "image/bmp" | "image/tiff" | "application/pdf" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.ms-excel" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "application/vnd.openxmlformats-officedocument.presentationml.presentation" | "application/zip" | "application/x-rar-compressed" | "application/x-7z-compressed" | "application/gzip" | "application/json" | "application/xml" | "text/plain" | "text/csv" | "text/html" | "video/mp4" | "video/quicktime" | "video/x-msvideo" | "video/x-matroska" | "video/webm" | "video/x-flv" | "audio/mpeg" | "audio/wav" | "audio/ogg" | "audio/aac" | "audio/flac" | "application/octet-stream";
|
|
72
72
|
export type FileCategory = "image" | "document" | "spreadsheet" | "presentation" | "archive" | "text" | "video" | "audio" | "json" | "xml" | "binary" | "other";
|
|
73
73
|
export type IconVariants = "linear" | "fill";
|
|
74
|
-
export type Icons = "Add" | "ArrowLeft" | "ArrowRight" | "Bold" | "BulletList" | "CameraReels" | "CheckAll" | "CloseCircle" | "CloseSquare" | "CloudUpload" | "Document" | "Download" | "
|
|
74
|
+
export type Icons = "Add" | "ArrowLeft" | "ArrowRight" | "Bold" | "BulletList" | "CameraReels" | "CheckAll" | "CloseCircle" | "CloseSquare" | "CloudUpload" | "Document" | "Download" | "ExclamationCircle" | "ExclamationDiamond" | "Eye" | "File" | "FileEarmark" | "FileTypeCsv" | "FileTypeDoc" | "FileTypeDocx" | "FileTypeHtml" | "FileTypeJson" | "FileTypePdf" | "FileTypePptx" | "FileTypeTxt" | "FileTypeXls" | "FileTypeXlsx" | "FileTypeXml" | "FileTypeZip" | "Filter" | "Folder" | "Import" | "Italic" | "NumberList" | "Strikethrough" | "TextAlingCenter" | "TextAlingLeft" | "TextAlingRight" | "TickCircle" | "Trash" | "Underline" | "Upload" | "Warning" | "XCircle";
|
|
75
75
|
export type PieChartDataType = {
|
|
76
76
|
value: number;
|
|
77
77
|
text: string;
|