@ttoss/theme 1.4.13 → 1.4.15
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/{chunk-STTOSDFS.js → chunk-NYJWOJA3.js} +54 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/themes/Bruttal/Bruttal.js +1 -1
- package/dist/index.js +54 -1
- package/dist/themes/Bruttal/Bruttal.js +54 -1
- package/package.json +2 -2
- package/src/themes/Bruttal/BruttalIcons.ts +2 -1
- package/src/themes/Bruttal/BruttalTheme.ts +52 -0
|
@@ -12,6 +12,7 @@ import chevronLeftIcon from "@iconify/icons-carbon/chevron-left";
|
|
|
12
12
|
import chevronRightIcon from "@iconify/icons-carbon/chevron-right";
|
|
13
13
|
import chevronUpIcon from "@iconify/icons-carbon/chevron-up";
|
|
14
14
|
import closeFilledIcon from "@iconify/icons-carbon/close-filled";
|
|
15
|
+
import closeIcon from "@iconify/icons-carbon/close";
|
|
15
16
|
import copyIcon from "@iconify/icons-carbon/copy";
|
|
16
17
|
import errorFilledIcon from "@iconify/icons-carbon/error-filled";
|
|
17
18
|
import informationFilledIcon from "@iconify/icons-carbon/information-filled";
|
|
@@ -39,7 +40,7 @@ addIcon("calendar", calendarIcon);
|
|
|
39
40
|
addIcon("checkbox-checked", checkboxCheckedFilled);
|
|
40
41
|
addIcon("checkbox-indeterminate", checkboxIndeterminateFilledIcon);
|
|
41
42
|
addIcon("checkbox-unchecked", checkboxIcon);
|
|
42
|
-
addIcon("close",
|
|
43
|
+
addIcon("close", closeIcon);
|
|
43
44
|
addIcon("copy", copyIcon);
|
|
44
45
|
addIcon("delete", trashCanIcon);
|
|
45
46
|
addIcon("error", errorFilledIcon);
|
|
@@ -362,6 +363,22 @@ var BruttalTheme = {
|
|
|
362
363
|
danger: {
|
|
363
364
|
color: "onDanger",
|
|
364
365
|
backgroundColor: "danger"
|
|
366
|
+
},
|
|
367
|
+
closeButton: {
|
|
368
|
+
backgroundColor: "transparent",
|
|
369
|
+
color: "text",
|
|
370
|
+
fontSize: "xs",
|
|
371
|
+
display: "inline-flex",
|
|
372
|
+
alignItems: "center",
|
|
373
|
+
cursor: "pointer",
|
|
374
|
+
":disabled": {
|
|
375
|
+
color: "muted",
|
|
376
|
+
cursor: "not-allowed"
|
|
377
|
+
},
|
|
378
|
+
":is(:focus-within, :hover):not(:disabled)": {
|
|
379
|
+
color: "accent",
|
|
380
|
+
outlineColor: "transparent"
|
|
381
|
+
}
|
|
365
382
|
}
|
|
366
383
|
},
|
|
367
384
|
cards: {
|
|
@@ -458,6 +475,42 @@ var BruttalTheme = {
|
|
|
458
475
|
'&[aria-invalid="true"] ~ span.error-icon': {
|
|
459
476
|
color: "danger"
|
|
460
477
|
}
|
|
478
|
+
},
|
|
479
|
+
textarea: {
|
|
480
|
+
fontFamily: "body",
|
|
481
|
+
color: "text",
|
|
482
|
+
border: "interaction",
|
|
483
|
+
borderColor: "onMuted",
|
|
484
|
+
backgroundColor: "surface",
|
|
485
|
+
paddingY: "lg",
|
|
486
|
+
paddingX: "xl",
|
|
487
|
+
borderRadius: "action",
|
|
488
|
+
":focus-within": {
|
|
489
|
+
outlineColor: "primary"
|
|
490
|
+
},
|
|
491
|
+
":disabled::placeholder": {
|
|
492
|
+
color: "muted"
|
|
493
|
+
},
|
|
494
|
+
":disabled": {
|
|
495
|
+
borderColor: "onMuted",
|
|
496
|
+
border: "muted",
|
|
497
|
+
color: "muted"
|
|
498
|
+
},
|
|
499
|
+
":disabled+span>iconify-icon": {
|
|
500
|
+
color: "muted"
|
|
501
|
+
},
|
|
502
|
+
'&[aria-invalid="true"]': {
|
|
503
|
+
borderColor: "danger"
|
|
504
|
+
},
|
|
505
|
+
"&.success+span>iconify-icon": {
|
|
506
|
+
color: "positive"
|
|
507
|
+
},
|
|
508
|
+
'&[aria-invalid="true"]+span>iconify-icon': {
|
|
509
|
+
color: "danger"
|
|
510
|
+
},
|
|
511
|
+
'&[aria-invalid="true"]::placeholder': {
|
|
512
|
+
color: "danger"
|
|
513
|
+
}
|
|
461
514
|
}
|
|
462
515
|
},
|
|
463
516
|
text: {
|
package/dist/esm/index.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -54,6 +54,7 @@ var import_chevron_left = __toESM(require("@iconify/icons-carbon/chevron-left"))
|
|
|
54
54
|
var import_chevron_right = __toESM(require("@iconify/icons-carbon/chevron-right"));
|
|
55
55
|
var import_chevron_up = __toESM(require("@iconify/icons-carbon/chevron-up"));
|
|
56
56
|
var import_close_filled = __toESM(require("@iconify/icons-carbon/close-filled"));
|
|
57
|
+
var import_close = __toESM(require("@iconify/icons-carbon/close"));
|
|
57
58
|
var import_copy = __toESM(require("@iconify/icons-carbon/copy"));
|
|
58
59
|
var import_error_filled = __toESM(require("@iconify/icons-carbon/error-filled"));
|
|
59
60
|
var import_information_filled = __toESM(require("@iconify/icons-carbon/information-filled"));
|
|
@@ -81,7 +82,7 @@ var replicateIcon = {
|
|
|
81
82
|
(0, import_react.addIcon)("checkbox-checked", import_checkbox_checked_filled.default);
|
|
82
83
|
(0, import_react.addIcon)("checkbox-indeterminate", import_checkbox_indeterminate_filled.default);
|
|
83
84
|
(0, import_react.addIcon)("checkbox-unchecked", import_checkbox.default);
|
|
84
|
-
(0, import_react.addIcon)("close",
|
|
85
|
+
(0, import_react.addIcon)("close", import_close.default);
|
|
85
86
|
(0, import_react.addIcon)("copy", import_copy.default);
|
|
86
87
|
(0, import_react.addIcon)("delete", import_trash_can.default);
|
|
87
88
|
(0, import_react.addIcon)("error", import_error_filled.default);
|
|
@@ -401,6 +402,22 @@ var BruttalTheme = {
|
|
|
401
402
|
danger: {
|
|
402
403
|
color: "onDanger",
|
|
403
404
|
backgroundColor: "danger"
|
|
405
|
+
},
|
|
406
|
+
closeButton: {
|
|
407
|
+
backgroundColor: "transparent",
|
|
408
|
+
color: "text",
|
|
409
|
+
fontSize: "xs",
|
|
410
|
+
display: "inline-flex",
|
|
411
|
+
alignItems: "center",
|
|
412
|
+
cursor: "pointer",
|
|
413
|
+
":disabled": {
|
|
414
|
+
color: "muted",
|
|
415
|
+
cursor: "not-allowed"
|
|
416
|
+
},
|
|
417
|
+
":is(:focus-within, :hover):not(:disabled)": {
|
|
418
|
+
color: "accent",
|
|
419
|
+
outlineColor: "transparent"
|
|
420
|
+
}
|
|
404
421
|
}
|
|
405
422
|
},
|
|
406
423
|
cards: {
|
|
@@ -497,6 +514,42 @@ var BruttalTheme = {
|
|
|
497
514
|
'&[aria-invalid="true"] ~ span.error-icon': {
|
|
498
515
|
color: "danger"
|
|
499
516
|
}
|
|
517
|
+
},
|
|
518
|
+
textarea: {
|
|
519
|
+
fontFamily: "body",
|
|
520
|
+
color: "text",
|
|
521
|
+
border: "interaction",
|
|
522
|
+
borderColor: "onMuted",
|
|
523
|
+
backgroundColor: "surface",
|
|
524
|
+
paddingY: "lg",
|
|
525
|
+
paddingX: "xl",
|
|
526
|
+
borderRadius: "action",
|
|
527
|
+
":focus-within": {
|
|
528
|
+
outlineColor: "primary"
|
|
529
|
+
},
|
|
530
|
+
":disabled::placeholder": {
|
|
531
|
+
color: "muted"
|
|
532
|
+
},
|
|
533
|
+
":disabled": {
|
|
534
|
+
borderColor: "onMuted",
|
|
535
|
+
border: "muted",
|
|
536
|
+
color: "muted"
|
|
537
|
+
},
|
|
538
|
+
":disabled+span>iconify-icon": {
|
|
539
|
+
color: "muted"
|
|
540
|
+
},
|
|
541
|
+
'&[aria-invalid="true"]': {
|
|
542
|
+
borderColor: "danger"
|
|
543
|
+
},
|
|
544
|
+
"&.success+span>iconify-icon": {
|
|
545
|
+
color: "positive"
|
|
546
|
+
},
|
|
547
|
+
'&[aria-invalid="true"]+span>iconify-icon': {
|
|
548
|
+
color: "danger"
|
|
549
|
+
},
|
|
550
|
+
'&[aria-invalid="true"]::placeholder': {
|
|
551
|
+
color: "danger"
|
|
552
|
+
}
|
|
500
553
|
}
|
|
501
554
|
},
|
|
502
555
|
text: {
|
|
@@ -55,6 +55,7 @@ var import_chevron_left = __toESM(require("@iconify/icons-carbon/chevron-left"))
|
|
|
55
55
|
var import_chevron_right = __toESM(require("@iconify/icons-carbon/chevron-right"));
|
|
56
56
|
var import_chevron_up = __toESM(require("@iconify/icons-carbon/chevron-up"));
|
|
57
57
|
var import_close_filled = __toESM(require("@iconify/icons-carbon/close-filled"));
|
|
58
|
+
var import_close = __toESM(require("@iconify/icons-carbon/close"));
|
|
58
59
|
var import_copy = __toESM(require("@iconify/icons-carbon/copy"));
|
|
59
60
|
var import_error_filled = __toESM(require("@iconify/icons-carbon/error-filled"));
|
|
60
61
|
var import_information_filled = __toESM(require("@iconify/icons-carbon/information-filled"));
|
|
@@ -82,7 +83,7 @@ var replicateIcon = {
|
|
|
82
83
|
(0, import_react.addIcon)("checkbox-checked", import_checkbox_checked_filled.default);
|
|
83
84
|
(0, import_react.addIcon)("checkbox-indeterminate", import_checkbox_indeterminate_filled.default);
|
|
84
85
|
(0, import_react.addIcon)("checkbox-unchecked", import_checkbox.default);
|
|
85
|
-
(0, import_react.addIcon)("close",
|
|
86
|
+
(0, import_react.addIcon)("close", import_close.default);
|
|
86
87
|
(0, import_react.addIcon)("copy", import_copy.default);
|
|
87
88
|
(0, import_react.addIcon)("delete", import_trash_can.default);
|
|
88
89
|
(0, import_react.addIcon)("error", import_error_filled.default);
|
|
@@ -405,6 +406,22 @@ var BruttalTheme = {
|
|
|
405
406
|
danger: {
|
|
406
407
|
color: "onDanger",
|
|
407
408
|
backgroundColor: "danger"
|
|
409
|
+
},
|
|
410
|
+
closeButton: {
|
|
411
|
+
backgroundColor: "transparent",
|
|
412
|
+
color: "text",
|
|
413
|
+
fontSize: "xs",
|
|
414
|
+
display: "inline-flex",
|
|
415
|
+
alignItems: "center",
|
|
416
|
+
cursor: "pointer",
|
|
417
|
+
":disabled": {
|
|
418
|
+
color: "muted",
|
|
419
|
+
cursor: "not-allowed"
|
|
420
|
+
},
|
|
421
|
+
":is(:focus-within, :hover):not(:disabled)": {
|
|
422
|
+
color: "accent",
|
|
423
|
+
outlineColor: "transparent"
|
|
424
|
+
}
|
|
408
425
|
}
|
|
409
426
|
},
|
|
410
427
|
cards: {
|
|
@@ -501,6 +518,42 @@ var BruttalTheme = {
|
|
|
501
518
|
'&[aria-invalid="true"] ~ span.error-icon': {
|
|
502
519
|
color: "danger"
|
|
503
520
|
}
|
|
521
|
+
},
|
|
522
|
+
textarea: {
|
|
523
|
+
fontFamily: "body",
|
|
524
|
+
color: "text",
|
|
525
|
+
border: "interaction",
|
|
526
|
+
borderColor: "onMuted",
|
|
527
|
+
backgroundColor: "surface",
|
|
528
|
+
paddingY: "lg",
|
|
529
|
+
paddingX: "xl",
|
|
530
|
+
borderRadius: "action",
|
|
531
|
+
":focus-within": {
|
|
532
|
+
outlineColor: "primary"
|
|
533
|
+
},
|
|
534
|
+
":disabled::placeholder": {
|
|
535
|
+
color: "muted"
|
|
536
|
+
},
|
|
537
|
+
":disabled": {
|
|
538
|
+
borderColor: "onMuted",
|
|
539
|
+
border: "muted",
|
|
540
|
+
color: "muted"
|
|
541
|
+
},
|
|
542
|
+
":disabled+span>iconify-icon": {
|
|
543
|
+
color: "muted"
|
|
544
|
+
},
|
|
545
|
+
'&[aria-invalid="true"]': {
|
|
546
|
+
borderColor: "danger"
|
|
547
|
+
},
|
|
548
|
+
"&.success+span>iconify-icon": {
|
|
549
|
+
color: "positive"
|
|
550
|
+
},
|
|
551
|
+
'&[aria-invalid="true"]+span>iconify-icon': {
|
|
552
|
+
color: "danger"
|
|
553
|
+
},
|
|
554
|
+
'&[aria-invalid="true"]::placeholder': {
|
|
555
|
+
color: "danger"
|
|
556
|
+
}
|
|
504
557
|
}
|
|
505
558
|
},
|
|
506
559
|
text: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttoss/theme",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.15",
|
|
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": "
|
|
56
|
+
"gitHead": "3f398d2717a3ac8f7fecf4c79c028b35f0ef45fb"
|
|
57
57
|
}
|
|
@@ -9,6 +9,7 @@ import chevronLeftIcon from '@iconify/icons-carbon/chevron-left';
|
|
|
9
9
|
import chevronRightIcon from '@iconify/icons-carbon/chevron-right';
|
|
10
10
|
import chevronUpIcon from '@iconify/icons-carbon/chevron-up';
|
|
11
11
|
import closeFilledIcon from '@iconify/icons-carbon/close-filled';
|
|
12
|
+
import closeIcon from '@iconify/icons-carbon/close';
|
|
12
13
|
import copyIcon from '@iconify/icons-carbon/copy';
|
|
13
14
|
import errorFilledIcon from '@iconify/icons-carbon/error-filled';
|
|
14
15
|
import informationFilledIcon from '@iconify/icons-carbon/information-filled';
|
|
@@ -39,7 +40,7 @@ addIcon('calendar', calendarIcon);
|
|
|
39
40
|
addIcon('checkbox-checked', checkboxCheckedFilled);
|
|
40
41
|
addIcon('checkbox-indeterminate', checkboxIndeterminateFilledIcon);
|
|
41
42
|
addIcon('checkbox-unchecked', checkboxIcon);
|
|
42
|
-
addIcon('close',
|
|
43
|
+
addIcon('close', closeIcon);
|
|
43
44
|
addIcon('copy', copyIcon);
|
|
44
45
|
addIcon('delete', trashCanIcon);
|
|
45
46
|
addIcon('error', errorFilledIcon);
|
|
@@ -252,6 +252,22 @@ export const BruttalTheme: Theme = {
|
|
|
252
252
|
color: 'onDanger',
|
|
253
253
|
backgroundColor: 'danger',
|
|
254
254
|
},
|
|
255
|
+
closeButton: {
|
|
256
|
+
backgroundColor: 'transparent',
|
|
257
|
+
color: 'text',
|
|
258
|
+
fontSize: 'xs',
|
|
259
|
+
display: 'inline-flex',
|
|
260
|
+
alignItems: 'center',
|
|
261
|
+
cursor: 'pointer',
|
|
262
|
+
':disabled': {
|
|
263
|
+
color: 'muted',
|
|
264
|
+
cursor: 'not-allowed',
|
|
265
|
+
},
|
|
266
|
+
':is(:focus-within, :hover):not(:disabled)': {
|
|
267
|
+
color: 'accent',
|
|
268
|
+
outlineColor: 'transparent',
|
|
269
|
+
},
|
|
270
|
+
},
|
|
255
271
|
},
|
|
256
272
|
cards: {
|
|
257
273
|
primary: {
|
|
@@ -348,6 +364,42 @@ export const BruttalTheme: Theme = {
|
|
|
348
364
|
color: 'danger',
|
|
349
365
|
},
|
|
350
366
|
},
|
|
367
|
+
textarea: {
|
|
368
|
+
fontFamily: 'body',
|
|
369
|
+
color: 'text',
|
|
370
|
+
border: 'interaction',
|
|
371
|
+
borderColor: 'onMuted',
|
|
372
|
+
backgroundColor: 'surface',
|
|
373
|
+
paddingY: 'lg',
|
|
374
|
+
paddingX: 'xl',
|
|
375
|
+
borderRadius: 'action',
|
|
376
|
+
':focus-within': {
|
|
377
|
+
outlineColor: 'primary',
|
|
378
|
+
},
|
|
379
|
+
':disabled::placeholder': {
|
|
380
|
+
color: 'muted',
|
|
381
|
+
},
|
|
382
|
+
':disabled': {
|
|
383
|
+
borderColor: 'onMuted',
|
|
384
|
+
border: 'muted',
|
|
385
|
+
color: 'muted',
|
|
386
|
+
},
|
|
387
|
+
':disabled+span>iconify-icon': {
|
|
388
|
+
color: 'muted',
|
|
389
|
+
},
|
|
390
|
+
'&[aria-invalid="true"]': {
|
|
391
|
+
borderColor: 'danger',
|
|
392
|
+
},
|
|
393
|
+
'&.success+span>iconify-icon': {
|
|
394
|
+
color: 'positive',
|
|
395
|
+
},
|
|
396
|
+
'&[aria-invalid="true"]+span>iconify-icon': {
|
|
397
|
+
color: 'danger',
|
|
398
|
+
},
|
|
399
|
+
'&[aria-invalid="true"]::placeholder': {
|
|
400
|
+
color: 'danger',
|
|
401
|
+
},
|
|
402
|
+
},
|
|
351
403
|
},
|
|
352
404
|
text: {
|
|
353
405
|
default: {
|