@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,32 @@
|
|
|
1
|
+
@forward "../components/button/button";
|
|
2
|
+
@forward "../components/icon/icon";
|
|
3
|
+
@forward "../components/tab-item/tab-item";
|
|
4
|
+
@forward "../components/divider/divider";
|
|
5
|
+
@forward "../components/card/card";
|
|
6
|
+
@forward "../components/input/input";
|
|
7
|
+
@forward "../components/brand/brand";
|
|
8
|
+
@forward "../components/header/header";
|
|
9
|
+
@forward "../components/page/page";
|
|
10
|
+
@forward "../components/link/link";
|
|
11
|
+
@forward "../components/section/section";
|
|
12
|
+
@forward "../components/infotext/infotext";
|
|
13
|
+
@forward "../components/notification/notification";
|
|
14
|
+
@forward "../components/checkbox/checkbox";
|
|
15
|
+
@forward "../components/radio/radio";
|
|
16
|
+
@forward "../components/tag/tag";
|
|
17
|
+
@forward "../components/drawer/drawer";
|
|
18
|
+
@forward "../components/select/select";
|
|
19
|
+
@forward "../components/navigation-item/navigation-item";
|
|
20
|
+
@forward "../components/textarea/textarea";
|
|
21
|
+
@forward "../components/badge/badge";
|
|
22
|
+
@forward "../components/accordion/accordion";
|
|
23
|
+
@forward "../components/accordion-item/accordion-item";
|
|
24
|
+
@forward "../components/navigation/navigation";
|
|
25
|
+
@forward "../components/popover/popover";
|
|
26
|
+
@forward "../components/tooltip/tooltip";
|
|
27
|
+
@forward "../components/tab-item/tab-item";
|
|
28
|
+
@forward "../components/tab-list/tab-list";
|
|
29
|
+
@forward "../components/tabs/tabs";
|
|
30
|
+
@forward "../components/tab-panel/tab-panel";
|
|
31
|
+
@forward "../components/switch/switch";
|
|
32
|
+
@forward "../components/stack/stack";
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
@use "@db-ux/core-foundations/build/styles/variables";
|
|
2
|
+
@use "@db-ux/core-foundations/build/styles/screen-sizes";
|
|
3
|
+
@use "@db-ux/core-foundations/build/styles/colors";
|
|
4
|
+
@use "@db-ux/core-foundations/build/styles/helpers";
|
|
5
|
+
|
|
6
|
+
$min-mobile-header-height: calc(
|
|
7
|
+
#{variables.$db-sizing-md} + 2 * #{variables.$db-spacing-fixed-xs}
|
|
8
|
+
);
|
|
9
|
+
|
|
10
|
+
$default-disabled: 0.4;
|
|
11
|
+
// 0.68 would be fine as well for a11y, but we are big Bryan Adams fans :)
|
|
12
|
+
$placeholder-disabled: 0.69;
|
|
13
|
+
|
|
14
|
+
%default-adaptive-border {
|
|
15
|
+
border: variables.$db-border-height-3xs solid
|
|
16
|
+
colors.$db-adaptive-on-bg-basic-emphasis-100-default;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
%transparent-border {
|
|
20
|
+
border: variables.$db-border-height-3xs solid transparent;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
%component-border {
|
|
24
|
+
border: variables.$db-border-height-3xs solid
|
|
25
|
+
colors.$db-adaptive-on-bg-basic-emphasis-60-default;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
%form-component-border {
|
|
29
|
+
border: variables.$db-border-height-3xs solid
|
|
30
|
+
colors.$db-adaptive-on-bg-basic-emphasis-70-default;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
%default-interactive-component {
|
|
34
|
+
@extend %default-adaptive-border;
|
|
35
|
+
|
|
36
|
+
border-radius: variables.$db-border-radius-xs;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
%default-card {
|
|
40
|
+
@extend %component-border;
|
|
41
|
+
|
|
42
|
+
/* stylelint-disable-next-line db-ux/use-border-radius */
|
|
43
|
+
border-radius: var(
|
|
44
|
+
--default-card-border-radius,
|
|
45
|
+
#{variables.$db-border-radius-sm}
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
$responsive-spacings: (
|
|
50
|
+
"default": variables.$db-spacing-responsive-md,
|
|
51
|
+
"large": variables.$db-spacing-responsive-lg,
|
|
52
|
+
"medium": variables.$db-spacing-responsive-md,
|
|
53
|
+
"small": variables.$db-spacing-responsive-sm,
|
|
54
|
+
"none": 0
|
|
55
|
+
);
|
|
56
|
+
|
|
57
|
+
$default-spacings: (
|
|
58
|
+
"default": variables.$db-spacing-fixed-sm,
|
|
59
|
+
"large": variables.$db-spacing-fixed-lg,
|
|
60
|
+
"medium": variables.$db-spacing-fixed-md,
|
|
61
|
+
"small": variables.$db-spacing-fixed-sm,
|
|
62
|
+
"none": 0
|
|
63
|
+
);
|
|
64
|
+
|
|
65
|
+
@mixin get-data-spacing($type: padding, $spacings: $default-spacings) {
|
|
66
|
+
@each $name, $spacing in $spacings {
|
|
67
|
+
@if ($name == "default") {
|
|
68
|
+
&:not([data-spacing]) {
|
|
69
|
+
#{$type}: $spacing;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/* stylelint-disable-next-line at-rule-empty-line-before */
|
|
73
|
+
} @else {
|
|
74
|
+
&[data-spacing="#{$name}"] {
|
|
75
|
+
#{$type}: $spacing;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
$custom-elements: //hygen-insert
|
|
2
|
+
db-stack, db-switch, db-tab-panel, db-tabs, db-tab-list, db-tab-item,
|
|
3
|
+
db-tab-bar, db-tooltip, db-popover, db-textarea, db-navigation,
|
|
4
|
+
db-accordion-item, db-accordion, db-badge, db-navigation-item, db-tag,
|
|
5
|
+
db-radio, db-select, db-notification, db-codedocs, db-brand, db-button,
|
|
6
|
+
db-card, db-checkbox, db-divider, db-drawer, db-header, db-icon,
|
|
7
|
+
db-infotext, db-input, db-link, db-page, db-section, db-tab, db-tabbar;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
@use "@db-ux/core-foundations/build/styles/variables";
|
|
2
|
+
@use "@db-ux/core-foundations/build/styles/screen-sizes";
|
|
3
|
+
@use "@db-ux/core-foundations/build/styles/colors";
|
|
4
|
+
|
|
5
|
+
@mixin set-db-puls-horizontal() {
|
|
6
|
+
&::after {
|
|
7
|
+
block-size: variables.$db-border-height-xs;
|
|
8
|
+
inline-size: 0;
|
|
9
|
+
transform: translate(-50%, 0);
|
|
10
|
+
inset-inline-start: 50%;
|
|
11
|
+
background-color: colors.$db-brand-on-bg-basic-emphasis-70-default;
|
|
12
|
+
inset-block: auto calc(-1 * #{variables.$db-spacing-fixed-xs});
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@mixin set-db-puls-vertical() {
|
|
17
|
+
&::after {
|
|
18
|
+
block-size: 0;
|
|
19
|
+
inline-size: variables.$db-border-height-xs;
|
|
20
|
+
transform: translate(0, -50%);
|
|
21
|
+
inset-block: 50% auto;
|
|
22
|
+
background-color: colors.$db-brand-on-bg-basic-emphasis-70-default;
|
|
23
|
+
inset-inline-start: calc(-1 * #{variables.$db-spacing-fixed-xs});
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
%db-puls {
|
|
28
|
+
&::after {
|
|
29
|
+
content: "";
|
|
30
|
+
position: absolute;
|
|
31
|
+
border-radius: variables.$db-border-radius-xs;
|
|
32
|
+
|
|
33
|
+
@media screen and (prefers-reduced-motion: no-preference) {
|
|
34
|
+
transition:
|
|
35
|
+
height variables.$db-transition-duration-fast
|
|
36
|
+
variables.$db-transition-timing-emotional,
|
|
37
|
+
width variables.$db-transition-duration-fast
|
|
38
|
+
variables.$db-transition-timing-emotional;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
%db-puls-auto {
|
|
44
|
+
@extend %db-puls;
|
|
45
|
+
|
|
46
|
+
@include set-db-puls-vertical();
|
|
47
|
+
|
|
48
|
+
@include screen-sizes.screen("md") {
|
|
49
|
+
@include set-db-puls-horizontal();
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@mixin show-db-puls-horizontal() {
|
|
54
|
+
&::after {
|
|
55
|
+
block-size: variables.$db-border-height-xs;
|
|
56
|
+
inline-size: 100%;
|
|
57
|
+
|
|
58
|
+
@media (forced-colors: active) {
|
|
59
|
+
border: calc(#{variables.$db-border-height-xs} - 1px) solid
|
|
60
|
+
colors.$db-adaptive-on-bg-basic-emphasis-100-default;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@mixin show-db-puls-vertical() {
|
|
66
|
+
&::after {
|
|
67
|
+
block-size: 100%;
|
|
68
|
+
inline-size: variables.$db-border-height-xs;
|
|
69
|
+
|
|
70
|
+
@media (forced-colors: active) {
|
|
71
|
+
border: calc(#{variables.$db-border-height-xs} - 1px) solid
|
|
72
|
+
colors.$db-adaptive-on-bg-basic-emphasis-100-default;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
%show-db-puls-auto {
|
|
78
|
+
@include show-db-puls-vertical;
|
|
79
|
+
|
|
80
|
+
@include screen-sizes.screen("md") {
|
|
81
|
+
@include show-db-puls-horizontal;
|
|
82
|
+
}
|
|
83
|
+
}
|