@db-ux/core-foundations 2.0.0-0-6589a60 → 2.0.0
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/assets/icons/LICENCES.json +6 -0
- package/assets/icons/circular_arrows.svg +1 -0
- package/assets/icons/fonts/all/db-ux.woff2 +0 -0
- package/assets/icons/fonts/default/db-ux.woff2 +0 -0
- package/assets/icons/fonts/default_12/db-ux.woff2 +0 -0
- package/assets/icons/fonts/default_14/db-ux.woff2 +0 -0
- package/assets/icons/fonts/default_16/db-ux.woff2 +0 -0
- package/assets/icons/fonts/default_20/db-ux.woff2 +0 -0
- package/assets/icons/fonts/default_24/db-ux.woff2 +0 -0
- package/assets/icons/fonts/default_28/db-ux.woff2 +0 -0
- package/assets/icons/fonts/default_32/db-ux.woff2 +0 -0
- package/assets/icons/fonts/default_48/db-ux.woff2 +0 -0
- package/assets/icons/fonts/default_64/db-ux.woff2 +0 -0
- package/assets/icons/fonts/filled/db-ux.woff2 +0 -0
- package/assets/icons/fonts/filled_12/db-ux.woff2 +0 -0
- package/assets/icons/fonts/filled_14/db-ux.woff2 +0 -0
- package/assets/icons/fonts/filled_16/db-ux.woff2 +0 -0
- package/assets/icons/fonts/filled_20/db-ux.woff2 +0 -0
- package/assets/icons/fonts/filled_24/db-ux.woff2 +0 -0
- package/assets/icons/fonts/filled_28/db-ux.woff2 +0 -0
- package/assets/icons/fonts/filled_32/db-ux.woff2 +0 -0
- package/assets/icons/fonts/filled_48/db-ux.woff2 +0 -0
- package/assets/icons/fonts/filled_64/db-ux.woff2 +0 -0
- package/build/all-icons.js +1 -27
- package/build/base-icon-types.d.ts +1 -1
- package/build/ide/db.ide.css +10 -10
- package/build/styles/_screen-sizes.scss +62 -6
- package/build/styles/_variables.scss +9 -9
- package/build/styles/absolute.css +9020 -593
- package/build/styles/absolute.scss +1 -1
- package/build/styles/animation/_animations.scss +6 -0
- package/build/styles/colors/_default-color-icons.scss +11 -0
- package/build/styles/colors/_default-color-mappings.scss +2944 -0
- package/build/styles/colors/_placeholder.scss +160 -153
- package/build/styles/colors/_variables.scss +20 -19
- package/build/styles/colors/classes/all.css +2205 -2115
- package/build/styles/colors/classes/blue.css +175 -141
- package/build/styles/colors/classes/brand.css +175 -141
- package/build/styles/colors/classes/critical.css +175 -141
- package/build/styles/colors/classes/cyan.css +175 -141
- package/build/styles/colors/classes/green.css +175 -141
- package/build/styles/colors/classes/informational.css +175 -141
- package/build/styles/colors/classes/neutral.css +175 -141
- package/build/styles/colors/classes/orange.css +175 -141
- package/build/styles/colors/classes/pink.css +175 -141
- package/build/styles/colors/classes/red.css +175 -141
- package/build/styles/colors/classes/successful.css +175 -141
- package/build/styles/colors/classes/turquoise.css +175 -141
- package/build/styles/colors/classes/violet.css +175 -141
- package/build/styles/colors/classes/warning.css +175 -141
- package/build/styles/colors/classes/yellow.css +175 -141
- package/build/styles/colors/speaking-colors/additional/_blue.speaking-colors.scss +9 -0
- package/build/styles/colors/speaking-colors/additional/_cyan.speaking-colors.scss +9 -0
- package/build/styles/colors/speaking-colors/additional/_green.speaking-colors.scss +9 -0
- package/build/styles/colors/speaking-colors/additional/_orange.speaking-colors.scss +9 -0
- package/build/styles/colors/speaking-colors/additional/_pink.speaking-colors.scss +9 -0
- package/build/styles/colors/speaking-colors/additional/_red.speaking-colors.scss +9 -0
- package/build/styles/colors/speaking-colors/additional/_turquoise.speaking-colors.scss +9 -0
- package/build/styles/colors/speaking-colors/additional/_violet.speaking-colors.scss +9 -0
- package/build/styles/colors/speaking-colors/additional/_yellow.speaking-colors.scss +9 -0
- package/build/styles/colors/speaking-colors/semantic/_brand.speaking-colors.scss +9 -0
- package/build/styles/colors/speaking-colors/semantic/_critical.speaking-colors.scss +9 -0
- package/build/styles/colors/speaking-colors/semantic/_informational.speaking-colors.scss +15 -0
- package/build/styles/colors/speaking-colors/semantic/_neutral.speaking-colors.scss +9 -0
- package/build/styles/colors/speaking-colors/semantic/_successful.speaking-colors.scss +9 -0
- package/build/styles/colors/speaking-colors/semantic/_warning.speaking-colors.scss +9 -0
- package/build/styles/colors/speaking-colors/vibrant.js +43 -0
- package/build/styles/defaults/_default-properties.scss +6770 -0
- package/build/styles/defaults/default-code.css +93 -93
- package/build/styles/defaults/default-code.scss +6 -4
- package/build/styles/defaults/default-elevation.css +1 -1
- package/build/styles/defaults/default-fonts.css +7 -7
- package/build/styles/defaults/default-fonts.scss +15 -18
- package/build/styles/defaults/default-icons.css +1 -1
- package/build/styles/defaults/default-required.css +1 -1
- package/build/styles/defaults/default-required.scss +35 -9
- package/build/styles/defaults/default-root.css +93 -93
- package/build/styles/defaults/default-theme.css +93 -93
- package/build/styles/defaults/default-theme.scss +9 -854
- package/build/styles/density/_scaling-placeholder.scss +57 -38
- package/build/styles/density/_typography-placeholder.scss +66 -42
- package/build/styles/density/classes/all.css +944 -951
- package/build/styles/density/classes/expressive.css +396 -327
- package/build/styles/density/classes/functional.css +396 -327
- package/build/styles/density/classes/regular.css +396 -327
- package/build/styles/fonts/_font-sizes.scss +18 -12
- package/build/styles/fonts/classes/all.css +236 -90
- package/build/styles/fonts/classes/body/2xl.css +100 -5
- package/build/styles/fonts/classes/body/2xs.css +100 -5
- package/build/styles/fonts/classes/body/3xl.css +100 -5
- package/build/styles/fonts/classes/body/3xs.css +100 -5
- package/build/styles/fonts/classes/body/all.css +164 -45
- package/build/styles/fonts/classes/body/lg.css +100 -5
- package/build/styles/fonts/classes/body/md.css +100 -5
- package/build/styles/fonts/classes/body/sm.css +100 -5
- package/build/styles/fonts/classes/body/xl.css +100 -5
- package/build/styles/fonts/classes/body/xs.css +100 -5
- package/build/styles/fonts/classes/headline/2xl.css +100 -5
- package/build/styles/fonts/classes/headline/2xs.css +100 -5
- package/build/styles/fonts/classes/headline/3xl.css +100 -5
- package/build/styles/fonts/classes/headline/3xs.css +100 -5
- package/build/styles/fonts/classes/headline/all.css +164 -45
- package/build/styles/fonts/classes/headline/lg.css +100 -5
- package/build/styles/fonts/classes/headline/md.css +100 -5
- package/build/styles/fonts/classes/headline/sm.css +100 -5
- package/build/styles/fonts/classes/headline/xl.css +100 -5
- package/build/styles/fonts/classes/headline/xs.css +100 -5
- package/build/styles/helpers/_divider.scss +6 -6
- package/build/styles/helpers/_focus.scss +17 -15
- package/build/styles/helpers/_functions.scss +1 -1
- package/build/styles/helpers/_index.scss +1 -0
- package/build/styles/helpers/_layer.scss +1 -0
- package/build/styles/helpers/classes/all.css +64 -34
- package/build/styles/helpers/classes/divider.css +54 -24
- package/build/styles/helpers/classes/focus.css +39 -9
- package/build/styles/icons/absolute.css +1 -1
- package/build/styles/icons/relative.css +1 -1
- package/build/styles/icons/rollup.css +1 -1
- package/build/styles/icons/webpack.css +1 -1
- package/build/styles/index.css +3578 -520
- package/build/styles/relative.css +7827 -5559
- package/build/styles/rollup.css +9020 -593
- package/build/styles/rollup.scss +1 -1
- package/build/styles/webpack.css +9020 -593
- package/build/styles/webpack.scss +1 -1
- package/build/tailwind/tailwind-tokens.json +10 -10
- package/build/tailwind/theme/index.css +10 -10
- package/package.json +4 -4
- package/build/styles/colors/_default-color-scheme.scss +0 -2957
- package/build/styles/colors/_default-palette.scss +0 -2523
|
@@ -95,6 +95,12 @@
|
|
|
95
95
|
"licence": "https://lucide.dev/license#lucide-license",
|
|
96
96
|
"origin": "x"
|
|
97
97
|
},
|
|
98
|
+
{
|
|
99
|
+
"name": "circular_arrows.svg",
|
|
100
|
+
"type": "lucide",
|
|
101
|
+
"licence": "https://lucide.dev/license#lucide-license",
|
|
102
|
+
"origin": "refresh-cw"
|
|
103
|
+
},
|
|
98
104
|
{
|
|
99
105
|
"name": "check.svg",
|
|
100
106
|
"type": "lucide",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-refresh-cw"><path d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"/><path d="M21 3v5h-5"/><path d="M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"/><path d="M8 16H3v5"/></svg>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/build/all-icons.js
CHANGED
|
@@ -1,28 +1,2 @@
|
|
|
1
1
|
/* This file was generated */
|
|
2
|
-
export const ALL_ICONS = [
|
|
3
|
-
'arrow_down',
|
|
4
|
-
'arrow_left',
|
|
5
|
-
'arrow_right',
|
|
6
|
-
'arrow_up',
|
|
7
|
-
'arrow_up_right',
|
|
8
|
-
'brand',
|
|
9
|
-
'calendar',
|
|
10
|
-
'check',
|
|
11
|
-
'check_circle',
|
|
12
|
-
'chevron_down',
|
|
13
|
-
'chevron_left',
|
|
14
|
-
'chevron_right',
|
|
15
|
-
'chevron_up',
|
|
16
|
-
'clock',
|
|
17
|
-
'cross',
|
|
18
|
-
'cross_circle',
|
|
19
|
-
'exclamation_mark_circle',
|
|
20
|
-
'exclamation_mark_triangle',
|
|
21
|
-
'information_circle',
|
|
22
|
-
'magnifying_glass',
|
|
23
|
-
'menu',
|
|
24
|
-
'minus',
|
|
25
|
-
'plus',
|
|
26
|
-
'resize_handle_corner',
|
|
27
|
-
'x_placeholder'
|
|
28
|
-
];
|
|
2
|
+
export const ALL_ICONS = ["arrow_down", "arrow_left", "arrow_right", "arrow_up", "arrow_up_right", "brand", "calendar", "check-circle", "check", "check_circle", "chevron_down", "chevron_left", "chevron_right", "chevron_up", "circle", "circular_arrows", "clock", "cross", "cross_circle", "exclamation_mark_circle", "exclamation_mark_triangle", "information_circle", "magnifying_glass", "menu", "minus", "plus", "resize_handle_corner", "x_placeholder"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type BaseIconTypes =
|
|
1
|
+
export type BaseIconTypes = "arrow_down" | "arrow_left" | "arrow_right" | "arrow_up" | "arrow_up_right" | "brand" | "calendar" | "check-circle" | "check" | "check_circle" | "chevron_down" | "chevron_left" | "chevron_right" | "chevron_up" | "circle" | "circular_arrows" | "clock" | "cross" | "cross_circle" | "exclamation_mark_circle" | "exclamation_mark_triangle" | "information_circle" | "magnifying_glass" | "menu" | "minus" | "plus" | "resize_handle_corner" | "x_placeholder";
|
package/build/ide/db.ide.css
CHANGED
|
@@ -42,16 +42,16 @@ head {
|
|
|
42
42
|
--db-elevation-md: "Changes elevation of element.";
|
|
43
43
|
--db-elevation-lg: "Changes elevation of element.";
|
|
44
44
|
|
|
45
|
-
/* https://marketingportal.extranet.deutschebahn.com/marketingportal/Design-Anwendungen/db-ux-design-system/version-3/foundation/border-
|
|
46
|
-
--db-border-
|
|
47
|
-
--db-border-
|
|
48
|
-
--db-border-
|
|
49
|
-
--db-border-
|
|
50
|
-
--db-border-
|
|
51
|
-
--db-border-
|
|
52
|
-
--db-border-
|
|
53
|
-
--db-border-
|
|
54
|
-
--db-border-
|
|
45
|
+
/* https://marketingportal.extranet.deutschebahn.com/marketingportal/Design-Anwendungen/db-ux-design-system/version-3/foundation/border-width */
|
|
46
|
+
--db-border-width-3xs: "Changes border-width of element";
|
|
47
|
+
--db-border-width-2xs: "Changes border-width of element";
|
|
48
|
+
--db-border-width-xs: "Changes border-width of element";
|
|
49
|
+
--db-border-width-sm: "Changes border-width of element";
|
|
50
|
+
--db-border-width-md: "Changes border-width of element";
|
|
51
|
+
--db-border-width-lg: "Changes border-width of element";
|
|
52
|
+
--db-border-width-xl: "Changes border-width of element";
|
|
53
|
+
--db-border-width-2xl: "Changes border-width of element";
|
|
54
|
+
--db-border-width-3xl: "Changes border-width of element";
|
|
55
55
|
|
|
56
56
|
/* https://marketingportal.extranet.deutschebahn.com/marketingportal/Design-Anwendungen/db-ux-design-system/version-3/foundation/border-radius */
|
|
57
57
|
--db-border-radius-3xs: "Changes border-radius of element";
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
@use "helpers";
|
|
2
|
+
@use "sass:map";
|
|
2
3
|
|
|
3
|
-
$db-screen-size-xs: 360;
|
|
4
|
-
$db-screen-size-sm: 720;
|
|
5
|
-
$db-screen-size-md: 1024;
|
|
6
|
-
$db-screen-size-lg: 1440;
|
|
7
|
-
$db-screen-size-xl: 1920;
|
|
4
|
+
$db-screen-size-xs: 360; // mobile
|
|
5
|
+
$db-screen-size-sm: 720; // tablet
|
|
6
|
+
$db-screen-size-md: 1024; // small desktop
|
|
7
|
+
$db-screen-size-lg: 1440; // regular desktop
|
|
8
|
+
$db-screen-size-xl: 1920; // large desktop
|
|
8
9
|
|
|
9
10
|
$db-breakpoint-xs: helpers.px-to-em($db-screen-size-xs);
|
|
10
11
|
$db-breakpoint-sm: helpers.px-to-em($db-screen-size-sm);
|
|
@@ -12,7 +13,33 @@ $db-breakpoint-md: helpers.px-to-em($db-screen-size-md);
|
|
|
12
13
|
$db-breakpoint-lg: helpers.px-to-em($db-screen-size-lg);
|
|
13
14
|
$db-breakpoint-xl: helpers.px-to-em($db-screen-size-xl);
|
|
14
15
|
|
|
15
|
-
@mixin
|
|
16
|
+
@mixin get-breakpoint-properties() {
|
|
17
|
+
@property --db-breakpoint-xs {
|
|
18
|
+
syntax: "*";
|
|
19
|
+
inherits: true;
|
|
20
|
+
initial-value: #{$db-breakpoint-xs};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@property --db-breakpoint-sm {
|
|
24
|
+
syntax: "*";
|
|
25
|
+
inherits: true;
|
|
26
|
+
initial-value: #{$db-breakpoint-sm};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@property --db-breakpoint-md {
|
|
30
|
+
syntax: "*";
|
|
31
|
+
inherits: true;
|
|
32
|
+
initial-value: #{$db-breakpoint-md};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@property --db-breakpoint-xl {
|
|
36
|
+
syntax: "*";
|
|
37
|
+
inherits: true;
|
|
38
|
+
initial-value: #{$db-breakpoint-xl};
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@function get-screen-size($size) {
|
|
16
43
|
$screen: $db-screen-size-sm;
|
|
17
44
|
|
|
18
45
|
/* stylelint-disable at-rule-empty-line-before */
|
|
@@ -27,6 +54,12 @@ $db-breakpoint-xl: helpers.px-to-em($db-screen-size-xl);
|
|
|
27
54
|
}
|
|
28
55
|
/* stylelint-enable at-rule-empty-line-before */
|
|
29
56
|
|
|
57
|
+
@return $screen;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@mixin screen($size: "sm", $width: "min") {
|
|
61
|
+
$screen: get-screen-size($size);
|
|
62
|
+
|
|
30
63
|
@if ($width == "min") {
|
|
31
64
|
/* stylelint-disable-next-line media-query-no-invalid */
|
|
32
65
|
@media screen and (min-width: #{helpers.px-to-em($screen)}) {
|
|
@@ -47,3 +80,26 @@ $db-breakpoint-xl: helpers.px-to-em($db-screen-size-xl);
|
|
|
47
80
|
}
|
|
48
81
|
}
|
|
49
82
|
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* @mixin screen-min-max
|
|
86
|
+
* @param $data an object like (min:"sm", max:"lg") or (min: "sm")
|
|
87
|
+
*/
|
|
88
|
+
@mixin screen-min-max($data) {
|
|
89
|
+
$min: "";
|
|
90
|
+
$max: "";
|
|
91
|
+
|
|
92
|
+
@if (map.get($data, "min") != null) {
|
|
93
|
+
$min: "#{helpers.px-to-em(get-screen-size(map.get($data, "min")))} < ";
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
@if (map.get($data, "max") != null) {
|
|
97
|
+
$max: " <= #{helpers.px-to-em(get-screen-size(map.get($data, "max")))}";
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/* stylelint-disable-next-line media-query-no-invalid */
|
|
101
|
+
@media screen and (#{$min}width#{$max}) {
|
|
102
|
+
@content;
|
|
103
|
+
}
|
|
104
|
+
/* stylelint-disable-next-line at-rule-empty-line-before */
|
|
105
|
+
}
|
|
@@ -40,15 +40,15 @@ $db-elevation-lg: var(--db-elevation-lg);
|
|
|
40
40
|
|
|
41
41
|
/* Border */
|
|
42
42
|
|
|
43
|
-
$db-border-
|
|
44
|
-
$db-border-
|
|
45
|
-
$db-border-
|
|
46
|
-
$db-border-
|
|
47
|
-
$db-border-
|
|
48
|
-
$db-border-
|
|
49
|
-
$db-border-
|
|
50
|
-
$db-border-
|
|
51
|
-
$db-border-
|
|
43
|
+
$db-border-width-3xs: var(--db-border-width-3xs);
|
|
44
|
+
$db-border-width-2xs: var(--db-border-width-2xs);
|
|
45
|
+
$db-border-width-xs: var(--db-border-width-xs);
|
|
46
|
+
$db-border-width-sm: var(--db-border-width-sm);
|
|
47
|
+
$db-border-width-md: var(--db-border-width-md);
|
|
48
|
+
$db-border-width-lg: var(--db-border-width-lg);
|
|
49
|
+
$db-border-width-xl: var(--db-border-width-xl);
|
|
50
|
+
$db-border-width-2xl: var(--db-border-width-2xl);
|
|
51
|
+
$db-border-width-3xl: var(--db-border-width-3xl);
|
|
52
52
|
|
|
53
53
|
$db-border-radius-3xs: var(--db-border-radius-3xs);
|
|
54
54
|
$db-border-radius-2xs: var(--db-border-radius-2xs);
|