@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,83 @@
1
+ @use "sass:map";
2
+ @use "@db-ux/core-foundations/build/styles/variables";
3
+ @use "@db-ux/core-foundations/build/styles/colors";
4
+ @use "@db-ux/core-foundations/build/styles/icons";
5
+ @use "@db-ux/core-foundations/build/styles/fonts";
6
+ @use "../../styles/internal/form-components";
7
+ @use "../../styles/internal/component";
8
+
9
+ %select-icon {
10
+ @extend %dropdown-icon;
11
+
12
+ &[data-icon] {
13
+ --db-form-has-before: 1;
14
+ }
15
+ }
16
+
17
+ $has-before-padding: calc(
18
+ var(--db-form-has-before) *
19
+ (#{form-components.$icon-size-sm} + #{variables.$db-spacing-fixed-sm})
20
+ );
21
+
22
+ .db-select {
23
+ --db-form-component-padding-inline-end: calc(
24
+ #{form-components.$font-size-height} + #{variables.$db-spacing-fixed-sm}
25
+ );
26
+ // shared from form-components
27
+ @extend %select-icon;
28
+
29
+ @include form-components.set-default-form-component(select);
30
+
31
+ min-inline-size: calc(
32
+ 4 * #{variables.$db-sizing-md} + var(--db-form-has-before) *
33
+ #{variables.$db-sizing-md}
34
+ );
35
+
36
+ select {
37
+ text-indent: $has-before-padding;
38
+ }
39
+
40
+ // Most likely this wouldn't work on MacOS, but we're still progressively enhancing Windows by this
41
+ option {
42
+ background-color: colors.$db-adaptive-bg-basic-level-1-default;
43
+ color: colors.$db-adaptive-on-bg-basic-emphasis-100-default;
44
+ }
45
+
46
+ &[data-hide-label="true"] {
47
+ --db-label-visible-height: 0;
48
+ --db-label-visible-spacing: 1;
49
+ }
50
+
51
+ [id$="-placeholder"] {
52
+ @extend %db-overwrite-font-size-md;
53
+
54
+ position: absolute;
55
+ pointer-events: none;
56
+ // we use the top of the element, the size of the label+label-margin-bottom and the font-size of the select/2
57
+ // for functional we have some rounding issues for rem, so we need 1px less
58
+ inset-block-start: calc(
59
+ 0% +
60
+ (
61
+ #{form-components.$label-size-height-xs} +
62
+ #{variables.$db-spacing-fixed-xs}
63
+ ) *
64
+ var(--db-label-visible-height, 1) + var(--db-base-font-size) /
65
+ 2 - var(--db-density-functional, 0) * 1px
66
+ );
67
+ inset-inline: $has-before-padding;
68
+ margin-inline-start: variables.$db-spacing-fixed-sm;
69
+ overflow: hidden;
70
+ white-space: nowrap;
71
+ text-overflow: ellipsis;
72
+ inline-size: calc(
73
+ 100% - var(--db-form-component-padding-inline-end) -
74
+ #{$has-before-padding} - #{variables.$db-spacing-fixed-sm}
75
+ );
76
+ }
77
+
78
+ &:has(> select option:checked:not([hidden])) {
79
+ [id$="-placeholder"] {
80
+ display: none;
81
+ }
82
+ }
83
+ }
@@ -0,0 +1,93 @@
1
+ /* Use sizing's for fixed heights/widths e.g. the db-button has always a fixed height */
2
+ /* Use fixed spacings for all kind of distances (margin, padding, ...) */
3
+ /* The primary use-case for responsive spacings are
4
+ paddings/gaps in an application e.g. the <main> should have a responsive padding. */
5
+ /* Elevation */
6
+ /* Border */
7
+ /* Transitions */
8
+ /* Variants for adaptive components like input, select, notification, ... */
9
+ .db-stack {
10
+ display: flex;
11
+ gap: var(--db-spacing-fixed-sm);
12
+ justify-content: flex-start;
13
+ block-size: 100%;
14
+ inline-size: 100%;
15
+ overflow: auto;
16
+ }
17
+ .db-stack:is([data-direction=column], :not([data-direction])) {
18
+ flex-direction: column;
19
+ }
20
+ .db-stack > .db-divider,
21
+ .db-stack > db-divider > .db-divider {
22
+ margin: 0;
23
+ }
24
+ [data-direction=row].db-stack {
25
+ flex-direction: row;
26
+ }
27
+ [data-wrap=true].db-stack {
28
+ flex-wrap: wrap;
29
+ }
30
+ [data-alignment=stretch].db-stack {
31
+ align-items: stretch;
32
+ }
33
+ [data-alignment=start].db-stack {
34
+ align-items: flex-start;
35
+ }
36
+ [data-alignment=end].db-stack {
37
+ align-items: flex-end;
38
+ }
39
+ [data-alignment=center].db-stack {
40
+ align-items: center;
41
+ }
42
+ [data-justify-content=start].db-stack {
43
+ justify-content: flex-start;
44
+ }
45
+ [data-justify-content=end].db-stack {
46
+ justify-content: flex-end;
47
+ }
48
+ [data-justify-content=center].db-stack {
49
+ justify-content: center;
50
+ }
51
+ [data-justify-content=space-between].db-stack {
52
+ justify-content: space-between;
53
+ }
54
+ [data-gap="3x-small"].db-stack {
55
+ /* stylelint-disable-next-line db-ux/use-spacings */
56
+ gap: var(--db-spacing-fixed-3xs);
57
+ }
58
+ [data-gap="2x-small"].db-stack {
59
+ /* stylelint-disable-next-line db-ux/use-spacings */
60
+ gap: var(--db-spacing-fixed-2xs);
61
+ }
62
+ [data-gap=x-small].db-stack {
63
+ /* stylelint-disable-next-line db-ux/use-spacings */
64
+ gap: var(--db-spacing-fixed-xs);
65
+ }
66
+ [data-gap=small].db-stack {
67
+ /* stylelint-disable-next-line db-ux/use-spacings */
68
+ gap: var(--db-spacing-fixed-sm);
69
+ }
70
+ [data-gap=medium].db-stack {
71
+ /* stylelint-disable-next-line db-ux/use-spacings */
72
+ gap: var(--db-spacing-fixed-md);
73
+ }
74
+ [data-gap=large].db-stack {
75
+ /* stylelint-disable-next-line db-ux/use-spacings */
76
+ gap: var(--db-spacing-fixed-lg);
77
+ }
78
+ [data-gap=x-large].db-stack {
79
+ /* stylelint-disable-next-line db-ux/use-spacings */
80
+ gap: var(--db-spacing-fixed-xl);
81
+ }
82
+ [data-gap="2x-large"].db-stack {
83
+ /* stylelint-disable-next-line db-ux/use-spacings */
84
+ gap: var(--db-spacing-fixed-2xl);
85
+ }
86
+ [data-gap="3x-large"].db-stack {
87
+ /* stylelint-disable-next-line db-ux/use-spacings */
88
+ gap: var(--db-spacing-fixed-3xl);
89
+ }
90
+ [data-gap=none].db-stack {
91
+ /* stylelint-disable-next-line db-ux/use-spacings */
92
+ gap: 0;
93
+ }
@@ -0,0 +1 @@
1
+ @forward "stack";
@@ -0,0 +1,93 @@
1
+ /* Use sizing's for fixed heights/widths e.g. the db-button has always a fixed height */
2
+ /* Use fixed spacings for all kind of distances (margin, padding, ...) */
3
+ /* The primary use-case for responsive spacings are
4
+ paddings/gaps in an application e.g. the <main> should have a responsive padding. */
5
+ /* Elevation */
6
+ /* Border */
7
+ /* Transitions */
8
+ /* Variants for adaptive components like input, select, notification, ... */
9
+ .db-stack {
10
+ display: flex;
11
+ gap: var(--db-spacing-fixed-sm);
12
+ justify-content: flex-start;
13
+ block-size: 100%;
14
+ inline-size: 100%;
15
+ overflow: auto;
16
+ }
17
+ .db-stack:is([data-direction=column], :not([data-direction])) {
18
+ flex-direction: column;
19
+ }
20
+ .db-stack > .db-divider,
21
+ .db-stack > db-divider > .db-divider {
22
+ margin: 0;
23
+ }
24
+ [data-direction=row].db-stack {
25
+ flex-direction: row;
26
+ }
27
+ [data-wrap=true].db-stack {
28
+ flex-wrap: wrap;
29
+ }
30
+ [data-alignment=stretch].db-stack {
31
+ align-items: stretch;
32
+ }
33
+ [data-alignment=start].db-stack {
34
+ align-items: flex-start;
35
+ }
36
+ [data-alignment=end].db-stack {
37
+ align-items: flex-end;
38
+ }
39
+ [data-alignment=center].db-stack {
40
+ align-items: center;
41
+ }
42
+ [data-justify-content=start].db-stack {
43
+ justify-content: flex-start;
44
+ }
45
+ [data-justify-content=end].db-stack {
46
+ justify-content: flex-end;
47
+ }
48
+ [data-justify-content=center].db-stack {
49
+ justify-content: center;
50
+ }
51
+ [data-justify-content=space-between].db-stack {
52
+ justify-content: space-between;
53
+ }
54
+ [data-gap="3x-small"].db-stack {
55
+ /* stylelint-disable-next-line db-ux/use-spacings */
56
+ gap: var(--db-spacing-fixed-3xs);
57
+ }
58
+ [data-gap="2x-small"].db-stack {
59
+ /* stylelint-disable-next-line db-ux/use-spacings */
60
+ gap: var(--db-spacing-fixed-2xs);
61
+ }
62
+ [data-gap=x-small].db-stack {
63
+ /* stylelint-disable-next-line db-ux/use-spacings */
64
+ gap: var(--db-spacing-fixed-xs);
65
+ }
66
+ [data-gap=small].db-stack {
67
+ /* stylelint-disable-next-line db-ux/use-spacings */
68
+ gap: var(--db-spacing-fixed-sm);
69
+ }
70
+ [data-gap=medium].db-stack {
71
+ /* stylelint-disable-next-line db-ux/use-spacings */
72
+ gap: var(--db-spacing-fixed-md);
73
+ }
74
+ [data-gap=large].db-stack {
75
+ /* stylelint-disable-next-line db-ux/use-spacings */
76
+ gap: var(--db-spacing-fixed-lg);
77
+ }
78
+ [data-gap=x-large].db-stack {
79
+ /* stylelint-disable-next-line db-ux/use-spacings */
80
+ gap: var(--db-spacing-fixed-xl);
81
+ }
82
+ [data-gap="2x-large"].db-stack {
83
+ /* stylelint-disable-next-line db-ux/use-spacings */
84
+ gap: var(--db-spacing-fixed-2xl);
85
+ }
86
+ [data-gap="3x-large"].db-stack {
87
+ /* stylelint-disable-next-line db-ux/use-spacings */
88
+ gap: var(--db-spacing-fixed-3xl);
89
+ }
90
+ [data-gap=none].db-stack {
91
+ /* stylelint-disable-next-line db-ux/use-spacings */
92
+ gap: 0;
93
+ }
@@ -0,0 +1,5 @@
1
+ @use "../../styles/internal/stack-components";
2
+
3
+ .db-stack {
4
+ @extend %default-stack;
5
+ }