@db-ux/core-foundations 4.9.1 → 4.10.0-esm-f121fc3
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/CHANGELOG.md +4 -0
- package/build/styles/bundle.css +6 -128
- package/build/styles/colors/_placeholder.scss +12 -8
- package/build/styles/defaults/default-code.css +1 -1
- package/build/styles/defaults/default-elevation.css +1 -1
- package/build/styles/helpers/_functions.scss +11 -31
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
package/build/styles/bundle.css
CHANGED
|
@@ -551,96 +551,16 @@ code {
|
|
|
551
551
|
[data-interactive=elevation] {
|
|
552
552
|
/* stylelint-disable-next-line a11y/selector-pseudo-class-focus */
|
|
553
553
|
}
|
|
554
|
-
.db-interactive-elevation:hover
|
|
555
|
-
[
|
|
556
|
-
[tabindex="-1"],
|
|
557
|
-
:has(:disabled)),
|
|
558
|
-
[data-interactive=elevation]:hover:not(:disabled,
|
|
559
|
-
[aria-disabled=true],
|
|
560
|
-
[tabindex="-1"],
|
|
561
|
-
:has(:disabled)) {
|
|
554
|
+
.db-interactive-elevation:hover,
|
|
555
|
+
[data-interactive=elevation]:hover {
|
|
562
556
|
cursor: var(--db-overwrite-cursor, pointer);
|
|
563
557
|
box-shadow: var(--db-elevation-lg);
|
|
564
558
|
}
|
|
565
|
-
.db-interactive-elevation:
|
|
566
|
-
[
|
|
567
|
-
[tabindex="-1"],
|
|
568
|
-
:has(:disabled)):is(textarea), .db-interactive-elevation:hover:not(:disabled,
|
|
569
|
-
[aria-disabled=true],
|
|
570
|
-
[tabindex="-1"],
|
|
571
|
-
:has(:disabled)):is(input),
|
|
572
|
-
[data-interactive=elevation]:hover:not(:disabled,
|
|
573
|
-
[aria-disabled=true],
|
|
574
|
-
[tabindex="-1"],
|
|
575
|
-
:has(:disabled)):is(textarea),
|
|
576
|
-
[data-interactive=elevation]:hover:not(:disabled,
|
|
577
|
-
[aria-disabled=true],
|
|
578
|
-
[tabindex="-1"],
|
|
579
|
-
:has(:disabled)):is(input) {
|
|
580
|
-
cursor: initial;
|
|
581
|
-
}
|
|
582
|
-
.db-interactive-elevation:hover:not(:disabled,
|
|
583
|
-
[aria-disabled=true],
|
|
584
|
-
[tabindex="-1"],
|
|
585
|
-
:has(:disabled)):is(input[type=checkbox]), .db-interactive-elevation:hover:not(:disabled,
|
|
586
|
-
[aria-disabled=true],
|
|
587
|
-
[tabindex="-1"],
|
|
588
|
-
:has(:disabled)):is(input[type=radio]:not(:checked)),
|
|
589
|
-
[data-interactive=elevation]:hover:not(:disabled,
|
|
590
|
-
[aria-disabled=true],
|
|
591
|
-
[tabindex="-1"],
|
|
592
|
-
:has(:disabled)):is(input[type=checkbox]),
|
|
593
|
-
[data-interactive=elevation]:hover:not(:disabled,
|
|
594
|
-
[aria-disabled=true],
|
|
595
|
-
[tabindex="-1"],
|
|
596
|
-
:has(:disabled)):is(input[type=radio]:not(:checked)) {
|
|
597
|
-
cursor: pointer;
|
|
598
|
-
}
|
|
599
|
-
.db-interactive-elevation:active:not(:disabled,
|
|
600
|
-
[aria-disabled=true],
|
|
601
|
-
[tabindex="-1"],
|
|
602
|
-
:has(:disabled)),
|
|
603
|
-
[data-interactive=elevation]:active:not(:disabled,
|
|
604
|
-
[aria-disabled=true],
|
|
605
|
-
[tabindex="-1"],
|
|
606
|
-
:has(:disabled)) {
|
|
559
|
+
.db-interactive-elevation:active,
|
|
560
|
+
[data-interactive=elevation]:active {
|
|
607
561
|
cursor: var(--db-overwrite-cursor, pointer);
|
|
608
562
|
box-shadow: var(--db-elevation-sm);
|
|
609
563
|
}
|
|
610
|
-
.db-interactive-elevation:active:not(:disabled,
|
|
611
|
-
[aria-disabled=true],
|
|
612
|
-
[tabindex="-1"],
|
|
613
|
-
:has(:disabled)):is(textarea), .db-interactive-elevation:active:not(:disabled,
|
|
614
|
-
[aria-disabled=true],
|
|
615
|
-
[tabindex="-1"],
|
|
616
|
-
:has(:disabled)):is(input),
|
|
617
|
-
[data-interactive=elevation]:active:not(:disabled,
|
|
618
|
-
[aria-disabled=true],
|
|
619
|
-
[tabindex="-1"],
|
|
620
|
-
:has(:disabled)):is(textarea),
|
|
621
|
-
[data-interactive=elevation]:active:not(:disabled,
|
|
622
|
-
[aria-disabled=true],
|
|
623
|
-
[tabindex="-1"],
|
|
624
|
-
:has(:disabled)):is(input) {
|
|
625
|
-
cursor: initial;
|
|
626
|
-
}
|
|
627
|
-
.db-interactive-elevation:active:not(:disabled,
|
|
628
|
-
[aria-disabled=true],
|
|
629
|
-
[tabindex="-1"],
|
|
630
|
-
:has(:disabled)):is(input[type=checkbox]), .db-interactive-elevation:active:not(:disabled,
|
|
631
|
-
[aria-disabled=true],
|
|
632
|
-
[tabindex="-1"],
|
|
633
|
-
:has(:disabled)):is(input[type=radio]:not(:checked)),
|
|
634
|
-
[data-interactive=elevation]:active:not(:disabled,
|
|
635
|
-
[aria-disabled=true],
|
|
636
|
-
[tabindex="-1"],
|
|
637
|
-
:has(:disabled)):is(input[type=checkbox]),
|
|
638
|
-
[data-interactive=elevation]:active:not(:disabled,
|
|
639
|
-
[aria-disabled=true],
|
|
640
|
-
[tabindex="-1"],
|
|
641
|
-
:has(:disabled)):is(input[type=radio]:not(:checked)) {
|
|
642
|
-
cursor: pointer;
|
|
643
|
-
}
|
|
644
564
|
|
|
645
565
|
/* Use this file if you want the default fonts for paragraph and headlines in your project */
|
|
646
566
|
h1 {
|
|
@@ -799,56 +719,14 @@ a:has(code:not([class]):only-child) {
|
|
|
799
719
|
color: var(--db-adaptive-on-bg-inverted-default);
|
|
800
720
|
/* stylelint-disable-next-line a11y/selector-pseudo-class-focus */
|
|
801
721
|
}
|
|
802
|
-
a:has(code:not([class]):only-child):hover
|
|
803
|
-
[aria-disabled=true],
|
|
804
|
-
[tabindex="-1"],
|
|
805
|
-
:has(:disabled)) {
|
|
722
|
+
a:has(code:not([class]):only-child):hover {
|
|
806
723
|
cursor: var(--db-overwrite-cursor, pointer);
|
|
807
724
|
color: var(--db-adaptive-on-bg-inverted-hovered);
|
|
808
725
|
}
|
|
809
|
-
a:has(code:not([class]):only-child):
|
|
810
|
-
[aria-disabled=true],
|
|
811
|
-
[tabindex="-1"],
|
|
812
|
-
:has(:disabled)):is(textarea), a:has(code:not([class]):only-child):hover:not(:disabled,
|
|
813
|
-
[aria-disabled=true],
|
|
814
|
-
[tabindex="-1"],
|
|
815
|
-
:has(:disabled)):is(input) {
|
|
816
|
-
cursor: initial;
|
|
817
|
-
}
|
|
818
|
-
a:has(code:not([class]):only-child):hover:not(:disabled,
|
|
819
|
-
[aria-disabled=true],
|
|
820
|
-
[tabindex="-1"],
|
|
821
|
-
:has(:disabled)):is(input[type=checkbox]), a:has(code:not([class]):only-child):hover:not(:disabled,
|
|
822
|
-
[aria-disabled=true],
|
|
823
|
-
[tabindex="-1"],
|
|
824
|
-
:has(:disabled)):is(input[type=radio]:not(:checked)) {
|
|
825
|
-
cursor: pointer;
|
|
826
|
-
}
|
|
827
|
-
a:has(code:not([class]):only-child):active:not(:disabled,
|
|
828
|
-
[aria-disabled=true],
|
|
829
|
-
[tabindex="-1"],
|
|
830
|
-
:has(:disabled)) {
|
|
726
|
+
a:has(code:not([class]):only-child):active {
|
|
831
727
|
cursor: var(--db-overwrite-cursor, pointer);
|
|
832
728
|
color: var(--db-adaptive-on-bg-inverted-pressed);
|
|
833
729
|
}
|
|
834
|
-
a:has(code:not([class]):only-child):active:not(:disabled,
|
|
835
|
-
[aria-disabled=true],
|
|
836
|
-
[tabindex="-1"],
|
|
837
|
-
:has(:disabled)):is(textarea), a:has(code:not([class]):only-child):active:not(:disabled,
|
|
838
|
-
[aria-disabled=true],
|
|
839
|
-
[tabindex="-1"],
|
|
840
|
-
:has(:disabled)):is(input) {
|
|
841
|
-
cursor: initial;
|
|
842
|
-
}
|
|
843
|
-
a:has(code:not([class]):only-child):active:not(:disabled,
|
|
844
|
-
[aria-disabled=true],
|
|
845
|
-
[tabindex="-1"],
|
|
846
|
-
:has(:disabled)):is(input[type=checkbox]), a:has(code:not([class]):only-child):active:not(:disabled,
|
|
847
|
-
[aria-disabled=true],
|
|
848
|
-
[tabindex="-1"],
|
|
849
|
-
:has(:disabled)):is(input[type=radio]:not(:checked)) {
|
|
850
|
-
cursor: pointer;
|
|
851
|
-
}
|
|
852
730
|
a:has(code:not([class]):only-child) > code {
|
|
853
731
|
color: inherit;
|
|
854
732
|
}
|
|
@@ -12,15 +12,19 @@
|
|
|
12
12
|
--db-icon-color: #{$on};
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
@if $hovered {
|
|
16
|
-
@include functions.
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
@if $hovered or $pressed {
|
|
16
|
+
@include functions.not-disabled {
|
|
17
|
+
@if $hovered {
|
|
18
|
+
@include functions.hover {
|
|
19
|
+
background-color: #{$hovered};
|
|
20
|
+
}
|
|
21
|
+
}
|
|
20
22
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
@if $pressed {
|
|
24
|
+
@include functions.active {
|
|
25
|
+
background-color: #{$pressed};
|
|
26
|
+
}
|
|
27
|
+
}
|
|
24
28
|
}
|
|
25
29
|
}
|
|
26
30
|
}
|
|
@@ -94,4 +94,4 @@ blockquote:not([class]){--db-adaptive-bg-basic-level-1-default:var(
|
|
|
94
94
|
--db-neutral-on-bg-vibrant-hovered
|
|
95
95
|
);--db-adaptive-on-bg-vibrant-pressed:var(
|
|
96
96
|
--db-neutral-on-bg-vibrant-pressed
|
|
97
|
-
);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)}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]):only-child){background-color:var(--db-adaptive-bg-inverted-contrast-max-default);color:var(--db-adaptive-on-bg-inverted-default)}a:has(code:not([class]):only-child):hover
|
|
97
|
+
);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)}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]):only-child){background-color:var(--db-adaptive-bg-inverted-contrast-max-default);color:var(--db-adaptive-on-bg-inverted-default)}a:has(code:not([class]):only-child):hover{cursor:var(--db-overwrite-cursor,pointer);color:var(--db-adaptive-on-bg-inverted-hovered)}a:has(code:not([class]):only-child):active{cursor:var(--db-overwrite-cursor,pointer);color:var(--db-adaptive-on-bg-inverted-pressed)}a:has(code:not([class]):only-child)>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)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.db-interactive-elevation,[data-interactive=elevation]{cursor:pointer;box-shadow:var(--db-elevation-md)}@media (prefers-reduced-motion:no-preference){.db-interactive-elevation,[data-interactive=elevation]{transition:box-shadow var(--db-transition-duration-fast) var(--db-transition-timing-functional)}}.db-interactive-elevation:hover
|
|
1
|
+
.db-interactive-elevation,[data-interactive=elevation]{cursor:pointer;box-shadow:var(--db-elevation-md)}@media (prefers-reduced-motion:no-preference){.db-interactive-elevation,[data-interactive=elevation]{transition:box-shadow var(--db-transition-duration-fast) var(--db-transition-timing-functional)}}.db-interactive-elevation:hover,[data-interactive=elevation]:hover{cursor:var(--db-overwrite-cursor,pointer);box-shadow:var(--db-elevation-lg)}.db-interactive-elevation:active,[data-interactive=elevation]:active{cursor:var(--db-overwrite-cursor,pointer);box-shadow:var(--db-elevation-sm)}
|
|
@@ -11,45 +11,25 @@
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
$cursor-pointer: var(--db-overwrite-cursor, pointer);
|
|
14
|
+
$disabled-state: ':disabled,[aria-disabled="true"],[tabindex="-1"],:has(:disabled)';
|
|
14
15
|
|
|
15
|
-
@mixin
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
&:is(textarea),
|
|
20
|
-
&:is(input) {
|
|
21
|
-
cursor: initial;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
&:is(input[type="checkbox"]),
|
|
25
|
-
&:is(input[type="radio"]:not(:checked)) {
|
|
26
|
-
cursor: pointer;
|
|
16
|
+
@mixin not-disabled() {
|
|
17
|
+
&:not(#{$disabled-state}) {
|
|
18
|
+
@content;
|
|
27
19
|
}
|
|
28
20
|
}
|
|
29
21
|
|
|
30
|
-
@mixin hover() {
|
|
22
|
+
@mixin hover($cursor: pointer) {
|
|
31
23
|
/* stylelint-disable-next-line a11y/selector-pseudo-class-focus */
|
|
32
|
-
&:hover
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
[tabindex="-1"],
|
|
36
|
-
:has(:disabled)
|
|
37
|
-
) {
|
|
38
|
-
@include cursor-pointer {
|
|
39
|
-
@content;
|
|
40
|
-
}
|
|
24
|
+
&:hover {
|
|
25
|
+
cursor: var(--db-overwrite-cursor, #{$cursor});
|
|
26
|
+
@content;
|
|
41
27
|
}
|
|
42
28
|
}
|
|
43
29
|
|
|
44
30
|
@mixin active() {
|
|
45
|
-
&:active
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
[tabindex="-1"],
|
|
49
|
-
:has(:disabled)
|
|
50
|
-
) {
|
|
51
|
-
@include cursor-pointer {
|
|
52
|
-
@content;
|
|
53
|
-
}
|
|
31
|
+
&:active {
|
|
32
|
+
cursor: $cursor-pointer;
|
|
33
|
+
@content;
|
|
54
34
|
}
|
|
55
35
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@db-ux/core-foundations",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.10.0-esm-f121fc3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Provides basic tokens and assets based on DB UX Design System (Version 3).",
|
|
6
6
|
"repository": {
|
|
@@ -24,13 +24,13 @@
|
|
|
24
24
|
"cpr": "3.0.1",
|
|
25
25
|
"cssnano": "8.0.1",
|
|
26
26
|
"nodemon": "3.1.14",
|
|
27
|
-
"postcss": "8.5.
|
|
27
|
+
"postcss": "8.5.15",
|
|
28
28
|
"postcss-cli": "11.0.1",
|
|
29
29
|
"prettier": "3.8.3",
|
|
30
|
-
"sass": "1.
|
|
31
|
-
"tsx": "4.22.
|
|
30
|
+
"sass": "1.100.0",
|
|
31
|
+
"tsx": "4.22.3",
|
|
32
32
|
"typescript": "5.9.3",
|
|
33
|
-
"vite": "8.0.
|
|
33
|
+
"vite": "8.0.14"
|
|
34
34
|
},
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"registry": "https://registry.npmjs.org/",
|