@ttoss/theme 1.4.5 → 1.4.7

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.
@@ -393,6 +393,9 @@ var BruttalTheme = {
393
393
  },
394
394
  "input:disabled ~ & path": {
395
395
  backgroundColor: "onMuted"
396
+ },
397
+ 'input[aria-invalid="true"] ~ &': {
398
+ color: "danger"
396
399
  }
397
400
  },
398
401
  input: {
@@ -428,9 +431,20 @@ var BruttalTheme = {
428
431
  fontSize: 4,
429
432
  lineSpace: "3.5"
430
433
  },
431
- error: {
432
- '&[role="alert"]': {
433
- color: "danger"
434
+ help: {
435
+ fontFamily: "caption",
436
+ color: "text",
437
+ fontSize: "xs",
438
+ '&[aria-disabled="true"]': {
439
+ color: "onMuted"
440
+ },
441
+ negative: {
442
+ color: "danger",
443
+ fontFamily: "caption",
444
+ fontSize: "xs",
445
+ '&[aria-disabled="true"]': {
446
+ color: "onMuted"
447
+ }
434
448
  }
435
449
  },
436
450
  h1: {
package/dist/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
2
- import { BruttalTheme } from "./chunk-3BHEF22W.js";
2
+ import { BruttalTheme } from "./chunk-NT4CH6SM.js";
3
3
 
4
4
  // src/createTheme.ts
5
5
  import deepmerge from "deepmerge";
@@ -1,3 +1,3 @@
1
1
  /** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
2
- import { BruttalFonts, BruttalTheme } from "../../chunk-3BHEF22W.js";
2
+ import { BruttalFonts, BruttalTheme } from "../../chunk-NT4CH6SM.js";
3
3
  export { BruttalFonts, BruttalTheme };
package/dist/index.js CHANGED
@@ -432,6 +432,9 @@ var BruttalTheme = {
432
432
  },
433
433
  "input:disabled ~ & path": {
434
434
  backgroundColor: "onMuted"
435
+ },
436
+ 'input[aria-invalid="true"] ~ &': {
437
+ color: "danger"
435
438
  }
436
439
  },
437
440
  input: {
@@ -467,9 +470,20 @@ var BruttalTheme = {
467
470
  fontSize: 4,
468
471
  lineSpace: "3.5"
469
472
  },
470
- error: {
471
- '&[role="alert"]': {
472
- color: "danger"
473
+ help: {
474
+ fontFamily: "caption",
475
+ color: "text",
476
+ fontSize: "xs",
477
+ '&[aria-disabled="true"]': {
478
+ color: "onMuted"
479
+ },
480
+ negative: {
481
+ color: "danger",
482
+ fontFamily: "caption",
483
+ fontSize: "xs",
484
+ '&[aria-disabled="true"]': {
485
+ color: "onMuted"
486
+ }
473
487
  }
474
488
  },
475
489
  h1: {
@@ -436,6 +436,9 @@ var BruttalTheme = {
436
436
  },
437
437
  "input:disabled ~ & path": {
438
438
  backgroundColor: "onMuted"
439
+ },
440
+ 'input[aria-invalid="true"] ~ &': {
441
+ color: "danger"
439
442
  }
440
443
  },
441
444
  input: {
@@ -471,9 +474,20 @@ var BruttalTheme = {
471
474
  fontSize: 4,
472
475
  lineSpace: "3.5"
473
476
  },
474
- error: {
475
- '&[role="alert"]': {
476
- color: "danger"
477
+ help: {
478
+ fontFamily: "caption",
479
+ color: "text",
480
+ fontSize: "xs",
481
+ '&[aria-disabled="true"]': {
482
+ color: "onMuted"
483
+ },
484
+ negative: {
485
+ color: "danger",
486
+ fontFamily: "caption",
487
+ fontSize: "xs",
488
+ '&[aria-disabled="true"]': {
489
+ color: "onMuted"
490
+ }
477
491
  }
478
492
  },
479
493
  h1: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttoss/theme",
3
- "version": "1.4.5",
3
+ "version": "1.4.7",
4
4
  "description": "Theme for packages.",
5
5
  "license": "UNLICENSED",
6
6
  "author": "ttoss",
@@ -53,5 +53,5 @@
53
53
  ]
54
54
  }
55
55
  },
56
- "gitHead": "77d124d6e4c2ccd61058c8852789dcd9bc2f527a"
56
+ "gitHead": "3d2d6ecf2c24eb734b162bfe8d73a7a2886c49f6"
57
57
  }
@@ -283,6 +283,9 @@ export const BruttalTheme: Theme = {
283
283
  'input:disabled ~ & path': {
284
284
  backgroundColor: 'onMuted',
285
285
  },
286
+ 'input[aria-invalid="true"] ~ &': {
287
+ color: 'danger',
288
+ },
286
289
  },
287
290
  input: {
288
291
  fontFamily: 'body',
@@ -317,9 +320,20 @@ export const BruttalTheme: Theme = {
317
320
  fontSize: 4,
318
321
  lineSpace: '3.5',
319
322
  },
320
- error: {
321
- '&[role="alert"]': {
323
+ help: {
324
+ fontFamily: 'caption',
325
+ color: 'text',
326
+ fontSize: 'xs',
327
+ '&[aria-disabled="true"]': {
328
+ color: 'onMuted',
329
+ },
330
+ negative: {
322
331
  color: 'danger',
332
+ fontFamily: 'caption',
333
+ fontSize: 'xs',
334
+ '&[aria-disabled="true"]': {
335
+ color: 'onMuted',
336
+ },
323
337
  },
324
338
  },
325
339
  h1: {