@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.
Files changed (167) hide show
  1. package/README.md +107 -0
  2. package/build/assets/fonts/OFL.txt +93 -0
  3. package/build/assets/fonts/OpenSans-Bold-EU.woff2 +0 -0
  4. package/build/assets/fonts/OpenSans-Bold.ttf +0 -0
  5. package/build/assets/fonts/OpenSans-ExtraBold-EU.woff2 +0 -0
  6. package/build/assets/fonts/OpenSans-ExtraBold.ttf +0 -0
  7. package/build/assets/fonts/OpenSans-Light-EU.woff2 +0 -0
  8. package/build/assets/fonts/OpenSans-Light.ttf +0 -0
  9. package/build/assets/fonts/OpenSans-Medium-EU.woff2 +0 -0
  10. package/build/assets/fonts/OpenSans-Medium.ttf +0 -0
  11. package/build/assets/fonts/OpenSans-Regular-EU.woff2 +0 -0
  12. package/build/assets/fonts/OpenSans-Regular.ttf +0 -0
  13. package/build/assets/fonts/OpenSans-SemiBold-EU.woff2 +0 -0
  14. package/build/assets/fonts/OpenSans-SemiBold.ttf +0 -0
  15. package/build/assets/fonts/README.md +23 -0
  16. package/build/assets/fonts/generate-eu-fonts.ts +46 -0
  17. package/build/assets/fonts/unicode-eu.txt +14 -0
  18. package/build/assets/icons/DB_LICENSE +253 -0
  19. package/build/assets/icons/LICENCES.json +153 -0
  20. package/build/assets/icons/arrow_down.svg +1 -0
  21. package/build/assets/icons/arrow_left.svg +1 -0
  22. package/build/assets/icons/arrow_right.svg +1 -0
  23. package/build/assets/icons/arrow_up.svg +1 -0
  24. package/build/assets/icons/arrow_up_right.svg +1 -0
  25. package/build/assets/icons/brand.svg +1 -0
  26. package/build/assets/icons/calendar.svg +5 -0
  27. package/build/assets/icons/check-circle.svg +1 -0
  28. package/build/assets/icons/check.svg +1 -0
  29. package/build/assets/icons/check_circle.svg +1 -0
  30. package/build/assets/icons/chevron_down.svg +1 -0
  31. package/build/assets/icons/chevron_left.svg +1 -0
  32. package/build/assets/icons/chevron_right.svg +1 -0
  33. package/build/assets/icons/chevron_up.svg +1 -0
  34. package/build/assets/icons/circle.svg +1 -0
  35. package/build/assets/icons/clock.svg +1 -0
  36. package/build/assets/icons/cross.svg +1 -0
  37. package/build/assets/icons/cross_circle.svg +1 -0
  38. package/build/assets/icons/exclamation_mark_circle.svg +1 -0
  39. package/build/assets/icons/exclamation_mark_triangle.svg +1 -0
  40. package/build/assets/icons/fonts/all/db-ux.woff2 +0 -0
  41. package/build/assets/icons/fonts/default/db-ux.woff2 +0 -0
  42. package/build/assets/icons/fonts/default_12/db-ux.woff2 +0 -0
  43. package/build/assets/icons/fonts/default_14/db-ux.woff2 +0 -0
  44. package/build/assets/icons/fonts/default_16/db-ux.woff2 +0 -0
  45. package/build/assets/icons/fonts/default_20/db-ux.woff2 +0 -0
  46. package/build/assets/icons/fonts/default_24/db-ux.woff2 +0 -0
  47. package/build/assets/icons/fonts/default_28/db-ux.woff2 +0 -0
  48. package/build/assets/icons/fonts/default_32/db-ux.woff2 +0 -0
  49. package/build/assets/icons/fonts/default_48/db-ux.woff2 +0 -0
  50. package/build/assets/icons/fonts/default_64/db-ux.woff2 +0 -0
  51. package/build/assets/icons/fonts/filled/db-ux.woff2 +0 -0
  52. package/build/assets/icons/fonts/filled_12/db-ux.woff2 +0 -0
  53. package/build/assets/icons/fonts/filled_14/db-ux.woff2 +0 -0
  54. package/build/assets/icons/fonts/filled_16/db-ux.woff2 +0 -0
  55. package/build/assets/icons/fonts/filled_20/db-ux.woff2 +0 -0
  56. package/build/assets/icons/fonts/filled_24/db-ux.woff2 +0 -0
  57. package/build/assets/icons/fonts/filled_28/db-ux.woff2 +0 -0
  58. package/build/assets/icons/fonts/filled_32/db-ux.woff2 +0 -0
  59. package/build/assets/icons/fonts/filled_48/db-ux.woff2 +0 -0
  60. package/build/assets/icons/fonts/filled_64/db-ux.woff2 +0 -0
  61. package/build/assets/icons/information_circle.svg +1 -0
  62. package/build/assets/icons/magnifying_glass.svg +1 -0
  63. package/build/assets/icons/menu.svg +1 -0
  64. package/build/assets/icons/minus.svg +1 -0
  65. package/build/assets/icons/plus.svg +1 -0
  66. package/build/assets/icons/resize_handle_corner.svg +1 -0
  67. package/build/assets/icons/x_placeholder.svg +1 -0
  68. package/build/components/accordion/accordion.css +78 -0
  69. package/build/components/accordion/accordion.scss +62 -0
  70. package/build/components/accordion-item/accordion-item.css +239 -0
  71. package/build/components/accordion-item/accordion-item.scss +73 -0
  72. package/build/components/badge/badge.css +253 -0
  73. package/build/components/badge/badge.scss +107 -0
  74. package/build/components/brand/brand.css +42 -0
  75. package/build/components/brand/brand.scss +32 -0
  76. package/build/components/button/button.css +165 -0
  77. package/build/components/button/button.scss +123 -0
  78. package/build/components/card/card.css +115 -0
  79. package/build/components/card/card.scss +56 -0
  80. package/build/components/checkbox/checkbox.css +476 -0
  81. package/build/components/checkbox/checkbox.scss +80 -0
  82. package/build/components/divider/divider.css +84 -0
  83. package/build/components/divider/divider.scss +56 -0
  84. package/build/components/drawer/drawer.css +303 -0
  85. package/build/components/drawer/drawer.scss +228 -0
  86. package/build/components/header/header.css +697 -0
  87. package/build/components/header/header.scss +246 -0
  88. package/build/components/icon/icon.css +24 -0
  89. package/build/components/icon/icon.scss +14 -0
  90. package/build/components/infotext/infotext.css +152 -0
  91. package/build/components/infotext/infotext.scss +54 -0
  92. package/build/components/input/input.css +712 -0
  93. package/build/components/input/input.scss +147 -0
  94. package/build/components/link/link.css +257 -0
  95. package/build/components/link/link.scss +60 -0
  96. package/build/components/navigation/navigation.css +218 -0
  97. package/build/components/navigation/navigation.scss +117 -0
  98. package/build/components/navigation-item/navigation-item.css +482 -0
  99. package/build/components/navigation-item/navigation-item.scss +310 -0
  100. package/build/components/notification/notification-grid-default.css +1 -0
  101. package/build/components/notification/notification-grid-default.scss +52 -0
  102. package/build/components/notification/notification-grid-non-overlay.css +1 -0
  103. package/build/components/notification/notification-grid-non-overlay.scss +66 -0
  104. package/build/components/notification/notification-grid-overlay.css +1 -0
  105. package/build/components/notification/notification-grid-overlay.scss +55 -0
  106. package/build/components/notification/notification.css +1173 -0
  107. package/build/components/notification/notification.scss +216 -0
  108. package/build/components/page/page.css +49 -0
  109. package/build/components/page/page.scss +52 -0
  110. package/build/components/popover/popover.css +291 -0
  111. package/build/components/popover/popover.scss +26 -0
  112. package/build/components/radio/radio.css +390 -0
  113. package/build/components/radio/radio.scss +49 -0
  114. package/build/components/section/section.css +38 -0
  115. package/build/components/section/section.scss +51 -0
  116. package/build/components/select/select.css +651 -0
  117. package/build/components/select/select.scss +83 -0
  118. package/build/components/stack/stack-web-component.css +93 -0
  119. package/build/components/stack/stack-web-component.scss +1 -0
  120. package/build/components/stack/stack.css +93 -0
  121. package/build/components/stack/stack.scss +5 -0
  122. package/build/components/switch/switch.css +901 -0
  123. package/build/components/switch/switch.scss +233 -0
  124. package/build/components/tab-item/tab-item.css +160 -0
  125. package/build/components/tab-item/tab-item.scss +135 -0
  126. package/build/components/tab-list/tab-list.css +202 -0
  127. package/build/components/tab-list/tab-list.scss +18 -0
  128. package/build/components/tab-panel/tab-panel.css +10 -0
  129. package/build/components/tab-panel/tab-panel.scss +5 -0
  130. package/build/components/tabs/tabs.css +358 -0
  131. package/build/components/tabs/tabs.scss +361 -0
  132. package/build/components/tag/tag.css +1544 -0
  133. package/build/components/tag/tag.scss +236 -0
  134. package/build/components/textarea/textarea.css +546 -0
  135. package/build/components/textarea/textarea.scss +86 -0
  136. package/build/components/tooltip/tooltip.css +346 -0
  137. package/build/components/tooltip/tooltip.scss +137 -0
  138. package/build/styles/absolute.css +1559 -0
  139. package/build/styles/absolute.scss +5 -0
  140. package/build/styles/component-animations.css +1 -0
  141. package/build/styles/component-animations.scss +17 -0
  142. package/build/styles/dialog-init.css +1 -0
  143. package/build/styles/dialog-init.scss +57 -0
  144. package/build/styles/index.css +615 -0
  145. package/build/styles/index.scss +32 -0
  146. package/build/styles/internal/_button-components.scss +8 -0
  147. package/build/styles/internal/_component.scss +79 -0
  148. package/build/styles/internal/_custom-elements.scss +7 -0
  149. package/build/styles/internal/_db-puls.scss +83 -0
  150. package/build/styles/internal/_form-components.scss +516 -0
  151. package/build/styles/internal/_icon-passing.scss +26 -0
  152. package/build/styles/internal/_link-components.scss +62 -0
  153. package/build/styles/internal/_popover-component.scss +213 -0
  154. package/build/styles/internal/_scrollbar.scss +93 -0
  155. package/build/styles/internal/_stack-components.scss +104 -0
  156. package/build/styles/internal/_tag-components.scss +234 -0
  157. package/build/styles/relative.css +1559 -0
  158. package/build/styles/relative.scss +15 -0
  159. package/build/styles/rollup.css +1559 -0
  160. package/build/styles/rollup.scss +5 -0
  161. package/build/styles/visually-hidden.css +1 -0
  162. package/build/styles/visually-hidden.scss +6 -0
  163. package/build/styles/wc-workarounds.css +1 -0
  164. package/build/styles/wc-workarounds.scss +12 -0
  165. package/build/styles/webpack.css +1559 -0
  166. package/build/styles/webpack.scss +5 -0
  167. package/package.json +62 -0
@@ -0,0 +1,361 @@
1
+ @use "@db-ux/core-foundations/build/styles/variables";
2
+ @use "@db-ux/core-foundations/build/styles/colors";
3
+ @use "../../styles/internal/form-components";
4
+ @use "../../styles/internal/db-puls";
5
+
6
+ $max-tabs: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
7
+
8
+ %angular-workaround {
9
+ db-tab-list,
10
+ dbtablist {
11
+ @each $index in $max-tabs {
12
+ &:has([id$="-tab-#{$index}"]:checked) {
13
+ ~ dbtabpanel > [id$="-tab-panel-#{$index}"],
14
+ ~ db-tab-panel > [id$="-tab-panel-#{$index}"] {
15
+ display: block;
16
+ }
17
+ }
18
+ }
19
+ }
20
+ }
21
+
22
+ %horizontal-pulse {
23
+ .db-tab-item {
24
+ @include db-puls.set-db-puls-horizontal;
25
+
26
+ &:has(input:checked) {
27
+ @include db-puls.show-db-puls-horizontal;
28
+
29
+ &::after {
30
+ inset-block-end: calc(
31
+ -1 *
32
+ (
33
+ #{variables.$db-spacing-fixed-2xs} +
34
+ #{variables.$db-border-height-xs}
35
+ )
36
+ );
37
+ }
38
+ }
39
+ }
40
+ }
41
+
42
+ %vertical-pulse {
43
+ .db-tab-item {
44
+ @include db-puls.set-db-puls-vertical;
45
+
46
+ &::after {
47
+ inset-inline-start: 0;
48
+ z-index: -2;
49
+ }
50
+
51
+ &:has(input:checked) {
52
+ @include db-puls.show-db-puls-vertical;
53
+ }
54
+ }
55
+ }
56
+
57
+ %pulse-track {
58
+ background-color: colors.$db-adaptive-bg-basic-transparent-semi-default;
59
+ content: "";
60
+ border-radius: variables.$db-border-radius-xs;
61
+ position: absolute;
62
+ }
63
+
64
+ @mixin angular-button-workaround() {
65
+ > .db-button,
66
+ &:is(.db-button) {
67
+ @content;
68
+ }
69
+ }
70
+
71
+ .db-tabs {
72
+ $db-tabs-z-index-tab-list: 20;
73
+ $db-tabs-z-index-button-background: 21;
74
+ $db-tabs-z-index-button: 22;
75
+
76
+ @extend %angular-workaround;
77
+
78
+ display: flex;
79
+ inline-size: 100%;
80
+ position: relative;
81
+
82
+ .db-tab-panel {
83
+ padding: 0 variables.$db-spacing-fixed-xs;
84
+ }
85
+
86
+ .db-tab-list {
87
+ max-inline-size: 100%;
88
+ z-index: $db-tabs-z-index-tab-list;
89
+
90
+ @each $index in $max-tabs {
91
+ &:has([id$="-tab-#{$index}"]:checked)
92
+ ~ [id$="-tab-panel-#{$index}"] {
93
+ display: block;
94
+ }
95
+ }
96
+ }
97
+
98
+ .db-tab-item {
99
+ @extend %db-puls;
100
+ }
101
+
102
+ /*
103
+ Variant Orientation HORIZONTAL
104
+ */
105
+ &:not([data-orientation="vertical"]) {
106
+ flex-flow: column wrap;
107
+
108
+ .db-tab-panel {
109
+ inline-size: 100%;
110
+ }
111
+
112
+ .db-tab-list {
113
+ /* horizontal track for pulse */
114
+ &::before {
115
+ @extend %pulse-track;
116
+
117
+ block-size: variables.$db-border-height-xs;
118
+ inset-inline: variables.$db-spacing-fixed-xs;
119
+
120
+ /* top position equals sum of: margin xs + padding xs + line-height + padding xs + margin 2xs */
121
+ inset-block-start: calc(
122
+ 3 * #{variables.$db-spacing-fixed-xs} +
123
+ #{variables.$db-spacing-fixed-2xs} +
124
+ #{form-components.$font-size-height}
125
+ );
126
+ }
127
+
128
+ > ul {
129
+ @extend %horizontal-pulse;
130
+
131
+ overflow: auto hidden;
132
+ inline-size: 100%;
133
+
134
+ .db-tab-item {
135
+ margin-block: variables.$db-spacing-fixed-xs
136
+ calc(
137
+ 2 * #{variables.$db-spacing-fixed-2xs} +
138
+ #{variables.$db-border-height-xs}
139
+ );
140
+ }
141
+
142
+ db-tab-item,
143
+ dbtabitem {
144
+ &:first-of-type {
145
+ .db-tab-item {
146
+ margin-inline-start: variables.$db-spacing-fixed-xs;
147
+ }
148
+ }
149
+
150
+ &:last-of-type {
151
+ .db-tab-item {
152
+ margin-inline-end: variables.$db-spacing-fixed-xs;
153
+ }
154
+ }
155
+ }
156
+
157
+ &:not(:has(db-tab-item, dbtabitem)) {
158
+ .db-tab-item {
159
+ &:first-of-type {
160
+ margin-inline-start: variables.$db-spacing-fixed-xs;
161
+ }
162
+
163
+ &:last-of-type {
164
+ margin-inline-end: variables.$db-spacing-fixed-xs;
165
+ }
166
+ }
167
+ }
168
+ }
169
+ }
170
+ }
171
+
172
+ /*
173
+ Variant Orientation VERTICAL
174
+ */
175
+ &[data-orientation="vertical"] {
176
+ flex-direction: row;
177
+
178
+ .db-tab-panel {
179
+ padding: variables.$db-spacing-fixed-xs 0;
180
+ }
181
+
182
+ .db-tab-list {
183
+ $width: var(
184
+ --db-tab-list-vertical-width,
185
+ #{variables.$db-sizing-3xl}
186
+ );
187
+
188
+ /*
189
+ min and nominal size must both be set to ensure
190
+ - min-inline-size: tab-list is not displayed narrower than defined
191
+ - max-inline-size: tab-list is not displayed wider than defined
192
+ */
193
+ min-inline-size: $width;
194
+ max-inline-size: $width;
195
+
196
+ /* horizontal space to the tab panels */
197
+ padding-inline-end: variables.$db-spacing-fixed-xs;
198
+
199
+ /* ensures that tab-list (track) is only as high as all the tab-items together if open tab-panel is higher */
200
+ margin-block-end: auto;
201
+
202
+ .db-tab-item {
203
+ label {
204
+ position: relative;
205
+ }
206
+
207
+ &:has(input:focus-visible),
208
+ &:hover {
209
+ inline-size: fit-content;
210
+
211
+ label {
212
+ overflow: visible;
213
+ }
214
+ }
215
+ }
216
+
217
+ /* vertical track for pulse */
218
+ &::before {
219
+ @extend %pulse-track;
220
+
221
+ inline-size: variables.$db-border-height-xs;
222
+ inset-block: variables.$db-spacing-fixed-xs;
223
+ inset-inline-start: 0;
224
+ }
225
+
226
+ > ul {
227
+ @extend %vertical-pulse;
228
+
229
+ flex-direction: column;
230
+ block-size: 100%;
231
+
232
+ &:not(:has(db-tab-item, dbtabitem)) {
233
+ .db-tab-item {
234
+ &:first-of-type {
235
+ margin-block-start: variables.$db-spacing-fixed-xs;
236
+ }
237
+
238
+ &:last-of-type {
239
+ margin-block-end: variables.$db-spacing-fixed-xs;
240
+ }
241
+ }
242
+ }
243
+ }
244
+ }
245
+
246
+ .db-tab-item {
247
+ $padding-start-calc: calc(
248
+ #{variables.$db-border-height-xs} +
249
+ #{variables.$db-spacing-fixed-2xs}
250
+ );
251
+
252
+ padding-inline-start: $padding-start-calc;
253
+
254
+ input {
255
+ padding-inline-start: $padding-start-calc;
256
+ }
257
+ }
258
+
259
+ db-tab-item,
260
+ dbtabitem {
261
+ &:first-of-type {
262
+ .db-tab-item {
263
+ margin-block-start: variables.$db-spacing-fixed-xs;
264
+ }
265
+ }
266
+
267
+ &:last-of-type {
268
+ .db-tab-item {
269
+ margin-block-end: variables.$db-spacing-fixed-xs;
270
+ }
271
+ }
272
+ }
273
+ }
274
+
275
+ &[data-width="full"] {
276
+ .db-tab-list {
277
+ inline-size: 100%;
278
+ }
279
+
280
+ .db-tab-item,
281
+ .db-tab-item label {
282
+ inline-size: 100%;
283
+ }
284
+
285
+ &[data-alignment="center"] {
286
+ .db-tab-item label {
287
+ text-align: center;
288
+ justify-content: center;
289
+ }
290
+ }
291
+ }
292
+
293
+ &[data-scroll-behavior="arrows"] {
294
+ .db-tab-list {
295
+ > ul {
296
+ &::-webkit-scrollbar {
297
+ display: none;
298
+ }
299
+ }
300
+ }
301
+
302
+ &:has(.tabs-scroll-left) {
303
+ &::before {
304
+ content: "";
305
+ }
306
+ }
307
+
308
+ &:has(.tabs-scroll-right) {
309
+ &::after {
310
+ content: "";
311
+ }
312
+ }
313
+
314
+ &:has(.db-button) {
315
+ &::before,
316
+ &::after {
317
+ position: absolute;
318
+ z-index: $db-tabs-z-index-button-background;
319
+ background-color: colors.$db-adaptive-bg-basic-level-1-default;
320
+ inline-size: variables.$db-sizing-md;
321
+ block-size: calc(
322
+ #{variables.$db-spacing-fixed-sm} +
323
+ #{variables.$db-sizing-md}
324
+ );
325
+ flex: 0 0 auto;
326
+ }
327
+
328
+ &::before {
329
+ inset-inline-start: 0;
330
+ }
331
+
332
+ &::after {
333
+ inset-inline-end: 0;
334
+ }
335
+ }
336
+
337
+ /*
338
+ * Scroll left / right buttons
339
+ */
340
+ .tabs-scroll-left {
341
+ @include angular-button-workaround() {
342
+ inset-inline-start: 0;
343
+ }
344
+ }
345
+
346
+ .tabs-scroll-right {
347
+ @include angular-button-workaround() {
348
+ inset-inline-end: 0;
349
+ }
350
+ }
351
+
352
+ .tabs-scroll-left,
353
+ .tabs-scroll-right {
354
+ @include angular-button-workaround() {
355
+ position: absolute;
356
+ z-index: $db-tabs-z-index-button;
357
+ inset-block: variables.$db-spacing-fixed-xs;
358
+ }
359
+ }
360
+ }
361
+ }