@ttoss/theme 1.2.8 → 1.2.9

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/esm/index.js CHANGED
@@ -270,10 +270,24 @@ var BruttalTheme = {
270
270
  },
271
271
  forms: {
272
272
  label: {
273
- "&:has(+ div > input:invalid)": {
273
+ "&:has(+ div > input.error)": {
274
274
  "span > iconify-icon": {
275
275
  color: "danger"
276
276
  }
277
+ },
278
+ '&:has(input[type="checkbox"]:disabled)': {
279
+ color: "onMuted"
280
+ }
281
+ },
282
+ checkbox: {
283
+ "input:not(:checked) ~ &": {
284
+ color: "primary"
285
+ },
286
+ "input:disabled ~ &": {
287
+ color: "muted"
288
+ },
289
+ "input:disabled ~ & path": {
290
+ backgroundColor: "onMuted"
277
291
  }
278
292
  },
279
293
  input: {
package/dist/index.js CHANGED
@@ -307,10 +307,24 @@ var BruttalTheme = {
307
307
  },
308
308
  forms: {
309
309
  label: {
310
- "&:has(+ div > input:invalid)": {
310
+ "&:has(+ div > input.error)": {
311
311
  "span > iconify-icon": {
312
312
  color: "danger"
313
313
  }
314
+ },
315
+ '&:has(input[type="checkbox"]:disabled)': {
316
+ color: "onMuted"
317
+ }
318
+ },
319
+ checkbox: {
320
+ "input:not(:checked) ~ &": {
321
+ color: "primary"
322
+ },
323
+ "input:disabled ~ &": {
324
+ color: "muted"
325
+ },
326
+ "input:disabled ~ & path": {
327
+ backgroundColor: "onMuted"
314
328
  }
315
329
  },
316
330
  input: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttoss/theme",
3
- "version": "1.2.8",
3
+ "version": "1.2.9",
4
4
  "description": "Theme for packages.",
5
5
  "license": "UNLICENSED",
6
6
  "author": "ttoss",
@@ -31,5 +31,5 @@
31
31
  "publishConfig": {
32
32
  "access": "public"
33
33
  },
34
- "gitHead": "fb122458378a96e09d1da7fbad0bf12e72e8d04d"
34
+ "gitHead": "5a7f5a875b4474af9c78bbec65355cde6e6a7c81"
35
35
  }
@@ -221,11 +221,25 @@ export const BruttalTheme: Theme = {
221
221
  },
222
222
  forms: {
223
223
  label: {
224
- '&:has(+ div > input:invalid)': {
224
+ '&:has(+ div > input.error)': {
225
225
  'span > iconify-icon': {
226
226
  color: 'danger',
227
227
  },
228
228
  },
229
+ '&:has(input[type="checkbox"]:disabled)': {
230
+ color: 'onMuted',
231
+ },
232
+ },
233
+ checkbox: {
234
+ 'input:not(:checked) ~ &': {
235
+ color: 'primary',
236
+ },
237
+ 'input:disabled ~ &': {
238
+ color: 'muted',
239
+ },
240
+ 'input:disabled ~ & path': {
241
+ backgroundColor: 'onMuted',
242
+ },
229
243
  },
230
244
  input: {
231
245
  fontFamily: 'body',