@db-ux/core-foundations 2.3.1 → 2.4.0

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.
@@ -1,6 +1,6 @@
1
+ import { glob } from 'glob';
1
2
  import { exec } from 'node:child_process';
2
3
  import { promisify } from 'node:util';
3
- import { glob } from 'glob';
4
4
 
5
5
  import { dirname } from 'path';
6
6
  import { fileURLToPath } from 'url';
package/build/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
+ export * from './all-icons.js';
1
2
  export * from './base-icon-types.js';
2
3
  export * from './icon-types.js';
3
- export * from './all-icons.js';
package/build/index.js CHANGED
@@ -1,3 +1,3 @@
1
+ export * from './all-icons.js';
1
2
  export * from './base-icon-types.js';
2
3
  export * from './icon-types.js';
3
- export * from './all-icons.js';
@@ -6328,56 +6328,6 @@ code {
6328
6328
 
6329
6329
  @layer variables {}
6330
6330
 
6331
- /* Use this file if you want to use the defaults for the <code> tag in your project */
6332
- pre:not([class]):has(code) {
6333
- background-color: var(--db-adaptive-bg-inverted-contrast-max-default);
6334
- color: var(--db-adaptive-on-bg-inverted-default);
6335
- padding: var(--db-spacing-fixed-xs);
6336
- font-family: monospace;
6337
- }
6338
-
6339
- a:has(code:not([class])) {
6340
- background-color: var(--db-adaptive-bg-inverted-contrast-max-default);
6341
- color: var(--db-adaptive-on-bg-inverted-default);
6342
- /* stylelint-disable-next-line a11y/selector-pseudo-class-focus */
6343
- }
6344
- a:has(code:not([class])):hover:not(:disabled, [aria-disabled=true]) {
6345
- cursor: var(--db-overwrite-cursor, pointer);
6346
- color: var(--db-adaptive-on-bg-inverted-hovered);
6347
- }
6348
- a:has(code:not([class])):hover:not(:disabled, [aria-disabled=true]):is(textarea), a:has(code:not([class])):hover:not(:disabled, [aria-disabled=true]):is(input) {
6349
- cursor: initial;
6350
- }
6351
- a:has(code:not([class])):hover:not(:disabled, [aria-disabled=true]):is(input[type=checkbox]), a:has(code:not([class])):hover:not(:disabled, [aria-disabled=true]):is(input[type=radio]:not(:checked)) {
6352
- cursor: pointer;
6353
- }
6354
- a:has(code:not([class])):active:not(:disabled, [aria-disabled=true]) {
6355
- cursor: var(--db-overwrite-cursor, pointer);
6356
- color: var(--db-adaptive-on-bg-inverted-pressed);
6357
- }
6358
- a:has(code:not([class])):active:not(:disabled, [aria-disabled=true]):is(textarea), a:has(code:not([class])):active:not(:disabled, [aria-disabled=true]):is(input) {
6359
- cursor: initial;
6360
- }
6361
- a:has(code:not([class])):active:not(:disabled, [aria-disabled=true]):is(input[type=checkbox]), a:has(code:not([class])):active:not(:disabled, [aria-disabled=true]):is(input[type=radio]:not(:checked)) {
6362
- cursor: pointer;
6363
- }
6364
- a:has(code:not([class])) > code {
6365
- color: inherit;
6366
- }
6367
-
6368
- code:not([class]) {
6369
- background-color: var(--db-adaptive-bg-inverted-contrast-max-default);
6370
- color: var(--db-adaptive-on-bg-inverted-default);
6371
- padding-block: var(--db-spacing-fixed-3xs);
6372
- padding-inline: var(--db-spacing-fixed-2xs);
6373
- font-family: monospace;
6374
- }
6375
-
6376
- blockquote:not([class]) {
6377
- margin: 0;
6378
- padding: var(--db-spacing-fixed-sm) var(--db-spacing-fixed-md);
6379
- }
6380
-
6381
6331
  /* Use this file if you want the default elevation data attributes in your project */
6382
6332
  .db-interactive-elevation,
6383
6333
  [data-interactive=elevation] {
@@ -6550,6 +6500,63 @@ strong {
6550
6500
  font-weight: 700;
6551
6501
  }
6552
6502
 
6503
+ /* Use this file if you want to use the defaults for the <code> tag in your project */
6504
+ pre:not([class]):has(code) {
6505
+ background-color: var(--db-adaptive-bg-inverted-contrast-max-default);
6506
+ color: var(--db-adaptive-on-bg-inverted-default);
6507
+ padding: var(--db-spacing-fixed-xs);
6508
+ }
6509
+ pre:not([class]):has(code),
6510
+ pre:not([class]):has(code) code,
6511
+ pre:not([class]):has(code) span {
6512
+ font-family: monospace;
6513
+ }
6514
+
6515
+ a:has(code:not([class])) {
6516
+ background-color: var(--db-adaptive-bg-inverted-contrast-max-default);
6517
+ color: var(--db-adaptive-on-bg-inverted-default);
6518
+ /* stylelint-disable-next-line a11y/selector-pseudo-class-focus */
6519
+ }
6520
+ a:has(code:not([class])):hover:not(:disabled, [aria-disabled=true]) {
6521
+ cursor: var(--db-overwrite-cursor, pointer);
6522
+ color: var(--db-adaptive-on-bg-inverted-hovered);
6523
+ }
6524
+ a:has(code:not([class])):hover:not(:disabled, [aria-disabled=true]):is(textarea), a:has(code:not([class])):hover:not(:disabled, [aria-disabled=true]):is(input) {
6525
+ cursor: initial;
6526
+ }
6527
+ a:has(code:not([class])):hover:not(:disabled, [aria-disabled=true]):is(input[type=checkbox]), a:has(code:not([class])):hover:not(:disabled, [aria-disabled=true]):is(input[type=radio]:not(:checked)) {
6528
+ cursor: pointer;
6529
+ }
6530
+ a:has(code:not([class])):active:not(:disabled, [aria-disabled=true]) {
6531
+ cursor: var(--db-overwrite-cursor, pointer);
6532
+ color: var(--db-adaptive-on-bg-inverted-pressed);
6533
+ }
6534
+ a:has(code:not([class])):active:not(:disabled, [aria-disabled=true]):is(textarea), a:has(code:not([class])):active:not(:disabled, [aria-disabled=true]):is(input) {
6535
+ cursor: initial;
6536
+ }
6537
+ a:has(code:not([class])):active:not(:disabled, [aria-disabled=true]):is(input[type=checkbox]), a:has(code:not([class])):active:not(:disabled, [aria-disabled=true]):is(input[type=radio]:not(:checked)) {
6538
+ cursor: pointer;
6539
+ }
6540
+ a:has(code:not([class])) > code {
6541
+ color: inherit;
6542
+ }
6543
+
6544
+ code:not([class]) {
6545
+ background-color: var(--db-adaptive-bg-inverted-contrast-max-default);
6546
+ color: var(--db-adaptive-on-bg-inverted-default);
6547
+ padding-block: var(--db-spacing-fixed-3xs);
6548
+ padding-inline: var(--db-spacing-fixed-2xs);
6549
+ }
6550
+ code:not([class]),
6551
+ code:not([class]) span {
6552
+ font-family: monospace;
6553
+ }
6554
+
6555
+ blockquote:not([class]) {
6556
+ margin: 0;
6557
+ padding: var(--db-spacing-fixed-sm) var(--db-spacing-fixed-md);
6558
+ }
6559
+
6553
6560
  [data-icon]:is(span),
6554
6561
  [data-icon-before]:is(span),
6555
6562
  [data-icon-after]:is(span) {
@@ -90,4 +90,4 @@
90
90
  --db-neutral-on-bg-vibrant-hovered
91
91
  );--db-adaptive-on-bg-vibrant-pressed:var(
92
92
  --db-neutral-on-bg-vibrant-pressed
93
- )}}blockquote:not([class]){background-color:var(--db-neutral-bg-basic-transparent-semi-default);color:var(--db-neutral-on-bg-basic-emphasis-100-default)}blockquote:not([class]):after,blockquote:not([class]):before{--db-icon-color:var(--db-neutral-on-bg-basic-emphasis-100-default)}@layer variables{}@layer variables{}@layer variables{}@layer variables{}@layer variables{}@layer variables{}@layer variables{}@layer variables{}@layer variables{}@layer variables{}@layer variables{}@layer variables{}@layer variables{}@layer variables{}@layer variables{}@layer variables{}pre:not([class]):has(code){background-color:var(--db-adaptive-bg-inverted-contrast-max-default);color:var(--db-adaptive-on-bg-inverted-default);font-family:monospace;padding:var(--db-spacing-fixed-xs)}a:has(code:not([class])){background-color:var(--db-adaptive-bg-inverted-contrast-max-default);color:var(--db-adaptive-on-bg-inverted-default)}a:has(code:not([class])):hover:not(:disabled,[aria-disabled=true]){color:var(--db-adaptive-on-bg-inverted-hovered);cursor:var(--db-overwrite-cursor,pointer)}a:has(code:not([class])):hover:not(:disabled,[aria-disabled=true]):is(input),a:has(code:not([class])):hover:not(:disabled,[aria-disabled=true]):is(textarea){cursor:auto}a:has(code:not([class])):hover:not(:disabled,[aria-disabled=true]):is(input[type=checkbox]),a:has(code:not([class])):hover:not(:disabled,[aria-disabled=true]):is(input[type=radio]:not(:checked)){cursor:pointer}a:has(code:not([class])):active:not(:disabled,[aria-disabled=true]){color:var(--db-adaptive-on-bg-inverted-pressed);cursor:var(--db-overwrite-cursor,pointer)}a:has(code:not([class])):active:not(:disabled,[aria-disabled=true]):is(input),a:has(code:not([class])):active:not(:disabled,[aria-disabled=true]):is(textarea){cursor:auto}a:has(code:not([class])):active:not(:disabled,[aria-disabled=true]):is(input[type=checkbox]),a:has(code:not([class])):active:not(:disabled,[aria-disabled=true]):is(input[type=radio]:not(:checked)){cursor:pointer}a:has(code:not([class]))>code{color:inherit}code:not([class]){background-color:var(--db-adaptive-bg-inverted-contrast-max-default);color:var(--db-adaptive-on-bg-inverted-default);font-family:monospace;padding-block:var(--db-spacing-fixed-3xs);padding-inline:var(--db-spacing-fixed-2xs)}blockquote:not([class]){margin:0;padding:var(--db-spacing-fixed-sm) var(--db-spacing-fixed-md)}
93
+ )}}blockquote:not([class]){background-color:var(--db-neutral-bg-basic-transparent-semi-default);color:var(--db-neutral-on-bg-basic-emphasis-100-default)}blockquote:not([class]):after,blockquote:not([class]):before{--db-icon-color:var(--db-neutral-on-bg-basic-emphasis-100-default)}@layer variables{}@layer variables{}@layer variables{}@layer variables{}@layer variables{}@layer variables{}@layer variables{}@layer variables{}@layer variables{}@layer variables{}@layer variables{}@layer variables{}@layer variables{}@layer variables{}@layer variables{}@layer variables{}pre:not([class]):has(code){background-color:var(--db-adaptive-bg-inverted-contrast-max-default);color:var(--db-adaptive-on-bg-inverted-default);padding:var(--db-spacing-fixed-xs)}pre:not([class]):has(code),pre:not([class]):has(code) code,pre:not([class]):has(code) span{font-family:monospace}a:has(code:not([class])){background-color:var(--db-adaptive-bg-inverted-contrast-max-default);color:var(--db-adaptive-on-bg-inverted-default)}a:has(code:not([class])):hover:not(:disabled,[aria-disabled=true]){color:var(--db-adaptive-on-bg-inverted-hovered);cursor:var(--db-overwrite-cursor,pointer)}a:has(code:not([class])):hover:not(:disabled,[aria-disabled=true]):is(input),a:has(code:not([class])):hover:not(:disabled,[aria-disabled=true]):is(textarea){cursor:auto}a:has(code:not([class])):hover:not(:disabled,[aria-disabled=true]):is(input[type=checkbox]),a:has(code:not([class])):hover:not(:disabled,[aria-disabled=true]):is(input[type=radio]:not(:checked)){cursor:pointer}a:has(code:not([class])):active:not(:disabled,[aria-disabled=true]){color:var(--db-adaptive-on-bg-inverted-pressed);cursor:var(--db-overwrite-cursor,pointer)}a:has(code:not([class])):active:not(:disabled,[aria-disabled=true]):is(input),a:has(code:not([class])):active:not(:disabled,[aria-disabled=true]):is(textarea){cursor:auto}a:has(code:not([class])):active:not(:disabled,[aria-disabled=true]):is(input[type=checkbox]),a:has(code:not([class])):active:not(:disabled,[aria-disabled=true]):is(input[type=radio]:not(:checked)){cursor:pointer}a:has(code:not([class]))>code{color:inherit}code:not([class]){background-color:var(--db-adaptive-bg-inverted-contrast-max-default);color:var(--db-adaptive-on-bg-inverted-default);padding-block:var(--db-spacing-fixed-3xs);padding-inline:var(--db-spacing-fixed-2xs)}code:not([class]),code:not([class]) span{font-family:monospace}blockquote:not([class]){margin:0;padding:var(--db-spacing-fixed-sm) var(--db-spacing-fixed-md)}
@@ -8,7 +8,12 @@ pre:not([class]):has(code) {
8
8
  background-color: colors.$db-adaptive-bg-inverted-contrast-max-default;
9
9
  color: colors.$db-adaptive-on-bg-inverted-default;
10
10
  padding: variables.$db-spacing-fixed-xs;
11
- font-family: monospace;
11
+
12
+ &,
13
+ code,
14
+ span {
15
+ font-family: monospace;
16
+ }
12
17
  }
13
18
 
14
19
  a:has(code:not([class])) {
@@ -33,7 +38,11 @@ code:not([class]) {
33
38
  color: colors.$db-adaptive-on-bg-inverted-default;
34
39
  padding-block: variables.$db-spacing-fixed-3xs;
35
40
  padding-inline: variables.$db-spacing-fixed-2xs;
36
- font-family: monospace;
41
+
42
+ &,
43
+ span {
44
+ font-family: monospace;
45
+ }
37
46
  }
38
47
 
39
48
  blockquote:not([class]) {
@@ -627,56 +627,6 @@ code {
627
627
 
628
628
  @layer variables {}
629
629
 
630
- /* Use this file if you want to use the defaults for the <code> tag in your project */
631
- pre:not([class]):has(code) {
632
- background-color: var(--db-adaptive-bg-inverted-contrast-max-default);
633
- color: var(--db-adaptive-on-bg-inverted-default);
634
- padding: var(--db-spacing-fixed-xs);
635
- font-family: monospace;
636
- }
637
-
638
- a:has(code:not([class])) {
639
- background-color: var(--db-adaptive-bg-inverted-contrast-max-default);
640
- color: var(--db-adaptive-on-bg-inverted-default);
641
- /* stylelint-disable-next-line a11y/selector-pseudo-class-focus */
642
- }
643
- a:has(code:not([class])):hover:not(:disabled, [aria-disabled=true]) {
644
- cursor: var(--db-overwrite-cursor, pointer);
645
- color: var(--db-adaptive-on-bg-inverted-hovered);
646
- }
647
- a:has(code:not([class])):hover:not(:disabled, [aria-disabled=true]):is(textarea), a:has(code:not([class])):hover:not(:disabled, [aria-disabled=true]):is(input) {
648
- cursor: initial;
649
- }
650
- a:has(code:not([class])):hover:not(:disabled, [aria-disabled=true]):is(input[type=checkbox]), a:has(code:not([class])):hover:not(:disabled, [aria-disabled=true]):is(input[type=radio]:not(:checked)) {
651
- cursor: pointer;
652
- }
653
- a:has(code:not([class])):active:not(:disabled, [aria-disabled=true]) {
654
- cursor: var(--db-overwrite-cursor, pointer);
655
- color: var(--db-adaptive-on-bg-inverted-pressed);
656
- }
657
- a:has(code:not([class])):active:not(:disabled, [aria-disabled=true]):is(textarea), a:has(code:not([class])):active:not(:disabled, [aria-disabled=true]):is(input) {
658
- cursor: initial;
659
- }
660
- a:has(code:not([class])):active:not(:disabled, [aria-disabled=true]):is(input[type=checkbox]), a:has(code:not([class])):active:not(:disabled, [aria-disabled=true]):is(input[type=radio]:not(:checked)) {
661
- cursor: pointer;
662
- }
663
- a:has(code:not([class])) > code {
664
- color: inherit;
665
- }
666
-
667
- code:not([class]) {
668
- background-color: var(--db-adaptive-bg-inverted-contrast-max-default);
669
- color: var(--db-adaptive-on-bg-inverted-default);
670
- padding-block: var(--db-spacing-fixed-3xs);
671
- padding-inline: var(--db-spacing-fixed-2xs);
672
- font-family: monospace;
673
- }
674
-
675
- blockquote:not([class]) {
676
- margin: 0;
677
- padding: var(--db-spacing-fixed-sm) var(--db-spacing-fixed-md);
678
- }
679
-
680
630
  /* Use this file if you want the default elevation data attributes in your project */
681
631
  .db-interactive-elevation,
682
632
  [data-interactive=elevation] {
@@ -849,6 +799,63 @@ strong {
849
799
  font-weight: 700;
850
800
  }
851
801
 
802
+ /* Use this file if you want to use the defaults for the <code> tag in your project */
803
+ pre:not([class]):has(code) {
804
+ background-color: var(--db-adaptive-bg-inverted-contrast-max-default);
805
+ color: var(--db-adaptive-on-bg-inverted-default);
806
+ padding: var(--db-spacing-fixed-xs);
807
+ }
808
+ pre:not([class]):has(code),
809
+ pre:not([class]):has(code) code,
810
+ pre:not([class]):has(code) span {
811
+ font-family: monospace;
812
+ }
813
+
814
+ a:has(code:not([class])) {
815
+ background-color: var(--db-adaptive-bg-inverted-contrast-max-default);
816
+ color: var(--db-adaptive-on-bg-inverted-default);
817
+ /* stylelint-disable-next-line a11y/selector-pseudo-class-focus */
818
+ }
819
+ a:has(code:not([class])):hover:not(:disabled, [aria-disabled=true]) {
820
+ cursor: var(--db-overwrite-cursor, pointer);
821
+ color: var(--db-adaptive-on-bg-inverted-hovered);
822
+ }
823
+ a:has(code:not([class])):hover:not(:disabled, [aria-disabled=true]):is(textarea), a:has(code:not([class])):hover:not(:disabled, [aria-disabled=true]):is(input) {
824
+ cursor: initial;
825
+ }
826
+ a:has(code:not([class])):hover:not(:disabled, [aria-disabled=true]):is(input[type=checkbox]), a:has(code:not([class])):hover:not(:disabled, [aria-disabled=true]):is(input[type=radio]:not(:checked)) {
827
+ cursor: pointer;
828
+ }
829
+ a:has(code:not([class])):active:not(:disabled, [aria-disabled=true]) {
830
+ cursor: var(--db-overwrite-cursor, pointer);
831
+ color: var(--db-adaptive-on-bg-inverted-pressed);
832
+ }
833
+ a:has(code:not([class])):active:not(:disabled, [aria-disabled=true]):is(textarea), a:has(code:not([class])):active:not(:disabled, [aria-disabled=true]):is(input) {
834
+ cursor: initial;
835
+ }
836
+ a:has(code:not([class])):active:not(:disabled, [aria-disabled=true]):is(input[type=checkbox]), a:has(code:not([class])):active:not(:disabled, [aria-disabled=true]):is(input[type=radio]:not(:checked)) {
837
+ cursor: pointer;
838
+ }
839
+ a:has(code:not([class])) > code {
840
+ color: inherit;
841
+ }
842
+
843
+ code:not([class]) {
844
+ background-color: var(--db-adaptive-bg-inverted-contrast-max-default);
845
+ color: var(--db-adaptive-on-bg-inverted-default);
846
+ padding-block: var(--db-spacing-fixed-3xs);
847
+ padding-inline: var(--db-spacing-fixed-2xs);
848
+ }
849
+ code:not([class]),
850
+ code:not([class]) span {
851
+ font-family: monospace;
852
+ }
853
+
854
+ blockquote:not([class]) {
855
+ margin: 0;
856
+ padding: var(--db-spacing-fixed-sm) var(--db-spacing-fixed-md);
857
+ }
858
+
852
859
  [data-icon]::before,
853
860
  [data-icon-before]::before, [data-icon-after]::after {
854
861
  color: var(--db-icon-color, inherit);
@@ -1,6 +1,6 @@
1
1
  @forward "defaults/default-root";
2
- @forward "defaults/default-code";
3
2
  @forward "defaults/default-elevation";
4
3
  @forward "defaults/default-fonts";
4
+ @forward "defaults/default-code";
5
5
  @forward "defaults/default-icons";
6
6
  @forward "defaults/default-required";
@@ -6328,56 +6328,6 @@ code {
6328
6328
 
6329
6329
  @layer variables {}
6330
6330
 
6331
- /* Use this file if you want to use the defaults for the <code> tag in your project */
6332
- pre:not([class]):has(code) {
6333
- background-color: var(--db-adaptive-bg-inverted-contrast-max-default);
6334
- color: var(--db-adaptive-on-bg-inverted-default);
6335
- padding: var(--db-spacing-fixed-xs);
6336
- font-family: monospace;
6337
- }
6338
-
6339
- a:has(code:not([class])) {
6340
- background-color: var(--db-adaptive-bg-inverted-contrast-max-default);
6341
- color: var(--db-adaptive-on-bg-inverted-default);
6342
- /* stylelint-disable-next-line a11y/selector-pseudo-class-focus */
6343
- }
6344
- a:has(code:not([class])):hover:not(:disabled, [aria-disabled=true]) {
6345
- cursor: var(--db-overwrite-cursor, pointer);
6346
- color: var(--db-adaptive-on-bg-inverted-hovered);
6347
- }
6348
- a:has(code:not([class])):hover:not(:disabled, [aria-disabled=true]):is(textarea), a:has(code:not([class])):hover:not(:disabled, [aria-disabled=true]):is(input) {
6349
- cursor: initial;
6350
- }
6351
- a:has(code:not([class])):hover:not(:disabled, [aria-disabled=true]):is(input[type=checkbox]), a:has(code:not([class])):hover:not(:disabled, [aria-disabled=true]):is(input[type=radio]:not(:checked)) {
6352
- cursor: pointer;
6353
- }
6354
- a:has(code:not([class])):active:not(:disabled, [aria-disabled=true]) {
6355
- cursor: var(--db-overwrite-cursor, pointer);
6356
- color: var(--db-adaptive-on-bg-inverted-pressed);
6357
- }
6358
- a:has(code:not([class])):active:not(:disabled, [aria-disabled=true]):is(textarea), a:has(code:not([class])):active:not(:disabled, [aria-disabled=true]):is(input) {
6359
- cursor: initial;
6360
- }
6361
- a:has(code:not([class])):active:not(:disabled, [aria-disabled=true]):is(input[type=checkbox]), a:has(code:not([class])):active:not(:disabled, [aria-disabled=true]):is(input[type=radio]:not(:checked)) {
6362
- cursor: pointer;
6363
- }
6364
- a:has(code:not([class])) > code {
6365
- color: inherit;
6366
- }
6367
-
6368
- code:not([class]) {
6369
- background-color: var(--db-adaptive-bg-inverted-contrast-max-default);
6370
- color: var(--db-adaptive-on-bg-inverted-default);
6371
- padding-block: var(--db-spacing-fixed-3xs);
6372
- padding-inline: var(--db-spacing-fixed-2xs);
6373
- font-family: monospace;
6374
- }
6375
-
6376
- blockquote:not([class]) {
6377
- margin: 0;
6378
- padding: var(--db-spacing-fixed-sm) var(--db-spacing-fixed-md);
6379
- }
6380
-
6381
6331
  /* Use this file if you want the default elevation data attributes in your project */
6382
6332
  .db-interactive-elevation,
6383
6333
  [data-interactive=elevation] {
@@ -6550,6 +6500,63 @@ strong {
6550
6500
  font-weight: 700;
6551
6501
  }
6552
6502
 
6503
+ /* Use this file if you want to use the defaults for the <code> tag in your project */
6504
+ pre:not([class]):has(code) {
6505
+ background-color: var(--db-adaptive-bg-inverted-contrast-max-default);
6506
+ color: var(--db-adaptive-on-bg-inverted-default);
6507
+ padding: var(--db-spacing-fixed-xs);
6508
+ }
6509
+ pre:not([class]):has(code),
6510
+ pre:not([class]):has(code) code,
6511
+ pre:not([class]):has(code) span {
6512
+ font-family: monospace;
6513
+ }
6514
+
6515
+ a:has(code:not([class])) {
6516
+ background-color: var(--db-adaptive-bg-inverted-contrast-max-default);
6517
+ color: var(--db-adaptive-on-bg-inverted-default);
6518
+ /* stylelint-disable-next-line a11y/selector-pseudo-class-focus */
6519
+ }
6520
+ a:has(code:not([class])):hover:not(:disabled, [aria-disabled=true]) {
6521
+ cursor: var(--db-overwrite-cursor, pointer);
6522
+ color: var(--db-adaptive-on-bg-inverted-hovered);
6523
+ }
6524
+ a:has(code:not([class])):hover:not(:disabled, [aria-disabled=true]):is(textarea), a:has(code:not([class])):hover:not(:disabled, [aria-disabled=true]):is(input) {
6525
+ cursor: initial;
6526
+ }
6527
+ a:has(code:not([class])):hover:not(:disabled, [aria-disabled=true]):is(input[type=checkbox]), a:has(code:not([class])):hover:not(:disabled, [aria-disabled=true]):is(input[type=radio]:not(:checked)) {
6528
+ cursor: pointer;
6529
+ }
6530
+ a:has(code:not([class])):active:not(:disabled, [aria-disabled=true]) {
6531
+ cursor: var(--db-overwrite-cursor, pointer);
6532
+ color: var(--db-adaptive-on-bg-inverted-pressed);
6533
+ }
6534
+ a:has(code:not([class])):active:not(:disabled, [aria-disabled=true]):is(textarea), a:has(code:not([class])):active:not(:disabled, [aria-disabled=true]):is(input) {
6535
+ cursor: initial;
6536
+ }
6537
+ a:has(code:not([class])):active:not(:disabled, [aria-disabled=true]):is(input[type=checkbox]), a:has(code:not([class])):active:not(:disabled, [aria-disabled=true]):is(input[type=radio]:not(:checked)) {
6538
+ cursor: pointer;
6539
+ }
6540
+ a:has(code:not([class])) > code {
6541
+ color: inherit;
6542
+ }
6543
+
6544
+ code:not([class]) {
6545
+ background-color: var(--db-adaptive-bg-inverted-contrast-max-default);
6546
+ color: var(--db-adaptive-on-bg-inverted-default);
6547
+ padding-block: var(--db-spacing-fixed-3xs);
6548
+ padding-inline: var(--db-spacing-fixed-2xs);
6549
+ }
6550
+ code:not([class]),
6551
+ code:not([class]) span {
6552
+ font-family: monospace;
6553
+ }
6554
+
6555
+ blockquote:not([class]) {
6556
+ margin: 0;
6557
+ padding: var(--db-spacing-fixed-sm) var(--db-spacing-fixed-md);
6558
+ }
6559
+
6553
6560
  [data-icon]:is(span),
6554
6561
  [data-icon-before]:is(span),
6555
6562
  [data-icon-after]:is(span) {
@@ -6328,56 +6328,6 @@ code {
6328
6328
 
6329
6329
  @layer variables {}
6330
6330
 
6331
- /* Use this file if you want to use the defaults for the <code> tag in your project */
6332
- pre:not([class]):has(code) {
6333
- background-color: var(--db-adaptive-bg-inverted-contrast-max-default);
6334
- color: var(--db-adaptive-on-bg-inverted-default);
6335
- padding: var(--db-spacing-fixed-xs);
6336
- font-family: monospace;
6337
- }
6338
-
6339
- a:has(code:not([class])) {
6340
- background-color: var(--db-adaptive-bg-inverted-contrast-max-default);
6341
- color: var(--db-adaptive-on-bg-inverted-default);
6342
- /* stylelint-disable-next-line a11y/selector-pseudo-class-focus */
6343
- }
6344
- a:has(code:not([class])):hover:not(:disabled, [aria-disabled=true]) {
6345
- cursor: var(--db-overwrite-cursor, pointer);
6346
- color: var(--db-adaptive-on-bg-inverted-hovered);
6347
- }
6348
- a:has(code:not([class])):hover:not(:disabled, [aria-disabled=true]):is(textarea), a:has(code:not([class])):hover:not(:disabled, [aria-disabled=true]):is(input) {
6349
- cursor: initial;
6350
- }
6351
- a:has(code:not([class])):hover:not(:disabled, [aria-disabled=true]):is(input[type=checkbox]), a:has(code:not([class])):hover:not(:disabled, [aria-disabled=true]):is(input[type=radio]:not(:checked)) {
6352
- cursor: pointer;
6353
- }
6354
- a:has(code:not([class])):active:not(:disabled, [aria-disabled=true]) {
6355
- cursor: var(--db-overwrite-cursor, pointer);
6356
- color: var(--db-adaptive-on-bg-inverted-pressed);
6357
- }
6358
- a:has(code:not([class])):active:not(:disabled, [aria-disabled=true]):is(textarea), a:has(code:not([class])):active:not(:disabled, [aria-disabled=true]):is(input) {
6359
- cursor: initial;
6360
- }
6361
- a:has(code:not([class])):active:not(:disabled, [aria-disabled=true]):is(input[type=checkbox]), a:has(code:not([class])):active:not(:disabled, [aria-disabled=true]):is(input[type=radio]:not(:checked)) {
6362
- cursor: pointer;
6363
- }
6364
- a:has(code:not([class])) > code {
6365
- color: inherit;
6366
- }
6367
-
6368
- code:not([class]) {
6369
- background-color: var(--db-adaptive-bg-inverted-contrast-max-default);
6370
- color: var(--db-adaptive-on-bg-inverted-default);
6371
- padding-block: var(--db-spacing-fixed-3xs);
6372
- padding-inline: var(--db-spacing-fixed-2xs);
6373
- font-family: monospace;
6374
- }
6375
-
6376
- blockquote:not([class]) {
6377
- margin: 0;
6378
- padding: var(--db-spacing-fixed-sm) var(--db-spacing-fixed-md);
6379
- }
6380
-
6381
6331
  /* Use this file if you want the default elevation data attributes in your project */
6382
6332
  .db-interactive-elevation,
6383
6333
  [data-interactive=elevation] {
@@ -6550,6 +6500,63 @@ strong {
6550
6500
  font-weight: 700;
6551
6501
  }
6552
6502
 
6503
+ /* Use this file if you want to use the defaults for the <code> tag in your project */
6504
+ pre:not([class]):has(code) {
6505
+ background-color: var(--db-adaptive-bg-inverted-contrast-max-default);
6506
+ color: var(--db-adaptive-on-bg-inverted-default);
6507
+ padding: var(--db-spacing-fixed-xs);
6508
+ }
6509
+ pre:not([class]):has(code),
6510
+ pre:not([class]):has(code) code,
6511
+ pre:not([class]):has(code) span {
6512
+ font-family: monospace;
6513
+ }
6514
+
6515
+ a:has(code:not([class])) {
6516
+ background-color: var(--db-adaptive-bg-inverted-contrast-max-default);
6517
+ color: var(--db-adaptive-on-bg-inverted-default);
6518
+ /* stylelint-disable-next-line a11y/selector-pseudo-class-focus */
6519
+ }
6520
+ a:has(code:not([class])):hover:not(:disabled, [aria-disabled=true]) {
6521
+ cursor: var(--db-overwrite-cursor, pointer);
6522
+ color: var(--db-adaptive-on-bg-inverted-hovered);
6523
+ }
6524
+ a:has(code:not([class])):hover:not(:disabled, [aria-disabled=true]):is(textarea), a:has(code:not([class])):hover:not(:disabled, [aria-disabled=true]):is(input) {
6525
+ cursor: initial;
6526
+ }
6527
+ a:has(code:not([class])):hover:not(:disabled, [aria-disabled=true]):is(input[type=checkbox]), a:has(code:not([class])):hover:not(:disabled, [aria-disabled=true]):is(input[type=radio]:not(:checked)) {
6528
+ cursor: pointer;
6529
+ }
6530
+ a:has(code:not([class])):active:not(:disabled, [aria-disabled=true]) {
6531
+ cursor: var(--db-overwrite-cursor, pointer);
6532
+ color: var(--db-adaptive-on-bg-inverted-pressed);
6533
+ }
6534
+ a:has(code:not([class])):active:not(:disabled, [aria-disabled=true]):is(textarea), a:has(code:not([class])):active:not(:disabled, [aria-disabled=true]):is(input) {
6535
+ cursor: initial;
6536
+ }
6537
+ a:has(code:not([class])):active:not(:disabled, [aria-disabled=true]):is(input[type=checkbox]), a:has(code:not([class])):active:not(:disabled, [aria-disabled=true]):is(input[type=radio]:not(:checked)) {
6538
+ cursor: pointer;
6539
+ }
6540
+ a:has(code:not([class])) > code {
6541
+ color: inherit;
6542
+ }
6543
+
6544
+ code:not([class]) {
6545
+ background-color: var(--db-adaptive-bg-inverted-contrast-max-default);
6546
+ color: var(--db-adaptive-on-bg-inverted-default);
6547
+ padding-block: var(--db-spacing-fixed-3xs);
6548
+ padding-inline: var(--db-spacing-fixed-2xs);
6549
+ }
6550
+ code:not([class]),
6551
+ code:not([class]) span {
6552
+ font-family: monospace;
6553
+ }
6554
+
6555
+ blockquote:not([class]) {
6556
+ margin: 0;
6557
+ padding: var(--db-spacing-fixed-sm) var(--db-spacing-fixed-md);
6558
+ }
6559
+
6553
6560
  [data-icon]:is(span),
6554
6561
  [data-icon-before]:is(span),
6555
6562
  [data-icon-after]:is(span) {
@@ -6328,56 +6328,6 @@ code {
6328
6328
 
6329
6329
  @layer variables {}
6330
6330
 
6331
- /* Use this file if you want to use the defaults for the <code> tag in your project */
6332
- pre:not([class]):has(code) {
6333
- background-color: var(--db-adaptive-bg-inverted-contrast-max-default);
6334
- color: var(--db-adaptive-on-bg-inverted-default);
6335
- padding: var(--db-spacing-fixed-xs);
6336
- font-family: monospace;
6337
- }
6338
-
6339
- a:has(code:not([class])) {
6340
- background-color: var(--db-adaptive-bg-inverted-contrast-max-default);
6341
- color: var(--db-adaptive-on-bg-inverted-default);
6342
- /* stylelint-disable-next-line a11y/selector-pseudo-class-focus */
6343
- }
6344
- a:has(code:not([class])):hover:not(:disabled, [aria-disabled=true]) {
6345
- cursor: var(--db-overwrite-cursor, pointer);
6346
- color: var(--db-adaptive-on-bg-inverted-hovered);
6347
- }
6348
- a:has(code:not([class])):hover:not(:disabled, [aria-disabled=true]):is(textarea), a:has(code:not([class])):hover:not(:disabled, [aria-disabled=true]):is(input) {
6349
- cursor: initial;
6350
- }
6351
- a:has(code:not([class])):hover:not(:disabled, [aria-disabled=true]):is(input[type=checkbox]), a:has(code:not([class])):hover:not(:disabled, [aria-disabled=true]):is(input[type=radio]:not(:checked)) {
6352
- cursor: pointer;
6353
- }
6354
- a:has(code:not([class])):active:not(:disabled, [aria-disabled=true]) {
6355
- cursor: var(--db-overwrite-cursor, pointer);
6356
- color: var(--db-adaptive-on-bg-inverted-pressed);
6357
- }
6358
- a:has(code:not([class])):active:not(:disabled, [aria-disabled=true]):is(textarea), a:has(code:not([class])):active:not(:disabled, [aria-disabled=true]):is(input) {
6359
- cursor: initial;
6360
- }
6361
- a:has(code:not([class])):active:not(:disabled, [aria-disabled=true]):is(input[type=checkbox]), a:has(code:not([class])):active:not(:disabled, [aria-disabled=true]):is(input[type=radio]:not(:checked)) {
6362
- cursor: pointer;
6363
- }
6364
- a:has(code:not([class])) > code {
6365
- color: inherit;
6366
- }
6367
-
6368
- code:not([class]) {
6369
- background-color: var(--db-adaptive-bg-inverted-contrast-max-default);
6370
- color: var(--db-adaptive-on-bg-inverted-default);
6371
- padding-block: var(--db-spacing-fixed-3xs);
6372
- padding-inline: var(--db-spacing-fixed-2xs);
6373
- font-family: monospace;
6374
- }
6375
-
6376
- blockquote:not([class]) {
6377
- margin: 0;
6378
- padding: var(--db-spacing-fixed-sm) var(--db-spacing-fixed-md);
6379
- }
6380
-
6381
6331
  /* Use this file if you want the default elevation data attributes in your project */
6382
6332
  .db-interactive-elevation,
6383
6333
  [data-interactive=elevation] {
@@ -6550,6 +6500,63 @@ strong {
6550
6500
  font-weight: 700;
6551
6501
  }
6552
6502
 
6503
+ /* Use this file if you want to use the defaults for the <code> tag in your project */
6504
+ pre:not([class]):has(code) {
6505
+ background-color: var(--db-adaptive-bg-inverted-contrast-max-default);
6506
+ color: var(--db-adaptive-on-bg-inverted-default);
6507
+ padding: var(--db-spacing-fixed-xs);
6508
+ }
6509
+ pre:not([class]):has(code),
6510
+ pre:not([class]):has(code) code,
6511
+ pre:not([class]):has(code) span {
6512
+ font-family: monospace;
6513
+ }
6514
+
6515
+ a:has(code:not([class])) {
6516
+ background-color: var(--db-adaptive-bg-inverted-contrast-max-default);
6517
+ color: var(--db-adaptive-on-bg-inverted-default);
6518
+ /* stylelint-disable-next-line a11y/selector-pseudo-class-focus */
6519
+ }
6520
+ a:has(code:not([class])):hover:not(:disabled, [aria-disabled=true]) {
6521
+ cursor: var(--db-overwrite-cursor, pointer);
6522
+ color: var(--db-adaptive-on-bg-inverted-hovered);
6523
+ }
6524
+ a:has(code:not([class])):hover:not(:disabled, [aria-disabled=true]):is(textarea), a:has(code:not([class])):hover:not(:disabled, [aria-disabled=true]):is(input) {
6525
+ cursor: initial;
6526
+ }
6527
+ a:has(code:not([class])):hover:not(:disabled, [aria-disabled=true]):is(input[type=checkbox]), a:has(code:not([class])):hover:not(:disabled, [aria-disabled=true]):is(input[type=radio]:not(:checked)) {
6528
+ cursor: pointer;
6529
+ }
6530
+ a:has(code:not([class])):active:not(:disabled, [aria-disabled=true]) {
6531
+ cursor: var(--db-overwrite-cursor, pointer);
6532
+ color: var(--db-adaptive-on-bg-inverted-pressed);
6533
+ }
6534
+ a:has(code:not([class])):active:not(:disabled, [aria-disabled=true]):is(textarea), a:has(code:not([class])):active:not(:disabled, [aria-disabled=true]):is(input) {
6535
+ cursor: initial;
6536
+ }
6537
+ a:has(code:not([class])):active:not(:disabled, [aria-disabled=true]):is(input[type=checkbox]), a:has(code:not([class])):active:not(:disabled, [aria-disabled=true]):is(input[type=radio]:not(:checked)) {
6538
+ cursor: pointer;
6539
+ }
6540
+ a:has(code:not([class])) > code {
6541
+ color: inherit;
6542
+ }
6543
+
6544
+ code:not([class]) {
6545
+ background-color: var(--db-adaptive-bg-inverted-contrast-max-default);
6546
+ color: var(--db-adaptive-on-bg-inverted-default);
6547
+ padding-block: var(--db-spacing-fixed-3xs);
6548
+ padding-inline: var(--db-spacing-fixed-2xs);
6549
+ }
6550
+ code:not([class]),
6551
+ code:not([class]) span {
6552
+ font-family: monospace;
6553
+ }
6554
+
6555
+ blockquote:not([class]) {
6556
+ margin: 0;
6557
+ padding: var(--db-spacing-fixed-sm) var(--db-spacing-fixed-md);
6558
+ }
6559
+
6553
6560
  [data-icon]:is(span),
6554
6561
  [data-icon-before]:is(span),
6555
6562
  [data-icon-after]:is(span) {
@@ -1,7 +1,6 @@
1
- /* eslint-disable import/no-anonymous-default-export */
2
1
  import tokens from './tailwind-tokens.json';
3
2
 
4
- export default {
3
+ const tailwindConfig = {
5
4
  content: ['./index.html', './src/**/*.{js,jsx,ts,tsx}'],
6
5
  plugins: [],
7
6
  theme: {
@@ -14,3 +13,5 @@ export default {
14
13
  })
15
14
  }
16
15
  };
16
+
17
+ export default tailwindConfig;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@db-ux/core-foundations",
3
- "version": "2.3.1",
3
+ "version": "2.4.0",
4
4
  "type": "module",
5
5
  "description": "Provides basic tokens and assets based on DB UX Design System (Version 3).",
6
6
  "repository": {
@@ -46,13 +46,14 @@
46
46
  },
47
47
  "devDependencies": {
48
48
  "@csstools/normalize.css": "12.1.1",
49
- "@db-ux/icon-font-tools": "0.3.3",
49
+ "@db-ux/icon-font-tools": "0.3.4",
50
+ "@playwright/test": "1.53.2",
50
51
  "cpr": "3.0.1",
51
52
  "cssnano": "^7.0.7",
52
- "dotenv": "^16.6.0",
53
+ "dotenv": "^17.0.1",
53
54
  "glob": "11.0.3",
54
55
  "nodemon": "3.1.10",
55
- "prettier": "^3.6.1",
56
+ "prettier": "^3.6.2",
56
57
  "sass": "1.85.0",
57
58
  "tsx": "^4.20.3",
58
59
  "typescript": "^5.4.5",
@@ -1,43 +0,0 @@
1
- import { promises as fs } from 'fs';
2
- import path from 'path';
3
-
4
- const directoryPath = './';
5
-
6
- async function readDirectoryRecursive(dir) {
7
- const entries = await fs.readdir(dir, { withFileTypes: true });
8
- const files = await Promise.all(
9
- entries.map((entry) => {
10
- const res = path.resolve(dir, entry.name);
11
- return entry.isDirectory() ? readDirectoryRecursive(res) : res;
12
- })
13
- );
14
- return Array.prototype.concat(...files);
15
- }
16
-
17
- async function appendToFile(filePath, fileName) {
18
- const namePart = fileName.split('_')[1].split('.')[0];
19
- const snippet = `// vibrant
20
- $db-${namePart}-vibrant-default: var(--db-${namePart}-vibrant-default);
21
- $db-${namePart}-vibrant-hovered: var(--db-${namePart}-vibrant-hovered);
22
- $db-${namePart}-vibrant-pressed: var(--db-${namePart}-vibrant-pressed);
23
-
24
- // on-vibrant
25
- $db-${namePart}-on-vibrant-default: var(--db-${namePart}-on-vibrant-default);
26
- $db-${namePart}-on-vibrant-hovered: var(--db-${namePart}-on-vibrant-hovered);
27
- $db-${namePart}-on-vibrant-pressed: var(--db-${namePart}-on-vibrant-pressed);
28
- `;
29
-
30
- await fs.appendFile(filePath, snippet);
31
- }
32
-
33
- async function processFiles() {
34
- const files = await readDirectoryRecursive(directoryPath);
35
- const scssFiles = files.filter((file) => file.endsWith('.scss'));
36
-
37
- for (const file of scssFiles) {
38
- const fileName = path.basename(file);
39
- await appendToFile(file, fileName);
40
- }
41
- }
42
-
43
- processFiles().catch(console.error);