@db-ux/core-components 1.0.0-test-13b991d
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/README.md +107 -0
- package/build/assets/fonts/OFL.txt +93 -0
- package/build/assets/fonts/OpenSans-Bold-EU.woff2 +0 -0
- package/build/assets/fonts/OpenSans-Bold.ttf +0 -0
- package/build/assets/fonts/OpenSans-ExtraBold-EU.woff2 +0 -0
- package/build/assets/fonts/OpenSans-ExtraBold.ttf +0 -0
- package/build/assets/fonts/OpenSans-Light-EU.woff2 +0 -0
- package/build/assets/fonts/OpenSans-Light.ttf +0 -0
- package/build/assets/fonts/OpenSans-Medium-EU.woff2 +0 -0
- package/build/assets/fonts/OpenSans-Medium.ttf +0 -0
- package/build/assets/fonts/OpenSans-Regular-EU.woff2 +0 -0
- package/build/assets/fonts/OpenSans-Regular.ttf +0 -0
- package/build/assets/fonts/OpenSans-SemiBold-EU.woff2 +0 -0
- package/build/assets/fonts/OpenSans-SemiBold.ttf +0 -0
- package/build/assets/fonts/README.md +23 -0
- package/build/assets/fonts/generate-eu-fonts.ts +46 -0
- package/build/assets/fonts/unicode-eu.txt +14 -0
- package/build/assets/icons/DB_LICENSE +253 -0
- package/build/assets/icons/LICENCES.json +153 -0
- package/build/assets/icons/arrow_down.svg +1 -0
- package/build/assets/icons/arrow_left.svg +1 -0
- package/build/assets/icons/arrow_right.svg +1 -0
- package/build/assets/icons/arrow_up.svg +1 -0
- package/build/assets/icons/arrow_up_right.svg +1 -0
- package/build/assets/icons/brand.svg +1 -0
- package/build/assets/icons/calendar.svg +5 -0
- package/build/assets/icons/check-circle.svg +1 -0
- package/build/assets/icons/check.svg +1 -0
- package/build/assets/icons/check_circle.svg +1 -0
- package/build/assets/icons/chevron_down.svg +1 -0
- package/build/assets/icons/chevron_left.svg +1 -0
- package/build/assets/icons/chevron_right.svg +1 -0
- package/build/assets/icons/chevron_up.svg +1 -0
- package/build/assets/icons/circle.svg +1 -0
- package/build/assets/icons/clock.svg +1 -0
- package/build/assets/icons/cross.svg +1 -0
- package/build/assets/icons/cross_circle.svg +1 -0
- package/build/assets/icons/exclamation_mark_circle.svg +1 -0
- package/build/assets/icons/exclamation_mark_triangle.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/information_circle.svg +1 -0
- package/build/assets/icons/magnifying_glass.svg +1 -0
- package/build/assets/icons/menu.svg +1 -0
- package/build/assets/icons/minus.svg +1 -0
- package/build/assets/icons/plus.svg +1 -0
- package/build/assets/icons/resize_handle_corner.svg +1 -0
- package/build/assets/icons/x_placeholder.svg +1 -0
- package/build/components/accordion/accordion.css +78 -0
- package/build/components/accordion/accordion.scss +62 -0
- package/build/components/accordion-item/accordion-item.css +239 -0
- package/build/components/accordion-item/accordion-item.scss +73 -0
- package/build/components/badge/badge.css +253 -0
- package/build/components/badge/badge.scss +107 -0
- package/build/components/brand/brand.css +42 -0
- package/build/components/brand/brand.scss +32 -0
- package/build/components/button/button.css +165 -0
- package/build/components/button/button.scss +123 -0
- package/build/components/card/card.css +115 -0
- package/build/components/card/card.scss +56 -0
- package/build/components/checkbox/checkbox.css +476 -0
- package/build/components/checkbox/checkbox.scss +80 -0
- package/build/components/divider/divider.css +84 -0
- package/build/components/divider/divider.scss +56 -0
- package/build/components/drawer/drawer.css +303 -0
- package/build/components/drawer/drawer.scss +228 -0
- package/build/components/header/header.css +697 -0
- package/build/components/header/header.scss +246 -0
- package/build/components/icon/icon.css +24 -0
- package/build/components/icon/icon.scss +14 -0
- package/build/components/infotext/infotext.css +152 -0
- package/build/components/infotext/infotext.scss +54 -0
- package/build/components/input/input.css +712 -0
- package/build/components/input/input.scss +147 -0
- package/build/components/link/link.css +257 -0
- package/build/components/link/link.scss +60 -0
- package/build/components/navigation/navigation.css +218 -0
- package/build/components/navigation/navigation.scss +117 -0
- package/build/components/navigation-item/navigation-item.css +482 -0
- package/build/components/navigation-item/navigation-item.scss +310 -0
- package/build/components/notification/notification-grid-default.css +1 -0
- package/build/components/notification/notification-grid-default.scss +52 -0
- package/build/components/notification/notification-grid-non-overlay.css +1 -0
- package/build/components/notification/notification-grid-non-overlay.scss +66 -0
- package/build/components/notification/notification-grid-overlay.css +1 -0
- package/build/components/notification/notification-grid-overlay.scss +55 -0
- package/build/components/notification/notification.css +1173 -0
- package/build/components/notification/notification.scss +216 -0
- package/build/components/page/page.css +49 -0
- package/build/components/page/page.scss +52 -0
- package/build/components/popover/popover.css +291 -0
- package/build/components/popover/popover.scss +26 -0
- package/build/components/radio/radio.css +390 -0
- package/build/components/radio/radio.scss +49 -0
- package/build/components/section/section.css +38 -0
- package/build/components/section/section.scss +51 -0
- package/build/components/select/select.css +651 -0
- package/build/components/select/select.scss +83 -0
- package/build/components/stack/stack-web-component.css +93 -0
- package/build/components/stack/stack-web-component.scss +1 -0
- package/build/components/stack/stack.css +93 -0
- package/build/components/stack/stack.scss +5 -0
- package/build/components/switch/switch.css +901 -0
- package/build/components/switch/switch.scss +233 -0
- package/build/components/tab-item/tab-item.css +160 -0
- package/build/components/tab-item/tab-item.scss +135 -0
- package/build/components/tab-list/tab-list.css +202 -0
- package/build/components/tab-list/tab-list.scss +18 -0
- package/build/components/tab-panel/tab-panel.css +10 -0
- package/build/components/tab-panel/tab-panel.scss +5 -0
- package/build/components/tabs/tabs.css +358 -0
- package/build/components/tabs/tabs.scss +361 -0
- package/build/components/tag/tag.css +1544 -0
- package/build/components/tag/tag.scss +236 -0
- package/build/components/textarea/textarea.css +546 -0
- package/build/components/textarea/textarea.scss +86 -0
- package/build/components/tooltip/tooltip.css +346 -0
- package/build/components/tooltip/tooltip.scss +137 -0
- package/build/styles/absolute.css +1559 -0
- package/build/styles/absolute.scss +5 -0
- package/build/styles/component-animations.css +1 -0
- package/build/styles/component-animations.scss +17 -0
- package/build/styles/dialog-init.css +1 -0
- package/build/styles/dialog-init.scss +57 -0
- package/build/styles/index.css +615 -0
- package/build/styles/index.scss +32 -0
- package/build/styles/internal/_button-components.scss +8 -0
- package/build/styles/internal/_component.scss +79 -0
- package/build/styles/internal/_custom-elements.scss +7 -0
- package/build/styles/internal/_db-puls.scss +83 -0
- package/build/styles/internal/_form-components.scss +516 -0
- package/build/styles/internal/_icon-passing.scss +26 -0
- package/build/styles/internal/_link-components.scss +62 -0
- package/build/styles/internal/_popover-component.scss +213 -0
- package/build/styles/internal/_scrollbar.scss +93 -0
- package/build/styles/internal/_stack-components.scss +104 -0
- package/build/styles/internal/_tag-components.scss +234 -0
- package/build/styles/relative.css +1559 -0
- package/build/styles/relative.scss +15 -0
- package/build/styles/rollup.css +1559 -0
- package/build/styles/rollup.scss +5 -0
- package/build/styles/visually-hidden.css +1 -0
- package/build/styles/visually-hidden.scss +6 -0
- package/build/styles/wc-workarounds.css +1 -0
- package/build/styles/wc-workarounds.scss +12 -0
- package/build/styles/webpack.css +1559 -0
- package/build/styles/webpack.scss +5 -0
- package/package.json +62 -0
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "@db-ux/core-foundations/build/styles/animation";
|
|
3
|
+
@use "@db-ux/core-foundations/build/styles/variables";
|
|
4
|
+
@use "@db-ux/core-foundations/build/styles/fonts";
|
|
5
|
+
@use "@db-ux/core-foundations/build/styles/icons";
|
|
6
|
+
@use "@db-ux/core-foundations/build/styles/helpers";
|
|
7
|
+
@use "@db-ux/core-foundations/build/styles/colors";
|
|
8
|
+
@use "../../styles/internal/button-components";
|
|
9
|
+
@use "../../styles/internal/tag-components";
|
|
10
|
+
@use "../../styles/internal/icon-passing";
|
|
11
|
+
@use "../../styles/internal/component";
|
|
12
|
+
|
|
13
|
+
%no-text {
|
|
14
|
+
&[data-no-text="true"] {
|
|
15
|
+
--icon-margin-after: 0;
|
|
16
|
+
|
|
17
|
+
@include icons.is-icon-text-replace();
|
|
18
|
+
|
|
19
|
+
padding: 0;
|
|
20
|
+
gap: 0;
|
|
21
|
+
|
|
22
|
+
label {
|
|
23
|
+
@include icons.is-icon-text-replace();
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&:not([data-no-text="true"]) {
|
|
28
|
+
--db-padding-inline-start: #{variables.$db-spacing-fixed-2xs};
|
|
29
|
+
|
|
30
|
+
/* stylelint-disable-next-line db-ux/use-spacings */
|
|
31
|
+
padding-inline: var(--db-padding-inline-start)
|
|
32
|
+
#{variables.$db-spacing-fixed-2xs};
|
|
33
|
+
|
|
34
|
+
&:has(.db-tab-remove-button) {
|
|
35
|
+
padding-inline-end: 0;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&:has(dbbutton):has(dbbutton:not(.db-tab-remove-button)),
|
|
39
|
+
&:has(db-button):has(db-button:not(.db-tab-remove-button)),
|
|
40
|
+
&:not(:has(dbbutton)):has(button:not(.db-tab-remove-button)),
|
|
41
|
+
&:has(a),
|
|
42
|
+
&:has(label) {
|
|
43
|
+
padding-inline: 0;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
%db-tag {
|
|
49
|
+
--db-icon-margin-end: 0;
|
|
50
|
+
|
|
51
|
+
@extend %default-interactive-component;
|
|
52
|
+
@extend %db-overwrite-font-size-sm;
|
|
53
|
+
@extend %default-button;
|
|
54
|
+
@extend %no-text;
|
|
55
|
+
|
|
56
|
+
padding-block: 0;
|
|
57
|
+
block-size: variables.$db-sizing-sm;
|
|
58
|
+
min-inline-size: variables.$db-sizing-sm;
|
|
59
|
+
inline-size: fit-content;
|
|
60
|
+
position: relative;
|
|
61
|
+
gap: variables.$db-spacing-fixed-2xs;
|
|
62
|
+
|
|
63
|
+
&:not(:has(#{tag-components.$interactive-selectors})),
|
|
64
|
+
&:has(.db-tab-remove-button) {
|
|
65
|
+
@extend %component-border;
|
|
66
|
+
|
|
67
|
+
@include tag-components.get-tag-colors();
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&:has(#{tag-components.$interactive-selectors}) {
|
|
71
|
+
--db-icon-margin-end: #{variables.$db-spacing-fixed-2xs};
|
|
72
|
+
|
|
73
|
+
@include icon-passing.icon-passing(variables.$db-spacing-fixed-2xs);
|
|
74
|
+
@include tag-components.get-tag-colors-interactive();
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
button:nth-of-type(2),
|
|
78
|
+
dbbutton:nth-of-type(2),
|
|
79
|
+
&:has(db-button):has(dbbutton) .db-tab-remove-button {
|
|
80
|
+
display: none;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
> :is(
|
|
84
|
+
[class="db-checkbox"],
|
|
85
|
+
[class="db-radio"],
|
|
86
|
+
[class="db-link"],
|
|
87
|
+
[class="db-button"]
|
|
88
|
+
) {
|
|
89
|
+
block-size: 100%;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.db-tag {
|
|
94
|
+
@extend %db-tag;
|
|
95
|
+
|
|
96
|
+
&[data-show-check-state="true"] {
|
|
97
|
+
label {
|
|
98
|
+
--db-icon-margin-start: #{variables.$db-spacing-fixed-2xs};
|
|
99
|
+
|
|
100
|
+
@include icons.set-icon("circle", "after");
|
|
101
|
+
|
|
102
|
+
/* TODO: maybe we could get rid of an expensive :has selector by defining this icon on the input itself */
|
|
103
|
+
&:has(input:checked) {
|
|
104
|
+
@include icons.set-icon("check_circle", "after");
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
label {
|
|
110
|
+
@extend %default-transition;
|
|
111
|
+
|
|
112
|
+
inline-size: 100%;
|
|
113
|
+
margin-inline-start: 0;
|
|
114
|
+
display: flex;
|
|
115
|
+
align-items: center;
|
|
116
|
+
|
|
117
|
+
@media (forced-colors: active) {
|
|
118
|
+
&:not(:has(input:checked)) {
|
|
119
|
+
border-style: dashed;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
&::after {
|
|
124
|
+
@include fonts.set-component-variables("xs");
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
&:has(input:checked) {
|
|
128
|
+
border-width: variables.$db-border-height-3xs;
|
|
129
|
+
|
|
130
|
+
&::before {
|
|
131
|
+
content: none;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
// Handle native radio and checkbox input elements, especially regarding focus-visible indicator
|
|
136
|
+
input {
|
|
137
|
+
appearance: none;
|
|
138
|
+
inline-size: 100%;
|
|
139
|
+
block-size: 100%;
|
|
140
|
+
position: absolute;
|
|
141
|
+
margin-inline-end: initial;
|
|
142
|
+
border: 0;
|
|
143
|
+
border-radius: inherit;
|
|
144
|
+
cursor: pointer;
|
|
145
|
+
inset: 0;
|
|
146
|
+
aspect-ratio: unset;
|
|
147
|
+
|
|
148
|
+
&:checked {
|
|
149
|
+
&:not([data-hide-icon-before="true"]) {
|
|
150
|
+
&::before {
|
|
151
|
+
content: none;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
a {
|
|
159
|
+
@extend %default-transition;
|
|
160
|
+
|
|
161
|
+
display: inline-flex;
|
|
162
|
+
align-items: center;
|
|
163
|
+
text-decoration: none;
|
|
164
|
+
|
|
165
|
+
&::after {
|
|
166
|
+
--db-icon-margin-start: 0;
|
|
167
|
+
--db-icon-font-size: 0;
|
|
168
|
+
|
|
169
|
+
content: none !important;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.db-link {
|
|
174
|
+
&:is(:hover, :focus, :active) {
|
|
175
|
+
color: inherit;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
&:not(:has(dbbutton, db-button)):has(button:not(.db-tab-remove-button)),
|
|
180
|
+
&:has(:is(dbbutton, db-button):not(.db-tab-remove-button), a, label) {
|
|
181
|
+
border: 0;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
button,
|
|
185
|
+
a,
|
|
186
|
+
label {
|
|
187
|
+
@extend %db-overwrite-font-size-sm;
|
|
188
|
+
@extend %component-border;
|
|
189
|
+
|
|
190
|
+
block-size: inherit;
|
|
191
|
+
padding: 0 variables.$db-spacing-fixed-2xs;
|
|
192
|
+
border-radius: variables.$db-border-radius-xs;
|
|
193
|
+
font-weight: 700;
|
|
194
|
+
appearance: none;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
db-button,
|
|
198
|
+
dbbutton,
|
|
199
|
+
db-checkbox,
|
|
200
|
+
dbcheckbox,
|
|
201
|
+
db-radio,
|
|
202
|
+
dbradio,
|
|
203
|
+
db-link,
|
|
204
|
+
dblink {
|
|
205
|
+
// angular workaround
|
|
206
|
+
block-size: inherit;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
&:has(:disabled),
|
|
210
|
+
&[data-disabled="true"] {
|
|
211
|
+
opacity: component.$default-disabled;
|
|
212
|
+
pointer-events: none;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
&[data-overflow="true"] {
|
|
216
|
+
max-inline-size: variables.$db-sizing-2xl;
|
|
217
|
+
|
|
218
|
+
> * {
|
|
219
|
+
inline-size: 100%;
|
|
220
|
+
overflow: hidden;
|
|
221
|
+
text-overflow: ellipsis;
|
|
222
|
+
white-space: nowrap;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.db-tab-remove-button {
|
|
227
|
+
&:is(button),
|
|
228
|
+
button {
|
|
229
|
+
// overwrite to transparent
|
|
230
|
+
background-color: colors.$db-adaptive-bg-basic-transparent-full-default;
|
|
231
|
+
color: currentcolor;
|
|
232
|
+
border: 0;
|
|
233
|
+
aspect-ratio: 1 / 1;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}
|