@avakhula/ui 0.0.106 → 0.0.108
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/package.json
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
@import "../../../assets/scss/mixins.scss";
|
|
4
4
|
|
|
5
5
|
$checkbox-bg-disabled: $gray-100;
|
|
6
|
+
$checkbox-filed-bg-disabled: $neutral-500;
|
|
6
7
|
$checkbox-border-disabled: $neutral-500;
|
|
7
8
|
$checkbox-border: $gray-500;
|
|
8
9
|
$checkbox-bg: transparent;
|
|
@@ -101,124 +102,143 @@ $checkbox-bg-indeterminate: $blue-800;
|
|
|
101
102
|
}
|
|
102
103
|
}
|
|
103
104
|
|
|
104
|
-
&.ib-checkbox-
|
|
105
|
-
cursor: not-allowed;
|
|
106
|
-
|
|
105
|
+
&.ib-checkbox-filled {
|
|
107
106
|
.ib-checkbox-input {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
}
|
|
107
|
+
border-color: $checkbox-border-filed;
|
|
108
|
+
background-color: $checkbox-bg-filed;
|
|
111
109
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
outline: none!important;
|
|
110
|
+
ion-icon {
|
|
111
|
+
color: $white;
|
|
115
112
|
}
|
|
116
113
|
}
|
|
117
114
|
|
|
118
115
|
.ib-checkbox-body {
|
|
119
|
-
cursor: default;
|
|
120
|
-
|
|
121
116
|
&:hover {
|
|
122
117
|
.ib-checkbox-input {
|
|
123
|
-
border-
|
|
124
|
-
background-color: $checkbox-bg-
|
|
125
|
-
border-color: $checkbox-border-disabled;
|
|
118
|
+
border-color: $checkbox-border-filed-hover;
|
|
119
|
+
background-color: $checkbox-bg-filed-hover;
|
|
126
120
|
}
|
|
127
121
|
}
|
|
128
122
|
|
|
129
123
|
&:active {
|
|
130
124
|
.ib-checkbox-input {
|
|
131
|
-
|
|
132
|
-
|
|
125
|
+
border-color: $checkbox-border-filed-active;
|
|
126
|
+
background-color: $checkbox-bg-filed-active;
|
|
133
127
|
}
|
|
134
128
|
}
|
|
135
129
|
}
|
|
136
130
|
|
|
137
|
-
|
|
138
|
-
|
|
131
|
+
&.checkbox-disabled {
|
|
132
|
+
.checkbox-input {
|
|
133
|
+
background-color: $checkbox-bg-filed-disabled;
|
|
134
|
+
border-color: $checkbox-border-filed-disabled;
|
|
135
|
+
}
|
|
139
136
|
}
|
|
140
137
|
}
|
|
141
138
|
|
|
142
|
-
&.ib-
|
|
139
|
+
&.ib-checkbox-indeterminate {
|
|
143
140
|
.ib-checkbox-input {
|
|
144
|
-
border-
|
|
145
|
-
background-color: $checkbox-bg-
|
|
146
|
-
|
|
141
|
+
border-color: $checkbox-border-indeterminate;
|
|
142
|
+
background-color: $checkbox-bg-indeterminate;
|
|
143
|
+
|
|
144
|
+
ion-icon {
|
|
145
|
+
color: $white;
|
|
146
|
+
}
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
.ib-checkbox-body {
|
|
150
150
|
&:hover {
|
|
151
151
|
.ib-checkbox-input {
|
|
152
|
-
border-color: $checkbox-border-
|
|
153
|
-
background-color: $checkbox-bg-
|
|
152
|
+
border-color: $checkbox-border-filed-hover;
|
|
153
|
+
background-color: $checkbox-bg-filed-hover;
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
&:active {
|
|
158
158
|
.ib-checkbox-input {
|
|
159
|
-
border-color: $checkbox-border-
|
|
160
|
-
background-color: $checkbox-bg-
|
|
159
|
+
border-color: $checkbox-border-filed-active;
|
|
160
|
+
background-color: $checkbox-bg-filed-active;
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
-
&.ib-checkbox-
|
|
166
|
+
&.ib-checkbox-disabled {
|
|
167
|
+
cursor: not-allowed;
|
|
168
|
+
|
|
167
169
|
.ib-checkbox-input {
|
|
168
|
-
|
|
169
|
-
|
|
170
|
+
background-color: $checkbox-bg-disabled;
|
|
171
|
+
border-color: $checkbox-border-disabled;
|
|
172
|
+
}
|
|
170
173
|
|
|
171
|
-
|
|
172
|
-
|
|
174
|
+
&:focus {
|
|
175
|
+
.ib-checkbox-body {
|
|
176
|
+
outline: none!important;
|
|
173
177
|
}
|
|
174
178
|
}
|
|
175
179
|
|
|
176
180
|
.ib-checkbox-body {
|
|
181
|
+
cursor: default;
|
|
182
|
+
|
|
177
183
|
&:hover {
|
|
178
184
|
.ib-checkbox-input {
|
|
179
|
-
border-
|
|
180
|
-
background-color: $checkbox-bg-
|
|
185
|
+
border-width: 1.25px;
|
|
186
|
+
background-color: $checkbox-bg-disabled;
|
|
187
|
+
border-color: $checkbox-border-disabled;
|
|
181
188
|
}
|
|
182
189
|
}
|
|
183
190
|
|
|
184
191
|
&:active {
|
|
185
192
|
.ib-checkbox-input {
|
|
186
|
-
|
|
187
|
-
|
|
193
|
+
background-color: $checkbox-bg-disabled;
|
|
194
|
+
border-color: $checkbox-border-disabled;
|
|
188
195
|
}
|
|
189
196
|
}
|
|
190
197
|
}
|
|
191
198
|
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
199
|
+
.ib-checkbox-label {
|
|
200
|
+
color: $checkbox-text-color-disabled;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
&.ib-checkbox-filled,
|
|
204
|
+
&.ib-checkbox-indeterminate{
|
|
205
|
+
.ib-checkbox-input {
|
|
206
|
+
background-color: $checkbox-filed-bg-disabled;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
&:hover {
|
|
210
|
+
.ib-checkbox-input {
|
|
211
|
+
background-color: $checkbox-filed-bg-disabled;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
&:active {
|
|
216
|
+
.ib-checkbox-input {
|
|
217
|
+
background-color: $checkbox-filed-bg-disabled;
|
|
218
|
+
}
|
|
196
219
|
}
|
|
197
220
|
}
|
|
198
221
|
}
|
|
199
222
|
|
|
200
|
-
&.ib-
|
|
223
|
+
&.ib-has-error {
|
|
201
224
|
.ib-checkbox-input {
|
|
202
|
-
border-
|
|
203
|
-
background-color: $checkbox-bg-
|
|
204
|
-
|
|
205
|
-
ion-icon {
|
|
206
|
-
color: $white;
|
|
207
|
-
}
|
|
225
|
+
border-width: 2px;
|
|
226
|
+
background-color: $checkbox-bg-error;
|
|
227
|
+
border-color: $checkbox-border-error;
|
|
208
228
|
}
|
|
209
229
|
|
|
210
230
|
.ib-checkbox-body {
|
|
211
231
|
&:hover {
|
|
212
232
|
.ib-checkbox-input {
|
|
213
|
-
border-color: $checkbox-border-
|
|
214
|
-
background-color: $checkbox-bg-
|
|
233
|
+
border-color: $checkbox-border-error-hover;
|
|
234
|
+
background-color: $checkbox-bg-error-hover;
|
|
215
235
|
}
|
|
216
236
|
}
|
|
217
237
|
|
|
218
238
|
&:active {
|
|
219
239
|
.ib-checkbox-input {
|
|
220
|
-
border-color: $checkbox-border-
|
|
221
|
-
background-color: $checkbox-bg-
|
|
240
|
+
border-color: $checkbox-border-error-active;
|
|
241
|
+
background-color: $checkbox-bg-error-active;
|
|
222
242
|
}
|
|
223
243
|
}
|
|
224
244
|
}
|
|
@@ -36,7 +36,9 @@ const IndeterminateTemplate = (args) => ({
|
|
|
36
36
|
setup() {
|
|
37
37
|
return { args };
|
|
38
38
|
},
|
|
39
|
-
|
|
39
|
+
|
|
40
|
+
template:
|
|
41
|
+
'<ib-checkbox v-bind="args" :is-checked="null" label="Indeterminate" />',
|
|
40
42
|
});
|
|
41
43
|
|
|
42
44
|
export const Indeterminate = IndeterminateTemplate.bind({});
|
|
@@ -56,7 +58,7 @@ const ErrorTemplate = (args) => ({
|
|
|
56
58
|
setup() {
|
|
57
59
|
return { args };
|
|
58
60
|
},
|
|
59
|
-
template: '<ib-checkbox :error="true" label="Remember me" />',
|
|
61
|
+
template: '<ib-checkbox v-bind="args" :error="true" label="Remember me" />',
|
|
60
62
|
});
|
|
61
63
|
|
|
62
64
|
export const Error = ErrorTemplate.bind({});
|