@db-ux/core-components 3.0.2-copilot2-e7bf98b → 3.0.2-shell2-badc28f
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/build/assets/icons/LICENCES.json +24 -0
- package/build/assets/icons/double_chevron_left.svg +1 -0
- package/build/assets/icons/double_chevron_right.svg +1 -0
- package/build/assets/icons/fonts/all/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/default/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/default_12/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/default_14/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/default_16/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/default_20/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/default_24/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/default_28/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/default_32/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/default_48/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/default_64/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/filled/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/filled_12/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/filled_14/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/filled_16/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/filled_20/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/filled_24/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/filled_28/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/filled_32/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/filled_48/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/filled_64/db-ux.woff2 +0 -0
- package/build/assets/icons/house.svg +1 -0
- package/build/assets/icons/intermediary_stop.svg +1 -0
- package/build/components/accordion/accordion.css +5 -5
- package/build/components/button/button.scss +1 -1
- package/build/components/{brand/brand.css → control-panel-brand/control-panel-brand.css} +12 -6
- package/build/components/{brand/brand.scss → control-panel-brand/control-panel-brand.scss} +10 -1
- package/build/components/control-panel-desktop/control-panel-desktop.css +791 -0
- package/build/components/control-panel-desktop/control-panel-desktop.scss +29 -0
- package/build/components/control-panel-flat-icon-navigation/control-panel-flat-icon-navigation.css +192 -0
- package/build/components/control-panel-flat-icon-navigation/control-panel-flat-icon-navigation.scss +84 -0
- package/build/components/control-panel-meta-navigation/control-panel-meta-navigation.css +54 -0
- package/build/components/control-panel-meta-navigation/control-panel-meta-navigation.scss +12 -0
- package/build/components/control-panel-mobile/control-panel-mobile.css +716 -0
- package/build/components/control-panel-mobile/control-panel-mobile.scss +125 -0
- package/build/components/control-panel-primary-actions/control-panel-primary-actions.css +16 -0
- package/build/components/control-panel-primary-actions/control-panel-primary-actions.scss +8 -0
- package/build/components/control-panel-secondary-actions/control-panel-secondary-actions.css +16 -0
- package/build/components/control-panel-secondary-actions/control-panel-secondary-actions.scss +8 -0
- package/build/components/custom-select/custom-select.css +4 -4
- package/build/components/custom-select-dropdown/custom-select-dropdown.css +12 -12
- package/build/components/custom-select-list-item/custom-select-list-item.css +6 -6
- package/build/components/divider/divider.css +6 -6
- package/build/components/drawer/drawer.css +6 -5
- package/build/components/drawer/drawer.scss +6 -26
- package/build/components/navigation/navigation.css +394 -123
- package/build/components/navigation/navigation.scss +155 -72
- package/build/components/navigation-item/navigation-item.css +35 -418
- package/build/components/navigation-item/navigation-item.scss +8 -310
- package/build/components/navigation-item-group/navigation-item-group-menu-popover.css +189 -0
- package/build/components/navigation-item-group/navigation-item-group-menu-popover.scss +105 -0
- package/build/components/navigation-item-group/navigation-item-group-menu-tree.css +208 -0
- package/build/components/navigation-item-group/navigation-item-group-menu-tree.scss +40 -0
- package/build/components/navigation-item-group/navigation-item-group.css +432 -0
- package/build/components/navigation-item-group/navigation-item-group.scss +69 -0
- package/build/components/shell/shell-desktop.css +548 -0
- package/build/components/shell/shell-desktop.scss +187 -0
- package/build/components/shell/shell-mobile.css +633 -0
- package/build/components/shell/shell-mobile.scss +107 -0
- package/build/components/shell/shell.css +1876 -0
- package/build/components/shell/shell.scss +84 -0
- package/build/components/shell-sub-navigation/shell-sub-navigation.css +11 -0
- package/build/components/shell-sub-navigation/shell-sub-navigation.scss +15 -0
- package/build/components/stack/stack-web-component.css +1 -0
- package/build/components/stack/stack.css +1 -0
- package/build/components/tab-item/tab-item.scss +0 -1
- package/build/components/tab-list/tab-list.css +1 -1
- package/build/components/tabs/tabs.css +106 -23
- package/build/components/tabs/tabs.scss +25 -70
- package/build/components/tag/tag.css +5 -11
- package/build/components/tag/tag.scss +1 -5
- package/build/components/textarea/textarea.css +1 -1
- package/build/styles/absolute.css +6 -6
- package/build/styles/component-animations.css +1 -1
- package/build/styles/index.css +5 -5
- package/build/styles/index.scss +11 -3
- package/build/styles/internal/_control-panel-desktop.scss +455 -0
- package/build/styles/internal/_control-panel-mobile.scss +130 -0
- package/build/styles/internal/_custom-elements.scss +22 -4
- package/build/styles/internal/_icon-passing.scss +19 -9
- package/build/styles/internal/{_db-puls.scss → _indicator.scss} +37 -16
- package/build/styles/internal/_navigation-item.scss +122 -0
- package/build/styles/internal/_scrollbar.scss +71 -0
- package/build/styles/relative.css +6 -6
- package/build/styles/rollup.css +6 -6
- package/build/styles/wc-workarounds.css +1 -1
- package/build/styles/wc-workarounds.scss +11 -0
- package/build/styles/webpack.css +6 -6
- package/package.json +3 -7
- package/agent/_instructions.md +0 -9
- package/build/components/header/header.css +0 -759
- package/build/components/header/header.scss +0 -259
- package/build/components/page/page.css +0 -52
- package/build/components/page/page.scss +0 -52
|
@@ -1,107 +1,190 @@
|
|
|
1
1
|
@use "@db-ux/core-foundations/build/styles/variables";
|
|
2
2
|
@use "@db-ux/core-foundations/build/styles/screen-sizes";
|
|
3
|
-
@use "
|
|
3
|
+
@use "@db-ux/core-foundations/build/styles/icons";
|
|
4
|
+
@use "@db-ux/core-foundations/build/styles/animation";
|
|
5
|
+
@use "@db-ux/core-foundations/build/styles/helpers";
|
|
4
6
|
@use "../../styles/internal/form-components";
|
|
5
|
-
@use "../../styles/internal/
|
|
7
|
+
@use "../../styles/internal/icon-passing";
|
|
8
|
+
@use "../navigation-item-group/navigation-item-group-menu-popover";
|
|
9
|
+
@use "../navigation-item-group/navigation-item-group-menu-tree";
|
|
6
10
|
|
|
7
|
-
|
|
8
|
-
-
|
|
9
|
-
|
|
11
|
+
%popover-navigation {
|
|
12
|
+
.db-navigation-item {
|
|
13
|
+
@include icon-passing.icon-passing();
|
|
10
14
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
15
|
+
/* a {
|
|
16
|
+
block-size: variables.$db-sizing-md;
|
|
17
|
+
} */
|
|
14
18
|
}
|
|
15
19
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
gap: variables.$db-spacing-fixed-sm;
|
|
22
|
-
|
|
23
|
-
@include screen-sizes.screen("md") {
|
|
24
|
-
flex-direction: row;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.db-navigation-item {
|
|
28
|
-
@extend %db-puls-auto;
|
|
20
|
+
.db-navigation-item-group {
|
|
21
|
+
@include icon-passing.icon-passing(
|
|
22
|
+
variables.$db-spacing-fixed-sm,
|
|
23
|
+
variables.$db-spacing-fixed-xs
|
|
24
|
+
);
|
|
29
25
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
26
|
+
// MOBILE Sliding
|
|
27
|
+
@include screen-sizes.screen-min-max(
|
|
28
|
+
(
|
|
29
|
+
max: "sm"
|
|
30
|
+
)
|
|
31
|
+
) {
|
|
32
|
+
.db-navigation-item-group-expand-button {
|
|
33
|
+
// show/hide sub-navigation by click
|
|
34
|
+
&[aria-expanded="true"] {
|
|
35
|
+
~ .db-navigation-item-group-menu {
|
|
36
|
+
visibility: visible;
|
|
37
37
|
|
|
38
38
|
@media screen and (prefers-reduced-motion: no-preference) {
|
|
39
|
-
transition:
|
|
39
|
+
transition: visibility 0ms linear 0ms;
|
|
40
|
+
animation: show-right-to-left
|
|
41
|
+
#{variables.$db-transition-straight-show};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.db-navigation-item-group-menu {
|
|
45
|
+
inset-block: 0;
|
|
40
46
|
}
|
|
41
47
|
}
|
|
48
|
+
}
|
|
42
49
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
~ .db-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
)
|
|
50
|
-
) {
|
|
51
|
-
&::after {
|
|
52
|
-
transform: form-components.$dropdown-icon-transform;
|
|
50
|
+
&:not(&[aria-expanded="true"]) {
|
|
51
|
+
@media screen and (prefers-reduced-motion: no-preference) {
|
|
52
|
+
~ .db-navigation-item-group-menu {
|
|
53
|
+
transition: visibility 0ms linear 410ms; // hide animation is 0.4s
|
|
54
|
+
animation: hide-right-to-left
|
|
55
|
+
#{variables.$db-transition-straight-hide};
|
|
53
56
|
}
|
|
54
57
|
}
|
|
55
58
|
}
|
|
56
59
|
}
|
|
60
|
+
}
|
|
57
61
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
62
|
+
// DESKTOP: show sub-navigation on hover
|
|
63
|
+
@include screen-sizes.screen-min-max(
|
|
64
|
+
(
|
|
65
|
+
min: "sm"
|
|
66
|
+
)
|
|
67
|
+
) {
|
|
68
|
+
.db-navigation-item-group-expand-button {
|
|
69
|
+
&::after {
|
|
70
|
+
@media screen and (prefers-reduced-motion: no-preference) {
|
|
71
|
+
transition: form-components.$dropdown-icon-transition;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
67
74
|
|
|
68
|
-
|
|
75
|
+
&:is(:hover, :focus-visible):not(
|
|
69
76
|
:has(
|
|
70
|
-
~ .db-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
) {
|
|
76
|
-
&::after {
|
|
77
|
-
transform: none;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
77
|
+
~ .db-navigation-item-group-menu[data-force-close="true"]
|
|
78
|
+
)
|
|
79
|
+
) {
|
|
80
|
+
~ .db-navigation-item-group-menu {
|
|
81
|
+
visibility: visible;
|
|
80
82
|
}
|
|
81
83
|
}
|
|
82
84
|
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.db-navigation-item-group-expand-button {
|
|
88
|
+
// default icon for navigation
|
|
89
|
+
@include icons.set-icon("chevron_right", "after");
|
|
90
|
+
}
|
|
83
91
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
92
|
+
.db-navigation-item-group-menu {
|
|
93
|
+
@extend %db-navigation-item-group-menu-popover;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
%tree-navigation {
|
|
99
|
+
.db-navigation-item {
|
|
100
|
+
&:not([data-icon]) {
|
|
101
|
+
&::before {
|
|
102
|
+
content: none;
|
|
89
103
|
}
|
|
90
104
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
105
|
+
a {
|
|
106
|
+
@include icons.set-icon("intermediary_stop");
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
&[data-icon] {
|
|
111
|
+
@include icon-passing.icon-passing();
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
a,
|
|
116
|
+
button {
|
|
117
|
+
justify-content: start;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.db-navigation-item-group {
|
|
121
|
+
display: flex;
|
|
122
|
+
flex-direction: column;
|
|
123
|
+
|
|
124
|
+
&::before {
|
|
125
|
+
content: none;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.db-navigation-item-group-expand-button {
|
|
129
|
+
@include icons.set-icon("chevron_right");
|
|
130
|
+
|
|
131
|
+
&[aria-expanded="true"] {
|
|
132
|
+
&::before {
|
|
133
|
+
transform: rotate(90deg);
|
|
134
|
+
pointer-events: none;
|
|
135
|
+
|
|
136
|
+
@media screen and (prefers-reduced-motion: no-preference) {
|
|
137
|
+
transition: form-components.$dropdown-icon-transition;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
~ .db-navigation-item-group-menu {
|
|
142
|
+
visibility: visible;
|
|
143
|
+
block-size: auto;
|
|
144
|
+
/* stylelint-disable-next-line declaration-property-value-no-unknown */
|
|
145
|
+
block-size: calc-size(auto, size);
|
|
95
146
|
}
|
|
96
147
|
}
|
|
97
148
|
}
|
|
149
|
+
|
|
150
|
+
.db-navigation-item-group-menu {
|
|
151
|
+
@extend %db-navigation-item-group-menu-tree;
|
|
152
|
+
}
|
|
98
153
|
}
|
|
99
154
|
|
|
100
|
-
&[data-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
155
|
+
&[data-show-tree-line="true"] {
|
|
156
|
+
.db-navigation-item-group {
|
|
157
|
+
.db-navigation-item-group-menu {
|
|
158
|
+
@include helpers.divider("left");
|
|
104
159
|
}
|
|
105
160
|
}
|
|
106
161
|
}
|
|
107
162
|
}
|
|
163
|
+
|
|
164
|
+
.db-navigation {
|
|
165
|
+
-webkit-tap-highlight-color: transparent; /* for removing the highlight */
|
|
166
|
+
inline-size: 100%;
|
|
167
|
+
position: relative;
|
|
168
|
+
|
|
169
|
+
@include screen-sizes.screen("md") {
|
|
170
|
+
-webkit-tap-highlight-color: inherit;
|
|
171
|
+
inline-size: auto;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
> menu {
|
|
175
|
+
display: flex;
|
|
176
|
+
flex-direction: column;
|
|
177
|
+
padding: 0;
|
|
178
|
+
margin: 0;
|
|
179
|
+
gap: variables.$db-spacing-fixed-sm;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
&:not([data-variant]),
|
|
183
|
+
&[data-variant="popover"] {
|
|
184
|
+
@extend %popover-navigation;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
&[data-variant="tree"] {
|
|
188
|
+
@extend %tree-navigation;
|
|
189
|
+
}
|
|
190
|
+
}
|