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.
@@ -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 > label > :is(input[type="checkbox"], input[type="radio"]):checked + span > .ar-checkbox.filled.blue::before {
3
- border-right-color: var(--white);
4
- border-bottom-color: var(--white);
5
- }
6
- .ar-checkbox-wrapper > label > :is(input[type="checkbox"], input[type="radio"]):checked + span > .ar-checkbox.outlined.blue::before {
7
- border-right-color: var(--blue);
8
- border-bottom-color: var(--blue);
9
- }
10
- .ar-checkbox-wrapper > label > :is(input[type="checkbox"], input[type="radio"]):checked + span > .ar-checkbox.borderless.blue::before {
11
- border-right-color: var(--blue);
12
- border-bottom-color: var(--blue);
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 > label > :is(input[type="checkbox"], input[type="radio"]):checked + span > .ar-checkbox.filled.purple::before {
19
- border-right-color: var(--white);
20
- border-bottom-color: var(--white);
21
- }
22
- .ar-checkbox-wrapper > label > :is(input[type="checkbox"], input[type="radio"]):checked + span > .ar-checkbox.outlined.purple::before {
23
- border-right-color: var(--purple);
24
- border-bottom-color: var(--purple);
25
- }
26
- .ar-checkbox-wrapper > label > :is(input[type="checkbox"], input[type="radio"]):checked + span > .ar-checkbox.borderless.purple::before {
27
- border-right-color: var(--purple);
28
- border-bottom-color: var(--purple);
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 > label > :is(input[type="checkbox"], input[type="radio"]):checked + span > .ar-checkbox.filled.pink::before {
35
- border-right-color: var(--white);
36
- border-bottom-color: var(--white);
37
- }
38
- .ar-checkbox-wrapper > label > :is(input[type="checkbox"], input[type="radio"]):checked + span > .ar-checkbox.outlined.pink::before {
39
- border-right-color: var(--pink);
40
- border-bottom-color: var(--pink);
41
- }
42
- .ar-checkbox-wrapper > label > :is(input[type="checkbox"], input[type="radio"]):checked + span > .ar-checkbox.borderless.pink::before {
43
- border-right-color: var(--pink);
44
- border-bottom-color: var(--pink);
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 > label > :is(input[type="checkbox"], input[type="radio"]):checked + span > .ar-checkbox.filled.red::before {
51
- border-right-color: var(--white);
52
- border-bottom-color: var(--white);
53
- }
54
- .ar-checkbox-wrapper > label > :is(input[type="checkbox"], input[type="radio"]):checked + span > .ar-checkbox.outlined.red::before {
55
- border-right-color: var(--red);
56
- border-bottom-color: var(--red);
57
- }
58
- .ar-checkbox-wrapper > label > :is(input[type="checkbox"], input[type="radio"]):checked + span > .ar-checkbox.borderless.red::before {
59
- border-right-color: var(--red);
60
- border-bottom-color: var(--red);
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 > label > :is(input[type="checkbox"], input[type="radio"]):checked + span > .ar-checkbox.filled.orange::before {
67
- border-right-color: var(--white);
68
- border-bottom-color: var(--white);
69
- }
70
- .ar-checkbox-wrapper > label > :is(input[type="checkbox"], input[type="radio"]):checked + span > .ar-checkbox.outlined.orange::before {
71
- border-right-color: var(--orange);
72
- border-bottom-color: var(--orange);
73
- }
74
- .ar-checkbox-wrapper > label > :is(input[type="checkbox"], input[type="radio"]):checked + span > .ar-checkbox.borderless.orange::before {
75
- border-right-color: var(--orange);
76
- border-bottom-color: var(--orange);
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 > label > :is(input[type="checkbox"], input[type="radio"]):checked + span > .ar-checkbox.filled.yellow::before {
83
- border-right-color: var(--white);
84
- border-bottom-color: var(--white);
85
- }
86
- .ar-checkbox-wrapper > label > :is(input[type="checkbox"], input[type="radio"]):checked + span > .ar-checkbox.outlined.yellow::before {
87
- border-right-color: var(--yellow);
88
- border-bottom-color: var(--yellow);
89
- }
90
- .ar-checkbox-wrapper > label > :is(input[type="checkbox"], input[type="radio"]):checked + span > .ar-checkbox.borderless.yellow::before {
91
- border-right-color: var(--yellow);
92
- border-bottom-color: var(--yellow);
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 > label > :is(input[type="checkbox"], input[type="radio"]):checked + span > .ar-checkbox.filled.green::before {
99
- border-right-color: var(--white);
100
- border-bottom-color: var(--white);
101
- }
102
- .ar-checkbox-wrapper > label > :is(input[type="checkbox"], input[type="radio"]):checked + span > .ar-checkbox.outlined.green::before {
103
- border-right-color: var(--green);
104
- border-bottom-color: var(--green);
105
- }
106
- .ar-checkbox-wrapper > label > :is(input[type="checkbox"], input[type="radio"]):checked + span > .ar-checkbox.borderless.green::before {
107
- border-right-color: var(--green);
108
- border-bottom-color: var(--green);
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 > label > :is(input[type="checkbox"], input[type="radio"]):checked + span > .ar-checkbox.filled.teal::before {
115
- border-right-color: var(--white);
116
- border-bottom-color: var(--white);
117
- }
118
- .ar-checkbox-wrapper > label > :is(input[type="checkbox"], input[type="radio"]):checked + span > .ar-checkbox.outlined.teal::before {
119
- border-right-color: var(--teal);
120
- border-bottom-color: var(--teal);
121
- }
122
- .ar-checkbox-wrapper > label > :is(input[type="checkbox"], input[type="radio"]):checked + span > .ar-checkbox.borderless.teal::before {
123
- border-right-color: var(--teal);
124
- border-bottom-color: var(--teal);
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 > label > :is(input[type="checkbox"], input[type="radio"]):checked + span > .ar-checkbox.filled.cyan::before {
131
- border-right-color: var(--white);
132
- border-bottom-color: var(--white);
133
- }
134
- .ar-checkbox-wrapper > label > :is(input[type="checkbox"], input[type="radio"]):checked + span > .ar-checkbox.outlined.cyan::before {
135
- border-right-color: var(--cyan);
136
- border-bottom-color: var(--cyan);
137
- }
138
- .ar-checkbox-wrapper > label > :is(input[type="checkbox"], input[type="radio"]):checked + span > .ar-checkbox.borderless.cyan::before {
139
- border-right-color: var(--cyan);
140
- border-bottom-color: var(--cyan);
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 > label > :is(input[type="checkbox"], input[type="radio"]):checked + span > .ar-checkbox.filled.gray::before {
147
- border-right-color: var(--white);
148
- border-bottom-color: var(--white);
149
- }
150
- .ar-checkbox-wrapper > label > :is(input[type="checkbox"], input[type="radio"]):checked + span > .ar-checkbox.outlined.gray::before {
151
- border-right-color: var(--gray);
152
- border-bottom-color: var(--gray);
153
- }
154
- .ar-checkbox-wrapper > label > :is(input[type="checkbox"], input[type="radio"]):checked + span > .ar-checkbox.borderless.gray::before {
155
- border-right-color: var(--gray);
156
- border-bottom-color: var(--gray);
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 > label > :is(input[type="checkbox"], input[type="radio"]):checked + span > .ar-checkbox.filled.light::before {
163
- border-right-color: var(--dark);
164
- border-bottom-color: var(--dark);
165
- }
166
- .ar-checkbox-wrapper > label > :is(input[type="checkbox"], input[type="radio"]):checked + span > .ar-checkbox.outlined.light::before {
167
- border-right-color: var(--light);
168
- border-bottom-color: var(--light);
169
- }
170
- .ar-checkbox-wrapper > label > :is(input[type="checkbox"], input[type="radio"]):checked + span > .ar-checkbox.borderless.light::before {
171
- border-right-color: var(--light);
172
- border-bottom-color: var(--light);
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
- const isChecked = attributes.checked ?? false;
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
- // attributes.onChange?.(event);
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, IStatus, IUpperCase, IValidation, IVariant } from "../../../libs/types/IGlobalProps";
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, IStatus, IColors, IBorder, IIcon, ISize, IUpperCase, IValidation, Omit<React.InputHTMLAttributes<HTMLInputElement>, "children" | "size" | "color"> {
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", status, color, border = { radius: "sm" }, trace, upperCase, ...attributes }, ref) => {
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", status, color, border, size, undefined, attributes.className));
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" | "Drive" | "ExclamationCircle" | "ExclamationDiamond" | "Eye" | "File" | "FileEarmark" | "FileTypeCsv" | "FileTypeDoc" | "FileTypeDocx" | "FileTypeHtml" | "FileTypeJson" | "FileTypePdf" | "FileTypePptx" | "FileTypeTxt" | "FileTypeXls" | "FileTypeXlsx" | "FileTypeXml" | "FileTypeZip" | "Filter" | "Folder" | "Image" | "Import" | "Italic" | "NumberList" | "Strikethrough" | "TextAlingCenter" | "TextAlingLeft" | "TextAlingRight" | "TickCircle" | "Trash" | "Underline" | "Upload" | "Warning" | "XCircle";
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ar-design",
3
- "version": "0.2.84",
3
+ "version": "0.2.85",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",