@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,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
+ }